ZHANGYUXUAN-zR commited on
Commit
2bd796f
·
verified ·
1 Parent(s): fbc6887

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/1Fqg133qRaI/1Fqg133qRaI_middle.json +0 -0
  2. parse/train/1Fqg133qRaI/1Fqg133qRaI_model.json +0 -0
  3. parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc.md +288 -0
  4. parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_content_list.json +1109 -0
  5. parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_middle.json +0 -0
  6. parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_model.json +0 -0
  7. parse/train/B12Js_yRb/B12Js_yRb.md +342 -0
  8. parse/train/B12Js_yRb/B12Js_yRb_content_list.json +1792 -0
  9. parse/train/B12Js_yRb/B12Js_yRb_middle.json +0 -0
  10. parse/train/B12Js_yRb/B12Js_yRb_model.json +0 -0
  11. parse/train/Bkxonh4Ywr/Bkxonh4Ywr.md +284 -0
  12. parse/train/Bkxonh4Ywr/Bkxonh4Ywr_content_list.json +1484 -0
  13. parse/train/Bkxonh4Ywr/Bkxonh4Ywr_middle.json +0 -0
  14. parse/train/Bkxonh4Ywr/Bkxonh4Ywr_model.json +0 -0
  15. parse/train/ByqFhGZCW/ByqFhGZCW.md +359 -0
  16. parse/train/ByqFhGZCW/ByqFhGZCW_content_list.json +1675 -0
  17. parse/train/ByqFhGZCW/ByqFhGZCW_middle.json +0 -0
  18. parse/train/ByqFhGZCW/ByqFhGZCW_model.json +0 -0
  19. parse/train/H1lmhaVtvr/H1lmhaVtvr.md +323 -0
  20. parse/train/H1lmhaVtvr/H1lmhaVtvr_content_list.json +1671 -0
  21. parse/train/H1lmhaVtvr/H1lmhaVtvr_middle.json +0 -0
  22. parse/train/H1lmhaVtvr/H1lmhaVtvr_model.json +0 -0
  23. parse/train/HkxAAvcxx/HkxAAvcxx.md +179 -0
  24. parse/train/HkxAAvcxx/HkxAAvcxx_content_list.json +1004 -0
  25. parse/train/HkxAAvcxx/HkxAAvcxx_middle.json +0 -0
  26. parse/train/HkxAAvcxx/HkxAAvcxx_model.json +0 -0
  27. parse/train/Hyfg5o0qtm/Hyfg5o0qtm.md +356 -0
  28. parse/train/Hyfg5o0qtm/Hyfg5o0qtm_content_list.json +1829 -0
  29. parse/train/Hyfg5o0qtm/Hyfg5o0qtm_middle.json +0 -0
  30. parse/train/Hyfg5o0qtm/Hyfg5o0qtm_model.json +0 -0
  31. parse/train/HyxhqhVKPB/HyxhqhVKPB.md +0 -0
  32. parse/train/HyxhqhVKPB/HyxhqhVKPB_content_list.json +0 -0
  33. parse/train/HyxhqhVKPB/HyxhqhVKPB_middle.json +0 -0
  34. parse/train/HyxhqhVKPB/HyxhqhVKPB_model.json +0 -0
  35. parse/train/OJLaKwiXSbx/OJLaKwiXSbx.md +318 -0
  36. parse/train/OJLaKwiXSbx/OJLaKwiXSbx_content_list.json +1356 -0
  37. parse/train/OJLaKwiXSbx/OJLaKwiXSbx_middle.json +0 -0
  38. parse/train/OJLaKwiXSbx/OJLaKwiXSbx_model.json +0 -0
  39. parse/train/SJfZKiC5FX/SJfZKiC5FX.md +272 -0
  40. parse/train/SJfZKiC5FX/SJfZKiC5FX_content_list.json +1426 -0
  41. parse/train/SJfZKiC5FX/SJfZKiC5FX_middle.json +0 -0
  42. parse/train/SJfZKiC5FX/SJfZKiC5FX_model.json +0 -0
  43. parse/train/SJl2niR9KQ/SJl2niR9KQ.md +629 -0
  44. parse/train/SJl2niR9KQ/SJl2niR9KQ_content_list.json +0 -0
  45. parse/train/SJl2niR9KQ/SJl2niR9KQ_middle.json +0 -0
  46. parse/train/SJl2niR9KQ/SJl2niR9KQ_model.json +0 -0
  47. parse/train/SkHkeixAW/SkHkeixAW.md +506 -0
  48. parse/train/SkHkeixAW/SkHkeixAW_content_list.json +0 -0
  49. parse/train/SkHkeixAW/SkHkeixAW_middle.json +0 -0
  50. parse/train/SkHkeixAW/SkHkeixAW_model.json +0 -0
parse/train/1Fqg133qRaI/1Fqg133qRaI_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1Fqg133qRaI/1Fqg133qRaI_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc.md ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SNIPS: Solving Noisy Inverse Problems Stochastically
2
+
3
+ Bahjat Kawar, Gregory Vaksman, Michael Elad Computer Science Department, Technion, Haifa, Israel {bahjat.kawar, grishav, elad}@cs.technion.ac.il
4
+
5
+ # Abstract
6
+
7
+ In this work we introduce a novel stochastic algorithm dubbed SNIPS, which draws samples from the posterior distribution of any linear inverse problem, where the observation is assumed to be contaminated by additive white Gaussian noise. Our solution incorporates ideas from Langevin dynamics and Newton’s method, and exploits a pre-trained minimum mean squared error (MMSE) Gaussian denoiser. The proposed approach relies on an intricate derivation of the posterior score function that includes a singular value decomposition (SVD) of the degradation operator, in order to obtain a tractable iterative algorithm for the desired sampling. Due to its stochasticity, the algorithm can produce multiple high perceptual quality samples for the same noisy observation. We demonstrate the abilities of the proposed paradigm for image deblurring, super-resolution, and compressive sensing. We show that the samples produced are sharp, detailed and consistent with the given measurements, and their diversity exposes the inherent uncertainty in the inverse problem being solved.
8
+
9
+ # 1 Introduction
10
+
11
+ Many problems in the field of image processing can be cast as noisy linear inverse problems. This family of tasks includes denoising, inpainting, deblurring, super resolution, compressive sensing, and many other image recovery problems. A general linear inverse problem is posed as
12
+
13
+ $$
14
+ \mathbf { y } = \mathbf { H } \mathbf { x } + \mathbf { z } ,
15
+ $$
16
+
17
+ where we aim to recover a signal $\mathbf { x }$ from its measurement $\mathbf { y }$ , given through a linear degradation operator $\mathbf { H }$ and a contaminating noise, being additive, white and Gaussian, $\mathbf { \overline { { z } } } \sim \mathcal { N } \left( 0 , \sigma _ { 0 } ^ { 2 } \mathbf { \check { I } } \right)$ . In this work we assume that both $\mathbf { H }$ and $\sigma _ { 0 }$ are known.
18
+
19
+ Over the years, many strategies, algorithms and underlying statistical models were developed for handling image restoration problems. A key ingredient in many of the classic attempts is the prior that aims to regularize the inversion process and lead to visually pleasing results. Among the various options explored, we mention sparsity-inspired techniques [13, 55, 11], local Gaussian-mixture modeling [57, 63], and methods relying on non-local self-similarity [6, 9, 36, 51]. More recently, and with the emergence of deep learning techniques, a direct design of the recovery path from y to an estimate of $\mathbf { x }$ took the lead, yielding state-of-the-art results in various linear inverse problems, such as denoising [25, 59, 61, 52], deblurring [22, 48], super resolution [10, 17, 54] and other tasks [29, 28, 19, 16, 37, 58].
20
+
21
+ Despite the evident success of the above techniques, many image restoration algorithms still have a critical shortcoming: In cases of severe degradation, most recovery algorithms tend to produce washed out reconstructions that lack details. Indeed, most image restoration techniques seek a reconstruction that minimizes the mean squared error between the restored image, ˆx, and the unknown original one, x. When the degradation is acute and information is irreversibly lost, image reconstruction becomes a highly ill-posed problem, implying that many possible clean images could explain the given measurements. The MMSE solution averages all these candidate solutions, being the conditional mean of the posterior of $\mathbf { x }$ given y, leading to an image with loss of fine details in the majority of practical cases. A recent work reported in [5] has shown that reconstruction algorithms necessarily suffer from a perception-distortion tradeoff, i.e., targeting a minimization of the error between $\hat { \bf x }$ and $\mathbf { x }$ (in any metric) is necessarily accompanied by a compromised perceptual quality. As a consequence, as long as we stick to the tendency to design recovery algorithms that aim for minimum MSE (or other distances), only a limited perceptual improvement can be expected.
22
+
23
+ When perceptual quality becomes our prime objective, the strategy for solving inverse problems must necessarily change. More specifically, the solution should concentrate on producing a sample (or many of them) from the posterior distribution $p \left( \mathbf { x } | \mathbf { y } \right)$ instead of its conditional mean. Recently, two such approaches have been suggested – GAN-based and Langevin sampling. Generative Adversarial Networks (GANs) have shown impressive results in generating realistically looking images (e.g., [14, 35]). GANs can be utilized for solving inverse problems while producing high-quality images (see e.g. [2, 31, 34]). These solvers aim to produce a diverse set of output images that are consistent with the measurements, while also being aligned with the distribution of clean examples. A major disadvantage of GAN-based algorithms for inverse problems is their tendency (as practiced in [2, 31, 34]) to assume noiseless measurements, a condition seldom met in practice. An exception to this is the work reported in [33], which adapts a conditional GAN to become a stochastic denoiser.
24
+
25
+ The second approach for sampling from the posterior, and the one we shall be focusing on in this paper, is based on Langevin dynamics. This core iterative technique enables sampling from a given distribution by leveraging the availability of the score function – the gradient of the log of the probability density function [38, 3]. The work reported in [44, 20, 46] utilizes the annealed Langevin dynamics method, both for image synthesis and for solving noiseless inverse problems.1 Their synthesis algorithm relies on an MMSE Gaussian denoiser (given as a neural network) for approximating a gradually blurred score function. In their treatment of inverse problems, the conditional score remains tractable and manageable due to the noiseless measurements assumption.
26
+
27
+ The question addressed in this paper is the following: How can the above line of Langevin-based work be generalized for handling linear inverse problems, as in Equation 1, in which the measurements are noisy? A partial and limited answer to this question has already been given in [21] for the tasks of image denoising and inpainting. The present work generalizes these ([44, 20, 46, 21]) results, and introduces a systematic way for sampling from the posterior distribution of any given noisy linear inverse problem. As we carefully show, this extension is far from being trivial, due to two prime reasons: (i) The involvement of the degradation operator H, which poses a difficulty for establishing a relationship between the reconstructed image and the noisy observation; and (ii) The intricate connection between the measurements’ and the synthetic annealed Langevin noise. Our proposed remedy is a decorrelation of the measurements equation via a singular value decomposition (SVD) of the operator H, which decouples the dependencies between the measurements, enabling each to be addressed by an adapted iterative process. In addition, we define the annealing noise to be built as portions of the measurement noise itself, in a manner that facilitates a constructive derivation of the conditional score function.
28
+
29
+ Following earlier work [44, 20, 46, 21], our algorithm is initialized with a random noise image, gradually converging to the reconstructed result, while following the direction of the log-posterior gradient, estimated using an MMSE denoiser. Via a careful construction of the gradual annealing noise sequence, from very high values to low ones, the entries in the derived score switch mode. Those referring to non-zero singular values start by being purely dependent on the measurements, and then transition to incorporate prior information based on the denoiser. As for entries referring to zero singular values, their corresponding entries undergo a pure synthesis process based on the prior-only score function. Note that the denoiser blends values in the evolving sample, thus intermixing the influence of the gradient entries. Our derivations include an analytical expression for a positiondependent step size vector, drawing inspiration from Newton’s method in optimization. This stabilizes the algorithm and is shown to be essential for its success.
30
+
31
+ We refer hereafter to our algorithm as SNIPS (Solution of Noisy Inverse Problems Stochastically). Observe that as we target to sample from the posterior distribution $p \left( \mathbf { x } | \mathbf { y } \right)$ , different runs of SNIPS on the same input necessarily yield different results, all of which valid solutions to the given inverse problem. This should not come as a surprise, as ill-posedness implies that there are multiple viable solutions for the same data, as has already been suggested in the context of super resolution [31, 2, 34]. We demonstrate SNIPS on image deblurring, single image super resolution, and compressive sensing, all of which contain non-negligible noise, and emphasize the high perceptual quality of the results, their diversity, and their relation to the MMSE estimate.
32
+
33
+ ![](images/c82146786b5adb3c31fe1fe0e0cc72d1662774fbb84d513189a447eec3bd7cf3.jpg)
34
+ Figure 1: Deblurring results on CelebA [27] images (uniform $5 \times 5$ blur and an additive noise with $\sigma _ { 0 } = 0 . 1$ ). Here and in all other shown figures, the standard deviation image is scaled by 4 for better visual inspection.
35
+
36
+ To summarize, this paper’s contributions are threefold:
37
+
38
+ • We present an intricate derivation of the blurred posterior score function for general noisy inverse problems, where both the measurement and the target image contain delicately inter-connected additive white Gaussian noise. • We introduce a novel stochastic algorithm – SNIPS – that can sample from the posterior distribution of these problems. The algorithm relies on the availability of an MMSE denoiser. • We demonstrate impressive results of SNIPS on image deblurring, single image super resolution, and compressive sensing, all of which are highly noisy and ill-posed.
39
+
40
+ Before diving into the details of this work, we should mention that using Gaussian denoisers iteratively for handling general linear inverse problems has been already proposed in the context of the Plugand-Play-Prior $( \mathrm { P n P } )$ method [53] and RED [39], and their many followup papers (e.g., [60, 30, 1, 49, 7, 50, 40, 4]). However, both PnP and RED are quite different from our work, as they do not target sampling from the posterior, but rather focus on MAP or MMSE estimation.
41
+
42
+ # 2 Background
43
+
44
+ The Langevin dynamics algorithm [3, 38] suggests sampling from a probability distribution $p \left( \mathbf { x } \right)$ using the iterative transition rule
45
+
46
+ $$
47
+ { \bf x } _ { t + 1 } = { { \bf x } _ { t } } + \alpha \nabla _ { { \bf x } _ { t } } \log p \left( { { \bf x } _ { t } } \right) + \sqrt { 2 \alpha } { \bf z } _ { t } \mathrm { ~ , ~ }
48
+ $$
49
+
50
+ where $\mathbf { z } _ { t } \sim \mathcal { N } ( 0 , \mathbf { I } )$ and $\alpha$ is an appropriately chosen small constant. The added $\mathbf { z } _ { t }$ allows for stochastic sampling, avoiding a collapse to a maximum of the distribution. Initialized randomly, after a sufficiently large number of iterations, and under some mild conditions, this process converges to a sample from the desired distribution $p \left( \mathbf { x } \right)$ [38].
51
+
52
+ The work reported in [44] extends the aforementioned algorithm into annealed Langevin dynamics. The annealing proposed replaces the score function in Equation 2 with a blurred version of it, $\nabla _ { \tilde { \mathbf { x } } _ { t } } \log { p \left( \tilde { \mathbf { x } } _ { t } \right) }$ , where $\tilde { \mathbf { x } } _ { \mathbf { t } } = \mathbf { x } _ { t } + \mathbf { n }$ and $\mathbf { n } \sim { \mathcal { N } } \left( 0 , \sigma ^ { 2 } \mathbf { I } \right)$ is a synthetically injected noise. The core idea is to start with a very high noise level $\sigma$ and gradually drop it to near-zero, all while using a step size $\alpha$ dependent on the noise level. These changes allow the algorithm to converge much faster and perform better, because it widens the basin of attraction of the sampling process. The work in [20] further develops this line of work by leveraging a brilliant relation attributed to Miyasawa [32] (also known as Stein’s integration by parts trick [47] or Tweedie’s identity [12]). It is given as
53
+
54
+ $$
55
+ { \nabla } _ { \tilde { \mathbf { x } } _ { t } } \log p \left( \tilde { \mathbf { x } } _ { t } \right) = \frac { \mathbf { D } \left( \tilde { \mathbf { x } } _ { t } , \sigma \right) - \tilde { \mathbf { x } } _ { t } } { { \sigma } ^ { 2 } } ,
56
+ $$
57
+
58
+ where $\mathbf { D } \left( \tilde { \mathbf { x } } _ { t } , \sigma \right) = \mathbb { E } \left[ \mathbf { x } | \tilde { \mathbf { x } } _ { t } \right]$ is the minimizer of the MSE measure $\mathbb { E } \left[ \lVert \mathbf { x } - \mathbf { D } \left( \tilde { \mathbf { x } } _ { t } , \sigma \right) \rVert _ { 2 } ^ { 2 } \right]$ , which can be approximated using a denoising neural network. This facilitates the use of denoisers in Langevin dynamics as a replacement for the evasive score function.
59
+
60
+ When turning to solve inverse problems, previous work suggests sampling from the posterior distribution $p \left( \mathbf { x } | \mathbf { y } \right)$ using annealed Langevin dynamics [20, 46, 21] or similar methods [15, 18, 42, 26], by replacing the score function used in the generation algorithm with a conditional one. As it turns out, if limiting assumptions can be posed on the measurements formation, the conditional score is tractable, and thus generalization of the annealed Langevin process to these problems is within reach. Indeed, in [44, 20, 46, 42, 26] the core assumption is $\mathbf { y } = \mathbf { H } \mathbf { x }$ for specific and simplified choices of $\mathbf { H }$ and with no noise in the measurements. The works in [15, 23] avoid these difficulties altogether by returning to the original (non-annealed) Langevin method, with the unavoidable cost of becoming extremely slow. In addition, their algorithms are demonstrated on inverse problems in which the additive noise is restricted to be very weak. The work in [21] is broader, allowing for an arbitrary additive white Gaussian noise, but limits $\mathbf { H }$ to the problems of denoising or inpainting. While all these works demonstrate high quality results, there is currently no clear way for deriving the blurred score function of a general linear inverse problem as posed in Equation 1. In the following, we present such a derivation.
61
+
62
+ # 3 The Proposed Approach: Deriving the Conditional Score Function
63
+
64
+ # 3.1 Problem Setting
65
+
66
+ We consider the problem of recovering a signal $\mathbf { x } \in \mathbb { R } ^ { N }$ (where $\mathbf { x } \sim p \left( \mathbf { x } \right)$ and $p \left( \mathbf { x } \right)$ is unknown) from the observation $\mathbf { y } = \mathbf { H } \mathbf { x } + \mathbf { z }$ , where $\mathbf { y } \in \mathbb { R } ^ { M } , \mathbf { H } \in \mathbb { R } ^ { M \times N } , M \leq N , \mathbf { z } \sim \mathcal { N } \left( 0 , \sigma _ { 0 } ^ { 2 } \mathbf { I } \right)$ , and $\mathbf { H }$ and $\sigma _ { 0 }$ are known.2 Our ultimate goal is to sample from the posterior $p \left( \mathbf { x } | \mathbf { y } \right)$ . However, since access to the score function $\nabla _ { \mathbf { x } } \log p ( \mathbf { x } | \mathbf { y } )$ is not available, we retarget our goal, as explained above, to sampling from blurred posterior distributions, $p \left( \tilde { \mathbf { x } } | \mathbf { y } \right)$ , where $\tilde { \mathbf { x } } = \mathbf { x } + \mathbf { n }$ and $\mathbf { n } \sim { \mathcal { N } } \left( 0 , \sigma ^ { 2 } \mathbf { I } \right)$ , with noise levels $\sigma$ starting very high, and decreasing towards near-zero.
67
+
68
+ As explained in the supplemental material, the sampling should be performed in the SVD domain in order to get a tractable derivation of the blurred score function. Thus, we consider the singular value decomposition (SVD) of $\mathbf { H }$ , given as $\mathbf { H } = \mathbf { U } \pmb { \Sigma } \mathbf { V } ^ { T }$ , where $\mathbf { U } \in \mathbb { R } ^ { M \times M }$ and $\mathbf { V } \in \mathbb { R } ^ { N \times N }$ are orthogonal matrices, and $\pmb { \Sigma } \in \mathbb { R } ^ { M \times N }$ is a rectangular diagonal matrix containing the singular values of H, denoted as {sj}Mj=1 i n descending order $\quad : s _ { 1 } > s _ { 2 } > \dots > s _ { M - 1 } > s _ { M } \geq 0 \quad$ ). For convenience of notations, we also define $s _ { j } = 0$ for $j = M + 1 , \dotsc , N$ . To that end, we notice that
69
+
70
+ $$
71
+ p \left( \tilde { \mathbf { x } } | \mathbf { y } \right) = p \left( \tilde { \mathbf { x } } | \mathbf { U } ^ { T } \mathbf { y } \right) = p \left( \mathbf { V } ^ { T } \tilde { \mathbf { x } } | \mathbf { U } ^ { T } \mathbf { y } \right) .
72
+ $$
73
+
74
+ The first equality holds because the multiplication of $\mathbf { y }$ by the orthogonal matrix $\mathbf { U } ^ { T }$ does not add or remove information, and the second equality holds because the multiplication of $\tilde { \bf x }$ by $\mathbf { V } ^ { T }$ does not change its probability [24]. Therefore, sampling from $p \left( \mathbf { V } ^ { T } \tilde { \mathbf { x } } | \mathbf { U } ^ { T } \mathbf { y } \right)$ and then multiplying the result by $\mathbf { V }$ will produce the desired sample from $p \left( \mathbf { \tilde { x } } | \mathbf { y } \right)$ . As we are using Langevin dynamics, we need to calculate the conditional score function $\nabla _ { \mathbf { V } ^ { T } \widetilde { \mathbf { x } } } \log p \left( \mathbf { V } ^ { T } \widetilde { \mathbf { x } } | \mathbf { U } ^ { T } \mathbf { y } \right)$ . For simplicity, we denote hereafter ${ \bf y } _ { T } = { \bf U } ^ { T } { \bf y } , { \bf z } _ { T } = { \bf U } ^ { T } { \bf z } , { \bf x } _ { T } = { \bf V } ^ { T } { \bf x } , { \bf n } _ { T } = \Sigma { \bf V } ^ { T } { \bf n }$ , and $\tilde { \mathbf { x } } _ { T } = \mathbf { V } ^ { T } \tilde { \mathbf { x } }$ . Observe that with these notations, the measurements equation becomes
75
+
76
+ $$
77
+ \mathbf { y } = \mathbf { H } \mathbf { x } + \mathbf { z } = \mathbf { U } \pmb { \Sigma } \mathbf { V } ^ { T } \mathbf { x } + \mathbf { z } ,
78
+ $$
79
+
80
+ and thus
81
+
82
+ $$
83
+ \mathbf { U } ^ { T } \mathbf { y } = \Sigma \mathbf { V } ^ { T } \mathbf { x } + \mathbf { U } ^ { T } \mathbf { z } = \Sigma \mathbf { V } ^ { T } ( \tilde { \mathbf { x } } - \mathbf { n } ) + \mathbf { U } ^ { T } \mathbf { z } = \Sigma \mathbf { V } ^ { T } \tilde { \mathbf { x } } - \Sigma \mathbf { V } ^ { T } \mathbf { n } + \mathbf { U } ^ { T } \mathbf { z } ,
84
+ $$
85
+
86
+ where we have relied on the relation $\tilde { \mathbf { x } } = \mathbf { x } + \mathbf { n }$ . This leads to
87
+
88
+ $$
89
+ { \bf y } _ { T } = \pmb { \Sigma } \tilde { \bf x } _ { T } - { \bf n } _ { T } + { \bf z } _ { T } .
90
+ $$
91
+
92
+ In this formulation, which will aid in deriving the conditional score, our aim is to make design choices on ${ \bf n } _ { T }$ such that ${ \bf z } _ { T } - { \bf n } _ { T }$ has uncorrelated entries and is independent of $\tilde { \bf x } _ { T }$ . This brings us to the formation of the synthetic annealed noise, which is an intricate ingredient in our derivations.
93
+
94
+ We base this formation on the definition of a sequence of noise levels $\{ \sigma _ { i } \} _ { i = 1 } ^ { L + 1 }$ such that $\sigma _ { 1 } > \sigma _ { 2 } > \cdot \cdot \cdot > \sigma _ { L } > \sigma _ { L + 1 } = 0$ , where $\sigma _ { 1 }$ is high (possibly $\sigma _ { 1 } > \| \mathbf { x } \| _ { \infty } )$ and $\sigma _ { L }$ is close to zero. We require that for every $j$ such that $s _ { j } \neq 0$ , there exists $i _ { j }$ such that $\sigma _ { i _ { j } } s _ { j } < \sigma _ { 0 }$ and $\sigma _ { i _ { j } - 1 } s _ { j } > \sigma _ { 0 }$ . This implies $\forall i : \sigma _ { i } s _ { j } \neq \sigma _ { 0 }$ , which helps ease notations. SNIPS works just as well for $\sigma _ { i } s _ { j } = \sigma _ { 0 }$ .
95
+
96
+ Using $\{ \sigma _ { i } \} _ { i = 1 } ^ { L + 1 }$ , we would like to define $\left\{ \tilde { \mathbf { x } } _ { i } \right\} _ { i = 1 } ^ { L + 1 }$ , a sequence of noisy versions of $\mathbf { x }$ , where the noise level in $\tilde { \mathbf { x } } _ { i }$ is $\sigma _ { i }$ . One might be tempted to define these noise additions as independent of the measurement noise $\mathbf { z }$ . However, this option leads to a conditional score term that cannot be calculated analytically, as explained in the supplemental material. Therefore, we define these noise additions differently, as carved from $\mathbf { z }$ in a gradual fashion. To that end, we define $\tilde { \mathbf { x } } _ { L + 1 } = \mathbf { x }$ , and for every $i = L , L - 1 , \ldots , 1 \colon \tilde { \mathbf { x } } _ { i } = \tilde { \mathbf { x } } _ { i + 1 } + \pmb { \eta } _ { i }$ , where $\pmb { \eta } _ { i } \sim \mathcal { N } \left( 0 , \left( \sigma _ { i } ^ { 2 } - \sigma _ { i + 1 } ^ { 2 } \right) \mathbf { I } \right)$ . This results in $\tilde { \mathbf { x } } _ { i } = \mathbf { x } + \mathbf { n } _ { i }$ , where $\begin{array} { r } { \mathbf { n } _ { i } = \sum _ { k = i } ^ { L } \pmb { \eta } _ { k } \sim \mathcal { N } \left( 0 , \sigma _ { i } ^ { 2 } \mathbf { I } \right) } \end{array}$ .
97
+
98
+ And now we turn to define the statistical dependencies between the measurements’ noise $\mathbf { z }$ and the artificial noise vectors $\eta _ { i }$ . Since $\eta _ { i }$ and $\mathbf { z }$ are each Gaussian with uncorrelated entries, so are the components of the vectors $\pmb { \Sigma } \mathbf { V } ^ { T } \pmb { \eta } _ { i }$ , $\pmb { \Sigma } \mathbf { V } ^ { T } \mathbf { n } _ { i }$ , and $\mathbf { z } _ { T }$ . In order to proceed while easing notations, let us focus on a single entry $j$ in these three vectors, for which $s _ { j } > 0$ , and omit this index. We denote these entries as $\eta _ { T , i } , n _ { T , i }$ and $z _ { T }$ , respectively. We construct $\eta _ { T , i }$ such that
99
+
100
+ $$
101
+ \mathbb { E } \left[ \eta _ { T , i } \cdot z _ { T } \right] = \left\{ \begin{array} { l l } { \mathbb { E } \left[ \eta _ { T , i } ^ { 2 } \right] } & { \mathrm { f o r } i \geq i _ { j } } \\ { \mathbb { E } \left[ \left( z _ { T } - n _ { T , i _ { j } } \right) ^ { 2 } \right] } & { \mathrm { f o r } i = i _ { j } - 1 } \\ { 0 } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
102
+ $$
103
+
104
+ This implies that the layers of noise $\eta _ { T , L + 1 } , \dots , \eta _ { T , i _ { j } }$ are all portions of $z _ { T }$ itself, with an additional portion being contained in $\eta _ { T , i _ { j } - 1 }$ . Afterwards, $\eta _ { T , i }$ become independent of $z _ { T }$ . In the case of $s _ { j } ~ = ~ 0$ , the above relations simplify to be $E [ \eta _ { T , i } \cdot z _ { T } ] = 0$ for all $i$ , implying no statistical dependency between the given and the synthetic noises. Consequently, it can be shown that the overall noise in Equation 5 satisfies
105
+
106
+ $$
107
+ \left( \Sigma \mathbf { V } ^ { T } \mathbf { n } _ { i } - \mathbf { z } _ { \mathbf { T } } \right) _ { j } = n _ { T , i } - z _ { T } \sim \left\{ \begin{array} { l l } { \mathcal { N } \left( 0 , s _ { j } ^ { 2 } \sigma _ { i } ^ { 2 } - \sigma _ { 0 } ^ { 2 } \right) } & { \mathrm { i f ~ } \sigma _ { i } s _ { j } > \sigma _ { 0 } } \\ { \mathcal { N } \left( 0 , \sigma _ { 0 } ^ { 2 } - s _ { j } ^ { 2 } \sigma _ { i } ^ { 2 } \right) } & { \mathrm { o t h e r w i s e . } } \end{array} \right.
108
+ $$
109
+
110
+ The top option refers to high values of the annealed Langevin noise, in which, despite the possible decay caused by the singular value $s _ { j }$ , this noise is stronger than $z _ { T }$ . In this case, $n _ { T , i }$ contains all $z _ { T }$ and an additional independent portion of noise. The bottom part assumes that the annealed noise (with the influence of $s _ { j }$ ) is weaker than the measurements’ noise, and then it is fully immersed within $z _ { T }$ , with the difference being Gaussian and independent.
111
+
112
+ # 3.2 Derivation of the Conditional Score Function
113
+
114
+ The above derivations show that the noise in Equation 5 is zero-mean, Gaussian with uncorrelated entries and of known variance, and this noise is independent of $\widetilde { \mathbf { x } } _ { i }$ . Thus Equation 5 can be used conveniently for deriving the measurements part of the conditional score function. We denote $\tilde { \mathbf { x } } _ { T } = \mathbf { V } ^ { T } \tilde { \mathbf { x } } _ { i }$ , $\widetilde { \mathbf { x } } = \widetilde { \mathbf { x } } _ { i }$ , $\mathbf { n } = \mathbf { n } _ { i }$ for simplicity, and turn to calculate $\nabla _ { \tilde { \mathbf { x } } _ { T } } \log p \left( \tilde { \mathbf { x } } _ { T } | \mathbf { y } _ { T } \right)$ . We split $\tilde { \mathbf { x } } _ { T }$ into three parts: (i) $\tilde { \mathbf { x } } _ { T , 0 }$ refers to the entries $j$ for which $s _ { j } = 0$ ; (ii) $\tilde { \mathbf { x } } _ { T , < }$ corresponds to the entries $j$ for which $0 < \sigma _ { i } s _ { j } < \sigma _ { 0 }$ ; and (iii) $\tilde { \mathbf { x } } _ { T , > }$ includes the entries $j$ for which $\sigma _ { i } s _ { j } ~ > ~ \sigma _ { 0 }$ . Observe that this partition of the entries of $\tilde { \bf x } _ { T }$ is non-overlapping and fully covering. Similarly, we partition every vector $\mathbf { v } \in \mathbb { R } ^ { N }$ into $\mathbf { v } _ { 0 } , \mathbf { v } _ { < } , \mathbf { v } _ { > }$ , which are the entries of $\mathbf { v }$ corresponding to $\tilde { \bf x } _ { T , 0 } , \tilde { \bf x } _ { T , < } , \tilde { \bf x } _ { T , > }$ , respectively. Furthermore, we define $\mathbf { v } _ { \boldsymbol { \phi } } , \mathbf { v } _ { \mathcal { A } } , \mathbf { v } _ { \mathcal { P } }$ as all the entries of $\mathbf { v }$ except $\mathbf { v } _ { 0 } , \mathbf { v } _ { < } , \mathbf { v } _ { > }$ , respectively. With these definitions in place, the complete derivation of the score function is detailed in the supplemental material, and here we bring the final outcome. For $\tilde { \mathbf { x } } _ { T , 0 }$ , the score is independent of the measurements and given by
115
+
116
+ $$
117
+ \nabla _ { \tilde { \mathbf { x } } _ { T , 0 } } \log p \left( \tilde { \mathbf { x } } _ { T } | \mathbf { y } _ { T } \right) = \left( \mathbf { V } ^ { T } \nabla _ { \tilde { \mathbf { x } } } \log p \left( \tilde { \mathbf { x } } \right) \right) _ { 0 } .
118
+ $$
119
+
120
+ For the case of $\tilde { \mathbf { x } } _ { T , > }$ , the expression obtained is only measurements-dependent,
121
+
122
+ $$
123
+ \nabla _ { \tilde { \mathbf { x } } _ { T , > } } \log p \left( \tilde { \mathbf { x } } _ { T } | \mathbf { y } _ { T } \right) = \left( \Sigma ^ { T } \left( \sigma _ { i } ^ { 2 } \Sigma \Sigma ^ { T } - \sigma _ { 0 } ^ { 2 } \mathbf { I } \right) ^ { \dagger } \left( \mathbf { y } _ { T } - \Sigma \tilde { \mathbf { x } } _ { T } \right) \right) _ { > } .
124
+ $$
125
+
126
+ ![](images/1bf7bf0fdb7b5ddbb342e405094746e2ae58288ea8fabffd3390f4076c6e4553.jpg)
127
+ Figure 2: Super resolution results on LSUN bedroom [56] images (downscaling $4 : 1$ by plain averaging and adding noise with $\sigma _ { 0 } = 0 . 0 4 \mathrm { , }$ ).
128
+
129
+ Lastly, for the case of $\tilde { \mathbf { x } } _ { T , < }$ , the conditional score includes two terms – one referring to the plain (blurred) score, and the other depending on the measurements,
130
+
131
+ $$
132
+ \nabla _ { \mathbf { \tilde { x } } _ { T , < } } \log p \left( \mathbf { \tilde { x } } _ { T } | \mathbf { y } _ { T } \right) = \left( \Sigma ^ { T } \left( \sigma _ { 0 } ^ { 2 } \mathbf { I } - \sigma _ { i } ^ { 2 } \Sigma \Sigma ^ { T } \right) ^ { \dagger } \left( \mathbf { y } _ { T } - \Sigma \mathbf { \tilde { x } } _ { T } \right) \right) _ { < } + \left( \mathbf { V } ^ { T } \nabla _ { \mathbf { \tilde { x } } } \log p \left( \mathbf { \tilde { x } } \right) \right) _ { < } .
133
+ $$
134
+
135
+ As already mentioned, the full derivations of equations 7, 8, and 9 are detailed in the supplemental material. Aggregating all these results together, we obtain the following conditional score function:
136
+
137
+ $$
138
+ \begin{array} { r } { \nabla _ { \tilde { \mathbf { x } } _ { T } } \log p \left( \tilde { \mathbf { x } } _ { T } | \mathbf { y } _ { T } \right) = \Sigma ^ { T } \left| \sigma _ { 0 } ^ { 2 } \mathbf { I } - \sigma _ { i } ^ { 2 } \Sigma \Sigma ^ { T } \right| ^ { \frac { 1 } { \rho } } \left( \mathbf { y } _ { T } - \Sigma \tilde { \mathbf { x } } _ { T } \right) + \left. \left( \mathbf { V } ^ { T } \nabla _ { \tilde { \mathbf { x } } } \log p \left( \tilde { \mathbf { x } } \right) \right) \right| _ { \mathcal { X } } , } \end{array}
139
+ $$
140
+
141
+ where $( \mathbf { v } ) | _ { \ngtr }$ is the vector $\mathbf { v }$ , but with zeros in its entries that correspond to $\mathbf { v } _ { > }$ . Observe that the first term in Equation 10 contains zeros in the entries corresponding to $\tilde { \mathbf { x } } _ { T , 0 }$ , matching the above calculations. The vector $\nabla _ { \tilde { \mathbf { x } } } \log p \left( \tilde { \mathbf { x } } \right)$ can be estimated using a neural network as in [44], or using a pre-trained MMSE denoiser as in [20, 21]. All the other elements of this vector are given or can be easily obtained from $\mathbf { H }$ by calculating its SVD decomposition once at the beginning.
142
+
143
+ # 4 The Proposed Algorithm
144
+
145
+ Armed with the conditional score function in Equation 10, the Langevin dynamics algorithm can be run with a constant step size or an annealed step size as in [44], and this should converge to a sample from $p \left( \tilde { \mathbf { x } } _ { T } | \mathbf { y } _ { T } \right)$ . However, for this to perform well, one should use a very small step size, implying a devastatingly slow convergence behavior. This is mainly due to the fact that different entries of $\tilde { \bf x } _ { T }$ advance at different speeds, in accord with their corresponding singular values. As the added noise in each step has the same variance in every entry, this leads to an unbalanced signal-to-noise ratio, which considerably slows down the algorithm.
146
+
147
+ In order to mitigate this problem, we suggest using a step size vector ${ \pmb { \alpha } } _ { i } \in \mathbb { R } ^ { N }$ . We denote $\mathbf { A } _ { i } = d i a g \left( \pmb { \alpha } _ { i } \right)$ , and obtain the following update formula for a Langevin dynamics algorithm:
148
+
149
+ $$
150
+ \mathbf { V } ^ { T } \tilde { \mathbf { x } } _ { i } = \mathbf { V } ^ { T } \tilde { \mathbf { x } } _ { i - 1 } + c \cdot \mathbf { A } _ { i } \cdot \nabla \mathbf { v } ^ { T } \tilde { \mathbf { x } } _ { i } \log p \left( \mathbf { V } ^ { T } \tilde { \mathbf { x } } _ { i } | \mathbf { y } _ { T } \right) + \sqrt { 2 \cdot c } \mathbf { A } _ { i } ^ { \frac { 1 } { 2 } } \cdot \mathbf { z } _ { i } ,
151
+ $$
152
+
153
+ where the conditional score function is estimated as described in subsection 3.2, and $c$ is some constant. For the choice of the step sizes in the diagonal of $\mathbf { A } _ { i }$ , we draw inspiration from Newton’s method in optimization, which is designed to speed up convergence to local maximum points. The update formula in Newton’s method is the same as Equation 11, but without the additional noise $\mathbf { z } _ { i }$ , and with $\mathbf { A } _ { i }$ being the negative inverse Hessian of $\log p \left( \mathbf { V } ^ { T } \tilde { \mathbf { x } } _ { i } | \mathbf { y } _ { T } \right)$ . We calculate a diagonal approximation of the Hessian, and set $\mathbf { A } _ { i }$ to be its negative inverse. We also estimate the conditional score function using Equation 10 and a neural network. Note that this mixture of Langevin dynamics and Newton’s method has been suggested in a slightly different context in [43], where the Hessian was approximated using a Quasi-Newton method. In our case, we analytically calculate a diagonal approximation of the negative inverse Hessian and obtain the following:
154
+
155
+ $$
156
+ \left( \alpha _ { i } \right) _ { j } = \left\{ \begin{array} { l l } { \sigma _ { i } ^ { 2 } , } & { s _ { j } = 0 } \\ { \sigma _ { i } ^ { 2 } - \frac { \sigma _ { 0 } ^ { 2 } } { s _ { j } ^ { 2 } } , } & { \sigma _ { i } s _ { j } > \sigma _ { 0 } } \\ { \sigma _ { i } ^ { 2 } \cdot \left( 1 - s _ { j } ^ { 2 } \frac { \sigma _ { i } ^ { 2 } } { \sigma _ { 0 } ^ { 2 } } \right) , } & { 0 < \sigma _ { i } s _ { j } < \sigma _ { 0 } . } \end{array} \right.
157
+ $$
158
+
159
+ ![](images/f76bb7d49bb33b3a68815799a29373ea7f403eba8070bce309f48629298e43e9.jpg)
160
+ Figure 3: Compressive sensing results on a CelebA [27] image with an additive noise of $\sigma _ { 0 } = 0 . 1$
161
+
162
+ The full derivations for each of the three cases are detailed in the supplemental material. Using these step sizes, the update formula in Equation 11, the conditional score function in Equation 10, and a neural network s $( \tilde { \mathbf { x } } , \sigma )$ that estimates the score function $\nabla _ { \tilde { \mathbf { x } } } \log p \left( \tilde { \mathbf { x } } \right)$ ,3 we obtain a tractable iterative algorithm for sampling from $p \left( \tilde { \mathbf { x } } _ { L } \mid \mathbf { y } \right)$ , where the noise in $ { \widetilde { \mathbf { x } } } _ { L }$ is sufficiently negligible to be considered as a sampling from the ideal image manifold.
163
+
164
+ # Algorithm 1: SNIPS
165
+
166
+ Input: $\left\{ \sigma _ { i } \right\} _ { i = 1 } ^ { L } , c , \tau , \mathbf { y } , \mathbf { H } , \sigma _ { 0 }$
167
+ $\mathbf { 1 } \ \mathbf { U } , \Sigma , \mathbf { V } s { \bar { v } } d ( \mathbf { H } )$
168
+ 2 Initialize $\mathbf { x _ { 0 } }$ with random noise $U \left[ 0 , 1 \right]$
169
+ 3 for $i \gets 1$ to $L$ do
170
+ 4 $( \mathbf { A } _ { i } ) _ { 0 } \sigma _ { i } ^ { 2 } \mathbf { I }$
171
+ 5 ( A i ) < ← σ 2i ·  I − σ 2iσ 2 Σ < Σ < T 
172
+ 6 $( \mathbf { A } _ { i } ) _ { > } \sigma _ { i } ^ { 2 } \mathbf { I } - \sigma _ { 0 } ^ { 2 } \mathbf { \Sigma } \mathbf { \Sigma } _ { > } ^ { \dagger } \mathbf { \Sigma } \mathbf { \Sigma } \mathbf { \Sigma } _ { > } ^ { \dagger ^ { T } }$
173
+ 7 for t ← 1 to τ do
174
+ 8 Draw $\mathbf { z } _ { t } \sim \mathcal { N } \left( 0 , \mathbf { I } \right)$
175
+ 9 $\begin{array} { r l } & { \mathbf { d } _ { t } \xleftarrow \Sigma ^ { T } \cdot \left| \sigma _ { 0 } ^ { 2 } \mathbf { I } - \sigma _ { i } ^ { 2 } \Sigma \Sigma ^ { T } \right| ^ { \dagger } \cdot \left( \mathbf { U } ^ { T } \mathbf { y } - \Sigma \mathbf { V } ^ { T } \mathbf { x } _ { t - 1 } \right) + \left( \mathbf { V } ^ { T } \cdot \mathbf { s } \left( \mathbf { x } _ { t - 1 } , \sigma _ { i } \right) \right) \big | _ { \ng } } \\ & { \mathbf { x } _ { t } \xleftarrow \mathbf { V } \cdot \left( \mathbf { V } ^ { T } \mathbf { x } _ { t - 1 } + c \mathbf { A } _ { i } \mathbf { d } _ { t } + \sqrt { 2 c } \mathbf { A } _ { i } ^ { \frac { 1 } { 2 } } \mathbf { z } _ { t } \right) } \end{array}$
176
+ 10
177
+ 11 end
178
+ 12 $\mathbf { x } _ { 0 } \mathbf { x } _ { \tau }$
179
+ 13 end
180
+
181
+ Note that when we set $\mathbf { H } = \mathbf { \Omega } 0$ and $\sigma _ { 0 } = 0$ , implying no measurements, the above algorithm degenerates to an image synthesis, exactly as in [44]. Two other special cases of this algorithm are obtained for $\mathbf { H } = \mathbf { I }$ or $\mathbf { H } = \mathbf { I }$ with some rows removed, the first referring to denoising and the second to noisy inpainting, both cases shown in [21]. Lastly, for the choices of $\mathbf { H }$ as in [20] or [44, 46] and with $\sigma _ { 0 } = 0$ , the above algorithm collapses to a close variant of their proposed iterative methods.
182
+
183
+ # 5 Experimental Results
184
+
185
+ In our experiments we use the NCSNv2 [45] network in order to estimate the score function of the prior distribution. Three different NCSNv2 models are used, each trained separately on the training sets of: (i) images of size $6 4 \times 6 4$ pixels from the CelebA dataset [27]; (ii) images of size $1 2 8 \times 1 2 8$ pixels from LSUN [56] bedrooms dataset; and (iii) LSUN $1 2 8 \times 1 2 8$ images of towers. We demonstrate SNIPS’ capabilities on the respective test sets for image deblurring, super resolution, and compressive sensing. In each of the experiments, we run our algorithm 8 times, producing 8 samples for each input. We examine both the samples themselves and their mean, which serves as an approximation of the MMSE solution, $\mathbb { E } \left[ \mathbf { x } | \mathbf { y } \right]$ .
186
+
187
+ ![](images/0fe681d53940c46fc3dcbf035756174ac25fbeaf06344ec3bce31a956ddec79b.jpg)
188
+ Figure 4: Super resolution results on CelebA [27] images (downscaling $4 : 1$ by plain averaging and adding noise with $\sigma _ { 0 } = 0 . 1$ ).
189
+
190
+ ![](images/6f296f6b2a2fc1162ce50cccb9a0e568e4e043a1cf1bb3e7155c6118f8d3aa75.jpg)
191
+ Figure 5: Super resolution results on CelebA [27] images (downscaling $2 : 1$ by plain averaging and adding noise with $\sigma _ { 0 } = 0 . 1$ ).
192
+
193
+ For image deblurring, we use a uniform $5 \times 5$ blur kernel, and an additive white Gaussian noise with $\sigma _ { 0 } = 0 . 1$ (referring to pixel values in the range $[ 0 , 1 ] \rangle$ ). Figure 1 demonstrates the obtained results for several images taken from the CelebA dataset. As can be seen, SNIPS produces visually pleasing, diverse samples.
194
+
195
+ For super resolution, the images are downscaled using a block averaging filter, i.e., each nonoverlapping block of pixels in the original image is averaged into one pixel in the low-resolution image. We use blocks of size $2 \times 2$ or $4 \times 4$ pixels, and assume the low-resolution image to include an additive white Gaussian noise. We showcase results on LSUN and CelebA in Figures 2, 4, and 5.
196
+
197
+ For compressive sensing, we use three random projection matrices with singular values of 1, that compress the image by $2 5 \%$ , $1 2 . 5 \%$ , and $6 . 2 5 \%$ . As can be seen in Figure 3 and as expected, the more aggressive the compression, the more significant are the variations in reconstruction.
198
+
199
+ We calculate the average PSNR (peak signal-to-noise ratio) of each of the 8 samples in our experiments, as well as the PSNR of their mean, as shown in Table 1. In all the experiments, the empirical conditional mean presents an improvement of around $2 . 4 \ : \mathrm { d B }$ in PSNR, even though it is less visually appealing compared to the samples. This is consistent with the theory in [5], which states that the difference in PSNR between posterior samples and the conditional mean (the MMSE estimator) should be $3 \mathrm { d B }$ , with the MMSE estimator having poorer perceptual quality but better PSNR.
200
+
201
+ A comparison of our deblurring results to those obtained by RED [39] is detailed in the supplemental material. We show that SNIPS exhibits superior performance over RED, achieving more than $1 1 \%$ improvement in PSNR and more than $5 8 \%$ improvement in LPIPS [62], a perceptual quality metric.
202
+
203
+ # 5.1 Assessing Faithfulness to the Measurements
204
+
205
+ A valid solution to an inverse problem should satisfy two conditions: (i) It should be visually pleasing, consistent with the underlying prior distribution of images, and (ii) It should be faithful to the given measurement, maintaining the relationship as given in the problem setting. Since the prior distribution is unknown, we assess the first condition by visually observing the obtained solutions and their tendency to look realistic. As for the second condition, we perform the following computation: We degrade the obtained reconstruction $\hat { \bf x }$ by $\mathbf { H }$ , and calculate its difference from the given measurement $\mathbf { y }$ , obtaining $\mathbf { y } - \mathbf { H } \hat { \mathbf { x } }$ . According to the problem setting, this difference should be an additive white Gaussian noise vector with a standard deviation of $\sigma _ { 0 }$ . We examine this difference by calculating its empirical standard deviation, and performing the Pearson-D’Agostino [8] test of normality on it, accepting it as a Gaussian vector if the obtained p-value is greater than 0.05. We also calculate the Pearson correlation coefficient (denoted as $\rho$ ) among neighboring entries, accepting them as uncorrelated for coefficients smaller than 0.1 in absolute value. In all of our tests, the standard deviation matches $\sigma _ { 0 }$ almost exactly, the Pearson correlation coefficient satisfies $| \rho | < 0 . 1$ , and we obtain p-values greater than 0.05 in around $9 5 \%$ of the samples (across all experiments). These results empirically show that our algorithm produces valid solutions to the given inverse problems.
206
+
207
+ Table 1: PSNR results for different inverse problems on 8 images from CelebA [27]. We ran SNIPS 8 times, and obtained 8 samples. The average PSNR for each of the samples is in the first column, while the average PSNR for the mean of the 8 samples for each image is in the second one.
208
+
209
+ <table><tr><td>Problem</td><td>Sample PSNR</td><td>Mean PSNR</td></tr><tr><td>Uniform deblurring</td><td>25.54</td><td>28.01</td></tr><tr><td>Super resolution (by 2)</td><td>25.58</td><td>28.03</td></tr><tr><td>Super resolution (by 4)</td><td>21.90</td><td>24.31</td></tr><tr><td>Compressive sensing (by 25%)</td><td>25.68</td><td>28.06</td></tr><tr><td>Compressive sensing (by 12.5%)</td><td>22.34</td><td>24.67</td></tr></table>
210
+
211
+ ![](images/31b80bec3255fef5b0e8eb8f928b222f9c9b72045dbebf8254989ebe23acad3b.jpg)
212
+ Figure 6: Compressive sensing results on LSUN [56] tower images (compression by $2 5 \%$ and adding noise with $\sigma _ { 0 } = 0 . 0 4 )$ .
213
+
214
+ # 6 Conclusion and Future Work
215
+
216
+ SNIPS, presented in this paper, is a novel stochastic algorithm for solving general noisy linear inverse problems. This method is based on annealed Langevin dynamics and Newton’s method, and relies on the availability of a pre-trained Gaussian MMSE denoiser. SNIPS produces a random variety of high quality samples from the posterior distribution of the unknown given the measurements, while guaranteeing their validity with respect to the given data. This algorithm’s derivation includes an intricate choice of the injected annealed noise in the Langevin update equations, and an SVD decomposition of the degradation operator for decoupling the measurements’ dependencies. We demonstrate SNIPS’ success on image deblurring, super resolution, and compressive sensing.
217
+
218
+ Extensions of this work should focus on SNIPS’ limitations: (i) The need to deploy SVD decomposition of the degradation matrix requires a considerable amount of memory and computations, and hinders the algorithm’s scalability; (ii) The current version of SNIPS does not handle general content images, a fact that is related to the properties of the denoiser being used [41]; and (iii) SNIPS, as any other Langevin based method, requires (too) many iterations (e.g., in our super-resolution tests on CelebA, 2 minutes are required for producing 8 sample images), and means for its acceleration should be explored.
219
+
220
+ # 7 Funding Transparency Statement
221
+
222
+ This research was partially supported by the Israel Science Foundation (ISF) under Grant 335/18 and the Technion Hiroshi Fujiwara Cyber Security Research Center and the Israel Cyber Bureau. Bahjat Kawar’s scholarship was partially provided by Li Ka Shing Fellowships and the Planning and Budgeting Committee of the Israel Council for Higher Education.
223
+
224
+ # References
225
+
226
+ [1] S. Arridge, P. Maass, O. Öktem, and C.-B. Schönlieb. Solving inverse problems using datadriven models. Acta Numerica, 28:1–174, 2019.
227
+ [2] Y. Bahat and T. Michaeli. Explorable super resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2716–2725, 2020.
228
+ [3] J. Besag. Markov Chain Monte Carlo for statistical inference. Center for Statistics and the Social Sciences, 9:24–25, 2001.
229
+ [4] S. A. Bigdeli, M. Jin, P. Favaro, and M. Zwicker. Deep mean-shift priors for image restoration. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 763–772, 2017.
230
+ [5] Y. Blau and T. Michaeli. The perception-distortion tradeoff. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6228–6237, 2018.
231
+ [6] A. Buades, B. Coll, and J.-M. Morel. A non-local algorithm for image denoising. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 2, pages 60–65. IEEE, 2005.
232
+ [7] G. T. Buzzard, S. H. Chan, S. Sreehari, and C. A. Bouman. Plug-and-play unplugged: Optimization-free reconstruction using consensus equilibrium. SIAM Journal on Imaging Sciences, 11(3):2001–2020, 2018.
233
+ [8] R. D’Agostino and E. S. Pearson. Tests for departure from normality. Empirical results for the√ distributions of $b ^ { 2 }$ and $\sqrt { b }$ . Biometrika, 60(3):613–622, 1973.
234
+ [9] A. Danielyan, V. Katkovnik, and K. Egiazarian. BM3D frames and variational image deblurring. IEEE Transactions on Image Processing, 21(4):1715–1728, 2011.
235
+ [10] C. Dong, C. C. Loy, and X. Tang. Accelerating the super-resolution convolutional neural network. In European Conference on Computer Vision, pages 391–407. Springer, 2016.
236
+ [11] W. Dong, L. Zhang, G. Shi, and X. Li. Nonlocally centralized sparse representation for image restoration. IEEE Transactions on Image Processing, 22(4):1620–1630, 2012.
237
+ [12] B. Efron. Tweedie’s formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011.
238
+ [13] M. Elad and M. Aharon. Image denoising via sparse and redundant representations over learned dictionaries. IEEE Transactions on Image Processing, 15(12):3736–3745, 2006.
239
+ [14] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014.
240
+ [15] B. Guo, Y. Han, and J. Wen. AGEM: solving linear inverse problems via deep priors and sampling. Advances in Neural Information Processing Systems, 32:547–558, 2019.
241
+ [16] H. Gupta, K. H. Jin, H. Q. Nguyen, M. T. McCann, and M. Unser. CNN-based projected gradient descent for consistent CT image reconstruction. IEEE Transactions on Medical Imaging, 37(6): 1440–1453, 2018.
242
+ [17] M. Haris, G. Shakhnarovich, and N. Ukita. Deep back-projection networks for super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1664–1673, 2018.
243
+ [18] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851. Curran Associates, Inc., 2020.
244
+ [19] C. M. Hyun, H. P. Kim, S. M. Lee, S. Lee, and J. K. Seo. Deep learning for undersampled MRI reconstruction. Physics in Medicine & Biology, 63(13):135007, 2018.
245
+ [20] Z. Kadkhodaie and E. P. Simoncelli. Solving linear inverse problems using the prior implicit in a denoiser. arXiv preprint arXiv:2007.13640, 2020.
246
+ [21] B. Kawar, G. Vaksman, and M. Elad. Stochastic image denoising by sampling from the posterior distribution. arXiv preprint arXiv:2101.09552, 2021.
247
+ [22] O. Kupyn, T. Martyniuk, J. Wu, and Z. Wang. DeblurGAN-v2: deblurring (orders-of-magnitude) faster and better. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8878–8887, 2019.
248
+ [23] R. Laumont, V. De Bortoli, A. Almansa, J. Delon, A. Durmus, and M. Pereyra. Bayesian imaging using plug & play priors: When Langevin meets Tweedie. arXiv preprint arXiv:2103.04715, 2021.
249
+ [24] G. Lebanon. Probability: The Analysis of Data, volume 1, pages 104–107. CreateSpace Independent Publishing Platform, 2012.
250
+ [25] S. Lefkimmiatis. Non-local color image denoising with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3587–3596, 2017.
251
+ [26] H. Li, Y. Yang, M. Chang, H. Feng, Z. Xu, Q. Li, and Y. Chen. SRDiff: single image superresolution with diffusion probabilistic models. arXiv e-prints, pages arXiv–2104, 2021.
252
+ [27] Z. Liu, P. Luo, X. Wang, and X. Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 3730–3738, 2015.
253
+ [28] A. Lucas, M. Iliadis, R. Molina, and A. K. Katsaggelos. Using deep neural networks for inverse problems in imaging: beyond analytical methods. IEEE Signal Processing Magazine, 35(1): 20–36, 2018.
254
+ [29] M. T. McCann, K. H. Jin, and M. Unser. Convolutional neural networks for inverse problems in imaging: A review. IEEE Signal Processing Magazine, 34(6):85–95, 2017.
255
+ [30] T. Meinhardt, M. Moller, C. Hazirbas, and D. Cremers. Learning proximal operators: Using denoising networks for regularizing inverse imaging problems. In Proceedings of the IEEE International Conference on Computer Vision, pages 1781–1790, 2017.
256
+ [31] S. Menon, A. Damian, S. Hu, N. Ravi, and C. Rudin. PULSE: Self-supervised photo upsampling via latent space exploration of generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2437–2445, 2020.
257
+ [32] K. Miyasawa. An empirical Bayes estimator of the mean of a normal population. Bull. Inst. Internat. Statist., 38:181–188, 1961.
258
+ [33] G. Ohayon, T. Adrai, G. Vaksman, M. Elad, and P. Milanfar. High perceptual quality image denoising with a posterior sampling CGAN. arXiv preprint arXiv:2103.04192, 2021.
259
+ [34] S. Peng and K. Li. Generating unobserved alternatives: A case study through super-resolution and decompression. arXiv preprint arXiv:2011.01926, 2020.
260
+ [35] A. Radford, L. Metz, and S. Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In 4th International Conference on Learning Representations, 2016.
261
+ [36] I. Ram, M. Elad, and I. Cohen. Image processing using smooth ordering of its patches. IEEE Transactions on Image Processing, 22(7):2764–2774, 2013.
262
+ [37] S. Ravishankar, J. C. Ye, and J. A. Fessler. Image reconstruction: From sparsity to data-adaptive methods and machine learning. Proceedings of the IEEE, 108(1):86–109, 2019.
263
+ [38] G. O. Roberts, R. L. Tweedie, et al. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, 1996.
264
+ [39] Y. Romano, M. Elad, and P. Milanfar. The little engine that could: Regularization by denoising (RED). SIAM Journal on Imaging Sciences, 10(4):1804–1844, 2017.
265
+ [40] A. Rond, R. Giryes, and M. Elad. Poisson inverse problems by the plug-and-play scheme. Journal of Visual Communication and Image Representation, 41:96–108, 2016.
266
+ [41] E. Ryu, J. Liu, S. Wang, X. Chen, Z. Wang, and W. Yin. Plug-and-play methods provably converge with properly trained denoisers. In International Conference on Machine Learning, pages 5546–5557. PMLR, 2019.
267
+ [42] C. Saharia, J. Ho, W. Chan, T. Salimans, D. J. Fleet, and M. Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021.
268
+ [43] U. Simsekli, R. Badeau, T. Cemgil, and G. Richard. Stochastic Quasi-Newton Langevin Monte Carlo. In International Conference on Machine Learning, pages 642–651. PMLR, 2016.
269
+ [44] Y. Song and S. Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, pages 11918–11930, 2019.
270
+ [45] Y. Song and S. Ermon. Improved techniques for training score-based generative models. In Advances in Neural Information Processing Systems, 33, 2020.
271
+ [46] Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
272
+ [47] C. M. Stein. Estimation of the mean of a multivariate normal distribution. The annals of Statistics, pages 1135–1151, 1981.
273
+ [48] M. Suin, K. Purohit, and A. Rajagopalan. Spatially-attentive patch-hierarchical network for adaptive motion deblurring. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3606–3615, 2020.
274
+ [49] Y. Sun, B. Wohlberg, and U. S. Kamilov. An online plug-and-play algorithm for regularized image reconstruction. IEEE Transactions on Computational Imaging, 5(3):395–408, 2019.
275
+ [50] T. Tirer and R. Giryes. Image restoration by iterative denoising and backward projections. IEEE Transactions on Image Processing, 28(3):1220–1234, 2018.
276
+ [51] G. Vaksman, M. Zibulevsky, and M. Elad. Patch ordering as a regularization for inverse problems in image processing. SIAM Journal on Imaging Sciences, 9(1):287–319, 2016.
277
+ [52] G. Vaksman, M. Elad, and P. Milanfar. LIDIA: Lightweight learned image denoising with instance adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 524–525, 2020.
278
+ [53] S. V. Venkatakrishnan, C. A. Bouman, and B. Wohlberg. Plug-and-play priors for model based reconstruction. In 2013 IEEE Global Conference on Signal and Information Processing, pages 945–948. IEEE, 2013.
279
+ [54] X. Wang, K. Yu, S. Wu, J. Gu, Y. Liu, C. Dong, Y. Qiao, and C. Change Loy. ESRGAN: enhanced super-resolution generative adversarial networks. In Proceedings of the European Conference on Computer Vision (ECCV) Workshops, 2018.
280
+ [55] J. Yang, J. Wright, T. S. Huang, and Y. Ma. Image super-resolution via sparse representation. IEEE transactions on image processing, 19(11):2861–2873, 2010.
281
+ [56] F. Yu, A. Seff, Y. Zhang, S. Song, T. Funkhouser, and J. Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
282
+ [57] G. Yu, G. Sapiro, and S. Mallat. Solving inverse problems with piecewise linear estimators: From Gaussian mixture models to structured sparsity. IEEE Transactions on Image Processing, 21(5):2481–2499, 2011.
283
+ [58] J. Zhang and B. Ghanem. ISTA-Net: interpretable optimization-inspired deep network for image compressive sensing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1828–1837, 2018.
284
+ [59] K. Zhang, W. Zuo, Y. Chen, D. Meng, and L. Zhang. Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Transactions on Image Processing, 26(7): 3142–3155, 2017.
285
+ [60] K. Zhang, W. Zuo, S. Gu, and L. Zhang. Learning deep CNN denoiser prior for image restoration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3929–3938, 2017.
286
+ [61] K. Zhang, W. Zuo, and L. Zhang. FFDNet: toward a fast and flexible solution for CNN-based image denoising. IEEE Transactions on Image Processing, 27(9):4608–4622, 2018.
287
+ [62] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018.
288
+ [63] D. Zoran and Y. Weiss. From learning models of natural image patches to whole image restoration. In 2011 International Conference on Computer Vision, pages 479–486. IEEE, 2011.
parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_content_list.json ADDED
@@ -0,0 +1,1109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SNIPS: Solving Noisy Inverse Problems Stochastically ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 122,
9
+ 821,
10
+ 148
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Bahjat Kawar, Gregory Vaksman, Michael Elad Computer Science Department, Technion, Haifa, Israel {bahjat.kawar, grishav, elad}@cs.technion.ac.il ",
17
+ "bbox": [
18
+ 299,
19
+ 200,
20
+ 699,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 279,
32
+ 535,
33
+ 295
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In this work we introduce a novel stochastic algorithm dubbed SNIPS, which draws samples from the posterior distribution of any linear inverse problem, where the observation is assumed to be contaminated by additive white Gaussian noise. Our solution incorporates ideas from Langevin dynamics and Newton’s method, and exploits a pre-trained minimum mean squared error (MMSE) Gaussian denoiser. The proposed approach relies on an intricate derivation of the posterior score function that includes a singular value decomposition (SVD) of the degradation operator, in order to obtain a tractable iterative algorithm for the desired sampling. Due to its stochasticity, the algorithm can produce multiple high perceptual quality samples for the same noisy observation. We demonstrate the abilities of the proposed paradigm for image deblurring, super-resolution, and compressive sensing. We show that the samples produced are sharp, detailed and consistent with the given measurements, and their diversity exposes the inherent uncertainty in the inverse problem being solved. ",
40
+ "bbox": [
41
+ 233,
42
+ 310,
43
+ 766,
44
+ 503
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 531,
55
+ 312,
56
+ 549
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Many problems in the field of image processing can be cast as noisy linear inverse problems. This family of tasks includes denoising, inpainting, deblurring, super resolution, compressive sensing, and many other image recovery problems. A general linear inverse problem is posed as ",
63
+ "bbox": [
64
+ 174,
65
+ 563,
66
+ 823,
67
+ 606
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "equation",
73
+ "img_path": "images/c41395ed0dd6930514e9332a785616ea4af1c7e258a5b7f5cd52905e5f8573c0.jpg",
74
+ "text": "$$\n\\mathbf { y } = \\mathbf { H } \\mathbf { x } + \\mathbf { z } ,\n$$",
75
+ "text_format": "latex",
76
+ "bbox": [
77
+ 450,
78
+ 613,
79
+ 544,
80
+ 630
81
+ ],
82
+ "page_idx": 0
83
+ },
84
+ {
85
+ "type": "text",
86
+ "text": "where we aim to recover a signal $\\mathbf { x }$ from its measurement $\\mathbf { y }$ , given through a linear degradation operator $\\mathbf { H }$ and a contaminating noise, being additive, white and Gaussian, $\\mathbf { \\overline { { z } } } \\sim \\mathcal { N } \\left( 0 , \\sigma _ { 0 } ^ { 2 } \\mathbf { \\check { I } } \\right)$ . In this work we assume that both $\\mathbf { H }$ and $\\sigma _ { 0 }$ are known. ",
87
+ "bbox": [
88
+ 174,
89
+ 637,
90
+ 825,
91
+ 679
92
+ ],
93
+ "page_idx": 0
94
+ },
95
+ {
96
+ "type": "text",
97
+ "text": "Over the years, many strategies, algorithms and underlying statistical models were developed for handling image restoration problems. A key ingredient in many of the classic attempts is the prior that aims to regularize the inversion process and lead to visually pleasing results. Among the various options explored, we mention sparsity-inspired techniques [13, 55, 11], local Gaussian-mixture modeling [57, 63], and methods relying on non-local self-similarity [6, 9, 36, 51]. More recently, and with the emergence of deep learning techniques, a direct design of the recovery path from y to an estimate of $\\mathbf { x }$ took the lead, yielding state-of-the-art results in various linear inverse problems, such as denoising [25, 59, 61, 52], deblurring [22, 48], super resolution [10, 17, 54] and other tasks [29, 28, 19, 16, 37, 58]. ",
98
+ "bbox": [
99
+ 174,
100
+ 685,
101
+ 825,
102
+ 810
103
+ ],
104
+ "page_idx": 0
105
+ },
106
+ {
107
+ "type": "text",
108
+ "text": "Despite the evident success of the above techniques, many image restoration algorithms still have a critical shortcoming: In cases of severe degradation, most recovery algorithms tend to produce washed out reconstructions that lack details. Indeed, most image restoration techniques seek a reconstruction that minimizes the mean squared error between the restored image, ˆx, and the unknown original one, x. When the degradation is acute and information is irreversibly lost, image reconstruction becomes a highly ill-posed problem, implying that many possible clean images could explain the given measurements. The MMSE solution averages all these candidate solutions, being the conditional mean of the posterior of $\\mathbf { x }$ given y, leading to an image with loss of fine details in the majority of practical cases. A recent work reported in [5] has shown that reconstruction algorithms necessarily suffer from a perception-distortion tradeoff, i.e., targeting a minimization of the error between $\\hat { \\bf x }$ and $\\mathbf { x }$ (in any metric) is necessarily accompanied by a compromised perceptual quality. As a consequence, as long as we stick to the tendency to design recovery algorithms that aim for minimum MSE (or other distances), only a limited perceptual improvement can be expected. ",
109
+ "bbox": [
110
+ 174,
111
+ 816,
112
+ 825,
113
+ 900
114
+ ],
115
+ "page_idx": 0
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "",
120
+ "bbox": [
121
+ 174,
122
+ 90,
123
+ 825,
124
+ 188
125
+ ],
126
+ "page_idx": 1
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "When perceptual quality becomes our prime objective, the strategy for solving inverse problems must necessarily change. More specifically, the solution should concentrate on producing a sample (or many of them) from the posterior distribution $p \\left( \\mathbf { x } | \\mathbf { y } \\right)$ instead of its conditional mean. Recently, two such approaches have been suggested – GAN-based and Langevin sampling. Generative Adversarial Networks (GANs) have shown impressive results in generating realistically looking images (e.g., [14, 35]). GANs can be utilized for solving inverse problems while producing high-quality images (see e.g. [2, 31, 34]). These solvers aim to produce a diverse set of output images that are consistent with the measurements, while also being aligned with the distribution of clean examples. A major disadvantage of GAN-based algorithms for inverse problems is their tendency (as practiced in [2, 31, 34]) to assume noiseless measurements, a condition seldom met in practice. An exception to this is the work reported in [33], which adapts a conditional GAN to become a stochastic denoiser. ",
131
+ "bbox": [
132
+ 174,
133
+ 194,
134
+ 825,
135
+ 347
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "The second approach for sampling from the posterior, and the one we shall be focusing on in this paper, is based on Langevin dynamics. This core iterative technique enables sampling from a given distribution by leveraging the availability of the score function – the gradient of the log of the probability density function [38, 3]. The work reported in [44, 20, 46] utilizes the annealed Langevin dynamics method, both for image synthesis and for solving noiseless inverse problems.1 Their synthesis algorithm relies on an MMSE Gaussian denoiser (given as a neural network) for approximating a gradually blurred score function. In their treatment of inverse problems, the conditional score remains tractable and manageable due to the noiseless measurements assumption. ",
142
+ "bbox": [
143
+ 174,
144
+ 353,
145
+ 825,
146
+ 464
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "The question addressed in this paper is the following: How can the above line of Langevin-based work be generalized for handling linear inverse problems, as in Equation 1, in which the measurements are noisy? A partial and limited answer to this question has already been given in [21] for the tasks of image denoising and inpainting. The present work generalizes these ([44, 20, 46, 21]) results, and introduces a systematic way for sampling from the posterior distribution of any given noisy linear inverse problem. As we carefully show, this extension is far from being trivial, due to two prime reasons: (i) The involvement of the degradation operator H, which poses a difficulty for establishing a relationship between the reconstructed image and the noisy observation; and (ii) The intricate connection between the measurements’ and the synthetic annealed Langevin noise. Our proposed remedy is a decorrelation of the measurements equation via a singular value decomposition (SVD) of the operator H, which decouples the dependencies between the measurements, enabling each to be addressed by an adapted iterative process. In addition, we define the annealing noise to be built as portions of the measurement noise itself, in a manner that facilitates a constructive derivation of the conditional score function. ",
153
+ "bbox": [
154
+ 174,
155
+ 469,
156
+ 825,
157
+ 662
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Following earlier work [44, 20, 46, 21], our algorithm is initialized with a random noise image, gradually converging to the reconstructed result, while following the direction of the log-posterior gradient, estimated using an MMSE denoiser. Via a careful construction of the gradual annealing noise sequence, from very high values to low ones, the entries in the derived score switch mode. Those referring to non-zero singular values start by being purely dependent on the measurements, and then transition to incorporate prior information based on the denoiser. As for entries referring to zero singular values, their corresponding entries undergo a pure synthesis process based on the prior-only score function. Note that the denoiser blends values in the evolving sample, thus intermixing the influence of the gradient entries. Our derivations include an analytical expression for a positiondependent step size vector, drawing inspiration from Newton’s method in optimization. This stabilizes the algorithm and is shown to be essential for its success. ",
164
+ "bbox": [
165
+ 174,
166
+ 670,
167
+ 825,
168
+ 821
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "We refer hereafter to our algorithm as SNIPS (Solution of Noisy Inverse Problems Stochastically). Observe that as we target to sample from the posterior distribution $p \\left( \\mathbf { x } | \\mathbf { y } \\right)$ , different runs of SNIPS on the same input necessarily yield different results, all of which valid solutions to the given inverse problem. This should not come as a surprise, as ill-posedness implies that there are multiple viable solutions for the same data, as has already been suggested in the context of super resolution [31, 2, 34]. We demonstrate SNIPS on image deblurring, single image super resolution, and compressive sensing, all of which contain non-negligible noise, and emphasize the high perceptual quality of the results, their diversity, and their relation to the MMSE estimate. ",
175
+ "bbox": [
176
+ 176,
177
+ 828,
178
+ 823,
179
+ 871
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "image",
185
+ "img_path": "images/c82146786b5adb3c31fe1fe0e0cc72d1662774fbb84d513189a447eec3bd7cf3.jpg",
186
+ "image_caption": [
187
+ "Figure 1: Deblurring results on CelebA [27] images (uniform $5 \\times 5$ blur and an additive noise with $\\sigma _ { 0 } = 0 . 1$ ). Here and in all other shown figures, the standard deviation image is scaled by 4 for better visual inspection. "
188
+ ],
189
+ "image_footnote": [],
190
+ "bbox": [
191
+ 218,
192
+ 88,
193
+ 779,
194
+ 251
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "",
201
+ "bbox": [
202
+ 174,
203
+ 321,
204
+ 826,
205
+ 392
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "To summarize, this paper’s contributions are threefold: ",
212
+ "bbox": [
213
+ 174,
214
+ 398,
215
+ 532,
216
+ 412
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "• We present an intricate derivation of the blurred posterior score function for general noisy inverse problems, where both the measurement and the target image contain delicately inter-connected additive white Gaussian noise. • We introduce a novel stochastic algorithm – SNIPS – that can sample from the posterior distribution of these problems. The algorithm relies on the availability of an MMSE denoiser. • We demonstrate impressive results of SNIPS on image deblurring, single image super resolution, and compressive sensing, all of which are highly noisy and ill-posed. ",
223
+ "bbox": [
224
+ 217,
225
+ 422,
226
+ 825,
227
+ 529
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Before diving into the details of this work, we should mention that using Gaussian denoisers iteratively for handling general linear inverse problems has been already proposed in the context of the Plugand-Play-Prior $( \\mathrm { P n P } )$ method [53] and RED [39], and their many followup papers (e.g., [60, 30, 1, 49, 7, 50, 40, 4]). However, both PnP and RED are quite different from our work, as they do not target sampling from the posterior, but rather focus on MAP or MMSE estimation. ",
234
+ "bbox": [
235
+ 174,
236
+ 537,
237
+ 826,
238
+ 608
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "2 Background ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 173,
248
+ 626,
249
+ 308,
250
+ 643
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "The Langevin dynamics algorithm [3, 38] suggests sampling from a probability distribution $p \\left( \\mathbf { x } \\right)$ using the iterative transition rule ",
257
+ "bbox": [
258
+ 171,
259
+ 656,
260
+ 823,
261
+ 684
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "equation",
267
+ "img_path": "images/65fe25b37c181016c6e26fe3b3166fadef13175e5afdcb074d833e13023e5d2e.jpg",
268
+ "text": "$$\n{ \\bf x } _ { t + 1 } = { { \\bf x } _ { t } } + \\alpha \\nabla _ { { \\bf x } _ { t } } \\log p \\left( { { \\bf x } _ { t } } \\right) + \\sqrt { 2 \\alpha } { \\bf z } _ { t } \\mathrm { ~ , ~ }\n$$",
269
+ "text_format": "latex",
270
+ "bbox": [
271
+ 361,
272
+ 688,
273
+ 633,
274
+ 707
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "where $\\mathbf { z } _ { t } \\sim \\mathcal { N } ( 0 , \\mathbf { I } )$ and $\\alpha$ is an appropriately chosen small constant. The added $\\mathbf { z } _ { t }$ allows for stochastic sampling, avoiding a collapse to a maximum of the distribution. Initialized randomly, after a sufficiently large number of iterations, and under some mild conditions, this process converges to a sample from the desired distribution $p \\left( \\mathbf { x } \\right)$ [38]. ",
281
+ "bbox": [
282
+ 174,
283
+ 709,
284
+ 825,
285
+ 766
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "The work reported in [44] extends the aforementioned algorithm into annealed Langevin dynamics. The annealing proposed replaces the score function in Equation 2 with a blurred version of it, $\\nabla _ { \\tilde { \\mathbf { x } } _ { t } } \\log { p \\left( \\tilde { \\mathbf { x } } _ { t } \\right) }$ , where $\\tilde { \\mathbf { x } } _ { \\mathbf { t } } = \\mathbf { x } _ { t } + \\mathbf { n }$ and $\\mathbf { n } \\sim { \\mathcal { N } } \\left( 0 , \\sigma ^ { 2 } \\mathbf { I } \\right)$ is a synthetically injected noise. The core idea is to start with a very high noise level $\\sigma$ and gradually drop it to near-zero, all while using a step size $\\alpha$ dependent on the noise level. These changes allow the algorithm to converge much faster and perform better, because it widens the basin of attraction of the sampling process. The work in [20] further develops this line of work by leveraging a brilliant relation attributed to Miyasawa [32] (also known as Stein’s integration by parts trick [47] or Tweedie’s identity [12]). It is given as ",
292
+ "bbox": [
293
+ 173,
294
+ 771,
295
+ 825,
296
+ 883
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "equation",
302
+ "img_path": "images/8e4563b900dd22b4a378f4305ed6f38a4a6bac2415dc5b293ef59bccbd807e8e.jpg",
303
+ "text": "$$\n{ \\nabla } _ { \\tilde { \\mathbf { x } } _ { t } } \\log p \\left( \\tilde { \\mathbf { x } } _ { t } \\right) = \\frac { \\mathbf { D } \\left( \\tilde { \\mathbf { x } } _ { t } , \\sigma \\right) - \\tilde { \\mathbf { x } } _ { t } } { { \\sigma } ^ { 2 } } ,\n$$",
304
+ "text_format": "latex",
305
+ "bbox": [
306
+ 387,
307
+ 885,
308
+ 611,
309
+ 916
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "where $\\mathbf { D } \\left( \\tilde { \\mathbf { x } } _ { t } , \\sigma \\right) = \\mathbb { E } \\left[ \\mathbf { x } | \\tilde { \\mathbf { x } } _ { t } \\right]$ is the minimizer of the MSE measure $\\mathbb { E } \\left[ \\lVert \\mathbf { x } - \\mathbf { D } \\left( \\tilde { \\mathbf { x } } _ { t } , \\sigma \\right) \\rVert _ { 2 } ^ { 2 } \\right]$ , which can be approximated using a denoising neural network. This facilitates the use of denoisers in Langevin dynamics as a replacement for the evasive score function. ",
316
+ "bbox": [
317
+ 176,
318
+ 89,
319
+ 823,
320
+ 132
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "When turning to solve inverse problems, previous work suggests sampling from the posterior distribution $p \\left( \\mathbf { x } | \\mathbf { y } \\right)$ using annealed Langevin dynamics [20, 46, 21] or similar methods [15, 18, 42, 26], by replacing the score function used in the generation algorithm with a conditional one. As it turns out, if limiting assumptions can be posed on the measurements formation, the conditional score is tractable, and thus generalization of the annealed Langevin process to these problems is within reach. Indeed, in [44, 20, 46, 42, 26] the core assumption is $\\mathbf { y } = \\mathbf { H } \\mathbf { x }$ for specific and simplified choices of $\\mathbf { H }$ and with no noise in the measurements. The works in [15, 23] avoid these difficulties altogether by returning to the original (non-annealed) Langevin method, with the unavoidable cost of becoming extremely slow. In addition, their algorithms are demonstrated on inverse problems in which the additive noise is restricted to be very weak. The work in [21] is broader, allowing for an arbitrary additive white Gaussian noise, but limits $\\mathbf { H }$ to the problems of denoising or inpainting. While all these works demonstrate high quality results, there is currently no clear way for deriving the blurred score function of a general linear inverse problem as posed in Equation 1. In the following, we present such a derivation. ",
327
+ "bbox": [
328
+ 173,
329
+ 138,
330
+ 826,
331
+ 333
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3 The Proposed Approach: Deriving the Conditional Score Function ",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 173,
341
+ 351,
342
+ 759,
343
+ 369
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "3.1 Problem Setting ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 174,
353
+ 382,
354
+ 326,
355
+ 397
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "We consider the problem of recovering a signal $\\mathbf { x } \\in \\mathbb { R } ^ { N }$ (where $\\mathbf { x } \\sim p \\left( \\mathbf { x } \\right)$ and $p \\left( \\mathbf { x } \\right)$ is unknown) from the observation $\\mathbf { y } = \\mathbf { H } \\mathbf { x } + \\mathbf { z }$ , where $\\mathbf { y } \\in \\mathbb { R } ^ { M } , \\mathbf { H } \\in \\mathbb { R } ^ { M \\times N } , M \\leq N , \\mathbf { z } \\sim \\mathcal { N } \\left( 0 , \\sigma _ { 0 } ^ { 2 } \\mathbf { I } \\right)$ , and $\\mathbf { H }$ and $\\sigma _ { 0 }$ are known.2 Our ultimate goal is to sample from the posterior $p \\left( \\mathbf { x } | \\mathbf { y } \\right)$ . However, since access to the score function $\\nabla _ { \\mathbf { x } } \\log p ( \\mathbf { x } | \\mathbf { y } )$ is not available, we retarget our goal, as explained above, to sampling from blurred posterior distributions, $p \\left( \\tilde { \\mathbf { x } } | \\mathbf { y } \\right)$ , where $\\tilde { \\mathbf { x } } = \\mathbf { x } + \\mathbf { n }$ and $\\mathbf { n } \\sim { \\mathcal { N } } \\left( 0 , \\sigma ^ { 2 } \\mathbf { I } \\right)$ , with noise levels $\\sigma$ starting very high, and decreasing towards near-zero. ",
362
+ "bbox": [
363
+ 173,
364
+ 406,
365
+ 826,
366
+ 497
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "As explained in the supplemental material, the sampling should be performed in the SVD domain in order to get a tractable derivation of the blurred score function. Thus, we consider the singular value decomposition (SVD) of $\\mathbf { H }$ , given as $\\mathbf { H } = \\mathbf { U } \\pmb { \\Sigma } \\mathbf { V } ^ { T }$ , where $\\mathbf { U } \\in \\mathbb { R } ^ { M \\times M }$ and $\\mathbf { V } \\in \\mathbb { R } ^ { N \\times N }$ are orthogonal matrices, and $\\pmb { \\Sigma } \\in \\mathbb { R } ^ { M \\times N }$ is a rectangular diagonal matrix containing the singular values of H, denoted as {sj}Mj=1 i n descending order $\\quad : s _ { 1 } > s _ { 2 } > \\dots > s _ { M - 1 } > s _ { M } \\geq 0 \\quad$ ). For convenience of notations, we also define $s _ { j } = 0$ for $j = M + 1 , \\dotsc , N$ . To that end, we notice that ",
373
+ "bbox": [
374
+ 173,
375
+ 502,
376
+ 825,
377
+ 592
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/863ea856b7cce1c3b58de72c2976483b4aca738e0aec67aa4fe0802307840972.jpg",
384
+ "text": "$$\np \\left( \\tilde { \\mathbf { x } } | \\mathbf { y } \\right) = p \\left( \\tilde { \\mathbf { x } } | \\mathbf { U } ^ { T } \\mathbf { y } \\right) = p \\left( \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } | \\mathbf { U } ^ { T } \\mathbf { y } \\right) .\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 359,
388
+ 594,
389
+ 637,
390
+ 614
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "The first equality holds because the multiplication of $\\mathbf { y }$ by the orthogonal matrix $\\mathbf { U } ^ { T }$ does not add or remove information, and the second equality holds because the multiplication of $\\tilde { \\bf x }$ by $\\mathbf { V } ^ { T }$ does not change its probability [24]. Therefore, sampling from $p \\left( \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } | \\mathbf { U } ^ { T } \\mathbf { y } \\right)$ and then multiplying the result by $\\mathbf { V }$ will produce the desired sample from $p \\left( \\mathbf { \\tilde { x } } | \\mathbf { y } \\right)$ . As we are using Langevin dynamics, we need to calculate the conditional score function $\\nabla _ { \\mathbf { V } ^ { T } \\widetilde { \\mathbf { x } } } \\log p \\left( \\mathbf { V } ^ { T } \\widetilde { \\mathbf { x } } | \\mathbf { U } ^ { T } \\mathbf { y } \\right)$ . For simplicity, we denote hereafter ${ \\bf y } _ { T } = { \\bf U } ^ { T } { \\bf y } , { \\bf z } _ { T } = { \\bf U } ^ { T } { \\bf z } , { \\bf x } _ { T } = { \\bf V } ^ { T } { \\bf x } , { \\bf n } _ { T } = \\Sigma { \\bf V } ^ { T } { \\bf n }$ , and $\\tilde { \\mathbf { x } } _ { T } = \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } }$ . Observe that with these notations, the measurements equation becomes ",
397
+ "bbox": [
398
+ 173,
399
+ 618,
400
+ 825,
401
+ 723
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/4159b80da532b10c585424ee53f1cacc669df2fb68d4a1d7165dd8b2d3153908.jpg",
408
+ "text": "$$\n\\mathbf { y } = \\mathbf { H } \\mathbf { x } + \\mathbf { z } = \\mathbf { U } \\pmb { \\Sigma } \\mathbf { V } ^ { T } \\mathbf { x } + \\mathbf { z } ,\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 393,
412
+ 727,
413
+ 599,
414
+ 744
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "and thus ",
421
+ "bbox": [
422
+ 174,
423
+ 750,
424
+ 232,
425
+ 762
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "equation",
431
+ "img_path": "images/e2bc92fec592a5fe51b5e71d5a54825861dd4e27b6fc667d33e166ddcfcdb2b6.jpg",
432
+ "text": "$$\n\\mathbf { U } ^ { T } \\mathbf { y } = \\Sigma \\mathbf { V } ^ { T } \\mathbf { x } + \\mathbf { U } ^ { T } \\mathbf { z } = \\Sigma \\mathbf { V } ^ { T } ( \\tilde { \\mathbf { x } } - \\mathbf { n } ) + \\mathbf { U } ^ { T } \\mathbf { z } = \\Sigma \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } - \\Sigma \\mathbf { V } ^ { T } \\mathbf { n } + \\mathbf { U } ^ { T } \\mathbf { z } ,\n$$",
433
+ "text_format": "latex",
434
+ "bbox": [
435
+ 236,
436
+ 765,
437
+ 759,
438
+ 784
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "where we have relied on the relation $\\tilde { \\mathbf { x } } = \\mathbf { x } + \\mathbf { n }$ . This leads to ",
445
+ "bbox": [
446
+ 173,
447
+ 787,
448
+ 586,
449
+ 801
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "equation",
455
+ "img_path": "images/6e55a43e28f9c7f94ced77a84b4003c8cc93fcc1582d821d290152ac8f83728c.jpg",
456
+ "text": "$$\n{ \\bf y } _ { T } = \\pmb { \\Sigma } \\tilde { \\bf x } _ { T } - { \\bf n } _ { T } + { \\bf z } _ { T } .\n$$",
457
+ "text_format": "latex",
458
+ "bbox": [
459
+ 416,
460
+ 806,
461
+ 581,
462
+ 823
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "In this formulation, which will aid in deriving the conditional score, our aim is to make design choices on ${ \\bf n } _ { T }$ such that ${ \\bf z } _ { T } - { \\bf n } _ { T }$ has uncorrelated entries and is independent of $\\tilde { \\bf x } _ { T }$ . This brings us to the formation of the synthetic annealed noise, which is an intricate ingredient in our derivations. ",
469
+ "bbox": [
470
+ 174,
471
+ 833,
472
+ 823,
473
+ 876
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "We base this formation on the definition of a sequence of noise levels $\\{ \\sigma _ { i } \\} _ { i = 1 } ^ { L + 1 }$ such that $\\sigma _ { 1 } > \\sigma _ { 2 } > \\cdot \\cdot \\cdot > \\sigma _ { L } > \\sigma _ { L + 1 } = 0$ , where $\\sigma _ { 1 }$ is high (possibly $\\sigma _ { 1 } > \\| \\mathbf { x } \\| _ { \\infty } )$ and $\\sigma _ { L }$ is close to zero. We require that for every $j$ such that $s _ { j } \\neq 0$ , there exists $i _ { j }$ such that $\\sigma _ { i _ { j } } s _ { j } < \\sigma _ { 0 }$ and $\\sigma _ { i _ { j } - 1 } s _ { j } > \\sigma _ { 0 }$ . This implies $\\forall i : \\sigma _ { i } s _ { j } \\neq \\sigma _ { 0 }$ , which helps ease notations. SNIPS works just as well for $\\sigma _ { i } s _ { j } = \\sigma _ { 0 }$ . ",
480
+ "bbox": [
481
+ 173,
482
+ 89,
483
+ 826,
484
+ 148
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Using $\\{ \\sigma _ { i } \\} _ { i = 1 } ^ { L + 1 }$ , we would like to define $\\left\\{ \\tilde { \\mathbf { x } } _ { i } \\right\\} _ { i = 1 } ^ { L + 1 }$ , a sequence of noisy versions of $\\mathbf { x }$ , where the noise level in $\\tilde { \\mathbf { x } } _ { i }$ is $\\sigma _ { i }$ . One might be tempted to define these noise additions as independent of the measurement noise $\\mathbf { z }$ . However, this option leads to a conditional score term that cannot be calculated analytically, as explained in the supplemental material. Therefore, we define these noise additions differently, as carved from $\\mathbf { z }$ in a gradual fashion. To that end, we define $\\tilde { \\mathbf { x } } _ { L + 1 } = \\mathbf { x }$ , and for every $i = L , L - 1 , \\ldots , 1 \\colon \\tilde { \\mathbf { x } } _ { i } = \\tilde { \\mathbf { x } } _ { i + 1 } + \\pmb { \\eta } _ { i }$ , where $\\pmb { \\eta } _ { i } \\sim \\mathcal { N } \\left( 0 , \\left( \\sigma _ { i } ^ { 2 } - \\sigma _ { i + 1 } ^ { 2 } \\right) \\mathbf { I } \\right)$ . This results in $\\tilde { \\mathbf { x } } _ { i } = \\mathbf { x } + \\mathbf { n } _ { i }$ , where $\\begin{array} { r } { \\mathbf { n } _ { i } = \\sum _ { k = i } ^ { L } \\pmb { \\eta } _ { k } \\sim \\mathcal { N } \\left( 0 , \\sigma _ { i } ^ { 2 } \\mathbf { I } \\right) } \\end{array}$ . ",
491
+ "bbox": [
492
+ 173,
493
+ 154,
494
+ 825,
495
+ 261
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "And now we turn to define the statistical dependencies between the measurements’ noise $\\mathbf { z }$ and the artificial noise vectors $\\eta _ { i }$ . Since $\\eta _ { i }$ and $\\mathbf { z }$ are each Gaussian with uncorrelated entries, so are the components of the vectors $\\pmb { \\Sigma } \\mathbf { V } ^ { T } \\pmb { \\eta } _ { i }$ , $\\pmb { \\Sigma } \\mathbf { V } ^ { T } \\mathbf { n } _ { i }$ , and $\\mathbf { z } _ { T }$ . In order to proceed while easing notations, let us focus on a single entry $j$ in these three vectors, for which $s _ { j } > 0$ , and omit this index. We denote these entries as $\\eta _ { T , i } , n _ { T , i }$ and $z _ { T }$ , respectively. We construct $\\eta _ { T , i }$ such that ",
502
+ "bbox": [
503
+ 174,
504
+ 263,
505
+ 825,
506
+ 334
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "equation",
512
+ "img_path": "images/ca598f71ce34de7d18b0e938cffeed2cac4d504ce7554612e0b5083a4359bf45.jpg",
513
+ "text": "$$\n\\mathbb { E } \\left[ \\eta _ { T , i } \\cdot z _ { T } \\right] = \\left\\{ \\begin{array} { l l } { \\mathbb { E } \\left[ \\eta _ { T , i } ^ { 2 } \\right] } & { \\mathrm { f o r } i \\geq i _ { j } } \\\\ { \\mathbb { E } \\left[ \\left( z _ { T } - n _ { T , i _ { j } } \\right) ^ { 2 } \\right] } & { \\mathrm { f o r } i = i _ { j } - 1 } \\\\ { 0 } & { \\mathrm { o t h e r w i s e } . } \\end{array} \\right.\n$$",
514
+ "text_format": "latex",
515
+ "bbox": [
516
+ 323,
517
+ 343,
518
+ 673,
519
+ 402
520
+ ],
521
+ "page_idx": 4
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "This implies that the layers of noise $\\eta _ { T , L + 1 } , \\dots , \\eta _ { T , i _ { j } }$ are all portions of $z _ { T }$ itself, with an additional portion being contained in $\\eta _ { T , i _ { j } - 1 }$ . Afterwards, $\\eta _ { T , i }$ become independent of $z _ { T }$ . In the case of $s _ { j } ~ = ~ 0$ , the above relations simplify to be $E [ \\eta _ { T , i } \\cdot z _ { T } ] = 0$ for all $i$ , implying no statistical dependency between the given and the synthetic noises. Consequently, it can be shown that the overall noise in Equation 5 satisfies ",
526
+ "bbox": [
527
+ 173,
528
+ 410,
529
+ 825,
530
+ 482
531
+ ],
532
+ "page_idx": 4
533
+ },
534
+ {
535
+ "type": "equation",
536
+ "img_path": "images/6dfbaf421c34fffe10f0fd9447266571ea61a2d747c32fd14a02d51d83547116.jpg",
537
+ "text": "$$\n\\left( \\Sigma \\mathbf { V } ^ { T } \\mathbf { n } _ { i } - \\mathbf { z } _ { \\mathbf { T } } \\right) _ { j } = n _ { T , i } - z _ { T } \\sim \\left\\{ \\begin{array} { l l } { \\mathcal { N } \\left( 0 , s _ { j } ^ { 2 } \\sigma _ { i } ^ { 2 } - \\sigma _ { 0 } ^ { 2 } \\right) } & { \\mathrm { i f ~ } \\sigma _ { i } s _ { j } > \\sigma _ { 0 } } \\\\ { \\mathcal { N } \\left( 0 , \\sigma _ { 0 } ^ { 2 } - s _ { j } ^ { 2 } \\sigma _ { i } ^ { 2 } \\right) } & { \\mathrm { o t h e r w i s e . } } \\end{array} \\right.\n$$",
538
+ "text_format": "latex",
539
+ "bbox": [
540
+ 269,
541
+ 489,
542
+ 725,
543
+ 527
544
+ ],
545
+ "page_idx": 4
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "The top option refers to high values of the annealed Langevin noise, in which, despite the possible decay caused by the singular value $s _ { j }$ , this noise is stronger than $z _ { T }$ . In this case, $n _ { T , i }$ contains all $z _ { T }$ and an additional independent portion of noise. The bottom part assumes that the annealed noise (with the influence of $s _ { j }$ ) is weaker than the measurements’ noise, and then it is fully immersed within $z _ { T }$ , with the difference being Gaussian and independent. ",
550
+ "bbox": [
551
+ 173,
552
+ 534,
553
+ 825,
554
+ 604
555
+ ],
556
+ "page_idx": 4
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "3.2 Derivation of the Conditional Score Function ",
561
+ "text_level": 1,
562
+ "bbox": [
563
+ 174,
564
+ 621,
565
+ 526,
566
+ 637
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "The above derivations show that the noise in Equation 5 is zero-mean, Gaussian with uncorrelated entries and of known variance, and this noise is independent of $\\widetilde { \\mathbf { x } } _ { i }$ . Thus Equation 5 can be used conveniently for deriving the measurements part of the conditional score function. We denote $\\tilde { \\mathbf { x } } _ { T } = \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } _ { i }$ , $\\widetilde { \\mathbf { x } } = \\widetilde { \\mathbf { x } } _ { i }$ , $\\mathbf { n } = \\mathbf { n } _ { i }$ for simplicity, and turn to calculate $\\nabla _ { \\tilde { \\mathbf { x } } _ { T } } \\log p \\left( \\tilde { \\mathbf { x } } _ { T } | \\mathbf { y } _ { T } \\right)$ . We split $\\tilde { \\mathbf { x } } _ { T }$ into three parts: (i) $\\tilde { \\mathbf { x } } _ { T , 0 }$ refers to the entries $j$ for which $s _ { j } = 0$ ; (ii) $\\tilde { \\mathbf { x } } _ { T , < }$ corresponds to the entries $j$ for which $0 < \\sigma _ { i } s _ { j } < \\sigma _ { 0 }$ ; and (iii) $\\tilde { \\mathbf { x } } _ { T , > }$ includes the entries $j$ for which $\\sigma _ { i } s _ { j } ~ > ~ \\sigma _ { 0 }$ . Observe that this partition of the entries of $\\tilde { \\bf x } _ { T }$ is non-overlapping and fully covering. Similarly, we partition every vector $\\mathbf { v } \\in \\mathbb { R } ^ { N }$ into $\\mathbf { v } _ { 0 } , \\mathbf { v } _ { < } , \\mathbf { v } _ { > }$ , which are the entries of $\\mathbf { v }$ corresponding to $\\tilde { \\bf x } _ { T , 0 } , \\tilde { \\bf x } _ { T , < } , \\tilde { \\bf x } _ { T , > }$ , respectively. Furthermore, we define $\\mathbf { v } _ { \\boldsymbol { \\phi } } , \\mathbf { v } _ { \\mathcal { A } } , \\mathbf { v } _ { \\mathcal { P } }$ as all the entries of $\\mathbf { v }$ except $\\mathbf { v } _ { 0 } , \\mathbf { v } _ { < } , \\mathbf { v } _ { > }$ , respectively. With these definitions in place, the complete derivation of the score function is detailed in the supplemental material, and here we bring the final outcome. For $\\tilde { \\mathbf { x } } _ { T , 0 }$ , the score is independent of the measurements and given by ",
573
+ "bbox": [
574
+ 173,
575
+ 647,
576
+ 826,
577
+ 815
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "equation",
583
+ "img_path": "images/ce2641f7f2d032f69bd277e4dcc9529ab3ec60a8e3de0a242cf7a9c5ae304992.jpg",
584
+ "text": "$$\n\\nabla _ { \\tilde { \\mathbf { x } } _ { T , 0 } } \\log p \\left( \\tilde { \\mathbf { x } } _ { T } | \\mathbf { y } _ { T } \\right) = \\left( \\mathbf { V } ^ { T } \\nabla _ { \\tilde { \\mathbf { x } } } \\log p \\left( \\tilde { \\mathbf { x } } \\right) \\right) _ { 0 } .\n$$",
585
+ "text_format": "latex",
586
+ "bbox": [
587
+ 349,
588
+ 821,
589
+ 647,
590
+ 843
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "For the case of $\\tilde { \\mathbf { x } } _ { T , > }$ , the expression obtained is only measurements-dependent, ",
597
+ "bbox": [
598
+ 173,
599
+ 856,
600
+ 692,
601
+ 872
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "equation",
607
+ "img_path": "images/75073e86807d6da436683e8d4488bc04bc9f364ef632d947b298e64aba7955aa.jpg",
608
+ "text": "$$\n\\nabla _ { \\tilde { \\mathbf { x } } _ { T , > } } \\log p \\left( \\tilde { \\mathbf { x } } _ { T } | \\mathbf { y } _ { T } \\right) = \\left( \\Sigma ^ { T } \\left( \\sigma _ { i } ^ { 2 } \\Sigma \\Sigma ^ { T } - \\sigma _ { 0 } ^ { 2 } \\mathbf { I } \\right) ^ { \\dagger } \\left( \\mathbf { y } _ { T } - \\Sigma \\tilde { \\mathbf { x } } _ { T } \\right) \\right) _ { > } .\n$$",
609
+ "text_format": "latex",
610
+ "bbox": [
611
+ 276,
612
+ 880,
613
+ 722,
614
+ 916
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "image",
620
+ "img_path": "images/1bf7bf0fdb7b5ddbb342e405094746e2ae58288ea8fabffd3390f4076c6e4553.jpg",
621
+ "image_caption": [
622
+ "Figure 2: Super resolution results on LSUN bedroom [56] images (downscaling $4 : 1$ by plain averaging and adding noise with $\\sigma _ { 0 } = 0 . 0 4 \\mathrm { , }$ ). "
623
+ ],
624
+ "image_footnote": [],
625
+ "bbox": [
626
+ 181,
627
+ 88,
628
+ 816,
629
+ 229
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Lastly, for the case of $\\tilde { \\mathbf { x } } _ { T , < }$ , the conditional score includes two terms – one referring to the plain (blurred) score, and the other depending on the measurements, ",
636
+ "bbox": [
637
+ 173,
638
+ 286,
639
+ 823,
640
+ 315
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "equation",
646
+ "img_path": "images/15dfe9ad0010cd227855bf423b32c69ed21b0e109d7a57938953758a4c0d7bcc.jpg",
647
+ "text": "$$\n\\nabla _ { \\mathbf { \\tilde { x } } _ { T , < } } \\log p \\left( \\mathbf { \\tilde { x } } _ { T } | \\mathbf { y } _ { T } \\right) = \\left( \\Sigma ^ { T } \\left( \\sigma _ { 0 } ^ { 2 } \\mathbf { I } - \\sigma _ { i } ^ { 2 } \\Sigma \\Sigma ^ { T } \\right) ^ { \\dagger } \\left( \\mathbf { y } _ { T } - \\Sigma \\mathbf { \\tilde { x } } _ { T } \\right) \\right) _ { < } + \\left( \\mathbf { V } ^ { T } \\nabla _ { \\mathbf { \\tilde { x } } } \\log p \\left( \\mathbf { \\tilde { x } } \\right) \\right) _ { < } .\n$$",
648
+ "text_format": "latex",
649
+ "bbox": [
650
+ 189,
651
+ 318,
652
+ 789,
653
+ 354
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "As already mentioned, the full derivations of equations 7, 8, and 9 are detailed in the supplemental material. Aggregating all these results together, we obtain the following conditional score function: ",
660
+ "bbox": [
661
+ 173,
662
+ 363,
663
+ 826,
664
+ 392
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "equation",
670
+ "img_path": "images/b1e82236f44445c72e4e55abcb1b1603367ae9a77c9049541095a2831b1af43a.jpg",
671
+ "text": "$$\n\\begin{array} { r } { \\nabla _ { \\tilde { \\mathbf { x } } _ { T } } \\log p \\left( \\tilde { \\mathbf { x } } _ { T } | \\mathbf { y } _ { T } \\right) = \\Sigma ^ { T } \\left| \\sigma _ { 0 } ^ { 2 } \\mathbf { I } - \\sigma _ { i } ^ { 2 } \\Sigma \\Sigma ^ { T } \\right| ^ { \\frac { 1 } { \\rho } } \\left( \\mathbf { y } _ { T } - \\Sigma \\tilde { \\mathbf { x } } _ { T } \\right) + \\left. \\left( \\mathbf { V } ^ { T } \\nabla _ { \\tilde { \\mathbf { x } } } \\log p \\left( \\tilde { \\mathbf { x } } \\right) \\right) \\right| _ { \\mathcal { X } } , } \\end{array}\n$$",
672
+ "text_format": "latex",
673
+ "bbox": [
674
+ 209,
675
+ 393,
676
+ 761,
677
+ 424
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "where $( \\mathbf { v } ) | _ { \\ngtr }$ is the vector $\\mathbf { v }$ , but with zeros in its entries that correspond to $\\mathbf { v } _ { > }$ . Observe that the first term in Equation 10 contains zeros in the entries corresponding to $\\tilde { \\mathbf { x } } _ { T , 0 }$ , matching the above calculations. The vector $\\nabla _ { \\tilde { \\mathbf { x } } } \\log p \\left( \\tilde { \\mathbf { x } } \\right)$ can be estimated using a neural network as in [44], or using a pre-trained MMSE denoiser as in [20, 21]. All the other elements of this vector are given or can be easily obtained from $\\mathbf { H }$ by calculating its SVD decomposition once at the beginning. ",
684
+ "bbox": [
685
+ 173,
686
+ 426,
687
+ 825,
688
+ 500
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "4 The Proposed Algorithm ",
695
+ "text_level": 1,
696
+ "bbox": [
697
+ 174,
698
+ 516,
699
+ 413,
700
+ 535
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Armed with the conditional score function in Equation 10, the Langevin dynamics algorithm can be run with a constant step size or an annealed step size as in [44], and this should converge to a sample from $p \\left( \\tilde { \\mathbf { x } } _ { T } | \\mathbf { y } _ { T } \\right)$ . However, for this to perform well, one should use a very small step size, implying a devastatingly slow convergence behavior. This is mainly due to the fact that different entries of $\\tilde { \\bf x } _ { T }$ advance at different speeds, in accord with their corresponding singular values. As the added noise in each step has the same variance in every entry, this leads to an unbalanced signal-to-noise ratio, which considerably slows down the algorithm. ",
707
+ "bbox": [
708
+ 173,
709
+ 546,
710
+ 826,
711
+ 645
712
+ ],
713
+ "page_idx": 5
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "In order to mitigate this problem, we suggest using a step size vector ${ \\pmb { \\alpha } } _ { i } \\in \\mathbb { R } ^ { N }$ . We denote $\\mathbf { A } _ { i } = d i a g \\left( \\pmb { \\alpha } _ { i } \\right)$ , and obtain the following update formula for a Langevin dynamics algorithm: ",
718
+ "bbox": [
719
+ 173,
720
+ 650,
721
+ 823,
722
+ 680
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "equation",
728
+ "img_path": "images/cf9d7ee13018f11e6687f32b2e40b3a7e3696f7589edc99ae00688480e279db1.jpg",
729
+ "text": "$$\n\\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } _ { i } = \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } _ { i - 1 } + c \\cdot \\mathbf { A } _ { i } \\cdot \\nabla \\mathbf { v } ^ { T } \\tilde { \\mathbf { x } } _ { i } \\log p \\left( \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } _ { i } | \\mathbf { y } _ { T } \\right) + \\sqrt { 2 \\cdot c } \\mathbf { A } _ { i } ^ { \\frac { 1 } { 2 } } \\cdot \\mathbf { z } _ { i } ,\n$$",
730
+ "text_format": "latex",
731
+ "bbox": [
732
+ 261,
733
+ 683,
734
+ 735,
735
+ 707
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "where the conditional score function is estimated as described in subsection 3.2, and $c$ is some constant. For the choice of the step sizes in the diagonal of $\\mathbf { A } _ { i }$ , we draw inspiration from Newton’s method in optimization, which is designed to speed up convergence to local maximum points. The update formula in Newton’s method is the same as Equation 11, but without the additional noise $\\mathbf { z } _ { i }$ , and with $\\mathbf { A } _ { i }$ being the negative inverse Hessian of $\\log p \\left( \\mathbf { V } ^ { T } \\tilde { \\mathbf { x } } _ { i } | \\mathbf { y } _ { T } \\right)$ . We calculate a diagonal approximation of the Hessian, and set $\\mathbf { A } _ { i }$ to be its negative inverse. We also estimate the conditional score function using Equation 10 and a neural network. Note that this mixture of Langevin dynamics and Newton’s method has been suggested in a slightly different context in [43], where the Hessian was approximated using a Quasi-Newton method. In our case, we analytically calculate a diagonal approximation of the negative inverse Hessian and obtain the following: ",
742
+ "bbox": [
743
+ 173,
744
+ 707,
745
+ 825,
746
+ 847
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "equation",
752
+ "img_path": "images/a33a533a03625d938bb3b08392eb96aa6484939f33077a88b6adf23ff1a151ce.jpg",
753
+ "text": "$$\n\\left( \\alpha _ { i } \\right) _ { j } = \\left\\{ \\begin{array} { l l } { \\sigma _ { i } ^ { 2 } , } & { s _ { j } = 0 } \\\\ { \\sigma _ { i } ^ { 2 } - \\frac { \\sigma _ { 0 } ^ { 2 } } { s _ { j } ^ { 2 } } , } & { \\sigma _ { i } s _ { j } > \\sigma _ { 0 } } \\\\ { \\sigma _ { i } ^ { 2 } \\cdot \\left( 1 - s _ { j } ^ { 2 } \\frac { \\sigma _ { i } ^ { 2 } } { \\sigma _ { 0 } ^ { 2 } } \\right) , } & { 0 < \\sigma _ { i } s _ { j } < \\sigma _ { 0 } . } \\end{array} \\right.\n$$",
754
+ "text_format": "latex",
755
+ "bbox": [
756
+ 341,
757
+ 849,
758
+ 655,
759
+ 916
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "image",
765
+ "img_path": "images/f76bb7d49bb33b3a68815799a29373ea7f403eba8070bce309f48629298e43e9.jpg",
766
+ "image_caption": [
767
+ "Figure 3: Compressive sensing results on a CelebA [27] image with an additive noise of $\\sigma _ { 0 } = 0 . 1$ "
768
+ ],
769
+ "image_footnote": [],
770
+ "bbox": [
771
+ 349,
772
+ 88,
773
+ 648,
774
+ 229
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "The full derivations for each of the three cases are detailed in the supplemental material. Using these step sizes, the update formula in Equation 11, the conditional score function in Equation 10, and a neural network s $( \\tilde { \\mathbf { x } } , \\sigma )$ that estimates the score function $\\nabla _ { \\tilde { \\mathbf { x } } } \\log p \\left( \\tilde { \\mathbf { x } } \\right)$ ,3 we obtain a tractable iterative algorithm for sampling from $p \\left( \\tilde { \\mathbf { x } } _ { L } \\mid \\mathbf { y } \\right)$ , where the noise in $ { \\widetilde { \\mathbf { x } } } _ { L }$ is sufficiently negligible to be considered as a sampling from the ideal image manifold. ",
781
+ "bbox": [
782
+ 173,
783
+ 279,
784
+ 825,
785
+ 349
786
+ ],
787
+ "page_idx": 6
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "Algorithm 1: SNIPS ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 174,
795
+ 361,
796
+ 313,
797
+ 376
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Input: $\\left\\{ \\sigma _ { i } \\right\\} _ { i = 1 } ^ { L } , c , \\tau , \\mathbf { y } , \\mathbf { H } , \\sigma _ { 0 }$ \n$\\mathbf { 1 } \\ \\mathbf { U } , \\Sigma , \\mathbf { V } s { \\bar { v } } d ( \\mathbf { H } )$ \n2 Initialize $\\mathbf { x _ { 0 } }$ with random noise $U \\left[ 0 , 1 \\right]$ \n3 for $i \\gets 1$ to $L$ do \n4 $( \\mathbf { A } _ { i } ) _ { 0 } \\sigma _ { i } ^ { 2 } \\mathbf { I }$ \n5 ( A i ) < ← σ 2i · \u0010 I − σ 2iσ 2 Σ < Σ < T \u0011 \n6 $( \\mathbf { A } _ { i } ) _ { > } \\sigma _ { i } ^ { 2 } \\mathbf { I } - \\sigma _ { 0 } ^ { 2 } \\mathbf { \\Sigma } \\mathbf { \\Sigma } _ { > } ^ { \\dagger } \\mathbf { \\Sigma } \\mathbf { \\Sigma } \\mathbf { \\Sigma } _ { > } ^ { \\dagger ^ { T } }$ \n7 for t ← 1 to τ do \n8 Draw $\\mathbf { z } _ { t } \\sim \\mathcal { N } \\left( 0 , \\mathbf { I } \\right)$ \n9 $\\begin{array} { r l } & { \\mathbf { d } _ { t } \\xleftarrow \\Sigma ^ { T } \\cdot \\left| \\sigma _ { 0 } ^ { 2 } \\mathbf { I } - \\sigma _ { i } ^ { 2 } \\Sigma \\Sigma ^ { T } \\right| ^ { \\dagger } \\cdot \\left( \\mathbf { U } ^ { T } \\mathbf { y } - \\Sigma \\mathbf { V } ^ { T } \\mathbf { x } _ { t - 1 } \\right) + \\left( \\mathbf { V } ^ { T } \\cdot \\mathbf { s } \\left( \\mathbf { x } _ { t - 1 } , \\sigma _ { i } \\right) \\right) \\big | _ { \\ng } } \\\\ & { \\mathbf { x } _ { t } \\xleftarrow \\mathbf { V } \\cdot \\left( \\mathbf { V } ^ { T } \\mathbf { x } _ { t - 1 } + c \\mathbf { A } _ { i } \\mathbf { d } _ { t } + \\sqrt { 2 c } \\mathbf { A } _ { i } ^ { \\frac { 1 } { 2 } } \\mathbf { z } _ { t } \\right) } \\end{array}$ \n10 \n11 end \n12 $\\mathbf { x } _ { 0 } \\mathbf { x } _ { \\tau }$ \n13 end ",
804
+ "bbox": [
805
+ 158,
806
+ 381,
807
+ 745,
808
+ 619
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Note that when we set $\\mathbf { H } = \\mathbf { \\Omega } 0$ and $\\sigma _ { 0 } = 0$ , implying no measurements, the above algorithm degenerates to an image synthesis, exactly as in [44]. Two other special cases of this algorithm are obtained for $\\mathbf { H } = \\mathbf { I }$ or $\\mathbf { H } = \\mathbf { I }$ with some rows removed, the first referring to denoising and the second to noisy inpainting, both cases shown in [21]. Lastly, for the choices of $\\mathbf { H }$ as in [20] or [44, 46] and with $\\sigma _ { 0 } = 0$ , the above algorithm collapses to a close variant of their proposed iterative methods. ",
815
+ "bbox": [
816
+ 173,
817
+ 646,
818
+ 825,
819
+ 715
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "5 Experimental Results ",
826
+ "text_level": 1,
827
+ "bbox": [
828
+ 174,
829
+ 737,
830
+ 385,
831
+ 755
832
+ ],
833
+ "page_idx": 6
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "In our experiments we use the NCSNv2 [45] network in order to estimate the score function of the prior distribution. Three different NCSNv2 models are used, each trained separately on the training sets of: (i) images of size $6 4 \\times 6 4$ pixels from the CelebA dataset [27]; (ii) images of size $1 2 8 \\times 1 2 8$ pixels from LSUN [56] bedrooms dataset; and (iii) LSUN $1 2 8 \\times 1 2 8$ images of towers. We demonstrate SNIPS’ capabilities on the respective test sets for image deblurring, super resolution, and compressive sensing. In each of the experiments, we run our algorithm 8 times, producing 8 samples for each input. We examine both the samples themselves and their mean, which serves as an approximation of the MMSE solution, $\\mathbb { E } \\left[ \\mathbf { x } | \\mathbf { y } \\right]$ . ",
838
+ "bbox": [
839
+ 173,
840
+ 770,
841
+ 826,
842
+ 882
843
+ ],
844
+ "page_idx": 6
845
+ },
846
+ {
847
+ "type": "image",
848
+ "img_path": "images/0fe681d53940c46fc3dcbf035756174ac25fbeaf06344ec3bce31a956ddec79b.jpg",
849
+ "image_caption": [
850
+ "Figure 4: Super resolution results on CelebA [27] images (downscaling $4 : 1$ by plain averaging and adding noise with $\\sigma _ { 0 } = 0 . 1$ ). "
851
+ ],
852
+ "image_footnote": [],
853
+ "bbox": [
854
+ 218,
855
+ 89,
856
+ 779,
857
+ 251
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "image",
863
+ "img_path": "images/6f296f6b2a2fc1162ce50cccb9a0e568e4e043a1cf1bb3e7155c6118f8d3aa75.jpg",
864
+ "image_caption": [
865
+ "Figure 5: Super resolution results on CelebA [27] images (downscaling $2 : 1$ by plain averaging and adding noise with $\\sigma _ { 0 } = 0 . 1$ ). "
866
+ ],
867
+ "image_footnote": [],
868
+ "bbox": [
869
+ 218,
870
+ 299,
871
+ 779,
872
+ 463
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "For image deblurring, we use a uniform $5 \\times 5$ blur kernel, and an additive white Gaussian noise with $\\sigma _ { 0 } = 0 . 1$ (referring to pixel values in the range $[ 0 , 1 ] \\rangle$ ). Figure 1 demonstrates the obtained results for several images taken from the CelebA dataset. As can be seen, SNIPS produces visually pleasing, diverse samples. ",
879
+ "bbox": [
880
+ 174,
881
+ 523,
882
+ 825,
883
+ 579
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "For super resolution, the images are downscaled using a block averaging filter, i.e., each nonoverlapping block of pixels in the original image is averaged into one pixel in the low-resolution image. We use blocks of size $2 \\times 2$ or $4 \\times 4$ pixels, and assume the low-resolution image to include an additive white Gaussian noise. We showcase results on LSUN and CelebA in Figures 2, 4, and 5. ",
890
+ "bbox": [
891
+ 174,
892
+ 585,
893
+ 825,
894
+ 641
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "For compressive sensing, we use three random projection matrices with singular values of 1, that compress the image by $2 5 \\%$ , $1 2 . 5 \\%$ , and $6 . 2 5 \\%$ . As can be seen in Figure 3 and as expected, the more aggressive the compression, the more significant are the variations in reconstruction. ",
901
+ "bbox": [
902
+ 174,
903
+ 647,
904
+ 825,
905
+ 689
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "We calculate the average PSNR (peak signal-to-noise ratio) of each of the 8 samples in our experiments, as well as the PSNR of their mean, as shown in Table 1. In all the experiments, the empirical conditional mean presents an improvement of around $2 . 4 \\ : \\mathrm { d B }$ in PSNR, even though it is less visually appealing compared to the samples. This is consistent with the theory in [5], which states that the difference in PSNR between posterior samples and the conditional mean (the MMSE estimator) should be $3 \\mathrm { d B }$ , with the MMSE estimator having poorer perceptual quality but better PSNR. ",
912
+ "bbox": [
913
+ 174,
914
+ 695,
915
+ 825,
916
+ 780
917
+ ],
918
+ "page_idx": 7
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "A comparison of our deblurring results to those obtained by RED [39] is detailed in the supplemental material. We show that SNIPS exhibits superior performance over RED, achieving more than $1 1 \\%$ improvement in PSNR and more than $5 8 \\%$ improvement in LPIPS [62], a perceptual quality metric. ",
923
+ "bbox": [
924
+ 176,
925
+ 785,
926
+ 825,
927
+ 828
928
+ ],
929
+ "page_idx": 7
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "5.1 Assessing Faithfulness to the Measurements ",
934
+ "text_level": 1,
935
+ "bbox": [
936
+ 174,
937
+ 843,
938
+ 517,
939
+ 858
940
+ ],
941
+ "page_idx": 7
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "A valid solution to an inverse problem should satisfy two conditions: (i) It should be visually pleasing, consistent with the underlying prior distribution of images, and (ii) It should be faithful to the given measurement, maintaining the relationship as given in the problem setting. Since the prior distribution is unknown, we assess the first condition by visually observing the obtained solutions and their tendency to look realistic. As for the second condition, we perform the following computation: We degrade the obtained reconstruction $\\hat { \\bf x }$ by $\\mathbf { H }$ , and calculate its difference from the given measurement $\\mathbf { y }$ , obtaining $\\mathbf { y } - \\mathbf { H } \\hat { \\mathbf { x } }$ . According to the problem setting, this difference should be an additive white Gaussian noise vector with a standard deviation of $\\sigma _ { 0 }$ . We examine this difference by calculating its empirical standard deviation, and performing the Pearson-D’Agostino [8] test of normality on it, accepting it as a Gaussian vector if the obtained p-value is greater than 0.05. We also calculate the Pearson correlation coefficient (denoted as $\\rho$ ) among neighboring entries, accepting them as uncorrelated for coefficients smaller than 0.1 in absolute value. In all of our tests, the standard deviation matches $\\sigma _ { 0 }$ almost exactly, the Pearson correlation coefficient satisfies $| \\rho | < 0 . 1$ , and we obtain p-values greater than 0.05 in around $9 5 \\%$ of the samples (across all experiments). These results empirically show that our algorithm produces valid solutions to the given inverse problems. ",
946
+ "bbox": [
947
+ 174,
948
+ 869,
949
+ 825,
950
+ 911
951
+ ],
952
+ "page_idx": 7
953
+ },
954
+ {
955
+ "type": "table",
956
+ "img_path": "images/cb248dd8876a0120bd0ee7cf6851a981242a74a7f9f9b9391e6cbe6743fe8568.jpg",
957
+ "table_caption": [
958
+ "Table 1: PSNR results for different inverse problems on 8 images from CelebA [27]. We ran SNIPS 8 times, and obtained 8 samples. The average PSNR for each of the samples is in the first column, while the average PSNR for the mean of the 8 samples for each image is in the second one. "
959
+ ],
960
+ "table_footnote": [],
961
+ "table_body": "<table><tr><td>Problem</td><td>Sample PSNR</td><td>Mean PSNR</td></tr><tr><td>Uniform deblurring</td><td>25.54</td><td>28.01</td></tr><tr><td>Super resolution (by 2)</td><td>25.58</td><td>28.03</td></tr><tr><td>Super resolution (by 4)</td><td>21.90</td><td>24.31</td></tr><tr><td>Compressive sensing (by 25%)</td><td>25.68</td><td>28.06</td></tr><tr><td>Compressive sensing (by 12.5%)</td><td>22.34</td><td>24.67</td></tr></table>",
962
+ "bbox": [
963
+ 266,
964
+ 137,
965
+ 730,
966
+ 237
967
+ ],
968
+ "page_idx": 8
969
+ },
970
+ {
971
+ "type": "image",
972
+ "img_path": "images/31b80bec3255fef5b0e8eb8f928b222f9c9b72045dbebf8254989ebe23acad3b.jpg",
973
+ "image_caption": [
974
+ "Figure 6: Compressive sensing results on LSUN [56] tower images (compression by $2 5 \\%$ and adding noise with $\\sigma _ { 0 } = 0 . 0 4 )$ . "
975
+ ],
976
+ "image_footnote": [],
977
+ "bbox": [
978
+ 181,
979
+ 257,
980
+ 816,
981
+ 398
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "",
988
+ "bbox": [
989
+ 173,
990
+ 467,
991
+ 825,
992
+ 632
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "6 Conclusion and Future Work ",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 176,
1002
+ 660,
1003
+ 449,
1004
+ 678
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "SNIPS, presented in this paper, is a novel stochastic algorithm for solving general noisy linear inverse problems. This method is based on annealed Langevin dynamics and Newton’s method, and relies on the availability of a pre-trained Gaussian MMSE denoiser. SNIPS produces a random variety of high quality samples from the posterior distribution of the unknown given the measurements, while guaranteeing their validity with respect to the given data. This algorithm’s derivation includes an intricate choice of the injected annealed noise in the Langevin update equations, and an SVD decomposition of the degradation operator for decoupling the measurements’ dependencies. We demonstrate SNIPS’ success on image deblurring, super resolution, and compressive sensing. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 696,
1014
+ 825,
1015
+ 808
1016
+ ],
1017
+ "page_idx": 8
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Extensions of this work should focus on SNIPS’ limitations: (i) The need to deploy SVD decomposition of the degradation matrix requires a considerable amount of memory and computations, and hinders the algorithm’s scalability; (ii) The current version of SNIPS does not handle general content images, a fact that is related to the properties of the denoiser being used [41]; and (iii) SNIPS, as any other Langevin based method, requires (too) many iterations (e.g., in our super-resolution tests on CelebA, 2 minutes are required for producing 8 sample images), and means for its acceleration should be explored. ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 814,
1025
+ 825,
1026
+ 911
1027
+ ],
1028
+ "page_idx": 8
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "7 Funding Transparency Statement ",
1033
+ "text_level": 1,
1034
+ "bbox": [
1035
+ 174,
1036
+ 89,
1037
+ 486,
1038
+ 107
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "This research was partially supported by the Israel Science Foundation (ISF) under Grant 335/18 and the Technion Hiroshi Fujiwara Cyber Security Research Center and the Israel Cyber Bureau. Bahjat Kawar’s scholarship was partially provided by Li Ka Shing Fellowships and the Planning and Budgeting Committee of the Israel Council for Higher Education. ",
1045
+ "bbox": [
1046
+ 174,
1047
+ 121,
1048
+ 826,
1049
+ 178
1050
+ ],
1051
+ "page_idx": 9
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "References ",
1056
+ "text_level": 1,
1057
+ "bbox": [
1058
+ 174,
1059
+ 198,
1060
+ 267,
1061
+ 213
1062
+ ],
1063
+ "page_idx": 9
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "[1] S. Arridge, P. Maass, O. Öktem, and C.-B. Schönlieb. Solving inverse problems using datadriven models. Acta Numerica, 28:1–174, 2019. \n[2] Y. Bahat and T. Michaeli. Explorable super resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2716–2725, 2020. \n[3] J. Besag. Markov Chain Monte Carlo for statistical inference. Center for Statistics and the Social Sciences, 9:24–25, 2001. \n[4] S. A. Bigdeli, M. Jin, P. Favaro, and M. Zwicker. Deep mean-shift priors for image restoration. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 763–772, 2017. \n[5] Y. Blau and T. Michaeli. The perception-distortion tradeoff. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6228–6237, 2018. \n[6] A. Buades, B. Coll, and J.-M. Morel. A non-local algorithm for image denoising. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 2, pages 60–65. IEEE, 2005. \n[7] G. T. Buzzard, S. H. Chan, S. Sreehari, and C. A. Bouman. Plug-and-play unplugged: Optimization-free reconstruction using consensus equilibrium. SIAM Journal on Imaging Sciences, 11(3):2001–2020, 2018. \n[8] R. D’Agostino and E. S. Pearson. Tests for departure from normality. Empirical results for the√ distributions of $b ^ { 2 }$ and $\\sqrt { b }$ . Biometrika, 60(3):613–622, 1973. \n[9] A. Danielyan, V. Katkovnik, and K. Egiazarian. BM3D frames and variational image deblurring. IEEE Transactions on Image Processing, 21(4):1715–1728, 2011. \n[10] C. Dong, C. C. Loy, and X. Tang. Accelerating the super-resolution convolutional neural network. In European Conference on Computer Vision, pages 391–407. Springer, 2016. \n[11] W. Dong, L. Zhang, G. Shi, and X. Li. Nonlocally centralized sparse representation for image restoration. IEEE Transactions on Image Processing, 22(4):1620–1630, 2012. \n[12] B. Efron. Tweedie’s formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011. \n[13] M. Elad and M. Aharon. Image denoising via sparse and redundant representations over learned dictionaries. IEEE Transactions on Image Processing, 15(12):3736–3745, 2006. \n[14] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014. \n[15] B. Guo, Y. Han, and J. Wen. AGEM: solving linear inverse problems via deep priors and sampling. Advances in Neural Information Processing Systems, 32:547–558, 2019. \n[16] H. Gupta, K. H. Jin, H. Q. Nguyen, M. T. McCann, and M. Unser. CNN-based projected gradient descent for consistent CT image reconstruction. IEEE Transactions on Medical Imaging, 37(6): 1440–1453, 2018. \n[17] M. Haris, G. Shakhnarovich, and N. Ukita. Deep back-projection networks for super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1664–1673, 2018. \n[18] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851. Curran Associates, Inc., 2020. \n[19] C. M. Hyun, H. P. Kim, S. M. Lee, S. Lee, and J. K. Seo. Deep learning for undersampled MRI reconstruction. Physics in Medicine & Biology, 63(13):135007, 2018. \n[20] Z. Kadkhodaie and E. P. Simoncelli. Solving linear inverse problems using the prior implicit in a denoiser. arXiv preprint arXiv:2007.13640, 2020. \n[21] B. Kawar, G. Vaksman, and M. Elad. Stochastic image denoising by sampling from the posterior distribution. arXiv preprint arXiv:2101.09552, 2021. \n[22] O. Kupyn, T. Martyniuk, J. Wu, and Z. Wang. DeblurGAN-v2: deblurring (orders-of-magnitude) faster and better. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8878–8887, 2019. \n[23] R. Laumont, V. De Bortoli, A. Almansa, J. Delon, A. Durmus, and M. Pereyra. Bayesian imaging using plug & play priors: When Langevin meets Tweedie. arXiv preprint arXiv:2103.04715, 2021. \n[24] G. Lebanon. Probability: The Analysis of Data, volume 1, pages 104–107. CreateSpace Independent Publishing Platform, 2012. \n[25] S. Lefkimmiatis. Non-local color image denoising with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3587–3596, 2017. \n[26] H. Li, Y. Yang, M. Chang, H. Feng, Z. Xu, Q. Li, and Y. Chen. SRDiff: single image superresolution with diffusion probabilistic models. arXiv e-prints, pages arXiv–2104, 2021. \n[27] Z. Liu, P. Luo, X. Wang, and X. Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 3730–3738, 2015. \n[28] A. Lucas, M. Iliadis, R. Molina, and A. K. Katsaggelos. Using deep neural networks for inverse problems in imaging: beyond analytical methods. IEEE Signal Processing Magazine, 35(1): 20–36, 2018. \n[29] M. T. McCann, K. H. Jin, and M. Unser. Convolutional neural networks for inverse problems in imaging: A review. IEEE Signal Processing Magazine, 34(6):85–95, 2017. \n[30] T. Meinhardt, M. Moller, C. Hazirbas, and D. Cremers. Learning proximal operators: Using denoising networks for regularizing inverse imaging problems. In Proceedings of the IEEE International Conference on Computer Vision, pages 1781–1790, 2017. \n[31] S. Menon, A. Damian, S. Hu, N. Ravi, and C. Rudin. PULSE: Self-supervised photo upsampling via latent space exploration of generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2437–2445, 2020. \n[32] K. Miyasawa. An empirical Bayes estimator of the mean of a normal population. Bull. Inst. Internat. Statist., 38:181–188, 1961. \n[33] G. Ohayon, T. Adrai, G. Vaksman, M. Elad, and P. Milanfar. High perceptual quality image denoising with a posterior sampling CGAN. arXiv preprint arXiv:2103.04192, 2021. \n[34] S. Peng and K. Li. Generating unobserved alternatives: A case study through super-resolution and decompression. arXiv preprint arXiv:2011.01926, 2020. \n[35] A. Radford, L. Metz, and S. Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In 4th International Conference on Learning Representations, 2016. \n[36] I. Ram, M. Elad, and I. Cohen. Image processing using smooth ordering of its patches. IEEE Transactions on Image Processing, 22(7):2764–2774, 2013. \n[37] S. Ravishankar, J. C. Ye, and J. A. Fessler. Image reconstruction: From sparsity to data-adaptive methods and machine learning. Proceedings of the IEEE, 108(1):86–109, 2019. \n[38] G. O. Roberts, R. L. Tweedie, et al. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, 1996. \n[39] Y. Romano, M. Elad, and P. Milanfar. The little engine that could: Regularization by denoising (RED). SIAM Journal on Imaging Sciences, 10(4):1804–1844, 2017. \n[40] A. Rond, R. Giryes, and M. Elad. Poisson inverse problems by the plug-and-play scheme. Journal of Visual Communication and Image Representation, 41:96–108, 2016. \n[41] E. Ryu, J. Liu, S. Wang, X. Chen, Z. Wang, and W. Yin. Plug-and-play methods provably converge with properly trained denoisers. In International Conference on Machine Learning, pages 5546–5557. PMLR, 2019. \n[42] C. Saharia, J. Ho, W. Chan, T. Salimans, D. J. Fleet, and M. Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021. \n[43] U. Simsekli, R. Badeau, T. Cemgil, and G. Richard. Stochastic Quasi-Newton Langevin Monte Carlo. In International Conference on Machine Learning, pages 642–651. PMLR, 2016. \n[44] Y. Song and S. Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, pages 11918–11930, 2019. \n[45] Y. Song and S. Ermon. Improved techniques for training score-based generative models. In Advances in Neural Information Processing Systems, 33, 2020. \n[46] Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. \n[47] C. M. Stein. Estimation of the mean of a multivariate normal distribution. The annals of Statistics, pages 1135–1151, 1981. \n[48] M. Suin, K. Purohit, and A. Rajagopalan. Spatially-attentive patch-hierarchical network for adaptive motion deblurring. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3606–3615, 2020. \n[49] Y. Sun, B. Wohlberg, and U. S. Kamilov. An online plug-and-play algorithm for regularized image reconstruction. IEEE Transactions on Computational Imaging, 5(3):395–408, 2019. \n[50] T. Tirer and R. Giryes. Image restoration by iterative denoising and backward projections. IEEE Transactions on Image Processing, 28(3):1220–1234, 2018. \n[51] G. Vaksman, M. Zibulevsky, and M. Elad. Patch ordering as a regularization for inverse problems in image processing. SIAM Journal on Imaging Sciences, 9(1):287–319, 2016. \n[52] G. Vaksman, M. Elad, and P. Milanfar. LIDIA: Lightweight learned image denoising with instance adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 524–525, 2020. \n[53] S. V. Venkatakrishnan, C. A. Bouman, and B. Wohlberg. Plug-and-play priors for model based reconstruction. In 2013 IEEE Global Conference on Signal and Information Processing, pages 945–948. IEEE, 2013. \n[54] X. Wang, K. Yu, S. Wu, J. Gu, Y. Liu, C. Dong, Y. Qiao, and C. Change Loy. ESRGAN: enhanced super-resolution generative adversarial networks. In Proceedings of the European Conference on Computer Vision (ECCV) Workshops, 2018. \n[55] J. Yang, J. Wright, T. S. Huang, and Y. Ma. Image super-resolution via sparse representation. IEEE transactions on image processing, 19(11):2861–2873, 2010. \n[56] F. Yu, A. Seff, Y. Zhang, S. Song, T. Funkhouser, and J. Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. \n[57] G. Yu, G. Sapiro, and S. Mallat. Solving inverse problems with piecewise linear estimators: From Gaussian mixture models to structured sparsity. IEEE Transactions on Image Processing, 21(5):2481–2499, 2011. \n[58] J. Zhang and B. Ghanem. ISTA-Net: interpretable optimization-inspired deep network for image compressive sensing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1828–1837, 2018. \n[59] K. Zhang, W. Zuo, Y. Chen, D. Meng, and L. Zhang. Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Transactions on Image Processing, 26(7): 3142–3155, 2017. \n[60] K. Zhang, W. Zuo, S. Gu, and L. Zhang. Learning deep CNN denoiser prior for image restoration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3929–3938, 2017. \n[61] K. Zhang, W. Zuo, and L. Zhang. FFDNet: toward a fast and flexible solution for CNN-based image denoising. IEEE Transactions on Image Processing, 27(9):4608–4622, 2018. \n[62] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018. \n[63] D. Zoran and Y. Weiss. From learning models of natural image patches to whole image restoration. In 2011 International Conference on Computer Vision, pages 479–486. IEEE, 2011. ",
1068
+ "bbox": [
1069
+ 173,
1070
+ 223,
1071
+ 826,
1072
+ 911
1073
+ ],
1074
+ "page_idx": 9
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "",
1079
+ "bbox": [
1080
+ 171,
1081
+ 41,
1082
+ 828,
1083
+ 916
1084
+ ],
1085
+ "page_idx": 10
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "",
1090
+ "bbox": [
1091
+ 171,
1092
+ 68,
1093
+ 828,
1094
+ 920
1095
+ ],
1096
+ "page_idx": 11
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "",
1101
+ "bbox": [
1102
+ 171,
1103
+ 90,
1104
+ 828,
1105
+ 467
1106
+ ],
1107
+ "page_idx": 12
1108
+ }
1109
+ ]
parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9xPJ7cZ4ntc/9xPJ7cZ4ntc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B12Js_yRb/B12Js_yRb.md ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING TO COUNT OBJECTS IN NATURAL IMAGES FOR VISUAL QUESTION ANSWERING
2
+
3
+ Yan Zhang & Jonathon Hare & Adam Prugel-Bennett ¨
4
+
5
+ Department of Electronics and Computer Science University of Southampton {yz5n12,jsh2,apb}@ecs.soton.ac.uk
6
+
7
+ # ABSTRACT
8
+
9
+ Visual Question Answering (VQA) models have struggled with counting objects in natural images so far. We identify a fundamental problem due to soft attention in these models as a cause. To circumvent this problem, we propose a neural network component that allows robust counting from object proposals. Experiments on a toy task show the effectiveness of this component and we obtain state-of-theart accuracy on the number category of the VQA v2 dataset without negatively affecting other categories, even outperforming ensemble models with our single model. On a difficult balanced pair metric, the component gives a substantial improvement in counting over a strong baseline by $6 . 6 \%$ .
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Consider the problem of counting how many cats there are in Figure 1. Solving this involves several rough steps: understanding what instances of that type can look like, finding them in the image, and adding them up. This is a common task in Visual Question Answering (VQA) – answering questions about images – and is rated as among the tasks requiring the lowest human age to be able to answer (Antol et al., 2015). However, current models for VQA on natural images struggle to answer any counting questions successfully outside of dataset biases (Jabri et al., 2016).
14
+
15
+ One reason for this is the presence of a fundamental problem with counting in the widely-used soft attention mechanisms (section 3). Another reason is that unlike standard counting tasks, there is no ground truth labeling of where the objects to count are. Coupled with the fact that models need to be able to count a large variety of objects and that, ideally, performance on non-counting questions should not be compromised, the task of counting in VQA seems very challenging.
16
+
17
+ To make this task easier, we can use object proposals – pairs of a bounding box and object features – from object detection networks as input instead of learning from pixels directly. In any moderately complex scene, this runs into the issue of double-counting overlapping object proposals. This is a problem present in many natural images, which leads to inaccurate counting in real-world scenarios.
18
+
19
+ Our main contribution is a differentiable neural network component that tackles this problem and consequently can learn to count (section 4). Used alongside an attention mechanism, this component avoids a fundamental limitation of soft attention while producing strong counting features. We provide experimental evidence of the effectiveness of this component (section 5). On a toy dataset, we demonstrate that this component enables robust counting in a variety of scenarios. On the number category of the VQA v2 Open-Ended dataset (Goyal et al., 2017), a relatively simple baseline model using the counting component outperforms all previous models – including large ensembles of state-of-the-art methods – without degrading performance on other categories.
20
+
21
+ # 2 RELATED WORK
22
+
23
+ Usually, greedy non-maximum suppression (NMS) is used to eliminate duplicate bounding boxes. The main problem with using it as part of a model is that its gradient is piecewise constant. Various differentiable variants such as by Azadi et al. (2017), Hosang et al. (2017), and Henderson & Ferrari (2017) exist. The main difference is that, since we are interested in counting, our component does not need to make discrete decisions about which bounding boxes to keep; it outputs counting features, not a smaller set of bounding boxes. Our component is also easily integrated into standard VQA models that utilize soft attention without any need for other network architecture changes and can be used without using true bounding boxes for supervision.
24
+
25
+ On the VQA v2 dataset (Goyal et al., 2017) that we apply our method on, only few advances on counting questions have been made. The main improvement in accuracy is due to the use of object proposals in the visual processing pipeline, proposed by Anderson et al. (2017). Their object proposal network is trained with classes in singular and plural forms, for example “tree” versus “trees”, which only allows primitive counting information to be present in the object features after region-of-interest pooling. Our approach differs in the way that instead of relying on counting features being present in the input, we create counting features using information present in the attention map over object proposals. This has the benefit of being able to count anything that the attention mechanism can discriminate instead of only objects that belong to the predetermined set of classes that had plural forms.
26
+
27
+ Using these object proposals, Trott et al. (2018) train a sequential counting mechanism with a reinforcement learning loss on the counting question subsets of VQA v2 and Visual Genome. They achieve a small increase in accuracy and can obtain an interpretable set of objects that their model counted, but it is unclear whether their method can be integrated into traditional VQA models due to their loss not applying to non-counting questions. Since they evaluate on their own dataset, their results can not be easily compared to existing results in VQA.
28
+
29
+ Methods such as by Santoro et al. (2017) and Perez et al. (2017) can count on the synthetic CLEVR VQA dataset (Johnson et al., 2017) successfully without bounding boxes and supervision of where the objects to count are. They also use more training data ${ \sim } 2 5 0 { , } 0 0 0$ counting questions in the CLEVR training set versus $\sim 5 0 { , } 0 0 0$ counting questions in the VQA v2 training set), much simpler objects, and synthetic question structures.
30
+
31
+ More traditional approaches based on Lempitsky & Zisserman (2010) learn to produce a target density map, from which a count is computed by integrating over it. In this setting, Cohen et al. (2017) make use of overlaps of convolutional receptive fields to improve counting performance. Chattopadhyay et al. (2017) use an approach that divides the image into smaller non-overlapping chunks, each of which is counted individually and combined together at the end. In both of these contexts, the convolutional receptive fields or chunks can be seen as sets of bounding boxes with a fixed structure in their positioning. Note that while Chattopadhyay et al. (2017) evaluate their models on a small subset of counting questions in VQA, major differences in training setup make their results not comparable to our work.
32
+
33
+ # 3 PROBLEMS WITH SOFT ATTENTION
34
+
35
+ The main message in this section is that using the feature vectors obtained after the attention mechanism is not enough to be able to count; the attention maps themselves should be used, which is what we do in our counting component.
36
+
37
+ Models in VQA have consistently benefited from the use of soft attention (Mnih et al., 2014; Bahdanau et al., 2015) on the image, commonly implemented with a shallow convolutional network. It learns to output a weight for the feature vector at each spatial position in the feature map, which is first normalized and then used for performing a weighted sum over the spatial positions to produce a single feature vector. However, soft spatial attention severely limits the ability for a model to count.
38
+
39
+ Consider the task of counting the number of cats for two images: an image showing a single cat on a clean background and an image that consists of two side-by-side copies of the first image. What we will describe applies to both spatial feature maps and sets of object proposals as input, but we focus on the latter case for simplicity. With an object detection network, we detect one cat in the first image and two cats in the second image, producing the same feature vector for all three detections. The attention mechanism then assigns all three instances of the same cat the same weight.
40
+
41
+ ![](images/01c2c43239e5530d6490c14c6c93b92ad5fef0ff207f0d931d1ff4b6596146b9.jpg)
42
+ Figure 1: Simplified example about counting the number of cats. The light-colored cat is detected twice and results in a duplicate proposal. This shows the conversion from the attention weights a to a graph representation A and the eventual goal of this component with exactly one proposal per true object. There are 4 proposals (vertices) capturing 3 underlying objects (groups in dotted lines). There are 3 relevant proposals (black with weight 1) and 1 irrelevant proposal (white with weight 0). Red edges mark intra-object edges between duplicate proposals and blue edges mark the main inter-object duplicate edges. In graph form, the object groups, coloring of edges, and shading of vertices serve illustration purposes only; the model does not have these access to these directly.
43
+
44
+ The usual normalization used for the attention weights is the softmax function, which normalizes the weights to sum to 1. Herein lies the problem: the cat in the first image receives a normalized weight of 1, but the two cats in the second image now each receive a weight of 0.5. After the weighted sum, we are effectively averaging the two cats in the second image back to a single cat. As a consequence, the feature vector obtained after the weighted sum is exactly the same between the two images and we have lost all information about a possible count from the attention map. Any method that normalizes the weights to sum to 1 suffers from this issue.
45
+
46
+ Multiple glimpses (Larochelle & Hinton, 2010) – sets of attention weights that the attention mechanism outputs – or several steps of attention (Yang et al., 2016; Lu et al., 2016) do not circumvent this problem. Each glimpse or step can not separate out an object each, since the attention weight given to one feature vector does not depend on the other feature vectors to be attended over. Hard attention (Ba et al., 2015; Mnih et al., 2014) and structured attention (Kim et al., 2017) may be possible solutions to this, though no significant improvement in counting ability has been found for the latter so far (Zhu et al., 2017). Ren & Zemel (2017) circumvent the problem by limiting attention to only work within one bounding box at a time, remotely similar to our approach of using object proposal features.
47
+
48
+ Without normalization of weights to sum to one, the scale of the output features depends on the number of objects detected. In an image with 10 cats, the output feature vector is scaled up by 10. Since deep neural networks are typically very scale-sensitive – the scale of weight initializations and activations is generally considered quite important (Mishkin & Matas, 2016) – and the classifier would have to learn that joint scaling of all features is somehow related to count, this approach is not reasonable for counting objects. This is evidenced in Teney et al. (2017) where they provide evidence that sigmoid normalization not only degrades accuracy on non-number questions slightly, but also does not help with counting.
49
+
50
+ # 4 COUNTING COMPONENT
51
+
52
+ In this section, we describe a differentiable mechanism for counting from attention weights, while also dealing with the problem of overlapping object proposals to reduce double-counting of objects. This involves some nontrivial details to produce counts that are as accurate as possible. The main idea is illustrated in Figure 1 with the two main steps shown in Figure 2 and Figure 3. The use of this component allows a model to count while still being able to exploit the benefits of soft attention.
53
+
54
+ Our key idea for dealing with overlapping object proposals is to turn these object proposals into a graph that is based on how they overlap. We then remove and scale edges in a specific way such that an estimate of the number of underlying objects is recovered.
55
+
56
+ Our general strategy is to primarily design the component for the unrealistic extreme cases of perfect attention maps and bounding boxes that are either fully overlapping or fully distinct. By introducing some parameters and only using differentiable operations, we give the ability for the module to interpolate between the correct behaviours for these extreme cases to handle the more realistic cases.
57
+
58
+ These parameters are responsible for handling variations in attention weights and partial bounding box overlaps in a manner suitable for a given dataset.
59
+
60
+ To achieve this, we use several piecewise linear functions $f _ { 1 } , \ldots , f _ { 8 }$ as activation functions (defined in Appendix A), approximating arbitrary functions with domain and range [0, 1]. The shapes of these functions are learned to handle the specific nonlinear interactions necessary for dealing with overlapping proposals. Through their parametrization we enforce that $f _ { k } ( 0 ) = 0$ , $f _ { k } ( 1 ) = 1$ , and that they are monotonically increasing. The first two properties are required so that the extreme cases that we explicitly handle are left unchanged. In those cases, $f _ { k }$ is only applied to values of 0 or 1, so the activation functions can be safely ignored for understanding how the component handles them. By enforcing monotonicity, we can make sure that, for example, an increased value in an attention map should never result in the prediction of the count to decrease.
61
+
62
+ # 4.1 INPUT
63
+
64
+ Given a set of features from object proposals, an attention mechanism produces a weight for each proposal based on the question. The counting component takes as input the $n$ largest attention weights $\mathbf { \bar { a } } = [ a _ { 1 } , \ldots , a _ { n } ] ^ { \mathsf { T } }$ and their corresponding bounding boxes $\mathbf { b } = [ b _ { 1 } , \ldots , b _ { n } ] ^ { \mathsf { T } }$ . We assume that the weights lie in the interval $[ 0 , 1 ]$ , which can easily be achieved by applying a logistic function.
65
+
66
+ In the extreme cases that we explicitly handle, we assume that the attention mechanism assigns a value of 1 to $a _ { i }$ whenever the ith proposal contains a relevant object and a value of 0 whenever it does not. This is in line with what usual soft attention mechanisms learn, as they produce higher weights for relevant inputs. We also assume that either two object proposals fully overlap (in which case they must be showing the same object and thus receive the same attention weight) or that they are fully distinct (in which case they show different objects). Keep in mind that while we make these assumptions to make reasoning about the behaviour easier, the learned parameters in the activation functions are intended to handle the more realistic scenarios when the assumptions do not apply.
67
+
68
+ Instead of partially overlapping proposals, the problem now becomes the handling of exact duplicate proposals of underlying objects in a differentiable manner.
69
+
70
+ # 4.2 DEDUPLICATION
71
+
72
+ We start by changing the vector of attention weights a into a graph representation in which bounding boxes can be utilized more easily. Hence, we compute the outer product of the attention weights to obtain an attention matrix.
73
+
74
+ $$
75
+ \mathbf { A } = \mathbf { a } \mathbf { a } ^ { \mathsf { T } }
76
+ $$
77
+
78
+ $\mathbf { A } \in \mathbb { R } ^ { n \times n }$ can be interpreted as an adjacency matrix for a weighted directed graph. In this graph, the ith vertex represents the object proposal associated with $a _ { i }$ and the edge between any pair of vertices $( i , j )$ has weight $a _ { i } a _ { j }$ . In the extreme case where $a _ { i }$ is virtually 0 or 1, products are equivalent to logical AND operators. It follows that the subgraph containing only the vertices satisfying $a _ { i } = 1$ is a complete digraph with self-loops.
79
+
80
+ In this representation, our objective is to eliminate edges in such a way that, conceptually, the underlying true objects – instead of proposals thereof – are the vertices of that complete subgraph. In order to then turn that graph into a count, recall that the number of edges $| E |$ in a complete digraph with self-loops relates to the number of vertices $| V |$ through $| E | = | V | ^ { 2 }$ . $| E |$ can be computed by summing over the entries in an adjacency matrix and $| V |$ is then the count. Notice how when $| E |$ is set to the sum over A, ${ \sqrt { \textstyle | E | } } = \sum _ { i } a _ { i }$ holds. This convenient property implies that when all proposals are fully distinct, the component can output the same as simply summing over the original attention weights by default.
81
+
82
+ There are two types of duplicate edges to eliminate to achieve our objective: intra-object edges and inter-object edges.
83
+
84
+ # 4.2.1 INTRA-OBJECT EDGES
85
+
86
+ First, we eliminate intra-object edges between duplicate proposals of a single underlying object.
87
+
88
+ ![](images/ebf111b774761b74e228aac07c7d7d09a9fdfade0a9ad743d7521aa694abb69f.jpg)
89
+
90
+ ![](images/afc38c727db1f3d829ce09537e6ec8c8c604979b7eca9b190e7296a9afa5152c.jpg)
91
+ Figure 2: Removal of intra-object edges by masking the edges of the attention matrix A with the distance matrix D. The black vertices now form a graph without self-loops. The self-loops need to be added back in later.
92
+ Figure 3: Removal of duplicate inter-object edges by computing a scaling factor for each vertex and scaling $\tilde { \mathbf { A } } ^ { \prime }$ accordingly. $\bar { \mathbf { A } } ^ { \prime }$ is $\tilde { \mathbf { A } }$ with self-loops already added back in. The scaling factor for one vertex is computed by counting how many vertices have outgoing edges to the same set of vertices; all edges of the two proposals on the right are scaled by 0.5. This can be seen as averaging proposals within each object and is equivalent to removing duplicate proposals altogether under a sum.
93
+
94
+ To compare two bounding boxes, we use the usual intersection-over-union (IoU) metric. We define the distance matrix $\mathbf { D } \in \bar { \mathbb { R } } ^ { n \times n }$ to be
95
+
96
+ $$
97
+ D _ { i j } = 1 - \mathrm { I o U } ( b _ { i } , b _ { j } )
98
+ $$
99
+
100
+ $\mathbf { D }$ can also be interpreted as an adjacency matrix. It represents a graph that has edges everywhere except when the two bounding boxes that an edge connects would overlap.
101
+
102
+ Intra-object edges are removed by elementwise multiplying $( \odot )$ the distance matrix with the attention matrix (Figure 2).
103
+
104
+ $$
105
+ \tilde { \mathbf { A } } = f _ { 1 } ( \mathbf { A } ) \odot f _ { 2 } ( \mathbf { D } )
106
+ $$
107
+
108
+ $\tilde { \mathbf { A } }$ no longer has self-loops, so we need to add them back in at a later point to still satisfy $| E | = | V | ^ { 2 }$ Notice that we start making use of the activation functions mentioned earlier to handle intermediate values in the interval $( 0 , 1 )$ for both A and $\mathbf { D }$ . They regulate the influence of attention weights that are not close to 0 or 1 and the influence of partial overlaps.
109
+
110
+ # 4.2.2 INTER-OBJECT EDGES
111
+
112
+ Second, we eliminate inter-object edges between duplicate proposals of different underlying objects.
113
+
114
+ The main idea (depicted in Figure 3) is to count the number of proposals associated to each invidual object, then scale down the weight of their associated edges by that number. If there are two proposals of a single object, the edges involving those proposals should be scaled by 0.5. In essence, this averages over the proposals within each underlying object because we only use the sum over the edge weights to compute the count at the end. Conceptually, this reduces multiple proposals of an object down to one as desired. Since we do not know how many proposals belong to an object, we have to estimate this. We do this by using the fact that proposals of the same object are similar.
115
+
116
+ Keep in mind that $\tilde { \mathbf { A } }$ has no self-loops nor edges between proposals of the same object. As a consequence, two nonzero rows in $\tilde { \mathbf { A } }$ are the same if and only if the proposals are the same. If the two rows differ in at least one entry, then one proposal overlaps a proposal that the other proposal does not overlap, so they must be different proposals. This means for comparing rows, we need a similarity function that satisfies the criteria of taking the value 1 when they differ in no places and 0 if they differ in at least one place. We define a differentiable similarity between proposals $i$ and $j$ as
117
+
118
+ $$
119
+ \mathrm { S i m } _ { i j } = f _ { 3 } ( 1 - | a _ { i } - a _ { j } | ) \prod _ { k } f _ { 3 } ( 1 - | X _ { i k } - X _ { j k } | )
120
+ $$
121
+
122
+ where $\mathbf { X } = f _ { 4 } ( \mathbf { A } ) \odot f _ { 5 } ( \mathbf { D } )$ is the same as $\tilde { \mathbf { A } }$ except with different activation functions. The $\prod$ term compares the rows of proposals $i$ and $j$ . Using this term instead of $f _ { 4 } ( 1 - D _ { i j } )$ was more robust to inaccurate bounding boxes in initial experiments.
123
+
124
+ Note that the $f _ { 3 } ( 1 - | a _ { i } - a _ { j } | )$ term handles the edge case when there is only one proposal to count. Since $\mathbf { X }$ does not have self-loops, $\mathbf { X }$ contains only zeros in that case, which causes the row corresponding to $a _ { i } = 1$ to be incorrectly similar to the rows where $a _ { j \neq i } = 0$ . By comparing the attention weights through that term as well, this issue is avoided.
125
+
126
+ Now that we can check how similar two proposals are, we count the number of times any row is the same as any other row and compute a scaling factor $s _ { i }$ for each vertex $i$ .
127
+
128
+ $$
129
+ s _ { i } = 1 / \sum _ { j } \mathrm { S i m } _ { i j }
130
+ $$
131
+
132
+ The time complexity of computing $\mathbf { s } = [ s _ { 1 } , \ldots , s _ { n } ] ^ { \mathsf { T } }$ is $\Theta ( n ^ { 3 } )$ as there are $n ^ { 2 }$ pairs of rows and $\Theta ( n )$ operations to compute the similarity of any pair of rows.
133
+
134
+ Since these scaling factors apply to each vertex, we have to expand s into a matrix using the outer product in order to scale both incoming and outgoing edges of each vertex. We can also add self-loops back in, which need to be scaled by s as well. Then, the count matrix $\mathbf { C }$ is
135
+
136
+ $$
137
+ \mathbf { C } = \tilde { \mathbf { A } } \odot \mathbf { s s } ^ { \mathsf { T } } + \mathrm { { d i a g } } ( \mathbf { s } \odot f _ { 1 } ( \mathbf { a } \odot \mathbf { a } ) )
138
+ $$
139
+
140
+ where $\mathrm { d i a g ( \cdot ) }$ expands a vector into a diagonal matrix with the vector on the diagonal.
141
+
142
+ The scaling of self-loops involves a non-obvious detail. Recall that the diagonal that was removed when going from $\mathbf { A }$ to $\tilde { \mathbf { A } }$ contains the entries $f _ { 1 } ( \mathbf { a } \odot \mathbf { a } )$ . Notice however that we are scaling this diagonal by s and not s $\odot$ s. This is because the number of inter-object edges scales quadratically with respect to the number of proposals per object, but the number of self-loops only scales linearly.
143
+
144
+ # 4.3 OUTPUT
145
+
146
+ Under a sum, $\mathbf { C }$ is now equivalent to a complete graph with self-loops that involves all relevant objects instead of relevant proposals as originally desired.
147
+
148
+ To turn $\mathbf { C }$ into a count $c$ , we set $\begin{array} { r } { | E | = \sum _ { i , j } C _ { i j } } \end{array}$ as mentioned and
149
+
150
+ $$
151
+ c = | V | = \sqrt { | E | }
152
+ $$
153
+
154
+ We verified experimentally that when our extreme case assumptions hold, $c$ is always an integer and equal to the correct count, regardless of the number of duplicate object proposals.
155
+
156
+ To avoid issues with scale when the number of objects is large, we turn this single feature into several classes, one for each possible number. Since we only used the object proposals with the largest $n$ weights, the predicted count $c$ can be at most $n$ . We define the output $\mathbf { o } ^ { \mathsf { ^ { - } } } = [ o _ { 0 } , o _ { 1 } , \ldots , o _ { n } ] ^ { \mathsf { T } }$ to be
157
+
158
+ $$
159
+ o _ { i } = \operatorname* { m a x } ( 0 , 1 - | c - i | )
160
+ $$
161
+
162
+ This results in a vector that is 1 at the index of the count and 0 everywhere else when $c$ is exactly an integer, and a linear interpolation between the two corresponding one-hot vectors when the count falls inbetween two integers.
163
+
164
+ # 4.3.1 OUTPUT CONFIDENCE
165
+
166
+ Finally, we might consider a prediction made from values of a and $\mathbf { D }$ that are either close to 0 or close to 1 to be more reliable – we explicitly handle these after all – than when many values are close to 0.5. To incorporate this idea, we scale $\mathbf { o }$ by a confidence value in the interval $[ 0 , 1 ]$ .
167
+
168
+ We define $p _ { \mathbf { a } }$ and $p _ { \mathbf { D } }$ to be the average distances to 0.5. The choice of 0.5 is not important, because the module can learn to change it by changing where $f _ { 6 } ( x ) = 0 . 5$ and $f _ { 7 } ( x ) = 0 . 5$ .
169
+
170
+ $$
171
+ \begin{array} { l } { { \displaystyle p _ { \mathbf { a } } = \frac { 1 } { n } \sum _ { i } \left. f _ { 6 } ( a _ { i } ) - 0 . 5 \right. } } \\ { { \displaystyle p _ { \mathbf { D } } = \frac { 1 } { n ^ { 2 } } \sum _ { i , j } \left. f _ { 7 } ( D _ { i j } ) - 0 . 5 \right. } } \end{array}
172
+ $$
173
+
174
+ Then, the output of the component with confidence scaling is
175
+
176
+ $$
177
+ \tilde { \mathbf { o } } = f _ { 8 } ( p _ { \mathbf { a } } + p _ { \mathbf { D } } ) \cdot \mathbf { o }
178
+ $$
179
+
180
+ In summary, we only used diffentiable operations to deduplicate object proposals and obtain a feature vector that represents the predicted count. This allows easy integration into any model with soft attention, enabling a model to count from an attention map.
181
+
182
+ # 5 EXPERIMENTS
183
+
184
+ # 5.1 TOY TASK
185
+
186
+ First, we design a simple toy task to evaluate counting ability. This dataset is intended to only evaluate the performance of counting; thus, we skip any processing steps that are not directly related such as the processing of an input image. Samples from this dataset are given in Appendix D
187
+
188
+ The classification task is to predict an integer count $\hat { c }$ of true objects, uniformly drawn from 0 to 10 inclusive, from a set of bounding boxes and the associated attention weights. 10 square bounding boxes with side length $l \in ( 0 , 1 \bar { ] }$ are placed in a square image with unit side length. The $\mathbf { X }$ and y coordinates of their top left corners are uniformly drawn from $U ( 0 , 1 - l )$ so that the boxes do not extend beyond the image border. $l$ is used to control the overlapping of bounding boxes: a larger $l$ leads to the fixed number of objects to be more tightly packed, increasing the chance of overlaps. $\hat { c }$ number of these boxes are randomly chosen to be true bounding boxes. The score of a bounding box is the maximum IoU overlap of it with any true bounding box. Then, the attention weight is a linear interpolation between the score and a noise value drawn from $U ( 0 , 1 )$ , with $q \in [ 0 , 1 ]$ controlling this trade-off. $q$ is the attention noise parameter: when $q$ is 0, there is no noise and when $q$ is 1, there is no signal. Increasing $q$ also indirectly simulates imprecise placements of bounding boxes.
189
+
190
+ We compare the counting component against a simple baseline that simply sums the attention weights and turns the sum into a feature vector with Equation 8. Both models are followed by a linear projection to the classes 0 to 10 inclusive and a softmax activation. They are trained with crossentropy loss for 1000 iterations using Adam (Kingma & Ba, 2015) with a learning rate of 0.01 and a batch size of 1024.
191
+
192
+ # 5.1.1 RESULTS
193
+
194
+ The results of varying $l$ while keeping $q$ fixed at various values and vice versa are shown in Figure 4. Regardless of $l$ and $q$ , the counting component performs better than the baseline in most cases, often significantly so. Particularly when the noise is low, the component can deal with high values for $l$ very successfully, showing that it accomplishes the goal of increased robustness to overlapping proposals. The component also handles moderate noise levels decently as long as the overlaps are limited. The performance when both $l$ and $q$ are high is closely matched by the baseline, likely due to the high difficulty of those parametrizations leaving little information to extract in the first place.
195
+
196
+ We can also look at the shape of the activation functions themselves, shown in Figure 5 and Appendix C, to understand how the behaviour changes with varying dataset parameters. For simplicity, we limit our description to the two easiest-to-interpret functions: $f _ { 1 }$ for the attention weights and $f _ { 2 }$ for the bounding box distances.
197
+
198
+ ![](images/3fb48560d3ebed9fd32e0c830572ff36757f872f81d3938700678967ef165a4e.jpg)
199
+ Figure 4: Accuracies on the toy task as side length $l$ and noise $q$ are varied in 0.01 step sizes.
200
+
201
+ ![](images/21e53377d411fcb31ec0d56dc4ccce342dbc7c34ca06a323a7b0659898b842de.jpg)
202
+ Figure 5: Shapes of trained activation functions $f _ { 1 }$ (attention weights) and $f _ { 2 }$ (bounding box distances) for varying bounding box side lengths (left) or the noise (right) in the dataset, varied in 0.01 step sizes. Best viewed in color.
203
+
204
+ When increasing the side length, the height of the “step” in $f _ { 1 }$ decreases to compensate for the generally greater degree of overlapping bounding boxes. A similar effect is seen with $f _ { 2 }$ : it varies over requiring a high pairwise distance when $l$ is low – when partial overlaps are most likely spurious – and considering small distances enough for proposals to be considered different when $l$ is high. At the highest values for $l$ , there is little signal in the overlaps left since everything overlaps with everything, which explains why $f _ { 2 }$ returns to its default linear initialization for those parameters.
205
+
206
+ When varying the amount of noise, without noise $f _ { 1 }$ resembles a step function where the step starts close to $x = 1$ and takes a value of close to 1 after the step. Since a true proposal will always have a weight of 1 when there is no noise, anything below this can be safely zeroed out. With increasing noise, this step moves away from 1 for both $x$ and $f _ { 1 } ( x )$ , capturing the uncertainty when a bounding box belongs to a true object. With lower $q$ , $f _ { 2 }$ considers a pair of proposals to be distinct for lower distances, whereas with higher $q$ , $f _ { 2 }$ follows a more sigmoidal shape. This can be explained by the model taking the increased uncertainty of the precise bounding box placements into account by requiring higher distances for proposals to be considered completely different.
207
+
208
+ # 5.2 VQA
209
+
210
+ VQA v2 (Goyal et al., 2017) is the updated version of the VQA v1 dataset (Antol et al., 2015) where greater care has been taken to reduce dataset biases through balanced pairs: for each question, a pair of images is identified where the answer to that question differs. The standard accuracy metric on this dataset accounts for disagreements in human answers by averaging $\mathrm { m i n } ( \textstyle { \frac { 1 } { 3 } }$ agreeing, 1) over all 10-choose-9 subsets of human answers, where agreeing is the number of human answers that agree with the given answer. This can be shown to be equal to $\operatorname* { m i n } ( 0 . 3 a g r e e i n g , 1 )$ without averaging.
211
+
212
+ We use an improved version of the strong VQA baseline by Kazemi & Elqursh (2017) as baseline model (details in Appendix B). We have not performed any tuning of this baseline to maximize the performance difference between it and the baseline with counting module. To augment this model with the counting component, we extract the attention weights of the first attention glimpse (there are two in the baseline) before softmax normalization, and feed them into the counting component after applying a logistic function. Since object proposal features from Anderson et al. (2017) vary from 10 to 100 per image, a natural choice for the number of top- $^ n$ proposals to use is 10. The output of the component is linearly projected into the same space as the hidden layer of the classifier, followed by ReLU activation, batch normalization, and addition with the features in the hidden layer.
213
+
214
+ Table 1: Results on VQA v2 of the top models along with our results. Entries marked with (Ens.) are ensembles of models. At the time of writing, our model with the counting module places third among all entries. All models listed here use object proposal features and are trained on the training and validation sets. The top-performing ensemble models use additional pre-trained word embeddings, which we do not use.
215
+
216
+ <table><tr><td></td><td colspan="4">VQA v2 test-dev</td><td colspan="4">VQA v2 test</td></tr><tr><td>Model</td><td>Yes/No</td><td>Number</td><td>Other</td><td>All</td><td>Yes/No</td><td>Number</td><td>Other</td><td>All</td></tr><tr><td>Teney et al. (2017)</td><td>81.82</td><td>44.21</td><td>56.05</td><td>65.32</td><td>82.20</td><td>43.90</td><td>56.26</td><td>65.67</td></tr><tr><td>Teney et al. (2017) (Ens.)</td><td>86.08</td><td>48.99</td><td>60.80</td><td>69.87</td><td>86.60</td><td>48.64</td><td>61.15</td><td>70.34</td></tr><tr><td>Zhou et al. (2017)</td><td>84.27</td><td>49.56</td><td>59.89</td><td>68.76</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>Zhou et al. (2017) (Ens.)</td><td>1</td><td>1</td><td>1</td><td>1</td><td>86.65</td><td>51.13</td><td>61.75</td><td>70.92</td></tr><tr><td>Baseline</td><td>82.98</td><td>46.88</td><td>58.99</td><td>67.50</td><td>83.21</td><td>46.60</td><td>59.20</td><td>67.78</td></tr><tr><td>+ counting module</td><td>83.14</td><td>51.62</td><td>58.97</td><td>68.09</td><td>83.56</td><td>51.39</td><td>59.11</td><td>68.41</td></tr></table>
217
+
218
+ Table 2: Results on the VQA v2 validation set with models trained only on the training set. Reported are the mean accuracies and sample standard deviations $( \pm )$ over 4 random initializations.
219
+
220
+ <table><tr><td></td><td colspan="3">VQA accuracy</td><td colspan="3">Balanced pair accuracy</td></tr><tr><td>Model</td><td>Number</td><td>Count</td><td>All</td><td>Number</td><td>Count</td><td>All</td></tr><tr><td>Baseline</td><td>44.83±0.2</td><td>51.69±0.2</td><td>64.80±0.0</td><td>17.34±0.2</td><td>20.02±0.2</td><td>36.44±0.1</td></tr><tr><td>+ NMS</td><td>44.60±0.1</td><td>51.41±0.1</td><td>64.80±0.1</td><td>17.06±0.1</td><td>19.72±0.1</td><td>36.44±0.2</td></tr><tr><td> + counting module</td><td>49.36±0.1</td><td>57.03±0.0</td><td>65.42±0.1</td><td>23.10±0.2</td><td>26.63±0.2</td><td>37.19±0.1</td></tr></table>
221
+
222
+ # 5.2.1 RESULTS
223
+
224
+ Table 1 shows the results on the official VQA v2 leaderboard. The baseline with our component has a significantly higher accuracy on number questions without compromising accuracy on other categories compared to the baseline result. Despite our single-model baseline being substantially worse than the state-of-the-art, by simply adding the counting component we outperform even the 8-model ensemble in Zhou et al. (2017) on the number category. We expect further improvements in number accuracy when incorporating their techniques to improve the quality of attention weights, especially since the current state-of-the-art models suffer from the problems with counting that we mention in section 3. Some qualitative examples of inputs and activations within the counting component are shown in Appendix E.
225
+
226
+ We also evaluate our models on the validation set of VQA v2, shown in Table 2. This allows us to consider only the counting questions within number questions, since number questions include questions such as ”what time is it?” as well. We treat any question starting with the words ”how many” as a counting question. As we expect, the benefit of using the counting module on the counting question subset is higher than on number questions in general. Additionally, we try an approach where we simply replace the counting module with NMS, using the average of the attention glimpses as scoring, and one-hot encoding the number of proposals left. The NMS-based approach, using an IoU threshold of 0.5 and no score thresholding based on validation set performance, does not improve on the baseline, which suggests that the piecewise gradient of NMS is a major problem for learning to count in VQA and that conversely, there is a substantial benefit to being able to differentiate through the counting module.
227
+
228
+ Additionally, we can evaluate the accuracy over balanced pairs as proposed by Teney et al. (2017): the ratio of balanced pairs on which the VQA accuracy for both questions is 1.0. This is a much more difficult metric, since it requires the model to find the subtle details between images instead of being able to rely on question biases in the dataset. First, notice how all balanced pair accuracies are greatly reduced compared to their respective VQA accuracy. More importantly, the absolute accuracy improvement of the counting module is still fully present with the more challenging metric, which is further evidence that the component can properly count rather than simply fitting better to dataset biases.
229
+
230
+ When looking at the activation functions of the trained model, shown in Figure 9, we find that some characteristics of them are shared with high-noise parametrizations of the toy dataset. This suggests that the current attention mechanisms and object proposal network are still very inaccurate, which explains the perhaps small-seeming increase in counting performance. This provides further evidence that the balanced pair accuracy is maybe a more reflective measure of how well current VQA models perform than the overall VQA accuracies of over $70 \%$ of the current top models.
231
+
232
+ # 6 CONCLUSION
233
+
234
+ After understanding why VQA models struggle to count, we designed a counting component that alleviates this problem through differentiable bounding box deduplication. The component can readily be used alongside any future improvements in VQA models, as long as they still use soft attention as all current top models on VQA v2 do. It has uses outside of VQA as well: for many counting tasks, it can allow an object-proposal-based approach to work without ground-truth objects available as long as there is a – possibly learned – per-proposal scoring (for example using a classification score) and a notion of how dissimilar a pair of proposals are. Since each step in the component has a clear purpose and interpretation, the learned weights of the activation functions are also interpretable. The design of the counting component is an example showing how by encoding inductive biases into a deep learning model, challenging problems such as counting of arbitrary objects can be approached when only relatively little supervisory information is available.
235
+
236
+ For future research, it should be kept in mind that VQA v2 requires a versatile skill set that current models do not have. To make progress on this dataset, we advocate focusing on understanding of what the current shortcomings of models are and finding ways to mitigate them.
237
+
238
+ # REFERENCES
239
+
240
+ Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and VQA. CoRR, arXiv:1707.07998, 2017.
241
+ Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In ICCV, 2015.
242
+ Samaneh Azadi, Jiashi Feng, and Trevor Darrell. Learning detection with diverse proposals. In CVPR, 2017.
243
+ Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In ICLR, 2015.
244
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
245
+ Prithvijit Chattopadhyay, Ramakrishna Vedantam, Ramprasaath R. Selvaraju, Dhruv Batra, and Devi Parikh. Counting everyday objects in everyday scenes. In CVPR, 2017.
246
+ Kyunghyun Cho, B van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: Encoder-decoder approaches. In SSST@EMNLP, 2014.
247
+ Joseph Paul Cohen, Henry Z. Lo, and Yoshua Bengio. Count-ception: Counting by fully convolutional redundant counting. CoRR, arXiv:1703.08710, 2017.
248
+ Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In CVPR, 2017.
249
+
250
+ Paul Henderson and Vittorio Ferrari. End-to-end training of object class detectors for mean average precision. In ACCV, 2017.
251
+
252
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 1997.
253
+
254
+ Jan Hosang, Rodrigo Benenson, and Bernt Schiele. Learning non-maximum suppression. In CVPR, 2017.
255
+
256
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
257
+
258
+ Allan Jabri, Armand Joulin, and Laurens van der Maaten. Revisiting visual question answering baselines. In ECCV, 2016.
259
+
260
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NIPS, 2015.
261
+
262
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross Girshick. CLEVR: A diagnostic dataset for compositional language and elementary visual reasoning. In CVPR, 2017.
263
+
264
+ Vahid Kazemi and Ali Elqursh. Show, ask, attend, and answer: A strong baseline for visual question answering. CoRR, arXiv:1704.03162, 2017.
265
+
266
+ Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In ICLR, 2017.
267
+
268
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
269
+
270
+ Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In NIPS, 2010.
271
+
272
+ Victor Lempitsky and Andrew Zisserman. Learning to count objects in images. In NIPS, 2010.
273
+
274
+ Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. In NIPS, 2016.
275
+
276
+ Dmytro Mishkin and Jiri Matas. All you need is a good init. In ICLR, 2016.
277
+
278
+ Volodymyr Mnih, Nicolas Heess, Alex Graves, and Koray Kavukcuoglu. Recurrent models of visual attention. In NIPS, 2014.
279
+
280
+ Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. CoRR, arXiv:1709.07871, 2017.
281
+
282
+ Mengye Ren and Richard S. Zemel. End-to-end instance segmentation with recurrent attention. In CVPR, 2017.
283
+
284
+ Adam Santoro, David Raposo, David G. T. Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy P. Lillicrap. A simple neural network module for relational reasoning. In NIPS, 2017.
285
+
286
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 2014.
287
+
288
+ Damien Teney, Peter Anderson, Xiaodong He, and Anton van den Hengel. Tips and tricks for visual question answering: Learnings from the 2017 challenge. CoRR, arXiv:1708.02711, 2017.
289
+
290
+ Alexander Trott, Caiming Xiong, and Richard Socher. Interpretable counting for visual question answering. In ICLR, 2018.
291
+
292
+ Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alexander J. Smola. Stacked attention networks for image question answering. In CVPR, 2016.
293
+
294
+ Seungil You, David Ding, Kevin Canini, Jan Pfeifer, and Maya Gupta. Deep Lattice Networks and Partial Monotonic Functions. In NIPS, 2017.
295
+
296
+ Yu Zhou, Yu Jun, Xiang Chenchao, Fan Jianping, and Tao Dacheng. Beyond bilinear: Generalized multi-modal factorized high-order pooling for visual question answering. CoRR, arXiv:1708.03619, 2017.
297
+
298
+ Chen Zhu, Yanpeng Zhao, Shuaiyi Huang, Kewei Tu, and Yi Ma. Structured attentions for visual question answering. CoRR, arXiv:1708.02071, 2017.
299
+
300
+ # A PIECEWISE LINEAR ACTIVATION FUNCTION
301
+
302
+ Intuitively, the interval $[ 0 , 1 ]$ is split into $d$ equal size intervals. Each contains a line segment that is connected to the neighboring line segments at the boundaries of the intervals. These line segments form the shape of the activation function.
303
+
304
+ For each function $f _ { k }$ , there are $d$ weights $w _ { k 1 } , \ldots , w _ { k d }$ , where the weight $w _ { k i }$ is the gradient for the interval $[ \textstyle { \frac { i - 1 } { d } } , \textstyle { \frac { i } { d } } )$ . We arbitrarily fix $d$ to be 16 in this paper, observing no significant difference when changing it to 8 and 32 in preliminary experiments. All $w _ { k i }$ are enforced to be non-negative by always using the absolute value of them, which yields the monotonicity property. Dividing the weights by $\Sigma _ { m } ^ { d } \mid w _ { k m } \mid$ yields the property that $f ( 1 ) = 1$ . The function can be written as
305
+
306
+ $$
307
+ f _ { k } ( x ) = \sum _ { i = 1 } ^ { d } \operatorname* { m a x } ( 0 , 1 - | d x - i | ) \frac { \sum _ { j = 1 } ^ { i } | w _ { k j } | } { \sum _ { m = 1 } ^ { d } | w _ { k m } | }
308
+ $$
309
+
310
+ In essence, the max term selects the two nearest boundary values of an interval, which are normalized cumulative sums over the $w _ { k }$ weights, and linearly interpolates between the two. This approach is similar to the subgradient approach by Jaderberg et al. (2015) to make sampling from indices differentiable. All $w _ { k i }$ are initialized to 1, which makes the functions linear on initialization. When applying $f _ { k } ( { \bf x } )$ to a vector-valued input $\mathbf { x }$ , it is assumed to be applied elementwise. By caching the normalized cumulative sum $\begin{array} { r } { \sum _ { j } ^ { i } | w _ { k j } | / \sum _ { m } ^ { d } | w _ { k m } | } \end{array}$ , this function has linear time complexity with respect to $d$ and is efficiently implementable on GPUs.
311
+
312
+ Extensions to this are possible through Deep Lattice Networks (You et al., 2017), which preserve monotonicity across several nonlinear neural network layers. They would allow A and $\mathbf { D }$ to be combined in more sophisticated ways beyond an elementwise product, possibly improving counting performance as long as the property of the range lying within $[ 0 , 1 ]$ is still enforced in some way.
313
+
314
+ # B BASELINE ARCHITECTURE
315
+
316
+ This model is based on the work of Kazemi & Elqursh (2017), who outperformed most previous VQA models on the VQA v1 dataset with a simple baseline architecture. We adapt the model to the VQA v2 dataset and make various tweaks that improve validation accuracy slightly. The architecture is illustrated in Figure 6. Details not mentioned here can be assumed to be the same as in their paper.
317
+
318
+ The most significant change that we make is the use of object proposal features by Anderson et al. (2017) as previously mentioned. The following tweaks were made without considering the performance impact on the counting component; only the validation accuracy of the baseline was optimized.
319
+
320
+ To fuse vision features $\mathbf { x }$ and question features y, the baseline concatenates and linearly projects them, followed by a ReLU activation. This is equivalent to ReLU $( \mathbf { W } _ { x } \mathbf { x } + \mathbf { W } _ { y } \mathbf { y } )$ . We include an additional term that measures how different the projected $\mathbf { x }$ is from the projected y, changing the fusion mechanism to $\mathbf { x } \odot \mathbf { y } = \operatorname { R e L U } ( \mathbf { W } _ { x } \mathbf { x } + \mathbf { W } _ { y } \mathbf { y } ) - ( \mathbf { W } _ { x } \mathbf { x } - \mathbf { W } _ { y } \mathbf { y } ) ^ { 2 }$ .
321
+
322
+ The LSTM (Hochreiter & Schmidhuber, 1997) for question encoding is replaced with a GRU (Cho et al., 2014) with the same hidden size with dynamic per-example unrolling instead of a fixed 14 words per question. We apply batch normalization (Ioffe & Szegedy, 2015) before the last linear projection in the classifier to the 3000 classes. The learning rate is increased from 0.001 to 0.0015 and the batch size is doubled to 256. The model is trained for 100 epochs (1697 iterations per epoch to train on the training set, 2517 iterations per epoch to train on both training and validation sets) instead of 100,000 iterations, roughly in line with the doubling of dataset size when going from VQA v1 to VQA v2.
323
+
324
+ Note that this single-model baseline is regularized with dropout (Srivastava et al., 2014), while the other current top models skip this and rely on ensembling to reduce overfitting. This explains why our single-model baseline outperforms most single-model results of the state-of-the-art models. We found ensembling of the regularized baseline to provide a much smaller benefit in preliminary experiments compared to the results of ensembling unregularized networks reported in Teney et al. (2017).
325
+
326
+ ![](images/490c1f6c072e0a062d39ff4d6cc97980d0cf6261d8fcaf1d9d6a6f9cad6001a1.jpg)
327
+ Figure 6: Schematic view of a model using our counting component. The modifications made to the baseline model when including the counting component are marked in red. Blue blocks mark components with trainable parameters, gray blocks mark components without trainable parameters. White $\textsuperscript { \textregistered }$ mark linear layers, either linear projections or convolutions with a spatial size of 1 depending on the context. Dropout with drop probability 0.5 is applied before the GRU and every $\textsuperscript { \textregistered }$ , except before the $\textsuperscript { \textregistered }$ after the counting component. $\diamond$ stands for the fusion function we define in Appendix B, BN stands for batch normalization, $\sigma$ stands for a logistic, and Embedding is a word embedding that has been fed through a tanh function. The two glimpses of the attention mechanism are represented with the two lines exiting the $\textsuperscript { \textregistered }$ . Note that one of the two glimpses is shared with the counting component.
328
+
329
+ ![](images/07d2e4d6eedacaf38bf7ab5fb51fab2d11a25b373c83069db69f688b7b40cae0.jpg)
330
+ Figure 7: Shape of activation functions as $l$ is varied for $q = 0 . 5$ on the toy dataset. Each line shows the shape of the activation function when $l$ is set to the value associated to its color. Best viewed in color.
331
+
332
+ ![](images/e630ceffcd3a5654e3eb6233016450532e537c9e33e24a644459ee0f3beb38ae.jpg)
333
+ Figure 8: Shape of activation functions as $q$ is varied for $l = 0 . 5$ on the toy dataset. Each line shows the shape of the activation function when $q$ is set to the value associated to its color. Best viewed in color.
334
+
335
+ ![](images/0c0fbd90d5fdb814b3a5f433d4b3e097fa2287a734697d8678539536c723c7d2.jpg)
336
+ Figure 9: Shape of activation functions for a model trained on the train and validation sets of VQA v2 (thick black), compared against the shapes when parametrizing the toy dataset with $q$ around 0.4 (green), 0.7 (orange), or 1.0 (red) with fixed $l = 0 . 2$ . Best viewed in color.
337
+
338
+ ![](images/82a95f366fb3f29067d4526bec9b7457d9cdecee732615090ede2cab04ee24a8.jpg)
339
+ Figure 10: Example toy dataset data for varying bounding box side lengths $l$ and noise $q$ . The ground truth column shows bounding boxes of randomly placed true objects (blue) and of irrelevant objects (red). The data column visualizes the samples that are actually used as input (dark blues represent weights close to 1, dark reds represent weights close to 0, lighter colors represent weights closer to 0.5). The weight of the ith bounding box $b _ { i }$ is defined as $a _ { i } = ( 1 - q )$ score $+ q z$ where the score is the maximum overlap of $b _ { i }$ with any true bounding box or 0 if there are no true bounding boxes and $z$ is drawn from $U ( 0 , 1 )$ . Note how this turns red bounding boxes that overlap a lot with a blue bounding box in the ground truth column into a blue bounding box in the data column, which simulates the duplicate proposal that we have to deal with. Best viewed in color.
340
+
341
+ ![](images/2f649731cb7ae201b34fb60357ccbb8c13f0f0e0a6906d1cd4d0372f1be0a82e.jpg)
342
+ Figure 11: Selection of validation images with overlaid bounding boxes, values of the attention matrix A, distance matrix D, and the resulting count matrix C. White entries represent values close to 1, black entries represent values close to 0. The count $c$ is the usual square root of the sum over the elements of C. Notice how particularly in the third example, A clearly contains more rows/columns with high activations than there are actual objects (a sign of overlapping bounding boxes) and the counting module successfully removes intra- and inter-object edges to arrive at the correct prediction regardless. The prediction is not necessarily – though often is – the rounded value of $c$ .
parse/train/B12Js_yRb/B12Js_yRb_content_list.json ADDED
@@ -0,0 +1,1792 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING TO COUNT OBJECTS IN NATURAL IMAGES FOR VISUAL QUESTION ANSWERING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yan Zhang & Jonathon Hare & Adam Prugel-Bennett ¨ ",
17
+ "bbox": [
18
+ 183,
19
+ 172,
20
+ 562,
21
+ 188
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Department of Electronics and Computer Science University of Southampton {yz5n12,jsh2,apb}@ecs.soton.ac.uk ",
28
+ "bbox": [
29
+ 184,
30
+ 189,
31
+ 508,
32
+ 229
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 266,
43
+ 544,
44
+ 281
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Visual Question Answering (VQA) models have struggled with counting objects in natural images so far. We identify a fundamental problem due to soft attention in these models as a cause. To circumvent this problem, we propose a neural network component that allows robust counting from object proposals. Experiments on a toy task show the effectiveness of this component and we obtain state-of-theart accuracy on the number category of the VQA v2 dataset without negatively affecting other categories, even outperforming ensemble models with our single model. On a difficult balanced pair metric, the component gives a substantial improvement in counting over a strong baseline by $6 . 6 \\%$ . ",
51
+ "bbox": [
52
+ 233,
53
+ 296,
54
+ 766,
55
+ 422
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 446,
66
+ 336,
67
+ 463
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Consider the problem of counting how many cats there are in Figure 1. Solving this involves several rough steps: understanding what instances of that type can look like, finding them in the image, and adding them up. This is a common task in Visual Question Answering (VQA) – answering questions about images – and is rated as among the tasks requiring the lowest human age to be able to answer (Antol et al., 2015). However, current models for VQA on natural images struggle to answer any counting questions successfully outside of dataset biases (Jabri et al., 2016). ",
74
+ "bbox": [
75
+ 174,
76
+ 478,
77
+ 825,
78
+ 563
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One reason for this is the presence of a fundamental problem with counting in the widely-used soft attention mechanisms (section 3). Another reason is that unlike standard counting tasks, there is no ground truth labeling of where the objects to count are. Coupled with the fact that models need to be able to count a large variety of objects and that, ideally, performance on non-counting questions should not be compromised, the task of counting in VQA seems very challenging. ",
85
+ "bbox": [
86
+ 174,
87
+ 569,
88
+ 825,
89
+ 640
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "To make this task easier, we can use object proposals – pairs of a bounding box and object features – from object detection networks as input instead of learning from pixels directly. In any moderately complex scene, this runs into the issue of double-counting overlapping object proposals. This is a problem present in many natural images, which leads to inaccurate counting in real-world scenarios. ",
96
+ "bbox": [
97
+ 174,
98
+ 646,
99
+ 825,
100
+ 703
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Our main contribution is a differentiable neural network component that tackles this problem and consequently can learn to count (section 4). Used alongside an attention mechanism, this component avoids a fundamental limitation of soft attention while producing strong counting features. We provide experimental evidence of the effectiveness of this component (section 5). On a toy dataset, we demonstrate that this component enables robust counting in a variety of scenarios. On the number category of the VQA v2 Open-Ended dataset (Goyal et al., 2017), a relatively simple baseline model using the counting component outperforms all previous models – including large ensembles of state-of-the-art methods – without degrading performance on other categories. ",
107
+ "bbox": [
108
+ 174,
109
+ 709,
110
+ 825,
111
+ 821
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 840,
122
+ 341,
123
+ 856
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Usually, greedy non-maximum suppression (NMS) is used to eliminate duplicate bounding boxes. The main problem with using it as part of a model is that its gradient is piecewise constant. Various differentiable variants such as by Azadi et al. (2017), Hosang et al. (2017), and Henderson & Ferrari (2017) exist. The main difference is that, since we are interested in counting, our component does not need to make discrete decisions about which bounding boxes to keep; it outputs counting features, not a smaller set of bounding boxes. Our component is also easily integrated into standard VQA models that utilize soft attention without any need for other network architecture changes and can be used without using true bounding boxes for supervision. ",
130
+ "bbox": [
131
+ 176,
132
+ 872,
133
+ 825,
134
+ 900
135
+ ],
136
+ "page_idx": 0
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "",
141
+ "bbox": [
142
+ 174,
143
+ 103,
144
+ 825,
145
+ 186
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "On the VQA v2 dataset (Goyal et al., 2017) that we apply our method on, only few advances on counting questions have been made. The main improvement in accuracy is due to the use of object proposals in the visual processing pipeline, proposed by Anderson et al. (2017). Their object proposal network is trained with classes in singular and plural forms, for example “tree” versus “trees”, which only allows primitive counting information to be present in the object features after region-of-interest pooling. Our approach differs in the way that instead of relying on counting features being present in the input, we create counting features using information present in the attention map over object proposals. This has the benefit of being able to count anything that the attention mechanism can discriminate instead of only objects that belong to the predetermined set of classes that had plural forms. ",
152
+ "bbox": [
153
+ 174,
154
+ 194,
155
+ 825,
156
+ 332
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Using these object proposals, Trott et al. (2018) train a sequential counting mechanism with a reinforcement learning loss on the counting question subsets of VQA v2 and Visual Genome. They achieve a small increase in accuracy and can obtain an interpretable set of objects that their model counted, but it is unclear whether their method can be integrated into traditional VQA models due to their loss not applying to non-counting questions. Since they evaluate on their own dataset, their results can not be easily compared to existing results in VQA. ",
163
+ "bbox": [
164
+ 174,
165
+ 340,
166
+ 825,
167
+ 424
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Methods such as by Santoro et al. (2017) and Perez et al. (2017) can count on the synthetic CLEVR VQA dataset (Johnson et al., 2017) successfully without bounding boxes and supervision of where the objects to count are. They also use more training data ${ \\sim } 2 5 0 { , } 0 0 0$ counting questions in the CLEVR training set versus $\\sim 5 0 { , } 0 0 0$ counting questions in the VQA v2 training set), much simpler objects, and synthetic question structures. ",
174
+ "bbox": [
175
+ 174,
176
+ 430,
177
+ 825,
178
+ 500
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "More traditional approaches based on Lempitsky & Zisserman (2010) learn to produce a target density map, from which a count is computed by integrating over it. In this setting, Cohen et al. (2017) make use of overlaps of convolutional receptive fields to improve counting performance. Chattopadhyay et al. (2017) use an approach that divides the image into smaller non-overlapping chunks, each of which is counted individually and combined together at the end. In both of these contexts, the convolutional receptive fields or chunks can be seen as sets of bounding boxes with a fixed structure in their positioning. Note that while Chattopadhyay et al. (2017) evaluate their models on a small subset of counting questions in VQA, major differences in training setup make their results not comparable to our work. ",
185
+ "bbox": [
186
+ 174,
187
+ 507,
188
+ 825,
189
+ 632
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "3 PROBLEMS WITH SOFT ATTENTION ",
196
+ "text_level": 1,
197
+ "bbox": [
198
+ 176,
199
+ 671,
200
+ 493,
201
+ 688
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "The main message in this section is that using the feature vectors obtained after the attention mechanism is not enough to be able to count; the attention maps themselves should be used, which is what we do in our counting component. ",
208
+ "bbox": [
209
+ 174,
210
+ 713,
211
+ 823,
212
+ 756
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Models in VQA have consistently benefited from the use of soft attention (Mnih et al., 2014; Bahdanau et al., 2015) on the image, commonly implemented with a shallow convolutional network. It learns to output a weight for the feature vector at each spatial position in the feature map, which is first normalized and then used for performing a weighted sum over the spatial positions to produce a single feature vector. However, soft spatial attention severely limits the ability for a model to count. ",
219
+ "bbox": [
220
+ 174,
221
+ 762,
222
+ 823,
223
+ 833
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Consider the task of counting the number of cats for two images: an image showing a single cat on a clean background and an image that consists of two side-by-side copies of the first image. What we will describe applies to both spatial feature maps and sets of object proposals as input, but we focus on the latter case for simplicity. With an object detection network, we detect one cat in the first image and two cats in the second image, producing the same feature vector for all three detections. The attention mechanism then assigns all three instances of the same cat the same weight. ",
230
+ "bbox": [
231
+ 174,
232
+ 840,
233
+ 825,
234
+ 922
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "image",
240
+ "img_path": "images/01c2c43239e5530d6490c14c6c93b92ad5fef0ff207f0d931d1ff4b6596146b9.jpg",
241
+ "image_caption": [
242
+ "Figure 1: Simplified example about counting the number of cats. The light-colored cat is detected twice and results in a duplicate proposal. This shows the conversion from the attention weights a to a graph representation A and the eventual goal of this component with exactly one proposal per true object. There are 4 proposals (vertices) capturing 3 underlying objects (groups in dotted lines). There are 3 relevant proposals (black with weight 1) and 1 irrelevant proposal (white with weight 0). Red edges mark intra-object edges between duplicate proposals and blue edges mark the main inter-object duplicate edges. In graph form, the object groups, coloring of edges, and shading of vertices serve illustration purposes only; the model does not have these access to these directly. "
243
+ ],
244
+ "image_footnote": [],
245
+ "bbox": [
246
+ 184,
247
+ 99,
248
+ 812,
249
+ 179
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "The usual normalization used for the attention weights is the softmax function, which normalizes the weights to sum to 1. Herein lies the problem: the cat in the first image receives a normalized weight of 1, but the two cats in the second image now each receive a weight of 0.5. After the weighted sum, we are effectively averaging the two cats in the second image back to a single cat. As a consequence, the feature vector obtained after the weighted sum is exactly the same between the two images and we have lost all information about a possible count from the attention map. Any method that normalizes the weights to sum to 1 suffers from this issue. ",
256
+ "bbox": [
257
+ 174,
258
+ 340,
259
+ 825,
260
+ 438
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Multiple glimpses (Larochelle & Hinton, 2010) – sets of attention weights that the attention mechanism outputs – or several steps of attention (Yang et al., 2016; Lu et al., 2016) do not circumvent this problem. Each glimpse or step can not separate out an object each, since the attention weight given to one feature vector does not depend on the other feature vectors to be attended over. Hard attention (Ba et al., 2015; Mnih et al., 2014) and structured attention (Kim et al., 2017) may be possible solutions to this, though no significant improvement in counting ability has been found for the latter so far (Zhu et al., 2017). Ren & Zemel (2017) circumvent the problem by limiting attention to only work within one bounding box at a time, remotely similar to our approach of using object proposal features. ",
267
+ "bbox": [
268
+ 174,
269
+ 444,
270
+ 825,
271
+ 556
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Without normalization of weights to sum to one, the scale of the output features depends on the number of objects detected. In an image with 10 cats, the output feature vector is scaled up by 10. Since deep neural networks are typically very scale-sensitive – the scale of weight initializations and activations is generally considered quite important (Mishkin & Matas, 2016) – and the classifier would have to learn that joint scaling of all features is somehow related to count, this approach is not reasonable for counting objects. This is evidenced in Teney et al. (2017) where they provide evidence that sigmoid normalization not only degrades accuracy on non-number questions slightly, but also does not help with counting. ",
278
+ "bbox": [
279
+ 174,
280
+ 563,
281
+ 825,
282
+ 675
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "4 COUNTING COMPONENT ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 176,
292
+ 705,
293
+ 408,
294
+ 720
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "In this section, we describe a differentiable mechanism for counting from attention weights, while also dealing with the problem of overlapping object proposals to reduce double-counting of objects. This involves some nontrivial details to produce counts that are as accurate as possible. The main idea is illustrated in Figure 1 with the two main steps shown in Figure 2 and Figure 3. The use of this component allows a model to count while still being able to exploit the benefits of soft attention. ",
301
+ "bbox": [
302
+ 174,
303
+ 741,
304
+ 825,
305
+ 811
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Our key idea for dealing with overlapping object proposals is to turn these object proposals into a graph that is based on how they overlap. We then remove and scale edges in a specific way such that an estimate of the number of underlying objects is recovered. ",
312
+ "bbox": [
313
+ 174,
314
+ 819,
315
+ 825,
316
+ 861
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Our general strategy is to primarily design the component for the unrealistic extreme cases of perfect attention maps and bounding boxes that are either fully overlapping or fully distinct. By introducing some parameters and only using differentiable operations, we give the ability for the module to interpolate between the correct behaviours for these extreme cases to handle the more realistic cases. ",
323
+ "bbox": [
324
+ 176,
325
+ 867,
326
+ 825,
327
+ 922
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "These parameters are responsible for handling variations in attention weights and partial bounding box overlaps in a manner suitable for a given dataset. ",
334
+ "bbox": [
335
+ 173,
336
+ 103,
337
+ 823,
338
+ 132
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "To achieve this, we use several piecewise linear functions $f _ { 1 } , \\ldots , f _ { 8 }$ as activation functions (defined in Appendix A), approximating arbitrary functions with domain and range [0, 1]. The shapes of these functions are learned to handle the specific nonlinear interactions necessary for dealing with overlapping proposals. Through their parametrization we enforce that $f _ { k } ( 0 ) = 0$ , $f _ { k } ( 1 ) = 1$ , and that they are monotonically increasing. The first two properties are required so that the extreme cases that we explicitly handle are left unchanged. In those cases, $f _ { k }$ is only applied to values of 0 or 1, so the activation functions can be safely ignored for understanding how the component handles them. By enforcing monotonicity, we can make sure that, for example, an increased value in an attention map should never result in the prediction of the count to decrease. ",
345
+ "bbox": [
346
+ 174,
347
+ 138,
348
+ 825,
349
+ 263
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "4.1 INPUT ",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 174,
359
+ 280,
360
+ 258,
361
+ 295
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "Given a set of features from object proposals, an attention mechanism produces a weight for each proposal based on the question. The counting component takes as input the $n$ largest attention weights $\\mathbf { \\bar { a } } = [ a _ { 1 } , \\ldots , a _ { n } ] ^ { \\mathsf { T } }$ and their corresponding bounding boxes $\\mathbf { b } = [ b _ { 1 } , \\ldots , b _ { n } ] ^ { \\mathsf { T } }$ . We assume that the weights lie in the interval $[ 0 , 1 ]$ , which can easily be achieved by applying a logistic function. ",
368
+ "bbox": [
369
+ 174,
370
+ 306,
371
+ 825,
372
+ 362
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "In the extreme cases that we explicitly handle, we assume that the attention mechanism assigns a value of 1 to $a _ { i }$ whenever the ith proposal contains a relevant object and a value of 0 whenever it does not. This is in line with what usual soft attention mechanisms learn, as they produce higher weights for relevant inputs. We also assume that either two object proposals fully overlap (in which case they must be showing the same object and thus receive the same attention weight) or that they are fully distinct (in which case they show different objects). Keep in mind that while we make these assumptions to make reasoning about the behaviour easier, the learned parameters in the activation functions are intended to handle the more realistic scenarios when the assumptions do not apply. ",
379
+ "bbox": [
380
+ 174,
381
+ 368,
382
+ 825,
383
+ 481
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Instead of partially overlapping proposals, the problem now becomes the handling of exact duplicate proposals of underlying objects in a differentiable manner. ",
390
+ "bbox": [
391
+ 174,
392
+ 487,
393
+ 823,
394
+ 516
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "4.2 DEDUPLICATION ",
401
+ "text_level": 1,
402
+ "bbox": [
403
+ 174,
404
+ 532,
405
+ 331,
406
+ 546
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "We start by changing the vector of attention weights a into a graph representation in which bounding boxes can be utilized more easily. Hence, we compute the outer product of the attention weights to obtain an attention matrix. ",
413
+ "bbox": [
414
+ 174,
415
+ 558,
416
+ 823,
417
+ 601
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "equation",
423
+ "img_path": "images/45d21d32766cf3e79ac4874ade1c995e6282fbe88bba109fb973d8aace126ef1.jpg",
424
+ "text": "$$\n\\mathbf { A } = \\mathbf { a } \\mathbf { a } ^ { \\mathsf { T } }\n$$",
425
+ "text_format": "latex",
426
+ "bbox": [
427
+ 465,
428
+ 618,
429
+ 532,
430
+ 636
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "$\\mathbf { A } \\in \\mathbb { R } ^ { n \\times n }$ can be interpreted as an adjacency matrix for a weighted directed graph. In this graph, the ith vertex represents the object proposal associated with $a _ { i }$ and the edge between any pair of vertices $( i , j )$ has weight $a _ { i } a _ { j }$ . In the extreme case where $a _ { i }$ is virtually 0 or 1, products are equivalent to logical AND operators. It follows that the subgraph containing only the vertices satisfying $a _ { i } = 1$ is a complete digraph with self-loops. ",
437
+ "bbox": [
438
+ 174,
439
+ 645,
440
+ 823,
441
+ 714
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "In this representation, our objective is to eliminate edges in such a way that, conceptually, the underlying true objects – instead of proposals thereof – are the vertices of that complete subgraph. In order to then turn that graph into a count, recall that the number of edges $| E |$ in a complete digraph with self-loops relates to the number of vertices $| V |$ through $| E | = | V | ^ { 2 }$ . $| E |$ can be computed by summing over the entries in an adjacency matrix and $| V |$ is then the count. Notice how when $| E |$ is set to the sum over A, ${ \\sqrt { \\textstyle | E | } } = \\sum _ { i } a _ { i }$ holds. This convenient property implies that when all proposals are fully distinct, the component can output the same as simply summing over the original attention weights by default. ",
448
+ "bbox": [
449
+ 174,
450
+ 720,
451
+ 825,
452
+ 835
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "There are two types of duplicate edges to eliminate to achieve our objective: intra-object edges and inter-object edges. ",
459
+ "bbox": [
460
+ 173,
461
+ 842,
462
+ 823,
463
+ 871
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "4.2.1 INTRA-OBJECT EDGES ",
470
+ "text_level": 1,
471
+ "bbox": [
472
+ 174,
473
+ 885,
474
+ 383,
475
+ 900
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "First, we eliminate intra-object edges between duplicate proposals of a single underlying object. ",
482
+ "bbox": [
483
+ 171,
484
+ 909,
485
+ 800,
486
+ 924
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "image",
492
+ "img_path": "images/ebf111b774761b74e228aac07c7d7d09a9fdfade0a9ad743d7521aa694abb69f.jpg",
493
+ "image_caption": [],
494
+ "image_footnote": [],
495
+ "bbox": [
496
+ 302,
497
+ 104,
498
+ 696,
499
+ 186
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "image",
505
+ "img_path": "images/afc38c727db1f3d829ce09537e6ec8c8c604979b7eca9b190e7296a9afa5152c.jpg",
506
+ "image_caption": [
507
+ "Figure 2: Removal of intra-object edges by masking the edges of the attention matrix A with the distance matrix D. The black vertices now form a graph without self-loops. The self-loops need to be added back in later. ",
508
+ "Figure 3: Removal of duplicate inter-object edges by computing a scaling factor for each vertex and scaling $\\tilde { \\mathbf { A } } ^ { \\prime }$ accordingly. $\\bar { \\mathbf { A } } ^ { \\prime }$ is $\\tilde { \\mathbf { A } }$ with self-loops already added back in. The scaling factor for one vertex is computed by counting how many vertices have outgoing edges to the same set of vertices; all edges of the two proposals on the right are scaled by 0.5. This can be seen as averaging proposals within each object and is equivalent to removing duplicate proposals altogether under a sum. "
509
+ ],
510
+ "image_footnote": [],
511
+ "bbox": [
512
+ 214,
513
+ 258,
514
+ 784,
515
+ 342
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "To compare two bounding boxes, we use the usual intersection-over-union (IoU) metric. We define the distance matrix $\\mathbf { D } \\in \\bar { \\mathbb { R } } ^ { n \\times n }$ to be ",
522
+ "bbox": [
523
+ 173,
524
+ 455,
525
+ 823,
526
+ 483
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "equation",
532
+ "img_path": "images/e17173feaf5840ff4ccb3f0036fe26270a9b13dcff514013b1adda23f4241173.jpg",
533
+ "text": "$$\nD _ { i j } = 1 - \\mathrm { I o U } ( b _ { i } , b _ { j } )\n$$",
534
+ "text_format": "latex",
535
+ "bbox": [
536
+ 423,
537
+ 503,
538
+ 573,
539
+ 521
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "$\\mathbf { D }$ can also be interpreted as an adjacency matrix. It represents a graph that has edges everywhere except when the two bounding boxes that an edge connects would overlap. ",
546
+ "bbox": [
547
+ 171,
548
+ 530,
549
+ 825,
550
+ 559
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "Intra-object edges are removed by elementwise multiplying $( \\odot )$ the distance matrix with the attention matrix (Figure 2). ",
557
+ "bbox": [
558
+ 173,
559
+ 565,
560
+ 823,
561
+ 594
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "equation",
567
+ "img_path": "images/2c2d701d5864f3e52114d9964ac794164b7ab3bd62fc612ee934a0a81b728e32.jpg",
568
+ "text": "$$\n\\tilde { \\mathbf { A } } = f _ { 1 } ( \\mathbf { A } ) \\odot f _ { 2 } ( \\mathbf { D } )\n$$",
569
+ "text_format": "latex",
570
+ "bbox": [
571
+ 426,
572
+ 611,
573
+ 571,
574
+ 631
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "$\\tilde { \\mathbf { A } }$ no longer has self-loops, so we need to add them back in at a later point to still satisfy $| E | = | V | ^ { 2 }$ Notice that we start making use of the activation functions mentioned earlier to handle intermediate values in the interval $( 0 , 1 )$ for both A and $\\mathbf { D }$ . They regulate the influence of attention weights that are not close to 0 or 1 and the influence of partial overlaps. ",
581
+ "bbox": [
582
+ 174,
583
+ 642,
584
+ 825,
585
+ 699
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "4.2.2 INTER-OBJECT EDGES ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 174,
595
+ 714,
596
+ 382,
597
+ 728
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Second, we eliminate inter-object edges between duplicate proposals of different underlying objects. ",
604
+ "bbox": [
605
+ 176,
606
+ 738,
607
+ 823,
608
+ 753
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "The main idea (depicted in Figure 3) is to count the number of proposals associated to each invidual object, then scale down the weight of their associated edges by that number. If there are two proposals of a single object, the edges involving those proposals should be scaled by 0.5. In essence, this averages over the proposals within each underlying object because we only use the sum over the edge weights to compute the count at the end. Conceptually, this reduces multiple proposals of an object down to one as desired. Since we do not know how many proposals belong to an object, we have to estimate this. We do this by using the fact that proposals of the same object are similar. ",
615
+ "bbox": [
616
+ 174,
617
+ 758,
618
+ 825,
619
+ 858
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Keep in mind that $\\tilde { \\mathbf { A } }$ has no self-loops nor edges between proposals of the same object. As a consequence, two nonzero rows in $\\tilde { \\mathbf { A } }$ are the same if and only if the proposals are the same. If the two rows differ in at least one entry, then one proposal overlaps a proposal that the other proposal does not overlap, so they must be different proposals. This means for comparing rows, we need a similarity function that satisfies the criteria of taking the value 1 when they differ in no places and 0 if they differ in at least one place. We define a differentiable similarity between proposals $i$ and $j$ as ",
626
+ "bbox": [
627
+ 174,
628
+ 866,
629
+ 825,
630
+ 924
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "",
637
+ "bbox": [
638
+ 171,
639
+ 103,
640
+ 825,
641
+ 133
642
+ ],
643
+ "page_idx": 5
644
+ },
645
+ {
646
+ "type": "equation",
647
+ "img_path": "images/df2beb019f6e78886f4c0f3253d9ce6a6d36b7087d2fbfc8426323e8796c19a7.jpg",
648
+ "text": "$$\n\\mathrm { S i m } _ { i j } = f _ { 3 } ( 1 - | a _ { i } - a _ { j } | ) \\prod _ { k } f _ { 3 } ( 1 - | X _ { i k } - X _ { j k } | )\n$$",
649
+ "text_format": "latex",
650
+ "bbox": [
651
+ 326,
652
+ 151,
653
+ 671,
654
+ 185
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "where $\\mathbf { X } = f _ { 4 } ( \\mathbf { A } ) \\odot f _ { 5 } ( \\mathbf { D } )$ is the same as $\\tilde { \\mathbf { A } }$ except with different activation functions. The $\\prod$ term compares the rows of proposals $i$ and $j$ . Using this term instead of $f _ { 4 } ( 1 - D _ { i j } )$ was more robust to inaccurate bounding boxes in initial experiments. ",
661
+ "bbox": [
662
+ 173,
663
+ 193,
664
+ 825,
665
+ 237
666
+ ],
667
+ "page_idx": 5
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "Note that the $f _ { 3 } ( 1 - | a _ { i } - a _ { j } | )$ term handles the edge case when there is only one proposal to count. Since $\\mathbf { X }$ does not have self-loops, $\\mathbf { X }$ contains only zeros in that case, which causes the row corresponding to $a _ { i } = 1$ to be incorrectly similar to the rows where $a _ { j \\neq i } = 0$ . By comparing the attention weights through that term as well, this issue is avoided. ",
672
+ "bbox": [
673
+ 173,
674
+ 242,
675
+ 825,
676
+ 300
677
+ ],
678
+ "page_idx": 5
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "Now that we can check how similar two proposals are, we count the number of times any row is the same as any other row and compute a scaling factor $s _ { i }$ for each vertex $i$ . ",
683
+ "bbox": [
684
+ 171,
685
+ 306,
686
+ 823,
687
+ 335
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "equation",
693
+ "img_path": "images/efbc47996a76c7bfd2142cf8cdde1c5a64c1cfa1f607e7ef1bf94de3ee8043b5.jpg",
694
+ "text": "$$\ns _ { i } = 1 / \\sum _ { j } \\mathrm { S i m } _ { i j }\n$$",
695
+ "text_format": "latex",
696
+ "bbox": [
697
+ 437,
698
+ 353,
699
+ 560,
700
+ 388
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "The time complexity of computing $\\mathbf { s } = [ s _ { 1 } , \\ldots , s _ { n } ] ^ { \\mathsf { T } }$ is $\\Theta ( n ^ { 3 } )$ as there are $n ^ { 2 }$ pairs of rows and $\\Theta ( n )$ operations to compute the similarity of any pair of rows. ",
707
+ "bbox": [
708
+ 171,
709
+ 404,
710
+ 825,
711
+ 434
712
+ ],
713
+ "page_idx": 5
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "Since these scaling factors apply to each vertex, we have to expand s into a matrix using the outer product in order to scale both incoming and outgoing edges of each vertex. We can also add self-loops back in, which need to be scaled by s as well. Then, the count matrix $\\mathbf { C }$ is ",
718
+ "bbox": [
719
+ 173,
720
+ 439,
721
+ 825,
722
+ 483
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "equation",
728
+ "img_path": "images/a8773de135a8cbfd0753c09ba2918aff0ae26c0010d20af34943639f7db57f6b.jpg",
729
+ "text": "$$\n\\mathbf { C } = \\tilde { \\mathbf { A } } \\odot \\mathbf { s s } ^ { \\mathsf { T } } + \\mathrm { { d i a g } } ( \\mathbf { s } \\odot f _ { 1 } ( \\mathbf { a } \\odot \\mathbf { a } ) )\n$$",
730
+ "text_format": "latex",
731
+ "bbox": [
732
+ 372,
733
+ 502,
734
+ 624,
735
+ 523
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "where $\\mathrm { d i a g ( \\cdot ) }$ expands a vector into a diagonal matrix with the vector on the diagonal. ",
742
+ "bbox": [
743
+ 173,
744
+ 536,
745
+ 736,
746
+ 551
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "The scaling of self-loops involves a non-obvious detail. Recall that the diagonal that was removed when going from $\\mathbf { A }$ to $\\tilde { \\mathbf { A } }$ contains the entries $f _ { 1 } ( \\mathbf { a } \\odot \\mathbf { a } )$ . Notice however that we are scaling this diagonal by s and not s $\\odot$ s. This is because the number of inter-object edges scales quadratically with respect to the number of proposals per object, but the number of self-loops only scales linearly. ",
753
+ "bbox": [
754
+ 173,
755
+ 558,
756
+ 826,
757
+ 617
758
+ ],
759
+ "page_idx": 5
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "4.3 OUTPUT ",
764
+ "text_level": 1,
765
+ "bbox": [
766
+ 173,
767
+ 636,
768
+ 274,
769
+ 650
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "Under a sum, $\\mathbf { C }$ is now equivalent to a complete graph with self-loops that involves all relevant objects instead of relevant proposals as originally desired. ",
776
+ "bbox": [
777
+ 173,
778
+ 662,
779
+ 823,
780
+ 691
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "To turn $\\mathbf { C }$ into a count $c$ , we set $\\begin{array} { r } { | E | = \\sum _ { i , j } C _ { i j } } \\end{array}$ as mentioned and ",
787
+ "bbox": [
788
+ 173,
789
+ 696,
790
+ 607,
791
+ 715
792
+ ],
793
+ "page_idx": 5
794
+ },
795
+ {
796
+ "type": "equation",
797
+ "img_path": "images/642d05cd0b486f94409c6bd6c12f032c0238a4fd56a467acc8fb930fe3c9000b.jpg",
798
+ "text": "$$\nc = | V | = \\sqrt { | E | }\n$$",
799
+ "text_format": "latex",
800
+ "bbox": [
801
+ 441,
802
+ 724,
803
+ 557,
804
+ 744
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "We verified experimentally that when our extreme case assumptions hold, $c$ is always an integer and equal to the correct count, regardless of the number of duplicate object proposals. ",
811
+ "bbox": [
812
+ 173,
813
+ 761,
814
+ 825,
815
+ 790
816
+ ],
817
+ "page_idx": 5
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "To avoid issues with scale when the number of objects is large, we turn this single feature into several classes, one for each possible number. Since we only used the object proposals with the largest $n$ weights, the predicted count $c$ can be at most $n$ . We define the output $\\mathbf { o } ^ { \\mathsf { ^ { - } } } = [ o _ { 0 } , o _ { 1 } , \\ldots , o _ { n } ] ^ { \\mathsf { T } }$ to be ",
822
+ "bbox": [
823
+ 173,
824
+ 796,
825
+ 825,
826
+ 839
827
+ ],
828
+ "page_idx": 5
829
+ },
830
+ {
831
+ "type": "equation",
832
+ "img_path": "images/ce3db8dd9abdf02d670c56ed54df93933685a0172f09abb3c9f5ab60cc58665b.jpg",
833
+ "text": "$$\no _ { i } = \\operatorname* { m a x } ( 0 , 1 - | c - i | )\n$$",
834
+ "text_format": "latex",
835
+ "bbox": [
836
+ 415,
837
+ 848,
838
+ 583,
839
+ 864
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "This results in a vector that is 1 at the index of the count and 0 everywhere else when $c$ is exactly an integer, and a linear interpolation between the two corresponding one-hot vectors when the count falls inbetween two integers. ",
846
+ "bbox": [
847
+ 174,
848
+ 881,
849
+ 825,
850
+ 924
851
+ ],
852
+ "page_idx": 5
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "4.3.1 OUTPUT CONFIDENCE ",
857
+ "text_level": 1,
858
+ "bbox": [
859
+ 174,
860
+ 103,
861
+ 382,
862
+ 118
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Finally, we might consider a prediction made from values of a and $\\mathbf { D }$ that are either close to 0 or close to 1 to be more reliable – we explicitly handle these after all – than when many values are close to 0.5. To incorporate this idea, we scale $\\mathbf { o }$ by a confidence value in the interval $[ 0 , 1 ]$ . ",
869
+ "bbox": [
870
+ 174,
871
+ 127,
872
+ 823,
873
+ 170
874
+ ],
875
+ "page_idx": 6
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "We define $p _ { \\mathbf { a } }$ and $p _ { \\mathbf { D } }$ to be the average distances to 0.5. The choice of 0.5 is not important, because the module can learn to change it by changing where $f _ { 6 } ( x ) = 0 . 5$ and $f _ { 7 } ( x ) = 0 . 5$ . ",
880
+ "bbox": [
881
+ 169,
882
+ 176,
883
+ 823,
884
+ 207
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "equation",
890
+ "img_path": "images/07e1cfab90748045f79d879721cbde8d479163716e70cd7fd17c744ddb9ade28.jpg",
891
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle p _ { \\mathbf { a } } = \\frac { 1 } { n } \\sum _ { i } \\left. f _ { 6 } ( a _ { i } ) - 0 . 5 \\right. } } \\\\ { { \\displaystyle p _ { \\mathbf { D } } = \\frac { 1 } { n ^ { 2 } } \\sum _ { i , j } \\left. f _ { 7 } ( D _ { i j } ) - 0 . 5 \\right. } } \\end{array}\n$$",
892
+ "text_format": "latex",
893
+ "bbox": [
894
+ 398,
895
+ 212,
896
+ 599,
897
+ 290
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Then, the output of the component with confidence scaling is ",
904
+ "bbox": [
905
+ 173,
906
+ 301,
907
+ 575,
908
+ 315
909
+ ],
910
+ "page_idx": 6
911
+ },
912
+ {
913
+ "type": "equation",
914
+ "img_path": "images/53af49ee534a302b9679dcb5bea5e590645d46ffb83dc1cf2115eda86e98d6ae.jpg",
915
+ "text": "$$\n\\tilde { \\mathbf { o } } = f _ { 8 } ( p _ { \\mathbf { a } } + p _ { \\mathbf { D } } ) \\cdot \\mathbf { o }\n$$",
916
+ "text_format": "latex",
917
+ "bbox": [
918
+ 428,
919
+ 321,
920
+ 570,
921
+ 340
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "In summary, we only used diffentiable operations to deduplicate object proposals and obtain a feature vector that represents the predicted count. This allows easy integration into any model with soft attention, enabling a model to count from an attention map. ",
928
+ "bbox": [
929
+ 174,
930
+ 353,
931
+ 825,
932
+ 396
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "5 EXPERIMENTS ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 176,
942
+ 415,
943
+ 326,
944
+ 431
945
+ ],
946
+ "page_idx": 6
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "5.1 TOY TASK ",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 174,
954
+ 446,
955
+ 285,
956
+ 460
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "First, we design a simple toy task to evaluate counting ability. This dataset is intended to only evaluate the performance of counting; thus, we skip any processing steps that are not directly related such as the processing of an input image. Samples from this dataset are given in Appendix D ",
963
+ "bbox": [
964
+ 174,
965
+ 472,
966
+ 825,
967
+ 515
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "The classification task is to predict an integer count $\\hat { c }$ of true objects, uniformly drawn from 0 to 10 inclusive, from a set of bounding boxes and the associated attention weights. 10 square bounding boxes with side length $l \\in ( 0 , 1 \\bar { ] }$ are placed in a square image with unit side length. The $\\mathbf { X }$ and y coordinates of their top left corners are uniformly drawn from $U ( 0 , 1 - l )$ so that the boxes do not extend beyond the image border. $l$ is used to control the overlapping of bounding boxes: a larger $l$ leads to the fixed number of objects to be more tightly packed, increasing the chance of overlaps. $\\hat { c }$ number of these boxes are randomly chosen to be true bounding boxes. The score of a bounding box is the maximum IoU overlap of it with any true bounding box. Then, the attention weight is a linear interpolation between the score and a noise value drawn from $U ( 0 , 1 )$ , with $q \\in [ 0 , 1 ]$ controlling this trade-off. $q$ is the attention noise parameter: when $q$ is 0, there is no noise and when $q$ is 1, there is no signal. Increasing $q$ also indirectly simulates imprecise placements of bounding boxes. ",
974
+ "bbox": [
975
+ 174,
976
+ 521,
977
+ 825,
978
+ 675
979
+ ],
980
+ "page_idx": 6
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "We compare the counting component against a simple baseline that simply sums the attention weights and turns the sum into a feature vector with Equation 8. Both models are followed by a linear projection to the classes 0 to 10 inclusive and a softmax activation. They are trained with crossentropy loss for 1000 iterations using Adam (Kingma & Ba, 2015) with a learning rate of 0.01 and a batch size of 1024. ",
985
+ "bbox": [
986
+ 174,
987
+ 681,
988
+ 825,
989
+ 751
990
+ ],
991
+ "page_idx": 6
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "5.1.1 RESULTS ",
996
+ "text_level": 1,
997
+ "bbox": [
998
+ 174,
999
+ 766,
1000
+ 292,
1001
+ 781
1002
+ ],
1003
+ "page_idx": 6
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "The results of varying $l$ while keeping $q$ fixed at various values and vice versa are shown in Figure 4. Regardless of $l$ and $q$ , the counting component performs better than the baseline in most cases, often significantly so. Particularly when the noise is low, the component can deal with high values for $l$ very successfully, showing that it accomplishes the goal of increased robustness to overlapping proposals. The component also handles moderate noise levels decently as long as the overlaps are limited. The performance when both $l$ and $q$ are high is closely matched by the baseline, likely due to the high difficulty of those parametrizations leaving little information to extract in the first place. ",
1008
+ "bbox": [
1009
+ 174,
1010
+ 790,
1011
+ 825,
1012
+ 888
1013
+ ],
1014
+ "page_idx": 6
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "We can also look at the shape of the activation functions themselves, shown in Figure 5 and Appendix C, to understand how the behaviour changes with varying dataset parameters. For simplicity, we limit our description to the two easiest-to-interpret functions: $f _ { 1 }$ for the attention weights and $f _ { 2 }$ for the bounding box distances. ",
1019
+ "bbox": [
1020
+ 173,
1021
+ 895,
1022
+ 823,
1023
+ 924
1024
+ ],
1025
+ "page_idx": 6
1026
+ },
1027
+ {
1028
+ "type": "image",
1029
+ "img_path": "images/3fb48560d3ebed9fd32e0c830572ff36757f872f81d3938700678967ef165a4e.jpg",
1030
+ "image_caption": [
1031
+ "Figure 4: Accuracies on the toy task as side length $l$ and noise $q$ are varied in 0.01 step sizes. "
1032
+ ],
1033
+ "image_footnote": [],
1034
+ "bbox": [
1035
+ 178,
1036
+ 99,
1037
+ 813,
1038
+ 232
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "image",
1044
+ "img_path": "images/21e53377d411fcb31ec0d56dc4ccce342dbc7c34ca06a323a7b0659898b842de.jpg",
1045
+ "image_caption": [
1046
+ "Figure 5: Shapes of trained activation functions $f _ { 1 }$ (attention weights) and $f _ { 2 }$ (bounding box distances) for varying bounding box side lengths (left) or the noise (right) in the dataset, varied in 0.01 step sizes. Best viewed in color. "
1047
+ ],
1048
+ "image_footnote": [],
1049
+ "bbox": [
1050
+ 176,
1051
+ 280,
1052
+ 807,
1053
+ 395
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "",
1060
+ "bbox": [
1061
+ 173,
1062
+ 479,
1063
+ 823,
1064
+ 507
1065
+ ],
1066
+ "page_idx": 7
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "When increasing the side length, the height of the “step” in $f _ { 1 }$ decreases to compensate for the generally greater degree of overlapping bounding boxes. A similar effect is seen with $f _ { 2 }$ : it varies over requiring a high pairwise distance when $l$ is low – when partial overlaps are most likely spurious – and considering small distances enough for proposals to be considered different when $l$ is high. At the highest values for $l$ , there is little signal in the overlaps left since everything overlaps with everything, which explains why $f _ { 2 }$ returns to its default linear initialization for those parameters. ",
1071
+ "bbox": [
1072
+ 173,
1073
+ 513,
1074
+ 825,
1075
+ 597
1076
+ ],
1077
+ "page_idx": 7
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "When varying the amount of noise, without noise $f _ { 1 }$ resembles a step function where the step starts close to $x = 1$ and takes a value of close to 1 after the step. Since a true proposal will always have a weight of 1 when there is no noise, anything below this can be safely zeroed out. With increasing noise, this step moves away from 1 for both $x$ and $f _ { 1 } ( x )$ , capturing the uncertainty when a bounding box belongs to a true object. With lower $q$ , $f _ { 2 }$ considers a pair of proposals to be distinct for lower distances, whereas with higher $q$ , $f _ { 2 }$ follows a more sigmoidal shape. This can be explained by the model taking the increased uncertainty of the precise bounding box placements into account by requiring higher distances for proposals to be considered completely different. ",
1082
+ "bbox": [
1083
+ 173,
1084
+ 604,
1085
+ 825,
1086
+ 715
1087
+ ],
1088
+ "page_idx": 7
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "5.2 VQA ",
1093
+ "text_level": 1,
1094
+ "bbox": [
1095
+ 174,
1096
+ 736,
1097
+ 251,
1098
+ 751
1099
+ ],
1100
+ "page_idx": 7
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "VQA v2 (Goyal et al., 2017) is the updated version of the VQA v1 dataset (Antol et al., 2015) where greater care has been taken to reduce dataset biases through balanced pairs: for each question, a pair of images is identified where the answer to that question differs. The standard accuracy metric on this dataset accounts for disagreements in human answers by averaging $\\mathrm { m i n } ( \\textstyle { \\frac { 1 } { 3 } }$ agreeing, 1) over all 10-choose-9 subsets of human answers, where agreeing is the number of human answers that agree with the given answer. This can be shown to be equal to $\\operatorname* { m i n } ( 0 . 3 a g r e e i n g , 1 )$ without averaging. ",
1105
+ "bbox": [
1106
+ 174,
1107
+ 762,
1108
+ 825,
1109
+ 847
1110
+ ],
1111
+ "page_idx": 7
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "We use an improved version of the strong VQA baseline by Kazemi & Elqursh (2017) as baseline model (details in Appendix B). We have not performed any tuning of this baseline to maximize the performance difference between it and the baseline with counting module. To augment this model with the counting component, we extract the attention weights of the first attention glimpse (there are two in the baseline) before softmax normalization, and feed them into the counting component after applying a logistic function. Since object proposal features from Anderson et al. (2017) vary from 10 to 100 per image, a natural choice for the number of top- $^ n$ proposals to use is 10. The output of the component is linearly projected into the same space as the hidden layer of the classifier, followed by ReLU activation, batch normalization, and addition with the features in the hidden layer. ",
1116
+ "bbox": [
1117
+ 174,
1118
+ 853,
1119
+ 823,
1120
+ 924
1121
+ ],
1122
+ "page_idx": 7
1123
+ },
1124
+ {
1125
+ "type": "table",
1126
+ "img_path": "images/c12ac0860ac18470491eb64dfeb797a85057704bc04f85b9dc1e0148c4e3864d.jpg",
1127
+ "table_caption": [
1128
+ "Table 1: Results on VQA v2 of the top models along with our results. Entries marked with (Ens.) are ensembles of models. At the time of writing, our model with the counting module places third among all entries. All models listed here use object proposal features and are trained on the training and validation sets. The top-performing ensemble models use additional pre-trained word embeddings, which we do not use. "
1129
+ ],
1130
+ "table_footnote": [],
1131
+ "table_body": "<table><tr><td></td><td colspan=\"4\">VQA v2 test-dev</td><td colspan=\"4\">VQA v2 test</td></tr><tr><td>Model</td><td>Yes/No</td><td>Number</td><td>Other</td><td>All</td><td>Yes/No</td><td>Number</td><td>Other</td><td>All</td></tr><tr><td>Teney et al. (2017)</td><td>81.82</td><td>44.21</td><td>56.05</td><td>65.32</td><td>82.20</td><td>43.90</td><td>56.26</td><td>65.67</td></tr><tr><td>Teney et al. (2017) (Ens.)</td><td>86.08</td><td>48.99</td><td>60.80</td><td>69.87</td><td>86.60</td><td>48.64</td><td>61.15</td><td>70.34</td></tr><tr><td>Zhou et al. (2017)</td><td>84.27</td><td>49.56</td><td>59.89</td><td>68.76</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>Zhou et al. (2017) (Ens.)</td><td>1</td><td>1</td><td>1</td><td>1</td><td>86.65</td><td>51.13</td><td>61.75</td><td>70.92</td></tr><tr><td>Baseline</td><td>82.98</td><td>46.88</td><td>58.99</td><td>67.50</td><td>83.21</td><td>46.60</td><td>59.20</td><td>67.78</td></tr><tr><td>+ counting module</td><td>83.14</td><td>51.62</td><td>58.97</td><td>68.09</td><td>83.56</td><td>51.39</td><td>59.11</td><td>68.41</td></tr></table>",
1132
+ "bbox": [
1133
+ 178,
1134
+ 191,
1135
+ 820,
1136
+ 320
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "table",
1142
+ "img_path": "images/8a485d8326b1c17cd1b9585e152972b482af0f4769cb7d35c1191a8d47936aef.jpg",
1143
+ "table_caption": [
1144
+ "Table 2: Results on the VQA v2 validation set with models trained only on the training set. Reported are the mean accuracies and sample standard deviations $( \\pm )$ over 4 random initializations. "
1145
+ ],
1146
+ "table_footnote": [],
1147
+ "table_body": "<table><tr><td></td><td colspan=\"3\">VQA accuracy</td><td colspan=\"3\">Balanced pair accuracy</td></tr><tr><td>Model</td><td>Number</td><td>Count</td><td>All</td><td>Number</td><td>Count</td><td>All</td></tr><tr><td>Baseline</td><td>44.83±0.2</td><td>51.69±0.2</td><td>64.80±0.0</td><td>17.34±0.2</td><td>20.02±0.2</td><td>36.44±0.1</td></tr><tr><td>+ NMS</td><td>44.60±0.1</td><td>51.41±0.1</td><td>64.80±0.1</td><td>17.06±0.1</td><td>19.72±0.1</td><td>36.44±0.2</td></tr><tr><td> + counting module</td><td>49.36±0.1</td><td>57.03±0.0</td><td>65.42±0.1</td><td>23.10±0.2</td><td>26.63±0.2</td><td>37.19±0.1</td></tr></table>",
1148
+ "bbox": [
1149
+ 178,
1150
+ 388,
1151
+ 820,
1152
+ 474
1153
+ ],
1154
+ "page_idx": 8
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "",
1159
+ "bbox": [
1160
+ 174,
1161
+ 502,
1162
+ 825,
1163
+ 559
1164
+ ],
1165
+ "page_idx": 8
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "5.2.1 RESULTS ",
1170
+ "text_level": 1,
1171
+ "bbox": [
1172
+ 174,
1173
+ 578,
1174
+ 290,
1175
+ 592
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Table 1 shows the results on the official VQA v2 leaderboard. The baseline with our component has a significantly higher accuracy on number questions without compromising accuracy on other categories compared to the baseline result. Despite our single-model baseline being substantially worse than the state-of-the-art, by simply adding the counting component we outperform even the 8-model ensemble in Zhou et al. (2017) on the number category. We expect further improvements in number accuracy when incorporating their techniques to improve the quality of attention weights, especially since the current state-of-the-art models suffer from the problems with counting that we mention in section 3. Some qualitative examples of inputs and activations within the counting component are shown in Appendix E. ",
1182
+ "bbox": [
1183
+ 174,
1184
+ 603,
1185
+ 825,
1186
+ 728
1187
+ ],
1188
+ "page_idx": 8
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "We also evaluate our models on the validation set of VQA v2, shown in Table 2. This allows us to consider only the counting questions within number questions, since number questions include questions such as ”what time is it?” as well. We treat any question starting with the words ”how many” as a counting question. As we expect, the benefit of using the counting module on the counting question subset is higher than on number questions in general. Additionally, we try an approach where we simply replace the counting module with NMS, using the average of the attention glimpses as scoring, and one-hot encoding the number of proposals left. The NMS-based approach, using an IoU threshold of 0.5 and no score thresholding based on validation set performance, does not improve on the baseline, which suggests that the piecewise gradient of NMS is a major problem for learning to count in VQA and that conversely, there is a substantial benefit to being able to differentiate through the counting module. ",
1193
+ "bbox": [
1194
+ 174,
1195
+ 736,
1196
+ 825,
1197
+ 888
1198
+ ],
1199
+ "page_idx": 8
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Additionally, we can evaluate the accuracy over balanced pairs as proposed by Teney et al. (2017): the ratio of balanced pairs on which the VQA accuracy for both questions is 1.0. This is a much more difficult metric, since it requires the model to find the subtle details between images instead of being able to rely on question biases in the dataset. First, notice how all balanced pair accuracies are greatly reduced compared to their respective VQA accuracy. More importantly, the absolute accuracy improvement of the counting module is still fully present with the more challenging metric, which is further evidence that the component can properly count rather than simply fitting better to dataset biases. ",
1204
+ "bbox": [
1205
+ 174,
1206
+ 895,
1207
+ 823,
1208
+ 924
1209
+ ],
1210
+ "page_idx": 8
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "",
1215
+ "bbox": [
1216
+ 174,
1217
+ 103,
1218
+ 825,
1219
+ 186
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "When looking at the activation functions of the trained model, shown in Figure 9, we find that some characteristics of them are shared with high-noise parametrizations of the toy dataset. This suggests that the current attention mechanisms and object proposal network are still very inaccurate, which explains the perhaps small-seeming increase in counting performance. This provides further evidence that the balanced pair accuracy is maybe a more reflective measure of how well current VQA models perform than the overall VQA accuracies of over $70 \\%$ of the current top models. ",
1226
+ "bbox": [
1227
+ 174,
1228
+ 194,
1229
+ 825,
1230
+ 277
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "6 CONCLUSION ",
1237
+ "text_level": 1,
1238
+ "bbox": [
1239
+ 174,
1240
+ 297,
1241
+ 318,
1242
+ 314
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "After understanding why VQA models struggle to count, we designed a counting component that alleviates this problem through differentiable bounding box deduplication. The component can readily be used alongside any future improvements in VQA models, as long as they still use soft attention as all current top models on VQA v2 do. It has uses outside of VQA as well: for many counting tasks, it can allow an object-proposal-based approach to work without ground-truth objects available as long as there is a – possibly learned – per-proposal scoring (for example using a classification score) and a notion of how dissimilar a pair of proposals are. Since each step in the component has a clear purpose and interpretation, the learned weights of the activation functions are also interpretable. The design of the counting component is an example showing how by encoding inductive biases into a deep learning model, challenging problems such as counting of arbitrary objects can be approached when only relatively little supervisory information is available. ",
1249
+ "bbox": [
1250
+ 174,
1251
+ 329,
1252
+ 825,
1253
+ 482
1254
+ ],
1255
+ "page_idx": 9
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "For future research, it should be kept in mind that VQA v2 requires a versatile skill set that current models do not have. To make progress on this dataset, we advocate focusing on understanding of what the current shortcomings of models are and finding ways to mitigate them. ",
1260
+ "bbox": [
1261
+ 174,
1262
+ 488,
1263
+ 825,
1264
+ 531
1265
+ ],
1266
+ "page_idx": 9
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "REFERENCES ",
1271
+ "text_level": 1,
1272
+ "bbox": [
1273
+ 174,
1274
+ 551,
1275
+ 285,
1276
+ 566
1277
+ ],
1278
+ "page_idx": 9
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and VQA. CoRR, arXiv:1707.07998, 2017. \nStanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In ICCV, 2015. \nSamaneh Azadi, Jiashi Feng, and Trevor Darrell. Learning detection with diverse proposals. In CVPR, 2017. \nJimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In ICLR, 2015. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. \nPrithvijit Chattopadhyay, Ramakrishna Vedantam, Ramprasaath R. Selvaraju, Dhruv Batra, and Devi Parikh. Counting everyday objects in everyday scenes. In CVPR, 2017. \nKyunghyun Cho, B van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: Encoder-decoder approaches. In SSST@EMNLP, 2014. \nJoseph Paul Cohen, Henry Z. Lo, and Yoshua Bengio. Count-ception: Counting by fully convolutional redundant counting. CoRR, arXiv:1703.08710, 2017. \nYash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In CVPR, 2017. ",
1283
+ "bbox": [
1284
+ 171,
1285
+ 574,
1286
+ 826,
1287
+ 924
1288
+ ],
1289
+ "page_idx": 9
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Paul Henderson and Vittorio Ferrari. End-to-end training of object class detectors for mean average precision. In ACCV, 2017. ",
1294
+ "bbox": [
1295
+ 171,
1296
+ 103,
1297
+ 823,
1298
+ 132
1299
+ ],
1300
+ "page_idx": 10
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 1997. ",
1305
+ "bbox": [
1306
+ 174,
1307
+ 140,
1308
+ 810,
1309
+ 156
1310
+ ],
1311
+ "page_idx": 10
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Jan Hosang, Rodrigo Benenson, and Bernt Schiele. Learning non-maximum suppression. In CVPR, 2017. ",
1316
+ "bbox": [
1317
+ 171,
1318
+ 164,
1319
+ 825,
1320
+ 194
1321
+ ],
1322
+ "page_idx": 10
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. ",
1327
+ "bbox": [
1328
+ 173,
1329
+ 200,
1330
+ 825,
1331
+ 231
1332
+ ],
1333
+ "page_idx": 10
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Allan Jabri, Armand Joulin, and Laurens van der Maaten. Revisiting visual question answering baselines. In ECCV, 2016. ",
1338
+ "bbox": [
1339
+ 174,
1340
+ 238,
1341
+ 825,
1342
+ 267
1343
+ ],
1344
+ "page_idx": 10
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NIPS, 2015. ",
1349
+ "bbox": [
1350
+ 173,
1351
+ 275,
1352
+ 825,
1353
+ 305
1354
+ ],
1355
+ "page_idx": 10
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross Girshick. CLEVR: A diagnostic dataset for compositional language and elementary visual reasoning. In CVPR, 2017. ",
1360
+ "bbox": [
1361
+ 174,
1362
+ 313,
1363
+ 825,
1364
+ 356
1365
+ ],
1366
+ "page_idx": 10
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Vahid Kazemi and Ali Elqursh. Show, ask, attend, and answer: A strong baseline for visual question answering. CoRR, arXiv:1704.03162, 2017. ",
1371
+ "bbox": [
1372
+ 171,
1373
+ 363,
1374
+ 825,
1375
+ 393
1376
+ ],
1377
+ "page_idx": 10
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In ICLR, 2017. ",
1382
+ "bbox": [
1383
+ 173,
1384
+ 401,
1385
+ 823,
1386
+ 430
1387
+ ],
1388
+ "page_idx": 10
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
1393
+ "bbox": [
1394
+ 173,
1395
+ 438,
1396
+ 813,
1397
+ 455
1398
+ ],
1399
+ "page_idx": 10
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In NIPS, 2010. ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 462,
1407
+ 821,
1408
+ 491
1409
+ ],
1410
+ "page_idx": 10
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Victor Lempitsky and Andrew Zisserman. Learning to count objects in images. In NIPS, 2010. ",
1415
+ "bbox": [
1416
+ 173,
1417
+ 498,
1418
+ 797,
1419
+ 515
1420
+ ],
1421
+ "page_idx": 10
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. In NIPS, 2016. ",
1426
+ "bbox": [
1427
+ 173,
1428
+ 522,
1429
+ 823,
1430
+ 551
1431
+ ],
1432
+ "page_idx": 10
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "Dmytro Mishkin and Jiri Matas. All you need is a good init. In ICLR, 2016. ",
1437
+ "bbox": [
1438
+ 174,
1439
+ 559,
1440
+ 674,
1441
+ 575
1442
+ ],
1443
+ "page_idx": 10
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Volodymyr Mnih, Nicolas Heess, Alex Graves, and Koray Kavukcuoglu. Recurrent models of visual attention. In NIPS, 2014. ",
1448
+ "bbox": [
1449
+ 173,
1450
+ 583,
1451
+ 820,
1452
+ 612
1453
+ ],
1454
+ "page_idx": 10
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. CoRR, arXiv:1709.07871, 2017. ",
1459
+ "bbox": [
1460
+ 173,
1461
+ 619,
1462
+ 821,
1463
+ 650
1464
+ ],
1465
+ "page_idx": 10
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "Mengye Ren and Richard S. Zemel. End-to-end instance segmentation with recurrent attention. In CVPR, 2017. ",
1470
+ "bbox": [
1471
+ 173,
1472
+ 657,
1473
+ 821,
1474
+ 686
1475
+ ],
1476
+ "page_idx": 10
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "Adam Santoro, David Raposo, David G. T. Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy P. Lillicrap. A simple neural network module for relational reasoning. In NIPS, 2017. ",
1481
+ "bbox": [
1482
+ 173,
1483
+ 694,
1484
+ 826,
1485
+ 738
1486
+ ],
1487
+ "page_idx": 10
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 2014. ",
1492
+ "bbox": [
1493
+ 176,
1494
+ 746,
1495
+ 821,
1496
+ 776
1497
+ ],
1498
+ "page_idx": 10
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Damien Teney, Peter Anderson, Xiaodong He, and Anton van den Hengel. Tips and tricks for visual question answering: Learnings from the 2017 challenge. CoRR, arXiv:1708.02711, 2017. ",
1503
+ "bbox": [
1504
+ 173,
1505
+ 782,
1506
+ 821,
1507
+ 813
1508
+ ],
1509
+ "page_idx": 10
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "Alexander Trott, Caiming Xiong, and Richard Socher. Interpretable counting for visual question answering. In ICLR, 2018. ",
1514
+ "bbox": [
1515
+ 173,
1516
+ 820,
1517
+ 823,
1518
+ 851
1519
+ ],
1520
+ "page_idx": 10
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alexander J. Smola. Stacked attention networks for image question answering. In CVPR, 2016. ",
1525
+ "bbox": [
1526
+ 173,
1527
+ 858,
1528
+ 821,
1529
+ 887
1530
+ ],
1531
+ "page_idx": 10
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "Seungil You, David Ding, Kevin Canini, Jan Pfeifer, and Maya Gupta. Deep Lattice Networks and Partial Monotonic Functions. In NIPS, 2017. ",
1536
+ "bbox": [
1537
+ 176,
1538
+ 895,
1539
+ 821,
1540
+ 924
1541
+ ],
1542
+ "page_idx": 10
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "Yu Zhou, Yu Jun, Xiang Chenchao, Fan Jianping, and Tao Dacheng. Beyond bilinear: Generalized multi-modal factorized high-order pooling for visual question answering. CoRR, arXiv:1708.03619, 2017. ",
1547
+ "bbox": [
1548
+ 176,
1549
+ 103,
1550
+ 825,
1551
+ 145
1552
+ ],
1553
+ "page_idx": 11
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "Chen Zhu, Yanpeng Zhao, Shuaiyi Huang, Kewei Tu, and Yi Ma. Structured attentions for visual question answering. CoRR, arXiv:1708.02071, 2017. ",
1558
+ "bbox": [
1559
+ 174,
1560
+ 155,
1561
+ 823,
1562
+ 184
1563
+ ],
1564
+ "page_idx": 11
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "A PIECEWISE LINEAR ACTIVATION FUNCTION ",
1569
+ "text_level": 1,
1570
+ "bbox": [
1571
+ 174,
1572
+ 103,
1573
+ 570,
1574
+ 118
1575
+ ],
1576
+ "page_idx": 12
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "Intuitively, the interval $[ 0 , 1 ]$ is split into $d$ equal size intervals. Each contains a line segment that is connected to the neighboring line segments at the boundaries of the intervals. These line segments form the shape of the activation function. ",
1581
+ "bbox": [
1582
+ 174,
1583
+ 133,
1584
+ 825,
1585
+ 176
1586
+ ],
1587
+ "page_idx": 12
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "text": "For each function $f _ { k }$ , there are $d$ weights $w _ { k 1 } , \\ldots , w _ { k d }$ , where the weight $w _ { k i }$ is the gradient for the interval $[ \\textstyle { \\frac { i - 1 } { d } } , \\textstyle { \\frac { i } { d } } )$ . We arbitrarily fix $d$ to be 16 in this paper, observing no significant difference when changing it to 8 and 32 in preliminary experiments. All $w _ { k i }$ are enforced to be non-negative by always using the absolute value of them, which yields the monotonicity property. Dividing the weights by $\\Sigma _ { m } ^ { d } \\mid w _ { k m } \\mid$ yields the property that $f ( 1 ) = 1$ . The function can be written as ",
1592
+ "bbox": [
1593
+ 174,
1594
+ 183,
1595
+ 825,
1596
+ 257
1597
+ ],
1598
+ "page_idx": 12
1599
+ },
1600
+ {
1601
+ "type": "equation",
1602
+ "img_path": "images/658f47b9282626a8b3087bedbdc789dc0ff6db78e6d7364432393fe1366f666f.jpg",
1603
+ "text": "$$\nf _ { k } ( x ) = \\sum _ { i = 1 } ^ { d } \\operatorname* { m a x } ( 0 , 1 - | d x - i | ) \\frac { \\sum _ { j = 1 } ^ { i } | w _ { k j } | } { \\sum _ { m = 1 } ^ { d } | w _ { k m } | }\n$$",
1604
+ "text_format": "latex",
1605
+ "bbox": [
1606
+ 338,
1607
+ 273,
1608
+ 660,
1609
+ 318
1610
+ ],
1611
+ "page_idx": 12
1612
+ },
1613
+ {
1614
+ "type": "text",
1615
+ "text": "In essence, the max term selects the two nearest boundary values of an interval, which are normalized cumulative sums over the $w _ { k }$ weights, and linearly interpolates between the two. This approach is similar to the subgradient approach by Jaderberg et al. (2015) to make sampling from indices differentiable. All $w _ { k i }$ are initialized to 1, which makes the functions linear on initialization. When applying $f _ { k } ( { \\bf x } )$ to a vector-valued input $\\mathbf { x }$ , it is assumed to be applied elementwise. By caching the normalized cumulative sum $\\begin{array} { r } { \\sum _ { j } ^ { i } | w _ { k j } | / \\sum _ { m } ^ { d } | w _ { k m } | } \\end{array}$ , this function has linear time complexity with respect to $d$ and is efficiently implementable on GPUs. ",
1616
+ "bbox": [
1617
+ 173,
1618
+ 327,
1619
+ 825,
1620
+ 431
1621
+ ],
1622
+ "page_idx": 12
1623
+ },
1624
+ {
1625
+ "type": "text",
1626
+ "text": "Extensions to this are possible through Deep Lattice Networks (You et al., 2017), which preserve monotonicity across several nonlinear neural network layers. They would allow A and $\\mathbf { D }$ to be combined in more sophisticated ways beyond an elementwise product, possibly improving counting performance as long as the property of the range lying within $[ 0 , 1 ]$ is still enforced in some way. ",
1627
+ "bbox": [
1628
+ 174,
1629
+ 436,
1630
+ 825,
1631
+ 494
1632
+ ],
1633
+ "page_idx": 12
1634
+ },
1635
+ {
1636
+ "type": "text",
1637
+ "text": "B BASELINE ARCHITECTURE",
1638
+ "text_level": 1,
1639
+ "bbox": [
1640
+ 176,
1641
+ 515,
1642
+ 429,
1643
+ 531
1644
+ ],
1645
+ "page_idx": 12
1646
+ },
1647
+ {
1648
+ "type": "text",
1649
+ "text": "This model is based on the work of Kazemi & Elqursh (2017), who outperformed most previous VQA models on the VQA v1 dataset with a simple baseline architecture. We adapt the model to the VQA v2 dataset and make various tweaks that improve validation accuracy slightly. The architecture is illustrated in Figure 6. Details not mentioned here can be assumed to be the same as in their paper. ",
1650
+ "bbox": [
1651
+ 174,
1652
+ 546,
1653
+ 825,
1654
+ 603
1655
+ ],
1656
+ "page_idx": 12
1657
+ },
1658
+ {
1659
+ "type": "text",
1660
+ "text": "The most significant change that we make is the use of object proposal features by Anderson et al. (2017) as previously mentioned. The following tweaks were made without considering the performance impact on the counting component; only the validation accuracy of the baseline was optimized. ",
1661
+ "bbox": [
1662
+ 174,
1663
+ 609,
1664
+ 825,
1665
+ 666
1666
+ ],
1667
+ "page_idx": 12
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "To fuse vision features $\\mathbf { x }$ and question features y, the baseline concatenates and linearly projects them, followed by a ReLU activation. This is equivalent to ReLU $( \\mathbf { W } _ { x } \\mathbf { x } + \\mathbf { W } _ { y } \\mathbf { y } )$ . We include an additional term that measures how different the projected $\\mathbf { x }$ is from the projected y, changing the fusion mechanism to $\\mathbf { x } \\odot \\mathbf { y } = \\operatorname { R e L U } ( \\mathbf { W } _ { x } \\mathbf { x } + \\mathbf { W } _ { y } \\mathbf { y } ) - ( \\mathbf { W } _ { x } \\mathbf { x } - \\mathbf { W } _ { y } \\mathbf { y } ) ^ { 2 }$ . ",
1672
+ "bbox": [
1673
+ 173,
1674
+ 672,
1675
+ 825,
1676
+ 729
1677
+ ],
1678
+ "page_idx": 12
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "text": "The LSTM (Hochreiter & Schmidhuber, 1997) for question encoding is replaced with a GRU (Cho et al., 2014) with the same hidden size with dynamic per-example unrolling instead of a fixed 14 words per question. We apply batch normalization (Ioffe & Szegedy, 2015) before the last linear projection in the classifier to the 3000 classes. The learning rate is increased from 0.001 to 0.0015 and the batch size is doubled to 256. The model is trained for 100 epochs (1697 iterations per epoch to train on the training set, 2517 iterations per epoch to train on both training and validation sets) instead of 100,000 iterations, roughly in line with the doubling of dataset size when going from VQA v1 to VQA v2. ",
1683
+ "bbox": [
1684
+ 173,
1685
+ 734,
1686
+ 825,
1687
+ 848
1688
+ ],
1689
+ "page_idx": 12
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "Note that this single-model baseline is regularized with dropout (Srivastava et al., 2014), while the other current top models skip this and rely on ensembling to reduce overfitting. This explains why our single-model baseline outperforms most single-model results of the state-of-the-art models. We found ensembling of the regularized baseline to provide a much smaller benefit in preliminary experiments compared to the results of ensembling unregularized networks reported in Teney et al. (2017). ",
1694
+ "bbox": [
1695
+ 174,
1696
+ 853,
1697
+ 825,
1698
+ 924
1699
+ ],
1700
+ "page_idx": 12
1701
+ },
1702
+ {
1703
+ "type": "image",
1704
+ "img_path": "images/490c1f6c072e0a062d39ff4d6cc97980d0cf6261d8fcaf1d9d6a6f9cad6001a1.jpg",
1705
+ "image_caption": [
1706
+ "Figure 6: Schematic view of a model using our counting component. The modifications made to the baseline model when including the counting component are marked in red. Blue blocks mark components with trainable parameters, gray blocks mark components without trainable parameters. White $\\textsuperscript { \\textregistered }$ mark linear layers, either linear projections or convolutions with a spatial size of 1 depending on the context. Dropout with drop probability 0.5 is applied before the GRU and every $\\textsuperscript { \\textregistered }$ , except before the $\\textsuperscript { \\textregistered }$ after the counting component. $\\diamond$ stands for the fusion function we define in Appendix B, BN stands for batch normalization, $\\sigma$ stands for a logistic, and Embedding is a word embedding that has been fed through a tanh function. The two glimpses of the attention mechanism are represented with the two lines exiting the $\\textsuperscript { \\textregistered }$ . Note that one of the two glimpses is shared with the counting component. "
1707
+ ],
1708
+ "image_footnote": [],
1709
+ "bbox": [
1710
+ 187,
1711
+ 106,
1712
+ 808,
1713
+ 299
1714
+ ],
1715
+ "page_idx": 13
1716
+ },
1717
+ {
1718
+ "type": "image",
1719
+ "img_path": "images/07d2e4d6eedacaf38bf7ab5fb51fab2d11a25b373c83069db69f688b7b40cae0.jpg",
1720
+ "image_caption": [
1721
+ "Figure 7: Shape of activation functions as $l$ is varied for $q = 0 . 5$ on the toy dataset. Each line shows the shape of the activation function when $l$ is set to the value associated to its color. Best viewed in color. "
1722
+ ],
1723
+ "image_footnote": [],
1724
+ "bbox": [
1725
+ 184,
1726
+ 595,
1727
+ 826,
1728
+ 871
1729
+ ],
1730
+ "page_idx": 13
1731
+ },
1732
+ {
1733
+ "type": "image",
1734
+ "img_path": "images/e630ceffcd3a5654e3eb6233016450532e537c9e33e24a644459ee0f3beb38ae.jpg",
1735
+ "image_caption": [
1736
+ "Figure 8: Shape of activation functions as $q$ is varied for $l = 0 . 5$ on the toy dataset. Each line shows the shape of the activation function when $q$ is set to the value associated to its color. Best viewed in color. "
1737
+ ],
1738
+ "image_footnote": [],
1739
+ "bbox": [
1740
+ 184,
1741
+ 137,
1742
+ 826,
1743
+ 412
1744
+ ],
1745
+ "page_idx": 14
1746
+ },
1747
+ {
1748
+ "type": "image",
1749
+ "img_path": "images/0c0fbd90d5fdb814b3a5f433d4b3e097fa2287a734697d8678539536c723c7d2.jpg",
1750
+ "image_caption": [
1751
+ "Figure 9: Shape of activation functions for a model trained on the train and validation sets of VQA v2 (thick black), compared against the shapes when parametrizing the toy dataset with $q$ around 0.4 (green), 0.7 (orange), or 1.0 (red) with fixed $l = 0 . 2$ . Best viewed in color. "
1752
+ ],
1753
+ "image_footnote": [],
1754
+ "bbox": [
1755
+ 184,
1756
+ 553,
1757
+ 818,
1758
+ 827
1759
+ ],
1760
+ "page_idx": 14
1761
+ },
1762
+ {
1763
+ "type": "image",
1764
+ "img_path": "images/82a95f366fb3f29067d4526bec9b7457d9cdecee732615090ede2cab04ee24a8.jpg",
1765
+ "image_caption": [
1766
+ "Figure 10: Example toy dataset data for varying bounding box side lengths $l$ and noise $q$ . The ground truth column shows bounding boxes of randomly placed true objects (blue) and of irrelevant objects (red). The data column visualizes the samples that are actually used as input (dark blues represent weights close to 1, dark reds represent weights close to 0, lighter colors represent weights closer to 0.5). The weight of the ith bounding box $b _ { i }$ is defined as $a _ { i } = ( 1 - q )$ score $+ q z$ where the score is the maximum overlap of $b _ { i }$ with any true bounding box or 0 if there are no true bounding boxes and $z$ is drawn from $U ( 0 , 1 )$ . Note how this turns red bounding boxes that overlap a lot with a blue bounding box in the ground truth column into a blue bounding box in the data column, which simulates the duplicate proposal that we have to deal with. Best viewed in color. "
1767
+ ],
1768
+ "image_footnote": [],
1769
+ "bbox": [
1770
+ 215,
1771
+ 142,
1772
+ 766,
1773
+ 787
1774
+ ],
1775
+ "page_idx": 15
1776
+ },
1777
+ {
1778
+ "type": "image",
1779
+ "img_path": "images/2f649731cb7ae201b34fb60357ccbb8c13f0f0e0a6906d1cd4d0372f1be0a82e.jpg",
1780
+ "image_caption": [
1781
+ "Figure 11: Selection of validation images with overlaid bounding boxes, values of the attention matrix A, distance matrix D, and the resulting count matrix C. White entries represent values close to 1, black entries represent values close to 0. The count $c$ is the usual square root of the sum over the elements of C. Notice how particularly in the third example, A clearly contains more rows/columns with high activations than there are actual objects (a sign of overlapping bounding boxes) and the counting module successfully removes intra- and inter-object edges to arrive at the correct prediction regardless. The prediction is not necessarily – though often is – the rounded value of $c$ . "
1782
+ ],
1783
+ "image_footnote": [],
1784
+ "bbox": [
1785
+ 189,
1786
+ 127,
1787
+ 810,
1788
+ 818
1789
+ ],
1790
+ "page_idx": 16
1791
+ }
1792
+ ]
parse/train/B12Js_yRb/B12Js_yRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B12Js_yRb/B12Js_yRb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkxonh4Ywr/Bkxonh4Ywr.md ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LOCALIZING AND AMORTIZING: EFFICIENT INFERENCE FOR GAUSSIAN PROCESSES
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The inference of Gaussian Processes concerns the distribution of the underlying function given observed data points. GP inference based on local ranges of data points is able to capture fine-scale correlations and allow fine-grained decomposition of the computation. Following this direction, we propose a new inference model that considers the correlations and observations of the $K$ nearest neighbors for the inference at a data point. Compared with previous works, we also eliminate the data ordering prerequisite to simplify the inference process. Additionally, the inference task is decomposed to small subtasks with several technique innovations, making our model well suits the stochastic optimization. Since the decomposed small subtasks have the same structure, we further speed up the inference procedure with amortized inference. Our model runs efficiently and achieves good performances on several benchmark tasks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Gaussian processes (GP) (Rasmussen & Williams, 2006) are flexible non-parametric models with a wide range of applications. GP poses a Gaussian prior over function values f and assumes observations y are generated independently given f. GP inference considers the calculation of the posterior of these function values (Matthews et al., 2016) given observations, namely $p ( \mathbf { f } | \mathbf { y } )$ . Direct computation of the posterior is often intractable on large datasets, motivating people to consider its approximations. Variational inference (Jordan et al., 1999; Blei et al., 2017) for GP (Rasmussen & Williams, 2006) has achieved great successes recently. Variational inference constructs a variational distribution, which is usually a multivariate Gaussian distribution, to approximate the posterior. The approximation is done by minimizing the KL divergence from the posterior to the variational distribution (Blei et al., 2017). The variational distribution is often constructed with some special structures to reduce the number of variational parameters and speed up the computation.
12
+
13
+ Inducing-point methods (Quinonero-Candela & Rasmussen, 2005; Titsias, 2009; Hensman et al., ˜ 2013; 2015) define variational distributions on a small number $M$ of inducing points and then derive the distribution of non-inducing points conditioned on these inducing points. Inducing points summarize the entire posterior distribution, and their number $M$ balances the computational cost and the quality of the approximation. Inducing-point methods are further improved in several directions, such as generic inference for non-Gaussian likelihoods (Sheth et al., 2015; Dezfouli & Bonilla, 2015; Krauth et al., 2016; Hensman et al., 2015), inter-domain and subspace inducing points (Hensman et al., 2017; Panos et al., 2018), and decoupled approximation with two different sets of inducing points (Cheng & Boots, 2017; Salimbeni et al., 2018). Burt et al. (2019) provide theoretical analysis to show that a relatively small $M$ is sufficient to produce a reliable variational approximation when the input dimension is low.
14
+
15
+ While inducing-point methods capture global correlations among data points through inducing points, inference methods based on local neighbors focus more on correlation structures at local scales. These methods consider only local-range dependencies to save computation because localrange correlations are often much stronger than distant ones. Nguyen-Tuong et al. (2009); Park & Apley (2018) partition the input space into subregions, fit local models over subregions and then stitch local models into one. Other works examine neighbors of each data point directly. Gramacy & Apley (2015) investigate the properties of GP predictive equation and construct a local predictive approximator. Covariance tapering (Furrer et al., 2006; Kaufman et al., 2008) gains computational efficiency by constructing a sparse correlation matrix with zero correlations between distant data points. Methods based on Vecchia’s approximation (Vecchia, 1988; Datta et al., 2016; Liu & Liu, 2019; Finley et al., 2019) decompose the joint probability of data points into conditionals according to a data ordering and then neglect far data points that are conditioned on.
16
+
17
+ Recently, Liu & Liu (2019) propose the AIGP method, which extends the idea of local inference to GP models with non-Gaussian likelihoods. They use directed graphical models to approximate both the prior and the posterior. With this construction, the inference task decomposes into local inference subtasks, then they introduce amortized inference and use inference networks to identify solutions to these subtasks (Kingma & Welling, 2013; Dai et al., 2015; Miao et al., 2016). Amortization reduces the number of optimization parameters and greatly speeds up the inference procedure. However, this method has two drawbacks. First, the inference at a data point considers a few of its nearest neighbors but not all of them; therefore, it may lose some important correlations. Second, it depends on a data ordering. A bad ordering often deteriorates the performance, but it is hard to guard against such a bad situation. There are no easy fixes of the two issues, because all these designs in AIGP serve the purpose of decomposition.
18
+
19
+ In this work, we propose a new GP inference method, Localized and Amortized Inference based on Nearest neighbors (LAIN). LAIN considers $K$ nearest neighbors for the inference at each data point. Particularly, LAIN uses a variational distribution whose covariance is parameterized by a sparse decomposition. The decomposition focuses on the correlations between every data point and its $K$ nearest neighbors 1. LAIN also eliminates the need for a data ordering. These nice properties come after several technical innovations. First, the new distribution does not admit a decomposable entropy calculation. We overcome this difficulty by using a decomposable lower bound of the entropy (Ranganath et al., 2016; Louizos & Welling, 2017). Second, to decompose the logarithm of the prior, AIGP and previous methods use a directed graphical model as an approximation of the prior. We follow this idea, but we consider all possible orderings of data points and collapse them to local combinations, making the computation manageable. With these techniques, LAIN still decomposes the inference task into subtasks, so amortized inference can apply. It is worthing noting that subtasks in LAIN are generated from the same mechanism while those in AIGP are not. We argue that subtasks sharing the same “distribution” are more appropriate for amortization.
20
+
21
+ Our empirical evaluations show that the LAIN method outperforms baseline methods including AIGP in several learning tasks. Our investigation also indicates that LAIN can achieve decent performance even only a few neighbors are considered.
22
+
23
+ # 2 BACKGROUND
24
+
25
+ Gaussian Processes. Suppose we have a dataset containing a feature matrix $\mathbf { X } = ( \mathbf { x } _ { i } ) _ { i = 1 } ^ { N }$ and observations $\mathbf { y } = \mathbf { \Psi } ( y _ { i } ) _ { i = 1 } ^ { N }$ . We assume there is a latent function $f$ that generates $y _ { i }$ from $\mathbf { x } _ { i }$ for each $i$ . Particularly, each $y _ { i }$ is generated by a likelihood model $p ( y _ { i } | f _ { i } )$ with $f _ { i } = f ( \mathbf { x } _ { i } )$ . Denote $\mathbf { f } = ( f _ { i } ) _ { i = 1 } ^ { N }$ , then $\begin{array} { r } { p ( \mathbf { y } | \mathbf { f } ) = \prod _ { i = 1 } ^ { N } p ( y _ { i } | f _ { i } ) } \end{array}$ . The likelihood $p ( y _ { i } | f _ { i } )$ can be very general – here we only assume that $\log p ( y _ { i } | f _ { i } )$ is differentiable with respect to $f _ { i }$ . This mild assumption allows a wide range of data distributions. For example, if $y _ { i }$ is binary, $p ( y _ { i } | f _ { i } )$ is a Bernoulli distribution with $f _ { i }$ as the logit.
26
+
27
+ We put a GP prior with a mean function $\nu ( \cdot )$ and a kernel function $\kappa ( \cdot , \cdot )$ over the latent function $f$ . The kernel function encodes the prior knowledge of the smoothness of $f$ . One commonly used kernel function is the Radial Basis Function (RBF) kernel, $\kappa ( \mathbf { x } _ { i } , \mathbf { x } _ { j } ) = r ^ { 2 } \exp ( - 0 . 5 \| \mathbf { x } _ { i } - \mathbf { x } _ { j } \| _ { 2 } ^ { 2 } / \sigma ^ { 2 } )$ , with $r$ and $\sigma$ as parameters. With this prior, function values in f follow a multivariate Gaussian, f $\sim$ $\mathcal { N } ( { \boldsymbol \nu } , { \Sigma } )$ , with the mean ${ \pmb { \nu } } = ( \nu ( x _ { i } ) ) _ { i = 1 } ^ { \mathbf { \hat { N } } }$ and the covariance matrix $\pmb { \Sigma }$ with $\Sigma _ { i , j } = \kappa ( \mathbf { x } _ { i } , \mathbf { x } _ { j } ) \ \forall i , j$ .
28
+
29
+ GP inference concerns the calculation of the posterior $p ( \mathbf { f } | \mathbf { y } )$ (Matthews et al., 2016), from which we can infer the function value $f _ { \star }$ for any new input $\mathbf { x } _ { \star }$ with integral $\begin{array} { r } { \int _ { \mathbf { f } } p ( f _ { \star } | \mathbf { f } ) p ( \mathbf { f } | \mathbf { y } ) \mathrm { d } \mathbf { f } } \end{array}$ . The posterior $p ( \mathbf { f } | \mathbf { y } )$ is generally not tractable, so we appeal to approximate inference.
30
+
31
+ Variational Inference for GP. Variational inference approximates the posterior $p ( \mathbf { f } | \mathbf { y } )$ with a variational distribution $q ( \mathbf { f } )$ , which is defined as a multivariate Gaussian distribution, $q ( \mathbf { f } ) \sim \mathcal { N } ( \mu , \mathbf { V } )$
32
+
33
+ ![](images/14ddfde5436b3c8fabab96a6fd00f543492efb6a505615591341ebaa4874b1ef.jpg)
34
+ Figure 1: The structure of the variational distribution. The left box shows the amortization, which fits $\mu _ { i }$ -s and $R _ { i j }$ -s from their related prior kernel and observations. The right part shows the generation process of $f _ { i }$ -s.
35
+
36
+ The inference is carried out by maximizing the Evidence Lower BOund (ELBO) with respect to $q ( \mathbf { f } )$ (Blei et al., 2017).
37
+
38
+ $$
39
+ \log p ( \mathbf { y } | \mathbf { X } ) \geq \operatorname* { m a x } _ { q ( \mathbf { f } ) } \underbrace { { \mathbb { E } } _ { q } \left[ \log p ( \mathbf { y } | \mathbf { f } ) \right] } _ { L _ { e l l } } + \underbrace { { \mathbb { E } } _ { q } \left[ \log p ( \mathbf { f } ) \right] } _ { L _ { c r o s s } } \underbrace { - { \mathbb { E } } _ { q } \left[ \log q ( \mathbf { f } ) \right] } _ { L _ { e n t } }
40
+ $$
41
+
42
+ Here we name the three terms in the ELBO for easy reference later. Typically the ELBO is maximized by gradient-based optimization, preferably stochastic gradient optimization when $N$ is large. Direct optimization of the ELBO is challenging, since the kernel matrix $\pmb { \Sigma }$ and the variational covariance $\mathbf { V }$ are both large and have size $N \times N$ .
43
+
44
+ Inducing-point methods define $\begin{array} { r } { q ( \mathbf { f } ) ~ = ~ \int _ { \mathbf { f } _ { I } } q ( \mathbf { f } _ { I } ) p ( \mathbf { f } | \mathbf { f } _ { I } ) ~ \mathrm { d } \mathbf { f } _ { I } } \end{array}$ , where $q ( \mathbf { f } _ { I } )$ is the distribution over inducing points $I$ , and $p ( \mathbf { f } | \mathbf { f } _ { I } )$ is derived from the prior. The computation is reduced mainly because only the small distribution $q ( \mathbf { f } _ { I } )$ is optimized, while the conditional $p ( \mathbf { f } | \mathbf { f } _ { I } )$ is fixed when the prior is given.
45
+
46
+ AIGP parameterizes $\mathbf { V }$ by a Cholesky decomposition, $\mathbf { V } = \mathbf { L L } ^ { \top }$ . Here $\mathbf { L }$ is a sparse lower triangular matrix, and each row of $\mathbf { L }$ has at most $K$ non-zero entries. AIGP uses a triangular $\mathbf { L }$ for easy entropy computation. It also approximates $\log p ( \mathbf { f } )$ with a directed graphical model. Both the lower triangular matrix $\mathbf { L }$ and the directed graph require an ordering of data points.
47
+
48
+ # 3 METHOD
49
+
50
+ # 3.1 THE VARIATIONAL DISTRIBUTION
51
+
52
+ Following previous works, we also define the variational distribution $q ( \mathbf { f } )$ to be a multivariate Gaussian $\mathcal { N } ( \mu , \mathbf { V } )$ . We parameterize $\mathbf { V } = \mathbf { R } \mathbf { R } ^ { \top } + \delta ^ { 2 } \mathbf { I }$ with $\mathbf { R }$ being a sparse matrix and $\delta$ being a small constant. Note that we do not require $\mathbf { R }$ to be triangular. The sparse pattern of $\mathbf { R }$ is decided by the nearest neighbors: $R _ { i j } \neq 0$ only when $j \in n ( i )$ . Here $n ( i )$ is the neighbor set containing data points that have the largest covariance with $i$ in the prior (by definition $n ( i )$ includes $i$ ). In this work, we fix the size of $n ( i )$ to be $K$ , though our derivation works for varied sizes of $n ( i )$ . The row $\mathbf { R } _ { i }$ can be viewed as a representation of $f _ { i }$ in the variational distribution: $\mathbf { R } _ { i }$ informs $f _ { i }$ ’s correlation with other function values, just like a word embedding informs its relation with other words (Mikolov et al., 2013).
53
+
54
+ Efficient sampling from the marginal is critical for the decomposition of the ELBO later. Owing to the sparse decomposition of the covariance matrix, we can cheaply draw marginal samples for an $f _ { i }$ from $q ( \mathbf { f } )$ with a linear transformation of white noise. The sampling scheme is shown in (2) and pictured in the right part of Figure 1.
55
+
56
+ $$
57
+ f _ { i } = \mu _ { i } + { \bf R } _ { i } \epsilon + \delta \xi = \mu _ { i } + { \bf R } _ { i , n ( i ) } \epsilon _ { n ( i ) } + \delta \xi , \epsilon \sim \mathcal { N } ( { \bf 0 , I } ) , \xi \sim \mathcal { N } ( { \bf 0 , 1 } ) .
58
+ $$
59
+
60
+ The constructed distribution $q ( \mathbf { f } )$ well approximates the strong correlations in the prior. From (2), $f _ { i }$ and $f _ { j }$ correlate in $q ( \mathbf { f } )$ by sharing noise entries in $n ( i ) \cap n ( j )$ when the intersection is not empty. In this case, either $f _ { i }$ neighbors $f _ { j }$ , or $f _ { j }$ neighbors $f _ { i }$ , or $f _ { i } , f _ { j }$ share common neighbors. When the neighbor sets are large enough, most strong correlations will be approximated by some non-zero entries in $\mathbf { V }$ .
61
+
62
+ # 3.2 OPTIMIZATION OF THE ELBO
63
+
64
+ We optimize the ELBO in (1) to find a good $q ( \mathbf { f } )$ to approximate the GP posterior. To apply stochastic optimization, we will decompose the three terms in the ELBO. We mainly consider the decomposition of $L _ { c r o s s }$ and $L _ { e n t }$ , as the decomposition of $L _ { e l l }$ is easy.
65
+
66
+ We first decompose the cross entropy $L _ { c r o s s }$ . By convention, the GP prior has a zero mean. Though there is a closed-form calculation of $L _ { c r o s s }$ with both $q ( \mathbf { f } )$ and $p ( \mathbf { f } )$ being multivariate Gaussian, it involves expensive calculations of $\operatorname* { d e t } ( \pmb { \Sigma } )$ and $\Sigma ^ { - 1 }$ . Previous works approximate the prior with Vecchia’s method for easy decomposition and good approximation (Vecchia, 1988; Stein et al., 2004; Datta et al., 2016; Liu & Liu, 2019; Finley et al., 2019). The idea is to build a directed graphical model and approximate $\begin{array} { r } { p ( \mathbf { f } ) \approx \prod _ { i = 1 } ^ { N } p ( f _ { i } | f _ { \alpha ( i ) } ) } \end{array}$ with $\alpha ( i )$ being a small parent set of $i$ . In the original work, Vecchia (1988) first set an order to data points and then choose $\alpha ( i )$ as the $K$ nearest parents of $i$ . But it is not easy to guarantee a good ordering of data points (Banerjee et al., 2014; Guinness, 2018). Here we consider all possible orderings and take the average of approximations to address the data ordering concern.
67
+
68
+ stimate for eac $L _ { c r o s s }$ as follows. First, we randomly saen we approximate the log-prior by $n ^ { \prime } ( i ) \subset n ( i )$ with , with $i \not \in$ $n ^ { \prime } ( i )$ $i$ $\begin{array} { r } { \log p ( \mathbf { f } ) \approx \sum _ { i = 1 } ^ { N } \log p ( f _ { i } | f _ { n ^ { \prime } ( i ) } ) } \end{array}$ conditional distribution $p ( f _ { i } | f _ { n ^ { \prime } ( i ) } )$ derived from the joint Gaussian $p ( f _ { i } , f _ { n ^ { \prime } ( i ) } )$ in the prior. Then $L _ { c r o s s }$ is estimated by a random batch of terms. The complete calculation is given as
69
+
70
+ $$
71
+ L _ { c r o s s } \approx \tilde { L } _ { c r o s s } = \frac { N } { | S | } \sum _ { i \in S } \mathbb { E } _ { q ( f _ { i } , f _ { n ^ { \prime } ( i ) } ) } \Big [ \log p ( f _ { i } | f _ { n ^ { \prime } ( i ) } ) \Big ] , \mathrm { ~ r a n d o m ~ s e t ~ } n ^ { \prime } ( i ) \subset n ( i ) .
72
+ $$
73
+
74
+ Here $S$ is a random batch of data points.
75
+
76
+ Now we justify that this is an average over all data orderings. Suppose there is a data order $\pi ( \cdot )$ , such that we can define a directed graphical model over $p ( \mathbf { f } )$ by assigning every $i$ a parent set $n _ { \pi } ^ { \prime } ( i ) = \{ j : j \in n ( i ) , \pi ( j ) < \pi ( i ) \}$ . Denote $\Pi$ as all permutations of $N$ data points, with each permutation inducing a graphical model. The average of the log densities of all graphical models can be collapsed to the average computed from local neighborhoods. Denote $\Pi _ { n ( i ) }$ as permutations of indices in the set $n ( i )$ , then we have
77
+
78
+ $$
79
+ \frac { 1 } { N ! } \sum _ { \pi \in \Pi } \sum _ { i = 1 } ^ { N } \mathbb { E } _ { q ( f _ { i } , f _ { n _ { \pi } ^ { \prime } ( i ) } ) } \Big [ \log p ( f _ { i } | f _ { n _ { \pi } ^ { \prime } ( i ) } ) \Big ] = \sum _ { i = 1 } ^ { N } \frac { 1 } { K ! } \sum _ { \pi \in \Pi _ { n ( i ) } } \mathbb { E } _ { q ( f _ { i } , f _ { n _ { \pi } ^ { \prime } ( i ) } ) } \Big [ \log p ( f _ { i } | f _ { n _ { \pi } ^ { \prime } ( i ) } ) \Big ] .
80
+ $$
81
+
82
+ Here we only need to consider permutations of data points within $n ( i )$ for each $i$ . Then we obtain (3) by estimating the inner summation by a single random permutation of $n ( i )$ and the outer summation by a random batch $S$ .
83
+
84
+ We then decompose the entropy $L _ { e n t }$ . The entropy of $q ( \mathbf { f } )$ requires the expensive computation of $\operatorname* { d e t } ( \mathbf { V } )$ . To circumvent this difficulty, we find a decomposable lower bound of the entropy by using an auxiliary distribution (Ranganath et al., 2016; Louizos $\&$ Welling, 2017). Note that we always prefer a lower bound of the objective in this maximization problem. With an arbitrary distribution $r ( \epsilon | \mathbf { f } )$ , a lower bound of $L _ { e n t }$ is
85
+
86
+ $$
87
+ L _ { e n t } = - \mathbb { E } _ { q } \left[ \log q ( \mathbf { f } ) \right] \geq - \mathbb { E } _ { q ( \mathbf { f } , \epsilon ) } \left[ \log q ( \mathbf { f } | \epsilon ) + \log q ( \epsilon ) - \log r ( \epsilon | \mathbf { f } ) \right] .
88
+ $$
89
+
90
+ The bound is tight when $r ( \epsilon | \mathbf { f } )$ matches $q ( \epsilon | \mathbf { f } )$ . In this work, we try to let $r ( \epsilon | \mathbf { f } )$ match $q ( \epsilon | \mathbf { f } )$ . Particularly, we set $\begin{array} { r } { r ( \epsilon | \mathbf { f } ) = \prod _ { i } q ( \epsilon _ { i } | \mathbf { f } _ { n ( i ) } ) } \end{array}$ , where the conditional $q \bigl ( \epsilon _ { i } | \mathbf { f } _ { n ( i ) } \bigr )$ is derived from the joint Gaussian distribution $q \bigl ( \epsilon _ { i } , \mathbf { f } _ { n ( i ) } \bigr )$ . Then all terms in the lower bound in (5) are Gaussian loglikelihoods and are decomposable over data points. We can then reach the estimation of the entropy lower bound with a batch of data points.
91
+
92
+ $$
93
+ L _ { e n t } \geq \tilde { L } _ { e n t } = - \frac { 1 } { 2 } \frac { N } { | S | } \sum _ { i \in S } \log \left( 1 - \mathbf { R } _ { n ( i ) , i } ^ { \top } \left( \mathbf { R } _ { n ( i ) , : } \mathbf { R } _ { n ( i ) , : } ^ { \top } \right) ^ { - 1 } \mathbf { R } _ { n ( i ) , i } \right) + c o n s t .
94
+ $$
95
+
96
+ We finally decompose the likelihood $L _ { e l l }$ . The likelihood term $\log p ( \mathbf { y } | \mathbf { f } )$ naturally decomposes because $y _ { i }$ -s are conditionally independent given $f _ { i }$ -s.
97
+
98
+ $$
99
+ L _ { e l l } = \sum _ { i = 1 } ^ { N } \mathbb { E } _ { q ( f _ { i } ) } \left[ \log p ( y _ { i } | f _ { i } ) \right] , \quad \tilde { L } _ { e l l } = \frac { N } { | S | } \sum _ { i \in S } \log p ( y _ { i } | \hat { f } _ { i } ) .
100
+ $$
101
+
102
+ Here for each term $i$ in the summation, the expectation is estimated by a Monte Carlo sample $\hat { f } _ { i }$ from $q ( f _ { i } )$ . The gradients of variational parameters are propagated through ${ \hat { f } } _ { i }$ via reparameterization (Kingma & Welling, 2013).
103
+
104
+ Finally, the ELBO has a decomposable approximation $\tilde { L } _ { e l l } + \tilde { L } _ { c r o s s } + \tilde { L } _ { e n t }$ to enable efficient stochastic optimization. From the derivations above, we see the objective can be decomposed by data points. The computation for a data point only involves itself and its $K$ nearest neighbors. Therefore, each stochastic gradient calculation takes time only $O ( K ^ { 3 } )$ . There are $N ( K + \bar { 1 } )$ parameters in $\pmb { \mu }$ and $\mathbf { R }$ to optimize, so the optimization takes at least $O ( N )$ time. We further reduce the number of parameters by amortizing the cost through a shared inference model, taking advantage of the fact that the inference for each data point $i$ only needs its $K$ nearest neighbors.
105
+
106
+ # 3.3 AMORTIZED INFERENCE
107
+
108
+ Following AIGP, we also apply amortized inference to GP inference. Particularly, we train an inference network to identify variational parameters ${ \bf \nabla } _ { \mu _ { i } }$ and $\mathbf { R } _ { i , n ( i ) } )$ for each data point $i$ . Since node correlations at a neighborhood can be easily treated as a weighted graph, we use Graph Convolutional Networks (GCNs) (Kipf & Welling, 2017) as our inference network.
109
+
110
+ A GCN takes an adjacency matrix $\mathbf { A } \in \mathbb { R } ^ { k \times k }$ of graph and the node features $\mathbf { H } ^ { ( 0 ) } \in \mathbb { R } ^ { k \times d _ { 0 } }$ as the input and then makes predictions for all graph nodes. Let $\bar { \mathbf A }$ be the normalized adjacency matrix, $\bar { \mathbf { A } } = \mathbf { D } ^ { - \frac { 1 } { 2 } } \mathbf { A } \mathbf { D } ^ { - \frac { 1 } { 2 } }$ , with $\mathbf { D }$ being the diagonal degree matrix. A GCN layer $\ell$ with the input $\mathbf { H } ^ { ( \ell - 1 ) }$ is defined by $\mathbf { H } ^ { ( \ell ) } = g _ { \ell } ( \mathbf { H } ^ { ( \ell - 1 ) } , \mathbf { A } ) : = \overset { - } { \sigma } \big ( \bar { \mathbf { A } } \mathbf { H } ^ { ( \bar { \ell } - 1 ) } \mathbf { W } ^ { ( \ell ) } \big )$ . Here $\mathbf { W } ^ { ( l ) } \in \mathbb { R } ^ { d _ { \ell - 1 } \times d _ { \ell } }$ is the weight matrix of the layer $\ell$ . $\sigma ( \cdot )$ is the activation function. An $L$ -layer GCN computes its output by $\mathbf { H } = g c n ( \mathbf { H } ^ { 0 } , \mathbf { A } ) : = g _ { L } ( \mathbf { \sigma } _ { \cdot } \dots g _ { 1 } ( \mathbf { H } ^ { 0 } , \mathbf { A } ) \dots , \mathbf { A } )$ . We use two GCNs for the inference task, $g c n _ { 1 }$ for the calculation of $\mu _ { i }$ and $g c n _ { 2 }$ for $\mathbf { R } _ { i , n ( i ) }$ :
111
+
112
+ $$
113
+ \begin{array} { r } { \mu _ { i } = { \bf a } ^ { \top } g c n _ { 1 } \left( \left[ { \bf y } _ { n \left( i \right) } , { \bf e } _ { i } \right] , { \bf \Sigma } _ { n \left( i \right) , n \left( i \right) } \right) , { \bf R } _ { i , n \left( i \right) } = g c n _ { 2 } \left( \left[ { \bf y } _ { n \left( i \right) } , { \bf e } _ { i } \right] , { \bf \Sigma } _ { { n \left( i \right) } , n \left( i \right) } \right) . } \end{array}
114
+ $$
115
+
116
+ Here we use $\Sigma _ { n ( i ) , n ( i ) }$ as the adjacency matrix and stack the observation $\mathbf { y } _ { n ( i ) }$ and the one-hot vector $\mathbf { e } _ { i }$ as the input feature. The vector $\mathbf { e } _ { i }$ indicates the element $i$ for which the inference is running for. We choose the activation $\sigma ( \cdot )$ to be ReLU for intermediate layers and identity for the last layer. The last layer of each GCN has size 1 to output a $K \times 1$ vector. a is an averaging vector with all $K$ elements as $\textstyle { \frac { 1 } { K } }$ . The dashed box in Figure 1 shows the amortization.
117
+
118
+ LAIN defines an inference subtask on a data point and its nearest neighbors, while AIGP defines a subtask on a data point and its parents. Due to this difference, LAIN has two advantages. First, the inference network of LAIN uses the observations from all the $K$ nearest neighbors, while the inference network of AIGP uses observations from parents only but not children. Second, inference subtasks of LAIN are generated with the same mechanism because the nearest-neighbor relationship is homogeneous across all data points. However, the parent-child relationship in AIGP depends on the ordering of data points (e.g. the first one in the order does not have parents). As a learning model, the inference network prefers subtasks from the same “distribution”.
119
+
120
+ The computational cost of GCN is $O ( K ^ { 2 } )$ by treating the network size as constant. The complexity of one gradient calculation is $O ( K ^ { 3 } )$ . The optimization procedure converges fast since it only optimizes a constant number of variational parameters. In practice, we often observe that the optimization procedure converges in less than one epoch, which is not possible for methods without amortization. Finding nearest neighbors is the only step with running time bounds to the data size, but it only needs one run and is often fast on medium to large data sizes. If the data has a very large size, we can use k-d trees for low-dimensional data and approximate algorithms (Arya et al., 1998; Datar et al., 2004) for high dimensional data.
121
+
122
+ # 3.4 PREDICTION
123
+
124
+ For a new data point $\mathbf { x } _ { \star }$ with its $K$ nearest neighbors $n ( \star )$ in the prior, the predictive distribution is
125
+
126
+ $$
127
+ p ( y _ { \star } | \mathbf { x } _ { \star } , \mathbf { X } , \mathbf { y } ) \approx \int _ { f _ { \star } } p ( y _ { \star } | f _ { \star } ) q ( f _ { \star } | \mathbf { x } _ { \star } , \mathbf { X } _ { n ( \star ) } , \mathbf { y } _ { n ( \star ) } ) \mathrm { d } f _ { \star } \approx \frac { 1 } { | F | } \sum _ { \widehat { f } _ { \star } \in F } p ( y _ { \star } | \widehat { f } _ { \star } ) .
128
+ $$
129
+
130
+ ![](images/d66507f0b5b95720272e2d3439961525cb73c16e79e9c1099008221c027b8159.jpg)
131
+ Figure 2: The first two plots compare predictive distributions of full GP and LAIN with $K = 1 0$ . The right three plots show how SVGP, AIGP, and LAIN perform with a very small number of inducing points/neighbors. Data points in blue circles are not well fitted.
132
+
133
+ Here $\begin{array} { r } { q ( f _ { \star } | \mathbf { x } _ { \star } , \mathbf { X } _ { n ( \star ) } , \mathbf { y } _ { n ( \star ) } ) = \int _ { \mathbf { f } _ { n ( \star ) } } p ( f _ { \star } | \mathbf { f } _ { n ( \star ) } ) q ( \mathbf { f } _ { n ( \star ) } ) \mathrm { d } \mathbf { f } _ { n ( \star ) } } \end{array}$ is a Gaussian with parameters,
134
+
135
+ $$
136
+ \begin{array} { r } { \mu _ { \star } = \mathbf { b } _ { \star } \mu _ { n ( \star ) } , \qquad \sigma _ { \star } ^ { 2 } = \Sigma _ { \star , \star } - \Sigma _ { \star , n ( \star ) } \mathbf { b } _ { \star } ^ { \top } + \mathbf { b } _ { \star } ( \mathbf { R } _ { n ( \star ) } \mathbf { R } _ { n ( \star ) } ^ { T } ) \mathbf { b } _ { \star } ^ { \top } , } \end{array}
137
+ $$
138
+
139
+ with $\mathbf { b _ { \star } } = \pmb { \Sigma } _ { \star , n ( \star ) } \pmb { \Sigma } _ { n ( \star ) , n ( \star ) } ^ { - 1 }$ . $F$ is a set of Monte Carlo samples from $q ( f _ { \star } | \mathbf { x } _ { \star } , \mathbf { X } _ { n ( \star ) } , \mathbf { y } _ { n ( \star ) } )$ . The
140
+
141
+ # 4 EXPERIMENT
142
+
143
+ We compare our method with five state-of-the-art methods: SVGP (Hensman et al., 2015), SAVIGP (Dezfouli & Bonilla, 2015), DGP (Cheng & Boots, 2017), VFF (Hensman et al., 2017), and AIGP (Liu & Liu, 2019). The first three methods are based on inducing points, VFF uses inter-domain inducing points, and AIGP uses local neighbors. Through all experiments, we use RBF as the default kernel, except for VFF we use Ma´tern- $\frac { 3 } { 2 }$ kernel (the code does not provide RBF kernel). We use the implementation of SVGP from GPFlow (Matthews et al., 2017), the implementation of DGP from Faust (2018), and implementations of all other algorithms from their authors.
144
+
145
+ For SVGP, SAVIGP, and VFF, we vary the number of inducing points, $M \in \{ 2 0 0 , 1 0 0 0 , 2 0 0 0 \}$ , to check their performances. DGP has separate inducing points for mean approximation and those for variance approximation. We use 256 inducing points for variance approximation and vary the number of inducing points for mean approximation from 200 to 2000. We vary the number of neighbors, $K \in \{ 1 0 , 2 0 , 4 0 \}$ , for AIGP and LAIN. GCNs used in these two methods have three hidden layers with dimensions [20, 10, 1]. We randomly split each dataset into training $( 7 5 \% )$ and testing $( 2 5 \% )$ and report both the predictive performance on the test set and the inference running time. To save the space, we report results from two settings for each competing method: one setting is $M = 2 0 0$ or $K = 1 0$ , with which all methods have their fastest speed (marked by $\pmb { \mathscr { z } }$ ), and another setting giving the best predictive performance (marked by $\checkmark$ ).
146
+
147
+ # 4.1 A TOY EXAMPLE
148
+
149
+ In this section, we test different methods on a one-dimensional toy example studied in (Snelson & Ghahramani, 2006). The dataset contains 200 data points, shown as black dots in figure 2. We assume Gaussian likelihood in this experiment and run exact inference as the baseline. A smaller GCN (hidden dimensions [10, 5, 1]) is used in this task.
150
+
151
+ The predictive mean and variance from the exact inference and LAIN with $K = 1 0$ are shown in the first two plots of Figure 2. The result of LAIN is very similar to that of exact inference, except that the mean curve of LAIN is less smooth, which does not really hurt the predictive performance.
152
+
153
+ We test different methods with very small $M$ and $K$ and observe how they behave. We are likely to face this situation when we work on large datasets in high-dimensional spaces. The last three plots of Figure 2 exhibit predictive distributions of SVGP with $M = 2$ inducing points, AIGP with $K = 2$ parents, and LAIN with $K = 2$ nearest neighbors. When there are not enough inducing points, SVGP over-smooths the prediction and performs poorly for a good fraction of data points. AIGP does not have a good predictive mean either, because under a random ordering the directed graph constructed by AIGP cannot well capture neighboring relations. The predictive mean of LAIN does not deviate far from the ground-truth in the area with training instances, though the curve is rugged due to local variations.
154
+
155
+ Table 1: Comparison on the eBird dataset.
156
+
157
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=2004M=1000√</td><td rowspan=1 colspan=1>1.90±.031.88±.02</td><td rowspan=1 colspan=1>107s4.5ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=2004M=2000√</td><td rowspan=1 colspan=1>2.04±.031.99±.03</td><td rowspan=1 colspan=1>167s50ks</td></tr><tr><td rowspan=1 colspan=1>VFF</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.91±.021.91±.02</td><td rowspan=1 colspan=1>1.3ks13ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.82±.021.80±.02</td><td rowspan=1 colspan=1>96s213s</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 MK=20 √</td><td rowspan=1 colspan=1>1.79±.051.71±.05</td><td rowspan=1 colspan=1>45s125s</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>1.69±.031.65±.031.60±.02</td><td rowspan=1 colspan=1>55s384s1.3ks</td></tr></table>
158
+
159
+ Table 2: Comparison on the precipitation dataset.
160
+
161
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.57±.031.28±.03</td><td rowspan=1 colspan=1>2.5ks42ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.70±.021.58±.02</td><td rowspan=1 colspan=1>2.8ks50ks</td></tr><tr><td rowspan=1 colspan=1>VFF</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.54±.031.53±.03</td><td rowspan=1 colspan=1>9.1ks32ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.07±.051.00±.05</td><td rowspan=1 colspan=1>402s889s</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 4K=10 √</td><td rowspan=1 colspan=1>0.96±.030.96±.03</td><td rowspan=1 colspan=1>155s155s</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>0.74±.050.72±.050.69±.04</td><td rowspan=1 colspan=1>129s903s2.3ks</td></tr></table>
162
+
163
+ ![](images/4e7a03685eb2a699e7d27c999ce631f8d156786ab9745e1016d46a92fbe32fdc.jpg)
164
+ Figure 3: ELBO trajectories of LAIN with and without inference networks.
165
+
166
+ Table 3: Comparison on the MNIST dataset.
167
+
168
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Accuracy</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=200王M=1000√</td><td rowspan=1 colspan=1>0.053±.0040.051±.004</td><td rowspan=1 colspan=1>98.498.5</td><td rowspan=1 colspan=1>623s23ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=200HM=200√</td><td rowspan=1 colspan=1>0.339±.0080.339±.008</td><td rowspan=1 colspan=1>51.751.7</td><td rowspan=1 colspan=1>6.5ks6.5ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>0.059±.0050.052±.005</td><td rowspan=1 colspan=1>98.198.3</td><td rowspan=1 colspan=1>292s2.1ks</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 4K=40 √</td><td rowspan=1 colspan=1>0.293±.0020.215±.003</td><td rowspan=1 colspan=1>98.098.2</td><td rowspan=1 colspan=1>3.9ks24ks</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>0.053±.0030.050±.0030.051±.003</td><td rowspan=1 colspan=1>98.999.099.1</td><td rowspan=1 colspan=1>128s632s2.9ks</td></tr><tr><td rowspan=1 colspan=1>KNN</td><td rowspan=1 colspan=1>K=9K=19K=39</td><td rowspan=1 colspan=1>N.A.N.A.N.A.</td><td rowspan=1 colspan=1>98.698.397.6</td><td rowspan=1 colspan=1>24s26s28s</td></tr></table>
169
+
170
+ # 4.2 BIRD ABUNDANCE ESTIMATION
171
+
172
+ In this experiment, we estimate the spatial abundance of a bird species (Savannah Sparrow) using eBird dataset (Munson et al., 2015). The dataset has 14,393 observations, each of which is a reported bird count at a GPS location. We model the observed counts with GPS locations as the input. We set the likelihood to be a Poisson distribution, with rate given by $\lambda _ { i } = \exp ( f _ { i } )$ .
173
+
174
+ We compare different inference methods in terms of Negative predictive Log-Likelihood (NLL, the smaller the better predictive performance). Table 1 shows the results. We can see that LAIN achieves the best predictive performance at $K = 4 0$ . Methods based on inducing points generally perform worse. In this dataset, observations have strong correlations in local areas, but inducing points are not efficient to capture the posterior at such a fine scale. In terms of running speed, LAIN is comparable to AIGP and DGP but faster than other methods. In our experiment, we have also tried to increase inducing points for DGP, but it does not improve its performance.
175
+
176
+ In this experiment, we also investigate whether inference networks work correctly. We run LAIN without inference networks and optimize $\pmb { \mu }$ and $\mathbf { L }$ for the variational distribution directly. Then we compare LAIN models with and without inference networks by checking their optimization procedure. In this task, we fix hyperparameters, so the two methods solve a pure inference problem. Figure 3 is the trace plot of the negative ELBO versus training epochs. The figure shows the ELBO of the two LAIN models eventually converge to very similar values, though the ELBO without inference networks is slightly better after 50 epochs (likely due to the amortization gap). LAIN with inference networks significantly reduces the number of optimization epochs – the inference networks are well trained after only 0.01 epoch (about 100 iterations). In summary, the result indicates that inference networks can effectively identify the variational parameters using local information.
177
+
178
+ # 4.3 PRECIPITATION LEVEL ESTIMATION
179
+
180
+ In this task, we evaluate LAIN on a rainfall dataset. We process the precipitation dataset (Climate Data Online) and obtain the average precipitation level in May at 8,832 stations that are spatially distributed in the US. The GP inputs are GPS locations of these stations, and the observations are the average precipitation levels. We use the log-normal distribution as the likelihood, with its mean as function value $f$ from GP and variance as a hyperparameter learned from the data.
181
+
182
+ Table 2 summaries the experimental results. LAIN has better predictive performance, and its running speed is comparable to or faster than other methods.
183
+
184
+ We also analyze the goodness of our prior approximation since we can compute the exact $L _ { c r o s s }$ on this dataset. We compute $L _ { c r o s s }$ with the optimized $q ( \mathbf { f } )$ distribution as well as $\tilde { L } _ { c r o s s }$ . The true value $L _ { c r o s s }$ and the approximation $\tilde { L } _ { c r o s s }$ are: 5,465 versus 5,396 when $K \ : = \ : 1 0$ , 9,905 versus 8,490 when $K = 2 0$ , and 10,086 versus 9,009 when $K = 4 0$ . This result indicates that the approximation $\tilde { L } _ { c r o s s }$ is relatively accurate. Furthermore, $\tilde { L } _ { c r o s s }$ tends to be smaller than the true value and can be considered as a lower bound in such cases.
185
+
186
+ # 4.4 HAND-WRITTEN DIGIT CLASSIFICATION
187
+
188
+ In this experiment, we explore a high-dimensional inference problem, GP classification of MNIST digits (LeCun & Cortes, 2010). We consider a binary classification on handwritten images of 5 and 8. To make performance values of different methods more differentiable, we randomly choose a subset of size 7,858 from the original dataset. Pixel values are normalized to [0,1] in the preprocessing step. In the results, we also report the accuracy obtained by different methods.
189
+
190
+ The results are shown in Table 3. We see that LAIN performs the best in terms of classification accuracy. Its predictive NLL and running speed also overperform competing methods, though not very significant. We also observe that AIGP makes less confident predictions than other methods, which accounts for its worse predictive NLL but high accuracy. We do not report results from VFF due to memory issues.
191
+
192
+ We also examine KNN in this experiment. From the results, we notice that a small number of neighbors are often sufficient for KNN and LAIN models to perform well. By checking the running time of KNN, we also see that the time of finding nearest neighbors is only a small fraction of the total inference time on this dataset. There are slight differences regarding the test accuracy between KNN and LAIN, presumably due to different weighting schemes: LAIN weights different nearest neighbors according to their correlations, while KNN treats all nearest neighbors uniformly.
193
+
194
+ # 5 CONCLUSION
195
+
196
+ In this work, we propose a novel approach for GP inference. We construct a variational distribution that has a sparse decomposition on its covariance matrix. With this distribution, function value at a data point is inferred from its nearest neighbors, encouraging the inference efficiently focuses on approximating strong correlations posed by the prior. The proposed variational distribution is expressive to approximate the GP posterior and also provides a decent structure for efficient ELBO optimization. We further decompose the ELBO into homogeneous subtasks and therefore enable stochastic optimization. Finally, we devise inference networks to perform these subtasks and significantly reduce the number of variational parameters. Our proposed method performs well in terms of predictive performance and running speed on a series of benchmark tasks.
197
+
198
+ # REFERENCES
199
+
200
+ Sunil Arya, David M Mount, Nathan S Netanyahu, Ruth Silverman, and Angela Y Wu. An optimal algorithm for approximate nearest neighbor searching fixed dimensions. Journal of the ACM (JACM), 45(6):891–923, 1998.
201
+
202
+ Sudipto Banerjee, Bradley P Carlin, and Alan E Gelfand. Hierarchical modeling and analysis for spatial data. Chapman and Hall/CRC, 2014.
203
+
204
+ David M Blei, Alp Kucukelbir, and Jon D McAuliffe. Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518):859–877, 2017.
205
+
206
+ David Burt, Carl Edward Rasmussen, and Mark Van Der Wilk. Rates of convergence for sparse variational Gaussian process regression. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 862–871, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
207
+
208
+ Ching-An Cheng and Byron Boots. Variational inference for gaussian process models with linear complexity. In Advances in Neural Information Processing Systems, pp. 5190–5200, 2017.
209
+
210
+ Climate Data Online. https://www.ncdc.noaa.gov/cdo-web/datasets.
211
+
212
+ Zhenwen Dai, Andreas Damianou, Javier Gonzalez, and Neil Lawrence. Variational auto-encoded´ deep gaussian processes. arXiv preprint arXiv:1511.06455, 2015.
213
+
214
+ Mayur Datar, Nicole Immorlica, Piotr Indyk, and Vahab S Mirrokni. Locality-sensitive hashing scheme based on p-stable distributions. In Proceedings of the twentieth annual symposium on Computational geometry, pp. 253–262. ACM, 2004.
215
+
216
+ Abhirup Datta, Sudipto Banerjee, Andrew O Finley, and Alan E Gelfand. Hierarchical nearestneighbor gaussian process models for large geostatistical datasets. Journal of the American Statistical Association, 111(514):800–812, 2016.
217
+
218
+ Amir Dezfouli and Edwin V Bonilla. Scalable inference for gaussian process models with blackbox likelihoods. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1414–1422. Curran Associates, Inc., 2015.
219
+
220
+ Aleksandra Faust. Decoupled gaussian process (github implementation). https://github. com/google/decoupled_gaussian_process, 2018.
221
+
222
+ Andrew O Finley, Abhirup Datta, Bruce D Cook, Douglas C Morton, Hans E Andersen, and Sudipto Banerjee. Efficient algorithms for bayesian nearest neighbor gaussian processes. Journal of Computational and Graphical Statistics, pp. 1–14, 2019.
223
+
224
+ Reinhard Furrer, Marc G Genton, and Douglas Nychka. Covariance tapering for interpolation of large spatial datasets. Journal of Computational and Graphical Statistics, 15(3):502–523, 2006.
225
+
226
+ Robert B Gramacy and Daniel W Apley. Local gaussian process approximation for large computer experiments. Journal of Computational and Graphical Statistics, 24(2):561–578, 2015.
227
+
228
+ Joseph Guinness. Permutation and grouping methods for sharpening gaussian process approximations. Technometrics, 60(4):415–429, 2018.
229
+
230
+ James Hensman, Nicolo Fusi, and Neil D Lawrence. Gaussian processes for big data. arXiv preprint arXiv:1309.6835, 2013.
231
+
232
+ James Hensman, Alexander G de G Matthews, and Zoubin Ghahramani. Scalable variational Gaussian process classification. In Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, 2015.
233
+
234
+ James Hensman, Nicolas Durrande, and Arno Solin. Variational fourier features for gaussian processes. The Journal of Machine Learning Research, 18(1):5537–5588, 2017.
235
+
236
+ Michael I. Jordan, Zoubin Ghahramani, Tommi S. Jaakkola, and Lawrence K. Saul. An introduction to variational methods for graphical models. Machine Learning, 37(2):183–233, 1999.
237
+
238
+ Cari G Kaufman, Mark J Schervish, and Douglas W Nychka. Covariance tapering for likelihoodbased estimation in large spatial data sets. Journal of the American Statistical Association, 103 (484):1545–1555, 2008.
239
+
240
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), number 2014, 2013.
241
+
242
+ Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
243
+
244
+ K. Krauth, E. V. Bonilla, K. Cutajar, and M. Filippone. AutoGP: Exploring the Capabilities and Limitations of Gaussian Process Models. ArXiv e-prints, October 2016.
245
+
246
+ Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/.
247
+
248
+ Linfeng Liu and Liping Liu. Amortized variational inference with graph convolutional networks for gaussian processes. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 2291–2300, 2019.
249
+
250
+ Christos Louizos and Max Welling. Multiplicative normalizing flows for variational bayesian neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2218–2227. JMLR. org, 2017.
251
+
252
+ Alexander G de G Matthews, James Hensman, Richard Turner, and Zoubin Ghahramani. On sparse variational methods and the kullback-leibler divergence between stochastic processes. In Artificial Intelligence and Statistics, pp. 231–239, 2016.
253
+
254
+ Alexander G. de G. Matthews, Mark van der Wilk, Tom Nickson, Keisuke. Fujii, Alexis Boukouvalas, Pablo Leon-Villagr ´ a, Zoubin Ghahramani, and James Hensman. GPflow: A Gaussian ´ process library using TensorFlow. Journal of Machine Learning Research, 18(40):1–6, apr 2017. URL http://jmlr.org/papers/v18/16-537.html.
255
+
256
+ Yishu Miao, Lei Yu, and Phil Blunsom. Neural variational inference for text processing. In Proceedings of the 33rd International Conference on International Conference on Machine Learning, pp. 1727–1736, 2016.
257
+
258
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
259
+
260
+ M. A. Munson, K. Webb, D. Sheldon, D. Fink, W. M. Hochachka, M. Iliff, M. Riedewald, D. Sorokina, B. Sullivan, C. Wood, and S. Kelling. The eBird reference dataset, version 2014, 2015.
261
+
262
+ Duy Nguyen-Tuong, Jan R Peters, and Matthias Seeger. Local gaussian process regression for real time online model learning. In Advances in Neural Information Processing Systems, pp. 1193– 1200, 2009.
263
+
264
+ A. Panos, P. Dellaportas, and M. K. Titsias. Fully Scalable Gaussian Processes using Subspace Inducing Inputs. ArXiv e-prints, July 2018.
265
+
266
+ Chiwoo Park and Daniel Apley. Patchwork kriging for large-scale gaussian process regression. The Journal of Machine Learning Research, 19(1):269–311, 2018.
267
+
268
+ Joaquin Quinonero-Candela and Carl Edward Rasmussen. A unifying view of sparse approximate ˜ gaussian process regression. Journal of Machine Learning Research, 6(Dec):1939–1959, 2005.
269
+
270
+ Rajesh Ranganath, Dustin Tran, and David Blei. Hierarchical variational models. In International Conference on Machine Learning, pp. 324–333, 2016.
271
+
272
+ Carl Edward Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning. The MIT Press, 2006.
273
+
274
+ H. Salimbeni, C.-A. Cheng, B. Boots, and M. Deisenroth. Orthogonally Decoupled Variational Gaussian Processes. ArXiv e-prints, September 2018.
275
+
276
+ Rishit Sheth, Yuyang Wang, and Roni Khardon. Sparse variational inference for generalized gaussian process models. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning, ICML’15, pp. 1302–1311. JMLR.org, 2015.
277
+
278
+ Edward Snelson and Zoubin Ghahramani. Sparse gaussian processes using pseudo-inputs. In Advances in neural information processing systems, pp. 1257–1264, 2006.
279
+
280
+ Michael L Stein, Zhiyi Chi, and Leah J Welty. Approximating likelihoods for large spatial data sets. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 66(2):275–296, 2004.
281
+
282
+ Michalis K. Titsias. Variational learning of inducing variables in sparse gaussian processes. In Proceedings of the Twelfth International Conference on Artificial Intelligence and Statistics, pp. 567–574, 2009.
283
+
284
+ Aldo V Vecchia. Estimation and model identification for continuous spatial processes. Journal of the Royal Statistical Society: Series B (Methodological), 50(2):297–312, 1988.
parse/train/Bkxonh4Ywr/Bkxonh4Ywr_content_list.json ADDED
@@ -0,0 +1,1484 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LOCALIZING AND AMORTIZING: EFFICIENT INFERENCE FOR GAUSSIAN PROCESSES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 781,
10
+ 146
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
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The inference of Gaussian Processes concerns the distribution of the underlying function given observed data points. GP inference based on local ranges of data points is able to capture fine-scale correlations and allow fine-grained decomposition of the computation. Following this direction, we propose a new inference model that considers the correlations and observations of the $K$ nearest neighbors for the inference at a data point. Compared with previous works, we also eliminate the data ordering prerequisite to simplify the inference process. Additionally, the inference task is decomposed to small subtasks with several technique innovations, making our model well suits the stochastic optimization. Since the decomposed small subtasks have the same structure, we further speed up the inference procedure with amortized inference. Our model runs efficiently and achieves good performances on several benchmark tasks. ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 764,
44
+ 433
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 460,
55
+ 334,
56
+ 477
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Gaussian processes (GP) (Rasmussen & Williams, 2006) are flexible non-parametric models with a wide range of applications. GP poses a Gaussian prior over function values f and assumes observations y are generated independently given f. GP inference considers the calculation of the posterior of these function values (Matthews et al., 2016) given observations, namely $p ( \\mathbf { f } | \\mathbf { y } )$ . Direct computation of the posterior is often intractable on large datasets, motivating people to consider its approximations. Variational inference (Jordan et al., 1999; Blei et al., 2017) for GP (Rasmussen & Williams, 2006) has achieved great successes recently. Variational inference constructs a variational distribution, which is usually a multivariate Gaussian distribution, to approximate the posterior. The approximation is done by minimizing the KL divergence from the posterior to the variational distribution (Blei et al., 2017). The variational distribution is often constructed with some special structures to reduce the number of variational parameters and speed up the computation. ",
63
+ "bbox": [
64
+ 174,
65
+ 492,
66
+ 825,
67
+ 646
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Inducing-point methods (Quinonero-Candela & Rasmussen, 2005; Titsias, 2009; Hensman et al., ˜ 2013; 2015) define variational distributions on a small number $M$ of inducing points and then derive the distribution of non-inducing points conditioned on these inducing points. Inducing points summarize the entire posterior distribution, and their number $M$ balances the computational cost and the quality of the approximation. Inducing-point methods are further improved in several directions, such as generic inference for non-Gaussian likelihoods (Sheth et al., 2015; Dezfouli & Bonilla, 2015; Krauth et al., 2016; Hensman et al., 2015), inter-domain and subspace inducing points (Hensman et al., 2017; Panos et al., 2018), and decoupled approximation with two different sets of inducing points (Cheng & Boots, 2017; Salimbeni et al., 2018). Burt et al. (2019) provide theoretical analysis to show that a relatively small $M$ is sufficient to produce a reliable variational approximation when the input dimension is low. ",
74
+ "bbox": [
75
+ 173,
76
+ 652,
77
+ 825,
78
+ 805
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "While inducing-point methods capture global correlations among data points through inducing points, inference methods based on local neighbors focus more on correlation structures at local scales. These methods consider only local-range dependencies to save computation because localrange correlations are often much stronger than distant ones. Nguyen-Tuong et al. (2009); Park & Apley (2018) partition the input space into subregions, fit local models over subregions and then stitch local models into one. Other works examine neighbors of each data point directly. Gramacy & Apley (2015) investigate the properties of GP predictive equation and construct a local predictive approximator. Covariance tapering (Furrer et al., 2006; Kaufman et al., 2008) gains computational efficiency by constructing a sparse correlation matrix with zero correlations between distant data points. Methods based on Vecchia’s approximation (Vecchia, 1988; Datta et al., 2016; Liu & Liu, 2019; Finley et al., 2019) decompose the joint probability of data points into conditionals according to a data ordering and then neglect far data points that are conditioned on. ",
85
+ "bbox": [
86
+ 174,
87
+ 813,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 159
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Recently, Liu & Liu (2019) propose the AIGP method, which extends the idea of local inference to GP models with non-Gaussian likelihoods. They use directed graphical models to approximate both the prior and the posterior. With this construction, the inference task decomposes into local inference subtasks, then they introduce amortized inference and use inference networks to identify solutions to these subtasks (Kingma & Welling, 2013; Dai et al., 2015; Miao et al., 2016). Amortization reduces the number of optimization parameters and greatly speeds up the inference procedure. However, this method has two drawbacks. First, the inference at a data point considers a few of its nearest neighbors but not all of them; therefore, it may lose some important correlations. Second, it depends on a data ordering. A bad ordering often deteriorates the performance, but it is hard to guard against such a bad situation. There are no easy fixes of the two issues, because all these designs in AIGP serve the purpose of decomposition. ",
107
+ "bbox": [
108
+ 174,
109
+ 166,
110
+ 825,
111
+ 319
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this work, we propose a new GP inference method, Localized and Amortized Inference based on Nearest neighbors (LAIN). LAIN considers $K$ nearest neighbors for the inference at each data point. Particularly, LAIN uses a variational distribution whose covariance is parameterized by a sparse decomposition. The decomposition focuses on the correlations between every data point and its $K$ nearest neighbors 1. LAIN also eliminates the need for a data ordering. These nice properties come after several technical innovations. First, the new distribution does not admit a decomposable entropy calculation. We overcome this difficulty by using a decomposable lower bound of the entropy (Ranganath et al., 2016; Louizos & Welling, 2017). Second, to decompose the logarithm of the prior, AIGP and previous methods use a directed graphical model as an approximation of the prior. We follow this idea, but we consider all possible orderings of data points and collapse them to local combinations, making the computation manageable. With these techniques, LAIN still decomposes the inference task into subtasks, so amortized inference can apply. It is worthing noting that subtasks in LAIN are generated from the same mechanism while those in AIGP are not. We argue that subtasks sharing the same “distribution” are more appropriate for amortization. ",
118
+ "bbox": [
119
+ 174,
120
+ 325,
121
+ 825,
122
+ 521
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Our empirical evaluations show that the LAIN method outperforms baseline methods including AIGP in several learning tasks. Our investigation also indicates that LAIN can achieve decent performance even only a few neighbors are considered. ",
129
+ "bbox": [
130
+ 176,
131
+ 527,
132
+ 821,
133
+ 570
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 BACKGROUND ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 590,
144
+ 326,
145
+ 607
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Gaussian Processes. Suppose we have a dataset containing a feature matrix $\\mathbf { X } = ( \\mathbf { x } _ { i } ) _ { i = 1 } ^ { N }$ and observations $\\mathbf { y } = \\mathbf { \\Psi } ( y _ { i } ) _ { i = 1 } ^ { N }$ . We assume there is a latent function $f$ that generates $y _ { i }$ from $\\mathbf { x } _ { i }$ for each $i$ . Particularly, each $y _ { i }$ is generated by a likelihood model $p ( y _ { i } | f _ { i } )$ with $f _ { i } = f ( \\mathbf { x } _ { i } )$ . Denote $\\mathbf { f } = ( f _ { i } ) _ { i = 1 } ^ { N }$ , then $\\begin{array} { r } { p ( \\mathbf { y } | \\mathbf { f } ) = \\prod _ { i = 1 } ^ { N } p ( y _ { i } | f _ { i } ) } \\end{array}$ . The likelihood $p ( y _ { i } | f _ { i } )$ can be very general – here we only assume that $\\log p ( y _ { i } | f _ { i } )$ is differentiable with respect to $f _ { i }$ . This mild assumption allows a wide range of data distributions. For example, if $y _ { i }$ is binary, $p ( y _ { i } | f _ { i } )$ is a Bernoulli distribution with $f _ { i }$ as the logit. ",
152
+ "bbox": [
153
+ 173,
154
+ 622,
155
+ 825,
156
+ 724
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "We put a GP prior with a mean function $\\nu ( \\cdot )$ and a kernel function $\\kappa ( \\cdot , \\cdot )$ over the latent function $f$ . The kernel function encodes the prior knowledge of the smoothness of $f$ . One commonly used kernel function is the Radial Basis Function (RBF) kernel, $\\kappa ( \\mathbf { x } _ { i } , \\mathbf { x } _ { j } ) = r ^ { 2 } \\exp ( - 0 . 5 \\| \\mathbf { x } _ { i } - \\mathbf { x } _ { j } \\| _ { 2 } ^ { 2 } / \\sigma ^ { 2 } )$ , with $r$ and $\\sigma$ as parameters. With this prior, function values in f follow a multivariate Gaussian, f $\\sim$ $\\mathcal { N } ( { \\boldsymbol \\nu } , { \\Sigma } )$ , with the mean ${ \\pmb { \\nu } } = ( \\nu ( x _ { i } ) ) _ { i = 1 } ^ { \\mathbf { \\hat { N } } }$ and the covariance matrix $\\pmb { \\Sigma }$ with $\\Sigma _ { i , j } = \\kappa ( \\mathbf { x } _ { i } , \\mathbf { x } _ { j } ) \\ \\forall i , j$ . ",
163
+ "bbox": [
164
+ 174,
165
+ 731,
166
+ 825,
167
+ 803
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "GP inference concerns the calculation of the posterior $p ( \\mathbf { f } | \\mathbf { y } )$ (Matthews et al., 2016), from which we can infer the function value $f _ { \\star }$ for any new input $\\mathbf { x } _ { \\star }$ with integral $\\begin{array} { r } { \\int _ { \\mathbf { f } } p ( f _ { \\star } | \\mathbf { f } ) p ( \\mathbf { f } | \\mathbf { y } ) \\mathrm { d } \\mathbf { f } } \\end{array}$ . The posterior $p ( \\mathbf { f } | \\mathbf { y } )$ is generally not tractable, so we appeal to approximate inference. ",
174
+ "bbox": [
175
+ 174,
176
+ 806,
177
+ 825,
178
+ 852
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Variational Inference for GP. Variational inference approximates the posterior $p ( \\mathbf { f } | \\mathbf { y } )$ with a variational distribution $q ( \\mathbf { f } )$ , which is defined as a multivariate Gaussian distribution, $q ( \\mathbf { f } ) \\sim \\mathcal { N } ( \\mu , \\mathbf { V } )$ ",
185
+ "bbox": [
186
+ 174,
187
+ 857,
188
+ 820,
189
+ 887
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/14ddfde5436b3c8fabab96a6fd00f543492efb6a505615591341ebaa4874b1ef.jpg",
196
+ "image_caption": [
197
+ "Figure 1: The structure of the variational distribution. The left box shows the amortization, which fits $\\mu _ { i }$ -s and $R _ { i j }$ -s from their related prior kernel and observations. The right part shows the generation process of $f _ { i }$ -s. "
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 205,
202
+ 104,
203
+ 777,
204
+ 227
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The inference is carried out by maximizing the Evidence Lower BOund (ELBO) with respect to $q ( \\mathbf { f } )$ (Blei et al., 2017). ",
211
+ "bbox": [
212
+ 173,
213
+ 291,
214
+ 823,
215
+ 320
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "equation",
221
+ "img_path": "images/a62a0650906b932165f829056b1e4345d1d06c80d7d71c79450eaa71942f7be1.jpg",
222
+ "text": "$$\n\\log p ( \\mathbf { y } | \\mathbf { X } ) \\geq \\operatorname* { m a x } _ { q ( \\mathbf { f } ) } \\underbrace { { \\mathbb { E } } _ { q } \\left[ \\log p ( \\mathbf { y } | \\mathbf { f } ) \\right] } _ { L _ { e l l } } + \\underbrace { { \\mathbb { E } } _ { q } \\left[ \\log p ( \\mathbf { f } ) \\right] } _ { L _ { c r o s s } } \\underbrace { - { \\mathbb { E } } _ { q } \\left[ \\log q ( \\mathbf { f } ) \\right] } _ { L _ { e n t } }\n$$",
223
+ "text_format": "latex",
224
+ "bbox": [
225
+ 282,
226
+ 327,
227
+ 715,
228
+ 364
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Here we name the three terms in the ELBO for easy reference later. Typically the ELBO is maximized by gradient-based optimization, preferably stochastic gradient optimization when $N$ is large. Direct optimization of the ELBO is challenging, since the kernel matrix $\\pmb { \\Sigma }$ and the variational covariance $\\mathbf { V }$ are both large and have size $N \\times N$ . ",
235
+ "bbox": [
236
+ 174,
237
+ 369,
238
+ 825,
239
+ 426
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Inducing-point methods define $\\begin{array} { r } { q ( \\mathbf { f } ) ~ = ~ \\int _ { \\mathbf { f } _ { I } } q ( \\mathbf { f } _ { I } ) p ( \\mathbf { f } | \\mathbf { f } _ { I } ) ~ \\mathrm { d } \\mathbf { f } _ { I } } \\end{array}$ , where $q ( \\mathbf { f } _ { I } )$ is the distribution over inducing points $I$ , and $p ( \\mathbf { f } | \\mathbf { f } _ { I } )$ is derived from the prior. The computation is reduced mainly because only the small distribution $q ( \\mathbf { f } _ { I } )$ is optimized, while the conditional $p ( \\mathbf { f } | \\mathbf { f } _ { I } )$ is fixed when the prior is given. ",
246
+ "bbox": [
247
+ 174,
248
+ 431,
249
+ 825,
250
+ 492
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "AIGP parameterizes $\\mathbf { V }$ by a Cholesky decomposition, $\\mathbf { V } = \\mathbf { L L } ^ { \\top }$ . Here $\\mathbf { L }$ is a sparse lower triangular matrix, and each row of $\\mathbf { L }$ has at most $K$ non-zero entries. AIGP uses a triangular $\\mathbf { L }$ for easy entropy computation. It also approximates $\\log p ( \\mathbf { f } )$ with a directed graphical model. Both the lower triangular matrix $\\mathbf { L }$ and the directed graph require an ordering of data points. ",
257
+ "bbox": [
258
+ 173,
259
+ 497,
260
+ 825,
261
+ 555
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "3 METHOD ",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 174,
271
+ 574,
272
+ 282,
273
+ 590
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "3.1 THE VARIATIONAL DISTRIBUTION ",
280
+ "text_level": 1,
281
+ "bbox": [
282
+ 176,
283
+ 607,
284
+ 447,
285
+ 621
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "Following previous works, we also define the variational distribution $q ( \\mathbf { f } )$ to be a multivariate Gaussian $\\mathcal { N } ( \\mu , \\mathbf { V } )$ . We parameterize $\\mathbf { V } = \\mathbf { R } \\mathbf { R } ^ { \\top } + \\delta ^ { 2 } \\mathbf { I }$ with $\\mathbf { R }$ being a sparse matrix and $\\delta$ being a small constant. Note that we do not require $\\mathbf { R }$ to be triangular. The sparse pattern of $\\mathbf { R }$ is decided by the nearest neighbors: $R _ { i j } \\neq 0$ only when $j \\in n ( i )$ . Here $n ( i )$ is the neighbor set containing data points that have the largest covariance with $i$ in the prior (by definition $n ( i )$ includes $i$ ). In this work, we fix the size of $n ( i )$ to be $K$ , though our derivation works for varied sizes of $n ( i )$ . The row $\\mathbf { R } _ { i }$ can be viewed as a representation of $f _ { i }$ in the variational distribution: $\\mathbf { R } _ { i }$ informs $f _ { i }$ ’s correlation with other function values, just like a word embedding informs its relation with other words (Mikolov et al., 2013). ",
292
+ "bbox": [
293
+ 173,
294
+ 632,
295
+ 825,
296
+ 758
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "Efficient sampling from the marginal is critical for the decomposition of the ELBO later. Owing to the sparse decomposition of the covariance matrix, we can cheaply draw marginal samples for an $f _ { i }$ from $q ( \\mathbf { f } )$ with a linear transformation of white noise. The sampling scheme is shown in (2) and pictured in the right part of Figure 1. ",
303
+ "bbox": [
304
+ 173,
305
+ 765,
306
+ 825,
307
+ 821
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "equation",
313
+ "img_path": "images/633cce3f1de09ac24bab3053dbff802118e36ae300edc0ea9acb4a469d309b85.jpg",
314
+ "text": "$$\nf _ { i } = \\mu _ { i } + { \\bf R } _ { i } \\epsilon + \\delta \\xi = \\mu _ { i } + { \\bf R } _ { i , n ( i ) } \\epsilon _ { n ( i ) } + \\delta \\xi , \\epsilon \\sim \\mathcal { N } ( { \\bf 0 , I } ) , \\xi \\sim \\mathcal { N } ( { \\bf 0 , 1 } ) .\n$$",
315
+ "text_format": "latex",
316
+ "bbox": [
317
+ 241,
318
+ 828,
319
+ 754,
320
+ 847
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "The constructed distribution $q ( \\mathbf { f } )$ well approximates the strong correlations in the prior. From (2), $f _ { i }$ and $f _ { j }$ correlate in $q ( \\mathbf { f } )$ by sharing noise entries in $n ( i ) \\cap n ( j )$ when the intersection is not empty. In this case, either $f _ { i }$ neighbors $f _ { j }$ , or $f _ { j }$ neighbors $f _ { i }$ , or $f _ { i } , f _ { j }$ share common neighbors. When the neighbor sets are large enough, most strong correlations will be approximated by some non-zero entries in $\\mathbf { V }$ . ",
327
+ "bbox": [
328
+ 174,
329
+ 853,
330
+ 823,
331
+ 924
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3.2 OPTIMIZATION OF THE ELBO",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 176,
341
+ 103,
342
+ 423,
343
+ 117
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "We optimize the ELBO in (1) to find a good $q ( \\mathbf { f } )$ to approximate the GP posterior. To apply stochastic optimization, we will decompose the three terms in the ELBO. We mainly consider the decomposition of $L _ { c r o s s }$ and $L _ { e n t }$ , as the decomposition of $L _ { e l l }$ is easy. ",
350
+ "bbox": [
351
+ 176,
352
+ 128,
353
+ 821,
354
+ 172
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "We first decompose the cross entropy $L _ { c r o s s }$ . By convention, the GP prior has a zero mean. Though there is a closed-form calculation of $L _ { c r o s s }$ with both $q ( \\mathbf { f } )$ and $p ( \\mathbf { f } )$ being multivariate Gaussian, it involves expensive calculations of $\\operatorname* { d e t } ( \\pmb { \\Sigma } )$ and $\\Sigma ^ { - 1 }$ . Previous works approximate the prior with Vecchia’s method for easy decomposition and good approximation (Vecchia, 1988; Stein et al., 2004; Datta et al., 2016; Liu & Liu, 2019; Finley et al., 2019). The idea is to build a directed graphical model and approximate $\\begin{array} { r } { p ( \\mathbf { f } ) \\approx \\prod _ { i = 1 } ^ { N } p ( f _ { i } | f _ { \\alpha ( i ) } ) } \\end{array}$ with $\\alpha ( i )$ being a small parent set of $i$ . In the original work, Vecchia (1988) first set an order to data points and then choose $\\alpha ( i )$ as the $K$ nearest parents of $i$ . But it is not easy to guarantee a good ordering of data points (Banerjee et al., 2014; Guinness, 2018). Here we consider all possible orderings and take the average of approximations to address the data ordering concern. ",
361
+ "bbox": [
362
+ 173,
363
+ 178,
364
+ 825,
365
+ 321
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "stimate for eac $L _ { c r o s s }$ as follows. First, we randomly saen we approximate the log-prior by $n ^ { \\prime } ( i ) \\subset n ( i )$ with , with $i \\not \\in$ $n ^ { \\prime } ( i )$ $i$ $\\begin{array} { r } { \\log p ( \\mathbf { f } ) \\approx \\sum _ { i = 1 } ^ { N } \\log p ( f _ { i } | f _ { n ^ { \\prime } ( i ) } ) } \\end{array}$ conditional distribution $p ( f _ { i } | f _ { n ^ { \\prime } ( i ) } )$ derived from the joint Gaussian $p ( f _ { i } , f _ { n ^ { \\prime } ( i ) } )$ in the prior. Then $L _ { c r o s s }$ is estimated by a random batch of terms. The complete calculation is given as ",
372
+ "bbox": [
373
+ 173,
374
+ 327,
375
+ 825,
376
+ 388
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/b7f718c4176380b8e148c8b138e9d6dcb801bd415b82a2163b1b6dac9764ec5f.jpg",
383
+ "text": "$$\nL _ { c r o s s } \\approx \\tilde { L } _ { c r o s s } = \\frac { N } { | S | } \\sum _ { i \\in S } \\mathbb { E } _ { q ( f _ { i } , f _ { n ^ { \\prime } ( i ) } ) } \\Big [ \\log p ( f _ { i } | f _ { n ^ { \\prime } ( i ) } ) \\Big ] , \\mathrm { ~ r a n d o m ~ s e t ~ } n ^ { \\prime } ( i ) \\subset n ( i ) .\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 220,
387
+ 390,
388
+ 777,
389
+ 428
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Here $S$ is a random batch of data points. ",
396
+ "bbox": [
397
+ 174,
398
+ 429,
399
+ 439,
400
+ 444
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Now we justify that this is an average over all data orderings. Suppose there is a data order $\\pi ( \\cdot )$ , such that we can define a directed graphical model over $p ( \\mathbf { f } )$ by assigning every $i$ a parent set $n _ { \\pi } ^ { \\prime } ( i ) = \\{ j : j \\in n ( i ) , \\pi ( j ) < \\pi ( i ) \\}$ . Denote $\\Pi$ as all permutations of $N$ data points, with each permutation inducing a graphical model. The average of the log densities of all graphical models can be collapsed to the average computed from local neighborhoods. Denote $\\Pi _ { n ( i ) }$ as permutations of indices in the set $n ( i )$ , then we have ",
407
+ "bbox": [
408
+ 173,
409
+ 450,
410
+ 825,
411
+ 536
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "equation",
417
+ "img_path": "images/c8810f96867d5fbb5d1d54ade9bc672e4e76d94966f382403f266db0085137ab.jpg",
418
+ "text": "$$\n\\frac { 1 } { N ! } \\sum _ { \\pi \\in \\Pi } \\sum _ { i = 1 } ^ { N } \\mathbb { E } _ { q ( f _ { i } , f _ { n _ { \\pi } ^ { \\prime } ( i ) } ) } \\Big [ \\log p ( f _ { i } | f _ { n _ { \\pi } ^ { \\prime } ( i ) } ) \\Big ] = \\sum _ { i = 1 } ^ { N } \\frac { 1 } { K ! } \\sum _ { \\pi \\in \\Pi _ { n ( i ) } } \\mathbb { E } _ { q ( f _ { i } , f _ { n _ { \\pi } ^ { \\prime } ( i ) } ) } \\Big [ \\log p ( f _ { i } | f _ { n _ { \\pi } ^ { \\prime } ( i ) } ) \\Big ] .\n$$",
419
+ "text_format": "latex",
420
+ "bbox": [
421
+ 183,
422
+ 537,
423
+ 795,
424
+ 584
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Here we only need to consider permutations of data points within $n ( i )$ for each $i$ . Then we obtain (3) by estimating the inner summation by a single random permutation of $n ( i )$ and the outer summation by a random batch $S$ . ",
431
+ "bbox": [
432
+ 174,
433
+ 585,
434
+ 823,
435
+ 628
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "We then decompose the entropy $L _ { e n t }$ . The entropy of $q ( \\mathbf { f } )$ requires the expensive computation of $\\operatorname* { d e t } ( \\mathbf { V } )$ . To circumvent this difficulty, we find a decomposable lower bound of the entropy by using an auxiliary distribution (Ranganath et al., 2016; Louizos $\\&$ Welling, 2017). Note that we always prefer a lower bound of the objective in this maximization problem. With an arbitrary distribution $r ( \\epsilon | \\mathbf { f } )$ , a lower bound of $L _ { e n t }$ is ",
442
+ "bbox": [
443
+ 173,
444
+ 635,
445
+ 825,
446
+ 705
447
+ ],
448
+ "page_idx": 3
449
+ },
450
+ {
451
+ "type": "equation",
452
+ "img_path": "images/df9440cfcab546ee770274c1012946515afcd2f77bf42eb2505de9fe9558cd0a.jpg",
453
+ "text": "$$\nL _ { e n t } = - \\mathbb { E } _ { q } \\left[ \\log q ( \\mathbf { f } ) \\right] \\geq - \\mathbb { E } _ { q ( \\mathbf { f } , \\epsilon ) } \\left[ \\log q ( \\mathbf { f } | \\epsilon ) + \\log q ( \\epsilon ) - \\log r ( \\epsilon | \\mathbf { f } ) \\right] .\n$$",
454
+ "text_format": "latex",
455
+ "bbox": [
456
+ 264,
457
+ 708,
458
+ 733,
459
+ 726
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "The bound is tight when $r ( \\epsilon | \\mathbf { f } )$ matches $q ( \\epsilon | \\mathbf { f } )$ . In this work, we try to let $r ( \\epsilon | \\mathbf { f } )$ match $q ( \\epsilon | \\mathbf { f } )$ . Particularly, we set $\\begin{array} { r } { r ( \\epsilon | \\mathbf { f } ) = \\prod _ { i } q ( \\epsilon _ { i } | \\mathbf { f } _ { n ( i ) } ) } \\end{array}$ , where the conditional $q \\bigl ( \\epsilon _ { i } | \\mathbf { f } _ { n ( i ) } \\bigr )$ is derived from the joint Gaussian distribution $q \\bigl ( \\epsilon _ { i } , \\mathbf { f } _ { n ( i ) } \\bigr )$ . Then all terms in the lower bound in (5) are Gaussian loglikelihoods and are decomposable over data points. We can then reach the estimation of the entropy lower bound with a batch of data points. ",
466
+ "bbox": [
467
+ 173,
468
+ 727,
469
+ 826,
470
+ 799
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "equation",
476
+ "img_path": "images/57b662d893da90f880d178712ea205f405620a4d2a1428d5387f311f29f4da67.jpg",
477
+ "text": "$$\nL _ { e n t } \\geq \\tilde { L } _ { e n t } = - \\frac { 1 } { 2 } \\frac { N } { | S | } \\sum _ { i \\in S } \\log \\left( 1 - \\mathbf { R } _ { n ( i ) , i } ^ { \\top } \\left( \\mathbf { R } _ { n ( i ) , : } \\mathbf { R } _ { n ( i ) , : } ^ { \\top } \\right) ^ { - 1 } \\mathbf { R } _ { n ( i ) , i } \\right) + c o n s t .\n$$",
478
+ "text_format": "latex",
479
+ "bbox": [
480
+ 225,
481
+ 799,
482
+ 772,
483
+ 838
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "We finally decompose the likelihood $L _ { e l l }$ . The likelihood term $\\log p ( \\mathbf { y } | \\mathbf { f } )$ naturally decomposes because $y _ { i }$ -s are conditionally independent given $f _ { i }$ -s. ",
490
+ "bbox": [
491
+ 173,
492
+ 847,
493
+ 828,
494
+ 877
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "equation",
500
+ "img_path": "images/ccd5bf474f2a9d4cd415f610e5d28cd69597f1c5e3f03b5ac9231edad846a87e.jpg",
501
+ "text": "$$\nL _ { e l l } = \\sum _ { i = 1 } ^ { N } \\mathbb { E } _ { q ( f _ { i } ) } \\left[ \\log p ( y _ { i } | f _ { i } ) \\right] , \\quad \\tilde { L } _ { e l l } = \\frac { N } { | S | } \\sum _ { i \\in S } \\log p ( y _ { i } | \\hat { f } _ { i } ) .\n$$",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 292,
505
+ 877,
506
+ 705,
507
+ 921
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Here for each term $i$ in the summation, the expectation is estimated by a Monte Carlo sample $\\hat { f } _ { i }$ from $q ( f _ { i } )$ . The gradients of variational parameters are propagated through ${ \\hat { f } } _ { i }$ via reparameterization (Kingma & Welling, 2013). ",
514
+ "bbox": [
515
+ 174,
516
+ 103,
517
+ 825,
518
+ 148
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Finally, the ELBO has a decomposable approximation $\\tilde { L } _ { e l l } + \\tilde { L } _ { c r o s s } + \\tilde { L } _ { e n t }$ to enable efficient stochastic optimization. From the derivations above, we see the objective can be decomposed by data points. The computation for a data point only involves itself and its $K$ nearest neighbors. Therefore, each stochastic gradient calculation takes time only $O ( K ^ { 3 } )$ . There are $N ( K + \\bar { 1 } )$ parameters in $\\pmb { \\mu }$ and $\\mathbf { R }$ to optimize, so the optimization takes at least $O ( N )$ time. We further reduce the number of parameters by amortizing the cost through a shared inference model, taking advantage of the fact that the inference for each data point $i$ only needs its $K$ nearest neighbors. ",
525
+ "bbox": [
526
+ 173,
527
+ 155,
528
+ 825,
529
+ 255
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "3.3 AMORTIZED INFERENCE ",
536
+ "text_level": 1,
537
+ "bbox": [
538
+ 174,
539
+ 273,
540
+ 383,
541
+ 287
542
+ ],
543
+ "page_idx": 4
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "Following AIGP, we also apply amortized inference to GP inference. Particularly, we train an inference network to identify variational parameters ${ \\bf \\nabla } _ { \\mu _ { i } }$ and $\\mathbf { R } _ { i , n ( i ) } )$ for each data point $i$ . Since node correlations at a neighborhood can be easily treated as a weighted graph, we use Graph Convolutional Networks (GCNs) (Kipf & Welling, 2017) as our inference network. ",
548
+ "bbox": [
549
+ 173,
550
+ 299,
551
+ 825,
552
+ 357
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "A GCN takes an adjacency matrix $\\mathbf { A } \\in \\mathbb { R } ^ { k \\times k }$ of graph and the node features $\\mathbf { H } ^ { ( 0 ) } \\in \\mathbb { R } ^ { k \\times d _ { 0 } }$ as the input and then makes predictions for all graph nodes. Let $\\bar { \\mathbf A }$ be the normalized adjacency matrix, $\\bar { \\mathbf { A } } = \\mathbf { D } ^ { - \\frac { 1 } { 2 } } \\mathbf { A } \\mathbf { D } ^ { - \\frac { 1 } { 2 } }$ , with $\\mathbf { D }$ being the diagonal degree matrix. A GCN layer $\\ell$ with the input $\\mathbf { H } ^ { ( \\ell - 1 ) }$ is defined by $\\mathbf { H } ^ { ( \\ell ) } = g _ { \\ell } ( \\mathbf { H } ^ { ( \\ell - 1 ) } , \\mathbf { A } ) : = \\overset { - } { \\sigma } \\big ( \\bar { \\mathbf { A } } \\mathbf { H } ^ { ( \\bar { \\ell } - 1 ) } \\mathbf { W } ^ { ( \\ell ) } \\big )$ . Here $\\mathbf { W } ^ { ( l ) } \\in \\mathbb { R } ^ { d _ { \\ell - 1 } \\times d _ { \\ell } }$ is the weight matrix of the layer $\\ell$ . $\\sigma ( \\cdot )$ is the activation function. An $L$ -layer GCN computes its output by $\\mathbf { H } = g c n ( \\mathbf { H } ^ { 0 } , \\mathbf { A } ) : = g _ { L } ( \\mathbf { \\sigma } _ { \\cdot } \\dots g _ { 1 } ( \\mathbf { H } ^ { 0 } , \\mathbf { A } ) \\dots , \\mathbf { A } )$ . We use two GCNs for the inference task, $g c n _ { 1 }$ for the calculation of $\\mu _ { i }$ and $g c n _ { 2 }$ for $\\mathbf { R } _ { i , n ( i ) }$ : ",
559
+ "bbox": [
560
+ 173,
561
+ 363,
562
+ 825,
563
+ 469
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "equation",
569
+ "img_path": "images/3e0d11298448926b7122bd381a5aff55a4751b266150335db43a221501d54bb1.jpg",
570
+ "text": "$$\n\\begin{array} { r } { \\mu _ { i } = { \\bf a } ^ { \\top } g c n _ { 1 } \\left( \\left[ { \\bf y } _ { n \\left( i \\right) } , { \\bf e } _ { i } \\right] , { \\bf \\Sigma } _ { n \\left( i \\right) , n \\left( i \\right) } \\right) , { \\bf R } _ { i , n \\left( i \\right) } = g c n _ { 2 } \\left( \\left[ { \\bf y } _ { n \\left( i \\right) } , { \\bf e } _ { i } \\right] , { \\bf \\Sigma } _ { { n \\left( i \\right) } , n \\left( i \\right) } \\right) . } \\end{array}\n$$",
571
+ "text_format": "latex",
572
+ "bbox": [
573
+ 240,
574
+ 477,
575
+ 758,
576
+ 497
577
+ ],
578
+ "page_idx": 4
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "Here we use $\\Sigma _ { n ( i ) , n ( i ) }$ as the adjacency matrix and stack the observation $\\mathbf { y } _ { n ( i ) }$ and the one-hot vector $\\mathbf { e } _ { i }$ as the input feature. The vector $\\mathbf { e } _ { i }$ indicates the element $i$ for which the inference is running for. We choose the activation $\\sigma ( \\cdot )$ to be ReLU for intermediate layers and identity for the last layer. The last layer of each GCN has size 1 to output a $K \\times 1$ vector. a is an averaging vector with all $K$ elements as $\\textstyle { \\frac { 1 } { K } }$ . The dashed box in Figure 1 shows the amortization. ",
583
+ "bbox": [
584
+ 173,
585
+ 503,
586
+ 823,
587
+ 575
588
+ ],
589
+ "page_idx": 4
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "LAIN defines an inference subtask on a data point and its nearest neighbors, while AIGP defines a subtask on a data point and its parents. Due to this difference, LAIN has two advantages. First, the inference network of LAIN uses the observations from all the $K$ nearest neighbors, while the inference network of AIGP uses observations from parents only but not children. Second, inference subtasks of LAIN are generated with the same mechanism because the nearest-neighbor relationship is homogeneous across all data points. However, the parent-child relationship in AIGP depends on the ordering of data points (e.g. the first one in the order does not have parents). As a learning model, the inference network prefers subtasks from the same “distribution”. ",
594
+ "bbox": [
595
+ 173,
596
+ 580,
597
+ 825,
598
+ 693
599
+ ],
600
+ "page_idx": 4
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "The computational cost of GCN is $O ( K ^ { 2 } )$ by treating the network size as constant. The complexity of one gradient calculation is $O ( K ^ { 3 } )$ . The optimization procedure converges fast since it only optimizes a constant number of variational parameters. In practice, we often observe that the optimization procedure converges in less than one epoch, which is not possible for methods without amortization. Finding nearest neighbors is the only step with running time bounds to the data size, but it only needs one run and is often fast on medium to large data sizes. If the data has a very large size, we can use k-d trees for low-dimensional data and approximate algorithms (Arya et al., 1998; Datar et al., 2004) for high dimensional data. ",
605
+ "bbox": [
606
+ 173,
607
+ 698,
608
+ 825,
609
+ 811
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "3.4 PREDICTION ",
616
+ "text_level": 1,
617
+ "bbox": [
618
+ 174,
619
+ 829,
620
+ 302,
621
+ 844
622
+ ],
623
+ "page_idx": 4
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "For a new data point $\\mathbf { x } _ { \\star }$ with its $K$ nearest neighbors $n ( \\star )$ in the prior, the predictive distribution is ",
628
+ "bbox": [
629
+ 174,
630
+ 856,
631
+ 821,
632
+ 872
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "equation",
638
+ "img_path": "images/24443d9005e78dcd3e1eb0494355f24f02ed5076e2b997721102527ee67b3d97.jpg",
639
+ "text": "$$\np ( y _ { \\star } | \\mathbf { x } _ { \\star } , \\mathbf { X } , \\mathbf { y } ) \\approx \\int _ { f _ { \\star } } p ( y _ { \\star } | f _ { \\star } ) q ( f _ { \\star } | \\mathbf { x } _ { \\star } , \\mathbf { X } _ { n ( \\star ) } , \\mathbf { y } _ { n ( \\star ) } ) \\mathrm { d } f _ { \\star } \\approx \\frac { 1 } { | F | } \\sum _ { \\widehat { f } _ { \\star } \\in F } p ( y _ { \\star } | \\widehat { f } _ { \\star } ) .\n$$",
640
+ "text_format": "latex",
641
+ "bbox": [
642
+ 238,
643
+ 880,
644
+ 759,
645
+ 922
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "image",
651
+ "img_path": "images/d66507f0b5b95720272e2d3439961525cb73c16e79e9c1099008221c027b8159.jpg",
652
+ "image_caption": [
653
+ "Figure 2: The first two plots compare predictive distributions of full GP and LAIN with $K = 1 0$ . The right three plots show how SVGP, AIGP, and LAIN perform with a very small number of inducing points/neighbors. Data points in blue circles are not well fitted. "
654
+ ],
655
+ "image_footnote": [],
656
+ "bbox": [
657
+ 184,
658
+ 109,
659
+ 815,
660
+ 181
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Here $\\begin{array} { r } { q ( f _ { \\star } | \\mathbf { x } _ { \\star } , \\mathbf { X } _ { n ( \\star ) } , \\mathbf { y } _ { n ( \\star ) } ) = \\int _ { \\mathbf { f } _ { n ( \\star ) } } p ( f _ { \\star } | \\mathbf { f } _ { n ( \\star ) } ) q ( \\mathbf { f } _ { n ( \\star ) } ) \\mathrm { d } \\mathbf { f } _ { n ( \\star ) } } \\end{array}$ is a Gaussian with parameters, ",
667
+ "bbox": [
668
+ 169,
669
+ 253,
670
+ 789,
671
+ 275
672
+ ],
673
+ "page_idx": 5
674
+ },
675
+ {
676
+ "type": "equation",
677
+ "img_path": "images/34d6dbae929f2d80e9ddab52afea71fd6a0d6b768e7e8c590021052ac9acbff8.jpg",
678
+ "text": "$$\n\\begin{array} { r } { \\mu _ { \\star } = \\mathbf { b } _ { \\star } \\mu _ { n ( \\star ) } , \\qquad \\sigma _ { \\star } ^ { 2 } = \\Sigma _ { \\star , \\star } - \\Sigma _ { \\star , n ( \\star ) } \\mathbf { b } _ { \\star } ^ { \\top } + \\mathbf { b } _ { \\star } ( \\mathbf { R } _ { n ( \\star ) } \\mathbf { R } _ { n ( \\star ) } ^ { T } ) \\mathbf { b } _ { \\star } ^ { \\top } , } \\end{array}\n$$",
679
+ "text_format": "latex",
680
+ "bbox": [
681
+ 271,
682
+ 281,
683
+ 725,
684
+ 304
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "with $\\mathbf { b _ { \\star } } = \\pmb { \\Sigma } _ { \\star , n ( \\star ) } \\pmb { \\Sigma } _ { n ( \\star ) , n ( \\star ) } ^ { - 1 }$ . $F$ is a set of Monte Carlo samples from $q ( f _ { \\star } | \\mathbf { x } _ { \\star } , \\mathbf { X } _ { n ( \\star ) } , \\mathbf { y } _ { n ( \\star ) } )$ . The ",
691
+ "bbox": [
692
+ 173,
693
+ 313,
694
+ 826,
695
+ 344
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "4 EXPERIMENT ",
702
+ "text_level": 1,
703
+ "bbox": [
704
+ 176,
705
+ 366,
706
+ 316,
707
+ 382
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "We compare our method with five state-of-the-art methods: SVGP (Hensman et al., 2015), SAVIGP (Dezfouli & Bonilla, 2015), DGP (Cheng & Boots, 2017), VFF (Hensman et al., 2017), and AIGP (Liu & Liu, 2019). The first three methods are based on inducing points, VFF uses inter-domain inducing points, and AIGP uses local neighbors. Through all experiments, we use RBF as the default kernel, except for VFF we use Ma´tern- $\\frac { 3 } { 2 }$ kernel (the code does not provide RBF kernel). We use the implementation of SVGP from GPFlow (Matthews et al., 2017), the implementation of DGP from Faust (2018), and implementations of all other algorithms from their authors. ",
714
+ "bbox": [
715
+ 174,
716
+ 397,
717
+ 825,
718
+ 496
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "For SVGP, SAVIGP, and VFF, we vary the number of inducing points, $M \\in \\{ 2 0 0 , 1 0 0 0 , 2 0 0 0 \\}$ , to check their performances. DGP has separate inducing points for mean approximation and those for variance approximation. We use 256 inducing points for variance approximation and vary the number of inducing points for mean approximation from 200 to 2000. We vary the number of neighbors, $K \\in \\{ 1 0 , 2 0 , 4 0 \\}$ , for AIGP and LAIN. GCNs used in these two methods have three hidden layers with dimensions [20, 10, 1]. We randomly split each dataset into training $( 7 5 \\% )$ and testing $( 2 5 \\% )$ and report both the predictive performance on the test set and the inference running time. To save the space, we report results from two settings for each competing method: one setting is $M = 2 0 0$ or $K = 1 0$ , with which all methods have their fastest speed (marked by $\\pmb { \\mathscr { z } }$ ), and another setting giving the best predictive performance (marked by $\\checkmark$ ). ",
725
+ "bbox": [
726
+ 173,
727
+ 502,
728
+ 825,
729
+ 642
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "4.1 A TOY EXAMPLE ",
736
+ "text_level": 1,
737
+ "bbox": [
738
+ 176,
739
+ 660,
740
+ 331,
741
+ 674
742
+ ],
743
+ "page_idx": 5
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "In this section, we test different methods on a one-dimensional toy example studied in (Snelson & Ghahramani, 2006). The dataset contains 200 data points, shown as black dots in figure 2. We assume Gaussian likelihood in this experiment and run exact inference as the baseline. A smaller GCN (hidden dimensions [10, 5, 1]) is used in this task. ",
748
+ "bbox": [
749
+ 174,
750
+ 686,
751
+ 825,
752
+ 742
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "The predictive mean and variance from the exact inference and LAIN with $K = 1 0$ are shown in the first two plots of Figure 2. The result of LAIN is very similar to that of exact inference, except that the mean curve of LAIN is less smooth, which does not really hurt the predictive performance. ",
759
+ "bbox": [
760
+ 174,
761
+ 750,
762
+ 825,
763
+ 791
764
+ ],
765
+ "page_idx": 5
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "We test different methods with very small $M$ and $K$ and observe how they behave. We are likely to face this situation when we work on large datasets in high-dimensional spaces. The last three plots of Figure 2 exhibit predictive distributions of SVGP with $M = 2$ inducing points, AIGP with $K = 2$ parents, and LAIN with $K = 2$ nearest neighbors. When there are not enough inducing points, SVGP over-smooths the prediction and performs poorly for a good fraction of data points. AIGP does not have a good predictive mean either, because under a random ordering the directed graph constructed by AIGP cannot well capture neighboring relations. The predictive mean of LAIN does not deviate far from the ground-truth in the area with training instances, though the curve is rugged due to local variations. ",
770
+ "bbox": [
771
+ 173,
772
+ 797,
773
+ 825,
774
+ 924
775
+ ],
776
+ "page_idx": 5
777
+ },
778
+ {
779
+ "type": "table",
780
+ "img_path": "images/38fafe4668b852128c05867b2fac2d13b4f5017b77121d0dac6986a6f87605f6.jpg",
781
+ "table_caption": [
782
+ "Table 1: Comparison on the eBird dataset. "
783
+ ],
784
+ "table_footnote": [],
785
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=2004M=1000√</td><td rowspan=1 colspan=1>1.90±.031.88±.02</td><td rowspan=1 colspan=1>107s4.5ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=2004M=2000√</td><td rowspan=1 colspan=1>2.04±.031.99±.03</td><td rowspan=1 colspan=1>167s50ks</td></tr><tr><td rowspan=1 colspan=1>VFF</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.91±.021.91±.02</td><td rowspan=1 colspan=1>1.3ks13ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.82±.021.80±.02</td><td rowspan=1 colspan=1>96s213s</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 MK=20 √</td><td rowspan=1 colspan=1>1.79±.051.71±.05</td><td rowspan=1 colspan=1>45s125s</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>1.69±.031.65±.031.60±.02</td><td rowspan=1 colspan=1>55s384s1.3ks</td></tr></table>",
786
+ "bbox": [
787
+ 187,
788
+ 135,
789
+ 470,
790
+ 315
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "table",
796
+ "img_path": "images/fff338e9618ab7f14f700241ab71af426ba86a27dc8d477ad88b35175291d3cc.jpg",
797
+ "table_caption": [
798
+ "Table 2: Comparison on the precipitation dataset. "
799
+ ],
800
+ "table_footnote": [],
801
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.57±.031.28±.03</td><td rowspan=1 colspan=1>2.5ks42ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.70±.021.58±.02</td><td rowspan=1 colspan=1>2.8ks50ks</td></tr><tr><td rowspan=1 colspan=1>VFF</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>1.54±.031.53±.03</td><td rowspan=1 colspan=1>9.1ks32ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=200HM=2000</td><td rowspan=1 colspan=1>1.07±.051.00±.05</td><td rowspan=1 colspan=1>402s889s</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 4K=10 √</td><td rowspan=1 colspan=1>0.96±.030.96±.03</td><td rowspan=1 colspan=1>155s155s</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>0.74±.050.72±.050.69±.04</td><td rowspan=1 colspan=1>129s903s2.3ks</td></tr></table>",
802
+ "bbox": [
803
+ 527,
804
+ 135,
805
+ 810,
806
+ 315
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "image",
812
+ "img_path": "images/4e7a03685eb2a699e7d27c999ce631f8d156786ab9745e1016d46a92fbe32fdc.jpg",
813
+ "image_caption": [
814
+ "Figure 3: ELBO trajectories of LAIN with and without inference networks. "
815
+ ],
816
+ "image_footnote": [],
817
+ "bbox": [
818
+ 176,
819
+ 362,
820
+ 429,
821
+ 508
822
+ ],
823
+ "page_idx": 6
824
+ },
825
+ {
826
+ "type": "table",
827
+ "img_path": "images/b2f79cfcd0313c2826534c2146f77dbe4f915b522ad033f4f26a2793f28b8994.jpg",
828
+ "table_caption": [
829
+ "Table 3: Comparison on the MNIST dataset. "
830
+ ],
831
+ "table_footnote": [],
832
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Config</td><td rowspan=1 colspan=1>Pred NLL</td><td rowspan=1 colspan=1>Accuracy</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=1 colspan=1>SVGP</td><td rowspan=1 colspan=1>M=200王M=1000√</td><td rowspan=1 colspan=1>0.053±.0040.051±.004</td><td rowspan=1 colspan=1>98.498.5</td><td rowspan=1 colspan=1>623s23ks</td></tr><tr><td rowspan=1 colspan=1>SAVIGP</td><td rowspan=1 colspan=1>M=200HM=200√</td><td rowspan=1 colspan=1>0.339±.0080.339±.008</td><td rowspan=1 colspan=1>51.751.7</td><td rowspan=1 colspan=1>6.5ks6.5ks</td></tr><tr><td rowspan=1 colspan=1>DGP</td><td rowspan=1 colspan=1>M=2004M=2000</td><td rowspan=1 colspan=1>0.059±.0050.052±.005</td><td rowspan=1 colspan=1>98.198.3</td><td rowspan=1 colspan=1>292s2.1ks</td></tr><tr><td rowspan=1 colspan=1>AIGP</td><td rowspan=1 colspan=1>K=10 4K=40 √</td><td rowspan=1 colspan=1>0.293±.0020.215±.003</td><td rowspan=1 colspan=1>98.098.2</td><td rowspan=1 colspan=1>3.9ks24ks</td></tr><tr><td rowspan=1 colspan=1>LAIN</td><td rowspan=1 colspan=1>K=10K=20K=40</td><td rowspan=1 colspan=1>0.053±.0030.050±.0030.051±.003</td><td rowspan=1 colspan=1>98.999.099.1</td><td rowspan=1 colspan=1>128s632s2.9ks</td></tr><tr><td rowspan=1 colspan=1>KNN</td><td rowspan=1 colspan=1>K=9K=19K=39</td><td rowspan=1 colspan=1>N.A.N.A.N.A.</td><td rowspan=1 colspan=1>98.698.397.6</td><td rowspan=1 colspan=1>24s26s28s</td></tr></table>",
833
+ "bbox": [
834
+ 464,
835
+ 358,
836
+ 823,
837
+ 546
838
+ ],
839
+ "page_idx": 6
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "4.2 BIRD ABUNDANCE ESTIMATION ",
844
+ "text_level": 1,
845
+ "bbox": [
846
+ 176,
847
+ 587,
848
+ 433,
849
+ 601
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "In this experiment, we estimate the spatial abundance of a bird species (Savannah Sparrow) using eBird dataset (Munson et al., 2015). The dataset has 14,393 observations, each of which is a reported bird count at a GPS location. We model the observed counts with GPS locations as the input. We set the likelihood to be a Poisson distribution, with rate given by $\\lambda _ { i } = \\exp ( f _ { i } )$ . ",
856
+ "bbox": [
857
+ 174,
858
+ 617,
859
+ 825,
860
+ 674
861
+ ],
862
+ "page_idx": 6
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "We compare different inference methods in terms of Negative predictive Log-Likelihood (NLL, the smaller the better predictive performance). Table 1 shows the results. We can see that LAIN achieves the best predictive performance at $K = 4 0$ . Methods based on inducing points generally perform worse. In this dataset, observations have strong correlations in local areas, but inducing points are not efficient to capture the posterior at such a fine scale. In terms of running speed, LAIN is comparable to AIGP and DGP but faster than other methods. In our experiment, we have also tried to increase inducing points for DGP, but it does not improve its performance. ",
867
+ "bbox": [
868
+ 173,
869
+ 680,
870
+ 825,
871
+ 777
872
+ ],
873
+ "page_idx": 6
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "In this experiment, we also investigate whether inference networks work correctly. We run LAIN without inference networks and optimize $\\pmb { \\mu }$ and $\\mathbf { L }$ for the variational distribution directly. Then we compare LAIN models with and without inference networks by checking their optimization procedure. In this task, we fix hyperparameters, so the two methods solve a pure inference problem. Figure 3 is the trace plot of the negative ELBO versus training epochs. The figure shows the ELBO of the two LAIN models eventually converge to very similar values, though the ELBO without inference networks is slightly better after 50 epochs (likely due to the amortization gap). LAIN with inference networks significantly reduces the number of optimization epochs – the inference networks are well trained after only 0.01 epoch (about 100 iterations). In summary, the result indicates that inference networks can effectively identify the variational parameters using local information. ",
878
+ "bbox": [
879
+ 174,
880
+ 785,
881
+ 825,
882
+ 924
883
+ ],
884
+ "page_idx": 6
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "4.3 PRECIPITATION LEVEL ESTIMATION ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 176,
892
+ 104,
893
+ 460,
894
+ 117
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "In this task, we evaluate LAIN on a rainfall dataset. We process the precipitation dataset (Climate Data Online) and obtain the average precipitation level in May at 8,832 stations that are spatially distributed in the US. The GP inputs are GPS locations of these stations, and the observations are the average precipitation levels. We use the log-normal distribution as the likelihood, with its mean as function value $f$ from GP and variance as a hyperparameter learned from the data. ",
901
+ "bbox": [
902
+ 174,
903
+ 131,
904
+ 823,
905
+ 200
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Table 2 summaries the experimental results. LAIN has better predictive performance, and its running speed is comparable to or faster than other methods. ",
912
+ "bbox": [
913
+ 171,
914
+ 207,
915
+ 823,
916
+ 234
917
+ ],
918
+ "page_idx": 7
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "We also analyze the goodness of our prior approximation since we can compute the exact $L _ { c r o s s }$ on this dataset. We compute $L _ { c r o s s }$ with the optimized $q ( \\mathbf { f } )$ distribution as well as $\\tilde { L } _ { c r o s s }$ . The true value $L _ { c r o s s }$ and the approximation $\\tilde { L } _ { c r o s s }$ are: 5,465 versus 5,396 when $K \\ : = \\ : 1 0$ , 9,905 versus 8,490 when $K = 2 0$ , and 10,086 versus 9,009 when $K = 4 0$ . This result indicates that the approximation $\\tilde { L } _ { c r o s s }$ is relatively accurate. Furthermore, $\\tilde { L } _ { c r o s s }$ tends to be smaller than the true value and can be considered as a lower bound in such cases. ",
923
+ "bbox": [
924
+ 174,
925
+ 242,
926
+ 825,
927
+ 329
928
+ ],
929
+ "page_idx": 7
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "4.4 HAND-WRITTEN DIGIT CLASSIFICATION ",
934
+ "text_level": 1,
935
+ "bbox": [
936
+ 176,
937
+ 349,
938
+ 490,
939
+ 363
940
+ ],
941
+ "page_idx": 7
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "In this experiment, we explore a high-dimensional inference problem, GP classification of MNIST digits (LeCun & Cortes, 2010). We consider a binary classification on handwritten images of 5 and 8. To make performance values of different methods more differentiable, we randomly choose a subset of size 7,858 from the original dataset. Pixel values are normalized to [0,1] in the preprocessing step. In the results, we also report the accuracy obtained by different methods. ",
946
+ "bbox": [
947
+ 174,
948
+ 375,
949
+ 825,
950
+ 445
951
+ ],
952
+ "page_idx": 7
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "The results are shown in Table 3. We see that LAIN performs the best in terms of classification accuracy. Its predictive NLL and running speed also overperform competing methods, though not very significant. We also observe that AIGP makes less confident predictions than other methods, which accounts for its worse predictive NLL but high accuracy. We do not report results from VFF due to memory issues. ",
957
+ "bbox": [
958
+ 174,
959
+ 452,
960
+ 825,
961
+ 522
962
+ ],
963
+ "page_idx": 7
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "We also examine KNN in this experiment. From the results, we notice that a small number of neighbors are often sufficient for KNN and LAIN models to perform well. By checking the running time of KNN, we also see that the time of finding nearest neighbors is only a small fraction of the total inference time on this dataset. There are slight differences regarding the test accuracy between KNN and LAIN, presumably due to different weighting schemes: LAIN weights different nearest neighbors according to their correlations, while KNN treats all nearest neighbors uniformly. ",
968
+ "bbox": [
969
+ 174,
970
+ 529,
971
+ 825,
972
+ 613
973
+ ],
974
+ "page_idx": 7
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "5 CONCLUSION ",
979
+ "text_level": 1,
980
+ "bbox": [
981
+ 176,
982
+ 635,
983
+ 318,
984
+ 651
985
+ ],
986
+ "page_idx": 7
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "In this work, we propose a novel approach for GP inference. We construct a variational distribution that has a sparse decomposition on its covariance matrix. With this distribution, function value at a data point is inferred from its nearest neighbors, encouraging the inference efficiently focuses on approximating strong correlations posed by the prior. The proposed variational distribution is expressive to approximate the GP posterior and also provides a decent structure for efficient ELBO optimization. We further decompose the ELBO into homogeneous subtasks and therefore enable stochastic optimization. Finally, we devise inference networks to perform these subtasks and significantly reduce the number of variational parameters. Our proposed method performs well in terms of predictive performance and running speed on a series of benchmark tasks. ",
991
+ "bbox": [
992
+ 174,
993
+ 667,
994
+ 825,
995
+ 792
996
+ ],
997
+ "page_idx": 7
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "REFERENCES ",
1002
+ "text_level": 1,
1003
+ "bbox": [
1004
+ 176,
1005
+ 815,
1006
+ 285,
1007
+ 830
1008
+ ],
1009
+ "page_idx": 7
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Sunil Arya, David M Mount, Nathan S Netanyahu, Ruth Silverman, and Angela Y Wu. An optimal algorithm for approximate nearest neighbor searching fixed dimensions. Journal of the ACM (JACM), 45(6):891–923, 1998. ",
1014
+ "bbox": [
1015
+ 174,
1016
+ 840,
1017
+ 821,
1018
+ 882
1019
+ ],
1020
+ "page_idx": 7
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Sudipto Banerjee, Bradley P Carlin, and Alan E Gelfand. Hierarchical modeling and analysis for spatial data. Chapman and Hall/CRC, 2014. ",
1025
+ "bbox": [
1026
+ 173,
1027
+ 895,
1028
+ 821,
1029
+ 922
1030
+ ],
1031
+ "page_idx": 7
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "David M Blei, Alp Kucukelbir, and Jon D McAuliffe. Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518):859–877, 2017. ",
1036
+ "bbox": [
1037
+ 171,
1038
+ 103,
1039
+ 821,
1040
+ 132
1041
+ ],
1042
+ "page_idx": 8
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "David Burt, Carl Edward Rasmussen, and Mark Van Der Wilk. Rates of convergence for sparse variational Gaussian process regression. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 862–871, Long Beach, California, USA, 09–15 Jun 2019. PMLR. ",
1047
+ "bbox": [
1048
+ 173,
1049
+ 140,
1050
+ 825,
1051
+ 210
1052
+ ],
1053
+ "page_idx": 8
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Ching-An Cheng and Byron Boots. Variational inference for gaussian process models with linear complexity. In Advances in Neural Information Processing Systems, pp. 5190–5200, 2017. ",
1058
+ "bbox": [
1059
+ 173,
1060
+ 218,
1061
+ 823,
1062
+ 248
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Climate Data Online. https://www.ncdc.noaa.gov/cdo-web/datasets. ",
1069
+ "bbox": [
1070
+ 176,
1071
+ 256,
1072
+ 736,
1073
+ 271
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Zhenwen Dai, Andreas Damianou, Javier Gonzalez, and Neil Lawrence. Variational auto-encoded´ deep gaussian processes. arXiv preprint arXiv:1511.06455, 2015. ",
1080
+ "bbox": [
1081
+ 171,
1082
+ 279,
1083
+ 823,
1084
+ 309
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Mayur Datar, Nicole Immorlica, Piotr Indyk, and Vahab S Mirrokni. Locality-sensitive hashing scheme based on p-stable distributions. In Proceedings of the twentieth annual symposium on Computational geometry, pp. 253–262. ACM, 2004. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 315,
1094
+ 823,
1095
+ 359
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Abhirup Datta, Sudipto Banerjee, Andrew O Finley, and Alan E Gelfand. Hierarchical nearestneighbor gaussian process models for large geostatistical datasets. Journal of the American Statistical Association, 111(514):800–812, 2016. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 367,
1105
+ 823,
1106
+ 410
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Amir Dezfouli and Edwin V Bonilla. Scalable inference for gaussian process models with blackbox likelihoods. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1414–1422. Curran Associates, Inc., 2015. ",
1113
+ "bbox": [
1114
+ 173,
1115
+ 417,
1116
+ 825,
1117
+ 474
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Aleksandra Faust. Decoupled gaussian process (github implementation). https://github. com/google/decoupled_gaussian_process, 2018. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 483,
1127
+ 818,
1128
+ 512
1129
+ ],
1130
+ "page_idx": 8
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Andrew O Finley, Abhirup Datta, Bruce D Cook, Douglas C Morton, Hans E Andersen, and Sudipto Banerjee. Efficient algorithms for bayesian nearest neighbor gaussian processes. Journal of Computational and Graphical Statistics, pp. 1–14, 2019. ",
1135
+ "bbox": [
1136
+ 174,
1137
+ 520,
1138
+ 825,
1139
+ 563
1140
+ ],
1141
+ "page_idx": 8
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Reinhard Furrer, Marc G Genton, and Douglas Nychka. Covariance tapering for interpolation of large spatial datasets. Journal of Computational and Graphical Statistics, 15(3):502–523, 2006. ",
1146
+ "bbox": [
1147
+ 173,
1148
+ 570,
1149
+ 825,
1150
+ 599
1151
+ ],
1152
+ "page_idx": 8
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Robert B Gramacy and Daniel W Apley. Local gaussian process approximation for large computer experiments. Journal of Computational and Graphical Statistics, 24(2):561–578, 2015. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 607,
1160
+ 823,
1161
+ 637
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Joseph Guinness. Permutation and grouping methods for sharpening gaussian process approximations. Technometrics, 60(4):415–429, 2018. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 645,
1171
+ 821,
1172
+ 674
1173
+ ],
1174
+ "page_idx": 8
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "James Hensman, Nicolo Fusi, and Neil D Lawrence. Gaussian processes for big data. arXiv preprint arXiv:1309.6835, 2013. ",
1179
+ "bbox": [
1180
+ 173,
1181
+ 681,
1182
+ 823,
1183
+ 710
1184
+ ],
1185
+ "page_idx": 8
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "James Hensman, Alexander G de G Matthews, and Zoubin Ghahramani. Scalable variational Gaussian process classification. In Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, 2015. ",
1190
+ "bbox": [
1191
+ 173,
1192
+ 718,
1193
+ 825,
1194
+ 762
1195
+ ],
1196
+ "page_idx": 8
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "James Hensman, Nicolas Durrande, and Arno Solin. Variational fourier features for gaussian processes. The Journal of Machine Learning Research, 18(1):5537–5588, 2017. ",
1201
+ "bbox": [
1202
+ 173,
1203
+ 770,
1204
+ 821,
1205
+ 799
1206
+ ],
1207
+ "page_idx": 8
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Michael I. Jordan, Zoubin Ghahramani, Tommi S. Jaakkola, and Lawrence K. Saul. An introduction to variational methods for graphical models. Machine Learning, 37(2):183–233, 1999. ",
1212
+ "bbox": [
1213
+ 173,
1214
+ 806,
1215
+ 823,
1216
+ 837
1217
+ ],
1218
+ "page_idx": 8
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "Cari G Kaufman, Mark J Schervish, and Douglas W Nychka. Covariance tapering for likelihoodbased estimation in large spatial data sets. Journal of the American Statistical Association, 103 (484):1545–1555, 2008. ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 843,
1226
+ 825,
1227
+ 887
1228
+ ],
1229
+ "page_idx": 8
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), number 2014, 2013. ",
1234
+ "bbox": [
1235
+ 173,
1236
+ 895,
1237
+ 825,
1238
+ 924
1239
+ ],
1240
+ "page_idx": 8
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017. ",
1245
+ "bbox": [
1246
+ 171,
1247
+ 103,
1248
+ 823,
1249
+ 133
1250
+ ],
1251
+ "page_idx": 9
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "K. Krauth, E. V. Bonilla, K. Cutajar, and M. Filippone. AutoGP: Exploring the Capabilities and Limitations of Gaussian Process Models. ArXiv e-prints, October 2016. ",
1256
+ "bbox": [
1257
+ 176,
1258
+ 141,
1259
+ 823,
1260
+ 171
1261
+ ],
1262
+ "page_idx": 9
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/. ",
1267
+ "bbox": [
1268
+ 173,
1269
+ 179,
1270
+ 820,
1271
+ 209
1272
+ ],
1273
+ "page_idx": 9
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "Linfeng Liu and Liping Liu. Amortized variational inference with graph convolutional networks for gaussian processes. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 2291–2300, 2019. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 218,
1281
+ 823,
1282
+ 261
1283
+ ],
1284
+ "page_idx": 9
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Christos Louizos and Max Welling. Multiplicative normalizing flows for variational bayesian neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2218–2227. JMLR. org, 2017. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 270,
1292
+ 826,
1293
+ 314
1294
+ ],
1295
+ "page_idx": 9
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Alexander G de G Matthews, James Hensman, Richard Turner, and Zoubin Ghahramani. On sparse variational methods and the kullback-leibler divergence between stochastic processes. In Artificial Intelligence and Statistics, pp. 231–239, 2016. ",
1300
+ "bbox": [
1301
+ 173,
1302
+ 323,
1303
+ 825,
1304
+ 367
1305
+ ],
1306
+ "page_idx": 9
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Alexander G. de G. Matthews, Mark van der Wilk, Tom Nickson, Keisuke. Fujii, Alexis Boukouvalas, Pablo Leon-Villagr ´ a, Zoubin Ghahramani, and James Hensman. GPflow: A Gaussian ´ process library using TensorFlow. Journal of Machine Learning Research, 18(40):1–6, apr 2017. URL http://jmlr.org/papers/v18/16-537.html. ",
1311
+ "bbox": [
1312
+ 173,
1313
+ 375,
1314
+ 825,
1315
+ 433
1316
+ ],
1317
+ "page_idx": 9
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Yishu Miao, Lei Yu, and Phil Blunsom. Neural variational inference for text processing. In Proceedings of the 33rd International Conference on International Conference on Machine Learning, pp. 1727–1736, 2016. ",
1322
+ "bbox": [
1323
+ 174,
1324
+ 440,
1325
+ 823,
1326
+ 484
1327
+ ],
1328
+ "page_idx": 9
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013. ",
1333
+ "bbox": [
1334
+ 174,
1335
+ 493,
1336
+ 825,
1337
+ 536
1338
+ ],
1339
+ "page_idx": 9
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "M. A. Munson, K. Webb, D. Sheldon, D. Fink, W. M. Hochachka, M. Iliff, M. Riedewald, D. Sorokina, B. Sullivan, C. Wood, and S. Kelling. The eBird reference dataset, version 2014, 2015. ",
1344
+ "bbox": [
1345
+ 173,
1346
+ 545,
1347
+ 825,
1348
+ 588
1349
+ ],
1350
+ "page_idx": 9
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Duy Nguyen-Tuong, Jan R Peters, and Matthias Seeger. Local gaussian process regression for real time online model learning. In Advances in Neural Information Processing Systems, pp. 1193– 1200, 2009. ",
1355
+ "bbox": [
1356
+ 173,
1357
+ 598,
1358
+ 826,
1359
+ 641
1360
+ ],
1361
+ "page_idx": 9
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "A. Panos, P. Dellaportas, and M. K. Titsias. Fully Scalable Gaussian Processes using Subspace Inducing Inputs. ArXiv e-prints, July 2018. ",
1366
+ "bbox": [
1367
+ 173,
1368
+ 650,
1369
+ 823,
1370
+ 680
1371
+ ],
1372
+ "page_idx": 9
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Chiwoo Park and Daniel Apley. Patchwork kriging for large-scale gaussian process regression. The Journal of Machine Learning Research, 19(1):269–311, 2018. ",
1377
+ "bbox": [
1378
+ 173,
1379
+ 689,
1380
+ 823,
1381
+ 718
1382
+ ],
1383
+ "page_idx": 9
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Joaquin Quinonero-Candela and Carl Edward Rasmussen. A unifying view of sparse approximate ˜ gaussian process regression. Journal of Machine Learning Research, 6(Dec):1939–1959, 2005. ",
1388
+ "bbox": [
1389
+ 169,
1390
+ 727,
1391
+ 823,
1392
+ 757
1393
+ ],
1394
+ "page_idx": 9
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Rajesh Ranganath, Dustin Tran, and David Blei. Hierarchical variational models. In International Conference on Machine Learning, pp. 324–333, 2016. ",
1399
+ "bbox": [
1400
+ 171,
1401
+ 765,
1402
+ 823,
1403
+ 795
1404
+ ],
1405
+ "page_idx": 9
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Carl Edward Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning. The MIT Press, 2006. ",
1410
+ "bbox": [
1411
+ 173,
1412
+ 804,
1413
+ 821,
1414
+ 833
1415
+ ],
1416
+ "page_idx": 9
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "H. Salimbeni, C.-A. Cheng, B. Boots, and M. Deisenroth. Orthogonally Decoupled Variational Gaussian Processes. ArXiv e-prints, September 2018. ",
1421
+ "bbox": [
1422
+ 173,
1423
+ 843,
1424
+ 823,
1425
+ 872
1426
+ ],
1427
+ "page_idx": 9
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Rishit Sheth, Yuyang Wang, and Roni Khardon. Sparse variational inference for generalized gaussian process models. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning, ICML’15, pp. 1302–1311. JMLR.org, 2015. ",
1432
+ "bbox": [
1433
+ 174,
1434
+ 882,
1435
+ 825,
1436
+ 924
1437
+ ],
1438
+ "page_idx": 9
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Edward Snelson and Zoubin Ghahramani. Sparse gaussian processes using pseudo-inputs. In Advances in neural information processing systems, pp. 1257–1264, 2006. ",
1443
+ "bbox": [
1444
+ 173,
1445
+ 103,
1446
+ 823,
1447
+ 132
1448
+ ],
1449
+ "page_idx": 10
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Michael L Stein, Zhiyi Chi, and Leah J Welty. Approximating likelihoods for large spatial data sets. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 66(2):275–296, 2004. ",
1454
+ "bbox": [
1455
+ 171,
1456
+ 140,
1457
+ 823,
1458
+ 170
1459
+ ],
1460
+ "page_idx": 10
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "Michalis K. Titsias. Variational learning of inducing variables in sparse gaussian processes. In Proceedings of the Twelfth International Conference on Artificial Intelligence and Statistics, pp. 567–574, 2009. ",
1465
+ "bbox": [
1466
+ 173,
1467
+ 178,
1468
+ 823,
1469
+ 220
1470
+ ],
1471
+ "page_idx": 10
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Aldo V Vecchia. Estimation and model identification for continuous spatial processes. Journal of the Royal Statistical Society: Series B (Methodological), 50(2):297–312, 1988. ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 231,
1479
+ 826,
1480
+ 260
1481
+ ],
1482
+ "page_idx": 10
1483
+ }
1484
+ ]
parse/train/Bkxonh4Ywr/Bkxonh4Ywr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkxonh4Ywr/Bkxonh4Ywr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByqFhGZCW/ByqFhGZCW.md ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MACHINE VS MACHINE: MINIMAX-OPTIMAL DEFENSE AGAINST ADVERSARIAL EXAMPLES
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Recently, researchers have discovered that the state-of-the-art object classifiers can be fooled easily by small perturbations in the input unnoticeable to human eyes. It is known that an attacker can generate strong adversarial examples if she knows the classifier parameters. Conversely, a defender can robustify the classifier by retraining if she has the adversarial examples. The cat-and-mouse game nature of attacks and defenses raises the question of the presence of equilibria in the dynamics. In this paper, we present a neural-network based attack class to approximate a larger but intractable class of attacks, and formulate the attacker-defender interaction as a zero-sum leader-follower game. We present sensitivity-penalized optimization algorithms to find minimax solutions, which are the best worst-case defenses against whitebox attacks. Advantages of the learning-based attacks and defenses compared to gradient-based attacks and defenses are demonstrated with MNIST and CIFAR-10.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Recently, researchers have made an unsettling discovery that the state-of-the-art object classifiers can be fooled easily by small perturbations in the input unnoticeable to human eyes (Szegedy et al., 2013; Goodfellow et al., 2014b). Following studies tried to explain the cause of the seeming failure of deep learning toward such adversarial examples. The vulnerability was ascribed to linearity (Szegedy et al., 2013), low flexibility (Fawzi et al., 2015), or the flatness/curvedness of decision boundaries (Moosavi-Dezfooli et al., 2017), but a more complete picture is still under research. This is troublesome since such a vulnerability can be exploited in critical situations such as an autonomous car misreading traffic signs or a facial recognition system granting access to an impersonator without being noticed. Several methods of generating adversarial examples were proposed (Goodfellow et al., 2014b; Moosavi-Dezfooli et al., 2016; Carlini & Wagner, 2017), most of which use the knowledge of the classifier to craft examples. In response, a few defense methods were proposed: retraining target classifiers with adversarial examples called adversarial training (Szegedy et al., 2013; Goodfellow et al., 2014b); suppressing gradient by retraining with soft labels called defensive distillation (Papernot et al., 2016); hardening target classifiers by training with an ensemble of adversarial examples (Tramer et al., 2017). \`
12
+
13
+ In this paper we focus on whitebox attacks, that is, the model and the parameters of the classifier are known to the attacker. This requires a more robust classifier or defense method than simply relying on the secrecy of the parameters as defense. When the classifier parameters are known to an attacker, existing attack methods are very successful at fooling the classifiers. Conversely, when the attack is known to the classifier, e.g., in the form of adversarial examples, one can weaken the attack by retraining the classifier with adversarial examples, called adversarial training. However, if we repeat adversarial sample generation and adversarial training back-to-back, it is observed that the current adversarially-trained classifier is no longer robust to previous attacks (see Sec. 3.1.) To find the classifier robust against the class of gradient-based attacks, we first propose a sensitivitypenalized optimization procedure. Experiments show that the classifier from the procedure is more robust than adversarially-trained classifiers against previous attacks, but it still remains vulnerable to some degrees. This raises the main question of the paper: Can a classifier be robust to all types of attacks? The answer seems to be negative in light of the strong adversarial examples that can be crafted by direct optimization procedures from Huang et al. (2015) or Carlini & Wagner (2017). Note that the class of optimization-based attack is very large, as there is no restriction on the adversarial patterns that can be generated except for certain bounds such as $l _ { p }$ -norm bounds. The vastness of the optimization-based attack class is a hindrance to the study of the problem, as the defender cannot learn efficiently about the attack class from a finite number of samples. To study the problem analytically, we use a class of learning-based attack that can be generated by a class of neural networks. This class of attack can be considered an approximation of the class of optimization -based attacks, in that the search space of optimal perturbation is restricted to the parameter space of a neural network architecture, e.g., all perturbations that can be generated by fully-connected 3- layer ReLU networks. Similar to what we propose, others have recently considered training neural networks to generate adversarial examples (Nguyen & Sinha, 2017; Baluja & Fischer, 2017). While the proposed learning-based attack is weaker than the optimization-based attack, it can generate adversarial examples in test time with only single feedforward passes, which makes real-time attacks possible. We also show that the class of neural-network based attacks is quite different from the the class of gradient-based attacks (see Sec. 4.1.)
14
+
15
+ Using the learning-based attack class, we introduce a continuous game formulation for analyzing the dynamics of attack-defense. The game is played by an attacker and a defender/classifier 1, where the attacker tries to maximize the risk of the classification task by perturbing input samples under certain constraints such as $l _ { p }$ -norm bounds, and the defender/classifier tries to adjust its parameters to minimize the same risk given the perturbed inputs. It is important to note that for adversarial attack problems, the performance of an attack or a defense cannot be measured in isolation, but only in pairs of (attack, defense). This is because the effectiveness of an attack/defense depends on the defense/attack it is against. As a two-player game, there may not be a dominant defense that is no less robust than all other defenses against all attacks. However, there is a natural notion of the best defense or attack in the worst case. Suppose one player moves first by choosing her parameters and the other player responds with the knowledge of the first player’s move. This is an example of a leader-follower game (Bruckner & Scheffer, 2011) for which there are two well-known ¨ states, the minimax and the maximin solutions if it is a constant-sum game. To find those solutions empirically, we propose a new continuous optimization method using the sensitivity penalization term. We show that the minimax solution from the proposed method is indeed different from the solution from the conventional alternating descent/ascent and is also more robust. We also show that the strength/weakness of the minimax-trained classifier is different from that of adversarially-trained classifiers for gradient-based attacks. The contributions of this paper are summarized as follows.
16
+
17
+ • We provide a continuous game model to analyze adversarial example attacks and defenses, using the neural network-based attack class as a feasible approximation to a larger but intractable class of optimization-based attacks.
18
+ We demonstrate the difficulty of defending against multiple attack types and present the minimax defense as the best worst-case defense methods.
19
+ We propose a sensitivity-penalized optimization method (Alg. 1) to numerically find continuous minimax solutions, which is better than alternating descent/ascent. The proposed optimization method can also be used for other minimax problems beyond the adversarial example problem.
20
+
21
+ The proposed methods are demonstrated with the MNIST and the CIFAR-10 datasets. For readability, details about experimental settings and the results with CIFAR-10 are presented in the appendix.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Making a classifier robust to test-time adversarial attacks has been studied for linear (kernel) hyperplanes (Lanckriet et al., 2002), naive Bayes (Dalvi et al., 2004) and SVM (Globerson & Roweis, 2006), which also showed the game-theoretic nature of the robust classification problems. Since the recent discovery of adversarial examples for deep neural networks, several methods of generating adversarial samples were proposed (Szegedy et al., 2013; Goodfellow et al., 2014b; Huang et al., 2015; Moosavi-Dezfooli et al., 2016; Carlini & Wagner, 2017) as well as several methods of defense (Szegedy et al., 2013; Goodfellow et al., 2014b; Papernot et al., 2016; Tramer et al., 2017). These \` papers considered static scenarios, where the attack/defense is constructed against a fixed opponent.
26
+
27
+ A few researchers have also proposed using a detector to detect and reject adversarial examples (Meng & Chen, 2017; Lu et al., 2017; Metzen et al., 2017). While we do not use detectors in this work, the minimax approach we proposed in the paper can be applied to train the detectors.
28
+
29
+ The idea of using neural networks to generate adversarial samples has appeared concurrently (Baluja & Fischer, 2017; Nguyen & Sinha, 2017). Similar to our paper, the two papers demonstrates that it is possible to generate strong adversarial samples by a learning approach. Baluja & Fischer (2017) explored different architectures for the “adversarial transformation networks” against several different classifiers. Nguyen & Sinha (2017) proposed “attack learning neural networks” to map clean samples to a region in the feature space where misclassification occurs and “defense learning neural networks” to map them back to the safe region. Instead of prepending the defense layers before the fixed classifier (Nguyen & Sinha, 2017), we retrain the whole classifier as a defense method. However, the key difference of our work to the two papers is that we consider the dynamics of a learning-based defense stacked with a learning-based attack, and the numerical computation of the optimal defense/attack by continuous optimization.
30
+
31
+ The alternating gradient-descent method for finding an equilibrium of a game has gained renewed interest since the introduction of Generative Adversarial Networks (GAN) (Goodfellow et al., 2014a). However, the instability of the alternating gradient-descent method has been known, and the “unrolling” method (Metz et al., 2016) was proposed to speed up the GAN training. The optimization algorithm proposed in the paper has a similarity with the unrolling method, but it is simpler (corresponding to a single-step unrolling) and involves a gradient-norm regularization which can be interpreted intuitively as sensitivity penalization (Gu & Rigazio, 2014; Lyu et al., 2015). Lastly, the framework of minimax risks was also studied in Hamm (2016) for the purpose of privacy preservation. We propose a different algorithm in this paper, but we also show that the attack on classification and the attack on privacy are the two sides of the same optimization problem with the opposite goals.
32
+
33
+ # 3 CAT-AND-MOUSE GAME
34
+
35
+ A classifier whose parameters are known to an attacker is easy to attack. Conversely, an attacker whose sample-generating method is known to a classifier is easy to defend from. In this section, we demonstrate the cat-and-mouse nature of the interaction, using adversarial training (Adv Train) as defense and the fast gradient sign method (FGSM) (Goodfellow et al., 2014b) and the iterative version (IFGSM) (Kurakin et al., 2016a) as attacks. We then show that the equilibrium, if it exists, can be found more efficiently by directly solving a sensitivity-penalized optimization problem.
36
+
37
+ # 3.1 A NAIVE APPROACH
38
+
39
+ Suppose $g$ is a classifier $g : \mathcal { X } \mathcal { Y }$ and $l ( g ( x ) , y )$ is a loss function. The FGSM attack generates a perturbed example $z ( x )$ given the clean sample $x$ as follows:
40
+
41
+ $$
42
+ z ( x ) = x + \eta \mathrm { s i g n } ( \nabla _ { x } l ( g ( x ) , y ) ) .
43
+ $$
44
+
45
+ The clean input images we use here are $l _ { \infty }$ -normalized, that is, all pixel values are in the range $[ - 1 , 1 ]$ . It was argued that the use of true label $y$ results in “label leaking” (Kurakin et al., 2016b), but we use will true labels in the paper for simplicity. For another attack example, the IFGSM attack iteratively refines an adversarial example by the following update
46
+
47
+ $$
48
+ \begin{array} { r } { z _ { i + 1 } = \mathrm { c l i p } _ { x , \eta } ( z _ { i } + \eta \mathrm { s i g n } ( \nabla _ { z } l ( g ( z _ { i } ) , y ) ) ) , } \end{array}
49
+ $$
50
+
51
+ where the clipping used in this paper is $\begin{array} { r } { \mathrm { c l i p } _ { x , \eta } ( x ^ { \prime } ) \triangleq \operatorname* { m i n } \{ 1 , \ x + \eta , \ \operatorname* { m a x } \{ - 1 , \ x - \eta , \ x ^ { \prime } \} \} . } \end{array}$
52
+
53
+ Existing attack methods such as FGSM and IFGSM are very effective at fooling the classifier. Table 1 shows that the two methods are able to perfectly fool a convolutional neural network trained with clean images from MNIST. (Details of the classifier architecture and the settings are in the appendix.)
54
+
55
+ On the other hand, these attacks, if known to the classifier, can be weakened by retraining the classifier with the original dataset augmented by adversarial examples with ground-truth labels, known as adversarial training. In this paper we use the 1:1 mixture of the clean and the adversarial samples for adversarial training. Table 2 shows the result of adversarial training for different attacks.
56
+
57
+ <table><tr><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="4">FGSM</td><td colspan="4">IFGSM</td></tr><tr><td>n=0.3</td><td>m=0.4</td><td>m=0.5</td><td>n=0.6</td><td>m=0.3</td><td>m=0.4</td><td>n=0.5</td><td>n=0.6</td></tr><tr><td>No defense</td><td>0.006</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr></table>
58
+
59
+ Table 1: Test error rates of FGSM and IFGSM attacks on an undefended convolutional neural network for MNIST. These attacks can cause perfect misclassification for the given range of $\eta$ .
60
+
61
+ The test error rates for adversarial test examples after training become below $1 \%$ indicating nearperfect avoidance. This is in stark contrast with the perfect misclassification of the undefended classifier in Table 1.
62
+
63
+ Table 2: Error rates of FGSM and IFGSM attacks on adversarially-trained classifiers for MNIST. This defense can avert the attacks and achieve the error rates of the no-attack case.
64
+
65
+ <table><tr><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="4">FGSM</td><td colspan="4">IFGSM</td></tr><tr><td>n=0.3</td><td>n=0.4</td><td>m=0.5</td><td>n=0.6</td><td>n=0.3</td><td>n=0.4</td><td>m=0.5</td><td>n=0.6</td></tr><tr><td>Adv train</td><td>n/a</td><td>0.004</td><td>0.003</td><td>0.003</td><td>0.005</td><td>0.003</td><td>0.003</td><td>0.004</td><td>0.010</td></tr></table>
66
+
67
+ A question arises as to what would happen if the procedure of 1) adversarial sample generation using the current classifier, and 2) retraining classifier using the current adversarial examples is repeated for many rounds. The answer to this cat-and-mouse game is easy to experiment although time-consuming. Let’s denote the attack on the original classifier as FGSM1, and the corresponding retrained classifier as Adv FGSM1. Repeating the procedure above generates the sequence of models $\mathrm { F G S M 1 } \to \mathrm { A d v } \ \mathrm { F G S M 1 } \to \mathrm { F G S M 2 } \to \mathrm { A d v } \ \mathrm { F C }$ GSM2, etc. Fig. 1 shows one such trial with $8 0 +$ 80 rounds of the procedure. Initially, the attacker achieves near-perfect attacks (i.e., error rate $\simeq 1$ ), and the defender achieves near-perfect defense (i.e., error rate $\simeq 0$ ). As the iteration increases, the attacker becomes weaker with error rate $\simeq 0 . 5$ , but the defense is still very successful, and the rate seems to oscillate persistently. While we can run more iterations to see if it converges, this is not a very principled nor efficient approach to find an equilibrium, if it exists.
68
+
69
+ ![](images/da60f7db9bd6b022adc7b3bbf142be95b5b59cdb173c6d20c6bf19032f4ee2e7.jpg)
70
+ Figure 1: A cat-and-mouse game of FGSM attacks and adversarial training for MNIST. The upper red points are the error rates after adversarial training, and the lower green points are the error rates after FGSM attack $\eta = 0 . 3 )$ . After 160 iterations, the error rate is still oscillating between 0 and 0.5.
71
+
72
+ # 3.2 GRADIENT-BASED ATTACKS AND SENSITIVITY PENALTY
73
+
74
+ We can perform the cat-and-mouse simulation more efficiently by an optimization approach. Instead of training the classifier fully with adversarial examples and then regenerating adversarial examples, suppose we only update the classifier with a single gradient-descent step then regenerate adversarial examples. To emphasize the parameters $u$ of the classifier/defender $g ( x ; u )$ , let’s rewrite the empirical risk of classifying the perturbed data as
75
+
76
+ $$
77
+ f ( u , Z ) \triangleq \frac { 1 } { N } \sum _ { i = 1 } ^ { N } l ( g ( z ( x _ { i } ) ; u ) , y _ { i } ) ,
78
+ $$
79
+
80
+ where $z ( x )$ denote an FGSM-like attack based on the loss gradient
81
+
82
+ $$
83
+ \begin{array} { r } { z ( { \boldsymbol x } ) \gets { \boldsymbol x } + \eta \nabla _ { z } l ( g ( z ( { \boldsymbol x } ) ; { \boldsymbol u } ) , y ) , } \end{array}
84
+ $$
85
+
86
+ and $Z = ( z _ { 1 } , . . . , z _ { N } ) \triangleq ( z ( x _ { 1 } ) , . . . , z ( x _ { N } ) )$ is the sequence of perturbed examples. In expectation of the attack, the defender should choose $u$ to minimize $f ( u , Z ( u ) )$ where the dependence of the attack on the classifier $u$ is expressed explicitly. If we minimize $f$ using gradient descent
87
+
88
+ $$
89
+ u u - \lambda \frac { d f ( u , Z ) } { d u } ,
90
+ $$
91
+
92
+ then from the chain rule, the total derivative $\textstyle { \frac { d f } { d u } }$ is
93
+
94
+ $$
95
+ { \frac { d f } { d u } } = { \frac { \partial f } { \partial u } } + { \frac { \partial Z } { \partial u } } { \frac { \partial f } { \partial Z } } = { \frac { \partial f } { \partial u } } + \sum _ { i } { \frac { \partial z _ { i } } { \partial u } } { \frac { \partial f } { \partial z _ { i } } } = { \frac { \partial f } { \partial u } } + { \frac { \eta } { N } } \sum _ { i } { \frac { \partial ^ { 2 } l } { \partial z _ { i } \partial u } } { \frac { \partial l } { \partial z _ { i } } }
96
+ $$
97
+
98
+ from (3) and (4).
99
+
100
+ Interestingly, this total derivative (6) at the current state coincides with the gradient $\nabla _ { u }$ of the following cost
101
+
102
+ $$
103
+ f _ { \mathrm { s e n s } } ( u ) \triangleq f ( u , Z ) + \frac { \gamma } { 2 } \left\| \frac { \partial f ( u , Z ) } { \partial Z } \right\| ^ { 2 } = f ( u , Z ) + \frac { \eta } { 2 N } \sum _ { i = 1 } ^ { N } \left\| \frac { \partial l ( g ( z _ { i } ; u ) , y _ { i } ) } { \partial z _ { i } } \right\| ^ { 2 }
104
+ $$
105
+
106
+ where $\gamma = \eta N$ . There are two implications. Interpretation-wise, this cost function is the sum of the original risk $f$ and the ‘sensitivity’ term $\| \partial f / \partial Z \| ^ { 2 }$ which penalizes abrupt changes of the risk w.r.t. the input. Therefore, $u$ is chosen at each iteration to not only decrease the risk but also to make the classifier insensitive to input perturbation so that the attacker cannot take advantage of large gradients. The idea of minimizing the sensitivity to input is a familiar approach in robustifying classifiers (Gu & Rigazio, 2014; Lyu et al., 2015). Secondly, the new formulation can be implemented easily. The gradient descent update using the seemingly complicated gradient (6) can be replaced by the gradient descent update of (7). The capability of automatic differentiation (Rall, 1981) in modern machine learning libraries can be used to compute the gradient of (7) efficiently. Using this direct approach, we can find the defense parameters $u$ which will be robust to gradient-based attacks. Fig. 2 shows the decrease of test error during training using the this gradient descent approach for MNIST. It only takes a very small fraction of time to reach the final states of the Fig. 2 compared to that of Fig. 1.
107
+
108
+ ![](images/7d60a9f66246467edbdc5b42d1f2c5b63e1328b9fe50e235eff32588b2fd4e1a.jpg)
109
+ Figure 2: Convergence of test error rates for sensitivity-penalized optimization (7) with MNIST.
110
+
111
+ There is also an important difference between the solution of the cat-and-mouse game and the minimizer of (7). Table 3 shows that the adversarially trained classifier (Adv FGSM1) is robust to both clean data and FGSM1 attack, but is susceptible to FGSM2 attack, displaying the cat-and-mouse nature. The same holds for Adv FGSM2, Adv FGSM3, etc. After 80 rounds of the cat-and-mouse procedure, the classifier Adv FGSM80 becomes robust to FGSM80 as well as moderately robust to other attacks including FGSM81 $\circleddash$ FGSM-curr). However, the classifier Sens FGSM from direct minimization of (7) is even more robust toward FGSM-curr than Adv FGSM80 and is overall the best. To see the advantage of the sensitivity term in (7), we also performed the minimization of (7) without the sensitivity term under the same conditions as Sens FGSM. This optimization method is similar to the method proposed in Huang et al. (2015), referred to as Learning with Adversaries (LWA FGSM). In the table, one can see that Sens FGSM is also better than LWA FGSM overall, although the difference is small.
112
+
113
+ Note that Sens FGSM is better than other adversarially-trained classifiers, it too is still vulnerable to attacks such as FGSM80. This vulnerability raises the question if it is possible to make a classifier robust to any type of attacks, or more practically, robust to at least a large class of attacks. We discuss this issue in the next section.
114
+
115
+ Table 3: Error rates of different attacks on various adversarially-trained classifiers for MNIST. FGSM-curr means the FGSM attack on the specific classifier on the left. Adv FGSM is the classifier adversarially trained with FGSM attacks. Sens FGSM is the result of minimizing (7) by gradient descent (5). LWA FGSM is the result of minimizing (7) without the gradient-norm term.
116
+
117
+ <table><tr><td rowspan="2"></td><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="3">FGSM</td><td rowspan="2">FGSM-curr</td></tr><tr><td>FGSM1</td><td>FGSM2 :</td><td>FGSM80</td></tr><tr><td rowspan="5">n=0.3</td><td>No defense Adv FGSM1</td><td>0.026 0.012</td><td>1.000 0.004</td><td>0.881 0.995</td><td>:</td><td>0.355 1.000</td></tr><tr><td></td><td></td><td>0.999</td><td>:</td><td>0.499</td><td>0.995</td></tr><tr><td>Adv FGSM2</td><td>0.012</td><td></td><td>0.002 :</td><td>0.505</td><td>0.995</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.335</td><td>0.273 :</td><td>0.009</td><td>0.442</td></tr><tr><td>LWAFGSM Sens FGSM</td><td>0.008</td><td>0.121</td><td>0.188 :</td><td>0.210 0.194</td><td>0.048 0.048</td></tr><tr><td rowspan="6">m=0.4</td><td>No defense</td><td>0.009 0.026</td><td>0.104 1.000</td><td>0.176 0.944</td><td>: :</td><td>0.528 1.000</td></tr><tr><td>AdvFGSM1</td><td>0.013</td><td>0.003</td><td>0.984</td><td>0.589 :</td><td>0.984</td></tr><tr><td>AdvFGSM2</td><td>0.017</td><td>0.999</td><td>0.005 :</td><td>0.549</td><td>0.999</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.509</td><td>0.525</td><td>: 0.024</td><td>0.131</td></tr><tr><td>LWAFGSM</td><td>0.009</td><td>0.204</td><td>0.284</td><td>: 0.336</td><td>0.043</td></tr><tr><td>Sens FGSM</td><td>0.009</td><td>0.128</td><td>0.234</td><td>· 0.296</td><td>0.038</td></tr><tr><td rowspan="6">m=0.5</td><td>No defense</td><td>0.026</td><td>1.000</td><td>0.931</td><td>:</td><td>0.662</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.010</td><td>0.002</td><td>0.970</td><td>:</td><td>0.724</td><td>0.970</td></tr><tr><td>Adv FGSM2</td><td>0.010</td><td>0.866</td><td>0.006</td><td>:</td><td>0.604</td><td>0.871</td></tr><tr><td>AdvFGSM80</td><td>0.008</td><td>0.653</td><td>0.559</td><td>:</td><td>0.023</td><td>0.089</td></tr><tr><td>LWAFGSM</td><td>0.009</td><td>0.248</td><td>0.260</td><td>:</td><td>0.432</td><td>0.035</td></tr><tr><td>Sens FGSM</td><td>0.009</td><td>0.266</td><td>0.285</td><td>:</td><td>0.365</td><td>0.039</td></tr><tr><td rowspan="6">n=0.6</td><td>No defense</td><td>0.026</td><td>1.000</td><td>0.963</td><td>:</td><td>0.803</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.012</td><td>0.003</td><td>0.889</td><td>:</td><td>0.790</td><td>0.889</td></tr><tr><td>Adv FGSM2</td><td>0.008</td><td>0.649</td><td>0.007</td><td>:</td><td>0.687</td><td>0.767</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.439</td><td>0.426</td><td>:</td><td>0.020</td><td>0.021</td></tr><tr><td>LWAFGSM</td><td>0.011</td><td>0.317</td><td>0.315</td><td>:</td><td>0.488</td><td>0.034</td></tr><tr><td>Sens FGSM</td><td>0.010</td><td>0.264</td><td>0.244</td><td>:</td><td>0.465</td><td>0.033</td></tr></table>
118
+
119
+ # 4 GAME FORMULATION
120
+
121
+ In this section, we consider the class of optimization-based attack and the class of neural-network based attacks as an approximation of the former. Using the neural-network based attack class, we formulate the attacker-defender dynamics as a game and discuss two types of equilibria – the minimax and the maximin solutions. We present algorithms that generalize the approach presented in the previous section.
122
+
123
+ # 4.1 LEARNING-BASED ATTACK
124
+
125
+ An attacker $z ( x ) : \mathcal { X } \mathcal { X }$ can be more general than a specific class of attacks such as FGSM. Again, let $g : \mathcal { X } \mathcal { Y }$ is a classifier parameterized by $u$ and $l ( g ( x ; u ) , y )$ is a loss function. If time complexity is not an issue, the following optimization-based attack (Huang et al., 2015)
126
+
127
+ $$
128
+ \operatorname* { m a x } _ { Z = ( z _ { 1 } , \ldots , z _ { N } ) } \left[ f ( u , Z ) \triangleq \frac { 1 } { N } \sum _ { i } l ( g ( z _ { i } ; u ) , y _ { i } ) \right] = \frac { 1 } { N } \sum _ { i } \operatorname* { m a x } _ { z _ { i } } \ l ( g ( z _ { i } ; u ) , y _ { i } ) ,
129
+ $$
130
+
131
+ which is also related to the CW attack (Carlini & Wagner, 2017), can generate strong adversarial examples, where adversarial patterns $Z = ( z _ { 1 } , . . . , z _ { N } )$ are unrestricted except for the bounds such as $\| z _ { i } - x _ { i } \| _ { p } \leq \eta$ . The corresponding class of adversarial patterns $Z$ is very large, which results in strong but non-generalizable adversarial examples. Non-generalizable means the perturbation $z ( x )$ has to be recomputed for every new test sample $x$ . While the class of optimization-based attacks is powerful, its large size makes it difficult to analytically study the optimal defense methods. To make the problem learnable, we restrict the class of patterns $Z$ to that which can be generated by a flexible but manageable class of perturbation $\{ z ( \cdot ; v ) \mid \forall v \in V \}$ , e.g., an autoencoder of a fixed architecture where the parameter $v$ is the network weights. This class is a clearly an approximation to the class of full optimization-based attacks, but is generalizable, i.e., no time-consuming optimization is required in the test phase but only single feedforward passes. The attack network (AttNet), as we call it, can be of any class of appropriate neural networks. Here we use a three-layer fully-connected network with 300 hiddens units per layer in this paper. Different from Nguyen & Sinha (2017) or Baluja & Fischer (2017), we feed the label $y$ into the input of the network along with the features $x$ . This is analogous to using the true label $y$ in the original FGSM. While this label input is optional but it can make the training of the attacker network easier. As with other attacks, we impose the $l _ { \infty }$ -norm constraint on $z$ , i.e., $\| z ( x ) - x \| _ { \infty } \leq \eta$ .
132
+
133
+ Suppose now $f ( u , v )$ is the empirical risk of a classifier-attacker pair where the input $x$ is first transformed by attack network $z ( x ; v )$ and then fed to the classifier $g ( z ( x ; v ) ; u )$ . The attack network can be trained by gradient descent as well. Given a classifier $u$ , we can use gradient descent
134
+
135
+ $$
136
+ v v + \sigma { \frac { \partial f ( u , v ) } { \partial v } }
137
+ $$
138
+
139
+ to find an optimal attacker $v$ that maximizes the risk $f$ assuming the classifier $u$ is fixed. Table 4 compares the error rates of the FGSM attacks and the attack network (AttNet). The table shows that AttNet is better than or comparable to FGSM in all cases. In particular, we already observed that the FGSM attack is no more effective against the classifier hardened against gradient-based attacks (Adv FGSM80 or Sens FGSM), but the AttNet can incur significant error $( > \sim 0 . 9 )$ for those hardened defenders. This indicates that the class of learning-based attacks is indeed different from the class of gradient-based attacks.
140
+
141
+ <table><tr><td rowspan="2">Defense\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan="2">n=0.3</td><td colspan="2">n=0.4</td></tr><tr><td>No defense</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.996</td><td>1.000</td><td>0.984</td><td>1.000</td></tr><tr><td>AdvFGSM80</td><td>0.473</td><td>0.899</td><td>0.131</td><td>0.903</td></tr><tr><td>Sens FGSM</td><td>0.048</td><td>0.965</td><td>0.038</td><td>0.902</td></tr><tr><td rowspan="4">No defense Adv FGSM1 AdvFGSM80</td><td colspan="2">m=0.5</td><td colspan="2">m=0.6</td></tr><tr><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr><tr><td>0.985</td><td>1.000</td><td>0.966</td><td>1.000</td></tr><tr><td>0.089</td><td>0.897 1.000</td><td>0.021</td><td>0.897</td></tr><tr><td rowspan="2">Sens FGSM</td><td colspan="2">0.039</td><td colspan="2">0.033 0.903</td></tr></table>
142
+
143
+ Table 4: Error rates of FGSM vs learning-based attack network (AttNet) on various adversariallytrained classifiers for MNIST. FGSM-curr/AttNet-curr means they are computed/trained for the specific classifier on the leftmost column. Note that FGSM fails to attack hardened networks (Adv FGSM80 and Sens FGSM), whereas AttNet can still attack them successfully.
144
+
145
+ # 4.2 MINIMAX GAME FOR LEARNING-BASED ATTACKS
146
+
147
+ Finally, we consider the dynamics of the pair of classifier-attacker when each player can change its parameters. Given the current classifier $u$ , an optimal whitebox attacker parameter $v$ is the maximizer of the risk $f ( u , v )$
148
+
149
+ $$
150
+ v ^ { * } ( u ) \triangleq \arg \operatorname* { m a x } _ { v } f ( u , v ) .
151
+ $$
152
+
153
+ Consequently, the defender should choose the classifier parameters $u$ such that the maximum risk is minimized
154
+
155
+ $$
156
+ u ^ { * } \triangleq \arg \operatorname* { m i n } _ { u } \operatorname* { m a x } _ { v } f ( u , v ) = \arg \operatorname* { m i n } _ { u } f ( u , v ^ { * } ( u ) ) .
157
+ $$
158
+
159
+ This solution to the continuous minimax problem has a natural interpretation as the best worst-case solution. Assuming the attacker is optimal, i.e., it chooses the best attack from (10) given $u$ , no other defense can achieve a lower risk than the minimax defense $u ^ { * }$ in (11). The minimax defense is also a conservative defense. If the attacker is not optimal, and/or if the attack does not know the defense $u$ exactly (as in blackbox attacks), the actual risk can be lower than what the minimax solution $f ( u ^ { * } , v ^ { * } ( u ^ { * } ) )$ predicts. Before proceeding further, we point out that the claims above apply to the global minimizer $u ^ { * }$ and the maximizer function $v ^ { \ast } ( \cdot )$ , but in practice we can only find local solutions for complex risk functions of deep classifiers and attackers.
160
+
161
+ To solve (11), we analyze the problem similarly to (5)-(7) from the previous section. At each iteration, the defender should choose $u$ in expectation of the attack and minimize $f ( u , v ^ { * } ( u ) )$ . We use
162
+
163
+ gradient descent
164
+
165
+ $$
166
+ u u - \lambda \frac { d f ( u , v ^ { * } ( u ) ) } { d u } ,
167
+ $$
168
+
169
+ where the total derivative $\textstyle { \frac { d f } { d u } }$ is
170
+
171
+ $$
172
+ \frac { d f } { d u } = \frac { \partial f ( u , v ^ { * } ( u ) ) } { \partial u } + \frac { \partial v ^ { * } ( u ) } { \partial u } \frac { \partial f ( u , v ) } { \partial v } .
173
+ $$
174
+
175
+ Since the exact maximizer $v ^ { * } ( u )$ is difficult to find, we only update $v$ incrementally by one (or more) steps of gradient-ascent update
176
+
177
+ $$
178
+ v v + \sigma \frac { \partial f ( u , v ) } { \partial v } .
179
+ $$
180
+
181
+ The resulting formulation is closely related to the unrolled optimization (Metz et al., 2016) proposed for training GANs, although the latter has a very different cost function $f$ . Using the single update (14), the total derivative is
182
+
183
+ $$
184
+ \frac { d f } { d u } = \frac { \partial f ( u , v ^ { * } ( u ) ) } { \partial u } + \sigma \frac { \partial ^ { 2 } f ( u , v ) } { \partial u \partial v } \frac { \partial f ( u , v ) } { \partial v } .
185
+ $$
186
+
187
+ Similar to hardening a classifier against gradient-based attacks by minimizing (7) at each iteration, the gradient update of $u$ for $f ( u , v )$ can be done using the gradient of the following sensitivitypenalized function
188
+
189
+ $$
190
+ f _ { \mathrm { s e n s } } ( u ) \triangleq f ( u , v ) + { \frac { \sigma } { 2 } } \left\| { \frac { \partial f ( u , v ) } { \partial v } } \right\| ^ { 2 } .
191
+ $$
192
+
193
+ In other words, $u$ is chosen not only to minimize the risk but also to prevent the attacker from exploiting the sensitivity of $f$ to $v$ . The algorithm is summarized in Alg. 1.
194
+
195
+ # Algorithm 1 Minimax Optimization by Sensitivity Penalization
196
+
197
+ <table><tr><td>Input: risk f(u,v),#of iterations T,learning rates (oi),(入i),(Yi)</td></tr><tr><td>Output: (u*,u*(u*))</td></tr><tr><td>Initialize uo,Uo Begin</td></tr><tr><td>for i=1, ...,T do</td></tr><tr><td>Max step:Ui=Ui-1+Oi af(ui-1,Ui-1) du</td></tr><tr><td>a Yi-1 of(ui-1,Ui-1 Min step: Ui = Ui-1- Xi f(ui-1,Ui-1)+</td></tr><tr><td>du 2 du</td></tr><tr><td>end for Return (UT,UT).</td></tr></table>
198
+
199
+ Note that this algorithm is actually independent of the adversarial example problem, and can be used for other minimax problems as well.
200
+
201
+ # 4.3 MINIMAX VS MAXIMIN PROBLEMS
202
+
203
+ In analogy with the minimax problem, we can also consider the maximin solution defined by
204
+
205
+ $$
206
+ v ^ { * } \triangleq \arg \operatorname* { m a x } _ { v } \operatorname* { m i n } _ { u } f ( u , v ) = \arg \operatorname* { m a x } _ { v } f ( u ^ { * } ( v ) , v ) .
207
+ $$
208
+
209
+ where
210
+
211
+ $$
212
+ u ^ { * } ( v ) \triangleq \arg \operatorname* { m i n } _ { u } f ( u , v )
213
+ $$
214
+
215
+ is the minimizer function. Here we are abusing the notations for the minimax solution $u ^ { * }$ , the maximin solution $v ^ { * }$ , the minimizer $u ^ { * } ( \cdot )$ , and the maximizer $v ^ { \ast } ( \cdot )$ . Similar to the minimax solution, the maximin solution has an intuitive meaning – it is the best worst-case solution for the attacker. Assuming the defender is optimal, i.e., it chooses the best defense from (18) that minimizes the risk $f ( u , v )$ given the attack $v$ , no other attack can inflict a higher risk than the maximin attack $v ^ { * }$ . It is also a conservative attack. If the defender is not optimal, and/or if the defender does not know the attack $v$ exactly, the actual risk can be higher than what the solution $f ( u ^ { * } ( v ^ { * } ) , v ^ { * } )$ predicts. Note that the maximin scenario where the defender knows the attack method is not very realistic but is the opposite of the minimax scenario and provides the lower bound.
216
+
217
+ To summarize, minimax and maximin defenses and attacks have the following inherent properties.
218
+
219
+ Lemma 1. Let $u ^ { * } , v ^ { * } ( u ) , v ^ { * } , u ^ { * } ( v )$ be the solutions of $( I I ) , ( I O ) , ( I 7 ) , ( I 8 ) .$ .
220
+
221
+ 1. $f ( u , v ^ { * } ( u ) ) \geq f ( u , v )$ : For any given defense $u$ , the max attack $v ^ { * } ( u )$ is the most effective attack.
222
+ 2. $f ( u ^ { * } , v ^ { * } ( u ^ { * } ) ) \leq f ( u , v ^ { * } ( u ) )$ : Against the optimal attack $v ^ { * } ( u )$ , the minimax defense $u ^ { * }$ is the most effective defense.
223
+ 3. $f ( u ^ { * } ( v ) , v ) \leq f ( u , v )$ : For any given attack $v$ , the min defense $u ^ { * } ( v )$ is the most effective defense.
224
+ 4. $f ( u ^ { * } ( v ) , v ^ { * } ) \geq f ( u ^ { * } ( v ) , v )$ : Against the optimal defense $u ^ { * } ( v )$ , the maximin attack $v ^ { * }$ is the most effective attack.
225
+ 5. $\begin{array} { r } { \operatorname* { m a x } _ { v } \operatorname* { m i n } _ { u } f ( u , v ) \leq \operatorname* { m i n } _ { u } \operatorname* { m a x } _ { v } f ( u , v ) . } \end{array}$ : The risk of the best worst-case attack is lower than that of the best worst-case defense.
226
+
227
+ These properties follow directly from the definitions. The lemma helps us to better understand the dependence of defense and attack, and gives us the range of the possible risk values which can be measured empirically. To find maximin solutions, we use the same algorithm (Alg. 1) except that the variables $u$ and $v$ are switched and the sign of $f$ is flipped before the algorithm is called.
228
+
229
+ # 4.4 EXPERIMENTS
230
+
231
+ In addition to minimax and maximin optimization, we also consider as a reference algorithm the alternating descent/ascent method used in GAN training Goodfellow et al. (2014a)
232
+
233
+ $$
234
+ u u - \lambda \frac { \partial f } { \partial u } , \quad v v + \sigma \frac { \partial f } { \partial v } .
235
+ $$
236
+
237
+ Note that alternating descent/ascent finds local saddle points which are not necessarily minimax or maximin solutions, and therefore its solution will in general be different from the solution from Alg. 1. The difference of the solutions from three optimizations – Minimax, Maximin, and Alternating descent/ascent (Alt) – applied to a common problem, is demonstrated in Fig. 3. The figure shows the test error over the course of optimization starting from random initializations. One can see that Minimax (top blue curves) and Alt (middle green curves) converge to different values suggesting the learned classifiers will also be different.
238
+
239
+ ![](images/d6e579cfdb700ba5473f7cc533f56179bcabe9de8be7ad689d37ca03e59cf7fd.jpg)
240
+ Figure 3: Convergence of the test error rates for Minimax optimization (blue), Alternating ascent/descent (green), and Maximin optimization (red) for MNIST.
241
+
242
+ Table 5 compares the robustness of the classifiers trained by Minimax and Alt against the AttNet attack (1st/2nd rows and 2nd column for each $\eta$ .) Minimax defense is more robust than Alt defense at $\eta = 0 . 3$ (0.020 vs 0.104) and at $\eta = 0 . 4$ (0.552 vs 0.873). For larger $\eta$ ’s, both are unusably vulnerable. Different performance of the two classifiers implies that the minimax solution found by Alg. 1 is different from the local saddle point found by alternating descent/ascent. In addition, against FGSM attacks, Minimax is moderately robust $( 0 . 2 1 8 - 0 . 3 4 2 )$ despite that the classifiers are not specifically trained against gradient-based attacks. In contrast, Sens FGSM is very vulnerable (0.902 – 1.000) against AttNet which we have already observed. This result suggests that the class of AttNet attacks and the class of gradient-based attacks are indeed different, and the former class is larger than the latter.
243
+
244
+ Table 5: Error rates of Minimax-, Alt-, and adversarially-trained (Sens FGSM) classifiers for MNIST. Minimax is overall better than Alt against AttNet-curr, and is also moderately robust against the out-of-class attack (FGSM-curr).
245
+
246
+ <table><tr><td rowspan="2">Defense\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan="2">m=0.3</td><td colspan="2">n=0.4</td></tr><tr><td>Minimax</td><td>0.218</td><td>0.020</td><td>0.238</td><td>0.552</td></tr><tr><td>Alt</td><td>0.244</td><td>0.104</td><td>0.503</td><td>0.873</td></tr><tr><td>Sens FGSM</td><td>0.048</td><td>0.965</td><td>0.038</td><td>0.902</td></tr><tr><td rowspan="3">Minimax Alt</td><td>m=0.5</td><td></td><td>m=0.6</td><td></td></tr><tr><td>0.342</td><td>1.000</td><td>0.299</td><td>1.000</td></tr><tr><td>0.289</td><td>0.902</td><td>0.157</td><td>0.899</td></tr><tr><td>Sens FGSM</td><td>0.039</td><td>1.000</td><td>0.033</td><td>0.903</td></tr></table>
247
+
248
+ Lastly, the adversarial examples generated by various attacks in the paper have diverse patterns and are shown in Fig. 4 of the appendix.
249
+
250
+ # 5 DISCUSSION
251
+
252
+ # 5.1 ROBUSTNESS AGAINST MULTIPLE ATTACK TYPES
253
+
254
+ We discuss some limitations of the framework and also propose an extension. Ideally, a defender should find a robust classifier against the worst attack from a very large class of attacks such as optimization-based attacks. However, it is difficult to train classifiers against attacks from a large class. On the other hand, if the class is too small, then the worst attack from that class is not representative of all possible worst attacks, and therefore the minimax defense found will not be robust to out-of-class attacks. The trade-off seems inevitable.
255
+
256
+ It is, however, possible to build a defense against multiple specific types of attacks. Suppose $z _ { 1 } ( u ) , . . . , z _ { m } ( u )$ are $m$ different types of attacks, e.g., $z _ { \mathrm { 1 } } \mathrm { = F G S M }$ , $z _ { \mathrm { 2 } } { = } \mathrm { I F G S M }$ , etc. The minimax defense for the combined attack is the solution to the mixed continuous-discrete problem
257
+
258
+ $$
259
+ \operatorname* { m i n } _ { u } \operatorname* { m a x } \{ f ( u , z _ { 1 } ( u ) ) , . . . , f ( u , z _ { m } ( u ) ) \} .
260
+ $$
261
+
262
+ Additionally, suppose $z _ { m + 1 } ( u , v ) , . . . , z _ { m + n } ( u , v )$ are $n$ different types of learning-based attacks, e.g., $z _ { m + 1 } = 2$ -layer dense net, $z _ { m + 2 } = 5$ -layer convolutional nets, etc. The minimax defense against the mixture of multiple fixed-type and learning-based attacks can be found by solving
263
+
264
+ $$
265
+ \operatorname* { m i n } _ { u } \operatorname* { m a x } \{ f ( u , z _ { 1 } ( u ) ) , \dots , f ( u , z _ { m } ( u ) ) , \operatorname* { m a x } _ { v } f ( u , z _ { m + 1 } ( u , v ) ) , \dots , \operatorname* { m a x } _ { v } f ( u , z _ { m + n } ( u , v ) ) \} .
266
+ $$
267
+
268
+ Due to the huge computational demand to solve (21), we leave it as a future work.
269
+
270
+ # 5.2 ADVERSARIAL EXAMPLES AND PRIVACY ATTACKS
271
+
272
+ Lastly, we discuss a bigger picture of the game between adversarial players. The minimax optimization arises in the leader-follower game (Bruckner & Scheffer, 2011) with the constant sum constraint. ¨ The leader-follower setting makes sense because the defense $=$ classifier parameters) is often public knowledge and the attacker exploits the knowledge. Interestingly, the problem of the attack on privacy (Hamm, 2016) has a very similar formulation as the adversarial attack problem, different only in that the classifier is an attacker and the data perturbator is a defender. In the problem of privacy preservation against inference, the defender is a data transformer $z ( x )$ (parameterized by $u$ ) which perturbs the raw data, and the attacker is a classifier (parameterized by $v$ ) who tries to extract sensitive information such as identity from the perturbed data such as online activity of a person. The transformer is the leader, such as when the privacy mechanism is public knowledge, and the classifier is the follower as it attacks the given perturbed data. The risk for the defender is therefore the accuracy of the inference of sensitive information measured by $- E [ l ( \boldsymbol { z } ( \boldsymbol { x } ; \boldsymbol { u } ) , \boldsymbol { y } ; \boldsymbol { v } ) ]$ . Solving the minimax risk problem $\begin{array} { r l } { { ( \operatorname* { m i n } _ { u } \operatorname* { m a x } _ { v } - E [ l ( z ( x ; u ) , y ; v ) ] ) } \quad } & { { } } \end{array}$ gives us the best worst-case defense when the classifier/attacker knows the transformer/defender parameters, which therefore gives us a robust data transformer to preserve the privacy against the best inference attack (among the given class of attacks.) On the other hand, solving the maximin risk problem $\begin{array} { r l } { } & { { } ( \operatorname* { m a x } _ { v } \operatorname* { m i n } _ { u } - \bar { E } [ l ( \bar { z ( x ; u ) } , y ; v ) ] ) } \end{array}$ gives us the best worst-case classifier/attacker when its parameters are known to the transformer. As one can see, the problems of adversarial attack and privacy attack are two sides of the same coin which can be addressed by similar frameworks and optimization algorithms.
273
+
274
+ # 6 CONCLUSION
275
+
276
+ In this paper, we present a continuous game formulation of adversarial attacks and defenses using a learning-based attack class implemented by neural networks. We show that this class of attacks is quite different from the gradient-based attacks. While a classifier robust to all types of attack may yet be an elusive goal, the minimax defense against the neural network-based attack class is well-defined and practically achievable. We show that the proposed optimization method can find minimax defenses which are more robust than adversarially-trained classifiers and the classifiers from simple alternating descent/ascent. We demonstrate these with MNIST and CIFAR-10.
277
+
278
+ # REFERENCES
279
+
280
+ Shumeet Baluja and Ian Fischer. Adversarial transformation networks: Learning to generate adversarial examples. arXiv preprint arXiv:1703.09387, 2017.
281
+ Michael Bruckner and Tobias Scheffer. Stackelberg games for adversarial prediction problems. In ¨ Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 547–555. ACM, 2011.
282
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017.
283
+ Nilesh Dalvi, Pedro Domingos, Sumit Sanghai, Deepak Verma, et al. Adversarial classification. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 99–108. ACM, 2004.
284
+ Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. arXiv preprint arXiv:1502.02590, 2015.
285
+ Amir Globerson and Sam Roweis. Nightmare at test time: robust learning by feature deletion. In Proceedings of the 23rd international conference on Machine learning, pp. 353–360. ACM, 2006.
286
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014a.
287
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b.
288
+ Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014.
289
+ Jihun Hamm. Minimax filter: Learning to preserve privacy from inference attacks. arXiv preprint arXiv:1610.03577, 2016.
290
+ Ruitong Huang, Bing Xu, Dale Schuurmans, and Csaba Szepesvari. Learning with a strong adversary. ´ arXiv preprint arXiv:1511.03034, 2015.
291
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016a.
292
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016b.
293
+ Gert RG Lanckriet, Laurent El Ghaoui, Chiranjib Bhattacharyya, and Michael I Jordan. A robust minimax approach to classification. Journal of Machine Learning Research, 3(Dec):555–582, 2002.
294
+ Jiajun Lu, Theerasit Issaranon, and David Forsyth. Safetynet: Detecting and rejecting adversarial examples robustly. arXiv preprint arXiv:1704.00103, 2017.
295
+ Chunchuan Lyu, Kaizhu Huang, and Hai-Ning Liang. A unified gradient regularization family for adversarial examples. In Data Mining (ICDM), 2015 IEEE International Conference on, pp. 301–309. IEEE, 2015.
296
+ Dongyu Meng and Hao Chen. Magnet: a two-pronged defense against adversarial examples. arXiv preprint arXiv:1705.09064, 2017.
297
+ Luke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016.
298
+ Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017.
299
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. arXiv preprint arXiv:1610.08401, 2016.
300
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, Pascal Frossard, and Stefano Soatto. Analysis of universal adversarial perturbations. arXiv preprint arXiv:1705.09554, 2017.
301
+ Linh Nguyen and Arunesh Sinha. A learning approach to secure learning. arXiv preprint arXiv:1709.04447, 2017.
302
+ 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, 2016.
303
+ Louis B Rall. Automatic differentiation: Techniques and applications. 1981.
304
+ 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.
305
+ Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial \` training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
306
+
307
+ # A RESULTS WITH MNIST
308
+
309
+ The architecture of the MNIST classifier is similar to the Tensorflow model 2, and is trained with the following hyperparameters: $\{ B a t c h s i z e = I 2 8 \}$ , optimizer $=$ AdamOptimizer with $\lambda = 1 0 ^ { - 4 }$ , total # of iteration $\scriptstyle : = 5 0 , 0 0 0 . \}$
310
+
311
+ The attack network has three hidden fully-connected layers of 300 units, trained with the following hyperparameters:
312
+ {Batch $s i z e ~ = ~ I 2 8$ , dropout rate $= ~ 0 . 5$ , optimizer $=$ AdamOptimizer with $1 0 ^ { - 3 }$ , total $\#$ of iteration $\scriptstyle : = 3 0 , 0 0 0 . \}$
313
+
314
+ For minimax, alt, and maximin optimization, the total number of iteration was 100,000. The sensitivity-penalty coefficient of $\gamma = 1$ was used in Alg. 1.
315
+
316
+ ![](images/46763f54f338dd040d61c182c0c65ee517429ea079f203508ac7da6af10f2095.jpg)
317
+ Figure 4: Adversarial samples generated from different attacks at $\eta = 0 . 2$ . (a) Original data (b) FGSM1 (c) FGSM80 (d) IFGSM1 (e) Minimax (f) Alt (g) Maximin. Note the diversity of patterns.
318
+
319
+ # B RESULTS WITH CIFAR-10
320
+
321
+ We preprocess the CIFAR-10 dataset by removing the mean and normalizing the pixel values with the standard deviation of all pixels in the image. It is followed by clipping the values to $\pm 2$ standard deviations and rescaling to $[ - 1 , 1 ]$ . The architecture of the CIFAR classifier is similar to the Tensorflow model 3 but is simplified further by removing the local response normalization layers. With the simple structure, we attained $\sim 7 8 \%$ accuracy with the test data. The classifier is trained with the following hyperparameters:
322
+
323
+ $\{ B a t c h s i z e = I 2 8 ,$ , optimizer $=$ AdamOptimizer with $\lambda = 1 0 ^ { - 4 }$ , total # of iteration $\scriptstyle : = I O O , O O O . \}$
324
+
325
+ The attack network has three hidden fully-connected layers of 300 units, trained with the following hyperparameters:
326
+ $\{ B a t c h \ s i z e \ = \ I 2 8 ,$ , dropout rate $= 0 . 5$ , optimizer $=$ AdamOptimizer with $\sigma = 1 0 ^ { - 3 }$ , total # of iteration $\scriptstyle : = 3 0 , 0 0 0 . \}$
327
+
328
+ For minimax, alt, and maximin optimization, the total number of iteration was 100,000. The sensitivity-penalty coefficient of $\gamma = 1$ was used in Alg. 1.
329
+
330
+ In the rest of the appendix, we repeat all the experiments with the MNIST dataset using the CIFAR10 dataset.
331
+
332
+ <table><tr><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="4">FGSM</td><td colspan="4">IFGSM</td></tr><tr><td>n=0.1</td><td>n=0.2</td><td>n=0.3</td><td>m=0.4</td><td>n=0.1</td><td>m=0.2</td><td>n=0.3</td><td>m=0.4</td></tr><tr><td>No defense</td><td>0.222</td><td>0.976</td><td>0.825</td><td>0.869</td><td>0.884</td><td>0.668</td><td>0.907</td><td>0.959</td><td>0.971</td></tr></table>
333
+
334
+ Table 6: Error rates of FGSM and IFGSM attacks on the original classifier for cifar10. These attacks can cause large misclassification for the given range of $\eta$ .
335
+
336
+ <table><tr><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="4">FGSM</td><td colspan="4">IFGSM</td></tr><tr><td>n=0.1</td><td>n=0.2</td><td>n=0.3</td><td>n=0.4</td><td>n=0.1</td><td>n=0.2</td><td>m=0.3</td><td>n=0.4</td></tr><tr><td>Adv train</td><td>n/a</td><td>0.196</td><td>0.642</td><td>0.668</td><td>0.702</td><td>0.373</td><td>0.658</td><td>0.741</td><td>0.750</td></tr></table>
337
+
338
+ Table 7: Error rates of FGSM and IFGSM attacks on the adversarially-trained classifiers for CIFAR10. This defense can significantly lower the errors from the attacks, although not as low as the MNIST problem.
339
+
340
+ ![](images/25c2a7b8f76e7f3af510741ee0bca0ba313bdf0750f34346abc872740838414e.jpg)
341
+ Figure 5: Cat and mouse game of FGSM attacks and adversarial training for CIFAR-10. The upper green points are the error rates after adversarial training, and the lower orange points are the error rates after FGSM attack. After 160 iterations $\eta = 0 . 3 )$ , the error rate is still oscillating.
342
+
343
+ ![](images/ab800da7f6508864830e13eb093463215686949fbfe0fc6bc9669047e0667041.jpg)
344
+ Figure 6: Convergence of test error rates for sensitivity-penalized optimization with MNIST.
345
+
346
+ ![](images/b047abf440dc0ad31a90a50bcd45e3e6e00c2c669bbe9a856a56ac7d52ef84d7.jpg)
347
+ Figure 7: Convergence of the test error rates for Minimax optimization (blue), Alternating ascent/descent (green), and Maximin optimization (red) for CIFAR-10.
348
+
349
+ Table 8: Error rates of different attacks on various adversarially-trained classifiers for CIFAR-10. FGSM-curr means the FGSM attack on the specific classifier on the leftmost column. Adv FGSM is the classifier adversally trained with FGSM attacks. Sens FGSM is the result of minimizing the sensitivity penalty (7). LWA FGSM is the result of minimizing (7) without the gradient-norm term.
350
+
351
+ <table><tr><td rowspan="2"></td><td rowspan="2">Defense\Attack</td><td rowspan="2">No attack</td><td colspan="4">FGSM</td><td rowspan="2">FGSM-curr</td></tr><tr><td>FGSM-1</td><td>FGSM-2</td><td>:</td><td>FGSM-80</td></tr><tr><td rowspan="5">n=0.1</td><td>No defense AdvFGSM1</td><td>0.222 0.220</td><td>0.976 0.196</td><td>0.671 0.680</td><td>: :</td><td>0.595 0.616</td><td>0.976 0.245</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Adv FGSM2</td><td>0.258</td><td>0.640</td><td>0.484</td><td>:</td><td>0.612</td><td>0.708</td></tr><tr><td>AdvFGSM80</td><td>0.228</td><td>0.644</td><td>0.529</td><td>:</td><td>0.087</td><td>0.086</td></tr><tr><td>LWAFGSM Sens FGSM</td><td>0.223 0.223</td><td>0.283 0.342</td><td>0.692 0.701</td><td>:</td><td>0.652 0.663</td><td>0.125 0.106</td></tr><tr><td rowspan="6">n=0.2</td><td>No defense</td><td>0.222</td><td>0.825</td><td>0.692</td><td>: :</td><td>0.819</td><td>0.969</td></tr><tr><td>AdvFGSM1</td><td>0.216</td><td>0.642</td><td>0.630</td><td>:</td><td>0.609</td><td>0.264</td></tr><tr><td>Adv FGSM2</td><td>0.305</td><td>0.579</td><td>0.290</td><td>:</td><td>0.599</td><td>0.556</td></tr><tr><td>AdvFGSM80</td><td>0.218</td><td>0.445</td><td>0.502</td><td>·</td><td>0.078</td><td>0.078</td></tr><tr><td>LWAFGSM</td><td>0.209</td><td>0.689</td><td>0.666</td><td>··</td><td>0.615</td><td>0.105</td></tr><tr><td>Sens FGSM</td><td>0.209</td><td>0.713</td><td>0.672</td><td>:</td><td>0.637</td><td>0.073</td></tr><tr><td rowspan="6">n=0.3</td><td>No defense AdvFGSM1</td><td>0.222</td><td>0.869</td><td>0.891</td><td>:</td><td>0.877</td><td>0.955</td></tr><tr><td></td><td>0.214</td><td>0.668</td><td>0.628</td><td>:</td><td>0.642</td><td>0.424</td></tr><tr><td>Adv FGSM2</td><td>0.205</td><td>0.499</td><td>0.407</td><td>:</td><td>0.514</td><td>0.389</td></tr><tr><td>AdvFGSM80</td><td>0.223</td><td>0.471</td><td>0.324</td><td>:</td><td>0.081</td><td>0.084</td></tr><tr><td>LWAFGSM</td><td>0.215</td><td>0.686</td><td>0.634</td><td>:</td><td>0.640</td><td>0.215</td></tr><tr><td>Sens FGSM</td><td>0.213</td><td>0.715</td><td>0.628</td><td>·</td><td>0.652</td><td>0.089</td></tr><tr><td rowspan="6">n=0.4</td><td>No defense AdvFGSM1</td><td>0.222</td><td>0.884</td><td>0.899</td><td>:</td><td>0.892</td><td>0.941</td></tr><tr><td></td><td>0.208</td><td>0.702</td><td>0.687</td><td>:</td><td>0.697</td><td>0.536</td></tr><tr><td>Adv FGSM2</td><td>0.206</td><td>0.592</td><td>0.546</td><td>:</td><td>0.618</td><td>0.545</td></tr><tr><td>AdvFGSM80</td><td>0.225</td><td>0.497</td><td>0.385</td><td>:</td><td>0.121</td><td>0.124</td></tr><tr><td>LWAFGSM</td><td>0.210</td><td>0.693</td><td>0.639</td><td>:</td><td>0.626</td><td>0.173</td></tr><tr><td>Sens FGSM</td><td>0.214</td><td>0.714</td><td>0.635</td><td>·</td><td>0.640</td><td>0.109</td></tr></table>
352
+
353
+ Table 9: Error rates of FGSM vs learning-based attack network (AttNet) on various adversariallytrained classifiers for CIFAR-10. FGSM-curr/AttNet-curr means they are computed/trained for the specific classifier on the leftmost column. Note that FGSM fails to attack against the ‘hardened’ networks (Adv FGSM80 and Sens FGSM), but AttNet can still attack them successfully.
354
+
355
+ <table><tr><td rowspan="2">Defense\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan="2">n=0.1</td><td colspan="2">=0.2</td></tr><tr><td>No defense</td><td>0.976</td><td>0.740</td><td>0.969</td><td>0.905</td></tr><tr><td>Adv FGSM1</td><td>0.245</td><td>0.999</td><td>0.264</td><td>1.000</td></tr><tr><td>Adv FGSM80</td><td>0.086</td><td>1.000</td><td>0.078</td><td>1.000</td></tr><tr><td>Sens FGSM</td><td>0.106</td><td>0.898</td><td>0.073</td><td>0.979</td></tr><tr><td rowspan="4">No defense Adv FGSM1 AdvFGSM80</td><td colspan="2">m=0.3</td><td colspan="2">m=0.4</td></tr><tr><td>0.955</td><td>0.888</td><td>0.941</td><td>0.999</td></tr><tr><td>0.424</td><td>1.000</td><td>0.536</td><td>1.000</td></tr><tr><td>0.084</td><td>1.000</td><td>0.124</td><td>0.900</td></tr><tr><td rowspan="2">Sens FGSM</td><td rowspan="2">0.089</td><td rowspan="2">1.000</td><td rowspan="2">0.109</td></tr><tr><td>1.000</td></tr></table>
356
+
357
+ <table><tr><td rowspan="2">Defense\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan="2">n=0.1</td><td colspan="2">m=0.2</td></tr><tr><td>Minimax</td><td>0.967</td><td>0.276</td><td>0.980</td><td>0.418</td></tr><tr><td>Alt</td><td>0.994</td><td>0.264</td><td>0.996</td><td>0.857</td></tr><tr><td>Sens FGSM</td><td>0.106</td><td>0.898</td><td>0.073</td><td>0.979</td></tr><tr><td rowspan="3">Minimax Alt</td><td>n=0.3</td><td></td><td>m=0.4</td><td></td></tr><tr><td>0.967</td><td>0.875</td><td>0.931</td><td>0.994</td></tr><tr><td>0.987</td><td>0.896</td><td>0.958</td><td>1.000</td></tr><tr><td>Sens FGSM</td><td>0.089</td><td>1.000</td><td>0.109</td><td>1.000</td></tr></table>
358
+
359
+ Table 10: Error rates of Minimax-, Alt-, and adversarially-trained (Sens FGSM) classifiers for MNIST. While Minimax and Alt are both vulnerable to AttNet attacks, Minimax is much less vulnerable than Alt at $\eta = 0 . 2$ .
parse/train/ByqFhGZCW/ByqFhGZCW_content_list.json ADDED
@@ -0,0 +1,1675 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "MACHINE VS MACHINE: MINIMAX-OPTIMAL DEFENSE AGAINST ADVERSARIAL EXAMPLES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 732,
10
+ 146
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
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Recently, researchers have discovered that the state-of-the-art object classifiers can be fooled easily by small perturbations in the input unnoticeable to human eyes. It is known that an attacker can generate strong adversarial examples if she knows the classifier parameters. Conversely, a defender can robustify the classifier by retraining if she has the adversarial examples. The cat-and-mouse game nature of attacks and defenses raises the question of the presence of equilibria in the dynamics. In this paper, we present a neural-network based attack class to approximate a larger but intractable class of attacks, and formulate the attacker-defender interaction as a zero-sum leader-follower game. We present sensitivity-penalized optimization algorithms to find minimax solutions, which are the best worst-case defenses against whitebox attacks. Advantages of the learning-based attacks and defenses compared to gradient-based attacks and defenses are demonstrated with MNIST and CIFAR-10. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 764,
44
+ 444
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 469,
55
+ 336,
56
+ 486
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Recently, researchers have made an unsettling discovery that the state-of-the-art object classifiers can be fooled easily by small perturbations in the input unnoticeable to human eyes (Szegedy et al., 2013; Goodfellow et al., 2014b). Following studies tried to explain the cause of the seeming failure of deep learning toward such adversarial examples. The vulnerability was ascribed to linearity (Szegedy et al., 2013), low flexibility (Fawzi et al., 2015), or the flatness/curvedness of decision boundaries (Moosavi-Dezfooli et al., 2017), but a more complete picture is still under research. This is troublesome since such a vulnerability can be exploited in critical situations such as an autonomous car misreading traffic signs or a facial recognition system granting access to an impersonator without being noticed. Several methods of generating adversarial examples were proposed (Goodfellow et al., 2014b; Moosavi-Dezfooli et al., 2016; Carlini & Wagner, 2017), most of which use the knowledge of the classifier to craft examples. In response, a few defense methods were proposed: retraining target classifiers with adversarial examples called adversarial training (Szegedy et al., 2013; Goodfellow et al., 2014b); suppressing gradient by retraining with soft labels called defensive distillation (Papernot et al., 2016); hardening target classifiers by training with an ensemble of adversarial examples (Tramer et al., 2017). \\` ",
63
+ "bbox": [
64
+ 174,
65
+ 501,
66
+ 825,
67
+ 708
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper we focus on whitebox attacks, that is, the model and the parameters of the classifier are known to the attacker. This requires a more robust classifier or defense method than simply relying on the secrecy of the parameters as defense. When the classifier parameters are known to an attacker, existing attack methods are very successful at fooling the classifiers. Conversely, when the attack is known to the classifier, e.g., in the form of adversarial examples, one can weaken the attack by retraining the classifier with adversarial examples, called adversarial training. However, if we repeat adversarial sample generation and adversarial training back-to-back, it is observed that the current adversarially-trained classifier is no longer robust to previous attacks (see Sec. 3.1.) To find the classifier robust against the class of gradient-based attacks, we first propose a sensitivitypenalized optimization procedure. Experiments show that the classifier from the procedure is more robust than adversarially-trained classifiers against previous attacks, but it still remains vulnerable to some degrees. This raises the main question of the paper: Can a classifier be robust to all types of attacks? The answer seems to be negative in light of the strong adversarial examples that can be crafted by direct optimization procedures from Huang et al. (2015) or Carlini & Wagner (2017). Note that the class of optimization-based attack is very large, as there is no restriction on the adversarial patterns that can be generated except for certain bounds such as $l _ { p }$ -norm bounds. The vastness of the optimization-based attack class is a hindrance to the study of the problem, as the defender cannot learn efficiently about the attack class from a finite number of samples. To study the problem analytically, we use a class of learning-based attack that can be generated by a class of neural networks. This class of attack can be considered an approximation of the class of optimization -based attacks, in that the search space of optimal perturbation is restricted to the parameter space of a neural network architecture, e.g., all perturbations that can be generated by fully-connected 3- layer ReLU networks. Similar to what we propose, others have recently considered training neural networks to generate adversarial examples (Nguyen & Sinha, 2017; Baluja & Fischer, 2017). While the proposed learning-based attack is weaker than the optimization-based attack, it can generate adversarial examples in test time with only single feedforward passes, which makes real-time attacks possible. We also show that the class of neural-network based attacks is quite different from the the class of gradient-based attacks (see Sec. 4.1.) ",
74
+ "bbox": [
75
+ 174,
76
+ 715,
77
+ 825,
78
+ 922
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 825,
89
+ 284
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Using the learning-based attack class, we introduce a continuous game formulation for analyzing the dynamics of attack-defense. The game is played by an attacker and a defender/classifier 1, where the attacker tries to maximize the risk of the classification task by perturbing input samples under certain constraints such as $l _ { p }$ -norm bounds, and the defender/classifier tries to adjust its parameters to minimize the same risk given the perturbed inputs. It is important to note that for adversarial attack problems, the performance of an attack or a defense cannot be measured in isolation, but only in pairs of (attack, defense). This is because the effectiveness of an attack/defense depends on the defense/attack it is against. As a two-player game, there may not be a dominant defense that is no less robust than all other defenses against all attacks. However, there is a natural notion of the best defense or attack in the worst case. Suppose one player moves first by choosing her parameters and the other player responds with the knowledge of the first player’s move. This is an example of a leader-follower game (Bruckner & Scheffer, 2011) for which there are two well-known ¨ states, the minimax and the maximin solutions if it is a constant-sum game. To find those solutions empirically, we propose a new continuous optimization method using the sensitivity penalization term. We show that the minimax solution from the proposed method is indeed different from the solution from the conventional alternating descent/ascent and is also more robust. We also show that the strength/weakness of the minimax-trained classifier is different from that of adversarially-trained classifiers for gradient-based attacks. The contributions of this paper are summarized as follows. ",
96
+ "bbox": [
97
+ 174,
98
+ 290,
99
+ 825,
100
+ 541
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• We provide a continuous game model to analyze adversarial example attacks and defenses, using the neural network-based attack class as a feasible approximation to a larger but intractable class of optimization-based attacks. \nWe demonstrate the difficulty of defending against multiple attack types and present the minimax defense as the best worst-case defense methods. \nWe propose a sensitivity-penalized optimization method (Alg. 1) to numerically find continuous minimax solutions, which is better than alternating descent/ascent. The proposed optimization method can also be used for other minimax problems beyond the adversarial example problem. ",
107
+ "bbox": [
108
+ 215,
109
+ 554,
110
+ 825,
111
+ 690
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The proposed methods are demonstrated with the MNIST and the CIFAR-10 datasets. For readability, details about experimental settings and the results with CIFAR-10 are presented in the appendix. ",
118
+ "bbox": [
119
+ 174,
120
+ 703,
121
+ 821,
122
+ 732
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 RELATED WORK ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 753,
133
+ 341,
134
+ 770
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Making a classifier robust to test-time adversarial attacks has been studied for linear (kernel) hyperplanes (Lanckriet et al., 2002), naive Bayes (Dalvi et al., 2004) and SVM (Globerson & Roweis, 2006), which also showed the game-theoretic nature of the robust classification problems. Since the recent discovery of adversarial examples for deep neural networks, several methods of generating adversarial samples were proposed (Szegedy et al., 2013; Goodfellow et al., 2014b; Huang et al., 2015; Moosavi-Dezfooli et al., 2016; Carlini & Wagner, 2017) as well as several methods of defense (Szegedy et al., 2013; Goodfellow et al., 2014b; Papernot et al., 2016; Tramer et al., 2017). These \\` papers considered static scenarios, where the attack/defense is constructed against a fixed opponent. ",
141
+ "bbox": [
142
+ 174,
143
+ 785,
144
+ 825,
145
+ 897
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "A few researchers have also proposed using a detector to detect and reject adversarial examples (Meng & Chen, 2017; Lu et al., 2017; Metzen et al., 2017). While we do not use detectors in this work, the minimax approach we proposed in the paper can be applied to train the detectors. ",
152
+ "bbox": [
153
+ 174,
154
+ 103,
155
+ 823,
156
+ 146
157
+ ],
158
+ "page_idx": 2
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "The idea of using neural networks to generate adversarial samples has appeared concurrently (Baluja & Fischer, 2017; Nguyen & Sinha, 2017). Similar to our paper, the two papers demonstrates that it is possible to generate strong adversarial samples by a learning approach. Baluja & Fischer (2017) explored different architectures for the “adversarial transformation networks” against several different classifiers. Nguyen & Sinha (2017) proposed “attack learning neural networks” to map clean samples to a region in the feature space where misclassification occurs and “defense learning neural networks” to map them back to the safe region. Instead of prepending the defense layers before the fixed classifier (Nguyen & Sinha, 2017), we retrain the whole classifier as a defense method. However, the key difference of our work to the two papers is that we consider the dynamics of a learning-based defense stacked with a learning-based attack, and the numerical computation of the optimal defense/attack by continuous optimization. ",
163
+ "bbox": [
164
+ 174,
165
+ 152,
166
+ 825,
167
+ 305
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "The alternating gradient-descent method for finding an equilibrium of a game has gained renewed interest since the introduction of Generative Adversarial Networks (GAN) (Goodfellow et al., 2014a). However, the instability of the alternating gradient-descent method has been known, and the “unrolling” method (Metz et al., 2016) was proposed to speed up the GAN training. The optimization algorithm proposed in the paper has a similarity with the unrolling method, but it is simpler (corresponding to a single-step unrolling) and involves a gradient-norm regularization which can be interpreted intuitively as sensitivity penalization (Gu & Rigazio, 2014; Lyu et al., 2015). Lastly, the framework of minimax risks was also studied in Hamm (2016) for the purpose of privacy preservation. We propose a different algorithm in this paper, but we also show that the attack on classification and the attack on privacy are the two sides of the same optimization problem with the opposite goals. ",
174
+ "bbox": [
175
+ 174,
176
+ 311,
177
+ 825,
178
+ 452
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "3 CAT-AND-MOUSE GAME ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 176,
188
+ 473,
189
+ 405,
190
+ 488
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "A classifier whose parameters are known to an attacker is easy to attack. Conversely, an attacker whose sample-generating method is known to a classifier is easy to defend from. In this section, we demonstrate the cat-and-mouse nature of the interaction, using adversarial training (Adv Train) as defense and the fast gradient sign method (FGSM) (Goodfellow et al., 2014b) and the iterative version (IFGSM) (Kurakin et al., 2016a) as attacks. We then show that the equilibrium, if it exists, can be found more efficiently by directly solving a sensitivity-penalized optimization problem. ",
197
+ "bbox": [
198
+ 174,
199
+ 503,
200
+ 825,
201
+ 588
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "3.1 A NAIVE APPROACH",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 176,
211
+ 606,
212
+ 354,
213
+ 619
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "Suppose $g$ is a classifier $g : \\mathcal { X } \\mathcal { Y }$ and $l ( g ( x ) , y )$ is a loss function. The FGSM attack generates a perturbed example $z ( x )$ given the clean sample $x$ as follows: ",
220
+ "bbox": [
221
+ 171,
222
+ 631,
223
+ 823,
224
+ 660
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "equation",
230
+ "img_path": "images/238fd593deb329b28b9b60c0e96fac886517ea8b06c5b7529e6a20974fbd7992.jpg",
231
+ "text": "$$\nz ( x ) = x + \\eta \\mathrm { s i g n } ( \\nabla _ { x } l ( g ( x ) , y ) ) .\n$$",
232
+ "text_format": "latex",
233
+ "bbox": [
234
+ 382,
235
+ 667,
236
+ 616,
237
+ 685
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "The clean input images we use here are $l _ { \\infty }$ -normalized, that is, all pixel values are in the range $[ - 1 , 1 ]$ . It was argued that the use of true label $y$ results in “label leaking” (Kurakin et al., 2016b), but we use will true labels in the paper for simplicity. For another attack example, the IFGSM attack iteratively refines an adversarial example by the following update ",
244
+ "bbox": [
245
+ 174,
246
+ 691,
247
+ 825,
248
+ 748
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "equation",
254
+ "img_path": "images/286478ac7be38308cddc4a0b93c786028c334db75c126a469d46706c52b0fc23.jpg",
255
+ "text": "$$\n\\begin{array} { r } { z _ { i + 1 } = \\mathrm { c l i p } _ { x , \\eta } ( z _ { i } + \\eta \\mathrm { s i g n } ( \\nabla _ { z } l ( g ( z _ { i } ) , y ) ) ) , } \\end{array}\n$$",
256
+ "text_format": "latex",
257
+ "bbox": [
258
+ 351,
259
+ 755,
260
+ 642,
261
+ 773
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "where the clipping used in this paper is $\\begin{array} { r } { \\mathrm { c l i p } _ { x , \\eta } ( x ^ { \\prime } ) \\triangleq \\operatorname* { m i n } \\{ 1 , \\ x + \\eta , \\ \\operatorname* { m a x } \\{ - 1 , \\ x - \\eta , \\ x ^ { \\prime } \\} \\} . } \\end{array}$ ",
268
+ "bbox": [
269
+ 174,
270
+ 782,
271
+ 787,
272
+ 800
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Existing attack methods such as FGSM and IFGSM are very effective at fooling the classifier. Table 1 shows that the two methods are able to perfectly fool a convolutional neural network trained with clean images from MNIST. (Details of the classifier architecture and the settings are in the appendix.) ",
279
+ "bbox": [
280
+ 174,
281
+ 804,
282
+ 825,
283
+ 861
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "On the other hand, these attacks, if known to the classifier, can be weakened by retraining the classifier with the original dataset augmented by adversarial examples with ground-truth labels, known as adversarial training. In this paper we use the 1:1 mixture of the clean and the adversarial samples for adversarial training. Table 2 shows the result of adversarial training for different attacks. ",
290
+ "bbox": [
291
+ 174,
292
+ 867,
293
+ 823,
294
+ 924
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "table",
300
+ "img_path": "images/61a0d151715028422e0827d8618b1d1ad4f0a97fbe024990b187fd995a56068c.jpg",
301
+ "table_caption": [],
302
+ "table_footnote": [],
303
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"4\">FGSM</td><td colspan=\"4\">IFGSM</td></tr><tr><td>n=0.3</td><td>m=0.4</td><td>m=0.5</td><td>n=0.6</td><td>m=0.3</td><td>m=0.4</td><td>n=0.5</td><td>n=0.6</td></tr><tr><td>No defense</td><td>0.006</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr></table>",
304
+ "bbox": [
305
+ 215,
306
+ 101,
307
+ 781,
308
+ 145
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Table 1: Test error rates of FGSM and IFGSM attacks on an undefended convolutional neural network for MNIST. These attacks can cause perfect misclassification for the given range of $\\eta$ . ",
315
+ "bbox": [
316
+ 171,
317
+ 155,
318
+ 823,
319
+ 184
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "The test error rates for adversarial test examples after training become below $1 \\%$ indicating nearperfect avoidance. This is in stark contrast with the perfect misclassification of the undefended classifier in Table 1. ",
326
+ "bbox": [
327
+ 176,
328
+ 213,
329
+ 823,
330
+ 256
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "table",
336
+ "img_path": "images/d52068f43f9a24c47fea6ab25846ffe8092ce9a3072481bfd529abd4f21d60a3.jpg",
337
+ "table_caption": [
338
+ "Table 2: Error rates of FGSM and IFGSM attacks on adversarially-trained classifiers for MNIST. This defense can avert the attacks and achieve the error rates of the no-attack case. "
339
+ ],
340
+ "table_footnote": [],
341
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"4\">FGSM</td><td colspan=\"4\">IFGSM</td></tr><tr><td>n=0.3</td><td>n=0.4</td><td>m=0.5</td><td>n=0.6</td><td>n=0.3</td><td>n=0.4</td><td>m=0.5</td><td>n=0.6</td></tr><tr><td>Adv train</td><td>n/a</td><td>0.004</td><td>0.003</td><td>0.003</td><td>0.005</td><td>0.003</td><td>0.003</td><td>0.004</td><td>0.010</td></tr></table>",
342
+ "bbox": [
343
+ 217,
344
+ 266,
345
+ 782,
346
+ 310
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "A question arises as to what would happen if the procedure of 1) adversarial sample generation using the current classifier, and 2) retraining classifier using the current adversarial examples is repeated for many rounds. The answer to this cat-and-mouse game is easy to experiment although time-consuming. Let’s denote the attack on the original classifier as FGSM1, and the corresponding retrained classifier as Adv FGSM1. Repeating the procedure above generates the sequence of models $\\mathrm { F G S M 1 } \\to \\mathrm { A d v } \\ \\mathrm { F G S M 1 } \\to \\mathrm { F G S M 2 } \\to \\mathrm { A d v } \\ \\mathrm { F C }$ GSM2, etc. Fig. 1 shows one such trial with $8 0 +$ 80 rounds of the procedure. Initially, the attacker achieves near-perfect attacks (i.e., error rate $\\simeq 1$ ), and the defender achieves near-perfect defense (i.e., error rate $\\simeq 0$ ). As the iteration increases, the attacker becomes weaker with error rate $\\simeq 0 . 5$ , but the defense is still very successful, and the rate seems to oscillate persistently. While we can run more iterations to see if it converges, this is not a very principled nor efficient approach to find an equilibrium, if it exists. ",
353
+ "bbox": [
354
+ 173,
355
+ 367,
356
+ 826,
357
+ 522
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "image",
363
+ "img_path": "images/da60f7db9bd6b022adc7b3bbf142be95b5b59cdb173c6d20c6bf19032f4ee2e7.jpg",
364
+ "image_caption": [
365
+ "Figure 1: A cat-and-mouse game of FGSM attacks and adversarial training for MNIST. The upper red points are the error rates after adversarial training, and the lower green points are the error rates after FGSM attack $\\eta = 0 . 3 )$ . After 160 iterations, the error rate is still oscillating between 0 and 0.5. "
366
+ ],
367
+ "image_footnote": [],
368
+ "bbox": [
369
+ 179,
370
+ 539,
371
+ 818,
372
+ 645
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "3.2 GRADIENT-BASED ATTACKS AND SENSITIVITY PENALTY ",
379
+ "text_level": 1,
380
+ "bbox": [
381
+ 174,
382
+ 741,
383
+ 602,
384
+ 755
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "We can perform the cat-and-mouse simulation more efficiently by an optimization approach. Instead of training the classifier fully with adversarial examples and then regenerating adversarial examples, suppose we only update the classifier with a single gradient-descent step then regenerate adversarial examples. To emphasize the parameters $u$ of the classifier/defender $g ( x ; u )$ , let’s rewrite the empirical risk of classifying the perturbed data as ",
391
+ "bbox": [
392
+ 173,
393
+ 765,
394
+ 825,
395
+ 835
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "equation",
401
+ "img_path": "images/f618e9f5c6322863f784cdc06c2f8152b296bc9f2da59be15873608ac238e8a7.jpg",
402
+ "text": "$$\nf ( u , Z ) \\triangleq \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } l ( g ( z ( x _ { i } ) ; u ) , y _ { i } ) ,\n$$",
403
+ "text_format": "latex",
404
+ "bbox": [
405
+ 377,
406
+ 840,
407
+ 617,
408
+ 883
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "where $z ( x )$ denote an FGSM-like attack based on the loss gradient ",
415
+ "bbox": [
416
+ 173,
417
+ 888,
418
+ 611,
419
+ 904
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "equation",
425
+ "img_path": "images/aaaf0edcea2839f56c3855401a3bbbc4af2795d4fd743a43f5d1a9aa0b6dbcbc.jpg",
426
+ "text": "$$\n\\begin{array} { r } { z ( { \\boldsymbol x } ) \\gets { \\boldsymbol x } + \\eta \\nabla _ { z } l ( g ( z ( { \\boldsymbol x } ) ; { \\boldsymbol u } ) , y ) , } \\end{array}\n$$",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 382,
430
+ 907,
431
+ 611,
432
+ 925
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "and $Z = ( z _ { 1 } , . . . , z _ { N } ) \\triangleq ( z ( x _ { 1 } ) , . . . , z ( x _ { N } ) )$ is the sequence of perturbed examples. In expectation of the attack, the defender should choose $u$ to minimize $f ( u , Z ( u ) )$ where the dependence of the attack on the classifier $u$ is expressed explicitly. If we minimize $f$ using gradient descent ",
439
+ "bbox": [
440
+ 174,
441
+ 102,
442
+ 825,
443
+ 146
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/2c428e338c043f4f1f54a55ee5dc2ef2835960d54a2ab31c78e626eabd21481a.jpg",
450
+ "text": "$$\nu u - \\lambda \\frac { d f ( u , Z ) } { d u } ,\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 426,
454
+ 152,
455
+ 568,
456
+ 184
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "then from the chain rule, the total derivative $\\textstyle { \\frac { d f } { d u } }$ is ",
463
+ "bbox": [
464
+ 176,
465
+ 190,
466
+ 501,
467
+ 208
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "equation",
473
+ "img_path": "images/d39790e7acc812c937f96fafaa891caee2dda2377bb2f1e46f5045a591b44ba3.jpg",
474
+ "text": "$$\n{ \\frac { d f } { d u } } = { \\frac { \\partial f } { \\partial u } } + { \\frac { \\partial Z } { \\partial u } } { \\frac { \\partial f } { \\partial Z } } = { \\frac { \\partial f } { \\partial u } } + \\sum _ { i } { \\frac { \\partial z _ { i } } { \\partial u } } { \\frac { \\partial f } { \\partial z _ { i } } } = { \\frac { \\partial f } { \\partial u } } + { \\frac { \\eta } { N } } \\sum _ { i } { \\frac { \\partial ^ { 2 } l } { \\partial z _ { i } \\partial u } } { \\frac { \\partial l } { \\partial z _ { i } } }\n$$",
475
+ "text_format": "latex",
476
+ "bbox": [
477
+ 263,
478
+ 215,
479
+ 735,
480
+ 253
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "from (3) and (4). ",
487
+ "bbox": [
488
+ 174,
489
+ 260,
490
+ 285,
491
+ 275
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "Interestingly, this total derivative (6) at the current state coincides with the gradient $\\nabla _ { u }$ of the following cost ",
498
+ "bbox": [
499
+ 173,
500
+ 281,
501
+ 823,
502
+ 310
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "equation",
508
+ "img_path": "images/17d8ee8c730a731fc5643461eaaeb2f34ade1c9acfc0f9aa38145562ed2494b3.jpg",
509
+ "text": "$$\nf _ { \\mathrm { s e n s } } ( u ) \\triangleq f ( u , Z ) + \\frac { \\gamma } { 2 } \\left\\| \\frac { \\partial f ( u , Z ) } { \\partial Z } \\right\\| ^ { 2 } = f ( u , Z ) + \\frac { \\eta } { 2 N } \\sum _ { i = 1 } ^ { N } \\left\\| \\frac { \\partial l ( g ( z _ { i } ; u ) , y _ { i } ) } { \\partial z _ { i } } \\right\\| ^ { 2 }\n$$",
510
+ "text_format": "latex",
511
+ "bbox": [
512
+ 232,
513
+ 315,
514
+ 764,
515
+ 359
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "where $\\gamma = \\eta N$ . There are two implications. Interpretation-wise, this cost function is the sum of the original risk $f$ and the ‘sensitivity’ term $\\| \\partial f / \\partial Z \\| ^ { 2 }$ which penalizes abrupt changes of the risk w.r.t. the input. Therefore, $u$ is chosen at each iteration to not only decrease the risk but also to make the classifier insensitive to input perturbation so that the attacker cannot take advantage of large gradients. The idea of minimizing the sensitivity to input is a familiar approach in robustifying classifiers (Gu & Rigazio, 2014; Lyu et al., 2015). Secondly, the new formulation can be implemented easily. The gradient descent update using the seemingly complicated gradient (6) can be replaced by the gradient descent update of (7). The capability of automatic differentiation (Rall, 1981) in modern machine learning libraries can be used to compute the gradient of (7) efficiently. Using this direct approach, we can find the defense parameters $u$ which will be robust to gradient-based attacks. Fig. 2 shows the decrease of test error during training using the this gradient descent approach for MNIST. It only takes a very small fraction of time to reach the final states of the Fig. 2 compared to that of Fig. 1. ",
522
+ "bbox": [
523
+ 173,
524
+ 364,
525
+ 825,
526
+ 546
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "image",
532
+ "img_path": "images/7d60a9f66246467edbdc5b42d1f2c5b63e1328b9fe50e235eff32588b2fd4e1a.jpg",
533
+ "image_caption": [
534
+ "Figure 2: Convergence of test error rates for sensitivity-penalized optimization (7) with MNIST. "
535
+ ],
536
+ "image_footnote": [],
537
+ "bbox": [
538
+ 176,
539
+ 560,
540
+ 820,
541
+ 642
542
+ ],
543
+ "page_idx": 4
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "There is also an important difference between the solution of the cat-and-mouse game and the minimizer of (7). Table 3 shows that the adversarially trained classifier (Adv FGSM1) is robust to both clean data and FGSM1 attack, but is susceptible to FGSM2 attack, displaying the cat-and-mouse nature. The same holds for Adv FGSM2, Adv FGSM3, etc. After 80 rounds of the cat-and-mouse procedure, the classifier Adv FGSM80 becomes robust to FGSM80 as well as moderately robust to other attacks including FGSM81 $\\circleddash$ FGSM-curr). However, the classifier Sens FGSM from direct minimization of (7) is even more robust toward FGSM-curr than Adv FGSM80 and is overall the best. To see the advantage of the sensitivity term in (7), we also performed the minimization of (7) without the sensitivity term under the same conditions as Sens FGSM. This optimization method is similar to the method proposed in Huang et al. (2015), referred to as Learning with Adversaries (LWA FGSM). In the table, one can see that Sens FGSM is also better than LWA FGSM overall, although the difference is small. ",
548
+ "bbox": [
549
+ 173,
550
+ 694,
551
+ 825,
552
+ 861
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "Note that Sens FGSM is better than other adversarially-trained classifiers, it too is still vulnerable to attacks such as FGSM80. This vulnerability raises the question if it is possible to make a classifier robust to any type of attacks, or more practically, robust to at least a large class of attacks. We discuss this issue in the next section. ",
559
+ "bbox": [
560
+ 174,
561
+ 867,
562
+ 823,
563
+ 922
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "table",
569
+ "img_path": "images/4b21994081895c9731eb34cc38b7dd7573c4aecfee8cfbfa9ecd93d6296def02.jpg",
570
+ "table_caption": [
571
+ "Table 3: Error rates of different attacks on various adversarially-trained classifiers for MNIST. FGSM-curr means the FGSM attack on the specific classifier on the left. Adv FGSM is the classifier adversarially trained with FGSM attacks. Sens FGSM is the result of minimizing (7) by gradient descent (5). LWA FGSM is the result of minimizing (7) without the gradient-norm term. "
572
+ ],
573
+ "table_footnote": [],
574
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"3\">FGSM</td><td rowspan=\"2\">FGSM-curr</td></tr><tr><td>FGSM1</td><td>FGSM2 :</td><td>FGSM80</td></tr><tr><td rowspan=\"5\">n=0.3</td><td>No defense Adv FGSM1</td><td>0.026 0.012</td><td>1.000 0.004</td><td>0.881 0.995</td><td>:</td><td>0.355 1.000</td></tr><tr><td></td><td></td><td>0.999</td><td>:</td><td>0.499</td><td>0.995</td></tr><tr><td>Adv FGSM2</td><td>0.012</td><td></td><td>0.002 :</td><td>0.505</td><td>0.995</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.335</td><td>0.273 :</td><td>0.009</td><td>0.442</td></tr><tr><td>LWAFGSM Sens FGSM</td><td>0.008</td><td>0.121</td><td>0.188 :</td><td>0.210 0.194</td><td>0.048 0.048</td></tr><tr><td rowspan=\"6\">m=0.4</td><td>No defense</td><td>0.009 0.026</td><td>0.104 1.000</td><td>0.176 0.944</td><td>: :</td><td>0.528 1.000</td></tr><tr><td>AdvFGSM1</td><td>0.013</td><td>0.003</td><td>0.984</td><td>0.589 :</td><td>0.984</td></tr><tr><td>AdvFGSM2</td><td>0.017</td><td>0.999</td><td>0.005 :</td><td>0.549</td><td>0.999</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.509</td><td>0.525</td><td>: 0.024</td><td>0.131</td></tr><tr><td>LWAFGSM</td><td>0.009</td><td>0.204</td><td>0.284</td><td>: 0.336</td><td>0.043</td></tr><tr><td>Sens FGSM</td><td>0.009</td><td>0.128</td><td>0.234</td><td>· 0.296</td><td>0.038</td></tr><tr><td rowspan=\"6\">m=0.5</td><td>No defense</td><td>0.026</td><td>1.000</td><td>0.931</td><td>:</td><td>0.662</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.010</td><td>0.002</td><td>0.970</td><td>:</td><td>0.724</td><td>0.970</td></tr><tr><td>Adv FGSM2</td><td>0.010</td><td>0.866</td><td>0.006</td><td>:</td><td>0.604</td><td>0.871</td></tr><tr><td>AdvFGSM80</td><td>0.008</td><td>0.653</td><td>0.559</td><td>:</td><td>0.023</td><td>0.089</td></tr><tr><td>LWAFGSM</td><td>0.009</td><td>0.248</td><td>0.260</td><td>:</td><td>0.432</td><td>0.035</td></tr><tr><td>Sens FGSM</td><td>0.009</td><td>0.266</td><td>0.285</td><td>:</td><td>0.365</td><td>0.039</td></tr><tr><td rowspan=\"6\">n=0.6</td><td>No defense</td><td>0.026</td><td>1.000</td><td>0.963</td><td>:</td><td>0.803</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.012</td><td>0.003</td><td>0.889</td><td>:</td><td>0.790</td><td>0.889</td></tr><tr><td>Adv FGSM2</td><td>0.008</td><td>0.649</td><td>0.007</td><td>:</td><td>0.687</td><td>0.767</td></tr><tr><td>AdvFGSM80</td><td>0.009</td><td>0.439</td><td>0.426</td><td>:</td><td>0.020</td><td>0.021</td></tr><tr><td>LWAFGSM</td><td>0.011</td><td>0.317</td><td>0.315</td><td>:</td><td>0.488</td><td>0.034</td></tr><tr><td>Sens FGSM</td><td>0.010</td><td>0.264</td><td>0.244</td><td>:</td><td>0.465</td><td>0.033</td></tr></table>",
575
+ "bbox": [
576
+ 207,
577
+ 102,
578
+ 790,
579
+ 433
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "4 GAME FORMULATION ",
586
+ "text_level": 1,
587
+ "bbox": [
588
+ 174,
589
+ 530,
590
+ 387,
591
+ 546
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "In this section, we consider the class of optimization-based attack and the class of neural-network based attacks as an approximation of the former. Using the neural-network based attack class, we formulate the attacker-defender dynamics as a game and discuss two types of equilibria – the minimax and the maximin solutions. We present algorithms that generalize the approach presented in the previous section. ",
598
+ "bbox": [
599
+ 173,
600
+ 560,
601
+ 825,
602
+ 631
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "4.1 LEARNING-BASED ATTACK ",
609
+ "text_level": 1,
610
+ "bbox": [
611
+ 174,
612
+ 648,
613
+ 400,
614
+ 662
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "An attacker $z ( x ) : \\mathcal { X } \\mathcal { X }$ can be more general than a specific class of attacks such as FGSM. Again, let $g : \\mathcal { X } \\mathcal { Y }$ is a classifier parameterized by $u$ and $l ( g ( x ; u ) , y )$ is a loss function. If time complexity is not an issue, the following optimization-based attack (Huang et al., 2015) ",
621
+ "bbox": [
622
+ 176,
623
+ 674,
624
+ 825,
625
+ 717
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "equation",
631
+ "img_path": "images/c61b4b1425c5d1b499893c1ee84a0ca194ab2ed211e7ced7083e8ba394786c1d.jpg",
632
+ "text": "$$\n\\operatorname* { m a x } _ { Z = ( z _ { 1 } , \\ldots , z _ { N } ) } \\left[ f ( u , Z ) \\triangleq \\frac { 1 } { N } \\sum _ { i } l ( g ( z _ { i } ; u ) , y _ { i } ) \\right] = \\frac { 1 } { N } \\sum _ { i } \\operatorname* { m a x } _ { z _ { i } } \\ l ( g ( z _ { i } ; u ) , y _ { i } ) ,\n$$",
633
+ "text_format": "latex",
634
+ "bbox": [
635
+ 238,
636
+ 722,
637
+ 754,
638
+ 765
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "which is also related to the CW attack (Carlini & Wagner, 2017), can generate strong adversarial examples, where adversarial patterns $Z = ( z _ { 1 } , . . . , z _ { N } )$ are unrestricted except for the bounds such as $\\| z _ { i } - x _ { i } \\| _ { p } \\leq \\eta$ . The corresponding class of adversarial patterns $Z$ is very large, which results in strong but non-generalizable adversarial examples. Non-generalizable means the perturbation $z ( x )$ has to be recomputed for every new test sample $x$ . While the class of optimization-based attacks is powerful, its large size makes it difficult to analytically study the optimal defense methods. To make the problem learnable, we restrict the class of patterns $Z$ to that which can be generated by a flexible but manageable class of perturbation $\\{ z ( \\cdot ; v ) \\mid \\forall v \\in V \\}$ , e.g., an autoencoder of a fixed architecture where the parameter $v$ is the network weights. This class is a clearly an approximation to the class of full optimization-based attacks, but is generalizable, i.e., no time-consuming optimization is required in the test phase but only single feedforward passes. The attack network (AttNet), as we call it, can be of any class of appropriate neural networks. Here we use a three-layer fully-connected network with 300 hiddens units per layer in this paper. Different from Nguyen & Sinha (2017) or Baluja & Fischer (2017), we feed the label $y$ into the input of the network along with the features $x$ . This is analogous to using the true label $y$ in the original FGSM. While this label input is optional but it can make the training of the attacker network easier. As with other attacks, we impose the $l _ { \\infty }$ -norm constraint on $z$ , i.e., $\\| z ( x ) - x \\| _ { \\infty } \\leq \\eta$ . ",
645
+ "bbox": [
646
+ 173,
647
+ 770,
648
+ 825,
649
+ 924
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "",
656
+ "bbox": [
657
+ 174,
658
+ 103,
659
+ 825,
660
+ 189
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Suppose now $f ( u , v )$ is the empirical risk of a classifier-attacker pair where the input $x$ is first transformed by attack network $z ( x ; v )$ and then fed to the classifier $g ( z ( x ; v ) ; u )$ . The attack network can be trained by gradient descent as well. Given a classifier $u$ , we can use gradient descent ",
667
+ "bbox": [
668
+ 174,
669
+ 194,
670
+ 825,
671
+ 236
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "equation",
677
+ "img_path": "images/568704f18005db088c80e92dca454ff83663c8fad4433282fa2700015e9acea5.jpg",
678
+ "text": "$$\nv v + \\sigma { \\frac { \\partial f ( u , v ) } { \\partial v } }\n$$",
679
+ "text_format": "latex",
680
+ "bbox": [
681
+ 429,
682
+ 242,
683
+ 566,
684
+ 275
685
+ ],
686
+ "page_idx": 6
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "to find an optimal attacker $v$ that maximizes the risk $f$ assuming the classifier $u$ is fixed. Table 4 compares the error rates of the FGSM attacks and the attack network (AttNet). The table shows that AttNet is better than or comparable to FGSM in all cases. In particular, we already observed that the FGSM attack is no more effective against the classifier hardened against gradient-based attacks (Adv FGSM80 or Sens FGSM), but the AttNet can incur significant error $( > \\sim 0 . 9 )$ for those hardened defenders. This indicates that the class of learning-based attacks is indeed different from the class of gradient-based attacks. ",
691
+ "bbox": [
692
+ 173,
693
+ 280,
694
+ 825,
695
+ 377
696
+ ],
697
+ "page_idx": 6
698
+ },
699
+ {
700
+ "type": "table",
701
+ "img_path": "images/4e362c1d948f8b5cbafeb904b26919a7028880a023240bdff465e4c53968ac8b.jpg",
702
+ "table_caption": [],
703
+ "table_footnote": [],
704
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan=\"2\">n=0.3</td><td colspan=\"2\">n=0.4</td></tr><tr><td>No defense</td><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr><tr><td>AdvFGSM1</td><td>0.996</td><td>1.000</td><td>0.984</td><td>1.000</td></tr><tr><td>AdvFGSM80</td><td>0.473</td><td>0.899</td><td>0.131</td><td>0.903</td></tr><tr><td>Sens FGSM</td><td>0.048</td><td>0.965</td><td>0.038</td><td>0.902</td></tr><tr><td rowspan=\"4\">No defense Adv FGSM1 AdvFGSM80</td><td colspan=\"2\">m=0.5</td><td colspan=\"2\">m=0.6</td></tr><tr><td>1.000</td><td>1.000</td><td>1.000</td><td>1.000</td></tr><tr><td>0.985</td><td>1.000</td><td>0.966</td><td>1.000</td></tr><tr><td>0.089</td><td>0.897 1.000</td><td>0.021</td><td>0.897</td></tr><tr><td rowspan=\"2\">Sens FGSM</td><td colspan=\"2\">0.039</td><td colspan=\"2\">0.033 0.903</td></tr></table>",
705
+ "bbox": [
706
+ 261,
707
+ 390,
708
+ 735,
709
+ 535
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Table 4: Error rates of FGSM vs learning-based attack network (AttNet) on various adversariallytrained classifiers for MNIST. FGSM-curr/AttNet-curr means they are computed/trained for the specific classifier on the leftmost column. Note that FGSM fails to attack hardened networks (Adv FGSM80 and Sens FGSM), whereas AttNet can still attack them successfully. ",
716
+ "bbox": [
717
+ 173,
718
+ 545,
719
+ 825,
720
+ 602
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "4.2 MINIMAX GAME FOR LEARNING-BASED ATTACKS ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 173,
730
+ 633,
731
+ 558,
732
+ 647
733
+ ],
734
+ "page_idx": 6
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Finally, we consider the dynamics of the pair of classifier-attacker when each player can change its parameters. Given the current classifier $u$ , an optimal whitebox attacker parameter $v$ is the maximizer of the risk $f ( u , v )$ ",
739
+ "bbox": [
740
+ 173,
741
+ 659,
742
+ 825,
743
+ 700
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "equation",
749
+ "img_path": "images/abda00d2f2aa78c8ec1257d5f2630101d6a8543b6ff5d006066fcdd42d27be7a.jpg",
750
+ "text": "$$\nv ^ { * } ( u ) \\triangleq \\arg \\operatorname* { m a x } _ { v } f ( u , v ) .\n$$",
751
+ "text_format": "latex",
752
+ "bbox": [
753
+ 411,
754
+ 699,
755
+ 586,
756
+ 723
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "Consequently, the defender should choose the classifier parameters $u$ such that the maximum risk is minimized ",
763
+ "bbox": [
764
+ 174,
765
+ 726,
766
+ 826,
767
+ 752
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "equation",
773
+ "img_path": "images/3591a0c32e527f1326da459016c3149fb64cb1d322df9501f62495e2ce7d864f.jpg",
774
+ "text": "$$\nu ^ { * } \\triangleq \\arg \\operatorname* { m i n } _ { u } \\operatorname* { m a x } _ { v } f ( u , v ) = \\arg \\operatorname* { m i n } _ { u } f ( u , v ^ { * } ( u ) ) .\n$$",
775
+ "text_format": "latex",
776
+ "bbox": [
777
+ 330,
778
+ 751,
779
+ 668,
780
+ 773
781
+ ],
782
+ "page_idx": 6
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "This solution to the continuous minimax problem has a natural interpretation as the best worst-case solution. Assuming the attacker is optimal, i.e., it chooses the best attack from (10) given $u$ , no other defense can achieve a lower risk than the minimax defense $u ^ { * }$ in (11). The minimax defense is also a conservative defense. If the attacker is not optimal, and/or if the attack does not know the defense $u$ exactly (as in blackbox attacks), the actual risk can be lower than what the minimax solution $f ( u ^ { * } , v ^ { * } ( u ^ { * } ) )$ predicts. Before proceeding further, we point out that the claims above apply to the global minimizer $u ^ { * }$ and the maximizer function $v ^ { \\ast } ( \\cdot )$ , but in practice we can only find local solutions for complex risk functions of deep classifiers and attackers. ",
787
+ "bbox": [
788
+ 173,
789
+ 776,
790
+ 825,
791
+ 888
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "To solve (11), we analyze the problem similarly to (5)-(7) from the previous section. At each iteration, the defender should choose $u$ in expectation of the attack and minimize $f ( u , v ^ { * } ( u ) )$ . We use ",
798
+ "bbox": [
799
+ 173,
800
+ 895,
801
+ 823,
802
+ 924
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "gradient descent ",
809
+ "bbox": [
810
+ 174,
811
+ 104,
812
+ 282,
813
+ 118
814
+ ],
815
+ "page_idx": 7
816
+ },
817
+ {
818
+ "type": "equation",
819
+ "img_path": "images/8408588fb63d97e2a23750d31b06dc979d87743e54ff87543aaf27503f46f6ae.jpg",
820
+ "text": "$$\nu u - \\lambda \\frac { d f ( u , v ^ { * } ( u ) ) } { d u } ,\n$$",
821
+ "text_format": "latex",
822
+ "bbox": [
823
+ 413,
824
+ 116,
825
+ 581,
826
+ 147
827
+ ],
828
+ "page_idx": 7
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "where the total derivative $\\textstyle { \\frac { d f } { d u } }$ is ",
833
+ "bbox": [
834
+ 174,
835
+ 150,
836
+ 380,
837
+ 167
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "equation",
843
+ "img_path": "images/0c6d8f778d027fa1e57203f07a6ef88c61e1ecb9b90c361e8d80d96e84dbf2d4.jpg",
844
+ "text": "$$\n\\frac { d f } { d u } = \\frac { \\partial f ( u , v ^ { * } ( u ) ) } { \\partial u } + \\frac { \\partial v ^ { * } ( u ) } { \\partial u } \\frac { \\partial f ( u , v ) } { \\partial v } .\n$$",
845
+ "text_format": "latex",
846
+ "bbox": [
847
+ 362,
848
+ 174,
849
+ 637,
850
+ 207
851
+ ],
852
+ "page_idx": 7
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Since the exact maximizer $v ^ { * } ( u )$ is difficult to find, we only update $v$ incrementally by one (or more) steps of gradient-ascent update ",
857
+ "bbox": [
858
+ 173,
859
+ 212,
860
+ 823,
861
+ 241
862
+ ],
863
+ "page_idx": 7
864
+ },
865
+ {
866
+ "type": "equation",
867
+ "img_path": "images/04abe8a1d6f7d7ae70cdcd35615888684727ba2974bc65eb980effb4a1618dc1.jpg",
868
+ "text": "$$\nv v + \\sigma \\frac { \\partial f ( u , v ) } { \\partial v } .\n$$",
869
+ "text_format": "latex",
870
+ "bbox": [
871
+ 428,
872
+ 238,
873
+ 570,
874
+ 270
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "The resulting formulation is closely related to the unrolled optimization (Metz et al., 2016) proposed for training GANs, although the latter has a very different cost function $f$ . Using the single update (14), the total derivative is ",
881
+ "bbox": [
882
+ 174,
883
+ 271,
884
+ 825,
885
+ 313
886
+ ],
887
+ "page_idx": 7
888
+ },
889
+ {
890
+ "type": "equation",
891
+ "img_path": "images/4b1b9e328efcfe6296a09fceced6bb261ba8d1e08812b1205a01db60d5af8fb5.jpg",
892
+ "text": "$$\n\\frac { d f } { d u } = \\frac { \\partial f ( u , v ^ { * } ( u ) ) } { \\partial u } + \\sigma \\frac { \\partial ^ { 2 } f ( u , v ) } { \\partial u \\partial v } \\frac { \\partial f ( u , v ) } { \\partial v } .\n$$",
893
+ "text_format": "latex",
894
+ "bbox": [
895
+ 348,
896
+ 319,
897
+ 650,
898
+ 352
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Similar to hardening a classifier against gradient-based attacks by minimizing (7) at each iteration, the gradient update of $u$ for $f ( u , v )$ can be done using the gradient of the following sensitivitypenalized function ",
905
+ "bbox": [
906
+ 173,
907
+ 357,
908
+ 825,
909
+ 398
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "equation",
915
+ "img_path": "images/02b9234e9b7fc236058a2c414896dc8163be554267595dd8a22727352f48daa8.jpg",
916
+ "text": "$$\nf _ { \\mathrm { s e n s } } ( u ) \\triangleq f ( u , v ) + { \\frac { \\sigma } { 2 } } \\left\\| { \\frac { \\partial f ( u , v ) } { \\partial v } } \\right\\| ^ { 2 } .\n$$",
917
+ "text_format": "latex",
918
+ "bbox": [
919
+ 369,
920
+ 397,
921
+ 627,
922
+ 435
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "In other words, $u$ is chosen not only to minimize the risk but also to prevent the attacker from exploiting the sensitivity of $f$ to $v$ . The algorithm is summarized in Alg. 1. ",
929
+ "bbox": [
930
+ 173,
931
+ 436,
932
+ 826,
933
+ 465
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Algorithm 1 Minimax Optimization by Sensitivity Penalization ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 173,
943
+ 481,
944
+ 594,
945
+ 494
946
+ ],
947
+ "page_idx": 7
948
+ },
949
+ {
950
+ "type": "table",
951
+ "img_path": "images/a19d8d885972b682b106fde6c2846722aa774b01498d1c23cd261e1e270f20b8.jpg",
952
+ "table_caption": [],
953
+ "table_footnote": [],
954
+ "table_body": "<table><tr><td>Input: risk f(u,v),#of iterations T,learning rates (oi),(入i),(Yi)</td></tr><tr><td>Output: (u*,u*(u*))</td></tr><tr><td>Initialize uo,Uo Begin</td></tr><tr><td>for i=1, ...,T do</td></tr><tr><td>Max step:Ui=Ui-1+Oi af(ui-1,Ui-1) du</td></tr><tr><td>a Yi-1 of(ui-1,Ui-1 Min step: Ui = Ui-1- Xi f(ui-1,Ui-1)+</td></tr><tr><td>du 2 du</td></tr><tr><td>end for Return (UT,UT).</td></tr></table>",
955
+ "bbox": [
956
+ 173,
957
+ 497,
958
+ 669,
959
+ 651
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Note that this algorithm is actually independent of the adversarial example problem, and can be used for other minimax problems as well. ",
966
+ "bbox": [
967
+ 173,
968
+ 665,
969
+ 823,
970
+ 694
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "4.3 MINIMAX VS MAXIMIN PROBLEMS ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 176,
980
+ 712,
981
+ 455,
982
+ 726
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "In analogy with the minimax problem, we can also consider the maximin solution defined by ",
989
+ "bbox": [
990
+ 169,
991
+ 737,
992
+ 781,
993
+ 752
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "equation",
999
+ "img_path": "images/3cf2780c689d2a1fcd0fadbee49705076488fc818b583a716fac7cad77a2b68b.jpg",
1000
+ "text": "$$\nv ^ { * } \\triangleq \\arg \\operatorname* { m a x } _ { v } \\operatorname* { m i n } _ { u } f ( u , v ) = \\arg \\operatorname* { m a x } _ { v } f ( u ^ { * } ( v ) , v ) .\n$$",
1001
+ "text_format": "latex",
1002
+ "bbox": [
1003
+ 328,
1004
+ 758,
1005
+ 668,
1006
+ 782
1007
+ ],
1008
+ "page_idx": 7
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "where ",
1013
+ "bbox": [
1014
+ 174,
1015
+ 789,
1016
+ 217,
1017
+ 803
1018
+ ],
1019
+ "page_idx": 7
1020
+ },
1021
+ {
1022
+ "type": "equation",
1023
+ "img_path": "images/1d0f4652784378d25da69a61ab3eaba14011656e43cc34940f4a25e1b569eda9.jpg",
1024
+ "text": "$$\nu ^ { * } ( v ) \\triangleq \\arg \\operatorname* { m i n } _ { u } f ( u , v )\n$$",
1025
+ "text_format": "latex",
1026
+ "bbox": [
1027
+ 415,
1028
+ 800,
1029
+ 583,
1030
+ 823
1031
+ ],
1032
+ "page_idx": 7
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "is the minimizer function. Here we are abusing the notations for the minimax solution $u ^ { * }$ , the maximin solution $v ^ { * }$ , the minimizer $u ^ { * } ( \\cdot )$ , and the maximizer $v ^ { \\ast } ( \\cdot )$ . Similar to the minimax solution, the maximin solution has an intuitive meaning – it is the best worst-case solution for the attacker. Assuming the defender is optimal, i.e., it chooses the best defense from (18) that minimizes the risk $f ( u , v )$ given the attack $v$ , no other attack can inflict a higher risk than the maximin attack $v ^ { * }$ . It is also a conservative attack. If the defender is not optimal, and/or if the defender does not know the attack $v$ exactly, the actual risk can be higher than what the solution $f ( u ^ { * } ( v ^ { * } ) , v ^ { * } )$ predicts. Note that the maximin scenario where the defender knows the attack method is not very realistic but is the opposite of the minimax scenario and provides the lower bound. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 825,
1040
+ 825,
1041
+ 924
1042
+ ],
1043
+ "page_idx": 7
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "",
1048
+ "bbox": [
1049
+ 173,
1050
+ 103,
1051
+ 823,
1052
+ 132
1053
+ ],
1054
+ "page_idx": 8
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "To summarize, minimax and maximin defenses and attacks have the following inherent properties. ",
1059
+ "bbox": [
1060
+ 176,
1061
+ 138,
1062
+ 816,
1063
+ 154
1064
+ ],
1065
+ "page_idx": 8
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Lemma 1. Let $u ^ { * } , v ^ { * } ( u ) , v ^ { * } , u ^ { * } ( v )$ be the solutions of $( I I ) , ( I O ) , ( I 7 ) , ( I 8 ) .$ . ",
1070
+ "bbox": [
1071
+ 176,
1072
+ 157,
1073
+ 663,
1074
+ 174
1075
+ ],
1076
+ "page_idx": 8
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "1. $f ( u , v ^ { * } ( u ) ) \\geq f ( u , v )$ : For any given defense $u$ , the max attack $v ^ { * } ( u )$ is the most effective attack. \n2. $f ( u ^ { * } , v ^ { * } ( u ^ { * } ) ) \\leq f ( u , v ^ { * } ( u ) )$ : Against the optimal attack $v ^ { * } ( u )$ , the minimax defense $u ^ { * }$ is the most effective defense. \n3. $f ( u ^ { * } ( v ) , v ) \\leq f ( u , v )$ : For any given attack $v$ , the min defense $u ^ { * } ( v )$ is the most effective defense. \n4. $f ( u ^ { * } ( v ) , v ^ { * } ) \\geq f ( u ^ { * } ( v ) , v )$ : Against the optimal defense $u ^ { * } ( v )$ , the maximin attack $v ^ { * }$ is the most effective attack. \n5. $\\begin{array} { r } { \\operatorname* { m a x } _ { v } \\operatorname* { m i n } _ { u } f ( u , v ) \\leq \\operatorname* { m i n } _ { u } \\operatorname* { m a x } _ { v } f ( u , v ) . } \\end{array}$ : The risk of the best worst-case attack is lower than that of the best worst-case defense. ",
1081
+ "bbox": [
1082
+ 207,
1083
+ 183,
1084
+ 825,
1085
+ 366
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "These properties follow directly from the definitions. The lemma helps us to better understand the dependence of defense and attack, and gives us the range of the possible risk values which can be measured empirically. To find maximin solutions, we use the same algorithm (Alg. 1) except that the variables $u$ and $v$ are switched and the sign of $f$ is flipped before the algorithm is called. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 376,
1095
+ 825,
1096
+ 434
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "4.4 EXPERIMENTS ",
1103
+ "text_level": 1,
1104
+ "bbox": [
1105
+ 174,
1106
+ 450,
1107
+ 316,
1108
+ 464
1109
+ ],
1110
+ "page_idx": 8
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "In addition to minimax and maximin optimization, we also consider as a reference algorithm the alternating descent/ascent method used in GAN training Goodfellow et al. (2014a) ",
1115
+ "bbox": [
1116
+ 173,
1117
+ 477,
1118
+ 823,
1119
+ 505
1120
+ ],
1121
+ "page_idx": 8
1122
+ },
1123
+ {
1124
+ "type": "equation",
1125
+ "img_path": "images/147e2ee2190ccf320aae1d447badbf4e4464176c5ea733e0e9d1bbbe1aeca6f5.jpg",
1126
+ "text": "$$\nu u - \\lambda \\frac { \\partial f } { \\partial u } , \\quad v v + \\sigma \\frac { \\partial f } { \\partial v } .\n$$",
1127
+ "text_format": "latex",
1128
+ "bbox": [
1129
+ 385,
1130
+ 512,
1131
+ 612,
1132
+ 542
1133
+ ],
1134
+ "page_idx": 8
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Note that alternating descent/ascent finds local saddle points which are not necessarily minimax or maximin solutions, and therefore its solution will in general be different from the solution from Alg. 1. The difference of the solutions from three optimizations – Minimax, Maximin, and Alternating descent/ascent (Alt) – applied to a common problem, is demonstrated in Fig. 3. The figure shows the test error over the course of optimization starting from random initializations. One can see that Minimax (top blue curves) and Alt (middle green curves) converge to different values suggesting the learned classifiers will also be different. ",
1139
+ "bbox": [
1140
+ 173,
1141
+ 547,
1142
+ 825,
1143
+ 647
1144
+ ],
1145
+ "page_idx": 8
1146
+ },
1147
+ {
1148
+ "type": "image",
1149
+ "img_path": "images/d6e579cfdb700ba5473f7cc533f56179bcabe9de8be7ad689d37ca03e59cf7fd.jpg",
1150
+ "image_caption": [
1151
+ "Figure 3: Convergence of the test error rates for Minimax optimization (blue), Alternating ascent/descent (green), and Maximin optimization (red) for MNIST. "
1152
+ ],
1153
+ "image_footnote": [],
1154
+ "bbox": [
1155
+ 176,
1156
+ 659,
1157
+ 823,
1158
+ 833
1159
+ ],
1160
+ "page_idx": 8
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Table 5 compares the robustness of the classifiers trained by Minimax and Alt against the AttNet attack (1st/2nd rows and 2nd column for each $\\eta$ .) Minimax defense is more robust than Alt defense at $\\eta = 0 . 3$ (0.020 vs 0.104) and at $\\eta = 0 . 4$ (0.552 vs 0.873). For larger $\\eta$ ’s, both are unusably vulnerable. Different performance of the two classifiers implies that the minimax solution found by Alg. 1 is different from the local saddle point found by alternating descent/ascent. In addition, against FGSM attacks, Minimax is moderately robust $( 0 . 2 1 8 - 0 . 3 4 2 )$ despite that the classifiers are not specifically trained against gradient-based attacks. In contrast, Sens FGSM is very vulnerable (0.902 – 1.000) against AttNet which we have already observed. This result suggests that the class of AttNet attacks and the class of gradient-based attacks are indeed different, and the former class is larger than the latter. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 895,
1168
+ 823,
1169
+ 924
1170
+ ],
1171
+ "page_idx": 8
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "",
1176
+ "bbox": [
1177
+ 173,
1178
+ 102,
1179
+ 825,
1180
+ 215
1181
+ ],
1182
+ "page_idx": 9
1183
+ },
1184
+ {
1185
+ "type": "table",
1186
+ "img_path": "images/3e1eea3fa1848b46abe02616e7d7728597b570fe6a59a23cb5ad6669bd96715e.jpg",
1187
+ "table_caption": [
1188
+ "Table 5: Error rates of Minimax-, Alt-, and adversarially-trained (Sens FGSM) classifiers for MNIST. Minimax is overall better than Alt against AttNet-curr, and is also moderately robust against the out-of-class attack (FGSM-curr). "
1189
+ ],
1190
+ "table_footnote": [],
1191
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan=\"2\">m=0.3</td><td colspan=\"2\">n=0.4</td></tr><tr><td>Minimax</td><td>0.218</td><td>0.020</td><td>0.238</td><td>0.552</td></tr><tr><td>Alt</td><td>0.244</td><td>0.104</td><td>0.503</td><td>0.873</td></tr><tr><td>Sens FGSM</td><td>0.048</td><td>0.965</td><td>0.038</td><td>0.902</td></tr><tr><td rowspan=\"3\">Minimax Alt</td><td>m=0.5</td><td></td><td>m=0.6</td><td></td></tr><tr><td>0.342</td><td>1.000</td><td>0.299</td><td>1.000</td></tr><tr><td>0.289</td><td>0.902</td><td>0.157</td><td>0.899</td></tr><tr><td>Sens FGSM</td><td>0.039</td><td>1.000</td><td>0.033</td><td>0.903</td></tr></table>",
1192
+ "bbox": [
1193
+ 263,
1194
+ 228,
1195
+ 733,
1196
+ 349
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Lastly, the adversarial examples generated by various attacks in the paper have diverse patterns and are shown in Fig. 4 of the appendix. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 421,
1206
+ 823,
1207
+ 450
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "5 DISCUSSION ",
1214
+ "text_level": 1,
1215
+ "bbox": [
1216
+ 174,
1217
+ 469,
1218
+ 310,
1219
+ 487
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "5.1 ROBUSTNESS AGAINST MULTIPLE ATTACK TYPES ",
1226
+ "text_level": 1,
1227
+ "bbox": [
1228
+ 174,
1229
+ 502,
1230
+ 555,
1231
+ 517
1232
+ ],
1233
+ "page_idx": 9
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "We discuss some limitations of the framework and also propose an extension. Ideally, a defender should find a robust classifier against the worst attack from a very large class of attacks such as optimization-based attacks. However, it is difficult to train classifiers against attacks from a large class. On the other hand, if the class is too small, then the worst attack from that class is not representative of all possible worst attacks, and therefore the minimax defense found will not be robust to out-of-class attacks. The trade-off seems inevitable. ",
1238
+ "bbox": [
1239
+ 174,
1240
+ 527,
1241
+ 825,
1242
+ 613
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "It is, however, possible to build a defense against multiple specific types of attacks. Suppose $z _ { 1 } ( u ) , . . . , z _ { m } ( u )$ are $m$ different types of attacks, e.g., $z _ { \\mathrm { 1 } } \\mathrm { = F G S M }$ , $z _ { \\mathrm { 2 } } { = } \\mathrm { I F G S M }$ , etc. The minimax defense for the combined attack is the solution to the mixed continuous-discrete problem ",
1249
+ "bbox": [
1250
+ 174,
1251
+ 618,
1252
+ 825,
1253
+ 661
1254
+ ],
1255
+ "page_idx": 9
1256
+ },
1257
+ {
1258
+ "type": "equation",
1259
+ "img_path": "images/a810ae2dd4c734c8b67a09d862522c09079497b8185dcd881090e50216b734e0.jpg",
1260
+ "text": "$$\n\\operatorname* { m i n } _ { u } \\operatorname* { m a x } \\{ f ( u , z _ { 1 } ( u ) ) , . . . , f ( u , z _ { m } ( u ) ) \\} .\n$$",
1261
+ "text_format": "latex",
1262
+ "bbox": [
1263
+ 362,
1264
+ 667,
1265
+ 633,
1266
+ 691
1267
+ ],
1268
+ "page_idx": 9
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Additionally, suppose $z _ { m + 1 } ( u , v ) , . . . , z _ { m + n } ( u , v )$ are $n$ different types of learning-based attacks, e.g., $z _ { m + 1 } = 2$ -layer dense net, $z _ { m + 2 } = 5$ -layer convolutional nets, etc. The minimax defense against the mixture of multiple fixed-type and learning-based attacks can be found by solving ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 698,
1276
+ 825,
1277
+ 741
1278
+ ],
1279
+ "page_idx": 9
1280
+ },
1281
+ {
1282
+ "type": "equation",
1283
+ "img_path": "images/507b5a5e542f60ddeb4b9887d8ac22c243f0d2cc509730d509e7828835464155.jpg",
1284
+ "text": "$$\n\\operatorname* { m i n } _ { u } \\operatorname* { m a x } \\{ f ( u , z _ { 1 } ( u ) ) , \\dots , f ( u , z _ { m } ( u ) ) , \\operatorname* { m a x } _ { v } f ( u , z _ { m + 1 } ( u , v ) ) , \\dots , \\operatorname* { m a x } _ { v } f ( u , z _ { m + n } ( u , v ) ) \\} .\n$$",
1285
+ "text_format": "latex",
1286
+ "bbox": [
1287
+ 191,
1288
+ 747,
1289
+ 805,
1290
+ 770
1291
+ ],
1292
+ "page_idx": 9
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Due to the huge computational demand to solve (21), we leave it as a future work. ",
1297
+ "bbox": [
1298
+ 176,
1299
+ 781,
1300
+ 709,
1301
+ 797
1302
+ ],
1303
+ "page_idx": 9
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "5.2 ADVERSARIAL EXAMPLES AND PRIVACY ATTACKS ",
1308
+ "text_level": 1,
1309
+ "bbox": [
1310
+ 173,
1311
+ 814,
1312
+ 563,
1313
+ 829
1314
+ ],
1315
+ "page_idx": 9
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Lastly, we discuss a bigger picture of the game between adversarial players. The minimax optimization arises in the leader-follower game (Bruckner & Scheffer, 2011) with the constant sum constraint. ¨ The leader-follower setting makes sense because the defense $=$ classifier parameters) is often public knowledge and the attacker exploits the knowledge. Interestingly, the problem of the attack on privacy (Hamm, 2016) has a very similar formulation as the adversarial attack problem, different only in that the classifier is an attacker and the data perturbator is a defender. In the problem of privacy preservation against inference, the defender is a data transformer $z ( x )$ (parameterized by $u$ ) which perturbs the raw data, and the attacker is a classifier (parameterized by $v$ ) who tries to extract sensitive information such as identity from the perturbed data such as online activity of a person. The transformer is the leader, such as when the privacy mechanism is public knowledge, and the classifier is the follower as it attacks the given perturbed data. The risk for the defender is therefore the accuracy of the inference of sensitive information measured by $- E [ l ( \\boldsymbol { z } ( \\boldsymbol { x } ; \\boldsymbol { u } ) , \\boldsymbol { y } ; \\boldsymbol { v } ) ]$ . Solving the minimax risk problem $\\begin{array} { r l } { { ( \\operatorname* { m i n } _ { u } \\operatorname* { m a x } _ { v } - E [ l ( z ( x ; u ) , y ; v ) ] ) } \\quad } & { { } } \\end{array}$ gives us the best worst-case defense when the classifier/attacker knows the transformer/defender parameters, which therefore gives us a robust data transformer to preserve the privacy against the best inference attack (among the given class of attacks.) On the other hand, solving the maximin risk problem $\\begin{array} { r l } { } & { { } ( \\operatorname* { m a x } _ { v } \\operatorname* { m i n } _ { u } - \\bar { E } [ l ( \\bar { z ( x ; u ) } , y ; v ) ] ) } \\end{array}$ gives us the best worst-case classifier/attacker when its parameters are known to the transformer. As one can see, the problems of adversarial attack and privacy attack are two sides of the same coin which can be addressed by similar frameworks and optimization algorithms. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 839,
1323
+ 825,
1324
+ 924
1325
+ ],
1326
+ "page_idx": 9
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "",
1331
+ "bbox": [
1332
+ 174,
1333
+ 103,
1334
+ 825,
1335
+ 284
1336
+ ],
1337
+ "page_idx": 10
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "6 CONCLUSION ",
1342
+ "text_level": 1,
1343
+ "bbox": [
1344
+ 174,
1345
+ 304,
1346
+ 318,
1347
+ 320
1348
+ ],
1349
+ "page_idx": 10
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "In this paper, we present a continuous game formulation of adversarial attacks and defenses using a learning-based attack class implemented by neural networks. We show that this class of attacks is quite different from the gradient-based attacks. While a classifier robust to all types of attack may yet be an elusive goal, the minimax defense against the neural network-based attack class is well-defined and practically achievable. We show that the proposed optimization method can find minimax defenses which are more robust than adversarially-trained classifiers and the classifiers from simple alternating descent/ascent. We demonstrate these with MNIST and CIFAR-10. ",
1354
+ "bbox": [
1355
+ 174,
1356
+ 335,
1357
+ 825,
1358
+ 433
1359
+ ],
1360
+ "page_idx": 10
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "REFERENCES ",
1365
+ "text_level": 1,
1366
+ "bbox": [
1367
+ 174,
1368
+ 454,
1369
+ 285,
1370
+ 468
1371
+ ],
1372
+ "page_idx": 10
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Shumeet Baluja and Ian Fischer. Adversarial transformation networks: Learning to generate adversarial examples. arXiv preprint arXiv:1703.09387, 2017. \nMichael Bruckner and Tobias Scheffer. Stackelberg games for adversarial prediction problems. In ¨ Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 547–555. ACM, 2011. \nNicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017. \nNilesh Dalvi, Pedro Domingos, Sumit Sanghai, Deepak Verma, et al. Adversarial classification. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 99–108. ACM, 2004. \nAlhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. arXiv preprint arXiv:1502.02590, 2015. \nAmir Globerson and Sam Roweis. Nightmare at test time: robust learning by feature deletion. In Proceedings of the 23rd international conference on Machine learning, pp. 353–360. ACM, 2006. \nIan Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014a. \nIan J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b. \nShixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014. \nJihun Hamm. Minimax filter: Learning to preserve privacy from inference attacks. arXiv preprint arXiv:1610.03577, 2016. \nRuitong Huang, Bing Xu, Dale Schuurmans, and Csaba Szepesvari. Learning with a strong adversary. ´ arXiv preprint arXiv:1511.03034, 2015. \nAlexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016a. \nAlexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016b. \nGert RG Lanckriet, Laurent El Ghaoui, Chiranjib Bhattacharyya, and Michael I Jordan. A robust minimax approach to classification. Journal of Machine Learning Research, 3(Dec):555–582, 2002. \nJiajun Lu, Theerasit Issaranon, and David Forsyth. Safetynet: Detecting and rejecting adversarial examples robustly. arXiv preprint arXiv:1704.00103, 2017. \nChunchuan Lyu, Kaizhu Huang, and Hai-Ning Liang. A unified gradient regularization family for adversarial examples. In Data Mining (ICDM), 2015 IEEE International Conference on, pp. 301–309. IEEE, 2015. \nDongyu Meng and Hao Chen. Magnet: a two-pronged defense against adversarial examples. arXiv preprint arXiv:1705.09064, 2017. \nLuke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016. \nJan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017. \nSeyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. arXiv preprint arXiv:1610.08401, 2016. \nSeyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, Pascal Frossard, and Stefano Soatto. Analysis of universal adversarial perturbations. arXiv preprint arXiv:1705.09554, 2017. \nLinh Nguyen and Arunesh Sinha. A learning approach to secure learning. arXiv preprint arXiv:1709.04447, 2017. \nNicolas 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, 2016. \nLouis B Rall. Automatic differentiation: Techniques and applications. 1981. \nChristian 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. \nFlorian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial \\` training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017. ",
1377
+ "bbox": [
1378
+ 171,
1379
+ 467,
1380
+ 826,
1381
+ 924
1382
+ ],
1383
+ "page_idx": 10
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "",
1388
+ "bbox": [
1389
+ 171,
1390
+ 93,
1391
+ 826,
1392
+ 594
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "A RESULTS WITH MNIST ",
1399
+ "text_level": 1,
1400
+ "bbox": [
1401
+ 176,
1402
+ 102,
1403
+ 406,
1404
+ 118
1405
+ ],
1406
+ "page_idx": 12
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "The architecture of the MNIST classifier is similar to the Tensorflow model 2, and is trained with the following hyperparameters: $\\{ B a t c h s i z e = I 2 8 \\}$ , optimizer $=$ AdamOptimizer with $\\lambda = 1 0 ^ { - 4 }$ , total # of iteration $\\scriptstyle : = 5 0 , 0 0 0 . \\}$ ",
1411
+ "bbox": [
1412
+ 174,
1413
+ 133,
1414
+ 826,
1415
+ 176
1416
+ ],
1417
+ "page_idx": 12
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "The attack network has three hidden fully-connected layers of 300 units, trained with the following hyperparameters: \n{Batch $s i z e ~ = ~ I 2 8$ , dropout rate $= ~ 0 . 5$ , optimizer $=$ AdamOptimizer with $1 0 ^ { - 3 }$ , total $\\#$ of iteration $\\scriptstyle : = 3 0 , 0 0 0 . \\}$ ",
1422
+ "bbox": [
1423
+ 174,
1424
+ 183,
1425
+ 826,
1426
+ 239
1427
+ ],
1428
+ "page_idx": 12
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "For minimax, alt, and maximin optimization, the total number of iteration was 100,000. The sensitivity-penalty coefficient of $\\gamma = 1$ was used in Alg. 1. ",
1433
+ "bbox": [
1434
+ 174,
1435
+ 246,
1436
+ 821,
1437
+ 275
1438
+ ],
1439
+ "page_idx": 12
1440
+ },
1441
+ {
1442
+ "type": "image",
1443
+ "img_path": "images/46763f54f338dd040d61c182c0c65ee517429ea079f203508ac7da6af10f2095.jpg",
1444
+ "image_caption": [
1445
+ "Figure 4: Adversarial samples generated from different attacks at $\\eta = 0 . 2$ . (a) Original data (b) FGSM1 (c) FGSM80 (d) IFGSM1 (e) Minimax (f) Alt (g) Maximin. Note the diversity of patterns. "
1446
+ ],
1447
+ "image_footnote": [],
1448
+ "bbox": [
1449
+ 176,
1450
+ 291,
1451
+ 818,
1452
+ 460
1453
+ ],
1454
+ "page_idx": 12
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "B RESULTS WITH CIFAR-10 ",
1459
+ "text_level": 1,
1460
+ "bbox": [
1461
+ 176,
1462
+ 540,
1463
+ 429,
1464
+ 558
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "We preprocess the CIFAR-10 dataset by removing the mean and normalizing the pixel values with the standard deviation of all pixels in the image. It is followed by clipping the values to $\\pm 2$ standard deviations and rescaling to $[ - 1 , 1 ]$ . The architecture of the CIFAR classifier is similar to the Tensorflow model 3 but is simplified further by removing the local response normalization layers. With the simple structure, we attained $\\sim 7 8 \\%$ accuracy with the test data. The classifier is trained with the following hyperparameters: ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 571,
1474
+ 825,
1475
+ 655
1476
+ ],
1477
+ "page_idx": 12
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "$\\{ B a t c h s i z e = I 2 8 ,$ , optimizer $=$ AdamOptimizer with $\\lambda = 1 0 ^ { - 4 }$ , total # of iteration $\\scriptstyle : = I O O , O O O . \\}$ ",
1482
+ "bbox": [
1483
+ 178,
1484
+ 655,
1485
+ 795,
1486
+ 670
1487
+ ],
1488
+ "page_idx": 12
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "The attack network has three hidden fully-connected layers of 300 units, trained with the following hyperparameters: \n$\\{ B a t c h \\ s i z e \\ = \\ I 2 8 ,$ , dropout rate $= 0 . 5$ , optimizer $=$ AdamOptimizer with $\\sigma = 1 0 ^ { - 3 }$ , total # of iteration $\\scriptstyle : = 3 0 , 0 0 0 . \\}$ ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 676,
1496
+ 826,
1497
+ 733
1498
+ ],
1499
+ "page_idx": 12
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "For minimax, alt, and maximin optimization, the total number of iteration was 100,000. The sensitivity-penalty coefficient of $\\gamma = 1$ was used in Alg. 1. ",
1504
+ "bbox": [
1505
+ 174,
1506
+ 739,
1507
+ 825,
1508
+ 768
1509
+ ],
1510
+ "page_idx": 12
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "In the rest of the appendix, we repeat all the experiments with the MNIST dataset using the CIFAR10 dataset. ",
1515
+ "bbox": [
1516
+ 173,
1517
+ 775,
1518
+ 823,
1519
+ 803
1520
+ ],
1521
+ "page_idx": 12
1522
+ },
1523
+ {
1524
+ "type": "table",
1525
+ "img_path": "images/86653185356d02e5af803f0548c8400c789ba0baacade8ea1ba9cf01c2f4ac2b.jpg",
1526
+ "table_caption": [],
1527
+ "table_footnote": [],
1528
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"4\">FGSM</td><td colspan=\"4\">IFGSM</td></tr><tr><td>n=0.1</td><td>n=0.2</td><td>n=0.3</td><td>m=0.4</td><td>n=0.1</td><td>m=0.2</td><td>n=0.3</td><td>m=0.4</td></tr><tr><td>No defense</td><td>0.222</td><td>0.976</td><td>0.825</td><td>0.869</td><td>0.884</td><td>0.668</td><td>0.907</td><td>0.959</td><td>0.971</td></tr></table>",
1529
+ "bbox": [
1530
+ 217,
1531
+ 113,
1532
+ 781,
1533
+ 156
1534
+ ],
1535
+ "page_idx": 13
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "Table 6: Error rates of FGSM and IFGSM attacks on the original classifier for cifar10. These attacks can cause large misclassification for the given range of $\\eta$ . ",
1540
+ "bbox": [
1541
+ 173,
1542
+ 167,
1543
+ 825,
1544
+ 196
1545
+ ],
1546
+ "page_idx": 13
1547
+ },
1548
+ {
1549
+ "type": "table",
1550
+ "img_path": "images/3600f6849ae75ac79029f60ed2e1db6fbdd495786a5561c401f2ac5ae72649d8.jpg",
1551
+ "table_caption": [],
1552
+ "table_footnote": [],
1553
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"4\">FGSM</td><td colspan=\"4\">IFGSM</td></tr><tr><td>n=0.1</td><td>n=0.2</td><td>n=0.3</td><td>n=0.4</td><td>n=0.1</td><td>n=0.2</td><td>m=0.3</td><td>n=0.4</td></tr><tr><td>Adv train</td><td>n/a</td><td>0.196</td><td>0.642</td><td>0.668</td><td>0.702</td><td>0.373</td><td>0.658</td><td>0.741</td><td>0.750</td></tr></table>",
1554
+ "bbox": [
1555
+ 217,
1556
+ 233,
1557
+ 781,
1558
+ 277
1559
+ ],
1560
+ "page_idx": 13
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "Table 7: Error rates of FGSM and IFGSM attacks on the adversarially-trained classifiers for CIFAR10. This defense can significantly lower the errors from the attacks, although not as low as the MNIST problem. ",
1565
+ "bbox": [
1566
+ 174,
1567
+ 287,
1568
+ 825,
1569
+ 330
1570
+ ],
1571
+ "page_idx": 13
1572
+ },
1573
+ {
1574
+ "type": "image",
1575
+ "img_path": "images/25c2a7b8f76e7f3af510741ee0bca0ba313bdf0750f34346abc872740838414e.jpg",
1576
+ "image_caption": [
1577
+ "Figure 5: Cat and mouse game of FGSM attacks and adversarial training for CIFAR-10. The upper green points are the error rates after adversarial training, and the lower orange points are the error rates after FGSM attack. After 160 iterations $\\eta = 0 . 3 )$ , the error rate is still oscillating. "
1578
+ ],
1579
+ "image_footnote": [],
1580
+ "bbox": [
1581
+ 261,
1582
+ 372,
1583
+ 732,
1584
+ 453
1585
+ ],
1586
+ "page_idx": 13
1587
+ },
1588
+ {
1589
+ "type": "image",
1590
+ "img_path": "images/ab800da7f6508864830e13eb093463215686949fbfe0fc6bc9669047e0667041.jpg",
1591
+ "image_caption": [
1592
+ "Figure 6: Convergence of test error rates for sensitivity-penalized optimization with MNIST. "
1593
+ ],
1594
+ "image_footnote": [],
1595
+ "bbox": [
1596
+ 176,
1597
+ 546,
1598
+ 821,
1599
+ 627
1600
+ ],
1601
+ "page_idx": 13
1602
+ },
1603
+ {
1604
+ "type": "image",
1605
+ "img_path": "images/b047abf440dc0ad31a90a50bcd45e3e6e00c2c669bbe9a856a56ac7d52ef84d7.jpg",
1606
+ "image_caption": [
1607
+ "Figure 7: Convergence of the test error rates for Minimax optimization (blue), Alternating ascent/descent (green), and Maximin optimization (red) for CIFAR-10. "
1608
+ ],
1609
+ "image_footnote": [],
1610
+ "bbox": [
1611
+ 174,
1612
+ 689,
1613
+ 823,
1614
+ 863
1615
+ ],
1616
+ "page_idx": 13
1617
+ },
1618
+ {
1619
+ "type": "table",
1620
+ "img_path": "images/83db0c85dcb0bfe41f5e5735bc31939ca3d1326f9891ec84cbefbb7507678aef.jpg",
1621
+ "table_caption": [
1622
+ "Table 8: Error rates of different attacks on various adversarially-trained classifiers for CIFAR-10. FGSM-curr means the FGSM attack on the specific classifier on the leftmost column. Adv FGSM is the classifier adversally trained with FGSM attacks. Sens FGSM is the result of minimizing the sensitivity penalty (7). LWA FGSM is the result of minimizing (7) without the gradient-norm term. "
1623
+ ],
1624
+ "table_footnote": [],
1625
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Defense\\Attack</td><td rowspan=\"2\">No attack</td><td colspan=\"4\">FGSM</td><td rowspan=\"2\">FGSM-curr</td></tr><tr><td>FGSM-1</td><td>FGSM-2</td><td>:</td><td>FGSM-80</td></tr><tr><td rowspan=\"5\">n=0.1</td><td>No defense AdvFGSM1</td><td>0.222 0.220</td><td>0.976 0.196</td><td>0.671 0.680</td><td>: :</td><td>0.595 0.616</td><td>0.976 0.245</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Adv FGSM2</td><td>0.258</td><td>0.640</td><td>0.484</td><td>:</td><td>0.612</td><td>0.708</td></tr><tr><td>AdvFGSM80</td><td>0.228</td><td>0.644</td><td>0.529</td><td>:</td><td>0.087</td><td>0.086</td></tr><tr><td>LWAFGSM Sens FGSM</td><td>0.223 0.223</td><td>0.283 0.342</td><td>0.692 0.701</td><td>:</td><td>0.652 0.663</td><td>0.125 0.106</td></tr><tr><td rowspan=\"6\">n=0.2</td><td>No defense</td><td>0.222</td><td>0.825</td><td>0.692</td><td>: :</td><td>0.819</td><td>0.969</td></tr><tr><td>AdvFGSM1</td><td>0.216</td><td>0.642</td><td>0.630</td><td>:</td><td>0.609</td><td>0.264</td></tr><tr><td>Adv FGSM2</td><td>0.305</td><td>0.579</td><td>0.290</td><td>:</td><td>0.599</td><td>0.556</td></tr><tr><td>AdvFGSM80</td><td>0.218</td><td>0.445</td><td>0.502</td><td>·</td><td>0.078</td><td>0.078</td></tr><tr><td>LWAFGSM</td><td>0.209</td><td>0.689</td><td>0.666</td><td>··</td><td>0.615</td><td>0.105</td></tr><tr><td>Sens FGSM</td><td>0.209</td><td>0.713</td><td>0.672</td><td>:</td><td>0.637</td><td>0.073</td></tr><tr><td rowspan=\"6\">n=0.3</td><td>No defense AdvFGSM1</td><td>0.222</td><td>0.869</td><td>0.891</td><td>:</td><td>0.877</td><td>0.955</td></tr><tr><td></td><td>0.214</td><td>0.668</td><td>0.628</td><td>:</td><td>0.642</td><td>0.424</td></tr><tr><td>Adv FGSM2</td><td>0.205</td><td>0.499</td><td>0.407</td><td>:</td><td>0.514</td><td>0.389</td></tr><tr><td>AdvFGSM80</td><td>0.223</td><td>0.471</td><td>0.324</td><td>:</td><td>0.081</td><td>0.084</td></tr><tr><td>LWAFGSM</td><td>0.215</td><td>0.686</td><td>0.634</td><td>:</td><td>0.640</td><td>0.215</td></tr><tr><td>Sens FGSM</td><td>0.213</td><td>0.715</td><td>0.628</td><td>·</td><td>0.652</td><td>0.089</td></tr><tr><td rowspan=\"6\">n=0.4</td><td>No defense AdvFGSM1</td><td>0.222</td><td>0.884</td><td>0.899</td><td>:</td><td>0.892</td><td>0.941</td></tr><tr><td></td><td>0.208</td><td>0.702</td><td>0.687</td><td>:</td><td>0.697</td><td>0.536</td></tr><tr><td>Adv FGSM2</td><td>0.206</td><td>0.592</td><td>0.546</td><td>:</td><td>0.618</td><td>0.545</td></tr><tr><td>AdvFGSM80</td><td>0.225</td><td>0.497</td><td>0.385</td><td>:</td><td>0.121</td><td>0.124</td></tr><tr><td>LWAFGSM</td><td>0.210</td><td>0.693</td><td>0.639</td><td>:</td><td>0.626</td><td>0.173</td></tr><tr><td>Sens FGSM</td><td>0.214</td><td>0.714</td><td>0.635</td><td>·</td><td>0.640</td><td>0.109</td></tr></table>",
1626
+ "bbox": [
1627
+ 199,
1628
+ 102,
1629
+ 799,
1630
+ 433
1631
+ ],
1632
+ "page_idx": 14
1633
+ },
1634
+ {
1635
+ "type": "table",
1636
+ "img_path": "images/f237f1b06ef6077dedd701f06efc3c8a3f4f90c8e38bab5c098897dc35cba28c.jpg",
1637
+ "table_caption": [
1638
+ "Table 9: Error rates of FGSM vs learning-based attack network (AttNet) on various adversariallytrained classifiers for CIFAR-10. FGSM-curr/AttNet-curr means they are computed/trained for the specific classifier on the leftmost column. Note that FGSM fails to attack against the ‘hardened’ networks (Adv FGSM80 and Sens FGSM), but AttNet can still attack them successfully. "
1639
+ ],
1640
+ "table_footnote": [],
1641
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan=\"2\">n=0.1</td><td colspan=\"2\">=0.2</td></tr><tr><td>No defense</td><td>0.976</td><td>0.740</td><td>0.969</td><td>0.905</td></tr><tr><td>Adv FGSM1</td><td>0.245</td><td>0.999</td><td>0.264</td><td>1.000</td></tr><tr><td>Adv FGSM80</td><td>0.086</td><td>1.000</td><td>0.078</td><td>1.000</td></tr><tr><td>Sens FGSM</td><td>0.106</td><td>0.898</td><td>0.073</td><td>0.979</td></tr><tr><td rowspan=\"4\">No defense Adv FGSM1 AdvFGSM80</td><td colspan=\"2\">m=0.3</td><td colspan=\"2\">m=0.4</td></tr><tr><td>0.955</td><td>0.888</td><td>0.941</td><td>0.999</td></tr><tr><td>0.424</td><td>1.000</td><td>0.536</td><td>1.000</td></tr><tr><td>0.084</td><td>1.000</td><td>0.124</td><td>0.900</td></tr><tr><td rowspan=\"2\">Sens FGSM</td><td rowspan=\"2\">0.089</td><td rowspan=\"2\">1.000</td><td rowspan=\"2\">0.109</td></tr><tr><td>1.000</td></tr></table>",
1642
+ "bbox": [
1643
+ 261,
1644
+ 515,
1645
+ 735,
1646
+ 660
1647
+ ],
1648
+ "page_idx": 14
1649
+ },
1650
+ {
1651
+ "type": "table",
1652
+ "img_path": "images/c7207949c3acf48b7f88a9707e607bd12c7c2190fdb4058f86e39e275bbf5bc2.jpg",
1653
+ "table_caption": [],
1654
+ "table_footnote": [],
1655
+ "table_body": "<table><tr><td rowspan=\"2\">Defense\\Attack</td><td>FGSM-curr</td><td>AttNet-curr</td><td>FGSM-curr</td><td>AttNet-curr</td></tr><tr><td colspan=\"2\">n=0.1</td><td colspan=\"2\">m=0.2</td></tr><tr><td>Minimax</td><td>0.967</td><td>0.276</td><td>0.980</td><td>0.418</td></tr><tr><td>Alt</td><td>0.994</td><td>0.264</td><td>0.996</td><td>0.857</td></tr><tr><td>Sens FGSM</td><td>0.106</td><td>0.898</td><td>0.073</td><td>0.979</td></tr><tr><td rowspan=\"3\">Minimax Alt</td><td>n=0.3</td><td></td><td>m=0.4</td><td></td></tr><tr><td>0.967</td><td>0.875</td><td>0.931</td><td>0.994</td></tr><tr><td>0.987</td><td>0.896</td><td>0.958</td><td>1.000</td></tr><tr><td>Sens FGSM</td><td>0.089</td><td>1.000</td><td>0.109</td><td>1.000</td></tr></table>",
1656
+ "bbox": [
1657
+ 263,
1658
+ 741,
1659
+ 733,
1660
+ 862
1661
+ ],
1662
+ "page_idx": 14
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "Table 10: Error rates of Minimax-, Alt-, and adversarially-trained (Sens FGSM) classifiers for MNIST. While Minimax and Alt are both vulnerable to AttNet attacks, Minimax is much less vulnerable than Alt at $\\eta = 0 . 2$ . ",
1667
+ "bbox": [
1668
+ 178,
1669
+ 872,
1670
+ 823,
1671
+ 915
1672
+ ],
1673
+ "page_idx": 14
1674
+ }
1675
+ ]
parse/train/ByqFhGZCW/ByqFhGZCW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByqFhGZCW/ByqFhGZCW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lmhaVtvr/H1lmhaVtvr.md ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DYNAMICAL DISTANCE LEARNING FOR SEMI-SUPERVISED AND UNSUPERVISED SKILL DISCOVERY
2
+
3
+ Kristian Hartikainen∗ University of California, Berkeley University of Oxford
4
+
5
+ Xinyang Geng University of California, Berkeley
6
+
7
+ Tuomas Haarnoja†
8
+ University of California, Berkeley
9
+ Google DeepMind
10
+
11
+ Sergey Levine† University of California, Berkeley
12
+
13
+ # ABSTRACT
14
+
15
+ Reinforcement learning requires manual specification of a reward function to learn a task. While in principle this reward function only needs to specify the task goal, in practice reinforcement learning can be very time-consuming or even infeasible unless the reward function is shaped so as to provide a smooth gradient towards a successful outcome. This shaping is difficult to specify by hand, particularly when the task is learned from raw observations, such as images. In this paper, we study how we can automatically learn dynamical distances: a measure of the expected number of time steps to reach a given goal state from any other state. These dynamical distances can be used to provide well-shaped reward functions for reaching new goals, making it possible to learn complex tasks efficiently. We show that dynamical distances can be used in a semi-supervised regime, where unsupervised interaction with the environment is used to learn the dynamical distances, while a small amount of preference supervision is used to determine the task goal, without any manually engineered reward function or goal examples. We evaluate our method both on a real-world robot and in simulation. We show that our method can learn to turn a valve with a real-world 9-DoF hand, using raw image observations and just ten preference labels, without any other supervision. Videos of the learned skills can be found on the project website: https://sites.google.com/view/dynamical-distance-learning.
16
+
17
+ # 1 INTRODUCTION
18
+
19
+ The manual design of reward functions represents a major barrier to the adoption of reinforcement learning (RL), particularly in robotics, where vision-based policies can be learned end-toend (Levine et al., 2016; Haarnoja et al., 2018c), but still require reward functions that themselves might need visual detectors to be designed by hand (Singh et al., 2019). While in principle the reward only needs to specify the goal of the task, in practice RL can be exceptionally time-consuming or even infeasible unless the reward function is shaped so as to provide a smooth gradient towards a successful outcome. Prior work tackles such situations with dedicated exploration methods (Houthooft et al., 2016; Osband et al., 2016; Andrychowicz et al., 2017), or by using large amounts of random exploration (Mnih et al., 2015), which is feasible in simulation but infeasible for real-world robotic learning. It is also common to employ heuristic shaping, such as the Cartesian distance to a goal for an object relocation task (Mahmood et al., 2018; Haarnoja et al., 2018a). However, this kind of shaping is brittle and requires manual insight, and is often impossible when ground truth state observations are unavailable, such as when learning from image observations.
20
+
21
+ ![](images/47f0104fb94672688f8075e4e1408411ced19042e07825379df049b062940adf.jpg)
22
+ Figure 1: We present a dynamical distance learning (DDL) method that can learn a 9-DoF real-world dexterous manipulation task directly from raw image observations. DDL does not assume access to the true reward function and solves the 180 degree valve-rotation task in 8 hours by relying only on 10 human-provided preference labels.
23
+
24
+ In this paper, we aim to address these challenges by introducing dynamical distance learning (DDL), a general method for learning distance functions that can provide effective shaping for goal-reaching tasks without manual engineering. Instead of imposing heuristic metrics that have no relationship to the system dynamics, we quantify the distance between two states in terms of the number of time steps needed to transition between them. This is a natural choice for dynamical systems, and prior works have explored learning such distances in simple and low-dimensional domains (Kaelbling, 1993). While such distances can be learned using standard model-free reinforcement learning algorithms, such as Q-learning, we show that such methods generally struggle to acquire meaningful distances for more complex systems, particularly with high-dimensional observations such as images. We present a simple method that employs supervised regression to fit dynamical distances, and then uses these distances to provide reward shaping, guide exploration, and discover distinct skills.
25
+
26
+ The most direct use of DDL is to provide reward shaping for a standard deep RL algorithm, to optimize a policy to reach a given goal state. We can also formulate a semi-supervised skill learning method, where a user expresses preferences over goals, and the agent autonomously collects experience to learn dynamical distances in a self-supervised way. Finally, we can use DDL in a fully unsupervised method, where the most distant states are selected for exploration, resulting in an unsupervised reinforcement learning procedure that discovers difficult skills that reach dynamically distant states from a given start state. All of these applications avoid the need for manually designed reward functions, demonstrations, or user-provided examples, and involve minimal modification to existing deep RL algorithms.
27
+
28
+ DDL is a simple and scalable approach to learning dynamical distances that can readily accommodate raw image inputs and, as shown in our experiments, substantially outperforms prior methods that learn goal-conditioned policies or distances using approximate dynamic programming techniques, such as Q-learning. We show that using dynamical distances as a reward function in standard reinforcement learning methods results in policies that take the shortest path to a given goal, despite the additional shaping. Empirically, we compare the semi-supervised variant of our method to prior techniques for learning from preferences. We also compare our method to prior methods for unsupervised skill discovery on tasks ranging from 2D navigation to quadrupedal locomotion. Our experimental evaluation demonstrates that DDL can learn complex locomotion skills without any supervision at all, and that the preferences-based version of DDL can learn to turn a valve with a real-world 9-DoF hand, using raw image observations and 10 human-provided preference labels, without any other supervision.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Dynamical distance learning is most closely related to methods that learn goal-conditioned policies or value functions (Schaul et al., 2015; Sutton et al., 2011). Many of these works learn goal-reaching directly via model-free RL, often by using temporal difference updates to learn the distance function as a value function (Kaelbling et al., 1996; Schaul et al., 2015; Andrychowicz et al., 2017; Pong et al., 2018; Nair et al., 2018; Florensa et al., 2019). For example, Kaelbling (1993) learns a goal conditioned Q-function to represent the shortest path between any two states, and Andrychowicz et al. (2017) learns a value function that resembles a distance to goals, under a user-specified lowdimensional goal representation. Unlike these methods, DDL learns policy-conditioned distances with an explicit supervised learning procedure, and then employs these distances to recover a reward function for RL. We experimentally compare to RL-based distance learning methods, and show that
33
+
34
+ DDL attains substantially better results, especially with complex observations. Another line of prior work uses a learned distance to build a search graph over a set of visited states (Savinov et al., 2018; Eysenbach et al., 2019), which can then be used to plan to reach new states via the shortest path. Our method also learns a distance function separately from the policy, but instead of using it to build a graph, we use it to obtain a reward function for a separate model-free RL algorithm.
35
+
36
+ The semi-supervised variant of DDL is guided by a small number of preference queries. Prior work has explored several ways to elicit goals from users, such as using outcome examples and a small number of label queries (Singh et al., 2019), or using a large number of relatively cheap preferences (Christiano et al., 2017). The preference queries that our semi-supervised method uses are easy to obtain and, in contrast to prior work (Christiano et al., 2017), we only need a small number of these queries to learn a policy that reliably achieves the user’s desired goal. Our method is also well suited for fully unsupervised learning, in which case DDL uses the distance function to propose goals for unsupervised skill discovery. Prior work on unsupervised reinforcement learning has proposed choosing goals based on a variety of unsupervised criteria, typically with the aim of attaining broad state coverage (Nair et al., 2018; Florensa et al., 2018; Eysenbach et al., 2018; Warde-Farley et al., 2018; Pong et al., 2019). Our method instead repeatedly chooses the most distant state as the goal, which produces rapid exploration and quickly discovers relatively complex skills. We provide a comparative evaluation in our experiments.
37
+
38
+ # 3 PRELIMINARIES
39
+
40
+ In this work, we study control of systems defined by fully observed Markovian dynamics $p ( \mathbf { s } ^ { \prime } | \mathbf { s } , \mathbf { a } ) :$ $s \times s \times { \mathcal { A } } \to { \mathbb { R } } _ { > 0 }$ , where $s$ and $\mathcal { A }$ are continuous state and action spaces. We aim to learn a stochastic policy $\pi ( \mathbf { \bar { a } } | \mathbf { s } ) : \mathcal { A } \times \mathcal { S } \to \mathbb { R } _ { \geq 0 }$ , to reach a goal state $\mathbf { g } \in { \mathcal { S } }$ . We will denote a trajectory with $\boldsymbol { \tau } \triangleq ( \mathbf { s } _ { 0 } , \mathbf { a } _ { 0 } , . . . , \mathbf { s } _ { T } ) \sim \rho _ { \pi }$ , where $\rho _ { \pi }$ is a the trajectory distribution induced by the policy $\pi$ , and $\mathbf { s } _ { 0 }$ is sampled from an initial state distribution $\rho ( \mathbf { s } _ { 0 } )$ . The policy can be optimized using any reinforcement learning algorithm by maximizing
41
+
42
+ $$
43
+ \mathcal { L } ( \pi ) = \mathbb { E } _ { \tau \sim \rho _ { \pi } } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } r _ { \mathbf { g } } ( \mathbf { s } _ { t } , \mathbf { a } _ { t } ) \right] ,
44
+ $$
45
+
46
+ where $r _ { \mathbf { g } } : \mathcal { S } \times \mathcal { A } [ - R _ { \operatorname* { m i n } } , R _ { \operatorname* { m a x } } ]$ is a bounded reward function and $\gamma \in [ 0 , 1 )$ is a discount factor.1 However, we do not assume that we have access to a shaped reward function. In principle, we could set the reward to $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) = 0$ if $\mathbf { s } = \mathbf { g }$ and $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) = - 1$ otherwise to learn a policy to reach the goal in as few time steps as possible. Unfortunately, such a sparse reward signal is extremely hard to optimize, as it does not provide any gradient towards the optimal solution until the goal is actually reached. Instead, in Section 4, we will show that we can efficiently learn to reach goals by making use of a learned dynamical distance function.
47
+
48
+ # 4 DYNAMICAL DISTANCE LEARNING
49
+
50
+ The aim of our method is to learn policies that reach goal states. These goal states can be selected either in an unsupervised fashion, to discover complex skills, or selected manually by the user. The learning process alternates between two steps: in the distance evaluation step, we learn a policyspecific dynamical distance, which is defined in the following subsection. In the policy improvement step, the policy is optimized to reach the desired goal by using the distance function as the negative reward. This process will lead to a sequence of policies and dynamical distance functions that converge to an effective goal-reaching policy. Under certain assumptions, we can prove that this process converges to a policy that minimizes the distance from any state to any goal, as discussed in Appendix B. In this section, we define dynamical distances and describe our dynamical distance learning (DDL) procedure. In Section 5, we will describe the different ways that the goals can be chosen to instantiate our method as a semi-supervised or unsupervised skill learning procedure.
51
+
52
+ # 4.1 DYNAMICAL DISTANCE FUNCTIONS
53
+
54
+ The dynamical distance associated with a policy $\pi$ , which we write as $d ^ { \pi } ( \mathbf { s } _ { i } , \mathbf { s } _ { j } )$ , is defined as the expected number of time steps it took for $\pi$ to reach a state ${ \bf s } _ { j }$ from a state $\mathbf { s } _ { i }$ , given that the two were visited in the same episode.2 Mathematically, the distance is defined as:
55
+
56
+ $$
57
+ d ^ { \pi } ( \mathbf { s } , \mathbf { s } ^ { \prime } ) \triangleq \mathbb { E } _ { \tau \sim \pi | \mathbf { s } _ { i } = \mathbf { s } , \mathbf { s } _ { j } = \mathbf { s } ^ { \prime } , \ j \geq i } \left[ \sum _ { { t = i } } ^ { j - 1 } \gamma ^ { t - i } c ( \mathbf { s } _ { t } , \mathbf { s } _ { { t + 1 } } ) \right] ,
58
+ $$
59
+
60
+ where $\tau$ is sampled from the conditional distribution of trajectories that passes through first s and then $\mathbf { s } ^ { \prime }$ , and where $c$ is some local cost of moving from $\mathbf { s } _ { i }$ to $\mathbf { s } _ { i + 1 }$ . For example, in a typical case in the absence of supervision, we can set $c ( \mathbf { s } _ { t } , \mathbf { s } _ { t + 1 } ) \equiv 1$ analogously to the binary reward function in Equation 1, in which case the sum reduces to $j - i$ , and we recover the expected number of time steps to reach $\mathbf { s } ^ { \prime }$ . In principle, we could also trivially incorporate more complex local costs $c$ , for example to include action costs. This modification would be straightforward, though we focus on the simple $c ( \mathbf { s } _ { t } , \mathbf { s } _ { t + 1 } ) \equiv 1$ in our derivation and experiments. We include the discount factor to extend the definition to infinitely long trajectories, but in practice we set $\gamma = 1$ .
61
+
62
+ # 4.2 DISTANCE EVALUATION
63
+
64
+ In the distance evaluation step, we learn a distance function $d _ { \psi } ^ { \pi } ( { \bf s } , { \bf s } ^ { \prime } )$ , parameterized by $\psi$ , to estimate the dynamical distance between pairs of states visited by a given policy $\pi _ { \phi }$ , parameterized by $\phi$ . We first roll out the policy multiple times to sample trajectories $\tau _ { k }$ of length $T$ . The empirical distance between states $\mathbf { s } _ { i } , \mathbf { s } _ { j } \in \tau _ { k }$ , where $0 \leq i \leq j \leq T$ , is given by $j - i$ . Because the trajectories have a finite length, we are effectively ignoring the cases where reaching ${ \bf s } _ { j }$ from $\mathbf { s } _ { i }$ would take more than $T - i$ steps, biasing this estimate toward zero, but since the bias becomes smaller for shorter distances, we did not find this to be a major limitation in practice. We can now learn the distance function via supervised regression by minimizing
65
+
66
+ $$
67
+ \mathcal { L } _ { d } ( \psi ) = \frac { 1 } { 2 } \mathbb { E } _ { \stackrel { \tau \sim \rho _ { \pi } } { i \sim \left[ 0 , T \right] } } \left[ \left( d _ { \psi } ^ { \pi } ( \mathbf { s } _ { i } , \mathbf { s } _ { j } ) - ( j - i ) ) \right) ^ { 2 } \right] .
68
+ $$
69
+
70
+ As we will show in our experimental evaluation, this supervised regression approach makes it feasible to learn dynamical distances for complex tasks with raw image observations, something that has proven exceptionally challenging for methods that learn distances via goal-conditioned policies or value functions and rely on temporal difference-style methods. In direct comparisons, we find that such methods generally struggle to learn on the more complex tasks with image observations. On the other hand, a disadvantage of supervised regression is that it requires on-policy experience, potentially leading to poor sample efficiency. However, because we use the distance as an intermediate representation that guides off-policy policy learning, as we will discuss in Section 4.3, we did not find the on-policy updates for the distance to slow down learning. Indeed, our experiments in Section 6.1 show that we can learn a manipulation task on a real robot with roughly the same amount of experience as is necessary when using a well-shaped and hand-tuned reward function.
71
+
72
+ # 4.3 POLICY IMPROVEMENT
73
+
74
+ In the policy improvement step, we use $d _ { \psi } ^ { \pi }$ to optimize a policy $\pi _ { \phi }$ , parameterized by $\phi$ , to reach a goal g. In principle, we could optimize the policy by choosing actions that greedily minimize the distance to the goal, which essentially treats negative distances as the values of a value function, and would be equivalent to the policy improvement step in standard policy iteration. However, acting greedily with respect to the dynamical distance defined in Equation 2 would result in a policy that is optimistic with respect to the dynamics.
75
+
76
+ This is because the dynamical distance is defined as the expected number of time steps conditioned on the policy successfully reaching the second state from the first state, and therefore does not account for the case where the second state is not reached successfully. In some cases, this results in pathologically bad value functions. For example, consider the MDP shown on the right, where the agent can reach the goal g using one of two paths. The first path has one intermediate state that leads to the target state with probability $p$ , and an absorbing terminal state $\mathbf { s _ { T } }$ with probability $1 - p$ . The other path has two intermediate states, but allows the agent to reach the target every time. The optimal dynamical distance will be 2, regardless of the value of $p$ , causing the policy to always choose the risky path and potentially miss the target completely.
77
+
78
+ ![](images/e9a6ed0cece8d8511f10716fc928dbf9c1345baf3e098e8fd917c3352889a752.jpg)
79
+
80
+ The definition of dynamical distances in Equation 2 follows directly from how we learn the distance function, by choosing both $\mathbf { s } _ { i }$ and ${ \bf s } _ { j }$ from the same trajectory. Conditioning on both $\mathbf { s } _ { i }$ and ${ \bf s } _ { j }$ is needed when the state space is continuous or large, since visiting two states by chance has zero or near-zero probability. We instead propose to use the distance as a negative reward, and apply reinforcement learning to minimize the cumulative distance on the path to the goal:
81
+
82
+ $$
83
+ \mathcal { L } _ { \pi } ( \phi ) = \mathbb { E } _ { \tau \sim \rho _ { \pi } } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } d _ { \psi } ^ { \pi } ( \mathbf { s } _ { t } , \mathbf { g } ) \right] .
84
+ $$
85
+
86
+ This amounts to minimizing the cumulative distance over visited states, and thus taking a risky action becomes unfavourable if it takes the agent to a state that is far from the target at a later time. We further show that, under certain assumption, the policy that optimizes Equation 4 will indeed acquire the correct behavior, as discussed in Appendix A, and will converge to a policy that takes the shortest path to the goal, as we show in Appendix B.
87
+
88
+ We note that our simulated experiments below are run in deterministic environments and we do not fully understand why cumulative distances work better than greedily minimizing the distances even in those cases. A comparison between these two cases is shown in Section 6.2.
89
+
90
+ # 4.4 ALGORITHM SUMMARY
91
+
92
+ The dynamical distance learning (DDL) algorithm is described in Figure 1. Our implementation uses soft actor-critic (SAC) (Haarnoja et al., 2018c) as the policy optimizer, but one could also use any other off-the-shelf algorithm. In each iteration, DDL first samples a trajectory using the current policy, and saves it in a replay pool $\mathcal { D }$ . In the second step, DDL updates the distance function by minimizing the loss in Equation 3. The distance function is optimized for a fixed number of $N _ { d }$ stochastic gradient steps. Note that this method requires that we use recent experience from $\mathcal { D }$ , so
93
+
94
+ # Algorithm 1 Dynamical Distance Learning
95
+
96
+ 1: Input: φ, ψ . Initial policy and distance parameters
97
+ 2: Input: D . Empty replay pool repeat $\tau \sim \rho _ { \pi }$ , $\mathcal { D } \mathcal { D } \cup \tau$ . Sample a new trajectory for $i = 0$ to $N _ { d }$ do $\psi \psi - \lambda _ { d } \hat { \nabla } \mathcal { L } _ { d } ( \psi ; \pi )$ . Minimize distance loss end for $\mathbf { g } $ choose goal $( \mathcal { D } )$ . Choose goal state for $i = 0$ to $N _ { \pi }$ do
98
+ 10: $\phi \phi - \dot { \lambda } _ { \pi } \hat { \nabla } \mathcal { L } _ { \pi } ( \phi ; d , \mathbf { g } ) \circ$ . Minimize policy loss
99
+ 11: end for
100
+ 12: until converged
101
+
102
+ as to learn the distance corresponding to the current policy. In the third step, DDL chooses a goal state from the recent experience buffer. We will describe two methods to choose these goal states in Section 5. In the fourth step, DDL updates the policy by taking $N _ { \pi }$ gradient steps to minimize the loss in Equation 4. The implementation of this step depends on the RL algorithm of choice. These steps are then repeated until convergence.
103
+
104
+ # 5 GOAL PROPOSALS
105
+
106
+ In the previous section, we discussed how we can utilize a learned distance function to efficiently optimize a goal-reaching policy. However, a learned distance function is only meaningful if evaluated at states from the distribution it has been trained on, suggesting that the goal states should be chosen from the replay pool. Choosing a goal that the policy can already reach might at first appear strange, but it turns out to yield efficient directed exploration, as explained next.
107
+
108
+ Simple random exploration, such as $\epsilon$ -greedy exploration or other strategies that add noise to the actions, can effectively cover states that are close to the starting state, in terms of dynamical distance. However, when high-reward states or goal states are far away from the start state, such na¨ıve strategies are unlikely to reach them. From this observation, we can devise a simple and effective exploration strategy that leverages the learned dynamical distances: we first use the policy to reach a known goal as quickly as possible and then explore the vicinity of that goal. This way more time is
109
+
110
+ ![](images/ad3a2c2957db89c38776b94caa2984eebe492828532eba334b8d4af505ff1cd3.jpg)
111
+ Figure 2: We evaluate our method both in simulation and on a real-world robot. We show that our method can learn to turn a valve with a real-world 9-DoF hand (a), and run ablations in the simulated version of the same task (b). We also demonstrate that our method can learn pole balancing (c) and locomotion (d, e, f) skills in simulation.
112
+
113
+ left to randomly explore states far from the initial state and this way likely discovering useful states.
114
+ We propose two different strategies for choosing the goals below.
115
+
116
+ # 5.1 SEMI-SUPERVISED LEARNING FROM PREFERENCES
117
+
118
+ DDL can be used to learn to reach specific goals elicited from a user. The simplest way to do this is for a user to provide the goal state directly, either by specifying the full state, or selecting the state manually from the replay pool. However, we can also provide a more convenient way to elicit the desired state with preference queries. In this setting, the user is repeatedly presented with a small slate of candidate states from the replay pool, and asked to select the one that they prefer most. In practice, we present the user with a visualization of the final state in several of the most recent episodes, and the user selects the one that they consider closest to their desired goal.
119
+
120
+ For example, if the user wishes to train a legged robot to walk forward, they might pick the state where the robot has progressed the largest distance in the desired direction. The required user effort in selecting these states is minimal, and most of the agent’s experience is still unsupervised, simply using the latest user-chosen state as the goal. In our experiments, we show that this semi-supervised learning procedure, which we call dynamical distance learning from preferences (DDLfP) can learn to rotate a valve with real-world hand from just ten queries, and can learn simulated locomotion tasks using 100 simulated queries.
121
+
122
+ # 5.2 UNSUPERVISED EXPLORATION AND SKILL ACQUISITION
123
+
124
+ We can also use DDL to efficiently acquire complex behaviors, such as locomotion skills, in a completely unsupervised fashion. From the observation that many high-reward states are far away from the start state, we can devise a simple and effective exploration strategy that leverages our learned dynamical distances: we can simply select goals that are far from the initial state according to their estimated dynamical distance. We call this variant of our method “dynamical distance learning - unsupervised” (DDLUS).
125
+
126
+ Intuitively, this method causes the agent to explore the “frontier” of hard-to-reach states, either discovering shorter paths for reaching them and thus making them no longer be on the frontier, or else finding new states further on the fringe through additive random exploration. In practice, we find that this allows the agent to quickly explore distant states in a directed fashion. In Section 6, we show that, by setting choose go $\begin{array} { r } { \mathrm { a l } ( \mathscr { D } ) \equiv \mathrm { \bar { a r g } m a x } _ { \mathbf { g } \in \mathscr { D } } d _ { \psi } ^ { \pi } ( \mathbf { s } _ { 0 } , \mathbf { g } ) } \end{array}$ , where $\mathbf { s } _ { 0 }$ is the initial state, we can acquire effective running gaits and pole balancing skills in a variety of simulated settings. While this approach is not guaranteed to discover interesting and useful skills in general, we find that, on a variety of commonly used benchmark tasks, this approach to unsupervised goal selection actually discovers behaviors that perform better with respect to the (unknown) task reward than previously proposed unsupervised reinforcement learning objectives.
127
+
128
+ # 6 EXPERIMENTS
129
+
130
+ Our experimental evaluation aims to study the following empirical questions: (1) Does supervised regression provide a good estimator of the true dynamical distance? (2) Is DDL applicable to realworld, vision-based robotic control tasks? (3) Does DDL provide an efficient method of learning skills a) from user-provided preferences, and b) completely unsupervised?
131
+
132
+ We evaluate our method both in the real world and in simulation on a set of state- and visionbased continuous control tasks. We consider a 9-DoF real-world dexterous manipulation task and 4 standard OpenAI Gym tasks (Hopper-v3, HalfCheetah-v3, Ant-v3, and InvertedDoublePendulumv2). For all of the tasks, we parameterize our distance function as a neural network, and use soft actor-critic (SAC) (Haarnoja et al., 2018b) with the default hyperparameters to learn the policy. For state-based tasks, we use feed-forward neural networks and for the vision-based tasks we add a convolutional preprocessing network before these fully connected layers. The image observation for all the vision-based tasks are 3072 dimensional $3 2 \mathrm { x } 3 2$ RGB images). Further details are presented in Appendix E.
133
+
134
+ We study question (1) using a simple didactic example involving navigation through a twodimensional S-shaped maze, which we present in Appendix C. The other two research questions are studied in the following sections.
135
+
136
+ # 6.1 VISION-BASED REAL-WORLD MANIPULATION FROM HUMAN PREFERENCES
137
+
138
+ To study the question (2), we apply DDLfP to a real-world vision-based robotic manipulation task. The domain consists of a 9-DoF “DClaw” hand introduced by Ahn et al. (2019), and the manipulation task requires the hand to rotate a valve 180 degrees, as shown in Figure 1. The human operator is queried for a preference every 10K environment steps. Both the visionand state-based experiments with the real robot use 10 queries during the first 4 hours of an 8- hour training period. Note that, for this and all the subsequent experiments, DDLfP does not have access to the true reward, and must learn entirely from preference queries, which in this case are provided by a human operator.
139
+
140
+ Figure 3 presents the performance over the course of training. DDLfP uses 10 preference queries to learn the task and its performance is comparable to that of SAC trained with a ground truth shaped reward function. We also
141
+
142
+ ![](images/0e8638fd707890840c834f07574f1f91dee0ea9f7124ec973dd7253b6efddd6f.jpg)
143
+ Figure 3: (Left) learning curves for the valve rotation task learned from state. (Right) Same task from vision. The curves correspond to the final distance (measured in radians) of the valve from the target angle during a rollout. Our method (DDLfP, orange) solves the task in 8 hours. Its performance is comparable to that of SAC with true rewards, and VICE with example outcome images. DDLfP only requires 10 preference queries, and learns without true rewards or outcome images. We compare our method in the simulated version of this task in Figure 5.
144
+
145
+ show a comparison to variational inverse control with events (VICE) (Singh et al., 2019), a recent classifier-based reward specification framework. Instead of preference queries, VICE requires the user to provide examples of the desired goal state at the beginning of training (20 images in this case). For vision-based tasks, VICE involves directly showing images of the desired outcome to the user, which requires physically arranging a scene and taking a picture of it. Preferences, on the other hand, require a user to simply select one state out of a small set, which can be done with a button press and done e.g. remotely, thus often making it substantially less labor-intensive than VICE. As we can see in the experiments, DDLfP achieves similar performance with substantially less operator effort, using only a small number of preference queries. The series of goal preferences queried from the human operator are shown in Appendix D.
146
+
147
+ # 6.2 ABLATIONS, COMPARISONS, AND ANALYSIS
148
+
149
+ Next, we analyze design decisions in our method and compare it to prior methods in simulation. First, we replace the cumulative objective in Equation 4 with objective that greedily minimizes the distance function trained with supervised loss. This objective is unable to learn the task from either state or vision observations. Next, we replace the supervised loss in Equation 3 of our DDL method with a temporal difference (TD) Q-learning style update rule that learns dynamical distances with approximate dynamic programming. The results in Figure 5 show that, all else being equal, the TD-based method fails to learn successfully from both low-dimensional state and vision observations. Figure 5 further shows a comparison between using the dynamical distance as the reward in comparison to a reward of -1 for each step until the goal is reached, which corresponds to hindsight experience replay (HER) with goal sampling replaced with preference goals (Andrychowicz et al., 2017). We see that dynamical distances allow the policy to reach the goal when learning both from state and from images, while HER is only successful when learning from low-dimensional states.
150
+
151
+ ![](images/8cc14e198c178ab985ae1fbee23f574bd912e277d52d63c9b8c36da42d31afb6.jpg)
152
+ Figure 4: Learning curves for MuJoCo tasks with DDLfP. The y-axis presents the true return of the task. We compare DDLfP to SAC trained directly from the true reward function, which provides an oracle upper bound baseline, and the prior method proposed by Christiano et al. (2017). The prior method uses an on-policy RL algorithm which typically requires more samples than off-policy algorithms, and thus we also plot its final performance after 20M training steps with red star. At the time of the submission, the Ant-v3 run is still in progress and the complete learning curve will be included in the final.
153
+
154
+ These results are corroborated by prior results in the literature that have found that temporal difference learning struggles to capture the true value accurately (Lillicrap et al., 2015; Fujimoto et al., 2018). Note that prior work work does not use the full state as the goal, but rather manually selects a low-dimensional subspace, such as the location of an object, forcing the distance to focus on task-relevant objects (Andrychowicz et al., 2017). Our method learns distances between full image states (3072-dimensional) while HER uses 3- dimensional goals, a difference of two orders of magnitude in dimensionality. This difficulty of learning complex image-based goals is further corroborated in prior work (Pong et al., 2018; Nair et al., 2018; Pong et al., 2019; WardeFarley et al., 2018).
155
+
156
+ ![](images/0b3a0827d435fb404120c1d115f3062e035d2886233bfc9d096b8d61e9c3e894.jpg)
157
+ Figure 5: We compare DDL against alternative methods for learning distances on the simulated valve turning task, when learning from the underlying low-dimensional state (left) and from images (right). Dynamical distances used greedily (orange) or learned with TD (green) generally perform poorly. HER (red) can learn from lowdimensional states, but fails to learn from images. Our method, DDLfP (blue) successfully learns the task from either states or images.
158
+
159
+ Figure 4 presents results for learning from preferences via DDLfP (in green) on a set of continuous control tasks to further study the question (3,a). The plots show the true reward for each method on each task. DDLfP receives only sparse preferences as task-specific supervision, and the preferences in this case are provided synthetically, choosing the state that has progressed the largest distance from the initial state in the desired direction, i.e. the state with largest x-coordinate value. However, this still provides substantially less supervision signal than access to the true reward for all samples. We compare to (Christiano et al., 2017), which also uses preferences for learning skills, but without the use of dynamical distances. The prior method is provided with 750 preference queries over the course of training, while our method uses 100 for all locomotion tasks, and only a single query for the InvertedDoublePendulum-v2, as the initial state and the goal states coincides.3 Note that Christiano et al. (2017) utilizes an on-policy RL algorithms, which is less efficient than SAC. However, DDLfP outperforms this prior method in terms of both final performance and learning speed on all tasks, except for the Hopper-v3 task.
160
+
161
+ Locomotion tasks like the ones considered here do not fit into DDL framework directly. In this particular case of locomotion tasks, we can fix the issue by considering a case where the ultimate task is to reach a specific goal, i.e. the operator would always choose the goal to be the state closest to the ”ultimate task goal”. In that case, we can see the locomotion task to be the limit case where the ultimate goal is as far as possibly reachable within the maximum episode length.
162
+
163
+ ![](images/802d9fd3e2568aae649bb0f14a735f9102ce64347008b9a463a07431197fd1e3.jpg)
164
+ Figure 6: (Top) Learning curves for DDLUS. The y-axis plots the environment return (not accessible during the training) for InvertedDoublePendulum-v3, and the L2-distance travelled from the origin for Hopper-v3, HalfCheetah-v3, and Ant-v3. (Bottom) Frequency histograms of skills learned with DDLUS (blue) and DIAYN (orange) (Eysenbach et al., 2018) across different training runs, evaluated according to the travelled L2-distance from the origin.
165
+
166
+ # 6.3 ACQUIRING UNSUPERVISED SKILLS
167
+
168
+ Finally, we study question (3,b) in order to understand how well DDLUS can acquire skills without any supervision. We structure these experiments analogously to the unsupervised skill learning experiments proposed by Eysenbach et al. (2018), and compare to the DIAYN algorithm, another unsupervised skill discovery method, proposed in their prior work. While our method maximizes the complexity of the learned skills by attempting to reach the furthest possible goal, DIAYN maximizes the diversity of learned skills. This of course produces different biases in the skills produced by the two methods. Figure 6 shows both learning curves and histograms of the skills learned in the locomotion tasks with the two methods, evaluated according to how far the simulated robot in each domain travels from the initial state. Our DDLUS method learns skills that travel further than DIAYN, while still providing a variety of different behaviors (e.g., travel in different directions). This experiment aims to provide a direct comparison to the DIAYN algorithm (Eysenbach et al., 2018), though a reasonable criticism is that maximizing dynamical distance is particularly wellsuited for the criteria proposed by Eysenbach et al. (2018). We also evaluated DDLUS on the InvertedDoublePendulum-v2 domain, where the task is to balance a pole on a cart. As can be seen from Figure 6, DDLUS can efficiently solve the task without the true reward, as reaching dynamically far states amounts to avoiding failure as far as possible.
169
+
170
+ # 7 CONCLUSION
171
+
172
+ We presented dynamical distance learning (DDL), an algorithm for learning dynamical distances that can be used to specify reward functions for goal reaching policies, and support both unsupervised and semi-supervised exploration and skill discovery. Our algorithm uses a simple and stable supervised learning procedure to learn dynamical distances, which are then used to provide a reward function for a standard reinforcement learning method. This makes DDL straightforward to apply even with complex and high-dimensional observations, such as images. By removing the need for manual reward function design and manual reward shaping, our method makes it substantially more practical to employ deep reinforcement learning to acquire skills even with real-world robotic systems. We demonstrate this by learning a valve-turning task with a real-world robotic hand, using 10 preference queries from a human, without any manual reward design or other examples or supervision. One of the main limitations of our current approach is that, although it can be used with an off-policy reinforcement learning algorithm, it requires on-policy data collection for learning the dynamical distances. While the resulting method is still efficient enough to learn directly in the real world, the efficiency of our approach can likely be improved in future work by lifting this limitation. This would not only make learning faster but would also make it possible to pre-train dynamical distances using previously collected experience, potentially making it feasible to scale our method to a multi-task learning setting, where the same dynamical distance function can be used to learn multiple distinct skills.
173
+
174
+ # ACKNOWLEDGMENTS
175
+
176
+ We thank Vikash Kumar for the DClaw robot design, Nicolas Heess for helpful discussion, and Henry Zhu and Justin Yu for their help on setting up and running the hardware experiments. This research was supported by the Office of Naval Research, the National Science Foundation through IIS-1651843 and IIS-1700696, and Berkeley DeepDrive.
177
+
178
+ # REFERENCES
179
+
180
+ Michael Ahn, Henry Zhu, Kristian Hartikainen, Hugo Ponte, Abhishek Gupta, Sergey Levine, and Vikash Kumar. Robel: Robotics benchmarks for learning with low-cost robots. In Conference on Robot Learning (CoRL), 2019.
181
+
182
+ Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5048–5058, 2017.
183
+
184
+ Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems (NeurIPS), pp. 4299–4307, 2017.
185
+
186
+ B. Eysenbach, A. Gupta, J. Ibarz, and S. Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018.
187
+
188
+ Benjamin Eysenbach, Ruslan Salakhutdinov, and Sergey Levine. Search on the replay buffer: Bridging planning and reinforcement learning. arXiv preprint arXiv:1906.05253, 2019.
189
+
190
+ Carlos Florensa, David Held, Xinyang Geng, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. In International Conference on Machine Learning (ICML), 2018.
191
+
192
+ Carlos Florensa, Jonas Degrave, Nicolas Heess, Jost Tobias Springenberg, and Martin Riedmiller. Self-supervised learning of image embedding for continuous control. arXiv preprint arXiv:1901.00943, 2019.
193
+
194
+ S. Fujimoto, H. van Hoof, and D. Meger. Addressing function approximation error in actor-critic methods. In International Conference on Machine Learning (ICML), 2018.
195
+
196
+ T. Haarnoja, V. Pong, A. Zhou, M. Dalal, P. Abbeel, and S. Levine. Composable deep reinforcement learning for robotic manipulation. In International Conference on Robotics and Automation (ICRA). IEEE, 2018a.
197
+
198
+ T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning (ICML), 2018b.
199
+
200
+ T. Haarnoja, A. Zhou, K. Hartikainen, G. Tucker, S. Ha, J. Tan, V. Kumar, H. Zhu, A. Gupta, P. Abbeel, and S. Levine. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018c.
201
+
202
+ Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In Advances in Neural Information Processing Systems (NeurIPS), pp. 1109–1117, 2016.
203
+
204
+ L. P. Kaelbling, M. L. Littman, and A. W. Moore. Reinforcement learning: A survey. Journal of artificial intelligence research, 4:237–285, 1996.
205
+
206
+ Leslie Pack Kaelbling. Learning to achieve goals. In International Joint Conference on Artificial Intelligence (IJCAI), pp. 1094–1099. Citeseer, 1993.
207
+
208
+ S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016.
209
+
210
+ T. P. Lillicrap, J. J. Hunt, A. Pritzel, N. Heess, T. Erez, Y. Tassa, D. Silver, and D. Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
211
+
212
+ A Rupam Mahmood, Dmytro Korenkevych, Brent J Komer, and James Bergstra. Setting up a reinforcement learning task with a real-world robot. In International Conference on Intelligent Robots and Systems (IROS), pp. 4635–4640. IEEE, 2018.
213
+ V. Mnih, K. Kavukcuoglu, D. Silver, A. A Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
214
+ Ashvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Advances in Neural Information Processing Systems, pp. 9191–9200, 2018.
215
+ Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. In Advances in neural information processing systems (NeurIPS), pp. 4026– 4034, 2016.
216
+ Vitchyr Pong, Shixiang Gu, Murtaza Dalal, and Sergey Levine. Temporal difference models: Modelfree deep RL for model-based control. In International Conference on Learning Representations (ICLR), 2018.
217
+ Vitchyr Pong, Murtaza Dalal, Steven Lin, Ashvin Nair, Shikhar Bahl, and Sergey Levine. Skew-fit: State-covering self-supervised reinforcement learning. arXiv preprint arXiv:1903.03698, 2019.
218
+ Nikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. In International Conference of Learning Representations (ICLR), 2018.
219
+ T. Schaul, D. Horgan, K. Gregor, and D. Silver. Universal value function approximators. In International Conference on Machine Learning (ICML), pp. 1312–1320, 2015.
220
+ Avi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. arXiv preprint arXiv:1904.07854, 2019.
221
+ Richard S Sutton, Joseph Modayil, Michael Delp, Thomas Degris, Patrick M Pilarski, Adam White, and Doina Precup. Horde: A scalable real-time architecture for learning knowledge from unsupervised sensorimotor interaction. In The 10th International Conference on Autonomous Agents and Multiagent Systems-Volume 2, pp. 761–768. International Foundation for Autonomous Agents and Multiagent Systems, 2011.
222
+ David Warde-Farley, Tom Van de Wiele, Tejas Kulkarni, Catalin Ionescu, Steven Hansen, and Volodymyr Mnih. Unsupervised control through non-parametric discriminative rewards. arXiv
223
+
224
+ preprint arXiv:1811.11359, 2018.
225
+
226
+ # Appendices
227
+
228
+ # A CORRECT BEHAVIOR IN THE PATHOLOGICAL MDP
229
+
230
+ In this appendix we show that the policy that maximizes the objective in Equation 1, with the reward $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) { \bar { \mathbf { \eta } } } = - d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ , where $d ^ { \pi }$ is given by Equation 2, prefers safe actions over risky actions.
231
+
232
+ Assume that $c ( \mathbf { s } _ { t } , \mathbf { s } _ { t + 1 } ) = \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t } \right]$ is an indicator function that is 0 if $\mathbf { s } _ { t }$ is a goal state or terminal state and 1 for all the other states. We can now write the definition of $d ^ { \pi }$ as an infinite sum and substitute $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) - d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ in Equation 1:
233
+
234
+ $$
235
+ \mathcal { L } ( \pi ) = - \mathbb { E } _ { \tau \sim \pi } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { E } _ { \tau ^ { \prime } \sim \pi } \left[ \sum _ { k = 0 } ^ { \infty } \gamma ^ { k } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { k } \right] \middle | \mathbf { s } _ { 0 } ^ { \prime } = \mathbf { s } _ { t } , \mathbf { a } _ { 0 } ^ { \prime } = \mathbf { a } _ { t } \right] \right] .
236
+ $$
237
+
238
+ The first term $k = 0 ,$ ) in the inner sum depends only on $\mathbf { s } _ { 0 } ^ { \prime }$ , which is given, and the term can thus be moved outside the inner expectation:
239
+
240
+ $$
241
+ \mathcal { L } ( \boldsymbol { \pi } ) = - \mathbb { E } _ { \boldsymbol { \tau } \sim \boldsymbol { \pi } } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t } \right] + \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { E } _ { \boldsymbol { \tau } ^ { \prime } \sim \boldsymbol { \pi } } \left[ \sum _ { k = 1 } ^ { \infty } \gamma ^ { k } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { k } ^ { \prime } \right] \bigg \vert \mathbf { s } _ { 0 } ^ { \prime } = \mathbf { s } _ { t } , \mathbf { a } _ { 0 } ^ { \prime } = \mathbf { a } _ { t } \right] \right] .
242
+ $$
243
+
244
+ Next, note that the statistics of the inner expectation over $( \mathbf { s } _ { 1 } ^ { \prime } , \mathbf { a } _ { 1 } ^ { \prime } )$ are the same as the outer expectation over $( \mathbf { s } _ { 1 } , \mathbf { a } _ { 1 } )$ , as they are both conditioned on the same $\left( \mathbf { s } _ { t } , \mathbf { a } _ { t } \right)$ . Thus, we can condition the second expectation directly on $( \mathbf { s } _ { 1 } ^ { \prime } , \mathbf { a } _ { 1 } ^ { \prime } ) = ( \mathbf { s } _ { t + 1 } , \mathbf { a } _ { t + 1 } )$ :
245
+
246
+ $$
247
+ \mathcal { L } ( \boldsymbol { \pi } ) = - \mathbb { E } _ { \boldsymbol { \tau } \sim \boldsymbol { \pi } } [ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { 1 } _ { \mathbf { g } } [ \mathbf { s } _ { t } ] + \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { E } _ { \boldsymbol { \tau } ^ { \prime } \sim \boldsymbol { \pi } } [ \sum _ { k = 1 } ^ { \infty } \gamma ^ { k } \mathbb { 1 } _ { \mathbf { g } } [ \mathbf { s } _ { k } ^ { \prime } ] | \mathbf { s } _ { 1 } ^ { \prime } = \mathbf { s } _ { t + 1 } , \mathbf { a } _ { 1 } ^ { \prime } = \mathbf { a } _ { t + 1 } ] ] .
248
+ $$
249
+
250
+ We can now apply the same argument as before and move $\mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { 1 } ^ { \prime } \right]$ outside the inner expectation. Repeating these steps multiple times yields
251
+
252
+ $$
253
+ \begin{array} { l } { { \displaystyle { \mathcal { L } } ( \boldsymbol { \pi } ) = - \mathbb { E } _ { \boldsymbol { \tau } \sim \boldsymbol { \pi } } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t } \right] + \sum _ { t = 0 } ^ { \infty } \gamma ^ { t + 1 } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t + 1 } \right] + \sum _ { t = 0 } ^ { \infty } \gamma ^ { t + 2 } \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t + 2 } \right] + . . . \right] } } \\ { { \displaystyle ~ = - \mathbb { E } _ { \boldsymbol { \tau } \sim \boldsymbol { \pi } } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } ( t + 1 ) \mathbb { 1 } _ { \mathbf { g } } \left[ \mathbf { s } _ { t } \right] \right] . } } \end{array}
254
+ $$
255
+
256
+ Assuming that the agent always reaches the goal relatively quickly compared to the discount factor, such that $\gamma ^ { t } \approx 1$ , the trajectories that take longer dominate the loss due to the $( t + 1 )$ factor. Therefore, an optimal agent prefers actions that reduce the risk of long, highly suboptimal trajectories, avoiding the pathological behavior discussed in Section 4.3.
257
+
258
+ # B POLICY IMPROVEMENT WHEN USING DISTANCE AS REWARD
259
+
260
+ In this appendix we show that, when we use the negative dynamical distance $- d ^ { \pi }$ as the reward function in RL, we can learn an optimal policy with respect to the true dynamical distance, leading to policies that optimize the actual number of time steps needed to reach the goal. This result is nontrivial, since the reward function does not at first glance directly optimize for shortest paths. Our proof relies on the assumption that the MDP has deterministic dynamics. However, this assumption holds in all of our experiments, since the MuJoCo benchmark tasks are governed by deterministic dynamics. Under this assumption, DDL will learn policies that take the shortest path to the goal at convergence, despite using the negative dynamical distance as the reward.
261
+
262
+ Let $d ^ { * } ( { \bf s } , { \bf g } ) = \operatorname* { m i n } _ { \pi } d ^ { \pi } ( { \bf s } , { \bf g } )$ be the optimal distance from state s to goal state $\mathbf { g }$ . Let $\pi ^ { \prime }$ be the optimal policy for the reinforcement learning problem with reward $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) = - d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ . DDL can be viewed as alternating between fitting $d ^ { \pi }$ to the current policy $\pi$ , and learning a new policy $\pi ^ { \prime }$ that is optimal with respect to the reward function given by $- d ^ { \pi }$ .4 We can now state our main theorem as follows:
263
+
264
+ Theorem 1. Under deterministic dynamics, for any state s and g, we have:
265
+
266
+ 1. $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \leq d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) .$ .
267
+ 2. If $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) = d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ , then $d ^ { \pi ^ { \prime } } ( { \bf s } , { \bf g } ) = d ^ { \ast } ( { \bf s } , { \bf g } ) .$
268
+
269
+ This implies that, when the policy converges, such that $\pi ^ { \prime } = \pi$ , the policy $\pi ^ { \prime }$ achieves the optimal distance to any goal, and therefore is the optimal policy for the shortest path reward function (e.g., the reward function that assigns a reward of $- 1$ for any step that does not reach the goal).
270
+
271
+ Proof.
272
+
273
+ Part 1 Without loss of generality, we assume that our policy is deterministic, since the set of optimal policies in an MDP always includes at least one deterministic policy. We also assume that g is a terminal state and thus $d ( \mathbf { g } , \mathbf { g } ) = 0$ . Let us denote the action of policy $\pi$ on state s as $\pi ( \mathbf { s } )$ . We start by showing that $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \leq d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ . We fix a particular goal $\mathbf { g }$ . Let $S _ { k } = \left\{ \mathbf { s } ; d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) = k \right\}$ be the set of states that takes $k$ steps under $\pi$ to reach the goal. We show that $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \leq d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) =$ $k$ for all $\mathbf { s } \in S _ { k }$ for each $k$ by contradiction.
274
+
275
+ For $k = 0$ , $S _ { 0 } = \{ \mathbf { g } \}$ is just the single goal state and ${ d ^ { \pi } } ^ { \prime } ( { \bf g } , { \bf g } ) = { d ^ { \pi } } ( { \bf g } , { \bf g } ) = 0$ by definition. For $k = 1$ , for all $\mathbf { s } \in S _ { 1 }$ , there is an action a that reaches the goal state as the direct next state. Therefore, the optimized policy $\pi ^ { \prime }$ would still take the same action a on these states and $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) = 1$ .
276
+
277
+ Now assume that the opposite is true, that $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) > d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ for some states. Then, there must be a smallest number $K > 1$ and a state ${ \bf s } _ { 0 } \in { \cal S } _ { K }$ such that $d ^ { \pi ^ { \prime } } ( \mathbf { s } _ { 0 } , \mathbf { g } ) = T > d ^ { \pi } ( \mathbf { s } _ { 0 } , \mathbf { g } ) = K$ . Now let us denote the trajectory of states taken by $\pi$ starting from ${ \bf s } _ { 0 }$ as $\{ \mathbf { s } _ { 0 } , \mathbf { s } _ { 1 } , . . . , \mathbf { s } _ { K } = g \}$ , and the trajectory taken by $\pi ^ { \prime }$ as $\{ \mathbf { s } _ { 0 } ^ { \prime } = \mathbf { s } _ { 0 } , \mathbf { s } _ { 1 } ^ { \prime } , . . . , \mathbf { s } _ { T } ^ { \prime } = g \}$ . Let $\mathcal { L } _ { \pi } ( \cdot )$ denote the accumulated discounted sum of distance as defined in Equation 4. By our assumption $T > K$ , and since $\pi ^ { \prime }$ is optimal with respect to the reward $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) = - d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ , we have
278
+
279
+ $$
280
+ \mathcal { L } _ { \pi } ( \pi ^ { \prime } ) = \sum _ { i = 0 } ^ { T - 1 } \gamma ^ { i } d ^ { \pi } ( \mathbf { s } _ { i } ^ { \prime } , \mathbf { g } ) \leq \mathcal { L } _ { \pi } ( \pi ) = \sum _ { i = 0 } ^ { K - 1 } \gamma ^ { i } d ^ { \pi } ( \mathbf { s } _ { i } , \mathbf { g } ) = \sum _ { i = 0 } ^ { K - 1 } \gamma ^ { i } ( K - 1 - i )
281
+ $$
282
+
283
+ Then there must be a time $\hat { t } < K$ such that $d ^ { \pi } ( \mathbf { s } _ { \hat { t } } ^ { \prime } , \mathbf { g } ) < d ^ { \pi } ( \mathbf { s } _ { \hat { t } } , \mathbf { g } ) = K - 1 - \hat { t }$ . Therefore $\mathbf { s } _ { \hat { t } } ^ { \prime } \in S _ { k }$ for some $k < K - 1 - \hat { t }$ . However, starting from $\mathbf { s } _ { \hat { t } } ^ { \prime }$ , we have $d ^ { \pi ^ { \prime } } ( \mathbf { s } _ { \hat { t } } ^ { \prime } , \mathbf { g } ) = T - 1 - \hat { t } > K - 1 - \hat { t } =$ $d ^ { \pi } ( \mathbf { s } _ { \hat { t } } ^ { \prime } , \mathbf { g } )$ . Therefore, we reached a contradiction with our assumption that $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \leq d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ for all s, $k < K$ such that $\mathbf { s } \in S _ { k }$ . Therefore, $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \leq d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ holds for all states.
284
+
285
+ Part 2 Now we show the second part: if $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) = d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } )$ , then $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) = d ^ { * } ( \mathbf { s } , \mathbf { g } )$ . We prove this with a similar argument, grouping states by distance. Let $S _ { k } ^ { * } = \{ \mathbf { s } ; d ^ { * } ( \mathbf { s } , \mathbf { g } ) = k \}$ be the set of states that takes $k$ steps under the optimal policy to reach the goal. Note that, for any arbitrary policy $\pi$ , we have $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) \geq d ^ { * } ( \mathbf { s } , \mathbf { g } )$ by definition, since $d ^ { * }$ is the optimal distance.
286
+
287
+ Suppose that $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) > d ^ { * } ( \mathbf { s } , \mathbf { g } )$ for some state s. Then there must be a smallest integer $K \geq 0$ such that there exists a state ${ \bf s } _ { 0 } \in { \cal S } _ { K } ^ { * }$ where $d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) > d ^ { * } ( { \bf s } _ { 0 } , { \bf g } )$ . For all $k \ < \ K$ , we have $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) = d ^ { * } ( \mathbf { s } , \mathbf { g } )$ for all $\mathbf { s } \in S _ { k } ^ { * }$ . Now starting from that state ${ \bf s } _ { 0 }$ , let the trajectory of states taken by $\pi$ be $\{ \mathbf { s } _ { 0 } , \mathbf { s } _ { 1 } , . . . , \mathbf { s } _ { T } = g \}$ . Note that since $d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) > d ^ { * } ( { \bf s } _ { 0 } , { \bf g } ) = { \cal K } , $ $T > K$ . Let $\hat { \pi }$ be the policy such that it agrees with $\pi ^ { * }$ on $\mathbf { s } _ { 0 }$ and agrees with $\pi$ everywhere else. At the first step, $\hat { \pi }$ lands on state $\mathbf { s } _ { 1 } ^ { \prime }$ . Since ${ \bf s } _ { 0 }$ is $K$ steps away from $\mathbf { g }$ under $d ^ { * }$ , $\mathbf { s } _ { 1 } ^ { \prime }$ must be $K - 1$ steps away under $d ^ { * }$ and ${ \bf s } _ { 1 } ^ { \prime } \in { \cal S } _ { K - 1 } ^ { * }$ . Therefore, since $\pi$ and $\pi ^ { * }$ agrees on all states that are less than $K$ steps away from goal g, $\hat { \pi }$ would take the same action as $\pi ^ { * }$ and hence take another $K - 1$ steps to goal g. Now let us denote the trajectory taken by $\hat { \pi }$ as $\{ \mathbf { s } _ { 0 } ^ { \prime } = \mathbf { s } _ { 0 } , \mathbf { s } _ { 1 } ^ { \prime } , . . . , \mathbf { s } _ { K } ^ { \prime } = g \}$ . We compare the discounted sum of rewards of $\pi$ and $\hat { \pi }$ under the reward function $r _ { \mathbf { g } } ( \mathbf { s } , \mathbf { a } ) = - d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ .
288
+
289
+ $$
290
+ \begin{array} { l } { { \displaystyle { \mathcal { L } } _ { \pi } ( \pi ) = \sum _ { i = 0 } ^ { T - 1 } \gamma ^ { i } d ^ { \pi } ( { \bf s } _ { i } , { \bf g } ) = d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) + \sum _ { i = 1 } ^ { T - 1 } \gamma ^ { i } d ^ { \pi } ( { \bf s } _ { i } , { \bf g } ) } \ ~ } \\ { { \displaystyle ~ = d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) + \sum _ { i = 1 } ^ { T - 1 } \gamma ^ { i } ( T - i ) \geq d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) + \sum _ { i = 1 } ^ { K - 1 } \gamma ^ { i } ( K - i ) } \ ~ } \\ { { \displaystyle ~ = d ^ { \pi } ( { \bf s } _ { 0 } , { \bf g } ) + \sum _ { i = 1 } ^ { K - 1 } \gamma ^ { i } d ^ { \pi } ( { \bf s } _ { i } ^ { \prime } , { \bf g } ) = \sum _ { i = 0 } ^ { K - 1 } \gamma ^ { i } d ^ { \pi } ( { \bf s } _ { i } ^ { \prime } , { \bf g } ) = { \mathcal L } _ { \pi } ( \hat { \pi } ) } \ ~ } \end{array}
291
+ $$
292
+
293
+ Therefore, we can see that $\hat { \pi }$ is a better policy than $\pi$ . Then the optimal policy $\pi ^ { \prime }$ under this reward must be different from $\pi$ on at least one state. Hence $d ^ { \pi } ( \mathbf { s } , \mathbf { g } ) \neq d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } )$ .
294
+
295
+ We’ve now reached the conclusion that if $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \neq d ^ { * } ( \mathbf { s } , \mathbf { g } )$ , then $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) \neq d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ . Hence, by contraposition, if $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) = d ^ { \pi } ( \mathbf { s } , \mathbf { g } )$ , then it must be that $d ^ { \pi ^ { \prime } } ( \mathbf { s } , \mathbf { g } ) = d ^ { \ast } ( \mathbf { s } , \mathbf { g } )$ . Our proof is thus complete.
296
+
297
+ C DIDACTIC EXAMPLE
298
+
299
+ Our didactic example involves a simple 2D point robot navigating an S-shaped maze. The state space is two-dimensional, and the action is a two-dimensional velocity vector. This experiment is visualized in Figure 7. The black rectangles correspond to walls, and the goal is depicted with a blue star. The learned distance from all points in the maze to the goal is illustrated with a heat map, in which lighter colors correspond to closer states and darker colors to distant states. During the training, the initial state is chosen uniformly at random, and the policy is trained to reach the goal state. From the visualization, it is apparent that DDL learns an accurate estimate of the true dynamical distances in this domain. Note that, in contrast to na¨ıve metrics, such as Euclidean distance, the dynamical distances conform to the walls and provide an accurate estimate of reachability, making them ideally suited for reward shaping.
300
+
301
+ ![](images/0b1a512d4116173ff2294981ff2c4240e5fd3f1a154be461354f90236d4173dd.jpg)
302
+ Figure 7: Evaluation of the learned distance in a 2D point environment. The state is the xycoordinates of the point, and action corresponds to 2D velocities. The black bars denote walls, blue star is a goal state, and the heat map denotes the estimated distance to the goal. (a) Our method learns an accurate estimate of the shape of the distance function. (b) Ground-truth distance.
303
+
304
+ # D PREFERENCE QUERIES FOR REAL-WORLD DCLAW EXPERIMENT
305
+
306
+ ![](images/1f5b8406ba52b303a00f5db5e76a224ae4a6bbbbe39040a18a95ab863a5b6bfb.jpg)
307
+ Figure 8: Human preference queries for the vision-based DClaw experiment presented in Section 6.1. Each image row presents the set of images shown to the human operator on a single query round. On each row, the first 10 images correspond to the last states of the most recent rollouts and the right-most image corresponds to the last goal. For each query, the human operator picks a new goal by inputting its index (between 0-10) into a text-based interface. The goals selected by human are highlighted with white borders.
308
+
309
+ # E TECHNICAL DETAILS
310
+
311
+ All our experiments use Soft Actor-Critic as the policy optimizer, trained the default parameters by provided by the authors in (Haarnoja et al., 2018c).
312
+
313
+ For all of the tasks, we parameterize our distance function as a neural network. For state-based tasks, we use feed-forward neural networks with two 256-unit hidden layers. For the vision-based tasks we add a convolutional preprocessing network before these fully-connected layers, consisting of four convolutional layers, each with $6 4 3 \mathrm { x } 3 $ filters. Both cases use Adam optimizer with learning rate 3e4 and TensorFlow‘s default momentum parameters. The image observation for all the vision-based tasks are 3072 dimensional (32x32 RGB images).
314
+
315
+ Most important hyperparameters that we swept over in the final experiments, namely the size of the on-policy pool for training the distance function and the number of gradient steps per environment samples, are presented in Table 1 below:
316
+
317
+ Table 1: Distance estimator hyperparameters.
318
+
319
+ <table><tr><td>Environment</td><td>gradient steps per environment steps</td><td>on-policy pool size</td></tr><tr><td>InvertedDoublePendulum-v2</td><td>1/64</td><td>100k</td></tr><tr><td>Hopper-v3</td><td>1/64</td><td>16k</td></tr><tr><td>HalfCheetah-v3</td><td>1/16</td><td>16k</td></tr><tr><td>Ant-v3</td><td>1/64</td><td>10k</td></tr><tr><td>DClaw (both state and vision)</td><td>1/16</td><td>100k</td></tr></table>
320
+
321
+ For the DDLUS goal proposals, we consider all the samples in the distance on-policy pool as the goal candidates. For DDLfP, we present the operator the last states $( s _ { T - 1 } )$ of the last $N$ episodes, where $N = 5$ for all the simulated experiments, and $N = 1 0$ for the hardware DClaw.
322
+
323
+ As discussed in Section 5, for both DDLUS and DDLfP, the agent needs to explore in the vicinity of the goal state. In practice, we implement this by switching to a random uniform policy after $0 . 9 \mathrm { T }$ timesteps of each episode, where $\mathrm { T }$ is the maximum episode length (1000 for all the mujoco tasks and 200 for the DClaw task).
parse/train/H1lmhaVtvr/H1lmhaVtvr_content_list.json ADDED
@@ -0,0 +1,1671 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DYNAMICAL DISTANCE LEARNING FOR SEMI-SUPERVISED AND UNSUPERVISED SKILL DISCOVERY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 653,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Kristian Hartikainen∗ University of California, Berkeley University of Oxford ",
17
+ "bbox": [
18
+ 184,
19
+ 194,
20
+ 408,
21
+ 237
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Xinyang Geng University of California, Berkeley ",
28
+ "bbox": [
29
+ 504,
30
+ 195,
31
+ 730,
32
+ 223
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Tuomas Haarnoja† \nUniversity of California, Berkeley \nGoogle DeepMind ",
39
+ "bbox": [
40
+ 184,
41
+ 257,
42
+ 406,
43
+ 300
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Sergey Levine† University of California, Berkeley ",
50
+ "bbox": [
51
+ 506,
52
+ 257,
53
+ 732,
54
+ 286
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "ABSTRACT ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 454,
64
+ 337,
65
+ 544,
66
+ 352
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Reinforcement learning requires manual specification of a reward function to learn a task. While in principle this reward function only needs to specify the task goal, in practice reinforcement learning can be very time-consuming or even infeasible unless the reward function is shaped so as to provide a smooth gradient towards a successful outcome. This shaping is difficult to specify by hand, particularly when the task is learned from raw observations, such as images. In this paper, we study how we can automatically learn dynamical distances: a measure of the expected number of time steps to reach a given goal state from any other state. These dynamical distances can be used to provide well-shaped reward functions for reaching new goals, making it possible to learn complex tasks efficiently. We show that dynamical distances can be used in a semi-supervised regime, where unsupervised interaction with the environment is used to learn the dynamical distances, while a small amount of preference supervision is used to determine the task goal, without any manually engineered reward function or goal examples. We evaluate our method both on a real-world robot and in simulation. We show that our method can learn to turn a valve with a real-world 9-DoF hand, using raw image observations and just ten preference labels, without any other supervision. Videos of the learned skills can be found on the project website: https://sites.google.com/view/dynamical-distance-learning. ",
73
+ "bbox": [
74
+ 233,
75
+ 371,
76
+ 764,
77
+ 633
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 666,
88
+ 336,
89
+ 683
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The manual design of reward functions represents a major barrier to the adoption of reinforcement learning (RL), particularly in robotics, where vision-based policies can be learned end-toend (Levine et al., 2016; Haarnoja et al., 2018c), but still require reward functions that themselves might need visual detectors to be designed by hand (Singh et al., 2019). While in principle the reward only needs to specify the goal of the task, in practice RL can be exceptionally time-consuming or even infeasible unless the reward function is shaped so as to provide a smooth gradient towards a successful outcome. Prior work tackles such situations with dedicated exploration methods (Houthooft et al., 2016; Osband et al., 2016; Andrychowicz et al., 2017), or by using large amounts of random exploration (Mnih et al., 2015), which is feasible in simulation but infeasible for real-world robotic learning. It is also common to employ heuristic shaping, such as the Cartesian distance to a goal for an object relocation task (Mahmood et al., 2018; Haarnoja et al., 2018a). However, this kind of shaping is brittle and requires manual insight, and is often impossible when ground truth state observations are unavailable, such as when learning from image observations. ",
96
+ "bbox": [
97
+ 173,
98
+ 700,
99
+ 825,
100
+ 881
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/47f0104fb94672688f8075e4e1408411ced19042e07825379df049b062940adf.jpg",
107
+ "image_caption": [
108
+ "Figure 1: We present a dynamical distance learning (DDL) method that can learn a 9-DoF real-world dexterous manipulation task directly from raw image observations. DDL does not assume access to the true reward function and solves the 180 degree valve-rotation task in 8 hours by relying only on 10 human-provided preference labels. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 178,
113
+ 103,
114
+ 820,
115
+ 166
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In this paper, we aim to address these challenges by introducing dynamical distance learning (DDL), a general method for learning distance functions that can provide effective shaping for goal-reaching tasks without manual engineering. Instead of imposing heuristic metrics that have no relationship to the system dynamics, we quantify the distance between two states in terms of the number of time steps needed to transition between them. This is a natural choice for dynamical systems, and prior works have explored learning such distances in simple and low-dimensional domains (Kaelbling, 1993). While such distances can be learned using standard model-free reinforcement learning algorithms, such as Q-learning, we show that such methods generally struggle to acquire meaningful distances for more complex systems, particularly with high-dimensional observations such as images. We present a simple method that employs supervised regression to fit dynamical distances, and then uses these distances to provide reward shaping, guide exploration, and discover distinct skills. ",
122
+ "bbox": [
123
+ 174,
124
+ 261,
125
+ 825,
126
+ 426
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "The most direct use of DDL is to provide reward shaping for a standard deep RL algorithm, to optimize a policy to reach a given goal state. We can also formulate a semi-supervised skill learning method, where a user expresses preferences over goals, and the agent autonomously collects experience to learn dynamical distances in a self-supervised way. Finally, we can use DDL in a fully unsupervised method, where the most distant states are selected for exploration, resulting in an unsupervised reinforcement learning procedure that discovers difficult skills that reach dynamically distant states from a given start state. All of these applications avoid the need for manually designed reward functions, demonstrations, or user-provided examples, and involve minimal modification to existing deep RL algorithms. ",
133
+ "bbox": [
134
+ 174,
135
+ 434,
136
+ 825,
137
+ 559
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "DDL is a simple and scalable approach to learning dynamical distances that can readily accommodate raw image inputs and, as shown in our experiments, substantially outperforms prior methods that learn goal-conditioned policies or distances using approximate dynamic programming techniques, such as Q-learning. We show that using dynamical distances as a reward function in standard reinforcement learning methods results in policies that take the shortest path to a given goal, despite the additional shaping. Empirically, we compare the semi-supervised variant of our method to prior techniques for learning from preferences. We also compare our method to prior methods for unsupervised skill discovery on tasks ranging from 2D navigation to quadrupedal locomotion. Our experimental evaluation demonstrates that DDL can learn complex locomotion skills without any supervision at all, and that the preferences-based version of DDL can learn to turn a valve with a real-world 9-DoF hand, using raw image observations and 10 human-provided preference labels, without any other supervision. ",
144
+ "bbox": [
145
+ 173,
146
+ 566,
147
+ 825,
148
+ 733
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 752,
159
+ 344,
160
+ 768
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Dynamical distance learning is most closely related to methods that learn goal-conditioned policies or value functions (Schaul et al., 2015; Sutton et al., 2011). Many of these works learn goal-reaching directly via model-free RL, often by using temporal difference updates to learn the distance function as a value function (Kaelbling et al., 1996; Schaul et al., 2015; Andrychowicz et al., 2017; Pong et al., 2018; Nair et al., 2018; Florensa et al., 2019). For example, Kaelbling (1993) learns a goal conditioned Q-function to represent the shortest path between any two states, and Andrychowicz et al. (2017) learns a value function that resembles a distance to goals, under a user-specified lowdimensional goal representation. Unlike these methods, DDL learns policy-conditioned distances with an explicit supervised learning procedure, and then employs these distances to recover a reward function for RL. We experimentally compare to RL-based distance learning methods, and show that ",
167
+ "bbox": [
168
+ 174,
169
+ 785,
170
+ 825,
171
+ 924
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "DDL attains substantially better results, especially with complex observations. Another line of prior work uses a learned distance to build a search graph over a set of visited states (Savinov et al., 2018; Eysenbach et al., 2019), which can then be used to plan to reach new states via the shortest path. Our method also learns a distance function separately from the policy, but instead of using it to build a graph, we use it to obtain a reward function for a separate model-free RL algorithm. ",
178
+ "bbox": [
179
+ 174,
180
+ 103,
181
+ 825,
182
+ 172
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "The semi-supervised variant of DDL is guided by a small number of preference queries. Prior work has explored several ways to elicit goals from users, such as using outcome examples and a small number of label queries (Singh et al., 2019), or using a large number of relatively cheap preferences (Christiano et al., 2017). The preference queries that our semi-supervised method uses are easy to obtain and, in contrast to prior work (Christiano et al., 2017), we only need a small number of these queries to learn a policy that reliably achieves the user’s desired goal. Our method is also well suited for fully unsupervised learning, in which case DDL uses the distance function to propose goals for unsupervised skill discovery. Prior work on unsupervised reinforcement learning has proposed choosing goals based on a variety of unsupervised criteria, typically with the aim of attaining broad state coverage (Nair et al., 2018; Florensa et al., 2018; Eysenbach et al., 2018; Warde-Farley et al., 2018; Pong et al., 2019). Our method instead repeatedly chooses the most distant state as the goal, which produces rapid exploration and quickly discovers relatively complex skills. We provide a comparative evaluation in our experiments. ",
189
+ "bbox": [
190
+ 174,
191
+ 180,
192
+ 825,
193
+ 361
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "3 PRELIMINARIES ",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 176,
203
+ 386,
204
+ 339,
205
+ 401
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "In this work, we study control of systems defined by fully observed Markovian dynamics $p ( \\mathbf { s } ^ { \\prime } | \\mathbf { s } , \\mathbf { a } ) :$ $s \\times s \\times { \\mathcal { A } } \\to { \\mathbb { R } } _ { > 0 }$ , where $s$ and $\\mathcal { A }$ are continuous state and action spaces. We aim to learn a stochastic policy $\\pi ( \\mathbf { \\bar { a } } | \\mathbf { s } ) : \\mathcal { A } \\times \\mathcal { S } \\to \\mathbb { R } _ { \\geq 0 }$ , to reach a goal state $\\mathbf { g } \\in { \\mathcal { S } }$ . We will denote a trajectory with $\\boldsymbol { \\tau } \\triangleq ( \\mathbf { s } _ { 0 } , \\mathbf { a } _ { 0 } , . . . , \\mathbf { s } _ { T } ) \\sim \\rho _ { \\pi }$ , where $\\rho _ { \\pi }$ is a the trajectory distribution induced by the policy $\\pi$ , and $\\mathbf { s } _ { 0 }$ is sampled from an initial state distribution $\\rho ( \\mathbf { s } _ { 0 } )$ . The policy can be optimized using any reinforcement learning algorithm by maximizing ",
212
+ "bbox": [
213
+ 173,
214
+ 419,
215
+ 825,
216
+ 506
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "equation",
222
+ "img_path": "images/3b63fc3dfeb86a9581ff8309a23e78dc7fed3834b7f7d7331c677c96705f43d7.jpg",
223
+ "text": "$$\n\\mathcal { L } ( \\pi ) = \\mathbb { E } _ { \\tau \\sim \\rho _ { \\pi } } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r _ { \\mathbf { g } } ( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } ) \\right] ,\n$$",
224
+ "text_format": "latex",
225
+ "bbox": [
226
+ 379,
227
+ 515,
228
+ 617,
229
+ 559
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "where $r _ { \\mathbf { g } } : \\mathcal { S } \\times \\mathcal { A } [ - R _ { \\operatorname* { m i n } } , R _ { \\operatorname* { m a x } } ]$ is a bounded reward function and $\\gamma \\in [ 0 , 1 )$ is a discount factor.1 However, we do not assume that we have access to a shaped reward function. In principle, we could set the reward to $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) = 0$ if $\\mathbf { s } = \\mathbf { g }$ and $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) = - 1$ otherwise to learn a policy to reach the goal in as few time steps as possible. Unfortunately, such a sparse reward signal is extremely hard to optimize, as it does not provide any gradient towards the optimal solution until the goal is actually reached. Instead, in Section 4, we will show that we can efficiently learn to reach goals by making use of a learned dynamical distance function. ",
236
+ "bbox": [
237
+ 174,
238
+ 568,
239
+ 825,
240
+ 669
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "4 DYNAMICAL DISTANCE LEARNING ",
247
+ "text_level": 1,
248
+ "bbox": [
249
+ 174,
250
+ 693,
251
+ 498,
252
+ 709
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "The aim of our method is to learn policies that reach goal states. These goal states can be selected either in an unsupervised fashion, to discover complex skills, or selected manually by the user. The learning process alternates between two steps: in the distance evaluation step, we learn a policyspecific dynamical distance, which is defined in the following subsection. In the policy improvement step, the policy is optimized to reach the desired goal by using the distance function as the negative reward. This process will lead to a sequence of policies and dynamical distance functions that converge to an effective goal-reaching policy. Under certain assumptions, we can prove that this process converges to a policy that minimizes the distance from any state to any goal, as discussed in Appendix B. In this section, we define dynamical distances and describe our dynamical distance learning (DDL) procedure. In Section 5, we will describe the different ways that the goals can be chosen to instantiate our method as a semi-supervised or unsupervised skill learning procedure. ",
259
+ "bbox": [
260
+ 174,
261
+ 727,
262
+ 825,
263
+ 878
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "4.1 DYNAMICAL DISTANCE FUNCTIONS ",
270
+ "text_level": 1,
271
+ "bbox": [
272
+ 176,
273
+ 103,
274
+ 465,
275
+ 118
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "The dynamical distance associated with a policy $\\pi$ , which we write as $d ^ { \\pi } ( \\mathbf { s } _ { i } , \\mathbf { s } _ { j } )$ , is defined as the expected number of time steps it took for $\\pi$ to reach a state ${ \\bf s } _ { j }$ from a state $\\mathbf { s } _ { i }$ , given that the two were visited in the same episode.2 Mathematically, the distance is defined as: ",
282
+ "bbox": [
283
+ 174,
284
+ 128,
285
+ 825,
286
+ 172
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "equation",
292
+ "img_path": "images/c10623499119277042473119512cec966f7ec7ee1f2c7ac75048a119c5c677b0.jpg",
293
+ "text": "$$\nd ^ { \\pi } ( \\mathbf { s } , \\mathbf { s } ^ { \\prime } ) \\triangleq \\mathbb { E } _ { \\tau \\sim \\pi | \\mathbf { s } _ { i } = \\mathbf { s } , \\mathbf { s } _ { j } = \\mathbf { s } ^ { \\prime } , \\ j \\geq i } \\left[ \\sum _ { { t = i } } ^ { j - 1 } \\gamma ^ { t - i } c ( \\mathbf { s } _ { t } , \\mathbf { s } _ { { t + 1 } } ) \\right] ,\n$$",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 315,
297
+ 178,
298
+ 681,
299
+ 222
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "where $\\tau$ is sampled from the conditional distribution of trajectories that passes through first s and then $\\mathbf { s } ^ { \\prime }$ , and where $c$ is some local cost of moving from $\\mathbf { s } _ { i }$ to $\\mathbf { s } _ { i + 1 }$ . For example, in a typical case in the absence of supervision, we can set $c ( \\mathbf { s } _ { t } , \\mathbf { s } _ { t + 1 } ) \\equiv 1$ analogously to the binary reward function in Equation 1, in which case the sum reduces to $j - i$ , and we recover the expected number of time steps to reach $\\mathbf { s } ^ { \\prime }$ . In principle, we could also trivially incorporate more complex local costs $c$ , for example to include action costs. This modification would be straightforward, though we focus on the simple $c ( \\mathbf { s } _ { t } , \\mathbf { s } _ { t + 1 } ) \\equiv 1$ in our derivation and experiments. We include the discount factor to extend the definition to infinitely long trajectories, but in practice we set $\\gamma = 1$ . ",
306
+ "bbox": [
307
+ 173,
308
+ 226,
309
+ 825,
310
+ 338
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "4.2 DISTANCE EVALUATION ",
317
+ "text_level": 1,
318
+ "bbox": [
319
+ 174,
320
+ 353,
321
+ 382,
322
+ 368
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "In the distance evaluation step, we learn a distance function $d _ { \\psi } ^ { \\pi } ( { \\bf s } , { \\bf s } ^ { \\prime } )$ , parameterized by $\\psi$ , to estimate the dynamical distance between pairs of states visited by a given policy $\\pi _ { \\phi }$ , parameterized by $\\phi$ . We first roll out the policy multiple times to sample trajectories $\\tau _ { k }$ of length $T$ . The empirical distance between states $\\mathbf { s } _ { i } , \\mathbf { s } _ { j } \\in \\tau _ { k }$ , where $0 \\leq i \\leq j \\leq T$ , is given by $j - i$ . Because the trajectories have a finite length, we are effectively ignoring the cases where reaching ${ \\bf s } _ { j }$ from $\\mathbf { s } _ { i }$ would take more than $T - i$ steps, biasing this estimate toward zero, but since the bias becomes smaller for shorter distances, we did not find this to be a major limitation in practice. We can now learn the distance function via supervised regression by minimizing ",
329
+ "bbox": [
330
+ 173,
331
+ 378,
332
+ 825,
333
+ 492
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "equation",
339
+ "img_path": "images/e0d466bd80a9f43ec48179f8ce199e4b7024d998263a53c025b66e431fc13218.jpg",
340
+ "text": "$$\n\\mathcal { L } _ { d } ( \\psi ) = \\frac { 1 } { 2 } \\mathbb { E } _ { \\stackrel { \\tau \\sim \\rho _ { \\pi } } { i \\sim \\left[ 0 , T \\right] } } \\left[ \\left( d _ { \\psi } ^ { \\pi } ( \\mathbf { s } _ { i } , \\mathbf { s } _ { j } ) - ( j - i ) ) \\right) ^ { 2 } \\right] .\n$$",
341
+ "text_format": "latex",
342
+ "bbox": [
343
+ 338,
344
+ 497,
345
+ 658,
346
+ 540
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "As we will show in our experimental evaluation, this supervised regression approach makes it feasible to learn dynamical distances for complex tasks with raw image observations, something that has proven exceptionally challenging for methods that learn distances via goal-conditioned policies or value functions and rely on temporal difference-style methods. In direct comparisons, we find that such methods generally struggle to learn on the more complex tasks with image observations. On the other hand, a disadvantage of supervised regression is that it requires on-policy experience, potentially leading to poor sample efficiency. However, because we use the distance as an intermediate representation that guides off-policy policy learning, as we will discuss in Section 4.3, we did not find the on-policy updates for the distance to slow down learning. Indeed, our experiments in Section 6.1 show that we can learn a manipulation task on a real robot with roughly the same amount of experience as is necessary when using a well-shaped and hand-tuned reward function. ",
353
+ "bbox": [
354
+ 173,
355
+ 542,
356
+ 825,
357
+ 696
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "4.3 POLICY IMPROVEMENT ",
364
+ "text_level": 1,
365
+ "bbox": [
366
+ 176,
367
+ 713,
368
+ 377,
369
+ 727
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "In the policy improvement step, we use $d _ { \\psi } ^ { \\pi }$ to optimize a policy $\\pi _ { \\phi }$ , parameterized by $\\phi$ , to reach a goal g. In principle, we could optimize the policy by choosing actions that greedily minimize the distance to the goal, which essentially treats negative distances as the values of a value function, and would be equivalent to the policy improvement step in standard policy iteration. However, acting greedily with respect to the dynamical distance defined in Equation 2 would result in a policy that is optimistic with respect to the dynamics. ",
376
+ "bbox": [
377
+ 173,
378
+ 738,
379
+ 825,
380
+ 824
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "This is because the dynamical distance is defined as the expected number of time steps conditioned on the policy successfully reaching the second state from the first state, and therefore does not account for the case where the second state is not reached successfully. In some cases, this results in pathologically bad value functions. For example, consider the MDP shown on the right, where the agent can reach the goal g using one of two paths. The first path has one intermediate state that leads to the target state with probability $p$ , and an absorbing terminal state $\\mathbf { s _ { T } }$ with probability $1 - p$ . The other path has two intermediate states, but allows the agent to reach the target every time. The optimal dynamical distance will be 2, regardless of the value of $p$ , causing the policy to always choose the risky path and potentially miss the target completely. ",
387
+ "bbox": [
388
+ 174,
389
+ 830,
390
+ 684,
391
+ 901
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "image",
397
+ "img_path": "images/e9a6ed0cece8d8511f10716fc928dbf9c1345baf3e098e8fd917c3352889a752.jpg",
398
+ "image_caption": [],
399
+ "image_footnote": [],
400
+ "bbox": [
401
+ 699,
402
+ 818,
403
+ 823,
404
+ 910
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "",
411
+ "bbox": [
412
+ 174,
413
+ 103,
414
+ 825,
415
+ 174
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "The definition of dynamical distances in Equation 2 follows directly from how we learn the distance function, by choosing both $\\mathbf { s } _ { i }$ and ${ \\bf s } _ { j }$ from the same trajectory. Conditioning on both $\\mathbf { s } _ { i }$ and ${ \\bf s } _ { j }$ is needed when the state space is continuous or large, since visiting two states by chance has zero or near-zero probability. We instead propose to use the distance as a negative reward, and apply reinforcement learning to minimize the cumulative distance on the path to the goal: ",
422
+ "bbox": [
423
+ 174,
424
+ 180,
425
+ 825,
426
+ 251
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "equation",
432
+ "img_path": "images/05a89532e07f87b8fa9e1c1161122aa32df557ece271e0eddd048518d2e884a3.jpg",
433
+ "text": "$$\n\\mathcal { L } _ { \\pi } ( \\phi ) = \\mathbb { E } _ { \\tau \\sim \\rho _ { \\pi } } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } d _ { \\psi } ^ { \\pi } ( \\mathbf { s } _ { t } , \\mathbf { g } ) \\right] .\n$$",
434
+ "text_format": "latex",
435
+ "bbox": [
436
+ 377,
437
+ 253,
438
+ 620,
439
+ 297
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "This amounts to minimizing the cumulative distance over visited states, and thus taking a risky action becomes unfavourable if it takes the agent to a state that is far from the target at a later time. We further show that, under certain assumption, the policy that optimizes Equation 4 will indeed acquire the correct behavior, as discussed in Appendix A, and will converge to a policy that takes the shortest path to the goal, as we show in Appendix B. ",
446
+ "bbox": [
447
+ 174,
448
+ 300,
449
+ 823,
450
+ 371
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "We note that our simulated experiments below are run in deterministic environments and we do not fully understand why cumulative distances work better than greedily minimizing the distances even in those cases. A comparison between these two cases is shown in Section 6.2. ",
457
+ "bbox": [
458
+ 173,
459
+ 377,
460
+ 823,
461
+ 420
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "4.4 ALGORITHM SUMMARY ",
468
+ "text_level": 1,
469
+ "bbox": [
470
+ 176,
471
+ 450,
472
+ 380,
473
+ 464
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "The dynamical distance learning (DDL) algorithm is described in Figure 1. Our implementation uses soft actor-critic (SAC) (Haarnoja et al., 2018c) as the policy optimizer, but one could also use any other off-the-shelf algorithm. In each iteration, DDL first samples a trajectory using the current policy, and saves it in a replay pool $\\mathcal { D }$ . In the second step, DDL updates the distance function by minimizing the loss in Equation 3. The distance function is optimized for a fixed number of $N _ { d }$ stochastic gradient steps. Note that this method requires that we use recent experience from $\\mathcal { D }$ , so ",
480
+ "bbox": [
481
+ 174,
482
+ 477,
483
+ 503,
484
+ 642
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Algorithm 1 Dynamical Distance Learning ",
491
+ "text_level": 1,
492
+ "bbox": [
493
+ 519,
494
+ 486,
495
+ 802,
496
+ 501
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "1: Input: φ, ψ . Initial policy and distance parameters \n2: Input: D . Empty replay pool repeat $\\tau \\sim \\rho _ { \\pi }$ , $\\mathcal { D } \\mathcal { D } \\cup \\tau$ . Sample a new trajectory for $i = 0$ to $N _ { d }$ do $\\psi \\psi - \\lambda _ { d } \\hat { \\nabla } \\mathcal { L } _ { d } ( \\psi ; \\pi )$ . Minimize distance loss end for $\\mathbf { g } $ choose goal $( \\mathcal { D } )$ . Choose goal state for $i = 0$ to $N _ { \\pi }$ do \n10: $\\phi \\phi - \\dot { \\lambda } _ { \\pi } \\hat { \\nabla } \\mathcal { L } _ { \\pi } ( \\phi ; d , \\mathbf { g } ) \\circ$ . Minimize policy loss \n11: end for \n12: until converged ",
503
+ "bbox": [
504
+ 517,
505
+ 506,
506
+ 823,
507
+ 631
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "as to learn the distance corresponding to the current policy. In the third step, DDL chooses a goal state from the recent experience buffer. We will describe two methods to choose these goal states in Section 5. In the fourth step, DDL updates the policy by taking $N _ { \\pi }$ gradient steps to minimize the loss in Equation 4. The implementation of this step depends on the RL algorithm of choice. These steps are then repeated until convergence. ",
514
+ "bbox": [
515
+ 174,
516
+ 643,
517
+ 825,
518
+ 712
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "5 GOAL PROPOSALS",
525
+ "text_level": 1,
526
+ "bbox": [
527
+ 176,
528
+ 732,
529
+ 359,
530
+ 748
531
+ ],
532
+ "page_idx": 4
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "In the previous section, we discussed how we can utilize a learned distance function to efficiently optimize a goal-reaching policy. However, a learned distance function is only meaningful if evaluated at states from the distribution it has been trained on, suggesting that the goal states should be chosen from the replay pool. Choosing a goal that the policy can already reach might at first appear strange, but it turns out to yield efficient directed exploration, as explained next. ",
537
+ "bbox": [
538
+ 174,
539
+ 763,
540
+ 823,
541
+ 833
542
+ ],
543
+ "page_idx": 4
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "Simple random exploration, such as $\\epsilon$ -greedy exploration or other strategies that add noise to the actions, can effectively cover states that are close to the starting state, in terms of dynamical distance. However, when high-reward states or goal states are far away from the start state, such na¨ıve strategies are unlikely to reach them. From this observation, we can devise a simple and effective exploration strategy that leverages the learned dynamical distances: we first use the policy to reach a known goal as quickly as possible and then explore the vicinity of that goal. This way more time is ",
548
+ "bbox": [
549
+ 174,
550
+ 840,
551
+ 825,
552
+ 924
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "image",
558
+ "img_path": "images/ad3a2c2957db89c38776b94caa2984eebe492828532eba334b8d4af505ff1cd3.jpg",
559
+ "image_caption": [
560
+ "Figure 2: We evaluate our method both in simulation and on a real-world robot. We show that our method can learn to turn a valve with a real-world 9-DoF hand (a), and run ablations in the simulated version of the same task (b). We also demonstrate that our method can learn pole balancing (c) and locomotion (d, e, f) skills in simulation. "
561
+ ],
562
+ "image_footnote": [],
563
+ "bbox": [
564
+ 176,
565
+ 101,
566
+ 821,
567
+ 183
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "left to randomly explore states far from the initial state and this way likely discovering useful states. \nWe propose two different strategies for choosing the goals below. ",
574
+ "bbox": [
575
+ 173,
576
+ 280,
577
+ 821,
578
+ 309
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "5.1 SEMI-SUPERVISED LEARNING FROM PREFERENCES",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 176,
588
+ 329,
589
+ 568,
590
+ 343
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "DDL can be used to learn to reach specific goals elicited from a user. The simplest way to do this is for a user to provide the goal state directly, either by specifying the full state, or selecting the state manually from the replay pool. However, we can also provide a more convenient way to elicit the desired state with preference queries. In this setting, the user is repeatedly presented with a small slate of candidate states from the replay pool, and asked to select the one that they prefer most. In practice, we present the user with a visualization of the final state in several of the most recent episodes, and the user selects the one that they consider closest to their desired goal. ",
597
+ "bbox": [
598
+ 174,
599
+ 356,
600
+ 825,
601
+ 454
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "For example, if the user wishes to train a legged robot to walk forward, they might pick the state where the robot has progressed the largest distance in the desired direction. The required user effort in selecting these states is minimal, and most of the agent’s experience is still unsupervised, simply using the latest user-chosen state as the goal. In our experiments, we show that this semi-supervised learning procedure, which we call dynamical distance learning from preferences (DDLfP) can learn to rotate a valve with real-world hand from just ten queries, and can learn simulated locomotion tasks using 100 simulated queries. ",
608
+ "bbox": [
609
+ 174,
610
+ 462,
611
+ 825,
612
+ 559
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "5.2 UNSUPERVISED EXPLORATION AND SKILL ACQUISITION ",
619
+ "text_level": 1,
620
+ "bbox": [
621
+ 174,
622
+ 579,
623
+ 607,
624
+ 594
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "We can also use DDL to efficiently acquire complex behaviors, such as locomotion skills, in a completely unsupervised fashion. From the observation that many high-reward states are far away from the start state, we can devise a simple and effective exploration strategy that leverages our learned dynamical distances: we can simply select goals that are far from the initial state according to their estimated dynamical distance. We call this variant of our method “dynamical distance learning - unsupervised” (DDLUS). ",
631
+ "bbox": [
632
+ 174,
633
+ 606,
634
+ 825,
635
+ 690
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "Intuitively, this method causes the agent to explore the “frontier” of hard-to-reach states, either discovering shorter paths for reaching them and thus making them no longer be on the frontier, or else finding new states further on the fringe through additive random exploration. In practice, we find that this allows the agent to quickly explore distant states in a directed fashion. In Section 6, we show that, by setting choose go $\\begin{array} { r } { \\mathrm { a l } ( \\mathscr { D } ) \\equiv \\mathrm { \\bar { a r g } m a x } _ { \\mathbf { g } \\in \\mathscr { D } } d _ { \\psi } ^ { \\pi } ( \\mathbf { s } _ { 0 } , \\mathbf { g } ) } \\end{array}$ , where $\\mathbf { s } _ { 0 }$ is the initial state, we can acquire effective running gaits and pole balancing skills in a variety of simulated settings. While this approach is not guaranteed to discover interesting and useful skills in general, we find that, on a variety of commonly used benchmark tasks, this approach to unsupervised goal selection actually discovers behaviors that perform better with respect to the (unknown) task reward than previously proposed unsupervised reinforcement learning objectives. ",
642
+ "bbox": [
643
+ 174,
644
+ 698,
645
+ 825,
646
+ 838
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "6 EXPERIMENTS ",
653
+ "text_level": 1,
654
+ "bbox": [
655
+ 174,
656
+ 862,
657
+ 326,
658
+ 877
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Our experimental evaluation aims to study the following empirical questions: (1) Does supervised regression provide a good estimator of the true dynamical distance? (2) Is DDL applicable to realworld, vision-based robotic control tasks? (3) Does DDL provide an efficient method of learning skills a) from user-provided preferences, and b) completely unsupervised? ",
665
+ "bbox": [
666
+ 174,
667
+ 895,
668
+ 823,
669
+ 924
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "",
676
+ "bbox": [
677
+ 173,
678
+ 103,
679
+ 823,
680
+ 132
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "We evaluate our method both in the real world and in simulation on a set of state- and visionbased continuous control tasks. We consider a 9-DoF real-world dexterous manipulation task and 4 standard OpenAI Gym tasks (Hopper-v3, HalfCheetah-v3, Ant-v3, and InvertedDoublePendulumv2). For all of the tasks, we parameterize our distance function as a neural network, and use soft actor-critic (SAC) (Haarnoja et al., 2018b) with the default hyperparameters to learn the policy. For state-based tasks, we use feed-forward neural networks and for the vision-based tasks we add a convolutional preprocessing network before these fully connected layers. The image observation for all the vision-based tasks are 3072 dimensional $3 2 \\mathrm { x } 3 2$ RGB images). Further details are presented in Appendix E. ",
687
+ "bbox": [
688
+ 174,
689
+ 138,
690
+ 825,
691
+ 263
692
+ ],
693
+ "page_idx": 6
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "We study question (1) using a simple didactic example involving navigation through a twodimensional S-shaped maze, which we present in Appendix C. The other two research questions are studied in the following sections. ",
698
+ "bbox": [
699
+ 174,
700
+ 271,
701
+ 825,
702
+ 313
703
+ ],
704
+ "page_idx": 6
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "6.1 VISION-BASED REAL-WORLD MANIPULATION FROM HUMAN PREFERENCES ",
709
+ "text_level": 1,
710
+ "bbox": [
711
+ 173,
712
+ 332,
713
+ 746,
714
+ 345
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "To study the question (2), we apply DDLfP to a real-world vision-based robotic manipulation task. The domain consists of a 9-DoF “DClaw” hand introduced by Ahn et al. (2019), and the manipulation task requires the hand to rotate a valve 180 degrees, as shown in Figure 1. The human operator is queried for a preference every 10K environment steps. Both the visionand state-based experiments with the real robot use 10 queries during the first 4 hours of an 8- hour training period. Note that, for this and all the subsequent experiments, DDLfP does not have access to the true reward, and must learn entirely from preference queries, which in this case are provided by a human operator. ",
721
+ "bbox": [
722
+ 174,
723
+ 358,
724
+ 483,
725
+ 565
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Figure 3 presents the performance over the course of training. DDLfP uses 10 preference queries to learn the task and its performance is comparable to that of SAC trained with a ground truth shaped reward function. We also ",
732
+ "bbox": [
733
+ 173,
734
+ 574,
735
+ 483,
736
+ 642
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "image",
742
+ "img_path": "images/0e8638fd707890840c834f07574f1f91dee0ea9f7124ec973dd7253b6efddd6f.jpg",
743
+ "image_caption": [
744
+ "Figure 3: (Left) learning curves for the valve rotation task learned from state. (Right) Same task from vision. The curves correspond to the final distance (measured in radians) of the valve from the target angle during a rollout. Our method (DDLfP, orange) solves the task in 8 hours. Its performance is comparable to that of SAC with true rewards, and VICE with example outcome images. DDLfP only requires 10 preference queries, and learns without true rewards or outcome images. We compare our method in the simulated version of this task in Figure 5. "
745
+ ],
746
+ "image_footnote": [],
747
+ "bbox": [
748
+ 501,
749
+ 362,
750
+ 816,
751
+ 454
752
+ ],
753
+ "page_idx": 6
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "show a comparison to variational inverse control with events (VICE) (Singh et al., 2019), a recent classifier-based reward specification framework. Instead of preference queries, VICE requires the user to provide examples of the desired goal state at the beginning of training (20 images in this case). For vision-based tasks, VICE involves directly showing images of the desired outcome to the user, which requires physically arranging a scene and taking a picture of it. Preferences, on the other hand, require a user to simply select one state out of a small set, which can be done with a button press and done e.g. remotely, thus often making it substantially less labor-intensive than VICE. As we can see in the experiments, DDLfP achieves similar performance with substantially less operator effort, using only a small number of preference queries. The series of goal preferences queried from the human operator are shown in Appendix D. ",
758
+ "bbox": [
759
+ 173,
760
+ 642,
761
+ 825,
762
+ 781
763
+ ],
764
+ "page_idx": 6
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "6.2 ABLATIONS, COMPARISONS, AND ANALYSIS ",
769
+ "text_level": 1,
770
+ "bbox": [
771
+ 174,
772
+ 800,
773
+ 524,
774
+ 814
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "Next, we analyze design decisions in our method and compare it to prior methods in simulation. First, we replace the cumulative objective in Equation 4 with objective that greedily minimizes the distance function trained with supervised loss. This objective is unable to learn the task from either state or vision observations. Next, we replace the supervised loss in Equation 3 of our DDL method with a temporal difference (TD) Q-learning style update rule that learns dynamical distances with approximate dynamic programming. The results in Figure 5 show that, all else being equal, the TD-based method fails to learn successfully from both low-dimensional state and vision observations. Figure 5 further shows a comparison between using the dynamical distance as the reward in comparison to a reward of -1 for each step until the goal is reached, which corresponds to hindsight experience replay (HER) with goal sampling replaced with preference goals (Andrychowicz et al., 2017). We see that dynamical distances allow the policy to reach the goal when learning both from state and from images, while HER is only successful when learning from low-dimensional states. ",
781
+ "bbox": [
782
+ 174,
783
+ 827,
784
+ 825,
785
+ 922
786
+ ],
787
+ "page_idx": 6
788
+ },
789
+ {
790
+ "type": "image",
791
+ "img_path": "images/8cc14e198c178ab985ae1fbee23f574bd912e277d52d63c9b8c36da42d31afb6.jpg",
792
+ "image_caption": [
793
+ "Figure 4: Learning curves for MuJoCo tasks with DDLfP. The y-axis presents the true return of the task. We compare DDLfP to SAC trained directly from the true reward function, which provides an oracle upper bound baseline, and the prior method proposed by Christiano et al. (2017). The prior method uses an on-policy RL algorithm which typically requires more samples than off-policy algorithms, and thus we also plot its final performance after 20M training steps with red star. At the time of the submission, the Ant-v3 run is still in progress and the complete learning curve will be included in the final. "
794
+ ],
795
+ "image_footnote": [],
796
+ "bbox": [
797
+ 176,
798
+ 101,
799
+ 816,
800
+ 178
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "",
807
+ "bbox": [
808
+ 173,
809
+ 321,
810
+ 825,
811
+ 391
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "These results are corroborated by prior results in the literature that have found that temporal difference learning struggles to capture the true value accurately (Lillicrap et al., 2015; Fujimoto et al., 2018). Note that prior work work does not use the full state as the goal, but rather manually selects a low-dimensional subspace, such as the location of an object, forcing the distance to focus on task-relevant objects (Andrychowicz et al., 2017). Our method learns distances between full image states (3072-dimensional) while HER uses 3- dimensional goals, a difference of two orders of magnitude in dimensionality. This difficulty of learning complex image-based goals is further corroborated in prior work (Pong et al., 2018; Nair et al., 2018; Pong et al., 2019; WardeFarley et al., 2018). ",
818
+ "bbox": [
819
+ 174,
820
+ 398,
821
+ 483,
822
+ 648
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "image",
828
+ "img_path": "images/0b3a0827d435fb404120c1d115f3062e035d2886233bfc9d096b8d61e9c3e894.jpg",
829
+ "image_caption": [
830
+ "Figure 5: We compare DDL against alternative methods for learning distances on the simulated valve turning task, when learning from the underlying low-dimensional state (left) and from images (right). Dynamical distances used greedily (orange) or learned with TD (green) generally perform poorly. HER (red) can learn from lowdimensional states, but fails to learn from images. Our method, DDLfP (blue) successfully learns the task from either states or images. "
831
+ ],
832
+ "image_footnote": [],
833
+ "bbox": [
834
+ 501,
835
+ 400,
836
+ 816,
837
+ 494
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "Figure 4 presents results for learning from preferences via DDLfP (in green) on a set of continuous control tasks to further study the question (3,a). The plots show the true reward for each method on each task. DDLfP receives only sparse preferences as task-specific supervision, and the preferences in this case are provided synthetically, choosing the state that has progressed the largest distance from the initial state in the desired direction, i.e. the state with largest x-coordinate value. However, this still provides substantially less supervision signal than access to the true reward for all samples. We compare to (Christiano et al., 2017), which also uses preferences for learning skills, but without the use of dynamical distances. The prior method is provided with 750 preference queries over the course of training, while our method uses 100 for all locomotion tasks, and only a single query for the InvertedDoublePendulum-v2, as the initial state and the goal states coincides.3 Note that Christiano et al. (2017) utilizes an on-policy RL algorithms, which is less efficient than SAC. However, DDLfP outperforms this prior method in terms of both final performance and learning speed on all tasks, except for the Hopper-v3 task. ",
844
+ "bbox": [
845
+ 174,
846
+ 655,
847
+ 825,
848
+ 835
849
+ ],
850
+ "page_idx": 7
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Locomotion tasks like the ones considered here do not fit into DDL framework directly. In this particular case of locomotion tasks, we can fix the issue by considering a case where the ultimate task is to reach a specific goal, i.e. the operator would always choose the goal to be the state closest to the ”ultimate task goal”. In that case, we can see the locomotion task to be the limit case where the ultimate goal is as far as possibly reachable within the maximum episode length. ",
855
+ "bbox": [
856
+ 178,
857
+ 843,
858
+ 821,
859
+ 885
860
+ ],
861
+ "page_idx": 7
862
+ },
863
+ {
864
+ "type": "image",
865
+ "img_path": "images/802d9fd3e2568aae649bb0f14a735f9102ce64347008b9a463a07431197fd1e3.jpg",
866
+ "image_caption": [
867
+ "Figure 6: (Top) Learning curves for DDLUS. The y-axis plots the environment return (not accessible during the training) for InvertedDoublePendulum-v3, and the L2-distance travelled from the origin for Hopper-v3, HalfCheetah-v3, and Ant-v3. (Bottom) Frequency histograms of skills learned with DDLUS (blue) and DIAYN (orange) (Eysenbach et al., 2018) across different training runs, evaluated according to the travelled L2-distance from the origin. "
868
+ ],
869
+ "image_footnote": [],
870
+ "bbox": [
871
+ 176,
872
+ 101,
873
+ 818,
874
+ 218
875
+ ],
876
+ "page_idx": 8
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "",
881
+ "bbox": [
882
+ 171,
883
+ 328,
884
+ 823,
885
+ 356
886
+ ],
887
+ "page_idx": 8
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "6.3 ACQUIRING UNSUPERVISED SKILLS ",
892
+ "text_level": 1,
893
+ "bbox": [
894
+ 176,
895
+ 373,
896
+ 464,
897
+ 387
898
+ ],
899
+ "page_idx": 8
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Finally, we study question (3,b) in order to understand how well DDLUS can acquire skills without any supervision. We structure these experiments analogously to the unsupervised skill learning experiments proposed by Eysenbach et al. (2018), and compare to the DIAYN algorithm, another unsupervised skill discovery method, proposed in their prior work. While our method maximizes the complexity of the learned skills by attempting to reach the furthest possible goal, DIAYN maximizes the diversity of learned skills. This of course produces different biases in the skills produced by the two methods. Figure 6 shows both learning curves and histograms of the skills learned in the locomotion tasks with the two methods, evaluated according to how far the simulated robot in each domain travels from the initial state. Our DDLUS method learns skills that travel further than DIAYN, while still providing a variety of different behaviors (e.g., travel in different directions). This experiment aims to provide a direct comparison to the DIAYN algorithm (Eysenbach et al., 2018), though a reasonable criticism is that maximizing dynamical distance is particularly wellsuited for the criteria proposed by Eysenbach et al. (2018). We also evaluated DDLUS on the InvertedDoublePendulum-v2 domain, where the task is to balance a pole on a cart. As can be seen from Figure 6, DDLUS can efficiently solve the task without the true reward, as reaching dynamically far states amounts to avoiding failure as far as possible. ",
904
+ "bbox": [
905
+ 173,
906
+ 400,
907
+ 825,
908
+ 621
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "7 CONCLUSION ",
915
+ "text_level": 1,
916
+ "bbox": [
917
+ 176,
918
+ 642,
919
+ 318,
920
+ 659
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "We presented dynamical distance learning (DDL), an algorithm for learning dynamical distances that can be used to specify reward functions for goal reaching policies, and support both unsupervised and semi-supervised exploration and skill discovery. Our algorithm uses a simple and stable supervised learning procedure to learn dynamical distances, which are then used to provide a reward function for a standard reinforcement learning method. This makes DDL straightforward to apply even with complex and high-dimensional observations, such as images. By removing the need for manual reward function design and manual reward shaping, our method makes it substantially more practical to employ deep reinforcement learning to acquire skills even with real-world robotic systems. We demonstrate this by learning a valve-turning task with a real-world robotic hand, using 10 preference queries from a human, without any manual reward design or other examples or supervision. One of the main limitations of our current approach is that, although it can be used with an off-policy reinforcement learning algorithm, it requires on-policy data collection for learning the dynamical distances. While the resulting method is still efficient enough to learn directly in the real world, the efficiency of our approach can likely be improved in future work by lifting this limitation. This would not only make learning faster but would also make it possible to pre-train dynamical distances using previously collected experience, potentially making it feasible to scale our method to a multi-task learning setting, where the same dynamical distance function can be used to learn multiple distinct skills. ",
927
+ "bbox": [
928
+ 174,
929
+ 674,
930
+ 825,
931
+ 924
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "ACKNOWLEDGMENTS ",
938
+ "text_level": 1,
939
+ "bbox": [
940
+ 176,
941
+ 104,
942
+ 326,
943
+ 117
944
+ ],
945
+ "page_idx": 9
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "We thank Vikash Kumar for the DClaw robot design, Nicolas Heess for helpful discussion, and Henry Zhu and Justin Yu for their help on setting up and running the hardware experiments. This research was supported by the Office of Naval Research, the National Science Foundation through IIS-1651843 and IIS-1700696, and Berkeley DeepDrive. ",
950
+ "bbox": [
951
+ 174,
952
+ 127,
953
+ 825,
954
+ 184
955
+ ],
956
+ "page_idx": 9
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "REFERENCES ",
961
+ "text_level": 1,
962
+ "bbox": [
963
+ 174,
964
+ 204,
965
+ 285,
966
+ 219
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "Michael Ahn, Henry Zhu, Kristian Hartikainen, Hugo Ponte, Abhishek Gupta, Sergey Levine, and Vikash Kumar. Robel: Robotics benchmarks for learning with low-cost robots. In Conference on Robot Learning (CoRL), 2019. ",
973
+ "bbox": [
974
+ 176,
975
+ 227,
976
+ 823,
977
+ 270
978
+ ],
979
+ "page_idx": 9
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5048–5058, 2017. ",
984
+ "bbox": [
985
+ 176,
986
+ 277,
987
+ 823,
988
+ 321
989
+ ],
990
+ "page_idx": 9
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems (NeurIPS), pp. 4299–4307, 2017. ",
995
+ "bbox": [
996
+ 176,
997
+ 329,
998
+ 821,
999
+ 372
1000
+ ],
1001
+ "page_idx": 9
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "B. Eysenbach, A. Gupta, J. Ibarz, and S. Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 380,
1009
+ 823,
1010
+ 410
1011
+ ],
1012
+ "page_idx": 9
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Benjamin Eysenbach, Ruslan Salakhutdinov, and Sergey Levine. Search on the replay buffer: Bridging planning and reinforcement learning. arXiv preprint arXiv:1906.05253, 2019. ",
1017
+ "bbox": [
1018
+ 173,
1019
+ 416,
1020
+ 821,
1021
+ 446
1022
+ ],
1023
+ "page_idx": 9
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Carlos Florensa, David Held, Xinyang Geng, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. In International Conference on Machine Learning (ICML), 2018. ",
1028
+ "bbox": [
1029
+ 173,
1030
+ 454,
1031
+ 821,
1032
+ 484
1033
+ ],
1034
+ "page_idx": 9
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Carlos Florensa, Jonas Degrave, Nicolas Heess, Jost Tobias Springenberg, and Martin Riedmiller. Self-supervised learning of image embedding for continuous control. arXiv preprint arXiv:1901.00943, 2019. ",
1039
+ "bbox": [
1040
+ 176,
1041
+ 491,
1042
+ 825,
1043
+ 534
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "S. Fujimoto, H. van Hoof, and D. Meger. Addressing function approximation error in actor-critic methods. In International Conference on Machine Learning (ICML), 2018. ",
1050
+ "bbox": [
1051
+ 169,
1052
+ 542,
1053
+ 823,
1054
+ 571
1055
+ ],
1056
+ "page_idx": 9
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "T. Haarnoja, V. Pong, A. Zhou, M. Dalal, P. Abbeel, and S. Levine. Composable deep reinforcement learning for robotic manipulation. In International Conference on Robotics and Automation (ICRA). IEEE, 2018a. ",
1061
+ "bbox": [
1062
+ 176,
1063
+ 579,
1064
+ 823,
1065
+ 622
1066
+ ],
1067
+ "page_idx": 9
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning (ICML), 2018b. ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 630,
1075
+ 823,
1076
+ 672
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "T. Haarnoja, A. Zhou, K. Hartikainen, G. Tucker, S. Ha, J. Tan, V. Kumar, H. Zhu, A. Gupta, P. Abbeel, and S. Levine. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018c. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 681,
1086
+ 823,
1087
+ 724
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In Advances in Neural Information Processing Systems (NeurIPS), pp. 1109–1117, 2016. ",
1094
+ "bbox": [
1095
+ 174,
1096
+ 733,
1097
+ 823,
1098
+ 776
1099
+ ],
1100
+ "page_idx": 9
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "L. P. Kaelbling, M. L. Littman, and A. W. Moore. Reinforcement learning: A survey. Journal of artificial intelligence research, 4:237–285, 1996. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 784,
1108
+ 823,
1109
+ 813
1110
+ ],
1111
+ "page_idx": 9
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Leslie Pack Kaelbling. Learning to achieve goals. In International Joint Conference on Artificial Intelligence (IJCAI), pp. 1094–1099. Citeseer, 1993. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 820,
1119
+ 823,
1120
+ 849
1121
+ ],
1122
+ "page_idx": 9
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "S. Levine, C. Finn, T. Darrell, and P. Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016. ",
1127
+ "bbox": [
1128
+ 173,
1129
+ 858,
1130
+ 821,
1131
+ 887
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "T. P. Lillicrap, J. J. Hunt, A. Pritzel, N. Heess, T. Erez, Y. Tassa, D. Silver, and D. Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
1138
+ "bbox": [
1139
+ 173,
1140
+ 895,
1141
+ 820,
1142
+ 924
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "A Rupam Mahmood, Dmytro Korenkevych, Brent J Komer, and James Bergstra. Setting up a reinforcement learning task with a real-world robot. In International Conference on Intelligent Robots and Systems (IROS), pp. 4635–4640. IEEE, 2018. \nV. Mnih, K. Kavukcuoglu, D. Silver, A. A Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. \nAshvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Advances in Neural Information Processing Systems, pp. 9191–9200, 2018. \nIan Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. In Advances in neural information processing systems (NeurIPS), pp. 4026– 4034, 2016. \nVitchyr Pong, Shixiang Gu, Murtaza Dalal, and Sergey Levine. Temporal difference models: Modelfree deep RL for model-based control. In International Conference on Learning Representations (ICLR), 2018. \nVitchyr Pong, Murtaza Dalal, Steven Lin, Ashvin Nair, Shikhar Bahl, and Sergey Levine. Skew-fit: State-covering self-supervised reinforcement learning. arXiv preprint arXiv:1903.03698, 2019. \nNikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. In International Conference of Learning Representations (ICLR), 2018. \nT. Schaul, D. Horgan, K. Gregor, and D. Silver. Universal value function approximators. In International Conference on Machine Learning (ICML), pp. 1312–1320, 2015. \nAvi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. arXiv preprint arXiv:1904.07854, 2019. \nRichard S Sutton, Joseph Modayil, Michael Delp, Thomas Degris, Patrick M Pilarski, Adam White, and Doina Precup. Horde: A scalable real-time architecture for learning knowledge from unsupervised sensorimotor interaction. In The 10th International Conference on Autonomous Agents and Multiagent Systems-Volume 2, pp. 761–768. International Foundation for Autonomous Agents and Multiagent Systems, 2011. \nDavid Warde-Farley, Tom Van de Wiele, Tejas Kulkarni, Catalin Ionescu, Steven Hansen, and Volodymyr Mnih. Unsupervised control through non-parametric discriminative rewards. arXiv ",
1149
+ "bbox": [
1150
+ 171,
1151
+ 99,
1152
+ 826,
1153
+ 626
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "preprint arXiv:1811.11359, 2018. ",
1160
+ "bbox": [
1161
+ 173,
1162
+ 592,
1163
+ 823,
1164
+ 635
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Appendices ",
1171
+ "text_level": 1,
1172
+ "bbox": [
1173
+ 176,
1174
+ 98,
1175
+ 343,
1176
+ 127
1177
+ ],
1178
+ "page_idx": 11
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "A CORRECT BEHAVIOR IN THE PATHOLOGICAL MDP ",
1183
+ "text_level": 1,
1184
+ "bbox": [
1185
+ 174,
1186
+ 148,
1187
+ 633,
1188
+ 166
1189
+ ],
1190
+ "page_idx": 11
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "In this appendix we show that the policy that maximizes the objective in Equation 1, with the reward $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) { \\bar { \\mathbf { \\eta } } } = - d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ , where $d ^ { \\pi }$ is given by Equation 2, prefers safe actions over risky actions. ",
1195
+ "bbox": [
1196
+ 173,
1197
+ 183,
1198
+ 823,
1199
+ 212
1200
+ ],
1201
+ "page_idx": 11
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Assume that $c ( \\mathbf { s } _ { t } , \\mathbf { s } _ { t + 1 } ) = \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t } \\right]$ is an indicator function that is 0 if $\\mathbf { s } _ { t }$ is a goal state or terminal state and 1 for all the other states. We can now write the definition of $d ^ { \\pi }$ as an infinite sum and substitute $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) - d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ in Equation 1: ",
1206
+ "bbox": [
1207
+ 174,
1208
+ 217,
1209
+ 825,
1210
+ 261
1211
+ ],
1212
+ "page_idx": 11
1213
+ },
1214
+ {
1215
+ "type": "equation",
1216
+ "img_path": "images/d0ab71c8e3428853bde44c8d0648a4dc52a70ff93948daa5af23d6ad387e422b.jpg",
1217
+ "text": "$$\n\\mathcal { L } ( \\pi ) = - \\mathbb { E } _ { \\tau \\sim \\pi } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { E } _ { \\tau ^ { \\prime } \\sim \\pi } \\left[ \\sum _ { k = 0 } ^ { \\infty } \\gamma ^ { k } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { k } \\right] \\middle | \\mathbf { s } _ { 0 } ^ { \\prime } = \\mathbf { s } _ { t } , \\mathbf { a } _ { 0 } ^ { \\prime } = \\mathbf { a } _ { t } \\right] \\right] .\n$$",
1218
+ "text_format": "latex",
1219
+ "bbox": [
1220
+ 272,
1221
+ 270,
1222
+ 725,
1223
+ 314
1224
+ ],
1225
+ "page_idx": 11
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "The first term $k = 0 ,$ ) in the inner sum depends only on $\\mathbf { s } _ { 0 } ^ { \\prime }$ , which is given, and the term can thus be moved outside the inner expectation: ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 323,
1233
+ 826,
1234
+ 352
1235
+ ],
1236
+ "page_idx": 11
1237
+ },
1238
+ {
1239
+ "type": "equation",
1240
+ "img_path": "images/fbdfd8bf6daf077af2fdd7085f6066cf4177190ee888f41e22247f3f759d4b1d.jpg",
1241
+ "text": "$$\n\\mathcal { L } ( \\boldsymbol { \\pi } ) = - \\mathbb { E } _ { \\boldsymbol { \\tau } \\sim \\boldsymbol { \\pi } } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t } \\right] + \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { E } _ { \\boldsymbol { \\tau } ^ { \\prime } \\sim \\boldsymbol { \\pi } } \\left[ \\sum _ { k = 1 } ^ { \\infty } \\gamma ^ { k } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { k } ^ { \\prime } \\right] \\bigg \\vert \\mathbf { s } _ { 0 } ^ { \\prime } = \\mathbf { s } _ { t } , \\mathbf { a } _ { 0 } ^ { \\prime } = \\mathbf { a } _ { t } \\right] \\right] .\n$$",
1242
+ "text_format": "latex",
1243
+ "bbox": [
1244
+ 220,
1245
+ 359,
1246
+ 777,
1247
+ 404
1248
+ ],
1249
+ "page_idx": 11
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Next, note that the statistics of the inner expectation over $( \\mathbf { s } _ { 1 } ^ { \\prime } , \\mathbf { a } _ { 1 } ^ { \\prime } )$ are the same as the outer expectation over $( \\mathbf { s } _ { 1 } , \\mathbf { a } _ { 1 } )$ , as they are both conditioned on the same $\\left( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } \\right)$ . Thus, we can condition the second expectation directly on $( \\mathbf { s } _ { 1 } ^ { \\prime } , \\mathbf { a } _ { 1 } ^ { \\prime } ) = ( \\mathbf { s } _ { t + 1 } , \\mathbf { a } _ { t + 1 } )$ : ",
1254
+ "bbox": [
1255
+ 178,
1256
+ 412,
1257
+ 823,
1258
+ 457
1259
+ ],
1260
+ "page_idx": 11
1261
+ },
1262
+ {
1263
+ "type": "equation",
1264
+ "img_path": "images/b719aee7587e39fa6c4e41d1ff49a41a705b9239adfd3e0acc0d3632ddb22e4c.jpg",
1265
+ "text": "$$\n\\mathcal { L } ( \\boldsymbol { \\pi } ) = - \\mathbb { E } _ { \\boldsymbol { \\tau } \\sim \\boldsymbol { \\pi } } [ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { 1 } _ { \\mathbf { g } } [ \\mathbf { s } _ { t } ] + \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { E } _ { \\boldsymbol { \\tau } ^ { \\prime } \\sim \\boldsymbol { \\pi } } [ \\sum _ { k = 1 } ^ { \\infty } \\gamma ^ { k } \\mathbb { 1 } _ { \\mathbf { g } } [ \\mathbf { s } _ { k } ^ { \\prime } ] | \\mathbf { s } _ { 1 } ^ { \\prime } = \\mathbf { s } _ { t + 1 } , \\mathbf { a } _ { 1 } ^ { \\prime } = \\mathbf { a } _ { t + 1 } ] ] .\n$$",
1266
+ "text_format": "latex",
1267
+ "bbox": [
1268
+ 192,
1269
+ 464,
1270
+ 784,
1271
+ 508
1272
+ ],
1273
+ "page_idx": 11
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "We can now apply the same argument as before and move $\\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { 1 } ^ { \\prime } \\right]$ outside the inner expectation. Repeating these steps multiple times yields ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 517,
1281
+ 823,
1282
+ 547
1283
+ ],
1284
+ "page_idx": 11
1285
+ },
1286
+ {
1287
+ "type": "equation",
1288
+ "img_path": "images/7b07c1a2f5291c2ef21970a18edb3da7616b3ee59a1dba6716f422715f2ab864.jpg",
1289
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { \\mathcal { L } } ( \\boldsymbol { \\pi } ) = - \\mathbb { E } _ { \\boldsymbol { \\tau } \\sim \\boldsymbol { \\pi } } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t } \\right] + \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t + 1 } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t + 1 } \\right] + \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t + 2 } \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t + 2 } \\right] + . . . \\right] } } \\\\ { { \\displaystyle ~ = - \\mathbb { E } _ { \\boldsymbol { \\tau } \\sim \\boldsymbol { \\pi } } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } ( t + 1 ) \\mathbb { 1 } _ { \\mathbf { g } } \\left[ \\mathbf { s } _ { t } \\right] \\right] . } } \\end{array}\n$$",
1290
+ "text_format": "latex",
1291
+ "bbox": [
1292
+ 233,
1293
+ 555,
1294
+ 763,
1295
+ 643
1296
+ ],
1297
+ "page_idx": 11
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Assuming that the agent always reaches the goal relatively quickly compared to the discount factor, such that $\\gamma ^ { t } \\approx 1$ , the trajectories that take longer dominate the loss due to the $( t + 1 )$ factor. Therefore, an optimal agent prefers actions that reduce the risk of long, highly suboptimal trajectories, avoiding the pathological behavior discussed in Section 4.3. ",
1302
+ "bbox": [
1303
+ 174,
1304
+ 650,
1305
+ 825,
1306
+ 707
1307
+ ],
1308
+ "page_idx": 11
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "B POLICY IMPROVEMENT WHEN USING DISTANCE AS REWARD ",
1313
+ "text_level": 1,
1314
+ "bbox": [
1315
+ 176,
1316
+ 729,
1317
+ 717,
1318
+ 746
1319
+ ],
1320
+ "page_idx": 11
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "In this appendix we show that, when we use the negative dynamical distance $- d ^ { \\pi }$ as the reward function in RL, we can learn an optimal policy with respect to the true dynamical distance, leading to policies that optimize the actual number of time steps needed to reach the goal. This result is nontrivial, since the reward function does not at first glance directly optimize for shortest paths. Our proof relies on the assumption that the MDP has deterministic dynamics. However, this assumption holds in all of our experiments, since the MuJoCo benchmark tasks are governed by deterministic dynamics. Under this assumption, DDL will learn policies that take the shortest path to the goal at convergence, despite using the negative dynamical distance as the reward. ",
1325
+ "bbox": [
1326
+ 173,
1327
+ 762,
1328
+ 825,
1329
+ 876
1330
+ ],
1331
+ "page_idx": 11
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Let $d ^ { * } ( { \\bf s } , { \\bf g } ) = \\operatorname* { m i n } _ { \\pi } d ^ { \\pi } ( { \\bf s } , { \\bf g } )$ be the optimal distance from state s to goal state $\\mathbf { g }$ . Let $\\pi ^ { \\prime }$ be the optimal policy for the reinforcement learning problem with reward $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) = - d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ . DDL can be viewed as alternating between fitting $d ^ { \\pi }$ to the current policy $\\pi$ , and learning a new policy $\\pi ^ { \\prime }$ that is optimal with respect to the reward function given by $- d ^ { \\pi }$ .4 We can now state our main theorem as follows: ",
1336
+ "bbox": [
1337
+ 174,
1338
+ 881,
1339
+ 823,
1340
+ 924
1341
+ ],
1342
+ "page_idx": 11
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "",
1347
+ "bbox": [
1348
+ 171,
1349
+ 103,
1350
+ 823,
1351
+ 132
1352
+ ],
1353
+ "page_idx": 12
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Theorem 1. Under deterministic dynamics, for any state s and g, we have: ",
1358
+ "bbox": [
1359
+ 173,
1360
+ 136,
1361
+ 673,
1362
+ 151
1363
+ ],
1364
+ "page_idx": 12
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "1. $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\leq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) .$ . \n2. If $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ , then $d ^ { \\pi ^ { \\prime } } ( { \\bf s } , { \\bf g } ) = d ^ { \\ast } ( { \\bf s } , { \\bf g } ) .$ ",
1369
+ "bbox": [
1370
+ 210,
1371
+ 162,
1372
+ 560,
1373
+ 208
1374
+ ],
1375
+ "page_idx": 12
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "This implies that, when the policy converges, such that $\\pi ^ { \\prime } = \\pi$ , the policy $\\pi ^ { \\prime }$ achieves the optimal distance to any goal, and therefore is the optimal policy for the shortest path reward function (e.g., the reward function that assigns a reward of $- 1$ for any step that does not reach the goal). ",
1380
+ "bbox": [
1381
+ 174,
1382
+ 218,
1383
+ 825,
1384
+ 261
1385
+ ],
1386
+ "page_idx": 12
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Proof. ",
1391
+ "bbox": [
1392
+ 174,
1393
+ 276,
1394
+ 215,
1395
+ 291
1396
+ ],
1397
+ "page_idx": 12
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Part 1 Without loss of generality, we assume that our policy is deterministic, since the set of optimal policies in an MDP always includes at least one deterministic policy. We also assume that g is a terminal state and thus $d ( \\mathbf { g } , \\mathbf { g } ) = 0$ . Let us denote the action of policy $\\pi$ on state s as $\\pi ( \\mathbf { s } )$ . We start by showing that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\leq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ . We fix a particular goal $\\mathbf { g }$ . Let $S _ { k } = \\left\\{ \\mathbf { s } ; d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) = k \\right\\}$ be the set of states that takes $k$ steps under $\\pi$ to reach the goal. We show that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\leq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) =$ $k$ for all $\\mathbf { s } \\in S _ { k }$ for each $k$ by contradiction. ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 306,
1405
+ 825,
1406
+ 396
1407
+ ],
1408
+ "page_idx": 12
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "For $k = 0$ , $S _ { 0 } = \\{ \\mathbf { g } \\}$ is just the single goal state and ${ d ^ { \\pi } } ^ { \\prime } ( { \\bf g } , { \\bf g } ) = { d ^ { \\pi } } ( { \\bf g } , { \\bf g } ) = 0$ by definition. For $k = 1$ , for all $\\mathbf { s } \\in S _ { 1 }$ , there is an action a that reaches the goal state as the direct next state. Therefore, the optimized policy $\\pi ^ { \\prime }$ would still take the same action a on these states and $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) = 1$ . ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 404,
1416
+ 825,
1417
+ 449
1418
+ ],
1419
+ "page_idx": 12
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Now assume that the opposite is true, that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) > d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ for some states. Then, there must be a smallest number $K > 1$ and a state ${ \\bf s } _ { 0 } \\in { \\cal S } _ { K }$ such that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } _ { 0 } , \\mathbf { g } ) = T > d ^ { \\pi } ( \\mathbf { s } _ { 0 } , \\mathbf { g } ) = K$ . Now let us denote the trajectory of states taken by $\\pi$ starting from ${ \\bf s } _ { 0 }$ as $\\{ \\mathbf { s } _ { 0 } , \\mathbf { s } _ { 1 } , . . . , \\mathbf { s } _ { K } = g \\}$ , and the trajectory taken by $\\pi ^ { \\prime }$ as $\\{ \\mathbf { s } _ { 0 } ^ { \\prime } = \\mathbf { s } _ { 0 } , \\mathbf { s } _ { 1 } ^ { \\prime } , . . . , \\mathbf { s } _ { T } ^ { \\prime } = g \\}$ . Let $\\mathcal { L } _ { \\pi } ( \\cdot )$ denote the accumulated discounted sum of distance as defined in Equation 4. By our assumption $T > K$ , and since $\\pi ^ { \\prime }$ is optimal with respect to the reward $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) = - d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ , we have ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 455,
1427
+ 825,
1428
+ 545
1429
+ ],
1430
+ "page_idx": 12
1431
+ },
1432
+ {
1433
+ "type": "equation",
1434
+ "img_path": "images/97b74743a0aca3dde0a8d6d78155fc7cd4fae4a675b2fc313334717087b449c8.jpg",
1435
+ "text": "$$\n\\mathcal { L } _ { \\pi } ( \\pi ^ { \\prime } ) = \\sum _ { i = 0 } ^ { T - 1 } \\gamma ^ { i } d ^ { \\pi } ( \\mathbf { s } _ { i } ^ { \\prime } , \\mathbf { g } ) \\leq \\mathcal { L } _ { \\pi } ( \\pi ) = \\sum _ { i = 0 } ^ { K - 1 } \\gamma ^ { i } d ^ { \\pi } ( \\mathbf { s } _ { i } , \\mathbf { g } ) = \\sum _ { i = 0 } ^ { K - 1 } \\gamma ^ { i } ( K - 1 - i )\n$$",
1436
+ "text_format": "latex",
1437
+ "bbox": [
1438
+ 240,
1439
+ 551,
1440
+ 758,
1441
+ 595
1442
+ ],
1443
+ "page_idx": 12
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Then there must be a time $\\hat { t } < K$ such that $d ^ { \\pi } ( \\mathbf { s } _ { \\hat { t } } ^ { \\prime } , \\mathbf { g } ) < d ^ { \\pi } ( \\mathbf { s } _ { \\hat { t } } , \\mathbf { g } ) = K - 1 - \\hat { t }$ . Therefore $\\mathbf { s } _ { \\hat { t } } ^ { \\prime } \\in S _ { k }$ for some $k < K - 1 - \\hat { t }$ . However, starting from $\\mathbf { s } _ { \\hat { t } } ^ { \\prime }$ , we have $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } _ { \\hat { t } } ^ { \\prime } , \\mathbf { g } ) = T - 1 - \\hat { t } > K - 1 - \\hat { t } =$ $d ^ { \\pi } ( \\mathbf { s } _ { \\hat { t } } ^ { \\prime } , \\mathbf { g } )$ . Therefore, we reached a contradiction with our assumption that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\leq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ for all s, $k < K$ such that $\\mathbf { s } \\in S _ { k }$ . Therefore, $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\leq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ holds for all states. ",
1448
+ "bbox": [
1449
+ 173,
1450
+ 609,
1451
+ 825,
1452
+ 683
1453
+ ],
1454
+ "page_idx": 12
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "Part 2 Now we show the second part: if $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } )$ , then $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { * } ( \\mathbf { s } , \\mathbf { g } )$ . We prove this with a similar argument, grouping states by distance. Let $S _ { k } ^ { * } = \\{ \\mathbf { s } ; d ^ { * } ( \\mathbf { s } , \\mathbf { g } ) = k \\}$ be the set of states that takes $k$ steps under the optimal policy to reach the goal. Note that, for any arbitrary policy $\\pi$ , we have $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) \\geq d ^ { * } ( \\mathbf { s } , \\mathbf { g } )$ by definition, since $d ^ { * }$ is the optimal distance. ",
1459
+ "bbox": [
1460
+ 173,
1461
+ 696,
1462
+ 825,
1463
+ 756
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "Suppose that $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) > d ^ { * } ( \\mathbf { s } , \\mathbf { g } )$ for some state s. Then there must be a smallest integer $K \\geq 0$ such that there exists a state ${ \\bf s } _ { 0 } \\in { \\cal S } _ { K } ^ { * }$ where $d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) > d ^ { * } ( { \\bf s } _ { 0 } , { \\bf g } )$ . For all $k \\ < \\ K$ , we have $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { * } ( \\mathbf { s } , \\mathbf { g } )$ for all $\\mathbf { s } \\in S _ { k } ^ { * }$ . Now starting from that state ${ \\bf s } _ { 0 }$ , let the trajectory of states taken by $\\pi$ be $\\{ \\mathbf { s } _ { 0 } , \\mathbf { s } _ { 1 } , . . . , \\mathbf { s } _ { T } = g \\}$ . Note that since $d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) > d ^ { * } ( { \\bf s } _ { 0 } , { \\bf g } ) = { \\cal K } , $ $T > K$ . Let $\\hat { \\pi }$ be the policy such that it agrees with $\\pi ^ { * }$ on $\\mathbf { s } _ { 0 }$ and agrees with $\\pi$ everywhere else. At the first step, $\\hat { \\pi }$ lands on state $\\mathbf { s } _ { 1 } ^ { \\prime }$ . Since ${ \\bf s } _ { 0 }$ is $K$ steps away from $\\mathbf { g }$ under $d ^ { * }$ , $\\mathbf { s } _ { 1 } ^ { \\prime }$ must be $K - 1$ steps away under $d ^ { * }$ and ${ \\bf s } _ { 1 } ^ { \\prime } \\in { \\cal S } _ { K - 1 } ^ { * }$ . Therefore, since $\\pi$ and $\\pi ^ { * }$ agrees on all states that are less than $K$ steps away from goal g, $\\hat { \\pi }$ would take the same action as $\\pi ^ { * }$ and hence take another $K - 1$ steps to goal g. Now let us denote the trajectory taken by $\\hat { \\pi }$ as $\\{ \\mathbf { s } _ { 0 } ^ { \\prime } = \\mathbf { s } _ { 0 } , \\mathbf { s } _ { 1 } ^ { \\prime } , . . . , \\mathbf { s } _ { K } ^ { \\prime } = g \\}$ . We compare the discounted sum of rewards of $\\pi$ and $\\hat { \\pi }$ under the reward function $r _ { \\mathbf { g } } ( \\mathbf { s } , \\mathbf { a } ) = - d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ . ",
1470
+ "bbox": [
1471
+ 173,
1472
+ 761,
1473
+ 825,
1474
+ 861
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "",
1481
+ "bbox": [
1482
+ 174,
1483
+ 103,
1484
+ 825,
1485
+ 147
1486
+ ],
1487
+ "page_idx": 13
1488
+ },
1489
+ {
1490
+ "type": "equation",
1491
+ "img_path": "images/03743315f7fc485563c81cff4f4bc782263da69a704e69b919dc35a31977d560.jpg",
1492
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { \\mathcal { L } } _ { \\pi } ( \\pi ) = \\sum _ { i = 0 } ^ { T - 1 } \\gamma ^ { i } d ^ { \\pi } ( { \\bf s } _ { i } , { \\bf g } ) = d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) + \\sum _ { i = 1 } ^ { T - 1 } \\gamma ^ { i } d ^ { \\pi } ( { \\bf s } _ { i } , { \\bf g } ) } \\ ~ } \\\\ { { \\displaystyle ~ = d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) + \\sum _ { i = 1 } ^ { T - 1 } \\gamma ^ { i } ( T - i ) \\geq d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) + \\sum _ { i = 1 } ^ { K - 1 } \\gamma ^ { i } ( K - i ) } \\ ~ } \\\\ { { \\displaystyle ~ = d ^ { \\pi } ( { \\bf s } _ { 0 } , { \\bf g } ) + \\sum _ { i = 1 } ^ { K - 1 } \\gamma ^ { i } d ^ { \\pi } ( { \\bf s } _ { i } ^ { \\prime } , { \\bf g } ) = \\sum _ { i = 0 } ^ { K - 1 } \\gamma ^ { i } d ^ { \\pi } ( { \\bf s } _ { i } ^ { \\prime } , { \\bf g } ) = { \\mathcal L } _ { \\pi } ( \\hat { \\pi } ) } \\ ~ } \\end{array}\n$$",
1493
+ "text_format": "latex",
1494
+ "bbox": [
1495
+ 274,
1496
+ 253,
1497
+ 722,
1498
+ 386
1499
+ ],
1500
+ "page_idx": 13
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Therefore, we can see that $\\hat { \\pi }$ is a better policy than $\\pi$ . Then the optimal policy $\\pi ^ { \\prime }$ under this reward must be different from $\\pi$ on at least one state. Hence $d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } ) \\neq d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } )$ . ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 479,
1508
+ 825,
1509
+ 512
1510
+ ],
1511
+ "page_idx": 13
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "We’ve now reached the conclusion that if $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\neq d ^ { * } ( \\mathbf { s } , \\mathbf { g } )$ , then $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) \\neq d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ . Hence, by contraposition, if $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { \\pi } ( \\mathbf { s } , \\mathbf { g } )$ , then it must be that $d ^ { \\pi ^ { \\prime } } ( \\mathbf { s } , \\mathbf { g } ) = d ^ { \\ast } ( \\mathbf { s } , \\mathbf { g } )$ . Our proof is thus complete. ",
1516
+ "bbox": [
1517
+ 174,
1518
+ 518,
1519
+ 825,
1520
+ 565
1521
+ ],
1522
+ "page_idx": 13
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "C DIDACTIC EXAMPLE ",
1527
+ "bbox": [
1528
+ 174,
1529
+ 698,
1530
+ 382,
1531
+ 714
1532
+ ],
1533
+ "page_idx": 13
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Our didactic example involves a simple 2D point robot navigating an S-shaped maze. The state space is two-dimensional, and the action is a two-dimensional velocity vector. This experiment is visualized in Figure 7. The black rectangles correspond to walls, and the goal is depicted with a blue star. The learned distance from all points in the maze to the goal is illustrated with a heat map, in which lighter colors correspond to closer states and darker colors to distant states. During the training, the initial state is chosen uniformly at random, and the policy is trained to reach the goal state. From the visualization, it is apparent that DDL learns an accurate estimate of the true dynamical distances in this domain. Note that, in contrast to na¨ıve metrics, such as Euclidean distance, the dynamical distances conform to the walls and provide an accurate estimate of reachability, making them ideally suited for reward shaping. ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 784,
1541
+ 825,
1542
+ 924
1543
+ ],
1544
+ "page_idx": 13
1545
+ },
1546
+ {
1547
+ "type": "image",
1548
+ "img_path": "images/0b1a512d4116173ff2294981ff2c4240e5fd3f1a154be461354f90236d4173dd.jpg",
1549
+ "image_caption": [
1550
+ "Figure 7: Evaluation of the learned distance in a 2D point environment. The state is the xycoordinates of the point, and action corresponds to 2D velocities. The black bars denote walls, blue star is a goal state, and the heat map denotes the estimated distance to the goal. (a) Our method learns an accurate estimate of the shape of the distance function. (b) Ground-truth distance. "
1551
+ ],
1552
+ "image_footnote": [],
1553
+ "bbox": [
1554
+ 181,
1555
+ 99,
1556
+ 812,
1557
+ 342
1558
+ ],
1559
+ "page_idx": 14
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "D PREFERENCE QUERIES FOR REAL-WORLD DCLAW EXPERIMENT ",
1564
+ "text_level": 1,
1565
+ "bbox": [
1566
+ 173,
1567
+ 102,
1568
+ 751,
1569
+ 118
1570
+ ],
1571
+ "page_idx": 15
1572
+ },
1573
+ {
1574
+ "type": "image",
1575
+ "img_path": "images/1f5b8406ba52b303a00f5db5e76a224ae4a6bbbbe39040a18a95ab863a5b6bfb.jpg",
1576
+ "image_caption": [
1577
+ "Figure 8: Human preference queries for the vision-based DClaw experiment presented in Section 6.1. Each image row presents the set of images shown to the human operator on a single query round. On each row, the first 10 images correspond to the last states of the most recent rollouts and the right-most image corresponds to the last goal. For each query, the human operator picks a new goal by inputting its index (between 0-10) into a text-based interface. The goals selected by human are highlighted with white borders. "
1578
+ ],
1579
+ "image_footnote": [],
1580
+ "bbox": [
1581
+ 32,
1582
+ 125,
1583
+ 965,
1584
+ 848
1585
+ ],
1586
+ "page_idx": 15
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "E TECHNICAL DETAILS ",
1591
+ "text_level": 1,
1592
+ "bbox": [
1593
+ 174,
1594
+ 102,
1595
+ 387,
1596
+ 118
1597
+ ],
1598
+ "page_idx": 16
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "All our experiments use Soft Actor-Critic as the policy optimizer, trained the default parameters by provided by the authors in (Haarnoja et al., 2018c). ",
1603
+ "bbox": [
1604
+ 174,
1605
+ 133,
1606
+ 823,
1607
+ 161
1608
+ ],
1609
+ "page_idx": 16
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "For all of the tasks, we parameterize our distance function as a neural network. For state-based tasks, we use feed-forward neural networks with two 256-unit hidden layers. For the vision-based tasks we add a convolutional preprocessing network before these fully-connected layers, consisting of four convolutional layers, each with $6 4 3 \\mathrm { x } 3 $ filters. Both cases use Adam optimizer with learning rate 3e4 and TensorFlow‘s default momentum parameters. The image observation for all the vision-based tasks are 3072 dimensional (32x32 RGB images). ",
1614
+ "bbox": [
1615
+ 173,
1616
+ 167,
1617
+ 825,
1618
+ 252
1619
+ ],
1620
+ "page_idx": 16
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "Most important hyperparameters that we swept over in the final experiments, namely the size of the on-policy pool for training the distance function and the number of gradient steps per environment samples, are presented in Table 1 below: ",
1625
+ "bbox": [
1626
+ 174,
1627
+ 260,
1628
+ 823,
1629
+ 301
1630
+ ],
1631
+ "page_idx": 16
1632
+ },
1633
+ {
1634
+ "type": "table",
1635
+ "img_path": "images/f72d091c25aa26bc117c478dffbe33a7d9f3c835bfed6250b83bfab708991bab.jpg",
1636
+ "table_caption": [
1637
+ "Table 1: Distance estimator hyperparameters. "
1638
+ ],
1639
+ "table_footnote": [],
1640
+ "table_body": "<table><tr><td>Environment</td><td>gradient steps per environment steps</td><td>on-policy pool size</td></tr><tr><td>InvertedDoublePendulum-v2</td><td>1/64</td><td>100k</td></tr><tr><td>Hopper-v3</td><td>1/64</td><td>16k</td></tr><tr><td>HalfCheetah-v3</td><td>1/16</td><td>16k</td></tr><tr><td>Ant-v3</td><td>1/64</td><td>10k</td></tr><tr><td>DClaw (both state and vision)</td><td>1/16</td><td>100k</td></tr></table>",
1641
+ "bbox": [
1642
+ 189,
1643
+ 314,
1644
+ 808,
1645
+ 401
1646
+ ],
1647
+ "page_idx": 16
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "For the DDLUS goal proposals, we consider all the samples in the distance on-policy pool as the goal candidates. For DDLfP, we present the operator the last states $( s _ { T - 1 } )$ of the last $N$ episodes, where $N = 5$ for all the simulated experiments, and $N = 1 0$ for the hardware DClaw. ",
1652
+ "bbox": [
1653
+ 174,
1654
+ 440,
1655
+ 825,
1656
+ 483
1657
+ ],
1658
+ "page_idx": 16
1659
+ },
1660
+ {
1661
+ "type": "text",
1662
+ "text": "As discussed in Section 5, for both DDLUS and DDLfP, the agent needs to explore in the vicinity of the goal state. In practice, we implement this by switching to a random uniform policy after $0 . 9 \\mathrm { T }$ timesteps of each episode, where $\\mathrm { T }$ is the maximum episode length (1000 for all the mujoco tasks and 200 for the DClaw task). ",
1663
+ "bbox": [
1664
+ 174,
1665
+ 489,
1666
+ 825,
1667
+ 545
1668
+ ],
1669
+ "page_idx": 16
1670
+ }
1671
+ ]
parse/train/H1lmhaVtvr/H1lmhaVtvr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lmhaVtvr/H1lmhaVtvr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxAAvcxx/HkxAAvcxx.md ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRANSFORMATION-BASED MODELS OF VIDEO SEQUENCES
2
+
3
+ Joost van Amersfoort ∗, Anitha Kannan, Marc’Aurelio Ranzato, Arthur Szlam, Du Tran & Soumith Chintala
4
+
5
+ Facebook AI Research joost@joo.st, {akannan, ranzato, aszlam, trandu, soumith}@fb.com
6
+
7
+ # ABSTRACT
8
+
9
+ In this work we propose a simple unsupervised approach for next frame prediction in video. Instead of directly predicting the pixels in a frame given past frames, we predict the transformations needed for generating the next frame in a sequence, given the transformations of the past frames. This leads to sharper results, while using a smaller prediction model.
10
+
11
+ In order to enable a fair comparison between different video frame prediction models, we also propose a new evaluation protocol. We use generated frames as input to a classifier trained with ground truth sequences. This criterion guarantees that models scoring high are those producing sequences which preserve discriminative features, as opposed to merely penalizing any deviation, plausible or not, from the ground truth. Our proposed approach compares favourably against more sophisticated ones on the UCF-101 data set, while also being more efficient in terms of the number of parameters and computational cost.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ There has been an increased interest in unsupervised learning of representations from video sequences (Mathieu et al., 2016; Srivastava et al., 2015; Vondrick et al., 2016). A popular formulation of the task is to learn to predict a small number of future frames given the previous K frames; the motivation being that predicting future frames requires understanding how objects interact and what plausible sequences of motion are. These methods directly aim to predict pixel values, with either MSE loss or adversarial loss.
16
+
17
+ In this paper, we take a different approach to the problem of next frame prediction. In particular, our model operates in the space of transformations between frames, directly modeling the source of variability. We exploit the assumption that the transformations of objects from frame to frame should be smooth, even when the pixel values are not. Instead of predicting pixel values, we directly predict how objects transform. The key insight is that while there are many possible outputs, predicting one such transformation will yield motion that may not correspond to ground truth, yet will be realistic; see fig. 1. We therefore propose a transformation-based model that operates in the space of affine transforms. Given the affine transforms of a few previous frames, the model learns to predict the local affine transforms that can be deterministically applied on the image patches of the previous frame to generate the next frame. The intuition is that estimation errors will lead to a slightly different yet plausible motion. Note that this allows us to keep using the MSE criterion, which is easy to optimize, as long as it is in transformation space. No blur in the pixel space will be introduced since the output of the transformation model is directly applied to the pixels, keeping sharp edges intact. Refer to fig. 5 and our online material 1 for examples.
18
+
19
+ The other contribution of this work is the evaluation protocol. Typically, generative models of video sequences are evaluated in terms of MSE in pixel space (Srivastava et al., 2015), which is not a good choice since this metric favors blurry predictions over other more realistic looking options that just happen to differ from the ground truth. Instead, we propose to feed the generated frames to a video classifier trained on ground truth sequences. The idea is that the less the classifier’s performance is affected by the generates frames the more the model has preserved distinctive features and the more the generated sequences are plausible. Regardless of whether they resemble the actual ground truth or not. This protocol treats the classifier as a black box to measure how well the generated sequences can serve as surrogate for the truth sequence for the classification task. In this paper we will validate our assumption that motion can be modelled by local affine transforms, after which we will compare our method with networks trained using adversarial training and simple regression on the output frame, using both this new evaluation protocol and by providing samples for qualitative inspection.
20
+
21
+ ![](images/12ee9523c8c7a6b995c4a5f346b3260214950d38e8e359bf96b473cbaa612058.jpg)
22
+ Figure 1: Motivating toy example. From left to right: the first digit shows what the model is conditioned upon, the second digit shows the frame we would like to predict at the next time step, the third digit shows the blurry prediction if we were to minimize MSE in pixel space, the last digit shows the prediction when minimizing MSE in the space of transformations. While the two models may have the same MSE in pixel space, the transformation-based model generates much sharper outputs. Although the motion is different than the ground truth (second digit), it is still a plausible next frame to the conditioned frame. In practice, the input is a sequence of consecutive frames.
23
+
24
+ Our experiments show that our simple and efficient model outperforms other baselines, including much more sophisticated models, on benchmarks on the UCF-101 data set (Soomro et al., 2012). We also provide qualitative comparisons to the moving MNIST digit data set (Srivastava et al., 2015).
25
+
26
+ # 1.1 RELATED WORK
27
+
28
+ Early work on video modeling focused on predicting small patches (Michalski et al., 2014; Srivastava et al., 2015); unfortunately, these models have not shown to scale to the complexity of highresolution videos. Also these models require a significant amount of parameters and computational power for even relatively simple data.
29
+
30
+ In Ranzato et al. (2014), the authors circumvented this problem by quantizing the space of image patches. While they were able to predict a few high-resolution frames in the future, it seems dissatisfying to impose such a drastic assumption to simplify the prediction task.
31
+
32
+ Mathieu et al. (2016) recently proposed to replace MSE in pixel space with a MSE on image gradients, leveraging prior domain knowledge, and further improved using a multi-scale architecture with adversarial training (Goodfellow et al., 2014). While producing better results than earlier methods, the models used require a very large amount of computational power. We make an explicit comparison to this paper in the experiments section 3.
33
+
34
+ In Oh et al. (2015), frames of a video game are predicted given an action (transformation) taken by the player. While the paper shows great results, the movement in a natural video cannot be described by a simple action and is therefore not widely applicable. Finally, our work is also related to optical flow estimation (Brox et al., 2004). Instead of estimating the flow of pixels, here we estimate the flow of patches and separately predict how these patches transform in future frames.
35
+
36
+ Prior work relating to the evaluation protocol can be found in Yan et al. (2015). The authors generate images using a set of predefined attributes and later show that they can recover these using a pretrained neural network. Our proposal extends this to videos, which is more complicated since both appearance and motion are needed for correct classification.
37
+
38
+ ![](images/df89c340471c0d73caddfcea4acad4c37effaff1ca0dd8d6869df3386e93421a.jpg)
39
+ Figure 2: Outline of the transformation-based model. The model is a CNN that takes as input a sequence of consecutive affine transforms between pairs of adjacent video frames. It predicts the affine transform between the last input frame and the next one in the sequence. We compute affine transforms (6 parameters per patch) for overlapping patches of size $8 \times 8$ in each video frame. Learning operates in the space of transformations as shown inside the dashed box. The front-end on the left is a module that estimates the affine transforms between pairs of consecutive input frames. The post-processor on the right reconstructs a frame from the predicted set of affine transforms and it is only used at test time.
40
+
41
+ # 2 MODEL
42
+
43
+ The model we propose is based on three key assumptions: 1) just estimating object motion yields sequences that are plausible and relatively sharp, 2) global motion can be estimated by tiling highresolution video frames into patches and estimating motion “convolutionally” at the patch level, and 3) patches at the same spatial location over two consecutive time steps undergo a deformation which can be well described by an affine transformation.
44
+
45
+ The first assumption is at the core of the proposed method: by considering uncertainty in the space of transformations we produce sequences that may still look plausible. The other two assumptions state that a video sequence can be composed by patches undergoing affine transformations. We agree that these are simplistic assumptions, which ignore how object identity affects motion and do not account for out of plane rotations and more general forms of deformation. However, our qualitative and quantitative evaluation shows the efficacy of these assumptions to real video sequence as can be seen in section 3 and from visualizations in the supplementary material2.
46
+
47
+ Our approach consists of three steps. First, we estimate affine transforms of every video sequence to build a training set for our model. Second, we train a model that takes the past $N$ affine transforms and predicts the next $M$ affine transforms. Finally, at test time, the model uses the predicted affine transforms to reconstruct pixel values of the generated sequence. We describe the details of each phase in the following sections.
48
+
49
+ # 2.1 AFFINE TRANSFORM EXTRACTOR
50
+
51
+ Given a frame $x$ and the subsequent frame $y$ , the goal of the affine transform extractor is to learn mappings that can warp $x$ into $y$ . Since different parts of the scene may undergo different transforms, we tile $x$ into overlapping patches and infer a transformation for each patch. The estimation process couples the transformations at different spatial locations because we minimize the reconstruction error of the entire frame $y$ , as opposed to treating each patch independently.
52
+
53
+ ![](images/81a308020c438f39ad5439f467fe0f3828cc385ad43508393d31c92ed57c46bb.jpg)
54
+ Figure 3: Outline of the system predicting 4 frames ahead in time. Only affine transforms $A _ { 1 }$ , $A _ { 2 }$ and $A _ { 3 }$ are provided, and the model predicts ${ \tilde { A } } _ { 4 }$ , ${ \tilde { A } } _ { 5 }$ , ${ \tilde { A } } _ { 6 }$ and ${ \tilde { A } } _ { 7 }$ , which are used to reconstruct the next 4 frames. Since affine parameters are continuous values and the whole chain of CNNs is differentiable, the whole unrolled system can be trained by back-propagation of the error. Note that CNNs all share the same parameters
55
+
56
+ Let $x$ and $y$ have size $D _ { r } \times D _ { c }$ . Let image $x$ be decomposed into a set of overlapping patches, each containing pixels from patches of size $d _ { r } \times d _ { c }$ with $d _ { r } \leq D _ { r }$ and $d _ { c } \leq D _ { c }$ . These patches are laid out on a regular grid with stride $s _ { r }$ and $s _ { c }$ pixels over rows and columns, respectively. Therefore, every pixel participates in $\frac { d _ { r } } { s _ { r } } \frac { d _ { c } } { s _ { c } }$ overlapping patches, not taking into account for the sake of simplicity border effects and non-integer divisions. We denote the whole set of overlapping patches by $\{ X _ { k } \}$ , where index $k$ runs over the whole set of patches. Similarly and using the same coordinate system, we denote by $\left\{ Y _ { k } \right\}$ the set of overlapping patches of $y$ .
57
+
58
+ We assume that there is an affine mapping $A _ { k }$ that maps $X _ { k }$ to $Y _ { k }$ , for all values of $k$ . $A _ { k }$ is a $2 \times 3$ matrix of free parameters representing a generic affine transform (translation, rotation and scaling) between the coordinates of output and input frame. Let $\tilde { Y } _ { k }$ be the transformed patches obtained when $A _ { k }$ is applied to $X _ { k }$ . Since coordinates overlap between patches, we reconstruct $y$ by averaging all predictions at the same location, yielding the estimate $\tilde { y }$ . The joint set of $A _ { k }$ is then jointly determined by minimizing the mean squared reconstruction error between $y$ and $\tilde { y }$ .
59
+
60
+ Notice that our approach and aim differs from spatial transformer networks (Jaderberg et al., 2015) since we perform this estimation off-line only for the input frames, computing one transform per patch.
61
+
62
+ In our experiments, we extracted $1 6 \times 1 6$ pixel patches from the input and we used stride 4 over rows and columns. The input patches are then matched at the output against smaller patches of size $8 \times 8$ pixels, to account for objects moving in and out of the patch region.
63
+
64
+ # 2.2 AFFINE TRANSFORM PREDICTOR
65
+
66
+ The affine transform predictor is used to predict the affine transforms between the last input frame and the next frame in the sequence. A schematic illustration of the system is shown in fig. 2. It receives as input the affine transforms between pairs of adjacent frames, as produced by the affine transform extractor described in the previous section. Each transform is arranged in a grid of size $6 \times n \times n$ , where $n$ is the number of patches in a row/column and 6 is the number of parameters of each affine transform. Therefore, if four frames are used to initialize the model, the actual input consists of 18 maps of size $n \times n$ , which are the concatenation of $A _ { t - 2 } , A _ { t - 1 } , A _ { t }$ , where $A _ { t }$ is the collection of patch affine transforms between frame at time $t - 1$ and $t$ .
67
+
68
+ The model consists of a multi-layer convolutional network without any pooling. The network is the composition of convolutional layers with ReLU non-linearity, computing a component-wise thresholding as in $v = \operatorname* { m a x } ( 0 , u )$ . We learn the parameters in the filters of the convolutional layers by minimizing the mean squared error between the output of the network and the target transforms.
69
+
70
+ Notice that we do not add any regularization to the model. In particular, we rely on the convolutional structure of the model to smooth out predictions at nearby spatial locations.
71
+
72
+ # 2.3 MULTI-STEP PREDICTION
73
+
74
+ In the previous section, we described how to predict the set of affine transforms at the next time step.
75
+ In practice, we would like to predict several time steps in the future.
76
+
77
+ A greedy approach would: a) train as described above to minimize the prediction error for the affine transforms at the next time step, and b) at test time, predict one step ahead and then re-circulate the model prediction back to the input to predict the affine transform two steps ahead, etc. Unfortunately, errors may accumulate throughout this process because the model was never exposed to its own predictions at training time.
78
+
79
+ The approach we propose replicates the model over time, also during training as shown in fig. 3. If we wish to predict $M$ steps in the future, we replicate the CNN $M$ times and pass the output of the CNN at time step $t$ as input to the same CNN at time step $t + 1$ , as we do at test time. Since predictions live in a continuous space, the whole system is differentiable and amenable to standard back-propagation of the error. Since parameters of the CNN are shared across time, the overall system is equivalent to a peculiar recurrent neural network, where affine transforms play the role of recurrent states. The experiments in section 3 demonstrate that this method is more accurate and robust than the greedy approach.
80
+
81
+ # 2.4 TESTING
82
+
83
+ At test time, we wish to predict $M$ frames in the future given the past $N$ frames. After extracting the $N - 1$ affine transforms from the frames we condition upon, we replicate the model $M$ times and feed its own prediction back to the input, as explained in the previous section.
84
+
85
+ Once the affine transforms are predicted, we can reconstruct the actual pixel values. We use the last frame of the sequence and apply the first set of affine transforms to each patch in that frame. Each pixel in the output frame is predicted multiple times, depending on the stride used. We average these predictions and reconstruct the whole frame. As required, we can repeat this process for as many frames as necessary, using the last reconstructed frame and the next affine transform.
86
+
87
+ In order to evaluate the generation, we propose to feed the generated frames to a trained classifier for a task of interest. For instance, we can condition the generation using frames taken from video clips which have been labeled with the corresponding action. The classifier has been trained on ground truth data but it is evaluated using frames fantasized by the generative model. The performance of the classifier on ground truth data is an upper bound on the performance of any generative model. This evaluation protocol does not penalize any generation that deviates from the ground truth, as standard MSE would. It instead check that discriminative features and the overall semantics of the generated sequence is correct, which is ultimately what we are interested in.
88
+
89
+ # 3 EXPERIMENTS
90
+
91
+ In this section, we validate the key assumptions made by our model and compare against state-ofthe-art generative models on two data sets. We strongly encourage the reader to watch the short video clips in the Supplementary Material to better understand the quality of our generations.
92
+
93
+ In section 2, we discussed the three key assumptions at the foundations of our model: 1) errors in the transformation space look still plausible, 2) a frame can be decomposed into patches, and 3) each patch motion is well modeled by an affine transform. The results in the Supplementary Material 3 validate assumption 2 and 3 qualitatively. Every row shows a sequence from the UCF101 dataset (Soomro et al., 2012). The column on the left shows the original video frames and the one on the right the reconstructions from the estimated affine transforms, as described in section 2.1. As you can see there is barely any noticeable difference between these video sequences, suggesting that video sequences can be very well represented as tiled affine transforms. For a quantitative comparison and for an assessment of how well the first assumption holds, please refer to section 3.2.
94
+
95
+ ![](images/7443870679cdf0ab5ac54a3777ad2932377d7e6b13ddb24a80c1973a6c1827d3.jpg)
96
+ Figure 4: Predictions of 4 sequences from the moving MNIST dataset. The top row of each pair shows the ground truth frames; the first four frames are used as input to the model. The bottom row shows the predictions of the model.
97
+
98
+ In the next section, we will first report some results using the toy data set of “moving MNIST digits” (Srivastava et al., 2015). We then discuss generations of natural high-resolution videos using the UCF-101 dataset and compare to current state-of-the-art methods.
99
+
100
+ # 3.1 MOVING MNIST
101
+
102
+ For our first experiment, we used the dataset of moving MNIST digits (Srivastava et al., 2015) and perform qualitative analysis4. It consists of one or two MNIST digits, placed at random locations and moving at constant speed inside a $6 4 \times 6 4$ frame. When a digit hits a boundary, it bounces, meaning that velocity in that direction is reversed. Digits can occlude each other and bounce off walls, making the data set challenging.
103
+
104
+ Using scripts provided by Srivastava et al. (2015), we generated a fixed dataset of 128,000 sequences and used $80 \%$ for training, $10 \%$ for validation and $10 \%$ for testing. Next, we estimated the affine transforms between every pair of adjacent frames to a total of 4 frames, and trained a small CNN in the space of affine transforms. The CNN has 3 convolutional layers and the following number of feature maps: 18, 32, 32, 6. All filters have size $3 \times 3$ .
105
+
106
+ Fig. 4 shows some representative test sequences and the model outputs. Each subfigure corresponds to a sequence from the test set; the top row corresponds to the ground truth sequence while the bottom row shows the generations. The input to the CNN are three sets of affine transforms corresponding to the first four consecutive frames. The network predicts the next six sets of affine transforms from which we reconstruct the corresponding frames. These results should be compared to fig. 5 in Srivastava et al. (2015). The generations in fig. 4 show that the model has potential to represent and generate video sequences, it learns to move digits in the right direction, to bounce them, and it handles multiple digits well except when occluion makes inputs too ambiguous. The model’s performance is analyzed quantitatively in the next section using high resolution natural videos.
107
+
108
+ # 3.2 UCF 101 DATA SET
109
+
110
+ The UCF-101 dataset (Soomro et al., 2012) is a collection of 13320 videos of 101 action categories. Frames have size $2 4 0 \times 3 2 0$ pixels. We train a CNN on patches of size $6 4 \times 6 4$ pixels; the CNN has 6 convolutional layers and the following number of feature maps: 18, 128, 128, 128, 64, 32, 16, 6. All filters have size $3 \times 3$ . The optimal number of filters has been found using cross-validation in order to minimize the estimation error of the affine transform parameters. Unless otherwise stated, we condition generation on 4 ground truth frames and we predict the following 8 frames.
111
+
112
+ We evaluate several models5: a) a baseline which merely copies the last frame used for conditioning, b) a baseline method which estimates optical flow (Brox et al., 2004) from two consecutive frames and extrapolates flow in subsequent frames under the assumption of constant flow speed, c) an adversarially trained multi-scale CNN (Mathieu et al., 2016) and several variants of our proposed approach.
113
+
114
+ ![](images/9bb8e2779df3278f29e753245446f1e87e7f9f6c450239af241f4b76732a3d70.jpg)
115
+ Figure 5: Example of predictions produced by different models. Each row shows an example. The first two columns show the ground truth. The two frames are 4 time steps apart. The next two columns show predictions from a baseline model employing optical flow. Next, we show the prediction produced by the adversarially trained CNN proposed by Mathieu et al. (2016). The last two column show the prediction produced by our affine-transformation based approach. All pairs in the same column group are four time steps apart. All methods were conditioned on the same set of 4 input frames (not shown in the figure)
116
+
117
+ Table 1: Classification accuracy on UCF-101 dataset. The classifier is trained on the actual training video sequences, but it is tested using frames generated by various generative models. Each column shows the accuracy on the test set when taking a different number of input frames as input. Our approach maps $1 6 \times 1 6$ patches into $8 \times 8$ with stride 4, and it takes 4 frames at the input.
118
+
119
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1> 4 frames</td><td rowspan=1 colspan=1>8 frames</td></tr><tr><td rowspan=1 colspan=1>Ground truth frames</td><td rowspan=1 colspan=1>72.46</td><td rowspan=1 colspan=1>72.29</td></tr><tr><td rowspan=1 colspan=1>Using ground truth affine transforms</td><td rowspan=1 colspan=1>71.7</td><td rowspan=1 colspan=1>71.28</td></tr><tr><td rowspan=1 colspan=1>Copy last frame</td><td rowspan=1 colspan=1>60.76</td><td rowspan=1 colspan=1>54.27</td></tr><tr><td rowspan=1 colspan=1>Optical Flow</td><td rowspan=1 colspan=1>57.29</td><td rowspan=1 colspan=1>49.37</td></tr><tr><td rowspan=1 colspan=1>Mathieu et al. (2016)</td><td rowspan=1 colspan=1>57.98</td><td rowspan=1 colspan=1>47.01</td></tr><tr><td rowspan=1 colspan=1>ours - one step prediction (not unrolled)</td><td rowspan=1 colspan=1>64.13</td><td rowspan=1 colspan=1>57.63</td></tr><tr><td rowspan=1 colspan=1>ours - four step prediction (unrolled 4 times)</td><td rowspan=1 colspan=1>64.54</td><td rowspan=1 colspan=1>57.88</td></tr></table>
120
+
121
+ Qualitative comparisons can be seen in the fig. 5 and in the supplementary material6. The first column on the page shows the input, the second the ground truth, followed by results from our model, Mathieu et al. (2016) and optical flow (Brox et al., 2004). Note especially the severe deformations in the last two columns, while our model keeps the frame recognizable. It produces fairly sharp reconstructions validating our first hypothesis that errors in the space of transformations still yield plausible reconstructions (see section 2). However it is also apparent that our approach underestimates movement, which follows directly from using the MSE criterion. As discussed before, MSE in pixel space leads to blurry results, however using MSE in transformation space also has some drawbacks. In practice, the model will predict the average of several likely transformations, which could lead to an understimation of the true movement.
122
+
123
+ In order to quantify the generation quality we use the metric described in section 2.4. We use C3D network (Tran et al., 2015) as the video action classifier: C3D uses both appearance and temporal information jointly, and is pre-trained with Sports1M (Karpathy et al., 2014) and fine tuned on UCF 101. Due to the model constraints, we trained only two models, that takes 4 and 8 frames as input, respectively.
124
+
125
+ We evaluate the quality of generation using 4 (the first four predicted frames) and the whole set of 8 predicted frames, for the task of action classification. At test time, we generate frames from each model under consideration, and then use them as input to the corresponding C3D network.
126
+
127
+ Table 1 shows the accuracy of our approach and several baselines. The best performance is achieved by using ground truth frames, a result comparable to methods recently appeared in the literature (Karpathy et al., 2014; Tran et al., 2015). We see that for ground truth frames, the number of frames (4 or 8) doesn’t make a difference. There is not much additional temporal or spatial signal provided by having greater than four frames. Next, we evaluate how much we lose by representing frames as tiled affine transforms. As the second row shows there is negligible if any loss of accuracy when using frames reconstructed from the estimated affine transforms (using the method described in section 2.1), validating our assumptions at the beginning of section 2 on how video sequences can be represented. The next question is then whether these affine transforms are predictable at all. The last two rows of Table 1 show that this is indeed the case, to some extent. The longer the sequence of generated frames the poorer the performance, since the generation task gets more and more difficult.
128
+
129
+ Compared to other methods, our approach performs better than optical flow and even the more sophisticated multi-scale CNN proposed in Mathieu et al. (2016) while being computationally cheaper. For instance, our method has less than half a million parameters and requires about 2G floating point operations to generate a frame at test time, while the multi-scale CNN of Mathieu et al. (2016) has 25 times more parameters (not counting the discriminator used at training time) and it requires more than 100 times more floating point operations to generate a single frame.
130
+
131
+ Finally, we investigate the robustness of the system to its hyper-parameters: a) choice of patch size, b) number of input frames, and c) number of predicted frames. The results reported in Table 2 demonstrate that the model is overall pretty robust to these choices. Using patch sizes that are too big makes reconstructions blocky but within each block motion is coherent. Smaller patch sizes give more flexibility but make the prediction task harder as well. Mapping into patches of size smaller than $1 6 \times 1 6$ seems a good choice. Using only 2 input frames does not seem to provide enough context to the predictor, but anything above 3 works equally well. Training for prediction of the next frame works well, but better results can be achieved by training to predict several frames in the future, overall when evaluating longer sequences.
132
+
133
+ Table 2: Analysis of the robustness to the choice of hyper-parameters, shows classification scores compared to reference model. The reference model takes 4 frames as input, predicts one frame, and maps $1 2 \times 1 2$ patches onto $8 \times 8$ patches with stride 4.
134
+
135
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>4 frames</td><td rowspan=1 colspan=1>8 frames</td></tr><tr><td rowspan=1 colspan=1>reference</td><td rowspan=1 colspan=1>63.57</td><td rowspan=1 colspan=1>57.32</td></tr><tr><td rowspan=1 colspan=1>Varying patch sizefrom 32 × 32 to 16× 16from 16 × 16 to 8 × 8</td><td rowspan=1 colspan=1>61.7363.75</td><td rowspan=1 colspan=1>53.8557.18</td></tr><tr><td rowspan=1 colspan=1>Number of input frames23</td><td rowspan=1 colspan=1>63.663.8</td><td rowspan=1 colspan=1>57.1157.4</td></tr><tr><td rowspan=1 colspan=1>Number of predicted frames24</td><td rowspan=1 colspan=1>64.164.54</td><td rowspan=1 colspan=1>57.557.88</td></tr></table>
136
+
137
+ # 4 CONCLUSIONS
138
+
139
+ In this work, we proposed a new approach to generative modeling of video sequences. This model does not make any assumption about the spatio-temporal resolution of video sequences nor about object categories. The key insight of our approach is to model in the space of transformations as opposed to raw pixel space. A priori we lack a good metric to measure how well a frame is reconstructed under uncertainty due to objects motion in natural scenes. Uncertainty about object motion and occlusions causes blurry generations when using MSE in pixel space. Instead, by operating in the space of transformations we aim at predicting how objects move, and estimation errors only yield a different, and possibly still plausible, motion. With this motivation we proposed a simple CNN operating in the space of affine transforms and we showed that it can generate sensible sequences up to about 4 frames. This model produces sequences that are both visually and quantitatively better than previously proposed approaches.
140
+
141
+ The second contribution of this work is the metric to compare generative models of video sequences. A good metric should not penalize a generative model for producing a sequence which is plausible but different from the ground truth. With this goal in mind and assuming we have at our disposal labeled sequences, we can first train a classifier using ground truth sequences. Next, the classifier is fed with sequences produced by our generative model for evaluation. A good generative model should produce sequences that still retain discriminative features. In other words, plausibility of generation is assessed in terms of how well inherent information is preserved during generation as opposed to necessarily and merely reproducing the ground truth sequences.
142
+
143
+ The proposed model is relatively simple; straightforward extensions that could improve its prediction accuracy are the use of a multi-scale architecture and the addition of recurrent units. These would enable a better modeling of objects of different sizes moving at varying speeds and to better capture complex temporal dynamics (e.g., cyclical movements like walking). A larger extension would be the addition of an appearance model, which together with our explicit transformation model could lead to learning better feature representations for classification.
144
+
145
+ In our view, the proposed approach should be considered as a stronger baseline for future research into next frame prediction. Even though our analysis shows improved performance and better looking generations, there are also obvious limitations. The first such limitation is the underestimation of transformations due to usage of the MSE as a criterion. We consider two main avenues worth pursuing in this space. First, we consider modelling a distribution of transformations and sampling one from it. The challenge of this approach is to sample a consistent trajectory. One could model the distribution of an entire trajectory, but that is a complex optimization problem. A second option is to use adversarial training to force the model to pick a plausible action. This option does not guarantee that underestimation of movement will be avoided. This will depend on the discriminator model accepting this as a plausible option.
146
+
147
+ Another limitation is that the current model does not factor out the “what” from the “where”, appearance from motion. The representation of two distinct objects subject to the same motion, as well as the representation of the same object subject to two different motion patterns are intrinsically different. Instead, it would be more powerful to learn models that can discover such factorization and leverage it to produce more efficient and compact representations.
148
+
149
+ # ACKNOWLEDGMENTS
150
+
151
+ Authors thank Camille Couprie and Michael Mathieu for discussions and helping with evaluation of their models.
152
+
153
+ # REFERENCES
154
+
155
+ Thomas Brox, Andres Bruhn, Nils Papenberg, and Joachim Weickert. High accuracy optical flow ´ estimation based on a theory for warping. In Computer Vision-ECCV 2004, pp. 25–36. Springer, 2004.
156
+
157
+ I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, 2014.
158
+
159
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. NIPS, 2015.
160
+
161
+ Andrej Karpathy, George Toderici, Sachin Shetty, Tommy Leung, Rahul Sukthankar, and Li FeiFei. Large-scale video classification with convolutional neural networks. In Computer Vision and Pattern Recognition (CVPR), 2014 IEEE Conference on, pp. 1725–1732. IEEE, 2014.
162
+
163
+ Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. In ICLR, 2016.
164
+
165
+ Vincent Michalski, Roland Memisevic, and Kishore Konda. Modeling deep temporal dependencies with recurrent grammar cells. In NIPS, 2014.
166
+
167
+ Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. NIPS, 2015.
168
+
169
+ MarcAurelio Ranzato, Arthur Szlam, Joan Bruna, Michael Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv preprint arXiv:1412.6604, 2014.
170
+
171
+ Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. CRCV-TR-12-01, 2012.
172
+
173
+ Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using lstms. CoRR, abs/1502.04681, 2, 2015.
174
+
175
+ Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 4489–4497, 2015.
176
+
177
+ Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. arXiv preprint arXiv:1609.02612, 2016.
178
+
179
+ Xinchen Yan, Jimei Yang, Kihyuk Sohn, and Honglak Lee. Attribute2image: Conditional image generation from visual attributes. arXiv preprint arXiv:1512.00570, 2015.
parse/train/HkxAAvcxx/HkxAAvcxx_content_list.json ADDED
@@ -0,0 +1,1004 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TRANSFORMATION-BASED MODELS OF VIDEO SEQUENCES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 821,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Joost van Amersfoort ∗, Anitha Kannan, Marc’Aurelio Ranzato, Arthur Szlam, Du Tran & Soumith Chintala ",
17
+ "bbox": [
18
+ 183,
19
+ 172,
20
+ 624,
21
+ 200
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Facebook AI Research joost@joo.st, {akannan, ranzato, aszlam, trandu, soumith}@fb.com ",
28
+ "bbox": [
29
+ 186,
30
+ 203,
31
+ 808,
32
+ 229
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 266,
43
+ 544,
44
+ 281
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In this work we propose a simple unsupervised approach for next frame prediction in video. Instead of directly predicting the pixels in a frame given past frames, we predict the transformations needed for generating the next frame in a sequence, given the transformations of the past frames. This leads to sharper results, while using a smaller prediction model. ",
51
+ "bbox": [
52
+ 233,
53
+ 297,
54
+ 764,
55
+ 366
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "In order to enable a fair comparison between different video frame prediction models, we also propose a new evaluation protocol. We use generated frames as input to a classifier trained with ground truth sequences. This criterion guarantees that models scoring high are those producing sequences which preserve discriminative features, as opposed to merely penalizing any deviation, plausible or not, from the ground truth. Our proposed approach compares favourably against more sophisticated ones on the UCF-101 data set, while also being more efficient in terms of the number of parameters and computational cost. ",
62
+ "bbox": [
63
+ 233,
64
+ 369,
65
+ 764,
66
+ 479
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 178,
76
+ 507,
77
+ 336,
78
+ 523
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "There has been an increased interest in unsupervised learning of representations from video sequences (Mathieu et al., 2016; Srivastava et al., 2015; Vondrick et al., 2016). A popular formulation of the task is to learn to predict a small number of future frames given the previous K frames; the motivation being that predicting future frames requires understanding how objects interact and what plausible sequences of motion are. These methods directly aim to predict pixel values, with either MSE loss or adversarial loss. ",
85
+ "bbox": [
86
+ 174,
87
+ 539,
88
+ 825,
89
+ 622
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we take a different approach to the problem of next frame prediction. In particular, our model operates in the space of transformations between frames, directly modeling the source of variability. We exploit the assumption that the transformations of objects from frame to frame should be smooth, even when the pixel values are not. Instead of predicting pixel values, we directly predict how objects transform. The key insight is that while there are many possible outputs, predicting one such transformation will yield motion that may not correspond to ground truth, yet will be realistic; see fig. 1. We therefore propose a transformation-based model that operates in the space of affine transforms. Given the affine transforms of a few previous frames, the model learns to predict the local affine transforms that can be deterministically applied on the image patches of the previous frame to generate the next frame. The intuition is that estimation errors will lead to a slightly different yet plausible motion. Note that this allows us to keep using the MSE criterion, which is easy to optimize, as long as it is in transformation space. No blur in the pixel space will be introduced since the output of the transformation model is directly applied to the pixels, keeping sharp edges intact. Refer to fig. 5 and our online material 1 for examples. ",
96
+ "bbox": [
97
+ 174,
98
+ 631,
99
+ 825,
100
+ 824
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The other contribution of this work is the evaluation protocol. Typically, generative models of video sequences are evaluated in terms of MSE in pixel space (Srivastava et al., 2015), which is not a good choice since this metric favors blurry predictions over other more realistic looking options that just happen to differ from the ground truth. Instead, we propose to feed the generated frames to a video classifier trained on ground truth sequences. The idea is that the less the classifier’s performance is affected by the generates frames the more the model has preserved distinctive features and the more the generated sequences are plausible. Regardless of whether they resemble the actual ground truth or not. This protocol treats the classifier as a black box to measure how well the generated sequences can serve as surrogate for the truth sequence for the classification task. In this paper we will validate our assumption that motion can be modelled by local affine transforms, after which we will compare our method with networks trained using adversarial training and simple regression on the output frame, using both this new evaluation protocol and by providing samples for qualitative inspection. ",
107
+ "bbox": [
108
+ 176,
109
+ 830,
110
+ 825,
111
+ 887
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/12ee9523c8c7a6b995c4a5f346b3260214950d38e8e359bf96b473cbaa612058.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Motivating toy example. From left to right: the first digit shows what the model is conditioned upon, the second digit shows the frame we would like to predict at the next time step, the third digit shows the blurry prediction if we were to minimize MSE in pixel space, the last digit shows the prediction when minimizing MSE in the space of transformations. While the two models may have the same MSE in pixel space, the transformation-based model generates much sharper outputs. Although the motion is different than the ground truth (second digit), it is still a plausible next frame to the conditioned frame. In practice, the input is a sequence of consecutive frames. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 334,
124
+ 103,
125
+ 663,
126
+ 161
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 174,
135
+ 342,
136
+ 825,
137
+ 468
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Our experiments show that our simple and efficient model outperforms other baselines, including much more sophisticated models, on benchmarks on the UCF-101 data set (Soomro et al., 2012). We also provide qualitative comparisons to the moving MNIST digit data set (Srivastava et al., 2015). ",
144
+ "bbox": [
145
+ 174,
146
+ 474,
147
+ 825,
148
+ 517
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "1.1 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 564,
159
+ 330,
160
+ 579
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Early work on video modeling focused on predicting small patches (Michalski et al., 2014; Srivastava et al., 2015); unfortunately, these models have not shown to scale to the complexity of highresolution videos. Also these models require a significant amount of parameters and computational power for even relatively simple data. ",
167
+ "bbox": [
168
+ 174,
169
+ 602,
170
+ 823,
171
+ 657
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "In Ranzato et al. (2014), the authors circumvented this problem by quantizing the space of image patches. While they were able to predict a few high-resolution frames in the future, it seems dissatisfying to impose such a drastic assumption to simplify the prediction task. ",
178
+ "bbox": [
179
+ 176,
180
+ 665,
181
+ 821,
182
+ 708
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Mathieu et al. (2016) recently proposed to replace MSE in pixel space with a MSE on image gradients, leveraging prior domain knowledge, and further improved using a multi-scale architecture with adversarial training (Goodfellow et al., 2014). While producing better results than earlier methods, the models used require a very large amount of computational power. We make an explicit comparison to this paper in the experiments section 3. ",
189
+ "bbox": [
190
+ 174,
191
+ 713,
192
+ 823,
193
+ 784
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "In Oh et al. (2015), frames of a video game are predicted given an action (transformation) taken by the player. While the paper shows great results, the movement in a natural video cannot be described by a simple action and is therefore not widely applicable. Finally, our work is also related to optical flow estimation (Brox et al., 2004). Instead of estimating the flow of pixels, here we estimate the flow of patches and separately predict how these patches transform in future frames. ",
200
+ "bbox": [
201
+ 174,
202
+ 791,
203
+ 823,
204
+ 861
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Prior work relating to the evaluation protocol can be found in Yan et al. (2015). The authors generate images using a set of predefined attributes and later show that they can recover these using a pretrained neural network. Our proposal extends this to videos, which is more complicated since both appearance and motion are needed for correct classification. ",
211
+ "bbox": [
212
+ 174,
213
+ 867,
214
+ 823,
215
+ 922
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "image",
221
+ "img_path": "images/df89c340471c0d73caddfcea4acad4c37effaff1ca0dd8d6869df3386e93421a.jpg",
222
+ "image_caption": [
223
+ "Figure 2: Outline of the transformation-based model. The model is a CNN that takes as input a sequence of consecutive affine transforms between pairs of adjacent video frames. It predicts the affine transform between the last input frame and the next one in the sequence. We compute affine transforms (6 parameters per patch) for overlapping patches of size $8 \\times 8$ in each video frame. Learning operates in the space of transformations as shown inside the dashed box. The front-end on the left is a module that estimates the affine transforms between pairs of consecutive input frames. The post-processor on the right reconstructs a frame from the predicted set of affine transforms and it is only used at test time. "
224
+ ],
225
+ "image_footnote": [],
226
+ "bbox": [
227
+ 173,
228
+ 98,
229
+ 825,
230
+ 279
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "2 MODEL ",
237
+ "text_level": 1,
238
+ "bbox": [
239
+ 174,
240
+ 478,
241
+ 267,
242
+ 494
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "The model we propose is based on three key assumptions: 1) just estimating object motion yields sequences that are plausible and relatively sharp, 2) global motion can be estimated by tiling highresolution video frames into patches and estimating motion “convolutionally” at the patch level, and 3) patches at the same spatial location over two consecutive time steps undergo a deformation which can be well described by an affine transformation. ",
249
+ "bbox": [
250
+ 174,
251
+ 512,
252
+ 825,
253
+ 582
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "The first assumption is at the core of the proposed method: by considering uncertainty in the space of transformations we produce sequences that may still look plausible. The other two assumptions state that a video sequence can be composed by patches undergoing affine transformations. We agree that these are simplistic assumptions, which ignore how object identity affects motion and do not account for out of plane rotations and more general forms of deformation. However, our qualitative and quantitative evaluation shows the efficacy of these assumptions to real video sequence as can be seen in section 3 and from visualizations in the supplementary material2. ",
260
+ "bbox": [
261
+ 174,
262
+ 589,
263
+ 825,
264
+ 686
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Our approach consists of three steps. First, we estimate affine transforms of every video sequence to build a training set for our model. Second, we train a model that takes the past $N$ affine transforms and predicts the next $M$ affine transforms. Finally, at test time, the model uses the predicted affine transforms to reconstruct pixel values of the generated sequence. We describe the details of each phase in the following sections. ",
271
+ "bbox": [
272
+ 174,
273
+ 694,
274
+ 825,
275
+ 763
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "2.1 AFFINE TRANSFORM EXTRACTOR ",
282
+ "text_level": 1,
283
+ "bbox": [
284
+ 178,
285
+ 784,
286
+ 447,
287
+ 797
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Given a frame $x$ and the subsequent frame $y$ , the goal of the affine transform extractor is to learn mappings that can warp $x$ into $y$ . Since different parts of the scene may undergo different transforms, we tile $x$ into overlapping patches and infer a transformation for each patch. The estimation process couples the transformations at different spatial locations because we minimize the reconstruction error of the entire frame $y$ , as opposed to treating each patch independently. ",
294
+ "bbox": [
295
+ 174,
296
+ 811,
297
+ 825,
298
+ 882
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "image",
304
+ "img_path": "images/81a308020c438f39ad5439f467fe0f3828cc385ad43508393d31c92ed57c46bb.jpg",
305
+ "image_caption": [
306
+ "Figure 3: Outline of the system predicting 4 frames ahead in time. Only affine transforms $A _ { 1 }$ , $A _ { 2 }$ and $A _ { 3 }$ are provided, and the model predicts ${ \\tilde { A } } _ { 4 }$ , ${ \\tilde { A } } _ { 5 }$ , ${ \\tilde { A } } _ { 6 }$ and ${ \\tilde { A } } _ { 7 }$ , which are used to reconstruct the next 4 frames. Since affine parameters are continuous values and the whole chain of CNNs is differentiable, the whole unrolled system can be trained by back-propagation of the error. Note that CNNs all share the same parameters "
307
+ ],
308
+ "image_footnote": [],
309
+ "bbox": [
310
+ 173,
311
+ 101,
312
+ 825,
313
+ 180
314
+ ],
315
+ "page_idx": 3
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "Let $x$ and $y$ have size $D _ { r } \\times D _ { c }$ . Let image $x$ be decomposed into a set of overlapping patches, each containing pixels from patches of size $d _ { r } \\times d _ { c }$ with $d _ { r } \\leq D _ { r }$ and $d _ { c } \\leq D _ { c }$ . These patches are laid out on a regular grid with stride $s _ { r }$ and $s _ { c }$ pixels over rows and columns, respectively. Therefore, every pixel participates in $\\frac { d _ { r } } { s _ { r } } \\frac { d _ { c } } { s _ { c } }$ overlapping patches, not taking into account for the sake of simplicity border effects and non-integer divisions. We denote the whole set of overlapping patches by $\\{ X _ { k } \\}$ , where index $k$ runs over the whole set of patches. Similarly and using the same coordinate system, we denote by $\\left\\{ Y _ { k } \\right\\}$ the set of overlapping patches of $y$ . ",
320
+ "bbox": [
321
+ 173,
322
+ 337,
323
+ 825,
324
+ 439
325
+ ],
326
+ "page_idx": 3
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "We assume that there is an affine mapping $A _ { k }$ that maps $X _ { k }$ to $Y _ { k }$ , for all values of $k$ . $A _ { k }$ is a $2 \\times 3$ matrix of free parameters representing a generic affine transform (translation, rotation and scaling) between the coordinates of output and input frame. Let $\\tilde { Y } _ { k }$ be the transformed patches obtained when $A _ { k }$ is applied to $X _ { k }$ . Since coordinates overlap between patches, we reconstruct $y$ by averaging all predictions at the same location, yielding the estimate $\\tilde { y }$ . The joint set of $A _ { k }$ is then jointly determined by minimizing the mean squared reconstruction error between $y$ and $\\tilde { y }$ . ",
331
+ "bbox": [
332
+ 174,
333
+ 445,
334
+ 825,
335
+ 531
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "Notice that our approach and aim differs from spatial transformer networks (Jaderberg et al., 2015) since we perform this estimation off-line only for the input frames, computing one transform per patch. ",
342
+ "bbox": [
343
+ 174,
344
+ 537,
345
+ 825,
346
+ 580
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "In our experiments, we extracted $1 6 \\times 1 6$ pixel patches from the input and we used stride 4 over rows and columns. The input patches are then matched at the output against smaller patches of size $8 \\times 8$ pixels, to account for objects moving in and out of the patch region. ",
353
+ "bbox": [
354
+ 174,
355
+ 587,
356
+ 825,
357
+ 630
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "2.2 AFFINE TRANSFORM PREDICTOR ",
364
+ "text_level": 1,
365
+ "bbox": [
366
+ 176,
367
+ 676,
368
+ 442,
369
+ 690
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "The affine transform predictor is used to predict the affine transforms between the last input frame and the next frame in the sequence. A schematic illustration of the system is shown in fig. 2. It receives as input the affine transforms between pairs of adjacent frames, as produced by the affine transform extractor described in the previous section. Each transform is arranged in a grid of size $6 \\times n \\times n$ , where $n$ is the number of patches in a row/column and 6 is the number of parameters of each affine transform. Therefore, if four frames are used to initialize the model, the actual input consists of 18 maps of size $n \\times n$ , which are the concatenation of $A _ { t - 2 } , A _ { t - 1 } , A _ { t }$ , where $A _ { t }$ is the collection of patch affine transforms between frame at time $t - 1$ and $t$ . ",
376
+ "bbox": [
377
+ 173,
378
+ 713,
379
+ 825,
380
+ 825
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "The model consists of a multi-layer convolutional network without any pooling. The network is the composition of convolutional layers with ReLU non-linearity, computing a component-wise thresholding as in $v = \\operatorname* { m a x } ( 0 , u )$ . We learn the parameters in the filters of the convolutional layers by minimizing the mean squared error between the output of the network and the target transforms. ",
387
+ "bbox": [
388
+ 174,
389
+ 833,
390
+ 825,
391
+ 888
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "Notice that we do not add any regularization to the model. In particular, we rely on the convolutional structure of the model to smooth out predictions at nearby spatial locations. ",
398
+ "bbox": [
399
+ 174,
400
+ 895,
401
+ 823,
402
+ 924
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "2.3 MULTI-STEP PREDICTION",
409
+ "text_level": 1,
410
+ "bbox": [
411
+ 174,
412
+ 103,
413
+ 395,
414
+ 117
415
+ ],
416
+ "page_idx": 4
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "In the previous section, we described how to predict the set of affine transforms at the next time step. \nIn practice, we would like to predict several time steps in the future. ",
421
+ "bbox": [
422
+ 174,
423
+ 132,
424
+ 821,
425
+ 160
426
+ ],
427
+ "page_idx": 4
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "A greedy approach would: a) train as described above to minimize the prediction error for the affine transforms at the next time step, and b) at test time, predict one step ahead and then re-circulate the model prediction back to the input to predict the affine transform two steps ahead, etc. Unfortunately, errors may accumulate throughout this process because the model was never exposed to its own predictions at training time. ",
432
+ "bbox": [
433
+ 174,
434
+ 167,
435
+ 823,
436
+ 237
437
+ ],
438
+ "page_idx": 4
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "The approach we propose replicates the model over time, also during training as shown in fig. 3. If we wish to predict $M$ steps in the future, we replicate the CNN $M$ times and pass the output of the CNN at time step $t$ as input to the same CNN at time step $t + 1$ , as we do at test time. Since predictions live in a continuous space, the whole system is differentiable and amenable to standard back-propagation of the error. Since parameters of the CNN are shared across time, the overall system is equivalent to a peculiar recurrent neural network, where affine transforms play the role of recurrent states. The experiments in section 3 demonstrate that this method is more accurate and robust than the greedy approach. ",
443
+ "bbox": [
444
+ 174,
445
+ 244,
446
+ 825,
447
+ 356
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "2.4 TESTING ",
454
+ "text_level": 1,
455
+ "bbox": [
456
+ 174,
457
+ 381,
458
+ 276,
459
+ 395
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "At test time, we wish to predict $M$ frames in the future given the past $N$ frames. After extracting the $N - 1$ affine transforms from the frames we condition upon, we replicate the model $M$ times and feed its own prediction back to the input, as explained in the previous section. ",
466
+ "bbox": [
467
+ 174,
468
+ 410,
469
+ 823,
470
+ 452
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Once the affine transforms are predicted, we can reconstruct the actual pixel values. We use the last frame of the sequence and apply the first set of affine transforms to each patch in that frame. Each pixel in the output frame is predicted multiple times, depending on the stride used. We average these predictions and reconstruct the whole frame. As required, we can repeat this process for as many frames as necessary, using the last reconstructed frame and the next affine transform. ",
477
+ "bbox": [
478
+ 174,
479
+ 459,
480
+ 823,
481
+ 529
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "In order to evaluate the generation, we propose to feed the generated frames to a trained classifier for a task of interest. For instance, we can condition the generation using frames taken from video clips which have been labeled with the corresponding action. The classifier has been trained on ground truth data but it is evaluated using frames fantasized by the generative model. The performance of the classifier on ground truth data is an upper bound on the performance of any generative model. This evaluation protocol does not penalize any generation that deviates from the ground truth, as standard MSE would. It instead check that discriminative features and the overall semantics of the generated sequence is correct, which is ultimately what we are interested in. ",
488
+ "bbox": [
489
+ 174,
490
+ 536,
491
+ 825,
492
+ 647
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "3 EXPERIMENTS ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 176,
502
+ 675,
503
+ 326,
504
+ 690
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "In this section, we validate the key assumptions made by our model and compare against state-ofthe-art generative models on two data sets. We strongly encourage the reader to watch the short video clips in the Supplementary Material to better understand the quality of our generations. ",
511
+ "bbox": [
512
+ 176,
513
+ 712,
514
+ 823,
515
+ 753
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "In section 2, we discussed the three key assumptions at the foundations of our model: 1) errors in the transformation space look still plausible, 2) a frame can be decomposed into patches, and 3) each patch motion is well modeled by an affine transform. The results in the Supplementary Material 3 validate assumption 2 and 3 qualitatively. Every row shows a sequence from the UCF101 dataset (Soomro et al., 2012). The column on the left shows the original video frames and the one on the right the reconstructions from the estimated affine transforms, as described in section 2.1. As you can see there is barely any noticeable difference between these video sequences, suggesting that video sequences can be very well represented as tiled affine transforms. For a quantitative comparison and for an assessment of how well the first assumption holds, please refer to section 3.2. ",
522
+ "bbox": [
523
+ 174,
524
+ 760,
525
+ 825,
526
+ 886
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "image",
532
+ "img_path": "images/7443870679cdf0ab5ac54a3777ad2932377d7e6b13ddb24a80c1973a6c1827d3.jpg",
533
+ "image_caption": [
534
+ "Figure 4: Predictions of 4 sequences from the moving MNIST dataset. The top row of each pair shows the ground truth frames; the first four frames are used as input to the model. The bottom row shows the predictions of the model. "
535
+ ],
536
+ "image_footnote": [],
537
+ "bbox": [
538
+ 173,
539
+ 99,
540
+ 825,
541
+ 208
542
+ ],
543
+ "page_idx": 5
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "In the next section, we will first report some results using the toy data set of “moving MNIST digits” (Srivastava et al., 2015). We then discuss generations of natural high-resolution videos using the UCF-101 dataset and compare to current state-of-the-art methods. ",
548
+ "bbox": [
549
+ 174,
550
+ 308,
551
+ 825,
552
+ 349
553
+ ],
554
+ "page_idx": 5
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "3.1 MOVING MNIST ",
559
+ "text_level": 1,
560
+ "bbox": [
561
+ 176,
562
+ 367,
563
+ 334,
564
+ 381
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "For our first experiment, we used the dataset of moving MNIST digits (Srivastava et al., 2015) and perform qualitative analysis4. It consists of one or two MNIST digits, placed at random locations and moving at constant speed inside a $6 4 \\times 6 4$ frame. When a digit hits a boundary, it bounces, meaning that velocity in that direction is reversed. Digits can occlude each other and bounce off walls, making the data set challenging. ",
571
+ "bbox": [
572
+ 174,
573
+ 393,
574
+ 825,
575
+ 463
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Using scripts provided by Srivastava et al. (2015), we generated a fixed dataset of 128,000 sequences and used $80 \\%$ for training, $10 \\%$ for validation and $10 \\%$ for testing. Next, we estimated the affine transforms between every pair of adjacent frames to a total of 4 frames, and trained a small CNN in the space of affine transforms. The CNN has 3 convolutional layers and the following number of feature maps: 18, 32, 32, 6. All filters have size $3 \\times 3$ . ",
582
+ "bbox": [
583
+ 174,
584
+ 469,
585
+ 825,
586
+ 540
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "Fig. 4 shows some representative test sequences and the model outputs. Each subfigure corresponds to a sequence from the test set; the top row corresponds to the ground truth sequence while the bottom row shows the generations. The input to the CNN are three sets of affine transforms corresponding to the first four consecutive frames. The network predicts the next six sets of affine transforms from which we reconstruct the corresponding frames. These results should be compared to fig. 5 in Srivastava et al. (2015). The generations in fig. 4 show that the model has potential to represent and generate video sequences, it learns to move digits in the right direction, to bounce them, and it handles multiple digits well except when occluion makes inputs too ambiguous. The model’s performance is analyzed quantitatively in the next section using high resolution natural videos. ",
593
+ "bbox": [
594
+ 174,
595
+ 546,
596
+ 825,
597
+ 672
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "3.2 UCF 101 DATA SET ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 176,
607
+ 689,
608
+ 349,
609
+ 703
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "The UCF-101 dataset (Soomro et al., 2012) is a collection of 13320 videos of 101 action categories. Frames have size $2 4 0 \\times 3 2 0$ pixels. We train a CNN on patches of size $6 4 \\times 6 4$ pixels; the CNN has 6 convolutional layers and the following number of feature maps: 18, 128, 128, 128, 64, 32, 16, 6. All filters have size $3 \\times 3$ . The optimal number of filters has been found using cross-validation in order to minimize the estimation error of the affine transform parameters. Unless otherwise stated, we condition generation on 4 ground truth frames and we predict the following 8 frames. ",
616
+ "bbox": [
617
+ 174,
618
+ 715,
619
+ 825,
620
+ 799
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "We evaluate several models5: a) a baseline which merely copies the last frame used for conditioning, b) a baseline method which estimates optical flow (Brox et al., 2004) from two consecutive frames and extrapolates flow in subsequent frames under the assumption of constant flow speed, c) an adversarially trained multi-scale CNN (Mathieu et al., 2016) and several variants of our proposed approach. ",
627
+ "bbox": [
628
+ 173,
629
+ 806,
630
+ 823,
631
+ 834
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/9bb8e2779df3278f29e753245446f1e87e7f9f6c450239af241f4b76732a3d70.jpg",
638
+ "image_caption": [
639
+ "Figure 5: Example of predictions produced by different models. Each row shows an example. The first two columns show the ground truth. The two frames are 4 time steps apart. The next two columns show predictions from a baseline model employing optical flow. Next, we show the prediction produced by the adversarially trained CNN proposed by Mathieu et al. (2016). The last two column show the prediction produced by our affine-transformation based approach. All pairs in the same column group are four time steps apart. All methods were conditioned on the same set of 4 input frames (not shown in the figure) "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 173,
644
+ 99,
645
+ 825,
646
+ 356
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/88cc11b34a1e13cd49b1472b4421c3a6b31ce9c02df28e2bb51463aac4414f28.jpg",
653
+ "table_caption": [
654
+ "Table 1: Classification accuracy on UCF-101 dataset. The classifier is trained on the actual training video sequences, but it is tested using frames generated by various generative models. Each column shows the accuracy on the test set when taking a different number of input frames as input. Our approach maps $1 6 \\times 1 6$ patches into $8 \\times 8$ with stride 4, and it takes 4 frames at the input. "
655
+ ],
656
+ "table_footnote": [],
657
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1> 4 frames</td><td rowspan=1 colspan=1>8 frames</td></tr><tr><td rowspan=1 colspan=1>Ground truth frames</td><td rowspan=1 colspan=1>72.46</td><td rowspan=1 colspan=1>72.29</td></tr><tr><td rowspan=1 colspan=1>Using ground truth affine transforms</td><td rowspan=1 colspan=1>71.7</td><td rowspan=1 colspan=1>71.28</td></tr><tr><td rowspan=1 colspan=1>Copy last frame</td><td rowspan=1 colspan=1>60.76</td><td rowspan=1 colspan=1>54.27</td></tr><tr><td rowspan=1 colspan=1>Optical Flow</td><td rowspan=1 colspan=1>57.29</td><td rowspan=1 colspan=1>49.37</td></tr><tr><td rowspan=1 colspan=1>Mathieu et al. (2016)</td><td rowspan=1 colspan=1>57.98</td><td rowspan=1 colspan=1>47.01</td></tr><tr><td rowspan=1 colspan=1>ours - one step prediction (not unrolled)</td><td rowspan=1 colspan=1>64.13</td><td rowspan=1 colspan=1>57.63</td></tr><tr><td rowspan=1 colspan=1>ours - four step prediction (unrolled 4 times)</td><td rowspan=1 colspan=1>64.54</td><td rowspan=1 colspan=1>57.88</td></tr></table>",
658
+ "bbox": [
659
+ 274,
660
+ 566,
661
+ 723,
662
+ 685
663
+ ],
664
+ "page_idx": 6
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "",
669
+ "bbox": [
670
+ 176,
671
+ 712,
672
+ 823,
673
+ 753
674
+ ],
675
+ "page_idx": 6
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "Qualitative comparisons can be seen in the fig. 5 and in the supplementary material6. The first column on the page shows the input, the second the ground truth, followed by results from our model, Mathieu et al. (2016) and optical flow (Brox et al., 2004). Note especially the severe deformations in the last two columns, while our model keeps the frame recognizable. It produces fairly sharp reconstructions validating our first hypothesis that errors in the space of transformations still yield plausible reconstructions (see section 2). However it is also apparent that our approach underestimates movement, which follows directly from using the MSE criterion. As discussed before, MSE in pixel space leads to blurry results, however using MSE in transformation space also has some drawbacks. In practice, the model will predict the average of several likely transformations, which could lead to an understimation of the true movement. ",
680
+ "bbox": [
681
+ 173,
682
+ 761,
683
+ 825,
684
+ 900
685
+ ],
686
+ "page_idx": 6
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "In order to quantify the generation quality we use the metric described in section 2.4. We use C3D network (Tran et al., 2015) as the video action classifier: C3D uses both appearance and temporal information jointly, and is pre-trained with Sports1M (Karpathy et al., 2014) and fine tuned on UCF 101. Due to the model constraints, we trained only two models, that takes 4 and 8 frames as input, respectively. ",
691
+ "bbox": [
692
+ 174,
693
+ 103,
694
+ 825,
695
+ 174
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "We evaluate the quality of generation using 4 (the first four predicted frames) and the whole set of 8 predicted frames, for the task of action classification. At test time, we generate frames from each model under consideration, and then use them as input to the corresponding C3D network. ",
702
+ "bbox": [
703
+ 176,
704
+ 180,
705
+ 821,
706
+ 222
707
+ ],
708
+ "page_idx": 7
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Table 1 shows the accuracy of our approach and several baselines. The best performance is achieved by using ground truth frames, a result comparable to methods recently appeared in the literature (Karpathy et al., 2014; Tran et al., 2015). We see that for ground truth frames, the number of frames (4 or 8) doesn’t make a difference. There is not much additional temporal or spatial signal provided by having greater than four frames. Next, we evaluate how much we lose by representing frames as tiled affine transforms. As the second row shows there is negligible if any loss of accuracy when using frames reconstructed from the estimated affine transforms (using the method described in section 2.1), validating our assumptions at the beginning of section 2 on how video sequences can be represented. The next question is then whether these affine transforms are predictable at all. The last two rows of Table 1 show that this is indeed the case, to some extent. The longer the sequence of generated frames the poorer the performance, since the generation task gets more and more difficult. ",
713
+ "bbox": [
714
+ 174,
715
+ 229,
716
+ 825,
717
+ 382
718
+ ],
719
+ "page_idx": 7
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "Compared to other methods, our approach performs better than optical flow and even the more sophisticated multi-scale CNN proposed in Mathieu et al. (2016) while being computationally cheaper. For instance, our method has less than half a million parameters and requires about 2G floating point operations to generate a frame at test time, while the multi-scale CNN of Mathieu et al. (2016) has 25 times more parameters (not counting the discriminator used at training time) and it requires more than 100 times more floating point operations to generate a single frame. ",
724
+ "bbox": [
725
+ 174,
726
+ 388,
727
+ 825,
728
+ 473
729
+ ],
730
+ "page_idx": 7
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "Finally, we investigate the robustness of the system to its hyper-parameters: a) choice of patch size, b) number of input frames, and c) number of predicted frames. The results reported in Table 2 demonstrate that the model is overall pretty robust to these choices. Using patch sizes that are too big makes reconstructions blocky but within each block motion is coherent. Smaller patch sizes give more flexibility but make the prediction task harder as well. Mapping into patches of size smaller than $1 6 \\times 1 6$ seems a good choice. Using only 2 input frames does not seem to provide enough context to the predictor, but anything above 3 works equally well. Training for prediction of the next frame works well, but better results can be achieved by training to predict several frames in the future, overall when evaluating longer sequences. ",
735
+ "bbox": [
736
+ 173,
737
+ 479,
738
+ 825,
739
+ 606
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "table",
745
+ "img_path": "images/7ec9b523a769e3f26c296a66ca2e1543ddd3597bddb8614f93069334a6b474f2.jpg",
746
+ "table_caption": [
747
+ "Table 2: Analysis of the robustness to the choice of hyper-parameters, shows classification scores compared to reference model. The reference model takes 4 frames as input, predicts one frame, and maps $1 2 \\times 1 2$ patches onto $8 \\times 8$ patches with stride 4. "
748
+ ],
749
+ "table_footnote": [],
750
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>4 frames</td><td rowspan=1 colspan=1>8 frames</td></tr><tr><td rowspan=1 colspan=1>reference</td><td rowspan=1 colspan=1>63.57</td><td rowspan=1 colspan=1>57.32</td></tr><tr><td rowspan=1 colspan=1>Varying patch sizefrom 32 × 32 to 16× 16from 16 × 16 to 8 × 8</td><td rowspan=1 colspan=1>61.7363.75</td><td rowspan=1 colspan=1>53.8557.18</td></tr><tr><td rowspan=1 colspan=1>Number of input frames23</td><td rowspan=1 colspan=1>63.663.8</td><td rowspan=1 colspan=1>57.1157.4</td></tr><tr><td rowspan=1 colspan=1>Number of predicted frames24</td><td rowspan=1 colspan=1>64.164.54</td><td rowspan=1 colspan=1>57.557.88</td></tr></table>",
751
+ "bbox": [
752
+ 326,
753
+ 671,
754
+ 669,
755
+ 830
756
+ ],
757
+ "page_idx": 7
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "4 CONCLUSIONS ",
762
+ "text_level": 1,
763
+ "bbox": [
764
+ 176,
765
+ 102,
766
+ 328,
767
+ 117
768
+ ],
769
+ "page_idx": 8
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "In this work, we proposed a new approach to generative modeling of video sequences. This model does not make any assumption about the spatio-temporal resolution of video sequences nor about object categories. The key insight of our approach is to model in the space of transformations as opposed to raw pixel space. A priori we lack a good metric to measure how well a frame is reconstructed under uncertainty due to objects motion in natural scenes. Uncertainty about object motion and occlusions causes blurry generations when using MSE in pixel space. Instead, by operating in the space of transformations we aim at predicting how objects move, and estimation errors only yield a different, and possibly still plausible, motion. With this motivation we proposed a simple CNN operating in the space of affine transforms and we showed that it can generate sensible sequences up to about 4 frames. This model produces sequences that are both visually and quantitatively better than previously proposed approaches. ",
774
+ "bbox": [
775
+ 174,
776
+ 133,
777
+ 825,
778
+ 286
779
+ ],
780
+ "page_idx": 8
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "The second contribution of this work is the metric to compare generative models of video sequences. A good metric should not penalize a generative model for producing a sequence which is plausible but different from the ground truth. With this goal in mind and assuming we have at our disposal labeled sequences, we can first train a classifier using ground truth sequences. Next, the classifier is fed with sequences produced by our generative model for evaluation. A good generative model should produce sequences that still retain discriminative features. In other words, plausibility of generation is assessed in terms of how well inherent information is preserved during generation as opposed to necessarily and merely reproducing the ground truth sequences. ",
785
+ "bbox": [
786
+ 174,
787
+ 292,
788
+ 825,
789
+ 405
790
+ ],
791
+ "page_idx": 8
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "The proposed model is relatively simple; straightforward extensions that could improve its prediction accuracy are the use of a multi-scale architecture and the addition of recurrent units. These would enable a better modeling of objects of different sizes moving at varying speeds and to better capture complex temporal dynamics (e.g., cyclical movements like walking). A larger extension would be the addition of an appearance model, which together with our explicit transformation model could lead to learning better feature representations for classification. ",
796
+ "bbox": [
797
+ 174,
798
+ 411,
799
+ 825,
800
+ 494
801
+ ],
802
+ "page_idx": 8
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "In our view, the proposed approach should be considered as a stronger baseline for future research into next frame prediction. Even though our analysis shows improved performance and better looking generations, there are also obvious limitations. The first such limitation is the underestimation of transformations due to usage of the MSE as a criterion. We consider two main avenues worth pursuing in this space. First, we consider modelling a distribution of transformations and sampling one from it. The challenge of this approach is to sample a consistent trajectory. One could model the distribution of an entire trajectory, but that is a complex optimization problem. A second option is to use adversarial training to force the model to pick a plausible action. This option does not guarantee that underestimation of movement will be avoided. This will depend on the discriminator model accepting this as a plausible option. ",
807
+ "bbox": [
808
+ 174,
809
+ 502,
810
+ 825,
811
+ 641
812
+ ],
813
+ "page_idx": 8
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Another limitation is that the current model does not factor out the “what” from the “where”, appearance from motion. The representation of two distinct objects subject to the same motion, as well as the representation of the same object subject to two different motion patterns are intrinsically different. Instead, it would be more powerful to learn models that can discover such factorization and leverage it to produce more efficient and compact representations. ",
818
+ "bbox": [
819
+ 174,
820
+ 648,
821
+ 825,
822
+ 717
823
+ ],
824
+ "page_idx": 8
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "ACKNOWLEDGMENTS ",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 176,
832
+ 734,
833
+ 326,
834
+ 747
835
+ ],
836
+ "page_idx": 8
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Authors thank Camille Couprie and Michael Mathieu for discussions and helping with evaluation of their models. ",
841
+ "bbox": [
842
+ 176,
843
+ 757,
844
+ 823,
845
+ 785
846
+ ],
847
+ "page_idx": 8
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "REFERENCES ",
852
+ "text_level": 1,
853
+ "bbox": [
854
+ 176,
855
+ 102,
856
+ 287,
857
+ 117
858
+ ],
859
+ "page_idx": 9
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Thomas Brox, Andres Bruhn, Nils Papenberg, and Joachim Weickert. High accuracy optical flow ´ estimation based on a theory for warping. In Computer Vision-ECCV 2004, pp. 25–36. Springer, 2004. ",
864
+ "bbox": [
865
+ 174,
866
+ 126,
867
+ 823,
868
+ 167
869
+ ],
870
+ "page_idx": 9
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, 2014. ",
875
+ "bbox": [
876
+ 171,
877
+ 176,
878
+ 823,
879
+ 207
880
+ ],
881
+ "page_idx": 9
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. NIPS, 2015. ",
886
+ "bbox": [
887
+ 173,
888
+ 214,
889
+ 823,
890
+ 243
891
+ ],
892
+ "page_idx": 9
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Andrej Karpathy, George Toderici, Sachin Shetty, Tommy Leung, Rahul Sukthankar, and Li FeiFei. Large-scale video classification with convolutional neural networks. In Computer Vision and Pattern Recognition (CVPR), 2014 IEEE Conference on, pp. 1725–1732. IEEE, 2014. ",
897
+ "bbox": [
898
+ 176,
899
+ 252,
900
+ 823,
901
+ 296
902
+ ],
903
+ "page_idx": 9
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. In ICLR, 2016. ",
908
+ "bbox": [
909
+ 173,
910
+ 304,
911
+ 823,
912
+ 333
913
+ ],
914
+ "page_idx": 9
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "Vincent Michalski, Roland Memisevic, and Kishore Konda. Modeling deep temporal dependencies with recurrent grammar cells. In NIPS, 2014. ",
919
+ "bbox": [
920
+ 174,
921
+ 342,
922
+ 823,
923
+ 371
924
+ ],
925
+ "page_idx": 9
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. NIPS, 2015. ",
930
+ "bbox": [
931
+ 171,
932
+ 378,
933
+ 823,
934
+ 409
935
+ ],
936
+ "page_idx": 9
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "MarcAurelio Ranzato, Arthur Szlam, Joan Bruna, Michael Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv preprint arXiv:1412.6604, 2014. ",
941
+ "bbox": [
942
+ 176,
943
+ 416,
944
+ 823,
945
+ 460
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. CRCV-TR-12-01, 2012. ",
952
+ "bbox": [
953
+ 173,
954
+ 468,
955
+ 823,
956
+ 498
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using lstms. CoRR, abs/1502.04681, 2, 2015. ",
963
+ "bbox": [
964
+ 173,
965
+ 506,
966
+ 821,
967
+ 536
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 4489–4497, 2015. ",
974
+ "bbox": [
975
+ 173,
976
+ 545,
977
+ 821,
978
+ 588
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. arXiv preprint arXiv:1609.02612, 2016. ",
985
+ "bbox": [
986
+ 173,
987
+ 595,
988
+ 821,
989
+ 626
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Xinchen Yan, Jimei Yang, Kihyuk Sohn, and Honglak Lee. Attribute2image: Conditional image generation from visual attributes. arXiv preprint arXiv:1512.00570, 2015. ",
996
+ "bbox": [
997
+ 173,
998
+ 633,
999
+ 823,
1000
+ 664
1001
+ ],
1002
+ "page_idx": 9
1003
+ }
1004
+ ]
parse/train/HkxAAvcxx/HkxAAvcxx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxAAvcxx/HkxAAvcxx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hyfg5o0qtm/Hyfg5o0qtm.md ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TEMPORAL GAUSSIAN MIXTURE LAYER FOR VIDEOS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer and present how it can be used to efficiently capture longer-term temporal information in continuous activity videos. The TGM layer is a temporal convolutional layer governed by a much smaller set of parameters (e.g., location/variance of Gaussians) that are fully differentiable. We present our fully convolutional video models with multiple TGM layers for activity detection. The experiments on multiple datasets including Charades and MultiTHUMOS confirm the effectiveness of TGM layers, outperforming the state-of-the-arts.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Activity videos are spatio-temporal data: they are image frames with a specific width/height (XY) concatenated along time axis (T). Recognition from such videos requires capturing both spatial and temporal information in the videos, desirably using learned convolutional kernels. Temporal convolution is particularly beneficial in activity ‘detection’ tasks, which require making activity decisions at every frame given a continuous video (Sigurdsson et al., 2016b; Yeung et al., 2015). Previous methods investigated using 3-D XYT convolutional filters (Tran et al., 2014; Carreira & Zisserman, 2017) as well as the models with 2-D XY conv. layers followed by 1-D temporal conv. (Tran et al., 2018), pooling or attention layers (Piergiovanni et al., 2017).
12
+
13
+ Understanding complex multi-activity videos requires capturing information in long-term time intervals. Different frames contain different information, and the model needs to learn to take advantage of as many frames as possible, while abstracting them efficiently. Previous attempts of simply pooling representations over time or learning temporal conv. filters with a small number of frames (e.g., 16 or 64) was thus often insufficient to fully consider rich long-term temporal context. Simultaneously, bruteforcely increasing the temporal filter length (to look at more frames) results more learnable parameters, requiring more training data, which can be expensive when activities are rare.
14
+
15
+ In this paper, we introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer, and present how it can be used to efficiently capture longer-term temporal information in activity videos. Our temporal Gaussian mixture layer is a temporal convolutional layer, whose filters/kernels are controlled by a set of (temporal) Gaussian distribution parameters. Each of our temporal Gaussian distributions specify (temporally) ‘where’ the model should look, and our Gaussian mixture layer combines them as multiple convolutional filters to be applied on top of temporallycontinuous representations. This layer allows the video representation at each time step to be constructed while focusing on different neighboring temporal regions, instead of only focusing on its local segment. It is a convolutional layer governed by a much smaller set of parameters (i.e., locations/variances of the Gaussians as well as their mixture weights) that are fully differentiable.
16
+
17
+ The motivation behind our temporal Gaussian mixture layer is to learn the temporal structure of an activity as a composition of temporal Gaussian regions/attentions. Such structure allows the model to obtain a compact spatio-temporal representation abstracting each (long-term) time interval, using multiple temporal conv. layers with far fewer parameters. It is also related to the previous temporal attention works (Piergiovanni et al., 2017), but our model is designed to be fully convolutional to handle continuous data and it learns more compositional structures with multiple layers.
18
+
19
+ We present video-CNN models using our TGM layers for activity detection in continuous videos. Our model stacks TGM layers on top of several state-of-the-art CNNs such as I3D (Carreira & Zisserman, 2017). This enables our model to capture longer-term temporal information than what we use as base CNNs, compositionally modeling temporal structure with multiple TGM layers. Our model was evaluated on multiple public datasets including MultiTHUMOS and Charades, and was able to outperform the best previous activity detection CNNs by a meaningful margin.
20
+
21
+ # 2 RELATED WORKS
22
+
23
+ Learning video representations for human activity recognition has been successful. CNN methods allow end-to-end learning of video features and representations optimized for the training data, performing superior to traditional works (Aggarwal & Ryoo, 2011) for video understanding.
24
+
25
+ Two-stream CNN models take a single RGB frame and a small number of optical flow frames as inputs to capture both motion and appearance information in videos (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016). Models learning 3-D spatio-temporal (XYT) convolutional filters were designed and applied to many activity recognition tasks as well (Tran et al., 2014; Carreira & Zisserman, 2017; Tran et al., 2017; Hara et al., 2017). Large scale datasets for activity detection, such as THUMOS (Jiang et al., 2014), ActivityNet (Heilbron et al., 2015), Kinetics (Kay et al., 2017), and Charades (Sigurdsson et al., 2016b) provided these approach the necessary training data to learn the models. Such 3-D XYT CNNs were also used to capture spatio-temporal information for activity detection (Xu et al., 2017; Shou et al., 2016; 2017; Zhao et al., 2017). However, all these CNNs were limited to the consideration of a fixed local video segment (e.g., 16 frames in (Tran et al., 2014) and 64-99 frames in (Carreira & Zisserman, 2017)) when making activity decisions.
26
+
27
+ Some works studied combining representations over longer-term temporal intervals (Karpathy et al., 2014; $\mathrm { N g }$ et al., 2015; Varol et al., 2017), but it was generally done with a temporal pooling of local representations or (spatio-)temporal convolutions with a bit larger fixed intervals. Recurrent neural networks (RNNs) have also been used to model activity transitions between frames (Yeung et al., 2015; 2016; Escorcia et al., 2016), but they were strictly sequential and had limitations in maintaining temporal information over a longer temporal duration, particularly for videos with multiple complex activities. Recently, CNN models using temporal attention for activity videos (Piergiovanni et al., 2017; Piergiovanni & Ryoo, 2018b) were studied as well. However, a fully convolutional model to analyze continuous videos while efficiently representing information in long term intervals has been lacking.
28
+
29
+ Our layer is different from the previous standard (spatio-)temporal convolutional layers in that it relies on significantly fewer parameters by forcing filter shapes to be Gaussian compositions. Our temporal layer is also different from previous Gaussian Mixture Model layers (Variani et al., 2015) in that our layer is convolutional while they are not.
30
+
31
+ # 3 APPROACH
32
+
33
+ In this section, we introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer, and present how it can be used for activity recognition. Our Temporal Gaussian Mixture layer is a temporal convolutional layer to be applied on top of a sequence of representations (usually from frame-level or segment-level CNNs), whose filters/kernels are controlled by a set of (temporal) Gaussian distribution parameters. The motivation is to make each temporal Gaussian distribution specify (temporally) ‘where to look’ with respect to the activity center, and represent the activity as a collection/mixture of such temporal Gaussians convolved with video features. Our layer is fully differentiable and trainable using standard backpropagation.
34
+
35
+ Our TGM layer can be interpreted as a a form of 1-D convolution where the filters are determined by a mixture of Gaussians. However, our TGM layer differs from the standard temporal convolutional layers of learning 1-D (time) or 2-D (channel-by-time) filters in the following aspects:
36
+
37
+ 1. Our temporal Gaussian mixture layer handles multiple 3-D tensors internally to preserve channels from the frame-level CNN by adding a new temporal channel axis. Its input is 3-D (channel-by-channel-by-time), where one channel dimension is inherited from the frame-level CNN and this dimension size remains unchanged.
38
+ 2. Instead of learning temporal convolution filters of any arbitrary values, our filter is forced to have the form of a temporal Gaussian mixture shared across all frame-level channels. This allows the layer to rely on significantly fewer number of (fully differentiable) parameters, while capturing the concept of temporal structure/attention.
39
+
40
+ ![](images/bb08fe1098ed6b3ebacab0ba55fa20f4c6eca53bc414048213d86cf9d3f10300.jpg)
41
+ Figure 1: Example illustrating how our Temporal Gaussian Mixture layer is computed. Multiple $( M )$ temporal Gaussian distributions are learned, and they are combined with the learned soft attention weights to form the $C$ temporal convolution filters. $L$ is the temporal length of the filter.
42
+
43
+ # 3.1 TEMPORAL GAUSSIAN MIXTURE LAYER
44
+
45
+ Our temporal Gaussian mixture layer takes a 3-D input with the dimensionality of $C _ { i n } \times D \times T$ , where $\dot { C } _ { i n }$ is the number of input channels, $D$ is the dimensionality of the representations from frame-level (or segment-level) CNNs, and $T$ is the time. Given such input, the TGM layer convolves it with $C _ { o u t }$ number of $1 \times L$ filters/kernels, generating a $C _ { o u t } \times D \times T$ -dim representation as an output. $L$ is the temporal length of the temporal Gaussian mixture filter. $D$ is usually 1K or 4K and $T$ is the number of time steps (frames) in each video (i.e., it varies per video). $C _ { o u t }$ is the number of different mixtures, corresponding to the number of output channels in standard convolution.
46
+
47
+ Our layer is composed of a set of $M$ Gaussians. Each Gaussian has 2 parameters: a center $\hat { \mu }$ and a width $\hat { \sigma }$ . Each layer has additional hyper-parameters: $L$ , the temporal duration and $M$ , the number of Gaussians to learn. We force the learned center to be between ${ \bar { - } } { \frac { L } { 2 } }$ and $\begin{array} { l } { { \frac { L } { 2 } } } \end{array}$ and $\sigma$ to be positive:
48
+
49
+ $$
50
+ \mu = ( L - 1 ) \cdot \frac { \operatorname { t a n h } { ( \hat { \mu } + 1 ) } } { 2 } , \sigma ^ { 2 } = \exp { ( \hat { \sigma } ) } .
51
+ $$
52
+
53
+ We use the above $\mu$ and $\sigma$ to construct the temporal Gaussian kernels. This acts as a strong sparsity constraint on the convolutional kernel as well as a drastic reduction of the number of learnable parameters. We construct a temporal Gaussian mixture convolutional kernel as:
54
+
55
+ $$
56
+ \hat { K } _ { m , l } = \frac { 1 } { Z } \exp { - \frac { ( l - \mu _ { m } ) ^ { 2 } } { 2 \sigma _ { m } ^ { 2 } } }
57
+ $$
58
+
59
+ where $Z$ is a normalization constant such that $\begin{array} { r } { \sum _ { l } ^ { L } \hat { K } _ { m , l } = 1 } \end{array}$ , resulting in $\hat { K }$ being an $M \times L$ matrix.
60
+
61
+ Instead of making the model learn a separate set of Gaussian distributions per activity class, we take the approach of maintaining multiple Gaussian distributions shared across classes and obtain a Gaussian ‘mixture’ filter by learning soft-attention weights. We learn a set of soft-attention weights per output channel $i$ , $\omega \in \overline { { \mathcal { R } } } ^ { C _ { o u t } \times \breve { M } }$ . We create the soft-attention weights by applying the softmax function over the $M$ Gaussians, enforcing each input channel weights sum to 1.
62
+
63
+ $$
64
+ a _ { i , m } = \frac { \exp \omega _ { i , m } } { \sum _ { j } \exp \omega _ { i , j } }
65
+ $$
66
+
67
+ Based on temporal Gaussian distributions $\hat { K } _ { i }$ and attention weights $a _ { i , m }$ , the temporal convolution filters our TGM layer is computed as:
68
+
69
+ $$
70
+ K _ { i } = \sum _ { m } a _ { i , m } \hat { K } _ { i } .
71
+ $$
72
+
73
+ This provides us convolutional filters having the form of a mixture of temporal Gaussians, controlled based on $2 \cdot M + C _ { i n } \cdot C _ { o u t } \cdot M$ parameters (instead of learning $D ^ { 2 } \cdot L$ parameters without any constraint, as in standard temporal convolution where $C < < D$ ). An overview of this process is shown in Fig. 1.
74
+
75
+ # 3.1.1 SINGLE TGM LAYER - DIRECT PER-CLASS ACTIVITY MODELING
76
+
77
+ The representation we obtain by applying our base CNNs to each frame (or local segment) has the dimensionality of $D$ , and stacking them along time axis provides us the representation with
78
+
79
+ ![](images/1e1b884ad92c56ef857b2a263d6acccb6a7a771dee8413a54c17dfc575c6b884.jpg)
80
+ Figure 2: Illustration of a TGM layer with grouped convolution. This layer learns a set of $C$ Gaussian mixtures that are convolved with the input channels.
81
+
82
+ $1 \times D \times T$ -dim. That is, in the case of using only one TGM layer to capture activity representations, our $C _ { i n }$ is fixed to 1 and $C _ { o u t }$ is fixed to be the number of activity classes. This is the simplest case of our model, attaching one TGM layer on top of the $1 \times D \times T$ representation.
83
+
84
+ Our convolutional kernel, $K$ , has a learned Gaussian mixture for each activity class. Let the video features $v$ be a $D \times T$ matrix. Each $K _ { i }$ is a 2-D convolutional filter with a size of $1 \times L$ , and convolving this with $v$ provides us a representation $S$ with $C _ { o u t }$ number of $D \times T$ responses since $C _ { i n }$ is 1 in this case. This per-class representation can then be used as input to a fully-connected layer for activity classification. For $i \in \mathsf { \bar { \{ 1 , 2 , \ldots , C _ { o u t } \} } }$ :
85
+
86
+ $$
87
+ s _ { i } = v * K _ { i } , \ S = [ s _ { 1 } , s _ { 2 } , \ldots , s _ { C _ { o u t } } ]
88
+ $$
89
+
90
+ Fig. 7 in the appendix visually illustrates how each TGM filter is convolved with the input (Fig. 7d), compared to the standard 1-D convolution (Fig. 7a) or other forms of the temporal layers (Fig. 7b-c).
91
+
92
+ # 3.1.2 MULTIPLE TGM LAYERS - GROUPED CONVOLUTION
93
+
94
+ We generalize the above formulation to allow the TGM layers to be sequentially applied. The idea is to enable our model to capture more complex, nonlinear temporal structure by having multiple levels of temporal layers. In this case, the input for each layer is $C _ { i n } \times D \times T$ dimensional (instead of $1 \times D \times T$ ), where the input channels are the number of output channels from the previous layer. Our kernels at each layer, $K _ { i }$ , are parameterized and learned as before.
95
+
96
+ By using grouped convolution with the number of groups set to $C _ { i n }$ , we can efficiently separate the input into per-channel values and convolve each of them with the designated $K _ { i }$ kernel, as shown in Fig. 2. That is, we learn a filter $K _ { i }$ per channel by setting $C _ { i n } = C _ { o u t }$ . For $i \in [ 1 , C _ { o u t } ]$ ,
97
+
98
+ $$
99
+ s _ { i } = f _ { i } * K _ { i } , ~ S = [ s _ { 1 } , s _ { 2 } , . ~ . ~ . s _ { C _ { o u t } } ]
100
+ $$
101
+
102
+ Here, $f$ is a $C _ { i n } \times D \times T$ tensor, where $D$ is the dimensionality of the feature and $T$ is the number of frames. The result of the per-channel convolution, $s _ { i }$ , is a $D \times T$ representation. We concatenate these representations along the channel axis, resulting in $S$ , a $C _ { o u t } \times D \times T$ representation. As this convolution results in the same output shape, we can stack these layers. Each layer is able to capture increasing temporal resolution, allowing the model to capture levels of abstractions.
103
+
104
+ # 3.1.3 MULTIPLE TGM LAYERS - CHANNEL COMBINATION
105
+
106
+ In the above subsection, we introduced an approach of stacking multiple TGM layers to model a hierarchical composition of temporal representations. However, in the grouped convolution case, each output channel of the layer is solely dependent on its corresponding input channel. That is, each kernel only considers information from a single output channel of the previous layer.
107
+
108
+ Therefore, we further generalize our TGM layer so that the layer combines representations from multiple input channels for each output channel while using the learned temporal kernels. We learn a set of convolutional kernels $K \in \mathop { \mathcal { R } } ^ { C _ { o u t } \times C _ { i n } \times L }$ (i.e., we learn $C _ { o u t } \cdot C _ { i n }$ Gaussian mixtures). Given $f$ which is the $C _ { i n } \times D \times T$ representation, for each output channel $i \in [ 1 , C _ { o u t } ]$ and each input channel $j \in [ 1 , C _ { i n } ]$ pair, we convolve the associated filters with the input.
109
+
110
+ $$
111
+ G _ { i , j } = ( f _ { j } * K _ { i , j } )
112
+ $$
113
+
114
+ where each $G _ { i , j }$ is a $D \times T$ -dim representation.
115
+
116
+ We then learn a 1x1 convolution followed by a ReLU activation function for each $i \in [ 1 , C _ { o u t } ]$ , which we call $w _ { i }$ , that maps from $C _ { i n }$ channels to 1 channel. The 1x1 convolution learns to combine
117
+
118
+ ![](images/aca85f15ca42c4a0cdcd7ee131a3bb28c18e0cc54f9ba616551cbb896c0860e5.jpg)
119
+ Figure 3: Illustration of a TGM layer with channel combination. The kernels are applied to each input channel, $C _ { i n }$ , and a 1x1 convolution is applied to combine the $C _ { i n }$ input channels for each output channel, $C _ { o u t }$ .
120
+
121
+ the channels from the previous layer. By design, the TGM kernel is positive and sums to 1. Adding the unconstrained 1x1 convolution adds non-linearity (using the ReLU activation function) to our layer and only adds $C _ { o u t } \cdot C _ { i n }$ parameters.
122
+
123
+ $$
124
+ s _ { i } = G _ { i } * w _ { i } = ( f _ { j } * K _ { i , j } ) * w _ { i } , \ S = [ s _ { 1 } , s _ { 2 } \ldots , s _ { C _ { o u t } } ]
125
+ $$
126
+
127
+ We then stack the $s _ { i }$ representations along the channel axis to produce $S$ , the $C _ { o u t } \times D \times T$ -dim representation. This process is illustrated in Fig. 3. This method generalizes our approach to allow the layer to take input of $C _ { i n } \times D \times T$ and produce output of $C _ { o u t } \times D \times T$ . These layers can easily be stacked to learn a hierarchical representation.
128
+
129
+ # 3.2 VIDEO CNN MODELS WITH TGM LAYERS
130
+
131
+ Our goal is to do activity detection which we define as making a per-frame (or per-segment) classification. Given a video, at each time step $t$ , we want to make the model decide which activity the frame corresponds to (including no-activity). As a baseline, we train a fully-connected layer that classifies each per-frame $D$ -dimensional vector, $v _ { t }$ . As multiple activities can occur at the same time, or no activities at all, we treat this as a mutli-label classification task. We minimize binary cross entropy:
132
+
133
+ $$
134
+ L ( v ) = \sum _ { t , c } z _ { t , c } \log ( p ( c | v _ { t } ) ) + ( 1 - z _ { t , c } ) \log ( 1 - p ( c | v _ { t } ) )
135
+ $$
136
+
137
+ where $z _ { t , c }$ is the ground truth label, 1 if activity $c$ is occurring at time $t$ and $p ( c | v _ { t } )$ is the output of our model for class $c$ at time $t$ . Fig. 4 shows an example CNN.
138
+
139
+ ![](images/cdd6c2d13bb16728b0fe94e3796a0d17a7ed1459c289733ad68ae2e40ee7b924.jpg)
140
+ Figure 4: An overview of an example video CNN model with two TGM layers. It is able to handle videos with any length, because of its fully convolutional design.
141
+
142
+ # 4 EXPERIMENTS
143
+
144
+ # 4.1 IMPLEMENTATION AND BASELINES
145
+
146
+ Implementation We used I3D (Carreira & Zisserman, 2017) and the two-stream version of InceptionV3 (Szegedy et al., 2016) pretrained on Imagenet and Kinetics as our base per-frame CNNs. Our default $L$ setting used for the TGM layers as well as the other baselines was as follows: when using I3D segment features (collected at 3fps), the 1 layer models used $L = 1 5$ and the 3 layer models used $L = 5$ . When using InceptionV3 frame feature (collected at 8fps), the 1 layer models used $L = 3 0$ and the 3 layer models used $L = 1 0$ . These layers were attached on top of the base CNN, as described in Subsection 3.2. Please check the appendix for implementation and training details and results on other datasets.
147
+
148
+ Baselines In order to confirm the advantages of our TGM layers, particularly against previous temporal models, we implemented several baselines. The first is (i) a standard per-frame classifier in which the prediction at each time-step only depends on a single feature vector with no contextual temporal information. We also used (ii) LSTMs on top of per-frame representations, which were popularly used to capture temporal information (Donahue et al., 2015). We train a bi-directional LSTM with 512 hidden units to make per-frame predictions. We also tried (iii) the fixed pyramid temporal max-pooling of level 3 (Ryoo et al., 2015). Finally, we compare our model against (iv) the model with standard temporal convolutional layers (i.e., 1-D convolution with a $D \times L$ kernel) on top of per-frame representations. This is similar to the temporal conv. used in (Tran et al., 2018). Temporal lengths (i.e., $L$ ) of the 1-D conv. filters and the pooling windows were set to be identical to the TGM filters. That is, they capture the same temporal duration as TGMs. In all our experiments, we follow the standard evaluation setting of computing per-frame mean average precision (mAP) and report those values. We also compare to different versions of the TGM layer, (v) with a learned mixture of random temporal filters and (vi) with a learned mixture of fixed Gaussians.
149
+
150
+ In addition, we also tried the approach of combining our TGM layers with the recent super-event representations (Piergiovanni & Ryoo, 2018b). We concatenated the learned super-event representation with our representations from TGM layers.
151
+
152
+ # 4.2 MULTITHUMOS
153
+
154
+ Dataset MultiTHUMOS (Yeung et al., 2015) is an extended version of the THUMOS (Jiang et al., 2014) dataset that densely annotates the continuous videos. The dataset consists of 65 different classes, compared to 20 in THUMOS, and contains on average 10.5 activities per video and 1.5 labels per frame and up to 25 activity instances in each video. This is in contrast to many other activity detection dataset such as ActivityNet (Heilbron et al., 2015), which only has on average ${ \sim } 1$ activity per video. MultiTHUMOS consists of YouTube videos of various sport activities such as basketball games, volleyball games, weight lifting, and track and field.
155
+
156
+ We followed the standard MultiTHUMOS evaluation setting of measuring mAP based on per-frame annotations. There are 1010 validation videos and 1574 test videos. We used these continuous validation videos for the training of our models. We did not need to take advantage of the separate training set with segmented videos; even without them, we outperformed the state-of-the-arts.
157
+
158
+ Results We compared baselines as well as multiple different versions of our architectures, shown in Table 1. The model with our TGM layers consistently outperformed baseline I3D (or InceptionV3) while using the same per-segment representations. Learning 3 TGM layers further improved the performances. On the other hand, we found that stacking multiple standard temporal convolutional layers does not improve performance, often performing worse than the baseline. While a single standard temporal conv. layer improves over the baseline, having multiple of them significantly increases the number of parameters to learn (Table 2) and we suspect that this was causing the overfitting with the limited amount of samples in the dataset. In Table 3, we compare the results of using a LSTM or temporal conv. with a similar number of parameters. This was done by making their temporal conv. filters to share values across multiple channels. These models result in nearly random performance, as they were not designed to cope with a small number of parameters. We also show results with a mixture of random (fixed) temporal filters and with a mixture of fixed Gaussians. These results confirm that (i) modeling the temporal structure as a learned Gaussian mixture is beneficial and that (ii) further learning the Gaussian distribution parameters is important.
159
+
160
+ Table 1: Comparison of various architectures on MultiTHUMOS using both I3D per-segment and InceptionV3 per-frame features. We found that TGM layers with 1x1 convolution channel combination performed the best. Results are in mAP $\%$ . Note that we use the same filter length for “Temporal Conv” and “TGM” models, as described in Section 4.1.
161
+
162
+ <table><tr><td rowspan="2"></td><td colspan="3">13D</td><td colspan="3">InceptionV3</td></tr><tr><td>Spatial</td><td>Temporal</td><td>Two-Stream</td><td>Spatial</td><td>Temporal</td><td>Two-Stream</td></tr><tr><td>Baseline</td><td>22.3</td><td>25.0</td><td>29.7</td><td>13.6</td><td>14.1</td><td>15.2</td></tr><tr><td>Temporal Conv</td><td>32.5</td><td>35.5</td><td>38.4</td><td>15.2</td><td>15.5</td><td>15.8</td></tr><tr><td>3 Temporal Conv</td><td>20.4</td><td>23.4</td><td>24.4</td><td>5.3</td><td>6.1</td><td>6.5</td></tr><tr><td colspan="7">TGM layers with grouped convolution</td></tr><tr><td>1 TGM</td><td>35.1</td><td>37.8</td><td>40.5</td><td>16.3</td><td>17.5</td><td>18.0</td></tr><tr><td>3 TGM</td><td>36.4</td><td>42.3</td><td>43.5</td><td>17.5</td><td>18.3</td><td>19.2</td></tr><tr><td colspan="7">TGM layers with channel combination</td></tr><tr><td>1 TGM (soft)</td><td>35.2</td><td>37.9</td><td>40.2</td><td>17.2</td><td>17.6</td><td>18.4</td></tr><tr><td>1 TGM (1x1)</td><td>36.1</td><td>38.2</td><td>40.8</td><td>17.2</td><td>17.7</td><td>18.4</td></tr><tr><td>3 TGM (soft)</td><td>36.2</td><td>40.1</td><td>42.3</td><td>17.5</td><td>19.1</td><td>21.2</td></tr><tr><td>3 TGM (1x1)</td><td>37.2</td><td>42.1</td><td>44.3</td><td>17.9</td><td>19.3</td><td>22.2</td></tr></table>
163
+
164
+ Table 2: Additional number of parameters for models when added to the base architecture (e.g., I3D or Inception V3).
165
+
166
+ <table><tr><td>Model</td><td> # of parameters</td></tr><tr><td>LSTM</td><td>10.5M</td></tr><tr><td>1 Temporal Conv</td><td>10.5M</td></tr><tr><td>3 Temporal Conv</td><td>31.5M</td></tr><tr><td>1 TGM Layer</td><td>10K</td></tr><tr><td>3 TGMLayers</td><td>100K</td></tr></table>
167
+
168
+ Table 3: Comparison of previous methods with comparable number of parameters and random forms of our TGM layer.
169
+
170
+ <table><tr><td>Model</td><td>mAP</td></tr><tr><td>LSTM with 100k parameters</td><td>6.5</td></tr><tr><td>Temporal Conv. with 1OOk parameters</td><td>7.3</td></tr><tr><td>TGM with random temporal filters</td><td>34.5</td></tr><tr><td>TGM with fixed Gaussians</td><td>38.5</td></tr><tr><td>Full TGM</td><td>44.3</td></tr></table>
171
+
172
+ Learning multiple TGM layers with channel combination outperforms the grouped convolution version of TGM and all the baselines. We also experimented with a version using soft-attention weights to combine the TGM layer channels, in addition to our method (Fig. 3) of using 1x1 convolution followed by a ReLU (to gain non-linearity). We found that the 1x1 convolution performed better. We tested various number of Gaussian mixtures (i.e., output channels) and found that using 80 for the first and second layer and using 65 (i.e., number of classes) for the final layer performs best.
173
+
174
+ Table 4 compares our model using TGM layers with multiple previous state-of-the-art approaches and baselines such as LSTM. Our approach meaningfully outperforms all previous approaches. Importantly, we are comparing our approach with different methods of capturing temporal information such as LSTMs and fixed temporal pyramid pooling while making them use the exactly same per-frame representations. We found that while all these methods capture some temporal information, the TGM layers provide the best performance. Further, combining the super-event representation (Piergiovanni & Ryoo, 2018b) with our TGM feature also benefited detection, confirming that our TGMs and super-events capture different aspects of the activity videos. In Fig. 5, we show an example of the various models predictions on a basketball video. We outperform the previous state-of-the-art performance (mAP) by $10 \%$ (36.4 vs. 46.4).
175
+
176
+ # 4.3 CHARADES
177
+
178
+ Dataset Charades (Sigurdsson et al., 2016b) is a large scale dataset with 9848 videos across 157 activity classes. These videos were recorded in home environments of the participants based on provided scripts. Each video contains on an average of 6.8 activity instances, and there are often complex activities co-occurring. The activities were mainly performed at home. For example, some activity classes are ‘preparing a meal’, ‘eating’, ‘sitting’, ‘cleaning’, etc.
179
+
180
+ In our experiments, we follow the original Charades detection setting (i.e., Charades v1 localize evaluation), which is the setting used in many previous approaches (Sigurdsson et al., 2016a; Xu
181
+
182
+ ![](images/c0d256bcd8222f7ad03ebc79eb263ced37551f8c7850c775d1e2e262f032da84.jpg)
183
+ Figure 5: Illustration of the temporal regions classified as various basketball activities from a basketball game video in MultiTHUMOS. Our TGM layers greatly improve performance.
184
+
185
+ Table 4: Performances of the state-of-the-art methods and our approach on MultiTHUMOS. Our approach meaningfully outperforms all previous results.
186
+
187
+ <table><tr><td></td><td>mAP</td></tr><tr><td>Two-stream (Yeung et al., 2015)</td><td>27.6</td></tr><tr><td>Two-stream + LSTM (Yeung et al., 2015)</td><td>28.1</td></tr><tr><td>Multi-LSTM (Yeung et al., 2015)</td><td>29.6</td></tr><tr><td>Predictive-corrective (Dave et al., 2017)</td><td>29.7</td></tr><tr><td>I3D baseline</td><td>29.7</td></tr><tr><td>I3D+LSTM</td><td>29.9</td></tr><tr><td>I3D + temporal pyramid</td><td>31.2</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo, 2018b)</td><td>36.4</td></tr><tr><td>I3D+our TGMs</td><td>44.3</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo,2018b) + our TGMs</td><td>46.4</td></tr></table>
188
+
189
+ et al., 2017; Piergiovanni & Ryoo, 2018b). This is the original setting more challenging than the Charades Challenge 2017 setting (whose evaluation server was no longer approving new account access), in the aspect that it uses less amount of training videos.
190
+
191
+ Results We compare our results with the state-of-the-arts in Table 5. To our knowledge, our method is obtaining the best known performance in the original localization setting of the Charades dataset. Notably, it is performing better than I3D that obtained the best competition performance, while using the same feature. Our method also outperforms standard temporal convolution, LSTMs, and fixed pyramid pooling, as well as the use of latent super-events. When setting $L = 3 0$ and using 3 TGM layers, our model is able to capture around 800 frames (about $\pm 1 5$ seconds from each frame) of temporal information, significantly more than previous works (e.g., I3D only captures $\pm 2$ seconds).
192
+
193
+ # 5 CONCLUSIONS
194
+
195
+ We newly introduced the Temporal Gaussian Mixture (TGM) layer and demonstrated its effectiveness for multi-activity detection in continuous videos. Our layer is fully differentiable and trainable using standard backpropagation, designed to learn temporal structure. We were able to confirm that our layer performs superior to state-of-the-art methods on activity detection datasets including MultiTHUMOS and Charades, obtaining the best known performance. We also tested our approach with two more public video datasets, MLB-YouTube (Piergiovanni & Ryoo, 2018a) and AVA (Gu et al., 2017), and confirmed its advantage over the previous works in Appendix.
196
+
197
+ # REFERENCES
198
+
199
+ J. K. Aggarwal and M. S. Ryoo. Human activity analysis: A review. ACM Computing Surveys, 43: 16:1–16:43, April 2011.
200
+
201
+ Table 5: Per-frame mAP on Charades, evaluated with the ‘Charades v1 localize’ setting. I3D models are two-stream, using both RGB and optical flow inputs.
202
+
203
+ <table><tr><td></td><td>mAP</td></tr><tr><td>Predictive-corrective (Dave et al., 2017) Two-stream (Sigurdsson et al., 2016a) Two-stream+LSTM (Sigurdsson et al., 2016a)</td><td>8.9 8.94 9.6</td></tr><tr><td>R-C3D (Xu et al., 2017) Sigurdsson et al. (Sigurdsson et al., 2016a)</td><td>12.7 12.8</td></tr><tr><td>I3D baseline</td><td>17.2</td></tr><tr><td>I3D + 3 temporal conv.layers (L = 5) I3D + 3 temporal conv. layers (L = 30)</td><td>17.5</td></tr><tr><td>I3D +LSTM</td><td>12.5</td></tr><tr><td>I3D + fixed temporal pyramid</td><td>18.1</td></tr><tr><td></td><td>18.2</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo,2018b)</td><td>19.4</td></tr><tr><td>I3D +3 TGMs (L = 5)</td><td></td></tr><tr><td></td><td>20.6</td></tr><tr><td>I3D +3 TGMs (L = 30)</td><td>21.5</td></tr><tr><td>I3D +3 TGMs (L = 5) + super-events</td><td>21.8</td></tr><tr><td>I3D +3 TGMs (L = 3O) + super-events</td><td>22.3</td></tr></table>
204
+
205
+ Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
206
+
207
+ Achal Dave, Olga Russakovsky, and Deva Ramanan. Predictive-corrective networks for action detection. arXiv preprint arXiv:1704.03615, 2017.
208
+
209
+ Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2625–2634, 2015.
210
+
211
+ Victor Escorcia, Fabian Caba Heilbron, Juan Carlos Niebles, and Bernard Ghanem. Daps: Deep action proposals for action understanding. In Proceedings of European Conference on Computer Vision (ECCV), pp. 768–784. Springer, 2016.
212
+
213
+ Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016.
214
+
215
+ Chunhui Gu, Chen Sun, Sudheendra Vijayanarasimhan, Caroline Pantofaru, David A. Ross, George Toderici, Yeqing Li, Susanna Ricco, Rahul Sukthankar, Cordelia Schmid, and Jitendra Malik. AVA: A video dataset of spatio-temporally localized atomic visual actions. arXiv preprint arXiv:1705.08421, 2017.
216
+
217
+ Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Learning spatio-temporal features with 3d residual networks for action recognition. In Proceedings of the ICCV Workshop on Action, Gesture, and Emotion Recognition, volume 2, pp. 4, 2017.
218
+
219
+ Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 961–970, 2015.
220
+
221
+ Y.-G. Jiang, J. Liu, A. Roshan Zamir, G. Toderici, I. Laptev, M. Shah, and R. Sukthankar. THUMOS challenge: Action recognition with a large number of classes. http://crcv.ucf.edu/THUMOS14/, 2014.
222
+
223
+ Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li FeiFei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1725–1732, 2014.
224
+
225
+ Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017.
226
+
227
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
228
+
229
+ Joe Yue-Hei $\mathrm { N g }$ , Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4694– 4702. IEEE, 2015.
230
+
231
+ AJ Piergiovanni and Michael S. Ryoo. Fine-grained activity recognition in baseball videos. In CVPR Workshop on Computer Vision in Sports, 2018a.
232
+
233
+ AJ Piergiovanni and Michael S. Ryoo. Learning latent super-events to detect multiple activities in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018b.
234
+
235
+ AJ Piergiovanni, Chenyou Fan, and Michael S Ryoo. Learning latent sub-events in activity videos using temporal attention filters. In Proceedings of the American Association for Artificial Intelligence (AAAI), 2017.
236
+
237
+ Michael S Ryoo, Brandon Rothrock, and Larry Matthies. Pooled motion features for first-person videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 896–904, 2015.
238
+
239
+ Zheng Shou, Dongang Wang, and Shih-Fu Chang. Temporal action localization in untrimmed videos via multi-stage cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1049–1058, 2016.
240
+
241
+ Zheng Shou, Jonathan Chan, Alireza Zareian, Kazuyuki Miyazawa, and Shih-Fu Chang. Cdc: Convolutional-de-convolutional networks for precise temporal action localization in untrimmed videos. arXiv preprint arXiv:1703.01515, 2017.
242
+
243
+ Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. arXiv preprint arXiv:1612.06371, 2016a.
244
+
245
+ Gunnar A. Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. ¨ Hollywood in homes: Crowdsourcing data collection for activity understanding. In Proceedings of European Conference on Computer Vision (ECCV), 2016b.
246
+
247
+ Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NIPS), pp. 568–576, 2014.
248
+
249
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
250
+
251
+ Du Tran, Lubomir D Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. C3d: generic features for video analysis. CoRR, abs/1412.0767, 2(7):8, 2014.
252
+
253
+ Du Tran, Jamie Ray, Zheng Shou, Shih-Fu Chang, and Manohar Paluri. Convnet architecture search for spatiotemporal feature learning. arXiv preprint arXiv:1708.05038, 2017.
254
+
255
+ Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018.
256
+
257
+ Ehsan Variani, Erik McDermott, and Georg Heigold. A gaussian mixture model layer jointly optimized with discriminative features within a deep neural network architecture. In Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on, pp. 4270– 4274. IEEE, 2015.
258
+
259
+ Gul Varol, Ivan Laptev, and Cordelia Schmid. Long-term Temporal Convolutions for Action Recog- ¨ nition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017.
260
+ Huijuan Xu, Abir Das, and Kate Saenko. R-c3d: Region convolutional 3d network for temporal activity detection. arXiv preprint arXiv:1703.07814, 2017.
261
+ Serena Yeung, Olga Russakovsky, Ning Jin, Mykhaylo Andriluka, Greg Mori, and Li Fei-Fei. Every moment counts: Dense detailed labeling of actions in complex videos. International Journal of Computer Vision (IJCV), pp. 1–15, 2015.
262
+ Serena Yeung, Olga Russakovsky, Greg Mori, and Li Fei-Fei. End-to-end learning of action detection from frame glimpses in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2678–2687, 2016.
263
+ Christopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007.
264
+ Yue Zhao, Yuanjun Xiong, Limin Wang, Zhirong Wu, Xiaoou Tang, and Dahua Lin. Temporal action detection with structured segment networks. arXiv preprint arXiv:1704.06228, 2017.
265
+
266
+ # A IMPLEMENTATION DETAILS
267
+
268
+ As our base per-segment CNN, we use the I3D (Carreira & Zisserman, 2017) network pretrained on the ImageNet and Kinetics (Kay et al., 2017) datasets. I3D obtained state-of-the-art results on segmented video tasks, and this allows us to obtain reliable $v _ { t }$ . We also use two-stream version of InceptionV3 (Szegedy et al., 2016) pretrained on Imagenet and Kinetics as our base per-frame CNN, and compared them. We chose InceptionV3 as it is deeper than previous two-stream CNNs such as (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016). We extracted frames from the videos at 25 fps, computed TVL1 (Zach et al., 2007) optical flow, clipped to $[ - 2 0 , 2 0 ]$ . For InceptionV3, we computed features for every 3 frames (8 fps). For I3D, every frame was used as the input. I3D has a temporal stride of 8, resulting in 3 features per second (3 fps).
269
+
270
+ We implemented our TGM layers as well as other baseline layers in PyTorch. Our default setting was as follows: for 3-layer models, we set $L = 1 0$ for frame-based features (i.e., InceptionV3) and $L = 5$ for segment-based features (i.e., I3D), as each segment already contains some temporal information. For 1-layer models, we set $L = 3 0$ for frame-based features and $L = 1 5$ for segmentbased features. We set $M = 1 6$ and $C _ { o u t } = 8 0 $ and $C _ { o u t } = 6 5$ for the last TGM layer. We found these values to work well on a held out portion of the training set of MultiTHUMOS. In all models, we used one fully-connected layer at the end to make the per-frame or per-segment classification.
271
+
272
+ We trained our models using the Adam (Kingma & Ba, 2014) optimizer with the learning rate set to 0.01. We decayed the learning rate by a factor of 10 after every 10 training epochs. We trained our models for 50 epochs. We plan to make all our source code and trained models publicly available once the paper is published.
273
+
274
+ # B HYPERPARAMETER EXPERIMENTS
275
+
276
+ We conducted a set of experiments to compare the effects of the temporal duration, $L$ , number of Gaussians, $M$ , and the number of output channels, $C _ { o u t }$ . For these experiments, we only used the one-stream version of I3D with RGB inputs.
277
+
278
+ Effect of $L$ : In Table 6, we compare different values of $L$ . For these experiments, we use $M = 1 6$ and $C _ { o u t } = 1 6$ . We find that the 3-layer model with $L = 5$ performs the best. With I3D features, this allows the model to capture up to 8 seconds of information. The average activity in MultiTHUMOS is 3.3 seconds long and the maximum is 14.7 seconds long, and with this setting, the model is able to capture enough temporal context to perform well. Larger values of $L$ capture too much temporal information, but due to the Gaussian structure, it does not drastically harm performance. Figure 6 shows that even with longer kernels, the Gaussians learn to focus mostly on the center of the interval and capture the rough duration of the activities. Thus, having too long intervals does not drastically harm performance, which is in contrast to the standard 1-D convolution. Note that for Charades, the temporal kernels are learned to capture much longer temporal duration, as the average activity in charades is 12.8 seconds and larger values of $L$ perform better.
279
+
280
+ Figure 6 illustrates examples of the learned TGM kernels of various lengths. The figure shows that the kernels focus on short temporal intervals on MultiTHUMOS even if we make the filters longer, as the activities are an average of 3.3 seconds long. On Charades, the TGM kernels learn to capture much longer intervals, as the activities are an average of 12.8 seconds long. We believe that this suggests TGMs are learning to capture information from the important necessary intervals.
281
+
282
+ In Table 6, we also report the results of using a standard 1-D conv. layer with different $L$ values. The number of parameters in our TGM layer is independent of $L$ , however, with the standard 1-D conv. layer, the number of parameters increases as $L$ increases. We find that increasing $L$ with 1-D convolution helps for small values of $L$ , but for $L > 1 5$ , the performance drastically drops, while TGM layers only show a small decrease.
283
+
284
+ Effect of $M$ : In Table 7, we compare different values of $M$ . For these experiments, we set $L = 1 5$ and $C _ { o u t } = 1 6$ . We find that $M = 1 6$ performs best, suggesting that smaller values of $M$ restrict the possible temporal kernels too much. We also observe that larger values of $M$ performs slightly worse than $M = 1 6$ (but not much), likely because they introduce more parameters than needed. When $M$ and $L$ have similar values, it allows the model to learn a sufficient number of Gaussians and create a diverse range of temporal kernels. When $M$ is larger than $L$ , it results in learning a kernel similar to standard 1-D convolution.
285
+
286
+ Table 6: Effect of $L$ on MultiTHUMOS and Charades using only RGB I3D features. Note that the 3 TGM layer models have larger temporal resolution than the 1 TGM layer models for the same values of $L$ . We also compare to using standard one-layer 1-D conv layer with different values of $L$ .
287
+
288
+ <table><tr><td rowspan="2"></td><td colspan="3">MultiTHUMOS</td><td colspan="3">Charades</td></tr><tr><td>1 Layer</td><td>3 Layers</td><td>1-D Conv</td><td>1 Layer</td><td>3 Layers</td><td>1-D Conv</td></tr><tr><td>I3DBaseline</td><td>22.3</td><td>=</td><td>=</td><td>15.3</td><td>=</td><td>=</td></tr><tr><td>L=3</td><td>30.2</td><td>31.7</td><td>26.6</td><td>15.5</td><td>16.1</td><td>15.5</td></tr><tr><td>L=5</td><td>32.5</td><td>37.2</td><td>28.3</td><td>15.7</td><td>17.8</td><td>16.3</td></tr><tr><td>L=10</td><td>34.5</td><td>35.4</td><td>31.7</td><td>16.1</td><td>18.2</td><td>16.6</td></tr><tr><td>L=15</td><td>36.1</td><td>34.1</td><td>32.5</td><td>17.5</td><td>18.6</td><td>16.8</td></tr><tr><td>L=30</td><td>32.5</td><td>33.9</td><td>26.5</td><td>18.1</td><td>18.9</td><td>12.1</td></tr><tr><td>L= 50</td><td>32.1</td><td>33.7</td><td>15.4</td><td>18.3</td><td>18.8</td><td>6.7</td></tr></table>
289
+
290
+ Table 7: Comparison of various values of $M$ on MultiTHUMOS and Charades using RGB I3D features. For these experiments, 1 layer was used with $L = 1 5$ and $C _ { o u t } = 1 6$ .
291
+
292
+ <table><tr><td></td><td>MultiTHUMOS</td><td>Charades</td></tr><tr><td>M=2</td><td>27.8</td><td>15.5</td></tr><tr><td>M=4</td><td>33.1</td><td>16.2</td></tr><tr><td>M=8</td><td>34.8</td><td>17.5</td></tr><tr><td>M=16</td><td>36.1</td><td>17.5</td></tr><tr><td>M= 32</td><td>35.7</td><td>17.1</td></tr><tr><td>M= 64</td><td>35.8</td><td>17.3</td></tr></table>
293
+
294
+ Table 8: Comparison of values of $C _ { o u t }$ on MultiTHUMOS and Charades using RGB I3D features. For these experiments, 1 layer was used with $L = 1 5$ and $M = 1 6$ .
295
+
296
+ <table><tr><td></td><td>MultiTHUMOS</td><td>Charades</td></tr><tr><td>Cout 1</td><td>33.5</td><td>16.2</td></tr><tr><td>Cout 4</td><td>34.2</td><td>17.4</td></tr><tr><td>Cout 8</td><td>35.5</td><td>17.5</td></tr><tr><td>Cout 16</td><td>36.1</td><td>17.5</td></tr><tr><td>Cout 32</td><td>36.0</td><td>17.2</td></tr><tr><td>Cout 64</td><td>36.1</td><td>17.4</td></tr><tr><td>Cout = 80</td><td>36.1</td><td>17.5</td></tr></table>
297
+
298
+ Effect of $C _ { o u t }$ : In Table 8, we compare different values of $C _ { o u t }$ . For these experiments, $L =$ 15, we used 1-layer and $M = 1 6$ . We find that $C _ { o u t }$ performs best when set to 16 or larger on these datasets. Larger values of $C _ { o u t }$ seem to capture redundant information, as it does not lower performance.
299
+
300
+ ![](images/744a3159af7040ba3ca43621d47d5b12f250bda0c5cfd68bf678d41847d83116.jpg)
301
+ Figure 6: Illustration of several learned TGM kernels. On MultiTHUMOS, it learns to focus on shorter intervals to capture shorter events. On Charades, the Gaussians have a larger $\sigma$ value, resulting in filters that attend to longer temporal durations.
302
+
303
+ ![](images/b998f17e5d56ec0eab5405aa1323e9b9a726ecf049f10c25969a91979fea53b8.jpg)
304
+ Figure 7: (a-c) Different forms of 1-D temporal convolutions which take a $D \times T$ input and produces a $C \times T$ output based on $C$ number of $D \times L$ kernels: (a) the standard 1-D convolution, $\mathbf { ( b ) }$ using Gaussian mixtures for 1-D convolution while sharing Gaussian mixtures across input channels, and (c) using $D$ different Gaussian mixtures for 1-D convolution. (d) Our TGM layer in its simplest form (i.e., 1-layer case) applying the $1 \times L$ temporal kernel in a 2-D convolutional fashion, maintaining both time and feature axis.
305
+
306
+ ![](images/1a1a1342d875bc0c72fde175610ed02c50531ca14855a426d92b84f4adcfae2a.jpg)
307
+ Figure 8: A temporal convolutional layer with channel combination similar to Fig. 3. The difference is that this layer does not learn Gaussian mixtures, but unconstrained 1-D temporal kernels.
308
+
309
+ # C COMPARISON OF DIFFERENT LAYER FORMS
310
+
311
+ To confirm the various aspects of our design, we conducted experiments comparing different types of temporal convolution. In Fig. 7a we illustrate the standard 1-D convolution, taking $D \times T$ input and producing a $C \times T$ output, where $D$ is the number of input channels and $C$ is the number of output channels. In Fig. 7b, we illustrate the method of applying a Gaussian mixture kernel as 1-D convolution. Here, the Gaussian mixture kernel is shared by all $D$ input channels and we learn a $C$ number of such kernels. In Fig. 7c, we illustrate the approach of applying a Gaussian mixture kernel as 1-D convolution while learning $D$ different Gaussian mixtures. This is very similar to the standard 1-D convolution, except that the filter values are constrained to have the shape of Gaussian mixtures.
312
+
313
+ Fig. 8 illustrates one more baseline. This is similar to our full TGM layer with the channelcombination described Fig. 3. However, in this baseline, instead of learning Gaussian mixtures, we learn $C _ { i n } \cdot C _ { o u t }$ number of $1 \times L$ kernels. The kernel values are left unconstrained. While the TGM layer has $2 \cdot M + C _ { i n } \cdot C _ { o u t } \cdot M + C _ { i n } \cdot C _ { o u t }$ parameters, this layer has $L \cdot C _ { i n } \cdot C _ { o u t } \cdot M + C _ { i n } \cdot C _ { o u t }$ , which is more than the TGM layer.
314
+
315
+ In Table 9, we compare the results of the various above-mentioned layers on MultiTHUMOS using RGB I3D features. We find that the Fig. 7b method performs poorly, while the Fig. 7c method slightly outperforms the standard 1-D convolution. The Fig. 8 method is slightly better than the standard 1-D convolution, but performs worse than Fig. 7c. However, none of these layers perform as well as our TGM layer, confirming that both the design of learning Gaussian mixtures and maintaining temporal channel axis are important for activity detection.
316
+
317
+ Table 9: Comparison of the different forms of temporal convolution on MultiTHUMOS using RGB I3D features. We set $L = 1 5$ and used 1 layer models for these experiments.
318
+
319
+ <table><tr><td></td><td>MultiTHUMOS</td></tr><tr><td>Standard 1-D Convolution (Fig. 7a)</td><td>32.5</td></tr><tr><td>The layer described in Fig.7b</td><td>28.6</td></tr><tr><td>The layer described in Fig. 7c</td><td>33.2</td></tr><tr><td>The layer described in Fig. 8</td><td>32.8</td></tr><tr><td>Our TGM Layer</td><td>36.1</td></tr></table>
320
+
321
+ ![](images/99b2898871e544d67d45bf16b97e65b0e77b16df16b200a2ad0c06f579924c1f.jpg)
322
+ Figure 9: Examples of several of the activities in the MLB-YouTube dataset: (a) Pitch, (b) Hit, (c) Bunt, (d) Hit by pitch, (e) No activity. This shows the difficulty of this dataset, as the difference between hit and bunt, swing and no swing are very small.
323
+
324
+ # D EXPERIMENTS ON ADDITIONAL DATASETS
325
+
326
+ # D.1 MLB-YOUTUBE DATASET
327
+
328
+ # D.1.1 DATASET
329
+
330
+ The MLB-YouTube dataset (Piergiovanni & Ryoo, 2018a) consists of 20 baseball games from the 2017 MLB post-season available on YouTube. This dataset consists of over 42 hours of video. For these experiments, we used the continuous video setting which have 2,126 1-2 minute long clips. Each clip is densely annotated with the baseball activities that occur. There are 8 activity classes: pitch, strike, ball, swing, hit, foul, hit by pitch, and bunt. Examples of some of these classes are shown in Fig. 9. Each continuous clip contains on average of 7.2 activities, giving a total of over 15,000 activity instances in the dataset.
331
+
332
+ What makes this dataset challenging is that the variation between classes is very small. In ActivityNet (Heilbron et al., 2015), for example, the difference between swimming and brushing hair is drastic. The background, motion, and even size of the person in the video is different. However, in broadcast baseball videos, the difference between a ball and a strike, or a swing and a bunt, are small. All actions are recorded from the same camera angle as we can confirm from Fig. 9.
333
+
334
+ # D.1.2 RESULTS
335
+
336
+ In Table 10, we compare various approaches on this dataset. Our TGM layers improve over the baseline by ${ \sim } 6 \%$ (40.1 vs. 34.2). Additionally, we compare to methods using the super-event representation (Piergiovanni & Ryoo, 2018b), which previously achieved state-of-the-art performance on several activity detection datasets. On this dataset, our approach outperforms the super-event representation, and further the concatenation of our TGM representation with such super-event representation performs best by a significant margin $\sim 1 3 \%$ compared to the baseline). This suggests that TGMs and super-event capture different temporal information and are both useful to the detection task.
337
+
338
+ We further find that using multiple, standard temporal convolution layers leads to worse performance, likely due to overfitting from the large number of parameters. While using multiple TGM layers improves performance, confirming that the Gaussian structure and sparsity constraint benefits model learning.
339
+
340
+ Table 10: Result mAP on the MLB-YouTube dataset using InceptionV3 and I3D to obtain features. Our TGM layers significantly outperform the baseline models.
341
+
342
+ <table><tr><td>Model</td><td>Spatial</td><td>Temporal</td><td>Two-stream</td></tr><tr><td>Random</td><td>13.4</td><td>13.4</td><td>13.4</td></tr><tr><td>InceptionV3</td><td>31.2</td><td>31.8</td><td>31.9</td></tr><tr><td>InceptionV3 +LSTM</td><td>32.1</td><td>33.5</td><td>34.1</td></tr><tr><td>InceptionV3 +1 temporal conv</td><td>32.8</td><td>34.4</td><td>35.2</td></tr><tr><td>InceptionV3 + 3 temporal conv</td><td>28.4</td><td>29.8</td><td>30.1</td></tr><tr><td>InceptionV3 + super-events</td><td>31.5</td><td>36.2</td><td>39.6</td></tr><tr><td>InceptionV3 +1TGM</td><td>32.4</td><td>36.3</td><td>37.4</td></tr><tr><td>InceptionV3+3 TGM</td><td>33.2</td><td>38.2</td><td>38.2</td></tr><tr><td>InceptionV3 + 3 TGM+super-events</td><td>34.6</td><td>42.4</td><td>42.9</td></tr><tr><td>I3D</td><td>33.8</td><td>35.1</td><td>34.2</td></tr><tr><td>I3D + LSTM</td><td>36.2</td><td>37.3</td><td>39.4</td></tr><tr><td>I3D +1 temporal conv</td><td>37.3</td><td>38.6</td><td>39.9</td></tr><tr><td>I3D + 3 temporal conv</td><td>32.4</td><td>34.6</td><td>35.6</td></tr><tr><td>I3D + super-events</td><td>38.7</td><td>38.6</td><td>39.1</td></tr><tr><td>I3D+1TGM</td><td>35.5</td><td>37.5</td><td>38.5</td></tr><tr><td>I3D+3 TGM</td><td>36.5</td><td>38.4</td><td>40.1</td></tr><tr><td>I3D +3 TGM+super-events</td><td>39.4</td><td>46.0</td><td>47.1</td></tr></table>
343
+
344
+ Table 11: Results on AVA dataset with the temporal annotation-only setting (i.e., frame classification without using bounding box training labels).
345
+
346
+ <table><tr><td></td><td>mAP</td></tr><tr><td>Random</td><td>2.65</td></tr><tr><td>I3D baseline</td><td>7.5</td></tr><tr><td>I3D + 3 temporal conv. layers</td><td>7.9</td></tr><tr><td>I3D+LSTM</td><td>7.8</td></tr><tr><td>I3D + super-events(Piergiovanni &amp; Ryoo,2018b)</td><td>9.8</td></tr><tr><td>I3D+1TGMs</td><td>11.2</td></tr><tr><td>I3D +3 TGMs</td><td>14.5</td></tr><tr><td>I3D +3 TGMs + super-events</td><td>14.9</td></tr></table>
347
+
348
+ # D.2 AVA
349
+
350
+ # D.2.1 DATASET
351
+
352
+ AVA (Gu et al., 2017) is a large-scale video dataset containing of 80 atomic action classes in $5 7 \mathrm { k }$ video clips. These clips are drawn from movies. Existing datasets, such as Charades, have very specific actions that depend on objects, such as holding a cup vs. holding a picture. In AVA, the actions are intentionally generic, such as sit, stand, hold, carry, etc. Further, the AVA dataset is annotated with both spatial and temporal locations of activities. Since we are interested in temporal activity detection, we follow the setting of Piergiovanni & Ryoo (2018b) and label each frame with the occurring activities while ignoring the spatial location. We evaluate performance following the same method as MultiTHUMOS, Charades and MLB-YouTube by measuring per-frame mAP.
353
+
354
+ # D.2.2 RESULTS
355
+
356
+ In Table 11, we present the results of our model. We again find that temporal convolution and LSTMs provide some benefit over the baseline, but TGM layers further improve performance. Again, combining the TGM, which captures local temporal structure, with super-events which capture global temporal structure, provides the best performance by $\sim 7 . 4 \%$ .
parse/train/Hyfg5o0qtm/Hyfg5o0qtm_content_list.json ADDED
@@ -0,0 +1,1829 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TEMPORAL GAUSSIAN MIXTURE LAYER FOR VIDEOS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 816,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 400,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 209,
32
+ 544,
33
+ 224
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer and present how it can be used to efficiently capture longer-term temporal information in continuous activity videos. The TGM layer is a temporal convolutional layer governed by a much smaller set of parameters (e.g., location/variance of Gaussians) that are fully differentiable. We present our fully convolutional video models with multiple TGM layers for activity detection. The experiments on multiple datasets including Charades and MultiTHUMOS confirm the effectiveness of TGM layers, outperforming the state-of-the-arts. ",
40
+ "bbox": [
41
+ 232,
42
+ 243,
43
+ 764,
44
+ 352
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 385,
55
+ 334,
56
+ 400
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Activity videos are spatio-temporal data: they are image frames with a specific width/height (XY) concatenated along time axis (T). Recognition from such videos requires capturing both spatial and temporal information in the videos, desirably using learned convolutional kernels. Temporal convolution is particularly beneficial in activity ‘detection’ tasks, which require making activity decisions at every frame given a continuous video (Sigurdsson et al., 2016b; Yeung et al., 2015). Previous methods investigated using 3-D XYT convolutional filters (Tran et al., 2014; Carreira & Zisserman, 2017) as well as the models with 2-D XY conv. layers followed by 1-D temporal conv. (Tran et al., 2018), pooling or attention layers (Piergiovanni et al., 2017). ",
63
+ "bbox": [
64
+ 174,
65
+ 417,
66
+ 823,
67
+ 527
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Understanding complex multi-activity videos requires capturing information in long-term time intervals. Different frames contain different information, and the model needs to learn to take advantage of as many frames as possible, while abstracting them efficiently. Previous attempts of simply pooling representations over time or learning temporal conv. filters with a small number of frames (e.g., 16 or 64) was thus often insufficient to fully consider rich long-term temporal context. Simultaneously, bruteforcely increasing the temporal filter length (to look at more frames) results more learnable parameters, requiring more training data, which can be expensive when activities are rare. ",
74
+ "bbox": [
75
+ 174,
76
+ 534,
77
+ 823,
78
+ 630
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer, and present how it can be used to efficiently capture longer-term temporal information in activity videos. Our temporal Gaussian mixture layer is a temporal convolutional layer, whose filters/kernels are controlled by a set of (temporal) Gaussian distribution parameters. Each of our temporal Gaussian distributions specify (temporally) ‘where’ the model should look, and our Gaussian mixture layer combines them as multiple convolutional filters to be applied on top of temporallycontinuous representations. This layer allows the video representation at each time step to be constructed while focusing on different neighboring temporal regions, instead of only focusing on its local segment. It is a convolutional layer governed by a much smaller set of parameters (i.e., locations/variances of the Gaussians as well as their mixture weights) that are fully differentiable. ",
85
+ "bbox": [
86
+ 174,
87
+ 636,
88
+ 823,
89
+ 772
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The motivation behind our temporal Gaussian mixture layer is to learn the temporal structure of an activity as a composition of temporal Gaussian regions/attentions. Such structure allows the model to obtain a compact spatio-temporal representation abstracting each (long-term) time interval, using multiple temporal conv. layers with far fewer parameters. It is also related to the previous temporal attention works (Piergiovanni et al., 2017), but our model is designed to be fully convolutional to handle continuous data and it learns more compositional structures with multiple layers. ",
96
+ "bbox": [
97
+ 174,
98
+ 780,
99
+ 823,
100
+ 861
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We present video-CNN models using our TGM layers for activity detection in continuous videos. Our model stacks TGM layers on top of several state-of-the-art CNNs such as I3D (Carreira & Zisserman, 2017). This enables our model to capture longer-term temporal information than what we use as base CNNs, compositionally modeling temporal structure with multiple TGM layers. Our model was evaluated on multiple public datasets including MultiTHUMOS and Charades, and was able to outperform the best previous activity detection CNNs by a meaningful margin. ",
107
+ "bbox": [
108
+ 176,
109
+ 868,
110
+ 823,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 171,
120
+ 103,
121
+ 823,
122
+ 132
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 RELATED WORKS ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 151,
133
+ 354,
134
+ 167
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Learning video representations for human activity recognition has been successful. CNN methods allow end-to-end learning of video features and representations optimized for the training data, performing superior to traditional works (Aggarwal & Ryoo, 2011) for video understanding. ",
141
+ "bbox": [
142
+ 174,
143
+ 183,
144
+ 825,
145
+ 224
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Two-stream CNN models take a single RGB frame and a small number of optical flow frames as inputs to capture both motion and appearance information in videos (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016). Models learning 3-D spatio-temporal (XYT) convolutional filters were designed and applied to many activity recognition tasks as well (Tran et al., 2014; Carreira & Zisserman, 2017; Tran et al., 2017; Hara et al., 2017). Large scale datasets for activity detection, such as THUMOS (Jiang et al., 2014), ActivityNet (Heilbron et al., 2015), Kinetics (Kay et al., 2017), and Charades (Sigurdsson et al., 2016b) provided these approach the necessary training data to learn the models. Such 3-D XYT CNNs were also used to capture spatio-temporal information for activity detection (Xu et al., 2017; Shou et al., 2016; 2017; Zhao et al., 2017). However, all these CNNs were limited to the consideration of a fixed local video segment (e.g., 16 frames in (Tran et al., 2014) and 64-99 frames in (Carreira & Zisserman, 2017)) when making activity decisions. ",
152
+ "bbox": [
153
+ 174,
154
+ 231,
155
+ 825,
156
+ 381
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Some works studied combining representations over longer-term temporal intervals (Karpathy et al., 2014; $\\mathrm { N g }$ et al., 2015; Varol et al., 2017), but it was generally done with a temporal pooling of local representations or (spatio-)temporal convolutions with a bit larger fixed intervals. Recurrent neural networks (RNNs) have also been used to model activity transitions between frames (Yeung et al., 2015; 2016; Escorcia et al., 2016), but they were strictly sequential and had limitations in maintaining temporal information over a longer temporal duration, particularly for videos with multiple complex activities. Recently, CNN models using temporal attention for activity videos (Piergiovanni et al., 2017; Piergiovanni & Ryoo, 2018b) were studied as well. However, a fully convolutional model to analyze continuous videos while efficiently representing information in long term intervals has been lacking. ",
163
+ "bbox": [
164
+ 174,
165
+ 387,
166
+ 825,
167
+ 525
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Our layer is different from the previous standard (spatio-)temporal convolutional layers in that it relies on significantly fewer parameters by forcing filter shapes to be Gaussian compositions. Our temporal layer is also different from previous Gaussian Mixture Model layers (Variani et al., 2015) in that our layer is convolutional while they are not. ",
174
+ "bbox": [
175
+ 174,
176
+ 531,
177
+ 825,
178
+ 585
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "3 APPROACH",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 176,
188
+ 606,
189
+ 299,
190
+ 622
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "In this section, we introduce a new convolutional layer named the Temporal Gaussian Mixture (TGM) layer, and present how it can be used for activity recognition. Our Temporal Gaussian Mixture layer is a temporal convolutional layer to be applied on top of a sequence of representations (usually from frame-level or segment-level CNNs), whose filters/kernels are controlled by a set of (temporal) Gaussian distribution parameters. The motivation is to make each temporal Gaussian distribution specify (temporally) ‘where to look’ with respect to the activity center, and represent the activity as a collection/mixture of such temporal Gaussians convolved with video features. Our layer is fully differentiable and trainable using standard backpropagation. ",
197
+ "bbox": [
198
+ 174,
199
+ 637,
200
+ 825,
201
+ 747
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Our TGM layer can be interpreted as a a form of 1-D convolution where the filters are determined by a mixture of Gaussians. However, our TGM layer differs from the standard temporal convolutional layers of learning 1-D (time) or 2-D (channel-by-time) filters in the following aspects: ",
208
+ "bbox": [
209
+ 176,
210
+ 753,
211
+ 823,
212
+ 795
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "1. Our temporal Gaussian mixture layer handles multiple 3-D tensors internally to preserve channels from the frame-level CNN by adding a new temporal channel axis. Its input is 3-D (channel-by-channel-by-time), where one channel dimension is inherited from the frame-level CNN and this dimension size remains unchanged. \n2. Instead of learning temporal convolution filters of any arbitrary values, our filter is forced to have the form of a temporal Gaussian mixture shared across all frame-level channels. This allows the layer to rely on significantly fewer number of (fully differentiable) parameters, while capturing the concept of temporal structure/attention. ",
219
+ "bbox": [
220
+ 212,
221
+ 804,
222
+ 823,
223
+ 919
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "image",
229
+ "img_path": "images/bb08fe1098ed6b3ebacab0ba55fa20f4c6eca53bc414048213d86cf9d3f10300.jpg",
230
+ "image_caption": [
231
+ "Figure 1: Example illustrating how our Temporal Gaussian Mixture layer is computed. Multiple $( M )$ temporal Gaussian distributions are learned, and they are combined with the learned soft attention weights to form the $C$ temporal convolution filters. $L$ is the temporal length of the filter. "
232
+ ],
233
+ "image_footnote": [],
234
+ "bbox": [
235
+ 174,
236
+ 101,
237
+ 823,
238
+ 222
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "3.1 TEMPORAL GAUSSIAN MIXTURE LAYER ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 174,
248
+ 291,
249
+ 493,
250
+ 306
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Our temporal Gaussian mixture layer takes a 3-D input with the dimensionality of $C _ { i n } \\times D \\times T$ , where $\\dot { C } _ { i n }$ is the number of input channels, $D$ is the dimensionality of the representations from frame-level (or segment-level) CNNs, and $T$ is the time. Given such input, the TGM layer convolves it with $C _ { o u t }$ number of $1 \\times L$ filters/kernels, generating a $C _ { o u t } \\times D \\times T$ -dim representation as an output. $L$ is the temporal length of the temporal Gaussian mixture filter. $D$ is usually 1K or 4K and $T$ is the number of time steps (frames) in each video (i.e., it varies per video). $C _ { o u t }$ is the number of different mixtures, corresponding to the number of output channels in standard convolution. ",
257
+ "bbox": [
258
+ 173,
259
+ 318,
260
+ 825,
261
+ 415
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Our layer is composed of a set of $M$ Gaussians. Each Gaussian has 2 parameters: a center $\\hat { \\mu }$ and a width $\\hat { \\sigma }$ . Each layer has additional hyper-parameters: $L$ , the temporal duration and $M$ , the number of Gaussians to learn. We force the learned center to be between ${ \\bar { - } } { \\frac { L } { 2 } }$ and $\\begin{array} { l } { { \\frac { L } { 2 } } } \\end{array}$ and $\\sigma$ to be positive: ",
268
+ "bbox": [
269
+ 174,
270
+ 420,
271
+ 825,
272
+ 464
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "equation",
278
+ "img_path": "images/061d96df08ede9f55df2f0b42f97903024b5f3507c7b77a47b4fab7a7628de77.jpg",
279
+ "text": "$$\n\\mu = ( L - 1 ) \\cdot \\frac { \\operatorname { t a n h } { ( \\hat { \\mu } + 1 ) } } { 2 } , \\sigma ^ { 2 } = \\exp { ( \\hat { \\sigma } ) } .\n$$",
280
+ "text_format": "latex",
281
+ "bbox": [
282
+ 349,
283
+ 469,
284
+ 648,
285
+ 501
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "We use the above $\\mu$ and $\\sigma$ to construct the temporal Gaussian kernels. This acts as a strong sparsity constraint on the convolutional kernel as well as a drastic reduction of the number of learnable parameters. We construct a temporal Gaussian mixture convolutional kernel as: ",
292
+ "bbox": [
293
+ 173,
294
+ 503,
295
+ 825,
296
+ 546
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "equation",
302
+ "img_path": "images/c3e3835081e1d08d978cc191ddccbc3b8831754743b39be969867ed1ed6fa300.jpg",
303
+ "text": "$$\n\\hat { K } _ { m , l } = \\frac { 1 } { Z } \\exp { - \\frac { ( l - \\mu _ { m } ) ^ { 2 } } { 2 \\sigma _ { m } ^ { 2 } } }\n$$",
304
+ "text_format": "latex",
305
+ "bbox": [
306
+ 403,
307
+ 549,
308
+ 594,
309
+ 584
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "where $Z$ is a normalization constant such that $\\begin{array} { r } { \\sum _ { l } ^ { L } \\hat { K } _ { m , l } = 1 } \\end{array}$ , resulting in $\\hat { K }$ being an $M \\times L$ matrix. ",
316
+ "bbox": [
317
+ 173,
318
+ 589,
319
+ 825,
320
+ 608
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "Instead of making the model learn a separate set of Gaussian distributions per activity class, we take the approach of maintaining multiple Gaussian distributions shared across classes and obtain a Gaussian ‘mixture’ filter by learning soft-attention weights. We learn a set of soft-attention weights per output channel $i$ , $\\omega \\in \\overline { { \\mathcal { R } } } ^ { C _ { o u t } \\times \\breve { M } }$ . We create the soft-attention weights by applying the softmax function over the $M$ Gaussians, enforcing each input channel weights sum to 1. ",
327
+ "bbox": [
328
+ 174,
329
+ 613,
330
+ 825,
331
+ 683
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "equation",
337
+ "img_path": "images/d820ecbe31a841ba5af9a245709bff7676ef0ec79faf2dfeae74aa73118270b0.jpg",
338
+ "text": "$$\na _ { i , m } = \\frac { \\exp \\omega _ { i , m } } { \\sum _ { j } \\exp \\omega _ { i , j } }\n$$",
339
+ "text_format": "latex",
340
+ "bbox": [
341
+ 429,
342
+ 685,
343
+ 568,
344
+ 719
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "Based on temporal Gaussian distributions $\\hat { K } _ { i }$ and attention weights $a _ { i , m }$ , the temporal convolution filters our TGM layer is computed as: ",
351
+ "bbox": [
352
+ 174,
353
+ 731,
354
+ 825,
355
+ 761
356
+ ],
357
+ "page_idx": 2
358
+ },
359
+ {
360
+ "type": "equation",
361
+ "img_path": "images/b959d0f554ae800598e65bf0f1f846ece267562150e1e75f8b8791e70fcc32f4.jpg",
362
+ "text": "$$\nK _ { i } = \\sum _ { m } a _ { i , m } \\hat { K } _ { i } .\n$$",
363
+ "text_format": "latex",
364
+ "bbox": [
365
+ 436,
366
+ 765,
367
+ 562,
368
+ 799
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "This provides us convolutional filters having the form of a mixture of temporal Gaussians, controlled based on $2 \\cdot M + C _ { i n } \\cdot C _ { o u t } \\cdot M$ parameters (instead of learning $D ^ { 2 } \\cdot L$ parameters without any constraint, as in standard temporal convolution where $C < < D$ ). An overview of this process is shown in Fig. 1. ",
375
+ "bbox": [
376
+ 173,
377
+ 801,
378
+ 825,
379
+ 858
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "3.1.1 SINGLE TGM LAYER - DIRECT PER-CLASS ACTIVITY MODELING",
386
+ "text_level": 1,
387
+ "bbox": [
388
+ 173,
389
+ 872,
390
+ 674,
391
+ 887
392
+ ],
393
+ "page_idx": 2
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "The representation we obtain by applying our base CNNs to each frame (or local segment) has the dimensionality of $D$ , and stacking them along time axis provides us the representation with ",
398
+ "bbox": [
399
+ 173,
400
+ 895,
401
+ 820,
402
+ 924
403
+ ],
404
+ "page_idx": 2
405
+ },
406
+ {
407
+ "type": "image",
408
+ "img_path": "images/1e1b884ad92c56ef857b2a263d6acccb6a7a771dee8413a54c17dfc575c6b884.jpg",
409
+ "image_caption": [
410
+ "Figure 2: Illustration of a TGM layer with grouped convolution. This layer learns a set of $C$ Gaussian mixtures that are convolved with the input channels. "
411
+ ],
412
+ "image_footnote": [],
413
+ "bbox": [
414
+ 174,
415
+ 101,
416
+ 823,
417
+ 193
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "$1 \\times D \\times T$ -dim. That is, in the case of using only one TGM layer to capture activity representations, our $C _ { i n }$ is fixed to 1 and $C _ { o u t }$ is fixed to be the number of activity classes. This is the simplest case of our model, attaching one TGM layer on top of the $1 \\times D \\times T$ representation. ",
424
+ "bbox": [
425
+ 173,
426
+ 250,
427
+ 826,
428
+ 291
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Our convolutional kernel, $K$ , has a learned Gaussian mixture for each activity class. Let the video features $v$ be a $D \\times T$ matrix. Each $K _ { i }$ is a 2-D convolutional filter with a size of $1 \\times L$ , and convolving this with $v$ provides us a representation $S$ with $C _ { o u t }$ number of $D \\times T$ responses since $C _ { i n }$ is 1 in this case. This per-class representation can then be used as input to a fully-connected layer for activity classification. For $i \\in \\mathsf { \\bar { \\{ 1 , 2 , \\ldots , C _ { o u t } \\} } }$ : ",
435
+ "bbox": [
436
+ 173,
437
+ 297,
438
+ 825,
439
+ 367
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "equation",
445
+ "img_path": "images/16628b09023f7e0dfb9cebed4d7dbd2e5f99a293768b84effe86d5bb0b519c3e.jpg",
446
+ "text": "$$\ns _ { i } = v * K _ { i } , \\ S = [ s _ { 1 } , s _ { 2 } , \\ldots , s _ { C _ { o u t } } ]\n$$",
447
+ "text_format": "latex",
448
+ "bbox": [
449
+ 375,
450
+ 373,
451
+ 624,
452
+ 390
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Fig. 7 in the appendix visually illustrates how each TGM filter is convolved with the input (Fig. 7d), compared to the standard 1-D convolution (Fig. 7a) or other forms of the temporal layers (Fig. 7b-c). ",
459
+ "bbox": [
460
+ 173,
461
+ 395,
462
+ 823,
463
+ 424
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "3.1.2 MULTIPLE TGM LAYERS - GROUPED CONVOLUTION ",
470
+ "text_level": 1,
471
+ "bbox": [
472
+ 173,
473
+ 438,
474
+ 591,
475
+ 453
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "We generalize the above formulation to allow the TGM layers to be sequentially applied. The idea is to enable our model to capture more complex, nonlinear temporal structure by having multiple levels of temporal layers. In this case, the input for each layer is $C _ { i n } \\times D \\times T$ dimensional (instead of $1 \\times D \\times T$ ), where the input channels are the number of output channels from the previous layer. Our kernels at each layer, $K _ { i }$ , are parameterized and learned as before. ",
482
+ "bbox": [
483
+ 174,
484
+ 462,
485
+ 825,
486
+ 531
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "By using grouped convolution with the number of groups set to $C _ { i n }$ , we can efficiently separate the input into per-channel values and convolve each of them with the designated $K _ { i }$ kernel, as shown in Fig. 2. That is, we learn a filter $K _ { i }$ per channel by setting $C _ { i n } = C _ { o u t }$ . For $i \\in [ 1 , C _ { o u t } ]$ , ",
493
+ "bbox": [
494
+ 174,
495
+ 537,
496
+ 825,
497
+ 580
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "equation",
503
+ "img_path": "images/6201967b323c2264d03925ffaf57d0654af05f03d742733e045b4e7ae588f077.jpg",
504
+ "text": "$$\ns _ { i } = f _ { i } * K _ { i } , ~ S = [ s _ { 1 } , s _ { 2 } , . ~ . ~ . s _ { C _ { o u t } } ]\n$$",
505
+ "text_format": "latex",
506
+ "bbox": [
507
+ 375,
508
+ 585,
509
+ 622,
510
+ 602
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Here, $f$ is a $C _ { i n } \\times D \\times T$ tensor, where $D$ is the dimensionality of the feature and $T$ is the number of frames. The result of the per-channel convolution, $s _ { i }$ , is a $D \\times T$ representation. We concatenate these representations along the channel axis, resulting in $S$ , a $C _ { o u t } \\times D \\times T$ representation. As this convolution results in the same output shape, we can stack these layers. Each layer is able to capture increasing temporal resolution, allowing the model to capture levels of abstractions. ",
517
+ "bbox": [
518
+ 174,
519
+ 607,
520
+ 825,
521
+ 678
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "3.1.3 MULTIPLE TGM LAYERS - CHANNEL COMBINATION ",
528
+ "text_level": 1,
529
+ "bbox": [
530
+ 174,
531
+ 691,
532
+ 588,
533
+ 705
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "In the above subsection, we introduced an approach of stacking multiple TGM layers to model a hierarchical composition of temporal representations. However, in the grouped convolution case, each output channel of the layer is solely dependent on its corresponding input channel. That is, each kernel only considers information from a single output channel of the previous layer. ",
540
+ "bbox": [
541
+ 174,
542
+ 714,
543
+ 825,
544
+ 771
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Therefore, we further generalize our TGM layer so that the layer combines representations from multiple input channels for each output channel while using the learned temporal kernels. We learn a set of convolutional kernels $K \\in \\mathop { \\mathcal { R } } ^ { C _ { o u t } \\times C _ { i n } \\times L }$ (i.e., we learn $C _ { o u t } \\cdot C _ { i n }$ Gaussian mixtures). Given $f$ which is the $C _ { i n } \\times D \\times T$ representation, for each output channel $i \\in [ 1 , C _ { o u t } ]$ and each input channel $j \\in [ 1 , C _ { i n } ]$ pair, we convolve the associated filters with the input. ",
551
+ "bbox": [
552
+ 173,
553
+ 776,
554
+ 825,
555
+ 847
556
+ ],
557
+ "page_idx": 3
558
+ },
559
+ {
560
+ "type": "equation",
561
+ "img_path": "images/461f79080e99e2cac6a46597cfc9ef8b1eae5a1731cafef9a1f421ff6046bd52.jpg",
562
+ "text": "$$\nG _ { i , j } = ( f _ { j } * K _ { i , j } )\n$$",
563
+ "text_format": "latex",
564
+ "bbox": [
565
+ 436,
566
+ 852,
567
+ 562,
568
+ 869
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "where each $G _ { i , j }$ is a $D \\times T$ -dim representation. ",
575
+ "bbox": [
576
+ 174,
577
+ 875,
578
+ 488,
579
+ 890
580
+ ],
581
+ "page_idx": 3
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "We then learn a 1x1 convolution followed by a ReLU activation function for each $i \\in [ 1 , C _ { o u t } ]$ , which we call $w _ { i }$ , that maps from $C _ { i n }$ channels to 1 channel. The 1x1 convolution learns to combine ",
586
+ "bbox": [
587
+ 174,
588
+ 895,
589
+ 825,
590
+ 924
591
+ ],
592
+ "page_idx": 3
593
+ },
594
+ {
595
+ "type": "image",
596
+ "img_path": "images/aca85f15ca42c4a0cdcd7ee131a3bb28c18e0cc54f9ba616551cbb896c0860e5.jpg",
597
+ "image_caption": [
598
+ "Figure 3: Illustration of a TGM layer with channel combination. The kernels are applied to each input channel, $C _ { i n }$ , and a 1x1 convolution is applied to combine the $C _ { i n }$ input channels for each output channel, $C _ { o u t }$ . "
599
+ ],
600
+ "image_footnote": [],
601
+ "bbox": [
602
+ 173,
603
+ 99,
604
+ 826,
605
+ 242
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "the channels from the previous layer. By design, the TGM kernel is positive and sums to 1. Adding the unconstrained 1x1 convolution adds non-linearity (using the ReLU activation function) to our layer and only adds $C _ { o u t } \\cdot C _ { i n }$ parameters. ",
612
+ "bbox": [
613
+ 173,
614
+ 314,
615
+ 825,
616
+ 356
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "equation",
622
+ "img_path": "images/fb72fdcdc270fde16eaa3ca0acd2b8ef4086171f297567ba689c79ba911da4c7.jpg",
623
+ "text": "$$\ns _ { i } = G _ { i } * w _ { i } = ( f _ { j } * K _ { i , j } ) * w _ { i } , \\ S = [ s _ { 1 } , s _ { 2 } \\ldots , s _ { C _ { o u t } } ]\n$$",
624
+ "text_format": "latex",
625
+ "bbox": [
626
+ 310,
627
+ 362,
628
+ 689,
629
+ 380
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "We then stack the $s _ { i }$ representations along the channel axis to produce $S$ , the $C _ { o u t } \\times D \\times T$ -dim representation. This process is illustrated in Fig. 3. This method generalizes our approach to allow the layer to take input of $C _ { i n } \\times D \\times T$ and produce output of $C _ { o u t } \\times D \\times T$ . These layers can easily be stacked to learn a hierarchical representation. ",
636
+ "bbox": [
637
+ 173,
638
+ 393,
639
+ 825,
640
+ 449
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "3.2 VIDEO CNN MODELS WITH TGM LAYERS ",
647
+ "text_level": 1,
648
+ "bbox": [
649
+ 176,
650
+ 465,
651
+ 508,
652
+ 479
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Our goal is to do activity detection which we define as making a per-frame (or per-segment) classification. Given a video, at each time step $t$ , we want to make the model decide which activity the frame corresponds to (including no-activity). As a baseline, we train a fully-connected layer that classifies each per-frame $D$ -dimensional vector, $v _ { t }$ . As multiple activities can occur at the same time, or no activities at all, we treat this as a mutli-label classification task. We minimize binary cross entropy: ",
659
+ "bbox": [
660
+ 173,
661
+ 491,
662
+ 825,
663
+ 573
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "equation",
669
+ "img_path": "images/689f1a007120579a5dfd7551883d7131e1dc9204d9e21883a09a0757412356c8.jpg",
670
+ "text": "$$\nL ( v ) = \\sum _ { t , c } z _ { t , c } \\log ( p ( c | v _ { t } ) ) + ( 1 - z _ { t , c } ) \\log ( 1 - p ( c | v _ { t } ) )\n$$",
671
+ "text_format": "latex",
672
+ "bbox": [
673
+ 305,
674
+ 571,
675
+ 692,
676
+ 607
677
+ ],
678
+ "page_idx": 4
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "where $z _ { t , c }$ is the ground truth label, 1 if activity $c$ is occurring at time $t$ and $p ( c | v _ { t } )$ is the output of our model for class $c$ at time $t$ . Fig. 4 shows an example CNN. ",
683
+ "bbox": [
684
+ 173,
685
+ 609,
686
+ 825,
687
+ 638
688
+ ],
689
+ "page_idx": 4
690
+ },
691
+ {
692
+ "type": "image",
693
+ "img_path": "images/cdd6c2d13bb16728b0fe94e3796a0d17a7ed1459c289733ad68ae2e40ee7b924.jpg",
694
+ "image_caption": [
695
+ "Figure 4: An overview of an example video CNN model with two TGM layers. It is able to handle videos with any length, because of its fully convolutional design. "
696
+ ],
697
+ "image_footnote": [],
698
+ "bbox": [
699
+ 181,
700
+ 654,
701
+ 823,
702
+ 881
703
+ ],
704
+ "page_idx": 4
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "4 EXPERIMENTS ",
709
+ "text_level": 1,
710
+ "bbox": [
711
+ 176,
712
+ 102,
713
+ 326,
714
+ 118
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "4.1 IMPLEMENTATION AND BASELINES ",
721
+ "text_level": 1,
722
+ "bbox": [
723
+ 176,
724
+ 133,
725
+ 455,
726
+ 148
727
+ ],
728
+ "page_idx": 5
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Implementation We used I3D (Carreira & Zisserman, 2017) and the two-stream version of InceptionV3 (Szegedy et al., 2016) pretrained on Imagenet and Kinetics as our base per-frame CNNs. Our default $L$ setting used for the TGM layers as well as the other baselines was as follows: when using I3D segment features (collected at 3fps), the 1 layer models used $L = 1 5$ and the 3 layer models used $L = 5$ . When using InceptionV3 frame feature (collected at 8fps), the 1 layer models used $L = 3 0$ and the 3 layer models used $L = 1 0$ . These layers were attached on top of the base CNN, as described in Subsection 3.2. Please check the appendix for implementation and training details and results on other datasets. ",
733
+ "bbox": [
734
+ 173,
735
+ 160,
736
+ 825,
737
+ 268
738
+ ],
739
+ "page_idx": 5
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Baselines In order to confirm the advantages of our TGM layers, particularly against previous temporal models, we implemented several baselines. The first is (i) a standard per-frame classifier in which the prediction at each time-step only depends on a single feature vector with no contextual temporal information. We also used (ii) LSTMs on top of per-frame representations, which were popularly used to capture temporal information (Donahue et al., 2015). We train a bi-directional LSTM with 512 hidden units to make per-frame predictions. We also tried (iii) the fixed pyramid temporal max-pooling of level 3 (Ryoo et al., 2015). Finally, we compare our model against (iv) the model with standard temporal convolutional layers (i.e., 1-D convolution with a $D \\times L$ kernel) on top of per-frame representations. This is similar to the temporal conv. used in (Tran et al., 2018). Temporal lengths (i.e., $L$ ) of the 1-D conv. filters and the pooling windows were set to be identical to the TGM filters. That is, they capture the same temporal duration as TGMs. In all our experiments, we follow the standard evaluation setting of computing per-frame mean average precision (mAP) and report those values. We also compare to different versions of the TGM layer, (v) with a learned mixture of random temporal filters and (vi) with a learned mixture of fixed Gaussians. ",
744
+ "bbox": [
745
+ 174,
746
+ 281,
747
+ 825,
748
+ 472
749
+ ],
750
+ "page_idx": 5
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "In addition, we also tried the approach of combining our TGM layers with the recent super-event representations (Piergiovanni & Ryoo, 2018b). We concatenated the learned super-event representation with our representations from TGM layers. ",
755
+ "bbox": [
756
+ 176,
757
+ 478,
758
+ 821,
759
+ 520
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "4.2 MULTITHUMOS ",
766
+ "text_level": 1,
767
+ "bbox": [
768
+ 174,
769
+ 537,
770
+ 334,
771
+ 551
772
+ ],
773
+ "page_idx": 5
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Dataset MultiTHUMOS (Yeung et al., 2015) is an extended version of the THUMOS (Jiang et al., 2014) dataset that densely annotates the continuous videos. The dataset consists of 65 different classes, compared to 20 in THUMOS, and contains on average 10.5 activities per video and 1.5 labels per frame and up to 25 activity instances in each video. This is in contrast to many other activity detection dataset such as ActivityNet (Heilbron et al., 2015), which only has on average ${ \\sim } 1$ activity per video. MultiTHUMOS consists of YouTube videos of various sport activities such as basketball games, volleyball games, weight lifting, and track and field. ",
778
+ "bbox": [
779
+ 174,
780
+ 564,
781
+ 825,
782
+ 660
783
+ ],
784
+ "page_idx": 5
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "We followed the standard MultiTHUMOS evaluation setting of measuring mAP based on per-frame annotations. There are 1010 validation videos and 1574 test videos. We used these continuous validation videos for the training of our models. We did not need to take advantage of the separate training set with segmented videos; even without them, we outperformed the state-of-the-arts. ",
789
+ "bbox": [
790
+ 174,
791
+ 666,
792
+ 823,
793
+ 722
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Results We compared baselines as well as multiple different versions of our architectures, shown in Table 1. The model with our TGM layers consistently outperformed baseline I3D (or InceptionV3) while using the same per-segment representations. Learning 3 TGM layers further improved the performances. On the other hand, we found that stacking multiple standard temporal convolutional layers does not improve performance, often performing worse than the baseline. While a single standard temporal conv. layer improves over the baseline, having multiple of them significantly increases the number of parameters to learn (Table 2) and we suspect that this was causing the overfitting with the limited amount of samples in the dataset. In Table 3, we compare the results of using a LSTM or temporal conv. with a similar number of parameters. This was done by making their temporal conv. filters to share values across multiple channels. These models result in nearly random performance, as they were not designed to cope with a small number of parameters. We also show results with a mixture of random (fixed) temporal filters and with a mixture of fixed Gaussians. These results confirm that (i) modeling the temporal structure as a learned Gaussian mixture is beneficial and that (ii) further learning the Gaussian distribution parameters is important. ",
800
+ "bbox": [
801
+ 174,
802
+ 733,
803
+ 825,
804
+ 924
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "table",
810
+ "img_path": "images/3ee7541ec5fe0cfc304befd8d4baafe39f90c2c466c427c9319575a708552eb9.jpg",
811
+ "table_caption": [
812
+ "Table 1: Comparison of various architectures on MultiTHUMOS using both I3D per-segment and InceptionV3 per-frame features. We found that TGM layers with 1x1 convolution channel combination performed the best. Results are in mAP $\\%$ . Note that we use the same filter length for “Temporal Conv” and “TGM” models, as described in Section 4.1. "
813
+ ],
814
+ "table_footnote": [],
815
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">13D</td><td colspan=\"3\">InceptionV3</td></tr><tr><td>Spatial</td><td>Temporal</td><td>Two-Stream</td><td>Spatial</td><td>Temporal</td><td>Two-Stream</td></tr><tr><td>Baseline</td><td>22.3</td><td>25.0</td><td>29.7</td><td>13.6</td><td>14.1</td><td>15.2</td></tr><tr><td>Temporal Conv</td><td>32.5</td><td>35.5</td><td>38.4</td><td>15.2</td><td>15.5</td><td>15.8</td></tr><tr><td>3 Temporal Conv</td><td>20.4</td><td>23.4</td><td>24.4</td><td>5.3</td><td>6.1</td><td>6.5</td></tr><tr><td colspan=\"7\">TGM layers with grouped convolution</td></tr><tr><td>1 TGM</td><td>35.1</td><td>37.8</td><td>40.5</td><td>16.3</td><td>17.5</td><td>18.0</td></tr><tr><td>3 TGM</td><td>36.4</td><td>42.3</td><td>43.5</td><td>17.5</td><td>18.3</td><td>19.2</td></tr><tr><td colspan=\"7\">TGM layers with channel combination</td></tr><tr><td>1 TGM (soft)</td><td>35.2</td><td>37.9</td><td>40.2</td><td>17.2</td><td>17.6</td><td>18.4</td></tr><tr><td>1 TGM (1x1)</td><td>36.1</td><td>38.2</td><td>40.8</td><td>17.2</td><td>17.7</td><td>18.4</td></tr><tr><td>3 TGM (soft)</td><td>36.2</td><td>40.1</td><td>42.3</td><td>17.5</td><td>19.1</td><td>21.2</td></tr><tr><td>3 TGM (1x1)</td><td>37.2</td><td>42.1</td><td>44.3</td><td>17.9</td><td>19.3</td><td>22.2</td></tr></table>",
816
+ "bbox": [
817
+ 202,
818
+ 166,
819
+ 790,
820
+ 369
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "table",
826
+ "img_path": "images/cbe109a470a95d9b3b855dc56211db11ad9f33880fd71c3c75b7b657d7ef4c0d.jpg",
827
+ "table_caption": [
828
+ "Table 2: Additional number of parameters for models when added to the base architecture (e.g., I3D or Inception V3). "
829
+ ],
830
+ "table_footnote": [],
831
+ "table_body": "<table><tr><td>Model</td><td> # of parameters</td></tr><tr><td>LSTM</td><td>10.5M</td></tr><tr><td>1 Temporal Conv</td><td>10.5M</td></tr><tr><td>3 Temporal Conv</td><td>31.5M</td></tr><tr><td>1 TGM Layer</td><td>10K</td></tr><tr><td>3 TGMLayers</td><td>100K</td></tr></table>",
832
+ "bbox": [
833
+ 200,
834
+ 431,
835
+ 460,
836
+ 529
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "table",
842
+ "img_path": "images/21a4edaa6f9113adff4bc63cde6845095b552a1d34563610ba7abe3e85574dec.jpg",
843
+ "table_caption": [
844
+ "Table 3: Comparison of previous methods with comparable number of parameters and random forms of our TGM layer. "
845
+ ],
846
+ "table_footnote": [],
847
+ "table_body": "<table><tr><td>Model</td><td>mAP</td></tr><tr><td>LSTM with 100k parameters</td><td>6.5</td></tr><tr><td>Temporal Conv. with 1OOk parameters</td><td>7.3</td></tr><tr><td>TGM with random temporal filters</td><td>34.5</td></tr><tr><td>TGM with fixed Gaussians</td><td>38.5</td></tr><tr><td>Full TGM</td><td>44.3</td></tr></table>",
848
+ "bbox": [
849
+ 509,
850
+ 431,
851
+ 834,
852
+ 530
853
+ ],
854
+ "page_idx": 6
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "Learning multiple TGM layers with channel combination outperforms the grouped convolution version of TGM and all the baselines. We also experimented with a version using soft-attention weights to combine the TGM layer channels, in addition to our method (Fig. 3) of using 1x1 convolution followed by a ReLU (to gain non-linearity). We found that the 1x1 convolution performed better. We tested various number of Gaussian mixtures (i.e., output channels) and found that using 80 for the first and second layer and using 65 (i.e., number of classes) for the final layer performs best. ",
859
+ "bbox": [
860
+ 173,
861
+ 551,
862
+ 825,
863
+ 633
864
+ ],
865
+ "page_idx": 6
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "Table 4 compares our model using TGM layers with multiple previous state-of-the-art approaches and baselines such as LSTM. Our approach meaningfully outperforms all previous approaches. Importantly, we are comparing our approach with different methods of capturing temporal information such as LSTMs and fixed temporal pyramid pooling while making them use the exactly same per-frame representations. We found that while all these methods capture some temporal information, the TGM layers provide the best performance. Further, combining the super-event representation (Piergiovanni & Ryoo, 2018b) with our TGM feature also benefited detection, confirming that our TGMs and super-events capture different aspects of the activity videos. In Fig. 5, we show an example of the various models predictions on a basketball video. We outperform the previous state-of-the-art performance (mAP) by $10 \\%$ (36.4 vs. 46.4). ",
870
+ "bbox": [
871
+ 174,
872
+ 640,
873
+ 825,
874
+ 776
875
+ ],
876
+ "page_idx": 6
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "4.3 CHARADES ",
881
+ "text_level": 1,
882
+ "bbox": [
883
+ 174,
884
+ 796,
885
+ 294,
886
+ 810
887
+ ],
888
+ "page_idx": 6
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Dataset Charades (Sigurdsson et al., 2016b) is a large scale dataset with 9848 videos across 157 activity classes. These videos were recorded in home environments of the participants based on provided scripts. Each video contains on an average of 6.8 activity instances, and there are often complex activities co-occurring. The activities were mainly performed at home. For example, some activity classes are ‘preparing a meal’, ‘eating’, ‘sitting’, ‘cleaning’, etc. ",
893
+ "bbox": [
894
+ 174,
895
+ 820,
896
+ 823,
897
+ 888
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "In our experiments, we follow the original Charades detection setting (i.e., Charades v1 localize evaluation), which is the setting used in many previous approaches (Sigurdsson et al., 2016a; Xu ",
904
+ "bbox": [
905
+ 174,
906
+ 896,
907
+ 823,
908
+ 924
909
+ ],
910
+ "page_idx": 6
911
+ },
912
+ {
913
+ "type": "image",
914
+ "img_path": "images/c0d256bcd8222f7ad03ebc79eb263ced37551f8c7850c775d1e2e262f032da84.jpg",
915
+ "image_caption": [
916
+ "Figure 5: Illustration of the temporal regions classified as various basketball activities from a basketball game video in MultiTHUMOS. Our TGM layers greatly improve performance. "
917
+ ],
918
+ "image_footnote": [],
919
+ "bbox": [
920
+ 181,
921
+ 103,
922
+ 825,
923
+ 253
924
+ ],
925
+ "page_idx": 7
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Table 4: Performances of the state-of-the-art methods and our approach on MultiTHUMOS. Our approach meaningfully outperforms all previous results. ",
930
+ "bbox": [
931
+ 171,
932
+ 301,
933
+ 823,
934
+ 330
935
+ ],
936
+ "page_idx": 7
937
+ },
938
+ {
939
+ "type": "table",
940
+ "img_path": "images/39e1554da1ac99c74b3ef2bc9480a3af509a1aeab04f60cb98b4b7c40164e493.jpg",
941
+ "table_caption": [],
942
+ "table_footnote": [],
943
+ "table_body": "<table><tr><td></td><td>mAP</td></tr><tr><td>Two-stream (Yeung et al., 2015)</td><td>27.6</td></tr><tr><td>Two-stream + LSTM (Yeung et al., 2015)</td><td>28.1</td></tr><tr><td>Multi-LSTM (Yeung et al., 2015)</td><td>29.6</td></tr><tr><td>Predictive-corrective (Dave et al., 2017)</td><td>29.7</td></tr><tr><td>I3D baseline</td><td>29.7</td></tr><tr><td>I3D+LSTM</td><td>29.9</td></tr><tr><td>I3D + temporal pyramid</td><td>31.2</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo, 2018b)</td><td>36.4</td></tr><tr><td>I3D+our TGMs</td><td>44.3</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo,2018b) + our TGMs</td><td>46.4</td></tr></table>",
944
+ "bbox": [
945
+ 254,
946
+ 342,
947
+ 743,
948
+ 507
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "et al., 2017; Piergiovanni & Ryoo, 2018b). This is the original setting more challenging than the Charades Challenge 2017 setting (whose evaluation server was no longer approving new account access), in the aspect that it uses less amount of training videos. ",
955
+ "bbox": [
956
+ 176,
957
+ 530,
958
+ 821,
959
+ 571
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Results We compare our results with the state-of-the-arts in Table 5. To our knowledge, our method is obtaining the best known performance in the original localization setting of the Charades dataset. Notably, it is performing better than I3D that obtained the best competition performance, while using the same feature. Our method also outperforms standard temporal convolution, LSTMs, and fixed pyramid pooling, as well as the use of latent super-events. When setting $L = 3 0$ and using 3 TGM layers, our model is able to capture around 800 frames (about $\\pm 1 5$ seconds from each frame) of temporal information, significantly more than previous works (e.g., I3D only captures $\\pm 2$ seconds). ",
966
+ "bbox": [
967
+ 174,
968
+ 588,
969
+ 825,
970
+ 696
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "5 CONCLUSIONS ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 176,
980
+ 718,
981
+ 328,
982
+ 734
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "We newly introduced the Temporal Gaussian Mixture (TGM) layer and demonstrated its effectiveness for multi-activity detection in continuous videos. Our layer is fully differentiable and trainable using standard backpropagation, designed to learn temporal structure. We were able to confirm that our layer performs superior to state-of-the-art methods on activity detection datasets including MultiTHUMOS and Charades, obtaining the best known performance. We also tested our approach with two more public video datasets, MLB-YouTube (Piergiovanni & Ryoo, 2018a) and AVA (Gu et al., 2017), and confirmed its advantage over the previous works in Appendix. ",
989
+ "bbox": [
990
+ 174,
991
+ 747,
992
+ 825,
993
+ 844
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "REFERENCES ",
1000
+ "text_level": 1,
1001
+ "bbox": [
1002
+ 174,
1003
+ 869,
1004
+ 285,
1005
+ 885
1006
+ ],
1007
+ "page_idx": 7
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "J. K. Aggarwal and M. S. Ryoo. Human activity analysis: A review. ACM Computing Surveys, 43: 16:1–16:43, April 2011. ",
1012
+ "bbox": [
1013
+ 173,
1014
+ 896,
1015
+ 821,
1016
+ 924
1017
+ ],
1018
+ "page_idx": 7
1019
+ },
1020
+ {
1021
+ "type": "table",
1022
+ "img_path": "images/f1380ea64685f7c56a73577b25c84e6eaef3160743ff12e61c00aebaac2c06e7.jpg",
1023
+ "table_caption": [
1024
+ "Table 5: Per-frame mAP on Charades, evaluated with the ‘Charades v1 localize’ setting. I3D models are two-stream, using both RGB and optical flow inputs. "
1025
+ ],
1026
+ "table_footnote": [],
1027
+ "table_body": "<table><tr><td></td><td>mAP</td></tr><tr><td>Predictive-corrective (Dave et al., 2017) Two-stream (Sigurdsson et al., 2016a) Two-stream+LSTM (Sigurdsson et al., 2016a)</td><td>8.9 8.94 9.6</td></tr><tr><td>R-C3D (Xu et al., 2017) Sigurdsson et al. (Sigurdsson et al., 2016a)</td><td>12.7 12.8</td></tr><tr><td>I3D baseline</td><td>17.2</td></tr><tr><td>I3D + 3 temporal conv.layers (L = 5) I3D + 3 temporal conv. layers (L = 30)</td><td>17.5</td></tr><tr><td>I3D +LSTM</td><td>12.5</td></tr><tr><td>I3D + fixed temporal pyramid</td><td>18.1</td></tr><tr><td></td><td>18.2</td></tr><tr><td>I3D + super-events (Piergiovanni &amp; Ryoo,2018b)</td><td>19.4</td></tr><tr><td>I3D +3 TGMs (L = 5)</td><td></td></tr><tr><td></td><td>20.6</td></tr><tr><td>I3D +3 TGMs (L = 30)</td><td>21.5</td></tr><tr><td>I3D +3 TGMs (L = 5) + super-events</td><td>21.8</td></tr><tr><td>I3D +3 TGMs (L = 3O) + super-events</td><td>22.3</td></tr></table>",
1028
+ "bbox": [
1029
+ 297,
1030
+ 140,
1031
+ 700,
1032
+ 375
1033
+ ],
1034
+ "page_idx": 8
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 393,
1042
+ 825,
1043
+ 434
1044
+ ],
1045
+ "page_idx": 8
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Achal Dave, Olga Russakovsky, and Deva Ramanan. Predictive-corrective networks for action detection. arXiv preprint arXiv:1704.03615, 2017. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 445,
1053
+ 820,
1054
+ 474
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2625–2634, 2015. ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 484,
1064
+ 825,
1065
+ 540
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Victor Escorcia, Fabian Caba Heilbron, Juan Carlos Niebles, and Bernard Ghanem. Daps: Deep action proposals for action understanding. In Proceedings of European Conference on Computer Vision (ECCV), pp. 768–784. Springer, 2016. ",
1072
+ "bbox": [
1073
+ 176,
1074
+ 551,
1075
+ 823,
1076
+ 594
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 604,
1086
+ 823,
1087
+ 647
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Chunhui Gu, Chen Sun, Sudheendra Vijayanarasimhan, Caroline Pantofaru, David A. Ross, George Toderici, Yeqing Li, Susanna Ricco, Rahul Sukthankar, Cordelia Schmid, and Jitendra Malik. AVA: A video dataset of spatio-temporally localized atomic visual actions. arXiv preprint arXiv:1705.08421, 2017. ",
1094
+ "bbox": [
1095
+ 174,
1096
+ 656,
1097
+ 825,
1098
+ 713
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Learning spatio-temporal features with 3d residual networks for action recognition. In Proceedings of the ICCV Workshop on Action, Gesture, and Emotion Recognition, volume 2, pp. 4, 2017. ",
1105
+ "bbox": [
1106
+ 174,
1107
+ 723,
1108
+ 825,
1109
+ 766
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 961–970, 2015. ",
1116
+ "bbox": [
1117
+ 178,
1118
+ 776,
1119
+ 823,
1120
+ 819
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Y.-G. Jiang, J. Liu, A. Roshan Zamir, G. Toderici, I. Laptev, M. Shah, and R. Sukthankar. THUMOS challenge: Action recognition with a large number of classes. http://crcv.ucf.edu/THUMOS14/, 2014. ",
1127
+ "bbox": [
1128
+ 176,
1129
+ 829,
1130
+ 821,
1131
+ 871
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li FeiFei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1725–1732, 2014. ",
1138
+ "bbox": [
1139
+ 176,
1140
+ 882,
1141
+ 823,
1142
+ 924
1143
+ ],
1144
+ "page_idx": 8
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. ",
1149
+ "bbox": [
1150
+ 176,
1151
+ 103,
1152
+ 821,
1153
+ 145
1154
+ ],
1155
+ "page_idx": 9
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1160
+ "bbox": [
1161
+ 173,
1162
+ 155,
1163
+ 823,
1164
+ 183
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Joe Yue-Hei $\\mathrm { N g }$ , Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4694– 4702. IEEE, 2015. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 194,
1174
+ 825,
1175
+ 250
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "AJ Piergiovanni and Michael S. Ryoo. Fine-grained activity recognition in baseball videos. In CVPR Workshop on Computer Vision in Sports, 2018a. ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 260,
1185
+ 821,
1186
+ 287
1187
+ ],
1188
+ "page_idx": 9
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "AJ Piergiovanni and Michael S. Ryoo. Learning latent super-events to detect multiple activities in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018b. ",
1193
+ "bbox": [
1194
+ 173,
1195
+ 297,
1196
+ 826,
1197
+ 339
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "AJ Piergiovanni, Chenyou Fan, and Michael S Ryoo. Learning latent sub-events in activity videos using temporal attention filters. In Proceedings of the American Association for Artificial Intelligence (AAAI), 2017. ",
1204
+ "bbox": [
1205
+ 173,
1206
+ 349,
1207
+ 823,
1208
+ 392
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Michael S Ryoo, Brandon Rothrock, and Larry Matthies. Pooled motion features for first-person videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 896–904, 2015. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 401,
1218
+ 823,
1219
+ 444
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Zheng Shou, Dongang Wang, and Shih-Fu Chang. Temporal action localization in untrimmed videos via multi-stage cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1049–1058, 2016. ",
1226
+ "bbox": [
1227
+ 174,
1228
+ 454,
1229
+ 823,
1230
+ 496
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Zheng Shou, Jonathan Chan, Alireza Zareian, Kazuyuki Miyazawa, and Shih-Fu Chang. Cdc: Convolutional-de-convolutional networks for precise temporal action localization in untrimmed videos. arXiv preprint arXiv:1703.01515, 2017. ",
1237
+ "bbox": [
1238
+ 174,
1239
+ 506,
1240
+ 821,
1241
+ 549
1242
+ ],
1243
+ "page_idx": 9
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. arXiv preprint arXiv:1612.06371, 2016a. ",
1248
+ "bbox": [
1249
+ 171,
1250
+ 558,
1251
+ 823,
1252
+ 587
1253
+ ],
1254
+ "page_idx": 9
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Gunnar A. Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. ¨ Hollywood in homes: Crowdsourcing data collection for activity understanding. In Proceedings of European Conference on Computer Vision (ECCV), 2016b. ",
1259
+ "bbox": [
1260
+ 173,
1261
+ 595,
1262
+ 823,
1263
+ 638
1264
+ ],
1265
+ "page_idx": 9
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NIPS), pp. 568–576, 2014. ",
1270
+ "bbox": [
1271
+ 173,
1272
+ 648,
1273
+ 823,
1274
+ 678
1275
+ ],
1276
+ "page_idx": 9
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "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 (CVPR), pp. 2818–2826, 2016. ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 686,
1284
+ 823,
1285
+ 729
1286
+ ],
1287
+ "page_idx": 9
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Du Tran, Lubomir D Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. C3d: generic features for video analysis. CoRR, abs/1412.0767, 2(7):8, 2014. ",
1292
+ "bbox": [
1293
+ 171,
1294
+ 738,
1295
+ 823,
1296
+ 768
1297
+ ],
1298
+ "page_idx": 9
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Du Tran, Jamie Ray, Zheng Shou, Shih-Fu Chang, and Manohar Paluri. Convnet architecture search for spatiotemporal feature learning. arXiv preprint arXiv:1708.05038, 2017. ",
1303
+ "bbox": [
1304
+ 171,
1305
+ 777,
1306
+ 823,
1307
+ 808
1308
+ ],
1309
+ "page_idx": 9
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 815,
1317
+ 823,
1318
+ 858
1319
+ ],
1320
+ "page_idx": 9
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Ehsan Variani, Erik McDermott, and Georg Heigold. A gaussian mixture model layer jointly optimized with discriminative features within a deep neural network architecture. In Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on, pp. 4270– 4274. IEEE, 2015. ",
1325
+ "bbox": [
1326
+ 174,
1327
+ 868,
1328
+ 825,
1329
+ 924
1330
+ ],
1331
+ "page_idx": 9
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Gul Varol, Ivan Laptev, and Cordelia Schmid. Long-term Temporal Convolutions for Action Recog- ¨ nition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. \nHuijuan Xu, Abir Das, and Kate Saenko. R-c3d: Region convolutional 3d network for temporal activity detection. arXiv preprint arXiv:1703.07814, 2017. \nSerena Yeung, Olga Russakovsky, Ning Jin, Mykhaylo Andriluka, Greg Mori, and Li Fei-Fei. Every moment counts: Dense detailed labeling of actions in complex videos. International Journal of Computer Vision (IJCV), pp. 1–15, 2015. \nSerena Yeung, Olga Russakovsky, Greg Mori, and Li Fei-Fei. End-to-end learning of action detection from frame glimpses in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2678–2687, 2016. \nChristopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007. \nYue Zhao, Yuanjun Xiong, Limin Wang, Zhirong Wu, Xiaoou Tang, and Dahua Lin. Temporal action detection with structured segment networks. arXiv preprint arXiv:1704.06228, 2017. ",
1336
+ "bbox": [
1337
+ 171,
1338
+ 103,
1339
+ 826,
1340
+ 347
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "A IMPLEMENTATION DETAILS ",
1347
+ "text_level": 1,
1348
+ "bbox": [
1349
+ 178,
1350
+ 102,
1351
+ 439,
1352
+ 117
1353
+ ],
1354
+ "page_idx": 11
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "As our base per-segment CNN, we use the I3D (Carreira & Zisserman, 2017) network pretrained on the ImageNet and Kinetics (Kay et al., 2017) datasets. I3D obtained state-of-the-art results on segmented video tasks, and this allows us to obtain reliable $v _ { t }$ . We also use two-stream version of InceptionV3 (Szegedy et al., 2016) pretrained on Imagenet and Kinetics as our base per-frame CNN, and compared them. We chose InceptionV3 as it is deeper than previous two-stream CNNs such as (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016). We extracted frames from the videos at 25 fps, computed TVL1 (Zach et al., 2007) optical flow, clipped to $[ - 2 0 , 2 0 ]$ . For InceptionV3, we computed features for every 3 frames (8 fps). For I3D, every frame was used as the input. I3D has a temporal stride of 8, resulting in 3 features per second (3 fps). ",
1359
+ "bbox": [
1360
+ 174,
1361
+ 135,
1362
+ 825,
1363
+ 258
1364
+ ],
1365
+ "page_idx": 11
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "We implemented our TGM layers as well as other baseline layers in PyTorch. Our default setting was as follows: for 3-layer models, we set $L = 1 0$ for frame-based features (i.e., InceptionV3) and $L = 5$ for segment-based features (i.e., I3D), as each segment already contains some temporal information. For 1-layer models, we set $L = 3 0$ for frame-based features and $L = 1 5$ for segmentbased features. We set $M = 1 6$ and $C _ { o u t } = 8 0 $ and $C _ { o u t } = 6 5$ for the last TGM layer. We found these values to work well on a held out portion of the training set of MultiTHUMOS. In all models, we used one fully-connected layer at the end to make the per-frame or per-segment classification. ",
1370
+ "bbox": [
1371
+ 174,
1372
+ 265,
1373
+ 825,
1374
+ 361
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "We trained our models using the Adam (Kingma & Ba, 2014) optimizer with the learning rate set to 0.01. We decayed the learning rate by a factor of 10 after every 10 training epochs. We trained our models for 50 epochs. We plan to make all our source code and trained models publicly available once the paper is published. ",
1381
+ "bbox": [
1382
+ 174,
1383
+ 366,
1384
+ 825,
1385
+ 422
1386
+ ],
1387
+ "page_idx": 11
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "B HYPERPARAMETER EXPERIMENTS ",
1392
+ "text_level": 1,
1393
+ "bbox": [
1394
+ 174,
1395
+ 444,
1396
+ 496,
1397
+ 460
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "We conducted a set of experiments to compare the effects of the temporal duration, $L$ , number of Gaussians, $M$ , and the number of output channels, $C _ { o u t }$ . For these experiments, we only used the one-stream version of I3D with RGB inputs. ",
1404
+ "bbox": [
1405
+ 176,
1406
+ 477,
1407
+ 821,
1408
+ 518
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Effect of $L$ : In Table 6, we compare different values of $L$ . For these experiments, we use $M = 1 6$ and $C _ { o u t } = 1 6$ . We find that the 3-layer model with $L = 5$ performs the best. With I3D features, this allows the model to capture up to 8 seconds of information. The average activity in MultiTHUMOS is 3.3 seconds long and the maximum is 14.7 seconds long, and with this setting, the model is able to capture enough temporal context to perform well. Larger values of $L$ capture too much temporal information, but due to the Gaussian structure, it does not drastically harm performance. Figure 6 shows that even with longer kernels, the Gaussians learn to focus mostly on the center of the interval and capture the rough duration of the activities. Thus, having too long intervals does not drastically harm performance, which is in contrast to the standard 1-D convolution. Note that for Charades, the temporal kernels are learned to capture much longer temporal duration, as the average activity in charades is 12.8 seconds and larger values of $L$ perform better. ",
1415
+ "bbox": [
1416
+ 174,
1417
+ 535,
1418
+ 825,
1419
+ 686
1420
+ ],
1421
+ "page_idx": 11
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Figure 6 illustrates examples of the learned TGM kernels of various lengths. The figure shows that the kernels focus on short temporal intervals on MultiTHUMOS even if we make the filters longer, as the activities are an average of 3.3 seconds long. On Charades, the TGM kernels learn to capture much longer intervals, as the activities are an average of 12.8 seconds long. We believe that this suggests TGMs are learning to capture information from the important necessary intervals. ",
1426
+ "bbox": [
1427
+ 174,
1428
+ 693,
1429
+ 823,
1430
+ 762
1431
+ ],
1432
+ "page_idx": 11
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "In Table 6, we also report the results of using a standard 1-D conv. layer with different $L$ values. The number of parameters in our TGM layer is independent of $L$ , however, with the standard 1-D conv. layer, the number of parameters increases as $L$ increases. We find that increasing $L$ with 1-D convolution helps for small values of $L$ , but for $L > 1 5$ , the performance drastically drops, while TGM layers only show a small decrease. ",
1437
+ "bbox": [
1438
+ 174,
1439
+ 768,
1440
+ 823,
1441
+ 837
1442
+ ],
1443
+ "page_idx": 11
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Effect of $M$ : In Table 7, we compare different values of $M$ . For these experiments, we set $L = 1 5$ and $C _ { o u t } = 1 6$ . We find that $M = 1 6$ performs best, suggesting that smaller values of $M$ restrict the possible temporal kernels too much. We also observe that larger values of $M$ performs slightly worse than $M = 1 6$ (but not much), likely because they introduce more parameters than needed. When $M$ and $L$ have similar values, it allows the model to learn a sufficient number of Gaussians and create a diverse range of temporal kernels. When $M$ is larger than $L$ , it results in learning a kernel similar to standard 1-D convolution. ",
1448
+ "bbox": [
1449
+ 174,
1450
+ 854,
1451
+ 823,
1452
+ 924
1453
+ ],
1454
+ "page_idx": 11
1455
+ },
1456
+ {
1457
+ "type": "table",
1458
+ "img_path": "images/496248dff304ce2ec268cfe0b46b066bd66a0fc5ac12d42056caf34981b030b3.jpg",
1459
+ "table_caption": [
1460
+ "Table 6: Effect of $L$ on MultiTHUMOS and Charades using only RGB I3D features. Note that the 3 TGM layer models have larger temporal resolution than the 1 TGM layer models for the same values of $L$ . We also compare to using standard one-layer 1-D conv layer with different values of $L$ . "
1461
+ ],
1462
+ "table_footnote": [],
1463
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">MultiTHUMOS</td><td colspan=\"3\">Charades</td></tr><tr><td>1 Layer</td><td>3 Layers</td><td>1-D Conv</td><td>1 Layer</td><td>3 Layers</td><td>1-D Conv</td></tr><tr><td>I3DBaseline</td><td>22.3</td><td>=</td><td>=</td><td>15.3</td><td>=</td><td>=</td></tr><tr><td>L=3</td><td>30.2</td><td>31.7</td><td>26.6</td><td>15.5</td><td>16.1</td><td>15.5</td></tr><tr><td>L=5</td><td>32.5</td><td>37.2</td><td>28.3</td><td>15.7</td><td>17.8</td><td>16.3</td></tr><tr><td>L=10</td><td>34.5</td><td>35.4</td><td>31.7</td><td>16.1</td><td>18.2</td><td>16.6</td></tr><tr><td>L=15</td><td>36.1</td><td>34.1</td><td>32.5</td><td>17.5</td><td>18.6</td><td>16.8</td></tr><tr><td>L=30</td><td>32.5</td><td>33.9</td><td>26.5</td><td>18.1</td><td>18.9</td><td>12.1</td></tr><tr><td>L= 50</td><td>32.1</td><td>33.7</td><td>15.4</td><td>18.3</td><td>18.8</td><td>6.7</td></tr></table>",
1464
+ "bbox": [
1465
+ 212,
1466
+ 154,
1467
+ 785,
1468
+ 292
1469
+ ],
1470
+ "page_idx": 12
1471
+ },
1472
+ {
1473
+ "type": "table",
1474
+ "img_path": "images/5901547c2929b615c8bd5fc6732a59595b3ed3a1b209319ebe0be4d9a5947c37.jpg",
1475
+ "table_caption": [
1476
+ "Table 7: Comparison of various values of $M$ on MultiTHUMOS and Charades using RGB I3D features. For these experiments, 1 layer was used with $L = 1 5$ and $C _ { o u t } = 1 6$ . "
1477
+ ],
1478
+ "table_footnote": [],
1479
+ "table_body": "<table><tr><td></td><td>MultiTHUMOS</td><td>Charades</td></tr><tr><td>M=2</td><td>27.8</td><td>15.5</td></tr><tr><td>M=4</td><td>33.1</td><td>16.2</td></tr><tr><td>M=8</td><td>34.8</td><td>17.5</td></tr><tr><td>M=16</td><td>36.1</td><td>17.5</td></tr><tr><td>M= 32</td><td>35.7</td><td>17.1</td></tr><tr><td>M= 64</td><td>35.8</td><td>17.3</td></tr></table>",
1480
+ "bbox": [
1481
+ 187,
1482
+ 380,
1483
+ 473,
1484
+ 491
1485
+ ],
1486
+ "page_idx": 12
1487
+ },
1488
+ {
1489
+ "type": "table",
1490
+ "img_path": "images/7dc521f452b9ce7c13d0e999b91925c57b7ad91123b45e675542632467e4a602.jpg",
1491
+ "table_caption": [
1492
+ "Table 8: Comparison of values of $C _ { o u t }$ on MultiTHUMOS and Charades using RGB I3D features. For these experiments, 1 layer was used with $L = 1 5$ and $M = 1 6$ . "
1493
+ ],
1494
+ "table_footnote": [],
1495
+ "table_body": "<table><tr><td></td><td>MultiTHUMOS</td><td>Charades</td></tr><tr><td>Cout 1</td><td>33.5</td><td>16.2</td></tr><tr><td>Cout 4</td><td>34.2</td><td>17.4</td></tr><tr><td>Cout 8</td><td>35.5</td><td>17.5</td></tr><tr><td>Cout 16</td><td>36.1</td><td>17.5</td></tr><tr><td>Cout 32</td><td>36.0</td><td>17.2</td></tr><tr><td>Cout 64</td><td>36.1</td><td>17.4</td></tr><tr><td>Cout = 80</td><td>36.1</td><td>17.5</td></tr></table>",
1496
+ "bbox": [
1497
+ 516,
1498
+ 372,
1499
+ 816,
1500
+ 497
1501
+ ],
1502
+ "page_idx": 12
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "",
1507
+ "bbox": [
1508
+ 176,
1509
+ 525,
1510
+ 825,
1511
+ 553
1512
+ ],
1513
+ "page_idx": 12
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Effect of $C _ { o u t }$ : In Table 8, we compare different values of $C _ { o u t }$ . For these experiments, $L =$ 15, we used 1-layer and $M = 1 6$ . We find that $C _ { o u t }$ performs best when set to 16 or larger on these datasets. Larger values of $C _ { o u t }$ seem to capture redundant information, as it does not lower performance. ",
1518
+ "bbox": [
1519
+ 173,
1520
+ 577,
1521
+ 825,
1522
+ 633
1523
+ ],
1524
+ "page_idx": 12
1525
+ },
1526
+ {
1527
+ "type": "image",
1528
+ "img_path": "images/744a3159af7040ba3ca43621d47d5b12f250bda0c5cfd68bf678d41847d83116.jpg",
1529
+ "image_caption": [
1530
+ "Figure 6: Illustration of several learned TGM kernels. On MultiTHUMOS, it learns to focus on shorter intervals to capture shorter events. On Charades, the Gaussians have a larger $\\sigma$ value, resulting in filters that attend to longer temporal durations. "
1531
+ ],
1532
+ "image_footnote": [],
1533
+ "bbox": [
1534
+ 184,
1535
+ 659,
1536
+ 823,
1537
+ 863
1538
+ ],
1539
+ "page_idx": 12
1540
+ },
1541
+ {
1542
+ "type": "image",
1543
+ "img_path": "images/b998f17e5d56ec0eab5405aa1323e9b9a726ecf049f10c25969a91979fea53b8.jpg",
1544
+ "image_caption": [
1545
+ "Figure 7: (a-c) Different forms of 1-D temporal convolutions which take a $D \\times T$ input and produces a $C \\times T$ output based on $C$ number of $D \\times L$ kernels: (a) the standard 1-D convolution, $\\mathbf { ( b ) }$ using Gaussian mixtures for 1-D convolution while sharing Gaussian mixtures across input channels, and (c) using $D$ different Gaussian mixtures for 1-D convolution. (d) Our TGM layer in its simplest form (i.e., 1-layer case) applying the $1 \\times L$ temporal kernel in a 2-D convolutional fashion, maintaining both time and feature axis. "
1546
+ ],
1547
+ "image_footnote": [],
1548
+ "bbox": [
1549
+ 184,
1550
+ 99,
1551
+ 813,
1552
+ 203
1553
+ ],
1554
+ "page_idx": 13
1555
+ },
1556
+ {
1557
+ "type": "image",
1558
+ "img_path": "images/1a1a1342d875bc0c72fde175610ed02c50531ca14855a426d92b84f4adcfae2a.jpg",
1559
+ "image_caption": [
1560
+ "Figure 8: A temporal convolutional layer with channel combination similar to Fig. 3. The difference is that this layer does not learn Gaussian mixtures, but unconstrained 1-D temporal kernels. "
1561
+ ],
1562
+ "image_footnote": [],
1563
+ "bbox": [
1564
+ 173,
1565
+ 340,
1566
+ 826,
1567
+ 482
1568
+ ],
1569
+ "page_idx": 13
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "C COMPARISON OF DIFFERENT LAYER FORMS ",
1574
+ "text_level": 1,
1575
+ "bbox": [
1576
+ 174,
1577
+ 579,
1578
+ 576,
1579
+ 595
1580
+ ],
1581
+ "page_idx": 13
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "To confirm the various aspects of our design, we conducted experiments comparing different types of temporal convolution. In Fig. 7a we illustrate the standard 1-D convolution, taking $D \\times T$ input and producing a $C \\times T$ output, where $D$ is the number of input channels and $C$ is the number of output channels. In Fig. 7b, we illustrate the method of applying a Gaussian mixture kernel as 1-D convolution. Here, the Gaussian mixture kernel is shared by all $D$ input channels and we learn a $C$ number of such kernels. In Fig. 7c, we illustrate the approach of applying a Gaussian mixture kernel as 1-D convolution while learning $D$ different Gaussian mixtures. This is very similar to the standard 1-D convolution, except that the filter values are constrained to have the shape of Gaussian mixtures. ",
1586
+ "bbox": [
1587
+ 173,
1588
+ 636,
1589
+ 825,
1590
+ 760
1591
+ ],
1592
+ "page_idx": 13
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "Fig. 8 illustrates one more baseline. This is similar to our full TGM layer with the channelcombination described Fig. 3. However, in this baseline, instead of learning Gaussian mixtures, we learn $C _ { i n } \\cdot C _ { o u t }$ number of $1 \\times L$ kernels. The kernel values are left unconstrained. While the TGM layer has $2 \\cdot M + C _ { i n } \\cdot C _ { o u t } \\cdot M + C _ { i n } \\cdot C _ { o u t }$ parameters, this layer has $L \\cdot C _ { i n } \\cdot C _ { o u t } \\cdot M + C _ { i n } \\cdot C _ { o u t }$ , which is more than the TGM layer. ",
1597
+ "bbox": [
1598
+ 173,
1599
+ 765,
1600
+ 825,
1601
+ 835
1602
+ ],
1603
+ "page_idx": 13
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "text": "In Table 9, we compare the results of the various above-mentioned layers on MultiTHUMOS using RGB I3D features. We find that the Fig. 7b method performs poorly, while the Fig. 7c method slightly outperforms the standard 1-D convolution. The Fig. 8 method is slightly better than the standard 1-D convolution, but performs worse than Fig. 7c. However, none of these layers perform as well as our TGM layer, confirming that both the design of learning Gaussian mixtures and maintaining temporal channel axis are important for activity detection. ",
1608
+ "bbox": [
1609
+ 173,
1610
+ 842,
1611
+ 825,
1612
+ 924
1613
+ ],
1614
+ "page_idx": 13
1615
+ },
1616
+ {
1617
+ "type": "table",
1618
+ "img_path": "images/e45aa46cb538ad26d05b75cf673ca7b1029e8448f398c1b9e7188e0c3fe811e1.jpg",
1619
+ "table_caption": [
1620
+ "Table 9: Comparison of the different forms of temporal convolution on MultiTHUMOS using RGB I3D features. We set $L = 1 5$ and used 1 layer models for these experiments. "
1621
+ ],
1622
+ "table_footnote": [],
1623
+ "table_body": "<table><tr><td></td><td>MultiTHUMOS</td></tr><tr><td>Standard 1-D Convolution (Fig. 7a)</td><td>32.5</td></tr><tr><td>The layer described in Fig.7b</td><td>28.6</td></tr><tr><td>The layer described in Fig. 7c</td><td>33.2</td></tr><tr><td>The layer described in Fig. 8</td><td>32.8</td></tr><tr><td>Our TGM Layer</td><td>36.1</td></tr></table>",
1624
+ "bbox": [
1625
+ 308,
1626
+ 140,
1627
+ 689,
1628
+ 238
1629
+ ],
1630
+ "page_idx": 14
1631
+ },
1632
+ {
1633
+ "type": "image",
1634
+ "img_path": "images/99b2898871e544d67d45bf16b97e65b0e77b16df16b200a2ad0c06f579924c1f.jpg",
1635
+ "image_caption": [
1636
+ "Figure 9: Examples of several of the activities in the MLB-YouTube dataset: (a) Pitch, (b) Hit, (c) Bunt, (d) Hit by pitch, (e) No activity. This shows the difficulty of this dataset, as the difference between hit and bunt, swing and no swing are very small. "
1637
+ ],
1638
+ "image_footnote": [],
1639
+ "bbox": [
1640
+ 174,
1641
+ 253,
1642
+ 823,
1643
+ 344
1644
+ ],
1645
+ "page_idx": 14
1646
+ },
1647
+ {
1648
+ "type": "text",
1649
+ "text": "D EXPERIMENTS ON ADDITIONAL DATASETS ",
1650
+ "text_level": 1,
1651
+ "bbox": [
1652
+ 174,
1653
+ 428,
1654
+ 566,
1655
+ 443
1656
+ ],
1657
+ "page_idx": 14
1658
+ },
1659
+ {
1660
+ "type": "text",
1661
+ "text": "D.1 MLB-YOUTUBE DATASET ",
1662
+ "text_level": 1,
1663
+ "bbox": [
1664
+ 176,
1665
+ 465,
1666
+ 401,
1667
+ 479
1668
+ ],
1669
+ "page_idx": 14
1670
+ },
1671
+ {
1672
+ "type": "text",
1673
+ "text": "D.1.1 DATASET ",
1674
+ "text_level": 1,
1675
+ "bbox": [
1676
+ 174,
1677
+ 496,
1678
+ 295,
1679
+ 511
1680
+ ],
1681
+ "page_idx": 14
1682
+ },
1683
+ {
1684
+ "type": "text",
1685
+ "text": "The MLB-YouTube dataset (Piergiovanni & Ryoo, 2018a) consists of 20 baseball games from the 2017 MLB post-season available on YouTube. This dataset consists of over 42 hours of video. For these experiments, we used the continuous video setting which have 2,126 1-2 minute long clips. Each clip is densely annotated with the baseball activities that occur. There are 8 activity classes: pitch, strike, ball, swing, hit, foul, hit by pitch, and bunt. Examples of some of these classes are shown in Fig. 9. Each continuous clip contains on average of 7.2 activities, giving a total of over 15,000 activity instances in the dataset. ",
1686
+ "bbox": [
1687
+ 174,
1688
+ 525,
1689
+ 825,
1690
+ 621
1691
+ ],
1692
+ "page_idx": 14
1693
+ },
1694
+ {
1695
+ "type": "text",
1696
+ "text": "What makes this dataset challenging is that the variation between classes is very small. In ActivityNet (Heilbron et al., 2015), for example, the difference between swimming and brushing hair is drastic. The background, motion, and even size of the person in the video is different. However, in broadcast baseball videos, the difference between a ball and a strike, or a swing and a bunt, are small. All actions are recorded from the same camera angle as we can confirm from Fig. 9. ",
1697
+ "bbox": [
1698
+ 174,
1699
+ 627,
1700
+ 825,
1701
+ 695
1702
+ ],
1703
+ "page_idx": 14
1704
+ },
1705
+ {
1706
+ "type": "text",
1707
+ "text": "D.1.2 RESULTS ",
1708
+ "text_level": 1,
1709
+ "bbox": [
1710
+ 174,
1711
+ 723,
1712
+ 295,
1713
+ 738
1714
+ ],
1715
+ "page_idx": 14
1716
+ },
1717
+ {
1718
+ "type": "text",
1719
+ "text": "In Table 10, we compare various approaches on this dataset. Our TGM layers improve over the baseline by ${ \\sim } 6 \\%$ (40.1 vs. 34.2). Additionally, we compare to methods using the super-event representation (Piergiovanni & Ryoo, 2018b), which previously achieved state-of-the-art performance on several activity detection datasets. On this dataset, our approach outperforms the super-event representation, and further the concatenation of our TGM representation with such super-event representation performs best by a significant margin $\\sim 1 3 \\%$ compared to the baseline). This suggests that TGMs and super-event capture different temporal information and are both useful to the detection task. ",
1720
+ "bbox": [
1721
+ 174,
1722
+ 752,
1723
+ 825,
1724
+ 862
1725
+ ],
1726
+ "page_idx": 14
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "We further find that using multiple, standard temporal convolution layers leads to worse performance, likely due to overfitting from the large number of parameters. While using multiple TGM layers improves performance, confirming that the Gaussian structure and sparsity constraint benefits model learning. ",
1731
+ "bbox": [
1732
+ 176,
1733
+ 868,
1734
+ 823,
1735
+ 924
1736
+ ],
1737
+ "page_idx": 14
1738
+ },
1739
+ {
1740
+ "type": "table",
1741
+ "img_path": "images/16813ccfc3d26c5b3fb17c95c20dfe0de98b9da80a158b4d18f1a3f02ca22604.jpg",
1742
+ "table_caption": [
1743
+ "Table 10: Result mAP on the MLB-YouTube dataset using InceptionV3 and I3D to obtain features. Our TGM layers significantly outperform the baseline models. "
1744
+ ],
1745
+ "table_footnote": [],
1746
+ "table_body": "<table><tr><td>Model</td><td>Spatial</td><td>Temporal</td><td>Two-stream</td></tr><tr><td>Random</td><td>13.4</td><td>13.4</td><td>13.4</td></tr><tr><td>InceptionV3</td><td>31.2</td><td>31.8</td><td>31.9</td></tr><tr><td>InceptionV3 +LSTM</td><td>32.1</td><td>33.5</td><td>34.1</td></tr><tr><td>InceptionV3 +1 temporal conv</td><td>32.8</td><td>34.4</td><td>35.2</td></tr><tr><td>InceptionV3 + 3 temporal conv</td><td>28.4</td><td>29.8</td><td>30.1</td></tr><tr><td>InceptionV3 + super-events</td><td>31.5</td><td>36.2</td><td>39.6</td></tr><tr><td>InceptionV3 +1TGM</td><td>32.4</td><td>36.3</td><td>37.4</td></tr><tr><td>InceptionV3+3 TGM</td><td>33.2</td><td>38.2</td><td>38.2</td></tr><tr><td>InceptionV3 + 3 TGM+super-events</td><td>34.6</td><td>42.4</td><td>42.9</td></tr><tr><td>I3D</td><td>33.8</td><td>35.1</td><td>34.2</td></tr><tr><td>I3D + LSTM</td><td>36.2</td><td>37.3</td><td>39.4</td></tr><tr><td>I3D +1 temporal conv</td><td>37.3</td><td>38.6</td><td>39.9</td></tr><tr><td>I3D + 3 temporal conv</td><td>32.4</td><td>34.6</td><td>35.6</td></tr><tr><td>I3D + super-events</td><td>38.7</td><td>38.6</td><td>39.1</td></tr><tr><td>I3D+1TGM</td><td>35.5</td><td>37.5</td><td>38.5</td></tr><tr><td>I3D+3 TGM</td><td>36.5</td><td>38.4</td><td>40.1</td></tr><tr><td>I3D +3 TGM+super-events</td><td>39.4</td><td>46.0</td><td>47.1</td></tr></table>",
1747
+ "bbox": [
1748
+ 245,
1749
+ 138,
1750
+ 753,
1751
+ 412
1752
+ ],
1753
+ "page_idx": 15
1754
+ },
1755
+ {
1756
+ "type": "table",
1757
+ "img_path": "images/21025fd127391862b655a328f8a33cb2e284c7a676da3889cef1be5f3ae4b399.jpg",
1758
+ "table_caption": [
1759
+ "Table 11: Results on AVA dataset with the temporal annotation-only setting (i.e., frame classification without using bounding box training labels). "
1760
+ ],
1761
+ "table_footnote": [],
1762
+ "table_body": "<table><tr><td></td><td>mAP</td></tr><tr><td>Random</td><td>2.65</td></tr><tr><td>I3D baseline</td><td>7.5</td></tr><tr><td>I3D + 3 temporal conv. layers</td><td>7.9</td></tr><tr><td>I3D+LSTM</td><td>7.8</td></tr><tr><td>I3D + super-events(Piergiovanni &amp; Ryoo,2018b)</td><td>9.8</td></tr><tr><td>I3D+1TGMs</td><td>11.2</td></tr><tr><td>I3D +3 TGMs</td><td>14.5</td></tr><tr><td>I3D +3 TGMs + super-events</td><td>14.9</td></tr></table>",
1763
+ "bbox": [
1764
+ 299,
1765
+ 458,
1766
+ 697,
1767
+ 597
1768
+ ],
1769
+ "page_idx": 15
1770
+ },
1771
+ {
1772
+ "type": "text",
1773
+ "text": "D.2 AVA ",
1774
+ "text_level": 1,
1775
+ "bbox": [
1776
+ 174,
1777
+ 616,
1778
+ 251,
1779
+ 630
1780
+ ],
1781
+ "page_idx": 15
1782
+ },
1783
+ {
1784
+ "type": "text",
1785
+ "text": "D.2.1 DATASET ",
1786
+ "text_level": 1,
1787
+ "bbox": [
1788
+ 174,
1789
+ 641,
1790
+ 297,
1791
+ 655
1792
+ ],
1793
+ "page_idx": 15
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "AVA (Gu et al., 2017) is a large-scale video dataset containing of 80 atomic action classes in $5 7 \\mathrm { k }$ video clips. These clips are drawn from movies. Existing datasets, such as Charades, have very specific actions that depend on objects, such as holding a cup vs. holding a picture. In AVA, the actions are intentionally generic, such as sit, stand, hold, carry, etc. Further, the AVA dataset is annotated with both spatial and temporal locations of activities. Since we are interested in temporal activity detection, we follow the setting of Piergiovanni & Ryoo (2018b) and label each frame with the occurring activities while ignoring the spatial location. We evaluate performance following the same method as MultiTHUMOS, Charades and MLB-YouTube by measuring per-frame mAP. ",
1798
+ "bbox": [
1799
+ 174,
1800
+ 665,
1801
+ 825,
1802
+ 775
1803
+ ],
1804
+ "page_idx": 15
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "D.2.2 RESULTS ",
1809
+ "text_level": 1,
1810
+ "bbox": [
1811
+ 174,
1812
+ 790,
1813
+ 295,
1814
+ 804
1815
+ ],
1816
+ "page_idx": 15
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "In Table 11, we present the results of our model. We again find that temporal convolution and LSTMs provide some benefit over the baseline, but TGM layers further improve performance. Again, combining the TGM, which captures local temporal structure, with super-events which capture global temporal structure, provides the best performance by $\\sim 7 . 4 \\%$ . ",
1821
+ "bbox": [
1822
+ 174,
1823
+ 814,
1824
+ 823,
1825
+ 869
1826
+ ],
1827
+ "page_idx": 15
1828
+ }
1829
+ ]
parse/train/Hyfg5o0qtm/Hyfg5o0qtm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hyfg5o0qtm/Hyfg5o0qtm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxhqhVKPB/HyxhqhVKPB.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxhqhVKPB/HyxhqhVKPB_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxhqhVKPB/HyxhqhVKPB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxhqhVKPB/HyxhqhVKPB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/OJLaKwiXSbx/OJLaKwiXSbx.md ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Align before Fuse: Vision and Language Representation Learning with Momentum Distillation
2
+
3
+ Junnan Li, Ramprasaath R. Selvaraju, Akhilesh D. Gotmare Shafiq Joty, Caiming Xiong, Steven C.H. Hoi Salesforce Research {junnan.li,rselvaraju,akhilesh.gotmare,sjoty,shoi}@salesforce.com
4
+
5
+ # Abstract
6
+
7
+ Large-scale vision and language representation learning has shown promising improvements on various vision-language tasks. Most existing methods employ a transformer-based multimodal encoder to jointly model visual tokens (region-based image features) and word tokens. Because the visual tokens and word tokens are unaligned, it is challenging for the multimodal encoder to learn image-text interactions. In this paper, we introduce a contrastive loss to ALign the image and text representations BEfore Fusing (ALBEF) them through cross-modal attention, which enables more grounded vision and language representation learning. Unlike most existing methods, our method does not require bounding box annotations nor high-resolution images. To improve learning from noisy web data, we propose momentum distillation, a self-training method which learns from pseudo-targets produced by a momentum model. We provide a theoretical analysis of ALBEF from a mutual information maximization perspective, showing that different training tasks can be interpreted as different ways to generate views for an image-text pair. ALBEF achieves state-of-the-art performance on multiple downstream visionlanguage tasks. On image-text retrieval, ALBEF outperforms methods that are pre-trained on orders of magnitude larger datasets. On VQA and $\mathrm { \Delta N L V R ^ { 2 } }$ , ALBEF achieves absolute improvements of $2 . 3 7 \%$ and $3 . 8 4 \%$ compared to the state-ofthe-art, while enjoying faster inference speed. Code and models are available at https://github.com/salesforce/ALBEF.
8
+
9
+ # 1 Introduction
10
+
11
+ Vision-and-Language Pre-training (VLP) aims to learn multimodal representations from large-scale image-text pairs that can improve downstream Vision-and-Language $( \mathrm { V } { + } \mathrm { L } )$ tasks. Most existing VLP methods (e.g. LXMERT [1], UNITER [2], OSCAR $\pmb { \| 3 \| }$ ) rely on pre-trained object detectors to extract region-based image features, and employ a multimodal encoder to fuse the image features with word tokens. The multimodal encoder is trained to solve tasks that require joint understanding of image and text, such as masked language modeling (MLM) and image-text matching (ITM).
12
+
13
+ While effective, this VLP framework suffers from several key limitations: (1) The image features and the word token embeddings reside in their own spaces, which makes it challenging for the multimodal encoder to learn to model their interactions; (2) The object detector is both annotation-expensive and compute-expensive, because it requires bounding box annotations during pre-training, and highresolution (e.g. $6 0 0 \times 1 0 0 0 )$ images during inference; (3) The widely used image-text datasets [4, 5] are collected from the web and are inherently noisy, and existing pre-training objectives such as MLM may overfit to the noisy text and degrade the model’s generalization performance.
14
+
15
+ We propose ALign BEfore Fuse (ALBEF), a new VLP framework to address these limitations. We first encode the image and text independently with a detector-free image encoder and a text encoder. Then we use a multimodal encoder to fuse the image features with the text features through crossmodal attention. We introduce an intermediate image-text contrastive (ITC) loss on representations from the unimodal encoders, which serves three purposes: (1) it aligns the image features and the text features, making it easier for the multimodal encoder to perform cross-modal learning; (2) it improves the unimodal encoders to better understand the semantic meaning of images and texts; (3) it learns a common low-dimensional space to embed images and texts, which enables the image-text matching objective to find more informative samples through our contrastive hard negative mining.
16
+
17
+ To improve learning under noisy supervision, we propose Momentum Distillation (MoD), a simple method which enables the model to leverage a larger uncurated web dataset. During training, we keep a momentum version of the model by taking the moving-average of its parameters, and use the momentum model to generate pseudo-targets as additional supervision. With MoD, the model is not penalized for producing other reasonable outputs that are different from the web annotation. We show that MoD not only improves pre-training, but also downstream tasks with clean annotations.
18
+
19
+ We provide theoretical justifications on ALBEF from the perspective of mutual information maximization. Specifically, we show that ITC and MLM maximize a lower bound on the mutual information between different views of an image-text pair, where the views are generated by taking partial information from each pair. From this perspective, our momentum distillation can be interpreted as generating new views with semantically similar samples. Therefore, ALBEF learns vision-language representations that are invariant to semantic-preserving transformations.
20
+
21
+ We demonstrate the effectiveness of ALBEF on various downstream $_ { \mathrm { V + L } }$ tasks including image-text retrieval, visual question answering, visual reasoning, visual entailment, and weakly-supervised visual grounding. ALBEF achieves substantial improvements over existing state-of-the-art methods. On image-text retrieval, it outperforms methods that are pre-trained on orders of magnitude larger datasets (CLIP $\pmb { \Vert 6 \Vert }$ and ALIGN $\bar { \mathbb { Z } } \bar { \mathbb { I } }$ ). On VQA and $\mathrm { \Delta N L V R ^ { 2 } }$ , it achieves absolute improvements of $\mathrm { \bar { 2 . 3 7 \% } }$ and $3 . 8 4 \%$ compared to the state-of-the-art method VILLA $\textcircled { 8 }$ , while enjoying much faster inference speed. We also provide quantitative and qualitative analysis on ALBEF using Grad-CAM $\bigstar \bigstar$ , which reveals its ability to perform accurate object, attribute and relationship grounding implicitly.
22
+
23
+ # 2 Related Work
24
+
25
+ # 2.1 Vision-Language Representation Learning
26
+
27
+ Most existing work on vision-language representation learning fall into two categories. The first category focuses on modelling the interactions between image and text features with transformerbased multimodal encoders [10, 11, 12, 13, 1, 14, 15, 2, 3, 16, 8, 17, 18]. Methods in this category achieve superior performance on downstream $_ { \mathrm { V + L } }$ tasks that require complex reasoning over image and text (e.g. NLVR2 [19], VQA $\pmb { \mathbb { D } } \pmb { \mathbb { O } } \Vert$ ), but most of them require high-resolution input images and pre-trained object detectors. A recent method $\mathbb { \left| \mathbb { Z } \right\| }$ improves inference speed by removing the object detector, but results in lower performance. The second category focuses on learning separate unimodal encoders for image and text [22, 23, 6, 7]. The recent CLIP $\boxed { 6 }$ and ALIGN [7] perform pre-training on massive noisy web data using a contrastive loss, one of the most effective loss for representation learning [24, 25, 26, 27]. They achieve remarkable performance on image-text retrieval tasks, but lack the ability to model more complex interactions between image and text for other $_ { \mathrm { V + L } }$ tasks $\scriptstyle { \left[ \left[ 2 1 \right] \right] }$ .
28
+
29
+ ALBEF unifies the two categories, leading to strong unimodal and multimodal representations with superior performance on both retrieval and reasoning tasks. Furthermore, ALBEF does not require object detectors, a major computation bottleneck for many existing methods [1, 2, 3, 8, 17].
30
+
31
+ # 2.2 Knowledge Distillation
32
+
33
+ Knowledge distillation $\pmb { \left[ \widetilde { \left| 2 8 \right| } \right] }$ aims to improve a student model’s performance by distilling knowledge from a teacher model, usually through matching the student’s prediction with the teacher’s. While most methods focus on distilling knowledge from a pre-trained teacher model [28, 29, 30, 31, 32], online distillation [33, 34] simultaneously trains multiple models and use their ensemble as the teacher. Our momentum distillation can be interpreted as a form of online self-distillation, where a temporal ensemble of the student model is used as the teacher. Similar ideas have been explored in semi-supervised learning $\pmb { \Vert 3 5 \Vert }$ , label noise learning $\textcircled { \left| 3 6 \right| }$ , and very recently in contrastive learning $\pmb { \mathbb { B 7 } }$ . Different from existing studies, we theoretically and experimentally show that momentum distillation is a generic learning algorithm that can improve the model’s performance on many $_ { \mathrm { V + L } }$ tasks.
34
+
35
+ # 3 ALBEF Pre-training
36
+
37
+ In this section, we first introduce the model architecture (Section $\textcircled { 3 . 1 }$ . Then we delineate the pretraining objectives (Section $\boxed { 3 . 2 }$ , followed by the proposed momentum distillation (Section $\bar { 3 } . 3 )$ Lastly we describe the pre-training datasets (Section $3 . { \overset { \cdot } { 4 } } )$ and implementation details (Section $\underline { { \vert 3 . 5 \vert } }$
38
+
39
+ ![](images/f52f65848bf1ec30d6820d94a14836f967aa2f875accbf396dc0167dd6581d06.jpg)
40
+ Figure 1: Illustration of ALBEF. It consists of an image encoder, a text encoder, and a multimodal encoder. We propose an image-text contrastive loss to align the unimodal representations of an image-text pair before fusion. An image-text matching loss (using in-batch hard negatives mined through contrastive similarity) and a masked-language-modeling loss are applied to learn multimodal interactions between image and text. In order to improve learning with noisy data, we generate pseudo-targets using the momentum model (a moving-average version of the base model) as additional supervision during training.
41
+
42
+ # 3.1 Model Architecture
43
+
44
+ As illustrated in Figure $\mathbb { L } ,$ ALBEF contains an image encoder, a text encoder, and a multimodal encoder. We use a 12-layer visual transformer ViT-B/16 $\mathbb { \left. 3 8 \right. }$ as the image encoder, and initialize it with weights pre-trained on ImageNet-1k from $\pmb { \mathbb { B } } \mathbf { \mathbb { 1 } }$ . An input image $I$ is encoded into a sequence of embeddings: $\{ \pmb { v } _ { \mathrm { c l s } } , \pmb { v } _ { 1 } , . . . , \pmb { v } _ { N } \}$ , where $v _ { \mathrm { c l s } }$ is the embedding of the [CLS] token. We use a 6-layer transformer $\textcircled { \ 3 9 } \textcircled { }$ for both the text encoder and the multimodal encoder. The text encoder is initialized using the first 6 layers of the $\mathbf { B E R T _ { b a s e } }$ $\textcircled { | 4 0 | }$ model, and the multimodal encoder is initialized using the last 6 layers of the $\mathbf { B E R T _ { b a s e } }$ . The text encoder transforms an input text $T$ into a sequence of embeddings $\{ \boldsymbol { w } _ { \mathrm { c l s } } , \boldsymbol { w } _ { 1 } , . . . , \boldsymbol { w } _ { N } \}$ , which is fed to the multimodal encoder. The image features are fused with the text features through cross attention at each layer of the multimodal encoder.
45
+
46
+ # 3.2 Pre-training Objectives
47
+
48
+ We pre-train ALBEF with three objectives: image-text contrastive learning (ITC) on the unimodal encoders, masked language modeling (MLM) and image-text matching (ITM) on the multimodal encoder. We improve ITM with online contrastive hard negative mining.
49
+
50
+ Image-Text Contrastive Learning aims to learn better unimodal representations before fusion. It learns a similarity function $\boldsymbol { s } = \boldsymbol { g _ { v } } \big ( \boldsymbol { v } _ { \mathrm { c l s } } \big ) ^ { \top } \boldsymbol { g _ { w } } \big ( \boldsymbol { w } _ { \mathrm { c l s } } \big )$ , such that parallel image-text pairs have higher similarity scores. $g _ { v }$ and $g _ { w }$ are linear transformations that map the [CLS] embeddings to normalized lower-dimensional (256-d) representations. Inspired by MoCo $\pmb { \Vert 2 4 \Vert }$ , we maintain two queues to store the most recent $M$ image-text representations from the momentum unimodal encoders. The normalized features from the momentum encoders are denoted as $g _ { v } ^ { \prime } ( v _ { \mathrm { c l s } } ^ { \prime } )$ and $g _ { w } ^ { \prime } ( w _ { \mathrm { c l s } } ^ { \prime } )$ . We define $s ( I , T ) = g _ { v } ( \pmb { v } _ { \mathrm { c l s } } ) ^ { \top } g _ { w } ^ { \prime } ( \pmb { w } _ { \mathrm { c l s } } ^ { \prime } )$ and $s ( T , I ) = g _ { w } ( \pmb { w } _ { \mathrm { c l s } } ) ^ { \top } g _ { v } ^ { \prime } ( \pmb { v } _ { \mathrm { c l s } } ^ { \prime } )$ .
51
+
52
+ For each image and text, we calculate the softmax-normalized image-to-text and text-to-image similarity as:
53
+
54
+ $$
55
+ p _ { m } ^ { \mathrm { i 2 t } } ( I ) = \frac { \exp ( s ( I , T _ { m } ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ( I , T _ { m } ) / \tau ) } , ~ p _ { m } ^ { \mathrm { t 2 i } } ( T ) = \frac { \exp ( s ( T , I _ { m } ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ( T , I _ { m } ) / \tau ) }
56
+ $$
57
+
58
+ where $\tau$ is a learnable temperature parameter. Let ${ \boldsymbol { y } } ^ { \mathrm { i 2 t } } ( I )$ and $\boldsymbol { y } ^ { \mathrm { t 2 i } } ( \boldsymbol { T } )$ denote the ground-truth one-hot similarity, where negative pairs have a probability of 0 and the positive pair has a probability of 1. The image-text contrastive loss is defined as the cross-entropy $\mathrm { H }$ between $\pmb { p }$ and $\textbf { { y } }$ :
59
+
60
+ $$
61
+ \mathcal { L } _ { \mathrm { i t c } } = \frac { 1 } { 2 } \mathbb { E } _ { ( I , T ) \sim D } \big [ \mathrm { H } ( y ^ { \mathrm { i 2 t } } ( I ) , p ^ { \mathrm { i 2 t } } ( I ) ) + \mathrm { H } ( y ^ { \mathrm { t 2 i } } ( T ) , p ^ { \mathrm { t 2 i } } ( T ) ) \big ]
62
+ $$
63
+
64
+ ![](images/9b40d579bf8714f23012f3ca9f7342a41936bb4b8471e3021de0d7abda97496a.jpg)
65
+ Figure 2: Examples of the pseudo-targets for MLM (1st row) and ITC (2nd row). The pseudo-targets can capture visual concepts that are not described by the ground-truth text (e.g. “beautiful waterfall”, “young woman”).
66
+
67
+ Masked Language Modeling utilizes both the image and the contextual text to predict the masked words. We randomly mask out the input tokens with a probability of $15 \%$ and replace them with the special token [MASK]1. Let $\hat { T }$ denote a masked text, and $p ^ { \mathrm { m s k } } ( I , \hat { T } )$ denote the model’s predicted probability for a masked token. MLM minimizes a cross-entropy loss:
68
+
69
+ $$
70
+ \mathcal { L } _ { \mathrm { m l m } } = \mathbb { E } _ { ( I , \hat { T } ) \sim D } \mathrm { H } ( \pmb { y } ^ { \mathrm { m s k } } , \pmb { p } ^ { \mathrm { m s k } } ( I , \hat { T } ) )
71
+ $$
72
+
73
+ where $y ^ { \mathrm { m s k } }$ is a one-hot vocabulary distribution where the ground-truth token has a probability of 1.
74
+
75
+ Image-Text Matching predicts whether a pair of image and text is positive (matched) or negative (not matched). We use the multimodal encoder’s output embedding of the [CLS] token as the joint representation of the image-text pair, and append a fully-connected (FC) layer followed by softmax to predict a two-class probability $p ^ { \mathrm { i t m } }$ . The ITM loss is:
76
+
77
+ $$
78
+ \mathcal { L } _ { \mathrm { i t m } } = \mathbb { E } _ { ( I , T ) \sim D } \mathrm { H } ( \pmb { y } ^ { \mathrm { i t m } } , \pmb { p } ^ { \mathrm { i t m } } ( I , T ) )
79
+ $$
80
+
81
+ where ${ \boldsymbol { y } } ^ { \mathrm { i t m } }$ is a 2-dimensional one-hot vector representing the ground-truth label.
82
+
83
+ We propose a strategy to sample hard negatives for the ITM task with zero computational overhead. A negative image-text pair is hard if they share similar semantics but differ in fine-grained details. We use the contrastive similarity from Equation $\bigstar$ to find in-batch hard negatives. For each image in a mini-batch, we sample one negative text from the same batch following the contrastive similarity distribution, where texts that are more similar to the image have a higher chance to be sampled. Likewise, we also sample one hard negative image for each text.
84
+
85
+ The full pre-training objective of ALBEF is:
86
+
87
+ $$
88
+ \mathcal { L } = \mathcal { L } _ { \mathrm { i t c } } + \mathcal { L } _ { \mathrm { m l m } } + \mathcal { L } _ { \mathrm { i t m } }
89
+ $$
90
+
91
+ # 3.3 Momentum Distillation
92
+
93
+ The image-text pairs used for pre-training are mostly collected from the web and they tend to be noisy. Positive pairs are usually weakly-correlated: the text may contain words that are unrelated to the image, or the image may contain entities that are not described in the text. For ITC learning, negative texts for an image may also match the image’s content. For MLM, there may exist other words different from the annotation that describes the image equally well (or better). However, the one-hot labels for ITC and MLM penalize all negative predictions regardless of their correctness.
94
+
95
+ To address this, we propose to learn from pseudo-targets generated by the momentum model. The momentum model is a continuously-evolving teacher which consists of exponential-moving-average versions of the unimodal and multimodal encoders. During training, we train the base model such that its predictions match the ones from the momentum model. Specifically, for ITC, we first compute the image-text similarity using features from the momentum unimodal encoders as $s ^ { \prime } ( I , T ) \stackrel { \cdot } { = } g _ { v } ^ { \prime } ( { \pmb v } _ { \mathrm { c l s } } ^ { \prime } ) ^ { \top } \breve { g } _ { w } ^ { \prime } ( { \pmb w } _ { \mathrm { c l s } } ^ { \prime } )$ and $s ^ { \prime } ( T , I ) \stackrel { \mathrm { ~ \tiny ~ = ~ } } { = } g _ { w } ^ { \prime } ( { \pmb w } _ { \mathrm { c l s } } ) ^ { \top } g _ { v } ^ { \prime } ( { \pmb v } _ { \mathrm { c l s } } ^ { \prime } )$ . Then we compute soft pseudotargets $q ^ { \mathrm { i 2 t } }$ and $q ^ { \mathrm { t 2 i } }$ by replacing $s$ with $s ^ { \prime }$ in Equation 1. The $\mathrm { I T C } _ { \mathrm { M o D } }$ loss is defined as:
96
+
97
+ $$
98
+ { \mathcal { L } } _ { \mathrm { i t c } } ^ { \mathrm { m o d } } = ( 1 - \alpha ) { \mathcal { L } } _ { \mathrm { i t c } } + { \frac { \alpha } { 2 } } { \mathbb { E } } _ { ( I , T ) \sim D } \left[ \mathrm { K L } ( q ^ { \mathrm { i } 2 \mathrm { t } } ( I ) \parallel p ^ { \mathrm { i } 2 \mathrm { t } } ( I ) ) + \mathrm { K L } ( q ^ { \mathrm { t } 2 \mathrm { i } } ( T ) \parallel p ^ { \mathrm { t } 2 \mathrm { i } } ( T ) ) \right]
99
+ $$
100
+
101
+ Similarly, for MLM, let $\pmb q ^ { \mathrm { m s k } } ( I , \hat { T } )$ denote the momentum model’s prediction probability for the masked token, the $\mathbf { M L M } _ { \mathrm { M o D } }$ loss is:
102
+
103
+ $$
104
+ \mathcal { L } _ { \mathrm { m l m } } ^ { \mathrm { m o d } } = ( 1 - \alpha ) \mathcal { L } _ { \mathrm { m l m } } + \alpha \mathbb { E } _ { ( I , \hat { T } ) \sim D } \mathrm { K L } ( \pmb { q } ^ { \mathrm { m s k } } ( I , \hat { T } ) \parallel p ^ { \mathrm { m s k } } ( I , \hat { T } ) )
105
+ $$
106
+
107
+ In Figure $\bigstar$ we show examples of the top-5 candidates from the pseudo-targets, which effectively capture relevant words/texts for an image. More examples can be found in Appendix.
108
+
109
+ We also apply MoD to the downstream tasks. The final loss for each task is a weighted combination of the original task’s loss and the KL-divergence between the model’s prediction and the pseudo-targets. For simplicity, we set the weight $\alpha = 0 . 4$ for all pre-training and downstream tasks 2.
110
+
111
+ # 3.4 Pre-training Datasets
112
+
113
+ Following UNITER [2], we construct our pre-training data using two web datasets (Conceptual Captions [4], SBU Captions $\pmb { \mathbb { B } } \mathbf { \| }$ ) and two in-domain datasets (COCO [41] and Visual Genome [42]). The total number of unique images is $4 . 0 \mathbf { M }$ , and the number of image-text pairs is 5.1M. To show that our method is scalable with larger-scale web data, we also include the much noisier Conceptual 12M dataset $\mathbb { \lVert \rVert 3 \rVert }$ , increasing the total number of images to $1 4 . 1 \mathrm { M } \big \sharp$ Details are in Appendix.
114
+
115
+ # 3.5 Implementation Details
116
+
117
+ Our model consists of a $\mathbf { B E R T _ { b a s e } }$ with 123.7M parameters and a ViT-B/16 with $8 5 . 8 \mathbf { M }$ parameters. We pre-train the model for 30 epochs using a batch size of 512 on 8 NVIDIA A100 GPUs. We use the AdamW $\pm \boxed { \boxed { 4 4 } }$ optimizer with a weight decay of 0.02. The learning rate is warmed-up to $1 e ^ { - 4 }$ in the first 1000 iterations, and decayed to $1 e ^ { - 5 }$ following a cosine schedule. During pre-training, we take random image crops of resolution $2 5 6 \times 2 5 6$ as input, and also apply RandAugment4 [45]. During fine-tuning, we increase the image resolution to $3 8 4 \times 3 8 4$ and interpolate the positional encoding of image patches following $\left[ \left[ 3 8 \right] \right]$ . The momentum parameter for updating the momentum model is set as 0.995, and the size of the queue used for image-text contrastive learning is set as 65,536. We linearly ramp-up the distillation weight $\alpha$ from 0 to 0.4 within the 1st epoch.
118
+
119
+ # 4 A Mutual Information Maximization Perspective
120
+
121
+ In this section, we provide an alternative perspective of ALBEF and show that it maximizes a lower bound on the mutual information (MI) between different “views” of an image-text pair. ITC, MLM, and MoD can be interpreted as different ways to generate the views.
122
+
123
+ Formally, we define two random variables $a$ and $b$ as two different views of a data point. In selfsupervised learning $[ 1 2 4 , 1 2 5 , | 4 6 |$ , $a$ and $b$ are two augmentations of the same image. In vision-language representation learning, we consider $a$ and $b$ as different variations of an image-text pair that capture its semantic meaning. We aim to learn representations invariant to the change of view. This can be achieved by maximizing the MI between $a$ and $b$ . In practice, we maximize a lower bound on $\textstyle \mathbf { M } ( a , b )$ by minimizing the InfoNCE loss [47] defined as:
124
+
125
+ $$
126
+ \mathcal { L } _ { \mathrm { N C E } } = - \mathbb { E } _ { p ( a , b ) } \left[ \log \frac { \exp ( s ( a , b ) ) } { \sum _ { \hat { b } \in \hat { B } } \exp ( s ( a , \hat { b } ) ) } \right]
127
+ $$
128
+
129
+ where $s ( a , b )$ is a scoring function (e.g., a dot product between two representations), and $\hat { B }$ contains the positive sample $b$ and $| \hat { B } | - 1$ negative samples drawn from a proposal distribution.
130
+
131
+ Our ITC loss with one-hot labels (Equation $^ { 2 ) }$ can be re-written as:
132
+
133
+ $$
134
+ \mathcal { L } _ { \mathrm { i t c } } = - \frac { 1 } { 2 } \mathbb { E } _ { p ( I , T ) } \big [ \log \frac { \exp ( s ( I , T ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ( I , T _ { m } ) / \tau ) } + \log \frac { \exp ( s ( T , I ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ( T , I _ { m } ) / \tau ) } \big ]
135
+ $$
136
+
137
+ Minimizing $\mathcal { L } _ { \mathrm { i t c } }$ can be seen as maximizing a symmetric version of InfoNCE. Hence, ITC considers the two individual modalities (i.e., $I$ and $T$ ) as the two views of an image-text pair, and trains the unimodal encoders to maximize the MI between the image and text views for the positive pairs.
138
+
139
+ As shown in $[ \overline { { | 4 8 | } }$ , we can also interpret MLM as maximizing the MI between a masked word token and its masked context (i.e. image $^ +$ masked text). Specifically, we can re-write the MLM loss with one-hot labels (Equation $\textcircled { 3 }$ as
140
+
141
+ $$
142
+ \mathcal { L } _ { \mathrm { m l m } } = - \mathbb { E } _ { p ( I , \hat { T } ) } \big [ \log \frac { \exp ( \psi ( y ^ { \mathrm { m s k } } ) ^ { \top } f ( I , \hat { T } ) ) } { \sum _ { y \in \mathcal { V } } \exp ( \psi ( y ) ^ { \top } f ( I , \hat { T } ) ) } \big ]
143
+ $$
144
+
145
+ where $\psi ( y ) : \mathcal { V } \to \mathbb { R } ^ { d }$ is a lookup function in the multimodal encoder’s output layer that maps a word token $y$ into a vector and $\nu$ is the full vocabulary set, and $f ( I , { \hat { T } } )$ is a function that returns the final hidden state of the multimodal encoder corresponding to the masked context. Hence, MLM considers the two views of an image-text pair to be: (1) a randomly selected word token, and (2) the image $^ +$ the contextual text with that word masked.
146
+
147
+ Both ITC and MLM generate views by taking partial information from an image-text pair, through either modality separation or word masking. Our momentum distillation can be considered as generating alternative views from the entire proposal distribution. Take $\mathrm { I T C } _ { \mathrm { M o D } }$ in Equation $6$ as an example, minimizing $\mathrm { K L } ( p ^ { \mathrm { i 2 t } } ( I ) , q ^ { \mathrm { i 2 t } } ( I ) )$ is equivalent to minimizing the following objective:
148
+
149
+ $$
150
+ - \sum _ { m } q _ { m } ^ { \mathrm { i } 2 \mathrm { t } } ( I ) \log p _ { m } ^ { \mathrm { i } 2 \mathrm { t } } ( I ) = - \sum _ { m } \frac { \exp ( s ^ { \prime } ( I , T _ { m } ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ^ { \prime } ( I , T _ { m } ) / \tau ) } \log \frac { \exp ( s ( I , T _ { m } ) / \tau ) } { \sum _ { m = 1 } ^ { M } \exp ( s ( I , T _ { m } ) / \tau ) }
151
+ $$
152
+
153
+ It maximizes $\mathbf { M I } ( I , T _ { m } )$ for texts that share similar semantic meaning with the image $I$ because those texts would have larger $q _ { m } ^ { \mathrm { i 2 t } } ( I )$ . Similarly, $\mathrm { I T C } _ { \mathrm { M o D } }$ also maximizes $\mathbf { M } \mathbf { I } ( I _ { m } , T )$ for images that are similar to $T$ . We can follow the same method to show that $\mathbf { M L M } _ { \mathrm { M o D } }$ generates alternative views $y ^ { \prime } \in \mathcal { V }$ for the masked word $y ^ { \mathrm { m s k } }$ , and maximizes the MI between $y ^ { \prime }$ and $( I , { \hat { T } } )$ . Therefore, our momentum distillation can be considered as performing data augmentation to the original views. The momentum model generates a diverse set of views that are absent in the original image-text pairs, and encourages the base model to learn representations that capture view-invariant semantic information.
154
+
155
+ # 5 Downstream $\mathbf { V } { + } \mathbf { L }$ Tasks
156
+
157
+ We adapt the pre-trained model to five downstream $_ { \mathrm { V + L } }$ tasks. We introduce each task and our fine-tuning strategy below. Details of the datasets and fine-tuning hyperparameters are in Appendix.
158
+
159
+ Image-Text Retrieval contains two subtasks: image-to-text retrieval (TR) and text-to-image retrieval (IR). We evaluate ALBEF on the Flickr30K $\bar { \mathbb { E 9 } } \bar { \mathbb { I } }$ and COCO benchmarks, and fine-tune the pretrained model using the training samples from each dataset. For zero-shot retrieval on Flickr30K, we evaluate with the model fine-tuned on COCO. During fine-tuning, we jointly optimize the ITC loss (Equation $2 )$ and the ITM loss (Equation $\textcircled{4}$ . ITC learns an image-text scoring function based on similarity of unimodal features, whereas ITM models the fine-grained interaction between image and text to predict a matching score. Since the downstream datasets contain multiple texts for each image, we change the ground-truth label of ITC to consider multiple positives in the queue, where each positive has a ground-truth probability of 1/#positives. During inference, we first compute the feature similarity score $s _ { \mathrm { i t c } }$ for all image-text pairs. Then we take the top- $k$ candidates and calculate their ITM score $s _ { \mathrm { i t m } }$ for ranking. Because $k$ can be set to be very small, our inference speed is much faster than methods that require computing the ITM score for all image-text pairs [2, 3, 8].
160
+
161
+ Visual Entailment (SNLI-VE5 [51]) is a fine-grained visual reasoning task to predict whether the relationship between an image and a text is entailment, neutral, or contradictory. We follow UNITER $\left[ \left[ 2 \right] \right]$ and consider VE as a three-way classification problem, and predict the class probabilities using a multi-layer perceptron (MLP) on the multimodal encoder’s representation of the [CLS] token.
162
+
163
+ Visual Question Answering (VQA $\pmb { \mathbb { B } 2 } \mathbf { l }$ ) requires the model to predict an answer given an image and a question. Different from existing methods that formulate VQA as a multi-answer classification problem [53, 2], we consider VQA as an answer generation problem, similar to [54]. Specifically, we use a 6-layer transformer decoder to generate the answer. As shown in Figure 3a, the auto-regressive answer decoder receives the multimodal embeddings through cross attention, and a start-of-sequence token ([CLS]) is used as the decoder’s initial input token. Likewise, an end-of-sequence token ([SEP]) is appended to the end of decoder outputs which indicates the completion of generation.
164
+
165
+ ![](images/0b0dc7535563e91da490a221fda745edf632ed8624683f45f89b326da9d67c5b.jpg)
166
+ Figure 3: The model architecture for VQA and $\mathrm { \tt N L V R } ^ { 2 }$ . For VQA, we append an auto-regressive decoder to generate the answer given the image-question embeddings. For $\mathrm { \dot { N L V R } ^ { 2 } }$ , we replicate the transformer block within each layer of multimodal encoder to enable reasoning over two images.
167
+
168
+ The answer decoder is initialized using the pre-trained weights from the multimodal encoder, and finetuned with a conditional language-modeling loss. For a fair comparison with existing methods, we constrain the decoder to only generate from the 3,128 candidate answers $ { \Vert 5 5 \Vert }$ during inference.
169
+
170
+ Natural Language for Visual Reasoning (NLVR2 [19]) requires the model to predict whether a text describes a pair of images. We extend our multimodal encoder to enable reasoning over two images. As shown in Figure $3 { \mathrm { b } }$ , each layer of the multimodal encoder is replicated to have two consecutive transformer blocks, where each block contains a self-attention layer, a cross-attention layer, and a feed-forward layer (see Figure 1). The two blocks within each layer are initialized using the same pre-trained weights, and the two cross-attention layers share the same linear projection weights for the keys and values. During training, the two blocks receive two sets of image embeddings for the image pair. We append a MLP classifier on the multimodal encoder’s [CLS] representation for prediction.
171
+
172
+ For $\mathrm { \Delta N L V R ^ { 2 } }$ , we perform an additional pre-training step to prepare the new multimodal encoder for encoding an image-pair. We design a text-assignment (TA) task as follows: given a pair of images and a text, the model needs to assign the text to either the first image, the second image, or none of them. We consider it as a three-way classification problem, and use a FC layer on the [CLS] representation to predict the assignment. We pre-train with TA for only 1 epoch using the 4M images (Section 3.4).
173
+
174
+ Visual Grounding aims to localize the region in an image that corresponds to a specific textual description. We study the weakly-supervised setting, where no bounding box annotations are available. We perform experiments on the $\operatorname { R e f C O C O + } \mathbb { I }$ 56] dataset, and fine-tune the model using only imagetext supervision following the same strategy as image-text retrieval. During inference, we extend Grad-CAM $\pmb { \mathbb { Q } } \mathbf { \| }$ to acquire heatmaps, and use them to rank the detected proposals provided by $\mathbb { \lVert 5 3 \rVert }$
175
+
176
+ # 6 Experiments
177
+
178
+ # 6.1 Evaluation on the Proposed Methods
179
+
180
+ First, we evaluate the effectiveness of the proposed methods (i.e. image-text contrastive learning, contrastive hard negative mining, and momentum distillation). Table $\bar { \mathbb { \perp } }$ shows the performance of the downstream tasks with different variants of our method. Compared to the baseline pre-training tasks $( \mathbf { M L M + I T M } )$ ), adding ITC substantially improves the pre-trained model’s performance across all tasks. The proposed hard negative mining improves ITM by finding more informative training samples. Furthermore, adding momentum distillation improves learning for both ITC (row 4), MLM (row 5), and on all downstream tasks (row 6). In the last row, we show that ALBEF can effectively leverage more noisy web data to improve the pre-training performance.
181
+
182
+ Table 1: Evaluation of the proposed methods on four downstream $_ { \mathrm { V + L } }$ tasks. For text-retrieval (TR) and image-retrieval (IR), we report the average of $\mathbf { R } \ @ 1$ , $\mathbf { R } @ 5$ and $\mathrm { R @ 1 0 }$ . ITC: image-text contrastive learning. MLM: masked language modeling. $\mathrm { I T M } _ { \mathrm { h a r d } }$ : image-text matching with contrastive hard negative mining. MoD: momentum distillation. MoDDownstream: momentum distillation on downstream tasks.
183
+
184
+ <table><tr><td>#Pre-train Images</td><td>Training tasks</td><td>TR IR (flickr test)</td><td>SNLI-VE (test)</td><td>NLVR² (test-P)</td><td>VQA (test-dev)</td></tr><tr><td rowspan="6">4M</td><td>MLM+ ITM</td><td>93.96 88.55</td><td>77.06</td><td>77.51</td><td>71.40</td></tr><tr><td>ITC +MLM+ ITM</td><td>96.55 91.69</td><td>79.15</td><td>79.88</td><td>73.29</td></tr><tr><td>ITC + MLM + ITMhard</td><td>97.01 92.16</td><td>79.77</td><td>80.35</td><td>73.81</td></tr><tr><td>ITCMoD +MLM+ ITMhard</td><td>97.33 92.43</td><td>79.99</td><td>80.34</td><td>74.06</td></tr><tr><td>Full (ITCMoD + MLMMoD + ITMhard)</td><td>97.47 92.58</td><td>80.12</td><td>80.44</td><td>74.42</td></tr><tr><td>ALBEF (Full + MoDDownstream)</td><td>97.83 92.65</td><td>80.30</td><td>80.50</td><td>74.54</td></tr><tr><td>14M</td><td>ALBEF</td><td>98.70 94.07</td><td>80.91</td><td>83.14</td><td>75.84</td></tr></table>
185
+
186
+ Table 2: Fine-tuned image-text retrieval results on Flickr30K and COCO datasets.
187
+
188
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">#Pre-train Images</td><td colspan="6">Flickr30K (1K test set)</td><td colspan="6">MSCOCO (5K test set)</td></tr><tr><td colspan="2">TR</td><td colspan="4"></td><td colspan="2">TR</td><td colspan="2"></td><td colspan="2">IR</td></tr><tr><td>UNITER</td><td>4M</td><td>R@1 87.3</td><td>R@5 98.0</td><td>R@10 99.2</td><td>R@1 75.6</td><td>R@5</td><td>R@10 96.8</td><td>R@1 65.7</td><td>R@5</td><td>R@10 93.8</td><td>R@1 52.9</td><td>R@5 79.9</td><td>R@10</td></tr><tr><td>VILLA</td><td>4M</td><td>87.9</td><td>97.5</td><td>98.8</td><td>76.3</td><td>94.1</td><td>96.8</td><td>-</td><td>88.6 -</td><td></td><td></td><td></td><td>88.0</td></tr><tr><td>OSCAR</td><td>4M</td><td></td><td></td><td></td><td></td><td>94.2</td><td></td><td>70.0</td><td></td><td>- 95.5</td><td>- 54.0</td><td>-</td><td>- 88.5</td></tr><tr><td>ALIGN</td><td>1.2B</td><td>- 95.3</td><td>-</td><td>1</td><td>1</td><td>-</td><td>-</td><td>77.0</td><td>91.1</td><td></td><td></td><td>80.8</td><td></td></tr><tr><td></td><td></td><td></td><td>99.8</td><td>100.0</td><td>84.9</td><td>97.4</td><td>98.6</td><td></td><td>93.5</td><td>96.9</td><td>59.9</td><td>83.3</td><td>89.8</td></tr><tr><td>ALBEF</td><td>4M</td><td>94.3</td><td>99.4</td><td>99.8</td><td>82.8</td><td>96.7</td><td>98.4</td><td>73.1</td><td>91.4</td><td>96.0</td><td>56.8</td><td>81.5</td><td>89.2</td></tr><tr><td>ALBEF</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>14M</td><td>95.9</td><td>99.8</td><td></td><td></td><td></td><td></td><td></td><td></td><td>97.2</td><td>60.7</td><td>84.3</td><td>90.5</td></tr><tr><td></td><td></td><td></td><td></td><td>100.0</td><td>85.6</td><td>97.5</td><td>98.9</td><td>77.6</td><td>94.3</td><td></td><td></td><td></td><td></td></tr></table>
189
+
190
+ Table 3: Zero-shot image-text retrieval results on Flickr30K.
191
+
192
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">#Pre-train Images</td><td colspan="6">Flickr30K (1K test set)</td></tr><tr><td colspan="3">TR</td><td colspan="3">IR</td></tr><tr><td></td><td></td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>UNITER 四</td><td>4M</td><td>83.6</td><td>95.7</td><td>97.7</td><td>68.7</td><td>89.2</td><td>93.9</td></tr><tr><td>CLIP 回</td><td>400M</td><td>88.0</td><td>98.7</td><td>99.4</td><td>68.7</td><td>90.6</td><td>95.2</td></tr><tr><td>ALIGN </td><td>1.2B</td><td>88.6</td><td>98.7</td><td>99.7</td><td>75.7</td><td>93.8</td><td>96.8</td></tr><tr><td>ALBEF</td><td>4M</td><td>90.5</td><td>98.8</td><td>99.7</td><td>76.8</td><td>93.7</td><td>96.7</td></tr><tr><td>ALBEF</td><td>14M</td><td>94.1</td><td>99.5</td><td>99.7</td><td>82.8</td><td>96.3</td><td>98.1</td></tr></table>
193
+
194
+ <table><tr><td rowspan="2">Method</td><td colspan="2">VQA</td><td colspan="2">NLVR²</td><td colspan="2">SNLI-VE</td></tr><tr><td>test-dev</td><td>test-std</td><td>dev</td><td>test-P</td><td>val</td><td>test</td></tr><tr><td>VisualBERT[13]</td><td>70.80</td><td>71.00</td><td>67.40</td><td>67.00</td><td>-</td><td>-</td></tr><tr><td>VL-BERT 目</td><td>71.16</td><td>=</td><td>=</td><td>=</td><td>-</td><td></td></tr><tr><td>LXMERT[</td><td>72.42</td><td>72.54</td><td>74.90</td><td>74.50</td><td>=</td><td>=</td></tr><tr><td>12-in-1 目</td><td>73.15</td><td>-</td><td>-</td><td>78.87</td><td>=</td><td>76.95</td></tr><tr><td>UNITER [2]</td><td>72.70</td><td>72.91</td><td>77.18</td><td>77.85</td><td>78.59</td><td>78.28</td></tr><tr><td>VL-BART/T5 54</td><td>-</td><td>71.3</td><td>=</td><td>73.6</td><td>-</td><td>1</td></tr><tr><td>ViLT 四</td><td>70.94</td><td>-</td><td>75.24</td><td>76.21</td><td>-</td><td>-</td></tr><tr><td>OSCAR [3</td><td>73.16</td><td>73.44</td><td>78.07</td><td>78.36</td><td>=</td><td>1</td></tr><tr><td>VILLA 图</td><td>73.59</td><td>73.67</td><td>78.39</td><td>79.30</td><td>79.47</td><td>79.03</td></tr><tr><td>ALBEF (4M)</td><td>74.54</td><td>74.70</td><td>80.24</td><td>80.50</td><td>80.14</td><td>80.30</td></tr><tr><td>ALBEF (14M)</td><td>75.84</td><td>76.04</td><td>82.55</td><td>83.14</td><td>80.80</td><td>80.91</td></tr></table>
195
+
196
+ Table 4: Comparison with state-of-the-art methods on downstream vision-language tasks.
197
+
198
+ # 6.2 Evaluation on Image-Text Retrieval
199
+
200
+ Table 2 and Table 3 report results on fine-tuned and zero-shot image-text retrieval, respectively. Our ALBEF achieves state-of-the-art performance, outperforming CLIP $\pmb { \Vert 6 \Vert }$ and ALIGN $[ [ 7 ]$ which are trained on orders of magnitude larger datasets. Given the considerable amount of improvement of ALBEF when the number of training images increases from 4M to 14M, we hypothesize that it has potential to further grow by training on larger-scale web image-text pairs.
201
+
202
+ # 6.3 Evaluation on VQA, NLVR, and VE
203
+
204
+ Table $\sharp$ reports the comparison with existing methods on other $_ { \mathrm { V + L } }$ understanding tasks. With 4M pre-training images, ALBEF already achieves state-of-the-art performance. With 14M pre-training images, ALBEF substantially outperforms existing methods, including methods that additionally use object tags $\pmb { \mathbb { B } } \|$ or adversarial data augmentation $\pmb { \mathbb { B } } ] \mathbf l$ . Compared to VILLA $\pmb { \mathbb { B } } ] \mathbf l$ , ALBEF achieves absolute improvements of $2 . 3 7 \%$ on VQA test-std, $3 . 8 4 \%$ on $\mathrm { \bar { N L V R ^ { 2 } } }$ test-P, and $1 . 8 8 \%$ on SNLI-VE test. Because ALBEF is detector-free and requires lower resolution images, it also enjoys much faster inference speed compared to most existing methods ${ \tt > } 1 0$ times faster than VILLA on ${ \mathrm { N L V R } } ^ { 2 }$ ).
205
+
206
+ # 6.4 Weakly-supervised Visual Grounding
207
+
208
+ Table 5 shows the results on $\operatorname { R e f C O C O + }$ , where ALBEF substantially outperforms existing methods [57, 58] (which use weaker text embeddings). The $\mathbf { A L B E F _ { i t c } }$ variant computes Grad-CAM
209
+
210
+ <table><tr><td>Method</td><td>Val</td><td>TestA</td><td>TestB</td></tr><tr><td>ARN 四</td><td>32.78</td><td>34.35</td><td>32.13</td></tr><tr><td>CCL[ 国</td><td>34.29</td><td>36.91</td><td>33.56</td></tr><tr><td>ALBEFitc</td><td>51.58</td><td>60.09</td><td>40.19</td></tr><tr><td>ALBEFitm</td><td>58.46</td><td>65.89</td><td>46.25</td></tr></table>
211
+
212
+ Table 5: Weakly-supervised visual grounding on $\mathrm { R e f C O C O + }$ [56] dataset.
213
+
214
+ ![](images/4251bcd75e9054e149f7bf987e5ff45a120e0a49fcf551018cb3e8b81dc823a8.jpg)
215
+ Figure 4: Grad-CAM visualization on the cross-attention maps in the 3rd layer of the multimodal encoder.
216
+
217
+ Q: is this rice noodle soup? Q: what is to the right of A: yes the soup? A: chopsticks
218
+
219
+ Q: what does the truck on Q: what is the man doing in the street? A: walking the left sell? A: ice cream
220
+
221
+ ![](images/73781611098cb0fe1f63a3e0377c69a21f1e4b8ed04a2ab157bfdfaac6789207.jpg)
222
+
223
+ ![](images/ceb6f744b4870218abb363b8856d9195fd5ee3876c9a2f27efa97528688f2950.jpg)
224
+ Figure 5: Grad-CAM visualizations on the cross-attention maps of the multimodal encoder for the VQA model. “a little girl holding a kitten next to a blue fence”
225
+ Figure 6: Grad-CAM visualizations on the cross-attention maps corresponding to individual words.
226
+
227
+ visualizations on the self-attention maps in the last layer of the image encoder, where the gradients are acquired by maximizing the image-text similarity $s _ { \mathrm { i t c } }$ . The $\mathbf { A L B E F _ { i t m } }$ variant computes Grad-CAM on the cross-attention maps in the 3rd layer of the multimodal encoder (which is a layer specialized in grounding), where the gradients are acquired by maximizing the image-text matching score $s _ { \mathrm { i t m } }$ Figure 4 provides a few visualizations. More analysis is in Appendix.
228
+
229
+ We provide the Grad-CAM visualizations for VQA in Figure $\textcircled{5}$ As can be seen in Appendix, the Grad-CAM visualizations from ALBEF are highly correlated with where humans would look when making decisions. In Figure $6 ,$ we show per-word visualizations for COCO. Notice how our model not only grounds objects, but also their attributes and relationships.
230
+
231
+ # 6.5 Ablation Study
232
+
233
+ Table $\boxed { 6 }$ studies the effect of various design choices on image-text retrieval. Since we use $s _ { \mathrm { i t c } }$ to filter top- $k$ candidates during inference, we vary $k$ and report its effect. In general, the ranking result acquired by $s _ { \mathrm { i t m } }$ is not sensitive to changes
234
+
235
+ <table><tr><td rowspan="2">Flickr30K</td><td colspan="4">w/ hard negs</td><td rowspan="2">w/o hard negs k =128</td></tr><tr><td>Sitc</td><td>k =16</td><td>k =128</td><td>k=256</td></tr><tr><td>TR</td><td>97.30</td><td>98.60</td><td>98.57</td><td>98.57</td><td>98.22 (-0.35)</td></tr><tr><td>IR</td><td>90.95</td><td>93.64</td><td>93.99</td><td>93.95</td><td>93.68 (-0.31)</td></tr></table>
236
+
237
+ Table 6: Ablation study on fine-tuned image-text retrieval. The average recall on the test set is reported. We use $s _ { \mathrm { i t c } }$ to filter top- $k$ candidates and calculate their $s _ { \mathrm { i t m } }$ score for ranking.
238
+
239
+ in $k$ . We also validate the effect of hard negative mining in the last column.
240
+
241
+ Table $^ { 7 }$ studies the effect of textassignment (TA) pre-training and parameter sharing on $\mathrm { \tt N L V R } ^ { \mathrm { \bar { 2 } } }$ . We examine three strategies: (1) the two mutimodal blocks share all parameters, (2) only the cross
242
+
243
+ <table><tr><td>NLVR²</td><td colspan="3">w/TA share all share CA</td><td colspan="3">w/o TA share all share CA</td></tr><tr><td>dev</td><td>82.13</td><td>82.55</td><td>no share 81.93</td><td>80.52</td><td>80.28</td><td>no share 77.84</td></tr><tr><td>test-P</td><td>82.36</td><td>83.14</td><td>82.85</td><td>81.29</td><td>80.45</td><td>77.58</td></tr></table>
244
+
245
+ Table 7: Ablation study on NLVR2.
246
+
247
+ attention (CA) layers are shared, (3) no sharing. Without TA, sharing the entire block has better performance. With TA to pre-train the model for image-pair, sharing CA leads to the best performance.
248
+
249
+ # 7 Conclusion and Social Impacts
250
+
251
+ This paper proposes ALBEF, a new framework for vision-language representation learning. ALBEF first aligns the unimodal image representation and text representation before fusing them with a multimodal encoder. We theoretically and experimentally verify the effectiveness of the proposed image-text contrastive learning and momentum distillation. Compared to existing methods, ALBEF offers better performance and faster inference speed on multiple downstream $_ { \mathrm { V + L } }$ tasks.
252
+
253
+ While our paper shows promising results on vision-language representation learning, additional analysis on the data and the model is necessary before deploying it in practice, because web data may contain unintended private information, unsuitable images, or harmful texts, and only optimizing accuracy may have unwanted social implications.
254
+
255
+ # References
256
+
257
+ [1] Tan, H., M. Bansal. LXMERT: learning cross-modality encoder representations from transformers. In K. Inui, J. Jiang, V. Ng, X. Wan, eds., EMNLP, pages 5099–5110. 2019.
258
+ [2] Chen, Y., L. Li, L. Yu, et al. UNITER: universal image-text representation learning. In ECCV, vol. 12375, pages 104–120. 2020.
259
+ [3] Li, X., X. Yin, C. Li, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In ECCV, pages 121–137. 2020.
260
+ [4] Sharma, P., N. Ding, S. Goodman, et al. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In I. Gurevych, Y. Miyao, eds., ACL, pages 2556–2565. 2018.
261
+ [5] Ordonez, V., G. Kulkarni, T. L. Berg. Im2text: Describing images using 1 million captioned photographs. In J. Shawe-Taylor, R. S. Zemel, P. L. Bartlett, F. C. N. Pereira, K. Q. Weinberger, eds., NIPS, pages 1143–1151. 2011.
262
+ [6] Radford, A., J. W. Kim, C. Hallacy, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021.
263
+ [7] Jia, C., Y. Yang, Y. Xia, et al. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021.
264
+ [8] Gan, Z., Y. Chen, L. Li, et al. Large-scale adversarial training for vision-and-language representation learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020.
265
+ [9] Selvaraju, R. R., M. Cogswell, A. Das, et al. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, pages 618–626. 2017.
266
+ [10] Su, W., X. Zhu, Y. Cao, et al. Vl-bert: Pre-training of generic visual-linguistic representations. In ICLR. 2020.
267
+ [11] Lu, J., D. Batra, D. Parikh, et al. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In H. M. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. B. Fox, R. Garnett, eds., NeurIPS, pages 13–23. 2019.
268
+ [12] Lu, J., V. Goswami, M. Rohrbach, et al. 12-in-1: Multi-task vision and language representation learning. In CVPR, pages 10434–10443. 2020.
269
+ [13] Li, L. H., M. Yatskar, D. Yin, et al. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, abs/1908.03557, 2019.
270
+ [14] Qi, D., L. Su, J. Song, et al. Imagebert: Cross-modal pre-training with large-scale weaksupervised image-text data. arXiv preprint arXiv:2001.07966, 2020.
271
+ [15] Li, G., N. Duan, Y. Fang, et al. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training. In AAAI, pages 11336–11344. 2020.
272
+ [16] Yu, F., J. Tang, W. Yin, et al. Ernie-vil: Knowledge enhanced vision-language representations through scene graph. arXiv preprint arXiv:2006.16934, 2020.
273
+ [17] Zhang, P., X. Li, X. Hu, et al. Vinvl: Making visual representations matter in vision-language models. arXiv preprint arXiv:2101.00529, 2021.
274
+ [18] Huang, Z., Z. Zeng, Y. Huang, et al. Seeing out of the box: End-to-end pre-training for vision-language representation learning. arXiv preprint arXiv:2104.03135, 2021.
275
+ [19] Suhr, A., S. Zhou, A. Zhang, et al. A corpus for reasoning about natural language grounded in photographs. In A. Korhonen, D. R. Traum, L. Màrquez, eds., ACL, pages 6418–6428. 2019. 2015. 9 g. Dag
276
+ [21] Kim, W., B. Son, I. Kim. Vilt: Vision-and-language transformer without convolution or region supervision. arXiv preprint arXiv:2102.03334, 2021.
277
+ [22] Faghri, F., D. J. Fleet, J. R. Kiros, et al. VSE $^ { + + }$ : improving visual-semantic embeddings with hard negatives. In BMVC, page 12. 2018.
278
+ [23] Li, K., Y. Zhang, K. Li, et al. Visual semantic reasoning for image-text matching. In ICCV, pages 4653–4661. 2019.
279
+ [24] He, K., H. Fan, Y. Wu, et al. Momentum contrast for unsupervised visual representation learning. In CVPR. 2020.
280
+ [25] Chen, T., S. Kornblith, M. Norouzi, et al. A simple framework for contrastive learning of visual representations. In ICML. 2020.
281
+ [26] Li, J., P. Zhou, C. Xiong, et al. Prototypical contrastive learning of unsupervised representations. In ICLR. 2021.
282
+ [27] Li, J., C. Xiong, S. C. Hoi. Mopro: Webly supervised learning with momentum prototypes. In ICLR. 2021.
283
+ [28] Hinton, G., O. Vinyals, J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
284
+ [29] Zagoruyko, S., N. Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR. 2017.
285
+ [30] Furlanello, T., Z. C. Lipton, M. Tschannen, et al. Born-again neural networks. In J. G. Dy, A. Krause, eds., ICML, pages 1602–1611. 2018.
286
+ [31] Touvron, H., M. Cord, M. Douze, et al. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020.
287
+ [32] Sanh, V., L. Debut, J. Chaumond, et al. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108, 2019.
288
+ [33] Zhang, Y., T. Xiang, T. M. Hospedales, et al. Deep mutual learning. In CVPR, pages 4320–4328. 2018.
289
+ [34] Anil, R., G. Pereyra, A. Passos, et al. Large scale distributed neural network training through online distillation. In ICLR. 2018.
290
+ [35] Tarvainen, A., H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS, pages 1195–1204. 2017.
291
+ [36] Li, J., R. Socher, S. C. Hoi. Dividemix: Learning with noisy labels as semi-supervised learning. In ICLR. 2020.
292
+ [37] Cheng, R., B. Wu, P. Zhang, et al. Data-efficient language-supervised zero-shot learning with self-distillation. arXiv preprint arXiv:2104.08945, 2021.
293
+ [38] Dosovitskiy, A., L. Beyer, A. Kolesnikov, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR. 2021.
294
+ [39] Vaswani, A., N. Shazeer, N. Parmar, et al. Attention is all you need. In I. Guyon, U. von Luxburg, S. Bengio, H. M. Wallach, R. Fergus, S. V. N. Vishwanathan, R. Garnett, eds., NIPS, pages 5998–6008. 2017.
295
+ [40] Devlin, J., M. Chang, K. Lee, et al. BERT: pre-training of deep bidirectional transformers for language understanding. In J. Burstein, C. Doran, T. Solorio, eds., NAACL, pages 4171–4186. 2019.
296
+ [41] Lin, T., M. Maire, S. J. Belongie, et al. Microsoft COCO: common objects in context. In D. J. Fleet, T. Pajdla, B. Schiele, T. Tuytelaars, eds., ECCV, vol. 8693, pages 740–755. 2014.
297
+ [42] Krishna, R., Y. Zhu, O. Groth, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. IJCV, 123(1):32–73, 2017.
298
+ [43] Changpinyo, S., P. Sharma, N. Ding, et al. Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In CVPR. 2021.
299
+ [44] Loshchilov, I., F. Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
300
+ [45] Cubuk, E. D., B. Zoph, J. Shlens, et al. Randaugment: Practical automated data augmentation with a reduced search space. In CVPR Workshops, pages 702–703. 2020.
301
+ [46] Tian, Y., C. Sun, B. Poole, et al. What makes for good views for contrastive learning? In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020.
302
+ [47] Oord, A. v. d., Y. Li, O. Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
303
+ [48] Kong, L., C. de Masson d’Autume, L. Yu, et al. A mutual information maximization perspective of language representation learning. In ICLR. OpenReview.net, 2020.
304
+ [49] Plummer, B. A., L. Wang, C. M. Cervantes, et al. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In ICCV, pages 2641–2649. 2015.
305
+ [50] Do, V., O.-M. Camburu, Z. Akata, et al. e-snli-ve: Corrected visual-textual entailment with natural language explanations. arXiv preprint arXiv:2004.03744, 2020.
306
+ [51] Xie, N., F. Lai, D. Doran, et al. Visual entailment: A novel task for fine-grained image understanding. arXiv preprint arXiv:1901.06706, 2019.
307
+ [52] Goyal, Y., T. Khot, D. Summers-Stay, et al. Making the V in VQA matter: Elevating the role of image understanding in visual question answering. In CVPR, pages 6325–6334. 2017.
308
+ [53] Yu, L., Z. Lin, X. Shen, et al. Mattnet: Modular attention network for referring expression comprehension. In CVPR, pages 1307–1315. 2018.
309
+ [54] Cho, J., J. Lei, H. Tan, et al. Unifying vision-and-language tasks via text generation. arXiv preprint arXiv:2102.02779, 2021.
310
+ [55] Kim, J., J. Jun, B. Zhang. Bilinear attention networks. In S. Bengio, H. M. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, R. Garnett, eds., NIPS, pages 1571–1581. 2018.
311
+ [56] Yu, L., P. Poirson, S. Yang, et al. Modeling context in referring expressions. In B. Leibe, J. Matas, N. Sebe, M. Welling, eds., ECCV, pages 69–85. 2016.
312
+ [57] Liu, X., L. Li, S. Wang, et al. Adaptive reconstruction network for weakly supervised referring expression grounding. In ICCV, pages 2611–2620. 2019.
313
+ [58] Zhang, Z., Z. Zhao, Z. Lin, et al. Counterfactual contrastive learning fo weakly-supervised vision-language grounding. In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020.
314
+ [59] Karpathy, A., F. Li. Deep visual-semantic alignments for generating image descriptions. In CVPR, pages 3128–3137. 2015.
315
+ [60] Bowman, S. R., G. Angeli, C. Potts, et al. A large annotated corpus for learning natural language inference. In L. Màrquez, C. Callison-Burch, J. Su, D. Pighin, Y. Marton, eds., EMNLP, pages 632–642. 2015.
316
+ [61] Yu, Z., J. Yu, Y. Cui, et al. Deep modular co-attention networks for visual question answering. In CVPR, pages 6281–6290. 2019.
317
+ [62] Kazemzadeh, S., V. Ordonez, M. Matten, et al. Referitgame: Referring to objects in photographs of natural scenes. In A. Moschitti, B. Pang, W. Daelemans, eds., EMNLP. 2014.
318
+ [63] Das, A., H. Agrawal, C. L. Zitnick, et al. Human Attention in Visual Question Answering: Do Humans and Deep Networks Look at the Same Regions? 2016.
parse/train/OJLaKwiXSbx/OJLaKwiXSbx_content_list.json ADDED
@@ -0,0 +1,1356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Align before Fuse: Vision and Language Representation Learning with Momentum Distillation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 122,
9
+ 825,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Junnan Li, Ramprasaath R. Selvaraju, Akhilesh D. Gotmare Shafiq Joty, Caiming Xiong, Steven C.H. Hoi Salesforce Research {junnan.li,rselvaraju,akhilesh.gotmare,sjoty,shoi}@salesforce.com ",
17
+ "bbox": [
18
+ 222,
19
+ 226,
20
+ 779,
21
+ 282
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 295,
32
+ 535,
33
+ 310
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Large-scale vision and language representation learning has shown promising improvements on various vision-language tasks. Most existing methods employ a transformer-based multimodal encoder to jointly model visual tokens (region-based image features) and word tokens. Because the visual tokens and word tokens are unaligned, it is challenging for the multimodal encoder to learn image-text interactions. In this paper, we introduce a contrastive loss to ALign the image and text representations BEfore Fusing (ALBEF) them through cross-modal attention, which enables more grounded vision and language representation learning. Unlike most existing methods, our method does not require bounding box annotations nor high-resolution images. To improve learning from noisy web data, we propose momentum distillation, a self-training method which learns from pseudo-targets produced by a momentum model. We provide a theoretical analysis of ALBEF from a mutual information maximization perspective, showing that different training tasks can be interpreted as different ways to generate views for an image-text pair. ALBEF achieves state-of-the-art performance on multiple downstream visionlanguage tasks. On image-text retrieval, ALBEF outperforms methods that are pre-trained on orders of magnitude larger datasets. On VQA and $\\mathrm { \\Delta N L V R ^ { 2 } }$ , ALBEF achieves absolute improvements of $2 . 3 7 \\%$ and $3 . 8 4 \\%$ compared to the state-ofthe-art, while enjoying faster inference speed. Code and models are available at https://github.com/salesforce/ALBEF. ",
40
+ "bbox": [
41
+ 233,
42
+ 315,
43
+ 766,
44
+ 593
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 604,
55
+ 312,
56
+ 621
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Vision-and-Language Pre-training (VLP) aims to learn multimodal representations from large-scale image-text pairs that can improve downstream Vision-and-Language $( \\mathrm { V } { + } \\mathrm { L } )$ tasks. Most existing VLP methods (e.g. LXMERT [1], UNITER [2], OSCAR $\\pmb { \\| 3 \\| }$ ) rely on pre-trained object detectors to extract region-based image features, and employ a multimodal encoder to fuse the image features with word tokens. The multimodal encoder is trained to solve tasks that require joint understanding of image and text, such as masked language modeling (MLM) and image-text matching (ITM). ",
63
+ "bbox": [
64
+ 174,
65
+ 627,
66
+ 825,
67
+ 710
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "While effective, this VLP framework suffers from several key limitations: (1) The image features and the word token embeddings reside in their own spaces, which makes it challenging for the multimodal encoder to learn to model their interactions; (2) The object detector is both annotation-expensive and compute-expensive, because it requires bounding box annotations during pre-training, and highresolution (e.g. $6 0 0 \\times 1 0 0 0 )$ images during inference; (3) The widely used image-text datasets [4, 5] are collected from the web and are inherently noisy, and existing pre-training objectives such as MLM may overfit to the noisy text and degrade the model’s generalization performance. ",
74
+ "bbox": [
75
+ 174,
76
+ 717,
77
+ 825,
78
+ 814
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We propose ALign BEfore Fuse (ALBEF), a new VLP framework to address these limitations. We first encode the image and text independently with a detector-free image encoder and a text encoder. Then we use a multimodal encoder to fuse the image features with the text features through crossmodal attention. We introduce an intermediate image-text contrastive (ITC) loss on representations from the unimodal encoders, which serves three purposes: (1) it aligns the image features and the text features, making it easier for the multimodal encoder to perform cross-modal learning; (2) it improves the unimodal encoders to better understand the semantic meaning of images and texts; (3) it learns a common low-dimensional space to embed images and texts, which enables the image-text matching objective to find more informative samples through our contrastive hard negative mining. ",
85
+ "bbox": [
86
+ 174,
87
+ 820,
88
+ 825,
89
+ 902
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 92,
99
+ 823,
100
+ 133
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "To improve learning under noisy supervision, we propose Momentum Distillation (MoD), a simple method which enables the model to leverage a larger uncurated web dataset. During training, we keep a momentum version of the model by taking the moving-average of its parameters, and use the momentum model to generate pseudo-targets as additional supervision. With MoD, the model is not penalized for producing other reasonable outputs that are different from the web annotation. We show that MoD not only improves pre-training, but also downstream tasks with clean annotations. ",
107
+ "bbox": [
108
+ 174,
109
+ 140,
110
+ 825,
111
+ 222
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We provide theoretical justifications on ALBEF from the perspective of mutual information maximization. Specifically, we show that ITC and MLM maximize a lower bound on the mutual information between different views of an image-text pair, where the views are generated by taking partial information from each pair. From this perspective, our momentum distillation can be interpreted as generating new views with semantically similar samples. Therefore, ALBEF learns vision-language representations that are invariant to semantic-preserving transformations. ",
118
+ "bbox": [
119
+ 174,
120
+ 228,
121
+ 825,
122
+ 313
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We demonstrate the effectiveness of ALBEF on various downstream $_ { \\mathrm { V + L } }$ tasks including image-text retrieval, visual question answering, visual reasoning, visual entailment, and weakly-supervised visual grounding. ALBEF achieves substantial improvements over existing state-of-the-art methods. On image-text retrieval, it outperforms methods that are pre-trained on orders of magnitude larger datasets (CLIP $\\pmb { \\Vert 6 \\Vert }$ and ALIGN $\\bar { \\mathbb { Z } } \\bar { \\mathbb { I } }$ ). On VQA and $\\mathrm { \\Delta N L V R ^ { 2 } }$ , it achieves absolute improvements of $\\mathrm { \\bar { 2 . 3 7 \\% } }$ and $3 . 8 4 \\%$ compared to the state-of-the-art method VILLA $\\textcircled { 8 }$ , while enjoying much faster inference speed. We also provide quantitative and qualitative analysis on ALBEF using Grad-CAM $\\bigstar \\bigstar$ , which reveals its ability to perform accurate object, attribute and relationship grounding implicitly. ",
129
+ "bbox": [
130
+ 173,
131
+ 318,
132
+ 825,
133
+ 430
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 Related Work ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 439,
144
+ 323,
145
+ 455
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2.1 Vision-Language Representation Learning ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 174,
155
+ 463,
156
+ 509,
157
+ 477
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Most existing work on vision-language representation learning fall into two categories. The first category focuses on modelling the interactions between image and text features with transformerbased multimodal encoders [10, 11, 12, 13, 1, 14, 15, 2, 3, 16, 8, 17, 18]. Methods in this category achieve superior performance on downstream $_ { \\mathrm { V + L } }$ tasks that require complex reasoning over image and text (e.g. NLVR2 [19], VQA $\\pmb { \\mathbb { D } } \\pmb { \\mathbb { O } } \\Vert$ ), but most of them require high-resolution input images and pre-trained object detectors. A recent method $\\mathbb { \\left| \\mathbb { Z } \\right\\| }$ improves inference speed by removing the object detector, but results in lower performance. The second category focuses on learning separate unimodal encoders for image and text [22, 23, 6, 7]. The recent CLIP $\\boxed { 6 }$ and ALIGN [7] perform pre-training on massive noisy web data using a contrastive loss, one of the most effective loss for representation learning [24, 25, 26, 27]. They achieve remarkable performance on image-text retrieval tasks, but lack the ability to model more complex interactions between image and text for other $_ { \\mathrm { V + L } }$ tasks $\\scriptstyle { \\left[ \\left[ 2 1 \\right] \\right] }$ . ",
164
+ "bbox": [
165
+ 174,
166
+ 482,
167
+ 825,
168
+ 635
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "ALBEF unifies the two categories, leading to strong unimodal and multimodal representations with superior performance on both retrieval and reasoning tasks. Furthermore, ALBEF does not require object detectors, a major computation bottleneck for many existing methods [1, 2, 3, 8, 17]. ",
175
+ "bbox": [
176
+ 176,
177
+ 641,
178
+ 821,
179
+ 683
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "2.2 Knowledge Distillation ",
186
+ "text_level": 1,
187
+ "bbox": [
188
+ 174,
189
+ 691,
190
+ 372,
191
+ 707
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "Knowledge distillation $\\pmb { \\left[ \\widetilde { \\left| 2 8 \\right| } \\right] }$ aims to improve a student model’s performance by distilling knowledge from a teacher model, usually through matching the student’s prediction with the teacher’s. While most methods focus on distilling knowledge from a pre-trained teacher model [28, 29, 30, 31, 32], online distillation [33, 34] simultaneously trains multiple models and use their ensemble as the teacher. Our momentum distillation can be interpreted as a form of online self-distillation, where a temporal ensemble of the student model is used as the teacher. Similar ideas have been explored in semi-supervised learning $\\pmb { \\Vert 3 5 \\Vert }$ , label noise learning $\\textcircled { \\left| 3 6 \\right| }$ , and very recently in contrastive learning $\\pmb { \\mathbb { B 7 } }$ . Different from existing studies, we theoretically and experimentally show that momentum distillation is a generic learning algorithm that can improve the model’s performance on many $_ { \\mathrm { V + L } }$ tasks. ",
198
+ "bbox": [
199
+ 174,
200
+ 710,
201
+ 826,
202
+ 837
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "3 ALBEF Pre-training ",
209
+ "text_level": 1,
210
+ "bbox": [
211
+ 176,
212
+ 845,
213
+ 379,
214
+ 863
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "In this section, we first introduce the model architecture (Section $\\textcircled { 3 . 1 }$ . Then we delineate the pretraining objectives (Section $\\boxed { 3 . 2 }$ , followed by the proposed momentum distillation (Section $\\bar { 3 } . 3 )$ Lastly we describe the pre-training datasets (Section $3 . { \\overset { \\cdot } { 4 } } )$ and implementation details (Section $\\underline { { \\vert 3 . 5 \\vert } }$ ",
221
+ "bbox": [
222
+ 174,
223
+ 869,
224
+ 826,
225
+ 911
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "image",
231
+ "img_path": "images/f52f65848bf1ec30d6820d94a14836f967aa2f875accbf396dc0167dd6581d06.jpg",
232
+ "image_caption": [
233
+ "Figure 1: Illustration of ALBEF. It consists of an image encoder, a text encoder, and a multimodal encoder. We propose an image-text contrastive loss to align the unimodal representations of an image-text pair before fusion. An image-text matching loss (using in-batch hard negatives mined through contrastive similarity) and a masked-language-modeling loss are applied to learn multimodal interactions between image and text. In order to improve learning with noisy data, we generate pseudo-targets using the momentum model (a moving-average version of the base model) as additional supervision during training. "
234
+ ],
235
+ "image_footnote": [],
236
+ "bbox": [
237
+ 197,
238
+ 88,
239
+ 795,
240
+ 308
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "3.1 Model Architecture ",
247
+ "text_level": 1,
248
+ "bbox": [
249
+ 174,
250
+ 420,
251
+ 349,
252
+ 435
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "As illustrated in Figure $\\mathbb { L } ,$ ALBEF contains an image encoder, a text encoder, and a multimodal encoder. We use a 12-layer visual transformer ViT-B/16 $\\mathbb { \\left. 3 8 \\right. }$ as the image encoder, and initialize it with weights pre-trained on ImageNet-1k from $\\pmb { \\mathbb { B } } \\mathbf { \\mathbb { 1 } }$ . An input image $I$ is encoded into a sequence of embeddings: $\\{ \\pmb { v } _ { \\mathrm { c l s } } , \\pmb { v } _ { 1 } , . . . , \\pmb { v } _ { N } \\}$ , where $v _ { \\mathrm { c l s } }$ is the embedding of the [CLS] token. We use a 6-layer transformer $\\textcircled { \\ 3 9 } \\textcircled { }$ for both the text encoder and the multimodal encoder. The text encoder is initialized using the first 6 layers of the $\\mathbf { B E R T _ { b a s e } }$ $\\textcircled { | 4 0 | }$ model, and the multimodal encoder is initialized using the last 6 layers of the $\\mathbf { B E R T _ { b a s e } }$ . The text encoder transforms an input text $T$ into a sequence of embeddings $\\{ \\boldsymbol { w } _ { \\mathrm { c l s } } , \\boldsymbol { w } _ { 1 } , . . . , \\boldsymbol { w } _ { N } \\}$ , which is fed to the multimodal encoder. The image features are fused with the text features through cross attention at each layer of the multimodal encoder. ",
259
+ "bbox": [
260
+ 173,
261
+ 444,
262
+ 825,
263
+ 570
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "3.2 Pre-training Objectives ",
270
+ "text_level": 1,
271
+ "bbox": [
272
+ 174,
273
+ 585,
274
+ 375,
275
+ 602
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "We pre-train ALBEF with three objectives: image-text contrastive learning (ITC) on the unimodal encoders, masked language modeling (MLM) and image-text matching (ITM) on the multimodal encoder. We improve ITM with online contrastive hard negative mining. ",
282
+ "bbox": [
283
+ 174,
284
+ 611,
285
+ 825,
286
+ 654
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Image-Text Contrastive Learning aims to learn better unimodal representations before fusion. It learns a similarity function $\\boldsymbol { s } = \\boldsymbol { g _ { v } } \\big ( \\boldsymbol { v } _ { \\mathrm { c l s } } \\big ) ^ { \\top } \\boldsymbol { g _ { w } } \\big ( \\boldsymbol { w } _ { \\mathrm { c l s } } \\big )$ , such that parallel image-text pairs have higher similarity scores. $g _ { v }$ and $g _ { w }$ are linear transformations that map the [CLS] embeddings to normalized lower-dimensional (256-d) representations. Inspired by MoCo $\\pmb { \\Vert 2 4 \\Vert }$ , we maintain two queues to store the most recent $M$ image-text representations from the momentum unimodal encoders. The normalized features from the momentum encoders are denoted as $g _ { v } ^ { \\prime } ( v _ { \\mathrm { c l s } } ^ { \\prime } )$ and $g _ { w } ^ { \\prime } ( w _ { \\mathrm { c l s } } ^ { \\prime } )$ . We define $s ( I , T ) = g _ { v } ( \\pmb { v } _ { \\mathrm { c l s } } ) ^ { \\top } g _ { w } ^ { \\prime } ( \\pmb { w } _ { \\mathrm { c l s } } ^ { \\prime } )$ and $s ( T , I ) = g _ { w } ( \\pmb { w } _ { \\mathrm { c l s } } ) ^ { \\top } g _ { v } ^ { \\prime } ( \\pmb { v } _ { \\mathrm { c l s } } ^ { \\prime } )$ . ",
293
+ "bbox": [
294
+ 173,
295
+ 659,
296
+ 825,
297
+ 761
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "For each image and text, we calculate the softmax-normalized image-to-text and text-to-image similarity as: ",
304
+ "bbox": [
305
+ 173,
306
+ 763,
307
+ 823,
308
+ 792
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "equation",
314
+ "img_path": "images/3d6be1e6b539c4157190671e41f194b968b754886e3bef27e4fdd8a675cd5928.jpg",
315
+ "text": "$$\np _ { m } ^ { \\mathrm { i 2 t } } ( I ) = \\frac { \\exp ( s ( I , T _ { m } ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ( I , T _ { m } ) / \\tau ) } , ~ p _ { m } ^ { \\mathrm { t 2 i } } ( T ) = \\frac { \\exp ( s ( T , I _ { m } ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ( T , I _ { m } ) / \\tau ) }\n$$",
316
+ "text_format": "latex",
317
+ "bbox": [
318
+ 248,
319
+ 796,
320
+ 750,
321
+ 835
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "where $\\tau$ is a learnable temperature parameter. Let ${ \\boldsymbol { y } } ^ { \\mathrm { i 2 t } } ( I )$ and $\\boldsymbol { y } ^ { \\mathrm { t 2 i } } ( \\boldsymbol { T } )$ denote the ground-truth one-hot similarity, where negative pairs have a probability of 0 and the positive pair has a probability of 1. The image-text contrastive loss is defined as the cross-entropy $\\mathrm { H }$ between $\\pmb { p }$ and $\\textbf { { y } }$ : ",
328
+ "bbox": [
329
+ 173,
330
+ 839,
331
+ 828,
332
+ 882
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/2189a82640615d35869d5aff34b6eee7569b7c300585c8320b8b7b3b386750d8.jpg",
339
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { i t c } } = \\frac { 1 } { 2 } \\mathbb { E } _ { ( I , T ) \\sim D } \\big [ \\mathrm { H } ( y ^ { \\mathrm { i 2 t } } ( I ) , p ^ { \\mathrm { i 2 t } } ( I ) ) + \\mathrm { H } ( y ^ { \\mathrm { t 2 i } } ( T ) , p ^ { \\mathrm { t 2 i } } ( T ) ) \\big ]\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 287,
343
+ 886,
344
+ 709,
345
+ 916
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "image",
351
+ "img_path": "images/9b40d579bf8714f23012f3ca9f7342a41936bb4b8471e3021de0d7abda97496a.jpg",
352
+ "image_caption": [
353
+ "Figure 2: Examples of the pseudo-targets for MLM (1st row) and ITC (2nd row). The pseudo-targets can capture visual concepts that are not described by the ground-truth text (e.g. “beautiful waterfall”, “young woman”). "
354
+ ],
355
+ "image_footnote": [],
356
+ "bbox": [
357
+ 174,
358
+ 89,
359
+ 828,
360
+ 243
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Masked Language Modeling utilizes both the image and the contextual text to predict the masked words. We randomly mask out the input tokens with a probability of $15 \\%$ and replace them with the special token [MASK]1. Let $\\hat { T }$ denote a masked text, and $p ^ { \\mathrm { m s k } } ( I , \\hat { T } )$ denote the model’s predicted probability for a masked token. MLM minimizes a cross-entropy loss: ",
367
+ "bbox": [
368
+ 173,
369
+ 303,
370
+ 825,
371
+ 361
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/b44d3f223a60a0a0f0308f63fbad4d934249d8f57a34c0b2c65ea041ded7fc40.jpg",
378
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { m l m } } = \\mathbb { E } _ { ( I , \\hat { T } ) \\sim D } \\mathrm { H } ( \\pmb { y } ^ { \\mathrm { m s k } } , \\pmb { p } ^ { \\mathrm { m s k } } ( I , \\hat { T } ) )\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 369,
382
+ 363,
383
+ 627,
384
+ 386
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "where $y ^ { \\mathrm { m s k } }$ is a one-hot vocabulary distribution where the ground-truth token has a probability of 1. ",
391
+ "bbox": [
392
+ 176,
393
+ 388,
394
+ 820,
395
+ 404
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "Image-Text Matching predicts whether a pair of image and text is positive (matched) or negative (not matched). We use the multimodal encoder’s output embedding of the [CLS] token as the joint representation of the image-text pair, and append a fully-connected (FC) layer followed by softmax to predict a two-class probability $p ^ { \\mathrm { i t m } }$ . The ITM loss is: ",
402
+ "bbox": [
403
+ 173,
404
+ 409,
405
+ 825,
406
+ 464
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "equation",
412
+ "img_path": "images/92d904631f26e7eccfc67d62b85a2b0e413d468492c2ede127243cff1768d28f.jpg",
413
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { i t m } } = \\mathbb { E } _ { ( I , T ) \\sim D } \\mathrm { H } ( \\pmb { y } ^ { \\mathrm { i t m } } , \\pmb { p } ^ { \\mathrm { i t m } } ( I , T ) )\n$$",
414
+ "text_format": "latex",
415
+ "bbox": [
416
+ 377,
417
+ 467,
418
+ 620,
419
+ 487
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "where ${ \\boldsymbol { y } } ^ { \\mathrm { i t m } }$ is a 2-dimensional one-hot vector representing the ground-truth label. ",
426
+ "bbox": [
427
+ 176,
428
+ 489,
429
+ 702,
430
+ 505
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "We propose a strategy to sample hard negatives for the ITM task with zero computational overhead. A negative image-text pair is hard if they share similar semantics but differ in fine-grained details. We use the contrastive similarity from Equation $\\bigstar$ to find in-batch hard negatives. For each image in a mini-batch, we sample one negative text from the same batch following the contrastive similarity distribution, where texts that are more similar to the image have a higher chance to be sampled. Likewise, we also sample one hard negative image for each text. ",
437
+ "bbox": [
438
+ 173,
439
+ 511,
440
+ 826,
441
+ 594
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "The full pre-training objective of ALBEF is: ",
448
+ "bbox": [
449
+ 176,
450
+ 601,
451
+ 464,
452
+ 614
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "equation",
458
+ "img_path": "images/4d152ceb8758891ce6dabd6bcf6a5e738044a533fbbfd13b89894c0b1cdd12bf.jpg",
459
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } _ { \\mathrm { i t c } } + \\mathcal { L } _ { \\mathrm { m l m } } + \\mathcal { L } _ { \\mathrm { i t m } }\n$$",
460
+ "text_format": "latex",
461
+ "bbox": [
462
+ 413,
463
+ 617,
464
+ 584,
465
+ 633
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "3.3 Momentum Distillation ",
472
+ "text_level": 1,
473
+ "bbox": [
474
+ 174,
475
+ 647,
476
+ 375,
477
+ 662
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "The image-text pairs used for pre-training are mostly collected from the web and they tend to be noisy. Positive pairs are usually weakly-correlated: the text may contain words that are unrelated to the image, or the image may contain entities that are not described in the text. For ITC learning, negative texts for an image may also match the image’s content. For MLM, there may exist other words different from the annotation that describes the image equally well (or better). However, the one-hot labels for ITC and MLM penalize all negative predictions regardless of their correctness. ",
484
+ "bbox": [
485
+ 173,
486
+ 672,
487
+ 825,
488
+ 757
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "To address this, we propose to learn from pseudo-targets generated by the momentum model. The momentum model is a continuously-evolving teacher which consists of exponential-moving-average versions of the unimodal and multimodal encoders. During training, we train the base model such that its predictions match the ones from the momentum model. Specifically, for ITC, we first compute the image-text similarity using features from the momentum unimodal encoders as $s ^ { \\prime } ( I , T ) \\stackrel { \\cdot } { = } g _ { v } ^ { \\prime } ( { \\pmb v } _ { \\mathrm { c l s } } ^ { \\prime } ) ^ { \\top } \\breve { g } _ { w } ^ { \\prime } ( { \\pmb w } _ { \\mathrm { c l s } } ^ { \\prime } )$ and $s ^ { \\prime } ( T , I ) \\stackrel { \\mathrm { ~ \\tiny ~ = ~ } } { = } g _ { w } ^ { \\prime } ( { \\pmb w } _ { \\mathrm { c l s } } ) ^ { \\top } g _ { v } ^ { \\prime } ( { \\pmb v } _ { \\mathrm { c l s } } ^ { \\prime } )$ . Then we compute soft pseudotargets $q ^ { \\mathrm { i 2 t } }$ and $q ^ { \\mathrm { t 2 i } }$ by replacing $s$ with $s ^ { \\prime }$ in Equation 1. The $\\mathrm { I T C } _ { \\mathrm { M o D } }$ loss is defined as: ",
495
+ "bbox": [
496
+ 173,
497
+ 762,
498
+ 826,
499
+ 863
500
+ ],
501
+ "page_idx": 3
502
+ },
503
+ {
504
+ "type": "equation",
505
+ "img_path": "images/1c968814e0958bf0e11029a46b2f0a3a1a075a176fab8849389b809ffc5030a9.jpg",
506
+ "text": "$$\n{ \\mathcal { L } } _ { \\mathrm { i t c } } ^ { \\mathrm { m o d } } = ( 1 - \\alpha ) { \\mathcal { L } } _ { \\mathrm { i t c } } + { \\frac { \\alpha } { 2 } } { \\mathbb { E } } _ { ( I , T ) \\sim D } \\left[ \\mathrm { K L } ( q ^ { \\mathrm { i } 2 \\mathrm { t } } ( I ) \\parallel p ^ { \\mathrm { i } 2 \\mathrm { t } } ( I ) ) + \\mathrm { K L } ( q ^ { \\mathrm { t } 2 \\mathrm { i } } ( T ) \\parallel p ^ { \\mathrm { t } 2 \\mathrm { i } } ( T ) ) \\right]\n$$",
507
+ "text_format": "latex",
508
+ "bbox": [
509
+ 210,
510
+ 863,
511
+ 782,
512
+ 891
513
+ ],
514
+ "page_idx": 3
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Similarly, for MLM, let $\\pmb q ^ { \\mathrm { m s k } } ( I , \\hat { T } )$ denote the momentum model’s prediction probability for the masked token, the $\\mathbf { M L M } _ { \\mathrm { M o D } }$ loss is: ",
519
+ "bbox": [
520
+ 173,
521
+ 89,
522
+ 823,
523
+ 119
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "equation",
529
+ "img_path": "images/ae1b2659258cce633d9384d7569c980637e0399d397560d3cc211f1ef5981811.jpg",
530
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { m l m } } ^ { \\mathrm { m o d } } = ( 1 - \\alpha ) \\mathcal { L } _ { \\mathrm { m l m } } + \\alpha \\mathbb { E } _ { ( I , \\hat { T } ) \\sim D } \\mathrm { K L } ( \\pmb { q } ^ { \\mathrm { m s k } } ( I , \\hat { T } ) \\parallel p ^ { \\mathrm { m s k } } ( I , \\hat { T } ) )\n$$",
531
+ "text_format": "latex",
532
+ "bbox": [
533
+ 279,
534
+ 121,
535
+ 717,
536
+ 143
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "In Figure $\\bigstar$ we show examples of the top-5 candidates from the pseudo-targets, which effectively capture relevant words/texts for an image. More examples can be found in Appendix. ",
543
+ "bbox": [
544
+ 173,
545
+ 145,
546
+ 823,
547
+ 174
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "We also apply MoD to the downstream tasks. The final loss for each task is a weighted combination of the original task’s loss and the KL-divergence between the model’s prediction and the pseudo-targets. For simplicity, we set the weight $\\alpha = 0 . 4$ for all pre-training and downstream tasks 2. ",
554
+ "bbox": [
555
+ 174,
556
+ 179,
557
+ 826,
558
+ 222
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "3.4 Pre-training Datasets ",
565
+ "text_level": 1,
566
+ "bbox": [
567
+ 174,
568
+ 233,
569
+ 361,
570
+ 250
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "Following UNITER [2], we construct our pre-training data using two web datasets (Conceptual Captions [4], SBU Captions $\\pmb { \\mathbb { B } } \\mathbf { \\| }$ ) and two in-domain datasets (COCO [41] and Visual Genome [42]). The total number of unique images is $4 . 0 \\mathbf { M }$ , and the number of image-text pairs is 5.1M. To show that our method is scalable with larger-scale web data, we also include the much noisier Conceptual 12M dataset $\\mathbb { \\lVert \\rVert 3 \\rVert }$ , increasing the total number of images to $1 4 . 1 \\mathrm { M } \\big \\sharp$ Details are in Appendix. ",
577
+ "bbox": [
578
+ 173,
579
+ 256,
580
+ 826,
581
+ 327
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "3.5 Implementation Details ",
588
+ "text_level": 1,
589
+ "bbox": [
590
+ 174,
591
+ 338,
592
+ 377,
593
+ 353
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "Our model consists of a $\\mathbf { B E R T _ { b a s e } }$ with 123.7M parameters and a ViT-B/16 with $8 5 . 8 \\mathbf { M }$ parameters. We pre-train the model for 30 epochs using a batch size of 512 on 8 NVIDIA A100 GPUs. We use the AdamW $\\pm \\boxed { \\boxed { 4 4 } }$ optimizer with a weight decay of 0.02. The learning rate is warmed-up to $1 e ^ { - 4 }$ in the first 1000 iterations, and decayed to $1 e ^ { - 5 }$ following a cosine schedule. During pre-training, we take random image crops of resolution $2 5 6 \\times 2 5 6$ as input, and also apply RandAugment4 [45]. During fine-tuning, we increase the image resolution to $3 8 4 \\times 3 8 4$ and interpolate the positional encoding of image patches following $\\left[ \\left[ 3 8 \\right] \\right]$ . The momentum parameter for updating the momentum model is set as 0.995, and the size of the queue used for image-text contrastive learning is set as 65,536. We linearly ramp-up the distillation weight $\\alpha$ from 0 to 0.4 within the 1st epoch. ",
600
+ "bbox": [
601
+ 173,
602
+ 361,
603
+ 826,
604
+ 486
605
+ ],
606
+ "page_idx": 4
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "4 A Mutual Information Maximization Perspective ",
611
+ "text_level": 1,
612
+ "bbox": [
613
+ 173,
614
+ 503,
615
+ 614,
616
+ 522
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "In this section, we provide an alternative perspective of ALBEF and show that it maximizes a lower bound on the mutual information (MI) between different “views” of an image-text pair. ITC, MLM, and MoD can be interpreted as different ways to generate the views. ",
623
+ "bbox": [
624
+ 173,
625
+ 531,
626
+ 826,
627
+ 574
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Formally, we define two random variables $a$ and $b$ as two different views of a data point. In selfsupervised learning $[ 1 2 4 , 1 2 5 , | 4 6 |$ , $a$ and $b$ are two augmentations of the same image. In vision-language representation learning, we consider $a$ and $b$ as different variations of an image-text pair that capture its semantic meaning. We aim to learn representations invariant to the change of view. This can be achieved by maximizing the MI between $a$ and $b$ . In practice, we maximize a lower bound on $\\textstyle \\mathbf { M } ( a , b )$ by minimizing the InfoNCE loss [47] defined as: ",
634
+ "bbox": [
635
+ 173,
636
+ 580,
637
+ 825,
638
+ 664
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "equation",
644
+ "img_path": "images/2c1df4d0eb6e5673caba54781b3283e6c64d001bc5d8795e5e4b9e4928178e4b.jpg",
645
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { N C E } } = - \\mathbb { E } _ { p ( a , b ) } \\left[ \\log \\frac { \\exp ( s ( a , b ) ) } { \\sum _ { \\hat { b } \\in \\hat { B } } \\exp ( s ( a , \\hat { b } ) ) } \\right]\n$$",
646
+ "text_format": "latex",
647
+ "bbox": [
648
+ 348,
649
+ 666,
650
+ 648,
651
+ 709
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "where $s ( a , b )$ is a scoring function (e.g., a dot product between two representations), and $\\hat { B }$ contains the positive sample $b$ and $| \\hat { B } | - 1$ negative samples drawn from a proposal distribution. ",
658
+ "bbox": [
659
+ 176,
660
+ 719,
661
+ 825,
662
+ 752
663
+ ],
664
+ "page_idx": 4
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "Our ITC loss with one-hot labels (Equation $^ { 2 ) }$ can be re-written as: ",
669
+ "bbox": [
670
+ 173,
671
+ 757,
672
+ 612,
673
+ 772
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "equation",
679
+ "img_path": "images/298f854462bbc8f03bfe330c83e6f285f3fa9aec5157e5aae99cc337d007c44e.jpg",
680
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { i t c } } = - \\frac { 1 } { 2 } \\mathbb { E } _ { p ( I , T ) } \\big [ \\log \\frac { \\exp ( s ( I , T ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ( I , T _ { m } ) / \\tau ) } + \\log \\frac { \\exp ( s ( T , I ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ( T , I _ { m } ) / \\tau ) } \\big ]\n$$",
681
+ "text_format": "latex",
682
+ "bbox": [
683
+ 228,
684
+ 773,
685
+ 767,
686
+ 813
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Minimizing $\\mathcal { L } _ { \\mathrm { i t c } }$ can be seen as maximizing a symmetric version of InfoNCE. Hence, ITC considers the two individual modalities (i.e., $I$ and $T$ ) as the two views of an image-text pair, and trains the unimodal encoders to maximize the MI between the image and text views for the positive pairs. ",
693
+ "bbox": [
694
+ 176,
695
+ 819,
696
+ 821,
697
+ 862
698
+ ],
699
+ "page_idx": 4
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "As shown in $[ \\overline { { | 4 8 | } }$ , we can also interpret MLM as maximizing the MI between a masked word token and its masked context (i.e. image $^ +$ masked text). Specifically, we can re-write the MLM loss with one-hot labels (Equation $\\textcircled { 3 }$ as ",
704
+ "bbox": [
705
+ 174,
706
+ 90,
707
+ 825,
708
+ 135
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "img_path": "images/d54f0ba96e2babeea4b9f64d321ff3a4ea922b83e250db1941aa32728f127988.jpg",
715
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { m l m } } = - \\mathbb { E } _ { p ( I , \\hat { T } ) } \\big [ \\log \\frac { \\exp ( \\psi ( y ^ { \\mathrm { m s k } } ) ^ { \\top } f ( I , \\hat { T } ) ) } { \\sum _ { y \\in \\mathcal { V } } \\exp ( \\psi ( y ) ^ { \\top } f ( I , \\hat { T } ) ) } \\big ]\n$$",
716
+ "text_format": "latex",
717
+ "bbox": [
718
+ 325,
719
+ 140,
720
+ 671,
721
+ 181
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "where $\\psi ( y ) : \\mathcal { V } \\to \\mathbb { R } ^ { d }$ is a lookup function in the multimodal encoder’s output layer that maps a word token $y$ into a vector and $\\nu$ is the full vocabulary set, and $f ( I , { \\hat { T } } )$ is a function that returns the final hidden state of the multimodal encoder corresponding to the masked context. Hence, MLM considers the two views of an image-text pair to be: (1) a randomly selected word token, and (2) the image $^ +$ the contextual text with that word masked. ",
728
+ "bbox": [
729
+ 173,
730
+ 189,
731
+ 825,
732
+ 262
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Both ITC and MLM generate views by taking partial information from an image-text pair, through either modality separation or word masking. Our momentum distillation can be considered as generating alternative views from the entire proposal distribution. Take $\\mathrm { I T C } _ { \\mathrm { M o D } }$ in Equation $6$ as an example, minimizing $\\mathrm { K L } ( p ^ { \\mathrm { i 2 t } } ( I ) , q ^ { \\mathrm { i 2 t } } ( I ) )$ is equivalent to minimizing the following objective: ",
739
+ "bbox": [
740
+ 174,
741
+ 267,
742
+ 825,
743
+ 324
744
+ ],
745
+ "page_idx": 5
746
+ },
747
+ {
748
+ "type": "equation",
749
+ "img_path": "images/ca3ef3c3db95acf8048ef17e96071edf75a8e8873da35d848d600aaaa47cb03b.jpg",
750
+ "text": "$$\n- \\sum _ { m } q _ { m } ^ { \\mathrm { i } 2 \\mathrm { t } } ( I ) \\log p _ { m } ^ { \\mathrm { i } 2 \\mathrm { t } } ( I ) = - \\sum _ { m } \\frac { \\exp ( s ^ { \\prime } ( I , T _ { m } ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ^ { \\prime } ( I , T _ { m } ) / \\tau ) } \\log \\frac { \\exp ( s ( I , T _ { m } ) / \\tau ) } { \\sum _ { m = 1 } ^ { M } \\exp ( s ( I , T _ { m } ) / \\tau ) }\n$$",
751
+ "text_format": "latex",
752
+ "bbox": [
753
+ 187,
754
+ 330,
755
+ 779,
756
+ 369
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "It maximizes $\\mathbf { M I } ( I , T _ { m } )$ for texts that share similar semantic meaning with the image $I$ because those texts would have larger $q _ { m } ^ { \\mathrm { i 2 t } } ( I )$ . Similarly, $\\mathrm { I T C } _ { \\mathrm { M o D } }$ also maximizes $\\mathbf { M } \\mathbf { I } ( I _ { m } , T )$ for images that are similar to $T$ . We can follow the same method to show that $\\mathbf { M L M } _ { \\mathrm { M o D } }$ generates alternative views $y ^ { \\prime } \\in \\mathcal { V }$ for the masked word $y ^ { \\mathrm { m s k } }$ , and maximizes the MI between $y ^ { \\prime }$ and $( I , { \\hat { T } } )$ . Therefore, our momentum distillation can be considered as performing data augmentation to the original views. The momentum model generates a diverse set of views that are absent in the original image-text pairs, and encourages the base model to learn representations that capture view-invariant semantic information. ",
763
+ "bbox": [
764
+ 173,
765
+ 376,
766
+ 825,
767
+ 476
768
+ ],
769
+ "page_idx": 5
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "5 Downstream $\\mathbf { V } { + } \\mathbf { L }$ Tasks ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 174,
777
+ 492,
778
+ 406,
779
+ 508
780
+ ],
781
+ "page_idx": 5
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "We adapt the pre-trained model to five downstream $_ { \\mathrm { V + L } }$ tasks. We introduce each task and our fine-tuning strategy below. Details of the datasets and fine-tuning hyperparameters are in Appendix. ",
786
+ "bbox": [
787
+ 176,
788
+ 520,
789
+ 823,
790
+ 549
791
+ ],
792
+ "page_idx": 5
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Image-Text Retrieval contains two subtasks: image-to-text retrieval (TR) and text-to-image retrieval (IR). We evaluate ALBEF on the Flickr30K $\\bar { \\mathbb { E 9 } } \\bar { \\mathbb { I } }$ and COCO benchmarks, and fine-tune the pretrained model using the training samples from each dataset. For zero-shot retrieval on Flickr30K, we evaluate with the model fine-tuned on COCO. During fine-tuning, we jointly optimize the ITC loss (Equation $2 )$ and the ITM loss (Equation $\\textcircled{4}$ . ITC learns an image-text scoring function based on similarity of unimodal features, whereas ITM models the fine-grained interaction between image and text to predict a matching score. Since the downstream datasets contain multiple texts for each image, we change the ground-truth label of ITC to consider multiple positives in the queue, where each positive has a ground-truth probability of 1/#positives. During inference, we first compute the feature similarity score $s _ { \\mathrm { i t c } }$ for all image-text pairs. Then we take the top- $k$ candidates and calculate their ITM score $s _ { \\mathrm { i t m } }$ for ranking. Because $k$ can be set to be very small, our inference speed is much faster than methods that require computing the ITM score for all image-text pairs [2, 3, 8]. ",
797
+ "bbox": [
798
+ 173,
799
+ 555,
800
+ 825,
801
+ 720
802
+ ],
803
+ "page_idx": 5
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Visual Entailment (SNLI-VE5 [51]) is a fine-grained visual reasoning task to predict whether the relationship between an image and a text is entailment, neutral, or contradictory. We follow UNITER $\\left[ \\left[ 2 \\right] \\right]$ and consider VE as a three-way classification problem, and predict the class probabilities using a multi-layer perceptron (MLP) on the multimodal encoder’s representation of the [CLS] token. ",
808
+ "bbox": [
809
+ 173,
810
+ 724,
811
+ 825,
812
+ 784
813
+ ],
814
+ "page_idx": 5
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "Visual Question Answering (VQA $\\pmb { \\mathbb { B } 2 } \\mathbf { l }$ ) requires the model to predict an answer given an image and a question. Different from existing methods that formulate VQA as a multi-answer classification problem [53, 2], we consider VQA as an answer generation problem, similar to [54]. Specifically, we use a 6-layer transformer decoder to generate the answer. As shown in Figure 3a, the auto-regressive answer decoder receives the multimodal embeddings through cross attention, and a start-of-sequence token ([CLS]) is used as the decoder’s initial input token. Likewise, an end-of-sequence token ([SEP]) is appended to the end of decoder outputs which indicates the completion of generation. ",
819
+ "bbox": [
820
+ 173,
821
+ 789,
822
+ 825,
823
+ 887
824
+ ],
825
+ "page_idx": 5
826
+ },
827
+ {
828
+ "type": "image",
829
+ "img_path": "images/0b0dc7535563e91da490a221fda745edf632ed8624683f45f89b326da9d67c5b.jpg",
830
+ "image_caption": [
831
+ "Figure 3: The model architecture for VQA and $\\mathrm { \\tt N L V R } ^ { 2 }$ . For VQA, we append an auto-regressive decoder to generate the answer given the image-question embeddings. For $\\mathrm { \\dot { N L V R } ^ { 2 } }$ , we replicate the transformer block within each layer of multimodal encoder to enable reasoning over two images. "
832
+ ],
833
+ "image_footnote": [],
834
+ "bbox": [
835
+ 181,
836
+ 78,
837
+ 815,
838
+ 214
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "The answer decoder is initialized using the pre-trained weights from the multimodal encoder, and finetuned with a conditional language-modeling loss. For a fair comparison with existing methods, we constrain the decoder to only generate from the 3,128 candidate answers $ { \\Vert 5 5 \\Vert }$ during inference. ",
845
+ "bbox": [
846
+ 173,
847
+ 273,
848
+ 826,
849
+ 315
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Natural Language for Visual Reasoning (NLVR2 [19]) requires the model to predict whether a text describes a pair of images. We extend our multimodal encoder to enable reasoning over two images. As shown in Figure $3 { \\mathrm { b } }$ , each layer of the multimodal encoder is replicated to have two consecutive transformer blocks, where each block contains a self-attention layer, a cross-attention layer, and a feed-forward layer (see Figure 1). The two blocks within each layer are initialized using the same pre-trained weights, and the two cross-attention layers share the same linear projection weights for the keys and values. During training, the two blocks receive two sets of image embeddings for the image pair. We append a MLP classifier on the multimodal encoder’s [CLS] representation for prediction. ",
856
+ "bbox": [
857
+ 173,
858
+ 320,
859
+ 825,
860
+ 433
861
+ ],
862
+ "page_idx": 6
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "For $\\mathrm { \\Delta N L V R ^ { 2 } }$ , we perform an additional pre-training step to prepare the new multimodal encoder for encoding an image-pair. We design a text-assignment (TA) task as follows: given a pair of images and a text, the model needs to assign the text to either the first image, the second image, or none of them. We consider it as a three-way classification problem, and use a FC layer on the [CLS] representation to predict the assignment. We pre-train with TA for only 1 epoch using the 4M images (Section 3.4). ",
867
+ "bbox": [
868
+ 174,
869
+ 439,
870
+ 825,
871
+ 508
872
+ ],
873
+ "page_idx": 6
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Visual Grounding aims to localize the region in an image that corresponds to a specific textual description. We study the weakly-supervised setting, where no bounding box annotations are available. We perform experiments on the $\\operatorname { R e f C O C O + } \\mathbb { I }$ 56] dataset, and fine-tune the model using only imagetext supervision following the same strategy as image-text retrieval. During inference, we extend Grad-CAM $\\pmb { \\mathbb { Q } } \\mathbf { \\| }$ to acquire heatmaps, and use them to rank the detected proposals provided by $\\mathbb { \\lVert 5 3 \\rVert }$ ",
878
+ "bbox": [
879
+ 173,
880
+ 515,
881
+ 826,
882
+ 585
883
+ ],
884
+ "page_idx": 6
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "6 Experiments ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 174,
892
+ 601,
893
+ 312,
894
+ 617
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "6.1 Evaluation on the Proposed Methods ",
901
+ "text_level": 1,
902
+ "bbox": [
903
+ 174,
904
+ 627,
905
+ 470,
906
+ 643
907
+ ],
908
+ "page_idx": 6
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "First, we evaluate the effectiveness of the proposed methods (i.e. image-text contrastive learning, contrastive hard negative mining, and momentum distillation). Table $\\bar { \\mathbb { \\perp } }$ shows the performance of the downstream tasks with different variants of our method. Compared to the baseline pre-training tasks $( \\mathbf { M L M + I T M } )$ ), adding ITC substantially improves the pre-trained model’s performance across all tasks. The proposed hard negative mining improves ITM by finding more informative training samples. Furthermore, adding momentum distillation improves learning for both ITC (row 4), MLM (row 5), and on all downstream tasks (row 6). In the last row, we show that ALBEF can effectively leverage more noisy web data to improve the pre-training performance. ",
913
+ "bbox": [
914
+ 173,
915
+ 651,
916
+ 825,
917
+ 708
918
+ ],
919
+ "page_idx": 6
920
+ },
921
+ {
922
+ "type": "table",
923
+ "img_path": "images/305ca6c9a3f0fc0d5a55206bf9789c66cd7d7c45b55d6413524c2d44dc3fc209.jpg",
924
+ "table_caption": [
925
+ "Table 1: Evaluation of the proposed methods on four downstream $_ { \\mathrm { V + L } }$ tasks. For text-retrieval (TR) and image-retrieval (IR), we report the average of $\\mathbf { R } \\ @ 1$ , $\\mathbf { R } @ 5$ and $\\mathrm { R @ 1 0 }$ . ITC: image-text contrastive learning. MLM: masked language modeling. $\\mathrm { I T M } _ { \\mathrm { h a r d } }$ : image-text matching with contrastive hard negative mining. MoD: momentum distillation. MoDDownstream: momentum distillation on downstream tasks. "
926
+ ],
927
+ "table_footnote": [],
928
+ "table_body": "<table><tr><td>#Pre-train Images</td><td>Training tasks</td><td>TR IR (flickr test)</td><td>SNLI-VE (test)</td><td>NLVR² (test-P)</td><td>VQA (test-dev)</td></tr><tr><td rowspan=\"6\">4M</td><td>MLM+ ITM</td><td>93.96 88.55</td><td>77.06</td><td>77.51</td><td>71.40</td></tr><tr><td>ITC +MLM+ ITM</td><td>96.55 91.69</td><td>79.15</td><td>79.88</td><td>73.29</td></tr><tr><td>ITC + MLM + ITMhard</td><td>97.01 92.16</td><td>79.77</td><td>80.35</td><td>73.81</td></tr><tr><td>ITCMoD +MLM+ ITMhard</td><td>97.33 92.43</td><td>79.99</td><td>80.34</td><td>74.06</td></tr><tr><td>Full (ITCMoD + MLMMoD + ITMhard)</td><td>97.47 92.58</td><td>80.12</td><td>80.44</td><td>74.42</td></tr><tr><td>ALBEF (Full + MoDDownstream)</td><td>97.83 92.65</td><td>80.30</td><td>80.50</td><td>74.54</td></tr><tr><td>14M</td><td>ALBEF</td><td>98.70 94.07</td><td>80.91</td><td>83.14</td><td>75.84</td></tr></table>",
929
+ "bbox": [
930
+ 178,
931
+ 728,
932
+ 820,
933
+ 859
934
+ ],
935
+ "page_idx": 6
936
+ },
937
+ {
938
+ "type": "table",
939
+ "img_path": "images/78ea2426ebebef0eb7ef7266792282451a64e4ef9a8bd05030122bad14960416.jpg",
940
+ "table_caption": [
941
+ "Table 2: Fine-tuned image-text retrieval results on Flickr30K and COCO datasets. "
942
+ ],
943
+ "table_footnote": [],
944
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">#Pre-train Images</td><td colspan=\"6\">Flickr30K (1K test set)</td><td colspan=\"6\">MSCOCO (5K test set)</td></tr><tr><td colspan=\"2\">TR</td><td colspan=\"4\"></td><td colspan=\"2\">TR</td><td colspan=\"2\"></td><td colspan=\"2\">IR</td></tr><tr><td>UNITER</td><td>4M</td><td>R@1 87.3</td><td>R@5 98.0</td><td>R@10 99.2</td><td>R@1 75.6</td><td>R@5</td><td>R@10 96.8</td><td>R@1 65.7</td><td>R@5</td><td>R@10 93.8</td><td>R@1 52.9</td><td>R@5 79.9</td><td>R@10</td></tr><tr><td>VILLA</td><td>4M</td><td>87.9</td><td>97.5</td><td>98.8</td><td>76.3</td><td>94.1</td><td>96.8</td><td>-</td><td>88.6 -</td><td></td><td></td><td></td><td>88.0</td></tr><tr><td>OSCAR</td><td>4M</td><td></td><td></td><td></td><td></td><td>94.2</td><td></td><td>70.0</td><td></td><td>- 95.5</td><td>- 54.0</td><td>-</td><td>- 88.5</td></tr><tr><td>ALIGN</td><td>1.2B</td><td>- 95.3</td><td>-</td><td>1</td><td>1</td><td>-</td><td>-</td><td>77.0</td><td>91.1</td><td></td><td></td><td>80.8</td><td></td></tr><tr><td></td><td></td><td></td><td>99.8</td><td>100.0</td><td>84.9</td><td>97.4</td><td>98.6</td><td></td><td>93.5</td><td>96.9</td><td>59.9</td><td>83.3</td><td>89.8</td></tr><tr><td>ALBEF</td><td>4M</td><td>94.3</td><td>99.4</td><td>99.8</td><td>82.8</td><td>96.7</td><td>98.4</td><td>73.1</td><td>91.4</td><td>96.0</td><td>56.8</td><td>81.5</td><td>89.2</td></tr><tr><td>ALBEF</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>14M</td><td>95.9</td><td>99.8</td><td></td><td></td><td></td><td></td><td></td><td></td><td>97.2</td><td>60.7</td><td>84.3</td><td>90.5</td></tr><tr><td></td><td></td><td></td><td></td><td>100.0</td><td>85.6</td><td>97.5</td><td>98.9</td><td>77.6</td><td>94.3</td><td></td><td></td><td></td><td></td></tr></table>",
945
+ "bbox": [
946
+ 173,
947
+ 73,
948
+ 820,
949
+ 193
950
+ ],
951
+ "page_idx": 7
952
+ },
953
+ {
954
+ "type": "table",
955
+ "img_path": "images/3dd999bfbbc13378ebced4ad22307027f1e86beab56912eed83a7f8f56c8e3f2.jpg",
956
+ "table_caption": [
957
+ "Table 3: Zero-shot image-text retrieval results on Flickr30K. "
958
+ ],
959
+ "table_footnote": [],
960
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">#Pre-train Images</td><td colspan=\"6\">Flickr30K (1K test set)</td></tr><tr><td colspan=\"3\">TR</td><td colspan=\"3\">IR</td></tr><tr><td></td><td></td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>UNITER 四</td><td>4M</td><td>83.6</td><td>95.7</td><td>97.7</td><td>68.7</td><td>89.2</td><td>93.9</td></tr><tr><td>CLIP 回</td><td>400M</td><td>88.0</td><td>98.7</td><td>99.4</td><td>68.7</td><td>90.6</td><td>95.2</td></tr><tr><td>ALIGN </td><td>1.2B</td><td>88.6</td><td>98.7</td><td>99.7</td><td>75.7</td><td>93.8</td><td>96.8</td></tr><tr><td>ALBEF</td><td>4M</td><td>90.5</td><td>98.8</td><td>99.7</td><td>76.8</td><td>93.7</td><td>96.7</td></tr><tr><td>ALBEF</td><td>14M</td><td>94.1</td><td>99.5</td><td>99.7</td><td>82.8</td><td>96.3</td><td>98.1</td></tr></table>",
961
+ "bbox": [
962
+ 251,
963
+ 220,
964
+ 738,
965
+ 334
966
+ ],
967
+ "page_idx": 7
968
+ },
969
+ {
970
+ "type": "table",
971
+ "img_path": "images/f1b8e1a70ca08da555a2f5c10100ce8aaa7a1664b04f626da78483800cd87e84.jpg",
972
+ "table_caption": [],
973
+ "table_footnote": [
974
+ "Table 4: Comparison with state-of-the-art methods on downstream vision-language tasks. "
975
+ ],
976
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">VQA</td><td colspan=\"2\">NLVR²</td><td colspan=\"2\">SNLI-VE</td></tr><tr><td>test-dev</td><td>test-std</td><td>dev</td><td>test-P</td><td>val</td><td>test</td></tr><tr><td>VisualBERT[13]</td><td>70.80</td><td>71.00</td><td>67.40</td><td>67.00</td><td>-</td><td>-</td></tr><tr><td>VL-BERT 目</td><td>71.16</td><td>=</td><td>=</td><td>=</td><td>-</td><td></td></tr><tr><td>LXMERT[</td><td>72.42</td><td>72.54</td><td>74.90</td><td>74.50</td><td>=</td><td>=</td></tr><tr><td>12-in-1 目</td><td>73.15</td><td>-</td><td>-</td><td>78.87</td><td>=</td><td>76.95</td></tr><tr><td>UNITER [2]</td><td>72.70</td><td>72.91</td><td>77.18</td><td>77.85</td><td>78.59</td><td>78.28</td></tr><tr><td>VL-BART/T5 54</td><td>-</td><td>71.3</td><td>=</td><td>73.6</td><td>-</td><td>1</td></tr><tr><td>ViLT 四</td><td>70.94</td><td>-</td><td>75.24</td><td>76.21</td><td>-</td><td>-</td></tr><tr><td>OSCAR [3</td><td>73.16</td><td>73.44</td><td>78.07</td><td>78.36</td><td>=</td><td>1</td></tr><tr><td>VILLA 图</td><td>73.59</td><td>73.67</td><td>78.39</td><td>79.30</td><td>79.47</td><td>79.03</td></tr><tr><td>ALBEF (4M)</td><td>74.54</td><td>74.70</td><td>80.24</td><td>80.50</td><td>80.14</td><td>80.30</td></tr><tr><td>ALBEF (14M)</td><td>75.84</td><td>76.04</td><td>82.55</td><td>83.14</td><td>80.80</td><td>80.91</td></tr></table>",
977
+ "bbox": [
978
+ 261,
979
+ 363,
980
+ 730,
981
+ 540
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "",
988
+ "bbox": [
989
+ 174,
990
+ 566,
991
+ 825,
992
+ 622
993
+ ],
994
+ "page_idx": 7
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "6.2 Evaluation on Image-Text Retrieval ",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 174,
1002
+ 635,
1003
+ 462,
1004
+ 650
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Table 2 and Table 3 report results on fine-tuned and zero-shot image-text retrieval, respectively. Our ALBEF achieves state-of-the-art performance, outperforming CLIP $\\pmb { \\Vert 6 \\Vert }$ and ALIGN $[ [ 7 ]$ which are trained on orders of magnitude larger datasets. Given the considerable amount of improvement of ALBEF when the number of training images increases from 4M to 14M, we hypothesize that it has potential to further grow by training on larger-scale web image-text pairs. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 655,
1014
+ 825,
1015
+ 726
1016
+ ],
1017
+ "page_idx": 7
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "6.3 Evaluation on VQA, NLVR, and VE ",
1022
+ "text_level": 1,
1023
+ "bbox": [
1024
+ 176,
1025
+ 734,
1026
+ 464,
1027
+ 750
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Table $\\sharp$ reports the comparison with existing methods on other $_ { \\mathrm { V + L } }$ understanding tasks. With 4M pre-training images, ALBEF already achieves state-of-the-art performance. With 14M pre-training images, ALBEF substantially outperforms existing methods, including methods that additionally use object tags $\\pmb { \\mathbb { B } } \\|$ or adversarial data augmentation $\\pmb { \\mathbb { B } } ] \\mathbf l$ . Compared to VILLA $\\pmb { \\mathbb { B } } ] \\mathbf l$ , ALBEF achieves absolute improvements of $2 . 3 7 \\%$ on VQA test-std, $3 . 8 4 \\%$ on $\\mathrm { \\bar { N L V R ^ { 2 } } }$ test-P, and $1 . 8 8 \\%$ on SNLI-VE test. Because ALBEF is detector-free and requires lower resolution images, it also enjoys much faster inference speed compared to most existing methods ${ \\tt > } 1 0$ times faster than VILLA on ${ \\mathrm { N L V R } } ^ { 2 }$ ). ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 755,
1037
+ 825,
1038
+ 853
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "6.4 Weakly-supervised Visual Grounding ",
1045
+ "text_level": 1,
1046
+ "bbox": [
1047
+ 174,
1048
+ 862,
1049
+ 473,
1050
+ 877
1051
+ ],
1052
+ "page_idx": 7
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Table 5 shows the results on $\\operatorname { R e f C O C O + }$ , where ALBEF substantially outperforms existing methods [57, 58] (which use weaker text embeddings). The $\\mathbf { A L B E F _ { i t c } }$ variant computes Grad-CAM ",
1057
+ "bbox": [
1058
+ 173,
1059
+ 883,
1060
+ 826,
1061
+ 911
1062
+ ],
1063
+ "page_idx": 7
1064
+ },
1065
+ {
1066
+ "type": "table",
1067
+ "img_path": "images/a734e17611d02ed4e676d4d4d8d49efa22fc0dbbdb2a79f5566cbeeda7d81fd3.jpg",
1068
+ "table_caption": [],
1069
+ "table_footnote": [
1070
+ "Table 5: Weakly-supervised visual grounding on $\\mathrm { R e f C O C O + }$ [56] dataset. "
1071
+ ],
1072
+ "table_body": "<table><tr><td>Method</td><td>Val</td><td>TestA</td><td>TestB</td></tr><tr><td>ARN 四</td><td>32.78</td><td>34.35</td><td>32.13</td></tr><tr><td>CCL[ 国</td><td>34.29</td><td>36.91</td><td>33.56</td></tr><tr><td>ALBEFitc</td><td>51.58</td><td>60.09</td><td>40.19</td></tr><tr><td>ALBEFitm</td><td>58.46</td><td>65.89</td><td>46.25</td></tr></table>",
1073
+ "bbox": [
1074
+ 179,
1075
+ 70,
1076
+ 403,
1077
+ 145
1078
+ ],
1079
+ "page_idx": 8
1080
+ },
1081
+ {
1082
+ "type": "image",
1083
+ "img_path": "images/4251bcd75e9054e149f7bf987e5ff45a120e0a49fcf551018cb3e8b81dc823a8.jpg",
1084
+ "image_caption": [
1085
+ "Figure 4: Grad-CAM visualization on the cross-attention maps in the 3rd layer of the multimodal encoder. "
1086
+ ],
1087
+ "image_footnote": [],
1088
+ "bbox": [
1089
+ 424,
1090
+ 65,
1091
+ 816,
1092
+ 146
1093
+ ],
1094
+ "page_idx": 8
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Q: is this rice noodle soup? Q: what is to the right of A: yes the soup? A: chopsticks ",
1099
+ "bbox": [
1100
+ 181,
1101
+ 184,
1102
+ 478,
1103
+ 207
1104
+ ],
1105
+ "page_idx": 8
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Q: what does the truck on Q: what is the man doing in the street? A: walking the left sell? A: ice cream ",
1110
+ "bbox": [
1111
+ 498,
1112
+ 184,
1113
+ 808,
1114
+ 208
1115
+ ],
1116
+ "page_idx": 8
1117
+ },
1118
+ {
1119
+ "type": "image",
1120
+ "img_path": "images/73781611098cb0fe1f63a3e0377c69a21f1e4b8ed04a2ab157bfdfaac6789207.jpg",
1121
+ "image_caption": [],
1122
+ "image_footnote": [],
1123
+ "bbox": [
1124
+ 181,
1125
+ 209,
1126
+ 816,
1127
+ 287
1128
+ ],
1129
+ "page_idx": 8
1130
+ },
1131
+ {
1132
+ "type": "image",
1133
+ "img_path": "images/ceb6f744b4870218abb363b8856d9195fd5ee3876c9a2f27efa97528688f2950.jpg",
1134
+ "image_caption": [
1135
+ "Figure 5: Grad-CAM visualizations on the cross-attention maps of the multimodal encoder for the VQA model. “a little girl holding a kitten next to a blue fence” ",
1136
+ "Figure 6: Grad-CAM visualizations on the cross-attention maps corresponding to individual words. "
1137
+ ],
1138
+ "image_footnote": [],
1139
+ "bbox": [
1140
+ 176,
1141
+ 319,
1142
+ 818,
1143
+ 410
1144
+ ],
1145
+ "page_idx": 8
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "visualizations on the self-attention maps in the last layer of the image encoder, where the gradients are acquired by maximizing the image-text similarity $s _ { \\mathrm { i t c } }$ . The $\\mathbf { A L B E F _ { i t m } }$ variant computes Grad-CAM on the cross-attention maps in the 3rd layer of the multimodal encoder (which is a layer specialized in grounding), where the gradients are acquired by maximizing the image-text matching score $s _ { \\mathrm { i t m } }$ Figure 4 provides a few visualizations. More analysis is in Appendix. ",
1150
+ "bbox": [
1151
+ 173,
1152
+ 439,
1153
+ 825,
1154
+ 508
1155
+ ],
1156
+ "page_idx": 8
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "We provide the Grad-CAM visualizations for VQA in Figure $\\textcircled{5}$ As can be seen in Appendix, the Grad-CAM visualizations from ALBEF are highly correlated with where humans would look when making decisions. In Figure $6 ,$ we show per-word visualizations for COCO. Notice how our model not only grounds objects, but also their attributes and relationships. ",
1161
+ "bbox": [
1162
+ 174,
1163
+ 513,
1164
+ 825,
1165
+ 569
1166
+ ],
1167
+ "page_idx": 8
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "6.5 Ablation Study ",
1172
+ "text_level": 1,
1173
+ "bbox": [
1174
+ 174,
1175
+ 580,
1176
+ 318,
1177
+ 594
1178
+ ],
1179
+ "page_idx": 8
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Table $\\boxed { 6 }$ studies the effect of various design choices on image-text retrieval. Since we use $s _ { \\mathrm { i t c } }$ to filter top- $k$ candidates during inference, we vary $k$ and report its effect. In general, the ranking result acquired by $s _ { \\mathrm { i t m } }$ is not sensitive to changes ",
1184
+ "bbox": [
1185
+ 173,
1186
+ 601,
1187
+ 400,
1188
+ 698
1189
+ ],
1190
+ "page_idx": 8
1191
+ },
1192
+ {
1193
+ "type": "table",
1194
+ "img_path": "images/569338ef9e212108cdfde60bc9757da949676722a3a94db99f77ebeff5279bad.jpg",
1195
+ "table_caption": [],
1196
+ "table_footnote": [],
1197
+ "table_body": "<table><tr><td rowspan=\"2\">Flickr30K</td><td colspan=\"4\">w/ hard negs</td><td rowspan=\"2\">w/o hard negs k =128</td></tr><tr><td>Sitc</td><td>k =16</td><td>k =128</td><td>k=256</td></tr><tr><td>TR</td><td>97.30</td><td>98.60</td><td>98.57</td><td>98.57</td><td>98.22 (-0.35)</td></tr><tr><td>IR</td><td>90.95</td><td>93.64</td><td>93.99</td><td>93.95</td><td>93.68 (-0.31)</td></tr></table>",
1198
+ "bbox": [
1199
+ 413,
1200
+ 590,
1201
+ 820,
1202
+ 651
1203
+ ],
1204
+ "page_idx": 8
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Table 6: Ablation study on fine-tuned image-text retrieval. The average recall on the test set is reported. We use $s _ { \\mathrm { i t c } }$ to filter top- $k$ candidates and calculate their $s _ { \\mathrm { i t m } }$ score for ranking. ",
1209
+ "bbox": [
1210
+ 413,
1211
+ 655,
1212
+ 823,
1213
+ 694
1214
+ ],
1215
+ "page_idx": 8
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "in $k$ . We also validate the effect of hard negative mining in the last column. ",
1220
+ "bbox": [
1221
+ 174,
1222
+ 698,
1223
+ 666,
1224
+ 712
1225
+ ],
1226
+ "page_idx": 8
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Table $^ { 7 }$ studies the effect of textassignment (TA) pre-training and parameter sharing on $\\mathrm { \\tt N L V R } ^ { \\mathrm { \\bar { 2 } } }$ . We examine three strategies: (1) the two mutimodal blocks share all parameters, (2) only the cross",
1231
+ "bbox": [
1232
+ 173,
1233
+ 718,
1234
+ 400,
1235
+ 801
1236
+ ],
1237
+ "page_idx": 8
1238
+ },
1239
+ {
1240
+ "type": "table",
1241
+ "img_path": "images/821711171c8c80af8e5884c06903997fb99ad472af08d713e9b02b2a76048bae.jpg",
1242
+ "table_caption": [],
1243
+ "table_footnote": [
1244
+ "Table 7: Ablation study on NLVR2. "
1245
+ ],
1246
+ "table_body": "<table><tr><td>NLVR²</td><td colspan=\"3\">w/TA share all share CA</td><td colspan=\"3\">w/o TA share all share CA</td></tr><tr><td>dev</td><td>82.13</td><td>82.55</td><td>no share 81.93</td><td>80.52</td><td>80.28</td><td>no share 77.84</td></tr><tr><td>test-P</td><td>82.36</td><td>83.14</td><td>82.85</td><td>81.29</td><td>80.45</td><td>77.58</td></tr></table>",
1247
+ "bbox": [
1248
+ 415,
1249
+ 723,
1250
+ 816,
1251
+ 784
1252
+ ],
1253
+ "page_idx": 8
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "attention (CA) layers are shared, (3) no sharing. Without TA, sharing the entire block has better performance. With TA to pre-train the model for image-pair, sharing CA leads to the best performance. ",
1258
+ "bbox": [
1259
+ 179,
1260
+ 801,
1261
+ 825,
1262
+ 829
1263
+ ],
1264
+ "page_idx": 8
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "7 Conclusion and Social Impacts ",
1269
+ "text_level": 1,
1270
+ "bbox": [
1271
+ 174,
1272
+ 843,
1273
+ 462,
1274
+ 861
1275
+ ],
1276
+ "page_idx": 8
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "This paper proposes ALBEF, a new framework for vision-language representation learning. ALBEF first aligns the unimodal image representation and text representation before fusing them with a multimodal encoder. We theoretically and experimentally verify the effectiveness of the proposed image-text contrastive learning and momentum distillation. Compared to existing methods, ALBEF offers better performance and faster inference speed on multiple downstream $_ { \\mathrm { V + L } }$ tasks. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 869,
1284
+ 825,
1285
+ 911
1286
+ ],
1287
+ "page_idx": 8
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "",
1292
+ "bbox": [
1293
+ 171,
1294
+ 92,
1295
+ 823,
1296
+ 119
1297
+ ],
1298
+ "page_idx": 9
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "While our paper shows promising results on vision-language representation learning, additional analysis on the data and the model is necessary before deploying it in practice, because web data may contain unintended private information, unsuitable images, or harmful texts, and only optimizing accuracy may have unwanted social implications. ",
1303
+ "bbox": [
1304
+ 174,
1305
+ 126,
1306
+ 825,
1307
+ 181
1308
+ ],
1309
+ "page_idx": 9
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "References ",
1314
+ "text_level": 1,
1315
+ "bbox": [
1316
+ 174,
1317
+ 202,
1318
+ 267,
1319
+ 218
1320
+ ],
1321
+ "page_idx": 9
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "[1] Tan, H., M. Bansal. LXMERT: learning cross-modality encoder representations from transformers. In K. Inui, J. Jiang, V. Ng, X. Wan, eds., EMNLP, pages 5099–5110. 2019. \n[2] Chen, Y., L. Li, L. Yu, et al. UNITER: universal image-text representation learning. In ECCV, vol. 12375, pages 104–120. 2020. \n[3] Li, X., X. Yin, C. Li, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In ECCV, pages 121–137. 2020. \n[4] Sharma, P., N. Ding, S. Goodman, et al. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In I. Gurevych, Y. Miyao, eds., ACL, pages 2556–2565. 2018. \n[5] Ordonez, V., G. Kulkarni, T. L. Berg. Im2text: Describing images using 1 million captioned photographs. In J. Shawe-Taylor, R. S. Zemel, P. L. Bartlett, F. C. N. Pereira, K. Q. Weinberger, eds., NIPS, pages 1143–1151. 2011. \n[6] Radford, A., J. W. Kim, C. Hallacy, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021. \n[7] Jia, C., Y. Yang, Y. Xia, et al. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021. \n[8] Gan, Z., Y. Chen, L. Li, et al. Large-scale adversarial training for vision-and-language representation learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020. \n[9] Selvaraju, R. R., M. Cogswell, A. Das, et al. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, pages 618–626. 2017. \n[10] Su, W., X. Zhu, Y. Cao, et al. Vl-bert: Pre-training of generic visual-linguistic representations. In ICLR. 2020. \n[11] Lu, J., D. Batra, D. Parikh, et al. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In H. M. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. B. Fox, R. Garnett, eds., NeurIPS, pages 13–23. 2019. \n[12] Lu, J., V. Goswami, M. Rohrbach, et al. 12-in-1: Multi-task vision and language representation learning. In CVPR, pages 10434–10443. 2020. \n[13] Li, L. H., M. Yatskar, D. Yin, et al. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, abs/1908.03557, 2019. \n[14] Qi, D., L. Su, J. Song, et al. Imagebert: Cross-modal pre-training with large-scale weaksupervised image-text data. arXiv preprint arXiv:2001.07966, 2020. \n[15] Li, G., N. Duan, Y. Fang, et al. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training. In AAAI, pages 11336–11344. 2020. \n[16] Yu, F., J. Tang, W. Yin, et al. Ernie-vil: Knowledge enhanced vision-language representations through scene graph. arXiv preprint arXiv:2006.16934, 2020. \n[17] Zhang, P., X. Li, X. Hu, et al. Vinvl: Making visual representations matter in vision-language models. arXiv preprint arXiv:2101.00529, 2021. \n[18] Huang, Z., Z. Zeng, Y. Huang, et al. Seeing out of the box: End-to-end pre-training for vision-language representation learning. arXiv preprint arXiv:2104.03135, 2021. \n[19] Suhr, A., S. Zhou, A. Zhang, et al. A corpus for reasoning about natural language grounded in photographs. In A. Korhonen, D. R. Traum, L. Màrquez, eds., ACL, pages 6418–6428. 2019. 2015. 9 g. Dag \n[21] Kim, W., B. Son, I. Kim. Vilt: Vision-and-language transformer without convolution or region supervision. arXiv preprint arXiv:2102.03334, 2021. \n[22] Faghri, F., D. J. Fleet, J. R. Kiros, et al. VSE $^ { + + }$ : improving visual-semantic embeddings with hard negatives. In BMVC, page 12. 2018. \n[23] Li, K., Y. Zhang, K. Li, et al. Visual semantic reasoning for image-text matching. In ICCV, pages 4653–4661. 2019. \n[24] He, K., H. Fan, Y. Wu, et al. Momentum contrast for unsupervised visual representation learning. In CVPR. 2020. \n[25] Chen, T., S. Kornblith, M. Norouzi, et al. A simple framework for contrastive learning of visual representations. In ICML. 2020. \n[26] Li, J., P. Zhou, C. Xiong, et al. Prototypical contrastive learning of unsupervised representations. In ICLR. 2021. \n[27] Li, J., C. Xiong, S. C. Hoi. Mopro: Webly supervised learning with momentum prototypes. In ICLR. 2021. \n[28] Hinton, G., O. Vinyals, J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. \n[29] Zagoruyko, S., N. Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR. 2017. \n[30] Furlanello, T., Z. C. Lipton, M. Tschannen, et al. Born-again neural networks. In J. G. Dy, A. Krause, eds., ICML, pages 1602–1611. 2018. \n[31] Touvron, H., M. Cord, M. Douze, et al. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. \n[32] Sanh, V., L. Debut, J. Chaumond, et al. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108, 2019. \n[33] Zhang, Y., T. Xiang, T. M. Hospedales, et al. Deep mutual learning. In CVPR, pages 4320–4328. 2018. \n[34] Anil, R., G. Pereyra, A. Passos, et al. Large scale distributed neural network training through online distillation. In ICLR. 2018. \n[35] Tarvainen, A., H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS, pages 1195–1204. 2017. \n[36] Li, J., R. Socher, S. C. Hoi. Dividemix: Learning with noisy labels as semi-supervised learning. In ICLR. 2020. \n[37] Cheng, R., B. Wu, P. Zhang, et al. Data-efficient language-supervised zero-shot learning with self-distillation. arXiv preprint arXiv:2104.08945, 2021. \n[38] Dosovitskiy, A., L. Beyer, A. Kolesnikov, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR. 2021. \n[39] Vaswani, A., N. Shazeer, N. Parmar, et al. Attention is all you need. In I. Guyon, U. von Luxburg, S. Bengio, H. M. Wallach, R. Fergus, S. V. N. Vishwanathan, R. Garnett, eds., NIPS, pages 5998–6008. 2017. \n[40] Devlin, J., M. Chang, K. Lee, et al. BERT: pre-training of deep bidirectional transformers for language understanding. In J. Burstein, C. Doran, T. Solorio, eds., NAACL, pages 4171–4186. 2019. \n[41] Lin, T., M. Maire, S. J. Belongie, et al. Microsoft COCO: common objects in context. In D. J. Fleet, T. Pajdla, B. Schiele, T. Tuytelaars, eds., ECCV, vol. 8693, pages 740–755. 2014. \n[42] Krishna, R., Y. Zhu, O. Groth, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. IJCV, 123(1):32–73, 2017. \n[43] Changpinyo, S., P. Sharma, N. Ding, et al. Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In CVPR. 2021. \n[44] Loshchilov, I., F. Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. \n[45] Cubuk, E. D., B. Zoph, J. Shlens, et al. Randaugment: Practical automated data augmentation with a reduced search space. In CVPR Workshops, pages 702–703. 2020. \n[46] Tian, Y., C. Sun, B. Poole, et al. What makes for good views for contrastive learning? In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020. \n[47] Oord, A. v. d., Y. Li, O. Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. \n[48] Kong, L., C. de Masson d’Autume, L. Yu, et al. A mutual information maximization perspective of language representation learning. In ICLR. OpenReview.net, 2020. \n[49] Plummer, B. A., L. Wang, C. M. Cervantes, et al. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In ICCV, pages 2641–2649. 2015. \n[50] Do, V., O.-M. Camburu, Z. Akata, et al. e-snli-ve: Corrected visual-textual entailment with natural language explanations. arXiv preprint arXiv:2004.03744, 2020. \n[51] Xie, N., F. Lai, D. Doran, et al. Visual entailment: A novel task for fine-grained image understanding. arXiv preprint arXiv:1901.06706, 2019. \n[52] Goyal, Y., T. Khot, D. Summers-Stay, et al. Making the V in VQA matter: Elevating the role of image understanding in visual question answering. In CVPR, pages 6325–6334. 2017. \n[53] Yu, L., Z. Lin, X. Shen, et al. Mattnet: Modular attention network for referring expression comprehension. In CVPR, pages 1307–1315. 2018. \n[54] Cho, J., J. Lei, H. Tan, et al. Unifying vision-and-language tasks via text generation. arXiv preprint arXiv:2102.02779, 2021. \n[55] Kim, J., J. Jun, B. Zhang. Bilinear attention networks. In S. Bengio, H. M. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, R. Garnett, eds., NIPS, pages 1571–1581. 2018. \n[56] Yu, L., P. Poirson, S. Yang, et al. Modeling context in referring expressions. In B. Leibe, J. Matas, N. Sebe, M. Welling, eds., ECCV, pages 69–85. 2016. \n[57] Liu, X., L. Li, S. Wang, et al. Adaptive reconstruction network for weakly supervised referring expression grounding. In ICCV, pages 2611–2620. 2019. \n[58] Zhang, Z., Z. Zhao, Z. Lin, et al. Counterfactual contrastive learning fo weakly-supervised vision-language grounding. In H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, H. Lin, eds., NeurIPS. 2020. \n[59] Karpathy, A., F. Li. Deep visual-semantic alignments for generating image descriptions. In CVPR, pages 3128–3137. 2015. \n[60] Bowman, S. R., G. Angeli, C. Potts, et al. A large annotated corpus for learning natural language inference. In L. Màrquez, C. Callison-Burch, J. Su, D. Pighin, Y. Marton, eds., EMNLP, pages 632–642. 2015. \n[61] Yu, Z., J. Yu, Y. Cui, et al. Deep modular co-attention networks for visual question answering. In CVPR, pages 6281–6290. 2019. \n[62] Kazemzadeh, S., V. Ordonez, M. Matten, et al. Referitgame: Referring to objects in photographs of natural scenes. In A. Moschitti, B. Pang, W. Daelemans, eds., EMNLP. 2014. \n[63] Das, A., H. Agrawal, C. L. Zitnick, et al. Human Attention in Visual Question Answering: Do Humans and Deep Networks Look at the Same Regions? 2016. ",
1326
+ "bbox": [
1327
+ 174,
1328
+ 231,
1329
+ 826,
1330
+ 914
1331
+ ],
1332
+ "page_idx": 9
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "",
1337
+ "bbox": [
1338
+ 171,
1339
+ 103,
1340
+ 830,
1341
+ 914
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "",
1348
+ "bbox": [
1349
+ 171,
1350
+ 90,
1351
+ 826,
1352
+ 768
1353
+ ],
1354
+ "page_idx": 11
1355
+ }
1356
+ ]
parse/train/OJLaKwiXSbx/OJLaKwiXSbx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/OJLaKwiXSbx/OJLaKwiXSbx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJfZKiC5FX/SJfZKiC5FX.md ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DYNAMICALLY UNFOLDING RECURRENT RESTORER:A MOVING ENDPOINT CONTROL METHOD FOR IMAGERESTORATION
2
+
3
+ Xiaoshuai Zhang∗
4
+ Institute of Computer Science and Technology,
5
+ Peking University
6
+ jet@pku.edu.cn Yiping Lu∗
7
+ School Of Mathmatical Science, Peking university
8
+ luyiping9712@pku.edu.cn
9
+ Jiaying Liu
10
+ Institute of Computer Science and Technology,
11
+ Peking University
12
+ liujiaying@pku.edu.cn
13
+ Bin Dong
14
+ Beijing International Center for Mathematical Research, Peking University
15
+ Center for Data Science, Peking University
16
+ Beijing Institute of Big Data Research,
17
+ Beijing, China
18
+ dongbin@math.pku.edu.cn
19
+
20
+ # ABSTRACT
21
+
22
+ In this paper, we propose a new control framework called the moving endpoint control to restore images corrupted by different degradation levels using a single model. The proposed control problem contains an image restoration dynamic which is modeled by a convolutional RNN. The moving endpoint, which is essentially the terminal time of the associated dynamic, is determined by a policy network. We call the proposed model the dynamically unfolding recurrent restorer (DURR). Numerical experiments show that DURR is able to achieve state-of-the-art performances on blind image denoising and JPEG image deblocking. Furthermore, DURR can well generalize to images with higher degradation levels that are not included in the training stage.1
23
+
24
+ # 1 INTRODUCTION
25
+
26
+ Image restoration, including image denoising, deblurring, inpainting, etc., is one of the most important areas in imaging science. Its major purpose is to obtain high quality reconstructions of images corrupted in various ways during imaging, acquisiting, and storing, and enable us to see crucial but subtle objects that reside in the images. Image restoration has been an active research area. Numerous models and algorithms have been developed for the past few decades. Before the uprise of deep learning methods, there were two classes of image restoration approaches that were widely adopted in the field: transformation based approach and PDE approach. The transformation based approach includes wavelet and wavelet frame based methods (Elad et al., 2005; Starck et al., 2005; Daubechies et al., 2007; Cai et al., 2009), dictionary learning based methods (Aharon et al., 2006), similarity based methods (Buades et al., 2005; Dabov et al., 2007), low-rank models (Ji et al., 2010; Gu et al., 2014), etc. The PDE approach includes variational models (Mumford & Shah, 1989; Rudin et al., 1992; Bredies et al., 2010), nonlinear diffusions (Perona & Malik, 1990; Catté et al., 1992; Weickert, 1998), nonlinear hyperbolic equations (Osher & Rudin, 1990), etc. More recently, deep connections
27
+
28
+ between wavelet frame based methods and PDE approach were established (Cai et al., 2012; 2016;
29
+ Dong et al., 2017).
30
+
31
+ One of the greatest challenge for image restoration is to properly handle image degradations of different levels. In the existing transformation based or PDE based methods, there is always at least one tuning parameter (e.g. the regularization parameter for variational models and terminal time for nonlinear diffusions) that needs to be manually selected. The choice of the parameter heavily relies on the degradation level.
32
+
33
+ Recent years, deep learning models for image restoration tasks have significantly advanced the state-of-the-art of the field. Jain & Seung (2009) proposed a convolutional neural network (CNN) for image denoising which has better expressive power than the MRF models by Lan et al. (2006). Inspired by nonlinear diffusions, Chen & Pock (2017) designed a deep neural network for image denoising and Zhang et al. (2017a) improves the capacity by introducing a deeper neural network with residual connections. Chen et al. (2017) use the CNN to simulate a wide variety of image processing operators, achieving high efficiencies with little accuracy drop. However, these models cannot gracefully handle images with varied degradation levels. Although one may train different models for images with different levels, this may limit the application of these models in practice due to lack of flexibility.
34
+
35
+ Taking blind image denoising for example. Zhang et al. (2017a) designed a 20-layer neural network for the task, called DnCNN-B, which had a huge number of parameters. To reduce number of parameters, Lefkimmiatis (2017) proposed the UNLNet5, by unrolling a projection gradient algorithm for a constrained optimization model. However, Lefkimmiatis (2017) also observed a drop in PSNR comparing to DnCNN. Therefore, the design of a light-weighted and yet effective model for blind image denoising remains a challenge. Moreover, deep learning based models trained on simulated gaussian noise images usually fail to handle real world noise, as will be illustrated in later sections.
36
+
37
+ Another example is JPEG image deblocking. JPEG is the most commonly used lossy image compression method. However, this method tend to introduce undesired artifacts as the compression rate increases. JPEG image deblocking aims to eliminate the artifacts and improve the image quality. Recently, deep learning based methods were proposed for JPEG deblocking (Dong et al., 2015; Zhang et al., 2017a; 2018). However, most of their models are trained and evaluated on a given quality factor. Thus it would be hard for these methods to apply to Internet images, where the quality factors are usually unknown.
38
+
39
+ In this paper, we propose a single image restoration model that can robustly restore images with varied degradation levels even when the degradation level is well outside of that of the training set. Our proposed model for image restoration is inspired by the recent development on the relation between deep learning and optimal control. The relation between supervised deep learning methods and optimal control has been discovered and exploited by Weinan (2017); Lu et al. (2018); Chang et al. (2017); Fang et al. (2017). The key idea is to consider the residual block $x _ { n + 1 } = x _ { n } + f ( x _ { n } )$ as an approximation to the continuous dynamics ${ \dot { X } } = f ( X )$ . In particular, Lu et al. (2018); Fang et al. (2017) demonstrated that the training process of a class of deep models (e.g. ResNet by He et al. (2016), PolyNet by Zhang et al. (2017b), etc.) can be understood as solving the following control problem:
40
+
41
+ $$
42
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { w } \bigg ( L ( X ( T ) , y ) + \int _ { 0 } ^ { \tau } R ( w ( t ) , t ) d t \bigg ) } \\ { \displaystyle s . t . \dot { X } = f ( X ( t ) , w ( t ) ) , t \in ( 0 , \tau ) } \\ { \displaystyle X ( 0 ) = x _ { 0 } . } \end{array}
43
+ $$
44
+
45
+ Here $x _ { 0 }$ is the input, $y$ is the regression target or label, $\dot { \boldsymbol X } = f ( \boldsymbol X , \boldsymbol w )$ is the deep neural network with parameter $w ( t )$ , $R$ is the regularization term and $L$ can be any loss function to measure the difference between the reconstructed images and the ground truths.
46
+
47
+ In the context of image restoration, the control dynamic $\dot { X } = f ( X ( t ) , \omega ( t ) ) , t \in ( 0 , \tau )$ can be, for example, a diffusion process learned using a deep neural network. The terminal time $\tau$ of the diffusion corresponds to the depth of the neural network. Previous works simply fixed the depth of the network, i.e. the terminal time, as a fixed hyper-parameter. However Mrázek & Navara (2003) showed that the optimal terminal time of diffusion differs from image to image. Furthermore, when an image is corrupted by higher noise levels, the optimal terminal time for a typical noise removal diffusion should be greater than when a less noisy image is being processed. This is the main reason why current deep models are not robust enough to handle images with varied noise levels. In this paper, we no longer treat the terminal time as a hyper-parameter. Instead, we design a new architecture (see Fig. 3) that contains both a deep diffusion-like network and another network that determines the optimal terminal time for each input image. We propose a novel moving endpoint control model to train the aforementioned architecture. We call the proposed architecture the dynamically unfolding recurrent restorer (DURR).
48
+
49
+ We first cast the model in the continuum setting. Let $x _ { 0 }$ be an observed degraded image and $y$ be its corresponding damage-free counterpart. We want to learn a time-independent dynamic system $\dot { X } = f ( X ( t ) , w )$ with parameters $w$ so that $X ( 0 ) = x$ and $X ( \tau ) \approx y$ for some $\tau > 0$ . See Fig. 2 for an illustration of our idea. The reason that we do not require $X ( \tau ) = y$ is to avoid over-fitting. For varied degradation levels and different images, the optimal terminal time $\tau$ of the dynamics may vary. Therefore, we need to include the variable $\tau$ in the learning process as well. The learning of the dynamic system and the terminal time can be gracefully casted as the following moving endpoint control problem:
50
+
51
+ $$
52
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { w , \tau ( x ) } L ( X ( \tau ) , y ) + \int _ { 0 } ^ { \tau ( x ) } R ( w ( t ) , t ) d t } \\ { \displaystyle s . t . \dot { X } = f ( X ( t ) , w ( t ) ) , t \in ( 0 , \tau ( x ) ) } \\ { \displaystyle X ( 0 ) = x . } \end{array}
53
+ $$
54
+
55
+ Different from the previous control problem, in our model the terminal time $\tau$ is also a parameter to be optimized and it depends on the data $x$ . The dynamic system $\dot { X } = f ( X ( t ) , w )$ is modeled by a recurrent neural network (RNN) with a residual connection, which can be understood as a residual network with shared weights (Liao & Poggio, 2016). We shall refer to this RNN as the restoration unit. In order to learn the terminal time of the dynamics, we adopt a policy network to adaptively determine an optimal stopping time. Our learning framework is demonstrated in Fig. 3. We note that the above moving endpoint control problem can be regarded as the penalized version of the well-known fixed endpoint control problem in optimal control (Evans, 2005), where instead of penalizing the difference between $X ( \tau )$ and $y$ , the constraint $X ( \tau ) = y$ is strictly enforced.
56
+
57
+ In short, we summarize our contribution as following:
58
+
59
+ • We are the first to use convolutional RNN for image restoration with unknown degradation levels, where the unfolding time of the RNN is determined dynamically at run-time by a policy unit (could be either handcrafted or RL-based).
60
+ • The proposed model achieves state-of-the-art performances with significantly less parameters and better running efficiencies than some of the state-of-the-art models.
61
+ We reveal the relationship between the generalization power and unfolding time of the RNN by extensive experiments. The proposed model, DURR, has strong generalization to images with varied degradation levels and even to the degradation level that is unseen by the model during training (Fig. 1).
62
+ The DURR is able to well handle real image denoising without further modification. Qualitative results have shown that our processed images have better visual quality, especially sharper details compared to others.
63
+
64
+ # 2 METHOD
65
+
66
+ The proposed architecture, i.e. DURR, contains an RNN (called the restoration unit) imitating a nonlinear diffusion for image restoration, and a deep policy network (policy unit) to determine the terminal time of the RNN. In this section, we discuss the training of the two components based on our moving endpoint control formulation. As will be elaborated, we first train the restoration unit to determine $\omega$ , and then train the policy unit to estimate $\tau ( x )$ .
67
+
68
+ ![](images/b9994af11293ec16af192ae7ba007b3f5e40a1eac061fe66610f8cf89429001c.jpg)
69
+ Figure 1: Denoising results of images from BSD68 under extreme noise conditions not seen in training data $( \sigma = 9 5 $ ).
70
+
71
+ ![](images/1230eb448c1f9a9db33389714ffbb02e617438d1676bcef3d0ffcd6a69481f05.jpg)
72
+ Figure 2: The proposed moving endpoint control model: evolving a learned reconstruction dynamics and ending at high-quality images.
73
+
74
+ # 2.1 TRAINING THE RESTORATION UNIT
75
+
76
+ If the terminal time $\tau$ for every input $x _ { i }$ is given (i.e. given a certain policy), the restoration unit can be optimized accordingly. We would like to show in this section that the policy used during training greatly influences the performance and the generalization ability of the restoration unit. More specifically, a restoration unit can be better trained by a good policy.
77
+
78
+ The simplest policy is to fix the loop time $\tau$ as a constant for every input. We name such policy as “naive policy”. A more reasonable policy is to manually assign an unfolding time for each degradation level during training. We shall call this policy the “refined policy”. Since we have not trained the policy unit yet, to evaluate the performance of the trained restoration units, we manually pick the output image with the highest PSNR (i.e. the peak PSNR).
79
+
80
+ We take denoising as an example here. The peak PSNRs of the restoration unit trained with different policies are listed in Table. 1. Fig. 4 illustrates the average loop times when the peak PSNRs appear. The training is done on both single noise level $\sigma = 4 0$ ) and multiple noise levels $( \sigma = 3 5 , 4 5 $ ). For the refined policy, the noise levels and the associated loop times are (35, 6), (45, 9). For the naive policy, we always fix the loop times to 8.
81
+
82
+ ![](images/4dcb6e57d263bea9e5c4beaf15bcc3cbc502e0f8678ca1d807e74f31359f2aea.jpg)
83
+ Figure 3: Pipeline of the dynamically unfolding recurrent restorer (DURR).
84
+
85
+ Table 1: Average peak PSNR on BSD68 with different training strategies.
86
+
87
+ <table><tr><td colspan="2">Strategy</td><td colspan="7">Noise Level</td></tr><tr><td> Training Noise</td><td>Policy</td><td>25</td><td>30</td><td>35</td><td>40</td><td>45</td><td>50</td><td>55</td></tr><tr><td>40</td><td>Naive</td><td>28.61</td><td>28.13</td><td>27.62</td><td>27.19</td><td>26.57</td><td>26.17</td><td>24.00</td></tr><tr><td>35,45</td><td>Naive</td><td>27.74</td><td>27.17</td><td>26.66</td><td>26.24</td><td>26.75</td><td>25.61</td><td>24.75</td></tr><tr><td>35,45</td><td>Refined</td><td>29.14</td><td>28.33</td><td>27.67</td><td>27.19</td><td>27.69</td><td>26.61</td><td>25.88</td></tr></table>
88
+
89
+ As we can see, the refined policy brings the best performance on all the noise levels including 40. The restoration unit trained for specific noise level (i.e. $\sigma = 4 0 ^ { \cdot }$ ) is only comparable to the one with refined policy on noise level 40. The restoration unit trained on multiple noise levels with naive policy has the worst performance.
90
+
91
+ These results indicate that the restoration unit has the potential to generalize on unseen degradation levels when trained with good policies. According to Fig. 4, the generalization reflects on the loop times of the restoration unit. It can be observed that the model with steeper slopes have stronger ability to generalize as well as better performances.
92
+
93
+ According to these results, the restoration unit we used in DURR is trained using the refined policy. More specifically, for image denoising, the noise level and the associated loop times are set to (25, 4), (35, 6), (45, 9), and (55, 12). For JPEG image deblocking, the quality factor (QF) and the associated loop times are set to (20, 6) and (30, 4).
94
+
95
+ ![](images/11cb76c9d0c212380465da4678d763e9c72c6a3be2231e08908fffeed1d04edc.jpg)
96
+ Figure 4: Average peak time on BSD68 with different training strategies.
97
+
98
+ # 2.2 TRAINING THE POLICY UNIT
99
+
100
+ We discuss two approaches that can be used as policy unit:
101
+
102
+ Handcraft policy: Previous work (Mrázek & Navara, 2003) has proposed a handcraft policy that selects a terminal time which optimizes the correlation of the signal and noise in the filtered image. This criterion can be used directly as our policy unit, but the independency of signal and noise may not hold for some restoration tasks such as real image denoising, which has higher noise level in the low-light regions, and JPEG image deblocking, in which artifacts are highly related to the original image. Another potential stopping criterion of the diffusion is no-reference image quality assessment (Mittal et al., 2012), which can provide quality assessment to a processed image without the ground truth image. However, to the best of our knowledge, the performances of these assessments are still far from satisfactory. Because of the limitations of the handcraft policies, we will not include them in our experiments.
103
+
104
+ Reinforcement learning based policy: We start with a discretization of the moving endpoint problem (1) on the dataset $\{ ( x _ { i } , \bar { y _ { i } } ) | i = 1 , 2 , \cdot \cdot \cdot , d \}$ , where $\{ x _ { i } \}$ are degraded observations of the damage-free images $\{ y _ { i } \}$ . The discrete moving endpoint control problem is given as follows:
105
+
106
+ $$
107
+ \begin{array} { r l r } { { \operatorname* { m i n } _ { w , \{ N _ { i } \} _ { i = 1 } ^ { d } } r ( w ) + \sum _ { i = 1 } ^ { d } L ( X _ { N _ { i } } ^ { i } , y _ { i } ) } } \\ & { } & { s . t . X _ { n } ^ { i } = X _ { n - 1 } ^ { i } + \Delta t f ( X _ { n - 1 } ^ { i } , w ) , n = 1 , 2 , \cdots , N _ { i } , ( i = 1 , 2 , \cdots , d ) } \\ & { } & { X _ { 0 } ^ { i } = x _ { i } , i = 1 , 2 , \cdots , d . } \end{array}
108
+ $$
109
+
110
+ Here, $X _ { n } ^ { i } = X _ { n - 1 } ^ { i } + \Delta t f ( X _ { n - 1 } ^ { i } , w )$ is the forward Euler approximation of the dynamics $\dot { X } =$ $f ( X ( t ) , w )$ . The terminal time $\{ N _ { i } \}$ is determined by a policy network $P ( x , \theta )$ , where $x$ is the output of the restoration unit at each iteration and $\theta$ the set of weights. In our experiment, we simply set $r = 0$ , i.e. doesn’t introduce any regularization which might bring further benefit but is beyond this paper’s scope of discussion. In other words, the role of the policy network is to stop the iteration of the restoration unit when an ideal image restoration result is achieved. The reward function of the policy unit can be naturally defined by
111
+
112
+ $$
113
+ r ( \{ X _ { n } ^ { i } \} ) = { \left\{ \begin{array} { l l } { \lambda \left( L ( x _ { n - 1 } , y _ { i } ) - L ( x _ { n } , y _ { i } ) \right) } & { { \mathrm { I f ~ c h o o s e ~ t o ~ c o n t i n u e } } } \\ { 0 } & { { \mathrm { O t h e r w i s e } } } \end{array} \right. }
114
+ $$
115
+
116
+ In order to solve the problem (2.2), we need to optimize two networks simultaneously, i.e. the restoration unit and the policy unit. The first is an restoration unit which approximates the controlled dynamics and the other is the policy unit to give the optimized terminating conditions. The objective function we use to optimize the policy network can be written as
117
+
118
+ $$
119
+ J = \mathbb { E } _ { X \sim \pi _ { \theta } } \sum _ { n } ^ { N _ { i } } [ r ( \{ X _ { n } ^ { i } , w \} ) ] ,
120
+ $$
121
+
122
+ where $\pi _ { \theta }$ denotes the distribution of the trajectories $X = \{ X _ { n } ^ { i } , n = 1 , \ldots , N _ { i } , i = 1 , \ldots , d \}$ under the policy network $P ( \cdot , \theta )$ . Thus, reinforcement learning techniques can be used here to learn a neural network to work as a policy unit. We utilize Deep Q-learning (Mnih et al., 2015) as our learning strategy and denote this approach simply as DURR. However, different learning strategies can be used (e.g. the Policy Gradient).
123
+
124
+ # 3 EXPERIMENTS
125
+
126
+ # 3.1 EXPERIMENT SETTINGS
127
+
128
+ In all denoising experiments, we follow the same settings as in Chen & Pock (2017); Zhang et al. (2017a); Lefkimmiatis (2017). All models are evaluated using the mean PSNR as the quantitative metric on the BSD68 (Martin et al., 2001). The training set and test set of BSD500 (400 images) are used for training. Six gaussian noise levels are evaluated, namely $\sigma = 2 5$ , 35, 45, 55, 65 and 75. Additive noise are applied to the image on the fly during training and testing. Both the training and evaluation process are done on gray-scale images.
129
+
130
+ The restoration unit is a simple U-Net (Ronneberger et al., 2015) style fully convolutional neural network. For the training process of the restoration unit, the noise levels of 25, 35, 45 and 55 are used. Images are cut into $6 4 \times 6 4$ patches, and the batch-size is set to 24. The Adam optimizer with the learning rate 1e-3 is adopted and the learning rate is scaled down by a factor of 10 on training plateaux.
131
+
132
+ The policy unit is composed of two ResUnit and an LSTM cell. For the policy unit training, we utilize the reward function in Eq.4. For training the policy unit, an RMSprop optimizer with learning rate 1e-4 is adopted. We’ve also tested other network structures, these tests and the detailed network structures of our model are demonstrated in the supplementary materials.
133
+
134
+ In all JPEG deblocking experiments, we follow the settings as in Zhang et al. (2017a; 2018). All models are evaluated using the mean PSNR as the quantitative metric on the LIVE1 dataset (Sheikh, 2005). Both the training and evaluation processes are done on the Y channel (the luminance channel) of the YCbCr color space. The PIL module of python is applied to generate JPEG-compressed images. The module produces numerically identical images as the commonly used MATLAB JPEG encoder after setting the quantization tables manually. The images with quality factors 20 and 30 are used during training. De-blocking performances are evaluated on four quality factors, namely $\mathrm { Q F = 1 0 }$ , 20, 30, and 40. All other parameter settings are the same as in the denoising experiments.
135
+
136
+ # 3.2 IMAGE DENOISING
137
+
138
+ We select DnCNN-B(Zhang et al., 2017a) and UNLNet5 (Lefkimmiatis, 2017) for comparisons since these models are designed for blind image denoising. Moreover, we also compare our model with non-learning-based algorithms BM3D (Dabov et al., 2007) and WNNM (Gu et al., 2014). The noise levels are assumed known for BM3D and WNNM due to their requirements. Comparison results are shown in Table 2.
139
+
140
+ Despite the fact that the parameters of our model $( 1 . 8 \times 1 0 ^ { 5 }$ for the restoration unit and $1 . 0 \times 1 0 ^ { 5 }$ for the policy unit) is less than the DnCNN (approximately $7 . 0 \times 1 0 ^ { 5 }$ ), one can see that DURR outperforms DnCNN on most of the noise-levels. More interestingly, DURR does not degrade too much when the the noise level goes beyond the level we used during training. The noise level $\sigma = 6 5$ , 75 is not included in the training set of both DnCNN and DURR. DnCNN reports notable drops of PSNR when evaluated on the images with such noise levels, while DURR only reports small drops of PSNR (see the last row of Table 2 and Fig. 6). Note that the reason we do not provide the results of UNLNet5 in Table 2 is because the authors of Lefkimmiatis (2017) has not released their codes yet, and they only reported the noise levels from 15 to 55 in their paper. We also want to emphasize that they trained two networks, one for the low noise level $( 5 \leq \sigma \leq 2 9 )$ and one for higher noise level $3 0 \leq \sigma \leq 5 5$ ). The reason is that due to the use of the constraint $| | y - x | | _ { 2 } \leq \epsilon$ by Lefkimmiatis (2017), we should not expect the model generalizes well to the noise levels surpasses the noise level of the training set.
141
+
142
+ For qualitative comparisons, some restored images of different models on the BSD68 dataset are presented in Fig. 5 and Fig. 6. As can be seen, more details are preserved in DURR than other models. It is worth noting that the noise level of the input image in Fig. 6 is 65, which is unseen by both DnCNN and DURR during training. Nonetheless, DURR achieves a significant gain of nearly 1 dB than DnCNN. Moreover, the texture on the cameo is very well restored by DURR. These results clearly indicate the strong generalization ability of our model.
143
+
144
+ More interestingly, due to the generalization ability in denoising, DURR is able to handle the problem of real image denoising without additional training. For testing, we test the images obtained from Lebrun et al. (2015). We present the representative results in Fig. 7 and more results are listed in the supplementary materials.
145
+
146
+ We also train our model for blind color image denoising, please refer to the supplementary materials for more details.
147
+
148
+ # 3.3 JPEG IMAGE DEBLOCKING
149
+
150
+ For deep learning based models, we select DnCNN-3 (Zhang et al., 2017a) for comparisons since it is the only known deep model for multiple QFs deblocking. As the AR-CNN (Dong et al., 2015) is a commonly used baseline, we re-train the AR-CNN on a training set with mixed QFs and denote this model as AR-CNN-B. Original AR-CNN as well as a non-learning-based method SA-DCT (Foi et al., 2007) are also tested. The quality factors are assumed known for these models.
151
+
152
+ Table 2: Average PSNR (dB) results for gray image denoising on the BSD68 dataset. Values with ∗ means the corresponding noise level is not present in the training data of the model. The best results are indicated in red.
153
+
154
+ <table><tr><td></td><td>BM3D</td><td>WNNM</td><td>DnCNN-B</td><td>UNLNet5</td><td>DURR</td></tr><tr><td>σ=25</td><td>28.55</td><td>28.73</td><td>29.16</td><td>28.96</td><td>29.16</td></tr><tr><td>9 二 35</td><td>27.07</td><td>27.28</td><td>27.66</td><td>27.50</td><td>27.72</td></tr><tr><td>g= 45</td><td>25.99</td><td>26.26</td><td>26.62</td><td>26.48</td><td>26.71</td></tr><tr><td>0 = :55</td><td>25.26</td><td>25.49</td><td>25.80</td><td>25.64</td><td>25.91</td></tr><tr><td>g= 65</td><td>24.69</td><td>24.51</td><td>23.40*</td><td>1</td><td>25.26*</td></tr><tr><td>σ=75</td><td>22.63</td><td>22.71</td><td>18.73*</td><td>=</td><td>24.71*</td></tr></table>
155
+
156
+ ![](images/730e2ff7c56f5b60b821847bc21e00371b2073b674705befc58d3d5e514a40b6.jpg)
157
+ Figure 5: Denoising results of an image from BSD68 with noise level 35.
158
+
159
+ ![](images/f144ebee89bc37164941004353b3fc95d7782634d8ba2eacdb315062efcd2c5b.jpg)
160
+ Figure 6: Denoising results of an image from BSD68 with noise level 65 (unseen by both DnCNN and DURR in their training sets).
161
+
162
+ Quantitative results are shown in Table 3. Though the number of parameters of DURR is significantly less than the DnCNN-3, the proposed DURR outperforms DnCNN-3 in most cases. Specifically, considerable gains can be observed for our model on seen QFs, and the performances are comparable on unseen QFs. A representative result on the LIVE1 dataset is presented in Fig. 8. Our model generates the most clean and accurate details. More experiment details are given in the supplementary materials.
163
+
164
+ Table 3: The average PSNR(dB) on the LIVE1 dataset. Values with ∗ means the corresponding QF is not present in the training data of the model. The best results are indicated in red and the second best results are indicated in blue.
165
+
166
+ <table><tr><td>QF</td><td>JPEG</td><td>SA-DCT</td><td>AR-CNN</td><td>AR-CNN-B</td><td>DnCNN-3</td><td>DURR</td></tr><tr><td>10</td><td>27.77</td><td>28.65</td><td>28.98</td><td>28.53</td><td>29.40</td><td>29.23*</td></tr><tr><td>20</td><td>30.07</td><td>30.81</td><td>31.29</td><td>30.88</td><td>31.59</td><td>31.68</td></tr><tr><td>30</td><td>31.41</td><td>32.08</td><td>32.69</td><td>32.31</td><td>32.98</td><td>33.05</td></tr><tr><td>40</td><td>32.45</td><td>32.99</td><td>33.63</td><td>33.39</td><td>33.96</td><td>34.01*</td></tr></table>
167
+
168
+ ![](images/b7d8f79a5dabb17ddd97b6885d14884e9c6a18a074d11c3c74bfea9f7dbc46e7.jpg)
169
+ Figure 7: Denoising results on a real image from Lebrun et al. (2015).
170
+
171
+ # 3.4 OTHER APPLICATIONS
172
+
173
+ Our model can be easily extended to other applications such as deraining, dehazing and deblurring. In all these applications, there are images corrupted at different levels. Rainfall intensity, haze density and different blur kernels will all effect the image quality.
174
+
175
+ # 4 CONCLUSIONS
176
+
177
+ In this paper, we proposed a novel image restoration model based on the moving endpoint control in order to handle varied noise levels using a single model. The problem was solved by jointly optimizing two units: restoration unit and policy unit. The restoration unit used an RNN to realize the dynamics in the control problem. A policy unit was proposed for the policy unit to determine the loop times of the restoration unit for optimal results. Our model achieved the state-of-the-art results in blind image denoising and JPEG deblocking. Moreover, thanks to the flexibility of the given policy, DURR has shown strong abilities of generalization in our experiments.
178
+
179
+ # ACKNOWLEDGMENTS
180
+
181
+ Bin Dong is supported in part by Beijing Natural Science Foundation (Z180001).Yiping Lu is supported by the Elite Undergraduate Training Program of the School of Mathematical Sciences at Peking University.
182
+
183
+ # REFERENCES
184
+
185
+ Michal Aharon, Michael Elad, and Alfred Bruckstein. $k$ -svd: An algorithm for designing overcomplete dictionaries for sparse representation. IEEE Transactions on signal processing, 54(11):4311–4322, 2006.
186
+
187
+ ![](images/c055ad32915ea36e7b48a898badc4d148644d786532c4e51476e86b49000d66f.jpg)
188
+ Figure 8: JPEG deblocking results of an image from the LIVE1 dataset, compressed using QF 10.
189
+
190
+ K. Bredies, K. Kunisch, and T. Pock. Total Generalized Variation. SIAM Journal on Imaging Sciences, 3:492, 2010.
191
+
192
+ Antoni Buades, Bartomeu Coll, and J-M Morel. A non-local algorithm for image denoising. In Computer Vision and Pattern Recognition, 2005. CVPR 2005. IEEE Computer Society Conference on, volume 2, pp. 60–65. IEEE, 2005.
193
+
194
+ J.F. Cai, S. Osher, and Z. Shen. Split Bregman methods and frame based image restoration. Multiscale Modeling and Simulation: A SIAM Interdisciplinary Journal, 8(2):337–369, 2009.
195
+
196
+ Jian-Feng Cai, Bin Dong, Stanley Osher, and Zuowei Shen. Image restoration: total variation, wavelet frames, and beyond. Journal of the American Mathematical Society, 25(4):1033–1089, 2012.
197
+
198
+ Jian-Feng Cai, Bin Dong, and Zuowei Shen. Image restoration: a wavelet frame based model for piecewise smooth functions and beyond. Applied and Computational Harmonic Analysis, 41(1):94–138, 2016.
199
+
200
+ Francine Catté, Pierre-Louis Lions, Jean-Michel Morel, and Tomeu Coll. Image selective smoothing and edge detection by nonlinear diffusion. SIAM Journal on Numerical analysis, 29(1):182–193, 1992.
201
+
202
+ Bo Chang, Lili Meng, Eldad Haber, Lars Ruthotto, David Begert, and Elliot Holtham. Reversible architectures for arbitrarily deep residual neural networks. AAAI2018, 2017.
203
+
204
+ Qifeng Chen, Jia Xu, and Vladlen Koltun. Fast image processing with fully-convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2497–2506, 2017.
205
+
206
+ Y. Chen and T Pock. Trainable nonlinear reaction diffusion: A flexible framework for fast and effective image restoration. IEEE Transactions on Pattern Analysis & Machine Intelligence, 39(6):1256–1272, 2017.
207
+
208
+ Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Image denoising by sparse 3-d transform-domain collaborative filtering. IEEE Transactions on image processing, 16(8):2080–2095, 2007.
209
+
210
+ I. Daubechies, G. Teschke, and L. Vese. Iteratively solving linear inverse problems under general convex constraints. Inverse Problems and Imaging, 1(1):29, 2007.
211
+
212
+ Bin Dong, Qingtang Jiang, and Zuowei Shen. Image restoration: Wavelet frame shrinkage, nonlinear evolution pdes, and beyond. Multiscale Modeling & Simulation, 15(1):606–660, 2017.
213
+
214
+ Chao Dong, Yubin Deng, Chen Change Loy, and Xiaoou Tang. Compression artifacts reduction by a deep convolutional network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 576–584, 2015.
215
+
216
+ M. Elad, J.L. Starck, P. Querre, and D.L. Donoho. Simultaneous cartoon and texture image inpainting using morphological component analysis (MCA). Applied and Computational Harmonic Analysis, 19(3):340–358, 2005.
217
+
218
+ Lawrence C Evans. An introduction to mathematical optimal control theory version 0.2. Tailieu Vn, 2005.
219
+
220
+ Cong Fang, Zhenyu Zhao, Pan Zhou, and Zhouchen Lin. Feature learning via partial differential equation with applications to face recognition. Pattern Recognition, 69:14–25, 2017.
221
+
222
+ Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Pointwise shape-adaptive dct for high-quality denoising and deblocking of grayscale and color images. IEEE Transactions on Image Processing, 16(5): 1395–1411, 2007.
223
+
224
+ Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2862–2869, 2014.
225
+
226
+ 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.
227
+
228
+ Viren Jain and Sebastian Seung. Natural image denoising with convolutional networks. In Advances in Neural Information Processing Systems, pp. 769–776, 2009.
229
+
230
+ H. Ji, C. Liu, Z. Shen, and Y. Xu. Robust video denoising using low rank matrix completion. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2010.
231
+
232
+ Xiangyang Lan, Stefan Roth, Daniel Huttenlocher, and Michael J Black. Efficient belief propagation with learned higher-order markov random fields. In European conference on computer vision, pp. 269–282. Springer, 2006.
233
+
234
+ Marc Lebrun, Miguel Colom, and Jean-Michel Morel. The noise clinic: a blind image denoising algorithm. Image Processing On Line, 5:1–54, 2015.
235
+
236
+ Stamatios Lefkimmiatis. Universal denoising networks: A novel cnn-based network architecture for image denoising. arXiv preprint arXiv:1711.07807, 2017.
237
+
238
+ Qianli Liao and Tomaso Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv preprint, 2016.
239
+
240
+ Yiping Lu, Aoxiao Zhong, Quanzheng Li, and Bin Dong. Beyond finite layer neural networks: Bridging deep architectures and numerical differential equations. Thirty-fifth International Conference on Machine Learning (ICML), 2018.
241
+
242
+ D. Martin, C. Fowlkes, D. Tal, and J. Malik. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proc. 8th Int’l Conf. Computer Vision, volume 2, pp. 416–423, July 2001.
243
+
244
+ Anish Mittal, Anush Krishna Moorthy, and Alan Conrad Bovik. No-reference image quality assessment in the spatial domain. IEEE Transactions on Image Processing, 21(12):4695–4708, 2012.
245
+
246
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
247
+
248
+ Pavel Mrázek and Mirko Navara. Selection of optimal stopping time for nonlinear diffusion filtering. International Journal of Computer Vision, 52(2-3):189–203, 2003.
249
+
250
+ D. Mumford and J. Shah. Optimal approximations by piecewise smooth functions and associated variational problems. Communications on pure and applied mathematics, 42(5):577–685, 1989.
251
+
252
+ Stanley Osher and Leonid Rudin. Feature-oriented image enhancement using shock filters. SIAM Journal on Numerical Analysis, 27(4):919–940, Aug 1990. URL http://www.jstor.org/stable/2157689.
253
+
254
+ Pietro Perona and Jitendra Malik. Scale-space and edge detection using anisotropic diffusion. IEEE Transactions on pattern analysis and machine intelligence, 12(7):629–639, 1990.
255
+
256
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pp. 234–241. Springer, 2015.
257
+
258
+ 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.
259
+
260
+ HR Sheikh. Live image quality assessment database release 2. http://live.ece.utexas.edu/research/quality, 2005.
261
+
262
+ J.L. Starck, M. Elad, and D.L. Donoho. Image decomposition via the combination of sparse representations and a variational approach. IEEE transactions on image processing, 14(10):1570–1582, 2005.
263
+
264
+ Joachim Weickert. Anisotropic diffusion in image processing, volume 1. Teubner Stuttgart, 1998.
265
+
266
+ E Weinan. A proposal on machine learning via dynamical systems. Communications in Mathematics & Statistics, 5(1):1–11, 2017.
267
+
268
+ Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep cnn for image denoising. IEEE Transactions on Image Processing, 26(7):3142–3155, 2017a.
269
+
270
+ Xiaoshuai Zhang, Wenhan Yang, Yueyu Hu, and Jiaying Liu. Dmcnn: Dual-domain multi-scale convolutional neural network for compression artifacts removal. In Proceedings of the 25th IEEE International Conference on Image Processing, 2018.
271
+
272
+ Xingcheng Zhang, Zhizhong Li, Chen Change Loy, and Dahua Lin. Polynet: A pursuit of structural diversity in very deep networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3900–3908. IEEE, 2017b.
parse/train/SJfZKiC5FX/SJfZKiC5FX_content_list.json ADDED
@@ -0,0 +1,1426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DYNAMICALLY UNFOLDING RECURRENT RESTORER:A MOVING ENDPOINT CONTROL METHOD FOR IMAGERESTORATION",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 170
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Xiaoshuai Zhang∗ \nInstitute of Computer Science and Technology, \nPeking University \njet@pku.edu.cn Yiping Lu∗ \nSchool Of Mathmatical Science, Peking university \nluyiping9712@pku.edu.cn \nJiaying Liu \nInstitute of Computer Science and Technology, \nPeking University \nliujiaying@pku.edu.cn \nBin Dong \nBeijing International Center for Mathematical Research, Peking University \nCenter for Data Science, Peking University \nBeijing Institute of Big Data Research, \nBeijing, China \ndongbin@math.pku.edu.cn ",
17
+ "bbox": [
18
+ 183,
19
+ 194,
20
+ 491,
21
+ 251
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 586,
30
+ 195,
31
+ 812,
32
+ 251
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 184,
41
+ 272,
42
+ 491,
43
+ 328
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "",
50
+ "bbox": [
51
+ 184,
52
+ 349,
53
+ 674,
54
+ 433
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "ABSTRACT ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 454,
64
+ 469,
65
+ 544,
66
+ 484
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "In this paper, we propose a new control framework called the moving endpoint control to restore images corrupted by different degradation levels using a single model. The proposed control problem contains an image restoration dynamic which is modeled by a convolutional RNN. The moving endpoint, which is essentially the terminal time of the associated dynamic, is determined by a policy network. We call the proposed model the dynamically unfolding recurrent restorer (DURR). Numerical experiments show that DURR is able to achieve state-of-the-art performances on blind image denoising and JPEG image deblocking. Furthermore, DURR can well generalize to images with higher degradation levels that are not included in the training stage.1 ",
73
+ "bbox": [
74
+ 232,
75
+ 502,
76
+ 766,
77
+ 641
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 671,
88
+ 336,
89
+ 686
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Image restoration, including image denoising, deblurring, inpainting, etc., is one of the most important areas in imaging science. Its major purpose is to obtain high quality reconstructions of images corrupted in various ways during imaging, acquisiting, and storing, and enable us to see crucial but subtle objects that reside in the images. Image restoration has been an active research area. Numerous models and algorithms have been developed for the past few decades. Before the uprise of deep learning methods, there were two classes of image restoration approaches that were widely adopted in the field: transformation based approach and PDE approach. The transformation based approach includes wavelet and wavelet frame based methods (Elad et al., 2005; Starck et al., 2005; Daubechies et al., 2007; Cai et al., 2009), dictionary learning based methods (Aharon et al., 2006), similarity based methods (Buades et al., 2005; Dabov et al., 2007), low-rank models (Ji et al., 2010; Gu et al., 2014), etc. The PDE approach includes variational models (Mumford & Shah, 1989; Rudin et al., 1992; Bredies et al., 2010), nonlinear diffusions (Perona & Malik, 1990; Catté et al., 1992; Weickert, 1998), nonlinear hyperbolic equations (Osher & Rudin, 1990), etc. More recently, deep connections ",
96
+ "bbox": [
97
+ 174,
98
+ 704,
99
+ 825,
100
+ 885
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "between wavelet frame based methods and PDE approach were established (Cai et al., 2012; 2016; \nDong et al., 2017). ",
107
+ "bbox": [
108
+ 173,
109
+ 103,
110
+ 825,
111
+ 132
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "One of the greatest challenge for image restoration is to properly handle image degradations of different levels. In the existing transformation based or PDE based methods, there is always at least one tuning parameter (e.g. the regularization parameter for variational models and terminal time for nonlinear diffusions) that needs to be manually selected. The choice of the parameter heavily relies on the degradation level. ",
118
+ "bbox": [
119
+ 174,
120
+ 138,
121
+ 825,
122
+ 208
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Recent years, deep learning models for image restoration tasks have significantly advanced the state-of-the-art of the field. Jain & Seung (2009) proposed a convolutional neural network (CNN) for image denoising which has better expressive power than the MRF models by Lan et al. (2006). Inspired by nonlinear diffusions, Chen & Pock (2017) designed a deep neural network for image denoising and Zhang et al. (2017a) improves the capacity by introducing a deeper neural network with residual connections. Chen et al. (2017) use the CNN to simulate a wide variety of image processing operators, achieving high efficiencies with little accuracy drop. However, these models cannot gracefully handle images with varied degradation levels. Although one may train different models for images with different levels, this may limit the application of these models in practice due to lack of flexibility. ",
129
+ "bbox": [
130
+ 174,
131
+ 215,
132
+ 825,
133
+ 354
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Taking blind image denoising for example. Zhang et al. (2017a) designed a 20-layer neural network for the task, called DnCNN-B, which had a huge number of parameters. To reduce number of parameters, Lefkimmiatis (2017) proposed the UNLNet5, by unrolling a projection gradient algorithm for a constrained optimization model. However, Lefkimmiatis (2017) also observed a drop in PSNR comparing to DnCNN. Therefore, the design of a light-weighted and yet effective model for blind image denoising remains a challenge. Moreover, deep learning based models trained on simulated gaussian noise images usually fail to handle real world noise, as will be illustrated in later sections. ",
140
+ "bbox": [
141
+ 174,
142
+ 361,
143
+ 825,
144
+ 459
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Another example is JPEG image deblocking. JPEG is the most commonly used lossy image compression method. However, this method tend to introduce undesired artifacts as the compression rate increases. JPEG image deblocking aims to eliminate the artifacts and improve the image quality. Recently, deep learning based methods were proposed for JPEG deblocking (Dong et al., 2015; Zhang et al., 2017a; 2018). However, most of their models are trained and evaluated on a given quality factor. Thus it would be hard for these methods to apply to Internet images, where the quality factors are usually unknown. ",
151
+ "bbox": [
152
+ 174,
153
+ 465,
154
+ 825,
155
+ 564
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "In this paper, we propose a single image restoration model that can robustly restore images with varied degradation levels even when the degradation level is well outside of that of the training set. Our proposed model for image restoration is inspired by the recent development on the relation between deep learning and optimal control. The relation between supervised deep learning methods and optimal control has been discovered and exploited by Weinan (2017); Lu et al. (2018); Chang et al. (2017); Fang et al. (2017). The key idea is to consider the residual block $x _ { n + 1 } = x _ { n } + f ( x _ { n } )$ as an approximation to the continuous dynamics ${ \\dot { X } } = f ( X )$ . In particular, Lu et al. (2018); Fang et al. (2017) demonstrated that the training process of a class of deep models (e.g. ResNet by He et al. (2016), PolyNet by Zhang et al. (2017b), etc.) can be understood as solving the following control problem: ",
162
+ "bbox": [
163
+ 173,
164
+ 570,
165
+ 825,
166
+ 712
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "equation",
172
+ "img_path": "images/30386db8f325d4f10b2ffb94c1937ad4c9b086dc83bcb4b948ba70ba89fb8177.jpg",
173
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\operatorname* { m i n } _ { w } \\bigg ( L ( X ( T ) , y ) + \\int _ { 0 } ^ { \\tau } R ( w ( t ) , t ) d t \\bigg ) } \\\\ { \\displaystyle s . t . \\dot { X } = f ( X ( t ) , w ( t ) ) , t \\in ( 0 , \\tau ) } \\\\ { \\displaystyle X ( 0 ) = x _ { 0 } . } \\end{array}\n$$",
174
+ "text_format": "latex",
175
+ "bbox": [
176
+ 362,
177
+ 732,
178
+ 633,
179
+ 806
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "Here $x _ { 0 }$ is the input, $y$ is the regression target or label, $\\dot { \\boldsymbol X } = f ( \\boldsymbol X , \\boldsymbol w )$ is the deep neural network with parameter $w ( t )$ , $R$ is the regularization term and $L$ can be any loss function to measure the difference between the reconstructed images and the ground truths. ",
186
+ "bbox": [
187
+ 174,
188
+ 815,
189
+ 825,
190
+ 859
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "In the context of image restoration, the control dynamic $\\dot { X } = f ( X ( t ) , \\omega ( t ) ) , t \\in ( 0 , \\tau )$ can be, for example, a diffusion process learned using a deep neural network. The terminal time $\\tau$ of the diffusion corresponds to the depth of the neural network. Previous works simply fixed the depth of the network, i.e. the terminal time, as a fixed hyper-parameter. However Mrázek & Navara (2003) showed that the optimal terminal time of diffusion differs from image to image. Furthermore, when an image is corrupted by higher noise levels, the optimal terminal time for a typical noise removal diffusion should be greater than when a less noisy image is being processed. This is the main reason why current deep models are not robust enough to handle images with varied noise levels. In this paper, we no longer treat the terminal time as a hyper-parameter. Instead, we design a new architecture (see Fig. 3) that contains both a deep diffusion-like network and another network that determines the optimal terminal time for each input image. We propose a novel moving endpoint control model to train the aforementioned architecture. We call the proposed architecture the dynamically unfolding recurrent restorer (DURR). ",
197
+ "bbox": [
198
+ 174,
199
+ 867,
200
+ 825,
201
+ 924
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "",
208
+ "bbox": [
209
+ 174,
210
+ 103,
211
+ 825,
212
+ 229
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "We first cast the model in the continuum setting. Let $x _ { 0 }$ be an observed degraded image and $y$ be its corresponding damage-free counterpart. We want to learn a time-independent dynamic system $\\dot { X } = f ( X ( t ) , w )$ with parameters $w$ so that $X ( 0 ) = x$ and $X ( \\tau ) \\approx y$ for some $\\tau > 0$ . See Fig. 2 for an illustration of our idea. The reason that we do not require $X ( \\tau ) = y$ is to avoid over-fitting. For varied degradation levels and different images, the optimal terminal time $\\tau$ of the dynamics may vary. Therefore, we need to include the variable $\\tau$ in the learning process as well. The learning of the dynamic system and the terminal time can be gracefully casted as the following moving endpoint control problem: ",
219
+ "bbox": [
220
+ 173,
221
+ 236,
222
+ 825,
223
+ 349
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "equation",
229
+ "img_path": "images/0e29ac0d65669d7658fffc8837268796e5879edefaa1a778a88fe7434159199a.jpg",
230
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\operatorname* { m i n } _ { w , \\tau ( x ) } L ( X ( \\tau ) , y ) + \\int _ { 0 } ^ { \\tau ( x ) } R ( w ( t ) , t ) d t } \\\\ { \\displaystyle s . t . \\dot { X } = f ( X ( t ) , w ( t ) ) , t \\in ( 0 , \\tau ( x ) ) } \\\\ { \\displaystyle X ( 0 ) = x . } \\end{array}\n$$",
231
+ "text_format": "latex",
232
+ "bbox": [
233
+ 362,
234
+ 375,
235
+ 633,
236
+ 450
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Different from the previous control problem, in our model the terminal time $\\tau$ is also a parameter to be optimized and it depends on the data $x$ . The dynamic system $\\dot { X } = f ( X ( t ) , w )$ is modeled by a recurrent neural network (RNN) with a residual connection, which can be understood as a residual network with shared weights (Liao & Poggio, 2016). We shall refer to this RNN as the restoration unit. In order to learn the terminal time of the dynamics, we adopt a policy network to adaptively determine an optimal stopping time. Our learning framework is demonstrated in Fig. 3. We note that the above moving endpoint control problem can be regarded as the penalized version of the well-known fixed endpoint control problem in optimal control (Evans, 2005), where instead of penalizing the difference between $X ( \\tau )$ and $y$ , the constraint $X ( \\tau ) = y$ is strictly enforced. ",
243
+ "bbox": [
244
+ 173,
245
+ 476,
246
+ 825,
247
+ 604
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "In short, we summarize our contribution as following: ",
254
+ "bbox": [
255
+ 174,
256
+ 611,
257
+ 527,
258
+ 625
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "• We are the first to use convolutional RNN for image restoration with unknown degradation levels, where the unfolding time of the RNN is determined dynamically at run-time by a policy unit (could be either handcrafted or RL-based). \n• The proposed model achieves state-of-the-art performances with significantly less parameters and better running efficiencies than some of the state-of-the-art models. \nWe reveal the relationship between the generalization power and unfolding time of the RNN by extensive experiments. The proposed model, DURR, has strong generalization to images with varied degradation levels and even to the degradation level that is unseen by the model during training (Fig. 1). \nThe DURR is able to well handle real image denoising without further modification. Qualitative results have shown that our processed images have better visual quality, especially sharper details compared to others. ",
265
+ "bbox": [
266
+ 215,
267
+ 636,
268
+ 825,
269
+ 818
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "2 METHOD ",
276
+ "text_level": 1,
277
+ "bbox": [
278
+ 174,
279
+ 821,
280
+ 282,
281
+ 838
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "The proposed architecture, i.e. DURR, contains an RNN (called the restoration unit) imitating a nonlinear diffusion for image restoration, and a deep policy network (policy unit) to determine the terminal time of the RNN. In this section, we discuss the training of the two components based on our moving endpoint control formulation. As will be elaborated, we first train the restoration unit to determine $\\omega$ , and then train the policy unit to estimate $\\tau ( x )$ . ",
288
+ "bbox": [
289
+ 174,
290
+ 853,
291
+ 825,
292
+ 924
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "image",
298
+ "img_path": "images/b9994af11293ec16af192ae7ba007b3f5e40a1eac061fe66610f8cf89429001c.jpg",
299
+ "image_caption": [
300
+ "Figure 1: Denoising results of images from BSD68 under extreme noise conditions not seen in training data $( \\sigma = 9 5 $ ). "
301
+ ],
302
+ "image_footnote": [],
303
+ "bbox": [
304
+ 181,
305
+ 101,
306
+ 816,
307
+ 382
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "image",
313
+ "img_path": "images/1230eb448c1f9a9db33389714ffbb02e617438d1676bcef3d0ffcd6a69481f05.jpg",
314
+ "image_caption": [
315
+ "Figure 2: The proposed moving endpoint control model: evolving a learned reconstruction dynamics and ending at high-quality images. "
316
+ ],
317
+ "image_footnote": [],
318
+ "bbox": [
319
+ 289,
320
+ 438,
321
+ 702,
322
+ 641
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "2.1 TRAINING THE RESTORATION UNIT ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 176,
332
+ 715,
333
+ 462,
334
+ 729
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "If the terminal time $\\tau$ for every input $x _ { i }$ is given (i.e. given a certain policy), the restoration unit can be optimized accordingly. We would like to show in this section that the policy used during training greatly influences the performance and the generalization ability of the restoration unit. More specifically, a restoration unit can be better trained by a good policy. ",
341
+ "bbox": [
342
+ 174,
343
+ 742,
344
+ 825,
345
+ 797
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "The simplest policy is to fix the loop time $\\tau$ as a constant for every input. We name such policy as “naive policy”. A more reasonable policy is to manually assign an unfolding time for each degradation level during training. We shall call this policy the “refined policy”. Since we have not trained the policy unit yet, to evaluate the performance of the trained restoration units, we manually pick the output image with the highest PSNR (i.e. the peak PSNR). ",
352
+ "bbox": [
353
+ 173,
354
+ 805,
355
+ 825,
356
+ 875
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "We take denoising as an example here. The peak PSNRs of the restoration unit trained with different policies are listed in Table. 1. Fig. 4 illustrates the average loop times when the peak PSNRs appear. The training is done on both single noise level $\\sigma = 4 0$ ) and multiple noise levels $( \\sigma = 3 5 , 4 5 $ ). For the refined policy, the noise levels and the associated loop times are (35, 6), (45, 9). For the naive policy, we always fix the loop times to 8. ",
363
+ "bbox": [
364
+ 176,
365
+ 882,
366
+ 825,
367
+ 924
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "image",
373
+ "img_path": "images/4dcb6e57d263bea9e5c4beaf15bcc3cbc502e0f8678ca1d807e74f31359f2aea.jpg",
374
+ "image_caption": [
375
+ "Figure 3: Pipeline of the dynamically unfolding recurrent restorer (DURR). "
376
+ ],
377
+ "image_footnote": [],
378
+ "bbox": [
379
+ 187,
380
+ 99,
381
+ 813,
382
+ 248
383
+ ],
384
+ "page_idx": 4
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "",
389
+ "bbox": [
390
+ 173,
391
+ 303,
392
+ 825,
393
+ 332
394
+ ],
395
+ "page_idx": 4
396
+ },
397
+ {
398
+ "type": "table",
399
+ "img_path": "images/1a674c26d63578219a36e53b31f70334181348c727a135f4c84eadcb8eafe1cd.jpg",
400
+ "table_caption": [
401
+ "Table 1: Average peak PSNR on BSD68 with different training strategies. "
402
+ ],
403
+ "table_footnote": [],
404
+ "table_body": "<table><tr><td colspan=\"2\">Strategy</td><td colspan=\"7\">Noise Level</td></tr><tr><td> Training Noise</td><td>Policy</td><td>25</td><td>30</td><td>35</td><td>40</td><td>45</td><td>50</td><td>55</td></tr><tr><td>40</td><td>Naive</td><td>28.61</td><td>28.13</td><td>27.62</td><td>27.19</td><td>26.57</td><td>26.17</td><td>24.00</td></tr><tr><td>35,45</td><td>Naive</td><td>27.74</td><td>27.17</td><td>26.66</td><td>26.24</td><td>26.75</td><td>25.61</td><td>24.75</td></tr><tr><td>35,45</td><td>Refined</td><td>29.14</td><td>28.33</td><td>27.67</td><td>27.19</td><td>27.69</td><td>26.61</td><td>25.88</td></tr></table>",
405
+ "bbox": [
406
+ 205,
407
+ 375,
408
+ 792,
409
+ 467
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "As we can see, the refined policy brings the best performance on all the noise levels including 40. The restoration unit trained for specific noise level (i.e. $\\sigma = 4 0 ^ { \\cdot }$ ) is only comparable to the one with refined policy on noise level 40. The restoration unit trained on multiple noise levels with naive policy has the worst performance. ",
416
+ "bbox": [
417
+ 174,
418
+ 481,
419
+ 826,
420
+ 537
421
+ ],
422
+ "page_idx": 4
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "These results indicate that the restoration unit has the potential to generalize on unseen degradation levels when trained with good policies. According to Fig. 4, the generalization reflects on the loop times of the restoration unit. It can be observed that the model with steeper slopes have stronger ability to generalize as well as better performances. ",
427
+ "bbox": [
428
+ 173,
429
+ 545,
430
+ 431,
431
+ 683
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "According to these results, the restoration unit we used in DURR is trained using the refined policy. More specifically, for image denoising, the noise level and the associated loop times are set to (25, 4), (35, 6), (45, 9), and (55, 12). For JPEG image deblocking, the quality factor (QF) and the associated loop times are set to (20, 6) and (30, 4). ",
438
+ "bbox": [
439
+ 173,
440
+ 690,
441
+ 433,
442
+ 815
443
+ ],
444
+ "page_idx": 4
445
+ },
446
+ {
447
+ "type": "image",
448
+ "img_path": "images/11cb76c9d0c212380465da4678d763e9c72c6a3be2231e08908fffeed1d04edc.jpg",
449
+ "image_caption": [
450
+ "Figure 4: Average peak time on BSD68 with different training strategies. "
451
+ ],
452
+ "image_footnote": [],
453
+ "bbox": [
454
+ 460,
455
+ 583,
456
+ 789,
457
+ 753
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "2.2 TRAINING THE POLICY UNIT ",
464
+ "text_level": 1,
465
+ "bbox": [
466
+ 176,
467
+ 833,
468
+ 418,
469
+ 848
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "We discuss two approaches that can be used as policy unit: ",
476
+ "bbox": [
477
+ 174,
478
+ 859,
479
+ 558,
480
+ 875
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Handcraft policy: Previous work (Mrázek & Navara, 2003) has proposed a handcraft policy that selects a terminal time which optimizes the correlation of the signal and noise in the filtered image. This criterion can be used directly as our policy unit, but the independency of signal and noise may not hold for some restoration tasks such as real image denoising, which has higher noise level in the low-light regions, and JPEG image deblocking, in which artifacts are highly related to the original image. Another potential stopping criterion of the diffusion is no-reference image quality assessment (Mittal et al., 2012), which can provide quality assessment to a processed image without the ground truth image. However, to the best of our knowledge, the performances of these assessments are still far from satisfactory. Because of the limitations of the handcraft policies, we will not include them in our experiments. ",
487
+ "bbox": [
488
+ 174,
489
+ 881,
490
+ 826,
491
+ 924
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "",
498
+ "bbox": [
499
+ 173,
500
+ 103,
501
+ 825,
502
+ 202
503
+ ],
504
+ "page_idx": 5
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Reinforcement learning based policy: We start with a discretization of the moving endpoint problem (1) on the dataset $\\{ ( x _ { i } , \\bar { y _ { i } } ) | i = 1 , 2 , \\cdot \\cdot \\cdot , d \\}$ , where $\\{ x _ { i } \\}$ are degraded observations of the damage-free images $\\{ y _ { i } \\}$ . The discrete moving endpoint control problem is given as follows: ",
509
+ "bbox": [
510
+ 174,
511
+ 208,
512
+ 823,
513
+ 251
514
+ ],
515
+ "page_idx": 5
516
+ },
517
+ {
518
+ "type": "equation",
519
+ "img_path": "images/fa4f4ef969c68957da033dd7230aefe7532b7587177a67105dd980f159ed45e4.jpg",
520
+ "text": "$$\n\\begin{array} { r l r } { { \\operatorname* { m i n } _ { w , \\{ N _ { i } \\} _ { i = 1 } ^ { d } } r ( w ) + \\sum _ { i = 1 } ^ { d } L ( X _ { N _ { i } } ^ { i } , y _ { i } ) } } \\\\ & { } & { s . t . X _ { n } ^ { i } = X _ { n - 1 } ^ { i } + \\Delta t f ( X _ { n - 1 } ^ { i } , w ) , n = 1 , 2 , \\cdots , N _ { i } , ( i = 1 , 2 , \\cdots , d ) } \\\\ & { } & { X _ { 0 } ^ { i } = x _ { i } , i = 1 , 2 , \\cdots , d . } \\end{array}\n$$",
521
+ "text_format": "latex",
522
+ "bbox": [
523
+ 241,
524
+ 267,
525
+ 754,
526
+ 352
527
+ ],
528
+ "page_idx": 5
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "Here, $X _ { n } ^ { i } = X _ { n - 1 } ^ { i } + \\Delta t f ( X _ { n - 1 } ^ { i } , w )$ is the forward Euler approximation of the dynamics $\\dot { X } =$ $f ( X ( t ) , w )$ . The terminal time $\\{ N _ { i } \\}$ is determined by a policy network $P ( x , \\theta )$ , where $x$ is the output of the restoration unit at each iteration and $\\theta$ the set of weights. In our experiment, we simply set $r = 0$ , i.e. doesn’t introduce any regularization which might bring further benefit but is beyond this paper’s scope of discussion. In other words, the role of the policy network is to stop the iteration of the restoration unit when an ideal image restoration result is achieved. The reward function of the policy unit can be naturally defined by ",
533
+ "bbox": [
534
+ 173,
535
+ 369,
536
+ 825,
537
+ 469
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "equation",
543
+ "img_path": "images/26f38e0eef942a8163562669d706f48bdba93a7eaf103ab6712007e3b218fe13.jpg",
544
+ "text": "$$\nr ( \\{ X _ { n } ^ { i } \\} ) = { \\left\\{ \\begin{array} { l l } { \\lambda \\left( L ( x _ { n - 1 } , y _ { i } ) - L ( x _ { n } , y _ { i } ) \\right) } & { { \\mathrm { I f ~ c h o o s e ~ t o ~ c o n t i n u e } } } \\\\ { 0 } & { { \\mathrm { O t h e r w i s e } } } \\end{array} \\right. }\n$$",
545
+ "text_format": "latex",
546
+ "bbox": [
547
+ 271,
548
+ 484,
549
+ 720,
550
+ 520
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "In order to solve the problem (2.2), we need to optimize two networks simultaneously, i.e. the restoration unit and the policy unit. The first is an restoration unit which approximates the controlled dynamics and the other is the policy unit to give the optimized terminating conditions. The objective function we use to optimize the policy network can be written as ",
557
+ "bbox": [
558
+ 174,
559
+ 529,
560
+ 825,
561
+ 585
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "equation",
567
+ "img_path": "images/48bac04faca34f06316467fceec937099c603b9c8b840a8d3674e28ef616dbbc.jpg",
568
+ "text": "$$\nJ = \\mathbb { E } _ { X \\sim \\pi _ { \\theta } } \\sum _ { n } ^ { N _ { i } } [ r ( \\{ X _ { n } ^ { i } , w \\} ) ] ,\n$$",
569
+ "text_format": "latex",
570
+ "bbox": [
571
+ 398,
572
+ 603,
573
+ 599,
574
+ 646
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "where $\\pi _ { \\theta }$ denotes the distribution of the trajectories $X = \\{ X _ { n } ^ { i } , n = 1 , \\ldots , N _ { i } , i = 1 , \\ldots , d \\}$ under the policy network $P ( \\cdot , \\theta )$ . Thus, reinforcement learning techniques can be used here to learn a neural network to work as a policy unit. We utilize Deep Q-learning (Mnih et al., 2015) as our learning strategy and denote this approach simply as DURR. However, different learning strategies can be used (e.g. the Policy Gradient). ",
581
+ "bbox": [
582
+ 174,
583
+ 656,
584
+ 825,
585
+ 728
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "3 EXPERIMENTS ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 176,
595
+ 747,
596
+ 326,
597
+ 763
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "3.1 EXPERIMENT SETTINGS ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 174,
607
+ 779,
608
+ 382,
609
+ 794
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "In all denoising experiments, we follow the same settings as in Chen & Pock (2017); Zhang et al. (2017a); Lefkimmiatis (2017). All models are evaluated using the mean PSNR as the quantitative metric on the BSD68 (Martin et al., 2001). The training set and test set of BSD500 (400 images) are used for training. Six gaussian noise levels are evaluated, namely $\\sigma = 2 5$ , 35, 45, 55, 65 and 75. Additive noise are applied to the image on the fly during training and testing. Both the training and evaluation process are done on gray-scale images. ",
616
+ "bbox": [
617
+ 174,
618
+ 804,
619
+ 825,
620
+ 888
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "The restoration unit is a simple U-Net (Ronneberger et al., 2015) style fully convolutional neural network. For the training process of the restoration unit, the noise levels of 25, 35, 45 and 55 are used. Images are cut into $6 4 \\times 6 4$ patches, and the batch-size is set to 24. The Adam optimizer with the learning rate 1e-3 is adopted and the learning rate is scaled down by a factor of 10 on training plateaux. ",
627
+ "bbox": [
628
+ 173,
629
+ 895,
630
+ 823,
631
+ 924
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "",
638
+ "bbox": [
639
+ 176,
640
+ 103,
641
+ 821,
642
+ 145
643
+ ],
644
+ "page_idx": 6
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "The policy unit is composed of two ResUnit and an LSTM cell. For the policy unit training, we utilize the reward function in Eq.4. For training the policy unit, an RMSprop optimizer with learning rate 1e-4 is adopted. We’ve also tested other network structures, these tests and the detailed network structures of our model are demonstrated in the supplementary materials. ",
649
+ "bbox": [
650
+ 174,
651
+ 152,
652
+ 825,
653
+ 208
654
+ ],
655
+ "page_idx": 6
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "In all JPEG deblocking experiments, we follow the settings as in Zhang et al. (2017a; 2018). All models are evaluated using the mean PSNR as the quantitative metric on the LIVE1 dataset (Sheikh, 2005). Both the training and evaluation processes are done on the Y channel (the luminance channel) of the YCbCr color space. The PIL module of python is applied to generate JPEG-compressed images. The module produces numerically identical images as the commonly used MATLAB JPEG encoder after setting the quantization tables manually. The images with quality factors 20 and 30 are used during training. De-blocking performances are evaluated on four quality factors, namely $\\mathrm { Q F = 1 0 }$ , 20, 30, and 40. All other parameter settings are the same as in the denoising experiments. ",
660
+ "bbox": [
661
+ 174,
662
+ 215,
663
+ 826,
664
+ 327
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "3.2 IMAGE DENOISING ",
671
+ "text_level": 1,
672
+ "bbox": [
673
+ 176,
674
+ 352,
675
+ 346,
676
+ 366
677
+ ],
678
+ "page_idx": 6
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "We select DnCNN-B(Zhang et al., 2017a) and UNLNet5 (Lefkimmiatis, 2017) for comparisons since these models are designed for blind image denoising. Moreover, we also compare our model with non-learning-based algorithms BM3D (Dabov et al., 2007) and WNNM (Gu et al., 2014). The noise levels are assumed known for BM3D and WNNM due to their requirements. Comparison results are shown in Table 2. ",
683
+ "bbox": [
684
+ 174,
685
+ 381,
686
+ 825,
687
+ 450
688
+ ],
689
+ "page_idx": 6
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Despite the fact that the parameters of our model $( 1 . 8 \\times 1 0 ^ { 5 }$ for the restoration unit and $1 . 0 \\times 1 0 ^ { 5 }$ for the policy unit) is less than the DnCNN (approximately $7 . 0 \\times 1 0 ^ { 5 }$ ), one can see that DURR outperforms DnCNN on most of the noise-levels. More interestingly, DURR does not degrade too much when the the noise level goes beyond the level we used during training. The noise level $\\sigma = 6 5$ , 75 is not included in the training set of both DnCNN and DURR. DnCNN reports notable drops of PSNR when evaluated on the images with such noise levels, while DURR only reports small drops of PSNR (see the last row of Table 2 and Fig. 6). Note that the reason we do not provide the results of UNLNet5 in Table 2 is because the authors of Lefkimmiatis (2017) has not released their codes yet, and they only reported the noise levels from 15 to 55 in their paper. We also want to emphasize that they trained two networks, one for the low noise level $( 5 \\leq \\sigma \\leq 2 9 )$ and one for higher noise level $3 0 \\leq \\sigma \\leq 5 5$ ). The reason is that due to the use of the constraint $| | y - x | | _ { 2 } \\leq \\epsilon$ by Lefkimmiatis (2017), we should not expect the model generalizes well to the noise levels surpasses the noise level of the training set. ",
694
+ "bbox": [
695
+ 174,
696
+ 458,
697
+ 825,
698
+ 638
699
+ ],
700
+ "page_idx": 6
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "For qualitative comparisons, some restored images of different models on the BSD68 dataset are presented in Fig. 5 and Fig. 6. As can be seen, more details are preserved in DURR than other models. It is worth noting that the noise level of the input image in Fig. 6 is 65, which is unseen by both DnCNN and DURR during training. Nonetheless, DURR achieves a significant gain of nearly 1 dB than DnCNN. Moreover, the texture on the cameo is very well restored by DURR. These results clearly indicate the strong generalization ability of our model. ",
705
+ "bbox": [
706
+ 174,
707
+ 645,
708
+ 825,
709
+ 729
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "More interestingly, due to the generalization ability in denoising, DURR is able to handle the problem of real image denoising without additional training. For testing, we test the images obtained from Lebrun et al. (2015). We present the representative results in Fig. 7 and more results are listed in the supplementary materials. ",
716
+ "bbox": [
717
+ 174,
718
+ 736,
719
+ 823,
720
+ 791
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "We also train our model for blind color image denoising, please refer to the supplementary materials for more details. ",
727
+ "bbox": [
728
+ 176,
729
+ 799,
730
+ 823,
731
+ 827
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "3.3 JPEG IMAGE DEBLOCKING ",
738
+ "text_level": 1,
739
+ "bbox": [
740
+ 176,
741
+ 852,
742
+ 405,
743
+ 867
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "For deep learning based models, we select DnCNN-3 (Zhang et al., 2017a) for comparisons since it is the only known deep model for multiple QFs deblocking. As the AR-CNN (Dong et al., 2015) is a commonly used baseline, we re-train the AR-CNN on a training set with mixed QFs and denote this model as AR-CNN-B. Original AR-CNN as well as a non-learning-based method SA-DCT (Foi et al., 2007) are also tested. The quality factors are assumed known for these models. ",
750
+ "bbox": [
751
+ 176,
752
+ 882,
753
+ 823,
754
+ 924
755
+ ],
756
+ "page_idx": 6
757
+ },
758
+ {
759
+ "type": "table",
760
+ "img_path": "images/c26d68118544016535c3019b6db245fb91f953aa319ee3df63a5652b45adcfc6.jpg",
761
+ "table_caption": [
762
+ "Table 2: Average PSNR (dB) results for gray image denoising on the BSD68 dataset. Values with ∗ means the corresponding noise level is not present in the training data of the model. The best results are indicated in red. "
763
+ ],
764
+ "table_footnote": [],
765
+ "table_body": "<table><tr><td></td><td>BM3D</td><td>WNNM</td><td>DnCNN-B</td><td>UNLNet5</td><td>DURR</td></tr><tr><td>σ=25</td><td>28.55</td><td>28.73</td><td>29.16</td><td>28.96</td><td>29.16</td></tr><tr><td>9 二 35</td><td>27.07</td><td>27.28</td><td>27.66</td><td>27.50</td><td>27.72</td></tr><tr><td>g= 45</td><td>25.99</td><td>26.26</td><td>26.62</td><td>26.48</td><td>26.71</td></tr><tr><td>0 = :55</td><td>25.26</td><td>25.49</td><td>25.80</td><td>25.64</td><td>25.91</td></tr><tr><td>g= 65</td><td>24.69</td><td>24.51</td><td>23.40*</td><td>1</td><td>25.26*</td></tr><tr><td>σ=75</td><td>22.63</td><td>22.71</td><td>18.73*</td><td>=</td><td>24.71*</td></tr></table>",
766
+ "bbox": [
767
+ 274,
768
+ 155,
769
+ 723,
770
+ 271
771
+ ],
772
+ "page_idx": 7
773
+ },
774
+ {
775
+ "type": "image",
776
+ "img_path": "images/730e2ff7c56f5b60b821847bc21e00371b2073b674705befc58d3d5e514a40b6.jpg",
777
+ "image_caption": [
778
+ "Figure 5: Denoising results of an image from BSD68 with noise level 35. "
779
+ ],
780
+ "image_footnote": [],
781
+ "bbox": [
782
+ 186,
783
+ 289,
784
+ 812,
785
+ 532
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "image",
791
+ "img_path": "images/f144ebee89bc37164941004353b3fc95d7782634d8ba2eacdb315062efcd2c5b.jpg",
792
+ "image_caption": [
793
+ "Figure 6: Denoising results of an image from BSD68 with noise level 65 (unseen by both DnCNN and DURR in their training sets). "
794
+ ],
795
+ "image_footnote": [],
796
+ "bbox": [
797
+ 184,
798
+ 579,
799
+ 812,
800
+ 823
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "",
807
+ "bbox": [
808
+ 173,
809
+ 895,
810
+ 825,
811
+ 924
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Quantitative results are shown in Table 3. Though the number of parameters of DURR is significantly less than the DnCNN-3, the proposed DURR outperforms DnCNN-3 in most cases. Specifically, considerable gains can be observed for our model on seen QFs, and the performances are comparable on unseen QFs. A representative result on the LIVE1 dataset is presented in Fig. 8. Our model generates the most clean and accurate details. More experiment details are given in the supplementary materials. ",
818
+ "bbox": [
819
+ 174,
820
+ 103,
821
+ 825,
822
+ 186
823
+ ],
824
+ "page_idx": 8
825
+ },
826
+ {
827
+ "type": "table",
828
+ "img_path": "images/f771c5f4b796ce5d612f74ae9fef533bf66be14bd2a7fc918137b381133df246.jpg",
829
+ "table_caption": [
830
+ "Table 3: The average PSNR(dB) on the LIVE1 dataset. Values with ∗ means the corresponding QF is not present in the training data of the model. The best results are indicated in red and the second best results are indicated in blue. "
831
+ ],
832
+ "table_footnote": [],
833
+ "table_body": "<table><tr><td>QF</td><td>JPEG</td><td>SA-DCT</td><td>AR-CNN</td><td>AR-CNN-B</td><td>DnCNN-3</td><td>DURR</td></tr><tr><td>10</td><td>27.77</td><td>28.65</td><td>28.98</td><td>28.53</td><td>29.40</td><td>29.23*</td></tr><tr><td>20</td><td>30.07</td><td>30.81</td><td>31.29</td><td>30.88</td><td>31.59</td><td>31.68</td></tr><tr><td>30</td><td>31.41</td><td>32.08</td><td>32.69</td><td>32.31</td><td>32.98</td><td>33.05</td></tr><tr><td>40</td><td>32.45</td><td>32.99</td><td>33.63</td><td>33.39</td><td>33.96</td><td>34.01*</td></tr></table>",
834
+ "bbox": [
835
+ 243,
836
+ 252,
837
+ 754,
838
+ 342
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "image",
844
+ "img_path": "images/b7d8f79a5dabb17ddd97b6885d14884e9c6a18a074d11c3c74bfea9f7dbc46e7.jpg",
845
+ "image_caption": [
846
+ "Figure 7: Denoising results on a real image from Lebrun et al. (2015). "
847
+ ],
848
+ "image_footnote": [],
849
+ "bbox": [
850
+ 181,
851
+ 364,
852
+ 816,
853
+ 481
854
+ ],
855
+ "page_idx": 8
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "3.4 OTHER APPLICATIONS ",
860
+ "text_level": 1,
861
+ "bbox": [
862
+ 176,
863
+ 537,
864
+ 370,
865
+ 551
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Our model can be easily extended to other applications such as deraining, dehazing and deblurring. In all these applications, there are images corrupted at different levels. Rainfall intensity, haze density and different blur kernels will all effect the image quality. ",
872
+ "bbox": [
873
+ 174,
874
+ 564,
875
+ 825,
876
+ 606
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "4 CONCLUSIONS ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 176,
886
+ 627,
887
+ 328,
888
+ 643
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "In this paper, we proposed a novel image restoration model based on the moving endpoint control in order to handle varied noise levels using a single model. The problem was solved by jointly optimizing two units: restoration unit and policy unit. The restoration unit used an RNN to realize the dynamics in the control problem. A policy unit was proposed for the policy unit to determine the loop times of the restoration unit for optimal results. Our model achieved the state-of-the-art results in blind image denoising and JPEG deblocking. Moreover, thanks to the flexibility of the given policy, DURR has shown strong abilities of generalization in our experiments. ",
895
+ "bbox": [
896
+ 174,
897
+ 660,
898
+ 825,
899
+ 757
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "ACKNOWLEDGMENTS ",
906
+ "text_level": 1,
907
+ "bbox": [
908
+ 176,
909
+ 780,
910
+ 356,
911
+ 795
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Bin Dong is supported in part by Beijing Natural Science Foundation (Z180001).Yiping Lu is supported by the Elite Undergraduate Training Program of the School of Mathematical Sciences at Peking University. ",
918
+ "bbox": [
919
+ 176,
920
+ 810,
921
+ 825,
922
+ 853
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "REFERENCES ",
929
+ "text_level": 1,
930
+ "bbox": [
931
+ 176,
932
+ 875,
933
+ 285,
934
+ 890
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Michal Aharon, Michael Elad, and Alfred Bruckstein. $k$ -svd: An algorithm for designing overcomplete dictionaries for sparse representation. IEEE Transactions on signal processing, 54(11):4311–4322, 2006. ",
941
+ "bbox": [
942
+ 176,
943
+ 897,
944
+ 823,
945
+ 922
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "image",
951
+ "img_path": "images/c055ad32915ea36e7b48a898badc4d148644d786532c4e51476e86b49000d66f.jpg",
952
+ "image_caption": [
953
+ "Figure 8: JPEG deblocking results of an image from the LIVE1 dataset, compressed using QF 10. "
954
+ ],
955
+ "image_footnote": [],
956
+ "bbox": [
957
+ 174,
958
+ 101,
959
+ 823,
960
+ 188
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "K. Bredies, K. Kunisch, and T. Pock. Total Generalized Variation. SIAM Journal on Imaging Sciences, 3:492, 2010. ",
967
+ "bbox": [
968
+ 176,
969
+ 241,
970
+ 823,
971
+ 267
972
+ ],
973
+ "page_idx": 9
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Antoni Buades, Bartomeu Coll, and J-M Morel. A non-local algorithm for image denoising. In Computer Vision and Pattern Recognition, 2005. CVPR 2005. IEEE Computer Society Conference on, volume 2, pp. 60–65. IEEE, 2005. ",
978
+ "bbox": [
979
+ 174,
980
+ 276,
981
+ 825,
982
+ 315
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "J.F. Cai, S. Osher, and Z. Shen. Split Bregman methods and frame based image restoration. Multiscale Modeling and Simulation: A SIAM Interdisciplinary Journal, 8(2):337–369, 2009. ",
989
+ "bbox": [
990
+ 173,
991
+ 325,
992
+ 823,
993
+ 352
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Jian-Feng Cai, Bin Dong, Stanley Osher, and Zuowei Shen. Image restoration: total variation, wavelet frames, and beyond. Journal of the American Mathematical Society, 25(4):1033–1089, 2012. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 359,
1003
+ 823,
1004
+ 387
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Jian-Feng Cai, Bin Dong, and Zuowei Shen. Image restoration: a wavelet frame based model for piecewise smooth functions and beyond. Applied and Computational Harmonic Analysis, 41(1):94–138, 2016. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 396,
1014
+ 821,
1015
+ 422
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Francine Catté, Pierre-Louis Lions, Jean-Michel Morel, and Tomeu Coll. Image selective smoothing and edge detection by nonlinear diffusion. SIAM Journal on Numerical analysis, 29(1):182–193, 1992. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 431,
1025
+ 823,
1026
+ 459
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Bo Chang, Lili Meng, Eldad Haber, Lars Ruthotto, David Begert, and Elliot Holtham. Reversible architectures for arbitrarily deep residual neural networks. AAAI2018, 2017. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 467,
1036
+ 823,
1037
+ 494
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Qifeng Chen, Jia Xu, and Vladlen Koltun. Fast image processing with fully-convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2497–2506, 2017. ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 502,
1047
+ 823,
1048
+ 530
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Y. Chen and T Pock. Trainable nonlinear reaction diffusion: A flexible framework for fast and effective image restoration. IEEE Transactions on Pattern Analysis & Machine Intelligence, 39(6):1256–1272, 2017. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 539,
1058
+ 823,
1059
+ 565
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Image denoising by sparse 3-d transform-domain collaborative filtering. IEEE Transactions on image processing, 16(8):2080–2095, 2007. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 574,
1069
+ 823,
1070
+ 602
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "I. Daubechies, G. Teschke, and L. Vese. Iteratively solving linear inverse problems under general convex constraints. Inverse Problems and Imaging, 1(1):29, 2007. ",
1077
+ "bbox": [
1078
+ 176,
1079
+ 609,
1080
+ 821,
1081
+ 637
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Bin Dong, Qingtang Jiang, and Zuowei Shen. Image restoration: Wavelet frame shrinkage, nonlinear evolution pdes, and beyond. Multiscale Modeling & Simulation, 15(1):606–660, 2017. ",
1088
+ "bbox": [
1089
+ 171,
1090
+ 645,
1091
+ 825,
1092
+ 672
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Chao Dong, Yubin Deng, Chen Change Loy, and Xiaoou Tang. Compression artifacts reduction by a deep convolutional network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 576–584, 2015. ",
1099
+ "bbox": [
1100
+ 173,
1101
+ 681,
1102
+ 823,
1103
+ 720
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "M. Elad, J.L. Starck, P. Querre, and D.L. Donoho. Simultaneous cartoon and texture image inpainting using morphological component analysis (MCA). Applied and Computational Harmonic Analysis, 19(3):340–358, 2005. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 729,
1113
+ 823,
1114
+ 768
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Lawrence C Evans. An introduction to mathematical optimal control theory version 0.2. Tailieu Vn, 2005. ",
1121
+ "bbox": [
1122
+ 171,
1123
+ 777,
1124
+ 799,
1125
+ 792
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Cong Fang, Zhenyu Zhao, Pan Zhou, and Zhouchen Lin. Feature learning via partial differential equation with applications to face recognition. Pattern Recognition, 69:14–25, 2017. ",
1132
+ "bbox": [
1133
+ 171,
1134
+ 801,
1135
+ 823,
1136
+ 828
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Pointwise shape-adaptive dct for high-quality denoising and deblocking of grayscale and color images. IEEE Transactions on Image Processing, 16(5): 1395–1411, 2007. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 837,
1146
+ 825,
1147
+ 876
1148
+ ],
1149
+ "page_idx": 9
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2862–2869, 2014. ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 885,
1157
+ 825,
1158
+ 924
1159
+ ],
1160
+ "page_idx": 9
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "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. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 103,
1168
+ 823,
1169
+ 131
1170
+ ],
1171
+ "page_idx": 10
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Viren Jain and Sebastian Seung. Natural image denoising with convolutional networks. In Advances in Neural Information Processing Systems, pp. 769–776, 2009. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 140,
1179
+ 823,
1180
+ 167
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "H. Ji, C. Liu, Z. Shen, and Y. Xu. Robust video denoising using low rank matrix completion. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2010. ",
1187
+ "bbox": [
1188
+ 176,
1189
+ 175,
1190
+ 821,
1191
+ 203
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Xiangyang Lan, Stefan Roth, Daniel Huttenlocher, and Michael J Black. Efficient belief propagation with learned higher-order markov random fields. In European conference on computer vision, pp. 269–282. Springer, 2006. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 212,
1201
+ 823,
1202
+ 251
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Marc Lebrun, Miguel Colom, and Jean-Michel Morel. The noise clinic: a blind image denoising algorithm. Image Processing On Line, 5:1–54, 2015. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 260,
1212
+ 821,
1213
+ 287
1214
+ ],
1215
+ "page_idx": 10
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Stamatios Lefkimmiatis. Universal denoising networks: A novel cnn-based network architecture for image denoising. arXiv preprint arXiv:1711.07807, 2017. ",
1220
+ "bbox": [
1221
+ 174,
1222
+ 296,
1223
+ 821,
1224
+ 324
1225
+ ],
1226
+ "page_idx": 10
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Qianli Liao and Tomaso Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv preprint, 2016. ",
1231
+ "bbox": [
1232
+ 173,
1233
+ 332,
1234
+ 823,
1235
+ 359
1236
+ ],
1237
+ "page_idx": 10
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Yiping Lu, Aoxiao Zhong, Quanzheng Li, and Bin Dong. Beyond finite layer neural networks: Bridging deep architectures and numerical differential equations. Thirty-fifth International Conference on Machine Learning (ICML), 2018. ",
1242
+ "bbox": [
1243
+ 174,
1244
+ 368,
1245
+ 823,
1246
+ 407
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "D. Martin, C. Fowlkes, D. Tal, and J. Malik. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proc. 8th Int’l Conf. Computer Vision, volume 2, pp. 416–423, July 2001. ",
1253
+ "bbox": [
1254
+ 176,
1255
+ 416,
1256
+ 823,
1257
+ 457
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Anish Mittal, Anush Krishna Moorthy, and Alan Conrad Bovik. No-reference image quality assessment in the spatial domain. IEEE Transactions on Image Processing, 21(12):4695–4708, 2012. ",
1264
+ "bbox": [
1265
+ 169,
1266
+ 465,
1267
+ 823,
1268
+ 493
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015. ",
1275
+ "bbox": [
1276
+ 176,
1277
+ 501,
1278
+ 823,
1279
+ 541
1280
+ ],
1281
+ "page_idx": 10
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Pavel Mrázek and Mirko Navara. Selection of optimal stopping time for nonlinear diffusion filtering. International Journal of Computer Vision, 52(2-3):189–203, 2003. ",
1286
+ "bbox": [
1287
+ 173,
1288
+ 550,
1289
+ 823,
1290
+ 577
1291
+ ],
1292
+ "page_idx": 10
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "D. Mumford and J. Shah. Optimal approximations by piecewise smooth functions and associated variational problems. Communications on pure and applied mathematics, 42(5):577–685, 1989. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 585,
1300
+ 823,
1301
+ 613
1302
+ ],
1303
+ "page_idx": 10
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Stanley Osher and Leonid Rudin. Feature-oriented image enhancement using shock filters. SIAM Journal on Numerical Analysis, 27(4):919–940, Aug 1990. URL http://www.jstor.org/stable/2157689. ",
1308
+ "bbox": [
1309
+ 173,
1310
+ 621,
1311
+ 823,
1312
+ 650
1313
+ ],
1314
+ "page_idx": 10
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Pietro Perona and Jitendra Malik. Scale-space and edge detection using anisotropic diffusion. IEEE Transactions on pattern analysis and machine intelligence, 12(7):629–639, 1990. ",
1319
+ "bbox": [
1320
+ 171,
1321
+ 659,
1322
+ 823,
1323
+ 685
1324
+ ],
1325
+ "page_idx": 10
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pp. 234–241. Springer, 2015. ",
1330
+ "bbox": [
1331
+ 174,
1332
+ 694,
1333
+ 825,
1334
+ 733
1335
+ ],
1336
+ "page_idx": 10
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "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. ",
1341
+ "bbox": [
1342
+ 171,
1343
+ 742,
1344
+ 823,
1345
+ 770
1346
+ ],
1347
+ "page_idx": 10
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "HR Sheikh. Live image quality assessment database release 2. http://live.ece.utexas.edu/research/quality, 2005. ",
1352
+ "bbox": [
1353
+ 173,
1354
+ 779,
1355
+ 826,
1356
+ 794
1357
+ ],
1358
+ "page_idx": 10
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "J.L. Starck, M. Elad, and D.L. Donoho. Image decomposition via the combination of sparse representations and a variational approach. IEEE transactions on image processing, 14(10):1570–1582, 2005. ",
1363
+ "bbox": [
1364
+ 169,
1365
+ 801,
1366
+ 823,
1367
+ 829
1368
+ ],
1369
+ "page_idx": 10
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Joachim Weickert. Anisotropic diffusion in image processing, volume 1. Teubner Stuttgart, 1998. ",
1374
+ "bbox": [
1375
+ 171,
1376
+ 838,
1377
+ 750,
1378
+ 852
1379
+ ],
1380
+ "page_idx": 10
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "E Weinan. A proposal on machine learning via dynamical systems. Communications in Mathematics & Statistics, 5(1):1–11, 2017. ",
1385
+ "bbox": [
1386
+ 176,
1387
+ 861,
1388
+ 825,
1389
+ 888
1390
+ ],
1391
+ "page_idx": 10
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep cnn for image denoising. IEEE Transactions on Image Processing, 26(7):3142–3155, 2017a. ",
1396
+ "bbox": [
1397
+ 173,
1398
+ 897,
1399
+ 826,
1400
+ 924
1401
+ ],
1402
+ "page_idx": 10
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Xiaoshuai Zhang, Wenhan Yang, Yueyu Hu, and Jiaying Liu. Dmcnn: Dual-domain multi-scale convolutional neural network for compression artifacts removal. In Proceedings of the 25th IEEE International Conference on Image Processing, 2018. ",
1407
+ "bbox": [
1408
+ 174,
1409
+ 104,
1410
+ 823,
1411
+ 142
1412
+ ],
1413
+ "page_idx": 11
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Xingcheng Zhang, Zhizhong Li, Chen Change Loy, and Dahua Lin. Polynet: A pursuit of structural diversity in very deep networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3900–3908. IEEE, 2017b. ",
1418
+ "bbox": [
1419
+ 173,
1420
+ 151,
1421
+ 823,
1422
+ 190
1423
+ ],
1424
+ "page_idx": 11
1425
+ }
1426
+ ]
parse/train/SJfZKiC5FX/SJfZKiC5FX_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJfZKiC5FX/SJfZKiC5FX_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJl2niR9KQ/SJl2niR9KQ.md ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BEYOND PIXEL NORM-BALLS: PARAMETRIC ADVERSARIES USING AN ANALYTICALLY DIFFERENTIABLE RENDERER
2
+
3
+ Hsueh-Ti Derek Liu University of Toronto hsuehtil@cs.toronto.edu
4
+
5
+ Michael Tao University of Toronto mtao@dgp.toronto.edu
6
+
7
+ Chun-Liang Li Carnegie Mellon University chunlial@cs.cmu.edu
8
+
9
+ Derek Nowrouzezahrai McGill University derek@cim.mcgill.ca
10
+
11
+ Alec Jacobson University of Toronto jacobson@cs.toronto.edu
12
+
13
+ # ABSTRACT
14
+
15
+ Many machine learning image classifiers are vulnerable to adversarial attacks, inputs with perturbations designed to intentionally trigger misclassification. Current adversarial methods directly alter pixel colors and evaluate against pixel norm-balls: pixel perturbations smaller than a specified magnitude, according to a measurement norm. This evaluation, however, has limited practical utility since perturbations in the pixel space do not correspond to underlying real-world phenomena of image formation that lead to them and has no security motivation attached. Pixels in natural images are measurements of light that has interacted with the geometry of a physical scene. As such, we propose a novel evaluation measure, parametric normballs, by directly perturbing physical parameters that underly image formation. One enabling contribution we present is a physically-based differentiable renderer that allows us to propagate pixel gradients to the parametric space of lighting and geometry. Our approach enables physically-based adversarial attacks, and our differentiable renderer leverages models from the interactive rendering literature to balance the performance and accuracy trade-offs necessary for a memory-efficient and scalable adversarial data augmentation workflow.
16
+
17
+ # 1 INTRODUCTION
18
+
19
+ Research in adversarial examples continues to contribute to the development of robust (semi-)supervised learning (Miyato et al., 2018), data augmentation (Goodfellow et al., 2015; Sun et al., 2018), and machine learning understanding (Kanbak et al., 2018). One important caveat of the approach pursued by much of the literature in adversarial machine learning, as discussed recently (Goodfellow,
20
+
21
+ ![](images/6b3cf82b25aae0a2ddeeb7f9414d2d23acd8eac439fd20752d04391cd224023a.jpg)
22
+ Figure 1: Traditional pixel-based adversarial attacks yield unrealistic images under a larger perturbation $( L ^ { \infty } \mathrm { - n o r m \approx 0 . 8 2 } )$ , however our parametric lighting and geometry perturbations output more realistic images under the same norm (more results in Appendix A).
23
+
24
+ ![](images/0225063af5b871e53180a24d9f50d54d9370c22a3f1a7fb0f1ae5c6b058dfdd8.jpg)
25
+ Figure 2: Parametrically-perturbed images remain natural, whereas pixel-perturbed ones do not.
26
+
27
+ 2018; Gilmer et al., 2018), is the reliance on overly simplified attack metrics: namely, the use of pixel value differences between an adversary and an input image, also referred to as the pixel norm-balls.
28
+
29
+ The pixel norm-balls game considers pixel perturbations of norm-constrained magnitude (Goodfellow et al., 2015), and is used to develop adversarial attackers, defenders and training strategies. The pixel norm-ball game is attractive from a research perspective due to its simplicity and well-posedness: no knowledge of image formation is required and any arbitrary pixel perturbation remains eligible (so long as it is “small”, in the perceptual sense). Although the pixel norm-ball is useful for research purposes, it only captures limited real-world security scenarios.
30
+
31
+ Despite the ability to devise effective adversarial methods through the direct employment of optimizations using the pixel norm-balls measure, the pixel manipulations they promote are divorced from the types of variations present in the real world, limiting their usefulness “in the wild”. Moreover, this methodology leads to defenders that are only effective when defending against unrealistic images/attacks, not generalizing outside of the space constrained by pixel norm-balls. In order to consider conditions that enable adversarial attacks in the real world, we advocate for a new measurement norm that is rooted in the physical processes that underly realistic image synthesis, moving away from overly simplified metrics, e.g., pixel norm-balls.
32
+
33
+ Our proposed solution – parametric norm-balls – rely on perturbations of physical parameters of a synthetic image formation model, instead of pixel color perturbations (Figure 2). To achieve this, we use a physically-based differentiable renderer which allows us to perturb the underlying parameters of the image formation process. Since these parameters indirectly control pixel colors, perturbations in this parametric space implicitly span the space of natural images. We will demonstrate two advantages that fall from considering perturbations in this parametric space: (1) they enable adversarial approaches that more readily apply to real-world applications, and (2) they permit the use of much more significant perturbations (compared to pixel norms), without invalidating the realism of the resulting image (Figure 1). We validate that parametric norm-balls game playing is critical for a variety of important adversarial tasks, such as building defenders robust to perturbations that can occur naturally in the real world.
34
+
35
+ We perform perturbations in the underlying image formation parameter space using a novel physicallybased differentiable renderer. Our renderer analytically computes the derivatives of pixel color with respect to these physical parameters, allowing us to extend traditional pixel norm-balls to physicallyvalid parametric norm-balls. Notably, we demonstrate perturbations on an environment’s lighting and on the shape of the 3D geometry it shades. Our differentiable renderer achieves state-of-the-art performance in speed and scalability (Section 3) and is fast enough for rendered adversarial data augmentation (Section 5): training augmented with adversarial images generated with a renderer.
36
+
37
+ Existing differentiable renders are slow and do not scalable to the volume of high-quality, highresolutions images needed to make adversarial data augmentation tractable (Section 2). Given our analytically-differentiable renderer (Section 3), we are able to demonstrate the efficacy of parametric space perturbations for generating adversarial examples. These adversaries are based on a substantially different phenomenology than their pixel norm-balls counterparts (Section 4). Ours is among the first steps towards the deployment of rendered adversarial data augmentation in real-world applications: we train a classifier with computer-generated adversarial images, evaluating the performance of the training against real photographs (i.e., captured using cameras; Section 5). We test on real photos to show the parametric adversarial data augmentation increases the classifier’s robustness to “deformations” happened in the real world. Our evaluation differs from the majority of existing literature which evaluates against computer-generated adversarial images, since our parametric space perturbation is no-longer a wholly idealized representation of the image formation model but, instead, modeled against of theory of realistic image generation.
38
+
39
+ # 2 RELATED WORK
40
+
41
+ Our work is built upon the fact that simulated or rendered images can participate in computer vision and machine learning on real-world tasks. Many previous works use rendered (simulated) data to train deep networks, and those networks can be deployed to real-world or even outperform the state-of-the-art networks trained on real photos (Movshovitz-Attias et al., 2016; Chen et al., 2016; Varol et al., 2017; Su et al., 2015; Johnson-Roberson et al., 2017; Veeravasarapu et al., 2017b; Sadeghi & Levine, 2016; James & Johns, 2016). For instance, Veeravasarapu et al. (2017a) show that training with $1 0 \%$ real-world data and $9 0 \%$ simulation data can reach the level of training with full real data. Tremblay et al. (2018) even demonstrate that the network trained on synthetic data yields a better performance than using real data alone. As rendering can cheaply provide a theoretically infinite supply of annotated input data, it can generate data which is orders of magnitude larger than existing datasets. This emerging trend of training on synthetic data provides an exciting direction for future machine learning development. Our work complements these works. We demonstrate the utility of rendering can be used to study the potential danger lurking in misclassification due to subtle changes to geometry and lighting. This provides a future direction of combining with synthetic data generation pipelines to perform physically based adversarial training on synthetic data.
42
+
43
+ Adversarial Examples Szegedy et al. (2014) expose the vulnerability of modern deep neural nets using purposefully-manipulated images with human-imperceptible misclassification-inducing noise. Goodfellow et al. (2015) introduce a fast method to harness adversarial examples, leading to the idea of pixel norm-balls for evaluating adversarial attackers/defenders. Since then, many significant developments in adversarial techniques have been proposed (Akhtar & Mian, 2018; Szegedy et al., 2014; Rozsa et al., 2016; Kurakin et al., 2017; Moosavi Dezfooli et al., 2016; Dong et al., 2018; Papernot et al., 2017; Moosavi-Dezfooli et al., 2017; Chen et al., 2017; Su et al., 2017). Our work extends this progression in constructing adversarial examples, a problem that lies at the foundation of adversarial machine learning. Kurakin et al. (2016) study the transferability of attacks to the physical world by printing then photographing adversarial images. Athalye et al. (2017) and Eykholt et al. (2018) propose extensions to non-planar (yet, still fixed) geometry and multiple viewing angles. These works still rely fundamentally on the direct pixel or texture manipulation on physical objects. Since these methods assume independence between pixels in the image or texture space they remain variants of pixel norm-balls. This leads to unrealistic attack images that cannot model real-world scenarios (Goodfellow, 2018; Hendrycks & Dietterich, 2018; Gilmer et al., 2018). Zeng et al. (2017) generate adversarial examples by altering physical parameters using a rendering network (Liu et al., 2017) trained to approximate the physics of realistic image formation. This data-driven approach leads to an image formation model biased towards the rendering style present in the training data. This method also relies on differentiation through the rendering network in order to compute adversaries, which requires high-quality training on a large amount of data. Even with perfect training, in their reported performance, it still requires 12 minutes on average to find new adversaries, we only take a few seconds Section 4.1. Our approach is based on a differentiable physically-based renderer that directly (and, so, more convincingly) models the image formation process, allowing us to alter physical parameters – like geometry and lighting – and compute
44
+
45
+ derivatives (and adversarial examples) much more rapidly compared to the (Zeng et al., 2017). We summarize the difference between our approach and the previous non-image adversarial attacks in Table 1.
46
+
47
+ Table 1: Previous non-pixel attacks fall short in either the parameter range they can take derivatives or the performance.
48
+
49
+ <table><tr><td>Methods</td><td>Perf.</td><td>Color</td><td>Normal</td><td>Material</td><td>Light</td><td>Geo.</td></tr><tr><td>Athalye 17</td><td>√</td><td>√</td><td></td><td></td><td></td><td></td></tr><tr><td>Zeng 17</td><td></td><td></td><td>√</td><td>√</td><td></td><td></td></tr><tr><td>Ours</td><td>√</td><td>√</td><td></td><td></td><td>√</td><td>√</td></tr></table>
50
+
51
+ Differentiable Renderer Applying parametric norm-balls requires that we differentiate the image formation model with respect to the physical parameters of the image formation model. Modern realistic computer graphics models do not expose facilities to directly accommodate the computation of derivatives or automatic differentiation of pixel colors with respect to geometry and lighting variables. A physically-based
52
+
53
+ Table 2: Previous differentiable renderers fall short in one way or another among Performance, Bias, or Accuracy.
54
+
55
+ <table><tr><td>Methods</td><td>Perf.</td><td>Unbias</td><td>Accu.</td></tr><tr><td>NN proxy (Liu 17)</td><td></td><td></td><td></td></tr><tr><td>Approx. (Kato 18)</td><td>?</td><td>√</td><td></td></tr><tr><td>Autodiff (Loper 14)</td><td></td><td></td><td>&lt;</td></tr><tr><td>Analytical (Ours)</td><td>√</td><td>&lt;</td><td></td></tr></table>
56
+
57
+ differentiable renderer is fundamental to computing derivative of pixel colors with respect to scene parameters and can benefit machine learning in several ways, including promoting the development of novel network architectures (Liu et al., 2017), in computing adversarial examples (Athalye et al., 2017; Zeng et al., 2017), and in generalizing neural style transfer to a 3D context (Kato et al., 2018; Liu et al., 2018). Recently, various techniques have been proposed to obtain these derivatives: Wu et al. (2017); Liu et al. (2017); Eslami et al. (2016) use neural networks to learn the image formation process provided a large amount of input/output pairs. This introduces unnecessary bias in favor of the training data distribution, leading to inaccurate derivatives due to imperfect learning. Kato et al. (2018) propose a differentiable renderer based on a simplified image formation model and an underlying linear approximation. Their approach requires no training and is unbiased, but their approximation of the image formation and the derivatives introduce more errors. Loper & Black (2014); Genova et al. (2018) use automatic differentiation to build fully differentiable renderers. These renderers, however, are expensive to evaluate, requiring orders of magnitude more computation and much larger memory footprints compared to our method.
58
+
59
+ Our novel differentiable renderer overcomes these limitations by efficiently computing analytical derivatives of a physically-based image formation model. The key idea is that the non-differentiable visibility change can be ignored when considering infinitesimal perturbations. We model image variations by changing geometry and realistic lighting conditions in an analytically differentiable manner, relying on an accurate model of diffuse image formation that extend spherical harmonicsbased shading methods (Appendix C). Our analytic derivatives are efficient to evaluate, have scalable memory consumption, are unbiased, and are accurate by construction (Table 2). Our renderer explicitly models the physics of the image formation processes, and so the images it generates are realistic enough to illicit correct classifications from networks trained on real-world photographs.
60
+
61
+ # 3 ADVERSARIAL ATTACKS IN PARAMETRIC SPACES
62
+
63
+ Adversarial attacks based on pixel norm-balls typically generate adversarial examples by defining a cost function over the space of images $\mathcal { C } : I \mathbb { R }$ that enforces some intuition of what failure should look like, typically using variants of gradient descent where the gradient $\partial { \mathcal { C } } / \partial I$ is accessible by differentiating through networks (Szegedy et al., 2014; Goodfellow et al., 2015; Rozsa et al., 2016; Kurakin et al., 2017; Moosavi Dezfooli et al., 2016; Dong et al., 2018).
64
+
65
+ The choices for $\mathcal { C }$ include increasing the cross-entropy loss of the correct class (Goodfellow et al., 2015), decreasing the cross-entropy loss of the least-likely class (Kurakin et al., 2017), using a combination of cross-entropies (Moosavi Dezfooli et al., 2016), and more (Szegedy et al., 2014; Rozsa et al., 2016; Dong et al., 2018; Tramèr et al., 2017). We combine of cross-entropies to provide flexibility for choosing untargeted and targeted attacks by specifying a different set of labels:
66
+
67
+ $$
68
+ \mathcal { C } \big ( I ( U , V ) \big ) = - \mathrm { C r o s s E n t r o p y } \big ( f ( I ( U , V ) ) , L _ { d } \big ) + \mathrm { C r o s s E n t r o p y } \big ( f ( I ( U , V ) ) , L _ { i } \big ) ,
69
+ $$
70
+
71
+ where $I$ is the image, $f ( I )$ is the output of the classifier, $L _ { d } , L _ { i }$ are labels which a user wants to decrease and increase the predicted confidences respectively. In our experiments, $L _ { d }$ is the correct class and $L _ { i }$ is either ignored or chosen according to user preference. Our adversarial attacks in the parametric space consider an image $I ( U , V )$ is the function of physical parameters of the image formation model, including the lighting $U$ and the geometry $V$ . Adversarial examples constructed by perturbing physical parameters can then be computed via the chain rule
72
+
73
+ $$
74
+ \frac { \partial \mathcal { C } } { \partial U } = \frac { \partial \mathcal { C } } { \partial I } \frac { \partial I } { \partial U } \qquad \frac { \partial \mathcal { C } } { \partial V } = \frac { \partial \mathcal { C } } { \partial I } \frac { \partial U } { \partial V } ,
75
+ $$
76
+
77
+ where $\partial I / \partial U , \partial I / \partial V$ are derivatives with respect to the physical parameters and we evaluate using our physically based differentiable renderer. In our experiments, we use gradient descent for finding parametric adversarial examples where the gradient is the direction of ${ \partial \bar { I } } / { \partial U } , { \partial I } / { \partial V }$ .
78
+
79
+ # 3.1 PHYSICALLY BASED DIFFERENTIABLE RENDERER
80
+
81
+ Rendering is the process of generating a 2D image from a 3D scene by simulating the physics of light. Light sources in the scene emit photons that then interact with objects in the scene. At each interaction, photons are either reflected, transmitted or absorbed, changing trajectory and repeating until arriving at a sensor such as a camera. A physically based renderer models the interactions mathematically (Pharr et al., 2016), and our task is to analytically differentiate the physical process.
82
+
83
+ Top 5:
84
+ miniskirt $2 8 \%$ t-shirt $21 \%$
85
+ boot $6 \%$
86
+ crutch $5 \%$
87
+ sweatshirt $5 \%$
88
+
89
+ ![](images/99a7b0f58a8f92b000edf89fdac5b41abd221b3c48647a1e98c23f3399c3138a.jpg)
90
+ Figure 4: By changing the lighting, we fool the classifier into seeing miniskirt and water tower, demonstrating the existence of adversarial lighting.
91
+
92
+ ![](images/73c054c91ae8c0e6721840b84bede10f2930523f75290ced6cd9f23fb0ee7df7.jpg)
93
+ street sign $5 7 \%$
94
+ Top 5: water tower $4 8 \%$ street sign $1 8 \%$ mailbox $9 \%$ gas pump $3 \%$ barn $3 \%$
95
+
96
+ ![](images/a0ea287bfa9d740500a85109ceb40b6401ddf5f903a83e4fc23bc0cf16bcbe2f.jpg)
97
+ Figure 5: We construct a single lighting condition that can simultaneously fool the classifier viewing from different angles.
98
+
99
+ We develop our differentiable renderer with common assumptions in real-time rendering (AkenineMoller et al., 2008) – diffuse material, local illumination, and distant light sources. Our diffuse material assumption considers materials which reflect lights uniformly for all directions, equivalent to considering non-specular objects. We assume that variations in the material (texture) are piece-wise constant with respect to our triangle mesh discretization. The local illumination assumption only considers lights that bounce directly from the light source to the camera. Lastly, we assume light sources are far away from the scene, allowing us to represent lighting with one spherical function. For a more detailed rationale of our assumptions, we refer readers to Appendix B).
100
+
101
+ These assumptions simplify the complicated integral required for rendering (Kajiya, 1986) and allow us to represent lighting in terms of spherical harmonics, an orthonormal basis for spherical functions analogous to Fourier transformation. Thus, we can analytically differentiate the rendering equation to acquire derivatives with respect to lighting, geometry, and texture (derivations found in Appendix C).
102
+
103
+ Using analytical derivatives avoids pitfalls of previous differentiable renderers (see Section 2) and make our differentiable renderer orders of magnitude faster than the previous fully differentiable renderer OPENDR (Loper & Black, 2014) (see Figure 3). Our approach is scalable to handle problems with more than
104
+
105
+ ![](images/0ef74421c5313d152a0fb0fb832a4beabd5aca4caf080b787a2283fac7da9563.jpg)
106
+ Figure 3: Our differentiable renderer based on analytical derivatives is faster and more scalable than the previous method.
107
+
108
+ 100,000 variables, while OPENDR runs out of memory for problems with more than 3,500 variables.
109
+
110
+ # 3.2 ADVERSARIAL LIGHTING AND GEOMETRY
111
+
112
+ Adversarial lighting denotes adversarial examples generated by changing the spherical harmonics lighting coefficients $U$ (Green, 2003). As our differentiable renderer allows us to compute $\partial I / \partial U$ analytically (derivation is provided in Appendix C.4), we can simply apply the chain rule:
113
+
114
+ $$
115
+ U U - \gamma \frac { \partial \mathcal { C } } { \partial I } \frac { \partial I } { \partial U } ,
116
+ $$
117
+
118
+ where $\partial { \mathcal { C } } / \partial I$ is the derivative of the cost function with respect to pixel colors and can be obtained by differentiating through the network. Spherical harmonics act as an implicit constraint to prevent unrealistic lighting because natural lighting environments everyday life are dominated by lowfrequency signals. For instance, rendering of diffuse materials can be approximated with only $1 \%$ pixel intensity error by the first 2 orders of spherical harmonics (Ramamoorthi & Hanrahan, 2001). As computers can only represent a finite number of coefficients, using spherical harmonics for lighting implicitly filters out high-frequency, unrealistic lightings. Thus, perturbing the parametric space of spherical harmonics lighting gives us more realistic compared to image-pixel perturbations Figure 1.
119
+
120
+ ![](images/7a791ae776c7c36d46fcaccd704fc5fc8d5565cb724173103d7bca7f6604db5b.jpg)
121
+ Figure 6: By specifying different target labels, we can create an optical illusion: a jaguar is classified as cat and dog from two different views after geometry perturbations.
122
+
123
+ Adversarial geometry is an adversarial example computed by changes the position of the shape’s surface. The shape is encoded as a triangle mesh with $| V |$ vertices and $| F |$ faces, surface points are vertex positions $V \in \mathbb { R } ^ { | V | \times 3 }$ which determine per-face normals $N \in \mathbb { R } ^ { | F | \times 3 }$ which in turn determine the shading of the surface. We can compute adversarial shapes by applying the chain rule:
124
+
125
+ $$
126
+ V V - \gamma \frac { \partial \mathcal { C } } { \partial I } \frac { \partial I } { \partial N } \frac { \partial N } { \partial V } ,
127
+ $$
128
+
129
+ where $\partial I / \partial N$ is computed via a derivation in Appendix E. Each triangle only has one normal on its face, making $\partial N / \partial V$ computable analytically. In particular, the $3 \times 3$ Jacobian of a unit face normal vector $\mathbf { n } _ { i } \in \mathbb { R } ^ { 3 }$ of the $j \mathrm { t h }$ face of the triangle mesh $V$ with respect to one of its corner vertices $\mathbf { v } _ { j } \in \mathbb { R } ^ { 3 }$ is
130
+
131
+ ![](images/60412e1329301d85c6ea801d96abc455c89dfbac30cf0aba4835469607bdbfdb.jpg)
132
+
133
+ $$
134
+ \frac { \partial { \mathbf n } _ { i } } { \partial { \mathbf v } _ { j } } = \frac { \mathbf h _ { i j } \mathbf n _ { i } ^ { \top } } { \| \mathbf h _ { i j } \| ^ { 2 } } ,
135
+ $$
136
+
137
+ where $\mathbf { h } _ { i j } \in \mathbb { R } ^ { 3 }$ is the height vector: the shortest vector to the corner $\mathbf { v } _ { j }$ from the opposite edge.
138
+
139
+ # 4 RESULTS AND EVALUATION
140
+
141
+ We have described how to compute adversarial examples by parametric perturbations, including lighting and geometry. In this section, we show that adversarial examples exist in the parametric spaces, then we analyze the characteristics of those adversaries and parametric norm-balls.
142
+
143
+ We use $4 9 \times 3$ spherical harmonics coefficients to represent environment lighting, with an initial realworld lighting condition (Ramamoorthi & Hanrahan, 2001). Camera parameters and the background images are empirically chosen to have correct initial classifications and avoid synonym sets. In Figure 4 we show that single-view adversarial lighting attack can fool the classifier (pre-trained ResNet-101 on ImageNet (He et al., 2016)). Figure 5 shows multi-view adversarial lighting, which optimizes the summation of the cost functions for each view, thus the gradient is computed as the summation over all camera views:
144
+
145
+ $$
146
+ U U - \sum _ { i \in \mathrm { c a m e r a s } } \gamma \frac { \partial \mathcal { C } } { \partial I _ { i } } \frac { \partial I _ { i } } { \partial U } .
147
+ $$
148
+
149
+ If one is interested in a more specific subspace, such as outdoor lighting conditions governed by sunlight and weather, our adversarial lighting can adapt to it. In Figure 7, we compute adversarial lights over the space of skylights by applying one more chain rule to the Preetham skylight parameters (Preetham et al., 1999; Habel et al., 2008). Details about taking these derivatives are provided in Appendix D. Although adversarial skylight exists, its low degrees of freedom (only three parameters) makes it more difficult to find adversaries.
150
+
151
+ ![](images/932d73e839210912e1e549eade83b667f44ed03f82a76d34555b2c36ac39727c.jpg)
152
+ Figure 7: Even if we further constrain to a lighting subspace, skylight, we can still find adversaries.
153
+
154
+ In Figure 8 and Figure 9 we show the existence of adversarial geometry in both single-view and multi-view cases. Note that we upsample meshes to have ${ \displaystyle > 1 0 \mathrm { K } }$ vertices as a preprocessing step to increase the degrees of freedom available for perturbations. Multiview adversarial geometry enables us to perturb the same 3D shape from different viewing directions, which enables us to construct a deep optical illusion: The same 3D shape are classified differently from different angles. To create the optical illusion in Figure 6, we only need to specify the $L _ { i }$ in Equation (1) to be a dog and a cat for two different views.
155
+
156
+ ![](images/eb2652d2330248bb7e612c93b52fc8fd91cf7e84a550c4c9d2ffdab16533ea4d.jpg)
157
+ Top 3: assault rifleloggerhead $8 7 \%$ , military turtle $67 \%$ uniform $6 \%$ , six-gun $1 \%$
158
+
159
+ ![](images/ac7bbf96a26ee0573a4240ed716442e033ef0a38c193e02f33a1502d74d42148.jpg)
160
+
161
+ Top 3: slug $91 \%$ , roundworm $3 \%$ , banana $1 \%$
162
+
163
+ ![](images/92a13a20e794393c90ea8b24c8cedab8be8a0a0d24ab12df79c0bb0e88c4094b.jpg)
164
+ Figure 8: Perturbing points on 3D shapes fools the classifier into seeing rifle/slug.
165
+ Figure 9: We construct a single adversarial geometry that fools the classifier seeing a mailbox from different angles.
166
+
167
+ # 4.1 PROPERTIES OF PARAMETRIC NORM-BALLS AND ADVERSARIES
168
+
169
+ To further understand parametric adversaries, we analyze how do parametric adversarial examples generalize to black-box models. In Table 3, we test 5,000 ResNet parametric adversaries on unseen networks including AlexNet (Krizhevsky et al., 2012), DenseNet (Huang et al., 2017), SqueezeNet (Iandola et al., 2016), and VGG (Simonyan & Zisserman, 2014). Our result shows that parametric adversarial examples also share across models.
170
+
171
+ In addition to different models, we evaluate parametric adversaries on black-box viewing directions. This evaluation mimics the real-world scenario that a self-driving car would “see” a stop sign from different angles while driving. In Table 4, we randomly sample 500 correctly classified views for a given shape and perform adversarial lighting and geometry algorithms only on a subset of views, then evaluate the resulting adversarial lights/shapes on all the views. The results show that adversarial lights are more generalizable to fool unseen views; adversarial shapes, yet, are less generalizable.
172
+
173
+ Switching from pixel norm-balls to parametric norm-balls only requires to change the normconstraint from the pixel color space to the parametric space. For instance, we can perform a quantitative comparison between parametric adversarial and random perturbations in Figure 10. We use $L ^ { \infty } – n o r m \ = \ 0 . 1$ to constraint the perturbed magnitude of each lighting coefficient, and $L ^ { \infty } \mathbf { - } n o r m = 0 . 0 0 2$ to constrain the maximum displacement of surface points along each axis. The results show how many parametric adversaries can fool the classifier out of 10,000 adversarial lights and shapes respectively. Not only do the
174
+
175
+ ![](images/407b46907c2ca9ab28fda6cee03cdac6f9fe323d682cebbc24bbbec2e2b4f120.jpg)
176
+
177
+ parametric norm-balls show the effectiveness of adversarial perturbation, evaluating robustness using parametric norm-balls has real-world implications.
178
+
179
+ Table 3: We evaluate ResNet adversaries on unseen models and show that parametric adversarial examples also share across models. The table shows the success rate of attacks $( \% )$ .
180
+
181
+ <table><tr><td></td><td>Alex</td><td>VGG</td><td>Squeeze</td><td>Dense</td></tr><tr><td>Lighting</td><td>81.2%</td><td>65.0%</td><td>78.6%</td><td>43.5%</td></tr><tr><td>Geometry</td><td>70.3%</td><td>58.9%</td><td>71.1%</td><td>40.1%</td></tr></table>
182
+
183
+ Figure 10: A quantitative comparison using parametric norm-balls shows the fact that adversarial lighting/geometry perturbations have a higher success rate $( \% )$ in fooling classifiers comparing to random perturbations in the parametric spaces.
184
+ Table 4: We compute parametric adversaries using a subset of views (#Views) and evaluate the success rates $( \% )$ of attacks on unseen views.
185
+
186
+ <table><tr><td>#Views</td><td>0</td><td>1</td><td>5</td></tr><tr><td>Lighting</td><td>0.0%</td><td>29.4%</td><td>64.2%</td></tr><tr><td>Geometry</td><td>0.0%</td><td>0.6%</td><td>3.6%</td></tr></table>
187
+
188
+ Runtime The inset presents our runtime per iteration for computing derivatives. An adversary normally requires less than 10 iterations, thus takes a few seconds. We evaluate our CPU PYTHON implementation and the OPENGL rendering, on an Intel Xeon 3.5GHz CPU with 64GB of RAM and an NVIDIA
189
+
190
+ ![](images/3889c37489b42c5f646dc682574dcd9bb43a307cff9f5cc1a7283b0df6d12564.jpg)
191
+
192
+ GeForce GTX 1080. Our runtime depends on the number of pixels requiring derivatives.
193
+
194
+ # 5 RENDERED ADVERSARIAL DATA AUGMENTATION AGAINST REAL PHOTOS
195
+
196
+ We inject adversarial examples, generated using our differentiable renderer, into the training process of modern image classifiers. Our goal is to increase the robustness of these classifiers to real-world perturbations. Traditionally, adversarial training is evaluated against computer-generated adversarial images (Kurakin et al., 2017; Madry et al., 2018; Tramèr et al., 2017). In contrast, our evaluation differs from the majority of the literature, as we evaluate performance against real photos (i.e., images captured using a camera), and not computer-generated images. This evaluation method is motivated by our goal of increasing a classifier’s robustness to “perturbations” that occur in the real world and result from the physical processes underlying real-world image formation. We present preliminary steps towards this objective, resolving the lack of realism of pixel norm-balls and evaluating our augmented classifiers (i.e., those trained using our rendered adversaries) against real photographs.
197
+
198
+ Training We train the WideResNet (16 layers, 4 wide factor) (Zagoruyko & Komodakis, 2016) on CIFAR-100 (Krizhevsky & Hinton, 2009) augmented with adversarial lighting examples. We apply a common adversarial training method that adds a fixed number of adversarial examples each epoch (Goodfellow et al., 2015; Kurakin et al., 2017). We refer readers to Appendix F for the training detail. In our experiments, we compare three training scenarios: (1) CIFAR-100, (2) CIFAR-100 $+ ~ 1 0 0$ images under random lighting, and (3) CIFAR- $1 0 0 + 1 0 0$ images under adversarial lighting. Comparing to the accuracy reported in (Zagoruyko & Komodakis, 2016), WideResNets trained on these three cases all have comparable performance $( \approx 7 7 \% )$ ) on the CIFAR-100 test set.
199
+
200
+ Testing We create a test set of real photos, captured in a laboratory setting with controlled lighting and camera parameters: we photographed oranges using a calibrated Prosilica GT 1920 camera under different lighting conditions, each generated by projecting different lighting patterns using an LG PH550 projector. This hardware lighting setup projects lighting patterns from a fixed solid angle of directions onto the scene objects. Figure 11 illustrates samples from the 500 real photographs of our dataset. We evaluate the robustness of our classifier models according to test accuracy. Of note, average prediction accuracies over five trained WideResNets on our test data under the three training cases are (1) $4 . 6 \%$ , (2) $4 0 . 4 \%$ , and (3) ${ \bf 6 5 . 8 \% }$ . This result supports the fact that training on rendered images can improve the networks’ performance on real photographs. Our preliminary experiments motivate the potential of relying on rendered adversarial training to increase the robustness to visual phenomena present in the real-world inputs.
201
+
202
+ ![](images/5f0ff22debeefd083577da700ac31248e64be1bde67de9f4c0f5960723304b10.jpg)
203
+ Figure 11: Unlike much of the literature on adversarial training, we evaluate against real photos (captured by a camera), not computergenerated images. This figure illustrates a subset of our test data.
204
+
205
+ # 6 LIMITATIONS & FUTURE WORK
206
+
207
+ Using parametric norm-balls to remove the lack of realism of pixel norm-balls is only the first step to bring adversarial machine learning to real-world. More evaluations beyond the lab experimental data could uncover the potential of the rendered adversarial data augmentation. Coupling the differentiable renderer with methods for reconstructing 3D scenes, such as (Veeravasarapu et al., 2017b; Tremblay et al., 2018), has the potential to develop a complete pipeline for rendered adversarial training. We can take a small set of real images, constructing 3D virtual scenes which have real image statistics, using our approach to manipulate the predicted parameters to construct the parametric adversarial examples, then perform rendered adversarial training. This direction has the potential to produce limitless simulated adversarial data augmentation for real-world tasks.
208
+
209
+ Our differentiable renderer models the change of realistic environment lighting and geometry. Incorporating real-time rendering techniques from the graphics community could further improve the quality of rendering. Removing the locally constant texture assumption could improve our results. Extending the derivative computation to materials could enable “adversarial materials”. Incorporating derivatives of the visibility change and propagating gradient information to shape skeleton could also create “adversarial poses”. These extensions offer a set of tools for modeling real security scenarios. For instance, we can train a self-driving car classifier that can robustly recognize pedestrians under different poses, lightings, and cloth deformations.
210
+
211
+ # ACKNOWLEDGMENTS
212
+
213
+ This work is funded in part by NSERC Discovery Grants (RGPIN–2017–05235 & RGPAS–2017–507938), Connaught Funds (NR2016–17), the Canada Research Chairs Program, the Fields Institute, and gifts by Adobe Systems Inc., Autodesk Inc., MESH Inc. We thank members of Dynamic Graphics Project for feedback and draft reviews; Wenzheng Chen for photography equipments; Colin Raffel and David Duvenaud for discussions and feedback.
214
+
215
+ # REFERENCES
216
+
217
+ Tomas Akenine-Moller, Eric Haines, and Naty Hoffman. Real-time rendering. AK Peters/CRC Press, 2008.
218
+
219
+ Naveed Akhtar and Ajmal S. Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410–14430, 2018.
220
+
221
+ Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples, 2017.
222
+
223
+ Ronen Basri and David W Jacobs. Lambertian reflectance and linear subspaces. IEEE transactions on pattern analysis and machine intelligence, 25(2):218–233, 2003.
224
+
225
+ Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. ShapeNet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
226
+
227
+ Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15–26. ACM, 2017.
228
+
229
+ Wenzheng Chen, Huan Wang, Yangyan Li, Hao Su, Zhenhua Wang, Changhe Tu, Dani Lischinski, Daniel Cohen-Or, and Baoquan Chen. Synthesizing training images for boosting human 3d pose estimation. In 3D Vision (3DV), 2016 Fourth International Conference on, pp. 479–488. IEEE, 2016.
230
+
231
+ Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018.
232
+
233
+ TM Dunster. Legendre and related functions. NIST handbook of mathematical functions, pp. 351–381, 2010.
234
+
235
+ SM Ali Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, Geoffrey E Hinton, et al. Attend, infer, repeat: Fast scene understanding with generative models. In Advances in Neural Information Processing Systems, pp. 3225–3233, 2016.
236
+
237
+ Kevin Eykholt, Ivan Evtimov, Earlence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Robust Physical-World Attacks on Deep Learning Visual Classification. In Computer Vision and Pattern Recognition (CVPR), 2018.
238
+
239
+ Kyle Genova, Forrester Cole, Aaron Maschinot, Aaron Sarna, Daniel Vlasic, and William T. Freeman. Unsupervised training for 3d morphable model regression. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
240
+
241
+ Justin Gilmer, Ryan P Adams, Ian Goodfellow, David Andersen, and George E Dahl. Motivating the rules of the game for adversarial example research. arXiv preprint arXiv:1807.06732, 2018.
242
+
243
+ Ian Goodfellow. Defense against the dark arts: An overview of adversarial example security research and future research directions. arXiv preprint arXiv:1806.04169, 2018.
244
+
245
+ Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015. URL http:// arxiv.org/abs/1412.6572.
246
+
247
+ Robin Green. Spherical harmonic lighting: The gritty details. In Archives of the Game Developers Conference, volume 56, pp. 4, 2003.
248
+
249
+ Ralf Habel, Bogdan Mustata, and Michael Wimmer. Efficient spherical harmonics lighting with the preetham skylight model. In Eurographics (Short Papers), pp. 119–122, 2008.
250
+
251
+ 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.
252
+
253
+ Dan Hendrycks and Thomas G Dietterich. Benchmarking neural network robustness to common corruptions and surface variations. arXiv preprint arXiv:1807.01697, 2018.
254
+
255
+ Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pp. 2261–2269, 2017. doi: 10.1109/CVPR. 2017.243. URL https://doi.org/10.1109/CVPR.2017.243.
256
+
257
+ Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with $5 0 \mathrm { x }$ fewer parameters and< 0.5 mb model size. arXiv preprint arXiv:1602.07360, 2016.
258
+
259
+ Stephen James and Edward Johns. 3d simulation for robot arm control with deep q-learning. arXiv preprint arXiv:1609.03759, 2016.
260
+
261
+ Matthew Johnson-Roberson, Charles Barto, Rounak Mehta, Sharath Nittur Sridhar, Karl Rosaen, and Ram Vasudevan. Driving in the matrix: Can virtual worlds replace human-generated annotations for real world tasks? In Robotics and Automation (ICRA), 2017 IEEE International Conference on, pp. 746–753. IEEE, 2017.
262
+
263
+ James T Kajiya. The rendering equation. In ACM Siggraph Computer Graphics, volume 20, pp. 143–150. ACM, 1986.
264
+
265
+ Can Kanbak, Seyed Mohsen Moosavi Dezfooli, and Pascal Frossard. Geometric robustness of deep networks: analysis and improvement. Proceedings of IEEE CVPR, 2018.
266
+
267
+ Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3d mesh renderer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3907–3916, 2018.
268
+
269
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
270
+
271
+ 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.
272
+
273
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In Proc. ICLR, 2016.
274
+
275
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. 2017.
276
+
277
+ Guilin Liu, Duygu Ceylan, Ersin Yumer, Jimei Yang, and Jyh-Ming Lien. Material editing using a physically based rendering network. In 2017 IEEE International Conference on Computer Vision (ICCV), pp. 2280–2288. IEEE, 2017.
278
+
279
+ Hsueh-Ti Derek Liu, Michael Tao, and Alec Jacobson. Paparazzi: Surface editing by way of multi-view image processing. 2018.
280
+
281
+ Matthew M Loper and Michael J Black. OpenDR: An approximate differentiable renderer. In European Conference on Computer Vision, pp. 154–169. Springer, 2014.
282
+
283
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. International Conference on Learning Representations, 2018.
284
+
285
+ Gavin Miller. Efficient algorithms for local and global accessibility shading. In Proceedings of the 21st Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH ’94, pp. 319–326, New York, NY, USA, 1994. ACM. ISBN 0-89791-667-0. doi: 10.1145/192161.192244. URL http://doi.acm.org/10.1145/192161.192244.
286
+
287
+ Takeru Miyato, Shin-ichi Maeda, Shin Ishii, and Masanori Koyama. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 2018.
288
+
289
+ Seyed Mohsen Moosavi Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), number EPFL-CONF-218057, 2016.
290
+
291
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pp. 86–94, 2017.
292
+
293
+ Yair Movshovitz-Attias, Takeo Kanade, and Yaser Sheikh. How useful is photo-realistic rendering for visual learning? In European Conference on Computer Vision, pp. 202–217. Springer, 2016.
294
+
295
+ Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017.
296
+
297
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
298
+
299
+ Matt Pharr, Wenzel Jakob, and Greg Humphreys. Physically based rendering: From theory to implementation. Morgan Kaufmann, 2016.
300
+
301
+ Arcot J Preetham, Peter Shirley, and Brian Smits. A practical analytic model for daylight. In Proceedings of the 26th annual conference on Computer graphics and interactive techniques, pp. 91–100. ACM Press/Addison-Wesley Publishing Co., 1999.
302
+
303
+ Ravi Ramamoorthi and Pat Hanrahan. An efficient representation for irradiance environment maps. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 497–500. ACM, 2001.
304
+
305
+ Andras Rozsa, Ethan M Rudd, and Terrance E Boult. Adversarial diversity and hard positive generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 25–32, 2016.
306
+
307
+ Fereshteh Sadeghi and Sergey Levine. Cad2rl: Real single-image flight without a single real image. arXiv preprint arXiv:1611.04201, 2016.
308
+
309
+ Dave Shreiner and The Khronos OpenGL ARB Working Group. OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1. Addison-Wesley Professional, 7th edition, 2009. ISBN 0321552628, 9780321552624.
310
+
311
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
312
+ Peter-Pike Sloan, Ben Luna, and John Snyder. Local, deformable precomputed radiance transfer. In ACM Transactions on Graphics (TOG), volume 24, pp. 1216–1224. ACM, 2005.
313
+ Hao Su, Charles R Qi, Yangyan Li, and Leonidas J Guibas. Render for CNN: Viewpoint estimation in images using CNNs trained with rendered 3d model views. In Proc. ICCV, pp. 2686–2694, 2015.
314
+ Jiawei Su, Danilo Vasconcellos Vargas, and Sakurai Kouichi. One pixel attack for fooling deep neural networks. arXiv preprint arXiv:1710.08864, 2017.
315
+ Sining Sun, Ching-Feng Yeh, Mari Ostendorf, Mei-Yuh Hwang, and Lei Xie. Training augmentation with adversarial examples for robust speech recognition. arXiv preprint arXiv:1806.02782, 2018.
316
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. 2014.
317
+ Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
318
+ Jonathan Tremblay, Aayush Prakash, David Acuna, Mark Brophy, Varun Jampani, Cem Anil, Thang To, Eric Cameracci, Shaad Boochoon, and Stan Birchfield. Training deep networks with synthetic data: Bridging the reality gap by domain randomization. 2018.
319
+ Gül Varol, Javier Romero, Xavier Martin, Naureen Mahmood, Michael J Black, Ivan Laptev, and Cordelia Schmid. Learning from synthetic humans. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2017), 2017.
320
+ VSR Veeravasarapu, Constantin Rothkopf, and Ramesh Visvanathan. Model-driven simulations for computer vision. In Applications of Computer Vision (WACV), 2017 IEEE Winter Conference on, pp. 1063–1071. IEEE, 2017a.
321
+ VSR Veeravasarapu, Constantin A Rothkopf, and Visvanathan Ramesh. Adversarially tuned scene generation. In CVPR, pp. 6441–6449, 2017b.
322
+ Lance Williams. Casting curved shadows on curved surfaces. In ACM Siggraph Computer Graphics, volume 12, pp. 270–274. ACM, 1978.
323
+ Jiajun Wu, Joshua B Tenenbaum, and Pushmeet Kohli. Neural scene de-rendering. In Proc. CVPR, volume 2, 2017.
324
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Proceedings of the British Machine Vision Conference 2016, BMVC 2016, York, UK, September 19-22, 2016, 2016.
325
+ Xiaohui Zeng, Chenxi Liu, Weichao Qiu, Lingxi Xie, Yu-Wing Tai, Chi Keung Tang, and Alan L Yuille. Adversarial attacks beyond the image space. arXiv preprint arXiv:1711.07183, 2017.
326
+
327
+ # Supplementary Material
328
+
329
+ # A COMPARISON BETWEEN PERTURBATION SPACES
330
+
331
+ We extend our comparisons against pixel norm-balls methods (Figure 1) by visualizing the results and the generated perturbations (Figure 12). We hope this figure elucidates that our parametric perturbation are more realistic several scales of perturbations.
332
+
333
+ ![](images/b894a79a226ab1495f0f4ea6defbcb1e1be53b54c99696b7a28842a29469730e.jpg)
334
+ Figure 12: We compare our parametric perturbations (the first two columns) with pixel/color perturbations under the same $L ^ { \infty }$ pixel norm (small: 0.12, medium: 0.53, large: 0.82). As changing physical parameters corresponds to real-world phenomena, our parametric perturbation are more realistic.
335
+
336
+ # B PHYSICALLY BASED RENDERING
337
+
338
+ Physically based rendering (PBR) seeks to model the flow of light, typically the assumption that there exists a collection of light sources that generate light; a camera that receives this light; and a scene that modulates the flow light between the light sources and camera (Pharr et al., 2016). What follows is a brief discussion of the general task of rendering an image from a scene description and the approximations we take in order to make our renderer efficient yet differentiable.
339
+
340
+ Computer graphics has dedicated decades of effort into developing methods and technologies to enable PBR to synthesize of photorealistic images under a large gamut of performance requirements. Much of this work is focused around taking approximations of the cherished Rendering equation (Kajiya, 1986), which describes the propagation of light through a point in space. If we let $u _ { o }$ be the output radiance, $p$ be the point in space, $\omega _ { o }$ be the output direction, $u _ { e }$ be the emitted radiance, $u _ { i }$ be incoming radiance, $\omega _ { i }$ be the incoming angle, $f _ { r }$ be the way light be reflected off the material at that given point in space we have:
341
+
342
+ ![](images/24bf33f8388785b1f364a67a6807ac27cca24248a5695254915916f1f22e6a1b.jpg)
343
+ Figure 13: PBR models the physics of light that emitted from the light source, interact with the scene, then arrive a camera.
344
+
345
+ $$
346
+ u _ { o } ( p , \omega _ { o } ) = u _ { e } ( p , \omega _ { o } ) + \int _ { S ^ { 2 } } f _ { r } ( p , \omega _ { i } , \omega _ { o } ) u _ { i } ( p , \omega _ { i } ) ( \omega _ { i } \cdot \mathbf { n } ) d \omega _ { i } .
347
+ $$
348
+
349
+ From now on we will ignore the emission term $u _ { e }$ as it is not pertinent to our discussion. Furthermore, because the speed of light is substantially faster than the exposure time of our eyes, what we perceive is not the propagation of light at an instant, but the steady state solution to the rendering equation evaluated at every point in space. Explicitly computing this steady state is intractable for our applications and will mainly serve as a reference for which to place a plethora of assumptions and simplifications we will make for the sake of tractability. Many of these methods focus on ignoring light with nominal effects on the final rendered image vis a vis assumptions on the way light travels. For instance, light is usually assumed to have nominal interacts with air, which is described as the assumption that the space between objects is a vacuum, which constrains the interactions of light to the objects in a scene. Another common assumption is that light does not penetrate objects, which makes it difficult to render objects like milk and human $\mathrm { s k i n } ^ { \mathrm { 1 } }$ . This constrains the complexity of light propagation to the behavior of light bouncing off of object surfaces.
350
+
351
+ # B.1 LOCAL ILLUMINATION
352
+
353
+ It is common to see assumptions that limit number of bounces light is allowed.In our case we chose to assume that the steady state is sufficiently approximated by an extremely low number of iterations: one. This means that it seems sufficient to model the lighting of a point in space by the light sent to it directly by light sources. Working with such a strong simplification does, of course, lead to a few artifacts. For instance, light occluded by other objects is ignored so shadows disappear and auxiliary techniques are usually employed to evaluate shadows (Williams, 1978; Miller, 1994).
354
+
355
+ ![](images/977ee117acc76d365e2e90f830596a6e3286a31f711f8fd0ef1bb50de4bc5dbc.jpg)
356
+ Figure 14: Rasterization converts a 3D scene into pixels.
357
+
358
+ When this assumption is coupled with a camera we approach what is used in standard rasterization systems such as OPENGL (Shreiner & Group, 2009), which is what we use. These systems compute the illumination of a single pixel by determining the fragment of an object visible through that pixel and only computing the light that traverses directly from the light sources, through that fragment, to that pixel. The lighting of a fragment is therefore determined by a point and the surface normal at that point, so we write the fragment’s radiance as $R ( p , { \bf n } , \omega _ { o } ) = \dot { u } _ { o } ( { p , \omega _ { o } } )$ :
359
+
360
+ $$
361
+ R ( p , \mathbf { n } , \omega _ { o } ) = \int _ { S ^ { 2 } } f _ { r } ( p , \omega _ { i } , \omega _ { o } ) u _ { i } ( p , \omega _ { i } ) ( \omega _ { i } \cdot \mathbf { n } ) d \omega _ { i } .
362
+ $$
363
+
364
+ # B.2 LAMBERTIAN MATERIAL
365
+
366
+ Each point on an object has a model approximating the transfer of incoming light to a given output direction $f _ { r }$ , which is usually called the material. On a single object the material parameters may vary quite a bit and the correspondence between points and material parameters is usually called the texture map which forms the texture of an object. There exists a wide gamut of material models, from mirror materials that transport light from a single input direction to a single output direction, to materials that reflect light evenly in all directions, to materials liked brushed metal that reflect differently along different angles. For the sake f document we only consider diffuse materials, also called Lambertian materials, where we assume that incoming light is reflected uniformly, i.e $f _ { r }$ is a constant function with respect to angle, which we denote $f _ { r } ( p , \omega _ { i } , \omega _ { o } ) = \rho ( p )$ :
367
+
368
+ ![](images/9b793cf1efcea77b4038f9e7ea6c33b1379ee0a8f3a02f8ad9954f3f68c509b7.jpg)
369
+ Figure 15: We consider the Lambertian material (left) where lights get reflected uniformly in every direction.
370
+
371
+ $$
372
+ R ( p , { \bf n } ) = \rho ( p ) \int _ { \Omega ( { \bf n } ) } u ( p , \omega ) ( \omega \cdot { \bf n } ) d \omega .
373
+ $$
374
+
375
+ This function $\rho$ is usually called the albedo, which can be perceived as color on the surface for diffuse material, and we reduce our integration domain to the upper hemisphere $\Omega ( \mathbf { n } )$ in order to model light not bouncing through objects. Furthermore, since only the only $\omega$ and $u$ are the incoming ones we can now suppress the “incoming” in our notation and just use $\omega$ and $u$ respectively.
376
+
377
+ # B.3 ENVIRONMENT MAPPING
378
+
379
+ The illumination of static, distant objects such as the ground, the sky, or mountains do not change in any noticeable fashion when objects in a scene are moved around, so $u$ can be written entirely in terms of $\omega$ , $u ( p , \omega ) = u ( \omega )$ . If their illumination forms a constant it seems prudent to pre-compute or cache their contributions to the illumination of a scene. This is what is usually called environment mapping and they fit in the rendering equation as a representation for the total lighting of a scene, i.e the total incoming radiance $u _ { i }$ . Because the environment is distant, it is common to also assume that the position of the object receiving light from an environment map does not matter so this simplifies $u _ { i }$ to be independent of position:
380
+
381
+ $$
382
+ R ( p , \mathbf { n } ) = \rho ( p ) \int _ { \Omega ( \mathbf { n } ) } u ( \omega ) \left( { \boldsymbol { \omega } } \cdot \mathbf { n } \right) d \omega .
383
+ $$
384
+
385
+ # B.4 SPHERICAL HARMONICS
386
+
387
+ Despite all of our simplifications, the inner integral is still a fairly generic function over $S ^ { 2 }$ . Many techniques for numerically integrating the rendering equation have emerged in the graphics community and we choose one which enables us to perform pre-computation and select a desired spectral accuracy: spherical harmonics. Spherical harmonics are a basis on $S ^ { 2 }$ so, given a spherical harmonics expansion of the integrand, the evaluation of the above integral can be reduced to a weighted product of coefficients. This particular basis is chosen because it acts as a sort of Fourier basis for functions on the sphere and so the bases are each associated with a frequency, which leads to a convenient multi-resolution structure. In fact, the rendering of diffuse objects under distant lighting can be $9 9 \%$ approximated by just the first few spherical harmonics bases (Ramamoorthi & Hanrahan, 2001).
388
+
389
+ We will only need to note that the spherical harmonics bases $Y _ { l } ^ { m }$ are denoted with the subscript with $l$ as the frequency and that there are $2 l + 1$ functions per frequency, denoted by superscripts $m$ between $- l$ to $l$ inclusively. For further details on them please take a glance at Appendix C.
390
+
391
+ If we approximate a function $f$ in terms of spherical harmonics coefficients $\begin{array} { r } { f \approx \sum _ { l m } f _ { l , m } Y _ { l } ^ { m } } \end{array}$ the integral can be precomputed as
392
+
393
+ $$
394
+ \int _ { S ^ { 2 } } { f } \approx \int _ { S ^ { 2 } } \sum _ { l m } f _ { l , m } Y _ { l } ^ { m } = \sum _ { l m } f _ { l , m } \int _ { S ^ { 2 } } Y _ { l } ^ { m } ,
395
+ $$
396
+
397
+ Thus we have defined a reduced rendering equation that can be efficiently evaluated using OPENGL while maintaining differentiability with respect to lighting and vertices. In the following appendix we will derive the derivatives necessary to implement our system.
398
+
399
+ # C DIFFERENTIABLE RENDERER
400
+
401
+ Rendering computes an image of a 3D shape given lighting conditions and the prescribed material properties on the surface of the shape. Our differentiable renderer assumes Lambertian reflectance, distant light sources, local illumination, and piece-wise constant textures. We will discuss how to explicitly compute the derivatives used in the main body of this text. Here we give a detailed discussion about spherical harmonics and their advantages.
402
+
403
+ # C.1 SPHERICAL HARMONICS
404
+
405
+ Spherical harmonics are usually defined in terms of the Legendre polynomials, which are a class of orthogonal polynomials defined by the recurrence relation
406
+
407
+ $$
408
+ \begin{array} { c } { { P _ { 0 } = 1 } } \\ { { P _ { 1 } = x } } \\ { { ( l + 1 ) P _ { l + 1 } ( x ) = ( 2 l + 1 ) x P _ { l } ( x ) - l P _ { l - 1 } ( x ) . } } \end{array}
409
+ $$
410
+
411
+ The associated Legendre polynomials are a generalization of the Legendre polynomials and can be fully defined by the relations
412
+
413
+ $$
414
+ \begin{array} { c } { { P _ { l } ^ { 0 } = P _ { l } } } \\ { { \ } } \\ { { ( l - m + 1 ) P _ { l + 1 } ^ { m } ( x ) = ( 2 l + 1 ) x P _ { l } ^ { m } ( x ) - ( l + m ) P _ { l - 1 } ^ { m } ( x ) } } \\ { { 2 m x P _ { l } ^ { m } ( x ) = - \sqrt { 1 - x ^ { 2 } } \left[ P _ { l } ^ { m + 1 } ( x ) + ( l + m ) ( l - m + 1 ) P _ { l } ^ { m - 1 } ( x ) \right] . } } \end{array}
415
+ $$
416
+
417
+ Using the associated Legendre polynomials $P _ { l } ^ { m }$ we can define the spherical harmonics basis as
418
+
419
+ $$
420
+ Y _ { l } ^ { m } ( \theta , \phi ) = K _ { l } ^ { m } \left\{ \begin{array} { l l } { ( - 1 ) ^ { m } \sqrt { 2 } P _ { l } ^ { - m } ( \cos \theta ) \sin ( - m \phi ) } & { \quad m < 0 } \\ { ( - 1 ) ^ { m } \sqrt { 2 } P _ { l } ^ { m } ( \cos \theta ) \cos ( m \phi ) } & { \quad m > 0 \ . } \\ { P _ { l } ^ { 0 } ( \cos \theta ) } & { \quad m = 0 } \end{array} \right.
421
+ $$
422
+
423
+ $$
424
+ \mathrm { w h e r e } K _ { l } ^ { m } = \sqrt { \frac { ( 2 l + 1 ) ( l - | m | ) ! } { 4 \pi ( l + | m | ) ! } } .
425
+ $$
426
+
427
+ We will use the fact that the associated Legendre polynomials correspond to the spherical harmonics bases that are rotationally symmetric along the $z$ axis $( m = 0$ ).
428
+
429
+ In order to incorporate spherical harmonics into Equation 8, we change the integral domain from the upper hemisphere $\Omega ( \mathbf { n } )$ back to $S ^ { 2 }$ via a max operation
430
+
431
+ $$
432
+ \begin{array} { l } { \displaystyle R ( p , { \bf n } ) = \rho ( p ) \int _ { \Omega ( { \bf n } ) } u ( \omega ) ( \omega \cdot { \bf n } ) d \omega } \\ { \displaystyle \quad = \rho ( p ) \int _ { S ^ { 2 } } u ( \omega ) \operatorname* { m a x } ( \omega \cdot { \bf n } , 0 ) d \omega . } \end{array}
433
+ $$
434
+
435
+ We see that the integral is comprised of two components: a lighting component $u ( \omega )$ and a component that depends on the normal $\operatorname* { m a x } ( \omega \cdot \mathbf n , 0 )$ . The strategy is to pre-compute the two components by projecting onto spherical harmonics, and evaluating the integral via a dot product at runtime, as we will now derive.
436
+
437
+ # C.2 LIGHTING IN SPHERICAL HARMONICS
438
+
439
+ Approximating the lighting component $u ( \omega )$ in Equation 19 using spherical harmonics $Y _ { l } ^ { m }$ up to band $n$ can be written as
440
+
441
+ $$
442
+ u ( \omega ) \approx \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } Y _ { l } ^ { m } ( \omega ) ,
443
+ $$
444
+
445
+ where $U _ { l , m } \in \mathbb { R }$ are coefficients. By using the orthogonality of spherical harmonics we can use evaluate these coefficients as an integral between $u ( \omega )$ and $Y _ { l } ^ { m } ( \omega )$
446
+
447
+ $$
448
+ U _ { l , m } = \langle u , Y _ { l } ^ { m } \rangle _ { S ^ { 2 } } = \int _ { S ^ { 2 } } u ( \omega ) Y _ { l } ^ { m } ( \omega ) d \omega ,
449
+ $$
450
+
451
+ which can be evaluated via quadrature.
452
+
453
+ # C.3 CLAMPED COSINE IN SPHERICAL HARMONICS
454
+
455
+ So far, we have projected the lighting term $u ( \omega )$ onto the spherical harmonics basis. To complete evaluating Equation 19 we also need to approximate the second component $\operatorname* { m a x } ( \omega \cdot \mathbf { n } , 0 )$ in spherical
456
+
457
+ harmonics. This is the so-called the clamped cosine function.
458
+
459
+ $$
460
+ g ( \omega , { \bf n } ) = \mathrm { m a x } ( \omega \cdot { \bf n } , 0 ) = \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } G _ { l , m } ( { \bf n } ) Y _ { l } ^ { m } ( \omega ) ,
461
+ $$
462
+
463
+ where $G _ { l , m } ( { \mathbf n } ) \in \mathbb { R }$ can be computed by projecting $g ( \omega , \mathbf { n } )$ onto $Y _ { l } ^ { m } ( \omega )$
464
+
465
+ $$
466
+ G _ { l , m } ( \mathbf { n } ) = \int _ { S ^ { 2 } } \mathrm { m a x } ( \omega \cdot \mathbf { n } , 0 ) Y _ { l } ^ { m } ( \omega ) d \omega .
467
+ $$
468
+
469
+ Unfortunately, this formulation turns out to be tricky to compute. Instead, the common practice is to analytically compute the coefficients for unit $z$ direction $\tilde { G } _ { l , m } = G _ { l , m } ( \mathbf { n } _ { z } ) = G _ { l , m } ( [ 0 , 0 , 1 ] ^ { \boldsymbol { \mathsf { T } } } )$ and evaluate the coefficients for different normals $G _ { l , m } ( \mathbf { n } )$ by rotating $\tilde { G } _ { l , m }$ . This rotation, $\tilde { G } _ { l , m }$ , can be computed analytically:
470
+
471
+ $$
472
+ \begin{array} { r l } & { \tilde { G } _ { l , m } = \displaystyle \int _ { S ^ { 2 } } \operatorname* { m a x } ( \omega \cdot \mathbf { n } _ { z } , 0 ) Y _ { l } ^ { m } ( \omega ) d \omega } \\ & { \quad \quad = \displaystyle \int _ { 0 } ^ { 2 \pi } \int _ { 0 } ^ { \pi } \operatorname* { m a x } ( [ \sin \theta \cos \phi , \sin \theta \sin \phi , \cos \theta ] [ 0 , 0 , 1 ] ^ { \tau } , 0 ) Y _ { l } ^ { m } ( \theta , \phi ) \sin \theta d \theta d \phi } \\ & { \quad \quad = \displaystyle \int _ { 0 } ^ { 2 \pi } \int _ { 0 } ^ { \pi } \operatorname* { m a x } ( \cos \theta , 0 ) Y _ { l } ^ { m } ( \theta , \phi ) \sin \theta d \theta d \phi } \\ & { \quad \quad = \displaystyle \int _ { 0 } ^ { 2 \pi } \int _ { 0 } ^ { \pi / 2 } \cos \theta Y _ { l } ^ { m } ( \theta , \phi ) \sin \theta d \theta d \phi . } \end{array}
473
+ $$
474
+
475
+ In fact, because $\operatorname* { m a x } ( \omega \cdot \mathbf { n } _ { z } , 0 )$ is rotationally symmetric around the $z$ -axis, its projection onto $Y _ { l } ^ { m } ( \omega )$ will have many zeros except the rotationally symmetric spherical harmonics $\bar { Y } _ { l } ^ { 0 }$ . In other words, $\tilde { G } _ { l , m }$ is non-zero only when $m = 0$ . So we can simplify Equation 20 to
476
+
477
+ $$
478
+ \tilde { G } _ { l } = \tilde { G } _ { l , 0 } = 2 \pi \int _ { 0 } ^ { \pi / 2 } \cos \theta Y _ { l } ^ { 0 } ( \theta ) \sin \theta d \theta .
479
+ $$
480
+
481
+ The evaluation of this integral can be found in Appendix A in (Basri & Jacobs, 2003). We provide this here as well:
482
+
483
+ $$
484
+ \tilde { G } _ { l } = \left\{ \begin{array} { l l } { \frac { \sqrt { \pi } } { 2 } } & { l = 0 } \\ { \sqrt { \frac { \pi } { 3 } } } & { l = 1 } \\ { ( - 1 ) ^ { \frac { l } { 2 } + 1 } \frac { ( l - 2 ) ! \sqrt { ( 2 l + 1 ) \pi } } { 2 ^ { l } ( \frac { l } { 2 } - 1 ) ! ( \frac { l } { 2 } + 1 ) ! } } & { l \geq 2 , \mathrm { e v e n } } \\ { 0 } & { l \geq 2 , \mathrm { o d d } } \end{array} \right. .
485
+ $$
486
+
487
+ The spherical harmonics coefficients $G _ { l , m } ( \mathbf { n } )$ of the clamped cosine function $g ( \omega , \mathbf { n } )$ can be computed by rotating $\tilde { G } _ { l }$ (Sloan et al., 2005) using this formula
488
+
489
+ $$
490
+ G _ { l , m } ( \mathbf { n } ) = \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } Y _ { l } ^ { m } ( \mathbf { n } ) .
491
+ $$
492
+
493
+ So far we have projected the two terms in Equation 19 into the spherical harmonics basis. Orthogonality of spherical harmonics makes the evaluation of this integral straightforward:
494
+
495
+ $$
496
+ \begin{array} { l } { \displaystyle \int _ { { \mathcal { S } } ^ { 2 } } u ( \boldsymbol { \omega } ) \operatorname* { m a x } ( \boldsymbol { \omega } \cdot { \bf n } , 0 ) d \boldsymbol { \omega } = \int _ { { \mathcal { S } } ^ { 2 } } \left[ \sum _ { l , m } U _ { l , m } Y _ { l } ^ { m } ( \boldsymbol { \omega } ) \right] \left[ \sum _ { j , k } G _ { j , k } ( { \bf n } ) Y _ { j } ^ { k } ( \boldsymbol { \omega } ) \right] d \boldsymbol { \omega } } \\ { \displaystyle = \sum _ { j , k , l , m } U _ { l , m } G _ { j , k } ( { \bf n } ) \delta _ { j } ^ { l } \delta _ { k } ^ { m } } \\ { \displaystyle = \sum _ { l , m } U _ { l , m } G _ { l , m } ( { \bf n } ) . } \end{array}
497
+ $$
498
+
499
+ This, in conjunction with Equation 21allows us to derive the rendering equation using spherical harmonics lighting for Lambertian objects:
500
+
501
+ $$
502
+ R ( { \boldsymbol { p } } , \mathbf { n } ) = \rho ( { \boldsymbol { p } } ) \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } { \sqrt { \frac { 4 \pi } { 2 l + 1 } } } { \tilde { G } } _ { l } Y _ { l } ^ { m } ( \mathbf { n } ) .
503
+ $$
504
+
505
+ So far we have only considered the shading of a specific point $p$ with surface normal $\mathbf { n }$ . If we consider the rendered image $I$ given a shape $V$ , lighting $U$ , and camera parameters $\eta$ , the image $I$ is the evaluation of the rendering equation $R$ of each point in $V$ visible through each pixel in the image. This pixel to point mapping is determined by $\eta$ . Therefore, we can write $I$ as
506
+
507
+ $$
508
+ I ( V , U , \eta ) = \rho ( V , \eta ) \underbrace { \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } Y _ { l } ^ { m } ( N ( V ) ) } _ { F ( V , U ) } ,
509
+ $$
510
+
511
+ where $N ( V )$ is the surface normal. We exploit the notation and use $\rho ( V , \eta )$ to represent the texture of $V$ mapped to the image space through $\eta$ .
512
+
513
+ # C.4 LIGHTING AND TEXTURE DERIVATIVES
514
+
515
+ For our applications we must differentiate Equation 25 with respect to lighting and material parameters. The derivative with respect to the lighting coefficients $U$ can be obtained by
516
+
517
+ $$
518
+ \begin{array} { c } { \displaystyle \frac { \partial I } { \partial U } = \frac { \partial \rho } { \partial U } F + \rho \frac { \partial F } { \partial U } } \\ { = 0 + \rho \displaystyle \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } \frac { \partial F } { \partial U _ { l , m } } . } \end{array}
519
+ $$
520
+
521
+ This is the Jacobian matrix that maps from spherical harmonics coefficients to pixels. The term $\partial F / \partial U _ { l , m }$ can then be computed as
522
+
523
+ $$
524
+ \frac { \partial F } { \partial U _ { l , m } } = \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } Y _ { l } ^ { m } ( N ( V ) ) .
525
+ $$
526
+
527
+ The derivative with respect to texture is defined by
528
+
529
+ $$
530
+ \frac { \partial I } { \partial \rho } = \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } Y _ { l } ^ { m } ( N ( V ) ) .
531
+ $$
532
+
533
+ Note that we assume texture variations are piece-wise constant with respect to our triangle mesh discretization.
534
+
535
+ # D DIFFERENTIATING SKYLIGHT PARAMETERS
536
+
537
+ To model possible outdoor daylight conditions, we use the analytical Preetham skylight model (Preetham et al., 1999). This model is calibrated by atmospheric data and parameterized by two intuitive parameters: turbidity $\tau$ , which describes the cloudiness of the atmosphere, and two polar angles $\theta _ { s } \in [ 0 , \pi / 2 ] , \phi _ { s } \in [ 0 , 2 \pi ]$ , which are encode the direction of the sun. Note that $\theta _ { s } , \phi _ { s }$ are not the polar angles $\theta , \phi$ for representing incoming light direction $\omega$ in $u ( \omega )$ . The spherical harmonics representation of the Preetham skylight is presented in (Habel et al., 2008) as
538
+
539
+ $$
540
+ u ( \omega ) = \sum _ { l = 0 } ^ { 6 } \sum _ { m = - l } ^ { l } U _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau ) Y _ { l } ^ { m } ( \omega ) .
541
+ $$
542
+
543
+ This is derived by first performing a non-linear least squares fit to write $U _ { l , m }$ as a polynomial of $\theta _ { s }$ and $\tau$ which lets them solve for $\tilde { U } _ { l , m } ( \theta _ { s } , \tau ) = U _ { l , m } ( \theta _ { s } , 0 , \tau )$
544
+
545
+ $$
546
+ \tilde { U } _ { l , m } ( \theta _ { s } , \tau ) = \sum _ { i = 0 } ^ { 1 3 } \sum _ { j = 0 } ^ { 7 } ( p _ { l , m } ) _ { i , j } \theta _ { s } ^ { i } \tau ^ { j } ,
547
+ $$
548
+
549
+ where $( p _ { l , m } ) _ { i , j }$ are scalar coefficients, then $U _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau )$ can be computed by applying a spherical harmonics rotation with $\phi _ { s }$ using
550
+
551
+ $$
552
+ U _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau ) = \tilde { U } _ { l , m } ( \theta _ { s } , \tau ) \cos ( m \phi _ { s } ) + \tilde { U } _ { l , - m } ( \theta _ { s } , \tau ) \sin ( m \phi _ { s } ) .
553
+ $$
554
+
555
+ We refer the reader to (Preetham et al., 1999) for more detail. For the purposes of this article we just need the above form to compute the derivatives.
556
+
557
+ # D.1 DERIVATIVES
558
+
559
+ The derivatives of the lighting with respect to the skylight parameters $( \theta _ { s } , \phi _ { s } , \tau )$ are
560
+
561
+ $$
562
+ \begin{array} { l } { \displaystyle \frac { \partial \tilde { U } _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau ) } { \partial \phi _ { s } } = - m \tilde { U } _ { l , m } ( \theta _ { s } , \tau ) \sin ( m \phi _ { s } ) + m \tilde { U } _ { l , - m } ( \theta _ { s } , \tau ) \cos ( m \phi _ { s } ) } \\ { \displaystyle \frac { \partial \tilde { U } _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau ) } { \partial \theta _ { s } } = \frac { \partial \tilde { U } _ { l , m } ( \theta _ { s } , \tau ) \cos ( m \phi _ { s } ) + \tilde { U } _ { l , - m } ( \theta _ { s } , \tau ) \sin ( m \phi _ { s } ) } { \partial \theta _ { s } } } \\ { \displaystyle \qquad = \sum _ { i j } i \theta _ { s } ^ { i - 1 } \tau ^ { j } ( p _ { l , m } ) _ { i , j } \cos ( m \phi _ { s } ) + \sum _ { i j } i \theta _ { s } ^ { i - 1 } ( p _ { l , - m } ) _ { i , j } \sin ( m \phi _ { s } ) } \\ { \displaystyle \frac { \partial \tilde { U } _ { l , m } ( \theta _ { s } , \phi _ { s } , \tau ) } { \partial \tau } = \sum _ { i j } j \theta _ { s } ^ { i } \tau ^ { j - 1 } ( p _ { l , m } ) _ { i , j } \cos ( m \phi _ { s } ) + \sum _ { i j } j \theta _ { s } ^ { i } \tau ^ { j - 1 } ( p _ { l , - m } ) _ { i , j } \sin ( m \phi _ { s } ) } \end{array}
563
+ $$
564
+
565
+ # E DERIVATIVES OF SURFACE NORMALS
566
+
567
+ Taking the derivative of the rendered image $I$ with respect to surface normals $N$ is an essential task for computing the derivative of $I$ with respect to the geometry $V$ . Specifically, the derivative of the rendering equation Equation 25 with respect to $V$ is
568
+
569
+ $$
570
+ \begin{array} { c } { \displaystyle { \frac { \partial I } { \partial V } = \frac { \partial \rho } { \partial V } F + \rho \frac { \partial F } { \partial V } } } \\ { \displaystyle { = \frac { \partial \rho } { \partial V } F + \rho \frac { \partial F } { \partial N } \frac { \partial N } { \partial V } } } \end{array}
571
+ $$
572
+
573
+ We assume the texture variations are piece-wise constant with respect to our triangle mesh discretization and omit the first term $\partial \rho / \partial V$ as the magnitude is zero. Computing ${ \partial \bar { N _ { \big / { \partial V } } } }$ is provided in Section 3.2. Computing $\partial F / \partial N _ { i }$ on face $i$ is
574
+
575
+ $$
576
+ \frac { \partial F } { \partial N _ { i } } = \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } \frac { \partial Y _ { l } ^ { m } } { \partial N _ { i } } ,
577
+ $$
578
+
579
+ where the ${ \partial Y _ { l } ^ { m } } / { \partial N _ { i } }$ is the derivative of the spherical harmonics with respect to the face normal $N _ { i }$ .
580
+
581
+ To begin this derivation recall the relationship between a unit normal vector $\mathbf { n } = ( n _ { x } , n _ { y } , n _ { z } )$ and its corresponding polar angles $\theta , \phi$
582
+
583
+ $$
584
+ \theta = \cos ^ { - 1 } \bigg ( \frac { n _ { z } } { \sqrt { n _ { x } ^ { 2 } + n _ { y } ^ { 2 } + n _ { z } ^ { 2 } } } \bigg ) \qquad \phi = \tan ^ { - 1 } \bigg ( \frac { n _ { y } } { n _ { x } } \bigg ) ,
585
+ $$
586
+
587
+ we can compute the derivative of spherical harmonics with respect to the normal vector through
588
+
589
+ $$
590
+ \begin{array} { r l r } { \frac { \partial Y _ { i } ^ { n } ( t , \theta , \phi ) } { \partial \mathbf { n } } } & { } & { = 0 } \\ & { } & { \left[ ( 1 - 1 ) ^ { n } \sqrt { 2 } \left[ \frac { \partial P _ { i } ^ { n - 1 } ( c \times \theta ) \tilde { \theta } } { \partial \theta } \frac { \partial \theta } { \partial \mathbf { n } } \sin ( - m \phi ) + P _ { i } ^ { - n } ( c \times \theta ) \frac { \partial \sin ( - m \phi ) } { \partial \phi } \frac { \partial \phi } { \partial \mathbf { n } } \right] \right. \qquad m < 0 } \\ & { } & { = K _ { i } ^ { n } \left( \cdots \right) ^ { n } \sqrt { 2 } \left[ \frac { \partial P _ { i } ^ { n } ( c \times \theta ) } { \partial \theta } \frac { \partial \theta } { \partial \mathbf { n } } \cos ( m \phi ) + P _ { i } ^ { n } ( c \times ( \cos \theta ) \frac { \partial \cos ( \theta ) \phi } { \partial \phi } ) \frac { \partial \phi } { \partial \mathbf { n } } \right] \qquad m > 0 } \\ & { } & { \left. \qquad \left[ \frac { \partial P _ { i } ^ { n } ( c \times \theta ) } { \partial \theta } \frac { \partial \theta } { \partial \mathbf { n } } \right. \qquad \partial \qquad \left. \partial \qquad \sin ( - m \phi ) - m P _ { i } ^ { n - 1 } ( c \times \theta ) \cos ( - m \phi ) \frac { \partial \theta } { \partial \mathbf { n } } \right] \right. \qquad m = 0 } \\ & { } & { \left. \qquad \left( \cdots \right) ^ { n } \sqrt { 2 } \left[ \frac { \partial P _ { i } ^ { n - 1 } ( c \times \theta ) \tilde { \theta } } { \partial \theta } \frac { \partial \theta } { \partial \mathbf { n } } \sin ( - m \phi ) - m P _ { i } ^ { n - 1 } ( c \times \theta ) \cos ( - m \phi ) \frac { \partial \theta } { \partial \mathbf { n } } \right] \right. \qquad m < 0 } \\ & { } & { = K _ { i } ^ { n } \left( \cdots \right) ^ { n } \sqrt { 2 } \left[ \frac { \partial P _ { i } ^ { n } ( c \times \theta ) } { \partial \theta } \frac { \partial \theta } { \partial \mathbf { n } } \cos ( m \phi ) - m P _ { i } ^ { n } ( c \times \theta ) \sin ( m \phi ) \frac { \partial \theta } { \partial \mathbf { n } } \right] \qquad m > 0 } \\ & { } & \qquad \left. \partial P _ { i } ^ { n } ( c \times \theta ) \right) \frac \end{array}
591
+ $$
592
+
593
+ Note that the derivative of the associated Legendre polynomials $P _ { l } ^ { m } ( \cos \theta )$ can be computed by applying the recurrence formula Dunster (2010)
594
+
595
+ $$
596
+ \begin{array} { r l } & { \frac { \partial P _ { l } ^ { m } ( \cos \theta ) } { \partial \theta } = \frac { - \cos \theta ( l + 1 ) P _ { l } ^ { m } ( \cos \theta ) + ( l - m + 1 ) P _ { l + 1 } ^ { m } ( \cos \theta ) } { \cos ^ { 2 } \theta - 1 } \times ( - \sin \theta ) } \\ & { \qquad = \frac { - \cos \theta ( l + 1 ) P _ { l } ^ { m } ( \cos \theta ) + ( l - m + 1 ) P _ { l + 1 } ^ { m } ( \cos \theta ) } { \sin \theta } . } \end{array}
597
+ $$
598
+
599
+ Thus the derivatives of polar angles $( \theta , \phi )$ with respect to surface normals $\mathbf { n } = [ n _ { x } , n _ { y } , n _ { z } ]$ are
600
+
601
+ $$
602
+ \begin{array} { l } { \displaystyle \frac { \partial \theta } { \partial \mathbf { n } } = \Big [ \frac { \partial \theta } { \partial n _ { x } } , \frac { \partial \theta } { \partial n _ { y } } , \frac { \partial \theta } { \partial n _ { z } } \Big ] = \frac { \big [ n _ { x } n _ { z } , n _ { y } n _ { z } , - ( n _ { x } ^ { 2 } + n _ { y } ^ { 2 } ) \big ] } { ( n _ { x } ^ { 2 } + n _ { y } ^ { 2 } + n _ { z } ^ { 2 } ) \sqrt { n _ { x } ^ { 2 } + n _ { y } ^ { 2 } } } , } \\ { \displaystyle \frac { \partial \phi } { \partial \mathbf { n } } = \Big [ \frac { \partial \phi } { \partial n _ { x } } , \frac { \partial \phi } { \partial n _ { y } } , \frac { \partial \phi } { \partial n _ { z } } \Big ] = \Big [ \frac { - n _ { y } } { n _ { x } ^ { 2 } + n _ { y } ^ { 2 } } , \frac { n _ { x } } { n _ { x } ^ { 2 } + n _ { y } ^ { 2 } } , 0 \Big ] . } \end{array}
603
+ $$
604
+
605
+ In summary, the results of Equation 37, Equation 38, Equation 39, and Equation 40 tell us how to compute ${ \partial { Y _ { l } } ^ { m } } / { \partial { N _ { i } } }$ . Then the derivative of the pixel $j$ with respect to vertex $p$ which belongs to face $i$ can be computed as
606
+
607
+ $$
608
+ \begin{array} { r l r } { { \frac { \partial I _ { j } } { \partial V _ { p } } \approx \rho _ { j } \frac { \partial F } { \partial N _ { i } } \frac { \partial N _ { i } } { \partial V _ { p } } } } \\ & { } & { = \rho _ { j } \sum _ { l = 0 } ^ { n } \sum _ { m = - l } ^ { l } U _ { l , m } \sqrt { \frac { 4 \pi } { 2 l + 1 } } \tilde { G } _ { l } \frac { \partial Y _ { l } ^ { m } ( \theta , \phi ) } { \partial N _ { i } } \frac { \partial N _ { i } } { \partial V _ { p } } . } \end{array}
609
+ $$
610
+
611
+ # F ADVERSARIAL TRAINING IMPLEMENTATION DETAIL
612
+
613
+ Our adversarial training is based on the basic idea of injecting adversarial examples into the training set at each step and continuously updating the adversaries according to the current model parameters (Goodfellow et al., 2015; Kurakin et al., 2017). Our experiments inject 100 adversarial lighting examples to the CIFAR-100 data $( \approx 0 . 1 7 \%$ of the training set) and keep updating these adversaries at each epoch.
614
+
615
+ We compute the adversarial lighting examples using the orange models collected from cgtrader.com and turbosquid.com. We uses five gray-scale background colors with intensities 0.0, 0.25, 0.5, 0.75, 1.0 to mimic images in the CIFAR-100 which contains many pure color backgrounds. Our orthographic cameras are placed at polar angle $\theta = \pi / 3$ with 10 uniformly sampled azimuthal angles ranging from $\phi = 0$ to $2 \pi$ . Our initial spherical harmonics lighting is the same as other experiments, using the real-world lighting data provided in (Ramamoorthi & Hanrahan, 2001). Our stepsize for computing adversaries is 0.05 along the direction of lighting gradients. We run our adversarial lighting iterations until fooling the network or reaching the maximum 30 iterations to avoid too extreme lighting conditions, such as turning the lights off.
616
+
617
+ ![](images/66de3929cf3e0142697900fd6687c94f96fb8dfdc7aa9d747c7bb4970e77138b.jpg)
618
+ Figure 16: This figure visualizes the images of oranges from CIFAR-100, random lighting, and adversarial lighting. In early training stage, small changes in lighting are sufficient to construct adversarial examples. In late training stage, we require more dramatic changes as the model is becoming robust to differ lightings.
619
+
620
+ Our random lighting examples are constructed at each epoch by randomly perturb the lighting coefficients ranging from -0.5 to 0.5.
621
+
622
+ When training the 16-layers WideResNet (Zagoruyko & Komodakis, 2016) with wide-factor 4, we use batch size 128, learning rate 0.125, dropout rate 0.3, and the standard cross entropy loss. We implement the training using PYTORCH (Paszke et al., 2017), with the SGD optimizer and set the Nesterov momentum 0.9, weight decay 5e-4. We train the model for 150 epochs and use the one with best accuracy on the validation set. Figure 16 shows examples of our adversarial lights at different training stages. In the early stages, the model is not robust to different lighting conditions, thus small lighting perturbations are sufficient to fool the model. In the late stages, the network becomes more robust to different lightings. Thus it requires dramatic changes to fool a model or even fail to fool the model within 30 iterations.
623
+
624
+ # G EVALUATE RENDERING QUALITY
625
+
626
+ We evaluated our rendering quality by whether our rendered images are recognizable by models trained on real photographs. Although large 3D shape datasets, such as ShapeNet (Chang et al., 2015), are available, they do not have have geometries or textures at the resolutions necessary to create realistic renderings. We collected 75 high-quality textured 3D shapes from cgtrader.com and turbosquid.com to evaluate our rendering quality. We augmented the shapes by changing the field of view, backgrounds, and viewing directions, then keep the configurations that were correctly classified by a pre-trained ResNet-101 on ImageNet. Specifically, we place the centroid, calculated as the weighted average of the mesh vertices where the weights are the vertex areas, at the origin and normalize shapes to range $^ { - 1 }$ to 1; the field of view is chosen to be 2 and 3 in the same unit with the normalized shape; background images include plain colors and real photos, which have small influence on model predictions; viewing directions are chosen to be 60 degree zenith and uniformly sampled 16 views from 0 to $2 \pi$ azimuthal angle. In Figure 17, we show that the histogram of model confidence on the correct labels over 10,000 correctly classified rendered images from our differentiable renderer. The confidence is computed using softmax function and the results show that our rendering quality is faithful enough to be recognized by models trained on natural images.
627
+
628
+ ![](images/2cd7e96dd9c8c33e64047cfcbfe5addec9c0509848fe8ec576684c235d66399d.jpg)
629
+ Figure 17: Prediction confidence on rendered images, showing our rendering quality is faithful enough to be confidently recognized by ImageNet models.
parse/train/SJl2niR9KQ/SJl2niR9KQ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJl2niR9KQ/SJl2niR9KQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJl2niR9KQ/SJl2niR9KQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkHkeixAW/SkHkeixAW.md ADDED
@@ -0,0 +1,506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Regularization for Deep Learning: A Taxonomy
2
+
3
+ Anonymous authors
4
+
5
+ Paper under double-blind review
6
+
7
+ # Abstract
8
+
9
+ Regularization is one of the crucial ingredients of deep learning, yet the term regularization has various definitions, and regularization methods are often studied separately from each other. In our work we present a novel, systematic, unifying taxonomy to categorize existing methods. We distinguish methods that affect data, network architectures, error terms, regularization terms, and optimization procedures. We identify the atomic building blocks of existing methods, and decouple the assumptions they enforce from the mathematical tools they rely on. We do not provide all details about the listed methods; instead, we present an overview of how the methods can be sorted into meaningful categories and sub-categories. This helps revealing links and fundamental similarities between them. Finally, we include practical recommendations both for users and for developers of new regularization methods.
10
+
11
+ # 1 Introduction
12
+
13
+ Regularization is one of the key elements of machine learning, particularly of deep learning (Goodfellow et al., 2016), allowing to generalize well to unseen data even when training on a finite training set or with an imperfect optimization procedure. In the traditional sense of optimization and also in older neural networks literature, the term “regularization” is reserved solely for a penalty term in the loss function (Bishop, 1995a). Recently, the term has adopted a broader meaning: Goodfellow et al. (2016, Chap. 5) loosely define it as “any modification we make to a learning algorithm that is intended to reduce its test error but not its training error”. We find this definition slightly restrictive and present our working definition of regularization, since many techniques considered as regularization do reduce the training error (e.g. weight decay in AlexNet (Krizhevsky et al., 2012)).
14
+
15
+ Definition 1. Regularization is any supplementary technique that aims at making the model generalize better, i.e. produce better results on the test set.
16
+
17
+ This can include various properties of the loss function, the loss optimization algorithm, or other techniques. Note that this definition is more in line with machine learning literature than with inverse problems literature, the latter using a more restrictive definition.
18
+
19
+ In this work, we create a novel, systematic, unifying taxonomy of regularization methods for deep learning. We analyze existing methods and identify their atomic building blocks. This leads to decoupling of two important concepts: Which assumptions the methods rely on (and try to enforce), and which mathematical and algorithmic tools they use. In turn, this enables better understanding of existing methods and speeds up development of new ones: The researchers can focus either on finding new, better ways of enforcing existing assumptions, or focus on discovery of new assumptions that can be enforced in some existing way.
20
+
21
+ Before we proceed to the presentation of our taxonomy, we revisit some basic machine learning theory in Section 2. This will provide a justification of the top level of the taxonomy. In Sections 3–7, we continue with a finer division of the individual classes of the regularization techniques, aiming at separating as many clearly separable concepts as possible and isolating atomic building blocks of individual methods. Finally, in Section 8 we present our practical recommendations for using existing methods and designing new methods. We are aware that the many research works discussed in this taxonomy cannot be summarized in a single sentence. For the sake of structuring the multitude of papers, we decided to merely describe a certain subset of their properties according to the focus of our taxonomy.
22
+
23
+ # 2 Theoretical framework
24
+
25
+ The central task of our interest is model fitting: finding a function $f$ that can well approximate a desired mapping from inputs $x$ to desired outputs $f ( x )$ . A given input $x$ can have an associated target $t$ which dictates the desired output $f ( x )$ directly (or in some applications indirectly (Ulyanov et al., 2016; Johnson et al., 2016)). A typical example of having available targets $t$ is supervised learning. Data samples $( x , t )$ then follow a ground truth probability distribution $P$ .
26
+
27
+ In many applications, neural networks have proven to be a good family of functions to choose $f$ from. A neural network is a function $f _ { w } : x \mapsto y$ with trainable weights $w \in W$ . Training the network means finding a weight configuration $w ^ { * }$ , which is a result of performing a minimization procedure of a loss function $\mathcal { L } : W \to \mathbb { R }$ as follows:
28
+
29
+ $$
30
+ w ^ { * } = \mathrm { m i n i m i z e } ~ { \mathcal { L } } ( w ) .
31
+ $$
32
+
33
+ Usually the loss function takes the form of expected risk :
34
+
35
+ $$
36
+ \mathcal { L } = \mathbb { E } _ { ( x , t ) \sim P } \Big [ E \big ( f _ { w } ( x ) , t \big ) + R ( . . . ) \Big ] ,
37
+ $$
38
+
39
+ where we identify two parts, an error function $E$ and a regularization term $R$ . The error function depends on the targets and assigns a penalty to model predictions according to their consistency with the targets. The regularization term assigns a penalty to the model based on other criteria. It may depend on anything except the targets, for example on the weights (see Section 6).
40
+
41
+ The expected risk cannot be minimized directly since the data distribution $P$ is unknown. Instead, a training set $\mathcal { D }$ sampled from the distribution is given. The minimization of the expected risk can be then approximated by (approximately) minimizing the empirical risk $\hat { \mathcal { L } }$ :
42
+
43
+ $$
44
+ \underset { w } { \mathrm { m i n i m i z e } } \frac { 1 } { | \mathscr { D } | } \sum _ { ( x _ { i } , t _ { i } ) \in \mathcal { D } } E \big ( f _ { w } ( x _ { i } ) , t _ { i } \big ) + R ( . . . )
45
+ $$
46
+
47
+ where $( x _ { i } , t _ { i } )$ are samples from $\mathcal { D }$ .
48
+
49
+ Now we have the minimal background to formalize the division of regularization methods into a systematic taxonomy. In the minimization of the empirical risk, Eq. (3), we can identify the following elements that are responsible for the value of the learned weights, and thus can contribute to regularization:
50
+
51
+ $\mathcal { D }$ : The training set, discussed in Section 3
52
+ $f$ : The selected model family, discussed in Section 4
53
+ $E$ : The error function, briefly discussed in Section 5
54
+ $R$ : The regularization term, discussed in Section 6
55
+ The optimization procedure itself, discussed in Section 7
56
+
57
+ Ambiguity regarding the splitting of methods into these categories and their subcategories is discussed in Appendix A using notation from Section 3.
58
+
59
+ # 3 Regularization via data
60
+
61
+ The quality of a trained model depends largely on the training data. Apart from acquisition/selection of appropriate training data, it is possible to employ regularization via data. This is done by applying some transformation to the training set $\mathcal { D }$ , resulting in a new set $\mathcal { D } _ { R }$ . Some transformations perform feature extraction or pre-processing, modifying the feature space or the distribution of the data to some representation simplifying the learning task. Other methods allow generating new samples to create a larger, possibly infinite, augmented dataset. These two principles are somewhat independent and may be combined. The goal of regularization via data is either one of them, or the other, or both. They both rely on transformations with (stochastic) parameters:
62
+
63
+ Definition 2. Transformation with stochastic parameters is a function $\tau _ { \theta }$ with parameters $\theta$ which follow some probability distribution.
64
+
65
+ In this context we consider $^ Ḋ \prime \theta Ḍ$ which can operate on network inputs, activations in hidden layers, or targets. An example of a transformation with stochastic parameters is the corruption of inputs by Gaussian noise (Bishop, 1995b; An, 1996):
66
+
67
+ $$
68
+ \tau _ { \theta } ( x ) = x + \theta , \quad \theta \sim \mathcal { N } ( \mathbf { 0 } , \Sigma ) .
69
+ $$
70
+
71
+ The stochasticity of the transformation parameters is responsible for generating new samples, i.e. data augmentation. Note that the term data augmentation often refers specifically to transformations of inputs or hidden activations, but here we also list transformations of targets for completeness. The exception to the stochasticity is when $\theta$ follows a delta distribution, in which case the transformation parameters become deterministic and the dataset size is not augmented.
72
+
73
+ We can categorize the data-based methods according to the properties of the used transformation and of the distribution of its parameters. We identify the following criteria for categorization (some of them later serve as columns in Tables 1–2):
74
+
75
+ # Stochasticity of the transformation parameters $\theta$
76
+
77
+ ∙ Deterministic parameters: Parameters $\theta$ follow a delta distribution, size of the dataset remains unchanged
78
+
79
+ ∙ Stochastic parameters: Allow generation of a larger, possibly infinite, dataset. Various strategies for sampling of $\theta$ exist:
80
+
81
+ – Random: Draw a random $\theta$ from the specified distribution
82
+ – Adaptive: Value of $\theta$ is the result of an optimization procedure, usually with the objective of maximizing the network error on the transformed sample (such “challenging” sample is considered to be the most informative one at current training stage), or minimizing the difference between the network prediction and a predefined fake target $t ^ { \prime }$ $^ *$ Constrained optimization: $\theta$ found by maximizing error under hard constraints (support of the distribution of $\theta$ controls the strongest allowed transformation) $^ *$ Unconstrained optimization: $\theta$ found by maximizing modified error function, using the distribution of $\theta$ as weighting (proposed herein for completeness, not yet tested) $^ *$ Stochastic: $\theta$ found by taking a fixed number of samples of $\theta$ and using the one yielding the highest error
83
+
84
+ # Effect on the data representation
85
+
86
+ ∙ Representation-preserving transformations: Preserve the feature space and attempt to preserve the data distribution
87
+ ∙ Representation-modifying transformations: Map the data to a different representation (different distribution or even new feature space) that may disentangle the underlying factors of the original representation and make the learning problem easier
88
+
89
+ # Transformation space
90
+
91
+ ∙ Input: Transformation is applied to $x$
92
+
93
+ ∙ Hidden-feature space: Transformation is applied to some deep-layer representation of samples (this also uses parts of $f$ and $w$ to map the input into the hidden-feature space; such transformations act inside the network $f _ { w }$ and thus can be considered part of the architecture, additionally fitting Section 4)
94
+ ∙ Target: Transformation is applied to $t$ (can only be used during the training phase since labels are not shown to the model at test time)
95
+
96
+ # Universality
97
+
98
+ ∙ Generic: Applicable to all data domains
99
+ ∙ Domain-specific: Specific (handcrafted) for the problem at hand, for example image rotations
100
+
101
+ # Dependence of the distribution of $\theta$
102
+
103
+ ∙ $p ( \theta )$ : distribution of $\theta$ is the same for all samples
104
+ ∙ $p ( \theta | t )$ : distribution of $\theta$ can be different for each target (class)
105
+ ∙ $p ( \theta | t ^ { \prime } )$ : distribution of $\theta$ depends on desired (fake) target $t ^ { \prime }$
106
+ ∙ $p ( \theta | x )$ : distribution of $\theta$ can be different for each input vector (with implicit dependence on $f$ and $w$ if the transformation is in hidden-feature space)
107
+ ∙ $p ( \boldsymbol { \theta } | \mathcal { D } )$ : distribution of $\theta$ depends on the whole training dataset
108
+ ∙ $p ( \boldsymbol { \theta } | \mathbf { x } )$ : distribution of $\theta$ depends on a batch of training inputs (for example (parts of) the current mini-batch, or also previous mini-batches)
109
+ ∙ $p ( \theta | \mathrm { t i m e } )$ : distribution of $\theta$ depends on time (current training iteration)
110
+ ∙ $p ( \theta | \pi )$ : distribution of $\theta$ depends on some trainable parameters $\pi$ subject to loss minimization (i.e. the parameters $\pi$ evolve during training along with the network weights $w$ )
111
+ ∙ Combinations of the above, e.g. $p ( \theta | x , t )$ , $p ( \theta | x , \pi )$ , ??(??|??, ??′), ??(??|??, ??), ??(??|??, ??), $p ( \boldsymbol { \theta } | \boldsymbol { x } , t , \mathcal { D } )$
112
+
113
+ # Phase
114
+
115
+ ∙ Training: Transformation of training samples ∙ Test: Transformation of test samples, for example multiple augmented variants of a sample are classified and the result is aggregated over them
116
+
117
+ A review of existing methods that use generic transformations can be found in Table 1. Dropout in its original form (Hinton et al., 2012; Srivastava et al., 2014) is one of the most popular methods from the generic group, but also several variants of Dropout have been proposed that provide additional theoretical motivation and improved empirical results (Standout (Ba and Frey, 2013), Random dropout probability (Bouthillier et al., 2015), Bayesian dropout (Maeda, 2014), Test-time dropout (Gal and Ghahramani, 2016)).
118
+
119
+ Table 2 contains a list of some domain-specific methods focused especially on the image domain. Here the most used method is rigid and elastic image deformation.
120
+
121
+ Target-preserving data augmentation In the following, we discuss an important group of methods: target-preserving data augmentation. These methods use stochastic transformations in input and hidden-feature spaces, while preserving the original target $t$ . As can be seen in the respective two columns in Tables 1–2, most of the listed methods have exactly these properties. These methods transform the training set to a distribution $Q$ , which is used for training instead. In other words, the training samples $( x _ { i } , t _ { i } ) \in \mathcal { D }$ are replaced in the empirical risk loss function (Eq. (3)) by augmented training samples $( \tau _ { \theta } ( x _ { i } ) , t _ { i } ) \sim Q$ . By randomly sampling the transformation parameters $\theta$ and thus creating many new samples $( \tau _ { \theta } ( x _ { i } ) , t _ { i } )$ from each original training sample $( x _ { i } , t _ { i } )$ , data augmentation attempts to bridge the limited-data gap between the expected and the empirical risk, Eqs. (2)–(3). While unlimited sampling from $Q$ provides more data than the original dataset $\mathcal { D }$ , both of them usually are merely approximations of the ground truth data distribution or of an ideal training dataset; both $\mathcal { D }$ and $Q$ have their own distinct biases, advantages and disadvantages. For example, elastic image deformations result in images that are not perfectly realistic; this is not necessarily a disadvantage, but it is a bias compared to the ground truth data distribution; in any case, the advantages (having more training data) often prevail. In some cases, it may be even desired for $Q$ to be deliberately different from the ground truth data distribution. For example, in case of class imbalance (unbalanced abundance or importance of classes), a common regularization strategy is to undersample or oversample the data, sometimes leading to a less realistic $Q$ but better models. This is how an ideal training dataset may be different from the ground truth data distribution.
122
+
123
+ Table 1: Existing generic data-based methods classified according to our taxonomy. Table columns are described in Section 3.
124
+
125
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Dependence</td><td rowspan=1 colspan=1>Transformationspace</td><td rowspan=1 colspan=1>Stochasticity(0 sampling)</td><td rowspan=1 colspan=1>Phase</td></tr><tr><td rowspan=1 colspan=1>Gaussian noise on input(Bishop,1995a; An,1996)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Gaussian noise on hidden units(DeVries and Taylor, 2017)</td><td rowspan=1 colspan=1>p(0)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Dropout (Hinton et al., 2012; Srivastavaet al., 2014)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Random dropout probability(Bouthillier et al., 2015, Sec. 4)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Curriculum dropout(Morerio et al., 2017)</td><td rowspan=1 colspan=1>p(0|time)</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Bayesian dropout(Maeda,2014)</td><td rowspan=1 colspan=1>p(0|π)</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Standout (adaptive dropout)(Ba and Frey, 2013)</td><td rowspan=1 colspan=1>p(0|x,π)</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>&quot;Projection” of dropout noise into inputspace (Bouthillier et al., 2015, Sec. 3)</td><td rowspan=1 colspan=1>p(0lx,f,w)</td><td rowspan=1 colspan=1>InputUses auxiliary Tin hidden-featurespace.</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Approximation of Gaussian process bytest-time dropout(Gal and Ghahramani, 2016)</td><td rowspan=1 colspan=1>p(0)</td><td rowspan=1 colspan=1>Input andhidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=1 colspan=1>Stochastic depth (Huang et al., 2016b)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Noisy activation functions(Nair and Hinton, 2010; Xu et al., 2015;Gülcehre et al., 2016a)</td><td rowspan=1 colspan=1>p(0x)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Training with adversarial examples(Szegedy et al., 2014)</td><td rowspan=1 colspan=1>p(0|x,t&#x27;)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>AdaptiveConstrained</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Network fooling (adversarial examples)(Szegedy et al., 2014)(Not for regularization)</td><td rowspan=1 colspan=1>p(0lx,t)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>AdaptiveConstrained</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=1 colspan=1>Synthetic minority oversampling inhidden-feature space (Wong et al., 2016)</td><td rowspan=1 colspan=1>p(0x,t,D)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Inter-and extrapolation in hidden-featurespace (DeVries and Taylor, 2017)</td><td rowspan=1 colspan=1>p(0|x,t,D)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Batch normalization (Ioffe and Szegedy,2015),Ghost batch normalization (Hofferet al., 2017)</td><td rowspan=1 colspan=1>p(0|x)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Trainingand test</td></tr><tr><td rowspan=1 colspan=1>Layer normalization(Ba et al., 2016)</td><td rowspan=1 colspan=1>p(0|x)</td><td rowspan=1 colspan=1>Hidden features</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Trainingand test</td></tr><tr><td rowspan=1 colspan=1>Annealed noise on targets(Wang and Principe, 1999)</td><td rowspan=1 colspan=1>p(0|time)</td><td rowspan=1 colspan=1>Target</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Label smoothing (Szegedy et al., 2016,Sec. 7; Goodfellow et al.,2016, Chap.7)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Target</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Model compression (mimic models,distilled models) (Bucila et al., 2006; Baand Caruana,2014; Hinton et al., 2015)</td><td rowspan=1 colspan=1>p(0|x,D)</td><td rowspan=1 colspan=1>Target</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Training</td></tr></table>
126
+
127
+ Table 2: Existing domain-specific data-based methods classified according to our taxonomy. Table columns are described in Section 3. Note that these methods are never applied on the hidden features, because domain knowledge cannot be applied on them.
128
+
129
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Dependence</td><td rowspan=1 colspan=1>Transformationspace</td><td rowspan=1 colspan=1>Stochasticity(0 sampling)</td><td rowspan=1 colspan=1>Phase</td></tr><tr><td rowspan=1 colspan=1>Rigid and elastic image transformation(Baird,1990; Yaegger et al., 1996; Simardet al.,2003; Ciresan et al., 2010)</td><td rowspan=1 colspan=1>p(0)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Test-time image transformations(Simonyan and Zisserman, 2015;Dielemanet al., 2015)</td><td rowspan=1 colspan=1>p(0)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=1 colspan=1>Sound transformations(Salamon and Bello, 2017)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Error-maximizing rigid imagetransformations(Loosli et al., 2007; Fawzi et al., 2016)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Adaptivestochastic&amp;constrained,respectively</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Learning class-specific elasticimage-deformation fields(Hauberg et al., 2016)</td><td rowspan=1 colspan=1>p(0|t,D)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>Training</td></tr><tr><td rowspan=1 colspan=1>Any handcrafted data preprocessing, forexample scale-invariant feature transform(SIFT) for images (Lowe,1999)</td><td rowspan=1 colspan=1>p()</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Trainingand test</td></tr><tr><td rowspan=1 colspan=1>Overfeat (Sermanet et al., 2013)</td><td rowspan=1 colspan=1>p(0)</td><td rowspan=1 colspan=1>Input</td><td rowspan=1 colspan=1>Deterministic</td><td rowspan=1 colspan=1>Trainingand test</td></tr></table>
130
+
131
+ If the transformation is additionally representation-preserving, then the distribution $Q$ created by the transformation $\tau _ { \theta }$ attempts to mimic the ground truth data distribution $P$ . Otherwise, the notion of a “ground truth data distribution” in the modified representation may be vague. We provide more details about the transition from $\mathcal { D }$ to $Q$ in Appendix B.
132
+
133
+ Summary of data-based methods Data-based regularization is a popular and very useful way to improve the results of deep learning. In this section we formalized this group of methods and showed that seemingly unrelated techniques such as Target-preserving data augmentation, Dropout, or Batch normalization are methodologically surprisingly close to each other. In Section 8 we discuss future directions that we find promising.
134
+
135
+ # 4 Regularization via the network architecture
136
+
137
+ A network architecture $f$ can be selected to have certain properties or match certain assumptions in order to have a regularizing effect.1
138
+
139
+ Table 3: Methods based on network architecture, and rough description of assumptions that they encode. There are partial overlaps between some listed methods. For example, Residual learning uses Skip-connections. Many noise-based methods also fit Table 1 (cf. Appendix A).
140
+
141
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Method class</td><td rowspan=1 colspan=1>Assumptions about an appropriate learnable input-output mapping</td></tr><tr><td rowspan=1 colspan=1>Any chosen (not overlycomplex) architecture</td><td rowspan=1 colspan=1>*</td><td rowspan=1 colspan=1>Mapping can be well approximated by functions from the chosen familywhich are easily accessible by optimization.</td></tr><tr><td rowspan=1 colspan=1>Small network</td><td rowspan=1 colspan=1>*</td><td rowspan=1 colspan=1>Mapping is simple (complexity of the mapping depends on the number ofnetwork units and layers).</td></tr><tr><td rowspan=1 colspan=1>Deep network</td><td rowspan=1 colspan=1>*</td><td rowspan=1 colspan=1>The mapping is complex,but can be decomposed into a composition (orgenerally into a directed acyclic graph) of simple nonlinear transformations,e.g.affine transformation followed by simple nonlinearity(fully-connectedlayer),“multi-channel convolution”followed by simple nonlinearity (convo-lutional layer),etc.</td></tr><tr><td rowspan=1 colspan=1>Hard bottleneck (layer withfew neurons);soft bottleneck(e.g.Jacobian penalty (Rifaiet al.,201lc),see Section 6)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>Data concentrates around a lower-dimensional manifold; has few factors ofvariation.</td></tr><tr><td rowspan=1 colspan=1>Convolutional networks(Fukushima and Miyake,1982;Rumelhart et al.,1986,Pp.348-352; LeCun et al.,1989;Simard et al., 2003)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>Spatially local and shift-equivariant feature extraction is all we need.</td></tr><tr><td rowspan=1 colspan=1>Dilated convolutions(Yu and Koltun,2015)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>Like convolutional networks.Additionally:Sparse sampling of wide localneighborhoods provides relevant information,and better preserves rele-vant high-resolution information than architectures with downscaling andupsampling.</td></tr><tr><td rowspan=1 colspan=1>Strided convolutions (seeDumoulin and Visin,2016)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>The mapping is reliable at reacting to features that do not vary tooabruptly in space,i.e.which are present in several neighboring pixels andcan be detected even if the filter center skips some of the pixels.The out-put is robust towards slight changes of the location of features,and changesof strength/presence of spatially strongly varying features.</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>The output is invariant to slight spatial distortions of the input (slightchanges of the location of (deep) features).Features that are sensitive tosuch distortions can be discarded.</td></tr><tr><td rowspan=1 colspan=1>Stochastic pooling(Zeiler and Fergus,2013)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>The output is robust towards slight changes of the location (like pooling)but also of the strength/presence of (deep) features.</td></tr><tr><td rowspan=1 colspan=1>Training with different kindsof noise (including Dropout;see Section 3)</td><td rowspan=1 colspan=1>Noise</td><td rowspan=1 colspan=1>The mapping is robust to noise:the given class of perturbations of theinput or deep features should not affect the output too much.</td></tr><tr><td rowspan=1 colspan=1>Dropout (Hinton et al., 2012;Srivastava etal.,2014),DropConnect (Wan et al.,2013),and related methods</td><td rowspan=1 colspan=1>Noise</td><td rowspan=1 colspan=1>Extracting complementary (non-coadapted) features is helpful.Non-coadapted features are more informative,better disentangle factors of vari-ation.(We want to disentangle factors of variation because they are en-tangled in different ways in inputs vs.in outputs.)When interpreted as ensemble learning:usual assumptions of ensemblelearning (predictions of weak learners have complementary info and can becombined to strong prediction).</td></tr><tr><td rowspan=1 colspan=1>Maxout units(Goodfellow et al., 2013)</td><td rowspan=1 colspan=1>Layer operation</td><td rowspan=1 colspan=1>Assumptions similar to Dropout,with more accurate approximation ofmodel averaging (when interpreted as ensemble learning)</td></tr><tr><td rowspan=1 colspan=1>Skip-connections (Long et al.,2015;Huang et al.,2016a)</td><td rowspan=1 colspan=1>Connections be-tween layers</td><td rowspan=1 colspan=1>Certain lower-level features can directly be reused in a meaningful way at(several) higher levels of abstraction</td></tr><tr><td rowspan=1 colspan=1>Linearly augmentedfeed-forward network (van derSmagt and Hirzinger,1998)</td><td rowspan=1 colspan=1>Connections be-tween layers</td><td rowspan=1 colspan=1>Skip-connections that share weights with the non-skip-connections.Helpsagainst vanishing gradients. Rather changes the learning algorithm thanthe network mapping.</td></tr><tr><td rowspan=1 colspan=1>Residual learning(He et al., 2016)</td><td rowspan=1 colspan=1>Connections be-tween layers</td><td rowspan=1 colspan=1>Learning additive difference of a mapping f (or its compositional parts)from the identity mapping is easier than learning f itself. Meaningful deepfeatures can be composed asa sum of lower-level and intermediate-levelfeatures.</td></tr><tr><td rowspan=1 colspan=1>Stochastic depth(Huang et al.,2016b),DropIn(Smith et al., 2015)</td><td rowspan=1 colspan=1>Connectionsbetween layers;noise</td><td rowspan=1 colspan=1>Similar to Dropout:extracting complementary (non-coadapted) featuresacross different levels of abstraction is helpful; implicit model ensem-ble.Similar to Residual learning: meaningful deep features can be com-posed as a sum of lower-level and intermediate-level features,with theintermediate-level ones being optional,and leaving them out beingmeaningful data augmentation. Similar to Mollifying networks: simpli-fying random parts of the mapping improves training.</td></tr><tr><td rowspan=1 colspan=1>Mollifying networks(Gülcehre et al., 2016b)</td><td rowspan=1 colspan=1>Connectionsbetweenlayers;noise</td><td rowspan=1 colspan=1>The mapping can be easier approximated by estimating its decreasinglylinear simplified version</td></tr><tr><td rowspan=1 colspan=1>Network information criterion(Murata et al.,1994),Networkgrowing and network pruning(see Bishop,1995a, Sec. 9.5)</td><td rowspan=1 colspan=1>Model selection</td><td rowspan=1 colspan=1>Optimal generalization is reached by a network that has the right numberof units (not too few,not too many)</td></tr><tr><td rowspan=1 colspan=1>Multi-task learning (seeCaruana,1998;Ruder,2017)</td><td rowspan=1 colspan=1>*</td><td rowspan=1 colspan=1>Several tasks can help each other to learn mutually useful feature extrac-tors,as long as the tasks do not compete for resources (network capacity)</td></tr></table>
142
+
143
+ Assumptions about the mapping An input-output mapping $f _ { w }$ must have certain properties in order to fit the data $P$ well. Although it may be intractable to enforce the precise properties of an ideal mapping, it may be possible to approximate them by simplified assumptions about the mapping. These properties and assumptions can then be imposed upon model fitting in a hard or soft manner. This limits the search space of models and allows finding better solutions. An example is the decision about the number of layers and units, which allows the mapping to be neither too simple nor too complex (thus avoiding underfitting and overfitting). Another example are certain invariances of the mapping, such as locality and shift-equivariance of feature extraction hardwired in convolutional layers. Overall, the approach of imposing assumptions about the input-output mapping discussed in this section is the selection of the network architecture $f$ . The choice of architecture $f$ on the one hand hardwires certain properties of the mapping; additionally, in an interplay between $f$ and the optimization algorithm (Section 7), certain weight configurations are more likely accessible by optimization than others, further limiting the likely search space in a soft way. A complementary way of imposing certain assumptions about the mapping are regularization terms (Section 6), as well as invariances present in the (augmented) data set (Section 3).
144
+
145
+ Assumptions can be hardwired into the definition of the operation performed by certain layers, and/or into the connections between layers. This distinction is made in Table 3, where these and other methods are listed.
146
+
147
+ In Section 3 about data, we mentioned regularization methods that transform data in the hidden-feature space. They can be considered part of the architecture. In other words, they fit both Sections 3 (data) and 4 (architecture). These methods are listed in Table 1 with hidden features as their transformation space.
148
+
149
+ Weight sharing Reusing a certain trainable parameter in several parts of the network is referred to as weight sharing. This usually makes the model less complex than using separately trainable parameters. An example are convolutional networks (LeCun et al., 1989). Here the weight sharing does not merely reduce the number of weights that need to be learned; it also encodes the prior knowledge about the shift-equivariance and locality of feature extraction. Another example is weight sharing in autoencoders.
150
+
151
+ Activation functions Choosing the right activation function is quite important; for example, using Rectified linear units (ReLUs) improved the performance of many deep architectures both in the sense of training times and accuracy as well as overcoming the need for greedy layer-wise pre-training (Hahnloser et al., 2000; Jarrett et al., 2009; Nair and Hinton, 2010; Glorot et al., 2011). The success of ReLUs can be partially attributed to the fact that they provide more expressive families of mappings compared to sigmoid activations (in the sense that the classical sigmoid nonlinearity can be approximated very well $^ 2$ with only two ReLUs, but it takes an infinite number of sigmoid units to approximate a ReLU) and their affine extrapolation to unknown regions of data space seems to provide better generalization in practice than the “stagnating” extrapolation of sigmoid units. However, their hard negative cut-off and unbounded positive part are not always desired properties. Some activation functions were designed explicitly for regularization. For Dropout, Maxout units (Goodfellow et al., 2013) allow a more precise approximation of the geometric mean of the model ensemble predictions at test time. Stochastic pooling (Zeiler and Fergus, 2013), on the other hand, is a noisy version of max-pooling. The authors claim that this allows modelling distributions of activations instead of taking just the maximum.
152
+
153
+ Noisy models Stochastic pooling was one example of a stochastic generalization of a deterministic model. Some models are stochastic by injecting random noise into various parts of the model. The most frequently used noisy model is Dropout (Hinton et al., 2012; Srivastava et al., 2014).
154
+
155
+ Multi-task learning A special type of regularization is multi-task learning (see Caruana, 1998; Ruder, 2017), where the network is modified to predict targets for several tasks at once. It can be combined with semi-supervised learning to utilize unlabeled data on an auxiliary task (Rasmus et al., 2015). A similar concept of sharing knowledge between tasks is also utilized in meta-learning, where multiple tasks from the same domain are learned sequentially, using previously gained knowledge as bias for new tasks (Baxter, 2000); and transfer learning, where knowledge from one domain is transferred into another domain (Pan and Yang, 2010). These approaches differ from other methods in the sense that they require some additional target data, which are not always available.
156
+
157
+ Model selection The best among several trained models (e.g. with different architectures) can be selected by evaluating the predictions on a validation set. It should be noted that this holds for selecting the best combination of all techniques (Sections 3–7), not just architecture; and that the validation set used for model selection in the “outer loop” should be different from the validation set used e.g. for Early stopping (Section 7), and different from the test set (Cawley and Talbot, 2010). However, there are also model selection methods that specifically target the selection of the number of units in a specific network architecture, e.g. using network growing and network pruning (see Bishop, 1995a, Sec. 9.5), or additionally do not require a validation set, e.g. the Network information criterion to compare models based on the training error and second derivatives of the loss function (Murata et al., 1994).
158
+
159
+ # 5 Regularization via the error function
160
+
161
+ Ideally, the error function $E$ reflects an appropriate notion of quality, and in some cases some assumptions about the data distribution. Typical examples are mean squared error or cross-entropy. The error function $E$ can also have a regularizing effect. An example is Dice coefficient optimization (Milletari et al., 2016) which is robust to class imbalance. Moreover, the overall form of the loss function can be different than Eq. (3). For example, in certain loss functions that are robust to class imbalance, the sum is taken over pairwise combinations $\mathcal { D } \times \mathcal { D }$ of training samples (Yan et al., 2003), rather than over training samples. But such alternatives to Eq. (3) are rather rare, and similar principles apply. If additional tasks are added for a regularizing effect (multi-task learning (see Caruana, 1998; Ruder, 2017)), then targets $t$ are modified to consist of several tasks, the mapping $f _ { w }$ is modified to produce an according output $y$ , and $E$ is modified to account for the modified $t$ and $y$ . Besides, there are regularization terms that depend on $\partial E / \partial x$ . They depend on $t$ and thus in our definition are considered part of $E$ rather than of $R$ , but they are listed in Section 6 among $R$ (rather than here) for a better overview.
162
+
163
+ # 6 Regularization via the regularization term
164
+
165
+ Regularization can be achieved by adding a regularizer $R$ into the loss function. Unlike the error function $E$ (which expresses consistency of outputs with targets), the regularization term is independent of the targets. Instead, it is used to encode other properties of the desired model, to provide inductive bias (i.e. assumptions about the mapping other than consistency of outputs with targets). The value of $R$ can thus be computed for an unlabeled test sample, whereas the value of $E$ cannot.
166
+
167
+ The independence of $R$ from $t$ has an important implication: it allows additionally using unlabeled samples (semi-supervised learning) to improve the learned model based on its compliance with some desired properties (Sajjadi et al., 2016). For example, semi-supervised learning with ladder networks (Rasmus et al., 2015) combines a supervised task with an unsupervised auxiliary denoising task in a “multi-task” learning fashion. (For alternative interpretations, see Appendix A.) Unlabeled samples are extremely useful when labeled samples are scarce. A Bayesian perspective on the combination of labeled and unlabeled data in a semi-supervised manner is offered by Lasserre et al. (2006).
168
+
169
+ A classical regularizer is weight decay (see Plaut et al., 1986; Lang and Hinton, 1990; Goodfellow et al., 2016, Chap. 7):
170
+
171
+ $$
172
+ R ( w ) = \lambda \frac 1 2 \| w \| _ { 2 } ^ { 2 } ,
173
+ $$
174
+
175
+ where $\lambda$ is a weighting term controlling the importance of the regularization over the consistency. From the Bayesian perspective, weight decay corresponds to using a symmetric multivariate normal distribution as prior for the weights: $p ( w ) = \mathcal { N } ( w | \mathbf { 0 } , \lambda ^ { - 1 } \mathbf { I } )$ (Nowlan and Hinton, 1992). Indeed, $\begin{array} { r } { - \log \mathcal { N } ( w | \mathbf { 0 } , \lambda _ { \cdot } ^ { - 1 } \mathbf { I } ) \propto - \log \exp \left( - \frac { \lambda } { 2 } \| w \| _ { 2 } ^ { 2 } \right) = \frac { \lambda } { 2 } \| w \| _ { 2 } ^ { 2 } = R ( w ) } \end{array}$ . Weight decay has gained big popularity, and it is being successfully used; Krizhevsky et al. (2012) even observe reduction of the error on the training set.
176
+
177
+ Another common prior assumption that can be expressed via the regularization term is “smoothness” of the learned mapping (see Bengio et al., 2013, Section 3.2): if $x _ { 1 } \approx x _ { 2 }$ , then $f _ { w } ( x _ { 1 } ) \approx f _ { w } ( x _ { 2 } )$ . It can be expressed by the following loss term:
178
+
179
+ $$
180
+ R ( f _ { w } , x ) = \left. J _ { f _ { w } } ( x ) \right. _ { F } ^ { 2 } ,
181
+ $$
182
+
183
+ where $\left\| \cdot \right\| _ { F }$ denotes the Frobenius norm, and $J _ { f _ { w } } ( x )$ is the Jacobian of the neural network input-to-output mapping $f _ { w }$ for some fixed network weights $w$ . This term penalizes mappings with large derivatives, and is used in contractive autoencoders (Rifai et al., 2011c).
184
+
185
+ The domain of loss regularizers is very heterogeneous. We propose a natural way to categorize them by their dependence. We saw in Eq. (5) that weight decay depends on $w$ only, whereas the Jacobian penalty in Eq. (6) depends on $w$ , $f$ , and $x$ . More precisely, the Jacobian penalty uses the derivative $\partial y / \partial x$ of output $y = f _ { w } ( x )$ w.r.t. input $x$ . (We use vector-by-vector derivative notation from matrix calculus, i.e. $\partial y / \partial x = \partial f _ { w } ( x ) / \partial x = J _ { f _ { w } }$ is the Jacobian of $f _ { w }$ with fixed weights $w$ .) We identify the following dependencies of $R$ :
186
+
187
+ ∙ Dependence on the weights $w$
188
+ ∙ Dependence on the network output $y = f _ { w } ( x )$
189
+ ∙ Dependence on the derivative $\partial y / \partial w$ of the output $y = f _ { w } ( x )$ w.r.t. the weights $w$
190
+ ∙ Dependence on the derivative $\partial y / \partial x$ of the output $y = f _ { w } ( x )$ w.r.t. the input $x$
191
+ ∙ Dependence on the derivative $\partial E / \partial x$ of the error term $E$ w.r.t. the input $x$ ( $E$ depends on $t$ , and according to our definition such methods belong to Section 5, but they are listed here for overview)
192
+
193
+ A review of existing methods can be found in Table 4. Weight decay seems to be still the most popular of the regularization terms. Some of the methods are equivalent or nearly equivalent to other methods from different taxonomy branches. For example, Tangent prop simulates minimal data augmentation (Simard et al., 1992); Injection of small-variance Gaussian noise (Bishop, 1995b; An, 1996) is an approximation of Jacobian penalty (Rifai et al., 2011c); and Fast dropout (Wang and Manning, 2013) is (in shallow networks) a deterministic approximation of Dropout. This is indicated in the Equivalence column in Table 4.
194
+
195
+ # 7 Regularization via optimization
196
+
197
+ The last class of the regularization methods according to our taxonomy is the regularization through optimization. While this may sound unusual, optimization and regularization cannot be clearly separated in the context of deep learning where it is not so crucial what the optimum of the empirical risk is (because it cannot be found exactly, and the ultimate goal is minimizing the expected risk anyway). Instead, the shape of the loss function and the optimization procedure play together to dictate how the training proceeds in the weight space and where it ends up. To demonstrate the overlap of regularization and optimization, we show in Figure 1 how one of the most prominent regularization methods, Dropout, can be seen as a modification of the optimization procedure.
198
+
199
+ Stochastic gradient descent (SGD) (see Bottou, 1998) (along with its derivations) is the most frequently used optimization algorithm in the context of deep neural networks and is the center of our attention. We also list some alternative methods below.
200
+
201
+ <table><tr><td rowspan=2 colspan=1>Method</td><td rowspan=2 colspan=1>Description</td><td rowspan=1 colspan=5>Dependency</td><td rowspan=2 colspan=1>Equivalence</td></tr><tr><td rowspan=1 colspan=1>w</td><td rowspan=1 colspan=1>y</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Weight decay (see Plaut et al.,1986;Lang and Hinton,1990;Goodfellow et al.,2016,Chap.7)</td><td rowspan=1 colspan=1>L² norm on network weights (notbiases). Favors smaller weights,thus for usual architectures tendsto make the mapping less“extreme&quot;,more robust to noise in the input.</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Early stopping (seeCollobert and Bengio,2004;Goodfellow et al., 2016,Chap.7)</td></tr><tr><td rowspan=1 colspan=1>Weight smoothing(Lang and Hinton,1990)</td><td rowspan=1 colspan=1>Penalizes L²norm of gradientsof learned filters,making themsmooth. Not beneficial in practice.</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Weight elimination(Weigend et al.,1991)</td><td rowspan=1 colspan=1>Similar to weight decay but favorsfew stronger connections over manyweak ones.</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Goal similar to Narrow andbroad Gaussians</td></tr><tr><td rowspan=1 colspan=1>Soft weight-sharing(Nowlan and Hinton,1992)</td><td rowspan=1 colspan=1>Mixture-of-Gaussians prior onweights.Generalization of weightdecay.Weights are pushed to forma predefined number of groups withsimilar values.</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Narrow and broad Gaussians(Nowlan and Hinton,1992;Blundell et al., 2015)</td><td rowspan=1 colspan=1>Weights come from two Gaussians,a narrow and a broad one.Specialcase of Soft weight-sharing.</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Goal similar to Weightelimination</td></tr><tr><td rowspan=1 colspan=1>Fast dropout approximation(Wang and Manning,2013)</td><td rowspan=1 colspan=1>Approximates the loss that dropoutminimizes. Weighted L2weightpenalty. Only for shallow networks.</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>x</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Dropout</td></tr><tr><td rowspan=1 colspan=1>Mutual exclusivity(Sajjadi et al., 2016)</td><td rowspan=1 colspan=1>Unlabeled samples push decisionboundaries to low-density regions ininput space,promoting sharp (con-fident) predictions.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Segmentation with binarypotentials (BenTaieb andHamarneh,2016)</td><td rowspan=1 colspan=1>Penalty on anatomically implausi-ble image segmentations.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Flat minima search(Hochreiter and Schmidhuber,1995)</td><td rowspan=1 colspan=1>Penalty for sharp minima,i.e. forweight configurations where smallweight perturbation leads to higherror increase.Flat minima havelow Minimum description length(i.e.exhibit ideal balance betweentraining error and model complex-ity)and thus should generalize bet-ter (Rissanen,1986).</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Tangent prop(Simard et al.,1992)</td><td rowspan=1 colspan=1>L² penalty on directional derivativeof mapping in the predefined tan-gent directions that correspond toknown input-space transformations.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Simple data augmentation</td></tr><tr><td rowspan=1 colspan=1>Jacobian penalty(Rifai et al., 2011c)</td><td rowspan=1 colspan=1>L2penalty on the Jacobian of(partsof) the network mapping-smoothness prior.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Noise on inputs injection(not exact (see An,1996))</td></tr><tr><td rowspan=1 colspan=1>Manifold tangent classifier(Rifai et al., 2011a)</td><td rowspan=1 colspan=1>Like tangent prop,but the input“tangent” directions are extractedfrom manifold learned by a stack ofcontractive autoencoders and thenperforming SVD of the Jacobian ateach input sample.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Hessian penalty(Rifai et al.,2011b)</td><td rowspan=1 colspan=1>Fast waytoapproximateL²penalty of thepenalizingJacobianwithnoisyinput.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Tikhonov regularizers(Bishop,1995b)</td><td rowspan=1 colspan=1>L² penalty on (up to) n-th deriva-tive of the learned mapping w.r.t.input.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Forpenalty on firstderivative: noise on inputsinjection (not exact (see An,1996))</td></tr><tr><td rowspan=1 colspan=1>Loss-invariant backpropagation(Demyanov et al., 2015, Sec. 3.1;Lyu et al., 2015)</td><td rowspan=1 colspan=1>(L²)norm of gradient of loss w.r.t.input.Changes the mapping suchthat the loss becomes rather invari-ant to changes of the input.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>Adversarial training</td></tr><tr><td rowspan=1 colspan=1>Prediction-invariantbackpropagation(Demyanov et al.,2015, Sec. 3.2)</td><td rowspan=1 colspan=1>(L2) norm of directional derivativeof mapping w.r.t.input in the di-rection of x causing the largest in-crease in loss.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>Adversarial training</td></tr></table>
202
+
203
+ Table 4: Regularization terms, with dependencies marked by $\pmb { * }$ . Methods that depend on $\partial E / \partial x$ implicitly depend on targets $t$ and thus can be considered part of the error function (Section 5) rather than regularization term (Section 6).
204
+
205
+ Stochastic gradient descent is an iterative optimization algorithm using the following update rule:
206
+
207
+ $$
208
+ w _ { t + 1 } = w _ { t } - \eta _ { t } \nabla _ { w } \mathcal { L } ( w _ { t } , d _ { t } ) ,
209
+ $$
210
+
211
+ where $\nabla \mathcal { L } ( w _ { t } , d _ { t } )$ is the gradient of the loss $\mathcal { L }$ evaluated on a mini-batch $d _ { t }$ from the training set $\mathcal { D }$ . It is frequently used in combination with momentum and other tweaks improving the convergence speed (see Wilson et al., 2017). Moreover, the noise induced by the varying mini-batches helps the algorithm escape saddle points (Ge et al., 2015); this can be further reinforced by adding supplementary gradient noise (Neelakantan et al., 2015; Chaudhari and Soatto, 2015).
212
+
213
+ If the algorithm reaches a low training error in a reasonable time (linear in the size of the training set, allowing multiple passes through $\mathcal { D }$ ), the solution generalizes well under certain mild assumptions; in that sense SGD works as an implicit regularizer : a short training time prevents overfitting even without any additional regularizer used (Hardt et al., 2016). This is in line with (Zhang et al., 2017) who find in a series of experiments that regularization (such as Dropout, data augmentation, and weight decay) is by itself neither necessary nor sufficient for good generalization.
214
+
215
+ We divide the methods into three groups: initialization/warm-start methods, update methods, and termination methods, discussed in the following.
216
+
217
+ Initialization and warm-start methods These methods affect the initial selection of the model weights. Currently the most frequently used method is sampling the initial weights from a carefully tuned distribution. There are multiple strategies based on the architecture choice, aiming at keeping the variance of activations in all layers around 1, thus preventing vanishing or exploding activations (and gradients) in deeper layers (Glorot and Bengio, 2010, Sec. 4.2; He et al., 2015).
218
+
219
+ Another (complementary) option is pre-training on different data, or with a different objective, or with partially different architecture. This can prime the learning algorithm towards a good solution before the fine-tuning on the actual objective starts. Pre-training the model on a different task in the same domain may lead to learning useful features, making the primary task easier. However, pre-trained models are also often misused as a lazy approach to problems where training from scratch or using thorough domain adaptation, transfer learning, or multi-task learning methods would be worth trying. On the other hand, pre-training or similar techniques may be a useful part of such methods.
220
+
221
+ Finally, with some methods such as Curriculum learning (Bengio et al., 2009), the transition between pre-training and fine-tuning is smooth. We refer to them as warm-start methods.
222
+
223
+ ∙ Initialization without pre-training
224
+
225
+ – Random weight initialization (Rumelhart et al., 1986, p. 330; Glorot and Bengio, 2010; He et al., 2015; Hendrycks and Gimpel, 2016)
226
+ – Orthogonal weight matrices (Saxe et al., 2013)
227
+ – Data-dependent weight initialization (Krähenbühl et al., 2015)
228
+
229
+ ∙ Initialization with pre-training
230
+
231
+ – Greedy layer-wise pre-training (Hinton et al., 2006; Bengio et al., 2007; Erhan et al., 2010) (has become less important due to advances (e.g. ReLUs) in effective end-to-end training that optimizes all parameters simultaneously)
232
+ – Curriculum learning (Bengio et al., 2009)
233
+ – Spatial contrasting (Hoffer et al., 2016)
234
+ – Subtask splitting (Gülçehre and Bengio, 2016)
235
+
236
+ Update methods This class of methods affects individual weight updates. There are two complementary subgroups: Update rules modify the form of the update formula; Weight and gradient filters are methods that affect the value of the gradient or weights, which are used in the update formula, e.g. by injecting noise into the gradient (Neelakantan et al., 2015).
237
+
238
+ ![](images/2d3c043833918e9948dba4ab7bc13a7e06caab09934ecb7fb43bf136b98df82a.jpg)
239
+ Figure 1: Effect of Dropout on weight optimization. Starting from the current weight configuration (red dot), all weights of certain neurons are set to zero (black arrow), descent step is performed in that subspace (teal arrow), and then the discarded weight-space coordinates are restored (blue arrow).
240
+
241
+ Again, it is not entirely clear which of the methods only speed up the optimization and which actually help the generalization. Wilson et al. (2017) show that some of the methods such as AdaGrad or Adam even lose the regularization abilities of SGD.
242
+
243
+ ∙ Update rules
244
+
245
+ – Momentum, Nesterov’s accelerated gradient method, AdaGrad, AdaDelta, RMSProp, Adam—overview in (Wilson et al., 2017) Learning rate schedules (Girosi et al., 1995; Hoffer et al., 2017)
246
+ Online batch selection (Loshchilov and Hutter, 2015) SGD alternatives: L-BFGS (Liu and Nocedal, 1989; Le et al., 2011), Hessianfree methods (Martens, 2010), Sum-of-functions optimizer (Sohl-Dickstein et al., 2014), ProxProp (Frerix et al., 2017)
247
+
248
+ ∙ Gradient and weight filters
249
+
250
+ – Annealed Langevin noise (Neelakantan et al., 2015)
251
+ – AnnealSGD (Chaudhari and Soatto, 2015) Dropout (Hinton et al., 2012; Srivastava et al., 2014) corresponds to optimization steps in subspaces of weight space, see Figure 1
252
+ Annealed noise on targets (Wang and Principe, 1999) (works as noise on gradient, but belongs rather to data-based methods, Section 3)
253
+
254
+ Termination methods There are numerous possible stopping criteria and selecting the right moment to stop the optimization procedure may improve the generalization by reducing the error caused by the discrepancy between the minimizers of expected and empirical risk: The network first learns general concepts that work for all samples from the ground truth distribution $P$ before fitting the specific sample $\mathcal { D }$ and its noise (Krueger et al., 2017).
255
+
256
+ The most successful and popular termination methods put a portion of the labeled data aside as a validation set and use it to evaluate performance (validation error ). The most prominent example is Early stopping (see Prechelt, 1998). Collobert and Bengio (2004) show that Early stopping has the same effect as Weight decay regularization penalty term in multi-layered perceptrons with linear output units; however, its hyperparameters are easier to tune.
257
+
258
+ In scenarios where the training data are scarce it is possible to resort to termination methods that do not use a validation set. The simplest case is fixing the number of passes through the training set.
259
+
260
+ ∙ Termination using a validation set – Early stopping (see Morgan and Bourlard, 1990; Prechelt, 1998) – Choice of validation set size based on test set size (Amari et al., 1997)
261
+ ∙ Termination without using a validation set – Fixed number of iterations – Optimized approximation algorithm (Liu et al., 2008)
262
+
263
+ # 8 Recommendations, discussion, conclusions
264
+
265
+ We see the main benefits of our taxonomy to be two-fold: Firstly, it provides an overview of the existing techniques to the users of regularization methods and gives them a better idea of how to choose the ideal combination of regularization techniques for their problem. Secondly, it is useful for development of new methods, as it gives a comprehensive overview of the main principles that can be exploited to regularize the models. We summarize our recommendations $^ 3$ in the following paragraphs:
266
+
267
+ Recommendations for users of existing regularization methods Overall, using the information contained in data as well as prior knowledge as much as possible, and primarily starting with popular methods, the following procedure can be helpful:
268
+
269
+ ∙ Common recommendations for the first steps:
270
+
271
+ – Deep learning is about disentangling the factors of variation. An appropriate data representation should be chosen; known meaningful data transformations should not be outsourced to the learning. Redundantly providing the same information in several representations is okay. Output nonlinearity and error function should reflect the learning goals.
272
+ – A good starting point are techniques that usually work well (e.g. ReLU, successful architectures). Hyperparameters (and architecture) can be tuned jointly, but “lazily” (interpolating/extrapolating from experience instead of trying too many combinations). Often it is helpful to start with a simplified dataset (e.g. fewer and/or easier samples) and a simple network, and after obtaining promising results gradually increasing the complexity of both data and network while tuning hyperparameters and trying regularization methods.
273
+
274
+ ∙ Regularization via data:
275
+
276
+ – When not working with nearly infinite/abundant data: $^ *$ Gathering more real data (and using methods that take its properties into account) is advisable if possible: · Labeled samples are best, but unlabeled ones can also be helpful (compatible with semi-supervised learning). Samples from the same domain are best, but samples from similar domains can also be helpful (compatible with domain adaptation and transfer learning). · Reliable high-quality samples are best, but lower-quality ones can also be helpful (their confidence/importance can be adjusted accordingly). · Labels for an additional task can be helpful (compatible with multi-task learning). · Additional input features (from additional information sources) and/or data preprocessing (i.e. domain-specific data transformations) can be helpful (the network architecture needs to be adjusted accordingly).
277
+
278
+ $^ *$ Data augmentation (e.g. target-preserving handcrafted domain-specific transformations) can well compensate for limited data. If natural ways to augment data (to mimic natural transformations sufficiently well) are known, they can be tried (and combined). \* If natural ways to augment data are unknown or turn out to be insufficient, it may be possible to infer the transformation from data (e.g. learning imagedeformation fields) if a sufficient amount of data is available for that.
279
+
280
+ – Popular generic methods (e.g. advanced variants of Dropout) often also help.
281
+
282
+ ∙ Architecture and regularization terms:
283
+
284
+ – Knowledge about possible meaningful properties of the mapping can be used to e.g. hardwire invariances (to certain transformations) into the architecture, or be formulated as regularization terms.
285
+
286
+ – Popular methods may help as well (see Tables 3–4), but should be chosen to match the assumptions about the mapping (e.g. convolutional layers are fully appropriate only if local and shift-equivariant feature extraction on regular-grid data is desired).
287
+
288
+ ∙ Optimization:
289
+
290
+ Initialization: Even though pre-trained ready-made models greatly speed up prototyping, training from a good random initialization should also be considered. – Optimizers: Trying a few different ones, including advanced ones (e.g. Nesterov momentum, Adam, ProxProp), may lead to improved results. Correctly chosen parameters, such as learning rate, usually make a big difference.
291
+
292
+ Recommendations for developers of novel regularization methods Getting an overview and understanding the reasons for the success of the best methods is a great foundation. Promising empty niches (certain combinations of taxonomy properties) exist that can be addressed. The assumptions to be imposed upon the model can have a strong impact on most elements of the taxonomy. Data augmentation is more expressive than loss terms (loss terms enforce properties only in infinitesimally small neighborhood of the training samples; data augmentation can use rich transformation parameter distributions). Data and loss terms impose assumptions and invariances in a rather soft manner, and their influence can be tuned, whereas hardwiring the network architecture is a harsher way to impose assumptions. Different assumptions and options to impose them have different advantages and disadvantages.
293
+
294
+ Future directions for data-based methods There are several promising directions that in our opinion require more investigation: Adaptive sampling of $\theta$ might lead to lower errors and shorter training times (Fawzi et al., 2016) (in turn, shorter training times may additionally work as implicit regularization (Hardt et al., 2016), see also Section 7). Secondly, learning class-dependent transformations (i.e. $p ( \theta | t )$ ) in our opinion might lead to more plausible samples. Furthermore, the field of adversarial examples (and network robustness to them) is gaining increased attention after the recently sparked discussion on real-world adversarial examples and their robustness/invariance to transformations such as the change of camera position (Lu et al., 2017; Athalye and Sutskever, 2017). Countering strong adversarial examples may require better regularization techniques.
295
+
296
+ Summary In this work we proposed a broad definition of regularization for deep learning, identified five main elements of neural network training (data, architecture, error term, regularization term, optimization procedure), described regularization via each of them, including a further, finer taxonomy for each, and presented example methods from these subcategories. Instead of attempting to explain referenced works in detail, we merely pinpointed their properties relevant to our categorization. Our work demonstrates some links between existing methods. Moreover, our systematic approach enables the discovery of new, improved regularization methods by combining the best properties of the existing ones.
297
+
298
+ # References
299
+
300
+ Amari, S., Murata, N., Muller, K.-R., Finke, M., and Yang, H. H. (1997). Asymptotic statistical theory of overtraining and cross-validation. IEEE Transactions on Neural Networks, 8(5):985–996. (ˆ13)
301
+
302
+ An, G. (1996). The effects of adding noise during backpropagation training on a generalization performance. Neural Computation, 8(3):643–674. ( $\hat { }$ 3, 5, 10, 11)
303
+
304
+ Athalye, A. and Sutskever, I. (2017). Synthesizing robust adversarial examples. arXiv prerint arXiv:1707.07397. ( $\hat { \bf \Phi }$ 15)
305
+
306
+ Ba, J. L., Kiros, J. R., and Hinton, G. (2016). Layer normalization. arXiv preprint arXiv:1607.06450. (ˆ5) Ba, L. J. and Caruana, R. (2014). Do deep nets really need to be deep? In Advances in Neural Information Processing Systems (NIPS). (ˆ5) Ba, L. J. and Frey, B. (2013). Adaptive dropout for training deep neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 3084–3092. (ˆ4, 5) Baird, H. S. (1990). Document image defect models. In Proceedings of the IAPR Workshop on Syntactic and Structural Pattern Recognition (SSPR), pages 38–46. (ˆ6) Baxter, J. (2000). A model of inductive bias learning. Journal of Artificial Intelligence Research, 12(149-198):3. (ˆ9) Bengio, Y., Courville, A., and Vincent, P. (2013). Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence,
307
+ 35(8). (ˆ10) Bengio, Y., Lamblin, P., Popovici, D., and Larochelle, H. (2007). Greedy layer-wise training of deep networks. In Advances in Neural Information Processing Systems (NIPS), pages
308
+ 153–160. (ˆ12) Bengio, Y., Louradour, J., Collobert, R., and Weston, J. (2009). Curriculum learning. In Proceedings of the International Conference on Machine Learning (ICML), pages 41–48. ACM. ( $\hat { }$ 12) BenTaieb, A. and Hamarneh, G. (2016). Topology aware fully convolutional networks for histology gland segmentation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI), pages 460–468. Springer International Publishing. ( $\hat { \ }$ 11) Bishop, C. M. (1995a). Neural Networks for Pattern Recognition. Oxford University Press. (ˆ1, 5, 7, 9, 24) Bishop, C. M. (1995b). Training with noise is equivalent to Tikhonov regularization. Neural Computation, 7(1):108–116. ( $\hat { \ }$ 3, 10, 11) Blundell, C., Cornebise, J., Kavukcuoglu, K., and Wierstra, D. (2015). Weight uncertainty in neural networks. In Proceedings of the International Conference on Machine Learning (ICML), pages 1613–1622. (ˆ11) Bottou, L. (1998). Online algorithms and stochastic approximations. In Saad, D., editor, Online Learning and Neural Networks. Cambridge University Press, Cambridge, UK. (ˆ10) Bouthillier, X., Konda, K., Vincent, P., and Memisevic, R. (2015). Dropout as data augmentation. arXiv preprint arXiv:1506.08700. ( $\hat { \mathbf { \alpha } }$ 4, 5, 23) Bucilă, C., Caruana, R., and Niculescu-Mizil, A. (2006). Model compression. In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), pages 535–541. ACM. (ˆ5) Caruana, R. (1998). Multitask learning. In Learning to Learn, pages 95–133. Springer. (ˆ7,
309
+ 9) Cawley, G. C. and Talbot, N. L. (2010). On over-fitting in model selection and subsequent selection bias in performance evaluation. Journal of Machine Learning Research,
310
+ 11(Jul):2079–2107. ( $\hat { }$ 9) Chaudhari, P. and Soatto, S. (2015). The effect of gradient noise on the energy landscape of deep networks. arXiv preprint arXiv:1511.06485. (ˆ12, 13) Ciresan, D. C., Meier, U., Gambardella, L. M., and Schmidhuber, J. (2010). Deep big simple neural nets excel on handwritten digit recognition. Neural Computation, 22(12):1–14. ( $\hat { \mathbf { \alpha } }$ 6)
311
+ Collobert, R. and Bengio, S. (2004). Links between perceptrons, mlps and svms. In Proceedings of the International Conference on Machine learning (ICML). ( $\hat { \ }$ 11, 13)
312
+ Demyanov, S., Bailey, J., Kotagiri, R., and Leckie, C. (2015). Invariant backpropagation: how to train a transformation-invariant neural network. arXiv preprint arXiv:1502.04434. (ˆ11)
313
+ DeVries, T. and Taylor, G. W. (2017). Dataset augmentation in feature space. In Proceedings of the International Conference on Machine Learning (ICML), Workshop Track. (ˆ5)
314
+ Dieleman, S., Van den Oord, A., Korshunova, I., Burms, J., Degrave, J., Pigou, L., and Buteneers, P. (2015). Classifying plankton with deep neural networks. Technical report, Reservoir Lab, Ghent University, Belgium. http://benanne.github.io/2015/03/17/ plankton.html. (ˆ6)
315
+ Dumoulin, V. and Visin, F. (2016). A guide to convolution arithmetic for deep learning. arXiv preprint arXiv:1603.07285. (ˆ7)
316
+ Erhan, D., Bengio, Y., Courville, A., Manzagol, P.-A., Vincent, P., and Bengio, S. (2010). Why does unsupervised pre-training help deep learning? Journal of Machine Learning Research, 11:625–660. ( $\hat { }$ 12)
317
+ Fawzi, A., Horst, S., Turaga, D., and Frossard, P. (2016). Adaptive data augmentation for image classification. In Proceedings of the IEEE International Conference on Image Processing (ICIP), pages 3688–3692. (ˆ6, 15)
318
+ Frerix, T., Möllenhoff, T., Moeller, M., and Cremers, D. (2017). Proximal backpropagation. arXiv preprint arXiv:1706.04638. (ˆ13)
319
+ Fukushima, K. and Miyake, S. (1982). Neocognitron: A self-organizing neural network model for a mechanism of visual pattern recognition. In Competition and Cooperation in Neural Nets, pages 267–285. Springer. (ˆ7)
320
+ Gal, Y. and Ghahramani, Z. (2016). Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the International Conference on Machine Learning (ICML), volume 48, pages 1050–1059. (ˆ4, 5)
321
+ Ge, R., Huang, F., Jin, C., and Yuan, Y. (2015). Escaping from saddle points—online stochastic gradient for tensor decomposition. In Proceedings of the Conference on Learning Theory (COLT), pages 797–842. (ˆ12)
322
+ Girosi, F., Jones, M., and Poggio, T. (1995). Regularization theory and neural networks architectures. Neural Computation, 7(2):219–269. (ˆ13)
323
+ Glorot, X. and Bengio, Y. (2010). Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS), pages 249–256. ( $\hat { }$ 12)
324
+ Glorot, X., Bordes, A., and Bengio, Y. (2011). Deep sparse rectifier neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS), pages 315–323. (ˆ8)
325
+ Goodfellow, I., Warde-Farley, D., Mirza, M., Courville, A., and Bengio, Y. (2013). Maxout networks. In Proceedings of the International Conference on Machine Learning (ICML), volume 28, pages 1319–1327. (ˆ7, 8)
326
+ Goodfellow, I. J., Bengio, Y., and Courville, A. (2016). Deep Learning. MIT Press. (ˆ1, 5, 10, 11)
327
+ Gülçehre, Ç. and Bengio, Y. (2016). Knowledge matters: Importance of prior information for optimization. Journal of Machine Learning Research, 17(8):1–32. ( $\hat { \ }$ 12)
328
+ Gülçehre, Ç., Moczulski, M., Denil, M., and Bengio, Y. (2016a). Noisy activation functions. In Proceedings of the International Conference on Machine Learning (ICML), pages 3059– 3068. (ˆ5)
329
+
330
+ Gülçehre, Ç., Moczulski, M., Visin, F., and Bengio, Y. (2016b). Mollifying networks. arXiv preprint arXiv:1608.04980. (ˆ7)
331
+
332
+ Hahnloser, R. H. R., Sarpeshkar, R., Mahowald, M. A., Douglas, R. J., and Seung, H. S. (2000). Digital selection and analogue amplification coexist in a cortex-inspired silicon circuit. Nature, 405:947––951. ( $\hat { }$ 8)
333
+
334
+ Hardt, M., Recht, B., and Singer, Y. (2016). Train faster, generalize better: stability of stochastic gradient descent. In Balcan, M. F. and Weinberger, K. Q., editors, Proceedings of the International Conference on Machine Learning (ICML), volume 48, pages 1225– 1234. ( $\hat { }$ 12, 15)
335
+
336
+ Hauberg, S., Freifeld, O., Larsen, A. B. L., Fisher III, J. W., and Hansen, L. K. (2016). Dreaming more data: Class-dependent distributions over diffeomorphisms for learned data augmentation. In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS), pages 342–350. (ˆ6)
337
+
338
+ He, K., Zhang, X., Ren, S., and Sun, J. (2015). Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1026–1034. (ˆ12)
339
+
340
+ He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778. (ˆ7)
341
+
342
+ Hendrycks, D. and Gimpel, K. (2016). Generalizing and improving weight initialization. arXiv preprint arXiv:1607.02488. (ˆ12)
343
+
344
+ Hinton, G., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. (2012). Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580. (ˆ4, 5, 7, 8, 13)
345
+
346
+ Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531. ( $\hat { \ }$ 5)
347
+
348
+ Hinton, G. E., Osindero, S., and Teh, Y.-W. (2006). A fast learning algorithm for deep belief nets. Neural Computation, 18(7):1527–1554. ( $\hat { \ }$ 12)
349
+
350
+ Hochreiter, S. and Schmidhuber, J. (1995). Simplifying neural nets by discovering flat minima. In Advances in Neural Information Processing Systems (NIPS), pages 529–536. (ˆ11)
351
+
352
+ Hoffer, E., Hubara, I., and Ailon, N. (2016). Deep unsupervised learning through spatial contrasting. arXiv preprint arXiv:1610.00243. ( $\hat { \ }$ 12)
353
+
354
+ Hoffer, E., Hubara, I., and Soudry, D. (2017). Train longer, generalize better: closing the generalization gap in large batch training of neural networks. arXiv preprint arXiv:1705.08741. ( $\hat { }$ 5, 13)
355
+
356
+ Huang, G., Liu, Z., Weinberger, K. Q., and van der Maaten, L. (2016a). Densely connected convolutional networks. arXiv preprint arXiv:1608.06993. (ˆ7)
357
+
358
+ Huang, G., Sun, Y., Liu, Z., Sedra, D., and Weinberger, K. Q. (2016b). Deep networks with stochastic depth. In Proceedings of the European Conference on Computer Vision (ECCV), pages 646–661. Springer. ( $\hat { \bf \Phi }$ 5, 7, 22)
359
+
360
+ Ioffe, S. and Szegedy, C. (2015). Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning (ICML), pages 448–456. (ˆ5)
361
+
362
+ Jarrett, K., Kavukcuoglu, K., LeCun, Y., et al. (2009). What is the best multi-stage architecture for object recognition? In Proceedings of the International Conference on Computer Vision (ICCV), pages 2146–2153. IEEE. (ˆ8)
363
+
364
+ Johnson, J., Alahi, A., and Fei-Fei, L. (2016). Perceptual losses for real-time style transfer and super-resolution. In Proceedings of the European Conference on Computer Vision (ECCV), pages 694–711. Springer. (ˆ2)
365
+
366
+ Krähenbühl, P., Doersch, C., Donahue, J., and Darrell, T. (2015). Data-dependent initializations of convolutional neural networks. arXiv preprint arXiv:1511.06856. (ˆ12)
367
+
368
+ Krizhevsky, A., Sutskever, I., and Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 1097–1105. (ˆ1, 10)
369
+
370
+ Krueger, D., Ballas, N., Jastrzebski, S., Arpit, D., Kanwal, M. S., Maharaj, T., Bengio, E., Fischer, A., and Courville, A. (2017). Deep nets don’t learn via memorization. In Proceedings of the International Conference on Learning Representations (ICLR), Workshop Track. (ˆ13)
371
+
372
+ Lang, K. J. and Hinton, G. E. (1990). Dimensionality reduction and prior knowledge in E-set recognition. In Advances in Neural Information Processing Systems (NIPS), pages 178–185. ( $\hat { \ }$ 10, 11)
373
+
374
+ Lasserre, J. A., Bishop, C. M., and Minka, T. P. (2006). Principled hybrids of generative and discriminative models. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 1, pages 87–94. (ˆ9)
375
+
376
+ Le, Q. V., Ngiam, J., Coates, A., Lahiri, A., Prochnow, B., and Ng, A. Y. (2011). On optimization methods for deep learning. In Proceedings of the International Conference on Machine Learning (ICML), pages 265–272. ( $\hat { \ }$ 13)
377
+
378
+ LeCun, Y., Boser, B., Denker, J. S., Henderson, D., Howard, R. E., Hubbard, W., and Jackel, L. D. (1989). Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4):541–551. (ˆ7, 8)
379
+
380
+ Liu, D. C. and Nocedal, J. (1989). On the limited memory BFGS method for large scale optimization. Mathematical Programming, 45(1):503–528. ( $\hat { \bf \Phi }$ 13)
381
+
382
+ Liu, Y., Starzyk, J. A., and Zhu, Z. (2008). Optimized approximation algorithm in neural networks without overfitting. IEEE Transactions on Neural Networks, 19(6):983–995. (ˆ13)
383
+
384
+ Long, J., Shelhamer, E., and Darrell, T. (2015). Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3431–3440. (ˆ7)
385
+
386
+ Loosli, G., Canu, S., and Bottou, L. (2007). Training invariant support vector machines using selective sampling. In Bottou, L., Chapelle, O., DeCoste, D., and Weston, J., editors, Large-Scale Kernel Machines, pages 301–320. MIT Press, Cambridge, MA. (ˆ6)
387
+
388
+ Loshchilov, I. and Hutter, F. (2015). Online batch selection for faster training of neural networks. arXiv preprint arXiv:1511.06343. (ˆ13)
389
+
390
+ Lowe, D. G. (1999). Object recognition from local scale-invariant features. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), volume 2, pages 1150– 1157. ( $\hat { }$ 6)
391
+
392
+ Lu, J., Sibai, H., Fabry, E., and Forsyth, D. (2017). No need to worry about adversarial examples in object detection in autonomous vehicles. arXiv preprint arXiv:1707.03501. (ˆ15)
393
+
394
+ Lyu, C., Huang, K., and Liang, H.-N. (2015). A unified gradient regularization family for adversarial examples. In Proceedings of the IEEE International Conference on Data Mining (ICDM), pages 301–309. IEEE. (ˆ11)
395
+
396
+ Maeda, S. (2014). A Bayesian encourages dropout. arXiv preprint arXiv:1412.7003. (ˆ4, 5)
397
+
398
+ Martens, J. (2010). Deep learning via Hessian-free optimization. In Proceedings of the International Conference on Machine Learning (ICML), pages 735–742. (ˆ13)
399
+ Milletari, F., Navab, N., and Ahmadi, S. A. (2016). V-net: Fully convolutional neural networks for volumetric medical image segmentation. In Proceedings of the International Conference on 3D Vision (3DV), pages 565––571. IEEE. (ˆ9)
400
+ Morerio, P., Cavazza, J., Volpi, R., Vidal, R., and Murino, V. (2017). Curriculum dropout. arXiv preprint arXiv:1703.06229. (ˆ5)
401
+ Morgan, N. and Bourlard, H. (1990). Generalization and parameter estimation in feedforward nets: Some experiments. In Advances in Neural Information Processing Systems (NIPS), pages 630–637. (ˆ13)
402
+ Murata, N., Yoshizawa, S., and Amari, S. (1994). Network information criterion— determining the number of hidden units for an artificial neural network model. IEEE Transactions on Neural Networks, 5(6):865–872. (ˆ7, 9)
403
+ Nair, V. and Hinton, G. E. (2010). Rectified linear units improve restricted Boltzmann machines. In Proceedings of the International Conference on Machine Learning (ICML), pages 807–814. ( $\hat { }$ 5, 8)
404
+ Neelakantan, A., Vilnis, L., Le, Q. V., Sutskever, I., Kaiser, L., Kurach, K., and Martens, J. (2015). Adding gradient noise improves learning for very deep networks. arXiv preprint arXiv:1511.06807. ( $\hat { }$ 12, 13)
405
+ Nowlan, S. J. and Hinton, G. E. (1992). Simplifying neural networks by soft weight-sharing. Neural Computation, 4(4):473–493. ( $^ { * * }$ 10, 11)
406
+ Pan, S. J. and Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10):1345–1359. (ˆ9)
407
+ Plaut, D. C., Nowlan, S. J., and Hinton, G. E. (1986). Experiments on learning by back propagation. Technical report, Carnegie-Mellon Univ., Pittsburgh, Pa. Dept. of Computer Science. ( $\hat { \ }$ 10, 11)
408
+ Prechelt, L. (1998). Automatic early stopping using cross validation: quantifying the criteria. Neural Networks, 11(4):761–767. (ˆ13)
409
+ Rasmus, A., Berglund, M., Honkala, M., Valpola, H., and Raiko, T. (2015). Semi-supervised learning with ladder networks. In Advances in Neural Information Processing Systems (NIPS), pages 3546–3554. (ˆ9, 23)
410
+ Rifai, S., Dauphin, Y. N., Vincent, P., Bengio, Y., and Muller, X. (2011a). The manifold tangent classifier. In Advances in Neural Information Processing Systems (NIPS), pages 2294–2302. (ˆ11)
411
+ Rifai, S., Glorot, X., Bengio, Y., and Vincent, P. (2011b). Adding noise to the input of a model trained with a regularized objective. arXiv preprint arXiv:1104.3250. (ˆ11)
412
+ Rifai, S., Vincent, P., Muller, X., Glorot, X., and Bengio, Y. (2011c). Contractive autoencoders: Explicit invariance during feature extraction. In Proceedings of the International Conference on Machine Learning (ICML), pages 833–840. (ˆ7, 10, 11)
413
+ Rissanen, J. (1986). Stochastic complexity and modeling. The Annals of Statistics, 14:1080– 1100. ( $\hat { }$ 11)
414
+ Ruder, S. (2017). An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098. (ˆ7, 9)
415
+ Rumelhart, D. E., McClelland, J. L., and Group, P. R. (1986). Parallel distributed processing: Explorations in the microstructures of cognition. Volume 1: Foundations. MIT Press. (ˆ7, 12)
416
+ Sajjadi, M., Javanmardi, M., and Tasdizen, T. (2016). Regularization with stochastic transformations and perturbations for deep semi-supervised learning. In Advances in Neural Information Processing Systems (NIPS), pages 1163–1171. ( $\hat { \ }$ 9, 11)
417
+ Salamon, J. and Bello, J. P. (2017). Deep convolutional neural networks and data augmentation for environmental sound classification. IEEE Signal Processing Letters, 24(3):279– 283. (ˆ6)
418
+ Saxe, A. M., McClelland, J. L., and Ganguli, S. (2013). Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120. (ˆ12)
419
+ Sermanet, P., Eigen, D., Zhang, X., Mathieu, M., Fergus, R., and LeCun, Y. (2013). Overfeat: Integrated recognition, localization and detection using convolutional networks. arXiv preprint arXiv:1312.6229. ( $\hat { }$ 6)
420
+ Simard, P., Le Cun, Y., Denker, J., and Victorri, B. (1992). An efficient algorithm for learning invariance in adaptive classifiers. In Proceedings of the International Conference on Pattern Recognition (ICPR), pages 651–655. IEEE. ( $\hat { }$ 10, 11)
421
+ Simard, P. Y., Steinkraus, D., and Platt, J. C. (2003). Best practices for convolutional neural networks. In Proceedings of the International Conference on Document Analysis and Recognition (ICDAR), volume 3, pages 958–962. (ˆ6, 7)
422
+ Simonyan, K. and Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR). (ˆ6)
423
+ Smith, L. N., Hand, E. M., and Doster, T. (2015). Gradual DropIn of layers to train very deep neural networks. arXiv preprint arXiv:1511.06951. (ˆ7)
424
+ Sohl-Dickstein, J., Poole, B., and Ganguli, S. (2014). Fast large-scale optimization by unifying stochastic gradient and quasi-Newton methods. In Proceedings of the International Conference on Machine Learning (ICML), pages 604–612. (ˆ13)
425
+ Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. (2014). Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958. ( $\hat { \mathbf { \Omega } }$ 4, 5, 7, 8, 13)
426
+ Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. (2016). Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818–2826. (ˆ5)
427
+ Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., and Fergus, R. (2014). Intriguing properties of neural networks. In Proceedings of the International Conference on Machine Learning (ICML). (ˆ5)
428
+ Ulyanov, D., Lebedev, V., Vedaldi, A., and Lempitsky, V. S. (2016). Texture networks: Feed-forward synthesis of textures and stylized images. In Proceedings of the International Conference on Machine Learning (ICML), pages 1349–1357. (ˆ2)
429
+ van der Smagt, P. and Hirzinger, G. (1998). Solving the ill-conditioning in neural network learning. In Neural Networks: Tricks of the Trade, pages 193–206. Springer. (ˆ7)
430
+ Wan, L., Zeiler, M., Zhang, S., LeCun, Y., and Fergus, R. (2013). Regularization of neural networks using DropConnect. In Proceedings of the International Conference on Machine Learning (ICML), pages 1058–1066. (ˆ7)
431
+ Wang, C. and Principe, J. C. (1999). Training neural networks with additive noise in the desired signal. IEEE Transactions on Neural Networks, 10(6):1511–1517. ( $\hat { }$ 5, 13)
432
+ Wang, S. and Manning, C. (2013). Fast dropout training. In Proceedings of the International Conference on Machine Learning (ICML), pages 118–126. ( $\hat { \mathbf { \alpha } }$ 10, 11)
433
+ Weigend, A. S., Rumelhart, D. E., and Huberman, B. A. (1991). Generalization by weightelimination with application to forecasting. In Advances in Neural Information Processing Systems (NIPS), pages 875–882. ( $\hat { }$ 11)
434
+ Wilson, A. C., Roelofs, R., Stern, M., Srebro, N., and Recht, B. (2017). The marginal value of adaptive gradient methods in machine learning. arXiv preprint arXiv:1705.08292. ( $\hat { }$ 12, 13)
435
+ Wong, S. C., Gatt, A., Stamatescu, V., and McDonnell, M. D. (2016). Understanding data augmentation for classification: When to warp? In Proceedings of the International Conference on Digital Image Computing: Techniques and Applications (DICTA). (ˆ5)
436
+ Xu, B., Wang, N., Chen, T., and Li, M. (2015). Empirical evaluation of rectified activations in convolutional network. arXiv preprint arXiv:1505.00853. (ˆ5)
437
+ Yaegger, L., Lyon, R., and Webb, B. (1996). Effective training of a neural network character classifier for word recognition. In Advances in Neural Information Processing Systems (NIPS), volume 9, pages 807–813. ( $^ { * * }$ 6)
438
+ Yan, L., Dodier, R. H., Mozer, M., and Wolniewicz, R. H. (2003). Optimizing classifier performance via an approximation to the Wilcoxon-Mann-Whitney statistic. In Proceedings of the International Conference on Machine Learning (ICML), pages 848–855. (ˆ9)
439
+ Yu, F. and Koltun, V. (2015). Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122. (ˆ7)
440
+ Zeiler, M. and Fergus, R. (2013). Stochastic pooling for regularization of deep convolutional neural networks. In Proceedings of the International Conference on Learning Representations (ICLR). (ˆ7, 8)
441
+ Zhang, C., Bengio, S., Hardt, M., Recht, B., and Vinyals, O. (2017). Understanding deep learning requires rethinking generalization. In Proceedings of the International Conference on Learning Representations (ICLR). ( $\hat { \ }$ 12)
442
+
443
+ # A Ambiguities in the taxonomy
444
+
445
+ Although our proposed taxonomy seems intuitive, there are some ambiguities: Certain methods have multiple interpretations matching various categories. Viewed from the exterior, a neural network maps inputs $x$ to outputs $y$ . We formulate this as $y = f _ { w } ( \tau _ { \theta } ( x ) )$ for transformations $\tau _ { \theta }$ in input space (and similarly for hidden-feature space, where $^ Ḋ \prime \theta Ḍ$ is applied in between layers of the network $f _ { w }$ ). However, how to split this $x$ -to- $y$ mapping into “the $\tau _ { \theta }$ part” and “the $f _ { w }$ part”, and thus into Section 3 vs. Section 4, is ambiguous and up to one’s taste and goals. In our choices (marked with “ ” below), we attempt to use common notions and Occam’s razor.
446
+
447
+ Ambiguity of attributing noise to $f$ , or to $w$ , or to data transformations $\tau _ { \theta }$ : – Stochastic methods such as Stochastic depth (Huang et al., 2016b) can have several interpretations if stochastic transformations are allowed for $f$ or $w$ : Stochastic transformation of the architecture $f$ (randomly dropping some connections), Table 3 $\sqcup$ Stochastic transformation of the weights $w$ (setting some weights to $0$ in a certain random pattern) $\sqcup$ Stochastic transformation $\tau _ { \theta }$ of data in hidden-feature space; dependence is $p ( \theta )$ , described in Table 1 for completeness
448
+
449
+ ∙ Ambiguity of splitting $^ Ḋ \prime \theta Ḍ$ into $\tau$ and $\theta$ :
450
+
451
+ – Dropout:
452
+
453
+ Parameters $\theta$ are the dropout mask; dependence is $p ( \theta )$ ; transformation $\tau$ applies the dropout mask to the hidden features
454
+
455
+ $\sqcup$ Parameters $\theta$ are the seed state of a pseudorandom number generator; dependence is $p ( \theta )$ ; transformation $\tau$ internally generates the random dropout mask from the random seed and applies it to the hidden features
456
+
457
+ – Projecting dropout noise into input space (Bouthillier et al., 2015, Sec. 3) can fit our taxonomy in different ways by defining $\tau$ and $\theta$ accordingly. It can have similar interpretations as Dropout above (if $\tau$ is generalized to allow for dependence on $x , f , w )$ , but we prefer the third interpretation without such generalizations:
458
+
459
+ $\sqcup$ Parameters $\theta$ are the dropout mask (to be applied in a hidden layer); dependence is $p ( \theta )$ ; transformation $\gamma$ transforms the input to mimic the effect of the mask
460
+ $\sqcup$ Parameters $\theta$ are the seed state of a pseudorandom number generator; dependence is $p ( \theta )$ ; transformation $\tau$ internally generates the random dropout mask from the random seed and transforms the input to mimic the effect of the mask
461
+ V Parameters $\theta$ describe the transformation of the input in any formulation; dependence is $p ( \theta | x , f , w )$ ; transformation $\tau$ merely applies the transformation in input space
462
+
463
+ ∙ Ambiguity of splitting the network operation $f _ { w }$ into layers: There are several possibilities to represent a function (neural network) as a composition (or directed acyclic graph) of functions (layers).
464
+
465
+ ∙ Many of the input and hidden-feature transformations (Section 3) can be considered layers of the network (Section 4). In fact, the term “layer” is not uncommon for Dropout or Batch normalization.
466
+
467
+ ∙ The usage of a trainable parameter in several parts of the network is called weight sharing. However, some mappings can be expressed with two equivalent formulas such that a parameter appears only once in one formulation, and several times in the other.
468
+
469
+ ∙ Ambiguity of $E$ vs. $R$ : Auxiliary denoising task in ladder networks (Rasmus et al., 2015) and similar autoencoder-style loss terms can be interpreted in different ways:
470
+
471
+ V Regularization term $R$ without given auxiliary targets $t$
472
+ $\sqcup$ The ideal reconstructions can be considered as targets $t$ (if the definition of “targets” is slightly modified) and thus the denoising task becomes part of the error term $E$
473
+
474
+ # B Data-augmented loss function
475
+
476
+ To understand the success of target-preserving data augmentation methods, we consider the data-augmented loss function, which we obtain by replacing the training samples $( x _ { i } , t _ { i } ) \in \mathcal { D }$ in the empirical risk loss function (Eq. (3)) by augmented training samples $( \tau _ { \theta } ( x _ { i } ) , t _ { i } )$ :
477
+
478
+ $$
479
+ \begin{array} { r l } & { \hat { \mathcal { L } } _ { A } = \displaystyle \frac { 1 } { | \mathcal { D } | } \sum _ { ( x _ { i } , t _ { i } ) \in \mathcal { D } } \mathbb { E } _ { \theta } \Big [ \ell \big ( \tau _ { \theta } ( x _ { i } ) , t _ { i } \big ) \Big ] } \\ & { \quad \quad = \displaystyle \frac { 1 } { | \mathcal { D } | } \sum _ { ( x _ { i } , t _ { i } ) \in \mathcal { D } } \int \Big ( \ell \big ( \tau _ { \theta } ( x _ { i } ) , t _ { i } \big ) \Big ) p ( \theta ) \mathrm { d } \theta , } \end{array}
480
+ $$
481
+
482
+ where we have replaced the inner part ( $E$ and $R$ ) of the loss function by $\ell$ to simplify the notation. Moreover, $\hat { \mathcal { L } } _ { A }$ can be rewritten as
483
+
484
+ $$
485
+ \begin{array} { r l } & { \hat { \mathcal { L } } _ { A } = \displaystyle \iint \frac { 1 } { X , T } \displaystyle \sum _ { ( x , t _ { i } ) \in \mathcal { D } _ { \Theta } } \int \ell ( x , t ) \ p ( \theta ) \ \delta \big ( x - \tau _ { \theta } ( x _ { i } ) \big ) \ \delta ( t - t _ { i } ) \ \mathrm { d } \theta \mathrm { d } t \mathrm { d } x } \\ & { \quad = \displaystyle \iint \ell ( x , t ) \Bigg [ \frac { 1 } { | \mathcal { D } | } \sum _ { ( x _ { i } , t _ { i } ) \in \mathcal { D } _ { \Theta } } \int \delta \big ( x - \tau _ { \theta } ( x _ { i } ) \big ) \ \delta ( t - t _ { i } ) \ p ( \theta ) \mathrm { d } \theta \Bigg ] \mathrm { d } t \mathrm { d } x } \\ & { \quad = \displaystyle \iint \ell ( x , t ) \ q ( x , t ) \ \mathrm { d } t \mathrm { d } x , } \end{array}
486
+ $$
487
+
488
+ where $\delta ( x )$ is the Dirac delta function: $\delta ( x ) = 0 \forall x \neq 0$ and $\textstyle \int \delta ( x ) \mathrm { d } x = 1$ ; and $\boldsymbol { q } ( \boldsymbol { x } , t )$ is defined as
489
+
490
+ $$
491
+ q ( x , t ) = \frac { 1 } { | \mathcal { D } | } \sum _ { ( x _ { i } , t _ { i } ) \in \mathcal { D } } \int _ { \Theta } \delta \big ( x - \tau _ { \theta } ( x _ { i } ) \big ) \delta ( t - t _ { i } ) p ( \theta ) \mathrm { d } \theta .
492
+ $$
493
+
494
+ Since $q$ is non-negative and $\int _ { \ a } ^ { \cdot } \int q ( x , t ) \mathrm { d } x \mathrm { d } t = 1$ , it is a valid probability density function inducing the distribution $Q$ of augmented data. Therefore,
495
+
496
+ $$
497
+ \begin{array} { r } { \hat { \mathcal { L } } _ { A } = \mathbb { E } _ { ( x , t ) \sim Q } \big [ \ell ( x , t ) \big ] . } \end{array}
498
+ $$
499
+
500
+ When $Q = P$ , Eq. (11) becomes the expected risk (2). We can show how this is related to importance sampling:
501
+
502
+ $$
503
+ \begin{array} { l } { \displaystyle \mathcal { L } = \mathbb { E } _ { ( x , t ) \sim P } \big [ \ell ( x , t ) \big ] } \\ { \displaystyle = \int _ { X , T } \ell ( x , t ) p ( x , t ) \mathrm { d } t \mathrm { d } x } \\ { \displaystyle \quad \times \int _ { X , T } \ell ( x , \ell ) \frac { p ( x , t ) } { q ( x , t ) } q ( x , \ell ) \mathrm { d } t \mathrm { d } x } \\ { \displaystyle \quad \times _ { X , T } } \\ { \displaystyle = \mathbb { E } _ { ( x , t ) \sim Q } \Big [ \ell ( x , t ) \frac { p ( x , t ) } { q ( x , t ) } \Big ] } \\ { \displaystyle \quad \neq \mathbb { E } _ { ( x , t ) \sim Q } \big [ \ell ( x , t ) \big ] } \\ { \displaystyle \quad = \hat { \ell } _ { A + } } \end{array}
504
+ $$
505
+
506
+ The difference between $\mathcal { L }$ and $\hat { \mathcal { L } } _ { A }$ is the re-weighting term $p ( x , t ) / q ( x , t )$ identical to the one known from importance sampling (see Bishop, 1995a). The more similar $Q$ is to $P$ (i.e. the closer $Q$ models the ground truth distribution $P$ ), the more similar the augmented-data loss $\hat { \mathcal { L } } _ { A }$ is to the expected loss $\mathcal { L }$ . We see that data augmentation tries to simulate the real distribution $P$ by creating new samples from the training set $\mathcal { D }$ , bridging the gap between the expected and the empirical risk.
parse/train/SkHkeixAW/SkHkeixAW_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkHkeixAW/SkHkeixAW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkHkeixAW/SkHkeixAW_model.json ADDED
The diff for this file is too large to render. See raw diff