ZHANGYUXUAN-zR commited on
Commit
c66ae53
·
verified ·
1 Parent(s): a00c1d9

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/-zgb2v8vV_w/-zgb2v8vV_w.md +295 -0
  2. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_content_list.json +1215 -0
  3. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_middle.json +0 -0
  4. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_model.json +0 -0
  5. parse/train/0CDKgyYaxC8/0CDKgyYaxC8.md +234 -0
  6. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_content_list.json +1272 -0
  7. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_middle.json +0 -0
  8. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_model.json +0 -0
  9. parse/train/2rAiDBJgR_/2rAiDBJgR_.md +471 -0
  10. parse/train/2rAiDBJgR_/2rAiDBJgR__content_list.json +1317 -0
  11. parse/train/2rAiDBJgR_/2rAiDBJgR__middle.json +0 -0
  12. parse/train/2rAiDBJgR_/2rAiDBJgR__model.json +0 -0
  13. parse/train/BJe-unNYPr/BJe-unNYPr.md +0 -0
  14. parse/train/BJe-unNYPr/BJe-unNYPr_content_list.json +0 -0
  15. parse/train/BJe-unNYPr/BJe-unNYPr_middle.json +0 -0
  16. parse/train/BJe-unNYPr/BJe-unNYPr_model.json +0 -0
  17. parse/train/ByQpn1ZA-/ByQpn1ZA-.md +358 -0
  18. parse/train/ByQpn1ZA-/ByQpn1ZA-_content_list.json +1844 -0
  19. parse/train/ByQpn1ZA-/ByQpn1ZA-_middle.json +0 -0
  20. parse/train/ByQpn1ZA-/ByQpn1ZA-_model.json +0 -0
  21. parse/train/GFV8IVyMM4n/GFV8IVyMM4n.md +339 -0
  22. parse/train/GFV8IVyMM4n/GFV8IVyMM4n_content_list.json +1582 -0
  23. parse/train/GFV8IVyMM4n/GFV8IVyMM4n_middle.json +0 -0
  24. parse/train/GFV8IVyMM4n/GFV8IVyMM4n_model.json +0 -0
  25. parse/train/H1sUHgb0Z/H1sUHgb0Z.md +392 -0
  26. parse/train/H1sUHgb0Z/H1sUHgb0Z_content_list.json +0 -0
  27. parse/train/H1sUHgb0Z/H1sUHgb0Z_middle.json +0 -0
  28. parse/train/H1sUHgb0Z/H1sUHgb0Z_model.json +0 -0
  29. parse/train/HJxNAnVtDS/HJxNAnVtDS.md +0 -0
  30. parse/train/HJxNAnVtDS/HJxNAnVtDS_content_list.json +0 -0
  31. parse/train/HJxNAnVtDS/HJxNAnVtDS_middle.json +0 -0
  32. parse/train/HJxNAnVtDS/HJxNAnVtDS_model.json +0 -0
  33. parse/train/Hkc-TeZ0W/Hkc-TeZ0W.md +251 -0
  34. parse/train/Hkc-TeZ0W/Hkc-TeZ0W_content_list.json +1344 -0
  35. parse/train/Hkc-TeZ0W/Hkc-TeZ0W_middle.json +0 -0
  36. parse/train/Hkc-TeZ0W/Hkc-TeZ0W_model.json +0 -0
  37. parse/train/Hke3gyHYwH/Hke3gyHYwH.md +607 -0
  38. parse/train/Hke3gyHYwH/Hke3gyHYwH_content_list.json +0 -0
  39. parse/train/Hke3gyHYwH/Hke3gyHYwH_middle.json +0 -0
  40. parse/train/Hke3gyHYwH/Hke3gyHYwH_model.json +0 -0
  41. parse/train/Hye4WaVYwr/Hye4WaVYwr.md +0 -0
  42. parse/train/Hye4WaVYwr/Hye4WaVYwr_content_list.json +0 -0
  43. parse/train/Hye4WaVYwr/Hye4WaVYwr_middle.json +0 -0
  44. parse/train/Hye4WaVYwr/Hye4WaVYwr_model.json +0 -0
  45. parse/train/HyeVtoRqtQ/HyeVtoRqtQ.md +443 -0
  46. parse/train/HyeVtoRqtQ/HyeVtoRqtQ_content_list.json +0 -0
  47. parse/train/HyeVtoRqtQ/HyeVtoRqtQ_middle.json +0 -0
  48. parse/train/HyeVtoRqtQ/HyeVtoRqtQ_model.json +0 -0
  49. parse/train/HyrCWeWCb/HyrCWeWCb.md +428 -0
  50. parse/train/HyrCWeWCb/HyrCWeWCb_content_list.json +2149 -0
parse/train/-zgb2v8vV_w/-zgb2v8vV_w.md ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Adaptive Risk Minimization: Learning to Adapt to Domain Shift
2
+
3
+ Marvin Zhang⇤1, Henrik Marklund⇤2, Nikita Dhawan⇤1, Abhishek Gupta1, Sergey Levine1, Chelsea Finn2
4
+
5
+ 1 UC Berkeley, 2 Stanford University
6
+
7
+ # Abstract
8
+
9
+ A fundamental assumption of most machine learning algorithms is that the training and test data are drawn from the same underlying distribution. However, this assumption is violated in almost all practical applications: machine learning systems are regularly tested under distribution shift, due to changing temporal correlations, atypical end users, or other factors. In this work, we consider the problem setting of domain generalization, where the training data are structured into domains and there may be multiple test time shifts, corresponding to new domains or domain distributions. Most prior methods aim to learn a single robust model or invariant feature space that performs well on all domains. In contrast, we aim to learn models that adapt at test time to domain shift using unlabeled test points. Our primary contribution is to introduce the framework of adaptive risk minimization (ARM), in which models are directly optimized for effective adaptation to shift by learning to adapt on the training domains. Compared to prior methods for robustness, invariance, and adaptation, ARM methods provide performance gains of $1 - 4 \%$ test accuracy on a number of image classification problems exhibiting domain shift.
10
+
11
+ # 1 Introduction
12
+
13
+ The standard assumption in empirical risk minimization (ERM) is that the data distribution at test time will match the training distribution. When this assumption does not hold, i.e., when there is distribution shift, the performance of standard ERM methods can deteriorate significantly [54, 38].
14
+
15
+ As an example which we study quantitatively in Section 5, consider a handwriting classification model that, after training on data from past users, is deployed to new end users. Each new user represents a new test distribution that differs from the training distribution. Thus, each test setting involves dealing with shift. In Figure 1, we visualize a batch of 50 examples from a test user, and we highlight an ambiguous example which may be either a “2” (written with a loop) or an “a” (in the double-storey style) depending on the user’s handwriting. Due to the biases in the training data, an ERM trained model incorrectly classifies this example as “2”. However, we can see that the batch of images from this test user contains other examples of “2” (written without loops) and “a” (also double-storey) from this user. Can we somehow leverage this unlabeled data to better handle test shifts caused by new users?
16
+
17
+ ![](images/eba7790167eea1016adf846184d756ac9c24d137f32ef1c5973b0041f9f7837b.jpg)
18
+ Figure 1: An example of ambiguous data points in handwriting classification, evaluated quantitatively in Section 5.
19
+
20
+ Any framework that aims to address this question must use additional assumptions beyond the ERM setting, and many such frameworks have been proposed $\pmb { \Vert 5 4 \Vert }$ . One commonly used assumption within several frameworks, such as domain generalization [7, 23], is that the training data are provided in domains and distributions at test time will represent new domains. The example above neatly fits this description if we equate users with domains – we would be assuming that the training data are organized by users and that the model will be tested separately on new users, and these are reasonable assumptions. Constructing training domains in practice is generally accomplished by using meta-data, which exists for many commonly used datasets. Thus, this domain assumption is applicable for a wide range of realistic distribution shift problems (see, e.g., Koh et al. [35]).
21
+
22
+ However, prior benchmarks for domain generalization and similar settings typically center around invariances – i.e., in these benchmarks, there is a consistent input-output relationship across all domains, and the goal is to learn this relationship while ignoring the spurious correlations within the domains (see, e.g., Gulrajani and Lopez-Paz $[ \overbar { 1 2 3 } ] \cdot$ ). Thus, prior methods aim for generalization to shifts by discovering this relationship, through techniques such as robust optimization and learning an invariant feature space [41, 3, 60]. These methods are appealing in that they make minimal assumptions about the information provided at test time – in particular, they do not require test labels, and the learned model can be immediately applied to predict on a single point. Nevertheless, these methods also have limitations, such as in dealing with problems where the input-output relationship varies across domains, e.g., the handwriting classification example above.
23
+
24
+ In this paper, we instead focus on methods that aim to adapt at test time to domain shift. To do so, we study problems in which it is both feasible and helpful (and perhaps even necessary) to assume access to a batch or stream of inputs at test time. Leveraging this test assumption does not require labels for any test data and is feasible in many practical setups. For example, for handwriting classification, we do not access only single handwritten characters from an end user, but rather collections of characters such as sentences or paragraphs. Unlabeled adaptation has been shown empirically to be useful for distribution shift problems $[ \dot { \overline { { 6 9 } } } , \overline { { 6 3 } } , \overline { { 7 5 } } ]$ , such as for dealing with image corruptions $\mathbb { \left[ \left. 2 5 \right] \right. }$ . Taking inspiration from these findings, we propose and evaluate on a number of problems, detailed in Section 5, for which adaptation is beneficial in dealing with domain shift.
25
+
26
+ Our main contribution is to introduce the framework of adaptive risk minimization (ARM), which proposes the following objective: optimize the model such that it can maximally leverage the unlabeled adaptation phase to handle domain shift. To do so, we instantiate a set of methods that, given a set of training domains, meta-learns a model that is adaptable to these domains. These methods are straightforward extensions of existing meta-learning approaches, thereby demonstrating that tools from the meta-learning toolkit can be readily adapted to tackle domain shift. Our experiments in Section 5 test on several image classification problems, derived from benchmarks for federated learning [9] and image classifier robustness $\mathbb { \lVert 2 5 \rVert }$ , in which training and test domains share structure that can be leveraged for improved performance. These testbeds are also a contribution of our work, as we believe these problems can supplement existing benchmarks which, almost exclusively, are designed with invariance in mind $[ \sqrt { 3 } , \sqrt { 5 3 } , \sqrt { 2 3 } ]$ . We also evaluate on the WILDS suite of distribution shift problems $\begin{array} { r l } { { \bigl [ \bigl | 3 5 \bigr | \bigr ] } } & { { } } \end{array}$ , which have been curated to faithfully represent important real world problems. Empirically, we demonstrate that the proposed ARM methods, by leveraging meta-training and test time adaptation, are often able to outperform prior state-of-the-art methods by $1 \%$ test accuracy.
27
+
28
+ # 2 Related Work
29
+
30
+ A number of prior works have studied distribution shift in various forms $[ [ 5 4 ]$ . In this section, we review prior work in domain generalization, group robustness, meta-learning, and adaptation.
31
+
32
+ Invariance and robustness to domains. As discussed above, a number of frameworks leverage training domains to address test time shift. The terminology in prior work is scattered and, depending on the application, includes terms such as “groups”, “datasets”, “subpopulations”, and “users”; in this work, we adopt the term “domains” which we believe is an appropriate unifying term. A number of testbeds for this problem setting have been proposed for image classification, including generalizing to new datasets $\sharp$ , new image types $\pm \boxed { 1 3 9 } \boxed { 5 3 } \cdots$ , and underrepresented demographics $\bar { \mathbb { E O } } \mathbb { I }$ .
33
+
34
+ Prior benchmarks typically assume the existence of a consistent input-output relationship across domains that is learnable by the specified model, thus motivating methods such as learning an invariant feature space [41, 44, 3] or optimizing for worst case group performance $\pmb { \mathbb { B O } } \pmb { \mathbb { G O } } \mathbf { j }$ . In particular, methods for domain generalization – sometimes referred to as multi-source domain adaptation $\lVert \rVert$ or zero shot domain adaptation $\left[ \left[ 7 8 \right] \right]$ – have largely focused on learning invariant features [19, 67, 41, 44, 53]. Gulrajani and Lopez-Paz $\pmb { \left. \pmb { \left. \mathscr { Z } 3 \right. } \right. }$ provide a comprehensive survey of domain generalization benchmarks and find that, surprisingly, ERM is competitive with the state of the art across all the benchmarks considered. In Appendix C, we discuss this finding as well as the performance of an ARM method on this benchmark suite. In Section 5, we identify different problems for which adaptation is helpful, and we find that, on these problems, ARM methods consistently outperform ERM and other non adaptive methods for robustness and invariance.
35
+
36
+ Meta-learning. Meta-learning [62, 6, 71, 27] has been most extensively studied in the context of few shot labeled adaptation [61, 74, 55, 18, 65]. Our aim is not to address few-shot recognition problems, nor to propose a novel meta-learning algorithm, but rather to extend meta-learning paradigms to problems requiring unlabeled adaptation, with the primary goal of tackling distribution shift. This aim differs from previous work in meta-learning for domain generalization $[ \bar { 4 0 } , \bar { 1 } 5 ]$ , which seek to metatrain models for non adaptive generalization performance. We discuss in Section 4 how paradigms such as contextual meta-learning [20, 57] can be readily extended using the ARM framework.
37
+
38
+ Some other meta-learning methods adapt using both labeled and unlabeled data, either in the semi supervised learning setting [56, 81, 42] or the transductive learning setting [51, 46, 2, 29]. These works all assume access to labeled data for adaptation, whereas we propose methods and problems for purely unlabeled adaptation. Prior works in meta-learning for unlabeled adaptation include Yu et al. $\mathbf { [ 8 0 ] }$ , who adapt a policy to imitate human demonstrations in the context of robotic learning; Metz et al. $\lVert \rVert \mathbf { 4 8 } \rVert$ , who meta-learn an update rule for unsupervised representation learning, though they still require labels to learn a predictive model; and Alet et al. [1], who meta-learn adaptive models based on task specific unsupervised objectives. Unlike these prior works, we propose a general framework for tackling distribution shift problems by meta-learning unsupervised adaptation strategies. This framework simplifies the extension of meta-learning paradigms to these problems, encapsulates previous approaches such as the gradient based meta-learning approach of Yu et al. $\pmb { \| 8 0 \| }$ , and sheds light on how to improve existing strategies such as adaptation via batch normalization [43].
39
+
40
+ Adaptation to shift. Unlabeled adaptation has primarily been studied separately from meta-learning. Domain adaptation is a prominent framework that assumes access to test examples at training time $\boxed { 1 3 } , \boxed { 7 6 }$ , similar to transductive learning $\mathbb { | \overline { { { | Z 3 \| } } } | }$ . As such, most domain adaptation methods consider the problem setting where there is a single test distribution $\lVert 6 4 \rVert , \lVert 4 \rVert , \lVert 2 2 \rVert , \dot { \lVert 1 9 \rVert } , \lVert 7 2 \rVert , \lVert 0 \rVert$ , and some of these methods are difficult to apply to problems where there are multiple test distributions. Certain domain adaptation methods have also been applied in the domain generalization setting, such as methods for learning invariant features [19, 67, 41], and we compare to these methods in Section 5.
41
+
42
+ Adaptive methods for domain generalization include Muandet et al. $\mathbb { \oplus 2 }$ and Kumagai and Iwata $\pmb { \Vert 3 7 } \Vert$ who propose a method similar to one of the ARM methods described below. We compare to a version of this method in Appendix E. Blanchard et al. [7] and Blanchard et al. $\pmb { \mathbb { B } } \|$ provide a theoretic study of domain generalization and establish favorable generalization bounds for models that can adapt to domain shift at test time. We summarize some of these results in $\mathsf { S e c t i o n } \ 3 .$ In comparison, our work establishes a framework that makes explicit the connection between adaptation to domain shift and meta-learning, allowing us to devise new methods in a straightforward and principled manner. These methods are amenable to expressive models such as deep neural networks, which enables us to propose and evaluate on problems with raw image observations.
43
+
44
+ Test time adaptation has also been studied for dealing with label shift $\mathbb { \lVert 5 9 \rVert \lVert 5 \rVert \lVert 6 6 \rVert }$ and crafting favorable inductive biases for the domain of interest. For image classification, techniques such as normalizing via the test inputs $\mathbb { E 3 }$ and optimizing self-supervised surrogate losses $\lVert \boldsymbol { 6 9 } \rVert$ have proven effective for adapting to image corruptions $\pmb { \pmb { \bar { 2 } 5 } }$ . We compare to these prior methods in Section 5 and empirically demonstrate the advantage of using training domains to learn how to adapt.
45
+
46
+ # 3 Preliminaries and Notation
47
+
48
+ In this section, we discuss the domain generalization problem setting and formally describe adaptive models. In Section 4, we discuss how adaptive models can be meta-trained via the ARM objective and approach, and we instantiate ARM methods which we empirically evaluate in Section 5.
49
+
50
+ Let $\mathbf { x } \in \mathcal { X }$ and $y \in \mathcal { V }$ represent the input and output, respectively. We can formalize the domain generalization problem setting using the following data generation process $\textcircled { 8 } \textcircled { 1 8 }$ : first, a joint data distribution $p _ { \mathbf { x } y }$ is sampled from a set of distributions $\mathcal { P } _ { \mathbf { x } y }$ , and then some data points are sampled from $p _ { \mathbf { x } y } \underline { { \mathbb { I } } }$ We refer to each $p _ { \mathbf { x } y }$ as a domain, e.g., a particular dataset or user, thus $\mathcal { P } _ { \mathbf { x } y }$ represents the set of all possible domains. We assume that the training dataset is composed of data from $S$ runs of this generative process, organized by domain. An equivalent characterization which we will use for clarity is that, within the training set, there are $S$ domains, and each data point $( \mathbf { x } ^ { ( i ) } , y ^ { ( i ) } )$ is annotated with a domain label $z ^ { ( i ) }$ . Each $z ^ { ( i ) }$ is an integer that takes on a value between 1 and $S$ , indicating which $p _ { \mathbf { x } y }$ generated the $i$ -th training point (though, of course, we do not have access to, or knowledge of, $p _ { \mathbf { x } y }$ itself). At test time, there may be multiple evaluation settings, where each setting is considered separately and contains only unlabeled data sampled via a new run of the same generative process. This data may represent, e.g., a new dataset or user, and the test domains are likely to be distinct from the training domains when $| \mathcal { P } _ { { \bf x } y } |$ is large or infinite.
51
+
52
+ Our formal goal is to optimize for expected performance, e.g., classification accuracy, at test time. To do so, let us first consider predictive models of the form $f : \mathcal { X } \times \mathcal { P } _ { \mathbf { x } } \mathcal { Y }$ , where the model $f$ takes in not just an input $\mathbf { x }$ but also the marginal input distribution $p _ { \mathbf { x } } \in \mathcal { P } _ { \mathbf { x } }$ that $\mathbf { x }$ was sampled from. We refer to $f$ as an adaptive model, as it has the opportunity to use $p _ { \mathbf { x } }$ to adapt its predictions on $\mathbf { x }$ . The underlying assumption is that $p _ { \mathbf { x } }$ provides information about $p _ { y | \mathbf { x } }$ , i.e., $p _ { \mathbf { x } }$ is used as a surrogate input in place of $p _ { \mathbf { x } y }$ . In the worst case, if $p _ { \mathbf { x } }$ and $p _ { y | \mathbf { x } }$ are sampled independently, then the model does not benefit at all from knowing $p _ { \mathbf { x } }$ . In many problems, however, we expect knowledge about $p _ { \mathbf { x } }$ to be useful, e.g., for resolving ambiguity as in the handwriting classification example in Section 1.
53
+
54
+ Theoretically, when $p _ { \mathbf { x } }$ provides information about $p _ { y | \mathbf { x } }$ , and when training and test domains are drawn from the same distribution over $\mathcal { P } _ { \mathbf { x } y }$ , we can establish favorable generalization bounds for the expected performance of $f$ in adapting to domain shift at test time. We can formalize this as follows. First, define a prediction model to be a non adaptive model of the form $g : \mathcal { X } \mathcal { Y }$ , and define the risk for a prediction model $g$ and loss function $\ell$ , under a data distribution $p _ { \mathbf { x } y }$ , as
55
+
56
+ $$
57
+ \mathcal { R } ( g , p _ { \mathbf { x } y } ) \triangleq \mathbb { E } _ { p _ { \mathbf { x } y } } \left[ \ell ( g ( \mathbf { x } ) , y ) \right] .
58
+ $$
59
+
60
+ Further, define the Bayes optimal risk for $\ell$ under $p _ { \mathbf { x } y }$ as
61
+
62
+ $$
63
+ \begin{array} { r } { \mathcal { R } ^ { \star } ( p _ { \mathbf { x } y } ) \triangleq \underset { g } { \operatorname* { m i n } } \mathcal { R } ( g , p _ { \mathbf { x } y } ) . } \end{array}
64
+ $$
65
+
66
+ Let $\mu$ denote the distribution on $\mathcal { P } _ { \mathbf { x } y }$ from which training and test domains $p _ { \mathbf { x } y }$ are sampled. To avoid overlapping terms, define the adaptive risk for an adaptive model $f$ and $\ell$ , under $\mu$ , to be
67
+
68
+ $$
69
+ \begin{array} { r } { \mathcal { E } ( f , \mu ) \triangleq \mathbb { E } _ { \mu } \left[ \mathbb { E } _ { p _ { \mathbf { x } _ { y } } } \left[ \ell ( f ( \mathbf { x } , p _ { \mathbf { x } } ) , y ) \right] \right] . } \end{array}
70
+ $$
71
+
72
+ We state the following result from Blanchard et al. $\pmb { \mathbb { B } } ] \mathbf l$ , which details a condition on $\mu$ under which $\mathcal { E }$ is a strongly principled objective for learning adaptive models.
73
+
74
+ Lemma 9 from Blanchard et al. [8]. Let $f ^ { \star }$ denote a minimizer of $\mathcal { E }$ for the given $\mu$ . If $\mu$ is a distribution on $\mathcal { P } _ { \mathbf { x } y }$ such that $\mu$ -almost surely it holds that $p _ { y | \mathbf { x } } = M ( p _ { \mathbf { x } } )$ for some deterministic mapping $M$ , then for $\mu$ -almost all $p _ { \mathbf { x } y }$ , we have
75
+
76
+ $$
77
+ \begin{array} { r } { \mathcal { R } \big ( f ^ { \star } \big ( \cdot , p _ { \mathbf { x } } \big ) , p _ { \mathbf { x } y } \big ) = \mathcal { R } ^ { \star } \big ( p _ { \mathbf { x } y } \big ) \implies \mathcal { E } \big ( f ^ { \star } , \mu \big ) = \mathbb { E } _ { \mu } \left[ \mathcal { R } ^ { \star } ( p _ { \mathbf { x } y } ) \right] . } \end{array}
78
+ $$
79
+
80
+ In other words, an adaptive model which minimizes the adaptive risk $\mathcal { E }$ coincides with a Bayes optimal decision function for $p _ { \mathbf { x } y }$ , for $\mu$ -almost all domains $p _ { \mathbf { x } y }$ .
81
+
82
+ Remark. The required condition on $\mu -$ that $p _ { y | \mathbf { x } }$ is determined by $p _ { \mathbf { x } }$ – holds if, and only if, an expert (or oracle) is able to correctly label inputs from a given domain provided only information about the input distribution. This condition holds for the testbeds proposed in this paper, those in Gulrajani and Lopez-Paz $\mathbb { \left. 2 3 \right. }$ , and those in WILDS $\mathbb { \lVert 3 5 \rVert }$ . The condition does not hold for, e.g., standard few shot learning testbeds, where it is possible for two domains with identical input distributions to shuffle their label orderings differently $\pmb { \hat { \mathbb { Z } } } \pmb { \mathbb { \| } }$ . Thus, these problems are outside the scope of this work.
83
+
84
+ This result provides strong justification for learning adaptive models $f$ by minimizing the adaptive risk $\mathcal { E }$ . However, a practical instantiation of this approach requires some approximations. First, we do not know and cannot input $p _ { \mathbf { x } }$ to $f$ in most cases. Instead, we instantiate $f$ such that it takes in a batch of inputs $\mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K }$ , all from the same domain, where $K$ can vary. $f$ makes predictions on the whole batch, which also serves as an empirical approximation (i.e., a histogram) $\hat { p } _ { \bf x }$ of $p _ { \mathbf { x } } \mathinner { \| { \boldsymbol { \mathrm { B } } } \| }$ . In our exposition, we will assume that a batch of unlabeled points is available at test time for adaptation. However, we also experiment in $\mathtt { S e c t i o n } 5$ with the streaming setting where the test inputs are observed one at a time and adaptation occurs incrementally.
85
+
86
+ Notice that, if we instead passed in an approximation $\hat { p } _ { { \bf x } y }$ of $p _ { \mathbf { x } y }$ to the model, such as a batch of labeled data $( { \bf x } _ { 1 } , y _ { 1 } ) , \dots , ( { \bf x } _ { K } , y _ { K } )$ , then this setup would resemble the standard few shot metalearning problem $\pmb { \Vert 7 4 \Vert }$ . Formally, a meta-learning model takes in both an input $\mathbf { x }$ and $\hat { p } _ { { \bf x } y }$ , which approximates the distribution that $\mathbf { x }$ was sampled from and thus can be used to adapt the prediction on $\mathbf { x }$ . Compared to our problem setting, the meta-learning formalism can tackle a wider range of problems but also requires more restrictive assumptions, specifically, labels at test time via $\hat { p } _ { { \bf x } y }$ . Transductive meta-learning methods further assume that, in addition to $\hat { p } _ { { \bf x } y }$ , a full batch of inputs $\mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K }$ is passed into the model, which allows for better estimation of the input distribution $p _ { \mathbf { x } }$ [51, 46, 29]. The model then makes predictions on this entire batch. In meta-learning terminology, $\hat { p } _ { { \bf x } y }$ and $\mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K }$ are often referred to as the support and query, respectively. Therefore, another interpretation of the adaptive models that we study in this work is that they resemble transductive meta-learning models, but they are given only the unlabeled query and not the labeled support set.
87
+
88
+ In the next section, we expand on this connection to develop the ARM framework, which then allows us to bring forward tools from meta-learning to tackle domain shift problems.
89
+
90
+ # 4 Adaptive Risk Minimization
91
+
92
+ In this section, we formally describe the ARM framework, which defines an objective for training adaptive models to tackle domain shift. Furthermore, we propose a general meta-learning algorithm as well as specific methods for optimizing the ARM objective. In Section 5, we test these ARM methods on problems for which unlabeled adaptation can be leveraged for better test performance.
93
+
94
+ # 4.1 Devising the ARM objective
95
+
96
+ We wish to learn an adaptive model $f : \mathcal { X } ^ { K } \to \mathcal { Y } ^ { K }$ to tackle domain shift. As noted, meta-learning methods for labeled adaptation study a similar form of model, and a common approach in many of these methods is to define $f$ such that it is composed of two parts: first, a learner which ingests the data and produces parameters, and second, a prediction model which uses these parameters to make predictions $\boxed { 7 4 } , \boxed { 1 8 } \vert$ . We will follow a similar strategy which, as we will discuss in subsection 4.2, allows us to easily extend and design meta-learning methods towards our goal.
97
+
98
+ In particular, we will decompose the model $f$ into two modules: a standard prediction model $g ( \cdot ; \theta ) : \mathcal { X } \to \mathcal { Y } _ { }$ , that is parameterized by $\theta \in \Theta$ and predicts $y$ given $\mathbf { x }$ , and an adaptation model $h ( \cdot , \cdot ; \phi ) : \ \Theta \times \mathcal { X } ^ { K } \Theta$ , which is parameterized by $\phi$ . $h$ takes in the prediction model parameters $\theta$ and $K$ unlabeled data points and uses the $K$ points to produce adapted parameters $\theta ^ { \prime }$ . This is analogous to the learner in meta-learning, however, $h$ adapts the model parameters using only unlabeled data. We defer the discussion of how to instantiate $h$ to subsection 4.2.2
99
+
100
+ The ARM objective is to optimize $\phi$ and $\theta$ such that $h$ can adapt $g$ using unlabeled data sampled according to a particular domain $z$ . This can be expressed as the optimization problem
101
+
102
+ $$
103
+ \operatorname* { m i n } _ { \theta , \phi } \hat { \mathcal { E } } ( \theta , \phi ) = \mathbb { E } _ { p _ { z } } \left[ \mathbb { E } _ { p _ { \mathbf { x } \cdot p } | z } \left[ \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \ell ( g ( \mathbf { x } _ { k } ; \theta ^ { \prime } ) , y _ { k } ) \right] \right] , \mathrm { ~ w h e r e ~ } \theta ^ { \prime } = h ( \theta , \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K } ; \phi ) .
104
+ $$
105
+
106
+ Note that $\hat { \mathcal { E } }$ is the empirical form of the adaptive risk in $\mathrm { E q u a t i o n } 1$ for the form of $f$ we have defined. Mimicking the generative process from Section 3 that we assume generated the training data, $p _ { z }$ is a categorical distribution over $\{ 1 , \ldots , S \}$ which places uniform probability mass on each training domain, and $p _ { \mathbf { x } y | z }$ assigns uniform probability to only the training points within a particular domain. As we have established theoretically, we expect the trained models to perform well at test time if the test domains are sampled independently and identically – i.e., from the same distribution over $\mathcal { P } _ { \mathbf { x } y } -$ as the training domains. In practice, similar to how meta-learned few shot classification models are evaluated on new and unseen meta-test classes $\textcircled { 7 4 } , \textcircled { 1 8 } \textcircled { }$ , we empirically show in Section 5 that the trained models can generalize to test domains that are not sampled identically to the training domains.
107
+
108
+ # 4.2 Optimizing the ARM objective
109
+
110
+ Algorithm 1 presents a general meta-learning approach for optimizing the ARM objective. As described above, $h$ outputs updated parameters $\theta ^ { \prime }$ using an unlabeled batch of data (line 5). This mimics the adaptation procedure at test time, where we do not assume access to labels (lines 7-8). However, the training update itself does rely on the labels (line 6). We assume that $h$ is differentiable with respect to its input $\theta$ and $\phi$ , thus we use gradient updates on both $\theta$ and $\phi$ to optimize for post adaptation performance on a mini batch of data sampled according to a particular domain $z$ . In practice, we also sample mini batches of domains, rather than just one domain (as written in line 3), to provide a better gradient signal for optimizing $\phi$ and $\theta$
111
+
112
+ # Algorithm 1 Meta-Learning for ARM
113
+
114
+ // Training procedure
115
+
116
+ Require: # training steps $T$ , batch size $K$ , learning rate $\eta$
117
+
118
+ 1: Initialize: $\theta , \phi$
119
+ 2: for $t = 1 , \dots , T$ do
120
+ 3: Sample $z$ uniformly from training domains
121
+ 4: Sample $( \mathbf { x } _ { k } , y _ { k } ) \sim p ( \cdot , \cdot | z )$ for $k = 1 , \ldots , K$
122
+ 5: $\theta ^ { \prime } \gets h ( \theta , \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K } ; \phi )$
123
+ 6: $\begin{array} { r } { ( \theta , \phi ) ( \theta , \phi ) - \eta \nabla _ { ( \theta , \phi ) } \sum _ { k = 1 } ^ { K } \ell ( g ( \mathbf { x } _ { k } ; \theta ^ { \prime } ) , y _ { k } ) } \end{array}$
124
+
125
+ // Test time adaptation procedure
126
+
127
+ Require: $\theta , \phi$ , test batch $\mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K }$ 7: $\theta ^ { \prime } \gets h ( \theta , \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K } ; \phi )$ 8: $\hat { y } _ { k } \gets g ( \mathbf x _ { k } ; \theta ^ { \prime } )$ for $k = 1 , \ldots , K$
128
+
129
+ Together, Equation 2 and Algorithm 1 shed light on a number of ways to devise methods for solving the ARM problem. First, we can extend meta-learning paradigms to the ARM problem setting, and any paradigm in which the adaptation model $h$ can be augmented to operate on unlabeled data is readily applicable. As an example, we propose the ARM-CML method, which is inspired by recent works in contextual meta-learning (CML) [20, 57]. Second, we can enhance prior unlabeled adaptation methods by incorporating a meta-training phase that allows the model to better leverage the adaptation. To this end, we propose the ARM-BN method, based on the general approach of adapting using batch normalization (BN) statistics of the test inputs [43, 63, 33, 50]. Third, we can incorporate existing methods for meta-learning unlabeled adaptation to solve domain shift problems. We demonstrate this by proposing the ARM-LL method, which is based on the robotic imitation learning method from Yu et al. $\pmb { \Vert 8 0 \Vert }$ which adapts via a learned loss (LL). All of these methods are straightforward extensions of existing meta-learning and adaptation methods, and this is intentional – we aim to show how existing tools can be readily adapted to tackle domain generalization problems. We summarize the methods here and refer the reader to Appendix B for complete details.
130
+
131
+ ARM-CML. In ARM-CML, the parameters $\phi$ of $h$ define the weights of a context network $\mathrm { f } _ { \mathrm { c o n t } } ( \cdot ; \boldsymbol { \phi } ) : \mathcal { X } \to \mathbb { R } ^ { D }$ , parameterized by the adaptation model parameters $\phi$ . We also instantiate the model with a prediction network $\operatorname { f } _ { \mathrm { p r e d } } ( \cdot , \cdot ; \boldsymbol { \theta } ) \dot { : } \mathcal { X } \times \mathbb { R } ^ { D } \dot { \mathcal { V } }$ , parameterized by $\theta$ . When given a mini batch of inputs, $\mathrm { f _ { c o n t } }$ processes each example $\mathbf { x } _ { k }$ in the mini batch separately and outputs $\mathbf { c } _ { k } \in \mathbb { R } ^ { D }$ for $k = 1 , \ldots , K$ , which are averaged together into a context $\begin{array} { r } { { \mathbf c } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } { \mathbf c } _ { k } } \end{array}$ . $D$ is a hyperparameter, and in our experiments, we choose to be the dimensionality of $\mathbf { x }$ , such that we can concatenate each image $\mathbf { x } _ { k }$ and the context c along the channel dimension to produce the input to $\mathrm { f _ { p r e d } }$ . In other words, $\mathrm { f _ { p r e d } }$ processes each $\mathbf { x } _ { k }$ separately to produce an estimate of the output $\hat { y } _ { k }$ , but it additionally receives c as input. In this way, $\mathbf { f } _ { \mathrm { c o n t } }$ can provide information about the entire batch of $K$ unlabeled data points to $\mathrm { f _ { p r e d } }$ for predicting the correct outputs.
132
+
133
+ Note that the difference between ARM-CML and prior contextual meta-learning approaches is that, in prior approaches, the context network processes both inputs and outputs to produce each $\mathbf { c } _ { k }$ ARM-CML is designed for the domain generalization setting in which we do not assume access to labels at test time, thus we meta-train for unlabeled adaptation performance at training time.
134
+
135
+ ARM-BN. ARM-BN is a particularly simple method that is applicable for any model $g$ that has BN layers [31] . Practically, training $g$ via ARM-BN follows the same protocol as Ioffe and Szegedy [31] except for two key differences: first, the training batches are sampled from a single domain, rather than from the entire dataset, and second, the normalization statistics are recomputed at test time rather than using a training running average. As noted, this second difference has been explored by several works as a method for test time adaptation, but the first difference is novel to ARM-BN. Following $\mathbb { E } \mathrm { { g o r i t h m } 1 } ,$ ARM-BN defines a meta-training procedure in which $g$ learns to adapt – i.e., compute normalization statistics – using batches of training points sampled from the same domain. We empirically show in Section 5 that, for problems where BN adaptation already has a favorable inductive bias, such as for image classification, further introducing meta-training boosts its performance. We believe that other test time adaptation methods, such as those based on optimizing surrogate losses [69, 75], may similarly benefit from their corresponding meta-training procedures.
136
+
137
+ At a high level, ARM-BN operates in a similar fashion to ARM-CML, thus we group these methods together into the umbrella of contextual approaches, shown in Figure 2 (top). The interpretation of ARM-BN through the contextual approach is that $h$ replaces the running statistics used by standard BN with statistics computed on the batch of inputs, which then serves as the context c. Thus, for ARM-BN, there is no context network, and $h$ has no parameters beyond the model parameters $\theta$ involved in computing BN statistics. The model $g$ is again specified via a prediction network $\mathrm { f _ { p r e d } }$ , which must have BN layers. BN typically tracks a running average of the first and second moments of the activations in these layers, which are then used at test time. ARM-BN defines $h$ such that it swaps out these moments for the moments computed via the activations on the test batch, thus giving us adapted parameters $\theta ^ { \prime }$ if we view the moments as part of the model parameters. This method is remarkably simple, and in deep learning libraries such as PyTorch $\mathbb { \left. \boldsymbol { \bar { 5 2 } } \right. }$ , implementing ARM-BN involves changing a single line of code. However, as shown in Section 5, this method also performs very well empirically, and the adaptation effectiveness is further boosted by meta-training.
138
+
139
+ ![](images/4ad1ef1b3fb03fae82f6ea01d66756eaf3c7dbbf0305e9efb4474eae17a454b3.jpg)
140
+ Figure 2: In the contextual approach (top), $\mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K }$ are summarized into a context c, and we propose two methods for this summarization, either through a separate context network or using batch normalization activations in the model itself. c can then be used by the model to infer additional information about the input distribution. In the gradient based approach (bottom), an unlabeled loss function $\mathcal { L }$ is used for gradient updates to the model parameters, in order to produce parameters that are specialized to the test inputs and can produce more accurate predictions.
141
+
142
+ ARM-LL. ARM-LL, depicted in Figure 2 (bottom), follows the gradient based meta-learning paradigm $\mathbb { \lVert 1 8 \rVert }$ and learns parameters $\theta$ that are amenable to gradient updates on a loss function in order to quickly adapt to a new problem. In other words, $h$ produces $\theta ^ { \prime } \bar { = } \theta - \alpha \nabla _ { \theta } \mathcal { L } ( \theta , \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { K } ; \phi )$ , where $\alpha$ is a hyperparameter. Note that the loss function $\mathcal { L }$ used in the gradient updates is different from the original supervised loss function $\ell$ , in that it operates on only the inputs $\mathbf { x }$ , rather than the input output pairs that $\ell$ receives. We follow the general implementation of this approach proposed in Yu et al. $\pmb { \| 8 0 \| }$ . We define $g$ to produce output features $\mathbf { o } \in \mathbb { R } ^ { | \mathcal { V } | }$ that are used as logits when making predictions. We then define the unlabeled loss function $\mathcal { L }$ to be the composition of $g$ and a loss network $\mathsf { f } _ { \mathrm { l o s s } } ( \cdot ; \boldsymbol { \phi } ) : \mathbb { R } ^ { | \mathcal { V } | } \mathbb { R }$ , which takes in the output features from $g$ and produces a scalar. We use the $\ell _ { 2 }$ -norm of these scalars across the batch of inputs as the loss for updating $\theta$ . In other words, $h ( \theta , \mathbf { x } _ { 1 } , . . . , \mathbf { x } _ { K } ; \phi ) = \theta - \alpha \nabla _ { \theta } \| \mathbf { v } \| _ { 2 }$ , where $\mathbf { v } = [ \mathbf { f } _ { \mathrm { l o s s } } ( g ( \mathbf { x } _ { 1 } ; \theta ) ; \phi ) , \dots , \mathbf { f } _ { \mathrm { l o s s } } ( g ( \mathbf { x } _ { K } ; \theta ) ; \phi ) ]$ .
143
+
144
+ # 5 Experiments
145
+
146
+ Our experiments are designed to answer the following questions:
147
+
148
+ 1. Do ARM methods learn models that can leverage unlabeled adaptation to tackle domain shift?
149
+ 2. How do ARM methods compare to prior methods for robustness, invariance, and adaptation?
150
+ 3. Can models trained via ARM methods adapt successfully in the streaming test setting?
151
+
152
+ # 5.1 Evaluation domains and protocol
153
+
154
+ We propose four image classification problems, which we present below and describe in full detail in Appendix D. We also present results on datasets from the WILDS benchmark [35] in subsection 5.4.
155
+
156
+ We believe that the problems we propose in this paper can supplement existing benchmarks for domain shift, which, as discussed above, are designed to test invariances. A key characteristic of the problems presented here is the potential for adaptation to improve test performance, and this differs from prior benchmarks such as the problems compiled by DomainBed [23]. In Appendix C, we compare our testbeds to DomainBed and group robustness benchmarks, and we briefly discuss the results in Gulrajani and Lopez-Paz $\pmb { \left. \pmb { \left. \bar { 2 . 3 } \right. } \right. }$ , which also evaluate ARM-CML.
157
+
158
+ Rotated MNIST. We study a modified version of MNIST where images are rotated in 10 degree increments, from 0 to 130 degrees. We treat each rotation as a separate domain, i.e., a different value of $z$ . We use only 108 training data points for each of the 2 smallest domains (120 and 130 degrees), and 324 points each for rotations 90 to 110, whereas the overall training set contains 32292 points. In this setting, we hypothesize that adaptation can specialize the model to specific domains, in particular the rare domains in the training set. For each test evaluation, we generate images from the MNIST test set with a certain rotation. We measure both worst case and average accuracy across domains.
159
+
160
+ Federated Extended MNIST (FEMNIST). The extended MNIST (EMNIST) dataset consists of images of handwritten uppercase and lowercase letters, in addition to digits [12]. FEMNIST is the same dataset, but it also provides the meta-data of which user generated each data point [9]. We treat each user as a domain. We measure each method’s worst case and average accuracy across 35 test users, which are held out and thus disjoint from the training users. As discussed in Section 1, adaptation may help for this problem for specializing the model and resolving ambiguous data points.
161
+
162
+ Corrupted image datasets. CIFAR-10-C and Tiny ImageNet-C $\lVert 2 5 \rVert$ augment the CIFAR-10 [36] and Tiny ImageNet test sets with common image corruptions that vary in type and severity. The original goal of these augmented test sets was to benchmark how well methods could handle these corruptions without access to any corruptions during training $\mathbb { \left[ \left[ 2 5 \right] \right] }$ . Thus, successful methods for these problems typically have relied on domain knowledge and heuristics designed specifically for image classification. For example, prior work has shown that carefully designed test time adaptation procedures are effective for these problems [69, 63, 75]. One possible reason for this phenomenon is that convolutional networks are biased toward texture $\scriptstyle { \left[ \left[ 2 1 \right] \right] }$ , which is distorted by corruptions, thus adaptation can help the model recover its performance for each corruption type.
163
+
164
+ We study whether meta-training for adaptation performance can improve upon these results. To do so, we modify the protocol from Hendrycks and Dietterich $\mathbb { \left[ \left[ 2 5 \right] \right] }$ to fit into the ARM problem setting by applying a set of 56 corruptions to the training data, and we define each corruption to be a domain. We use a disjoint set of 22 corruptions for the test data, which are mostly of different types from the training corruptions (thus, not sampled identically), and we measure worst case and average accuracy across the test corruptions. This modification allows us to study, for both ARM and prior methods, whether seeing corruptions at training time can help the model deal with new corruptions at test time.
165
+
166
+ # 5.2 Comparisons and ablations
167
+
168
+ We compare the ARM methods against several prior methods designed for robustness, invariance, and adaptation. We describe the comparisons here and provide additional details in Appendix D.
169
+
170
+ Test time adaptation. We evaluate the general approach of using test batches to compute BN statistics [43, 63, 33, 50], which we term BN adaptation. We also compare to test time training (TTT) $\mathbb { \left| \overline { { 6 9 } } \right| }$ which adapts the model at test time using a self-supervised rotation prediction loss. These methods have previously achieved strong results for image classification, likely because they constitute favorable inductive biases for improving on the true classification task [69].
171
+
172
+ Ablations. We also include ablations of the ARM-CML and ARM-LL methods, which sample training batches of unlabeled examples uniformly from the entire training set, rather than sampling from a single domain.3 These “context ablation” and “learned loss ablation” are similar to test time adaptation methods in that they do not require training domains, thus they allow us to evaluate whether or not meta-training on domain shifts is important for improved performance.
173
+
174
+ Group robustness and invariance. Sagawa et al. $\left[ \left[ 6 0 \right] \right]$ recently proposed a state-of-the-art method for group robustness, and we refer to this approach as distributionally robust neural networks (DRNN). Their work also evaluates a strong upweighting (UW) baseline that samples uniformly from each group, and so we also evaluate this approach in our experiments. Additionally, we compare to
175
+
176
+ Table 1: Worst case (WC) and average (Avg) top 1 accuracy on all testbeds, where means and standard errors are reported across three separate runs of each method. Horizontal lines separate methods that make use of (from top to bottom): neither, training domains, test batches, or both. ARM methods consistently achieve greater robustness, measured by WC, and Avg performance compared to prior methods. $^ { * } \mathrm { U W }$ is identical to ERM for CIFAR-10-C and Tiny ImageNet-C.
177
+
178
+ These results have been updated from an earlier version of the paper, primarily for CIFAR10-C, due to significant refactoring of the code, additional hyperparameter tuning for both the ARM methods and the prior methods, and efforts to standardize results across the authors’ different computing environments and library versions. These results are reproducible from the publicly available code: https://github.com/henrikmarklund/arm.
179
+
180
+ <table><tr><td rowspan="2">Method</td><td colspan="2">MNIST</td><td colspan="2">FEMNIST</td><td colspan="2">CIFAR-10-C</td><td colspan="2">Tiny ImageNet-C</td></tr><tr><td>WC</td><td>Avg</td><td>WC</td><td>Avg</td><td>wC</td><td>Avg</td><td>wC</td><td>Avg</td></tr><tr><td>ERM</td><td>74.5 ± 1.4</td><td>93.6±0.4</td><td>62.4±0.4</td><td>79.1± 0.3</td><td>54.1± 0.3</td><td>70.4± 0.1</td><td>20.3±0.5</td><td>41.9 ± 0.1</td></tr><tr><td>UW*</td><td>80.3 ±1.2</td><td>95.1±0.1</td><td>65.7 ± 0.7</td><td>80.3±0.6</td><td></td><td></td><td></td><td></td></tr><tr><td>DRNN</td><td>79.9 ± 0.7</td><td>94.9 ±0.1</td><td>57.5 ± 1.7</td><td>76.5 ± 1.2</td><td>49.3± 0.9</td><td>65.7 ± 0.5</td><td>14.2 ± 0.2</td><td>31.6 ±1.0</td></tr><tr><td>DANN</td><td>78.8±0.8</td><td>94.9 ± 0.1</td><td>65.4 ± 1.0</td><td>81.7 ± 0.3</td><td>53.9±2.2</td><td>69.8±0.3</td><td>20.4± 0.7</td><td>40.9±0.2</td></tr><tr><td>MMD</td><td>82.4±0.9</td><td>95.3± 0.3</td><td>62.4±0.7</td><td>79.8 ±0.4</td><td>52.2 ±0.3</td><td>69.5 ±0.1</td><td>19.7 ±0.2</td><td>40.1±0.1</td></tr><tr><td>BN adaptation</td><td>78.0±0.3</td><td>94.4± 0.1</td><td>65.7 ± 1.5</td><td>80.0 ±0.5</td><td>60.6±0.3</td><td>70.9 ± 0.1</td><td>26.5 ± 0.3</td><td>42.8 ±0.0</td></tr><tr><td>TTT</td><td>81.1±0.3</td><td>95.4±0.1</td><td>68.6 ±0.4</td><td>84.2±0.1</td><td>61.5 ± 0.3</td><td>71.7 ± 0.5</td><td>27.6± 0.5</td><td>37.7 ± 0.3</td></tr><tr><td>CML ablation</td><td>63.5 ± 1.8</td><td>90.1 ±0.2</td><td>61.8 ±0.8</td><td>81.6 ± 0.5</td><td>58.8 ±0.1</td><td>69.6±0.2</td><td>26.3±0.6</td><td>42.5 ± 0.1</td></tr><tr><td>LL ablation</td><td>79.9 ± 1.1</td><td>95.0± 0.3</td><td>64.1 ± 1.6</td><td>80.8 ±0.2</td><td>60.9 ± 0.4</td><td>71.3 ± 0.0</td><td>21.6 ± 2.1</td><td>32.6 ± 3.2</td></tr><tr><td>ARM-CML</td><td>88.0±0.8</td><td>96.3±0.4</td><td>70.9 ± 1.4</td><td>86.4��0.3</td><td>61.2 ± 0.4</td><td>70.3±0.2</td><td>29.1± 0.4</td><td>43.3 ±0.1</td></tr><tr><td>ARM-BN</td><td>83.3 ±0.5</td><td>95.6 ±0.1</td><td>64.5 ±3.2</td><td>83.2 ± 0.5</td><td>61.7 ± 0.3</td><td>72.4±0.3</td><td>28.3± 0.3</td><td>43.3± 0.1</td></tr><tr><td>ARM-LL</td><td>88.9±0.8</td><td>96.9±0.2</td><td>67.0±0.9</td><td>84.3±0.7</td><td>61.2±0.7</td><td>72.5± 0.4</td><td>25.4± 0.1</td><td>35.7 ±0.4</td></tr></table>
181
+
182
+ domain adversarial neural networks (DANN) $\mathbb { \lVert 1 9 \rVert }$ and maximum mean discrepancy (MMD) feature learning [41], two state-of-the-art methods for adversarial learning of invariant predictive features. For the WILDS datasets, we include the numbers reported in Koh et al. $\pmb { \Vert 3 5 \Vert }$ for DRNN and two other invariance methods, correlation alignment (CORAL) $ { \mathbb { I } } { \mathbb { I } }$ and invariant risk minimization (IRM) [3].
183
+
184
+ Robustness and invariance methods assume access to training domains but not test batches, whereas adaptation methods assume the opposite. Thus, at a high level, we can view the comparisons to these methods as evaluating the importance of each of these assumptions for the specified problems.
185
+
186
+ # 5.3 Quantitative evaluation and comparisons
187
+
188
+ The results for the four proposed benchmarks are presented in Table 1. The best results, stratified by classes of methods, are bolded, with the single best result across all methods underlined. Across all of these problems, ARM methods increase both worst case and average accuracy compared to all other methods. ARM-CML performs well across all tasks, and despite its simplicity, ARM-BN achieves the best performance overall on the corrupted image testbeds, demonstrating the effectiveness of metatraining on top of an already strong adaptation procedure. BN adaptation and TTT are the strongest prior methods, as these adaptation procedures constitute inductive biases that are generally well suited for image classification. However, ARM methods are comparatively less reliant on favorable inductive biases and consistently attain better results. In general, we observe poor performance from robustness methods, varying performance from invariance methods, strong performance from adaptation methods, and the strongest performance from ARM methods.
189
+
190
+ When we cannot access a batch of test points all at once, and instead the points are observed in a streaming fashion, we can augment the proposed ARM methods to perform sequential model updates. For example, ARM-CML and ARM-BN can update their average context and normalization statistics, respectively, after observing each new test point. In Figure 3, we study this test setting for the Tiny ImageNet-C problem. We see that both models trained with ARM-CML and ARM-BN are able to achieve near their original worst case and average accuracy within observing 50 data points, well before the training batch size of 100. This result demonstrates that ARM methods are applicable for problems where test points must be observed one at a time, provided that the model is permitted to adapt using each point. We describe in detail how each ARM method can be applied to the streaming setting in Appendix B, and we provide streaming results on rotated MNIST in Appendix E.
191
+
192
+ ![](images/a266c73291c4902cc98f6f0a173936b65146e6d4cf5179e742872fa1480eb8c1.jpg)
193
+ Figure 3: In the streaming setting, ARM methods reach strong performance on Tiny ImageNet-C after fewer than 50 data points, despite using training batch sizes of 100. This highlights that the trained models are able to adapt successfully in the standard streaming evaluation setting.
194
+
195
+ Table 2: Results on the WILDS image testbeds. Different methods are best suited for different problems, motivating the need for a wide range of methods. ARM-BN struggles on FMoW but performs well on the other datasets, in particular RxRx1.
196
+
197
+ <table><tr><td></td><td colspan="2">iWildCam</td><td>Camelyon17</td><td>RxRx1</td><td colspan="2">FMoW</td><td colspan="2">PovertyMap</td></tr><tr><td>Method</td><td>Acc</td><td>Macro F1</td><td>Acc</td><td>Acc</td><td>WC Acc</td><td>Avg Acc</td><td>WC Pearson r</td><td>Pearson r</td></tr><tr><td>ERM</td><td>71.6 ± 2.5</td><td>31.0 ±1.3</td><td>70.3±6.4</td><td>29.9 ± 0.4</td><td>32.3±1.25</td><td>53.0±0.55</td><td>0.45±0.06</td><td>0.78±0.04</td></tr><tr><td>DRNN</td><td>72.7±2.0</td><td>23.9 ± 2.1</td><td>68.4± 7.3</td><td>23.0±0.3</td><td>30.8 ±0.81</td><td>52.1±0.5</td><td>0.39 ±0.06</td><td>0.75±0.07</td></tr><tr><td>CORAL</td><td>73.3±4.3</td><td>32.8±0.1</td><td>59.5± 7.7</td><td>28.4±0.3</td><td>31.7 ±1.24</td><td>50.5 ±0.36</td><td>0.44±0.06</td><td>0.78±0.05</td></tr><tr><td>IRM</td><td>59.8 ±3.7</td><td>15.1 ± 4.9</td><td>64.2± 8.1</td><td>8.2 ±1.1</td><td>30.0±1.37</td><td>50.8 ±0.13</td><td>0.43 ± 0.07</td><td>0.77± 0.05</td></tr><tr><td>BN adaptation</td><td>46.4± 1.0</td><td>13.8±0.3</td><td>88.6±1.4</td><td>20.0±0.2</td><td>30.2±0.26</td><td>51.6 ± 0.16</td><td>0.39 ±0.17</td><td>0.82±0.06</td></tr><tr><td>ARM-BN</td><td>70.3±2.4</td><td>23.2 ±2.7</td><td>87.2±0.9</td><td>31.2 ±0.1</td><td>24.6 ±0.04</td><td>42.0±0.21</td><td>0.49±0.21</td><td>0.84±0.05</td></tr></table>
198
+
199
+ # 5.4 WILDS results
200
+
201
+ Finally, we present results on the WILDS benchmark $\pmb { \Vert 3 5 \Vert }$ t Table 2. We evaluate BN adaptation and ARM-BN on these testbeds. We see that, on these real world distribution shift problems, different methods perform well for different problems. CORAL, a method for invariance $\mathbf { \widehat { \mathbf { \phi } } } [ \mathbf { \overline { { 6 7 } } } ] \mathbf { \xi }$ , performs best on the iWildCam animal classification problem [5], whereas no methods outperform ERM by a significant margin on the FMoW [11] or PovertyMap $\textcircled { 1 7 9 }$ satellite imagery problems. ARM-BN performs particularly poorly on the FMoW problem. However, it performs well on PovertyMap and significantly improves performance on the RxRx1 $\mathbb { \ m }$ problem of treatment classification from medical images. On the other medical imagery problem of Camelyon17 [4] tumor identification, adaptation in general boosts performance dramatically. These results indicate the need to consider a wide range of tools, including meta-learning and adaptation, for combating distribution shift.
202
+
203
+ # 6 Discussion and Future Work
204
+
205
+ We presented adaptive risk minimization (ARM), a framework and problem formulation for learning models that can adapt in the face of domain shift at test time using only a batch of unlabeled test examples. We devised an algorithm and instantiated a set of methods for optimizing the ARM objective that meta-learns models that are adaptable to different domains of training data. Empirically, we observed that ARM methods consistently improve performance in terms of both average and worst case metrics, as compared to a number of prior approaches for handling domain shift.
206
+
207
+ Though we provided contextual meta-learning as a concrete example, a number of other meta-learning paradigms would also be interesting to extend to the ARM setting. For example, few shot generative modeling objectives would be a natural fit for unlabeled adaptation $\boxed { 1 6 } \boxed { 2 6 } \boxed { 7 7 }$ . Another exciting direction for future work is to explore the problem setting where domains are not provided at training time. As discussed in $\underline { { \mathrm { ~ A p p e n d i x ~ } } } \mathrm { ~ \bar { E } ~ }$ in this setting, we can instead construct domains via unsupervised learning techniques. Similar to Hsu et al. $\pmb { \left. 2 8 \right. }$ , one promising approach is to generate a diverse set of domains in order to learn generally effective adaptation strategies. Robustness and invariance methods cannot be used easily with multiple different groupings, learned or otherwise, as techniques such as group weighted loss functions $\dot { \left\| 6 0 \right\| }$ and domain classifiers $\mathbb { \lVert 1 9 \rVert }$ are not immediately extendable to this setup. Thus, ARM methods may be uniquely suited to be paired with domain learning.
208
+
209
+ # Acknowledgments and Disclosure of Funding
210
+
211
+ MZ thanks Matt Johnson and Sharad Vikram for helpful discussions and was supported by an NDSEG fellowship. HM is funded by a scholarship from the Dr. Tech. Marcus Wallenberg Foundation for Education in International Industrial Entrepreneurship. AG was supported by an NSF graduate research fellowship. CF is a CIFAR Fellow in the Learning in Machines and Brains program. This research was supported by the DARPA Assured Autonomy and Learning with Less Labels programs.
212
+
213
+ # References
214
+
215
+ [1] F. Alet, M. Bauza, K. Kawaguchi, N. Kuru, T. Lozano-Pérez, and L. Kaelbling. Tailoring: Encoding inductive biases by optimizing unsupervised objectives at prediction time. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
216
+ [2] A. Antoniou and A. Storkey. Learning to learn via self-critique. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
217
+ [3] M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019.
218
+ [4] P. Bandi, O. Geessink, Q. Manson, M. Van Dijk, M. Balkenhol, M. Hermsen, B. Bejnordi, B. Lee, K. Paeng, A. Zhong, et al. From detection of individual metastases to classification of lymph node status at the patient level: the CAMELYON17 challenge. IEEE Transactions on Medical Imaging, 2018.
219
+ [5] S. Beery, E. Cole, and A. Gjoka. The iWildCam 2020 competition dataset. arXiv preprint arXiv:2004.10340, 2020.
220
+ [6] S. Bengio, Y. Bengio, J. Cloutier, and J. Gecsei. On the optimization of a synaptic learning rule. In Optimality in Artificial and Biological Neural Networks, 1992.
221
+ [7] G. Blanchard, G. Lee, and C. Scott. Generalizing from several related classification tasks to a new unlabeled sample. In Advances in Neural Information Processing Systems (NIPS), 2011.
222
+ [8] G. Blanchard, A. Deshmukh, U. Dogan, G. Lee, and C. Scott. Domain generalization by marginal transfer learning. Journal of Machine Learning Research (JMLR), 2021.
223
+ [9] S. Caldas, S. Duddu, P. Wu, T. Li, J. Konecnˇ ý, H. McMahan, V. Smith, and A. Talwalkar. LEAF: A benchmark for federated settings. In Workshop on Federated Learning for Data Privacy and Confidentiality, 2019.
224
+ [10] F. Carlucci, L. Porzi, B. Caputo, E. Ricci, and S. Rota Bulò. AutoDIAL: Automatic domaIn alignment layers. In IEEE International Conference on Computer Vision (ICCV), 2017.
225
+ [11] G. Christie, N. Fendley, J. Wilson, and R. Mukherjee. Functional map of the world. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
226
+ [12] G. Cohen, S. Afshar, J. Tapson, and A. van Schaik. EMNIST: An extension of MNIST to handwritten letters. arXiv preprint arXiv:1702.05373, 2017.
227
+ [13] G. Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017.
228
+ [14] H. Daumé III. Frustratingly easy domain adaptation. In Conference of the Association for Computational Linguistics (ACL), 2007.
229
+ [15] Q. Dou, D. Castro, K. Kamnitsas, and B. Glocker. Domain generalization via model-agnostic learning of semantic features. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
230
+ [16] H. Edwards and A. Storkey. Towards a neural statistician. In International Conference on Learning Representations (ICLR), 2017.
231
+ [17] C. Fang, Y. Xu, and D. Rockmore. Unbiased metric learning: On the utilization of multiple datasets and web images for softening bias. In IEEE International Conference on Computer Vision (ICCV), 2013.
232
+ [18] C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning (ICML), 2017.
233
+ [19] Y. Ganin and V. Lempitsky. Unsupervised domain adaptation by backpropagation. In International Conference on Machine Learning (ICML), 2015.
234
+ [20] M. Garnelo, D. Rosenbaum, C. Maddison, T. Ramalho, D. Saxton, M. Shanahan, Y. Teh, D. Rezende, and S. Eslami. Conditional neural processes. In International Conference on Machine Learning (ICML), 2018.
235
+ [21] R. Geirhos, P. Rubisch, C. Michaelis, M. Bethge, F. Wichmann, and W. Brendel. Imagenettrained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations (ICLR), 2019.
236
+ [22] B. Gong, Y. Shi, F. Sha, and K. Grauman. Geodesic flow kernel for unsupervised domain adaptation. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
237
+ [23] I. Gulrajani and D. Lopez-Paz. In search of lost domain generalization. In International Conference on Learning Representations (ICLR), 2021.
238
+ [24] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
239
+ [25] D. Hendrycks and T. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019.
240
+ [26] L. Hewitt, M. Nye, A. Gane, T. Jaakkola, and J. Tenenbaum. The variational homoencoder: Learning to learn high capacity generative models from few examples. In Conference on Uncertainty in Artificial Intelligence (UAI), 2018.
241
+ [27] S. Hochreiter, A. Younger, and P. Conwell. Learning to learn using gradient descent. In International Conference on Artificial Neural Networks (ICANN), 2001.
242
+ [28] K. Hsu, S. Levine, and C. Finn. Unsupervised learning via meta-learning. In International Conference on Learning Representations (ICLR), 2019.
243
+ [29] S. Hu, P. Moreno, Y. Xiao, X. Shen, G. Obozinski, N. Lawrence, and A. Damianou. Empirical Bayes transductive meta-learning with synthetic gradients. In International Conference on Learning Representations (ICLR), 2020.
244
+ [30] W. Hu, G. Niu, I. Sato, and M. Sugiyama. Does distributionally robust supervised learning give robust classifiers? In International Conference on Machine Learning (ICML), 2018.
245
+ [31] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015.
246
+ [32] E. Jang, S. Gu, and B. Poole. Categorical reparameterization with Gumbel-softmax. In International Conference on Learning Representations (ICLR), 2017.
247
+ [33] A. Kaku, S. Mohan, A. Parnandi, H. Schambra, and C. Fernandez-Granda. Be like water: Robustness to extraneous variables via adaptive feature normalization. arXiv preprint arXiv:2002.04019, 2020.
248
+ [34] D. Kingma and M. Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations (ICLR), 2014.
249
+ [35] P. Koh, S. Sagawa, H. Marklund, S. Xie, M. Zhang, A. Balsubramani, W. Hu, M. Yasunaga, R. Phillips, I. Gao, T. Lee, E. David, I. Stavness, W. Guo, B. Earnshaw, I. Haque, S. Beery, J. Leskovec, A. Kundaje, E. Pierson, S. Levine, C. Finn, and P. Liang. WILDS: A benchmark of in-the-wild distribution shifts. In International Conference on Machine Learning (ICML), 2021.
250
+ [36] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
251
+ [37] A. Kumagai and T. Iwata. Zero-shot domain adaptation with domain semantic descriptors. arXiv preprint arXiv:1807.02927, 2018.
252
+ [38] D. Lazer, R. Kennedy, G. King, and A. Vespignani. The parable of Google flu: Traps in big data analysis. Science, 2014.
253
+ [39] D. Li, Y. Yang, Y. Song, and T. Hospedales. Deeper, broader and artier domain generalization. In IEEE International Conference on Computer Vision (ICCV), 2017.
254
+ [40] D. Li, Y. Yang, Y. Song, and T. Hospedales. Learning to generalize: Meta-learning for domain generalization. In AAAI Conference on Artificial Intelligence (AAAI), 2018.
255
+ [41] H. Li, S. Pan, S. Wang, and A. Kot. Domain generalization with adversarial feature learning. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
256
+ [42] X. Li, Q. Sun, Y. Liu, Q. Zhou, S. Zheng, T. Chua, and B. Schiele. Learning to self-train for semi-supervised few-shot classification. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
257
+ [43] Y. Li, N. Wang, J. Shi, J. Liu, and X. Hou. Revisiting batch normalization for practical domain adaptation. In International Conference on Learning Representations Workshop (ICLRW), 2017.
258
+ [44] Y. Li, X. Tian, M. Gong, Y. Liu, T. Liu, K. Zhang, and D. Tao. Deep domain generalization via conditional invariant adversarial networks. In European Conference on Computer Vision (ECCV), 2018.
259
+ [45] Z. Lipton, Y. Wang, and A. Smola. Detecting and correcting for label shift with black box predictors. In International Conference on Machine Learning (ICML), 2018.
260
+ [46] Y. Liu, J. Lee, M. Park, S. Kim, E. Yang, S. Hwang, and Y. Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In International Conference on Learning Representations (ICLR), 2019.
261
+ [47] C. Maddison, A. Mnih, and Y. Teh. The Concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations (ICLR), 2017.
262
+ [48] L. Metz, N. Maheswaranathan, B. Cheung, and J. Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. In International Conference on Learning Representations (ICLR), 2019.
263
+ [49] K. Muandet, D. Balduzzi, and B. Schölkopf. Domain generalization via invariant feature representation. In International Conference on Machine Learning (ICML), 2013.
264
+ [50] Z. Nado, S. Padhy, D. Sculley, A. D’Amour, B. Lakshminarayanan, and J. Snoek. Evaluating prediction-time batch normalization for robustness under covariate shift. arXiv preprint arXiv:2006.10963, 2020.
265
+ [51] A. Nichol, J. Achiam, and J. Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018.
266
+ [52] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
267
+ [53] X. Peng, Q. Bai, X. Xia, Z. Huang, K. Saenko, and B. Wang. Moment matching for multi-source domain adaptation. In IEEE International Conference on Computer Vision (ICCV), 2019.
268
+ [54] J. Quiñonero Candela, M. Sugiyama, A. Schwaighofer, and N. Lawrence. Dataset Shift in Machine Learning. The MIT Press, 2009.
269
+ [55] S. Ravi and H. Larochelle. Optimization as a model for few-shot learning. In International Conference on Learning Representations (ICLR), 2017.
270
+ [56] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. Tenenbaum, H. Larochelle, and R. Zemel. Meta-learning for semi-supervised few-shot classification. In International Conference on Learning Representations (ICLR), 2018.
271
+ [57] J. Requeima, J. Gordon, J. Bronskill, S. Nowozin, and R. Turner. Fast and flexible multi-task classification using conditional neural adaptive processes. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
272
+ [58] D. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International Conference on Machine Learning (ICML), 2014.
273
+ [59] A. Royer and C. Lampert. Classifier adaptation at prediction time. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015.
274
+ [60] S. Sagawa, P. Koh, T. Hashimoto, and P. Liang. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. In International Conference on Learning Representations (ICLR), 2020.
275
+ [61] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap. Meta-learning with memory-augmented neural networks. In International Conference on Machine Learning (ICML), 2016.
276
+ [62] J. Schmidhuber. Evolutionary principles in self-referential learning. Diploma thesis, Institut f. Informatik, Tech. Univ. Munich, 1987.
277
+ [63] S. Schneider, E. Rusak, L. Eck, O. Bringmann, W. Brendel, and M. Bethge. Improving robustness against common corruptions by covariate shift adaptation. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
278
+ [64] H. Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of Statistical Planning and Inference (JSPI), 2000.
279
+ [65] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems (NIPS), 2017.
280
+ [66] M. Sulc and J. Matas. Improving CNN classifiers by estimating test-time priors. In IEEE International Conference on Computer Vision (ICCV), 2019.
281
+ [67] B. Sun, J. Feng, and K. Saenko. Return of frustratingly easy domain adaptation. In AAAI Conference on Artificial Intelligence (AAAI), 2016.
282
+ [68] S. Sun, H. Shi, and Y. Wu. A survey of multi-source domain adaptation. Information Fusion, 2015.
283
+ [69] Y. Sun, X. Wang, Z. Liu, J. Miller, A. Efros, and M. Hardt. Test-time training with selfsupervision for generalization under distribution shifts. In International Conference on Machine Learning (ICML), 2020.
284
+ [70] J. Taylor, B. Earnshaw, B. Mabey, M. Victors, and J. Yosinski. RxRx1: An image set for cellular morphological variation across many experimental batches. In International Conference on Learning Representations (ICLR), 2019.
285
+ [71] S. Thrun and L. Pratt. Learning to Learn. Springer Science & Business Media, 1998.
286
+ [72] E. Tzeng, J. Hoffman, K. Saenko, and T. Darrell. Adversarial discriminative domain adaptation. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
287
+ [73] V. Vapnik. Statistical Learning Theory. Wiley New York, 1998.
288
+ [74] O. Vinyals, C. Blundell, T. Lillicrap, K. Kavukcuoglu, and D. Wierstra. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NIPS), 2016.
289
+ [75] D. Wang, E. Shelhamer, S. Liu, B. Olshausen, and T. Darrell. Tent: Fully test-time adaptation by entropy minimization. In International Conference on Learning Representations (ICLR), 2021.
290
+ [76] G. Wilson and D. Cook. A survey of unsupervised deep domain adaptation. ACM Transactions on Intelligent Systems and Technology (TIST), 2020.
291
+ [77] M. Wu, K. Choi, N. Goodman, and S. Ermon. Meta-amortized variational inference and learning. In AAAI Conference on Artificial Intelligence (AAAI), 2019.
292
+ [78] Y. Yang and T. Hospedales. A unified perspective on multi-domain and multi-task learning. In International Conference on Learning Representations (ICLR), 2015.
293
+ [79] C. Yeh, A. Perez, A. Driscoll, G. Azzari, Z. Tang, D. Lobell, S. Ermon, and M. Burke. Using publicly available satellite imagery and deep learning to understand economic well-being in Africa. Nature Communications, 2020.
294
+ [80] T. Yu, C. Finn, A. Xie, S. Dasari, P. Abbeel, and S. Levine. One-shot imitation from observing humans via domain-adaptive meta-learning. In Robotics: Science and Systems (RSS), 2018.
295
+ [81] R. Zhang, T. Che, Z. Ghahramani, Y. Bengio, and Y. Song. MetaGAN: An adversarial approach to few-shot learning. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_content_list.json ADDED
@@ -0,0 +1,1215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Adaptive Risk Minimization: Learning to Adapt to Domain Shift ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 287,
8
+ 122,
9
+ 710,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Marvin Zhang⇤1, Henrik Marklund⇤2, Nikita Dhawan⇤1, Abhishek Gupta1, Sergey Levine1, Chelsea Finn2 ",
17
+ "bbox": [
18
+ 299,
19
+ 224,
20
+ 697,
21
+ 255
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 UC Berkeley, 2 Stanford University ",
28
+ "bbox": [
29
+ 377,
30
+ 267,
31
+ 620,
32
+ 282
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 318,
43
+ 535,
44
+ 335
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "A fundamental assumption of most machine learning algorithms is that the training and test data are drawn from the same underlying distribution. However, this assumption is violated in almost all practical applications: machine learning systems are regularly tested under distribution shift, due to changing temporal correlations, atypical end users, or other factors. In this work, we consider the problem setting of domain generalization, where the training data are structured into domains and there may be multiple test time shifts, corresponding to new domains or domain distributions. Most prior methods aim to learn a single robust model or invariant feature space that performs well on all domains. In contrast, we aim to learn models that adapt at test time to domain shift using unlabeled test points. Our primary contribution is to introduce the framework of adaptive risk minimization (ARM), in which models are directly optimized for effective adaptation to shift by learning to adapt on the training domains. Compared to prior methods for robustness, invariance, and adaptation, ARM methods provide performance gains of $1 - 4 \\%$ test accuracy on a number of image classification problems exhibiting domain shift. ",
51
+ "bbox": [
52
+ 233,
53
+ 349,
54
+ 766,
55
+ 556
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 579,
66
+ 310,
67
+ 597
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The standard assumption in empirical risk minimization (ERM) is that the data distribution at test time will match the training distribution. When this assumption does not hold, i.e., when there is distribution shift, the performance of standard ERM methods can deteriorate significantly [54, 38]. ",
74
+ "bbox": [
75
+ 174,
76
+ 611,
77
+ 825,
78
+ 654
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "As an example which we study quantitatively in Section 5, consider a handwriting classification model that, after training on data from past users, is deployed to new end users. Each new user represents a new test distribution that differs from the training distribution. Thus, each test setting involves dealing with shift. In Figure 1, we visualize a batch of 50 examples from a test user, and we highlight an ambiguous example which may be either a “2” (written with a loop) or an “a” (in the double-storey style) depending on the user’s handwriting. Due to the biases in the training data, an ERM trained model incorrectly classifies this example as “2”. However, we can see that the batch of images from this test user contains other examples of “2” (written without loops) and “a” (also double-storey) from this user. Can we somehow leverage this unlabeled data to better handle test shifts caused by new users? ",
85
+ "bbox": [
86
+ 174,
87
+ 660,
88
+ 549,
89
+ 878
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/eba7790167eea1016adf846184d756ac9c24d137f32ef1c5973b0041f9f7837b.jpg",
96
+ "image_caption": [
97
+ "Figure 1: An example of ambiguous data points in handwriting classification, evaluated quantitatively in Section 5. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 563,
102
+ 662,
103
+ 823,
104
+ 828
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Any framework that aims to address this question must use additional assumptions beyond the ERM setting, and many such frameworks have been proposed $\\pmb { \\Vert 5 4 \\Vert }$ . One commonly used assumption within several frameworks, such as domain generalization [7, 23], is that the training data are provided in domains and distributions at test time will represent new domains. The example above neatly fits this description if we equate users with domains – we would be assuming that the training data are organized by users and that the model will be tested separately on new users, and these are reasonable assumptions. Constructing training domains in practice is generally accomplished by using meta-data, which exists for many commonly used datasets. Thus, this domain assumption is applicable for a wide range of realistic distribution shift problems (see, e.g., Koh et al. [35]). ",
111
+ "bbox": [
112
+ 174,
113
+ 90,
114
+ 825,
115
+ 215
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "However, prior benchmarks for domain generalization and similar settings typically center around invariances – i.e., in these benchmarks, there is a consistent input-output relationship across all domains, and the goal is to learn this relationship while ignoring the spurious correlations within the domains (see, e.g., Gulrajani and Lopez-Paz $[ \\overbar { 1 2 3 } ] \\cdot$ ). Thus, prior methods aim for generalization to shifts by discovering this relationship, through techniques such as robust optimization and learning an invariant feature space [41, 3, 60]. These methods are appealing in that they make minimal assumptions about the information provided at test time – in particular, they do not require test labels, and the learned model can be immediately applied to predict on a single point. Nevertheless, these methods also have limitations, such as in dealing with problems where the input-output relationship varies across domains, e.g., the handwriting classification example above. ",
122
+ "bbox": [
123
+ 174,
124
+ 222,
125
+ 825,
126
+ 361
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this paper, we instead focus on methods that aim to adapt at test time to domain shift. To do so, we study problems in which it is both feasible and helpful (and perhaps even necessary) to assume access to a batch or stream of inputs at test time. Leveraging this test assumption does not require labels for any test data and is feasible in many practical setups. For example, for handwriting classification, we do not access only single handwritten characters from an end user, but rather collections of characters such as sentences or paragraphs. Unlabeled adaptation has been shown empirically to be useful for distribution shift problems $[ \\dot { \\overline { { 6 9 } } } , \\overline { { 6 3 } } , \\overline { { 7 5 } } ]$ , such as for dealing with image corruptions $\\mathbb { \\left[ \\left. 2 5 \\right] \\right. }$ . Taking inspiration from these findings, we propose and evaluate on a number of problems, detailed in Section 5, for which adaptation is beneficial in dealing with domain shift. ",
133
+ "bbox": [
134
+ 173,
135
+ 367,
136
+ 825,
137
+ 491
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Our main contribution is to introduce the framework of adaptive risk minimization (ARM), which proposes the following objective: optimize the model such that it can maximally leverage the unlabeled adaptation phase to handle domain shift. To do so, we instantiate a set of methods that, given a set of training domains, meta-learns a model that is adaptable to these domains. These methods are straightforward extensions of existing meta-learning approaches, thereby demonstrating that tools from the meta-learning toolkit can be readily adapted to tackle domain shift. Our experiments in Section 5 test on several image classification problems, derived from benchmarks for federated learning [9] and image classifier robustness $\\mathbb { \\lVert 2 5 \\rVert }$ , in which training and test domains share structure that can be leveraged for improved performance. These testbeds are also a contribution of our work, as we believe these problems can supplement existing benchmarks which, almost exclusively, are designed with invariance in mind $[ \\sqrt { 3 } , \\sqrt { 5 3 } , \\sqrt { 2 3 } ]$ . We also evaluate on the WILDS suite of distribution shift problems $\\begin{array} { r l } { { \\bigl [ \\bigl | 3 5 \\bigr | \\bigr ] } } & { { } } \\end{array}$ , which have been curated to faithfully represent important real world problems. Empirically, we demonstrate that the proposed ARM methods, by leveraging meta-training and test time adaptation, are often able to outperform prior state-of-the-art methods by $1 \\%$ test accuracy. ",
144
+ "bbox": [
145
+ 174,
146
+ 497,
147
+ 825,
148
+ 691
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 Related Work ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 712,
159
+ 321,
160
+ 729
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "A number of prior works have studied distribution shift in various forms $[ [ 5 4 ]$ . In this section, we review prior work in domain generalization, group robustness, meta-learning, and adaptation. ",
167
+ "bbox": [
168
+ 176,
169
+ 744,
170
+ 823,
171
+ 773
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Invariance and robustness to domains. As discussed above, a number of frameworks leverage training domains to address test time shift. The terminology in prior work is scattered and, depending on the application, includes terms such as “groups”, “datasets”, “subpopulations”, and “users”; in this work, we adopt the term “domains” which we believe is an appropriate unifying term. A number of testbeds for this problem setting have been proposed for image classification, including generalizing to new datasets $\\sharp$ , new image types $\\pm \\boxed { 1 3 9 } \\boxed { 5 3 } \\cdots$ , and underrepresented demographics $\\bar { \\mathbb { E O } } \\mathbb { I }$ . ",
178
+ "bbox": [
179
+ 174,
180
+ 780,
181
+ 825,
182
+ 863
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Prior benchmarks typically assume the existence of a consistent input-output relationship across domains that is learnable by the specified model, thus motivating methods such as learning an invariant feature space [41, 44, 3] or optimizing for worst case group performance $\\pmb { \\mathbb { B O } } \\pmb { \\mathbb { G O } } \\mathbf { j }$ . In particular, methods for domain generalization – sometimes referred to as multi-source domain adaptation $\\lVert \\rVert$ or zero shot domain adaptation $\\left[ \\left[ 7 8 \\right] \\right]$ – have largely focused on learning invariant features [19, 67, 41, 44, 53]. Gulrajani and Lopez-Paz $\\pmb { \\left. \\pmb { \\left. \\mathscr { Z } 3 \\right. } \\right. }$ provide a comprehensive survey of domain generalization benchmarks and find that, surprisingly, ERM is competitive with the state of the art across all the benchmarks considered. In Appendix C, we discuss this finding as well as the performance of an ARM method on this benchmark suite. In Section 5, we identify different problems for which adaptation is helpful, and we find that, on these problems, ARM methods consistently outperform ERM and other non adaptive methods for robustness and invariance. ",
189
+ "bbox": [
190
+ 176,
191
+ 869,
192
+ 823,
193
+ 911
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "",
200
+ "bbox": [
201
+ 174,
202
+ 90,
203
+ 825,
204
+ 202
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Meta-learning. Meta-learning [62, 6, 71, 27] has been most extensively studied in the context of few shot labeled adaptation [61, 74, 55, 18, 65]. Our aim is not to address few-shot recognition problems, nor to propose a novel meta-learning algorithm, but rather to extend meta-learning paradigms to problems requiring unlabeled adaptation, with the primary goal of tackling distribution shift. This aim differs from previous work in meta-learning for domain generalization $[ \\bar { 4 0 } , \\bar { 1 } 5 ]$ , which seek to metatrain models for non adaptive generalization performance. We discuss in Section 4 how paradigms such as contextual meta-learning [20, 57] can be readily extended using the ARM framework. ",
211
+ "bbox": [
212
+ 174,
213
+ 207,
214
+ 825,
215
+ 306
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Some other meta-learning methods adapt using both labeled and unlabeled data, either in the semi supervised learning setting [56, 81, 42] or the transductive learning setting [51, 46, 2, 29]. These works all assume access to labeled data for adaptation, whereas we propose methods and problems for purely unlabeled adaptation. Prior works in meta-learning for unlabeled adaptation include Yu et al. $\\mathbf { [ 8 0 ] }$ , who adapt a policy to imitate human demonstrations in the context of robotic learning; Metz et al. $\\lVert \\rVert \\mathbf { 4 8 } \\rVert$ , who meta-learn an update rule for unsupervised representation learning, though they still require labels to learn a predictive model; and Alet et al. [1], who meta-learn adaptive models based on task specific unsupervised objectives. Unlike these prior works, we propose a general framework for tackling distribution shift problems by meta-learning unsupervised adaptation strategies. This framework simplifies the extension of meta-learning paradigms to these problems, encapsulates previous approaches such as the gradient based meta-learning approach of Yu et al. $\\pmb { \\| 8 0 \\| }$ , and sheds light on how to improve existing strategies such as adaptation via batch normalization [43]. ",
222
+ "bbox": [
223
+ 174,
224
+ 311,
225
+ 825,
226
+ 477
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Adaptation to shift. Unlabeled adaptation has primarily been studied separately from meta-learning. Domain adaptation is a prominent framework that assumes access to test examples at training time $\\boxed { 1 3 } , \\boxed { 7 6 }$ , similar to transductive learning $\\mathbb { | \\overline { { { | Z 3 \\| } } } | }$ . As such, most domain adaptation methods consider the problem setting where there is a single test distribution $\\lVert 6 4 \\rVert , \\lVert 4 \\rVert , \\lVert 2 2 \\rVert , \\dot { \\lVert 1 9 \\rVert } , \\lVert 7 2 \\rVert , \\lVert 0 \\rVert$ , and some of these methods are difficult to apply to problems where there are multiple test distributions. Certain domain adaptation methods have also been applied in the domain generalization setting, such as methods for learning invariant features [19, 67, 41], and we compare to these methods in Section 5. ",
233
+ "bbox": [
234
+ 174,
235
+ 484,
236
+ 826,
237
+ 582
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Adaptive methods for domain generalization include Muandet et al. $\\mathbb { \\oplus 2 }$ and Kumagai and Iwata $\\pmb { \\Vert 3 7 } \\Vert$ who propose a method similar to one of the ARM methods described below. We compare to a version of this method in Appendix E. Blanchard et al. [7] and Blanchard et al. $\\pmb { \\mathbb { B } } \\|$ provide a theoretic study of domain generalization and establish favorable generalization bounds for models that can adapt to domain shift at test time. We summarize some of these results in $\\mathsf { S e c t i o n } \\ 3 .$ In comparison, our work establishes a framework that makes explicit the connection between adaptation to domain shift and meta-learning, allowing us to devise new methods in a straightforward and principled manner. These methods are amenable to expressive models such as deep neural networks, which enables us to propose and evaluate on problems with raw image observations. ",
244
+ "bbox": [
245
+ 174,
246
+ 587,
247
+ 825,
248
+ 712
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Test time adaptation has also been studied for dealing with label shift $\\mathbb { \\lVert 5 9 \\rVert \\lVert 5 \\rVert \\lVert 6 6 \\rVert }$ and crafting favorable inductive biases for the domain of interest. For image classification, techniques such as normalizing via the test inputs $\\mathbb { E 3 }$ and optimizing self-supervised surrogate losses $\\lVert \\boldsymbol { 6 9 } \\rVert$ have proven effective for adapting to image corruptions $\\pmb { \\pmb { \\bar { 2 } 5 } }$ . We compare to these prior methods in Section 5 and empirically demonstrate the advantage of using training domains to learn how to adapt. ",
255
+ "bbox": [
256
+ 174,
257
+ 718,
258
+ 825,
259
+ 787
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "3 Preliminaries and Notation ",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 174,
269
+ 827,
270
+ 431,
271
+ 843
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "In this section, we discuss the domain generalization problem setting and formally describe adaptive models. In Section 4, we discuss how adaptive models can be meta-trained via the ARM objective and approach, and we instantiate ARM methods which we empirically evaluate in Section 5. ",
278
+ "bbox": [
279
+ 174,
280
+ 869,
281
+ 825,
282
+ 911
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Let $\\mathbf { x } \\in \\mathcal { X }$ and $y \\in \\mathcal { V }$ represent the input and output, respectively. We can formalize the domain generalization problem setting using the following data generation process $\\textcircled { 8 } \\textcircled { 1 8 }$ : first, a joint data distribution $p _ { \\mathbf { x } y }$ is sampled from a set of distributions $\\mathcal { P } _ { \\mathbf { x } y }$ , and then some data points are sampled from $p _ { \\mathbf { x } y } \\underline { { \\mathbb { I } } }$ We refer to each $p _ { \\mathbf { x } y }$ as a domain, e.g., a particular dataset or user, thus $\\mathcal { P } _ { \\mathbf { x } y }$ represents the set of all possible domains. We assume that the training dataset is composed of data from $S$ runs of this generative process, organized by domain. An equivalent characterization which we will use for clarity is that, within the training set, there are $S$ domains, and each data point $( \\mathbf { x } ^ { ( i ) } , y ^ { ( i ) } )$ is annotated with a domain label $z ^ { ( i ) }$ . Each $z ^ { ( i ) }$ is an integer that takes on a value between 1 and $S$ , indicating which $p _ { \\mathbf { x } y }$ generated the $i$ -th training point (though, of course, we do not have access to, or knowledge of, $p _ { \\mathbf { x } y }$ itself). At test time, there may be multiple evaluation settings, where each setting is considered separately and contains only unlabeled data sampled via a new run of the same generative process. This data may represent, e.g., a new dataset or user, and the test domains are likely to be distinct from the training domains when $| \\mathcal { P } _ { { \\bf x } y } |$ is large or infinite. ",
289
+ "bbox": [
290
+ 173,
291
+ 90,
292
+ 825,
293
+ 276
294
+ ],
295
+ "page_idx": 3
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Our formal goal is to optimize for expected performance, e.g., classification accuracy, at test time. To do so, let us first consider predictive models of the form $f : \\mathcal { X } \\times \\mathcal { P } _ { \\mathbf { x } } \\mathcal { Y }$ , where the model $f$ takes in not just an input $\\mathbf { x }$ but also the marginal input distribution $p _ { \\mathbf { x } } \\in \\mathcal { P } _ { \\mathbf { x } }$ that $\\mathbf { x }$ was sampled from. We refer to $f$ as an adaptive model, as it has the opportunity to use $p _ { \\mathbf { x } }$ to adapt its predictions on $\\mathbf { x }$ . The underlying assumption is that $p _ { \\mathbf { x } }$ provides information about $p _ { y | \\mathbf { x } }$ , i.e., $p _ { \\mathbf { x } }$ is used as a surrogate input in place of $p _ { \\mathbf { x } y }$ . In the worst case, if $p _ { \\mathbf { x } }$ and $p _ { y | \\mathbf { x } }$ are sampled independently, then the model does not benefit at all from knowing $p _ { \\mathbf { x } }$ . In many problems, however, we expect knowledge about $p _ { \\mathbf { x } }$ to be useful, e.g., for resolving ambiguity as in the handwriting classification example in Section 1. ",
300
+ "bbox": [
301
+ 173,
302
+ 281,
303
+ 825,
304
+ 393
305
+ ],
306
+ "page_idx": 3
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Theoretically, when $p _ { \\mathbf { x } }$ provides information about $p _ { y | \\mathbf { x } }$ , and when training and test domains are drawn from the same distribution over $\\mathcal { P } _ { \\mathbf { x } y }$ , we can establish favorable generalization bounds for the expected performance of $f$ in adapting to domain shift at test time. We can formalize this as follows. First, define a prediction model to be a non adaptive model of the form $g : \\mathcal { X } \\mathcal { Y }$ , and define the risk for a prediction model $g$ and loss function $\\ell$ , under a data distribution $p _ { \\mathbf { x } y }$ , as ",
311
+ "bbox": [
312
+ 173,
313
+ 398,
314
+ 826,
315
+ 469
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "equation",
321
+ "img_path": "images/6c98e0e8479e0a863e5f86e0338c69278663b14fc2ecaeaecbed903bbfc4bf9b.jpg",
322
+ "text": "$$\n\\mathcal { R } ( g , p _ { \\mathbf { x } y } ) \\triangleq \\mathbb { E } _ { p _ { \\mathbf { x } y } } \\left[ \\ell ( g ( \\mathbf { x } ) , y ) \\right] .\n$$",
323
+ "text_format": "latex",
324
+ "bbox": [
325
+ 392,
326
+ 476,
327
+ 604,
328
+ 496
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Further, define the Bayes optimal risk for $\\ell$ under $p _ { \\mathbf { x } y }$ as ",
335
+ "bbox": [
336
+ 173,
337
+ 500,
338
+ 544,
339
+ 515
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "equation",
345
+ "img_path": "images/38b06aaf98c8bcb6ae0f84d464dab95d1a9eebc34841ac6fbc841bf294fc27c2.jpg",
346
+ "text": "$$\n\\begin{array} { r } { \\mathcal { R } ^ { \\star } ( p _ { \\mathbf { x } y } ) \\triangleq \\underset { g } { \\operatorname* { m i n } } \\mathcal { R } ( g , p _ { \\mathbf { x } y } ) . } \\end{array}\n$$",
347
+ "text_format": "latex",
348
+ "bbox": [
349
+ 405,
350
+ 522,
351
+ 591,
352
+ 547
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Let $\\mu$ denote the distribution on $\\mathcal { P } _ { \\mathbf { x } y }$ from which training and test domains $p _ { \\mathbf { x } y }$ are sampled. To avoid overlapping terms, define the adaptive risk for an adaptive model $f$ and $\\ell$ , under $\\mu$ , to be ",
359
+ "bbox": [
360
+ 169,
361
+ 553,
362
+ 825,
363
+ 582
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "equation",
369
+ "img_path": "images/13eb1b719928b8100843f52c1b6f48b0ed3c7b8506789521ab58de95f64b5f21.jpg",
370
+ "text": "$$\n\\begin{array} { r } { \\mathcal { E } ( f , \\mu ) \\triangleq \\mathbb { E } _ { \\mu } \\left[ \\mathbb { E } _ { p _ { \\mathbf { x } _ { y } } } \\left[ \\ell ( f ( \\mathbf { x } , p _ { \\mathbf { x } } ) , y ) \\right] \\right] . } \\end{array}\n$$",
371
+ "text_format": "latex",
372
+ "bbox": [
373
+ 370,
374
+ 588,
375
+ 627,
376
+ 608
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "We state the following result from Blanchard et al. $\\pmb { \\mathbb { B } } ] \\mathbf l$ , which details a condition on $\\mu$ under which $\\mathcal { E }$ is a strongly principled objective for learning adaptive models. ",
383
+ "bbox": [
384
+ 173,
385
+ 612,
386
+ 826,
387
+ 642
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Lemma 9 from Blanchard et al. [8]. Let $f ^ { \\star }$ denote a minimizer of $\\mathcal { E }$ for the given $\\mu$ . If $\\mu$ is a distribution on $\\mathcal { P } _ { \\mathbf { x } y }$ such that $\\mu$ -almost surely it holds that $p _ { y | \\mathbf { x } } = M ( p _ { \\mathbf { x } } )$ for some deterministic mapping $M$ , then for $\\mu$ -almost all $p _ { \\mathbf { x } y }$ , we have ",
394
+ "bbox": [
395
+ 174,
396
+ 655,
397
+ 825,
398
+ 698
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "equation",
404
+ "img_path": "images/63991dc40dbe5a93043db9e911643f892f6c5b24dd7de807b4883a08960b35b6.jpg",
405
+ "text": "$$\n\\begin{array} { r } { \\mathcal { R } \\big ( f ^ { \\star } \\big ( \\cdot , p _ { \\mathbf { x } } \\big ) , p _ { \\mathbf { x } y } \\big ) = \\mathcal { R } ^ { \\star } \\big ( p _ { \\mathbf { x } y } \\big ) \\implies \\mathcal { E } \\big ( f ^ { \\star } , \\mu \\big ) = \\mathbb { E } _ { \\mu } \\left[ \\mathcal { R } ^ { \\star } ( p _ { \\mathbf { x } y } ) \\right] . } \\end{array}\n$$",
406
+ "text_format": "latex",
407
+ "bbox": [
408
+ 287,
409
+ 704,
410
+ 709,
411
+ 722
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "In other words, an adaptive model which minimizes the adaptive risk $\\mathcal { E }$ coincides with a Bayes optimal decision function for $p _ { \\mathbf { x } y }$ , for $\\mu$ -almost all domains $p _ { \\mathbf { x } y }$ . ",
418
+ "bbox": [
419
+ 173,
420
+ 727,
421
+ 823,
422
+ 757
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "Remark. The required condition on $\\mu -$ that $p _ { y | \\mathbf { x } }$ is determined by $p _ { \\mathbf { x } }$ – holds if, and only if, an expert (or oracle) is able to correctly label inputs from a given domain provided only information about the input distribution. This condition holds for the testbeds proposed in this paper, those in Gulrajani and Lopez-Paz $\\mathbb { \\left. 2 3 \\right. }$ , and those in WILDS $\\mathbb { \\lVert 3 5 \\rVert }$ . The condition does not hold for, e.g., standard few shot learning testbeds, where it is possible for two domains with identical input distributions to shuffle their label orderings differently $\\pmb { \\hat { \\mathbb { Z } } } \\pmb { \\mathbb { \\| } }$ . Thus, these problems are outside the scope of this work. ",
429
+ "bbox": [
430
+ 173,
431
+ 770,
432
+ 825,
433
+ 853
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "This result provides strong justification for learning adaptive models $f$ by minimizing the adaptive risk $\\mathcal { E }$ . However, a practical instantiation of this approach requires some approximations. First, we do not know and cannot input $p _ { \\mathbf { x } }$ to $f$ in most cases. Instead, we instantiate $f$ such that it takes in a batch of inputs $\\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K }$ , all from the same domain, where $K$ can vary. $f$ makes predictions on the whole batch, which also serves as an empirical approximation (i.e., a histogram) $\\hat { p } _ { \\bf x }$ of $p _ { \\mathbf { x } } \\mathinner { \\| { \\boldsymbol { \\mathrm { B } } } \\| }$ . In our exposition, we will assume that a batch of unlabeled points is available at test time for adaptation. However, we also experiment in $\\mathtt { S e c t i o n } 5$ with the streaming setting where the test inputs are observed one at a time and adaptation occurs incrementally. ",
440
+ "bbox": [
441
+ 176,
442
+ 859,
443
+ 823,
444
+ 888
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "",
451
+ "bbox": [
452
+ 174,
453
+ 90,
454
+ 825,
455
+ 174
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "Notice that, if we instead passed in an approximation $\\hat { p } _ { { \\bf x } y }$ of $p _ { \\mathbf { x } y }$ to the model, such as a batch of labeled data $( { \\bf x } _ { 1 } , y _ { 1 } ) , \\dots , ( { \\bf x } _ { K } , y _ { K } )$ , then this setup would resemble the standard few shot metalearning problem $\\pmb { \\Vert 7 4 \\Vert }$ . Formally, a meta-learning model takes in both an input $\\mathbf { x }$ and $\\hat { p } _ { { \\bf x } y }$ , which approximates the distribution that $\\mathbf { x }$ was sampled from and thus can be used to adapt the prediction on $\\mathbf { x }$ . Compared to our problem setting, the meta-learning formalism can tackle a wider range of problems but also requires more restrictive assumptions, specifically, labels at test time via $\\hat { p } _ { { \\bf x } y }$ . Transductive meta-learning methods further assume that, in addition to $\\hat { p } _ { { \\bf x } y }$ , a full batch of inputs $\\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K }$ is passed into the model, which allows for better estimation of the input distribution $p _ { \\mathbf { x } }$ [51, 46, 29]. The model then makes predictions on this entire batch. In meta-learning terminology, $\\hat { p } _ { { \\bf x } y }$ and $\\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K }$ are often referred to as the support and query, respectively. Therefore, another interpretation of the adaptive models that we study in this work is that they resemble transductive meta-learning models, but they are given only the unlabeled query and not the labeled support set. ",
462
+ "bbox": [
463
+ 173,
464
+ 180,
465
+ 826,
466
+ 347
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "In the next section, we expand on this connection to develop the ARM framework, which then allows us to bring forward tools from meta-learning to tackle domain shift problems. ",
473
+ "bbox": [
474
+ 171,
475
+ 353,
476
+ 823,
477
+ 381
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "4 Adaptive Risk Minimization ",
484
+ "text_level": 1,
485
+ "bbox": [
486
+ 176,
487
+ 400,
488
+ 441,
489
+ 417
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "In this section, we formally describe the ARM framework, which defines an objective for training adaptive models to tackle domain shift. Furthermore, we propose a general meta-learning algorithm as well as specific methods for optimizing the ARM objective. In Section 5, we test these ARM methods on problems for which unlabeled adaptation can be leveraged for better test performance. ",
496
+ "bbox": [
497
+ 174,
498
+ 431,
499
+ 825,
500
+ 488
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "4.1 Devising the ARM objective ",
507
+ "text_level": 1,
508
+ "bbox": [
509
+ 176,
510
+ 505,
511
+ 406,
512
+ 520
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "We wish to learn an adaptive model $f : \\mathcal { X } ^ { K } \\to \\mathcal { Y } ^ { K }$ to tackle domain shift. As noted, meta-learning methods for labeled adaptation study a similar form of model, and a common approach in many of these methods is to define $f$ such that it is composed of two parts: first, a learner which ingests the data and produces parameters, and second, a prediction model which uses these parameters to make predictions $\\boxed { 7 4 } , \\boxed { 1 8 } \\vert$ . We will follow a similar strategy which, as we will discuss in subsection 4.2, allows us to easily extend and design meta-learning methods towards our goal. ",
519
+ "bbox": [
520
+ 173,
521
+ 529,
522
+ 825,
523
+ 614
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "In particular, we will decompose the model $f$ into two modules: a standard prediction model $g ( \\cdot ; \\theta ) : \\mathcal { X } \\to \\mathcal { Y } _ { }$ , that is parameterized by $\\theta \\in \\Theta$ and predicts $y$ given $\\mathbf { x }$ , and an adaptation model $h ( \\cdot , \\cdot ; \\phi ) : \\ \\Theta \\times \\mathcal { X } ^ { K } \\Theta$ , which is parameterized by $\\phi$ . $h$ takes in the prediction model parameters $\\theta$ and $K$ unlabeled data points and uses the $K$ points to produce adapted parameters $\\theta ^ { \\prime }$ . This is analogous to the learner in meta-learning, however, $h$ adapts the model parameters using only unlabeled data. We defer the discussion of how to instantiate $h$ to subsection 4.2.2 ",
530
+ "bbox": [
531
+ 173,
532
+ 619,
533
+ 825,
534
+ 703
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "The ARM objective is to optimize $\\phi$ and $\\theta$ such that $h$ can adapt $g$ using unlabeled data sampled according to a particular domain $z$ . This can be expressed as the optimization problem ",
541
+ "bbox": [
542
+ 173,
543
+ 708,
544
+ 825,
545
+ 738
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "equation",
551
+ "img_path": "images/082258130afc6e80b153202408aee336f2207f0ed01d624e300ec79b022b5f98.jpg",
552
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta , \\phi } \\hat { \\mathcal { E } } ( \\theta , \\phi ) = \\mathbb { E } _ { p _ { z } } \\left[ \\mathbb { E } _ { p _ { \\mathbf { x } \\cdot p } | z } \\left[ \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\ell ( g ( \\mathbf { x } _ { k } ; \\theta ^ { \\prime } ) , y _ { k } ) \\right] \\right] , \\mathrm { ~ w h e r e ~ } \\theta ^ { \\prime } = h ( \\theta , \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K } ; \\phi ) .\n$$",
553
+ "text_format": "latex",
554
+ "bbox": [
555
+ 189,
556
+ 744,
557
+ 789,
558
+ 789
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Note that $\\hat { \\mathcal { E } }$ is the empirical form of the adaptive risk in $\\mathrm { E q u a t i o n } 1$ for the form of $f$ we have defined. Mimicking the generative process from Section 3 that we assume generated the training data, $p _ { z }$ is a categorical distribution over $\\{ 1 , \\ldots , S \\}$ which places uniform probability mass on each training domain, and $p _ { \\mathbf { x } y | z }$ assigns uniform probability to only the training points within a particular domain. As we have established theoretically, we expect the trained models to perform well at test time if the test domains are sampled independently and identically – i.e., from the same distribution over $\\mathcal { P } _ { \\mathbf { x } y } -$ as the training domains. In practice, similar to how meta-learned few shot classification models are evaluated on new and unseen meta-test classes $\\textcircled { 7 4 } , \\textcircled { 1 8 } \\textcircled { }$ , we empirically show in Section 5 that the trained models can generalize to test domains that are not sampled identically to the training domains. ",
565
+ "bbox": [
566
+ 174,
567
+ 801,
568
+ 826,
569
+ 875
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "",
576
+ "bbox": [
577
+ 174,
578
+ 90,
579
+ 826,
580
+ 147
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "4.2 Optimizing the ARM objective ",
587
+ "text_level": 1,
588
+ "bbox": [
589
+ 176,
590
+ 165,
591
+ 426,
592
+ 180
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Algorithm 1 presents a general meta-learning approach for optimizing the ARM objective. As described above, $h$ outputs updated parameters $\\theta ^ { \\prime }$ using an unlabeled batch of data (line 5). This mimics the adaptation procedure at test time, where we do not assume access to labels (lines 7-8). However, the training update itself does rely on the labels (line 6). We assume that $h$ is differentiable with respect to its input $\\theta$ and $\\phi$ , thus we use gradient updates on both $\\theta$ and $\\phi$ to optimize for post adaptation performance on a mini batch of data sampled according to a particular domain $z$ . In practice, we also sample mini batches of domains, rather than just one domain (as written in line 3), to provide a better gradient signal for optimizing $\\phi$ and $\\theta$ ",
599
+ "bbox": [
600
+ 173,
601
+ 191,
602
+ 465,
603
+ 426
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Algorithm 1 Meta-Learning for ARM ",
610
+ "text_level": 1,
611
+ "bbox": [
612
+ 480,
613
+ 194,
614
+ 730,
615
+ 209
616
+ ],
617
+ "page_idx": 5
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "// Training procedure ",
622
+ "bbox": [
623
+ 480,
624
+ 215,
625
+ 642,
626
+ 228
627
+ ],
628
+ "page_idx": 5
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "Require: # training steps $T$ , batch size $K$ , learning rate $\\eta$ ",
633
+ "bbox": [
634
+ 480,
635
+ 231,
636
+ 818,
637
+ 244
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "1: Initialize: $\\theta , \\phi$ \n2: for $t = 1 , \\dots , T$ do \n3: Sample $z$ uniformly from training domains \n4: Sample $( \\mathbf { x } _ { k } , y _ { k } ) \\sim p ( \\cdot , \\cdot | z )$ for $k = 1 , \\ldots , K$ \n5: $\\theta ^ { \\prime } \\gets h ( \\theta , \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K } ; \\phi )$ \n6: $\\begin{array} { r } { ( \\theta , \\phi ) ( \\theta , \\phi ) - \\eta \\nabla _ { ( \\theta , \\phi ) } \\sum _ { k = 1 } ^ { K } \\ell ( g ( \\mathbf { x } _ { k } ; \\theta ^ { \\prime } ) , y _ { k } ) } \\end{array}$ ",
644
+ "bbox": [
645
+ 482,
646
+ 246,
647
+ 820,
648
+ 337
649
+ ],
650
+ "page_idx": 5
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "// Test time adaptation procedure ",
655
+ "bbox": [
656
+ 477,
657
+ 344,
658
+ 656,
659
+ 372
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "Require: $\\theta , \\phi$ , test batch $\\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K }$ 7: $\\theta ^ { \\prime } \\gets h ( \\theta , \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K } ; \\phi )$ 8: $\\hat { y } _ { k } \\gets g ( \\mathbf x _ { k } ; \\theta ^ { \\prime } )$ for $k = 1 , \\ldots , K$ ",
666
+ "bbox": [
667
+ 478,
668
+ 377,
669
+ 705,
670
+ 422
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "Together, Equation 2 and Algorithm 1 shed light on a number of ways to devise methods for solving the ARM problem. First, we can extend meta-learning paradigms to the ARM problem setting, and any paradigm in which the adaptation model $h$ can be augmented to operate on unlabeled data is readily applicable. As an example, we propose the ARM-CML method, which is inspired by recent works in contextual meta-learning (CML) [20, 57]. Second, we can enhance prior unlabeled adaptation methods by incorporating a meta-training phase that allows the model to better leverage the adaptation. To this end, we propose the ARM-BN method, based on the general approach of adapting using batch normalization (BN) statistics of the test inputs [43, 63, 33, 50]. Third, we can incorporate existing methods for meta-learning unlabeled adaptation to solve domain shift problems. We demonstrate this by proposing the ARM-LL method, which is based on the robotic imitation learning method from Yu et al. $\\pmb { \\Vert 8 0 \\Vert }$ which adapts via a learned loss (LL). All of these methods are straightforward extensions of existing meta-learning and adaptation methods, and this is intentional – we aim to show how existing tools can be readily adapted to tackle domain generalization problems. We summarize the methods here and refer the reader to Appendix B for complete details. ",
677
+ "bbox": [
678
+ 173,
679
+ 433,
680
+ 826,
681
+ 627
682
+ ],
683
+ "page_idx": 5
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "ARM-CML. In ARM-CML, the parameters $\\phi$ of $h$ define the weights of a context network $\\mathrm { f } _ { \\mathrm { c o n t } } ( \\cdot ; \\boldsymbol { \\phi } ) : \\mathcal { X } \\to \\mathbb { R } ^ { D }$ , parameterized by the adaptation model parameters $\\phi$ . We also instantiate the model with a prediction network $\\operatorname { f } _ { \\mathrm { p r e d } } ( \\cdot , \\cdot ; \\boldsymbol { \\theta } ) \\dot { : } \\mathcal { X } \\times \\mathbb { R } ^ { D } \\dot { \\mathcal { V } }$ , parameterized by $\\theta$ . When given a mini batch of inputs, $\\mathrm { f _ { c o n t } }$ processes each example $\\mathbf { x } _ { k }$ in the mini batch separately and outputs $\\mathbf { c } _ { k } \\in \\mathbb { R } ^ { D }$ for $k = 1 , \\ldots , K$ , which are averaged together into a context $\\begin{array} { r } { { \\mathbf c } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } { \\mathbf c } _ { k } } \\end{array}$ . $D$ is a hyperparameter, and in our experiments, we choose to be the dimensionality of $\\mathbf { x }$ , such that we can concatenate each image $\\mathbf { x } _ { k }$ and the context c along the channel dimension to produce the input to $\\mathrm { f _ { p r e d } }$ . In other words, $\\mathrm { f _ { p r e d } }$ processes each $\\mathbf { x } _ { k }$ separately to produce an estimate of the output $\\hat { y } _ { k }$ , but it additionally receives c as input. In this way, $\\mathbf { f } _ { \\mathrm { c o n t } }$ can provide information about the entire batch of $K$ unlabeled data points to $\\mathrm { f _ { p r e d } }$ for predicting the correct outputs. ",
688
+ "bbox": [
689
+ 173,
690
+ 632,
691
+ 825,
692
+ 773
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "Note that the difference between ARM-CML and prior contextual meta-learning approaches is that, in prior approaches, the context network processes both inputs and outputs to produce each $\\mathbf { c } _ { k }$ ARM-CML is designed for the domain generalization setting in which we do not assume access to labels at test time, thus we meta-train for unlabeled adaptation performance at training time. ",
699
+ "bbox": [
700
+ 174,
701
+ 780,
702
+ 825,
703
+ 835
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "ARM-BN. ARM-BN is a particularly simple method that is applicable for any model $g$ that has BN layers [31] . Practically, training $g$ via ARM-BN follows the same protocol as Ioffe and Szegedy [31] except for two key differences: first, the training batches are sampled from a single domain, rather than from the entire dataset, and second, the normalization statistics are recomputed at test time rather than using a training running average. As noted, this second difference has been explored by several works as a method for test time adaptation, but the first difference is novel to ARM-BN. Following $\\mathbb { E } \\mathrm { { g o r i t h m } 1 } ,$ ARM-BN defines a meta-training procedure in which $g$ learns to adapt – i.e., compute normalization statistics – using batches of training points sampled from the same domain. We empirically show in Section 5 that, for problems where BN adaptation already has a favorable inductive bias, such as for image classification, further introducing meta-training boosts its performance. We believe that other test time adaptation methods, such as those based on optimizing surrogate losses [69, 75], may similarly benefit from their corresponding meta-training procedures. ",
710
+ "bbox": [
711
+ 174,
712
+ 842,
713
+ 825,
714
+ 911
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "",
721
+ "bbox": [
722
+ 173,
723
+ 90,
724
+ 826,
725
+ 189
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "At a high level, ARM-BN operates in a similar fashion to ARM-CML, thus we group these methods together into the umbrella of contextual approaches, shown in Figure 2 (top). The interpretation of ARM-BN through the contextual approach is that $h$ replaces the running statistics used by standard BN with statistics computed on the batch of inputs, which then serves as the context c. Thus, for ARM-BN, there is no context network, and $h$ has no parameters beyond the model parameters $\\theta$ involved in computing BN statistics. The model $g$ is again specified via a prediction network $\\mathrm { f _ { p r e d } }$ , which must have BN layers. BN typically tracks a running average of the first and second moments of the activations in these layers, which are then used at test time. ARM-BN defines $h$ such that it swaps out these moments for the moments computed via the activations on the test batch, thus giving us adapted parameters $\\theta ^ { \\prime }$ if we view the moments as part of the model parameters. This method is remarkably simple, and in deep learning libraries such as PyTorch $\\mathbb { \\left. \\boldsymbol { \\bar { 5 2 } } \\right. }$ , implementing ARM-BN involves changing a single line of code. However, as shown in Section 5, this method also performs very well empirically, and the adaptation effectiveness is further boosted by meta-training. ",
732
+ "bbox": [
733
+ 174,
734
+ 195,
735
+ 485,
736
+ 566
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "image",
742
+ "img_path": "images/4ad1ef1b3fb03fae82f6ea01d66756eaf3c7dbbf0305e9efb4474eae17a454b3.jpg",
743
+ "image_caption": [
744
+ "Figure 2: In the contextual approach (top), $\\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K }$ are summarized into a context c, and we propose two methods for this summarization, either through a separate context network or using batch normalization activations in the model itself. c can then be used by the model to infer additional information about the input distribution. In the gradient based approach (bottom), an unlabeled loss function $\\mathcal { L }$ is used for gradient updates to the model parameters, in order to produce parameters that are specialized to the test inputs and can produce more accurate predictions. "
745
+ ],
746
+ "image_footnote": [],
747
+ "bbox": [
748
+ 501,
749
+ 198,
750
+ 821,
751
+ 386
752
+ ],
753
+ "page_idx": 6
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "ARM-LL. ARM-LL, depicted in Figure 2 (bottom), follows the gradient based meta-learning paradigm $\\mathbb { \\lVert 1 8 \\rVert }$ and learns parameters $\\theta$ that are amenable to gradient updates on a loss function in order to quickly adapt to a new problem. In other words, $h$ produces $\\theta ^ { \\prime } \\bar { = } \\theta - \\alpha \\nabla _ { \\theta } \\mathcal { L } ( \\theta , \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { K } ; \\phi )$ , where $\\alpha$ is a hyperparameter. Note that the loss function $\\mathcal { L }$ used in the gradient updates is different from the original supervised loss function $\\ell$ , in that it operates on only the inputs $\\mathbf { x }$ , rather than the input output pairs that $\\ell$ receives. We follow the general implementation of this approach proposed in Yu et al. $\\pmb { \\| 8 0 \\| }$ . We define $g$ to produce output features $\\mathbf { o } \\in \\mathbb { R } ^ { | \\mathcal { V } | }$ that are used as logits when making predictions. We then define the unlabeled loss function $\\mathcal { L }$ to be the composition of $g$ and a loss network $\\mathsf { f } _ { \\mathrm { l o s s } } ( \\cdot ; \\boldsymbol { \\phi } ) : \\mathbb { R } ^ { | \\mathcal { V } | } \\mathbb { R }$ , which takes in the output features from $g$ and produces a scalar. We use the $\\ell _ { 2 }$ -norm of these scalars across the batch of inputs as the loss for updating $\\theta$ . In other words, $h ( \\theta , \\mathbf { x } _ { 1 } , . . . , \\mathbf { x } _ { K } ; \\phi ) = \\theta - \\alpha \\nabla _ { \\theta } \\| \\mathbf { v } \\| _ { 2 }$ , where $\\mathbf { v } = [ \\mathbf { f } _ { \\mathrm { l o s s } } ( g ( \\mathbf { x } _ { 1 } ; \\theta ) ; \\phi ) , \\dots , \\mathbf { f } _ { \\mathrm { l o s s } } ( g ( \\mathbf { x } _ { K } ; \\theta ) ; \\phi ) ]$ . ",
758
+ "bbox": [
759
+ 173,
760
+ 573,
761
+ 826,
762
+ 715
763
+ ],
764
+ "page_idx": 6
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "",
769
+ "bbox": [
770
+ 192,
771
+ 717,
772
+ 802,
773
+ 733
774
+ ],
775
+ "page_idx": 6
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "5 Experiments ",
780
+ "text_level": 1,
781
+ "bbox": [
782
+ 173,
783
+ 750,
784
+ 313,
785
+ 767
786
+ ],
787
+ "page_idx": 6
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "Our experiments are designed to answer the following questions: ",
792
+ "bbox": [
793
+ 174,
794
+ 780,
795
+ 607,
796
+ 794
797
+ ],
798
+ "page_idx": 6
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "1. Do ARM methods learn models that can leverage unlabeled adaptation to tackle domain shift? \n2. How do ARM methods compare to prior methods for robustness, invariance, and adaptation? \n3. Can models trained via ARM methods adapt successfully in the streaming test setting? ",
803
+ "bbox": [
804
+ 173,
805
+ 796,
806
+ 812,
807
+ 843
808
+ ],
809
+ "page_idx": 6
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "5.1 Evaluation domains and protocol ",
814
+ "text_level": 1,
815
+ "bbox": [
816
+ 174,
817
+ 857,
818
+ 444,
819
+ 872
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "We propose four image classification problems, which we present below and describe in full detail in Appendix D. We also present results on datasets from the WILDS benchmark [35] in subsection 5.4. ",
826
+ "bbox": [
827
+ 171,
828
+ 882,
829
+ 825,
830
+ 911
831
+ ],
832
+ "page_idx": 6
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "We believe that the problems we propose in this paper can supplement existing benchmarks for domain shift, which, as discussed above, are designed to test invariances. A key characteristic of the problems presented here is the potential for adaptation to improve test performance, and this differs from prior benchmarks such as the problems compiled by DomainBed [23]. In Appendix C, we compare our testbeds to DomainBed and group robustness benchmarks, and we briefly discuss the results in Gulrajani and Lopez-Paz $\\pmb { \\left. \\pmb { \\left. \\bar { 2 . 3 } \\right. } \\right. }$ , which also evaluate ARM-CML. ",
837
+ "bbox": [
838
+ 173,
839
+ 92,
840
+ 825,
841
+ 174
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "Rotated MNIST. We study a modified version of MNIST where images are rotated in 10 degree increments, from 0 to 130 degrees. We treat each rotation as a separate domain, i.e., a different value of $z$ . We use only 108 training data points for each of the 2 smallest domains (120 and 130 degrees), and 324 points each for rotations 90 to 110, whereas the overall training set contains 32292 points. In this setting, we hypothesize that adaptation can specialize the model to specific domains, in particular the rare domains in the training set. For each test evaluation, we generate images from the MNIST test set with a certain rotation. We measure both worst case and average accuracy across domains. ",
848
+ "bbox": [
849
+ 173,
850
+ 180,
851
+ 825,
852
+ 277
853
+ ],
854
+ "page_idx": 7
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "Federated Extended MNIST (FEMNIST). The extended MNIST (EMNIST) dataset consists of images of handwritten uppercase and lowercase letters, in addition to digits [12]. FEMNIST is the same dataset, but it also provides the meta-data of which user generated each data point [9]. We treat each user as a domain. We measure each method’s worst case and average accuracy across 35 test users, which are held out and thus disjoint from the training users. As discussed in Section 1, adaptation may help for this problem for specializing the model and resolving ambiguous data points. ",
859
+ "bbox": [
860
+ 174,
861
+ 284,
862
+ 825,
863
+ 367
864
+ ],
865
+ "page_idx": 7
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "Corrupted image datasets. CIFAR-10-C and Tiny ImageNet-C $\\lVert 2 5 \\rVert$ augment the CIFAR-10 [36] and Tiny ImageNet test sets with common image corruptions that vary in type and severity. The original goal of these augmented test sets was to benchmark how well methods could handle these corruptions without access to any corruptions during training $\\mathbb { \\left[ \\left[ 2 5 \\right] \\right] }$ . Thus, successful methods for these problems typically have relied on domain knowledge and heuristics designed specifically for image classification. For example, prior work has shown that carefully designed test time adaptation procedures are effective for these problems [69, 63, 75]. One possible reason for this phenomenon is that convolutional networks are biased toward texture $\\scriptstyle { \\left[ \\left[ 2 1 \\right] \\right] }$ , which is distorted by corruptions, thus adaptation can help the model recover its performance for each corruption type. ",
870
+ "bbox": [
871
+ 174,
872
+ 372,
873
+ 825,
874
+ 498
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "We study whether meta-training for adaptation performance can improve upon these results. To do so, we modify the protocol from Hendrycks and Dietterich $\\mathbb { \\left[ \\left[ 2 5 \\right] \\right] }$ to fit into the ARM problem setting by applying a set of 56 corruptions to the training data, and we define each corruption to be a domain. We use a disjoint set of 22 corruptions for the test data, which are mostly of different types from the training corruptions (thus, not sampled identically), and we measure worst case and average accuracy across the test corruptions. This modification allows us to study, for both ARM and prior methods, whether seeing corruptions at training time can help the model deal with new corruptions at test time. ",
881
+ "bbox": [
882
+ 174,
883
+ 505,
884
+ 826,
885
+ 602
886
+ ],
887
+ "page_idx": 7
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "5.2 Comparisons and ablations ",
892
+ "text_level": 1,
893
+ "bbox": [
894
+ 176,
895
+ 618,
896
+ 401,
897
+ 633
898
+ ],
899
+ "page_idx": 7
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "We compare the ARM methods against several prior methods designed for robustness, invariance, and adaptation. We describe the comparisons here and provide additional details in Appendix D. ",
904
+ "bbox": [
905
+ 176,
906
+ 643,
907
+ 821,
908
+ 672
909
+ ],
910
+ "page_idx": 7
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "Test time adaptation. We evaluate the general approach of using test batches to compute BN statistics [43, 63, 33, 50], which we term BN adaptation. We also compare to test time training (TTT) $\\mathbb { \\left| \\overline { { 6 9 } } \\right| }$ which adapts the model at test time using a self-supervised rotation prediction loss. These methods have previously achieved strong results for image classification, likely because they constitute favorable inductive biases for improving on the true classification task [69]. ",
915
+ "bbox": [
916
+ 174,
917
+ 678,
918
+ 825,
919
+ 748
920
+ ],
921
+ "page_idx": 7
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "Ablations. We also include ablations of the ARM-CML and ARM-LL methods, which sample training batches of unlabeled examples uniformly from the entire training set, rather than sampling from a single domain.3 These “context ablation” and “learned loss ablation” are similar to test time adaptation methods in that they do not require training domains, thus they allow us to evaluate whether or not meta-training on domain shifts is important for improved performance. ",
926
+ "bbox": [
927
+ 174,
928
+ 755,
929
+ 825,
930
+ 824
931
+ ],
932
+ "page_idx": 7
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Group robustness and invariance. Sagawa et al. $\\left[ \\left[ 6 0 \\right] \\right]$ recently proposed a state-of-the-art method for group robustness, and we refer to this approach as distributionally robust neural networks (DRNN). Their work also evaluates a strong upweighting (UW) baseline that samples uniformly from each group, and so we also evaluate this approach in our experiments. Additionally, we compare to ",
937
+ "bbox": [
938
+ 174,
939
+ 830,
940
+ 825,
941
+ 886
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Table 1: Worst case (WC) and average (Avg) top 1 accuracy on all testbeds, where means and standard errors are reported across three separate runs of each method. Horizontal lines separate methods that make use of (from top to bottom): neither, training domains, test batches, or both. ARM methods consistently achieve greater robustness, measured by WC, and Avg performance compared to prior methods. $^ { * } \\mathrm { U W }$ is identical to ERM for CIFAR-10-C and Tiny ImageNet-C. ",
948
+ "bbox": [
949
+ 173,
950
+ 87,
951
+ 825,
952
+ 157
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "These results have been updated from an earlier version of the paper, primarily for CIFAR10-C, due to significant refactoring of the code, additional hyperparameter tuning for both the ARM methods and the prior methods, and efforts to standardize results across the authors’ different computing environments and library versions. These results are reproducible from the publicly available code: https://github.com/henrikmarklund/arm. ",
959
+ "bbox": [
960
+ 173,
961
+ 170,
962
+ 825,
963
+ 241
964
+ ],
965
+ "page_idx": 8
966
+ },
967
+ {
968
+ "type": "table",
969
+ "img_path": "images/b1a364d63cca9cdf72507533fd7288236cadacde948e5c0d58b3be485ca3f7b6.jpg",
970
+ "table_caption": [],
971
+ "table_footnote": [],
972
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">MNIST</td><td colspan=\"2\">FEMNIST</td><td colspan=\"2\">CIFAR-10-C</td><td colspan=\"2\">Tiny ImageNet-C</td></tr><tr><td>WC</td><td>Avg</td><td>WC</td><td>Avg</td><td>wC</td><td>Avg</td><td>wC</td><td>Avg</td></tr><tr><td>ERM</td><td>74.5 ± 1.4</td><td>93.6±0.4</td><td>62.4±0.4</td><td>79.1± 0.3</td><td>54.1± 0.3</td><td>70.4± 0.1</td><td>20.3±0.5</td><td>41.9 ± 0.1</td></tr><tr><td>UW*</td><td>80.3 ±1.2</td><td>95.1±0.1</td><td>65.7 ± 0.7</td><td>80.3±0.6</td><td></td><td></td><td></td><td></td></tr><tr><td>DRNN</td><td>79.9 ± 0.7</td><td>94.9 ±0.1</td><td>57.5 ± 1.7</td><td>76.5 ± 1.2</td><td>49.3± 0.9</td><td>65.7 ± 0.5</td><td>14.2 ± 0.2</td><td>31.6 ±1.0</td></tr><tr><td>DANN</td><td>78.8±0.8</td><td>94.9 ± 0.1</td><td>65.4 ± 1.0</td><td>81.7 ± 0.3</td><td>53.9±2.2</td><td>69.8±0.3</td><td>20.4± 0.7</td><td>40.9±0.2</td></tr><tr><td>MMD</td><td>82.4±0.9</td><td>95.3± 0.3</td><td>62.4±0.7</td><td>79.8 ±0.4</td><td>52.2 ±0.3</td><td>69.5 ±0.1</td><td>19.7 ±0.2</td><td>40.1±0.1</td></tr><tr><td>BN adaptation</td><td>78.0±0.3</td><td>94.4± 0.1</td><td>65.7 ± 1.5</td><td>80.0 ±0.5</td><td>60.6±0.3</td><td>70.9 ± 0.1</td><td>26.5 ± 0.3</td><td>42.8 ±0.0</td></tr><tr><td>TTT</td><td>81.1±0.3</td><td>95.4±0.1</td><td>68.6 ±0.4</td><td>84.2±0.1</td><td>61.5 ± 0.3</td><td>71.7 ± 0.5</td><td>27.6± 0.5</td><td>37.7 ± 0.3</td></tr><tr><td>CML ablation</td><td>63.5 ± 1.8</td><td>90.1 ±0.2</td><td>61.8 ±0.8</td><td>81.6 ± 0.5</td><td>58.8 ±0.1</td><td>69.6±0.2</td><td>26.3±0.6</td><td>42.5 ± 0.1</td></tr><tr><td>LL ablation</td><td>79.9 ± 1.1</td><td>95.0± 0.3</td><td>64.1 ± 1.6</td><td>80.8 ±0.2</td><td>60.9 ± 0.4</td><td>71.3 ± 0.0</td><td>21.6 ± 2.1</td><td>32.6 ± 3.2</td></tr><tr><td>ARM-CML</td><td>88.0±0.8</td><td>96.3±0.4</td><td>70.9 ± 1.4</td><td>86.4±0.3</td><td>61.2 ± 0.4</td><td>70.3±0.2</td><td>29.1± 0.4</td><td>43.3 ±0.1</td></tr><tr><td>ARM-BN</td><td>83.3 ±0.5</td><td>95.6 ±0.1</td><td>64.5 ±3.2</td><td>83.2 ± 0.5</td><td>61.7 ± 0.3</td><td>72.4±0.3</td><td>28.3± 0.3</td><td>43.3± 0.1</td></tr><tr><td>ARM-LL</td><td>88.9±0.8</td><td>96.9±0.2</td><td>67.0±0.9</td><td>84.3±0.7</td><td>61.2±0.7</td><td>72.5± 0.4</td><td>25.4± 0.1</td><td>35.7 ±0.4</td></tr></table>",
973
+ "bbox": [
974
+ 171,
975
+ 247,
976
+ 823,
977
+ 420
978
+ ],
979
+ "page_idx": 8
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "domain adversarial neural networks (DANN) $\\mathbb { \\lVert 1 9 \\rVert }$ and maximum mean discrepancy (MMD) feature learning [41], two state-of-the-art methods for adversarial learning of invariant predictive features. For the WILDS datasets, we include the numbers reported in Koh et al. $\\pmb { \\Vert 3 5 \\Vert }$ for DRNN and two other invariance methods, correlation alignment (CORAL) $ { \\mathbb { I } } { \\mathbb { I } }$ and invariant risk minimization (IRM) [3]. ",
984
+ "bbox": [
985
+ 174,
986
+ 457,
987
+ 825,
988
+ 513
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Robustness and invariance methods assume access to training domains but not test batches, whereas adaptation methods assume the opposite. Thus, at a high level, we can view the comparisons to these methods as evaluating the importance of each of these assumptions for the specified problems. ",
995
+ "bbox": [
996
+ 174,
997
+ 520,
998
+ 825,
999
+ 561
1000
+ ],
1001
+ "page_idx": 8
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "5.3 Quantitative evaluation and comparisons ",
1006
+ "text_level": 1,
1007
+ "bbox": [
1008
+ 173,
1009
+ 585,
1010
+ 500,
1011
+ 601
1012
+ ],
1013
+ "page_idx": 8
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "The results for the four proposed benchmarks are presented in Table 1. The best results, stratified by classes of methods, are bolded, with the single best result across all methods underlined. Across all of these problems, ARM methods increase both worst case and average accuracy compared to all other methods. ARM-CML performs well across all tasks, and despite its simplicity, ARM-BN achieves the best performance overall on the corrupted image testbeds, demonstrating the effectiveness of metatraining on top of an already strong adaptation procedure. BN adaptation and TTT are the strongest prior methods, as these adaptation procedures constitute inductive biases that are generally well suited for image classification. However, ARM methods are comparatively less reliant on favorable inductive biases and consistently attain better results. In general, we observe poor performance from robustness methods, varying performance from invariance methods, strong performance from adaptation methods, and the strongest performance from ARM methods. ",
1018
+ "bbox": [
1019
+ 173,
1020
+ 613,
1021
+ 825,
1022
+ 767
1023
+ ],
1024
+ "page_idx": 8
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "When we cannot access a batch of test points all at once, and instead the points are observed in a streaming fashion, we can augment the proposed ARM methods to perform sequential model updates. For example, ARM-CML and ARM-BN can update their average context and normalization statistics, respectively, after observing each new test point. In Figure 3, we study this test setting for the Tiny ImageNet-C problem. We see that both models trained with ARM-CML and ARM-BN are able to achieve near their original worst case and average accuracy within observing 50 data points, well before the training batch size of 100. This result demonstrates that ARM methods are applicable for problems where test points must be observed one at a time, provided that the model is permitted to adapt using each point. We describe in detail how each ARM method can be applied to the streaming setting in Appendix B, and we provide streaming results on rotated MNIST in Appendix E. ",
1029
+ "bbox": [
1030
+ 174,
1031
+ 772,
1032
+ 825,
1033
+ 912
1034
+ ],
1035
+ "page_idx": 8
1036
+ },
1037
+ {
1038
+ "type": "image",
1039
+ "img_path": "images/a266c73291c4902cc98f6f0a173936b65146e6d4cf5179e742872fa1480eb8c1.jpg",
1040
+ "image_caption": [
1041
+ "Figure 3: In the streaming setting, ARM methods reach strong performance on Tiny ImageNet-C after fewer than 50 data points, despite using training batch sizes of 100. This highlights that the trained models are able to adapt successfully in the standard streaming evaluation setting. "
1042
+ ],
1043
+ "image_footnote": [],
1044
+ "bbox": [
1045
+ 245,
1046
+ 88,
1047
+ 753,
1048
+ 228
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "table",
1054
+ "img_path": "images/6788d8c31193488ffa4f4ebcfa555a5c5b9914489e133723418fb67e1b84e0fe.jpg",
1055
+ "table_caption": [
1056
+ "Table 2: Results on the WILDS image testbeds. Different methods are best suited for different problems, motivating the need for a wide range of methods. ARM-BN struggles on FMoW but performs well on the other datasets, in particular RxRx1. "
1057
+ ],
1058
+ "table_footnote": [],
1059
+ "table_body": "<table><tr><td></td><td colspan=\"2\">iWildCam</td><td>Camelyon17</td><td>RxRx1</td><td colspan=\"2\">FMoW</td><td colspan=\"2\">PovertyMap</td></tr><tr><td>Method</td><td>Acc</td><td>Macro F1</td><td>Acc</td><td>Acc</td><td>WC Acc</td><td>Avg Acc</td><td>WC Pearson r</td><td>Pearson r</td></tr><tr><td>ERM</td><td>71.6 ± 2.5</td><td>31.0 ±1.3</td><td>70.3±6.4</td><td>29.9 ± 0.4</td><td>32.3±1.25</td><td>53.0±0.55</td><td>0.45±0.06</td><td>0.78±0.04</td></tr><tr><td>DRNN</td><td>72.7±2.0</td><td>23.9 ± 2.1</td><td>68.4± 7.3</td><td>23.0±0.3</td><td>30.8 ±0.81</td><td>52.1±0.5</td><td>0.39 ±0.06</td><td>0.75±0.07</td></tr><tr><td>CORAL</td><td>73.3±4.3</td><td>32.8±0.1</td><td>59.5± 7.7</td><td>28.4±0.3</td><td>31.7 ±1.24</td><td>50.5 ±0.36</td><td>0.44±0.06</td><td>0.78±0.05</td></tr><tr><td>IRM</td><td>59.8 ±3.7</td><td>15.1 ± 4.9</td><td>64.2± 8.1</td><td>8.2 ±1.1</td><td>30.0±1.37</td><td>50.8 ±0.13</td><td>0.43 ± 0.07</td><td>0.77± 0.05</td></tr><tr><td>BN adaptation</td><td>46.4± 1.0</td><td>13.8±0.3</td><td>88.6±1.4</td><td>20.0±0.2</td><td>30.2±0.26</td><td>51.6 ± 0.16</td><td>0.39 ±0.17</td><td>0.82±0.06</td></tr><tr><td>ARM-BN</td><td>70.3±2.4</td><td>23.2 ±2.7</td><td>87.2±0.9</td><td>31.2 ±0.1</td><td>24.6 ±0.04</td><td>42.0±0.21</td><td>0.49±0.21</td><td>0.84±0.05</td></tr></table>",
1060
+ "bbox": [
1061
+ 173,
1062
+ 343,
1063
+ 821,
1064
+ 436
1065
+ ],
1066
+ "page_idx": 9
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "5.4 WILDS results ",
1071
+ "text_level": 1,
1072
+ "bbox": [
1073
+ 173,
1074
+ 467,
1075
+ 313,
1076
+ 481
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Finally, we present results on the WILDS benchmark $\\pmb { \\Vert 3 5 \\Vert }$ t Table 2. We evaluate BN adaptation and ARM-BN on these testbeds. We see that, on these real world distribution shift problems, different methods perform well for different problems. CORAL, a method for invariance $\\mathbf { \\widehat { \\mathbf { \\phi } } } [ \\mathbf { \\overline { { 6 7 } } } ] \\mathbf { \\xi }$ , performs best on the iWildCam animal classification problem [5], whereas no methods outperform ERM by a significant margin on the FMoW [11] or PovertyMap $\\textcircled { 1 7 9 }$ satellite imagery problems. ARM-BN performs particularly poorly on the FMoW problem. However, it performs well on PovertyMap and significantly improves performance on the RxRx1 $\\mathbb { \\ m }$ problem of treatment classification from medical images. On the other medical imagery problem of Camelyon17 [4] tumor identification, adaptation in general boosts performance dramatically. These results indicate the need to consider a wide range of tools, including meta-learning and adaptation, for combating distribution shift. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 491,
1086
+ 825,
1087
+ 631
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "6 Discussion and Future Work ",
1094
+ "text_level": 1,
1095
+ "bbox": [
1096
+ 176,
1097
+ 651,
1098
+ 442,
1099
+ 669
1100
+ ],
1101
+ "page_idx": 9
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "We presented adaptive risk minimization (ARM), a framework and problem formulation for learning models that can adapt in the face of domain shift at test time using only a batch of unlabeled test examples. We devised an algorithm and instantiated a set of methods for optimizing the ARM objective that meta-learns models that are adaptable to different domains of training data. Empirically, we observed that ARM methods consistently improve performance in terms of both average and worst case metrics, as compared to a number of prior approaches for handling domain shift. ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 683,
1109
+ 825,
1110
+ 767
1111
+ ],
1112
+ "page_idx": 9
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Though we provided contextual meta-learning as a concrete example, a number of other meta-learning paradigms would also be interesting to extend to the ARM setting. For example, few shot generative modeling objectives would be a natural fit for unlabeled adaptation $\\boxed { 1 6 } \\boxed { 2 6 } \\boxed { 7 7 }$ . Another exciting direction for future work is to explore the problem setting where domains are not provided at training time. As discussed in $\\underline { { \\mathrm { ~ A p p e n d i x ~ } } } \\mathrm { ~ \\bar { E } ~ }$ in this setting, we can instead construct domains via unsupervised learning techniques. Similar to Hsu et al. $\\pmb { \\left. 2 8 \\right. }$ , one promising approach is to generate a diverse set of domains in order to learn generally effective adaptation strategies. Robustness and invariance methods cannot be used easily with multiple different groupings, learned or otherwise, as techniques such as group weighted loss functions $\\dot { \\left\\| 6 0 \\right\\| }$ and domain classifiers $\\mathbb { \\lVert 1 9 \\rVert }$ are not immediately extendable to this setup. Thus, ARM methods may be uniquely suited to be paired with domain learning. ",
1117
+ "bbox": [
1118
+ 174,
1119
+ 772,
1120
+ 825,
1121
+ 911
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Acknowledgments and Disclosure of Funding ",
1128
+ "text_level": 1,
1129
+ "bbox": [
1130
+ 174,
1131
+ 88,
1132
+ 553,
1133
+ 107
1134
+ ],
1135
+ "page_idx": 10
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "MZ thanks Matt Johnson and Sharad Vikram for helpful discussions and was supported by an NDSEG fellowship. HM is funded by a scholarship from the Dr. Tech. Marcus Wallenberg Foundation for Education in International Industrial Entrepreneurship. AG was supported by an NSF graduate research fellowship. CF is a CIFAR Fellow in the Learning in Machines and Brains program. This research was supported by the DARPA Assured Autonomy and Learning with Less Labels programs. ",
1140
+ "bbox": [
1141
+ 174,
1142
+ 121,
1143
+ 825,
1144
+ 190
1145
+ ],
1146
+ "page_idx": 10
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "References ",
1151
+ "text_level": 1,
1152
+ "bbox": [
1153
+ 174,
1154
+ 210,
1155
+ 266,
1156
+ 227
1157
+ ],
1158
+ "page_idx": 10
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "[1] F. Alet, M. Bauza, K. Kawaguchi, N. Kuru, T. Lozano-Pérez, and L. Kaelbling. Tailoring: Encoding inductive biases by optimizing unsupervised objectives at prediction time. In Advances in Neural Information Processing Systems (NeurIPS), 2021. \n[2] A. Antoniou and A. Storkey. Learning to learn via self-critique. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[3] M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019. \n[4] P. Bandi, O. Geessink, Q. Manson, M. Van Dijk, M. Balkenhol, M. Hermsen, B. Bejnordi, B. Lee, K. Paeng, A. Zhong, et al. From detection of individual metastases to classification of lymph node status at the patient level: the CAMELYON17 challenge. IEEE Transactions on Medical Imaging, 2018. \n[5] S. Beery, E. Cole, and A. Gjoka. The iWildCam 2020 competition dataset. arXiv preprint arXiv:2004.10340, 2020. \n[6] S. Bengio, Y. Bengio, J. Cloutier, and J. Gecsei. On the optimization of a synaptic learning rule. In Optimality in Artificial and Biological Neural Networks, 1992. \n[7] G. Blanchard, G. Lee, and C. Scott. Generalizing from several related classification tasks to a new unlabeled sample. In Advances in Neural Information Processing Systems (NIPS), 2011. \n[8] G. Blanchard, A. Deshmukh, U. Dogan, G. Lee, and C. Scott. Domain generalization by marginal transfer learning. Journal of Machine Learning Research (JMLR), 2021. \n[9] S. Caldas, S. Duddu, P. Wu, T. Li, J. Konecnˇ ý, H. McMahan, V. Smith, and A. Talwalkar. LEAF: A benchmark for federated settings. In Workshop on Federated Learning for Data Privacy and Confidentiality, 2019. \n[10] F. Carlucci, L. Porzi, B. Caputo, E. Ricci, and S. Rota Bulò. AutoDIAL: Automatic domaIn alignment layers. In IEEE International Conference on Computer Vision (ICCV), 2017. \n[11] G. Christie, N. Fendley, J. Wilson, and R. Mukherjee. Functional map of the world. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \n[12] G. Cohen, S. Afshar, J. Tapson, and A. van Schaik. EMNIST: An extension of MNIST to handwritten letters. arXiv preprint arXiv:1702.05373, 2017. \n[13] G. Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017. \n[14] H. Daumé III. Frustratingly easy domain adaptation. In Conference of the Association for Computational Linguistics (ACL), 2007. \n[15] Q. Dou, D. Castro, K. Kamnitsas, and B. Glocker. Domain generalization via model-agnostic learning of semantic features. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[16] H. Edwards and A. Storkey. Towards a neural statistician. In International Conference on Learning Representations (ICLR), 2017. \n[17] C. Fang, Y. Xu, and D. Rockmore. Unbiased metric learning: On the utilization of multiple datasets and web images for softening bias. In IEEE International Conference on Computer Vision (ICCV), 2013. \n[18] C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning (ICML), 2017. \n[19] Y. Ganin and V. Lempitsky. Unsupervised domain adaptation by backpropagation. In International Conference on Machine Learning (ICML), 2015. \n[20] M. Garnelo, D. Rosenbaum, C. Maddison, T. Ramalho, D. Saxton, M. Shanahan, Y. Teh, D. Rezende, and S. Eslami. Conditional neural processes. In International Conference on Machine Learning (ICML), 2018. \n[21] R. Geirhos, P. Rubisch, C. Michaelis, M. Bethge, F. Wichmann, and W. Brendel. Imagenettrained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations (ICLR), 2019. \n[22] B. Gong, Y. Shi, F. Sha, and K. Grauman. Geodesic flow kernel for unsupervised domain adaptation. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. \n[23] I. Gulrajani and D. Lopez-Paz. In search of lost domain generalization. In International Conference on Learning Representations (ICLR), 2021. \n[24] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. \n[25] D. Hendrycks and T. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019. \n[26] L. Hewitt, M. Nye, A. Gane, T. Jaakkola, and J. Tenenbaum. The variational homoencoder: Learning to learn high capacity generative models from few examples. In Conference on Uncertainty in Artificial Intelligence (UAI), 2018. \n[27] S. Hochreiter, A. Younger, and P. Conwell. Learning to learn using gradient descent. In International Conference on Artificial Neural Networks (ICANN), 2001. \n[28] K. Hsu, S. Levine, and C. Finn. Unsupervised learning via meta-learning. In International Conference on Learning Representations (ICLR), 2019. \n[29] S. Hu, P. Moreno, Y. Xiao, X. Shen, G. Obozinski, N. Lawrence, and A. Damianou. Empirical Bayes transductive meta-learning with synthetic gradients. In International Conference on Learning Representations (ICLR), 2020. \n[30] W. Hu, G. Niu, I. Sato, and M. Sugiyama. Does distributionally robust supervised learning give robust classifiers? In International Conference on Machine Learning (ICML), 2018. \n[31] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015. \n[32] E. Jang, S. Gu, and B. Poole. Categorical reparameterization with Gumbel-softmax. In International Conference on Learning Representations (ICLR), 2017. \n[33] A. Kaku, S. Mohan, A. Parnandi, H. Schambra, and C. Fernandez-Granda. Be like water: Robustness to extraneous variables via adaptive feature normalization. arXiv preprint arXiv:2002.04019, 2020. \n[34] D. Kingma and M. Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations (ICLR), 2014. \n[35] P. Koh, S. Sagawa, H. Marklund, S. Xie, M. Zhang, A. Balsubramani, W. Hu, M. Yasunaga, R. Phillips, I. Gao, T. Lee, E. David, I. Stavness, W. Guo, B. Earnshaw, I. Haque, S. Beery, J. Leskovec, A. Kundaje, E. Pierson, S. Levine, C. Finn, and P. Liang. WILDS: A benchmark of in-the-wild distribution shifts. In International Conference on Machine Learning (ICML), 2021. \n[36] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. \n[37] A. Kumagai and T. Iwata. Zero-shot domain adaptation with domain semantic descriptors. arXiv preprint arXiv:1807.02927, 2018. \n[38] D. Lazer, R. Kennedy, G. King, and A. Vespignani. The parable of Google flu: Traps in big data analysis. Science, 2014. \n[39] D. Li, Y. Yang, Y. Song, and T. Hospedales. Deeper, broader and artier domain generalization. In IEEE International Conference on Computer Vision (ICCV), 2017. \n[40] D. Li, Y. Yang, Y. Song, and T. Hospedales. Learning to generalize: Meta-learning for domain generalization. In AAAI Conference on Artificial Intelligence (AAAI), 2018. \n[41] H. Li, S. Pan, S. Wang, and A. Kot. Domain generalization with adversarial feature learning. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \n[42] X. Li, Q. Sun, Y. Liu, Q. Zhou, S. Zheng, T. Chua, and B. Schiele. Learning to self-train for semi-supervised few-shot classification. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[43] Y. Li, N. Wang, J. Shi, J. Liu, and X. Hou. Revisiting batch normalization for practical domain adaptation. In International Conference on Learning Representations Workshop (ICLRW), 2017. \n[44] Y. Li, X. Tian, M. Gong, Y. Liu, T. Liu, K. Zhang, and D. Tao. Deep domain generalization via conditional invariant adversarial networks. In European Conference on Computer Vision (ECCV), 2018. \n[45] Z. Lipton, Y. Wang, and A. Smola. Detecting and correcting for label shift with black box predictors. In International Conference on Machine Learning (ICML), 2018. \n[46] Y. Liu, J. Lee, M. Park, S. Kim, E. Yang, S. Hwang, and Y. Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In International Conference on Learning Representations (ICLR), 2019. \n[47] C. Maddison, A. Mnih, and Y. Teh. The Concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations (ICLR), 2017. \n[48] L. Metz, N. Maheswaranathan, B. Cheung, and J. Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. In International Conference on Learning Representations (ICLR), 2019. \n[49] K. Muandet, D. Balduzzi, and B. Schölkopf. Domain generalization via invariant feature representation. In International Conference on Machine Learning (ICML), 2013. \n[50] Z. Nado, S. Padhy, D. Sculley, A. D’Amour, B. Lakshminarayanan, and J. Snoek. Evaluating prediction-time batch normalization for robustness under covariate shift. arXiv preprint arXiv:2006.10963, 2020. \n[51] A. Nichol, J. Achiam, and J. Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018. \n[52] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[53] X. Peng, Q. Bai, X. Xia, Z. Huang, K. Saenko, and B. Wang. Moment matching for multi-source domain adaptation. In IEEE International Conference on Computer Vision (ICCV), 2019. \n[54] J. Quiñonero Candela, M. Sugiyama, A. Schwaighofer, and N. Lawrence. Dataset Shift in Machine Learning. The MIT Press, 2009. \n[55] S. Ravi and H. Larochelle. Optimization as a model for few-shot learning. In International Conference on Learning Representations (ICLR), 2017. \n[56] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. Tenenbaum, H. Larochelle, and R. Zemel. Meta-learning for semi-supervised few-shot classification. In International Conference on Learning Representations (ICLR), 2018. \n[57] J. Requeima, J. Gordon, J. Bronskill, S. Nowozin, and R. Turner. Fast and flexible multi-task classification using conditional neural adaptive processes. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[58] D. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International Conference on Machine Learning (ICML), 2014. \n[59] A. Royer and C. Lampert. Classifier adaptation at prediction time. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. \n[60] S. Sagawa, P. Koh, T. Hashimoto, and P. Liang. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. In International Conference on Learning Representations (ICLR), 2020. \n[61] A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap. Meta-learning with memory-augmented neural networks. In International Conference on Machine Learning (ICML), 2016. \n[62] J. Schmidhuber. Evolutionary principles in self-referential learning. Diploma thesis, Institut f. Informatik, Tech. Univ. Munich, 1987. \n[63] S. Schneider, E. Rusak, L. Eck, O. Bringmann, W. Brendel, and M. Bethge. Improving robustness against common corruptions by covariate shift adaptation. In Advances in Neural Information Processing Systems (NeurIPS), 2020. \n[64] H. Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of Statistical Planning and Inference (JSPI), 2000. \n[65] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems (NIPS), 2017. \n[66] M. Sulc and J. Matas. Improving CNN classifiers by estimating test-time priors. In IEEE International Conference on Computer Vision (ICCV), 2019. \n[67] B. Sun, J. Feng, and K. Saenko. Return of frustratingly easy domain adaptation. In AAAI Conference on Artificial Intelligence (AAAI), 2016. \n[68] S. Sun, H. Shi, and Y. Wu. A survey of multi-source domain adaptation. Information Fusion, 2015. \n[69] Y. Sun, X. Wang, Z. Liu, J. Miller, A. Efros, and M. Hardt. Test-time training with selfsupervision for generalization under distribution shifts. In International Conference on Machine Learning (ICML), 2020. \n[70] J. Taylor, B. Earnshaw, B. Mabey, M. Victors, and J. Yosinski. RxRx1: An image set for cellular morphological variation across many experimental batches. In International Conference on Learning Representations (ICLR), 2019. \n[71] S. Thrun and L. Pratt. Learning to Learn. Springer Science & Business Media, 1998. \n[72] E. Tzeng, J. Hoffman, K. Saenko, and T. Darrell. Adversarial discriminative domain adaptation. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. \n[73] V. Vapnik. Statistical Learning Theory. Wiley New York, 1998. \n[74] O. Vinyals, C. Blundell, T. Lillicrap, K. Kavukcuoglu, and D. Wierstra. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NIPS), 2016. \n[75] D. Wang, E. Shelhamer, S. Liu, B. Olshausen, and T. Darrell. Tent: Fully test-time adaptation by entropy minimization. In International Conference on Learning Representations (ICLR), 2021. \n[76] G. Wilson and D. Cook. A survey of unsupervised deep domain adaptation. ACM Transactions on Intelligent Systems and Technology (TIST), 2020. \n[77] M. Wu, K. Choi, N. Goodman, and S. Ermon. Meta-amortized variational inference and learning. In AAAI Conference on Artificial Intelligence (AAAI), 2019. \n[78] Y. Yang and T. Hospedales. A unified perspective on multi-domain and multi-task learning. In International Conference on Learning Representations (ICLR), 2015. \n[79] C. Yeh, A. Perez, A. Driscoll, G. Azzari, Z. Tang, D. Lobell, S. Ermon, and M. Burke. Using publicly available satellite imagery and deep learning to understand economic well-being in Africa. Nature Communications, 2020. \n[80] T. Yu, C. Finn, A. Xie, S. Dasari, P. Abbeel, and S. Levine. One-shot imitation from observing humans via domain-adaptive meta-learning. In Robotics: Science and Systems (RSS), 2018. \n[81] R. Zhang, T. Che, Z. Ghahramani, Y. Bengio, and Y. Song. MetaGAN: An adversarial approach to few-shot learning. In Advances in Neural Information Processing Systems (NeurIPS), 2018. ",
1163
+ "bbox": [
1164
+ 178,
1165
+ 231,
1166
+ 826,
1167
+ 915
1168
+ ],
1169
+ "page_idx": 10
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "",
1174
+ "bbox": [
1175
+ 171,
1176
+ 78,
1177
+ 828,
1178
+ 917
1179
+ ],
1180
+ "page_idx": 11
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "",
1185
+ "bbox": [
1186
+ 169,
1187
+ 65,
1188
+ 828,
1189
+ 919
1190
+ ],
1191
+ "page_idx": 12
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "",
1196
+ "bbox": [
1197
+ 169,
1198
+ 54,
1199
+ 828,
1200
+ 922
1201
+ ],
1202
+ "page_idx": 13
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "",
1207
+ "bbox": [
1208
+ 171,
1209
+ 90,
1210
+ 828,
1211
+ 375
1212
+ ],
1213
+ "page_idx": 14
1214
+ }
1215
+ ]
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/0CDKgyYaxC8/0CDKgyYaxC8.md ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evaluating Gradient Inversion Attacks and Defenses in Federated Learning
2
+
3
+ Yangsibo Huang
4
+ Princeton University
5
+ Princeton, NJ 08540
6
+ yangsibo@princeton.edu
7
+
8
+ Samyak Gupta Princeton University Princeton, NJ 08540 samyakg@cs.princeton.edu
9
+
10
+ Zhao Song Adobe Research San Jose, CA 95110 zsong@adobe.com
11
+
12
+ Kai Li Princeton University Princeton, NJ 08540 li@cs.princeton.edu
13
+
14
+ Sanjeev Arora Princeton University Princeton, NJ 08540 arora@cs.princeton.edu
15
+
16
+ # Abstract
17
+
18
+ Gradient inversion attack (or input recovery from gradient) is an emerging threat to the security and privacy preservation of Federated learning, whereby malicious eavesdroppers or participants in the protocol can recover (partially) the clients’ private data. This paper evaluates existing attacks and defenses. We find that some attacks make strong assumptions about the setup. Relaxing such assumptions can substantially weaken these attacks. We then evaluate the benefits of three proposed defense mechanisms against gradient inversion attacks. We show the trade-offs of privacy leakage and data utility of these defense methods, and find that combining them in an appropriate manner makes the attack less effective, even under the original strong assumptions. We also estimate the computation cost of end-to-end recovery of a single image under each evaluated defense. Our findings suggest that the state-of-the-art attacks can currently be defended against with minor data utility loss, as summarized in a list of potential strategies.
19
+
20
+ # 1 Introduction
21
+
22
+ Federated learning [McMahan et al., 2016, Kairouz et al., 2021] is a framework that allows multiple clients in a distributed environment to collaboratively train a neural network model at a central server, without moving their data to the central server. At every training step, each client computes a model update —i.e., gradient— on its local data using the latest copy of the global model, and then sends the gradient to the central server. The server aggregates these updates (typically by averaging) to construct a global model, and then sends the new model parameters to all clients. By allowing clients to participate in training without directly sharing their data, such protocols align better with data privacy regulations such as Health Insurance Portability and Accountability Act (HIPPA) [Act, 1996], California Consumer Privacy Act (CCPA) [Legislature, 2018], and General Data Protection Regulation [Commission, 2018].
23
+
24
+ While sharing gradients was thought to leak little information about the client’s private data, recent papers [Zhu et al., 2019, Zhao et al., 2020, Geiping et al., 2020, Yin et al., 2021] developed a “gradient inversion attack” by which an attacker eavesdropping on a client’s communications with the server can begin to reconstruct the client’s private data. The attacker can also be a malicious participant in the Federated Learning scheme, including a honest-but-curious server who wishes to reconstruct private data of clients, or a honest-but-curious client who wishes to reconstruct private data of other clients. These attacks have been shown to work with batch sizes only up to 100 but even so they have created doubts about the level of privacy ensured in Federated Learning. The current paper seeks to evaluate the risks and suggest ways to minimize them.
25
+
26
+ Several defenses against gradient inversion attacks have been proposed. These include perturbing gradients [Zhu et al., 2019, Wei et al., 2020] and using transformation for training data that clients can apply on the fly [Zhang et al., 2018a, Huang et al., 2020]. More traditional cryptographic ideas including secure aggregation [Bonawitz et al., 2016] or homomorphic encryption [Phong et al., 2018] for the gradients can also be used and presumably stop any eavesdropping attacks completely. They will not be studied here due to their special setups and overhead.
27
+
28
+ We are not aware of a prior systematic evaluation of the level of risk arising from current attacks and the level of security provided by various defenses, as well as the trade-off (if any) between test accuracy, computation overhead, and privacy risks.
29
+
30
+ The paper makes two main contributions. First, we draw attention to two strong assumptions that a current gradient inversion attack [Geiping et al., 2020] implicitly makes. We show that by nullifying these assumptions, the performance of the attack drops significantly and can only work for lowresolution images. The findings are explored in Section 3 and already imply some more secure configurations in Federated Learning (Section 6).
31
+
32
+ Second, we summarize various defenses (Section 4) and systematically evaluate (Section 5) some of their performance of defending against a state-of-the-art gradient inversion attack, and present their data utility and privacy leakage trade-offs. We estimate the computation cost of end-to-end recovery of a single image under each evaluated defense. We also experimentally demonstrate the feasibility and effectiveness of combined defenses. Our findings are summarized as strategies to further improve Federated Learning’s security against gradient inversion attacks (Section 6).
33
+
34
+ In Appendix B, we provide theoretical insights for mechanism of each evaluated defense.
35
+
36
+ # 2 Gradient Inversion Attacks
37
+
38
+ Previous studies have shown the feasibility of recovering input from gradient (i.e. gradient inversion) for image classification tasks, by formulating it as an optimization problem: given a neural network with parameters $\theta$ , and the gradient $\nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } )$ computed with a private data batch $( x ^ { * } , y ^ { * } ) \in$ $\mathbb { R } ^ { b \times d } \times \mathbb { R } ^ { b }$ $( b , d$ being the batch size, image size), the attacker tries to recover $x \in \mathbb { R } ^ { b \times d }$ , an approximation of $x ^ { * }$ :
39
+
40
+ $$
41
+ \arg \operatorname* { m i n } _ { x } \mathcal { L } _ { \mathrm { g r a d } } ( x ; \theta , \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) ) + \alpha \mathcal { R } _ { \mathrm { a u x } } ( x )
42
+ $$
43
+
44
+ The optimization goal consists of two parts: $\mathcal { L } _ { \mathrm { g r a d } } ( x ; \theta , \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) )$ enforces matching of the gradient of recovered batch $x$ with the provided gradients $\mathcal { L } _ { \boldsymbol { \theta } } ( x ^ { * } , y ^ { * } )$ , and $\mathcal { R } _ { \mathrm { a u x } } ( x )$ regularizes the recovered image based on image prior(s).
45
+
46
+ [Phong et al., 2017] brings theoretical insights on this task by proving that such reconstruction is possible with a single-layer neural network. [Zhu et al., 2019] is the first to show that accurate pixellevel reconstruction is practical for a maximum batch size of 8. Their formulation uses $\ell _ { 2 }$ -distance as $\mathcal { L } _ { \mathrm { g r a d } } ( \cdot , \cdot )$ but no regularization term $\mathcal { R } _ { \mathrm { a u x } } ( x )$ . The approach works for low-resolution CIFAR datasets [Krizhevsky et al., 2009], with simple neural networks with sigmoid activations, but cannot scale up to high-resolution images, or larger models with ReLU activations. A follow-up [Zhao et al., 2020] proposes a simple approach to extract the ground-truth labels from the gradient, which improves the attack but still cannot overcome its limitations.
47
+
48
+ With a careful choice of $\mathcal { L } _ { \mathrm { g r a d } }$ and $\mathcal { R } _ { \mathrm { a u x } } ( x )$ , [Geiping et al., 2020] substantially improves the attack and succeeds in recovering a single ImageNet [Deng et al., 2009] image from gradient: their approach uses cosine distance as $\mathcal { L } _ { \mathrm { g r a d } }$ , and the total variation as $\mathcal { R } _ { \mathrm { a u x } } ( x )$ . Their approach is able to reconstruct low-resolution images with a maximum batch size of 100 or a single high-resolution image. Based on [Geiping et al., 2020], [Wei et al., 2020] analyzes how different configurations in the training may affect attack effectiveness.
49
+
50
+ A more recent work [Yin et al., 2021] further improves the attack on high-resolution images, by introducing to $\mathcal { R } _ { \mathrm { a u x } } ( x )$ a new image prior term based on batch normalization [Ioffe and Szegedy, 2015] statistics, and a regularization term which enforces consistency across multiple attack trials.
51
+
52
+ An orthogonal line of work [Zhu and Blaschko, 2021] proposes to formulate the gradient inversion attack as a closed-form recursive procedure, instead of an optimization problem. However, their implementation can recover only low-resolution images under the setting where batch size $= 1$ .
53
+
54
+ # 3 Strong Assumptions Made by SOTA Attacks
55
+
56
+ # 3.1 The state-of-the-art attacks
57
+
58
+ Two recent attacks [Geiping et al., 2020, Yin et al., 2021] achieve best recovery results. Our analysis focuses on the former as the implementation of the latter is not available at the time of writing this paper. We plan to include the analysis for the latter attack in the final version of this paper if its implementation becomes available.
59
+
60
+ [Geiping et al., 2020]’s attack optimizes the following objective function:
61
+
62
+ $$
63
+ \arg \operatorname* { m i n } _ { x } 1 - \frac { \nabla _ { \theta } \mathcal { L } _ { \theta } ( x , y ) , \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) } { \| \nabla _ { \theta } \mathcal { L } _ { \theta } ( x , y ) \| \| \| \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) \| } + \alpha _ { \mathrm { T V } } \mathcal { R } _ { \mathrm { T V } } ( x )
64
+ $$
65
+
66
+ where $\langle \cdot , \cdot \rangle$ is the inner-product between vectors, and $\mathcal { R } _ { \mathrm { T V } } ( \cdot )$ is the total variation of images.
67
+
68
+ We notice that Geiping et al. has made two strong assumptions (Section 3.2). Changing setups to invalidate those assumptions will substantially weaken the attacks (Section 3.3). We also summarize whether other attacks have made similar assumptions in Table 1.
69
+
70
+ # 3.2 Strong assumptions
71
+
72
+ We find that previous gradient inversion attacks have made different assumptions about whether the attacker knows Batch normalization statistics or private labels, as shown in Table 3.2. Note that [Geiping et al., 2020]’s attack makes both strong assumptions.
73
+
74
+ Assumption 1: Knowing BatchNorm statistics. Batch normalization (BatchNorm) [Ioffe and Szegedy, 2015] is a technique for training neural networks that normalizes the inputs to a layer for every mini-batch. It behaves differently during training and evaluation. Assume the model has $L$ batch normalization layers. Given $x ^ { * }$ , a batch of input images, we use $x _ { l } ^ { * }$ to denote the input features to the $l$ -th BatchNorm layer, where $l \in [ L ]$ . During training, the $l$ -th BatchNorm layer normalizes $x _ { l } ^ { \ast }$ based on the batch’s mean $\mathrm { m e a n } ( x _ { l } ^ { \ast } )$ and variance $\mathrm { v a r } ( x _ { l } ^ { * } )$ , and keeps a running estimate of mean and variance of all training data points, denoted by $\mu _ { l }$ and $\sigma _ { l } ^ { 2 }$ . During inference, $\{ \mu _ { l } \} _ { l = 1 } ^ { L }$ and $\{ \sigma _ { l } ^ { 2 } \} _ { l = 1 } ^ { L }$ are used to normalize test images. In the following descriptions, we leave out $\{ \cdot \} _ { l = 1 } ^ { L }$ for simplicity (i.e. use $\mu , \sigma ^ { 2 }$ to denote $\{ \mu _ { l } \} _ { l = 1 } ^ { L } , \{ \sigma _ { l } ^ { 2 } \} _ { l = 1 } ^ { L }$ , and ${ \mathrm { m e a n } } ( x ^ { * } )$ , $\mathrm { v a r } ( x ^ { * } )$ to denote $\{ \mathrm { m e a n } ( x _ { l } ^ { * } ) \} _ { l = 1 } ^ { L }$ , $\{ \mathrm { v a r } ( x _ { l } ^ { * } ) \} _ { l = 1 } ^ { L } )$ .
75
+
76
+ We notice that [Geiping et al., 2020]’s implementation1 assumes that BatchNorm statistics of the private batch, i.e., $\mathrm { m e a n } ( x ^ { * } )$ , $\mathrm { v a r } ( x ^ { * } )$ , are jointly provided with the gradient. Knowing BatchNorm statistics would enable the attacker to apply the same batch normalization used by the private batch on his recovered batch, to achieve a better reconstruction. This implicitly increases the power of the attacker, as sharing private BatchNorm statistics are not necessary in Federated learning [Andreux et al., 2020, Li et al., 2021].
77
+
78
+ Note that this assumption may be realistic in some settings: 1) the neural network is shallow, thus does not require using BatchNorm layers, or 2) the neural network is deep, but adapts approaches that normalize batch inputs with a fixed mean and variance (as alternative to BatchNorm), e.g. Fixup initialization [Zhang et al., 2019].
79
+
80
+ Assumption 2: Knowing or able to infer private labels. Private labels are not intended to be shared in Federated learning, but knowing them would improve the attack. [Zhao et al., 2020] finds that label information of a single private image can be inferred from the gradient (see Section 3.3 for details). Based on this, [Geiping et al., 2020] assumes the attacker knows private labels (see remark at the end of Section 4 in their paper). However, this assumption may not hold true when multiple images in a batch share the same label, as we will show in the next section.
81
+
82
+ <table><tr><td> Assumptions</td><td></td><td></td><td>[[Zhu et al.,2019] [Zhao et al.,2020] [Geiping et al.,2020][Yin et al.,2021]</td><td></td></tr><tr><td>Knowing BN statistics</td><td>N/A+</td><td>N/A</td><td>Yes</td><td>Yes*</td></tr><tr><td>Knowing private labels</td><td>No</td><td>No</td><td>Yes</td><td>Not</td></tr></table>
83
+
84
+ Table 1: Assumptions of gradient inversion attacks. †: its evaluation uses a simple model without a BatchNorm layer; $^ \ddag$ : it proposes a method to infer private labels, which works when images in a batch have unique labels (see Section 3.3); ∗: although the paper discusses a setting where BatchNorm statistics are unknown, its main results assume knowing BatchNorm statistics.
85
+
86
+ # 3.3 Re-evaluation under relaxed assumptions
87
+
88
+ We re-evaluate the performance of the gradient inversion attack in settings where two assumptions above are relaxed. For each relaxation, we re-design the attack (if needed) based on the knowledge that the attacker has.
89
+
90
+ Relaxation 1: Not knowing BatchNorm statistics. We refer to the previous threat model as $\mathrm { B N } _ { \mathrm { e x a c t } }$ , where the attacker knows exact BatchNorm statistics of the private batch. We consider a more realistic threat model where these statistics are not exposed, and re-design the attack based on it.
91
+
92
+ Threat model. In each training step, the client normalizes its private batch $x ^ { * }$ using the batch’s mean $\mathrm { m e a n } ( x ^ { * } )$ and variance $\mathrm { v a r } ( x ^ { * } )$ , keeps the running estimate of mean and variance locally as in [Li et al., 2021], and shares the gradient. The client releases the final aggregated mean $\mu$ , and aggregated variance $\sigma ^ { 2 }$ of all training data points at the end of training. Same as before, the attacker has access to the model and the gradient during training.
93
+
94
+ Re-design A: $\mathrm { B N } _ { \mathrm { p r o x y } }$ , attacker naively uses $\mu$ and $\sigma ^ { 2 }$ . A simple idea is that the attacker uses $( \mu , \sigma ^ { 2 } )$ as the proxy for $( \mathbf { \dot { m } e a n } ( x ^ { * } ) , \mathbf { v a r } ( x ^ { * } ) )$ , and uses them to normalize $x$ , his guesses of the private batch. Other operations of the gradient inversion attack remain the same as before. However, Figure 1.d and 1.h show poor-quality reconstruction with this re-design.
95
+
96
+ $R e$ -design $B$ : $\mathrm { B N } _ { \mathrm { i n f e r } }$ , attacker infers $( \mathrm { m e a n } ( x ^ { * } )$ , $\mathrm { v a r } ( x ^ { * } ) )$ based on $( \mu , \sigma ^ { 2 } )$ . A more reasonable attacker will try to infer $( \mathrm { m e a n } ( x ^ { * } ) , \mathrm { v a r } ( x ^ { * } ) )$ while updating $x$ , his guesses of the private batch, and uses $( \mathrm { m e a n } ( x ) , \mathrm { v a r } ( x ) )$ to normalize the batch. In this case, $( \mu , \sigma ^ { 2 } )$ could be used as a prior of BatchNorm statistics to regularize the recovery, as suggested in [Yin et al., 2021]:
97
+
98
+ $$
99
+ \arg \operatorname* { m i n } _ { x } 1 - \frac { \langle \nabla _ { \theta } \mathcal { L } _ { \theta } ( x , y ) , \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) \rangle } { \| \nabla _ { \theta } \mathcal { L } _ { \theta } ( x , y ) \| \| \nabla _ { \theta } \mathcal { L } _ { \theta } ( x ^ { * } , y ^ { * } ) \| } + \alpha _ { \mathrm { T V } } \mathcal { R } _ { \mathrm { T V } } ( x ) + \alpha _ { \mathrm { B N } } \mathcal { R } _ { \mathrm { B N } } ( x )
100
+ $$
101
+
102
+ We tune $\alpha _ { \mathrm { B N } }$ and present the best result in Figure 1.c and 1.g (see results of different $\alpha _ { \mathrm { B N } }$ ’s in Appendix A). As shown, for a batch of low-resolution images, $\mathrm { B N } _ { \mathrm { i n f e r } }$ gives a much better reconstruction result than $\mathrm { B N } _ { \mathrm { p r o x y } }$ , but still cannot recover some details of the private batch when compared with $\mathrm { B N } _ { \mathrm { e x a c t } }$ . The result for a single high-resolution image is worse: the attacker fails to return a recognizable reconstruction with $\mathrm { B N } _ { \mathrm { i n f e r } }$ . This suggests not having access to BatchNorm statistics of the private batch already weakens the state-of-the-art gradient inversion attack.
103
+
104
+ ![](images/3533a0e819a283dcb807f533392d098ad73413f94673729a43792161630be7cb.jpg)
105
+ Figure 1: Attacking a batch of 16 low-resolution images from CIFAR-10 (a-d) and a single highresolution image from ImageNet (e-h) with different knowledge of BatchNorm statistics. Attack is weakened when BatchNorm statistics are not available (c, d versus b, and g, h versus f). See Appendix A for more examples and quantitative results.
106
+
107
+ ![](images/e45dac0ee12484d36497b1950c3819cc8ca401abbb36add8f1dfda23b0743b84.jpg)
108
+ Figure 2: Attack is weakened when private labels are not available. (a) shows that for CIFAR-10, when the batch size is large, many images in the batch belong to the same class, which essentially weakens label restoration [Zhao et al., 2020, Yin et al., 2021]. (b) visualizes a reconstructed batch of 16 images with and without private labels known. The quality of the reconstruction drops without knowledge of private labels.
109
+
110
+ Relaxation 2: Not knowing private labels. [Zhao et al., 2020] notes that label information of a single private image can be computed analytically from the gradients of the layer immediately before the output layer. [Yin et al., 2021] further extends this method to support recovery of labels for a batch of images. However, if multiple images in the private batch belong to a same label, neither approach can tell how many images belong to that label, let alone which subset of images belong to that label. Figure 2a demonstrates that with CIFAR-10, for batches of various sizes it is possible for many of the training samples to be have the same label, and the distribution of labels is not uniform - and hence, inferring labels becomes harder and the attack would be weakened. In Figure 2b we evaluate the worst-case for an attacker in this setting by comparing recoveries where the batch labels are simultaneously reconstructed alongside the training samples.
111
+
112
+ # 4 Defenses Against the Gradient Inversion Attack
113
+
114
+ Several defense ideas have been proposed to mitigate the risks of gradient inversion.
115
+
116
+ # 4.1 Encrypt gradients
117
+
118
+ Cryptography-based approaches encrypt gradient to prevent gradient inversion. [Bonawitz et al., 2016] presents a secure aggregation protocol for Federated learning by computing sum of gradient vectors based on secret sharing [Shamir, 1979]. [Phong et al., 2018] proposes using homomorphic encryption to encrypt the gradients before sending. These approaches require special setup and can be costly to implement.
119
+
120
+ Moreover, with secure aggregation protocol, an honest-but-curious server can still launch the gradient inversion attack on the summed gradient vector. Similarly, an honest-but-curious client can launch the gradient inversion attack on the model returned by the server to reconstruct other clients’ private data, even with homomorphic encryption.
121
+
122
+ As alternatives, two other types of defensive mechanisms have been proposed to mitigate the risks of attacks on plain-text gradient.
123
+
124
+ # 4.2 Perturbing gradients
125
+
126
+ Gradient pruning. When proposing the first practical gradient inversion attack, [Zhu et al., 2019] also suggests a defense by setting gradients of small magnitudes to zero (i.e. gradient pruning). Based on their attack, they demonstrate that pruning more than $7 0 \%$ of the gradients would make the recovered images no longer visually recognizable. However, the suggested prune ratio is determined based on weaker attacks, and may not remain safe against the state-of-the-art attack.
127
+
128
+ Adding noise to gradient. Motivated by DPSGD [Abadi et al., 2016] which adds noise to gradients to achieve differential privacy [Dwork, 2009, Dwork and Roth, 2014], [Zhu et al., 2019, Wei et al.,
129
+
130
+ 2020] also suggests defending by adding Gaussian or Laplacian noise to gradient. They show that a successful defense requires adding high noise level such that its accuracy drops by more than $3 0 \%$ with CIFAR-10 tasks. Recent works [Papernot et al., 2020, Tramèr and Boneh, 2021] suggest using better pre-training techniques and a large batch size (e.g. 4, 096) to achieve a better accuracy for DPSGD training.
131
+
132
+ Since most DPSGD implementations for natural image classification tasks [Abadi et al., 2016, Papernot et al., 2020, Tramèr and Boneh, 2021] use a pre-training and fine-tuning pipeline, it is hard to fairly compare with other defense methods that can directly apply when training the model from scratch. Thus, we leave the comparison with DPSGD to future work.
133
+
134
+ # 4.3 Weak encryption of inputs (i.e. encoding inputs)
135
+
136
+ MixUp. MixUp data augmentation [Zhang et al., 2018a] trains neural networks on composite images created via linear combination of image pairs. It has been shown to improve the generalization of the neural network and stabilizes the training. Recent work also suggests that MixUp increases the model’s robustness to adversarial examples [Pang et al., 2020, Lamb et al., 2019].
137
+
138
+ InstaHide. Inspired by MixUp, [Huang et al., 2020] proposes InstaHide as a light-weight instanceencoding scheme for private distributed learning. To encode an image $x \in \mathbb { R } ^ { d }$ from a private dataset, InstaHide first picks $k - 1$ other images $s _ { 2 } , s _ { 3 } , \ldots , s _ { k }$ from that private dataset, or a large public dataset, and $k$ random nonnegative coefficients $\{ \lambda _ { i } \} _ { i = 1 } ^ { k }$ that sum to 1, and creates a composite image $\textstyle \lambda _ { 1 } x + \sum _ { i = 2 } ^ { k } \lambda _ { i } s _ { i }$ ( $k$ is typically small, e.g., 4). A composite label is also created using the same set of coefficients.2 Then it adds another layer of security: pick a random sign-flipping pattern $\sigma \in \{ - 1 , 1 \} ^ { d }$ and output the encryption $\begin{array} { r } { \tilde { x } = \sigma \circ ( \lambda _ { 1 } x + \sum _ { i = 2 } ^ { k } \lambda _ { i } s _ { i } ) } \end{array}$ , where $\circ$ is coordinate-wise multiplication of vectors. The neural network is then trained on encoded images, which look like random pixel vectors to the human eye and yet lead to good classification accuracy $\mathit { \Theta } _ { \left( < \mathrm { 6 \% } \right. }$ accuracy loss on CIFAR-10, CIFAR-100, and ImageNet).
139
+
140
+ Recently, [Carlini et al., 2020] gives an attack to recover private images of a small dataset, when the InstaHide encodings are revealed to the attacker (not in a Federated learning setting). Their first step is to train a neural network on a public dataset for similarity annotation, to infer whether a pair of InstaHide encodings contain the same private image. With the inferred similarities of all pairs of encodings, the attacker then runs a combinatorial algorithm (cubic time in size of private dataset) to cluster all encodings based on their original private images, and finally uses a regression algorithm (with the help of composite labels) to recover the private images.
141
+
142
+ Neither [Huang et al., 2020] or [Carlini et al., 2020] has evaluated their defense or attack in the Federated learning setting, where the attacker observes gradients of the encoded images instead of original encoded images. This necessitates the systematic evaluation in our next section.
143
+
144
+ # 5 Evaluation of defenses
145
+
146
+ The main goal of our experiments is to understand the trade-offs between data utility (accuracy) and securely defending the state-of-the-art gradient inversion attack even in its strongest setting, without any relaxation of its implicit assumptions. Specifically, we grant the attacker the knowledge of 1) BatchNorm statistics of the private batch, and 2) labels of the private batch.
147
+
148
+ We vary key parameters for each defense, and evaluate their performance in terms of the test accuracy, computation overhead, and privacy risks (Section 5.2). We then investigate the feasibility of combining defenses (Section 5.3). We also estimate the computation cost of end-to-end recovery of a single image under evaluated defenses (Section 5.4).
149
+
150
+ As the feasibility of the state-of-the-art attack [Geiping et al., 2020] on a batch of high-resolution images remain elusive when its implicit assumptions no longer hold (see Figure 1), we focus on the evaluation with low-resolution in trying to understand whether current attacks can be mitigated.
151
+
152
+ # 5.1 Experimental setup
153
+
154
+ Key parameters of defenses. We evaluate following defenses on CIFAR-10 dataset [Krizhevsky et al., 2009] with ResNet-18 architecture [He et al., 2016].
155
+
156
+ • GradPrune (gradient pruning): gradient pruning set gradients of small magnitudes to zero. We vary the pruning ratio $p$ in $\{ 0 . 5 , 0 . 7 , 0 . 9 , 0 . 9 5 , 0 . 9 9 , 0 . 9 9 9 \}$ .
157
+ • MixUp: MixUp encodes a private image by linearly combining it with $k - 1$ other images from the training set. Following [Huang et al., 2020], we vary $k$ in $\{ 4 , 6 \}$ , and set the upper bound of a single coefficient to 0.65 (coefficients sum to 1).
158
+ • Intra-InstaHide: InstaHide [Huang et al., 2020] proposes two versions: Inter-InstaHide and Intra-InstaHide. The only difference is that at the mixup step, Inter-Instahide mixes up an image with images from a public dataset, whereas Intra-InstaHide only mixes with private images. Both versions apply a random sign flipping pattern on each mixed image. We evaluate Intra-InstaHide in our experiments, which is a weaker version of InstaHide. Similar to the evaluation of MixUp, we vary $k$ in $\{ 4 , 6 \}$ , and set the upper bound of a single coefficient to 0.65. Note that InstaHide flips signs of pixels in the image, which destroys the total variation prior. However, the absolute value of adjacent pixels should still be close. Therefore, for the InstaHide defense, we apply the total variation regularizer on $| x |$ , i.e. taking absolute value of each pixel in the reconstruction. We train the ResNet-18 architecture on CIFAR-10 using different defenses, and launch the attack.
159
+ We provide more details of the experiments in Appendix A.
160
+
161
+ The attack. We use a subset of 50 CIFAR-10 images to evaluate the attack performance. Note that attacking MixUp and InstaHide involves another step to decode private images from the encoded images. We apply [Carlini et al., 2020]’s attack here as the decode step, where the attacker needs to eavesdrop $T$ epochs of training, instead of a single training step. We set $T = 2 0$ in our evaluation. We also grant the attacker the strongest power for the decode step to evaluate the upper bound of privacy leakage. Given a MixUp or Intra-InstaHide image which encodes $k$ private images, we assume the attacker knows:
162
+
163
+ 1. The indices of $k$ images in the private dataset. In a realistic scenario, the attacker of [Carlini et al., 2020] would need to train a neural network to detect similarity of encodings, and run a combinatorial algorithm to solve an approximation of this mapping.
164
+ 2. The mixing coefficients for each of the $k$ private image. In real Federated learning, this information is not available.
165
+
166
+ Hyper-parameters of the attack. The attack minimize the objective function given in Eq.3. We search $\alpha _ { \mathrm { T V } }$ in $\{ 0 , 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 \}$ for all defenses, and apply the best choice for each defense: 0.05 for GradPrune, 0.1 for MixUp, and 0.01 for Intra-InstaHide. We apply $\alpha _ { \mathrm { B N } } = 0 . 0 0 1$ for all defenses after searching it in $\{ 0 , 0 . 0 0 0 5 , 0 . 0 0 1 , 0 . 0 1 , 0 . 0 5 , 0 . 0 1 \}$ . We optimize the attack for 10, 000 iterations using Adam [Kingma and Ba, 2015], with initial learning rate 0.1. We decay the learning rate by a factor of 0.1 at $3 / \bar { 8 } , 5 / 8 , 7 / 8$ of the optimization.
167
+
168
+ Batch size of the attack. [Zhu et al., 2019, Geiping et al., 2020] have shown that a small batch size is important for the success of the attack. We intentionally evaluate the attack with three small batch sizes to test the upper bound of privacy leakage, including the minimum (and unrealistic) batch size 1, and two small but realistic batch sizes, 16 and 32.
169
+
170
+ Metrics for reconstruction quality. We visualize reconstructions obtained under different defenses. Following [Yin et al., 2021], we also use the learned perceptual image patch similarity (LPIPS) score [Zhang et al., 2018b] to measure mismatch between reconstruction and original images: higher values suggest more mismatch (less privacy leakage).
171
+
172
+ ![](images/cbc88a741e67fa86b91e694e9db69bdd604257e78a1dc37ece158a4c167d3c24.jpg)
173
+ Figure 3: Reconstruction results under different defenses with batch size being 1, 16 and 32. When batch size is 32, combining gradient pruning and Intra-InstaHide makes the reconstruction almost unrecognizable (the last column). See Figure 7 in Appendix A for the full version.
174
+
175
+ <table><tr><td rowspan="2"></td><td rowspan="2">None ,</td><td colspan="6">GradPrune (p)</td><td colspan="2">MixUp (k)</td><td colspan="2">Intra-InstaHide (k)</td><td colspan="2">GradPrune (p= 0.9) + MixUp| + Intra-InstaHide</td></tr><tr><td>0.5</td><td>0.7</td><td>0.9</td><td>0.95</td><td>0.99</td><td>|0.999 |</td><td>4</td><td>6</td><td>4 6</td><td>k=4</td><td>k=4</td></tr><tr><td>Parameter Test Acc.</td><td>93.37|</td><td colspan="2">[93.19 |93.01 90.57|</td><td colspan="2">|89.92 | 88.61</td><td colspan="3">|83.58|92.31|9</td><td colspan="2">90.04 88.20</td><td>91.37</td><td>86.10</td></tr><tr><td>Time (train)</td><td>1×</td><td colspan="2"></td><td colspan="3">1.04×</td><td colspan="2">|90.41 1.06×</td><td colspan="2">1.06×</td><td colspan="2">1.10×</td></tr><tr><td></td><td colspan="14">Attack batch size = 1</td></tr><tr><td rowspan="2">Avg.LPIPS↓ BestLPIPS (LPIPS std.) 0.16</td><td rowspan="2">0.19 0.19 0.02 0.02 0.05</td><td rowspan="2">0.22 0.14 0.22</td><td rowspan="2">0.35</td><td rowspan="2">0.42 0.32</td><td rowspan="2">0.52 0.52 0.36</td><td rowspan="2"></td><td rowspan="2">0.34 0.12</td><td rowspan="2">0.46</td><td rowspan="2"></td><td rowspan="2">0.61</td><td rowspan="2">0.41</td><td rowspan="2">0.60 0.43</td></tr><tr><td>0.58 0.41 0.42 0.06</td></tr><tr><td colspan="10">0.25 0.17 0.16 0.13 0.11 0.08 0.06 0.08 0.07</td><td>0.09</td><td>0.21 0.07</td><td></td><td>0.09</td></tr><tr><td>Avg.LPIPS ↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td>Attack batch size = 16</td><td></td><td></td><td></td><td>0.46</td><td></td><td></td></tr><tr><td rowspan="2">Best LPIPS↓ (LPIPS std.)</td><td>0.45 0.18</td><td>0.46 0.19</td><td>0.47 0.19</td><td>0.51 0.31</td><td>0.55 0.43</td><td>0.58 0.61 0.47 0.51</td><td>0.34 0.11</td><td></td><td>0.31 0.62 0.13 0.41</td><td>0.63 0.44</td><td>0.22</td><td></td><td>0.68 0.54</td></tr><tr><td>0.12</td><td>0.12</td><td>0.11</td><td>0.07</td><td>0.05</td><td>0.04</td><td>0.03</td><td>0.09</td><td>0.09</td><td>0.08</td><td>0.08</td><td>0.10</td><td>0.07</td></tr><tr><td colspan="10">Attack batch size = 32</td><td colspan="3"></td><td></td><td></td></tr><tr><td>Avg.LPIPS↓ BestLPIPS↓</td><td>0.45 0.18</td><td>0.46 0.18</td><td>0.48 0.22</td><td>0.52 0.31</td><td>0.54 0.43</td><td>0.58</td><td>0.63</td><td>0.50</td><td>0.49 0.28</td><td>0.69 0.56</td><td>0.69 0.56</td><td>0.62</td><td>0.73</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>0.48</td><td>0.54</td><td>0.31</td><td></td><td></td><td></td><td>0.37</td><td>0.65</td></tr><tr><td>(LPIPS std.)</td><td>0.11</td><td>0.11</td><td></td><td>0.07</td><td>0.05</td><td>0.04</td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.05</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.07</td><td>0.10</td><td></td></tr><tr><td></td><td></td><td></td><td>0.09</td><td></td><td></td><td></td><td></td><td>0.10</td><td></td><td>0.06</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.04</td><td></td><td>0.10</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
176
+
177
+ ![](images/48913c3f139daf90cfae8821a03044d6c82c1975b98b52cda2675a66ace6a03b.jpg)
178
+ Table 2: Utility-security trade-off of different defenses. We train the ResNet-18 model on the whole CIFAR-10 dataset, and report the averaged test accuracy and running time of 5 independent runs. We evaluate the attack on a subset of 50 CIFAR-10 images, and report the LPIPS score $\downarrow \colon$ lower values suggest more privacy leakage). We mark the least-leakage defense measured by the metric in green.
179
+
180
+ # 5.2 Performance of defense methods
181
+
182
+ We summarize the performance of each defense in Table 2, and visualize reconstructed images in Figure 3. We report the averaged and the best results for the metric of reconstruction quality, as a proxy for average-case and worst-case privacy leakage.
183
+
184
+ No defense. Without any defense, when batch size is 1, the attack can recover images well from the gradient. Increasing the batch size makes it difficult to recover well, but the recovered images are visually similar to the originals (see Figure 3).
185
+
186
+ Gradient pruning (GradPrune). Figure 3 shows that as the pruning ratio $p$ increases, there are more artifacts in the reconstructions. However, the reconstructions are still recognizable even when the pruning ratio $p = 0 . 9$ , thus the previous suggestion of using $p = 0 . 7$ by [Zhu et al., 2019] is no longer safe against the state-of-the-art attack. Our results suggest that, for CIFAR-10, defending the strongest attack with gradient pruning may require the pruning ratio $p \geq 0 . 9 9 9$ . As a trade-off, such a high pruning ratio would introduce an accuracy loss of around $1 0 \%$ (see Table 2).
187
+
188
+ MixUp. MixUp introduces a small computational overhead to training. MixUp with $k = 4$ only has a minor impact $( \sim 2 \% )$ on test accuracy, but it is not sufficient to defend the gradient inversion attack (see Figure 3). Increasing $k$ from 4 to 6 slightly reduces the leakage, however, the reconstruction is still highly recognizable. This suggests that MixUp alone may not be a practical defense against the state-of-the-art gradient inversion attack.
189
+
190
+ Intra-InstaHide. Intra-InstaHide with $k = 4$ incurs an extra ${ \sim } 2 \%$ accuracy loss compared with MixUp, but it achieves better defense performance: when batch size is 32, there are obvious artifacts and color shift in the reconstruction (see Figure 3). However, with batch size 32, Intra-InstaHide alone also cannot defend the state-of-the-art gradient inversion, as structures of private images are still vaguely identifiable in reconstructions.
191
+
192
+ Appendix A provides the whole reconstructed dataset under MixUp and Intra-InstaHide.
193
+
194
+ # 5.3 Performance of combined defenses
195
+
196
+ We notice that two types of defenses (i.e perturbing gradient and encoding inputs) are complementary to each other, which motivates an evaluation of combining gradient pruning with MixUp or IntraInstaHide.
197
+
198
+ As shown in Figure 3, when the batch size is 32, combining Intra-InstaHide $k = 4$ ) with gradient pruning $\gamma = 0 . 9 ,$ ) makes the reconstruction almost unrecognizable. The combined defense yields a higher LPIPS score than using gradient pruning with $p = 0 . 9 9 9$ , but introduces a smaller accuracy loss ${ \sim } 7 \%$ compared with a no-defense pipeline).
199
+
200
+ Note that our evaluation uses the strongest attack and relatively small batch sizes. As shown in Appendix A, invalidating assumptions in Section 3 or increasing the batch size may hinder the attack with an even weaker defense (e.g. with a lower $p$ , or smaller $k$ ), which gives a better accuracy.
201
+
202
+ # 5.4 Time estimate for end-to-end recovery of a single image
203
+
204
+ Table 3 shows time estimates for the end-to-end recovery of a single image in a Federated learning setting with GradPrune or InstaHide defense. We do not estimate for MixUp since it has been shown to be a weak defense (see Section 5.2).
205
+
206
+ Our time estimates consider three fairly small dataset sizes. The largest size in our estimate is a small fraction of a dataset of ImageNet scale. We consider a client holds a dataset of $N$ private images and participates in Federated learning, which trains a ResNet-18 model with batch size $b = 1 2 8$ . Assumes that the resolution of the client’s data is $3 2 \times 3 2 \times 3$ . If the attacker uses a single NVIDIA GeForce RTX 2080 Ti GPU as his computation resource, and runs gradient inversion with 10,000 iterations of optimization, then $t$ , the running time for attacking a single batch is ${ \sim } 0 . 2 5$ GPU hours (batch size $b$ has little impact on the attack’s running time, but a larger $b$ makes the attack less effective).
207
+
208
+ Non-defended and gradient pruning. Recovering a single image in a non-defended pipeline (or a pipeline that applies gradient pruning alone as the defense) only requires the attacker to invert gradient of a single step of training, which takes time $t$ .
209
+
210
+ InstaHide. When InstaHide is applied, the current attack [Carlini et al., 2020] suggests that recovering a single image would involve recovering the whole dataset first. As discussed in Section 4, Carlini et al.’s attack consists of two steps: 1) recover InstaHide images from gradient of $T$ epochs. This would take $( N T / b ) \times t$ GPU hours. 2) Run the decode attack [Carlini et al., 2020] on InstaHide images to recover the private dataset, which involves:
211
+
212
+ 2a Train a neural network to detect similarity in recovered InstaHide images. Assume that training the network requires at least $n$ recovered InstaHide images, then collecting these images by running gradient inversion would take $( n / b ) \times t$ GPU hours. The training takes $1 0 \mathrm { G P U }$ hours according to [Carlini et al., 2020], so training the similarity network would take $( n / b ) \times t + 1 0$ GPU hours in total.
213
+
214
+ <table><tr><td>Size of client&#x27;s dataset (N)</td><td>No defense</td><td>GradPrune</td><td>InstaHide</td></tr><tr><td>5,000</td><td rowspan="3">0.25</td><td rowspan="3">0.25</td><td>934.48</td></tr><tr><td>50,000</td><td>46.579.01 (~ 5.5 GPU years)</td></tr><tr><td>500,000</td><td>4,215.524.32 (~ 493.4 GPU years)</td></tr></table>
215
+
216
+ Table 3: Time estimates (NVIDIA GeForce RTX 2080 Ti GPU hours) of recovering a single image from the client’s dataset using the state-of-the-art gradient inversion attack [Geiping et al., 2020] under different defenses. We assume image resolution of the client’s data is $3 2 \times 3 2 \times 3$ .
217
+
218
+ 2b Run the combinotorial algorithm to recover original images. Running time of this step has been shown to be at least quadratic in $m$ , the number of InstaHide encodings [Chen et al., 2021]. This step takes $1 / 6$ GPU hours with $m = 5 \times 1 0 ^ { 3 }$ . Therefore for $m = N T$ , the running time is at least $\begin{array} { r } { 1 / 6 \times ( \frac { N T } { 5 \times 1 0 ^ { 3 } } ) ^ { 2 } } \end{array}$ GPU hours.
219
+
220
+ In total, an attack on InstaHide in this real-world setting would take $( N T / b ) \times t + ( n / b ) \times t +$ $\begin{array} { r } { 1 0 + 1 / 6 \times ( \frac { N T } { 5 \times 1 0 ^ { 3 } } ) ^ { 2 } } \end{array}$ GPU hours. We use $T = 5 0$ (used by [Carlini et al., 2020]), $n = 1 0 , 0 0 0$ and give estimate in Table 3. As shown, when InstaHide is applied on a small dataset $( N = 5 , 0 0 0 )$ ), the end-to-end recovery of a single image takes $> 3$ , $0 0 0 \times$ longer than in a no-defense pipeline or GradPrune pipeline; when InstaHide is applied on a larger dataset $( N = 5 0 0 , 0 0 0 )$ , the computation cost for end-to-end recovery is enormous.
221
+
222
+ # 6 Conclusions
223
+
224
+ This paper first points out that some state-of-the-art gradient inversion attacks have made strong assumptions about knowing BatchNorm statistics and private labels. Relaxing such assumptions can significantly weaken these attacks.
225
+
226
+ The paper then reports the performance of a set of proposed defenses against gradient inversion attacks, and estimates the computation cost of an end-to-end recovery of a single image in different dataset sizes. Our evaluation shows that InstaHide without mixing with data from a public dataset combined with gradient pruning can defend the state-of-the-art attack, and the estimated time to recover a single image in a medium-size client dataset (e.g. of 500,000 images) is enormous.
227
+
228
+ Based on our evaluation of the attack by [Geiping et al., 2020] and multiple defenses for plain-text gradients, we have the following observations:
229
+
230
+ • Using BatchNorm layers in your deep net but don’t share BatchNorm statistics of the private batch during Federated learning weakens the attack. We have demonstrated in Section 3 that exposing BatchNorm statistics to the attacker significantly improves the quality of gradient inversion. So a more secure configuration of Federated Learning would be to use BatchNorm layers, but do not share BatchNorm statistics in training, which has been shown feasible in [Andreux et al., 2020, Li et al., 2021].
231
+ Using a large batch size weakens the attack; a batch size smaller than 32 is not safe. We have shown that a larger batch size hinders the attack by making it harder to guess the private labels (Section 3) and to recover the private images even with correct private labels (Section 5). Our experiments suggest that even with some weak defenses applied, a batch size smaller than 32 is not safe against the strongest gradient inversion attack.
232
+ Combining multiple defenses may achieve a better utility-privacy trade-off. In our experiment, for a batch size of 32, combining InstaHide $k = 4$ ) with gradient pruning $( p = 0 . 9 )$ ) achieves the best utility-privacy trade-off, by making the reconstruction almost unrecognizable at a cost of ${ \sim } 7 \%$ accuracy loss (using InstaHide also makes the end-to-end recovery of a single image more computationally expensive). Best parameters would vary for different deep learning tasks, but we strongly encourage Federated learning participants to explore the possibility of combining multiple defensive mechanisms, instead of only using one of them.
233
+
234
+ We hope to extend our work by including evaluation of defenses for high-resolution images, the attack by [Yin et al., 2021] (when its implementation becomes available), and more defense mechanisms including those rely on adding noise to gradients.
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_content_list.json ADDED
@@ -0,0 +1,1272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Evaluating Gradient Inversion Attacks and Defenses in Federated Learning ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 181,
8
+ 122,
9
+ 816,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yangsibo Huang \nPrinceton University \nPrinceton, NJ 08540 \nyangsibo@princeton.edu ",
17
+ "bbox": [
18
+ 199,
19
+ 227,
20
+ 390,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Samyak Gupta Princeton University Princeton, NJ 08540 samyakg@cs.princeton.edu ",
28
+ "bbox": [
29
+ 423,
30
+ 227,
31
+ 630,
32
+ 281
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Zhao Song Adobe Research San Jose, CA 95110 zsong@adobe.com ",
39
+ "bbox": [
40
+ 663,
41
+ 227,
42
+ 799,
43
+ 281
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Kai Li Princeton University Princeton, NJ 08540 li@cs.princeton.edu ",
50
+ "bbox": [
51
+ 269,
52
+ 303,
53
+ 434,
54
+ 358
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Sanjeev Arora Princeton University Princeton, NJ 08540 arora@cs.princeton.edu ",
61
+ "bbox": [
62
+ 537,
63
+ 304,
64
+ 727,
65
+ 358
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 462,
75
+ 395,
76
+ 535,
77
+ 411
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Gradient inversion attack (or input recovery from gradient) is an emerging threat to the security and privacy preservation of Federated learning, whereby malicious eavesdroppers or participants in the protocol can recover (partially) the clients’ private data. This paper evaluates existing attacks and defenses. We find that some attacks make strong assumptions about the setup. Relaxing such assumptions can substantially weaken these attacks. We then evaluate the benefits of three proposed defense mechanisms against gradient inversion attacks. We show the trade-offs of privacy leakage and data utility of these defense methods, and find that combining them in an appropriate manner makes the attack less effective, even under the original strong assumptions. We also estimate the computation cost of end-to-end recovery of a single image under each evaluated defense. Our findings suggest that the state-of-the-art attacks can currently be defended against with minor data utility loss, as summarized in a list of potential strategies. ",
84
+ "bbox": [
85
+ 233,
86
+ 425,
87
+ 766,
88
+ 604
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 174,
98
+ 628,
99
+ 310,
100
+ 646
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Federated learning [McMahan et al., 2016, Kairouz et al., 2021] is a framework that allows multiple clients in a distributed environment to collaboratively train a neural network model at a central server, without moving their data to the central server. At every training step, each client computes a model update —i.e., gradient— on its local data using the latest copy of the global model, and then sends the gradient to the central server. The server aggregates these updates (typically by averaging) to construct a global model, and then sends the new model parameters to all clients. By allowing clients to participate in training without directly sharing their data, such protocols align better with data privacy regulations such as Health Insurance Portability and Accountability Act (HIPPA) [Act, 1996], California Consumer Privacy Act (CCPA) [Legislature, 2018], and General Data Protection Regulation [Commission, 2018]. ",
107
+ "bbox": [
108
+ 174,
109
+ 660,
110
+ 825,
111
+ 799
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "While sharing gradients was thought to leak little information about the client’s private data, recent papers [Zhu et al., 2019, Zhao et al., 2020, Geiping et al., 2020, Yin et al., 2021] developed a “gradient inversion attack” by which an attacker eavesdropping on a client’s communications with the server can begin to reconstruct the client’s private data. The attacker can also be a malicious participant in the Federated Learning scheme, including a honest-but-curious server who wishes to reconstruct private data of clients, or a honest-but-curious client who wishes to reconstruct private data of other clients. These attacks have been shown to work with batch sizes only up to 100 but even so they have created doubts about the level of privacy ensured in Federated Learning. The current paper seeks to evaluate the risks and suggest ways to minimize them. ",
118
+ "bbox": [
119
+ 174,
120
+ 805,
121
+ 825,
122
+ 901
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 173,
131
+ 90,
132
+ 823,
133
+ 119
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Several defenses against gradient inversion attacks have been proposed. These include perturbing gradients [Zhu et al., 2019, Wei et al., 2020] and using transformation for training data that clients can apply on the fly [Zhang et al., 2018a, Huang et al., 2020]. More traditional cryptographic ideas including secure aggregation [Bonawitz et al., 2016] or homomorphic encryption [Phong et al., 2018] for the gradients can also be used and presumably stop any eavesdropping attacks completely. They will not be studied here due to their special setups and overhead. ",
140
+ "bbox": [
141
+ 174,
142
+ 126,
143
+ 825,
144
+ 209
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "We are not aware of a prior systematic evaluation of the level of risk arising from current attacks and the level of security provided by various defenses, as well as the trade-off (if any) between test accuracy, computation overhead, and privacy risks. ",
151
+ "bbox": [
152
+ 176,
153
+ 215,
154
+ 821,
155
+ 257
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "The paper makes two main contributions. First, we draw attention to two strong assumptions that a current gradient inversion attack [Geiping et al., 2020] implicitly makes. We show that by nullifying these assumptions, the performance of the attack drops significantly and can only work for lowresolution images. The findings are explored in Section 3 and already imply some more secure configurations in Federated Learning (Section 6). ",
162
+ "bbox": [
163
+ 174,
164
+ 263,
165
+ 825,
166
+ 333
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Second, we summarize various defenses (Section 4) and systematically evaluate (Section 5) some of their performance of defending against a state-of-the-art gradient inversion attack, and present their data utility and privacy leakage trade-offs. We estimate the computation cost of end-to-end recovery of a single image under each evaluated defense. We also experimentally demonstrate the feasibility and effectiveness of combined defenses. Our findings are summarized as strategies to further improve Federated Learning’s security against gradient inversion attacks (Section 6). ",
173
+ "bbox": [
174
+ 174,
175
+ 338,
176
+ 825,
177
+ 422
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "In Appendix B, we provide theoretical insights for mechanism of each evaluated defense. ",
184
+ "bbox": [
185
+ 173,
186
+ 428,
187
+ 758,
188
+ 443
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "2 Gradient Inversion Attacks ",
195
+ "text_level": 1,
196
+ "bbox": [
197
+ 176,
198
+ 462,
199
+ 434,
200
+ 479
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Previous studies have shown the feasibility of recovering input from gradient (i.e. gradient inversion) for image classification tasks, by formulating it as an optimization problem: given a neural network with parameters $\\theta$ , and the gradient $\\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } )$ computed with a private data batch $( x ^ { * } , y ^ { * } ) \\in$ $\\mathbb { R } ^ { b \\times d } \\times \\mathbb { R } ^ { b }$ $( b , d$ being the batch size, image size), the attacker tries to recover $x \\in \\mathbb { R } ^ { b \\times d }$ , an approximation of $x ^ { * }$ : ",
207
+ "bbox": [
208
+ 174,
209
+ 492,
210
+ 825,
211
+ 564
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "equation",
217
+ "img_path": "images/445b6f8320f11c9f4d95e1b472998887c0674dc2aa94943f29fbceb73454ce5f.jpg",
218
+ "text": "$$\n\\arg \\operatorname* { m i n } _ { x } \\mathcal { L } _ { \\mathrm { g r a d } } ( x ; \\theta , \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) ) + \\alpha \\mathcal { R } _ { \\mathrm { a u x } } ( x )\n$$",
219
+ "text_format": "latex",
220
+ "bbox": [
221
+ 336,
222
+ 582,
223
+ 660,
224
+ 606
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "The optimization goal consists of two parts: $\\mathcal { L } _ { \\mathrm { g r a d } } ( x ; \\theta , \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) )$ enforces matching of the gradient of recovered batch $x$ with the provided gradients $\\mathcal { L } _ { \\boldsymbol { \\theta } } ( x ^ { * } , y ^ { * } )$ , and $\\mathcal { R } _ { \\mathrm { a u x } } ( x )$ regularizes the recovered image based on image prior(s). ",
231
+ "bbox": [
232
+ 178,
233
+ 614,
234
+ 823,
235
+ 656
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "[Phong et al., 2017] brings theoretical insights on this task by proving that such reconstruction is possible with a single-layer neural network. [Zhu et al., 2019] is the first to show that accurate pixellevel reconstruction is practical for a maximum batch size of 8. Their formulation uses $\\ell _ { 2 }$ -distance as $\\mathcal { L } _ { \\mathrm { g r a d } } ( \\cdot , \\cdot )$ but no regularization term $\\mathcal { R } _ { \\mathrm { a u x } } ( x )$ . The approach works for low-resolution CIFAR datasets [Krizhevsky et al., 2009], with simple neural networks with sigmoid activations, but cannot scale up to high-resolution images, or larger models with ReLU activations. A follow-up [Zhao et al., 2020] proposes a simple approach to extract the ground-truth labels from the gradient, which improves the attack but still cannot overcome its limitations. ",
242
+ "bbox": [
243
+ 173,
244
+ 662,
245
+ 825,
246
+ 773
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "With a careful choice of $\\mathcal { L } _ { \\mathrm { g r a d } }$ and $\\mathcal { R } _ { \\mathrm { a u x } } ( x )$ , [Geiping et al., 2020] substantially improves the attack and succeeds in recovering a single ImageNet [Deng et al., 2009] image from gradient: their approach uses cosine distance as $\\mathcal { L } _ { \\mathrm { g r a d } }$ , and the total variation as $\\mathcal { R } _ { \\mathrm { a u x } } ( x )$ . Their approach is able to reconstruct low-resolution images with a maximum batch size of 100 or a single high-resolution image. Based on [Geiping et al., 2020], [Wei et al., 2020] analyzes how different configurations in the training may affect attack effectiveness. ",
253
+ "bbox": [
254
+ 174,
255
+ 779,
256
+ 825,
257
+ 863
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "A more recent work [Yin et al., 2021] further improves the attack on high-resolution images, by introducing to $\\mathcal { R } _ { \\mathrm { a u x } } ( x )$ a new image prior term based on batch normalization [Ioffe and Szegedy, 2015] statistics, and a regularization term which enforces consistency across multiple attack trials. ",
264
+ "bbox": [
265
+ 176,
266
+ 869,
267
+ 825,
268
+ 911
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "An orthogonal line of work [Zhu and Blaschko, 2021] proposes to formulate the gradient inversion attack as a closed-form recursive procedure, instead of an optimization problem. However, their implementation can recover only low-resolution images under the setting where batch size $= 1$ . ",
275
+ "bbox": [
276
+ 174,
277
+ 90,
278
+ 825,
279
+ 133
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "3 Strong Assumptions Made by SOTA Attacks ",
286
+ "text_level": 1,
287
+ "bbox": [
288
+ 173,
289
+ 151,
290
+ 576,
291
+ 170
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "3.1 The state-of-the-art attacks ",
298
+ "text_level": 1,
299
+ "bbox": [
300
+ 174,
301
+ 183,
302
+ 403,
303
+ 196
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Two recent attacks [Geiping et al., 2020, Yin et al., 2021] achieve best recovery results. Our analysis focuses on the former as the implementation of the latter is not available at the time of writing this paper. We plan to include the analysis for the latter attack in the final version of this paper if its implementation becomes available. ",
310
+ "bbox": [
311
+ 174,
312
+ 207,
313
+ 825,
314
+ 263
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "[Geiping et al., 2020]’s attack optimizes the following objective function: ",
321
+ "bbox": [
322
+ 176,
323
+ 270,
324
+ 655,
325
+ 285
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/f5afe4529a02a50d4d6ef877384663abbb0f8d32ca58c94f4a2a3521d5dce154.jpg",
332
+ "text": "$$\n\\arg \\operatorname* { m i n } _ { x } 1 - \\frac { \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x , y ) , \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) } { \\| \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x , y ) \\| \\| \\| \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) \\| } + \\alpha _ { \\mathrm { T V } } \\mathcal { R } _ { \\mathrm { T V } } ( x )\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 290,
336
+ 287,
337
+ 707,
338
+ 323
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "where $\\langle \\cdot , \\cdot \\rangle$ is the inner-product between vectors, and $\\mathcal { R } _ { \\mathrm { T V } } ( \\cdot )$ is the total variation of images. ",
345
+ "bbox": [
346
+ 174,
347
+ 333,
348
+ 781,
349
+ 348
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "We notice that Geiping et al. has made two strong assumptions (Section 3.2). Changing setups to invalidate those assumptions will substantially weaken the attacks (Section 3.3). We also summarize whether other attacks have made similar assumptions in Table 1. ",
356
+ "bbox": [
357
+ 176,
358
+ 353,
359
+ 825,
360
+ 396
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "3.2 Strong assumptions ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 174,
370
+ 411,
371
+ 349,
372
+ 426
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "We find that previous gradient inversion attacks have made different assumptions about whether the attacker knows Batch normalization statistics or private labels, as shown in Table 3.2. Note that [Geiping et al., 2020]’s attack makes both strong assumptions. ",
379
+ "bbox": [
380
+ 174,
381
+ 436,
382
+ 825,
383
+ 479
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Assumption 1: Knowing BatchNorm statistics. Batch normalization (BatchNorm) [Ioffe and Szegedy, 2015] is a technique for training neural networks that normalizes the inputs to a layer for every mini-batch. It behaves differently during training and evaluation. Assume the model has $L$ batch normalization layers. Given $x ^ { * }$ , a batch of input images, we use $x _ { l } ^ { * }$ to denote the input features to the $l$ -th BatchNorm layer, where $l \\in [ L ]$ . During training, the $l$ -th BatchNorm layer normalizes $x _ { l } ^ { \\ast }$ based on the batch’s mean $\\mathrm { m e a n } ( x _ { l } ^ { \\ast } )$ and variance $\\mathrm { v a r } ( x _ { l } ^ { * } )$ , and keeps a running estimate of mean and variance of all training data points, denoted by $\\mu _ { l }$ and $\\sigma _ { l } ^ { 2 }$ . During inference, $\\{ \\mu _ { l } \\} _ { l = 1 } ^ { L }$ and $\\{ \\sigma _ { l } ^ { 2 } \\} _ { l = 1 } ^ { L }$ are used to normalize test images. In the following descriptions, we leave out $\\{ \\cdot \\} _ { l = 1 } ^ { L }$ for simplicity (i.e. use $\\mu , \\sigma ^ { 2 }$ to denote $\\{ \\mu _ { l } \\} _ { l = 1 } ^ { L } , \\{ \\sigma _ { l } ^ { 2 } \\} _ { l = 1 } ^ { L }$ , and ${ \\mathrm { m e a n } } ( x ^ { * } )$ , $\\mathrm { v a r } ( x ^ { * } )$ to denote $\\{ \\mathrm { m e a n } ( x _ { l } ^ { * } ) \\} _ { l = 1 } ^ { L }$ , $\\{ \\mathrm { v a r } ( x _ { l } ^ { * } ) \\} _ { l = 1 } ^ { L } )$ . ",
390
+ "bbox": [
391
+ 174,
392
+ 492,
393
+ 825,
394
+ 640
395
+ ],
396
+ "page_idx": 2
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "We notice that [Geiping et al., 2020]’s implementation1 assumes that BatchNorm statistics of the private batch, i.e., $\\mathrm { m e a n } ( x ^ { * } )$ , $\\mathrm { v a r } ( x ^ { * } )$ , are jointly provided with the gradient. Knowing BatchNorm statistics would enable the attacker to apply the same batch normalization used by the private batch on his recovered batch, to achieve a better reconstruction. This implicitly increases the power of the attacker, as sharing private BatchNorm statistics are not necessary in Federated learning [Andreux et al., 2020, Li et al., 2021]. ",
401
+ "bbox": [
402
+ 173,
403
+ 645,
404
+ 825,
405
+ 729
406
+ ],
407
+ "page_idx": 2
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "Note that this assumption may be realistic in some settings: 1) the neural network is shallow, thus does not require using BatchNorm layers, or 2) the neural network is deep, but adapts approaches that normalize batch inputs with a fixed mean and variance (as alternative to BatchNorm), e.g. Fixup initialization [Zhang et al., 2019]. ",
412
+ "bbox": [
413
+ 174,
414
+ 734,
415
+ 825,
416
+ 791
417
+ ],
418
+ "page_idx": 2
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Assumption 2: Knowing or able to infer private labels. Private labels are not intended to be shared in Federated learning, but knowing them would improve the attack. [Zhao et al., 2020] finds that label information of a single private image can be inferred from the gradient (see Section 3.3 for details). Based on this, [Geiping et al., 2020] assumes the attacker knows private labels (see remark at the end of Section 4 in their paper). However, this assumption may not hold true when multiple images in a batch share the same label, as we will show in the next section. ",
423
+ "bbox": [
424
+ 174,
425
+ 804,
426
+ 825,
427
+ 888
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "table",
433
+ "img_path": "images/0f6c59c4f5b6410a35730c60645b555ca324c3ec0d3bdd34f88d8cccfb75fdfc.jpg",
434
+ "table_caption": [],
435
+ "table_footnote": [],
436
+ "table_body": "<table><tr><td> Assumptions</td><td></td><td></td><td>[[Zhu et al.,2019] [Zhao et al.,2020] [Geiping et al.,2020][Yin et al.,2021]</td><td></td></tr><tr><td>Knowing BN statistics</td><td>N/A+</td><td>N/A</td><td>Yes</td><td>Yes*</td></tr><tr><td>Knowing private labels</td><td>No</td><td>No</td><td>Yes</td><td>Not</td></tr></table>",
437
+ "bbox": [
438
+ 173,
439
+ 89,
440
+ 825,
441
+ 145
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Table 1: Assumptions of gradient inversion attacks. †: its evaluation uses a simple model without a BatchNorm layer; $^ \\ddag$ : it proposes a method to infer private labels, which works when images in a batch have unique labels (see Section 3.3); ∗: although the paper discusses a setting where BatchNorm statistics are unknown, its main results assume knowing BatchNorm statistics. ",
448
+ "bbox": [
449
+ 173,
450
+ 151,
451
+ 825,
452
+ 208
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "3.3 Re-evaluation under relaxed assumptions ",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 173,
462
+ 236,
463
+ 501,
464
+ 251
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "We re-evaluate the performance of the gradient inversion attack in settings where two assumptions above are relaxed. For each relaxation, we re-design the attack (if needed) based on the knowledge that the attacker has. ",
471
+ "bbox": [
472
+ 174,
473
+ 262,
474
+ 825,
475
+ 304
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "Relaxation 1: Not knowing BatchNorm statistics. We refer to the previous threat model as $\\mathrm { B N } _ { \\mathrm { e x a c t } }$ , where the attacker knows exact BatchNorm statistics of the private batch. We consider a more realistic threat model where these statistics are not exposed, and re-design the attack based on it. ",
482
+ "bbox": [
483
+ 174,
484
+ 320,
485
+ 825,
486
+ 363
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "Threat model. In each training step, the client normalizes its private batch $x ^ { * }$ using the batch’s mean $\\mathrm { m e a n } ( x ^ { * } )$ and variance $\\mathrm { v a r } ( x ^ { * } )$ , keeps the running estimate of mean and variance locally as in [Li et al., 2021], and shares the gradient. The client releases the final aggregated mean $\\mu$ , and aggregated variance $\\sigma ^ { 2 }$ of all training data points at the end of training. Same as before, the attacker has access to the model and the gradient during training. ",
493
+ "bbox": [
494
+ 174,
495
+ 369,
496
+ 825,
497
+ 439
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "Re-design A: $\\mathrm { B N } _ { \\mathrm { p r o x y } }$ , attacker naively uses $\\mu$ and $\\sigma ^ { 2 }$ . A simple idea is that the attacker uses $( \\mu , \\sigma ^ { 2 } )$ as the proxy for $( \\mathbf { \\dot { m } e a n } ( x ^ { * } ) , \\mathbf { v a r } ( x ^ { * } ) )$ , and uses them to normalize $x$ , his guesses of the private batch. Other operations of the gradient inversion attack remain the same as before. However, Figure 1.d and 1.h show poor-quality reconstruction with this re-design. ",
504
+ "bbox": [
505
+ 173,
506
+ 444,
507
+ 825,
508
+ 501
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "$R e$ -design $B$ : $\\mathrm { B N } _ { \\mathrm { i n f e r } }$ , attacker infers $( \\mathrm { m e a n } ( x ^ { * } )$ , $\\mathrm { v a r } ( x ^ { * } ) )$ based on $( \\mu , \\sigma ^ { 2 } )$ . A more reasonable attacker will try to infer $( \\mathrm { m e a n } ( x ^ { * } ) , \\mathrm { v a r } ( x ^ { * } ) )$ while updating $x$ , his guesses of the private batch, and uses $( \\mathrm { m e a n } ( x ) , \\mathrm { v a r } ( x ) )$ to normalize the batch. In this case, $( \\mu , \\sigma ^ { 2 } )$ could be used as a prior of BatchNorm statistics to regularize the recovery, as suggested in [Yin et al., 2021]: ",
515
+ "bbox": [
516
+ 174,
517
+ 506,
518
+ 825,
519
+ 564
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "equation",
525
+ "img_path": "images/b725de587b248caed9a1845b4fff32c72d1f1933a170d0c313762bc4c34761ba.jpg",
526
+ "text": "$$\n\\arg \\operatorname* { m i n } _ { x } 1 - \\frac { \\langle \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x , y ) , \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) \\rangle } { \\| \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x , y ) \\| \\| \\nabla _ { \\theta } \\mathcal { L } _ { \\theta } ( x ^ { * } , y ^ { * } ) \\| } + \\alpha _ { \\mathrm { T V } } \\mathcal { R } _ { \\mathrm { T V } } ( x ) + \\alpha _ { \\mathrm { B N } } \\mathcal { R } _ { \\mathrm { B N } } ( x )\n$$",
527
+ "text_format": "latex",
528
+ "bbox": [
529
+ 236,
530
+ 582,
531
+ 759,
532
+ 617
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "We tune $\\alpha _ { \\mathrm { B N } }$ and present the best result in Figure 1.c and 1.g (see results of different $\\alpha _ { \\mathrm { B N } }$ ’s in Appendix A). As shown, for a batch of low-resolution images, $\\mathrm { B N } _ { \\mathrm { i n f e r } }$ gives a much better reconstruction result than $\\mathrm { B N } _ { \\mathrm { p r o x y } }$ , but still cannot recover some details of the private batch when compared with $\\mathrm { B N } _ { \\mathrm { e x a c t } }$ . The result for a single high-resolution image is worse: the attacker fails to return a recognizable reconstruction with $\\mathrm { B N } _ { \\mathrm { i n f e r } }$ . This suggests not having access to BatchNorm statistics of the private batch already weakens the state-of-the-art gradient inversion attack. ",
539
+ "bbox": [
540
+ 173,
541
+ 650,
542
+ 825,
543
+ 734
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "image",
549
+ "img_path": "images/3533a0e819a283dcb807f533392d098ad73413f94673729a43792161630be7cb.jpg",
550
+ "image_caption": [
551
+ "Figure 1: Attacking a batch of 16 low-resolution images from CIFAR-10 (a-d) and a single highresolution image from ImageNet (e-h) with different knowledge of BatchNorm statistics. Attack is weakened when BatchNorm statistics are not available (c, d versus b, and g, h versus f). See Appendix A for more examples and quantitative results. "
552
+ ],
553
+ "image_footnote": [],
554
+ "bbox": [
555
+ 176,
556
+ 763,
557
+ 820,
558
+ 844
559
+ ],
560
+ "page_idx": 3
561
+ },
562
+ {
563
+ "type": "image",
564
+ "img_path": "images/e45dac0ee12484d36497b1950c3819cc8ca401abbb36add8f1dfda23b0743b84.jpg",
565
+ "image_caption": [
566
+ "Figure 2: Attack is weakened when private labels are not available. (a) shows that for CIFAR-10, when the batch size is large, many images in the batch belong to the same class, which essentially weakens label restoration [Zhao et al., 2020, Yin et al., 2021]. (b) visualizes a reconstructed batch of 16 images with and without private labels known. The quality of the reconstruction drops without knowledge of private labels. "
567
+ ],
568
+ "image_footnote": [],
569
+ "bbox": [
570
+ 183,
571
+ 113,
572
+ 810,
573
+ 257
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Relaxation 2: Not knowing private labels. [Zhao et al., 2020] notes that label information of a single private image can be computed analytically from the gradients of the layer immediately before the output layer. [Yin et al., 2021] further extends this method to support recovery of labels for a batch of images. However, if multiple images in the private batch belong to a same label, neither approach can tell how many images belong to that label, let alone which subset of images belong to that label. Figure 2a demonstrates that with CIFAR-10, for batches of various sizes it is possible for many of the training samples to be have the same label, and the distribution of labels is not uniform - and hence, inferring labels becomes harder and the attack would be weakened. In Figure 2b we evaluate the worst-case for an attacker in this setting by comparing recoveries where the batch labels are simultaneously reconstructed alongside the training samples. ",
580
+ "bbox": [
581
+ 173,
582
+ 348,
583
+ 825,
584
+ 487
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "4 Defenses Against the Gradient Inversion Attack ",
591
+ "text_level": 1,
592
+ "bbox": [
593
+ 174,
594
+ 506,
595
+ 602,
596
+ 523
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "Several defense ideas have been proposed to mitigate the risks of gradient inversion. ",
603
+ "bbox": [
604
+ 174,
605
+ 536,
606
+ 723,
607
+ 551
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "4.1 Encrypt gradients ",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 174,
617
+ 566,
618
+ 339,
619
+ 582
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Cryptography-based approaches encrypt gradient to prevent gradient inversion. [Bonawitz et al., 2016] presents a secure aggregation protocol for Federated learning by computing sum of gradient vectors based on secret sharing [Shamir, 1979]. [Phong et al., 2018] proposes using homomorphic encryption to encrypt the gradients before sending. These approaches require special setup and can be costly to implement. ",
626
+ "bbox": [
627
+ 174,
628
+ 593,
629
+ 825,
630
+ 661
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Moreover, with secure aggregation protocol, an honest-but-curious server can still launch the gradient inversion attack on the summed gradient vector. Similarly, an honest-but-curious client can launch the gradient inversion attack on the model returned by the server to reconstruct other clients’ private data, even with homomorphic encryption. ",
637
+ "bbox": [
638
+ 174,
639
+ 667,
640
+ 825,
641
+ 724
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "As alternatives, two other types of defensive mechanisms have been proposed to mitigate the risks of attacks on plain-text gradient. ",
648
+ "bbox": [
649
+ 174,
650
+ 729,
651
+ 823,
652
+ 757
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "4.2 Perturbing gradients ",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 174,
662
+ 773,
663
+ 357,
664
+ 789
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Gradient pruning. When proposing the first practical gradient inversion attack, [Zhu et al., 2019] also suggests a defense by setting gradients of small magnitudes to zero (i.e. gradient pruning). Based on their attack, they demonstrate that pruning more than $7 0 \\%$ of the gradients would make the recovered images no longer visually recognizable. However, the suggested prune ratio is determined based on weaker attacks, and may not remain safe against the state-of-the-art attack. ",
671
+ "bbox": [
672
+ 174,
673
+ 799,
674
+ 825,
675
+ 868
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "Adding noise to gradient. Motivated by DPSGD [Abadi et al., 2016] which adds noise to gradients to achieve differential privacy [Dwork, 2009, Dwork and Roth, 2014], [Zhu et al., 2019, Wei et al., ",
682
+ "bbox": [
683
+ 174,
684
+ 883,
685
+ 821,
686
+ 911
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "2020] also suggests defending by adding Gaussian or Laplacian noise to gradient. They show that a successful defense requires adding high noise level such that its accuracy drops by more than $3 0 \\%$ with CIFAR-10 tasks. Recent works [Papernot et al., 2020, Tramèr and Boneh, 2021] suggest using better pre-training techniques and a large batch size (e.g. 4, 096) to achieve a better accuracy for DPSGD training. ",
693
+ "bbox": [
694
+ 174,
695
+ 92,
696
+ 825,
697
+ 161
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Since most DPSGD implementations for natural image classification tasks [Abadi et al., 2016, Papernot et al., 2020, Tramèr and Boneh, 2021] use a pre-training and fine-tuning pipeline, it is hard to fairly compare with other defense methods that can directly apply when training the model from scratch. Thus, we leave the comparison with DPSGD to future work. ",
704
+ "bbox": [
705
+ 174,
706
+ 166,
707
+ 825,
708
+ 222
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "4.3 Weak encryption of inputs (i.e. encoding inputs) ",
715
+ "text_level": 1,
716
+ "bbox": [
717
+ 174,
718
+ 246,
719
+ 547,
720
+ 261
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "MixUp. MixUp data augmentation [Zhang et al., 2018a] trains neural networks on composite images created via linear combination of image pairs. It has been shown to improve the generalization of the neural network and stabilizes the training. Recent work also suggests that MixUp increases the model’s robustness to adversarial examples [Pang et al., 2020, Lamb et al., 2019]. ",
727
+ "bbox": [
728
+ 173,
729
+ 273,
730
+ 825,
731
+ 329
732
+ ],
733
+ "page_idx": 5
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "InstaHide. Inspired by MixUp, [Huang et al., 2020] proposes InstaHide as a light-weight instanceencoding scheme for private distributed learning. To encode an image $x \\in \\mathbb { R } ^ { d }$ from a private dataset, InstaHide first picks $k - 1$ other images $s _ { 2 } , s _ { 3 } , \\ldots , s _ { k }$ from that private dataset, or a large public dataset, and $k$ random nonnegative coefficients $\\{ \\lambda _ { i } \\} _ { i = 1 } ^ { k }$ that sum to 1, and creates a composite image $\\textstyle \\lambda _ { 1 } x + \\sum _ { i = 2 } ^ { k } \\lambda _ { i } s _ { i }$ ( $k$ is typically small, e.g., 4). A composite label is also created using the same set of coefficients.2 Then it adds another layer of security: pick a random sign-flipping pattern $\\sigma \\in \\{ - 1 , 1 \\} ^ { d }$ and output the encryption $\\begin{array} { r } { \\tilde { x } = \\sigma \\circ ( \\lambda _ { 1 } x + \\sum _ { i = 2 } ^ { k } \\lambda _ { i } s _ { i } ) } \\end{array}$ , where $\\circ$ is coordinate-wise multiplication of vectors. The neural network is then trained on encoded images, which look like random pixel vectors to the human eye and yet lead to good classification accuracy $\\mathit { \\Theta } _ { \\left( < \\mathrm { 6 \\% } \\right. }$ accuracy loss on CIFAR-10, CIFAR-100, and ImageNet). ",
738
+ "bbox": [
739
+ 173,
740
+ 349,
741
+ 825,
742
+ 497
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Recently, [Carlini et al., 2020] gives an attack to recover private images of a small dataset, when the InstaHide encodings are revealed to the attacker (not in a Federated learning setting). Their first step is to train a neural network on a public dataset for similarity annotation, to infer whether a pair of InstaHide encodings contain the same private image. With the inferred similarities of all pairs of encodings, the attacker then runs a combinatorial algorithm (cubic time in size of private dataset) to cluster all encodings based on their original private images, and finally uses a regression algorithm (with the help of composite labels) to recover the private images. ",
749
+ "bbox": [
750
+ 174,
751
+ 503,
752
+ 825,
753
+ 601
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Neither [Huang et al., 2020] or [Carlini et al., 2020] has evaluated their defense or attack in the Federated learning setting, where the attacker observes gradients of the encoded images instead of original encoded images. This necessitates the systematic evaluation in our next section. ",
760
+ "bbox": [
761
+ 176,
762
+ 606,
763
+ 825,
764
+ 648
765
+ ],
766
+ "page_idx": 5
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "5 Evaluation of defenses ",
771
+ "text_level": 1,
772
+ "bbox": [
773
+ 174,
774
+ 674,
775
+ 392,
776
+ 690
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "The main goal of our experiments is to understand the trade-offs between data utility (accuracy) and securely defending the state-of-the-art gradient inversion attack even in its strongest setting, without any relaxation of its implicit assumptions. Specifically, we grant the attacker the knowledge of 1) BatchNorm statistics of the private batch, and 2) labels of the private batch. ",
783
+ "bbox": [
784
+ 174,
785
+ 709,
786
+ 825,
787
+ 765
788
+ ],
789
+ "page_idx": 5
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "We vary key parameters for each defense, and evaluate their performance in terms of the test accuracy, computation overhead, and privacy risks (Section 5.2). We then investigate the feasibility of combining defenses (Section 5.3). We also estimate the computation cost of end-to-end recovery of a single image under evaluated defenses (Section 5.4). ",
794
+ "bbox": [
795
+ 174,
796
+ 771,
797
+ 825,
798
+ 827
799
+ ],
800
+ "page_idx": 5
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "As the feasibility of the state-of-the-art attack [Geiping et al., 2020] on a batch of high-resolution images remain elusive when its implicit assumptions no longer hold (see Figure 1), we focus on the evaluation with low-resolution in trying to understand whether current attacks can be mitigated. ",
805
+ "bbox": [
806
+ 176,
807
+ 833,
808
+ 825,
809
+ 876
810
+ ],
811
+ "page_idx": 5
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "5.1 Experimental setup ",
816
+ "text_level": 1,
817
+ "bbox": [
818
+ 174,
819
+ 92,
820
+ 349,
821
+ 106
822
+ ],
823
+ "page_idx": 6
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "Key parameters of defenses. We evaluate following defenses on CIFAR-10 dataset [Krizhevsky et al., 2009] with ResNet-18 architecture [He et al., 2016]. ",
828
+ "bbox": [
829
+ 174,
830
+ 119,
831
+ 823,
832
+ 147
833
+ ],
834
+ "page_idx": 6
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "• GradPrune (gradient pruning): gradient pruning set gradients of small magnitudes to zero. We vary the pruning ratio $p$ in $\\{ 0 . 5 , 0 . 7 , 0 . 9 , 0 . 9 5 , 0 . 9 9 , 0 . 9 9 9 \\}$ . \n• MixUp: MixUp encodes a private image by linearly combining it with $k - 1$ other images from the training set. Following [Huang et al., 2020], we vary $k$ in $\\{ 4 , 6 \\}$ , and set the upper bound of a single coefficient to 0.65 (coefficients sum to 1). \n• Intra-InstaHide: InstaHide [Huang et al., 2020] proposes two versions: Inter-InstaHide and Intra-InstaHide. The only difference is that at the mixup step, Inter-Instahide mixes up an image with images from a public dataset, whereas Intra-InstaHide only mixes with private images. Both versions apply a random sign flipping pattern on each mixed image. We evaluate Intra-InstaHide in our experiments, which is a weaker version of InstaHide. Similar to the evaluation of MixUp, we vary $k$ in $\\{ 4 , 6 \\}$ , and set the upper bound of a single coefficient to 0.65. Note that InstaHide flips signs of pixels in the image, which destroys the total variation prior. However, the absolute value of adjacent pixels should still be close. Therefore, for the InstaHide defense, we apply the total variation regularizer on $| x |$ , i.e. taking absolute value of each pixel in the reconstruction. We train the ResNet-18 architecture on CIFAR-10 using different defenses, and launch the attack. \nWe provide more details of the experiments in Appendix A. ",
839
+ "bbox": [
840
+ 215,
841
+ 165,
842
+ 826,
843
+ 393
844
+ ],
845
+ "page_idx": 6
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "",
850
+ "bbox": [
851
+ 176,
852
+ 410,
853
+ 823,
854
+ 439
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "The attack. We use a subset of 50 CIFAR-10 images to evaluate the attack performance. Note that attacking MixUp and InstaHide involves another step to decode private images from the encoded images. We apply [Carlini et al., 2020]’s attack here as the decode step, where the attacker needs to eavesdrop $T$ epochs of training, instead of a single training step. We set $T = 2 0$ in our evaluation. We also grant the attacker the strongest power for the decode step to evaluate the upper bound of privacy leakage. Given a MixUp or Intra-InstaHide image which encodes $k$ private images, we assume the attacker knows: ",
861
+ "bbox": [
862
+ 174,
863
+ 460,
864
+ 825,
865
+ 556
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "1. The indices of $k$ images in the private dataset. In a realistic scenario, the attacker of [Carlini et al., 2020] would need to train a neural network to detect similarity of encodings, and run a combinatorial algorithm to solve an approximation of this mapping. \n2. The mixing coefficients for each of the $k$ private image. In real Federated learning, this information is not available. ",
872
+ "bbox": [
873
+ 209,
874
+ 570,
875
+ 825,
876
+ 651
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Hyper-parameters of the attack. The attack minimize the objective function given in Eq.3. We search $\\alpha _ { \\mathrm { T V } }$ in $\\{ 0 , 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 \\}$ for all defenses, and apply the best choice for each defense: 0.05 for GradPrune, 0.1 for MixUp, and 0.01 for Intra-InstaHide. We apply $\\alpha _ { \\mathrm { B N } } = 0 . 0 0 1$ for all defenses after searching it in $\\{ 0 , 0 . 0 0 0 5 , 0 . 0 0 1 , 0 . 0 1 , 0 . 0 5 , 0 . 0 1 \\}$ . We optimize the attack for 10, 000 iterations using Adam [Kingma and Ba, 2015], with initial learning rate 0.1. We decay the learning rate by a factor of 0.1 at $3 / \\bar { 8 } , 5 / 8 , 7 / 8$ of the optimization. ",
883
+ "bbox": [
884
+ 174,
885
+ 672,
886
+ 825,
887
+ 757
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Batch size of the attack. [Zhu et al., 2019, Geiping et al., 2020] have shown that a small batch size is important for the success of the attack. We intentionally evaluate the attack with three small batch sizes to test the upper bound of privacy leakage, including the minimum (and unrealistic) batch size 1, and two small but realistic batch sizes, 16 and 32. ",
894
+ "bbox": [
895
+ 174,
896
+ 777,
897
+ 823,
898
+ 833
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Metrics for reconstruction quality. We visualize reconstructions obtained under different defenses. Following [Yin et al., 2021], we also use the learned perceptual image patch similarity (LPIPS) score [Zhang et al., 2018b] to measure mismatch between reconstruction and original images: higher values suggest more mismatch (less privacy leakage). ",
905
+ "bbox": [
906
+ 174,
907
+ 856,
908
+ 825,
909
+ 911
910
+ ],
911
+ "page_idx": 6
912
+ },
913
+ {
914
+ "type": "image",
915
+ "img_path": "images/cbc88a741e67fa86b91e694e9db69bdd604257e78a1dc37ece158a4c167d3c24.jpg",
916
+ "image_caption": [
917
+ "Figure 3: Reconstruction results under different defenses with batch size being 1, 16 and 32. When batch size is 32, combining gradient pruning and Intra-InstaHide makes the reconstruction almost unrecognizable (the last column). See Figure 7 in Appendix A for the full version. "
918
+ ],
919
+ "image_footnote": [],
920
+ "bbox": [
921
+ 173,
922
+ 92,
923
+ 820,
924
+ 210
925
+ ],
926
+ "page_idx": 7
927
+ },
928
+ {
929
+ "type": "table",
930
+ "img_path": "images/f536f4dc643bf33436d135e05a625be3731d6a94106d3fb21c4450727da1f518.jpg",
931
+ "table_caption": [],
932
+ "table_footnote": [],
933
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">None ,</td><td colspan=\"6\">GradPrune (p)</td><td colspan=\"2\">MixUp (k)</td><td colspan=\"2\">Intra-InstaHide (k)</td><td colspan=\"2\">GradPrune (p= 0.9) + MixUp| + Intra-InstaHide</td></tr><tr><td>0.5</td><td>0.7</td><td>0.9</td><td>0.95</td><td>0.99</td><td>|0.999 |</td><td>4</td><td>6</td><td>4 6</td><td>k=4</td><td>k=4</td></tr><tr><td>Parameter Test Acc.</td><td>93.37|</td><td colspan=\"2\">[93.19 |93.01 90.57|</td><td colspan=\"2\">|89.92 | 88.61</td><td colspan=\"3\">|83.58|92.31|9</td><td colspan=\"2\">90.04 88.20</td><td>91.37</td><td>86.10</td></tr><tr><td>Time (train)</td><td>1×</td><td colspan=\"2\"></td><td colspan=\"3\">1.04×</td><td colspan=\"2\">|90.41 1.06×</td><td colspan=\"2\">1.06×</td><td colspan=\"2\">1.10×</td></tr><tr><td></td><td colspan=\"14\">Attack batch size = 1</td></tr><tr><td rowspan=\"2\">Avg.LPIPS↓ BestLPIPS (LPIPS std.) 0.16</td><td rowspan=\"2\">0.19 0.19 0.02 0.02 0.05</td><td rowspan=\"2\">0.22 0.14 0.22</td><td rowspan=\"2\">0.35</td><td rowspan=\"2\">0.42 0.32</td><td rowspan=\"2\">0.52 0.52 0.36</td><td rowspan=\"2\"></td><td rowspan=\"2\">0.34 0.12</td><td rowspan=\"2\">0.46</td><td rowspan=\"2\"></td><td rowspan=\"2\">0.61</td><td rowspan=\"2\">0.41</td><td rowspan=\"2\">0.60 0.43</td></tr><tr><td>0.58 0.41 0.42 0.06</td></tr><tr><td colspan=\"10\">0.25 0.17 0.16 0.13 0.11 0.08 0.06 0.08 0.07</td><td>0.09</td><td>0.21 0.07</td><td></td><td>0.09</td></tr><tr><td>Avg.LPIPS ↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td>Attack batch size = 16</td><td></td><td></td><td></td><td>0.46</td><td></td><td></td></tr><tr><td rowspan=\"2\">Best LPIPS↓ (LPIPS std.)</td><td>0.45 0.18</td><td>0.46 0.19</td><td>0.47 0.19</td><td>0.51 0.31</td><td>0.55 0.43</td><td>0.58 0.61 0.47 0.51</td><td>0.34 0.11</td><td></td><td>0.31 0.62 0.13 0.41</td><td>0.63 0.44</td><td>0.22</td><td></td><td>0.68 0.54</td></tr><tr><td>0.12</td><td>0.12</td><td>0.11</td><td>0.07</td><td>0.05</td><td>0.04</td><td>0.03</td><td>0.09</td><td>0.09</td><td>0.08</td><td>0.08</td><td>0.10</td><td>0.07</td></tr><tr><td colspan=\"10\">Attack batch size = 32</td><td colspan=\"3\"></td><td></td><td></td></tr><tr><td>Avg.LPIPS↓ BestLPIPS↓</td><td>0.45 0.18</td><td>0.46 0.18</td><td>0.48 0.22</td><td>0.52 0.31</td><td>0.54 0.43</td><td>0.58</td><td>0.63</td><td>0.50</td><td>0.49 0.28</td><td>0.69 0.56</td><td>0.69 0.56</td><td>0.62</td><td>0.73</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>0.48</td><td>0.54</td><td>0.31</td><td></td><td></td><td></td><td>0.37</td><td>0.65</td></tr><tr><td>(LPIPS std.)</td><td>0.11</td><td>0.11</td><td></td><td>0.07</td><td>0.05</td><td>0.04</td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.05</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.07</td><td>0.10</td><td></td></tr><tr><td></td><td></td><td></td><td>0.09</td><td></td><td></td><td></td><td></td><td>0.10</td><td></td><td>0.06</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.04</td><td></td><td>0.10</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
934
+ "bbox": [
935
+ 171,
936
+ 279,
937
+ 821,
938
+ 508
939
+ ],
940
+ "page_idx": 7
941
+ },
942
+ {
943
+ "type": "image",
944
+ "img_path": "images/48913c3f139daf90cfae8821a03044d6c82c1975b98b52cda2675a66ace6a03b.jpg",
945
+ "image_caption": [
946
+ "Table 2: Utility-security trade-off of different defenses. We train the ResNet-18 model on the whole CIFAR-10 dataset, and report the averaged test accuracy and running time of 5 independent runs. We evaluate the attack on a subset of 50 CIFAR-10 images, and report the LPIPS score $\\downarrow \\colon$ lower values suggest more privacy leakage). We mark the least-leakage defense measured by the metric in green. "
947
+ ],
948
+ "image_footnote": [],
949
+ "bbox": [
950
+ 176,
951
+ 526,
952
+ 794,
953
+ 633
954
+ ],
955
+ "page_idx": 7
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "5.2 Performance of defense methods ",
960
+ "text_level": 1,
961
+ "bbox": [
962
+ 176,
963
+ 708,
964
+ 439,
965
+ 723
966
+ ],
967
+ "page_idx": 7
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "We summarize the performance of each defense in Table 2, and visualize reconstructed images in Figure 3. We report the averaged and the best results for the metric of reconstruction quality, as a proxy for average-case and worst-case privacy leakage. ",
972
+ "bbox": [
973
+ 173,
974
+ 734,
975
+ 825,
976
+ 777
977
+ ],
978
+ "page_idx": 7
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "No defense. Without any defense, when batch size is 1, the attack can recover images well from the gradient. Increasing the batch size makes it difficult to recover well, but the recovered images are visually similar to the originals (see Figure 3). ",
983
+ "bbox": [
984
+ 174,
985
+ 795,
986
+ 825,
987
+ 837
988
+ ],
989
+ "page_idx": 7
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Gradient pruning (GradPrune). Figure 3 shows that as the pruning ratio $p$ increases, there are more artifacts in the reconstructions. However, the reconstructions are still recognizable even when the pruning ratio $p = 0 . 9$ , thus the previous suggestion of using $p = 0 . 7$ by [Zhu et al., 2019] is no longer safe against the state-of-the-art attack. Our results suggest that, for CIFAR-10, defending the strongest attack with gradient pruning may require the pruning ratio $p \\geq 0 . 9 9 9$ . As a trade-off, such a high pruning ratio would introduce an accuracy loss of around $1 0 \\%$ (see Table 2). ",
994
+ "bbox": [
995
+ 174,
996
+ 856,
997
+ 825,
998
+ 911
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "",
1005
+ "bbox": [
1006
+ 171,
1007
+ 92,
1008
+ 823,
1009
+ 119
1010
+ ],
1011
+ "page_idx": 8
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "MixUp. MixUp introduces a small computational overhead to training. MixUp with $k = 4$ only has a minor impact $( \\sim 2 \\% )$ on test accuracy, but it is not sufficient to defend the gradient inversion attack (see Figure 3). Increasing $k$ from 4 to 6 slightly reduces the leakage, however, the reconstruction is still highly recognizable. This suggests that MixUp alone may not be a practical defense against the state-of-the-art gradient inversion attack. ",
1016
+ "bbox": [
1017
+ 174,
1018
+ 133,
1019
+ 825,
1020
+ 203
1021
+ ],
1022
+ "page_idx": 8
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Intra-InstaHide. Intra-InstaHide with $k = 4$ incurs an extra ${ \\sim } 2 \\%$ accuracy loss compared with MixUp, but it achieves better defense performance: when batch size is 32, there are obvious artifacts and color shift in the reconstruction (see Figure 3). However, with batch size 32, Intra-InstaHide alone also cannot defend the state-of-the-art gradient inversion, as structures of private images are still vaguely identifiable in reconstructions. ",
1027
+ "bbox": [
1028
+ 174,
1029
+ 218,
1030
+ 825,
1031
+ 287
1032
+ ],
1033
+ "page_idx": 8
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Appendix A provides the whole reconstructed dataset under MixUp and Intra-InstaHide. ",
1038
+ "bbox": [
1039
+ 173,
1040
+ 294,
1041
+ 751,
1042
+ 308
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "5.3 Performance of combined defenses ",
1049
+ "text_level": 1,
1050
+ "bbox": [
1051
+ 176,
1052
+ 324,
1053
+ 454,
1054
+ 338
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "We notice that two types of defenses (i.e perturbing gradient and encoding inputs) are complementary to each other, which motivates an evaluation of combining gradient pruning with MixUp or IntraInstaHide. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 349,
1064
+ 825,
1065
+ 391
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "As shown in Figure 3, when the batch size is 32, combining Intra-InstaHide $k = 4$ ) with gradient pruning $\\gamma = 0 . 9 ,$ ) makes the reconstruction almost unrecognizable. The combined defense yields a higher LPIPS score than using gradient pruning with $p = 0 . 9 9 9$ , but introduces a smaller accuracy loss ${ \\sim } 7 \\%$ compared with a no-defense pipeline). ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 397,
1075
+ 825,
1076
+ 454
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Note that our evaluation uses the strongest attack and relatively small batch sizes. As shown in Appendix A, invalidating assumptions in Section 3 or increasing the batch size may hinder the attack with an even weaker defense (e.g. with a lower $p$ , or smaller $k$ ), which gives a better accuracy. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 460,
1086
+ 825,
1087
+ 502
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "5.4 Time estimate for end-to-end recovery of a single image ",
1094
+ "text_level": 1,
1095
+ "bbox": [
1096
+ 173,
1097
+ 518,
1098
+ 598,
1099
+ 532
1100
+ ],
1101
+ "page_idx": 8
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Table 3 shows time estimates for the end-to-end recovery of a single image in a Federated learning setting with GradPrune or InstaHide defense. We do not estimate for MixUp since it has been shown to be a weak defense (see Section 5.2). ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 544,
1109
+ 825,
1110
+ 585
1111
+ ],
1112
+ "page_idx": 8
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Our time estimates consider three fairly small dataset sizes. The largest size in our estimate is a small fraction of a dataset of ImageNet scale. We consider a client holds a dataset of $N$ private images and participates in Federated learning, which trains a ResNet-18 model with batch size $b = 1 2 8$ . Assumes that the resolution of the client’s data is $3 2 \\times 3 2 \\times 3$ . If the attacker uses a single NVIDIA GeForce RTX 2080 Ti GPU as his computation resource, and runs gradient inversion with 10,000 iterations of optimization, then $t$ , the running time for attacking a single batch is ${ \\sim } 0 . 2 5$ GPU hours (batch size $b$ has little impact on the attack’s running time, but a larger $b$ makes the attack less effective). ",
1117
+ "bbox": [
1118
+ 174,
1119
+ 592,
1120
+ 825,
1121
+ 689
1122
+ ],
1123
+ "page_idx": 8
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Non-defended and gradient pruning. Recovering a single image in a non-defended pipeline (or a pipeline that applies gradient pruning alone as the defense) only requires the attacker to invert gradient of a single step of training, which takes time $t$ . ",
1128
+ "bbox": [
1129
+ 176,
1130
+ 704,
1131
+ 823,
1132
+ 746
1133
+ ],
1134
+ "page_idx": 8
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "InstaHide. When InstaHide is applied, the current attack [Carlini et al., 2020] suggests that recovering a single image would involve recovering the whole dataset first. As discussed in Section 4, Carlini et al.’s attack consists of two steps: 1) recover InstaHide images from gradient of $T$ epochs. This would take $( N T / b ) \\times t$ GPU hours. 2) Run the decode attack [Carlini et al., 2020] on InstaHide images to recover the private dataset, which involves: ",
1139
+ "bbox": [
1140
+ 176,
1141
+ 760,
1142
+ 825,
1143
+ 829
1144
+ ],
1145
+ "page_idx": 8
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "2a Train a neural network to detect similarity in recovered InstaHide images. Assume that training the network requires at least $n$ recovered InstaHide images, then collecting these images by running gradient inversion would take $( n / b ) \\times t$ GPU hours. The training takes $1 0 \\mathrm { G P U }$ hours according to [Carlini et al., 2020], so training the similarity network would take $( n / b ) \\times t + 1 0$ GPU hours in total. ",
1150
+ "bbox": [
1151
+ 210,
1152
+ 842,
1153
+ 823,
1154
+ 911
1155
+ ],
1156
+ "page_idx": 8
1157
+ },
1158
+ {
1159
+ "type": "table",
1160
+ "img_path": "images/8ad0c592653376326ec82c9030f2d6f5f70777630fa3c452e9d7909b4ff7c9bb.jpg",
1161
+ "table_caption": [],
1162
+ "table_footnote": [],
1163
+ "table_body": "<table><tr><td>Size of client&#x27;s dataset (N)</td><td>No defense</td><td>GradPrune</td><td>InstaHide</td></tr><tr><td>5,000</td><td rowspan=\"3\">0.25</td><td rowspan=\"3\">0.25</td><td>934.48</td></tr><tr><td>50,000</td><td>46.579.01 (~ 5.5 GPU years)</td></tr><tr><td>500,000</td><td>4,215.524.32 (~ 493.4 GPU years)</td></tr></table>",
1164
+ "bbox": [
1165
+ 174,
1166
+ 88,
1167
+ 820,
1168
+ 152
1169
+ ],
1170
+ "page_idx": 9
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Table 3: Time estimates (NVIDIA GeForce RTX 2080 Ti GPU hours) of recovering a single image from the client’s dataset using the state-of-the-art gradient inversion attack [Geiping et al., 2020] under different defenses. We assume image resolution of the client’s data is $3 2 \\times 3 2 \\times 3$ . ",
1175
+ "bbox": [
1176
+ 174,
1177
+ 157,
1178
+ 823,
1179
+ 200
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "2b Run the combinotorial algorithm to recover original images. Running time of this step has been shown to be at least quadratic in $m$ , the number of InstaHide encodings [Chen et al., 2021]. This step takes $1 / 6$ GPU hours with $m = 5 \\times 1 0 ^ { 3 }$ . Therefore for $m = N T$ , the running time is at least $\\begin{array} { r } { 1 / 6 \\times ( \\frac { N T } { 5 \\times 1 0 ^ { 3 } } ) ^ { 2 } } \\end{array}$ GPU hours. ",
1186
+ "bbox": [
1187
+ 209,
1188
+ 217,
1189
+ 825,
1190
+ 276
1191
+ ],
1192
+ "page_idx": 9
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "In total, an attack on InstaHide in this real-world setting would take $( N T / b ) \\times t + ( n / b ) \\times t +$ $\\begin{array} { r } { 1 0 + 1 / 6 \\times ( \\frac { N T } { 5 \\times 1 0 ^ { 3 } } ) ^ { 2 } } \\end{array}$ GPU hours. We use $T = 5 0$ (used by [Carlini et al., 2020]), $n = 1 0 , 0 0 0$ and give estimate in Table 3. As shown, when InstaHide is applied on a small dataset $( N = 5 , 0 0 0 )$ ), the end-to-end recovery of a single image takes $> 3$ , $0 0 0 \\times$ longer than in a no-defense pipeline or GradPrune pipeline; when InstaHide is applied on a larger dataset $( N = 5 0 0 , 0 0 0 )$ , the computation cost for end-to-end recovery is enormous. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 287,
1200
+ 826,
1201
+ 375
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "6 Conclusions ",
1208
+ "text_level": 1,
1209
+ "bbox": [
1210
+ 174,
1211
+ 393,
1212
+ 307,
1213
+ 410
1214
+ ],
1215
+ "page_idx": 9
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "This paper first points out that some state-of-the-art gradient inversion attacks have made strong assumptions about knowing BatchNorm statistics and private labels. Relaxing such assumptions can significantly weaken these attacks. ",
1220
+ "bbox": [
1221
+ 174,
1222
+ 424,
1223
+ 825,
1224
+ 465
1225
+ ],
1226
+ "page_idx": 9
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "The paper then reports the performance of a set of proposed defenses against gradient inversion attacks, and estimates the computation cost of an end-to-end recovery of a single image in different dataset sizes. Our evaluation shows that InstaHide without mixing with data from a public dataset combined with gradient pruning can defend the state-of-the-art attack, and the estimated time to recover a single image in a medium-size client dataset (e.g. of 500,000 images) is enormous. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 472,
1234
+ 825,
1235
+ 542
1236
+ ],
1237
+ "page_idx": 9
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Based on our evaluation of the attack by [Geiping et al., 2020] and multiple defenses for plain-text gradients, we have the following observations: ",
1242
+ "bbox": [
1243
+ 176,
1244
+ 547,
1245
+ 823,
1246
+ 577
1247
+ ],
1248
+ "page_idx": 9
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "• Using BatchNorm layers in your deep net but don’t share BatchNorm statistics of the private batch during Federated learning weakens the attack. We have demonstrated in Section 3 that exposing BatchNorm statistics to the attacker significantly improves the quality of gradient inversion. So a more secure configuration of Federated Learning would be to use BatchNorm layers, but do not share BatchNorm statistics in training, which has been shown feasible in [Andreux et al., 2020, Li et al., 2021]. \nUsing a large batch size weakens the attack; a batch size smaller than 32 is not safe. We have shown that a larger batch size hinders the attack by making it harder to guess the private labels (Section 3) and to recover the private images even with correct private labels (Section 5). Our experiments suggest that even with some weak defenses applied, a batch size smaller than 32 is not safe against the strongest gradient inversion attack. \nCombining multiple defenses may achieve a better utility-privacy trade-off. In our experiment, for a batch size of 32, combining InstaHide $k = 4$ ) with gradient pruning $( p = 0 . 9 )$ ) achieves the best utility-privacy trade-off, by making the reconstruction almost unrecognizable at a cost of ${ \\sim } 7 \\%$ accuracy loss (using InstaHide also makes the end-to-end recovery of a single image more computationally expensive). Best parameters would vary for different deep learning tasks, but we strongly encourage Federated learning participants to explore the possibility of combining multiple defensive mechanisms, instead of only using one of them. ",
1253
+ "bbox": [
1254
+ 217,
1255
+ 585,
1256
+ 825,
1257
+ 858
1258
+ ],
1259
+ "page_idx": 9
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "We hope to extend our work by including evaluation of defenses for high-resolution images, the attack by [Yin et al., 2021] (when its implementation becomes available), and more defense mechanisms including those rely on adding noise to gradients. ",
1264
+ "bbox": [
1265
+ 176,
1266
+ 869,
1267
+ 825,
1268
+ 911
1269
+ ],
1270
+ "page_idx": 9
1271
+ }
1272
+ ]
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/2rAiDBJgR_/2rAiDBJgR_.md ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WeaveNet for Approximating Assignment Problems
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 Assignment, a task to match a limited number of elements, is a fundamental
11
+ 2 problem in informatics. Many assignment problems have no exact solvers due
12
+ 3 to their NP-hardness or incomplete input, and their approximation algorithms
13
+ 4 have been studied for a long time. However, individual practical applications
14
+ 5 have various objective functions and prior assumptions, which usually differ from
15
+ 6 academic studies. This gap hinders applying the algorithms to real problems
16
+ 7 despite their theoretically ensured performance. In contrast, a learning-based
17
+ 8 method can be a promising solution to fill the gap. To open a new vista for
18
+ 9 real-world assignment problems, we propose a novel neural network architecture,
19
+ 10 WeaveNet. Its core module, feature weaving layer, is stacked to model frequent
20
+ 11 communication between elements in a parameter-efficient way for solving the
21
+ 12 combinatorial problem of assignment. To evaluate the model, we approximated
22
+ 13 one of the most popular non-linear assignment problems, stable matching with two
23
+ 14 different strongly NP-hard settings. The experimental results showed its impressive
24
+ 15 performance among the learning-based baselines. Furthermore, we achieved better
25
+ 16 or comparative performance to the state-of-the-art algorithmic method, depending
26
+ 17 on the size of problem instances.
27
+
28
+ # 18 1 Introduction
29
+
30
+ 19 From multiple object tracking to job matching, assignment problems can represent a wide variety of
31
+ 20 applications. An assignment problem is typically defined on a bipartite graph, a graph with two sets
32
+ 21 of nodes $A$ and $B$ with edges $E = A \times B$ $\mathbf { \nabla } \cdot N = | A |$ , $M = | B |$ , $N \geq M$ ). On the graph, the task
33
+ 22 is to find a matching $m \in \mathsf { \bar { \{ 0 , 1 \} } } ^ { A \times B }$ (a set of edges represented as a binary matrix) that satisfies
34
+ 23 constraints and/or maximizes objectives. Depending on real-world scenes, there must be various
35
+ 24 objectives and constraints for $m$ . A typical constraint is a one-to-one correspondence (i.e., every node
36
+ 25 has at most one matched partner in $m$ ) and, for simplicity, we always assume it in this paper.
37
+ 26 Matching stability is another example of such constraints. It is a non-linear constraint first introduced
38
+ 7 for a hospital-student assignment problem (Gale and Shapley, $\textcircled { 1 9 6 2 }$ based on the preferences of
39
+ 28 hospitals among students and vice versa. We say a matching $m$ is unstable when there exist $a \in A$
40
+ 29 and $b \in B$ which are unmatched in $m$ ${ m } _ { a b } = 0$ ) but both prefer each other more than their partner
41
+ 30 in $m$ . We can obtain a stable matching $m$ in $O ( N ^ { 2 } )$ by the Gale-Shapley (GS) algorithm $\underline { { \sqrt { \mathrm { G a l e } } } }$
42
+ and Shapley, 1962). However, when $m$ is expected to have the minimum difference in the total
43
+ 32 satisfactions between sides $A$ and $B$ (known as sex-equal stable matching), the problem becomes
44
+ 33 strongly NP-hard1 (Kato, 1993; McDermid and Irving, 2014)
45
+ 34 In addition to the NP-hardness, we also face difficulties to obtain the best assignment when assignment
46
+ 35 candidates may randomly disappear (e.g., multiple object tracking with occlusions (Emami et al.,
47
+ 36 $\underline { 2 0 2 0 }$ or joint matching in multi-person pose estimation $( \overline { { \mathbb { C } \mathrm { a o } \ e t \ a l . } } , \overline { { 2 0 1 7 } } ) )$ . In such cases, we need
48
+ 37 to compensate for the inputs of incomplete information by its stochastic properties. The traditional
49
+ 38 methods often use sub-optimal approximations to avoid solving complex assignment problems.
50
+ 39 A differential assignment model can be a future option that enables end-to-end training for such
51
+ 40 applications.
52
+ 41 Toward such future applications, this paper aims to propose an effective and promising differential
53
+ 42 solver for assignment problems. The contribution of this paper is four-fold:
54
+
55
+ 1. We proposed WeaveNet, a novel neural network architecture for assignment problems and set-encoder, a novel local structure.
56
+ 2. We proposed a novel technique, split batch normalization, to deal with a strong asymmetry in input distributions for sides $A$ and $B$ .
57
+ 3. We focused on stable matching, a classical non-linear assignment problem actively studied even in recent years, and proposed a novel evaluation protoco $1 ^ { 2 }$ with pseudo costs, which enables us to compare learning-based solvers and algorithmic solvers directly.
58
+ 4. We achieved a better performance with the state-of-the-art algorithmic baseline when $N = 2 0$ , and a comparative performance when $N = 3 0$ . We also outperformed any learning-based baselines with a large margin.
59
+
60
+ # 53 2 Related work
61
+
62
+ 54 Despite the recent research interest in deep learning technology, we hardly have a fully differential
63
+ 55 assignment solver. As long as authors know, there are two past attempts to solve assignment problems
64
+ 56 by a fully differential model. $\underline { { \mathrm { L i } } } ( \underline { { \mathrm { 2 0 1 9 } } } )$ has tried to solve stable matching by multiple layer perceptrons
65
+ 57 (MLP). Their contribution is in the proposed relaxation of the non-linear stability constraint to a
66
+ 58 differential loss function. However, the MLP is too redundant to learn the assignment strategy without
67
+ 59 overfitting. In addition, the proposed auxiliary loss to maintain the output to be one-to-one matching
68
+ 60 (symmetric doubly stochastic function) overly constrains the solution search space. In this study, we
69
+ 61 propose a parameter-efficient differential model and a weaker but sufficient constraint to output a
70
+ 62 one-to-one matching.
71
+ 63 The second attempt is made by $\boxed { \mathrm { G i b b o n s } ~ e t ~ a l . } \textcircled { 2 0 1 9 } $ , where Deep Bipartite Matching (DBM) is
72
+ 64 proposed. They tested their model with the weapon-target assignment (WTA) problem. WTA is a
73
+ 65 classical NP-hard problem whose state-of-the-art algorithm $( \overline { { \Delta \mathrm { h u j a } ~ e t ~ a l . } } , \overline { { 2 0 0 7 } } )$ could find optimal
74
+ 66 solution when $N \leq 2 0$ in the experiment although there is no theoretical guarantee. In this sense,
75
+ 67 we can consider WTA is empirically easier than sex-equal stable matching, for which we have no
76
+ 68 such efficient solvers even for $N = 5$ . In addition, DBM is trained in a supervised manner or with
77
+ 69 reinforcement learning, which is hard to apply to a larger $N$ . Furthermore, the implementation details
78
+ 70 are not completely explained, and their dataset and source codes are not publicly available. Finally,
79
+ 71 the architecture of DBM is still parameter-redundant, and their local structure is sub-optimal. In this
80
+ 72 study, we propose a more parameter-efficient two-stream architecture, WeaveNet, with a novel local
81
+ 73 structure, set-encoder, both of which have significant impacts on the performance.
82
+ 74 In addition to the above methods, it is natural to consider using graph convolutional networks (GCNs).
83
+ 75 However, there are no GCN methods for assignment problems due to the over-smoothing problem (Li
84
+ 76 et al., 2018; Oono and Suzuki, 2020). Because any graph-convolutional layer summarizes the output
85
+ 77 with neighboring nodes, its smoothing effect eliminates expressive power for node classification. To
86
+ 78 avoid such elimination, GIN $\textcircled { | \textcircled { \times } { \textrm { v e t a l . } } \textcircled { 2 0 1 9 } }$ , the state-of-the-art GCN method, stacks only two
87
+ 79 layers for a node classification task. Such elimination is critical for an assignment-problem solver
88
+ 80 because it needs to identify any slight difference through frequent communication among nodes.
89
+ 81 Unlike GIN, our model retains edge-wise features rather than node-wise summaries, which does not
90
+ 82 cause the smoothing problem. Therefore, we can make the model very deep, which any traditional
91
+ 83 graph convolutional networks cannot.
92
+
93
+ # 84 3 Stable matching problem as a benchmark task
94
+
95
+ To evaluate learning-based assignment solvers, we adopt two strongly NP-hard variants of stable matching. They have been actively studied for a long time (Kato, 1993; Iwama et al., 2010; Dworczak,
96
+
97
+ 87 2016; Gupta et al., 2019) and their state-of-the-art algorithm by $\boxed { \mathrm { T z i a v e l i s ~ } e t ~ a l . } ( \boxed { 2 0 1 9 } )$ must be a
98
+ 88 strong baseline against learning-based methods. Hence, we set these two variants as the benchmark
99
+ 89 task for learning-based assignment problems.
100
+ 90 An instance $I$ of a stable matching problem consists of two sets of agents $A$ and $B$ on a bipartite
101
+ 91 graph. Fig. 1 illustrates an example of $I$ . Each agent $a _ { i }$ in $A$ $( 0 < i \leq N )$ has a preference list $p _ { i } ^ { A }$ ,
102
+ 92 which is an ordered set of elements in $B$ and $p _ { i j } ^ { A } = r a n k ( b _ { j } ; p _ { i } ^ { A } )$ is the index of $b _ { j }$ in the list $p _ { i } ^ { A }$ . $a _ { i }$
103
+ 93 prefers $b _ { j }$ to $b _ { j ^ { \prime } }$ if $p _ { i j } ^ { A } < p _ { i j ^ { \prime } } ^ { A }$ . Similarly, each agent $b _ { j }$ in $B ( 0 < j \leq M )$ has a preference list $p _ { j } ^ { B }$ .
104
+
105
+ $$
106
+ \begin{array} { c c l } { { p _ { i } ^ { A } } } & { { \mathrm { a g e n t s } } } & { { \stackrel { \mathrm { m a t c h i n g ~ } m } { \longrightarrow } } } & { { \stackrel { \mathrm { ( b _ { j } ^ { A } ~ . ~ t h i n g ~ } m } { \longrightarrow } } } & { { p _ { j } ^ { B } } } \\ { { \stackrel { } { \cong } } } & { { \{ b _ { 2 } , b _ { 1 } , b _ { 3 } \} } } & { { \stackrel { ( a _ { 1 } ) } { \Longleftrightarrow } } } & { { \stackrel { ( b _ { 1 } ) } { \longleftrightarrow } } } & { ( b _ { 3 } , a _ { 2 } , a _ { 1 } \} } \\ { { \stackrel { \circleddash } { \geq } } } & { { \{ b _ { 3 } , b _ { 2 } , b _ { 1 } \} } } & { { \stackrel { \circleddash } { \Longleftrightarrow } } } & { { \stackrel { \circleddash } { \sum } } } & { { \{ a _ { 1 } , a _ { 2 } , a _ { 3 } \} } } \\ { { \stackrel { \circleddash } { \subseteq } } } & { { \{ b _ { 2 } , b _ { 3 } , b _ { 1 } \} } } & { { \stackrel { \circleddash } { \binom { a _ { 3 } } { 3 } } } } & { { \stackrel { \mathrm { m e t h i n g ~ p a r i n g ~ } m } { \uparrow \mathrm { t h e ~ b l o c k i n g ~ p a i r ~ } m } \stackrel { ( b _ { 3 } ) } { \{ a _ { 1 } , a _ { 3 } , a _ { 2 } \} } } } & { { \stackrel { \circleddash } { \sum } } } \end{array}
107
+ $$
108
+
109
+ Figure 1: An example of assignment, where $m$ (black edges) is not stable due to the blocking pair (the orange edge), while $m ^ { \prime }$ (green edges) is stable.
110
+
111
+ 94 For a matching $m$ , we say that an unmatched pair $\{ a _ { v } , b _ { w } \} ( m _ { v w } = 0 )$ blocks $m$ if $a _ { v }$ ’s partner
112
+ 95 $b _ { j }$ $m _ { v j } = 1 )$ ) and $b _ { w }$ ’s partner $a _ { i }$ ( $m _ { i w } = 1 $ ) satisfy the conditions $p _ { v w } ^ { A } < p _ { v j } ^ { A }$ and $p _ { w v } ^ { B } < p _ { w i } ^ { B ^ { \ast } }$ . Here,
113
+ 96 $\{ a _ { v } , b _ { w } \}$ is called a blocking pair (the orange edge blocks a matching of black edges in the figure).
114
+ 97 A matching is stable if (and only if) it includes no blocking pair (the green edges in the figure). Note
115
+ 98 that $I$ always has at least one stable matching, and the Gale-Shapley (GS) algorithm can find it in
116
+ 99 $O ( N ^ { 2 } )$ . However, the GS algorithm has a biased nature, where one side is prioritized and the other
117
+ 100 side only gets the least preferable result among all the possibilities of stable matching.
118
+ 101 To compensate for the unfairness, we can introduce diverse objectives to maintain a stable matching
119
+ 102 fair. Among them, the following two objectives make the stable matching problem strongly NP-hard.
120
+ 103 The first one is Sex equality cost $( S E q )$ (Gusfield and Irving, 1989). It focuses on the unfairness
121
+ 104 brought by the gap between the two sides’ satisfaction and defined by
122
+
123
+ $$
124
+ S E q ( m ; I ) = | P ( m ; A ) - P ( m ; B ) | , \quad P ( m ; A ) = \sum _ { \{ a _ { i } , b _ { j } \} \in m } p _ { i j } ^ { A } , \quad P ( m ; B ) = \sum _ { \{ a _ { i } , b _ { j } \} \in m } p _ { j i } ^ { B } .
125
+ $$
126
+
127
+ 105 The other is Balance cost $( B a l ) ( \mathrm { \underline { { { F e d e r } } } \vert \mathrm { \underline { { { \vert 9 9 5 } } } ; \left[ \mathrm { { G u p t a \it { e t a l . } } \vert \mathrm { \underline { { { 2 0 1 9 } } } } } \right]} } ,$ , which is a compromise between
128
+ 106 side-equality and overall satisfaction. It is defined by
129
+
130
+ $$
131
+ B a l ( m ; I ) { = } \operatorname* { m a x } ( P ( m ; A ) , P ( m ; B ) ) .
132
+ $$
133
+
134
+ 107 In the proposed evaluation protocol, we minimize either cost while maintaining stable one-to-one
135
+ 108 matching.
136
+ 109 Input and output data format for stable matching Learning-based approximation is realized by
137
+ 110 a trainable function $F$ that outputs a matching $\hat { m } \in [ 0 , 1 ] ^ { N \times \widetilde { M } }$ , which is an $N \times M$ matrix. As
138
+ 111 for the input, the value range of the preference rank depends on the problem size, which causes a
139
+ 112 range shift of the input distribution. To avoid such shift, we linearly re-scal $ { \mathrm { e } } ^ { 3 }$ the rank of preference
140
+ 113 $p _ { i j } ^ { * }$ $\mathbf { \Psi } ^ { \prime } * \in \{ A , B \} )$ from $[ 1 , N ]$ to a normalized score $s _ { i j } ^ { * }$ ranged in $( 0 , 1 ]$ to make it invariant to $N$ ,
141
+ 114 where 1 for the highest rank. Then, we obtain the input as matrices $S ^ { A }$ and $S ^ { B }$ , where $s _ { i j } ^ { A }$ is the
142
+ 115 $i j$ -element of $S ^ { A }$ .
143
+
144
+ # 116 4 Deep-learning-based fair stable matching with WeaveNet
145
+
146
+ # 4.1 WeaveNet
147
+
148
+ 18 One of the required properties of $F : ( S ^ { A } , \ S ^ { B } ) \to { \hat { m } }$ is to take all the agents’ preference into 19 account when determining the presence of each edge in the output $\hat { m }$ . Li (2019) implemented this by 3 The details of this linear re-scaling are based on Li $\bigoplus \iiiint \ M g \lVert \bigstar \rVert$ and described in A.1. Note that sections numbered with capital letters appear in the supplementary material.
149
+
150
+ ![](images/52beb3ce9d8cda69fe2150a714213608ef978ab0c72dceb0d8d4156dca5b9b6b.jpg)
151
+ Figure 2: WeaveNet architecture. $L$ feature weaving layers are stacked with shortcut paths to be a deep network. The encoded features are fed into Conv $( 1 \times 1 )$ layer to obtain logits $( { \hat { m } } ^ { \prime } { } ^ { \hat { A } } , { \hat { m } } ^ { \prime B } )$ . The output $\hat { m }$ will be binarized in prediction phase to represent a matching.
152
+
153
+ 120 MLPs, where $S ^ { A }$ and $S ^ { B }$ are destructured and concatenated into a single flat vector (with the length
154
+ 121 of $2 N M )$ and fed to the MLP. Its output (a flat vector with the length of $N M$ ) is restructured into a
155
+ 122 matrix $\hat { m }$ . The MLP model, however, would face difficulties due to the following four problems.
156
+ 123 (a) Preference lists of multiple agents are encoded by independent parameters, though they share a
157
+ 124 format so that we could efficiently process them in the same manner.
158
+ 125 (b) MLP only supports a fixed-size input, so training different models for different cases of $N$
159
+ 126 becomes mandatory.
160
+ 127 (c) $F$ should be permutation invariant, which means the matching result should be unchanged even if
161
+ 128 we shuffle the order of agents in $S ^ { A }$ and $S ^ { B }$ , but MLP does not satisfy.
162
+ 129 (d) A shallow MLP model may be insufficient to approximate an exact solver for the NP-hard problem
163
+ 130 when $N$ is large.
164
+ 131 To address the above weaknesses of MLP, we propose the feature weaving network (WeaveNet) which
165
+ 132 has the properties of (a) shared encoder, (b) variable-size input, (c) permutation invariance, and
166
+ 133 (d) residual structure. The WeaveNet, as shown in Fig. $2 ,$ consists of $L$ feature weaving (FW)
167
+ 134 layers. It has two streams of $A$ and $B$ . In a symmetric manner, each stream models the agent’s act of
168
+ 135 selecting the one on the opposite side while sharing weights to enhance the parameter efficiency. The
169
+ 136 shortcut paths at every two FW layers make them residual blocks, which allows the model to be as
170
+ 137 deep as possible. We explain its details as follows.
171
+ 138 Fig. $3$ illustrates the detail of a single FW layer, which is the core architecture of the proposed network.
172
+ 139 FW layer is a two-stream layer whose inputs consist of a weftwise component $Z _ { \ell } ^ { \dot { A } }$ and a warpwise
173
+ 140 component $Z _ { \ell } ^ { B }$ , which are the output of $( l - 1 )$ -th layer and $Z _ { 0 } ^ { A } = { \cal S } ^ { A }$ and $Z _ { 0 } ^ { B } = { \cal S } ^ { B }$ for the first
174
+ 141 layer. The two components are symmetrically concatenated in each stream (cross-concatenation).
175
+ 142 Then these concatenations are separated into agent-wise features, each of which is a set of outgoing
176
+ 143 edge features of an agent (indicating the preference from that agent to every matching candidate).
177
+ 144 These features are processed by the encoder $E _ { \ell }$ shared by every agent in both $A$ and $B$ . As for
178
+ 145 an encoder that can embed variable-size input in a permutation invariant manner, we adopted the
179
+ 146 structure inspired by DeepSet (Zaheer et al., 2017) and PointNet (Qi et al., 2017) (Fig. 4), which
180
+ 47 consists of two convolutional layers with kernel size 1 and a set-wise max-pooling layer, followed by
181
+ 48 batch-normalization and PReLU activation. We refer to this structure as set encoder.
182
+ 149 Mathematical formulations $Z _ { \ell } ^ { A }$ in Fig. $\bigstar$ is a third-order tensor whose dimensions, in sequence,
183
+ 150 corresponding to the agent, candidate, and feature dimension, with a size of $( N , M , D )$ . Similarly,
184
+ 151 $Z _ { \ell } ^ { B }$ has a size of $( M , N , D )$ . The cross-concatenation is defined as
185
+
186
+ ![](images/9417b65197616b5b5286bdb81e8ecf41b452ea48e56713da6b584a9e3a5bf150.jpg)
187
+ Figure 3: Feature weaving layer orthogonally Figure 4: Illustration of the process in set enconcatenates the weftwise and warpwize com- coder $E _ { \ell }$ , where $z _ { \ell } ^ { a _ { i } }$ (colored in white) is once ponents $( Z _ { \ell } ^ { A }$ and $Z _ { \ell } ^ { B }$ ) in a symmetric way encoded to $D ^ { \prime }$ \` channel features (colored in pale (cross-concatenation). Then, the concatenated blue), then max-pooled to obtain statistics in the tensors are separated into $z _ { \ell } ^ { a _ { i } }$ (or $z _ { \ell } ^ { b _ { j } }$ ), which feature set (colored in blue). The statistics inrepresents a set of outgoing edges from agent formation is concatenated to each input feature $a _ { i }$ (or $b _ { j }$ ), and independently fed to $E _ { \ell }$ . and further encoded (color in a gradation).
188
+
189
+ $$
190
+ Z _ { \ell } ^ { \prime A } = c a t ( Z _ { \ell } ^ { A } , P _ { A B } ( Z _ { \ell } ^ { B } ) ) ,
191
+ $$
192
+
193
+ 152 where $P _ { A B }$ swaps the first and second dimensions of the tensor, and $c a t ( \{ Z _ { 1 } , Z _ { 2 } , . . . \} )$ concatenates
194
+ 153 the features of two tensors $Z _ { 1 }$ , $Z _ { 2 }$ . $Z _ { \ell } ^ { \prime A }$ is then sliced into agent-wise features $z _ { \ell } ^ { a _ { i } }$ and we obtain
195
+ 154 $Z _ { \ell + 1 } ^ { A } = ( E _ { \ell } ( z _ { \ell } ^ { a _ { i } } ) | 0 < i \leq N )$ , which is also a third-order tensor (and fed to the next layer). We can
196
+ 155 calculate $Z _ { \ell + 1 } ^ { B }$ in a symmetric manner (with the same encoder $E _ { \ell }$ ).
197
+ 156 After the process of $L$ FW layers, $Z _ { L } ^ { A }$ and $Z _ { L } ^ { B }$ are further cross-concatenated and fed to the matching
198
+ 157 estimator (in Fig. 2). It outputs a non-deterministic edge assignment $\hat { m }$ . In the training phase, $\hat { m }$
199
+ 158 is input to an objective function, and the loss is minimized. In the prediction phase, the matching
200
+ 159 is obtained by binarizing $\hat { m }$ . In this sense, matching estimation through a neural network can be
201
+ 160 considered as an approximation by relaxing the binary assignment space $\{ \breve { 0 } , 1 \} ^ { N \times M }$ into a continuous
202
+ 161 assignment space [0, 1] N⇥M .
203
+ 162 Asymmetric variant with split batch normalization WeaveNet is designed to be fully symmetric
204
+ 163 for $S ^ { A }$ and $S ^ { B }$ . Hence, it satisfies the equation $F ( S ^ { A } , S ^ { B } ) = F ( S ^ { B } , S ^ { A } ) ^ { \top }$ . This condition ensures
205
+ 164 that the model architecture cannot distinguish the two sides $A$ and $B$ innately. This property is
206
+ 165 beneficial when mathematically fair treatment between $A$ and $B$ is desirable. However, when inputs
207
+ 166 from $A$ and $B$ are differently biased (e.g., the two sides have different trends of preference or the
208
+ 167 objective is asymmetric for $A$ and $B$ ), this symmetric treatment degrades the performance. To
209
+ 168 eliminate the bias difference without losing the parameter-efficiency, we further propose to a) apply
210
+ 169 batch normalization independently for each stream (split batch normalization), and $\mathbf { b }$ ) adding a
211
+ 170 side-identifiable code (e.g., 1 for $A$ and 0 for $B$ ) to $Z _ { 0 } ^ { A }$ and $Z _ { 0 } ^ { B }$ as a $( D { + } 1 )$ -th element of the feature.
212
+ 171 We call this variant “asymmetric”.
213
+
214
+ # 4.2 Relaxed continuous optimization for fair stable matching
215
+
216
+ Generally, a combinatorial optimization problem has discrete objective functions and conditions, which are not differentiable. To optimize the model in an end-to-end manner without inaccessible ground truth, we optimize the model by relaxing such discrete loss functions into continuous ones.
217
+
218
+ 76 Assume we target to obtain a fair stable matching that has the minimum $S E q$ , for example. Then, we
219
+ 77 have the following three loss functions.
220
+ 178 ${ \mathcal { L } } _ { m }$ conditions the binarization of $\hat { m }$ to represent a matching.
221
+ 179 $\mathcal { L } _ { s }$ conditions the matching to be stable.
222
+ 180 $\mathcal { L } _ { f }$ minimizing the fairness cost $S E q$ of the matching
223
+
224
+ 181 The overall loss function is defined as
225
+
226
+ $$
227
+ \mathcal { L } _ { \mathrm { f s m } } ( \hat { m } ) = \lambda _ { m } \mathcal { L } _ { m } + \frac { 1 } { 2 } \sum _ { m \in \{ \hat { m } ^ { A } , \hat { m } ^ { B } \} } \big ( \lambda _ { s } \mathcal { L } _ { s } ( m ) + \lambda _ { f } \mathcal { L } _ { f } ( m ) \big ) ,
228
+ $$
229
+
230
+ where 182 $\hat { m } ^ { A } = \mathrm { s o f t m a x } ( \hat { m } )$ and $\hat { m } ^ { B } = \mathrm { s o f t m a x } ( \hat { m } ^ { \top } )$
231
+
232
+ 183 An important advantage of learning-based approximation is its flexibility. We can modify the above
233
+ 184 loss functions to easily obtain other variants. For example, removing $\mathcal { L } _ { f }$ in Eq. $( 4 )$ leads to standard
234
+ 185 stable matching, and replacing $\mathcal { L } _ { f }$ with $\mathcal { L } _ { b }$ (which minimizes $B a l$ ) leads to balanced stable matching,
235
+ 186 as follows:
236
+
237
+ $$
238
+ \begin{array} { r l } & { \mathcal { L } _ { \mathrm { s m } } ( \hat { m } ) = \lambda _ { m } \mathcal { L } _ { m } + \displaystyle \frac { 1 } { 2 } \sum _ { m \in \{ \hat { m } ^ { A } , \hat { m } ^ { B } \} } \lambda _ { s } \mathcal { L } _ { s } ( m ) , } \\ & { \mathcal { L } _ { \mathrm { b s m } } ( \hat { m } ) = \lambda _ { m } \mathcal { L } _ { m } + \displaystyle \frac { 1 } { 2 } \sum _ { m \in \{ \hat { m } ^ { A } , \hat { m } ^ { B } \} } \big ( \lambda _ { s } \mathcal { L } _ { s } ( m ) + \lambda _ { b } \mathcal { L } _ { b } ( m ) \big ) . } \end{array}
239
+ $$
240
+
241
+ 187 One-to-one matching constraint $\hat { m }$ can be safely converted into a binarized matching by column
242
+ 188 wise or row-wise argmax operation when it is a symmetric doubly stochastic matrix $\check { ( \mathbb { L 1 } , \lfloor 2 0 1 9 \rangle ) }$ . To
243
+ 189 satisfy this condition, we defined ${ \mathcal { L } } _ { m }$ with an average of the cosine distance as
244
+
245
+ $$
246
+ \begin{array} { r l } & { \mathcal { L } _ { m } ( \hat { m } ^ { A } , \hat { m } ^ { B } ) = 1 - \displaystyle \frac { 1 } { 2 } ( \mathbf { C } ( \hat { m } ^ { A } , \hat { m } ^ { B } ) + \mathbf { C } ( \hat { m } ^ { B } , \hat { m } ^ { A } ) ) , } \\ & { \mathbf { C } ( \hat { m } ^ { A } , \hat { m } ^ { B } ) = \displaystyle \frac { 1 } { N } \sum _ { i = 0 } ^ { N } \frac { \hat { m } _ { i * } ^ { A } \cdot \hat { m } _ { * i } ^ { B } } { \| \hat { m } _ { i * } ^ { A } \| _ { 2 } \| \hat { m } _ { * i } ^ { B } \| _ { 2 } } , } \end{array}
247
+ $$
248
+
249
+ 190 where $\hat { m } _ { i * } ^ { A }$ means the $i$ -th row of $\hat { m } ^ { A }$ . This formulation binds $\hat { m }$ to be a symmetric4 doubly stochastic
250
+ 191 ⇤ matrix when $\mathcal { L } _ { m } ( \hat { m } ^ { A } , \hat { m } ^ { B } ) = 0$ . The advantage of this implementation against the original one in Li
251
+ 192 $\textcircled { 2 0 1 9 }$ is described in $\mathbf { B . l }$ with additional experimental results.
252
+
253
+ 193 Blocking pair suppression As for $L _ { s }$ , we used the function proposed in Li $\textcircled { 2 0 1 9 }$ , which is
254
+
255
+ $$
256
+ \begin{array} { c } { { \mathcal { L } _ { s } ( \hat { m } ; I ) = \displaystyle \sum _ { ( v , w ) \in A \times B } g ( a _ { v } ; b _ { w } , \hat { m } ) g ( b _ { w } ; a _ { v } , \hat { m } ) } } \\ { { g ( a _ { i } ; b _ { w } , \hat { m } ) = \displaystyle \sum _ { b _ { j } \ne b _ { w } } \hat { m } _ { i j } \cdot \operatorname * { m a x } ( S _ { i w } ^ { A } - S _ { i j } ^ { A } , 0 ) } } \\ { { g ( b _ { j } ; a _ { v } , \hat { m } ) = \displaystyle \sum _ { a _ { i } \ne a _ { v } } \hat { m } _ { j i } ^ { \top } \cdot \operatorname * { m a x } ( S _ { j v } ^ { B } - S _ { j i } ^ { B } , 0 ) , } } \end{array}
257
+ $$
258
+
259
+ 194 where $g ( a _ { i } ; b _ { w } , \hat { m } )$ is a criterion known as ex-ante justified envy, which has a positive value when
260
+ 195 $a _ { i }$ prefers $b _ { w }$ more than any $b _ { j }$ in $\{ b _ { j } | j \neq w , \hat { m } _ { i j } \stackrel { . } { > } 0 \}$ . This is the same for $g ( b _ { j } ; a _ { v } , \hat { m } )$ . Hence,
261
+ 196 $\{ a _ { v } , b _ { w } \}$ becomes a (soft) blocking pair when both $g ( a _ { v } ; b _ { w } , \hat { m } )$ and $g ( b _ { w } ; a _ { v } , \hat { m } )$ are positive.
262
+
263
+ 197 Fairness measurements $\mathcal { L } _ { f } , \mathcal { L } _ { b }$ minimize $S E q ( m ; I ) , B a l ( m ; I )$ , respectively, and are defined as
264
+
265
+ $$
266
+ \mathcal { L } _ { f } ( \hat { m } ; I ) = \frac { 1 } { N } | S ( \hat { m } ; A ) - S ( \hat { m } ; B ) | \quad \mathcal { L } _ { b } ( \hat { m } ; I ) = - \frac { 1 } { N } \mathrm { m i n } ( S ( \hat { m } ; A ) , S ( \hat { m } ; B ) ) ,
267
+ $$
268
+
269
+ 198 where
270
+
271
+ $$
272
+ S ( \hat { m } ; A ) = \sum _ { i = 1 } ^ { N } \sum _ { i = j } ^ { M } \hat { m } _ { i j } \cdot S _ { i j } ^ { A } , ~ S ( \hat { m } ; B ) = \sum _ { j = 1 } ^ { M } \sum _ { i = 1 } ^ { N } \hat { m } _ { i j } \cdot S _ { j i } ^ { B } .
273
+ $$
274
+
275
+ # 199 5 Experiments
276
+
277
+ 200 We evaluated WeaveNet with different sizes of $N$ . First, with test samples of $N < 1 0$ , we compared
278
+ 201 its performance with learning-based baselines and optimal solutions obtained by a brute-force search.
279
+ 202 Second, we compared WeaveNet with algorithmic baselines at $N = 2 0$ , 30, where neither existing
280
+ 203 learning-based methods nor brute-force search work. We also demonstrated the generalization ability
281
+ 204 of WeaveNet under the mismatched training/test dataset distributions. Third, we demonstrated the
282
+ 205 performance of WeaveNet at $N = 1 0 0$ . Note that we always assume $M = N$ hereafter.
283
+
284
+ Sample generation protocol In the experiments, we used the same method as Tziavelis et al.
285
+ $\underline { { \bar { ( 2 0 1 9 ) } } }$ to generate synthetic datasets that draw preference lists from the following distributions.
286
+
287
+ Uniform (U) Each agent’s preference towards any matching candidate is totally random, defined by a uniform distribution $\mathcal { U } ( 0 , 1 )$ (larger value means prior in the preference list).
288
+
289
+ Discrete $\mathbf { \eta } ^ { ( \mathbf { D } ) }$ Each agent has a preference of $\mathcal { U } ( 0 . 5 , 1 )$ towards a certain group of $\lfloor 0 . 4 N \rfloor$ popular candidates, while $\mathcal { U } ( 0 , 0 . 5 )$ towards the rest.
290
+
291
+ Gauss (G) Each agent’s preference towards $i$ -th candidate is defined by a Gaussian distribution $\mathcal { N } ( i / N , 0 . 4 )$ .
292
+
293
+ LibimSeTi (Lib) Simulate real rating activity on the online dating service LibimSeTi (Brozovsky and Petricek, 2007) based on the 2D distribution of frequency of each rating pair $( p _ { i j } ^ { A } , ~ p _ { j i } ^ { B } )$ .
294
+
295
+ 4 Here a (possibly non-square) matrix $\hat { m }$ $N \geq M )$ is symmetric if and only if $\hat { m } _ { i * } = \hat { m } _ { * i } , ( 0 < i \leq M )$
296
+
297
+ 216 Choosing the above preference distributions for group $A$ and $B$ respectively, we obtained five different
298
+ 217 dataset settings, namely UU, DD, GG, UD, and Lib. We randomly generated 1,000 test samples and
299
+ 218 1,000 validation samples for each of the five distribution settings.
300
+ 219 Training protocol We trained any learning-based models $2 0 0 \mathrm { k }$ total iterations at $N \leq 3 0$ and $3 0 0 \mathrm { k }$
301
+ 220 at $N = 1 0 0$ , with a batch size of 8. We randomly generated training samples at each iteration based
302
+ 221 on the distribution of each dataset and used the Adam optimizer (Kingma and Ba, 2015). We set
303
+ 222 learning rate 0.0001 and loss weights $\lambda _ { s } = 0 . 7$ , $\lambda _ { m } = 1 . 0$ , $\lambda _ { f } = \lambda _ { b } ^ { - } = 0 . 0 1$ based on a preliminary
304
+ 223 experiment (see $\underline { { \overline { { | \mathbf { A . } 4 } } \mathbf { ) } } }$ .
305
+ 224 Pseudo fairness costs for comparing learning-based results with algorithmic results Note that
306
+ 225 for learning-based methods, there is a trade-off between fairness scores and stable matching rate.
307
+ 226 Hence they may violate the constraints of stable one-to-one matching and yield an $S E q$ or $B a l$ even
308
+ 227 lower than the ideal value. To compare the methods fairly with traditional algorithmic methods, we
309
+ 228 evaluate our methods using pseudo $S E q \ ( p S E q )$ and pseudo Bal $( p B a l )$ cost, in which the cost of
310
+ 229 violation cases is replaced by the worst result of the GS algorithm (prioritizing each side once and
311
+ 230 adopting the worse one).
312
+
313
+ # 5.1 Comparison with learning-based methods $( N = 3 , 5 , 7 , 9 )$
314
+
315
+ Baselines and ablations In this experiment, we show results obtained by following baselines and WeaveNet variants. MLP is the model proposed in Li (2019). GIN is the state-of-the-art GCN model proposed in $\left| \mathrm { X u } \ e t \ a l . \right| \left( \mathbb { 2 0 } 1 9 \right)$ . We use each (normalized) preference list as a node feature and bipartite edges as the graph structure. After two graph-convolution calculations, as MLP, we destructed the node-wise embeddings and concatenated them into a single vector, which is fed to one Linear layer to output $\hat { m }$ . DBM is the model in Gibbons et al. (2019). SSWN is the single-stream WeaveNet, which is equivalent to a DBM adopting the set-encoder of WeaveNet. WN is the standard WeaveNet.
316
+
317
+ ![](images/1b2593afc1b1b2178d6e13c5b44d30776c7951a7ed534fe8969eaed4c4d4204b.jpg)
318
+ Figure 5: Change of the success rates of stable matching $( \uparrow )$ according to $N$
319
+
320
+ ![](images/3efed6a27f3e0ea5f76aedeec8ce97d7e56ffe986c8c73d26d110994f22f0fa9.jpg)
321
+ Figure 6: Change of $p S E q -$ ideal scores $( \downarrow )$ according to $N$ .
322
+
323
+ ![](images/23cb3aa0f4e1b9312c130ed61b539657cba37a7cc30dda2800a6d347c6961716.jpg)
324
+ Figure 7: Change of $p B a l -$ ideal scores $( \downarrow )$ according to $N$ .
325
+
326
+ 239 Fig. $\boldsymbol { \vert 5 \vert }$ shows the success rates of finding a stable matching, where we trained models to minimize
327
+ 240 Eq. $( 5 )$ , considering only the stable matching constraints. Since MLP and GIN have size-dependency,
328
+ 241 we trained the models independently for $N = 3$ , 5, 7, 9. The other models were trained with
329
+ 242 $N = 1 0$ and tested on $N = 3$ , 5, 7, 9. We maintained models with $L = 6$ layers (the model names
330
+ 243 are noted as XXX-6) to have a similar number of parameters with MLP for $N = 5$ (see $\underline { { \vert \bar { \mathbf { A . } } \bar { \mathbf { \xi } } ) } }$ , while
331
+ 244 WN-18 is prepared to demonstrate the full performance (with the residual blocks).
332
+ 245 MLP and GIN can hardly find stable matchings when $N \geq 5$ . Note that the number of total cases for
333
+ 246 size $N$ instances is estimated by $N ! ^ { 2 ( N - 1 ) }$ . Hence, when $N = 3$ , there are only 1,296 cases at most,
334
+ 247 and the test set will fully overlap with the training set. In contrast, when $N = 5$ , we have $4 . 3 \times 1 0 ^ { 1 6 }$
335
+ 248 cases, and the overlap is negligible. Therefore, we can say that methods working only with $N = 3$
336
+ 249 such as MLP and GIN, have little generalization ability.
337
+ 250 DBM performs better than MLP but obviously worse than SSWN and WN. The performance gain of
338
+ 251 SSWN-6 over DBM-6 represents the advantage of the set-encoder. Similarly, the improvement of
339
+ 252 WN-6 over SSWN-6 shows the benefit of the two-stream architecture. Finally, that of WN-18 over
340
+ 253 WN-6 demonstrates the impact of stacked layers on the performance. Fig. 15 of the appendix shows
341
+ 54 some additional baselines, including a performance of our $L _ { m }$ against the original one proposed in Li
342
+ 55 $\underline { { \left( 2 0 1 9 \right) } }$ .
343
+
344
+ Figs. 6 and $\textcircled { 7 }$ show ${ p S E q }$ and $p B a l$ (their difference from the ideal values5 ), respectively. XXX-18f/b are trained to minimize Eqs. $\textcircled { \sharp }$ and $\textcircled{6}$ , respectivel ${ \boldsymbol { \imath } } ^ { 6 } .$ We omitted MLP and GIN due to their poor performance in Fig. 5. In the results, both SSWN and WN largely outperformed DBM, which again proved the advantage of the set-encoder. WN performed better than SSWN for larger $N$ , owing to the parameter efficiency of the two-stream architecture. Note that the performance gain of XXX-18f/b from XXX-18 proved the flexibility of general learning-based methods for customized objective functions.
345
+
346
+ # 5.2 Comparison with algorithmic methods $N = 2 0$ , 30)
347
+
348
+ As the algorithmic methods, we prepared four baselines. GS is the better result of applying the GS algorithm to prioritize each side once, which runs in $O ( N ^ { 2 } )$ . PolyMin minimizes some alternative fairness costs (the regret and egalitarian costs, which can be solved in $O ( N ^ { 2 } )$ and $\underline { { O } } ( N ^ { 3 } )$ , respectively (Gusfield, 1987; Irving et al., 1987; Feder, 1992)). DACC by $\boxed { \mathrm { D w o r c z a k } } ( \boxed { 2 0 1 6 } )$ is an approximate algorithm that runs in $\overline { { O ( N ^ { 4 } ) } }$ . PowerBalance is the state-of-the-art method that runs in $\mathcal { \hat { O } } ( N ^ { 2 } )$ .
349
+
350
+ WN-60f/b(20/30) is WeaveNet with $L = 6 0$ layers trained with samples of $N = 2 0$ and $N = 3 0$ . Note that we used the asymmetric variant for UD and Lib. Moreover, we do not involve any traditional learning-based methods in this part since they scored clear performance drops with increasing $N$ (see Fig. $\textcircled { 5 }$ and the problem size of $N = 2 0$ , 30 is clearly beyond their capabilities, but an ablation with WeaveNet variants is reported in B.2.
351
+
352
+ Table 1: Average $S E q$ (#) and success rate of stable matching ("). Bold and underlined scores shows the best and second best ones, respectively.
353
+
354
+ <table><tr><td rowspan="2">Agents (N × M) Datasets (Dist. Type)</td><td colspan="4">20 × 20</td><td rowspan="2"></td><td colspan="5">30 × 30</td></tr><tr><td>UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib</td></tr><tr><td>GS</td><td>41.89</td><td>18.81</td><td>19.52</td><td>70.97</td><td>19.66</td><td>94.03</td><td>43.46</td><td>36.56</td><td>163.77</td><td>39.78</td></tr><tr><td>PolyMin</td><td>19.93</td><td>11.83</td><td>20.57</td><td>87.08</td><td>18.47</td><td>35.52</td><td>21.21</td><td>37.37</td><td>209.62</td><td>31.85</td></tr><tr><td>DACC</td><td>24.34</td><td>20.13</td><td>23.07</td><td>101.75</td><td>20.40</td><td>40.87</td><td>34.35</td><td>40.59</td><td>240.48</td><td>33.88</td></tr><tr><td>Power Balance</td><td>16.28</td><td>8.93</td><td>17.07</td><td>71.09</td><td>15.40</td><td>18.45</td><td>11.05</td><td>27.22</td><td>163.90</td><td>21.57</td></tr><tr><td>WN-60f(20) (pSEq)</td><td>12.23</td><td>6.37</td><td>15.50</td><td>71.31</td><td>14.59</td><td>25.21</td><td>11.38</td><td>29.36</td><td>172.63</td><td>23.53</td></tr><tr><td>Stably Matched (%)</td><td>98.90</td><td>99.50</td><td>99.40</td><td>99.60</td><td>99.30</td><td>94.60</td><td>97.30</td><td>95.70</td><td>91.30</td><td>97.70</td></tr><tr><td>WN-60f(30) (p SEq)</td><td>12.16</td><td>6.53</td><td>15.56</td><td>71.34</td><td>14.53</td><td>18.30</td><td>10.52</td><td>27.39</td><td>170.35</td><td>22.17</td></tr><tr><td>Stably Matched (%)</td><td>99.10</td><td>99.40</td><td>99.40</td><td>99.50</td><td>99.80</td><td>98.10</td><td>99.00</td><td>98.00</td><td>93.90</td><td>98.60</td></tr></table>
355
+
356
+ Table 2: Average Bal (#) and success rate of stable matching (").
357
+
358
+ <table><tr><td rowspan="2">Agents (N × M) Datasets (Dist. Type)</td><td colspan="4">20×20</td><td colspan="6"></td></tr><tr><td>UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib</td><td>UU</td><td>DD</td><td>30×30 GG</td><td>UD</td><td>Lib</td></tr><tr><td>GS</td><td>89.14</td><td>146.16</td><td>108.36</td><td>140.53</td><td>68.62</td><td>184.05</td><td>322.05</td><td>225.49</td><td>312.12</td><td>137.59</td></tr><tr><td>PolyMin</td><td>74.19</td><td>140.99</td><td>108.04</td><td>145.28</td><td>66.94</td><td>144.48</td><td>306.28</td><td>224.13</td><td>324.54</td><td>130.79</td></tr><tr><td>DACC</td><td>78.49</td><td>146.71</td><td>110.06</td><td>151.34</td><td>68.75</td><td>150.71</td><td>316.18</td><td>227.52</td><td>337.43</td><td>133.59</td></tr><tr><td>Power Balance</td><td>73.28</td><td>140.12</td><td>106.92</td><td>140.55</td><td>65.89</td><td>138.04</td><td>302.30</td><td>220.26</td><td>312.12</td><td>126.96</td></tr><tr><td>WN-60b(20) (pBal)</td><td>71.89</td><td>138.79</td><td>106.20</td><td>140.84</td><td>65.85</td><td>141.49</td><td>302.73</td><td>221.92</td><td>317.60</td><td>130.58</td></tr><tr><td>Stably Matched (%)</td><td>98.50</td><td>98.80</td><td>99.50</td><td>99.70</td><td>98.80</td><td>96.10</td><td>96.70</td><td>95.00</td><td>88.90</td><td>93.80</td></tr><tr><td>WN-60b(30) (pBal)</td><td>72.33</td><td>138.75</td><td>106.65</td><td>140.79</td><td>65.84</td><td>140.40</td><td>301.59</td><td>223.02</td><td>313.59</td><td>127.93</td></tr><tr><td>Stably Matched (%)</td><td>98.00</td><td>99.10</td><td>98.60</td><td>99.80</td><td>99.10</td><td>97.00</td><td>98.60</td><td>93.70</td><td>98.80</td><td>98.00</td></tr></table>
359
+
360
+ 274 We show the results in Tables 1 and 2. When $N = 2 0$ , except for UD, the proposed method constantly
361
+ 275 performed better than any algorithmic methods for both $S E q$ and $B a l$ . When $N = 3 0$ , they are
362
+ 276 comparative. For UD, GS performed even better than PowerBalance. That means that the ideal
363
+ 277 solution constantly prioritizes one side (a kind of the strongest bias). Since we designed the WeaveNet
364
+ 278 architecture to treat the sides evenly, this is the most challenging situation for WeaveNet. Nonetheless,
365
+ 279 the proposed split batch normalization (with the side-identifiable code) achieved similar performance
366
+ 280 to GS and PowerBalance. We show the performance drop with the fully symmetric version in $\boxed { \mathbf { B } . 2 }$
367
+ 281 of the appendix, which is also interesting from the ethical viewpoint. It is noteworthy that the
368
+ 282 model trained with $N = 2 0$ performs well even with $N = 3 0$ , which indicates that the method has
369
+ 283 generalizability for size difference.
370
+ 284 Generalization ability for different distributions A learning-based method should have a certain
371
+ 285 generalizability for input distribution shifts. To test the ability, we evaluated the performance of
372
+ 286 models trained with UU, DD, and GG on test sets of different distributions.
373
+
374
+ Table 3: The generalizability of WeaveNet (trained/tested with $N = 3 0$ ).
375
+
376
+ <table><tr><td>train</td><td>WN-60f</td><td>UU</td><td>test DD</td><td>GG</td><td>Avg.</td></tr><tr><td>UU</td><td>pSEq Stably Matched (%)</td><td>18.30 98.10</td><td>25.81 94.90</td><td>29.09 93.60</td><td>21.10 95.53</td></tr><tr><td>DD</td><td>pSEq Stably Matched (%)</td><td>171.27 2.80</td><td>10.52 99.00</td><td>77.36 0.10</td><td>86.38 33.97</td></tr><tr><td>GG</td><td>pSEq Stably Matched (%)</td><td>21.38 97.30</td><td>12.85 98.10</td><td>27.39 98.00</td><td>20.54 97.80</td></tr></table>
377
+
378
+ Table 4: Average SEq ( ) and Bal ( ) at $N = 1 0 0$ .
379
+
380
+ <table><tr><td>100 × 100,UU</td><td>SEq</td><td>Bal</td></tr><tr><td>GS</td><td>1259.39</td><td>1709.53</td></tr><tr><td>PolyMin</td><td>153.35</td><td>952.85</td></tr><tr><td>DACC</td><td>194.65</td><td>988.02</td></tr><tr><td>Power Balance</td><td>49.41</td><td>909.73</td></tr><tr><td>WN-80f/b+Hungarian</td><td></td><td></td></tr><tr><td>pSEqlpBal</td><td>257.99</td><td>1145.36</td></tr><tr><td>SEqiBal</td><td>68.36</td><td>919.75</td></tr><tr><td>Stably Matched (%)</td><td>89.4</td><td>80.8</td></tr></table>
381
+
382
+ Table $3$ shows the results. Remarkably, there is a contrast between the model trained with DD and the others. The model with DD could hardly satisfy the one-to-one stable matching constraint when tested on UU/GG, and resulted in poor ${ p S E q }$ scores. In contrast, the model with GG achieved satisfying ${ p S E q }$ scores on UU/DD. Since GG generates preference lists based on a common preference score $( i / N$ for $i$ -th agent) with noise, agents in GG tend to have similar preference lists (i.e., hard to assign optimally). A model trained with such hard samples works well even for the test samples drawn from other distribution. UU has also performed well owing to its non-biased sampling strategy. On the other hand, DD worst performed due to its highly biased generation strategy. From these results, we confirmed that WeaveNet has certain robustness in the distribution shift as long as training samples are competitive enough.
383
+
384
+ # 5.3 Demonstration with $N = 1 0 0$
385
+
386
+ We further demonstrate the capability of WeaveNet under a larger size of problem instances, $N = 1 0 0$ In this case, we found that WN-80f and WN-80b failed to yield one-to-one matchings for $1 3 . 4 \%$ and $1 9 . 8 \%$ , respectively (see the Table 9 in B.2 for details). To compensate for this problem, we applied the Hungarian algorithm (Kuhn, 1955) to surely binarize $\hat { m }$ into a one-to-one matching. Table $^ 4$ shows WeaveNet’s relatively good $\overline { { S E q } }$ and $B a l$ scores. Even with the help of the Hungarian algorithm, they were strongly penalized in ${ p S E q }$ and $p B a l$ due to the poor stable matching rate. In other words, we can potentially fill the large gap by better constraining the output.
387
+
388
+ Since this work is just a pilot study toward a practical differential assignment solver, there is still a lot of space for improvement. The proposed test protocol with stable matching will facilitate it since we can freely adjust the difficulty of the problem to develop and enhance the methods continuously.
389
+
390
+ # 6 Conclusion
391
+
392
+ This paper proposed a novel differential assignment solver, WeaveNet, and an evaluation protocol on two strongly NP-hard variants of stable matching. In the experiments, we demonstrated the advantage of set encoder and the two-stream architecture of Weavenet against the other learning-based methods. These techniques also achieved a better performance than the state-of-the-art algorithmic method when $N = 2 0$ and a comparative performance when $N = 3 0$ . Furthermore, the asymmetric variants, split batch normalization with the side-identifiable code, enabled the method to work even with the strongly biased dataset of UD. We also confirmed that the proposed method does not work at $N = 1 0 0$ , which will be an immediate task for this new field of differential assignment solver. We hope that this work becomes a starting point to open a new vista for real-world assignment problems.
393
+
394
+ 18 References
395
+ 19 Ravindra K Ahuja, Arvind Kumar, Krishna C Jha, and James B Orlin. Exact and heuristic algorithms for the weapon-target assignment problem. Operations research, 55(6):1136–1146, 2007.
396
+ 21 Lukas Brozovsky and Vaclav Petricek. Recommender system for online dating service. In Proceedings of Conference Znalosti 2007, Ostrava, 2007.
397
+ 23 Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
398
+ 6 Piotr Dworczak. Deferred acceptance with compensation chains. In Proceedings of the 2016 ACM Conference on Economics and Computation, pages 65–66, 2016.
399
+ 28 Patrick Emami, Panos M. Pardalos, Lily Elefteriadou, and Sanjay Ranka. Machine learning methods for data association in multi-object tracking. ACM Computing Surveys, 53(4), 2020.
400
+ 0 Tomás Feder. A new fixed point approach for stable networks and stable marriages. Journal of Computer and System Sciences, 45(2):233–284, 1992.
401
+ 32 Tomás Feder. Stable networks and product graphs. American Mathematical Society, 1995.
402
+ 33 David Gale and Lloyd S Shapley. College admissions and the stability of marriage. The American Mathematical Monthly, 69(1):9–15, 1962.
403
+ 5 Daniel Gibbons, Cheng-Chew Lim, and Peng Shi. Deep learning for bipartite assignment problems. In Proceedings of IEEE International Conference on Systems, Man and Cybernetics, pages 2318–
404
+ 2325, 2019.
405
+ 38 Sushmita Gupta, Sanjukta Roy, Saket Saurabh, and Meirav Zehavi. Balanced stable marriage: How close is close enough? In Workshop on Algorithms and Data Structures, pages 423–437, 2019. Dan Gusfield and Robert W Irving. The stable marriage problem: structure and algorithms. MIT press, 1989.
406
+ 42 Dan Gusfield. Three fast algorithms for four problems in stable marriage. SIAM Journal on Computing, 16(1):111–128, 1987.
407
+ 4 Robert W Irving, Paul Leather, and Dan Gusfield. An efficient algorithm for the “optimal” stable marriage. Journal of the ACM, 34(3):532–543, 1987.
408
+ 46 Kazuo Iwama, Shuichi Miyazaki, and Hiroki Yanagisawa. Approximation algorithms for the sexequal stable marriage problem. ACM Transaction on Algorithms, 7(1), 2010.
409
+ 48 Akiko Kato. Complexity of the sex-equal stable marriage problem. Japan Journal of Industrial and Applied Mathematics, 10(1):1, 1993.
410
+ 0 Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of International Conference on Learning Representations, 2015.
411
+ 52 Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83–97, 1955.
412
+ 54 Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of AAAI Conference on Artificial Intelligence, pages
413
+ 3538–3545, 2018. Shira Li. Deep Learning for Two-Sided Matching Markets. Bachelor’s thesis, Harvard University,
414
+ 2019.
415
+ 59 Eric McDermid and Robert W Irving. Sex-equal stable matchings: Complexity and exact algorithms. Algorithmica, 68(3):545–570, 2014.
416
+ 61 Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In Proceedings of International Conference on Learning Representations, 2020.
417
+ Charles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, July 2017.
418
+ Nikolaos Tziavelis, Ioannis Giannakopoulos, Katerina Doka, Nectarios Koziris, and Panagiotis Karras. Equitable stable matchings in quadratic time. In Proceedings of Advances in Neural Information Processing Systems, pages 457–467, 2019.
419
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In Proceedings of International Conference on Learning Representations, 2019.
420
+ Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander J Smola. Deep sets. In Proceedings of Advances in Neural Information Processing Systems, volume 30, pages 3391–3401, 2017.
421
+
422
+ # 374 Checklist
423
+
424
+ 3751. For all authors...
425
+
426
+ 376 (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contri
427
+ 377 butions and scope? [Yes] The experimental results in Section 5 correspond to the main claims,
428
+ 378 which are summarized as the contribution list in Section 1
429
+ 379 (b) Did you describe the limitations of your work? [Yes] Our method works best among any
430
+ 380 baselines when $N \leq 2 0$ , comparative to the state-of-the-art algorithmic baseline when $N = 3 0$ ,
431
+ 381 but poorly when $N = 1 0 0$ . See Section $\underline { { \boldsymbol { \mathsf { F } . 3 } } }$
432
+ 382 (c) Did you discuss any potential negative societal impacts of your work? [Yes] We briefly
433
+ 383 discussed the fairness/unfairness achieved by our method in the paragraph “Asymmetric variant
434
+ 384 with split batch normalization” in Section $4 . 1 .$ Namely, the asymmetric variant can better
435
+ 385 optimize the objective than the symmetric one (which ensures mathematically equal treatment
436
+ 386 for sides $A$ and $B$ ) but harms the equal treatment of the two sides.
437
+ 387 (d) Have you read the ethics review guidelines and ensured that your paper conforms to them?
438
+ 388 [Yes]
439
+
440
+ 3892. If you are including theoretical results...
441
+
442
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] We have no main theoretical results. The only theoretical discussion is for the computational cost of WeaveNet in A.2, whose assumption is the network shape explained in the paper.
443
+ (b) Did you include complete proofs of all theoretical results? [N/A] We have no main theoretical results. The only theoretical discussion is for the computational cost of WeaveNet in $\mathbf { A } . 2 ,$ where we provided enough detailed explanation as a proof.
444
+
445
+ 3963. If you ran experiments...
446
+
447
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We have included it in the supplemental material.
448
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] We described the training details in Section 5 “Training protocol” and Section A.5.
449
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We presented figures with the error bars in Section ${ \bf A . } 4$ of the appendix, which demonstrated the stable behavior of the proposed method against the random seed. For the other part, we have multiple settings, and we observed a stable trend in the results.
450
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We described it in the appendix, Section C.
451
+
452
+ 4094. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
453
+
454
+ 410 (a) If your work uses existing assets, did you cite the creators? [Yes] See Section C in the appendix.
455
+ 411 (b) Did you mention the license of the assets? [Yes] See Section C.
456
+ 412 (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We
457
+ 413 provides a code to random-generate the problem instances, which contains no personal or any
458
+ 414 other sensitive information, but only the distribution parameters of the LibimSeti dataset.
459
+ 415 (d) Did you discuss whether and how consent was obtained from people whose data you’re
460
+ 416 using/curating? [Yes] See Section C.
461
+ 417 (e) Did you discuss whether the data you are using/curating contains personally identifiable
462
+ 418 information or offensive content? [Yes] See Section C.
463
+
464
+ 4195. If you used crowdsourcing or conducted research with human subjects...
465
+
466
+ 420 (a) Did you include the full text of instructions given to participants and screenshots, if applicable?
467
+ 421 [N/A] We used neither crowd-sourcing nor human subjects.
468
+ 422 (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB)
469
+ 423 approvals, if applicable? [N/A]
470
+ 424 (c) Did you include the estimated hourly wage paid to participants and the total amount spent on
471
+ 425 participant compensation? [N/A]
parse/train/2rAiDBJgR_/2rAiDBJgR__content_list.json ADDED
@@ -0,0 +1,1317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "WeaveNet for Approximating Assignment Problems ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 184,
8
+ 122,
9
+ 812,
10
+ 148
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 200,
20
+ 580,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 292,
32
+ 535,
33
+ 309
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 Assignment, a task to match a limited number of elements, is a fundamental \n2 problem in informatics. Many assignment problems have no exact solvers due \n3 to their NP-hardness or incomplete input, and their approximation algorithms \n4 have been studied for a long time. However, individual practical applications \n5 have various objective functions and prior assumptions, which usually differ from \n6 academic studies. This gap hinders applying the algorithms to real problems \n7 despite their theoretically ensured performance. In contrast, a learning-based \n8 method can be a promising solution to fill the gap. To open a new vista for \n9 real-world assignment problems, we propose a novel neural network architecture, \n10 WeaveNet. Its core module, feature weaving layer, is stacked to model frequent \n11 communication between elements in a parameter-efficient way for solving the \n12 combinatorial problem of assignment. To evaluate the model, we approximated \n13 one of the most popular non-linear assignment problems, stable matching with two \n14 different strongly NP-hard settings. The experimental results showed its impressive \n15 performance among the learning-based baselines. Furthermore, we achieved better \n16 or comparative performance to the state-of-the-art algorithmic method, depending \n17 on the size of problem instances. ",
40
+ "bbox": [
41
+ 148,
42
+ 324,
43
+ 766,
44
+ 559
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "18 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 583,
55
+ 312,
56
+ 601
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "19 From multiple object tracking to job matching, assignment problems can represent a wide variety of \n20 applications. An assignment problem is typically defined on a bipartite graph, a graph with two sets \n21 of nodes $A$ and $B$ with edges $E = A \\times B$ $\\mathbf { \\nabla } \\cdot N = | A |$ , $M = | B |$ , $N \\geq M$ ). On the graph, the task \n22 is to find a matching $m \\in \\mathsf { \\bar { \\{ 0 , 1 \\} } } ^ { A \\times B }$ (a set of edges represented as a binary matrix) that satisfies \n23 constraints and/or maximizes objectives. Depending on real-world scenes, there must be various \n24 objectives and constraints for $m$ . A typical constraint is a one-to-one correspondence (i.e., every node \n25 has at most one matched partner in $m$ ) and, for simplicity, we always assume it in this paper. \n26 Matching stability is another example of such constraints. It is a non-linear constraint first introduced \n7 for a hospital-student assignment problem (Gale and Shapley, $\\textcircled { 1 9 6 2 }$ based on the preferences of \n28 hospitals among students and vice versa. We say a matching $m$ is unstable when there exist $a \\in A$ \n29 and $b \\in B$ which are unmatched in $m$ ${ m } _ { a b } = 0$ ) but both prefer each other more than their partner \n30 in $m$ . We can obtain a stable matching $m$ in $O ( N ^ { 2 } )$ by the Gale-Shapley (GS) algorithm $\\underline { { \\sqrt { \\mathrm { G a l e } } } }$ \nand Shapley, 1962). However, when $m$ is expected to have the minimum difference in the total \n32 satisfactions between sides $A$ and $B$ (known as sex-equal stable matching), the problem becomes \n33 strongly NP-hard1 (Kato, 1993; McDermid and Irving, 2014) \n34 In addition to the NP-hardness, we also face difficulties to obtain the best assignment when assignment \n35 candidates may randomly disappear (e.g., multiple object tracking with occlusions (Emami et al., \n36 $\\underline { 2 0 2 0 }$ or joint matching in multi-person pose estimation $( \\overline { { \\mathbb { C } \\mathrm { a o } \\ e t \\ a l . } } , \\overline { { 2 0 1 7 } } ) )$ . In such cases, we need \n37 to compensate for the inputs of incomplete information by its stochastic properties. The traditional \n38 methods often use sub-optimal approximations to avoid solving complex assignment problems. \n39 A differential assignment model can be a future option that enables end-to-end training for such \n40 applications. \n41 Toward such future applications, this paper aims to propose an effective and promising differential \n42 solver for assignment problems. The contribution of this paper is four-fold: ",
63
+ "bbox": [
64
+ 147,
65
+ 614,
66
+ 825,
67
+ 712
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 153,
76
+ 718,
77
+ 825,
78
+ 830
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 150,
87
+ 835,
88
+ 825,
89
+ 878
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 92,
99
+ 825,
100
+ 147
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 151,
109
+ 154,
110
+ 825,
111
+ 181
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "1. We proposed WeaveNet, a novel neural network architecture for assignment problems and set-encoder, a novel local structure. \n2. We proposed a novel technique, split batch normalization, to deal with a strong asymmetry in input distributions for sides $A$ and $B$ . \n3. We focused on stable matching, a classical non-linear assignment problem actively studied even in recent years, and proposed a novel evaluation protoco $1 ^ { 2 }$ with pseudo costs, which enables us to compare learning-based solvers and algorithmic solvers directly. \n4. We achieved a better performance with the state-of-the-art algorithmic baseline when $N = 2 0$ , and a comparative performance when $N = 3 0$ . We also outperformed any learning-based baselines with a large margin. ",
118
+ "bbox": [
119
+ 207,
120
+ 191,
121
+ 826,
122
+ 334
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "53 2 Related work ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 148,
132
+ 352,
133
+ 316,
134
+ 369
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "54 Despite the recent research interest in deep learning technology, we hardly have a fully differential \n55 assignment solver. As long as authors know, there are two past attempts to solve assignment problems \n56 by a fully differential model. $\\underline { { \\mathrm { L i } } } ( \\underline { { \\mathrm { 2 0 1 9 } } } )$ has tried to solve stable matching by multiple layer perceptrons \n57 (MLP). Their contribution is in the proposed relaxation of the non-linear stability constraint to a \n58 differential loss function. However, the MLP is too redundant to learn the assignment strategy without \n59 overfitting. In addition, the proposed auxiliary loss to maintain the output to be one-to-one matching \n60 (symmetric doubly stochastic function) overly constrains the solution search space. In this study, we \n61 propose a parameter-efficient differential model and a weaker but sufficient constraint to output a \n62 one-to-one matching. \n63 The second attempt is made by $\\boxed { \\mathrm { G i b b o n s } ~ e t ~ a l . } \\textcircled { 2 0 1 9 } $ , where Deep Bipartite Matching (DBM) is \n64 proposed. They tested their model with the weapon-target assignment (WTA) problem. WTA is a \n65 classical NP-hard problem whose state-of-the-art algorithm $( \\overline { { \\Delta \\mathrm { h u j a } ~ e t ~ a l . } } , \\overline { { 2 0 0 7 } } )$ could find optimal \n66 solution when $N \\leq 2 0$ in the experiment although there is no theoretical guarantee. In this sense, \n67 we can consider WTA is empirically easier than sex-equal stable matching, for which we have no \n68 such efficient solvers even for $N = 5$ . In addition, DBM is trained in a supervised manner or with \n69 reinforcement learning, which is hard to apply to a larger $N$ . Furthermore, the implementation details \n70 are not completely explained, and their dataset and source codes are not publicly available. Finally, \n71 the architecture of DBM is still parameter-redundant, and their local structure is sub-optimal. In this \n72 study, we propose a more parameter-efficient two-stream architecture, WeaveNet, with a novel local \n73 structure, set-encoder, both of which have significant impacts on the performance. \n74 In addition to the above methods, it is natural to consider using graph convolutional networks (GCNs). \n75 However, there are no GCN methods for assignment problems due to the over-smoothing problem (Li \n76 et al., 2018; Oono and Suzuki, 2020). Because any graph-convolutional layer summarizes the output \n77 with neighboring nodes, its smoothing effect eliminates expressive power for node classification. To \n78 avoid such elimination, GIN $\\textcircled { | \\textcircled { \\times } { \\textrm { v e t a l . } } \\textcircled { 2 0 1 9 } }$ , the state-of-the-art GCN method, stacks only two \n79 layers for a node classification task. Such elimination is critical for an assignment-problem solver \n80 because it needs to identify any slight difference through frequent communication among nodes. \n81 Unlike GIN, our model retains edge-wise features rather than node-wise summaries, which does not \n82 cause the smoothing problem. Therefore, we can make the model very deep, which any traditional \n83 graph convolutional networks cannot. ",
141
+ "bbox": [
142
+ 150,
143
+ 383,
144
+ 825,
145
+ 507
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "",
152
+ "bbox": [
153
+ 145,
154
+ 513,
155
+ 825,
156
+ 666
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 147,
165
+ 671,
166
+ 826,
167
+ 811
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "84 3 Stable matching problem as a benchmark task ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 150,
177
+ 830,
178
+ 593,
179
+ 847
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "To evaluate learning-based assignment solvers, we adopt two strongly NP-hard variants of stable matching. They have been actively studied for a long time (Kato, 1993; Iwama et al., 2010; Dworczak, ",
186
+ "bbox": [
187
+ 158,
188
+ 861,
189
+ 823,
190
+ 890
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "87 2016; Gupta et al., 2019) and their state-of-the-art algorithm by $\\boxed { \\mathrm { T z i a v e l i s ~ } e t ~ a l . } ( \\boxed { 2 0 1 9 } )$ must be a \n88 strong baseline against learning-based methods. Hence, we set these two variants as the benchmark \n89 task for learning-based assignment problems. \n90 An instance $I$ of a stable matching problem consists of two sets of agents $A$ and $B$ on a bipartite \n91 graph. Fig. 1 illustrates an example of $I$ . Each agent $a _ { i }$ in $A$ $( 0 < i \\leq N )$ has a preference list $p _ { i } ^ { A }$ , \n92 which is an ordered set of elements in $B$ and $p _ { i j } ^ { A } = r a n k ( b _ { j } ; p _ { i } ^ { A } )$ is the index of $b _ { j }$ in the list $p _ { i } ^ { A }$ . $a _ { i }$ \n93 prefers $b _ { j }$ to $b _ { j ^ { \\prime } }$ if $p _ { i j } ^ { A } < p _ { i j ^ { \\prime } } ^ { A }$ . Similarly, each agent $b _ { j }$ in $B ( 0 < j \\leq M )$ has a preference list $p _ { j } ^ { B }$ . ",
197
+ "bbox": [
198
+ 145,
199
+ 89,
200
+ 825,
201
+ 133
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "",
208
+ "bbox": [
209
+ 147,
210
+ 138,
211
+ 825,
212
+ 202
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "equation",
218
+ "img_path": "images/61a559b69c64397abd5957420ddfd0e787f09873d0fe34175a15454ae91cb9f9.jpg",
219
+ "text": "$$\n\\begin{array} { c c l } { { p _ { i } ^ { A } } } & { { \\mathrm { a g e n t s } } } & { { \\stackrel { \\mathrm { m a t c h i n g ~ } m } { \\longrightarrow } } } & { { \\stackrel { \\mathrm { ( b _ { j } ^ { A } ~ . ~ t h i n g ~ } m } { \\longrightarrow } } } & { { p _ { j } ^ { B } } } \\\\ { { \\stackrel { } { \\cong } } } & { { \\{ b _ { 2 } , b _ { 1 } , b _ { 3 } \\} } } & { { \\stackrel { ( a _ { 1 } ) } { \\Longleftrightarrow } } } & { { \\stackrel { ( b _ { 1 } ) } { \\longleftrightarrow } } } & { ( b _ { 3 } , a _ { 2 } , a _ { 1 } \\} } \\\\ { { \\stackrel { \\circleddash } { \\geq } } } & { { \\{ b _ { 3 } , b _ { 2 } , b _ { 1 } \\} } } & { { \\stackrel { \\circleddash } { \\Longleftrightarrow } } } & { { \\stackrel { \\circleddash } { \\sum } } } & { { \\{ a _ { 1 } , a _ { 2 } , a _ { 3 } \\} } } \\\\ { { \\stackrel { \\circleddash } { \\subseteq } } } & { { \\{ b _ { 2 } , b _ { 3 } , b _ { 1 } \\} } } & { { \\stackrel { \\circleddash } { \\binom { a _ { 3 } } { 3 } } } } & { { \\stackrel { \\mathrm { m e t h i n g ~ p a r i n g ~ } m } { \\uparrow \\mathrm { t h e ~ b l o c k i n g ~ p a i r ~ } m } \\stackrel { ( b _ { 3 } ) } { \\{ a _ { 1 } , a _ { 3 } , a _ { 2 } \\} } } } & { { \\stackrel { \\circleddash } { \\sum } } } \\end{array}\n$$",
220
+ "text_format": "latex",
221
+ "bbox": [
222
+ 307,
223
+ 219,
224
+ 687,
225
+ 310
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "image",
231
+ "img_path": "",
232
+ "image_caption": [
233
+ "Figure 1: An example of assignment, where $m$ (black edges) is not stable due to the blocking pair (the orange edge), while $m ^ { \\prime }$ (green edges) is stable. "
234
+ ],
235
+ "image_footnote": [],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "94 For a matching $m$ , we say that an unmatched pair $\\{ a _ { v } , b _ { w } \\} ( m _ { v w } = 0 )$ blocks $m$ if $a _ { v }$ ’s partner \n95 $b _ { j }$ $m _ { v j } = 1 )$ ) and $b _ { w }$ ’s partner $a _ { i }$ ( $m _ { i w } = 1 $ ) satisfy the conditions $p _ { v w } ^ { A } < p _ { v j } ^ { A }$ and $p _ { w v } ^ { B } < p _ { w i } ^ { B ^ { \\ast } }$ . Here, \n96 $\\{ a _ { v } , b _ { w } \\}$ is called a blocking pair (the orange edge blocks a matching of black edges in the figure). \n97 A matching is stable if (and only if) it includes no blocking pair (the green edges in the figure). Note \n98 that $I$ always has at least one stable matching, and the Gale-Shapley (GS) algorithm can find it in \n99 $O ( N ^ { 2 } )$ . However, the GS algorithm has a biased nature, where one side is prioritized and the other \n100 side only gets the least preferable result among all the possibilities of stable matching. \n101 To compensate for the unfairness, we can introduce diverse objectives to maintain a stable matching \n102 fair. Among them, the following two objectives make the stable matching problem strongly NP-hard. \n103 The first one is Sex equality cost $( S E q )$ (Gusfield and Irving, 1989). It focuses on the unfairness \n104 brought by the gap between the two sides’ satisfaction and defined by ",
241
+ "bbox": [
242
+ 147,
243
+ 363,
244
+ 826,
245
+ 409
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "",
252
+ "bbox": [
253
+ 145,
254
+ 412,
255
+ 825,
256
+ 469
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "",
263
+ "bbox": [
264
+ 142,
265
+ 474,
266
+ 825,
267
+ 531
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "equation",
273
+ "img_path": "images/669d2d5489bc4bf8ac7f5f045b0f39bd61df5203a4229d551183fb1f17f555db.jpg",
274
+ "text": "$$\nS E q ( m ; I ) = | P ( m ; A ) - P ( m ; B ) | , \\quad P ( m ; A ) = \\sum _ { \\{ a _ { i } , b _ { j } \\} \\in m } p _ { i j } ^ { A } , \\quad P ( m ; B ) = \\sum _ { \\{ a _ { i } , b _ { j } \\} \\in m } p _ { j i } ^ { B } .\n$$",
275
+ "text_format": "latex",
276
+ "bbox": [
277
+ 189,
278
+ 535,
279
+ 789,
280
+ 571
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "105 The other is Balance cost $( B a l ) ( \\mathrm { \\underline { { { F e d e r } } } \\vert \\mathrm { \\underline { { { \\vert 9 9 5 } } } ; \\left[ \\mathrm { { G u p t a \\it { e t a l . } } \\vert \\mathrm { \\underline { { { 2 0 1 9 } } } } } \\right]} } ,$ , which is a compromise between \n106 side-equality and overall satisfaction. It is defined by ",
287
+ "bbox": [
288
+ 137,
289
+ 574,
290
+ 833,
291
+ 603
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "equation",
297
+ "img_path": "images/31dc742e59157b3643b9ceb70b3f579de66cb39579b4cf2b2f9e4cc64acc7c7f.jpg",
298
+ "text": "$$\nB a l ( m ; I ) { = } \\operatorname* { m a x } ( P ( m ; A ) , P ( m ; B ) ) .\n$$",
299
+ "text_format": "latex",
300
+ "bbox": [
301
+ 367,
302
+ 607,
303
+ 630,
304
+ 625
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "107 In the proposed evaluation protocol, we minimize either cost while maintaining stable one-to-one \n108 matching. \n109 Input and output data format for stable matching Learning-based approximation is realized by \n110 a trainable function $F$ that outputs a matching $\\hat { m } \\in [ 0 , 1 ] ^ { N \\times \\widetilde { M } }$ , which is an $N \\times M$ matrix. As \n111 for the input, the value range of the preference rank depends on the problem size, which causes a \n112 range shift of the input distribution. To avoid such shift, we linearly re-scal $ { \\mathrm { e } } ^ { 3 }$ the rank of preference \n113 $p _ { i j } ^ { * }$ $\\mathbf { \\Psi } ^ { \\prime } * \\in \\{ A , B \\} )$ from $[ 1 , N ]$ to a normalized score $s _ { i j } ^ { * }$ ranged in $( 0 , 1 ]$ to make it invariant to $N$ , \n114 where 1 for the highest rank. Then, we obtain the input as matrices $S ^ { A }$ and $S ^ { B }$ , where $s _ { i j } ^ { A }$ is the \n115 $i j$ -element of $S ^ { A }$ . ",
311
+ "bbox": [
312
+ 150,
313
+ 627,
314
+ 825,
315
+ 656
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "",
322
+ "bbox": [
323
+ 140,
324
+ 670,
325
+ 826,
326
+ 773
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "116 4 Deep-learning-based fair stable matching with WeaveNet ",
333
+ "text_level": 1,
334
+ "bbox": [
335
+ 153,
336
+ 791,
337
+ 681,
338
+ 810
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "4.1 WeaveNet ",
345
+ "text_level": 1,
346
+ "bbox": [
347
+ 173,
348
+ 821,
349
+ 284,
350
+ 837
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "18 One of the required properties of $F : ( S ^ { A } , \\ S ^ { B } ) \\to { \\hat { m } }$ is to take all the agents’ preference into 19 account when determining the presence of each edge in the output $\\hat { m }$ . Li (2019) implemented this by 3 The details of this linear re-scaling are based on Li $\\bigoplus \\iiiint \\ M g \\lVert \\bigstar \\rVert$ and described in A.1. Note that sections numbered with capital letters appear in the supplementary material. ",
357
+ "bbox": [
358
+ 153,
359
+ 845,
360
+ 826,
361
+ 912
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "image",
367
+ "img_path": "images/52beb3ce9d8cda69fe2150a714213608ef978ab0c72dceb0d8d4156dca5b9b6b.jpg",
368
+ "image_caption": [
369
+ "Figure 2: WeaveNet architecture. $L$ feature weaving layers are stacked with shortcut paths to be a deep network. The encoded features are fed into Conv $( 1 \\times 1 )$ layer to obtain logits $( { \\hat { m } } ^ { \\prime } { } ^ { \\hat { A } } , { \\hat { m } } ^ { \\prime B } )$ . The output $\\hat { m }$ will be binarized in prediction phase to represent a matching. "
370
+ ],
371
+ "image_footnote": [],
372
+ "bbox": [
373
+ 179,
374
+ 92,
375
+ 808,
376
+ 199
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "120 MLPs, where $S ^ { A }$ and $S ^ { B }$ are destructured and concatenated into a single flat vector (with the length \n121 of $2 N M )$ and fed to the MLP. Its output (a flat vector with the length of $N M$ ) is restructured into a \n122 matrix $\\hat { m }$ . The MLP model, however, would face difficulties due to the following four problems. \n123 (a) Preference lists of multiple agents are encoded by independent parameters, though they share a \n124 format so that we could efficiently process them in the same manner. \n125 (b) MLP only supports a fixed-size input, so training different models for different cases of $N$ \n126 becomes mandatory. \n127 (c) $F$ should be permutation invariant, which means the matching result should be unchanged even if \n128 we shuffle the order of agents in $S ^ { A }$ and $S ^ { B }$ , but MLP does not satisfy. \n129 (d) A shallow MLP model may be insufficient to approximate an exact solver for the NP-hard problem \n130 when $N$ is large. \n131 To address the above weaknesses of MLP, we propose the feature weaving network (WeaveNet) which \n132 has the properties of (a) shared encoder, (b) variable-size input, (c) permutation invariance, and \n133 (d) residual structure. The WeaveNet, as shown in Fig. $2 ,$ consists of $L$ feature weaving (FW) \n134 layers. It has two streams of $A$ and $B$ . In a symmetric manner, each stream models the agent’s act of \n135 selecting the one on the opposite side while sharing weights to enhance the parameter efficiency. The \n136 shortcut paths at every two FW layers make them residual blocks, which allows the model to be as \n137 deep as possible. We explain its details as follows. \n138 Fig. $3$ illustrates the detail of a single FW layer, which is the core architecture of the proposed network. \n139 FW layer is a two-stream layer whose inputs consist of a weftwise component $Z _ { \\ell } ^ { \\dot { A } }$ and a warpwise \n140 component $Z _ { \\ell } ^ { B }$ , which are the output of $( l - 1 )$ -th layer and $Z _ { 0 } ^ { A } = { \\cal S } ^ { A }$ and $Z _ { 0 } ^ { B } = { \\cal S } ^ { B }$ for the first \n141 layer. The two components are symmetrically concatenated in each stream (cross-concatenation). \n142 Then these concatenations are separated into agent-wise features, each of which is a set of outgoing \n143 edge features of an agent (indicating the preference from that agent to every matching candidate). \n144 These features are processed by the encoder $E _ { \\ell }$ shared by every agent in both $A$ and $B$ . As for \n145 an encoder that can embed variable-size input in a permutation invariant manner, we adopted the \n146 structure inspired by DeepSet (Zaheer et al., 2017) and PointNet (Qi et al., 2017) (Fig. 4), which \n47 consists of two convolutional layers with kernel size 1 and a set-wise max-pooling layer, followed by \n48 batch-normalization and PReLU activation. We refer to this structure as set encoder. \n149 Mathematical formulations $Z _ { \\ell } ^ { A }$ in Fig. $\\bigstar$ is a third-order tensor whose dimensions, in sequence, \n150 corresponding to the agent, candidate, and feature dimension, with a size of $( N , M , D )$ . Similarly, \n151 $Z _ { \\ell } ^ { B }$ has a size of $( M , N , D )$ . The cross-concatenation is defined as ",
383
+ "bbox": [
384
+ 142,
385
+ 279,
386
+ 825,
387
+ 321
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "",
394
+ "bbox": [
395
+ 145,
396
+ 332,
397
+ 826,
398
+ 444
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "",
405
+ "bbox": [
406
+ 140,
407
+ 455,
408
+ 825,
409
+ 553
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "image",
415
+ "img_path": "images/9417b65197616b5b5286bdb81e8ecf41b452ea48e56713da6b584a9e3a5bf150.jpg",
416
+ "image_caption": [
417
+ "Figure 3: Feature weaving layer orthogonally Figure 4: Illustration of the process in set enconcatenates the weftwise and warpwize com- coder $E _ { \\ell }$ , where $z _ { \\ell } ^ { a _ { i } }$ (colored in white) is once ponents $( Z _ { \\ell } ^ { A }$ and $Z _ { \\ell } ^ { B }$ ) in a symmetric way encoded to $D ^ { \\prime }$ \\` channel features (colored in pale (cross-concatenation). Then, the concatenated blue), then max-pooled to obtain statistics in the tensors are separated into $z _ { \\ell } ^ { a _ { i } }$ (or $z _ { \\ell } ^ { b _ { j } }$ ), which feature set (colored in blue). The statistics inrepresents a set of outgoing edges from agent formation is concatenated to each input feature $a _ { i }$ (or $b _ { j }$ ), and independently fed to $E _ { \\ell }$ . and further encoded (color in a gradation). "
418
+ ],
419
+ "image_footnote": [],
420
+ "bbox": [
421
+ 179,
422
+ 564,
423
+ 825,
424
+ 664
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "",
431
+ "bbox": [
432
+ 140,
433
+ 785,
434
+ 826,
435
+ 912
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "",
442
+ "bbox": [
443
+ 150,
444
+ 90,
445
+ 825,
446
+ 119
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "",
453
+ "bbox": [
454
+ 142,
455
+ 131,
456
+ 825,
457
+ 176
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "equation",
463
+ "img_path": "images/47472ca27630d6aef80907cb05ec6cf38890ff6ec6aa48b40d314204e2b5a554.jpg",
464
+ "text": "$$\nZ _ { \\ell } ^ { \\prime A } = c a t ( Z _ { \\ell } ^ { A } , P _ { A B } ( Z _ { \\ell } ^ { B } ) ) ,\n$$",
465
+ "text_format": "latex",
466
+ "bbox": [
467
+ 398,
468
+ 181,
469
+ 599,
470
+ 200
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "152 where $P _ { A B }$ swaps the first and second dimensions of the tensor, and $c a t ( \\{ Z _ { 1 } , Z _ { 2 } , . . . \\} )$ concatenates \n153 the features of two tensors $Z _ { 1 }$ , $Z _ { 2 }$ . $Z _ { \\ell } ^ { \\prime A }$ is then sliced into agent-wise features $z _ { \\ell } ^ { a _ { i } }$ and we obtain \n154 $Z _ { \\ell + 1 } ^ { A } = ( E _ { \\ell } ( z _ { \\ell } ^ { a _ { i } } ) | 0 < i \\leq N )$ , which is also a third-order tensor (and fed to the next layer). We can \n155 calculate $Z _ { \\ell + 1 } ^ { B }$ in a symmetric manner (with the same encoder $E _ { \\ell }$ ). \n156 After the process of $L$ FW layers, $Z _ { L } ^ { A }$ and $Z _ { L } ^ { B }$ are further cross-concatenated and fed to the matching \n157 estimator (in Fig. 2). It outputs a non-deterministic edge assignment $\\hat { m }$ . In the training phase, $\\hat { m }$ \n158 is input to an objective function, and the loss is minimized. In the prediction phase, the matching \n159 is obtained by binarizing $\\hat { m }$ . In this sense, matching estimation through a neural network can be \n160 considered as an approximation by relaxing the binary assignment space $\\{ \\breve { 0 } , 1 \\} ^ { N \\times M }$ into a continuous \n161 assignment space [0, 1] N⇥M . \n162 Asymmetric variant with split batch normalization WeaveNet is designed to be fully symmetric \n163 for $S ^ { A }$ and $S ^ { B }$ . Hence, it satisfies the equation $F ( S ^ { A } , S ^ { B } ) = F ( S ^ { B } , S ^ { A } ) ^ { \\top }$ . This condition ensures \n164 that the model architecture cannot distinguish the two sides $A$ and $B$ innately. This property is \n165 beneficial when mathematically fair treatment between $A$ and $B$ is desirable. However, when inputs \n166 from $A$ and $B$ are differently biased (e.g., the two sides have different trends of preference or the \n167 objective is asymmetric for $A$ and $B$ ), this symmetric treatment degrades the performance. To \n168 eliminate the bias difference without losing the parameter-efficiency, we further propose to a) apply \n169 batch normalization independently for each stream (split batch normalization), and $\\mathbf { b }$ ) adding a \n170 side-identifiable code (e.g., 1 for $A$ and 0 for $B$ ) to $Z _ { 0 } ^ { A }$ and $Z _ { 0 } ^ { B }$ as a $( D { + } 1 )$ -th element of the feature. \n171 We call this variant “asymmetric”. ",
477
+ "bbox": [
478
+ 142,
479
+ 205,
480
+ 825,
481
+ 267
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "",
488
+ "bbox": [
489
+ 140,
490
+ 273,
491
+ 825,
492
+ 359
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "",
499
+ "bbox": [
500
+ 140,
501
+ 373,
502
+ 825,
503
+ 512
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "4.2 Relaxed continuous optimization for fair stable matching ",
510
+ "text_level": 1,
511
+ "bbox": [
512
+ 160,
513
+ 527,
514
+ 609,
515
+ 542
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Generally, a combinatorial optimization problem has discrete objective functions and conditions, which are not differentiable. To optimize the model in an end-to-end manner without inaccessible ground truth, we optimize the model by relaxing such discrete loss functions into continuous ones. ",
522
+ "bbox": [
523
+ 165,
524
+ 553,
525
+ 825,
526
+ 595
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "76 Assume we target to obtain a fair stable matching that has the minimum $S E q$ , for example. Then, we \n77 have the following three loss functions. \n178 ${ \\mathcal { L } } _ { m }$ conditions the binarization of $\\hat { m }$ to represent a matching. \n179 $\\mathcal { L } _ { s }$ conditions the matching to be stable. \n180 $\\mathcal { L } _ { f }$ minimizing the fairness cost $S E q$ of the matching ",
533
+ "bbox": [
534
+ 156,
535
+ 601,
536
+ 825,
537
+ 631
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "",
544
+ "bbox": [
545
+ 142,
546
+ 640,
547
+ 576,
548
+ 683
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "181 The overall loss function is defined as ",
555
+ "bbox": [
556
+ 143,
557
+ 693,
558
+ 424,
559
+ 707
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "equation",
565
+ "img_path": "images/c1f8d26616dc870d474e951d973a2b99388e3cfb117a1302eb28fc0c01706f4d.jpg",
566
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { f s m } } ( \\hat { m } ) = \\lambda _ { m } \\mathcal { L } _ { m } + \\frac { 1 } { 2 } \\sum _ { m \\in \\{ \\hat { m } ^ { A } , \\hat { m } ^ { B } \\} } \\big ( \\lambda _ { s } \\mathcal { L } _ { s } ( m ) + \\lambda _ { f } \\mathcal { L } _ { f } ( m ) \\big ) ,\n$$",
567
+ "text_format": "latex",
568
+ "bbox": [
569
+ 308,
570
+ 708,
571
+ 679,
572
+ 750
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "where 182 $\\hat { m } ^ { A } = \\mathrm { s o f t m a x } ( \\hat { m } )$ and $\\hat { m } ^ { B } = \\mathrm { s o f t m a x } ( \\hat { m } ^ { \\top } )$ ",
579
+ "bbox": [
580
+ 142,
581
+ 755,
582
+ 526,
583
+ 771
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "183 An important advantage of learning-based approximation is its flexibility. We can modify the above \n184 loss functions to easily obtain other variants. For example, removing $\\mathcal { L } _ { f }$ in Eq. $( 4 )$ leads to standard \n185 stable matching, and replacing $\\mathcal { L } _ { f }$ with $\\mathcal { L } _ { b }$ (which minimizes $B a l$ ) leads to balanced stable matching, \n186 as follows: ",
590
+ "bbox": [
591
+ 142,
592
+ 776,
593
+ 826,
594
+ 832
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "equation",
600
+ "img_path": "images/f700b0ebd18b8dca3cefc37c266c51637cf9f36a987bf79145804f7e96c96a04.jpg",
601
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\mathrm { s m } } ( \\hat { m } ) = \\lambda _ { m } \\mathcal { L } _ { m } + \\displaystyle \\frac { 1 } { 2 } \\sum _ { m \\in \\{ \\hat { m } ^ { A } , \\hat { m } ^ { B } \\} } \\lambda _ { s } \\mathcal { L } _ { s } ( m ) , } \\\\ & { \\mathcal { L } _ { \\mathrm { b s m } } ( \\hat { m } ) = \\lambda _ { m } \\mathcal { L } _ { m } + \\displaystyle \\frac { 1 } { 2 } \\sum _ { m \\in \\{ \\hat { m } ^ { A } , \\hat { m } ^ { B } \\} } \\big ( \\lambda _ { s } \\mathcal { L } _ { s } ( m ) + \\lambda _ { b } \\mathcal { L } _ { b } ( m ) \\big ) . } \\end{array}\n$$",
602
+ "text_format": "latex",
603
+ "bbox": [
604
+ 308,
605
+ 834,
606
+ 679,
607
+ 917
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "187 One-to-one matching constraint $\\hat { m }$ can be safely converted into a binarized matching by column \n188 wise or row-wise argmax operation when it is a symmetric doubly stochastic matrix $\\check { ( \\mathbb { L 1 } , \\lfloor 2 0 1 9 \\rangle ) }$ . To \n189 satisfy this condition, we defined ${ \\mathcal { L } } _ { m }$ with an average of the cosine distance as ",
614
+ "bbox": [
615
+ 143,
616
+ 90,
617
+ 825,
618
+ 133
619
+ ],
620
+ "page_idx": 5
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "img_path": "images/06630cf0ac9131b456878e945ae7f778eff62d2a9997e436019bc516b31d38d0.jpg",
625
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { m } ( \\hat { m } ^ { A } , \\hat { m } ^ { B } ) = 1 - \\displaystyle \\frac { 1 } { 2 } ( \\mathbf { C } ( \\hat { m } ^ { A } , \\hat { m } ^ { B } ) + \\mathbf { C } ( \\hat { m } ^ { B } , \\hat { m } ^ { A } ) ) , } \\\\ & { \\mathbf { C } ( \\hat { m } ^ { A } , \\hat { m } ^ { B } ) = \\displaystyle \\frac { 1 } { N } \\sum _ { i = 0 } ^ { N } \\frac { \\hat { m } _ { i * } ^ { A } \\cdot \\hat { m } _ { * i } ^ { B } } { \\| \\hat { m } _ { i * } ^ { A } \\| _ { 2 } \\| \\hat { m } _ { * i } ^ { B } \\| _ { 2 } } , } \\end{array}\n$$",
626
+ "text_format": "latex",
627
+ "bbox": [
628
+ 316,
629
+ 138,
630
+ 679,
631
+ 213
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "190 where $\\hat { m } _ { i * } ^ { A }$ means the $i$ -th row of $\\hat { m } ^ { A }$ . This formulation binds $\\hat { m }$ to be a symmetric4 doubly stochastic \n191 ⇤ matrix when $\\mathcal { L } _ { m } ( \\hat { m } ^ { A } , \\hat { m } ^ { B } ) = 0$ . The advantage of this implementation against the original one in Li \n192 $\\textcircled { 2 0 1 9 }$ is described in $\\mathbf { B . l }$ with additional experimental results. ",
638
+ "bbox": [
639
+ 143,
640
+ 217,
641
+ 823,
642
+ 263
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "193 Blocking pair suppression As for $L _ { s }$ , we used the function proposed in Li $\\textcircled { 2 0 1 9 }$ , which is ",
649
+ "bbox": [
650
+ 143,
651
+ 275,
652
+ 790,
653
+ 292
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "equation",
659
+ "img_path": "images/ac864e04edf63a148f4c1c2465c7b76dd20d098f802d586f5e4dcc625d096a12.jpg",
660
+ "text": "$$\n\\begin{array} { c } { { \\mathcal { L } _ { s } ( \\hat { m } ; I ) = \\displaystyle \\sum _ { ( v , w ) \\in A \\times B } g ( a _ { v } ; b _ { w } , \\hat { m } ) g ( b _ { w } ; a _ { v } , \\hat { m } ) } } \\\\ { { g ( a _ { i } ; b _ { w } , \\hat { m } ) = \\displaystyle \\sum _ { b _ { j } \\ne b _ { w } } \\hat { m } _ { i j } \\cdot \\operatorname * { m a x } ( S _ { i w } ^ { A } - S _ { i j } ^ { A } , 0 ) } } \\\\ { { g ( b _ { j } ; a _ { v } , \\hat { m } ) = \\displaystyle \\sum _ { a _ { i } \\ne a _ { v } } \\hat { m } _ { j i } ^ { \\top } \\cdot \\operatorname * { m a x } ( S _ { j v } ^ { B } - S _ { j i } ^ { B } , 0 ) , } } \\end{array}\n$$",
661
+ "text_format": "latex",
662
+ "bbox": [
663
+ 341,
664
+ 296,
665
+ 656,
666
+ 406
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "194 where $g ( a _ { i } ; b _ { w } , \\hat { m } )$ is a criterion known as ex-ante justified envy, which has a positive value when \n195 $a _ { i }$ prefers $b _ { w }$ more than any $b _ { j }$ in $\\{ b _ { j } | j \\neq w , \\hat { m } _ { i j } \\stackrel { . } { > } 0 \\}$ . This is the same for $g ( b _ { j } ; a _ { v } , \\hat { m } )$ . Hence, \n196 $\\{ a _ { v } , b _ { w } \\}$ becomes a (soft) blocking pair when both $g ( a _ { v } ; b _ { w } , \\hat { m } )$ and $g ( b _ { w } ; a _ { v } , \\hat { m } )$ are positive. ",
673
+ "bbox": [
674
+ 142,
675
+ 411,
676
+ 825,
677
+ 455
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "197 Fairness measurements $\\mathcal { L } _ { f } , \\mathcal { L } _ { b }$ minimize $S E q ( m ; I ) , B a l ( m ; I )$ , respectively, and are defined as ",
684
+ "bbox": [
685
+ 142,
686
+ 467,
687
+ 825,
688
+ 484
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "equation",
694
+ "img_path": "images/8eca96ddb07b9e1c08d51f58c59537a7598f70459573c3587b66abae79cdee54.jpg",
695
+ "text": "$$\n\\mathcal { L } _ { f } ( \\hat { m } ; I ) = \\frac { 1 } { N } | S ( \\hat { m } ; A ) - S ( \\hat { m } ; B ) | \\quad \\mathcal { L } _ { b } ( \\hat { m } ; I ) = - \\frac { 1 } { N } \\mathrm { m i n } ( S ( \\hat { m } ; A ) , S ( \\hat { m } ; B ) ) ,\n$$",
696
+ "text_format": "latex",
697
+ "bbox": [
698
+ 223,
699
+ 489,
700
+ 772,
701
+ 518
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "198 where ",
708
+ "bbox": [
709
+ 142,
710
+ 523,
711
+ 217,
712
+ 537
713
+ ],
714
+ "page_idx": 5
715
+ },
716
+ {
717
+ "type": "equation",
718
+ "img_path": "images/b426b95bb61c692e92ef74ee27d017a077186feadc9fa25836ee5dd11a3c0413.jpg",
719
+ "text": "$$\nS ( \\hat { m } ; A ) = \\sum _ { i = 1 } ^ { N } \\sum _ { i = j } ^ { M } \\hat { m } _ { i j } \\cdot S _ { i j } ^ { A } , ~ S ( \\hat { m } ; B ) = \\sum _ { j = 1 } ^ { M } \\sum _ { i = 1 } ^ { N } \\hat { m } _ { i j } \\cdot S _ { j i } ^ { B } .\n$$",
720
+ "text_format": "latex",
721
+ "bbox": [
722
+ 299,
723
+ 532,
724
+ 702,
725
+ 578
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "199 5 Experiments ",
732
+ "text_level": 1,
733
+ "bbox": [
734
+ 142,
735
+ 593,
736
+ 313,
737
+ 611
738
+ ],
739
+ "page_idx": 5
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "200 We evaluated WeaveNet with different sizes of $N$ . First, with test samples of $N < 1 0$ , we compared \n201 its performance with learning-based baselines and optimal solutions obtained by a brute-force search. \n202 Second, we compared WeaveNet with algorithmic baselines at $N = 2 0$ , 30, where neither existing \n203 learning-based methods nor brute-force search work. We also demonstrated the generalization ability \n204 of WeaveNet under the mismatched training/test dataset distributions. Third, we demonstrated the \n205 performance of WeaveNet at $N = 1 0 0$ . Note that we always assume $M = N$ hereafter. ",
744
+ "bbox": [
745
+ 142,
746
+ 622,
747
+ 826,
748
+ 708
749
+ ],
750
+ "page_idx": 5
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Sample generation protocol In the experiments, we used the same method as Tziavelis et al. \n$\\underline { { \\bar { ( 2 0 1 9 ) } } }$ to generate synthetic datasets that draw preference lists from the following distributions. ",
755
+ "bbox": [
756
+ 169,
757
+ 720,
758
+ 828,
759
+ 751
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Uniform (U) Each agent’s preference towards any matching candidate is totally random, defined by a uniform distribution $\\mathcal { U } ( 0 , 1 )$ (larger value means prior in the preference list). ",
766
+ "bbox": [
767
+ 171,
768
+ 760,
769
+ 823,
770
+ 789
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Discrete $\\mathbf { \\eta } ^ { ( \\mathbf { D } ) }$ Each agent has a preference of $\\mathcal { U } ( 0 . 5 , 1 )$ towards a certain group of $\\lfloor 0 . 4 N \\rfloor$ popular candidates, while $\\mathcal { U } ( 0 , 0 . 5 )$ towards the rest. ",
777
+ "bbox": [
778
+ 166,
779
+ 792,
780
+ 823,
781
+ 821
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "Gauss (G) Each agent’s preference towards $i$ -th candidate is defined by a Gaussian distribution $\\mathcal { N } ( i / N , 0 . 4 )$ . ",
788
+ "bbox": [
789
+ 171,
790
+ 825,
791
+ 823,
792
+ 854
793
+ ],
794
+ "page_idx": 5
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "LibimSeTi (Lib) Simulate real rating activity on the online dating service LibimSeTi (Brozovsky and Petricek, 2007) based on the 2D distribution of frequency of each rating pair $( p _ { i j } ^ { A } , ~ p _ { j i } ^ { B } )$ . ",
799
+ "bbox": [
800
+ 169,
801
+ 857,
802
+ 823,
803
+ 888
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "4 Here a (possibly non-square) matrix $\\hat { m }$ $N \\geq M )$ is symmetric if and only if $\\hat { m } _ { i * } = \\hat { m } _ { * i } , ( 0 < i \\leq M )$ ",
810
+ "bbox": [
811
+ 186,
812
+ 897,
813
+ 820,
814
+ 912
815
+ ],
816
+ "page_idx": 5
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "216 Choosing the above preference distributions for group $A$ and $B$ respectively, we obtained five different \n217 dataset settings, namely UU, DD, GG, UD, and Lib. We randomly generated 1,000 test samples and \n218 1,000 validation samples for each of the five distribution settings. \n219 Training protocol We trained any learning-based models $2 0 0 \\mathrm { k }$ total iterations at $N \\leq 3 0$ and $3 0 0 \\mathrm { k }$ \n220 at $N = 1 0 0$ , with a batch size of 8. We randomly generated training samples at each iteration based \n221 on the distribution of each dataset and used the Adam optimizer (Kingma and Ba, 2015). We set \n222 learning rate 0.0001 and loss weights $\\lambda _ { s } = 0 . 7$ , $\\lambda _ { m } = 1 . 0$ , $\\lambda _ { f } = \\lambda _ { b } ^ { - } = 0 . 0 1$ based on a preliminary \n223 experiment (see $\\underline { { \\overline { { | \\mathbf { A . } 4 } } \\mathbf { ) } } }$ . \n224 Pseudo fairness costs for comparing learning-based results with algorithmic results Note that \n225 for learning-based methods, there is a trade-off between fairness scores and stable matching rate. \n226 Hence they may violate the constraints of stable one-to-one matching and yield an $S E q$ or $B a l$ even \n227 lower than the ideal value. To compare the methods fairly with traditional algorithmic methods, we \n228 evaluate our methods using pseudo $S E q \\ ( p S E q )$ and pseudo Bal $( p B a l )$ cost, in which the cost of \n229 violation cases is replaced by the worst result of the GS algorithm (prioritizing each side once and \n230 adopting the worse one). ",
821
+ "bbox": [
822
+ 140,
823
+ 92,
824
+ 823,
825
+ 133
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "",
832
+ "bbox": [
833
+ 140,
834
+ 151,
835
+ 825,
836
+ 222
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "",
843
+ "bbox": [
844
+ 140,
845
+ 239,
846
+ 825,
847
+ 337
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "5.1 Comparison with learning-based methods $( N = 3 , 5 , 7 , 9 )$ ",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 161,
857
+ 356,
858
+ 622,
859
+ 371
860
+ ],
861
+ "page_idx": 6
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Baselines and ablations In this experiment, we show results obtained by following baselines and WeaveNet variants. MLP is the model proposed in Li (2019). GIN is the state-of-the-art GCN model proposed in $\\left| \\mathrm { X u } \\ e t \\ a l . \\right| \\left( \\mathbb { 2 0 } 1 9 \\right)$ . We use each (normalized) preference list as a node feature and bipartite edges as the graph structure. After two graph-convolution calculations, as MLP, we destructed the node-wise embeddings and concatenated them into a single vector, which is fed to one Linear layer to output $\\hat { m }$ . DBM is the model in Gibbons et al. (2019). SSWN is the single-stream WeaveNet, which is equivalent to a DBM adopting the set-encoder of WeaveNet. WN is the standard WeaveNet. ",
866
+ "bbox": [
867
+ 173,
868
+ 382,
869
+ 825,
870
+ 479
871
+ ],
872
+ "page_idx": 6
873
+ },
874
+ {
875
+ "type": "image",
876
+ "img_path": "images/1b2593afc1b1b2178d6e13c5b44d30776c7951a7ed534fe8969eaed4c4d4204b.jpg",
877
+ "image_caption": [
878
+ "Figure 5: Change of the success rates of stable matching $( \\uparrow )$ according to $N$ "
879
+ ],
880
+ "image_footnote": [],
881
+ "bbox": [
882
+ 178,
883
+ 501,
884
+ 382,
885
+ 621
886
+ ],
887
+ "page_idx": 6
888
+ },
889
+ {
890
+ "type": "image",
891
+ "img_path": "images/3efed6a27f3e0ea5f76aedeec8ce97d7e56ffe986c8c73d26d110994f22f0fa9.jpg",
892
+ "image_caption": [
893
+ "Figure 6: Change of $p S E q -$ ideal scores $( \\downarrow )$ according to $N$ . "
894
+ ],
895
+ "image_footnote": [],
896
+ "bbox": [
897
+ 398,
898
+ 501,
899
+ 602,
900
+ 621
901
+ ],
902
+ "page_idx": 6
903
+ },
904
+ {
905
+ "type": "image",
906
+ "img_path": "images/23cb3aa0f4e1b9312c130ed61b539657cba37a7cc30dda2800a6d347c6961716.jpg",
907
+ "image_caption": [
908
+ "Figure 7: Change of $p B a l -$ ideal scores $( \\downarrow )$ according to $N$ . "
909
+ ],
910
+ "image_footnote": [],
911
+ "bbox": [
912
+ 611,
913
+ 501,
914
+ 823,
915
+ 621
916
+ ],
917
+ "page_idx": 6
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "239 Fig. $\\boldsymbol { \\vert 5 \\vert }$ shows the success rates of finding a stable matching, where we trained models to minimize \n240 Eq. $( 5 )$ , considering only the stable matching constraints. Since MLP and GIN have size-dependency, \n241 we trained the models independently for $N = 3$ , 5, 7, 9. The other models were trained with \n242 $N = 1 0$ and tested on $N = 3$ , 5, 7, 9. We maintained models with $L = 6$ layers (the model names \n243 are noted as XXX-6) to have a similar number of parameters with MLP for $N = 5$ (see $\\underline { { \\vert \\bar { \\mathbf { A . } } \\bar { \\mathbf { \\xi } } ) } }$ , while \n244 WN-18 is prepared to demonstrate the full performance (with the residual blocks). \n245 MLP and GIN can hardly find stable matchings when $N \\geq 5$ . Note that the number of total cases for \n246 size $N$ instances is estimated by $N ! ^ { 2 ( N - 1 ) }$ . Hence, when $N = 3$ , there are only 1,296 cases at most, \n247 and the test set will fully overlap with the training set. In contrast, when $N = 5$ , we have $4 . 3 \\times 1 0 ^ { 1 6 }$ \n248 cases, and the overlap is negligible. Therefore, we can say that methods working only with $N = 3$ \n249 such as MLP and GIN, have little generalization ability. \n250 DBM performs better than MLP but obviously worse than SSWN and WN. The performance gain of \n251 SSWN-6 over DBM-6 represents the advantage of the set-encoder. Similarly, the improvement of \n252 WN-6 over SSWN-6 shows the benefit of the two-stream architecture. Finally, that of WN-18 over \n253 WN-6 demonstrates the impact of stacked layers on the performance. Fig. 15 of the appendix shows \n54 some additional baselines, including a performance of our $L _ { m }$ against the original one proposed in Li \n55 $\\underline { { \\left( 2 0 1 9 \\right) } }$ . ",
922
+ "bbox": [
923
+ 138,
924
+ 689,
925
+ 825,
926
+ 772
927
+ ],
928
+ "page_idx": 6
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "",
933
+ "bbox": [
934
+ 140,
935
+ 779,
936
+ 825,
937
+ 849
938
+ ],
939
+ "page_idx": 6
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "",
944
+ "bbox": [
945
+ 140,
946
+ 856,
947
+ 825,
948
+ 912
949
+ ],
950
+ "page_idx": 6
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "",
955
+ "bbox": [
956
+ 155,
957
+ 92,
958
+ 825,
959
+ 119
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Figs. 6 and $\\textcircled { 7 }$ show ${ p S E q }$ and $p B a l$ (their difference from the ideal values5 ), respectively. XXX-18f/b are trained to minimize Eqs. $\\textcircled { \\sharp }$ and $\\textcircled{6}$ , respectivel ${ \\boldsymbol { \\imath } } ^ { 6 } .$ We omitted MLP and GIN due to their poor performance in Fig. 5. In the results, both SSWN and WN largely outperformed DBM, which again proved the advantage of the set-encoder. WN performed better than SSWN for larger $N$ , owing to the parameter efficiency of the two-stream architecture. Note that the performance gain of XXX-18f/b from XXX-18 proved the flexibility of general learning-based methods for customized objective functions. ",
966
+ "bbox": [
967
+ 173,
968
+ 122,
969
+ 825,
970
+ 223
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "5.2 Comparison with algorithmic methods $N = 2 0$ , 30) ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 168,
980
+ 239,
981
+ 576,
982
+ 256
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "As the algorithmic methods, we prepared four baselines. GS is the better result of applying the GS algorithm to prioritize each side once, which runs in $O ( N ^ { 2 } )$ . PolyMin minimizes some alternative fairness costs (the regret and egalitarian costs, which can be solved in $O ( N ^ { 2 } )$ and $\\underline { { O } } ( N ^ { 3 } )$ , respectively (Gusfield, 1987; Irving et al., 1987; Feder, 1992)). DACC by $\\boxed { \\mathrm { D w o r c z a k } } ( \\boxed { 2 0 1 6 } )$ is an approximate algorithm that runs in $\\overline { { O ( N ^ { 4 } ) } }$ . PowerBalance is the state-of-the-art method that runs in $\\mathcal { \\hat { O } } ( N ^ { 2 } )$ . ",
989
+ "bbox": [
990
+ 173,
991
+ 266,
992
+ 825,
993
+ 337
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "WN-60f/b(20/30) is WeaveNet with $L = 6 0$ layers trained with samples of $N = 2 0$ and $N = 3 0$ . Note that we used the asymmetric variant for UD and Lib. Moreover, we do not involve any traditional learning-based methods in this part since they scored clear performance drops with increasing $N$ (see Fig. $\\textcircled { 5 }$ and the problem size of $N = 2 0$ , 30 is clearly beyond their capabilities, but an ablation with WeaveNet variants is reported in B.2. ",
1000
+ "bbox": [
1001
+ 165,
1002
+ 342,
1003
+ 825,
1004
+ 412
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "table",
1010
+ "img_path": "images/afe97a4ad627ce4cefafcd881d496107e756f722c66c95c5b966b0356e1bef1c.jpg",
1011
+ "table_caption": [
1012
+ "Table 1: Average $S E q$ (#) and success rate of stable matching (\"). Bold and underlined scores shows the best and second best ones, respectively. "
1013
+ ],
1014
+ "table_footnote": [],
1015
+ "table_body": "<table><tr><td rowspan=\"2\">Agents (N × M) Datasets (Dist. Type)</td><td colspan=\"4\">20 × 20</td><td rowspan=\"2\"></td><td colspan=\"5\">30 × 30</td></tr><tr><td>UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib</td></tr><tr><td>GS</td><td>41.89</td><td>18.81</td><td>19.52</td><td>70.97</td><td>19.66</td><td>94.03</td><td>43.46</td><td>36.56</td><td>163.77</td><td>39.78</td></tr><tr><td>PolyMin</td><td>19.93</td><td>11.83</td><td>20.57</td><td>87.08</td><td>18.47</td><td>35.52</td><td>21.21</td><td>37.37</td><td>209.62</td><td>31.85</td></tr><tr><td>DACC</td><td>24.34</td><td>20.13</td><td>23.07</td><td>101.75</td><td>20.40</td><td>40.87</td><td>34.35</td><td>40.59</td><td>240.48</td><td>33.88</td></tr><tr><td>Power Balance</td><td>16.28</td><td>8.93</td><td>17.07</td><td>71.09</td><td>15.40</td><td>18.45</td><td>11.05</td><td>27.22</td><td>163.90</td><td>21.57</td></tr><tr><td>WN-60f(20) (pSEq)</td><td>12.23</td><td>6.37</td><td>15.50</td><td>71.31</td><td>14.59</td><td>25.21</td><td>11.38</td><td>29.36</td><td>172.63</td><td>23.53</td></tr><tr><td>Stably Matched (%)</td><td>98.90</td><td>99.50</td><td>99.40</td><td>99.60</td><td>99.30</td><td>94.60</td><td>97.30</td><td>95.70</td><td>91.30</td><td>97.70</td></tr><tr><td>WN-60f(30) (p SEq)</td><td>12.16</td><td>6.53</td><td>15.56</td><td>71.34</td><td>14.53</td><td>18.30</td><td>10.52</td><td>27.39</td><td>170.35</td><td>22.17</td></tr><tr><td>Stably Matched (%)</td><td>99.10</td><td>99.40</td><td>99.40</td><td>99.50</td><td>99.80</td><td>98.10</td><td>99.00</td><td>98.00</td><td>93.90</td><td>98.60</td></tr></table>",
1016
+ "bbox": [
1017
+ 199,
1018
+ 462,
1019
+ 795,
1020
+ 604
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "table",
1026
+ "img_path": "images/8990148bd09c23c87742796e9bfc1ee3657edfdfb54139c707065188255ee551.jpg",
1027
+ "table_caption": [
1028
+ "Table 2: Average Bal (#) and success rate of stable matching (\"). "
1029
+ ],
1030
+ "table_footnote": [],
1031
+ "table_body": "<table><tr><td rowspan=\"2\">Agents (N × M) Datasets (Dist. Type)</td><td colspan=\"4\">20×20</td><td colspan=\"6\"></td></tr><tr><td>UU</td><td>DD</td><td>GG</td><td>UD</td><td>Lib</td><td>UU</td><td>DD</td><td>30×30 GG</td><td>UD</td><td>Lib</td></tr><tr><td>GS</td><td>89.14</td><td>146.16</td><td>108.36</td><td>140.53</td><td>68.62</td><td>184.05</td><td>322.05</td><td>225.49</td><td>312.12</td><td>137.59</td></tr><tr><td>PolyMin</td><td>74.19</td><td>140.99</td><td>108.04</td><td>145.28</td><td>66.94</td><td>144.48</td><td>306.28</td><td>224.13</td><td>324.54</td><td>130.79</td></tr><tr><td>DACC</td><td>78.49</td><td>146.71</td><td>110.06</td><td>151.34</td><td>68.75</td><td>150.71</td><td>316.18</td><td>227.52</td><td>337.43</td><td>133.59</td></tr><tr><td>Power Balance</td><td>73.28</td><td>140.12</td><td>106.92</td><td>140.55</td><td>65.89</td><td>138.04</td><td>302.30</td><td>220.26</td><td>312.12</td><td>126.96</td></tr><tr><td>WN-60b(20) (pBal)</td><td>71.89</td><td>138.79</td><td>106.20</td><td>140.84</td><td>65.85</td><td>141.49</td><td>302.73</td><td>221.92</td><td>317.60</td><td>130.58</td></tr><tr><td>Stably Matched (%)</td><td>98.50</td><td>98.80</td><td>99.50</td><td>99.70</td><td>98.80</td><td>96.10</td><td>96.70</td><td>95.00</td><td>88.90</td><td>93.80</td></tr><tr><td>WN-60b(30) (pBal)</td><td>72.33</td><td>138.75</td><td>106.65</td><td>140.79</td><td>65.84</td><td>140.40</td><td>301.59</td><td>223.02</td><td>313.59</td><td>127.93</td></tr><tr><td>Stably Matched (%)</td><td>98.00</td><td>99.10</td><td>98.60</td><td>99.80</td><td>99.10</td><td>97.00</td><td>98.60</td><td>93.70</td><td>98.80</td><td>98.00</td></tr></table>",
1032
+ "bbox": [
1033
+ 184,
1034
+ 638,
1035
+ 812,
1036
+ 780
1037
+ ],
1038
+ "page_idx": 7
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "274 We show the results in Tables 1 and 2. When $N = 2 0$ , except for UD, the proposed method constantly \n275 performed better than any algorithmic methods for both $S E q$ and $B a l$ . When $N = 3 0$ , they are \n276 comparative. For UD, GS performed even better than PowerBalance. That means that the ideal \n277 solution constantly prioritizes one side (a kind of the strongest bias). Since we designed the WeaveNet \n278 architecture to treat the sides evenly, this is the most challenging situation for WeaveNet. Nonetheless, \n279 the proposed split batch normalization (with the side-identifiable code) achieved similar performance \n280 to GS and PowerBalance. We show the performance drop with the fully symmetric version in $\\boxed { \\mathbf { B } . 2 }$ \n281 of the appendix, which is also interesting from the ethical viewpoint. It is noteworthy that the \n282 model trained with $N = 2 0$ performs well even with $N = 3 0$ , which indicates that the method has \n283 generalizability for size difference. \n284 Generalization ability for different distributions A learning-based method should have a certain \n285 generalizability for input distribution shifts. To test the ability, we evaluated the performance of \n286 models trained with UU, DD, and GG on test sets of different distributions. ",
1043
+ "bbox": [
1044
+ 138,
1045
+ 801,
1046
+ 825,
1047
+ 871
1048
+ ],
1049
+ "page_idx": 7
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "",
1054
+ "bbox": [
1055
+ 142,
1056
+ 92,
1057
+ 825,
1058
+ 161
1059
+ ],
1060
+ "page_idx": 8
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "",
1065
+ "bbox": [
1066
+ 143,
1067
+ 175,
1068
+ 826,
1069
+ 218
1070
+ ],
1071
+ "page_idx": 8
1072
+ },
1073
+ {
1074
+ "type": "table",
1075
+ "img_path": "images/40d4345f4af067c99de280b456edbc3dfa462157dd305cdc76a50515330548bd.jpg",
1076
+ "table_caption": [
1077
+ "Table 3: The generalizability of WeaveNet (trained/tested with $N = 3 0$ ). "
1078
+ ],
1079
+ "table_footnote": [],
1080
+ "table_body": "<table><tr><td>train</td><td>WN-60f</td><td>UU</td><td>test DD</td><td>GG</td><td>Avg.</td></tr><tr><td>UU</td><td>pSEq Stably Matched (%)</td><td>18.30 98.10</td><td>25.81 94.90</td><td>29.09 93.60</td><td>21.10 95.53</td></tr><tr><td>DD</td><td>pSEq Stably Matched (%)</td><td>171.27 2.80</td><td>10.52 99.00</td><td>77.36 0.10</td><td>86.38 33.97</td></tr><tr><td>GG</td><td>pSEq Stably Matched (%)</td><td>21.38 97.30</td><td>12.85 98.10</td><td>27.39 98.00</td><td>20.54 97.80</td></tr></table>",
1081
+ "bbox": [
1082
+ 176,
1083
+ 270,
1084
+ 547,
1085
+ 388
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "table",
1091
+ "img_path": "images/8b33aff7b40fdbcc95d4c935f79a4e236250bd5f44bcff9039298f8f0189485b.jpg",
1092
+ "table_caption": [
1093
+ "Table 4: Average SEq ( ) and Bal ( ) at $N = 1 0 0$ . "
1094
+ ],
1095
+ "table_footnote": [],
1096
+ "table_body": "<table><tr><td>100 × 100,UU</td><td>SEq</td><td>Bal</td></tr><tr><td>GS</td><td>1259.39</td><td>1709.53</td></tr><tr><td>PolyMin</td><td>153.35</td><td>952.85</td></tr><tr><td>DACC</td><td>194.65</td><td>988.02</td></tr><tr><td>Power Balance</td><td>49.41</td><td>909.73</td></tr><tr><td>WN-80f/b+Hungarian</td><td></td><td></td></tr><tr><td>pSEqlpBal</td><td>257.99</td><td>1145.36</td></tr><tr><td>SEqiBal</td><td>68.36</td><td>919.75</td></tr><tr><td>Stably Matched (%)</td><td>89.4</td><td>80.8</td></tr></table>",
1097
+ "bbox": [
1098
+ 576,
1099
+ 266,
1100
+ 823,
1101
+ 391
1102
+ ],
1103
+ "page_idx": 8
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Table $3$ shows the results. Remarkably, there is a contrast between the model trained with DD and the others. The model with DD could hardly satisfy the one-to-one stable matching constraint when tested on UU/GG, and resulted in poor ${ p S E q }$ scores. In contrast, the model with GG achieved satisfying ${ p S E q }$ scores on UU/DD. Since GG generates preference lists based on a common preference score $( i / N$ for $i$ -th agent) with noise, agents in GG tend to have similar preference lists (i.e., hard to assign optimally). A model trained with such hard samples works well even for the test samples drawn from other distribution. UU has also performed well owing to its non-biased sampling strategy. On the other hand, DD worst performed due to its highly biased generation strategy. From these results, we confirmed that WeaveNet has certain robustness in the distribution shift as long as training samples are competitive enough. ",
1108
+ "bbox": [
1109
+ 168,
1110
+ 406,
1111
+ 825,
1112
+ 546
1113
+ ],
1114
+ "page_idx": 8
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "5.3 Demonstration with $N = 1 0 0$ ",
1119
+ "text_level": 1,
1120
+ "bbox": [
1121
+ 171,
1122
+ 561,
1123
+ 416,
1124
+ 577
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "We further demonstrate the capability of WeaveNet under a larger size of problem instances, $N = 1 0 0$ In this case, we found that WN-80f and WN-80b failed to yield one-to-one matchings for $1 3 . 4 \\%$ and $1 9 . 8 \\%$ , respectively (see the Table 9 in B.2 for details). To compensate for this problem, we applied the Hungarian algorithm (Kuhn, 1955) to surely binarize $\\hat { m }$ into a one-to-one matching. Table $^ 4$ shows WeaveNet’s relatively good $\\overline { { S E q } }$ and $B a l$ scores. Even with the help of the Hungarian algorithm, they were strongly penalized in ${ p S E q }$ and $p B a l$ due to the poor stable matching rate. In other words, we can potentially fill the large gap by better constraining the output. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 587,
1134
+ 825,
1135
+ 684
1136
+ ],
1137
+ "page_idx": 8
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Since this work is just a pilot study toward a practical differential assignment solver, there is still a lot of space for improvement. The proposed test protocol with stable matching will facilitate it since we can freely adjust the difficulty of the problem to develop and enhance the methods continuously. ",
1142
+ "bbox": [
1143
+ 171,
1144
+ 690,
1145
+ 823,
1146
+ 733
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "6 Conclusion ",
1153
+ "text_level": 1,
1154
+ "bbox": [
1155
+ 166,
1156
+ 752,
1157
+ 299,
1158
+ 768
1159
+ ],
1160
+ "page_idx": 8
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "This paper proposed a novel differential assignment solver, WeaveNet, and an evaluation protocol on two strongly NP-hard variants of stable matching. In the experiments, we demonstrated the advantage of set encoder and the two-stream architecture of Weavenet against the other learning-based methods. These techniques also achieved a better performance than the state-of-the-art algorithmic method when $N = 2 0$ and a comparative performance when $N = 3 0$ . Furthermore, the asymmetric variants, split batch normalization with the side-identifiable code, enabled the method to work even with the strongly biased dataset of UD. We also confirmed that the proposed method does not work at $N = 1 0 0$ , which will be an immediate task for this new field of differential assignment solver. We hope that this work becomes a starting point to open a new vista for real-world assignment problems. ",
1165
+ "bbox": [
1166
+ 169,
1167
+ 782,
1168
+ 825,
1169
+ 909
1170
+ ],
1171
+ "page_idx": 8
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "18 References \n19 Ravindra K Ahuja, Arvind Kumar, Krishna C Jha, and James B Orlin. Exact and heuristic algorithms for the weapon-target assignment problem. Operations research, 55(6):1136–1146, 2007. \n21 Lukas Brozovsky and Vaclav Petricek. Recommender system for online dating service. In Proceedings of Conference Znalosti 2007, Ostrava, 2007. \n23 Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. \n6 Piotr Dworczak. Deferred acceptance with compensation chains. In Proceedings of the 2016 ACM Conference on Economics and Computation, pages 65–66, 2016. \n28 Patrick Emami, Panos M. Pardalos, Lily Elefteriadou, and Sanjay Ranka. Machine learning methods for data association in multi-object tracking. ACM Computing Surveys, 53(4), 2020. \n0 Tomás Feder. A new fixed point approach for stable networks and stable marriages. Journal of Computer and System Sciences, 45(2):233–284, 1992. \n32 Tomás Feder. Stable networks and product graphs. American Mathematical Society, 1995. \n33 David Gale and Lloyd S Shapley. College admissions and the stability of marriage. The American Mathematical Monthly, 69(1):9–15, 1962. \n5 Daniel Gibbons, Cheng-Chew Lim, and Peng Shi. Deep learning for bipartite assignment problems. In Proceedings of IEEE International Conference on Systems, Man and Cybernetics, pages 2318– \n2325, 2019. \n38 Sushmita Gupta, Sanjukta Roy, Saket Saurabh, and Meirav Zehavi. Balanced stable marriage: How close is close enough? In Workshop on Algorithms and Data Structures, pages 423–437, 2019. Dan Gusfield and Robert W Irving. The stable marriage problem: structure and algorithms. MIT press, 1989. \n42 Dan Gusfield. Three fast algorithms for four problems in stable marriage. SIAM Journal on Computing, 16(1):111–128, 1987. \n4 Robert W Irving, Paul Leather, and Dan Gusfield. An efficient algorithm for the “optimal” stable marriage. Journal of the ACM, 34(3):532–543, 1987. \n46 Kazuo Iwama, Shuichi Miyazaki, and Hiroki Yanagisawa. Approximation algorithms for the sexequal stable marriage problem. ACM Transaction on Algorithms, 7(1), 2010. \n48 Akiko Kato. Complexity of the sex-equal stable marriage problem. Japan Journal of Industrial and Applied Mathematics, 10(1):1, 1993. \n0 Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of International Conference on Learning Representations, 2015. \n52 Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83–97, 1955. \n54 Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of AAAI Conference on Artificial Intelligence, pages \n3538–3545, 2018. Shira Li. Deep Learning for Two-Sided Matching Markets. Bachelor’s thesis, Harvard University, \n2019. \n59 Eric McDermid and Robert W Irving. Sex-equal stable matchings: Complexity and exact algorithms. Algorithmica, 68(3):545–570, 2014. \n61 Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In Proceedings of International Conference on Learning Representations, 2020. \nCharles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, July 2017. \nNikolaos Tziavelis, Ioannis Giannakopoulos, Katerina Doka, Nectarios Koziris, and Panagiotis Karras. Equitable stable matchings in quadratic time. In Proceedings of Advances in Neural Information Processing Systems, pages 457–467, 2019. \nKeyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In Proceedings of International Conference on Learning Representations, 2019. \nManzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander J Smola. Deep sets. In Proceedings of Advances in Neural Information Processing Systems, volume 30, pages 3391–3401, 2017. ",
1176
+ "bbox": [
1177
+ 155,
1178
+ 74,
1179
+ 828,
1180
+ 919
1181
+ ],
1182
+ "page_idx": 9
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "",
1187
+ "bbox": [
1188
+ 138,
1189
+ 90,
1190
+ 826,
1191
+ 275
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "374 Checklist ",
1198
+ "text_level": 1,
1199
+ "bbox": [
1200
+ 142,
1201
+ 89,
1202
+ 254,
1203
+ 106
1204
+ ],
1205
+ "page_idx": 11
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "3751. For all authors... ",
1210
+ "bbox": [
1211
+ 142,
1212
+ 116,
1213
+ 287,
1214
+ 130
1215
+ ],
1216
+ "page_idx": 11
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "376 (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contri \n377 butions and scope? [Yes] The experimental results in Section 5 correspond to the main claims, \n378 which are summarized as the contribution list in Section 1 \n379 (b) Did you describe the limitations of your work? [Yes] Our method works best among any \n380 baselines when $N \\leq 2 0$ , comparative to the state-of-the-art algorithmic baseline when $N = 3 0$ , \n381 but poorly when $N = 1 0 0$ . See Section $\\underline { { \\boldsymbol { \\mathsf { F } . 3 } } }$ \n382 (c) Did you discuss any potential negative societal impacts of your work? [Yes] We briefly \n383 discussed the fairness/unfairness achieved by our method in the paragraph “Asymmetric variant \n384 with split batch normalization” in Section $4 . 1 .$ Namely, the asymmetric variant can better \n385 optimize the objective than the symmetric one (which ensures mathematically equal treatment \n386 for sides $A$ and $B$ ) but harms the equal treatment of the two sides. \n387 (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? \n388 [Yes] ",
1221
+ "bbox": [
1222
+ 148,
1223
+ 136,
1224
+ 826,
1225
+ 323
1226
+ ],
1227
+ "page_idx": 11
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "3892. If you are including theoretical results... ",
1232
+ "bbox": [
1233
+ 143,
1234
+ 327,
1235
+ 439,
1236
+ 342
1237
+ ],
1238
+ "page_idx": 11
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] We have no main theoretical results. The only theoretical discussion is for the computational cost of WeaveNet in A.2, whose assumption is the network shape explained in the paper. \n(b) Did you include complete proofs of all theoretical results? [N/A] We have no main theoretical results. The only theoretical discussion is for the computational cost of WeaveNet in $\\mathbf { A } . 2 ,$ where we provided enough detailed explanation as a proof. ",
1243
+ "bbox": [
1244
+ 158,
1245
+ 345,
1246
+ 825,
1247
+ 431
1248
+ ],
1249
+ "page_idx": 11
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "3963. If you ran experiments... ",
1254
+ "bbox": [
1255
+ 142,
1256
+ 435,
1257
+ 339,
1258
+ 450
1259
+ ],
1260
+ "page_idx": 11
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We have included it in the supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] We described the training details in Section 5 “Training protocol” and Section A.5. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We presented figures with the error bars in Section ${ \\bf A . } 4$ of the appendix, which demonstrated the stable behavior of the proposed method against the random seed. For the other part, we have multiple settings, and we observed a stable trend in the results. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We described it in the appendix, Section C. ",
1265
+ "bbox": [
1266
+ 178,
1267
+ 454,
1268
+ 825,
1269
+ 628
1270
+ ],
1271
+ "page_idx": 11
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "4094. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1276
+ "bbox": [
1277
+ 143,
1278
+ 632,
1279
+ 774,
1280
+ 647
1281
+ ],
1282
+ "page_idx": 11
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "410 (a) If your work uses existing assets, did you cite the creators? [Yes] See Section C in the appendix. \n411 (b) Did you mention the license of the assets? [Yes] See Section C. \n412 (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We \n413 provides a code to random-generate the problem instances, which contains no personal or any \n414 other sensitive information, but only the distribution parameters of the LibimSeti dataset. \n415 (d) Did you discuss whether and how consent was obtained from people whose data you’re \n416 using/curating? [Yes] See Section C. \n417 (e) Did you discuss whether the data you are using/curating contains personally identifiable \n418 information or offensive content? [Yes] See Section C. ",
1287
+ "bbox": [
1288
+ 138,
1289
+ 650,
1290
+ 826,
1291
+ 786
1292
+ ],
1293
+ "page_idx": 11
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "4195. If you used crowdsourcing or conducted research with human subjects... ",
1298
+ "bbox": [
1299
+ 143,
1300
+ 790,
1301
+ 651,
1302
+ 805
1303
+ ],
1304
+ "page_idx": 11
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "420 (a) Did you include the full text of instructions given to participants and screenshots, if applicable? \n421 [N/A] We used neither crowd-sourcing nor human subjects. \n422 (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) \n423 approvals, if applicable? [N/A] \n424 (c) Did you include the estimated hourly wage paid to participants and the total amount spent on \n425 participant compensation? [N/A] ",
1309
+ "bbox": [
1310
+ 140,
1311
+ 809,
1312
+ 826,
1313
+ 898
1314
+ ],
1315
+ "page_idx": 11
1316
+ }
1317
+ ]
parse/train/2rAiDBJgR_/2rAiDBJgR__middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/2rAiDBJgR_/2rAiDBJgR__model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJe-unNYPr/BJe-unNYPr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJe-unNYPr/BJe-unNYPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJe-unNYPr/BJe-unNYPr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJe-unNYPr/BJe-unNYPr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByQpn1ZA-/ByQpn1ZA-.md ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MANY PATHS TO EQUILIBRIUM: GANS DO NOT NEED TO DECREASE A DIVERGENCE AT EVERY STEP
2
+
3
+ William Fedus∗ 1, Mihaela Rosca∗ 2, Balaji Lakshminarayanan2, Andrew M. Dai1, Shakir Mohamed2 and Ian Goodfellow1
4
+
5
+ 1Google Brain
6
+ 2DeepMind
7
+
8
+ # ABSTRACT
9
+
10
+ Generative adversarial networks (GANs) are a family of generative models that do not minimize a single training criterion. Unlike other generative models, the data distribution is learned via a game between a generator (the generative model) and a discriminator (a teacher providing training signal) that each minimize their own cost. GANs are designed to reach a Nash equilibrium at which each player cannot reduce their cost without changing the other players’ parameters. One useful approach for the theory of GANs is to show that a divergence between the training distribution and the model distribution obtains its minimum value at equilibrium. Several recent research directions have been motivated by the idea that this divergence is the primary guide for the learning process and that every step of learning should decrease the divergence. We show that this view is overly restrictive. During GAN training, the discriminator provides learning signal in situations where the gradients of the divergences between distributions would not be useful. We provide empirical counterexamples to the view of GAN training as divergence minimization. Specifically, we demonstrate that GANs are able to learn distributions in situations where the divergence minimization point of view predicts they would fail. We also show that gradient penalties motivated from the divergence minimization perspective are equally helpful when applied in other contexts in which the divergence minimization perspective does not predict they would be helpful. This contributes to a growing body of evidence that GAN training may be more usefully viewed as approaching Nash equilibria via trajectories that do not necessarily minimize a specific divergence at each step.
11
+
12
+ # 1 INTRODUCTION
13
+
14
+ Generative adversarial networks (GANs) (Goodfellow et al., 2014) are generative models based on a competition between a generator network $G$ and a discriminator network $D$ . The generator network $G$ represents a probability distribution $p _ { \mathrm { m o d e l } } ( { \pmb x } )$ . To obtain a sample from this distribution, we apply the generator network to a noise vector $_ { z }$ sampled from $p _ { z }$ , that is $\pmb { x } = G ( \pmb { z } )$ . Typically, $_ { z }$ is drawn from a Gaussian or uniform distribution, but any distribution with sufficient diversity is possible. The discriminator $D ( \pmb { x } )$ attempts to distinguish whether an input value $_ { \textbf { \em x } }$ is real (came from the training data) or fake (came from the generator).
15
+
16
+ The goal of the training process is to recover the true distribution $p _ { \mathrm { d a t a } }$ that generated the data. Several variants of the GAN training process have been proposed. Different variants of GANs have been interpreted as approximately minimizing different divergences or distances between $p _ { \mathrm { d a t a } }$ and $p _ { \mathrm { m o d e l } }$ . However, it has been difficult to understand whether the improvements are caused by a change in the underlying divergence or the learning dynamics.
17
+
18
+ We conduct several experiments to assess whether the improvements associated with new GAN methods are due to the reasons cited in their design motivation. We perform a comprehensive study of GANs on simplified, synthetic tasks for which the true $p _ { \mathrm { d a t a } }$ is known and the relevant distances are straightforward to calculate, to assess the performance of proposed models against baseline methods. We also evaluate GANs using several independent evaluation measures on real data to better understand new approaches. Our contributions are:
19
+
20
+ • We aim to clarify terminology used in recent papers, where the terms “standard GAN,” “regular GAN,” or “traditional GAN” are used without definition (e.g., (Arjovsky et al., 2017; Denton et al., 2015; Salimans et al., 2016; Donahue et al., 2016)). The original GAN paper described two different losses: the “minimax” loss and the “non-saturating” loss, equations (10) and (13) of Goodfellow (2016), respectively. Recently, it has become important to clarify this terminology, because many of the criticisms of “standard GANs”, e.g. Arjovsky et al. (2017), are applicable only to the minimax GAN, while the non-saturating GAN is the standard for GAN implementations. The non-saturating GAN was recommended for use in practice and implemented in the original paper of Goodfellow et al. (2014), and is the default in subsequent papers (Radford et al., 2015; Salimans et al., 2016; Donahue et al., 2016; Nowozin et al., 2016)1. To avoid confusion we will always indicate whether we mean minimax GAN (M-GAN) or non-saturating GAN (NS-GAN). We demonstrate that gradient penalties designed in the divergence minimization framework— to improve Wasserstein GANs (Gulrajani et al., 2017) or justified from a game theory perspective to improve minimax GANs (Kodali et al., 2017)—also improve the non-saturating GAN on both synthetic and real data. We observe improved sample quality and diversity. We find that non-saturating GANs are able to fit problems that cannot be fit by JensenShannon divergence minimization. Specifically, Figure 1 shows a GAN using the loss from the original non-saturating GAN succeeding on a task where the Jensen-Shannon divergence provides no useful gradient. Figure 2 shows that the non-saturating GAN does not suffer from vanishing gradients when applied to two widely separated Gaussian distributions.
21
+
22
+ # 2 VARIANTS OF GENERATIVE ADVERSARIAL NETWORKS
23
+
24
+ # 2.1 NON-SATURATING AND MINIMAX GANS
25
+
26
+ In the original GAN formulation (Goodfellow et al., 2014), the output of the discriminator is a probability and the cost function for the discriminator is given by the negative log-likelihood of the binary discrimination task of classifying samples as real or fake:
27
+
28
+ $$
29
+ \begin{array} { r } { J ^ { ( D ) } ( D , G ) = - \underset { x \sim p _ { \mathrm { d a t a } } } { \mathbb { E } } \left[ \log D ( \pmb { x } ) \right] - \underset { z \sim p _ { z } } { \mathbb { E } } \left[ \log ( 1 - D ( G ( z ) ) ) \right] . } \end{array}
30
+ $$
31
+
32
+ The theoretical analysis in (Goodfellow et al., 2014) is based on a zero-sum game in which the generator maximizes $J ^ { ( D ) }$ , a situation that we refer to here as “minimax GANs”. In minimax GANs the generator attempts to generate samples that have low probability of being fake, by minimizing the objective (2). However, in practice, Goodfellow et al. (2014) recommend implementing an alternative cost function that instead ensures that generated samples have high probability of being real, and the generator instead minimizes an alternative objective (3).
33
+
34
+ $$
35
+ \begin{array} { r l } { \mathbf { M i n i m a x } } & { \boldsymbol { J } ^ { ( G ) } ( G ) = \underset { \boldsymbol { z } \sim p _ { \boldsymbol { z } } } { \mathbb { E } } \log [ 1 - D ( G ( \boldsymbol { z } ) ) ] . } \\ { \mathbf { N o n - s a t u r a t i n g } } & { \boldsymbol { J } ^ { ( G ) } ( G ) = \underset { \boldsymbol { z } \sim p _ { \boldsymbol { z } } } { - } \log \boldsymbol { D } ( G ( \boldsymbol { z } ) ) . } \end{array}
36
+ $$
37
+
38
+ We refer to the alternative objective as non-saturating, due to the non-saturating behavior of the gradient (see figure 2), and was the implementation used in the code of the original paper. We use the non-saturating objective (3) in all our experiments
39
+
40
+ As shown in (Goodfellow et al., 2014), whenever $D$ successfully minimizes $J ^ { ( D ) }$ optimally, maximizing $J ^ { ( D ) }$ with respect to the generator is equivalent to minimizing the Jensen-Shannon divergence. Goodfellow et al. (2014) use this observation to establish that there is a unique Nash equilibrium in function space corresponding to $p _ { \mathrm { d a t a } } = p _ { \mathrm { m o d e l } }$ .
41
+
42
+ # 2.2 WASSERSTEIN GAN
43
+
44
+ Wasserstein GANs (Arjovsky et al., 2017) modify the discriminator to emit an unconstrained real number rather than a probability (analogous to emitting the logits rather than the probabilities used in the original GAN paper). The cost function for the WGAN then omits the log-sigmoid functions used in the original GAN paper. The cost function for the discriminator is now:
45
+
46
+ $$
47
+ \begin{array} { r } { W ^ { ( D ) } ( D , G ) = \underset { \pmb { x } \sim p _ { \mathrm { d a t a } } } { \mathbb { E } } \left[ D ( \pmb { x } ) \right] - \underset { \pmb { z } \sim p _ { \pmb { z } } } { \mathbb { E } } \left[ D ( G ( \pmb { z } ) ) \right] . } \end{array}
48
+ $$
49
+
50
+ The cost function for the generator is simply $W ^ { ( G ) } = - W ^ { ( D ) } ( D , G )$ . When the discriminator is Lipschitz smooth, this approach approximately minimizes the earth mover’s distance between pdata and $p _ { \mathrm { m o d e l } }$ . To enforce Lipschitz smoothness, the weights of $D$ are clipped to lie within $( - c , c )$ where $c$ is some small real number.
51
+
52
+ # 2.3 GRADIENT PENALTIES FOR GENERATIVE ADVERSARIAL NETWORKS
53
+
54
+ Multiple formulations of gradient penalties have been proposed for GANs. As introduced in WGANGP (Gulrajani et al., 2017), the gradient penalty is justified from the perspective of the Wasserstein distance, by imposing properties which hold for an optimal critic as an additional training criterion. In this approach, the gradient penalty is typically a penalty on the gradient norm, and is applied on a linear interpolation between data points and samples, thus smoothing out the space between the two distributions.
55
+
56
+ Kodali et al. (2017) introduce DRAGAN with a gradient penalty from the perspective of regret minimization, by setting the regularization function to be a gradient penalty on points around the data manifold, as in Follow The Regularized Leader (Cesa-Bianchi & Lugosi, 2006), a standard no-regret algorithm. This encourages the discriminator to be close to linear around the data manifold, thus bringing the set of possible discriminators closer to a convex set, the set of linear functions. We also note that they used the minimax version of the game to define the loss, in which the generator maximizes $J ^ { ( D ) }$ rather than minimizing $J ^ { ( G ) }$ .
57
+
58
+ To formalize the above, both proposed gradient penalties of the form:
59
+
60
+ $$
61
+ \underset { \hat { x } \sim p _ { \hat { x } } } { \mathbb { E } } \left[ ( \| \nabla _ { \hat { x } } D ( \hat { x } ) \| _ { 2 } - 1 ) ^ { 2 } \right] ,
62
+ $$
63
+
64
+ where $p _ { \hat { x } }$ is defined as the distribution defined by the sampling process:
65
+
66
+ $$
67
+ x \sim p _ { \mathrm { d a t a } } ; \qquad x _ { \mathrm { m o d e l } } \sim p _ { \mathrm { m o d e l } } ; \qquad x _ { \mathrm { n o i s e } } \sim p _ { \mathrm { n o i s e } }
68
+ $$
69
+
70
+ $$
71
+ \begin{array} { c l c r } { { \alpha \sim U ( 0 , 1 ) } } \\ { { \hat { x } = \alpha x + ( 1 - \alpha ) \tilde { x } . } } \end{array}
72
+ $$
73
+
74
+ As we will note in our experimental section, Kodali et al. (2017) also reported that mode-collapse is reduced using their version of the gradient penalty.
75
+
76
+ # 2.3.1 NON-SATURATING GAN WITH GRADIENT PENALTY
77
+
78
+ We consider the non-saturating GAN objective (3) supplemented by two gradient penalties: the penalty proposed by Gulrajani et al. (2017), which we refer to as “GAN-GP”; the gradient penalty proposed by DRAGAN (Kodali et al., 2017), which we refer to as DRAGAN-NS, to emphasize that we use the non-saturating generator loss function. In both cases, the gradient penalty applies only to the discriminator, with the generator loss remaining unchanged (as defined in Equation 3). In this setting, the loss of the discriminator becomes:
79
+
80
+ ![](images/c345cd545745234de5c42fbdca6bc4c7cc41d9e5674043d0e483861441be6be1.jpg)
81
+ Figure 1: Visualization of experiment 1 training dynamics in two dimensions, demonstrated specifically in the case where the model is initialized so that it it represents a linear manifold parallel to the linear manifold of the training data. Here the GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). Specifically, this is an illustration of the parallel line thought experiment from (Arjovsky et al., 2017). When run in practice with a non-saturating GAN, the GAN succeeds. In the same setting, minimization of Jensen-Shannon divergence would fail. This indicates that while Jensen-Shannon divergence is useful for characterizing GAN equilibrium, it does not necessarily tell us much about non-equilibrium learning dynamics.
82
+
83
+ $$
84
+ \tilde { J } ^ { ( D ) } ( D , G ) = - \underset { x \sim p _ { \mathrm { d a t a } } } { \mathbb { E } } \left[ \log D ( x ) \right] - \underset { z \sim p _ { z } } { \mathbb { E } } \left[ \log ( 1 - D ( G ( z ) ) ) \right] + \lambda \underset { \hat { x } \sim p _ { \hat { \alpha } } } { \mathbb { E } } \left[ ( \lVert \nabla _ { \hat { x } } D ( \hat { x } ) \rVert _ { 2 } - 1 ) ^ { 2 } \right]
85
+ $$
86
+
87
+ We consider these GAN variants because:
88
+
89
+ • We want to assess whether gradient penalties are effective outside their original defining scope. Namely, we perform experiments to determine whether the benefit obtained by applying the gradient penalty for Wasserstein GANs is obtained from properties of the earth mover’s distance, or from the penalty itself. Similarly, we evaluate whether the DRAGAN gradient penalty is beneficial outside the minimax GAN setting.
90
+ • We want to assess whether the exact form of the gradient penalty matters.
91
+ We compare three models, to control over different aspects of training: same gradient penalty but different underlying adversarial losses (GAN-GP versus WGAN-GP), as well as the same underlying adversarial loss, but different gradient penalties (GAN-GP versus DRAGAN-NS).
92
+
93
+ We note that we do not compare with the original DRAGAN formulation, which uses the minimax GAN formulation, since in this work we focus on non-saturating GAN variants.
94
+
95
+ # 3 MANY PATHS TO EQUILIBRIUM
96
+
97
+ The original GAN paper (Goodfellow et al., 2014) used the correspondence between $J ^ { ( D ) } ( D ^ { * } , G )$ and the Jensen-Shannon divergence to characterize the Nash equilibrium of minimax GANs. It is important to keep in mind that there are many ways for the learning process to approach this equilibrium point, and the majority of them do not correspond to gradually reducing the JensenShannon divergence at each step. Divergence minimization is useful for understanding the outcome of training, but GAN training is not the same thing as running gradient descent on a divergence and GAN training may not encounter the same problems as gradient descent applied to a divergence.
98
+
99
+ Arjovsky et al. (2017) describe the learning process of GANs from the perspective of divergence minimization and show that the Jensen-Shannon divergence is unable to provide a gradient that will bring $p _ { \mathrm { d a t a } }$ and $p _ { \mathrm { m o d e l } }$ together if both are sharp manifolds that do not overlap early in the learning process. Following this line of reasoning, they suggest that when applied to probability distributions that are supported only on low dimensional manifolds, the Kullback Leibler (KL), Jensen Shannon (JS) and Total Variation (TV) divergences do not provide a useful gradient for learning algorithms based on gradient descent, the “traditional GANs” is inappropriate for fitting such low dimensional manifolds (“traditional GAN” seems to refer to the minimax version of GANs used for theoretical analysis in the original paper, and there is no explicit statement about whether the argument is intended to apply to the non-saturating GAN implemented in the code accompanying the original GAN paper). In Section 4 we show that non-saturating GANs are able to learn on tasks where the data distribution lies on the low dimensional manifold.
100
+
101
+ ![](images/e40fa277017297d4a93812edd2dc820808d2dc596cb8741b91762c1344aef944.jpg)
102
+ Figure 2: (Left) A recreation of Figure 2 of Arjovsky et al. (2017). This figure is used by Arjovsky et al. (2017) to show that a model they call the “traditional GAN” suffers from vanishing gradients in the areas where $D ( x )$ is flat. This plot is correct if “traditional GAN” is used to refer to the minimax GAN, but it does not apply to the non-saturating GAN. (Right) A plot of both generator losses from the original GAN paper, as a function of the generator output. Even when the model distribution is highly separated from the data distribution, non-saturating GANs are able to bring the model distribution closer to the data distribution because the loss function has strong gradient when the generator samples are far from the data samples, even when the discriminator itself has nearly zero gradient. While it is true that the $\begin{array} { r } { \frac { 1 } { 2 } \log ( 1 - D ( x ) ) } \end{array}$ loss has a vanishing gradient on the right half of the plot, the original GAN paper instead recommends implementing $- { \frac { 1 } { 2 } } \log D ( x )$ . This latter, recommended loss function has a vanishing gradient only on the left side of the plot. It makes sense for the gradient to vanish on the left because generator samples in that area have already reached the area where data samples lie.
103
+
104
+ We show that non-saturating GANs do not suffer from vanishing gradients for two widely separated Gaussians in Figure 2. The fact that the gradient of the recommended loss does not actually vanish explains why GANs with the non-saturating objective (3), are able to bring together two widely separated Gaussian distributions. Note that the gradient for this loss does not vanish even when the discriminator is optimal. The discriminator has vanishing gradients but the generator loss amplifies small differences in discriminator outputs to recover strong gradients. This means it is possible to train the GAN by changing the loss rather than the discriminator.
105
+
106
+ For the parallel lines thought experiment (Arjovsky et al., 2017) (see Figure 1), the main problem with the Jensen-Shannon divergence is that it is parameterized in terms of the density function, and the two density functions have no support in common. Most GANs, and many other models, can solve this problem by parameterizing their loss functions in terms of samples from the two distributions rather than in terms of their density functions.
107
+
108
+ # 4 SYNTHETIC EXPERIMENTS
109
+
110
+ To assess the learning process of GANs we empirically examine GAN training on pathological tasks where the data is constructed to lie on a low dimensional manifold, and show the model is able to learn the data distribution in cases where using the underlying divergence obtained at optimality would not provide useful gradients. We then evaluate convergence properties of common GAN variants on this task where the parameters generating the distribution are known.
111
+
112
+ # 4.1 EXPERIMENT I: 1-D DATA MANIFOLD AND 1-D GENERATOR
113
+
114
+ In our first experiment, we generate synthetic training data that lies along a one-dimensional line and design a one-dimensional generative model, however, we embed the problem in a higher $d .$ - dimensional space where $d \gg 1$ . This experiment is essentially an implementation of a thought experiment from Arjovsky et al. (2017).
115
+
116
+ Specifically, in a $d$ -dimensional space, we define $p _ { \mathrm { d a t a } }$ by randomly generating parameters defining the distribution once at the beginning of the experiment. We generate a random $b _ { r } \in \mathbb { R } ^ { d }$ and random $W _ { r } \in \mathbb { R } ^ { 1 \times d }$ . Our latent $z _ { r } \in \mathbb { R } \sim N ( 0 , \sigma )$ where $\sigma$ is the standard deviation of the normal distribution. The synthetic training data of $m$ examples is then given by
117
+
118
+ $$
119
+ \{ x ^ { ( i ) } \} _ { i = 1 } ^ { m } = \{ z _ { r } ^ { ( i ) } \} _ { i = 1 } ^ { m } W _ { r } + b _ { r }
120
+ $$
121
+
122
+ The real synthetic data is therefore Gaussian distributed on a 1-D surface within the space, where the position is determined by $b _ { r }$ and the orientation is determined by $W _ { r }$ .
123
+
124
+ The generator also assumes the same functional form, that is, it is also intrinsically one dimensional,
125
+
126
+ $$
127
+ G _ { \theta } ( z ) = z W _ { \theta } + b _ { \theta }
128
+ $$
129
+
130
+ where $b _ { \theta } \in \mathbb { R } ^ { d }$ and $W _ { \theta } \in \mathbb { R } ^ { 1 \times d }$ . The discriminator is a single hidden layer ReLU network, which is of higher complexity than the generator so that it may learn non-linear boundaries in the space.
131
+
132
+ This experiment captures the idea of sharp, non-overlapping manifolds that motivate alternative GAN losses. Further, because we know the true generating parameters of the training data, we may explicitly test convergence properties of the various methodologies.
133
+
134
+ # 4.2 EXPERIMENT II: 1-D DATA MANIFOLD AND OVERCOMPLETE GENERATOR
135
+
136
+ In our second experiment, the synthetic training data is still the same (lying on a 1-D line) and given by Eq. 11 but now the generator is overcomplete for this task, and has a higher latent dimension $g$ , where $1 < g \le d$ .
137
+
138
+ $$
139
+ G ( z ) = z W _ { \theta } + b _ { \theta }
140
+ $$
141
+
142
+ where matrix $W _ { \theta } \in \mathbb { R } ^ { g \times d }$ and vector $b _ { \theta } \in \mathbb { R } ^ { d }$ , so that the generator is able to represent a manifold with too high of a dimensionality. The generator parameterizes a multivariate Gaussian $N ( x ; \mu , \Sigma )$ with $\mu = b$ . The covariance matrix elements $\dot { \Sigma _ { i j } } = E [ \sigma ^ { 2 } ( X _ { i } - \mu _ { i } ) ( X _ { j } - \mu _ { j } ) ] = \sigma ^ { 2 } \dot { E } [ ( X _ { i } -$ $\mu _ { i } ) ( X _ { j } - \mu _ { j } ) ]$ . In vector notation, $\Sigma = \sigma ^ { 2 } W ^ { T } W$ .
143
+
144
+ # 4.3 RESULTS
145
+
146
+ To evaluate the convergence of an experimental trial, we report the square Fréchet distance (Fréchet (1957)) between the true data Gaussian distribution and the fitted Gaussian parameters. In our notation, where the $r$ subscript denotes real data, the $\theta$ subscript denotes the generator Gaussian parameters and $\| x \| ^ { 2 }$ is the squared $l _ { 2 }$ norm of $x$ , the Fréchet distance is defined as (Dowson $\&$ Landau (1982)):
147
+
148
+ $$
149
+ d ^ { 2 } ( \mu _ { r } , \mu _ { \theta } , \Sigma _ { r } , \Sigma _ { \theta } ) = \| \mu _ { \theta } - \mu _ { r } \| ^ { 2 } + \mathrm { T r } \left( \Sigma _ { r } + \Sigma _ { \theta } - 2 ( \Sigma _ { r } \Sigma _ { \theta } ) ^ { - 1 / 2 } \right)
150
+ $$
151
+
152
+ Every GAN variant was trained for 200000 steps. For each step, the generator is updated once and the discriminator is updated 5 times. Throughout the paper, the number of steps will correspond to the number of generator updates.
153
+
154
+ The main conclusions from our synthetic data experiments are:
155
+
156
+ • Gradient penalties (both applied near the data manifold, DRAGAN-NS, and at an interpolation between data and samples, GAN-GP) stabilize training and improve convergence (Figures 3, 9, 10).
157
+ Despite the inability of Jensen-Shannon divergence minimization to solve this problem, we find that the non-saturating GAN succeeds in converging to the 1D data manifold (Figure 3). However, in higher dimensions the resulting fit is not as strong as the other methods: Figure 10 shows that increasing the number of dimensions while keeping the learning rate fixed can decrease the performance of the non-saturating GAN model.
158
+ Non-saturating GANs are able to learn data distributions which are disjoint from the training sample distribution at initialization (or another point in training), as demonstrated in Figure 1.
159
+ Updating the discriminator 5 times per generator update does not result in vanishing gradients when using the non-saturating cost. However, when scaling the number of discriminator updates to 100 per generator update, non-saturating GANs perform worse than when using a smaller number of updates (1, 5, 10). Gradient penalties help here too: GAN-GP scales better with the number of discriminator updates. The results are detailed in Appendix Section A.2.
160
+ • An over-capacity generator with the ability to have more directions of high variance than the underlying data is able to capture the data distribution using non-saturating GAN training (Figure 4).
161
+
162
+ # 4.4 HYPERPARAMETER SENSITIVITY
163
+
164
+ We assess the robustness of the considered models by looking at results across hyperparameters for both experiment 1 and experiment 2. In one setting, we keep the input dimension fixed while varying the learning rate (Figure 9); in another setting, we keep the learning rate fixed, while varying the input dimension (Figure 10). In both cases, the results are averaged out over 1000 runs per setting, each starting from a different random seed. We notice that:
165
+
166
+ • The non-saturating GAN model (with no gradient penalty) is most sensitive to hyperparameters.
167
+ • Gradient penalties make the non-saturating GAN model more robust.
168
+ • Both Wasserstein GAN formulations are quite robust to hyperparameter changes.
169
+ • For certain hyperparameter settings, there is no performance difference between the two gradient penalties for the non-saturating GAN, when averaging across random seeds. This is especially visible in Experiment 1, when the number of latent variables is 1. This could be due to the fact that the data sits on a low dimensional manifold, and because the discriminator is a small, shallow network.
170
+
171
+ # 5 REAL DATA EXPERIMENTS
172
+
173
+ To assess the effectiveness of the gradient penalty on standard datasets for the non-saturating GAN formulation, we train a non-saturating GAN, a non-saturating GAN with the gradient penalty introduced by (Gulrajani et al., 2017) (denoted by GAN-GP), a non-saturating GAN with the gradient penalty introduced by (Kodali et al., 2017) (denoted by DRAGAN-NS), and a Wasserstein GAN with gradient penalty (WGAN-GP) on three datasets: Color MNIST (Metz et al., 2016) - data dimensionality (28, 28, 3), CelebA (Liu et al., 2015) - data dimensionality (64, 64, 3) and CIFAR-10 (Krizhevsky, 2009) - data dimensionality (32, 32, 3), as seen in Figure 6.
174
+
175
+ For all our experiments we used $\lambda = 1 0$ as the gradient penalty coefficient and used batch normalization (Ioffe & Szegedy, 2015); Kodali et al. (2017) suggests that batch normalization is not neeeded for DRAGAN, but we found that it also improved our DRAGAN-NS results. We used the Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0 . 5$ and $\beta _ { 2 } = 0 . 9$ and a batch size of 64. The input data was scaled to be between -1 and 1. We did not add any noise to the discriminator inputs or activations, as that regularization technique can be interpreted as having the same goal as gradient penalties, and we wanted to avoid a confounding factor. We trained all Color MNIST models for 100000 steps, and CelebA and CIFAR-10 models for 200000 steps. We note that the experimental results on real data for the non-saturating GAN and for the Improved Wasserstein GAN (WGAN-GP) are quoted with permission from an earlier publication by Rosca et al. (2017).
176
+
177
+ ![](images/73c9856186ab835d1a3a36f708d693d9fd5a76f7a8243f278a7290805ca7a30a.jpg)
178
+ Figure 3: Visualization of experiment 1 training dynamics in two dimensions. Here the GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). We note that this is a visual illustration, and the results have not been averaged out over multiple seeds. Exact plots may vary on different runs. However, a single example of success is sufficient to refute claims that this this task is impossible for this model.
179
+
180
+ We note that the WGAN-GP model was the only model for which we did 5 discriminator updates in real data experiments. All other models (DCGAN, DRAGAN-NS, GAN-GP) used one discriminator update for generator update.
181
+
182
+ For all reported results, we sweep over two hyperparameters:
183
+
184
+ • Learning rates for the discriminator and generator. Following Radford et al. (2015), we tried learning rates of 0.0001, 0.0002, 0.0003 for both the discriminator and the generator. We note that this is consistent with WGAN-GP, where the authors use 0.0002 for CIFAR-10 experiments.
185
+ • Number of latents. For CelebA and CIFAR-10 we try latent sizes 100, 128 and 150, while for Color MNIST we try 10, 50, 75.
186
+
187
+ ![](images/547232301dbc7de185f58c14971f802086c3adeab0c20de259ecfbeebc49be2b.jpg)
188
+ Figure 4: Visualization of experiment 2 training dynamics in two dimensions - where the GAN model has 3 latent variables. Here the rank one GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). We observe how for poor initialization the non-saturating GAN suffers from mode collapse. However, adding a gradient penalty stabilizes training. We note that this is a visual illustration, and the results have not been averaged out over multiple seeds. Exact plots may vary on different runs.
189
+
190
+ # 5.1 EVALUATION
191
+
192
+ Unlike the synthetic case, here we are unable to evaluate the performance of our models relative to the true solution, since that is unknown. Moreover, there is no single metric that can evaluate the performance of GANs. We thus complement visual inspection with three metrics, each measuring a different criteria related to model performance. We use the Inception Score (Salimans et al., 2016) to measure how visually appealing CIFAR-10 samples are, the MS-SSIM metric (Wang et al., 2003; Odena et al., 2016) to check sample diversity, and an Improved Wasserstein independent critic to assess overfitting, as well as sample quality (Danihelka et al., 2017). For a more detailed explanation of these metrics, we refer to Rosca et al. (2017). In all our experiments, we control over discriminator and generator architectures, using the ones used by DCGAN (Radford et al., 2015) and the original WGAN paper (Arjovsky et al., 2017)2. We note that the WGAN-GP paper used a different architecture when reporting the Inception Score on CIFAR10, and thus their results are not directly comparable.
193
+
194
+ For all the metrics, we report both the hyperparameter sensitivity of the model (by showing quartile statistics), as well as the 10 best results according to the metric. The sample diversity measure needs to be seen in context with the value reported on the test set: too high diversity can mean failure to capture the data distribution. For all other metrics, higher is better.
195
+
196
+ ![](images/e194aa4cd2fbbf76bd867f710668fca21af89252d739a0c91ca2ce2faff9625d.jpg)
197
+ Figure 5: The square Fréchet distance between the learned Gaussian and the true Gaussian distribution. For reference, we also plot the distance obtained by a randomly initialized generator with the same architecture as the trained generators. Results are averaged over 1000 runs. Lower values are better.
198
+
199
+ ![](images/90a54d4069466c009ace763dbd8f1d757d7480e357df414e3d53e2c58276309b.jpg)
200
+ Figure 6: Examples from the three datasets explored in this paper: Color MNIST (left), CIFAR-10 (middle) and CelebA (right).
201
+
202
+ # 5.2 VISUAL SAMPLE INSPECTION
203
+
204
+ By visually inspecting the results of our models, we noticed that applying gradient penalties to the non-saturating GAN results in more stable training across the board. When training the non-saturating GAN with no gradient penalty, we did observe cases of severe mode collapse (see Figure 17). Gradient penalties improves upon that, but we can still observe mode collapse. Each non-saturating GAN variant with gradient penalty (DRAGAN-NS and GAN-GP) only produced mode collapse on one dataset, see Figure 21). We also noticed that for certain learning rates, WGAN-GPs fail to learn the data distribution (Figure 22). For the GAN-GP and DRAGAN-NS models, most hyperparameters produced samples of equal quality - the models are quite robust. We show samples from the GAN-GP, DRAGAN-NS and WGAN-GP models in Figures 18, 19 and 20.
205
+
206
+ # 5.3 METRICS
207
+
208
+ We show that gradient penalties make non-saturating GANs more robust to hyperparameter changes. For this, we report not only the best obtained results, but rather a box plot of the obtained results showing the quartiles obtained by each sweep, along with the top 10 best results explicitly shown in the graph (note that for each model we tried 27 different hyperparameter settings, corresponding to 3 discriminator learning rates, 3 generator learning rates and 3 generator input sizes). We report two Inception Score metrics for CIFAR-10, one using the standard Inception network used when the metric was introduced (Salimans et al., 2016), trained on the Imagenet dataset, as well as a VGG style network trained on CIFAR-10 (for details on the architecture, we refer the reader to Rosca et al. (2017)). We report the former to be compatible with existing literature, and the latter to obtain a more meaningful metric, since the network doing the evaluation was trained on the same dataset as the one we evaluate, hence the learned features will be more relevant for the task at hand. When reporting sample diversity, we subtract the average pairwise image similarity (as reported by MS-SSIM) computed as the mean of the similarity of every pair of images from 5 batches from the test set. Note that we can only apply this measure to CelebA, since for datasets such as CIFAR-10 different classes are represented by very different images, making this metric meaningless across class borders. Since our models are completely unsupervised, we do not compute the similarity across samples of the same class as in (Odena et al., 2016). The Inception Score and sample diversity metric results can be seen in Figure 8. The results obtained using the Independent Wasserstein critic on all datasets can be found in Figure 7.
209
+
210
+ # 5.4 KEY TAKEAWAYS FROM REAL DATA EXPERIMENTS
211
+
212
+ When analyzing the results obtained by training non-saturating GANs using gradient penalties (GAN-GP and DRAGAN-NS), we notice that:
213
+
214
+ • Both gradient penalties help when training non-saturating GANs, by making the models more robust to hyperparameters.
215
+ • On CelebA, for various hyperparameter settings WGAN-GP fails to learn the data distribution and produces samples that do not look like faces (Figure 22). This results in a higher sample diversity than the reference diversity obtained on the test set, as reported by our diversity metric - see Figure 8(a) which compares sample diversity for the considered models across hyperparameters. The same figure shows that for most hyperparameter values, the WGAN-GP model produces higher diversity than the one obtained on the test set (indicating failure to capture the data distribution), while for most hyperparameters non-saturating GAN variants produce samples with lower diversity than that of the test set (indicating mode collapse). However, WGAN-GP is closer to the reference value for more hyperparameters, compared to the non-saturating GAN variants.
216
+ Even if we are only interested in the best results (without looking across the hyperparameter sweep), we see that the gradient penalties tend to improve results for non-saturating GANs.
217
+
218
+ ![](images/1bc94b416f45cc9e9848171fd1c2a5d27a8d505e6d2de9bb5188957904e36d39.jpg)
219
+ Figure 7: Negative Wasserstein distance estimated using an independent Wasserstein critic on the three datasets we evaluate on. The metric captures overfitting to the training data and low quality samples. Higher is better; the 10 black dots represent the results obtained with the 10 best hyperparameter settings.
220
+
221
+ ![](images/293c7484f28ca209e7e830b20f89bbd97a442331074e43ceb8dad2dc506c17fd.jpg)
222
+ Figure 8: Left plot shows sample diversity results on CelebA. It is important to look at this measure relative to the measure on the test set: too much diversity can mean failure to capture the data distribution, too little is indicative of mode collapse. To illustrate this, we report the diversity obtained when adding normal noise with zero mean and 0.1 standard deviation to the test set: this results in more diversity than the original data. The black dots report the results closest to the reference values obtained on the test set by each model. Middle plot: Inception Score results on CIFAR-10. Right most plot shows Inception Score computed using a VGG style network trained on CIFAR-10. As a reference benchmark, we also compute these scores using samples from test data split; diversity: 0.621, Inception Score: 11.25, Inception Score (VGG net trained on CIFAR-10): 9.18.
223
+
224
+ • The non-saturating GAN trained with gradient penalties produces better samples which give better Inception Scores, both when looking at the results obtained from the best set of hyperparameters and when looking at the entire sweep.
225
+
226
+ • While the non-saturating GAN variants are much faster to train than the WGAN-GP model (since we do only one discriminator update per generator update), they perform similarly to the WGAN-GP model. Thus, non-saturating GANs with penalties offer a better computation versus performance tradeoff. When we trained WGAN-GP models in which we update the discriminator only once per generator update, we noticed a decrease in sample quality for all datasets, reflected by our reported metrics, as seen in Figure 15.
227
+
228
+ When looking at the independent Wasserstein critic results, we see that the WGAN-GP models perform best on Color MNIST and CIFAR-10. However, on CelebA the Independent Wasserstein Critic can distinguish between validation data examples and samples from the model (see Figure 7(b)). This is consistent with what we have seen by examining samples: the hyperparameters which result in samples of reduced quality are the same with a reduced negative Wasserstein distance.
229
+
230
+ • The sample diversity metric and the Independent Wasserstein critic detect mode collapse. When DRAGAN-NS collapses for two hyperparameter settings, the negative Wasserstein distance reported by the critic for these jobs is low, showing that the critic captures the difference in distributions, and the sample diversity reported for those settings is greatly reduced (Figure 16).
231
+
232
+ # 6 DISCUSSION
233
+
234
+ We have shown that viewing the training dynamics of GANs through the lens of the underlying divergence at optimality can be misleading. On low-dimensional synthetic problems, we showed that non-saturating GANs are able to learn the true data distribution where Jensen-Shannon divergence minimization would fail. We also showed that gradient penalty regularizers help improve the training dynamics and robustness of non-saturating GANs. It is worth noting that one of the gradient penalty regularizers was originally proposed for Wasserstein GANs, motivated by properties of the Wasserstein distance; evaluating non-saturating GANs with similar gradient penalty regularizers helps disentangle the improvements arising from optimizing a different divergence (or distance) and the improvements from better training dynamics.
235
+
236
+ Comparison between explored gradient penalties: As described in Section 2.3, we have evaluated two gradient penalties on non-saturating GANs. We now turn our attention to the distinction between the two gradient penalties. We have already noted that for a few hyperparameter settings, DRAGAN-NS produced samples with mode collapse, while the GAN-GP model did not. By looking at the resulting metrics, we note that there is no clear winner between the two types of gradient penalties. To assess whether the two penalties have a different regularization effect, we also tried applying both (with a gradient penalty coefficient of 10 for both, or of 5 for both), but that did not result in better models. This could be because the two penalties have a very similar effect, or due to optimization considerations (they might conflict with each other).
237
+
238
+ Other gradient penalties: Besides the gradient penalties explored in this work, several other regularizers have been proposed for stabilizing GAN training. Roth et al. (2017) proposed a gradient penalty aiming to smooth the discriminator of $f$ -GANs (including the minimax GAN), which we refer to as $f$ -GAN-GP, inspired by Sønderby et al. (2016) and Arjovsky & Bottou (2017). Their gradient penalty is different from the ones explored here; specifically, their gradient penalty is weighted by the square of the discriminator’s probability of real for each data instance and the penalty is applied to data and samples (no noise is added). In Fisher-GAN (Mroueh & Sercu, 2017), an equality constraint that is added on the magnitude of the output of the discriminator on data as well as samples is directly penalized, as opposed to the magnitude of the discriminator gradients, as in WGAN-GP. Similar to WGAN-GP, the penalty was introduced in the framework of integral probability metrics, but it can be directly applied to other approaches to GAN training. Unlike WGAN-GP, Fisher GAN uses augmented Lagrangians to impose the equality constraint, instead of a penalty method. To the best of our knowledge, this has not been tried yet and we leave it for future work.
239
+
240
+ The regularizers assessed in this work (the penalties proposed by DRAGAN and WGAN-GP), as well as others (such as $f$ -GAN-GP and Fisher-GAN) are similar in spirit, but have been proposed from distinct theoretical considerations. Future study of GAN regularizers will determine how these regularizers interact, and help us understand the mechanism by which they stabilize GAN training and motivate new approaches.
241
+
242
+ # ACKNOWLEDGEMENTS
243
+
244
+ We thank Ivo Danihelka and Jascha Sohl-Dickstein for helpful feedback and discussions.
245
+
246
+ # REFERENCES
247
+
248
+ Martin Arjovsky and Léon Bottou. Towards principled methods for training generative adversarial networks. arXiv preprint arXiv:1701.04862, 2017.
249
+
250
+ Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein GAN. arXiv preprint arXiv:1701.07875, 2017.
251
+
252
+ Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press, 2006.
253
+
254
+ Ivo Danihelka, Balaji Lakshminarayanan, Benigno Uria, Daan Wierstra, and Peter Dayan. Comparison of maximum likelihood and GAN-based training of real NVPs. arXiv preprint arXiv:1705.05263, 2017.
255
+
256
+ Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a Laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015.
257
+
258
+ Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016.
259
+
260
+ D. C. Dowson and B. V. Landau. The Fréchet distance between multivariate normal distributions. Journal of Multivariate Analysis, 1982.
261
+
262
+ M. Fréchet. Sur la distance de deux lois de probabilité. C. R. Acad. Sci. Paris, 1957.
263
+
264
+ Ian Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016.
265
+
266
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014.
267
+
268
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of Wasserstein GANs. arXiv preprint arXiv:1704.00028, 2017.
269
+
270
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
271
+
272
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
273
+
274
+ Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. How to train your DRAGAN. arXiv preprint arXiv:1705.07215, 2017.
275
+
276
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
277
+
278
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015.
279
+
280
+ Luke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016.
281
+
282
+ Youssef Mroueh and Tom Sercu. Fisher GAN. arXiv preprint arXiv:1705.09675, 2017.
283
+
284
+ Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems, pp. 271–279, 2016.
285
+
286
+ Augustus Odena, Christopher Olah, and Jonathon Shlens. Conditional image synthesis with auxiliary classifier GANs. arXiv preprint arXiv:1610.09585, 2016.
287
+
288
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
289
+
290
+ Mihaela Rosca, Balaji Lakshminarayanan, David Warde-Farley, and Shakir Mohamed. Variational approaches for auto-encoding generative adversarial networks. arXiv preprint arXiv:1706.04987, 2017.
291
+
292
+ Kevin Roth, Aurelien Lucchi, Sebastian Nowozin, and Thomas Hofmann. Stabilizing training of generative adversarial networks through regularization. arXiv preprint arXiv:1705.09367, 2017.
293
+
294
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. arXiv preprint arXiv:1606.03498, 2016.
295
+
296
+ Casper Kaae Sønderby, Jose Caballero, Lucas Theis, Wenzhe Shi, and Ferenc Huszár. Amortised MAP inference for image super-resolution. arXiv preprint arXiv:1610.04490, 2016.
297
+
298
+ Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In Signals, Systems and Computers, 2004. Conference Record of the Thirty-Seventh Asilomar Conference on, volume 2, pp. 1398–1402. IEEE, 2003.
299
+
300
+ # A RESULTS
301
+
302
+ # A.1 SYNTHETIC EXPERIMENTS
303
+
304
+ We present here more detailed results for our synthetic experiments.
305
+
306
+ ![](images/9feedfb917ce896ce0f638dbd99b9672543ce68a6206bb3d178708dd2963f782.jpg)
307
+ Figure 9: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different GAN variants, when varying the learning rate while keeping the input dimension fixed. Results averaged over 1000 runs. Lower values are better.
308
+
309
+ ![](images/a79722e76322fede6a0b090597f2bd6d06c54c2b00ae1e13db54394d9d4c8e7b.jpg)
310
+ Figure 10: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different GAN variants, when varying the learning rate while keeping the input dimension fixed. Results averaged over 1000 runs. Lower values are better.
311
+
312
+ # A.2 THE EFFECT OF THE NUMBER OF DISCRIMINATOR UPDATES ON GAN AND GAN-GP
313
+
314
+ In this section we assess the affects of varying the discriminator update count per generator update. We notice that using 100 discriminator updates per generator update results in a bad distribution fit for the non saturating GAN. GAN-GP scales better with the number of discriminator updates but
315
+
316
+ increasing the number of discriminator updates does not always result in a closer match to the true distribution for this model either.
317
+
318
+ ![](images/40e37fd6f78f3b3bd7ea80633fe27f82ebcbd3898650fe397289f90ef59d17e3.jpg)
319
+ Figure 11: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training non saturating GANs, with varying the learning rates. Results averaged over 1000 runs. Lower values are better.
320
+
321
+ ![](images/a570050acc62544be4a40a0deb4d60634217977a5ff1800771fbba8de038adf1.jpg)
322
+ Figure 12: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training non saturating GANs, with varying the learning rates. Results averaged over 1000 runs. Lower values are better.
323
+
324
+ # A.3 REAL DATA EXPERIMENTS
325
+
326
+ We present here generated samples and other evaluation metrics on real data.
327
+
328
+ ![](images/f9426148f90cb290256f8d8ec1016dbcfa04dc9cb616d4b886269b0df175884e.jpg)
329
+ Square Fréchet distance across learning rate,input dimensior $_ { 1 = 1 0 0 0 }$ model:GAN-GP
330
+ Figure 13: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training GAN-GP, with varying the learning rates. Results averaged over 1000 runs. Lower values are better.
331
+
332
+ ![](images/c47257ce4fe1589913dec915d601418cce9349ae7bdc7f6a57232ac074d2ec67.jpg)
333
+ Square Fréchet distance across learning rate,input dimension $= 1 0 0 0$ model:GAN-GP
334
+ Figure 14: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training GAN-GP, with varying the learning rates. Results averaged over 1000 runs. Lower values are better.
335
+
336
+ ![](images/800af0f570aeda60dde80dd85d1d44525837355e7ca2da761f1585cf31d6a30e.jpg)
337
+ Figure 15: Comparison across models when doing one update for the discriminator in Wasserstein GAN (WGAN-GP-1). The reduced performance in consistent with the observed decrease in sample quality when examining results. Inception Score results obtained on the test set: with Imagenet trained classifier: 11.25, With CIFAR-10 trained classifier: 9.18. Higher is better; the 10 black dots represent the results obtained with the 10 best hyperparameter settings.
338
+
339
+ ![](images/0322fbe267a01d347845c8fd7017c65c6d62ada52b7f3de8d21106224ce5502a.jpg)
340
+
341
+ ![](images/42788a9608370983211d53dbcac4d8b91c18f908dc4c6b8a17743a9b0b82a723.jpg)
342
+ Figure 16: The metrics employed are able to capture mode collapse. Looking at the 5 worst values (the black dots) in a hyperparameter sweep according to sample diversity and negative Wasserstein distance as estimated by an Independent Wasserstein critic, we see that these metrics are able to capture the two examples of model collapse that we have seen when training DRGAN-NS on CelebA, as shown in Figure 21. For sample diversity, the worst results are computed by the biggest absolute difference to the reference point (test set diversity), while for negative Wasserstein distance the worst results are computed by choosing the lowest value.
343
+ Figure 17: Examples of mode collapse obtained for some hyperparameter settings with non-saturating GAN.
344
+
345
+ ![](images/7d088b54336a8dc9a8891a3a1bcd072d0972ca5b7ae8b5d2d79aab08ae20c336.jpg)
346
+ Figure 18: CIFAR-10 samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models.
347
+
348
+ ![](images/a711eff18b0844b96d3908cad4f96cc40761338f88c2dc1a13507fe63736414a.jpg)
349
+ Figure 19: CelebA samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models.
350
+
351
+ ![](images/7dfbe1e13c92d0ab8c6fb51b7f41f563ee7ecd555205833bb2d40bf0b514eb54.jpg)
352
+ Figure 20: CMNIST samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models.
353
+
354
+ ![](images/8a70e568414599f0a2bb97fe4e429b779085eff465cb4e90605236243b1eaa99.jpg)
355
+ Figure 21: Mode collapse when adding gradient penalties to non-saturating GANs. GAN-GP only had two instances of mode collapse, namely color mode collapse on Color-MNIST (left), while DRAGAN-NS only had two instances of mode collapse, which ocurred when trained on CelebA (right and middle).
356
+
357
+ ![](images/605fce6c9b6f16262e6b6d48270ec4a6a546091b135d989204bd18eea580180f.jpg)
358
+ Figure 22: Examples of failure to capture the data distribution with WGAN-GP. The model puts too much mass around the data distribution when trained on the CelebA dataset.
parse/train/ByQpn1ZA-/ByQpn1ZA-_content_list.json ADDED
@@ -0,0 +1,1844 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "MANY PATHS TO EQUILIBRIUM: GANS DO NOT NEED TO DECREASE A DIVERGENCE AT EVERY STEP ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "William Fedus∗ 1, Mihaela Rosca∗ 2, Balaji Lakshminarayanan2, Andrew M. Dai1, Shakir Mohamed2 and Ian Goodfellow1 ",
17
+ "bbox": [
18
+ 287,
19
+ 175,
20
+ 710,
21
+ 204
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Google Brain \n2DeepMind ",
28
+ "bbox": [
29
+ 450,
30
+ 217,
31
+ 545,
32
+ 244
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 286,
43
+ 544,
44
+ 301
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Generative adversarial networks (GANs) are a family of generative models that do not minimize a single training criterion. Unlike other generative models, the data distribution is learned via a game between a generator (the generative model) and a discriminator (a teacher providing training signal) that each minimize their own cost. GANs are designed to reach a Nash equilibrium at which each player cannot reduce their cost without changing the other players’ parameters. One useful approach for the theory of GANs is to show that a divergence between the training distribution and the model distribution obtains its minimum value at equilibrium. Several recent research directions have been motivated by the idea that this divergence is the primary guide for the learning process and that every step of learning should decrease the divergence. We show that this view is overly restrictive. During GAN training, the discriminator provides learning signal in situations where the gradients of the divergences between distributions would not be useful. We provide empirical counterexamples to the view of GAN training as divergence minimization. Specifically, we demonstrate that GANs are able to learn distributions in situations where the divergence minimization point of view predicts they would fail. We also show that gradient penalties motivated from the divergence minimization perspective are equally helpful when applied in other contexts in which the divergence minimization perspective does not predict they would be helpful. This contributes to a growing body of evidence that GAN training may be more usefully viewed as approaching Nash equilibria via trajectories that do not necessarily minimize a specific divergence at each step. ",
51
+ "bbox": [
52
+ 233,
53
+ 318,
54
+ 764,
55
+ 623
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 643,
66
+ 336,
67
+ 660
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Generative adversarial networks (GANs) (Goodfellow et al., 2014) are generative models based on a competition between a generator network $G$ and a discriminator network $D$ . The generator network $G$ represents a probability distribution $p _ { \\mathrm { m o d e l } } ( { \\pmb x } )$ . To obtain a sample from this distribution, we apply the generator network to a noise vector $_ { z }$ sampled from $p _ { z }$ , that is $\\pmb { x } = G ( \\pmb { z } )$ . Typically, $_ { z }$ is drawn from a Gaussian or uniform distribution, but any distribution with sufficient diversity is possible. The discriminator $D ( \\pmb { x } )$ attempts to distinguish whether an input value $_ { \\textbf { \\em x } }$ is real (came from the training data) or fake (came from the generator). ",
74
+ "bbox": [
75
+ 174,
76
+ 675,
77
+ 825,
78
+ 773
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The goal of the training process is to recover the true distribution $p _ { \\mathrm { d a t a } }$ that generated the data. Several variants of the GAN training process have been proposed. Different variants of GANs have been interpreted as approximately minimizing different divergences or distances between $p _ { \\mathrm { d a t a } }$ and $p _ { \\mathrm { m o d e l } }$ . However, it has been difficult to understand whether the improvements are caused by a change in the underlying divergence or the learning dynamics. ",
85
+ "bbox": [
86
+ 174,
87
+ 780,
88
+ 825,
89
+ 851
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We conduct several experiments to assess whether the improvements associated with new GAN methods are due to the reasons cited in their design motivation. We perform a comprehensive study of GANs on simplified, synthetic tasks for which the true $p _ { \\mathrm { d a t a } }$ is known and the relevant distances are straightforward to calculate, to assess the performance of proposed models against baseline methods. We also evaluate GANs using several independent evaluation measures on real data to better understand new approaches. Our contributions are: ",
96
+ "bbox": [
97
+ 176,
98
+ 857,
99
+ 823,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 145
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "• We aim to clarify terminology used in recent papers, where the terms “standard GAN,” “regular GAN,” or “traditional GAN” are used without definition (e.g., (Arjovsky et al., 2017; Denton et al., 2015; Salimans et al., 2016; Donahue et al., 2016)). The original GAN paper described two different losses: the “minimax” loss and the “non-saturating” loss, equations (10) and (13) of Goodfellow (2016), respectively. Recently, it has become important to clarify this terminology, because many of the criticisms of “standard GANs”, e.g. Arjovsky et al. (2017), are applicable only to the minimax GAN, while the non-saturating GAN is the standard for GAN implementations. The non-saturating GAN was recommended for use in practice and implemented in the original paper of Goodfellow et al. (2014), and is the default in subsequent papers (Radford et al., 2015; Salimans et al., 2016; Donahue et al., 2016; Nowozin et al., 2016)1. To avoid confusion we will always indicate whether we mean minimax GAN (M-GAN) or non-saturating GAN (NS-GAN). We demonstrate that gradient penalties designed in the divergence minimization framework— to improve Wasserstein GANs (Gulrajani et al., 2017) or justified from a game theory perspective to improve minimax GANs (Kodali et al., 2017)—also improve the non-saturating GAN on both synthetic and real data. We observe improved sample quality and diversity. We find that non-saturating GANs are able to fit problems that cannot be fit by JensenShannon divergence minimization. Specifically, Figure 1 shows a GAN using the loss from the original non-saturating GAN succeeding on a task where the Jensen-Shannon divergence provides no useful gradient. Figure 2 shows that the non-saturating GAN does not suffer from vanishing gradients when applied to two widely separated Gaussian distributions. ",
118
+ "bbox": [
119
+ 214,
120
+ 156,
121
+ 828,
122
+ 457
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 VARIANTS OF GENERATIVE ADVERSARIAL NETWORKS ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 476,
133
+ 665,
134
+ 492
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "2.1 NON-SATURATING AND MINIMAX GANS ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 173,
144
+ 507,
145
+ 501,
146
+ 521
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "In the original GAN formulation (Goodfellow et al., 2014), the output of the discriminator is a probability and the cost function for the discriminator is given by the negative log-likelihood of the binary discrimination task of classifying samples as real or fake: ",
153
+ "bbox": [
154
+ 174,
155
+ 532,
156
+ 825,
157
+ 575
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "equation",
163
+ "img_path": "images/63683057d7a10abbae58d8c8f32dd9de072fdf842d1fd68d8eee2b9a67252f23.jpg",
164
+ "text": "$$\n\\begin{array} { r } { J ^ { ( D ) } ( D , G ) = - \\underset { x \\sim p _ { \\mathrm { d a t a } } } { \\mathbb { E } } \\left[ \\log D ( \\pmb { x } ) \\right] - \\underset { z \\sim p _ { z } } { \\mathbb { E } } \\left[ \\log ( 1 - D ( G ( z ) ) ) \\right] . } \\end{array}\n$$",
165
+ "text_format": "latex",
166
+ "bbox": [
167
+ 281,
168
+ 593,
169
+ 715,
170
+ 618
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "The theoretical analysis in (Goodfellow et al., 2014) is based on a zero-sum game in which the generator maximizes $J ^ { ( D ) }$ , a situation that we refer to here as “minimax GANs”. In minimax GANs the generator attempts to generate samples that have low probability of being fake, by minimizing the objective (2). However, in practice, Goodfellow et al. (2014) recommend implementing an alternative cost function that instead ensures that generated samples have high probability of being real, and the generator instead minimizes an alternative objective (3). ",
177
+ "bbox": [
178
+ 174,
179
+ 626,
180
+ 823,
181
+ 712
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "equation",
187
+ "img_path": "images/1e2b1da23d2b1ce9df67d5dcf5233e45f588cf8a547b5f5c7604a66942f83676.jpg",
188
+ "text": "$$\n\\begin{array} { r l } { \\mathbf { M i n i m a x } } & { \\boldsymbol { J } ^ { ( G ) } ( G ) = \\underset { \\boldsymbol { z } \\sim p _ { \\boldsymbol { z } } } { \\mathbb { E } } \\log [ 1 - D ( G ( \\boldsymbol { z } ) ) ] . } \\\\ { \\mathbf { N o n - s a t u r a t i n g } } & { \\boldsymbol { J } ^ { ( G ) } ( G ) = \\underset { \\boldsymbol { z } \\sim p _ { \\boldsymbol { z } } } { - } \\log \\boldsymbol { D } ( G ( \\boldsymbol { z } ) ) . } \\end{array}\n$$",
189
+ "text_format": "latex",
190
+ "bbox": [
191
+ 308,
192
+ 715,
193
+ 687,
194
+ 768
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "We refer to the alternative objective as non-saturating, due to the non-saturating behavior of the gradient (see figure 2), and was the implementation used in the code of the original paper. We use the non-saturating objective (3) in all our experiments ",
201
+ "bbox": [
202
+ 176,
203
+ 771,
204
+ 825,
205
+ 814
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "As shown in (Goodfellow et al., 2014), whenever $D$ successfully minimizes $J ^ { ( D ) }$ optimally, maximizing $J ^ { ( D ) }$ with respect to the generator is equivalent to minimizing the Jensen-Shannon divergence. Goodfellow et al. (2014) use this observation to establish that there is a unique Nash equilibrium in function space corresponding to $p _ { \\mathrm { d a t a } } = p _ { \\mathrm { m o d e l } }$ . ",
212
+ "bbox": [
213
+ 174,
214
+ 102,
215
+ 825,
216
+ 162
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "2.2 WASSERSTEIN GAN ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 178,
227
+ 356,
228
+ 193
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Wasserstein GANs (Arjovsky et al., 2017) modify the discriminator to emit an unconstrained real number rather than a probability (analogous to emitting the logits rather than the probabilities used in the original GAN paper). The cost function for the WGAN then omits the log-sigmoid functions used in the original GAN paper. The cost function for the discriminator is now: ",
235
+ "bbox": [
236
+ 173,
237
+ 204,
238
+ 825,
239
+ 260
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "equation",
245
+ "img_path": "images/6d5e3a89f9f9eb1cbe44e95f4a0f90c95259a7fc414cfb1d4edd5929605e2b0c.jpg",
246
+ "text": "$$\n\\begin{array} { r } { W ^ { ( D ) } ( D , G ) = \\underset { \\pmb { x } \\sim p _ { \\mathrm { d a t a } } } { \\mathbb { E } } \\left[ D ( \\pmb { x } ) \\right] - \\underset { \\pmb { z } \\sim p _ { \\pmb { z } } } { \\mathbb { E } } \\left[ D ( G ( \\pmb { z } ) ) \\right] . } \\end{array}\n$$",
247
+ "text_format": "latex",
248
+ "bbox": [
249
+ 328,
250
+ 266,
251
+ 669,
252
+ 292
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "The cost function for the generator is simply $W ^ { ( G ) } = - W ^ { ( D ) } ( D , G )$ . When the discriminator is Lipschitz smooth, this approach approximately minimizes the earth mover’s distance between pdata and $p _ { \\mathrm { m o d e l } }$ . To enforce Lipschitz smoothness, the weights of $D$ are clipped to lie within $( - c , c )$ where $c$ is some small real number. ",
259
+ "bbox": [
260
+ 173,
261
+ 299,
262
+ 825,
263
+ 357
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "2.3 GRADIENT PENALTIES FOR GENERATIVE ADVERSARIAL NETWORKS ",
270
+ "text_level": 1,
271
+ "bbox": [
272
+ 174,
273
+ 373,
274
+ 691,
275
+ 388
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "Multiple formulations of gradient penalties have been proposed for GANs. As introduced in WGANGP (Gulrajani et al., 2017), the gradient penalty is justified from the perspective of the Wasserstein distance, by imposing properties which hold for an optimal critic as an additional training criterion. In this approach, the gradient penalty is typically a penalty on the gradient norm, and is applied on a linear interpolation between data points and samples, thus smoothing out the space between the two distributions. ",
282
+ "bbox": [
283
+ 173,
284
+ 398,
285
+ 826,
286
+ 483
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Kodali et al. (2017) introduce DRAGAN with a gradient penalty from the perspective of regret minimization, by setting the regularization function to be a gradient penalty on points around the data manifold, as in Follow The Regularized Leader (Cesa-Bianchi & Lugosi, 2006), a standard no-regret algorithm. This encourages the discriminator to be close to linear around the data manifold, thus bringing the set of possible discriminators closer to a convex set, the set of linear functions. We also note that they used the minimax version of the game to define the loss, in which the generator maximizes $J ^ { ( D ) }$ rather than minimizing $J ^ { ( G ) }$ . ",
293
+ "bbox": [
294
+ 173,
295
+ 489,
296
+ 825,
297
+ 590
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "To formalize the above, both proposed gradient penalties of the form: ",
304
+ "bbox": [
305
+ 173,
306
+ 595,
307
+ 627,
308
+ 611
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "equation",
314
+ "img_path": "images/2e5fa869ae3541d02b19cd0ddac7dd88e156ab7c05f67ecddc758c43be474b67.jpg",
315
+ "text": "$$\n\\underset { \\hat { x } \\sim p _ { \\hat { x } } } { \\mathbb { E } } \\left[ ( \\| \\nabla _ { \\hat { x } } D ( \\hat { x } ) \\| _ { 2 } - 1 ) ^ { 2 } \\right] ,\n$$",
316
+ "text_format": "latex",
317
+ "bbox": [
318
+ 403,
319
+ 628,
320
+ 593,
321
+ 654
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "where $p _ { \\hat { x } }$ is defined as the distribution defined by the sampling process: ",
328
+ "bbox": [
329
+ 174,
330
+ 665,
331
+ 640,
332
+ 680
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/5e3349c6a9a41ee539b400018ae615a49099d18314280a248f2e59ad76335dca.jpg",
339
+ "text": "$$\nx \\sim p _ { \\mathrm { d a t a } } ; \\qquad x _ { \\mathrm { m o d e l } } \\sim p _ { \\mathrm { m o d e l } } ; \\qquad x _ { \\mathrm { n o i s e } } \\sim p _ { \\mathrm { n o i s e } }\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 325,
343
+ 689,
344
+ 671,
345
+ 703
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "equation",
351
+ "img_path": "images/58a9d7f978b07cdbf920d0cd288638928a0e3a99abd895ca3d842a3c488a9df2.jpg",
352
+ "text": "$$\n\\begin{array} { c l c r } { { \\alpha \\sim U ( 0 , 1 ) } } \\\\ { { \\hat { x } = \\alpha x + ( 1 - \\alpha ) \\tilde { x } . } } \\end{array}\n$$",
353
+ "text_format": "latex",
354
+ "bbox": [
355
+ 428,
356
+ 777,
357
+ 568,
358
+ 815
359
+ ],
360
+ "page_idx": 2
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "As we will note in our experimental section, Kodali et al. (2017) also reported that mode-collapse is reduced using their version of the gradient penalty. ",
365
+ "bbox": [
366
+ 171,
367
+ 827,
368
+ 823,
369
+ 857
370
+ ],
371
+ "page_idx": 2
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "2.3.1 NON-SATURATING GAN WITH GRADIENT PENALTY ",
376
+ "text_level": 1,
377
+ "bbox": [
378
+ 173,
379
+ 871,
380
+ 588,
381
+ 886
382
+ ],
383
+ "page_idx": 2
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "We consider the non-saturating GAN objective (3) supplemented by two gradient penalties: the penalty proposed by Gulrajani et al. (2017), which we refer to as “GAN-GP”; the gradient penalty proposed by DRAGAN (Kodali et al., 2017), which we refer to as DRAGAN-NS, to emphasize that we use the non-saturating generator loss function. In both cases, the gradient penalty applies only to the discriminator, with the generator loss remaining unchanged (as defined in Equation 3). In this setting, the loss of the discriminator becomes: ",
388
+ "bbox": [
389
+ 173,
390
+ 895,
391
+ 821,
392
+ 924
393
+ ],
394
+ "page_idx": 2
395
+ },
396
+ {
397
+ "type": "image",
398
+ "img_path": "images/c345cd545745234de5c42fbdca6bc4c7cc41d9e5674043d0e483861441be6be1.jpg",
399
+ "image_caption": [
400
+ "Figure 1: Visualization of experiment 1 training dynamics in two dimensions, demonstrated specifically in the case where the model is initialized so that it it represents a linear manifold parallel to the linear manifold of the training data. Here the GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). Specifically, this is an illustration of the parallel line thought experiment from (Arjovsky et al., 2017). When run in practice with a non-saturating GAN, the GAN succeeds. In the same setting, minimization of Jensen-Shannon divergence would fail. This indicates that while Jensen-Shannon divergence is useful for characterizing GAN equilibrium, it does not necessarily tell us much about non-equilibrium learning dynamics. "
401
+ ],
402
+ "image_footnote": [],
403
+ "bbox": [
404
+ 245,
405
+ 107,
406
+ 746,
407
+ 250
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "",
414
+ "bbox": [
415
+ 174,
416
+ 406,
417
+ 823,
418
+ 462
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "equation",
424
+ "img_path": "images/5a54a9d6aeeec6f2c2a4a1eae3069e47015d9759f25025cbabef9bb200f1cc8b.jpg",
425
+ "text": "$$\n\\tilde { J } ^ { ( D ) } ( D , G ) = - \\underset { x \\sim p _ { \\mathrm { d a t a } } } { \\mathbb { E } } \\left[ \\log D ( x ) \\right] - \\underset { z \\sim p _ { z } } { \\mathbb { E } } \\left[ \\log ( 1 - D ( G ( z ) ) ) \\right] + \\lambda \\underset { \\hat { x } \\sim p _ { \\hat { \\alpha } } } { \\mathbb { E } } \\left[ ( \\lVert \\nabla _ { \\hat { x } } D ( \\hat { x } ) \\rVert _ { 2 } - 1 ) ^ { 2 } \\right]\n$$",
426
+ "text_format": "latex",
427
+ "bbox": [
428
+ 184,
429
+ 468,
430
+ 810,
431
+ 493
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "We consider these GAN variants because: ",
438
+ "bbox": [
439
+ 174,
440
+ 512,
441
+ 447,
442
+ 527
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "• We want to assess whether gradient penalties are effective outside their original defining scope. Namely, we perform experiments to determine whether the benefit obtained by applying the gradient penalty for Wasserstein GANs is obtained from properties of the earth mover’s distance, or from the penalty itself. Similarly, we evaluate whether the DRAGAN gradient penalty is beneficial outside the minimax GAN setting. \n• We want to assess whether the exact form of the gradient penalty matters. \nWe compare three models, to control over different aspects of training: same gradient penalty but different underlying adversarial losses (GAN-GP versus WGAN-GP), as well as the same underlying adversarial loss, but different gradient penalties (GAN-GP versus DRAGAN-NS). ",
449
+ "bbox": [
450
+ 215,
451
+ 537,
452
+ 826,
453
+ 686
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "We note that we do not compare with the original DRAGAN formulation, which uses the minimax GAN formulation, since in this work we focus on non-saturating GAN variants. ",
460
+ "bbox": [
461
+ 174,
462
+ 696,
463
+ 823,
464
+ 727
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "3 MANY PATHS TO EQUILIBRIUM ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 176,
474
+ 746,
475
+ 468,
476
+ 762
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "The original GAN paper (Goodfellow et al., 2014) used the correspondence between $J ^ { ( D ) } ( D ^ { * } , G )$ and the Jensen-Shannon divergence to characterize the Nash equilibrium of minimax GANs. It is important to keep in mind that there are many ways for the learning process to approach this equilibrium point, and the majority of them do not correspond to gradually reducing the JensenShannon divergence at each step. Divergence minimization is useful for understanding the outcome of training, but GAN training is not the same thing as running gradient descent on a divergence and GAN training may not encounter the same problems as gradient descent applied to a divergence. ",
483
+ "bbox": [
484
+ 173,
485
+ 776,
486
+ 825,
487
+ 875
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "Arjovsky et al. (2017) describe the learning process of GANs from the perspective of divergence minimization and show that the Jensen-Shannon divergence is unable to provide a gradient that will bring $p _ { \\mathrm { d a t a } }$ and $p _ { \\mathrm { m o d e l } }$ together if both are sharp manifolds that do not overlap early in the learning process. Following this line of reasoning, they suggest that when applied to probability distributions that are supported only on low dimensional manifolds, the Kullback Leibler (KL), Jensen Shannon (JS) and Total Variation (TV) divergences do not provide a useful gradient for learning algorithms based on gradient descent, the “traditional GANs” is inappropriate for fitting such low dimensional manifolds (“traditional GAN” seems to refer to the minimax version of GANs used for theoretical analysis in the original paper, and there is no explicit statement about whether the argument is intended to apply to the non-saturating GAN implemented in the code accompanying the original GAN paper). In Section 4 we show that non-saturating GANs are able to learn on tasks where the data distribution lies on the low dimensional manifold. ",
494
+ "bbox": [
495
+ 176,
496
+ 881,
497
+ 825,
498
+ 924
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "image",
504
+ "img_path": "images/e40fa277017297d4a93812edd2dc820808d2dc596cb8741b91762c1344aef944.jpg",
505
+ "image_caption": [
506
+ "Figure 2: (Left) A recreation of Figure 2 of Arjovsky et al. (2017). This figure is used by Arjovsky et al. (2017) to show that a model they call the “traditional GAN” suffers from vanishing gradients in the areas where $D ( x )$ is flat. This plot is correct if “traditional GAN” is used to refer to the minimax GAN, but it does not apply to the non-saturating GAN. (Right) A plot of both generator losses from the original GAN paper, as a function of the generator output. Even when the model distribution is highly separated from the data distribution, non-saturating GANs are able to bring the model distribution closer to the data distribution because the loss function has strong gradient when the generator samples are far from the data samples, even when the discriminator itself has nearly zero gradient. While it is true that the $\\begin{array} { r } { \\frac { 1 } { 2 } \\log ( 1 - D ( x ) ) } \\end{array}$ loss has a vanishing gradient on the right half of the plot, the original GAN paper instead recommends implementing $- { \\frac { 1 } { 2 } } \\log D ( x )$ . This latter, recommended loss function has a vanishing gradient only on the left side of the plot. It makes sense for the gradient to vanish on the left because generator samples in that area have already reached the area where data samples lie. "
507
+ ],
508
+ "image_footnote": [],
509
+ "bbox": [
510
+ 305,
511
+ 126,
512
+ 681,
513
+ 330
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "",
520
+ "bbox": [
521
+ 173,
522
+ 616,
523
+ 825,
524
+ 742
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "We show that non-saturating GANs do not suffer from vanishing gradients for two widely separated Gaussians in Figure 2. The fact that the gradient of the recommended loss does not actually vanish explains why GANs with the non-saturating objective (3), are able to bring together two widely separated Gaussian distributions. Note that the gradient for this loss does not vanish even when the discriminator is optimal. The discriminator has vanishing gradients but the generator loss amplifies small differences in discriminator outputs to recover strong gradients. This means it is possible to train the GAN by changing the loss rather than the discriminator. ",
531
+ "bbox": [
532
+ 173,
533
+ 750,
534
+ 825,
535
+ 847
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "For the parallel lines thought experiment (Arjovsky et al., 2017) (see Figure 1), the main problem with the Jensen-Shannon divergence is that it is parameterized in terms of the density function, and the two density functions have no support in common. Most GANs, and many other models, can solve this problem by parameterizing their loss functions in terms of samples from the two distributions rather than in terms of their density functions. ",
542
+ "bbox": [
543
+ 174,
544
+ 854,
545
+ 823,
546
+ 924
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "4 SYNTHETIC EXPERIMENTS ",
553
+ "text_level": 1,
554
+ "bbox": [
555
+ 176,
556
+ 102,
557
+ 429,
558
+ 118
559
+ ],
560
+ "page_idx": 5
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "To assess the learning process of GANs we empirically examine GAN training on pathological tasks where the data is constructed to lie on a low dimensional manifold, and show the model is able to learn the data distribution in cases where using the underlying divergence obtained at optimality would not provide useful gradients. We then evaluate convergence properties of common GAN variants on this task where the parameters generating the distribution are known. ",
565
+ "bbox": [
566
+ 173,
567
+ 132,
568
+ 825,
569
+ 204
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "4.1 EXPERIMENT I: 1-D DATA MANIFOLD AND 1-D GENERATOR ",
576
+ "text_level": 1,
577
+ "bbox": [
578
+ 174,
579
+ 219,
580
+ 635,
581
+ 234
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "In our first experiment, we generate synthetic training data that lies along a one-dimensional line and design a one-dimensional generative model, however, we embed the problem in a higher $d .$ - dimensional space where $d \\gg 1$ . This experiment is essentially an implementation of a thought experiment from Arjovsky et al. (2017). ",
588
+ "bbox": [
589
+ 174,
590
+ 244,
591
+ 825,
592
+ 301
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Specifically, in a $d$ -dimensional space, we define $p _ { \\mathrm { d a t a } }$ by randomly generating parameters defining the distribution once at the beginning of the experiment. We generate a random $b _ { r } \\in \\mathbb { R } ^ { d }$ and random $W _ { r } \\in \\mathbb { R } ^ { 1 \\times d }$ . Our latent $z _ { r } \\in \\mathbb { R } \\sim N ( 0 , \\sigma )$ where $\\sigma$ is the standard deviation of the normal distribution. The synthetic training data of $m$ examples is then given by ",
599
+ "bbox": [
600
+ 174,
601
+ 308,
602
+ 825,
603
+ 364
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "equation",
609
+ "img_path": "images/553385b778976bb190f3672cff611cf586aad876c5691dabdde3e727cdd127b0.jpg",
610
+ "text": "$$\n\\{ x ^ { ( i ) } \\} _ { i = 1 } ^ { m } = \\{ z _ { r } ^ { ( i ) } \\} _ { i = 1 } ^ { m } W _ { r } + b _ { r }\n$$",
611
+ "text_format": "latex",
612
+ "bbox": [
613
+ 395,
614
+ 381,
615
+ 602,
616
+ 402
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "The real synthetic data is therefore Gaussian distributed on a 1-D surface within the space, where the position is determined by $b _ { r }$ and the orientation is determined by $W _ { r }$ . ",
623
+ "bbox": [
624
+ 174,
625
+ 410,
626
+ 823,
627
+ 439
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "The generator also assumes the same functional form, that is, it is also intrinsically one dimensional, ",
634
+ "bbox": [
635
+ 171,
636
+ 445,
637
+ 823,
638
+ 462
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "equation",
644
+ "img_path": "images/9dbfa00f4c01196c486dcf0fa01d86893b11745f64b474fd2fcb05e6eece7787.jpg",
645
+ "text": "$$\nG _ { \\theta } ( z ) = z W _ { \\theta } + b _ { \\theta }\n$$",
646
+ "text_format": "latex",
647
+ "bbox": [
648
+ 433,
649
+ 479,
650
+ 565,
651
+ 497
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "where $b _ { \\theta } \\in \\mathbb { R } ^ { d }$ and $W _ { \\theta } \\in \\mathbb { R } ^ { 1 \\times d }$ . The discriminator is a single hidden layer ReLU network, which is of higher complexity than the generator so that it may learn non-linear boundaries in the space. ",
658
+ "bbox": [
659
+ 173,
660
+ 506,
661
+ 825,
662
+ 535
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "This experiment captures the idea of sharp, non-overlapping manifolds that motivate alternative GAN losses. Further, because we know the true generating parameters of the training data, we may explicitly test convergence properties of the various methodologies. ",
669
+ "bbox": [
670
+ 174,
671
+ 541,
672
+ 825,
673
+ 584
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "4.2 EXPERIMENT II: 1-D DATA MANIFOLD AND OVERCOMPLETE GENERATOR ",
680
+ "text_level": 1,
681
+ "bbox": [
682
+ 173,
683
+ 599,
684
+ 727,
685
+ 614
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "In our second experiment, the synthetic training data is still the same (lying on a 1-D line) and given by Eq. 11 but now the generator is overcomplete for this task, and has a higher latent dimension $g$ , where $1 < g \\le d$ . ",
692
+ "bbox": [
693
+ 173,
694
+ 626,
695
+ 826,
696
+ 670
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "equation",
702
+ "img_path": "images/3bd0b7d24010b2a796e40ed2ea5504e2bf76d7a39204aaf70cbce9579a82cc3b.jpg",
703
+ "text": "$$\nG ( z ) = z W _ { \\theta } + b _ { \\theta }\n$$",
704
+ "text_format": "latex",
705
+ "bbox": [
706
+ 436,
707
+ 688,
708
+ 562,
709
+ 705
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "where matrix $W _ { \\theta } \\in \\mathbb { R } ^ { g \\times d }$ and vector $b _ { \\theta } \\in \\mathbb { R } ^ { d }$ , so that the generator is able to represent a manifold with too high of a dimensionality. The generator parameterizes a multivariate Gaussian $N ( x ; \\mu , \\Sigma )$ with $\\mu = b$ . The covariance matrix elements $\\dot { \\Sigma _ { i j } } = E [ \\sigma ^ { 2 } ( X _ { i } - \\mu _ { i } ) ( X _ { j } - \\mu _ { j } ) ] = \\sigma ^ { 2 } \\dot { E } [ ( X _ { i } -$ $\\mu _ { i } ) ( X _ { j } - \\mu _ { j } ) ]$ . In vector notation, $\\Sigma = \\sigma ^ { 2 } W ^ { T } W$ . ",
716
+ "bbox": [
717
+ 173,
718
+ 713,
719
+ 825,
720
+ 772
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "4.3 RESULTS ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 174,
730
+ 789,
731
+ 279,
732
+ 803
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "To evaluate the convergence of an experimental trial, we report the square Fréchet distance (Fréchet (1957)) between the true data Gaussian distribution and the fitted Gaussian parameters. In our notation, where the $r$ subscript denotes real data, the $\\theta$ subscript denotes the generator Gaussian parameters and $\\| x \\| ^ { 2 }$ is the squared $l _ { 2 }$ norm of $x$ , the Fréchet distance is defined as (Dowson $\\&$ Landau (1982)): ",
739
+ "bbox": [
740
+ 174,
741
+ 814,
742
+ 825,
743
+ 886
744
+ ],
745
+ "page_idx": 5
746
+ },
747
+ {
748
+ "type": "equation",
749
+ "img_path": "images/11e1f0ab6e5e7111471afb83d368c4535eb1472ba63dd108d3c68479fd8a4b6f.jpg",
750
+ "text": "$$\nd ^ { 2 } ( \\mu _ { r } , \\mu _ { \\theta } , \\Sigma _ { r } , \\Sigma _ { \\theta } ) = \\| \\mu _ { \\theta } - \\mu _ { r } \\| ^ { 2 } + \\mathrm { T r } \\left( \\Sigma _ { r } + \\Sigma _ { \\theta } - 2 ( \\Sigma _ { r } \\Sigma _ { \\theta } ) ^ { - 1 / 2 } \\right)\n$$",
751
+ "text_format": "latex",
752
+ "bbox": [
753
+ 272,
754
+ 901,
755
+ 723,
756
+ 929
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "Every GAN variant was trained for 200000 steps. For each step, the generator is updated once and the discriminator is updated 5 times. Throughout the paper, the number of steps will correspond to the number of generator updates. ",
763
+ "bbox": [
764
+ 176,
765
+ 103,
766
+ 823,
767
+ 146
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "The main conclusions from our synthetic data experiments are: ",
774
+ "bbox": [
775
+ 173,
776
+ 152,
777
+ 584,
778
+ 167
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "• Gradient penalties (both applied near the data manifold, DRAGAN-NS, and at an interpolation between data and samples, GAN-GP) stabilize training and improve convergence (Figures 3, 9, 10). \nDespite the inability of Jensen-Shannon divergence minimization to solve this problem, we find that the non-saturating GAN succeeds in converging to the 1D data manifold (Figure 3). However, in higher dimensions the resulting fit is not as strong as the other methods: Figure 10 shows that increasing the number of dimensions while keeping the learning rate fixed can decrease the performance of the non-saturating GAN model. \nNon-saturating GANs are able to learn data distributions which are disjoint from the training sample distribution at initialization (or another point in training), as demonstrated in Figure 1. \nUpdating the discriminator 5 times per generator update does not result in vanishing gradients when using the non-saturating cost. However, when scaling the number of discriminator updates to 100 per generator update, non-saturating GANs perform worse than when using a smaller number of updates (1, 5, 10). Gradient penalties help here too: GAN-GP scales better with the number of discriminator updates. The results are detailed in Appendix Section A.2. \n• An over-capacity generator with the ability to have more directions of high variance than the underlying data is able to capture the data distribution using non-saturating GAN training (Figure 4). ",
785
+ "bbox": [
786
+ 215,
787
+ 179,
788
+ 825,
789
+ 464
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "4.4 HYPERPARAMETER SENSITIVITY ",
796
+ "text_level": 1,
797
+ "bbox": [
798
+ 176,
799
+ 486,
800
+ 441,
801
+ 500
802
+ ],
803
+ "page_idx": 6
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "We assess the robustness of the considered models by looking at results across hyperparameters for both experiment 1 and experiment 2. In one setting, we keep the input dimension fixed while varying the learning rate (Figure 9); in another setting, we keep the learning rate fixed, while varying the input dimension (Figure 10). In both cases, the results are averaged out over 1000 runs per setting, each starting from a different random seed. We notice that: ",
808
+ "bbox": [
809
+ 176,
810
+ 511,
811
+ 825,
812
+ 580
813
+ ],
814
+ "page_idx": 6
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "• The non-saturating GAN model (with no gradient penalty) is most sensitive to hyperparameters. \n• Gradient penalties make the non-saturating GAN model more robust. \n• Both Wasserstein GAN formulations are quite robust to hyperparameter changes. \n• For certain hyperparameter settings, there is no performance difference between the two gradient penalties for the non-saturating GAN, when averaging across random seeds. This is especially visible in Experiment 1, when the number of latent variables is 1. This could be due to the fact that the data sits on a low dimensional manifold, and because the discriminator is a small, shallow network. ",
819
+ "bbox": [
820
+ 215,
821
+ 593,
822
+ 825,
823
+ 734
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "5 REAL DATA EXPERIMENTS ",
830
+ "text_level": 1,
831
+ "bbox": [
832
+ 176,
833
+ 760,
834
+ 424,
835
+ 775
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "To assess the effectiveness of the gradient penalty on standard datasets for the non-saturating GAN formulation, we train a non-saturating GAN, a non-saturating GAN with the gradient penalty introduced by (Gulrajani et al., 2017) (denoted by GAN-GP), a non-saturating GAN with the gradient penalty introduced by (Kodali et al., 2017) (denoted by DRAGAN-NS), and a Wasserstein GAN with gradient penalty (WGAN-GP) on three datasets: Color MNIST (Metz et al., 2016) - data dimensionality (28, 28, 3), CelebA (Liu et al., 2015) - data dimensionality (64, 64, 3) and CIFAR-10 (Krizhevsky, 2009) - data dimensionality (32, 32, 3), as seen in Figure 6. ",
842
+ "bbox": [
843
+ 174,
844
+ 791,
845
+ 825,
846
+ 890
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "For all our experiments we used $\\lambda = 1 0$ as the gradient penalty coefficient and used batch normalization (Ioffe & Szegedy, 2015); Kodali et al. (2017) suggests that batch normalization is not neeeded for DRAGAN, but we found that it also improved our DRAGAN-NS results. We used the Adam optimizer (Kingma & Ba, 2014) with $\\beta _ { 1 } = 0 . 5$ and $\\beta _ { 2 } = 0 . 9$ and a batch size of 64. The input data was scaled to be between -1 and 1. We did not add any noise to the discriminator inputs or activations, as that regularization technique can be interpreted as having the same goal as gradient penalties, and we wanted to avoid a confounding factor. We trained all Color MNIST models for 100000 steps, and CelebA and CIFAR-10 models for 200000 steps. We note that the experimental results on real data for the non-saturating GAN and for the Improved Wasserstein GAN (WGAN-GP) are quoted with permission from an earlier publication by Rosca et al. (2017). ",
853
+ "bbox": [
854
+ 174,
855
+ 895,
856
+ 823,
857
+ 924
858
+ ],
859
+ "page_idx": 6
860
+ },
861
+ {
862
+ "type": "image",
863
+ "img_path": "images/73c9856186ab835d1a3a36f708d693d9fd5a76f7a8243f278a7290805ca7a30a.jpg",
864
+ "image_caption": [
865
+ "Figure 3: Visualization of experiment 1 training dynamics in two dimensions. Here the GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). We note that this is a visual illustration, and the results have not been averaged out over multiple seeds. Exact plots may vary on different runs. However, a single example of success is sufficient to refute claims that this this task is impossible for this model. "
866
+ ],
867
+ "image_footnote": [],
868
+ "bbox": [
869
+ 282,
870
+ 99,
871
+ 710,
872
+ 515
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "",
879
+ "bbox": [
880
+ 173,
881
+ 636,
882
+ 825,
883
+ 747
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "We note that the WGAN-GP model was the only model for which we did 5 discriminator updates in real data experiments. All other models (DCGAN, DRAGAN-NS, GAN-GP) used one discriminator update for generator update. ",
890
+ "bbox": [
891
+ 176,
892
+ 755,
893
+ 823,
894
+ 796
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "For all reported results, we sweep over two hyperparameters: ",
901
+ "bbox": [
902
+ 168,
903
+ 804,
904
+ 571,
905
+ 818
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "• Learning rates for the discriminator and generator. Following Radford et al. (2015), we tried learning rates of 0.0001, 0.0002, 0.0003 for both the discriminator and the generator. We note that this is consistent with WGAN-GP, where the authors use 0.0002 for CIFAR-10 experiments. \n• Number of latents. For CelebA and CIFAR-10 we try latent sizes 100, 128 and 150, while for Color MNIST we try 10, 50, 75. ",
912
+ "bbox": [
913
+ 215,
914
+ 830,
915
+ 825,
916
+ 921
917
+ ],
918
+ "page_idx": 7
919
+ },
920
+ {
921
+ "type": "image",
922
+ "img_path": "images/547232301dbc7de185f58c14971f802086c3adeab0c20de259ecfbeebc49be2b.jpg",
923
+ "image_caption": [
924
+ "Figure 4: Visualization of experiment 2 training dynamics in two dimensions - where the GAN model has 3 latent variables. Here the rank one GAN model (red points) converges upon the one dimensional synthetic data distribution (blue points). We observe how for poor initialization the non-saturating GAN suffers from mode collapse. However, adding a gradient penalty stabilizes training. We note that this is a visual illustration, and the results have not been averaged out over multiple seeds. Exact plots may vary on different runs. "
925
+ ],
926
+ "image_footnote": [],
927
+ "bbox": [
928
+ 282,
929
+ 99,
930
+ 710,
931
+ 516
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "5.1 EVALUATION ",
938
+ "text_level": 1,
939
+ "bbox": [
940
+ 174,
941
+ 655,
942
+ 305,
943
+ 670
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Unlike the synthetic case, here we are unable to evaluate the performance of our models relative to the true solution, since that is unknown. Moreover, there is no single metric that can evaluate the performance of GANs. We thus complement visual inspection with three metrics, each measuring a different criteria related to model performance. We use the Inception Score (Salimans et al., 2016) to measure how visually appealing CIFAR-10 samples are, the MS-SSIM metric (Wang et al., 2003; Odena et al., 2016) to check sample diversity, and an Improved Wasserstein independent critic to assess overfitting, as well as sample quality (Danihelka et al., 2017). For a more detailed explanation of these metrics, we refer to Rosca et al. (2017). In all our experiments, we control over discriminator and generator architectures, using the ones used by DCGAN (Radford et al., 2015) and the original WGAN paper (Arjovsky et al., 2017)2. We note that the WGAN-GP paper used a different architecture when reporting the Inception Score on CIFAR10, and thus their results are not directly comparable. ",
950
+ "bbox": [
951
+ 174,
952
+ 685,
953
+ 825,
954
+ 837
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "For all the metrics, we report both the hyperparameter sensitivity of the model (by showing quartile statistics), as well as the 10 best results according to the metric. The sample diversity measure needs to be seen in context with the value reported on the test set: too high diversity can mean failure to capture the data distribution. For all other metrics, higher is better. ",
961
+ "bbox": [
962
+ 176,
963
+ 844,
964
+ 821,
965
+ 872
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "image",
971
+ "img_path": "images/e194aa4cd2fbbf76bd867f710668fca21af89252d739a0c91ca2ce2faff9625d.jpg",
972
+ "image_caption": [
973
+ "Figure 5: The square Fréchet distance between the learned Gaussian and the true Gaussian distribution. For reference, we also plot the distance obtained by a randomly initialized generator with the same architecture as the trained generators. Results are averaged over 1000 runs. Lower values are better. "
974
+ ],
975
+ "image_footnote": [],
976
+ "bbox": [
977
+ 179,
978
+ 184,
979
+ 816,
980
+ 445
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "image",
986
+ "img_path": "images/90a54d4069466c009ace763dbd8f1d757d7480e357df414e3d53e2c58276309b.jpg",
987
+ "image_caption": [
988
+ "Figure 6: Examples from the three datasets explored in this paper: Color MNIST (left), CIFAR-10 (middle) and CelebA (right). "
989
+ ],
990
+ "image_footnote": [],
991
+ "bbox": [
992
+ 254,
993
+ 671,
994
+ 738,
995
+ 794
996
+ ],
997
+ "page_idx": 9
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "",
1002
+ "bbox": [
1003
+ 173,
1004
+ 103,
1005
+ 823,
1006
+ 132
1007
+ ],
1008
+ "page_idx": 10
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "5.2 VISUAL SAMPLE INSPECTION ",
1013
+ "text_level": 1,
1014
+ "bbox": [
1015
+ 176,
1016
+ 154,
1017
+ 416,
1018
+ 167
1019
+ ],
1020
+ "page_idx": 10
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "By visually inspecting the results of our models, we noticed that applying gradient penalties to the non-saturating GAN results in more stable training across the board. When training the non-saturating GAN with no gradient penalty, we did observe cases of severe mode collapse (see Figure 17). Gradient penalties improves upon that, but we can still observe mode collapse. Each non-saturating GAN variant with gradient penalty (DRAGAN-NS and GAN-GP) only produced mode collapse on one dataset, see Figure 21). We also noticed that for certain learning rates, WGAN-GPs fail to learn the data distribution (Figure 22). For the GAN-GP and DRAGAN-NS models, most hyperparameters produced samples of equal quality - the models are quite robust. We show samples from the GAN-GP, DRAGAN-NS and WGAN-GP models in Figures 18, 19 and 20. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 181,
1028
+ 825,
1029
+ 306
1030
+ ],
1031
+ "page_idx": 10
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "5.3 METRICS ",
1036
+ "text_level": 1,
1037
+ "bbox": [
1038
+ 174,
1039
+ 328,
1040
+ 279,
1041
+ 342
1042
+ ],
1043
+ "page_idx": 10
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "We show that gradient penalties make non-saturating GANs more robust to hyperparameter changes. For this, we report not only the best obtained results, but rather a box plot of the obtained results showing the quartiles obtained by each sweep, along with the top 10 best results explicitly shown in the graph (note that for each model we tried 27 different hyperparameter settings, corresponding to 3 discriminator learning rates, 3 generator learning rates and 3 generator input sizes). We report two Inception Score metrics for CIFAR-10, one using the standard Inception network used when the metric was introduced (Salimans et al., 2016), trained on the Imagenet dataset, as well as a VGG style network trained on CIFAR-10 (for details on the architecture, we refer the reader to Rosca et al. (2017)). We report the former to be compatible with existing literature, and the latter to obtain a more meaningful metric, since the network doing the evaluation was trained on the same dataset as the one we evaluate, hence the learned features will be more relevant for the task at hand. When reporting sample diversity, we subtract the average pairwise image similarity (as reported by MS-SSIM) computed as the mean of the similarity of every pair of images from 5 batches from the test set. Note that we can only apply this measure to CelebA, since for datasets such as CIFAR-10 different classes are represented by very different images, making this metric meaningless across class borders. Since our models are completely unsupervised, we do not compute the similarity across samples of the same class as in (Odena et al., 2016). The Inception Score and sample diversity metric results can be seen in Figure 8. The results obtained using the Independent Wasserstein critic on all datasets can be found in Figure 7. ",
1048
+ "bbox": [
1049
+ 173,
1050
+ 356,
1051
+ 825,
1052
+ 619
1053
+ ],
1054
+ "page_idx": 10
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "5.4 KEY TAKEAWAYS FROM REAL DATA EXPERIMENTS ",
1059
+ "text_level": 1,
1060
+ "bbox": [
1061
+ 176,
1062
+ 642,
1063
+ 557,
1064
+ 655
1065
+ ],
1066
+ "page_idx": 10
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "When analyzing the results obtained by training non-saturating GANs using gradient penalties (GAN-GP and DRAGAN-NS), we notice that: ",
1071
+ "bbox": [
1072
+ 173,
1073
+ 669,
1074
+ 823,
1075
+ 696
1076
+ ],
1077
+ "page_idx": 10
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "• Both gradient penalties help when training non-saturating GANs, by making the models more robust to hyperparameters. \n• On CelebA, for various hyperparameter settings WGAN-GP fails to learn the data distribution and produces samples that do not look like faces (Figure 22). This results in a higher sample diversity than the reference diversity obtained on the test set, as reported by our diversity metric - see Figure 8(a) which compares sample diversity for the considered models across hyperparameters. The same figure shows that for most hyperparameter values, the WGAN-GP model produces higher diversity than the one obtained on the test set (indicating failure to capture the data distribution), while for most hyperparameters non-saturating GAN variants produce samples with lower diversity than that of the test set (indicating mode collapse). However, WGAN-GP is closer to the reference value for more hyperparameters, compared to the non-saturating GAN variants. \nEven if we are only interested in the best results (without looking across the hyperparameter sweep), we see that the gradient penalties tend to improve results for non-saturating GANs. ",
1082
+ "bbox": [
1083
+ 215,
1084
+ 712,
1085
+ 825,
1086
+ 924
1087
+ ],
1088
+ "page_idx": 10
1089
+ },
1090
+ {
1091
+ "type": "image",
1092
+ "img_path": "images/1bc94b416f45cc9e9848171fd1c2a5d27a8d505e6d2de9bb5188957904e36d39.jpg",
1093
+ "image_caption": [
1094
+ "Figure 7: Negative Wasserstein distance estimated using an independent Wasserstein critic on the three datasets we evaluate on. The metric captures overfitting to the training data and low quality samples. Higher is better; the 10 black dots represent the results obtained with the 10 best hyperparameter settings. "
1095
+ ],
1096
+ "image_footnote": [],
1097
+ "bbox": [
1098
+ 194,
1099
+ 108,
1100
+ 803,
1101
+ 217
1102
+ ],
1103
+ "page_idx": 11
1104
+ },
1105
+ {
1106
+ "type": "image",
1107
+ "img_path": "images/293c7484f28ca209e7e830b20f89bbd97a442331074e43ceb8dad2dc506c17fd.jpg",
1108
+ "image_caption": [
1109
+ "Figure 8: Left plot shows sample diversity results on CelebA. It is important to look at this measure relative to the measure on the test set: too much diversity can mean failure to capture the data distribution, too little is indicative of mode collapse. To illustrate this, we report the diversity obtained when adding normal noise with zero mean and 0.1 standard deviation to the test set: this results in more diversity than the original data. The black dots report the results closest to the reference values obtained on the test set by each model. Middle plot: Inception Score results on CIFAR-10. Right most plot shows Inception Score computed using a VGG style network trained on CIFAR-10. As a reference benchmark, we also compute these scores using samples from test data split; diversity: 0.621, Inception Score: 11.25, Inception Score (VGG net trained on CIFAR-10): 9.18. "
1110
+ ],
1111
+ "image_footnote": [],
1112
+ "bbox": [
1113
+ 194,
1114
+ 310,
1115
+ 803,
1116
+ 419
1117
+ ],
1118
+ "page_idx": 11
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "• The non-saturating GAN trained with gradient penalties produces better samples which give better Inception Scores, both when looking at the results obtained from the best set of hyperparameters and when looking at the entire sweep. ",
1123
+ "bbox": [
1124
+ 214,
1125
+ 593,
1126
+ 825,
1127
+ 636
1128
+ ],
1129
+ "page_idx": 11
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "• While the non-saturating GAN variants are much faster to train than the WGAN-GP model (since we do only one discriminator update per generator update), they perform similarly to the WGAN-GP model. Thus, non-saturating GANs with penalties offer a better computation versus performance tradeoff. When we trained WGAN-GP models in which we update the discriminator only once per generator update, we noticed a decrease in sample quality for all datasets, reflected by our reported metrics, as seen in Figure 15. ",
1134
+ "bbox": [
1135
+ 217,
1136
+ 648,
1137
+ 825,
1138
+ 732
1139
+ ],
1140
+ "page_idx": 11
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "When looking at the independent Wasserstein critic results, we see that the WGAN-GP models perform best on Color MNIST and CIFAR-10. However, on CelebA the Independent Wasserstein Critic can distinguish between validation data examples and samples from the model (see Figure 7(b)). This is consistent with what we have seen by examining samples: the hyperparameters which result in samples of reduced quality are the same with a reduced negative Wasserstein distance. ",
1145
+ "bbox": [
1146
+ 215,
1147
+ 746,
1148
+ 825,
1149
+ 828
1150
+ ],
1151
+ "page_idx": 11
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "• The sample diversity metric and the Independent Wasserstein critic detect mode collapse. When DRAGAN-NS collapses for two hyperparameter settings, the negative Wasserstein distance reported by the critic for these jobs is low, showing that the critic captures the difference in distributions, and the sample diversity reported for those settings is greatly reduced (Figure 16). ",
1156
+ "bbox": [
1157
+ 217,
1158
+ 842,
1159
+ 825,
1160
+ 911
1161
+ ],
1162
+ "page_idx": 11
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "6 DISCUSSION ",
1167
+ "text_level": 1,
1168
+ "bbox": [
1169
+ 174,
1170
+ 102,
1171
+ 310,
1172
+ 117
1173
+ ],
1174
+ "page_idx": 12
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "We have shown that viewing the training dynamics of GANs through the lens of the underlying divergence at optimality can be misleading. On low-dimensional synthetic problems, we showed that non-saturating GANs are able to learn the true data distribution where Jensen-Shannon divergence minimization would fail. We also showed that gradient penalty regularizers help improve the training dynamics and robustness of non-saturating GANs. It is worth noting that one of the gradient penalty regularizers was originally proposed for Wasserstein GANs, motivated by properties of the Wasserstein distance; evaluating non-saturating GANs with similar gradient penalty regularizers helps disentangle the improvements arising from optimizing a different divergence (or distance) and the improvements from better training dynamics. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 133,
1182
+ 825,
1183
+ 258
1184
+ ],
1185
+ "page_idx": 12
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Comparison between explored gradient penalties: As described in Section 2.3, we have evaluated two gradient penalties on non-saturating GANs. We now turn our attention to the distinction between the two gradient penalties. We have already noted that for a few hyperparameter settings, DRAGAN-NS produced samples with mode collapse, while the GAN-GP model did not. By looking at the resulting metrics, we note that there is no clear winner between the two types of gradient penalties. To assess whether the two penalties have a different regularization effect, we also tried applying both (with a gradient penalty coefficient of 10 for both, or of 5 for both), but that did not result in better models. This could be because the two penalties have a very similar effect, or due to optimization considerations (they might conflict with each other). ",
1190
+ "bbox": [
1191
+ 174,
1192
+ 280,
1193
+ 825,
1194
+ 405
1195
+ ],
1196
+ "page_idx": 12
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Other gradient penalties: Besides the gradient penalties explored in this work, several other regularizers have been proposed for stabilizing GAN training. Roth et al. (2017) proposed a gradient penalty aiming to smooth the discriminator of $f$ -GANs (including the minimax GAN), which we refer to as $f$ -GAN-GP, inspired by Sønderby et al. (2016) and Arjovsky & Bottou (2017). Their gradient penalty is different from the ones explored here; specifically, their gradient penalty is weighted by the square of the discriminator’s probability of real for each data instance and the penalty is applied to data and samples (no noise is added). In Fisher-GAN (Mroueh & Sercu, 2017), an equality constraint that is added on the magnitude of the output of the discriminator on data as well as samples is directly penalized, as opposed to the magnitude of the discriminator gradients, as in WGAN-GP. Similar to WGAN-GP, the penalty was introduced in the framework of integral probability metrics, but it can be directly applied to other approaches to GAN training. Unlike WGAN-GP, Fisher GAN uses augmented Lagrangians to impose the equality constraint, instead of a penalty method. To the best of our knowledge, this has not been tried yet and we leave it for future work. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 425,
1204
+ 825,
1205
+ 619
1206
+ ],
1207
+ "page_idx": 12
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "The regularizers assessed in this work (the penalties proposed by DRAGAN and WGAN-GP), as well as others (such as $f$ -GAN-GP and Fisher-GAN) are similar in spirit, but have been proposed from distinct theoretical considerations. Future study of GAN regularizers will determine how these regularizers interact, and help us understand the mechanism by which they stabilize GAN training and motivate new approaches. ",
1212
+ "bbox": [
1213
+ 174,
1214
+ 640,
1215
+ 823,
1216
+ 710
1217
+ ],
1218
+ "page_idx": 12
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "ACKNOWLEDGEMENTS ",
1223
+ "text_level": 1,
1224
+ "bbox": [
1225
+ 176,
1226
+ 728,
1227
+ 334,
1228
+ 741
1229
+ ],
1230
+ "page_idx": 12
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "We thank Ivo Danihelka and Jascha Sohl-Dickstein for helpful feedback and discussions. ",
1235
+ "bbox": [
1236
+ 176,
1237
+ 752,
1238
+ 754,
1239
+ 767
1240
+ ],
1241
+ "page_idx": 12
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "REFERENCES ",
1246
+ "text_level": 1,
1247
+ "bbox": [
1248
+ 174,
1249
+ 102,
1250
+ 287,
1251
+ 118
1252
+ ],
1253
+ "page_idx": 13
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Martin Arjovsky and Léon Bottou. Towards principled methods for training generative adversarial networks. arXiv preprint arXiv:1701.04862, 2017. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 126,
1261
+ 825,
1262
+ 155
1263
+ ],
1264
+ "page_idx": 13
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein GAN. arXiv preprint arXiv:1701.07875, 2017. ",
1269
+ "bbox": [
1270
+ 171,
1271
+ 164,
1272
+ 823,
1273
+ 194
1274
+ ],
1275
+ "page_idx": 13
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press, 2006. ",
1280
+ "bbox": [
1281
+ 171,
1282
+ 202,
1283
+ 825,
1284
+ 232
1285
+ ],
1286
+ "page_idx": 13
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Ivo Danihelka, Balaji Lakshminarayanan, Benigno Uria, Daan Wierstra, and Peter Dayan. Comparison of maximum likelihood and GAN-based training of real NVPs. arXiv preprint arXiv:1705.05263, 2017. ",
1291
+ "bbox": [
1292
+ 173,
1293
+ 241,
1294
+ 825,
1295
+ 284
1296
+ ],
1297
+ "page_idx": 13
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a Laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015. ",
1302
+ "bbox": [
1303
+ 171,
1304
+ 294,
1305
+ 823,
1306
+ 337
1307
+ ],
1308
+ "page_idx": 13
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016. ",
1313
+ "bbox": [
1314
+ 173,
1315
+ 345,
1316
+ 823,
1317
+ 375
1318
+ ],
1319
+ "page_idx": 13
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "D. C. Dowson and B. V. Landau. The Fréchet distance between multivariate normal distributions. Journal of Multivariate Analysis, 1982. ",
1324
+ "bbox": [
1325
+ 173,
1326
+ 383,
1327
+ 823,
1328
+ 414
1329
+ ],
1330
+ "page_idx": 13
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "M. Fréchet. Sur la distance de deux lois de probabilité. C. R. Acad. Sci. Paris, 1957. ",
1335
+ "bbox": [
1336
+ 173,
1337
+ 422,
1338
+ 728,
1339
+ 439
1340
+ ],
1341
+ "page_idx": 13
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Ian Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016. ",
1346
+ "bbox": [
1347
+ 173,
1348
+ 446,
1349
+ 825,
1350
+ 477
1351
+ ],
1352
+ "page_idx": 13
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014. ",
1357
+ "bbox": [
1358
+ 173,
1359
+ 486,
1360
+ 825,
1361
+ 515
1362
+ ],
1363
+ "page_idx": 13
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of Wasserstein GANs. arXiv preprint arXiv:1704.00028, 2017. ",
1368
+ "bbox": [
1369
+ 173,
1370
+ 523,
1371
+ 825,
1372
+ 554
1373
+ ],
1374
+ "page_idx": 13
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. ",
1379
+ "bbox": [
1380
+ 173,
1381
+ 563,
1382
+ 825,
1383
+ 592
1384
+ ],
1385
+ "page_idx": 13
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1390
+ "bbox": [
1391
+ 173,
1392
+ 602,
1393
+ 825,
1394
+ 631
1395
+ ],
1396
+ "page_idx": 13
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. How to train your DRAGAN. arXiv preprint arXiv:1705.07215, 2017. ",
1401
+ "bbox": [
1402
+ 171,
1403
+ 638,
1404
+ 825,
1405
+ 669
1406
+ ],
1407
+ "page_idx": 13
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
1412
+ "bbox": [
1413
+ 174,
1414
+ 678,
1415
+ 694,
1416
+ 694
1417
+ ],
1418
+ "page_idx": 13
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. ",
1423
+ "bbox": [
1424
+ 171,
1425
+ 702,
1426
+ 823,
1427
+ 732
1428
+ ],
1429
+ "page_idx": 13
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Luke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016. ",
1434
+ "bbox": [
1435
+ 173,
1436
+ 741,
1437
+ 823,
1438
+ 771
1439
+ ],
1440
+ "page_idx": 13
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Youssef Mroueh and Tom Sercu. Fisher GAN. arXiv preprint arXiv:1705.09675, 2017. ",
1445
+ "bbox": [
1446
+ 174,
1447
+ 779,
1448
+ 746,
1449
+ 795
1450
+ ],
1451
+ "page_idx": 13
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems, pp. 271–279, 2016. ",
1456
+ "bbox": [
1457
+ 174,
1458
+ 804,
1459
+ 825,
1460
+ 847
1461
+ ],
1462
+ "page_idx": 13
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Augustus Odena, Christopher Olah, and Jonathon Shlens. Conditional image synthesis with auxiliary classifier GANs. arXiv preprint arXiv:1610.09585, 2016. ",
1467
+ "bbox": [
1468
+ 171,
1469
+ 856,
1470
+ 823,
1471
+ 886
1472
+ ],
1473
+ "page_idx": 13
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
1478
+ "bbox": [
1479
+ 173,
1480
+ 895,
1481
+ 821,
1482
+ 924
1483
+ ],
1484
+ "page_idx": 13
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Mihaela Rosca, Balaji Lakshminarayanan, David Warde-Farley, and Shakir Mohamed. Variational approaches for auto-encoding generative adversarial networks. arXiv preprint arXiv:1706.04987, 2017. ",
1489
+ "bbox": [
1490
+ 173,
1491
+ 103,
1492
+ 825,
1493
+ 145
1494
+ ],
1495
+ "page_idx": 14
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Kevin Roth, Aurelien Lucchi, Sebastian Nowozin, and Thomas Hofmann. Stabilizing training of generative adversarial networks through regularization. arXiv preprint arXiv:1705.09367, 2017. ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 155,
1503
+ 825,
1504
+ 184
1505
+ ],
1506
+ "page_idx": 14
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. arXiv preprint arXiv:1606.03498, 2016. ",
1511
+ "bbox": [
1512
+ 173,
1513
+ 193,
1514
+ 823,
1515
+ 222
1516
+ ],
1517
+ "page_idx": 14
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "Casper Kaae Sønderby, Jose Caballero, Lucas Theis, Wenzhe Shi, and Ferenc Huszár. Amortised MAP inference for image super-resolution. arXiv preprint arXiv:1610.04490, 2016. ",
1522
+ "bbox": [
1523
+ 171,
1524
+ 229,
1525
+ 823,
1526
+ 258
1527
+ ],
1528
+ "page_idx": 14
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In Signals, Systems and Computers, 2004. Conference Record of the Thirty-Seventh Asilomar Conference on, volume 2, pp. 1398–1402. IEEE, 2003. ",
1533
+ "bbox": [
1534
+ 174,
1535
+ 267,
1536
+ 825,
1537
+ 310
1538
+ ],
1539
+ "page_idx": 14
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "A RESULTS ",
1544
+ "text_level": 1,
1545
+ "bbox": [
1546
+ 176,
1547
+ 102,
1548
+ 287,
1549
+ 118
1550
+ ],
1551
+ "page_idx": 15
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "text": "A.1 SYNTHETIC EXPERIMENTS ",
1556
+ "text_level": 1,
1557
+ "bbox": [
1558
+ 176,
1559
+ 133,
1560
+ 405,
1561
+ 147
1562
+ ],
1563
+ "page_idx": 15
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "We present here more detailed results for our synthetic experiments. ",
1568
+ "bbox": [
1569
+ 173,
1570
+ 159,
1571
+ 619,
1572
+ 174
1573
+ ],
1574
+ "page_idx": 15
1575
+ },
1576
+ {
1577
+ "type": "image",
1578
+ "img_path": "images/9feedfb917ce896ce0f638dbd99b9672543ce68a6206bb3d178708dd2963f782.jpg",
1579
+ "image_caption": [
1580
+ "Figure 9: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different GAN variants, when varying the learning rate while keeping the input dimension fixed. Results averaged over 1000 runs. Lower values are better. "
1581
+ ],
1582
+ "image_footnote": [],
1583
+ "bbox": [
1584
+ 196,
1585
+ 184,
1586
+ 797,
1587
+ 439
1588
+ ],
1589
+ "page_idx": 15
1590
+ },
1591
+ {
1592
+ "type": "image",
1593
+ "img_path": "images/a79722e76322fede6a0b090597f2bd6d06c54c2b00ae1e13db54394d9d4c8e7b.jpg",
1594
+ "image_caption": [
1595
+ "Figure 10: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different GAN variants, when varying the learning rate while keeping the input dimension fixed. Results averaged over 1000 runs. Lower values are better. "
1596
+ ],
1597
+ "image_footnote": [],
1598
+ "bbox": [
1599
+ 194,
1600
+ 522,
1601
+ 797,
1602
+ 775
1603
+ ],
1604
+ "page_idx": 15
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "A.2 THE EFFECT OF THE NUMBER OF DISCRIMINATOR UPDATES ON GAN AND GAN-GP ",
1609
+ "text_level": 1,
1610
+ "bbox": [
1611
+ 173,
1612
+ 856,
1613
+ 797,
1614
+ 869
1615
+ ],
1616
+ "page_idx": 15
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "In this section we assess the affects of varying the discriminator update count per generator update. We notice that using 100 discriminator updates per generator update results in a bad distribution fit for the non saturating GAN. GAN-GP scales better with the number of discriminator updates but ",
1621
+ "bbox": [
1622
+ 174,
1623
+ 881,
1624
+ 825,
1625
+ 924
1626
+ ],
1627
+ "page_idx": 15
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "increasing the number of discriminator updates does not always result in a closer match to the true distribution for this model either. ",
1632
+ "bbox": [
1633
+ 171,
1634
+ 103,
1635
+ 825,
1636
+ 132
1637
+ ],
1638
+ "page_idx": 16
1639
+ },
1640
+ {
1641
+ "type": "image",
1642
+ "img_path": "images/40e37fd6f78f3b3bd7ea80633fe27f82ebcbd3898650fe397289f90ef59d17e3.jpg",
1643
+ "image_caption": [
1644
+ "Figure 11: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training non saturating GANs, with varying the learning rates. Results averaged over 1000 runs. Lower values are better. "
1645
+ ],
1646
+ "image_footnote": [],
1647
+ "bbox": [
1648
+ 196,
1649
+ 142,
1650
+ 799,
1651
+ 405
1652
+ ],
1653
+ "page_idx": 16
1654
+ },
1655
+ {
1656
+ "type": "image",
1657
+ "img_path": "images/a570050acc62544be4a40a0deb4d60634217977a5ff1800771fbba8de038adf1.jpg",
1658
+ "image_caption": [
1659
+ "Figure 12: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training non saturating GANs, with varying the learning rates. Results averaged over 1000 runs. Lower values are better. "
1660
+ ],
1661
+ "image_footnote": [],
1662
+ "bbox": [
1663
+ 196,
1664
+ 494,
1665
+ 797,
1666
+ 758
1667
+ ],
1668
+ "page_idx": 16
1669
+ },
1670
+ {
1671
+ "type": "text",
1672
+ "text": "A.3 REAL DATA EXPERIMENTS ",
1673
+ "text_level": 1,
1674
+ "bbox": [
1675
+ 176,
1676
+ 853,
1677
+ 405,
1678
+ 868
1679
+ ],
1680
+ "page_idx": 16
1681
+ },
1682
+ {
1683
+ "type": "text",
1684
+ "text": "We present here generated samples and other evaluation metrics on real data. ",
1685
+ "bbox": [
1686
+ 173,
1687
+ 880,
1688
+ 676,
1689
+ 895
1690
+ ],
1691
+ "page_idx": 16
1692
+ },
1693
+ {
1694
+ "type": "image",
1695
+ "img_path": "images/f9426148f90cb290256f8d8ec1016dbcfa04dc9cb616d4b886269b0df175884e.jpg",
1696
+ "image_caption": [
1697
+ "Square Fréchet distance across learning rate,input dimensior $_ { 1 = 1 0 0 0 }$ model:GAN-GP ",
1698
+ "Figure 13: Synthetic Experiment 1. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training GAN-GP, with varying the learning rates. Results averaged over 1000 runs. Lower values are better. "
1699
+ ],
1700
+ "image_footnote": [],
1701
+ "bbox": [
1702
+ 196,
1703
+ 165,
1704
+ 797,
1705
+ 407
1706
+ ],
1707
+ "page_idx": 17
1708
+ },
1709
+ {
1710
+ "type": "image",
1711
+ "img_path": "images/c47257ce4fe1589913dec915d601418cce9349ae7bdc7f6a57232ac074d2ec67.jpg",
1712
+ "image_caption": [
1713
+ "Square Fréchet distance across learning rate,input dimension $= 1 0 0 0$ model:GAN-GP ",
1714
+ "Figure 14: Synthetic Experiment 2. The square Fréchet distance between the generated Gaussian parameters and true Gaussian parameters for different number of discriminator updates when training GAN-GP, with varying the learning rates. Results averaged over 1000 runs. Lower values are better. "
1715
+ ],
1716
+ "image_footnote": [],
1717
+ "bbox": [
1718
+ 196,
1719
+ 582,
1720
+ 797,
1721
+ 821
1722
+ ],
1723
+ "page_idx": 17
1724
+ },
1725
+ {
1726
+ "type": "image",
1727
+ "img_path": "images/800af0f570aeda60dde80dd85d1d44525837355e7ca2da761f1585cf31d6a30e.jpg",
1728
+ "image_caption": [
1729
+ "Figure 15: Comparison across models when doing one update for the discriminator in Wasserstein GAN (WGAN-GP-1). The reduced performance in consistent with the observed decrease in sample quality when examining results. Inception Score results obtained on the test set: with Imagenet trained classifier: 11.25, With CIFAR-10 trained classifier: 9.18. Higher is better; the 10 black dots represent the results obtained with the 10 best hyperparameter settings. "
1730
+ ],
1731
+ "image_footnote": [],
1732
+ "bbox": [
1733
+ 194,
1734
+ 108,
1735
+ 803,
1736
+ 204
1737
+ ],
1738
+ "page_idx": 18
1739
+ },
1740
+ {
1741
+ "type": "image",
1742
+ "img_path": "images/0322fbe267a01d347845c8fd7017c65c6d62ada52b7f3de8d21106224ce5502a.jpg",
1743
+ "image_caption": [],
1744
+ "image_footnote": [],
1745
+ "bbox": [
1746
+ 214,
1747
+ 304,
1748
+ 790,
1749
+ 462
1750
+ ],
1751
+ "page_idx": 18
1752
+ },
1753
+ {
1754
+ "type": "image",
1755
+ "img_path": "images/42788a9608370983211d53dbcac4d8b91c18f908dc4c6b8a17743a9b0b82a723.jpg",
1756
+ "image_caption": [
1757
+ "Figure 16: The metrics employed are able to capture mode collapse. Looking at the 5 worst values (the black dots) in a hyperparameter sweep according to sample diversity and negative Wasserstein distance as estimated by an Independent Wasserstein critic, we see that these metrics are able to capture the two examples of model collapse that we have seen when training DRGAN-NS on CelebA, as shown in Figure 21. For sample diversity, the worst results are computed by the biggest absolute difference to the reference point (test set diversity), while for negative Wasserstein distance the worst results are computed by choosing the lowest value. ",
1758
+ "Figure 17: Examples of mode collapse obtained for some hyperparameter settings with non-saturating GAN. "
1759
+ ],
1760
+ "image_footnote": [],
1761
+ "bbox": [
1762
+ 416,
1763
+ 583,
1764
+ 576,
1765
+ 705
1766
+ ],
1767
+ "page_idx": 18
1768
+ },
1769
+ {
1770
+ "type": "image",
1771
+ "img_path": "images/7d088b54336a8dc9a8891a3a1bcd072d0972ca5b7ae8b5d2d79aab08ae20c336.jpg",
1772
+ "image_caption": [
1773
+ "Figure 18: CIFAR-10 samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models. "
1774
+ ],
1775
+ "image_footnote": [],
1776
+ "bbox": [
1777
+ 256,
1778
+ 762,
1779
+ 738,
1780
+ 886
1781
+ ],
1782
+ "page_idx": 18
1783
+ },
1784
+ {
1785
+ "type": "image",
1786
+ "img_path": "images/a711eff18b0844b96d3908cad4f96cc40761338f88c2dc1a13507fe63736414a.jpg",
1787
+ "image_caption": [
1788
+ "Figure 19: CelebA samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models. "
1789
+ ],
1790
+ "image_footnote": [],
1791
+ "bbox": [
1792
+ 179,
1793
+ 135,
1794
+ 815,
1795
+ 299
1796
+ ],
1797
+ "page_idx": 19
1798
+ },
1799
+ {
1800
+ "type": "image",
1801
+ "img_path": "images/7dfbe1e13c92d0ab8c6fb51b7f41f563ee7ecd555205833bb2d40bf0b514eb54.jpg",
1802
+ "image_caption": [
1803
+ "Figure 20: CMNIST samples obtained from the GAN-GP, DRAGAN-NS, and WGAN-GP models. "
1804
+ ],
1805
+ "image_footnote": [],
1806
+ "bbox": [
1807
+ 256,
1808
+ 411,
1809
+ 736,
1810
+ 534
1811
+ ],
1812
+ "page_idx": 19
1813
+ },
1814
+ {
1815
+ "type": "image",
1816
+ "img_path": "images/8a70e568414599f0a2bb97fe4e429b779085eff465cb4e90605236243b1eaa99.jpg",
1817
+ "image_caption": [
1818
+ "Figure 21: Mode collapse when adding gradient penalties to non-saturating GANs. GAN-GP only had two instances of mode collapse, namely color mode collapse on Color-MNIST (left), while DRAGAN-NS only had two instances of mode collapse, which ocurred when trained on CelebA (right and middle). "
1819
+ ],
1820
+ "image_footnote": [],
1821
+ "bbox": [
1822
+ 178,
1823
+ 647,
1824
+ 815,
1825
+ 809
1826
+ ],
1827
+ "page_idx": 19
1828
+ },
1829
+ {
1830
+ "type": "image",
1831
+ "img_path": "images/605fce6c9b6f16262e6b6d48270ec4a6a546091b135d989204bd18eea580180f.jpg",
1832
+ "image_caption": [
1833
+ "Figure 22: Examples of failure to capture the data distribution with WGAN-GP. The model puts too much mass around the data distribution when trained on the CelebA dataset. "
1834
+ ],
1835
+ "image_footnote": [],
1836
+ "bbox": [
1837
+ 178,
1838
+ 406,
1839
+ 815,
1840
+ 569
1841
+ ],
1842
+ "page_idx": 20
1843
+ }
1844
+ ]
parse/train/ByQpn1ZA-/ByQpn1ZA-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByQpn1ZA-/ByQpn1ZA-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/GFV8IVyMM4n/GFV8IVyMM4n.md ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Deep Marching Tetrahedra: a Hybrid Representation for High-Resolution 3D Shape Synthesis
2
+
3
+ Tianchang Shen 1,2,3 Jun Gao1,2,3 Kangxue Yin 1
4
+
5
+ Ming-Yu Liu 1 Sanja Fidler1,2,3
6
+
7
+ NVIDIA1 University of Toronto2 Vector Institute3
8
+
9
+ {frshen, jung, kangxuey, mingyul, sfidler}@nvidia.com
10
+
11
+ # Abstract
12
+
13
+ We introduce DMTET, a deep 3D conditional generative model that can synthesize high-resolution 3D shapes using simple user guides such as coarse voxels. It marries the merits of implicit and explicit 3D representations by leveraging a novel hybrid 3D representation. Compared to the current implicit approaches, which are trained to regress the signed distance values, DMTET directly optimizes for the reconstructed surface, which enables us to synthesize finer geometric details with fewer artifacts. Unlike deep 3D generative models that directly generate explicit representations such as meshes, our model can synthesize shapes with arbitrary topology. The core of DMTET includes a deformable tetrahedral grid that encodes a discretized signed distance function and a differentiable marching tetrahedra layer that converts the implicit signed distance representation to the explicit surface mesh representation. This combination allows joint optimization of the surface geometry and topology as well as generation of the hierarchy of subdivisions using reconstruction and adversarial losses defined explicitly on the surface mesh. Our approach significantly outperforms existing work on conditional shape synthesis from coarse voxel inputs, trained on a dataset of complex 3D animal shapes. Project page: https://nv-tlabs.github.io/DMTet/.
14
+
15
+ # 1 Introduction
16
+
17
+ Fields such as simulation, architecture, gaming, and film rely on high-quality 3D content with rich geometric details and complex topology. However, creating such content requires tremendous expert human effort. It takes a significant amount of development time to create each individual 3D asset. In contrast, creating rough 3D shapes with simple building blocks like voxels has been widely adopted. For example, Minecraft has been used by hundreds of millions of users for creating 3D content. Most of them are non-experts. Developing A.I. tools that enable regular people to upscale coarse, voxelized objects into high resolution, beautiful 3D shapes would bring us one step closer to democratizing high-quality 3D content creation. Similar tools can be envisioned for turning 3D scans of objects recorded by modern phones into high-quality forms. Our work aspires to create such capabilities.
18
+
19
+ A powerful 3D representation is a critical component of a learning-based 3D content creation framework. A good 3D representation for high-quality reconstruction and synthesis should capture local geometric details and represent objects with arbitrary topology while also being memory and computationally efficient for fast inference in interactive applications.
20
+
21
+ Recently, neural implicit representations [8, 39, 42, 51], which use a neural network to implicitly represent a shape via a signed distance field (SDF) or an occupancy field (OF), have emerged as an effective 3D representation. Neural implicits have the benefit of representing complex geometry and topology, not limited to a predefined resolution. The success of these methods has been shown in shape compression [49, 13, 51], single-image shape generation [47, 60, 48], and point cloud reconstruction [57]. However, most of the current implicit approaches are trained by regressing to SDF or OF values and cannot utilize an explicit supervision on the target surface, which imposes useful constraints for training. To mitigate this issue, several works [45, 31] proposed to utilize iso-surfacing techniques such as the Marching Cubes (MC) algorithm to extract a surface mesh from the implicit representation, which, however, is computationally expensive.
22
+
23
+ In this work, we introduce DMTET, a deep 3D conditional generative model for high-resolution 3D shape synthesis from user guides in the form of coarse voxels. In the heart of DMTET is a new differentiable shape representation that marries implicit and explicit 3D representations. In contrast to deep implicit approaches optimized for predicting sign distance (or occupancy) values, our model employs additional supervision on the surface, which empirically renders higher quality shapes with finer geometric details. Compared to methods that learn to directly generate explicit representations, such as meshes [54], by committing to a preset topology, our DMTET can produce shapes with arbitrary topology. Specifically, DMTET predicts the underlying surface parameterized by an implicit function encoded via a deformable tetrahedral grid. The underlying surface is converted into an explicit mesh with a Marching Tetrahedra (MT) algorithm, which we show is differentiable and more performant than the Marching Cubes. DMTET maintains efficiency by learning to adapt the grid resolution by deforming and selectively subdividing tetrahedra. This has the effect of spending computation only on the relevant regions in space. We achieve further gains in the overall quality of the output shape with learned surface subdivision. Our DMTET is end-to-end differentiable, allowing the network to jointly optimize the geometry and topology of the surface, as well as the hierarchy of subdivisions using a loss function defined explicitly on the surface mesh.
24
+
25
+ We demonstrate our DMTET on two challenging tasks: 3D shape synthesis from coarse voxel inputs and point cloud 3D reconstruction. We outperform existing state-of-the-art methods by a significant margin while being 10 times faster than alternative implicit representation-based methods at inference time. In summary, we make the following technical contributions:
26
+
27
+ 1. We show that using Marching Tetrahedra (MT) as a differentiable iso-surfacing layer allows topological change for the underlying shape represented by a implicit field, in contrast to the analysis in prior works [31, 45].
28
+ 2. We incorporate MT in a DL framework and introduce DMTET, a hybrid representation that combines implicit and explicit surface representations. We demonstrate that the additional supervision (e.g. chamfer distance, adversarial loss) defined directly on the extracted surface from implicit field improves the shape synthesis quality.
29
+ 3. We introduce a coarse-to-fine optimization strategy that scales DMTET to high resolution during training. We thus achieves better reconstruction quality than state-of-the-art methods on challenging 3D shape synthesis tasks, while requiring a lower computation cost.
30
+
31
+ # 2 Related Work
32
+
33
+ We review the related work on learning-based 3D synthesis methods based on their 3D representations.
34
+
35
+ Voxel-based Methods Early work [59, 10, 38] represented 3D shapes as voxels, which store the coarse occupancy (inside/outside) values on a regular grid, which makes powerful convolutional neural networks native and renders impressive results on 3D reconstruction and synthesis [12, 11, 58, 2]. For high-resolution shape synthesis, DECOR-GAN [6] transfers geometric details from a high-resolution shape represented in voxel to a low-resolution shape by utilizing a discriminator defined on 3D patches of the voxel grid. However, the computational and memory costs grow cubically as the resolution increases, prohibiting the reconstruction of fine geometric details and smooth curves. One common way to address this limitation is building hierarchical structures such as octrees [46, 52, 55, 56, 24, 52], which adapt the grid resolution locally based on the underlying shape. In this paper, we adopt a hierarchical deformable tetrahedral grid to utilize the resolution better. Unlike octree-based shape synthesis, our network learns grid deformation and subdivision jointly to better represent the surface without relying on explicit supervision from a pre-computed hierarchy.
36
+
37
+ Deep Implicit Fields (DIFs) represent a 3D shape as a zero level set of a continuous function parameterized by a neural network [39, 44, 17, 40]. This formulation can represent arbitrary typology and has infinite resolution. DIF-based shape synthesis approaches have demonstrated strong performance in many applications, including single view 3D reconstruction [60, 30, 47, 48], shape manipulation, and synthesis [26, 21, 28, 14, 1, 9]. However, as these approaches are trained by minimizing the reconstruction loss of function values at a set of sampled 3D locations (a rough proxy of the surface), they tend to render artifacts when synthesizing fine details. Furthermore, if one desires a mesh to be extracted from a DIF, an expensive iso-surfacing step based on Marching Cubes [36] or Marching Tetrahedra [15] is required. Due to the computational burden, iso-surfacing is often done on a smaller resolution, hence prone to quantization errors. Lei et al. [29] proposes an analytic meshing solution to reduce the error, but is only applicable to DIFs parametrized by MLPs with ReLU activation. Our representation scales to high resolution and does not require additional modification to the backward pass for training end-to-end. DMTET can represent arbitrary typology, and is trained via direct supervision on the generated surface. Recent works [1, 9] learn to regress unsigned distance to triangle soup or point cloud. However, their iso-surfacing formulation is not differentiable in contrast to DMTET.
38
+
39
+ ![](images/0d5058ec53aafbd0e0995b8e5ac5432565d0802e926641001c8ac4ebef8fb2be.jpg)
40
+ Figure 1: DMTET reconstructs the shape implicitly in a coarse-to-fine manner by predicting the SDF defined on a deformable tetrahedral grid. It then converts the SDF to a surface mesh by a differentiable Marching Tetrahedra layer. DMTET is trained by optimizing the objective function defined on the final surface.
41
+
42
+ Surface-based Methods directly predict triangular meshes and have achieved impressive results for reconstructing and synthesizing simpler shapes [54, 23, 5, 41, 7]. Typically, they predefined the topology of the shape, e.g. equivalent to a sphere [54, 5, 25], or a union of primitives [43, 53, 19] or a set of segmented parts [61, 62, 50]. As a result, they can not model a distribution of shapes with complex topology variations. Recently, DefTet [18] represents a mesh with a deformable tetrahedral grid where the grid vertex coordinates and the occupancy values are learned. However, similar to voxel-based methods, the computational costf increases cubically with the grid resolution. Furthermore, as the occupancy loss for supervising topology learning and the surface loss for supervising geometry learning do not support joint training, it tends to generate suboptimal results. In contrast, our method is able to synthesize high-resolution 3D shapes, not shown in previous work.
43
+
44
+ # 3 Deep Marching Tetrahedra
45
+
46
+ We now introduce our DMTET for synthesizing high-quality 3D objects. The schematic illustration is provided in Fig. 1. Our model relies on a new, hybrid 3D representation specifically designed for high-resolution reconstruction and synthesis, which we describe in Sec. 3.1. In Sec. 3.2, we describe the neural network architecture of DMTET that predicts the shape representation from inputs such as coarse voxels. We provide the training objectives in Sec. 3.3.
47
+
48
+ # 3.1 3D Representation
49
+
50
+ We represent a shape using a sign distance field (SDF) encoded with a deformable tetrahedral grid, adopted from DefTet [18, 20]. The grid fully tetrahedralizes a unit cube, where each cell in the volume is a tetahedron with 4 vertices and faces. The key aspect of this representation is that the grid vertices can deform to represent the geometry of the shape more efficiently. While the original DefTet encoded occupancy defined on each tetrahedron, we here encode signed distance values defined on the vertices of the grid and represent the underlying surface implicitly (Sec. 3.1.1). The use of signed distance values, instead of occupancy values, provides more flexibility in representing the underlying surface. For greater representation power while keeping memory and computation manageable, we further selectively subdivide the tetrahedra around the predicted surface (Sec. 3.1.2). We convert the signed distance-based implicit representation into a triangular mesh using a marching tetrahedra layer, which we discuss in Sec. 3.1.3. The final mesh is further converted into a parameterized surface with a differentiable surface subdivision module, described in Sec. 3.1.4.
51
+
52
+ # 3.1.1 Deformable Tetrahedral Mesh as an Approximation of an Implicit Function
53
+
54
+ We adopt and extend the deformable tetrahedral grid introduced in Gao et al. [18], which we denote with $( V _ { T } , T )$ , where $V _ { T }$ are the vertices in the tetrahedral grid $T$ . Following the notation in [18], each tetrahedron $T _ { k } \in T$ is represented with four vertices $\left\{ v _ { a _ { k } } , v _ { b _ { k } } , v _ { c _ { k } } , v _ { d _ { k } } \right\}$ , with $k \in \{ 1 , . . . . , K \}$ , where $K$ is the total number of tetrahedra and $v _ { i _ { k } } \in V _ { T }$ .
55
+
56
+ We represent the sign distance field by interpolating SDF values defined on the vertices of the grid. Specifically, we denote the SDF value in vertex $v _ { i } \in V _ { T }$ as $s ( v _ { i } )$ . SDF values for the points that lie inside the tetrahedron follow a barycentric interpolation of the SDF values of the four vertices that encapsulates the point.
57
+
58
+ # 3.1.2 Volume Subdivision
59
+
60
+ We represent shape in a coarse to fine manner for efficiency. We determine the surface tetrahedra $T _ { s u r f }$ by checking whether a tetrahedron has vertices with different SDF signs – indicating that it intersects the surface encoded by the SDF. We subdivide $T _ { s u r f }$ as well as their immediate neighbors and increase resolution by adding the mid point to each edge. We compute SDF values of the new vertices by averaging the SDF values on the edge (Fig. 2).
61
+
62
+ ![](images/690ebadbdb5fb11a0781110c51057baf1fbf00e37c739b19a6285e80b9e34a71.jpg)
63
+ Figure 2: Volume Subdivision: Each surface tet.(blue) is divided into 8 tet.(red) by adding midpoints.
64
+
65
+ # 3.1.3 Marching Tetrahedra for converting between an Implicit and Explicit Representation
66
+
67
+ ![](images/66197fc00f7d532542743103dce49d9e142b692a641aa4f468f4386db848bf60.jpg)
68
+ Figure 3: Three unique surface configurations in MT. Vertex color indicates the sign of signed distance value. Notice that flipping the signs of all vertices will result in the same surface configuration. Position of the vertex is linearly interpolated along the edges with sign change.
69
+
70
+ We use the Marching Tetrahedra [15] algorithm to convert the encoded SDF into an explicit triangular mesh. Given the SDF values $\mathbf { \bar { \{ } } s ( v _ { a } ) , s ( \mathbf { \bar { { v } } } _ { b } ) , s ( v _ { c } ) , s ( v _ { d } ) \}$ of the vertices of a tetrahedron, MT determines the surface typology inside the tetrahedron based on the signs of $s ( v )$ , which is illustrated in Fig. 3. The total number of configurations is $2 ^ { 4 } = { \bar { 1 } } 6$ , which falls into 3 unique cases after considering rotation symmetry. Once the surface typology inside the tetrahedron is identified, the vertex location of the iso-surface is computed at the zero crossings of the linear interpolation along the tetrahedron’s edges, as shown in Fig. 3.
71
+
72
+ Prior works [45, 31] argue that the singularity in this formulation, i.e. when $s ( v _ { a } ) = s ( v _ { b } )$ , prevents the change of surface typology (sign change of $s ( v _ { a } ) )$ ) during training. However, we find that, in practise, the equation is only evaluated when $\mathrm { s i g n } ( s ( v _ { a } ) ) \neq \mathrm { s i g n } ( s ( v _ { b } ) )$ . Thus, during training, the singularity never happens and the gradient from a loss defined on the extracted iso-surface (Sec. 3.3), can be back-propagated to both vertex positions and SDF values via the chain rule. A more detailed analysis is in the Appendix.
73
+
74
+ # 3.1.4 Surface Subdivision
75
+
76
+ Having a surface mesh as output allows us to further increase the representation power and the visual quality of the shapes with a differentiable surface subdivision module. We follow the scheme of the Loop Subdivision method [35], but instead of using a fixed set of parameters for subdivision, we make these parameters learnable in DMTET. Specifically, learnable parameters include the positions of each mesh vertex $\boldsymbol { v } _ { i } ^ { \prime }$ , as well as $\alpha _ { i }$ which controls the generated surface via weighting the smoothness of neighbouring vertices. Note that different from Liu et al. [33], we only predict the per-vertex parameter at the beginning and carry it over to subsequent subdivision iterations to attain a lower computational cost. We provide more details in Appendix.
77
+
78
+ # 3.2 DMTET: 3D Deep Conditional Generative Model
79
+
80
+ Our DMTET is a neural network that utilizes our proposed 3D representation and aims to output a high resolution 3D mesh $M$ from input $x$ (a point cloud or a coarse voxelized shape). We describe the architecture (Fig. 4) of the generator for each module of our 3D representation in Sec. 3.2.1, with the architecture of the discriminator presented in Sec. 3.2.2. Further details are in Appendix.
81
+
82
+ ![](images/fa49995de6dd2e0e3e4ada8be106cd973661cac4b1241747a493f2249be01cff.jpg)
83
+ Figure 4: Our generator and discriminator architectures. The generator is composed of two parts—one utilizes MLP to generate the initial predictions for all grid vertices and the other uses GCN to refine the surface.
84
+
85
+ # 3.2.1 3D Generator
86
+
87
+ Input Encoder We use PVCNN [34] as an input encoder to extract a 3D feature volume $F _ { v o l } ( x )$ from a point cloud. When the input is a coarse voxelized shape, we sample points on its surface. We compute a feature vector $F _ { v o l } ( v , x )$ for a grid vertex $v \in \mathbb { R } ^ { 3 }$ via trilinear interpolation.
88
+
89
+ Initial Prediction of SDF We predict the SDF value for each vertex in the initial deformable tetrahedral grid using a fully-connected network $s ( v ) = M L P ( F _ { v o l } ( v , x ) , v )$ . The fully-connected network additionally outputs a feature vector $f ( v )$ , which is used for the surface refinement in the volume subdivision stage.
90
+
91
+ Surface Refinement with Volume Subdivision After obtaining the initial SDF, we iteratively refine the surface and subdivide the tetrahedral grid. We first identify surface tetrahedra $T _ { s u r f }$ based on the current $s ( v )$ value. We then build a graph $G = ( V _ { s u r f } , E _ { s u r f } )$ , where $V _ { s u r f } , E _ { s u r f }$ correspond to the vertices and edges in $T _ { s u r f }$ . We then predict the position offsets $\Delta v _ { i }$ and SDF residual values $\Delta s ( v _ { i } )$ for each vertex $i$ in $V _ { s u r f }$ using a Graph Convolutional Network [32] (GCN):
92
+
93
+ $$
94
+ \begin{array} { r c l } { f _ { v _ { i } } ^ { \prime } } & { = } & { \mathsf { c o n c a t } ( v _ { i } , s ( v _ { i } ) , F _ { v o l } ( v _ { i } , x ) , f ( v _ { i } ) ) , } \\ { ( \Delta v _ { i } , \Delta s ( v _ { i } ) , \overline { { f ( v _ { i } ) } } ) _ { i = 1 , \cdots N _ { s u r f } } } & { = } & { \mathsf { G C N } \big ( ( f _ { v _ { i } } ^ { \prime } ) _ { i = 1 , \cdots N _ { s u r f } } , G \big ) , } \end{array}
95
+ $$
96
+
97
+ where $N _ { s u r f }$ is the total number of vertices in $V _ { s u r f }$ and $\overline { { f ( v _ { i } ) } }$ is the updated per-vertex feature. The vertex position and the SDF value for vertex $v _ { i }$ are updated as $v _ { i } ^ { \prime } = v _ { i } + \Delta v _ { i }$ and $s ( v _ { i } ^ { \prime } ) =$ $s ( v _ { i } ) + \Delta s ( v _ { i } )$ . This refinement step can potentially flip the sign of the SDF values to refine the local typology, and also move the vertices thus improving the local geometry.
98
+
99
+ After surface refinement, we perform the volume subdivision step followed by an additional surface refinement step. In particular, we re-identify $T _ { s u r f }$ and subdivide $T _ { s u r f }$ and their immediate neighbors. We drop the unsubdivided tetrahedra from the full tetrahedral grid in both steps, which saves memory and computation, as the size of the $T _ { s u r f }$ is proportional to the surface area of the object, and scales up quadratically rather than cubically as the grid resolution increases.
100
+
101
+ Note that the SDF values and positions of the vertices are inherited from the level before subdivision, thus, the loss computed at the final surface can back-propagate to all vertices from all levels. Therefore, our DMTET automatically learns to subdivide the tetrahedra and does not need an additional loss term in the intermediate steps to supervise the learning of the octree hierarchy as in the prior work [52].
102
+
103
+ Learnable Surface Subdivision After extracting the surface mesh using MT, we can further apply learnable surface subdivision. Specifically, we build a new graph on the extracted mesh, and use GCN to predict the updated position of each vertex $\boldsymbol { v } _ { i } ^ { \prime }$ , and $\alpha _ { i }$ for Loop Subvidision. This step removes the quantization errors and mitigates the approximation errors from the classic Loop Subdivision by adjusting $\alpha _ { i }$ , which are fixed in the classic method.
104
+
105
+ # 3.2.2 3D Discriminator
106
+
107
+ We apply a 3D discriminator $D$ on the final surface predicted from the generator. We empirically find that using a 3D CNN from DECOR-GAN [6] as the discriminator on the signed distance field that is computed from the predicted mesh is effective to capture the local details. Specifically, we first randomly select a high-curvature vertex $v$ from the target mesh and compute the ground truth signed distance field $S _ { r e a l } \in \mathbb { R } ^ { N \times N \times N }$ at a voxelized region around $v$ . Similarly, we compute the signed distance field of the predicted surface mesh $M$ at the same location to obtain $S _ { p r e d } \in \mathbb { R } ^ { N \times \tilde { N } \times N }$ . Note that $S _ { p r e d }$ is an analytical function of the mesh $M$ , and thus the gradient to $S _ { p r e d }$ can backpropagate to the vertex positions in $M$ . We feed $S _ { r e a l }$ or $S _ { p r e d }$ into the discriminator, along with the feature vector $F _ { v o l } ( v , x )$ in position $v$ . The discriminator then predicts the probability indicating whether the input comes from the real or generated shapes.
108
+
109
+ # 3.3 Loss Function
110
+
111
+ DMTET is end-to-end trainable. We supervise all modules to minimize the error defined on the final predicted mesh $M$ . Our loss function contains three different terms: a surface alignment loss to encourage the alignment with ground truth surface, an adversarial loss to improve realism of the generated shape, and regularizations to regularize the behavior of SDF and vertex deformations.
112
+
113
+ Surface Alignment loss We sample a set of points $P _ { g t }$ from the surface of the ground truth mesh $M _ { g t }$ . Similarly, we also sample a set of points from $M _ { p r e d }$ to obtain $P _ { p r e d }$ , and minimize the L2 Chamfer Distance and the normal consistency loss between $P _ { g t }$ and $P _ { p r e d }$ :
114
+
115
+ $$
116
+ L _ { \mathrm { c d } } = \sum _ { p \in P _ { p r e d } } \operatorname* { m i n } _ { q \in P _ { g t } } | | p - q | | _ { 2 } + \sum _ { q \in P _ { g t } } \operatorname* { m i n } _ { p \in P _ { p r e d } } | | q - p | | _ { 2 } , L _ { \mathrm { n o m a l } } = \sum _ { p \in P _ { p r e d } } ( 1 - | \Vec { \mathbf { n } } _ { p } \cdot \Vec { \mathbf { n } } _ { \Vec { q } } | ) ,
117
+ $$
118
+
119
+ where $\hat { q }$ is the point that corresponds to $p$ when computing the Chamfer Distance, and $\vec { \bf n } _ { p } , \vec { \bf n } _ { \hat { q } }$ denotes the normal direction at point $p , \hat { q }$ .
120
+
121
+ Adversarial Loss We use the adversarial loss proposed in LSGAN [37]:
122
+
123
+ $$
124
+ L _ { \mathrm { D } } = \frac { 1 } { 2 } [ ( D ( M _ { g t } ) - 1 ) ^ { 2 } + D ( M _ { p r e d } ) ^ { 2 } ] , L _ { \mathrm { G } } = \frac { 1 } { 2 } [ ( D ( M _ { p r e d } ) - 1 ) ^ { 2 } ] .
125
+ $$
126
+
127
+ Regularizations The above loss functions operate on the extracted surface, thus, only the vertices that are close to the iso-surface in the tetrahedral grid receive gradients, while the other vertices do not. Moreover, the surface losses do not provide information about what is inside/outside, since flipping the SDF sign of all vertices in a tetrahedron would result in the same surface being extracted by MT. This may lead to disconnected components during training. To alleviate this issue, we add a SDF loss to regularize SDF values:
128
+
129
+ $$
130
+ L _ { \mathrm { S D F } } = \sum _ { v _ { i } \in V _ { T } } | s ( v _ { i } ) - S D F ( v _ { i } , M _ { g t } ) | ^ { 2 } ,
131
+ $$
132
+
133
+ where $S D F ( v _ { i } , M _ { g t } )$ denotes the SDF value of point $v _ { i }$ to the mesh $M _ { g t }$ . In addition, we apply the $L _ { 2 }$ regularization loss on the predicted vertex deformations to avoid artifacts: $\begin{array} { r } { L _ { \mathrm { d e f } } = \sum _ { v _ { i } \in V _ { T } } | | \Delta v _ { i } | | _ { 2 } } \end{array}$ .
134
+
135
+ The final loss is a weighted sum of all five loss terms:
136
+
137
+ $$
138
+ L = \lambda _ { \mathrm { c d } } L _ { \mathrm { c d } } + \lambda _ { \mathrm { n o r m a l } } L _ { \mathrm { n o r m a l } } + \lambda _ { \mathrm { G } } L _ { \mathrm { G } } + \lambda _ { \mathrm { S D F } } L _ { \mathrm { S D F } } + \lambda _ { \mathrm { d e f } } L _ { \mathrm { d e f } } ,
139
+ $$
140
+
141
+ where $\lambda _ { \mathrm { c d } } , \lambda _ { \mathrm { n o r m a l } } , \lambda _ { \mathrm { G } } , \lambda _ { \mathrm { S D F } } , \lambda _ { \mathrm { d e f } }$ are hyperparameters (provided in the Supplement).
142
+
143
+ # 4 Experiments
144
+
145
+ We first evaluate DMTET in the challenging application of generating high-quality animal shapes from coarse voxels. We further evaluate DMTET in reconstructing 3D shapes from noisy point clouds on ShapeNet by comparing to existing state-of-the-art methods.
146
+
147
+ # 4.1 3D Shape Synthesis from Coarse Voxels
148
+
149
+ Experimental Settings We collected 1562 animal models from the TurboSquid website1. These models have a wide range of diversity, ranging from cats, dogs, bears, giraffes, to rhinoceros, goats, etc. We provide visualizations in Supplement. Among 1562 shapes, we randomly select 1120 shapes for training, and the remaining 442 shapes for testing. We follow the pipeline in Kaolin [27] to convert shapes to watertight meshes. To prepare the input to the network, we first voxelize the mesh into the resolution of $1 6 ^ { \overleftarrow { 3 } }$ , and then sample 3000 points from the surface after applying marching cubes to the $1 6 ^ { 3 }$ voxel grid. Note that this preprocessing is agnostic to the representation of the input coarse shape, allowing us to evaluate on different resolution voxels, or even meshes.
150
+
151
+ We compare our model with the official implementation of ConvOnet [44], which achieved SOTA performance on voxel upsampling. We also compare to DECOR-GAN [6], which obtained impressive results on transferring styles from a high-resolution voxel shape to a low-resolution voxel. Note that the original setting of DECOR-GAN is different from ours. For a fair comparison, we use all 1120 training shapes as the high-resolution style shapes during training, and retrieve the closet training shape to the test shape as the style shape during inference, which we refer as DECOR-Retv. We also compare against a randomly selected style shape as reference, denoted as DECOR-Rand.
152
+
153
+ 1https://www.turbosquid.com, we obtain consent via an agreement with TurboSquid, and following license at https://blog.turbosquid.com/turbosquid-3d-model-license/
154
+
155
+ ![](images/4b1bbd56197269ad4335baabf87fb00fe595064f3e4ec463efdf1d0b619d8092.jpg)
156
+ Figure 5: Qualitative results on 3D shapes Synthesis from Coarse Voxels. Comparing with all baselines, our method reconstructs shapes with much higher quality. Adding GAN further improves the realism of the generated shape. We also show the retrieved shapes from the training set in the second last column.
157
+
158
+ Metrics We evaluate L2 and L1 Chamfer Distance, as well as normal consistency score to assess how well the methods reconstruct the corresponding high-resolution shape following [44]. We also report Light Field Distance [4] (LFD) which measures the visual similarity in 2D rendered views. In addition, we evaluate Cls score following [6]. Specifically, we render the predicted 3D shapes and train a patch-based image classifier to distinguish whether images are from the renderings of real or generated shapes. The mean classification accuracy of the trained classifier is reported as Cls (lower is better). More details are in the Supplement.
159
+
160
+ Experimental Results We provide quantitative results in Table 1 with qualitative examples in Fig. 5. Our DMTET achieves significant improvements over all baselines in terms of all metrics. Compared to both ConvOnet [44] and DECORGAN [6], our DMTET reconstructs shapes with better quality when training without adversarial loss (5th column in Fig. 5). Further geometric details, including nails, ears, eyes, mouths, etc, are captured when trained with the adversarial loss (6th column in Fig. 5), significantly improving the realism and visual quality of the generated shape. To demonstrate the generalization ability of our
161
+
162
+ ![](images/51a010aed7513fe7dfaf318abbe714fe80699ba1341c5a33b907b24eb8d658e0.jpg)
163
+ Figure 6: Qualitative Results of synthesizing highresolution shapes from coarse voxels collected online.
164
+
165
+ DMTET, we collect human-created low-resolution voxels from Turbosquid (shapes unseen in training). We provide qualitative results in Fig. 6. Despite the fact that these human-created shapes have noticeable differences with our coarse voxels used in training, e.g., different ratios of body parts compared with our training shapes (larger head, thinner legs, longer necks), our model faithfully generates high-quality 3D details conditioned on each coarse voxel – an exciting result.
166
+
167
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>L2 Chamfer↓</td><td rowspan=1 colspan=1>L1 Chamfer↓</td><td rowspan=1 colspan=1>Norm. Cons.↑</td><td rowspan=1 colspan=1>LFD↓</td><td rowspan=1 colspan=1>Cls</td></tr><tr><td rowspan=1 colspan=1>ConvOnet [44]</td><td rowspan=1 colspan=1>0.83</td><td rowspan=1 colspan=1>2.41</td><td rowspan=1 colspan=1>0.901</td><td rowspan=1 colspan=1>3220</td><td rowspan=1 colspan=1>0.63</td></tr><tr><td rowspan=1 colspan=1>DECOR [6]-Retv.</td><td rowspan=1 colspan=1>1.32</td><td rowspan=1 colspan=1>3.81</td><td rowspan=1 colspan=1>0.876</td><td rowspan=1 colspan=1>3689</td><td rowspan=1 colspan=1>0.66</td></tr><tr><td rowspan=1 colspan=1>DECOR [6]-Rand.</td><td rowspan=1 colspan=1>2.38</td><td rowspan=1 colspan=1>6.85</td><td rowspan=1 colspan=1>0.797</td><td rowspan=1 colspan=1>5338</td><td rowspan=1 colspan=1>0.67</td></tr><tr><td rowspan=1 colspan=1>DMTET wo Adv.</td><td rowspan=1 colspan=1>0.76</td><td rowspan=1 colspan=1>2.20</td><td rowspan=1 colspan=1>0.916</td><td rowspan=1 colspan=1>2846</td><td rowspan=1 colspan=1>0.58</td></tr><tr><td rowspan=1 colspan=1>DMTET</td><td rowspan=1 colspan=1>0.75</td><td rowspan=1 colspan=1>2.19</td><td rowspan=1 colspan=1>0.918</td><td rowspan=1 colspan=1>2823</td><td rowspan=1 colspan=1>0.54</td></tr></table>
168
+
169
+ Table 1: Super Resolution of Animal Shapes: DMTET significantly outperforms all baselines in all metrics.
170
+
171
+ User Studies We conduct user studies via Amazon Machanical Turk (AMT) to further evaluate the performance of all methods. In particular, we present two shapes that are predicted from two different models to the AMT workers and ask them to evaluate which one is a better looking shape and which one features more realistic details. Detailed experimental settings are provided in the Supplement. We compare DMTET against ConvONet [44], DECOR [6]-Retv, as well as DMTET without adversarial loss (w.o. Adv.). Quantitative results are reported in Table 2. Human judges agree that the shapes generated from our model have better details, compared to all baselines, in a vast majority of the cases. Ablations on using adversarial loss demonstrate the effectiveness of generating higher quality geometry using a discriminator during training.
172
+
173
+ Ablation Studies To evaluate the effectiveness of our volume subdivision and surface subdivision modules, we ablate by sequentially introducing them to the base model (we refer as $\mathrm { D M T E T } _ { B }$ ) which we train on 100-resolution uniform tetrahedral grid without both volume and surface subdivision modules and adversarial
174
+
175
+ Table 2: User Study on 3D Shape Synthesis from Coarse voxels. In each cell, we report percentages of shapes for which the users agree are better looking (left) or have better details (right).
176
+
177
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>ConvONet[44]</td><td rowspan=1 colspan=1>DECOR[6]-Retv.</td><td rowspan=1 colspan=1>DMTETWoAdv</td></tr><tr><td rowspan=1 colspan=1>Baselinewins</td><td rowspan=1 colspan=1>5% 15%</td><td rowspan=1 colspan=1>26%/17%</td><td rowspan=1 colspan=1>29% /25%</td></tr><tr><td rowspan=1 colspan=1>DMTETwins</td><td rowspan=1 colspan=1>95%/95%</td><td rowspan=1 colspan=1>74% /83%</td><td rowspan=1 colspan=1>71% 175%</td></tr></table>
178
+
179
+ loss. We conduct user studies to evaluate the improvement after each step using the protocol described in the above paragraph. We first reduce the initial resolution to 70 and employ volume subdivision to support higher output resolution (we refer this model as $\mathbf { D M T E T } _ { V }$ ) and compare with $\mathbf { D M T E T } _ { B }$ Predictions by $\mathrm { D M T E T } _ { V }$ wins $78 \%$ of cases over $\mathrm { D M T E T } _ { B }$ for better looking, and $61 \%$ of cases for realistic details, showing that the volume subdivision module is effective in synthesizing shape details. We then add surface subdivision on top of the $\mathbf { D M T E T } _ { V }$ and compare with it. The new model wins $62 \%$ of cases over $\mathrm { D M T E T } _ { V }$ for better looking, and $62 \%$ of cases for realistic details as well, demonstrating the effect of surface subdivision module in enhancing the shape details.
180
+
181
+ # 4.2 Point Cloud 3D Reconstruction
182
+
183
+ Experimental Settings We follow the setting from DefTet [18], and use all 13 categories in ShapeNet [3] core data2, which we pre-process using Kaolin [27] to watertight meshes. We sample 5000 points for each shape and add Gaussian noise with zero mean of standard deviation 0.005. For quantitative evaluation, we report the L1 Chamfer Distance in the main paper, and refer readers to the Supplement for results in other metrics (3D IoU, L2 Chamfer Distance and F1 score). We additionally report average inference time on the same Nvidia V100 GPU.
184
+
185
+ We compare DMTET against state-of-the-art 3D reconstruction approaches using different representations: voxels [10], deforming a mesh with a fixed template [54], deforming a mesh generated from a volumetric representation [22], DefTet [18], and implicit functions [44]. For a fair comparison, we use the same point cloud encoder for all the methods, and adopt the decoders in the original papers to generate shapes in different representations. We also remove the adversarial loss in this application, since baselines also do not have it. We further compare with oracle performance of MC/MT where the ground truth SDF is utilized to extract iso-surface using MC/MT.
186
+
187
+ Experimental Results Quantitative results are summarized in Table 3, with a few qualitative examples shown in Fig. 7. Compared to DMC [31], which also predicts the SDF values and supervises with a surface loss, DMTET achieves much better reconstruction quality since training using the marching tetrahedra layer is more efficient than calculating an expectation over all possible configurations within one grid cell as done in DMC [31]. Compared to a method that deforms a fixed template (sphere) [54], we reconstruct shapes with different topologies, achieving more faithful results compared to the ground truth shape. When compared with other explicit surface representations that also support different topology [18, 22], our method achieves higher quality results for local geometry, benefiting from the fact that the typology is jointly optimized with the geometry, whereas it is separately supervised by an occupancy loss in [18, 22]. Compared to a neural implicit method [44], we generate higher quality shapes with less artifacts, while running significantly faster at inference. Finally, compared to a voxel-based method [10] at the same resolution, our method recovers more geometric details, benefiting from the predicted vertex deformations as well as the surface loss.
188
+
189
+ ![](images/7bd33ba212cc763b44caca6f6748c49136fb2f72c0e054ac16d83ee028728622.jpg)
190
+ Figure 7: Qualitative results on 3D Reconstruction from Point Clouds: Our model reconstructs shapes with more geometric details compared to baselines.
191
+
192
+ Table 3: Quantitative Results on Point Cloud Reconstruction (Chamfer L1). Note that all the networks in the baselines are not designed for this task, and thus we use the same encoder and their decoder for a fair comparison. We also ablate ourselves by operating on fixed grid (DMTET wo (Def, Vol., Surf.)), removing volume subdivision (DMTET wo Vol.), or surface subdivision (DMTET wo Surf.), or the both (DMTET wo (Vol., Surf.)).
193
+
194
+ <table><tr><td>Category</td><td>Airplane</td><td>Bench</td><td>Dresser</td><td>Car</td><td>Chair</td><td>Display</td><td>Lamp</td><td>Speaker</td><td>Rifle</td><td>Sofa</td><td>Table</td><td>Phone</td><td>Vessel</td><td>Mean↓</td><td>Time(ms)</td></tr><tr><td>3D-R2N2[10]</td><td>1.48</td><td>1.59</td><td>1.64</td><td>1.62</td><td>1.70</td><td>1.66</td><td>1.74</td><td>1.74</td><td>1.37</td><td>1.60</td><td>1.78</td><td>1.55</td><td>1.51</td><td>1.61</td><td>174</td></tr><tr><td>DMC [31]</td><td>1.57</td><td>1.47</td><td>1.29</td><td>1.67</td><td>1.44</td><td>1.25</td><td>2.15</td><td>1.49</td><td>1.45</td><td>1.19</td><td>1.33</td><td>0.88</td><td>1.70</td><td>1.45</td><td>349</td></tr><tr><td>Pixel2mesh [54]</td><td>0.98</td><td>1.28</td><td>1.44</td><td>1.19</td><td>1.91</td><td>1.25</td><td>2.07</td><td>1.61</td><td>0.91</td><td>1.15</td><td>1.82</td><td>0.83</td><td>1.12</td><td>1.35</td><td>30</td></tr><tr><td>ConvOnet [44]</td><td>0.82</td><td>0.95</td><td>0.96</td><td>1.12</td><td>1.03</td><td>0.93</td><td>1.22</td><td>1.12</td><td>0.79</td><td>0.91</td><td>0.94</td><td>0.67</td><td>0.99</td><td>0.95</td><td>866</td></tr><tr><td>MeshRCNN [22]</td><td>0.88</td><td>1.01</td><td>1.05</td><td>1.14</td><td>1.10</td><td>0.99</td><td>1.20</td><td>1.21</td><td>0.83</td><td>0.96</td><td>1.00</td><td>0.71</td><td>1.03</td><td>1.01</td><td>228</td></tr><tr><td>DEFTET[18]</td><td>0.85</td><td>0.94</td><td>0.97</td><td>1.13</td><td>1.04</td><td>0.92</td><td>1.28</td><td>1.17</td><td>0.85</td><td>0.90</td><td>0.93</td><td>0.65</td><td>0.99</td><td>0.97</td><td>61</td></tr><tr><td>DMTET wo (Def, Vol., Surf.)]</td><td>0.82</td><td>0.96</td><td>0.94</td><td>0.98</td><td>0.99</td><td>0.90</td><td>1.04</td><td>1.03</td><td>0.80</td><td>0.86</td><td>0.93</td><td>0.65</td><td>0.89</td><td>0.91</td><td></td></tr><tr><td>DMTET wo (Vol.,Surf.)</td><td>0.69</td><td>0.82</td><td>0.88</td><td>0.92</td><td>0.92</td><td>0.82</td><td>0.89</td><td>0.97</td><td>0.65</td><td>0.81</td><td>0.84</td><td>0.61</td><td>0.80</td><td>0.81</td><td>52 52</td></tr><tr><td>DMTET wo Vol.</td><td>0.65</td><td>0.78</td><td>0.84</td><td>0.89</td><td>0.89</td><td>0.79</td><td>0.86</td><td>0.95</td><td>0.61</td><td>0.78</td><td>0.79</td><td>0.60</td><td>0.78</td><td>0.79</td><td>67</td></tr><tr><td>DMTET wo Surf.</td><td>0.63</td><td>0.77</td><td>0.84</td><td>0.88</td><td>0.88</td><td>0.79</td><td>0.84</td><td>0.94</td><td>0.60</td><td>0.78</td><td>0.79</td><td>0.59</td><td>0.76</td><td>0.78</td><td>108</td></tr><tr><td>DMTET</td><td>0.62</td><td>0.76</td><td>0.83</td><td>0.87</td><td>0.88</td><td>0.78</td><td>0.84</td><td>0.94</td><td>0.59</td><td>0.77</td><td>0.78</td><td>0.57</td><td>0.76</td><td>0.77</td><td>129</td></tr></table>
195
+
196
+ # 4.2.1 Analysis
197
+
198
+ We investigate how each component in our representation affects the performance and reconstruction quality.
199
+
200
+ Comparisons with Oracle Performance of MC/MT We first demonstrate the effect of learning on explicit surface via MT. We compare with the oracle performance of extracting the iso-surface with MT/MC from the ground truth signed distance fields on the Chair test set in ShapeNet, which contains diverse high-quality details. Specifically, for MC/MT, we first compute the discretized SDF at different grid resolutions, and compare the extracted surface to the ground truth surface.
201
+
202
+ ![](images/ca6df925a51dd1d96de02ca23469bf92f0ad16b5ce533ad7239d3a0faf8c0a73.jpg)
203
+ Figure 8: Comparing our DMTET with oracle performance of MC and MT.
204
+
205
+ As shown in Fig. 8, MT consistently outperforms MC when querying the same number of points. We found the staggered grids pattern in tetrahedral grid [16, 18] better captures thin structures at a limited resolution (Fig. 9). This makes MT a better choice for efficiency reasons. The usage of tetrahedral mesh in DMTET follows this motivation. Without deforming the grid, DMTET outperforms the oracle performance of MT by a large margin when querying the same number of points, although DMTET predicts the surface from noisy point cloud. This demonstrates that directly optimizing the reconstructed surface can mitigate the discretization errors imposed by MT to a large extent.
206
+
207
+ ![](images/430b26fbbcba7dc56f2f3f84c2d486be08926dbae7665f553626b9f093f6b9b3.jpg)
208
+ Figure 9: We compare trained DMTET to oracle performance of MT and MC. Number in bracket indicates number of SDF points queried.
209
+
210
+ Ablation Studies We further provide ablation studies on the entire ShapeNet test set, which is summarized in Tab. 3. We first compare the version where we only predict SDF values without learning to deform the vertices and volume/surface subdivision with the version that predicts both SDF and the deformation. Predicting deformation along with SDF is significantly more performant, since vertex movements allow for a better reconstruction of the underlying surface. This is especially true for categories with thin structures (e.g. lamp) where the grid vertices are desired to align with them. We further ablate the use of volume subdivision and surface subdivision. We show that each component provides an improvement. In particular, volume subdivision has a significant
211
+
212
+ improvement for object categories with fine-grained structural details, such as airplane and lamp, which require higher grid resolutions to model the occupancy change. Surface subdivision generates shapes with a parametric surface, avoiding the quantization errors in the planar faces and produces more visually pleasing results.
213
+
214
+ # 5 Conclusion
215
+
216
+ In this paper, we introduced a deep 3D conditional generative model that can synthesize highresolution 3D shapes using simple user guides such as coarse voxels. Our DMTET features a novel 3D representation that marries implicit and explicit representations by leveraging the advantages of both. We experimentally show that our approach synthesizes significantly higher quality shapes with better geometric details than existing methods, confirmed by quantitative metrics and an extensive user study. By showcasing the ability to upscale coarse voxels such as Minecraft shapes, we hope that we take one step closer to democratizing 3D content creation.
217
+
218
+ # 6 Broad Impact
219
+
220
+ Many fields such as AR/VR, robotics, architecture, gaming and film rely on high-quality 3D content. Creating such content, however, requires human experts, i.e., experienced artists, and a significant amount of development time. In contrast, platforms like Minecraft enable millions of users around the world to carve out coarse shapes with simple blocks. Our work aims at creating A.I. tools that would enable even novice users to upscale simple, low-resolution shapes into high resolution, beautiful 3D content. Our method currently focuses on 3D animal shapes. We are not currently aware of and do not foresee nefarious use cases of our method.
221
+
222
+ # 7 Disclosure of Funding
223
+
224
+ This work was funded by NVIDIA. Tianchang Shen and Jun Gao acknowledge additional revenue in the form of student scholarships from University of Toronto and the Vector Institute, which are not in direct support of this work.
225
+
226
+ # References
227
+
228
+ [1] Matan Atzmon and Yaron Lipman. Sal: Sign agnostic learning of shapes from raw data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2565–2574, 2020.
229
+ [2] Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Generative and discriminative voxel modeling with convolutional neural networks. arXiv preprint arXiv:1608.04236, 2016. [3] 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.
230
+ [4] Ding-Yun Chen, Xiao-Pei Tian, Yu-Te Shen, and Ming Ouhyoung. On visual similarity based 3d model retrieval. In Computer graphics forum, volume 22, pages 223–232. Wiley Online Library, 2003.
231
+ [5] Wenzheng Chen, Jun Gao, Huan Ling, Edward Smith, Jaakko Lehtinen, Alec Jacobson, and Sanja Fidler. Learning to predict 3d objects with an interpolation-based differentiable renderer. In Advances In Neural Information Processing Systems, 2019.
232
+ [6] Zhiqin Chen, Vladimir G. Kim, Matthew Fisher, Noam Aigerman, Hao Zhang, and Siddhartha Chaudhuri. Decor-gan: 3d shape detailization by conditional refinement. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021.
233
+ [7] Zhiqin Chen, Andrea Tagliasacchi, and Hao Zhang. Bsp-net: Generating compact meshes via binary space partitioning. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. [8] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
234
+ [9] Julian Chibane, Aymen Mir, and Gerard Pons-Moll. Neural unsigned distance fields for implicit function learning. In Advances in Neural Information Processing Systems (NeurIPS), December 2020.
235
+ [10] Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision, pages 628–644. Springer, 2016.
236
+ [11] Angela Dai, Daniel Ritchie, Martin Bokeloh, Scott Reed, Jürgen Sturm, and Matthias Nießner. Scancomplete: Large-scale scene completion and semantic segmentation for 3d scans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4578–4587, 2018.
237
+ [12] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5868–5877, 2017.
238
+ [13] Thomas Davies, Derek Nowrouzezahrai, and Alec Jacobson. Overfit neural networks as a compact shape representation. arXiv preprint arXiv:2009.09808, 2020.
239
+ [14] Yu Deng, Jiaolong Yang, and Xin Tong. Deformed implicit field: Modeling 3d shapes with learned dense correspondence. In IEEE Computer Vision and Pattern Recognition, 2021.
240
+ [15] Akio Doi and Akio Koide. An efficient method of triangulating equi-valued surfaces by using tetrahedral cells. IEICE TRANSACTIONS on Information and Systems, 74(1):214–224, 1991.
241
+ [16] Crawford Doran, Athena Chang, and Robert Bridson. Isosurface stuffing improved: acute lattices and feature matching. In ACM SIGGRAPH 2013 Talks, pages 1–1, 2013.
242
+ [17] Yueqi Duan, Haidong Zhu, He Wang, Li Yi, Ram Nevatia, and Leonidas J Guibas. Curriculum deepsdf. In European Conference on Computer Vision, pages 51–67. Springer, 2020.
243
+ [18] Jun Gao, Wenzheng Chen, Tommy Xiang, Clement Fuji Tsang, Alec Jacobson, Morgan McGuire, and Sanja Fidler. Learning deformable tetrahedral meshes for 3d reconstruction. In Advances In Neural Information Processing Systems, 2020.
244
+ [19] Jun Gao, Chengcheng Tang, Vignesh Ganapathi-Subramanian, Jiahui Huang, Hao Su, and Leonidas J Guibas. Deepspline: Data-driven reconstruction of parametric curves and surfaces. arXiv preprint arXiv:1901.03781, 2019.
245
+ [20] Jun Gao, Zian Wang, Jinchen Xuan, and Sanja Fidler. Beyond fixed grid: Learning geometric image representation with a deformable grid. In ECCV, 2020.
246
+ [21] Lin Gao, Jie Yang, Tong Wu, Yu-Jie Yuan, Hongbo Fu, Yu-Kun Lai, and Hao Zhang. Sdm-net: Deep generative network for structured deformable mesh. ACM Transactions on Graphics (TOG), 38(6):1–15, 2019.
247
+ [22] Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, pages 9785–9795, 2019.
248
+ [23] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 216–224, 2018.
249
+ [24] Christian Häne, Shubham Tulsiani, and Jitendra Malik. Hierarchical surface prediction for 3d object reconstruction. In 2017 International Conference on 3D Vision (3DV), pages 412–420. IEEE, 2017.
250
+ [25] Rana Hanocka, Gal Metzer, Raja Giryes, and Daniel Cohen-Or. Point2mesh: A self-prior for deformable meshes. ACM Trans. Graph., 39(4), 2020.
251
+ [26] Zekun Hao, Hadar Averbuch-Elor, Noah Snavely, and Serge Belongie. Dualsdf: Semantic shape manipulation using a two-level representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7631–7641, 2020.
252
+ [27] Krishna Murthy J., Edward Smith, Jean-Francois Lafleche, Clement Fuji Tsang, Artem Rozantsev, Wenzheng Chen, Tommy Xiang, Rev Lebaredian, and Sanja Fidler. Kaolin: A pytorch library for accelerating 3d deep learning research. arXiv:1911.05063, 2019.
253
+ [28] Marian Kleineberg, Matthias Fey, and Frank Weichert. Adversarial generation of continuous implicit shape representations. arXiv preprint arXiv:2002.00349, 2020.
254
+ [29] Jiabao Lei and Kui Jia. Analytic marching: An analytic meshing solution from deep implicit surface networks. In International Conference on Machine Learning, pages 5789–5798. PMLR, 2020.
255
+ [30] Manyi Li and Hao Zhang. D2im-net: Learning detail disentangled implicit fields from single images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10246– 10255, 2021.
256
+ [31] Yiyi Liao, Simon Donné, and Andreas Geiger. Deep marching cubes: Learning explicit surface representations. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
257
+ [32] Huan Ling, Jun Gao, Amlan Kar, Wenzheng Chen, and Sanja Fidler. Fast interactive object annotation with curve-gcn. In CVPR, 2019.
258
+ [33] Hsueh-Ti Derek Liu, Vladimir G. Kim, Siddhartha Chaudhuri, Noam Aigerman, and Alec Jacobson. Neural subdivision. ACM Trans. Graph., 39(4), 2020.
259
+ [34] Zhijian Liu, Haotian Tang, Yujun Lin, and Song Han. Point-voxel cnn for efficient 3d deep learning. In Advances in Neural Information Processing Systems, 2019.
260
+ [35] Charles Loop. Smooth subdivision surfaces based on triangles. January 1987.
261
+ [36] William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. ACM siggraph computer graphics, 21(4):163–169, 1987.
262
+ [37] Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2794–2802, 2017.
263
+ [38] Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 922–928. IEEE, 2015.
264
+ [39] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4460–4470, 2019.
265
+ [40] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020.
266
+ [41] Charlie Nash, Yaroslav Ganin, S. M. Ali Eslami, and Peter W. Battaglia. Polygen: An autoregressive generative model of 3d meshes. ICML, 2020.
267
+ [42] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 165–174, 2019.
268
+ [43] Despoina Paschalidou, Angelos Katharopoulos, Andreas Geiger, and Sanja Fidler. Neural parts: Learning expressive 3d shape abstractions with invertible neural networks. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2021.
269
+
270
+ [44] Songyou Peng, Michael Niemeyer, Lars Mescheder, Marc Pollefeys, and Andreas Geiger. Convolutional occupancy networks. In European Conference on Computer Vision (ECCV), 2020.
271
+
272
+ [45] Edoardo Remelli, Artem Lukoianov, Stephan Richter, Benoit Guillard, Timur Bagautdinov, Pierre Baque, and Pascal Fua. Meshsdf: Differentiable iso-surface extraction. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 22468–22478. Curran Associates, Inc., 2020.
273
+
274
+ [46] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3d representations at high resolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3577–3586, 2017.
275
+
276
+ [47] Shunsuke Saito, Zeng Huang, Ryota Natsume, Shigeo Morishima, Angjoo Kanazawa, and Hao Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
277
+
278
+ [48] Shunsuke Saito, Tomas Simon, Jason Saragih, and Hanbyul Joo. Pifuhd: Multi-level pixel-aligned implicit function for high-resolution 3d human digitization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, June 2020.
279
+
280
+ [49] Vincent Sitzmann, Julien N.P. Martel, Alexander W. Bergman, David B. Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. In Proc. NeurIPS, 2020.
281
+
282
+ [50] Minhyuk Sung, Hao Su, Vladimir G Kim, Siddhartha Chaudhuri, and Leonidas Guibas. Complementme: Weakly-supervised component suggestions for 3d modeling. ACM Transactions on Graphics (TOG), 36(6):1–12, 2017.
283
+
284
+ [51] Towaki Takikawa, Joey Litalien, Kangxue Yin, Karsten Kreis, Charles Loop, Derek Nowrouzezahrai, Alec Jacobson, Morgan McGuire, and Sanja Fidler. Neural geometric level of detail: Real-time rendering with implicit 3D shapes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021.
285
+
286
+ [52] M. Tatarchenko, A. Dosovitskiy, and T. Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In IEEE International Conference on Computer Vision (ICCV), 2017.
287
+
288
+ [53] Shubham Tulsiani, Hao Su, Leonidas J. Guibas, Alexei A. Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Computer Vision and Pattern Regognition (CVPR), 2017.
289
+
290
+ [54] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 52–67, 2018.
291
+
292
+ [55] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis. ACM Transactions on Graphics (SIGGRAPH), 36(4), 2017.
293
+
294
+ [56] Peng-Shuai Wang, Yang Liu, and Xin Tong. Deep octree-based cnns with output-guided skip connections for 3d shape and scene completion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 266–267, 2020.
295
+
296
+ [57] Francis Williams, Matthew Trager, Joan Bruna, and Denis Zorin. Neural splines: Fitting 3d surfaces with infinitely-wide neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9949–9958, 2021.
297
+
298
+ [58] Jiajun Wu, Chengkai Zhang, Tianfan Xue, William T Freeman, and Joshua B Tenenbaum. Learning a probabilistic latent space of object shapes via 3d generative-adversarial modeling. In Advances in Neural Information Processing Systems, pages 82–90, 2016.
299
+
300
+ [59] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1912–1920, 2015.
301
+
302
+ [60] Qiangeng Xu, Weiyue Wang, Duygu Ceylan, Radomir Mech, and Ulrich Neumann. Disn: Deep implicit surface network for high-quality single-view 3d reconstruction. In Advances in Neural Information Processing Systems, pages 490–500, 2019.
303
+
304
+ [61] Kangxue Yin, Zhiqin Chen, Siddhartha Chaudhuri, Matthew Fisher, Vladimir Kim, and Hao Zhang. Coalesce: Component assembly by learning to synthesize connections. In Proc. of 3DV, 2020.
305
+ [62] Chenyang Zhu, Kai Xu, Siddhartha Chaudhuri, Renjiao Yi, and Hao Zhang. SCORES: Shape composition with recursive substructure priors. ACM Transactions on Graphics, 37(6):Article 211, 2018.
306
+
307
+ # Checklist
308
+
309
+ 1. For all authors...
310
+
311
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We provide extensive experiments in Sec. 4.
312
+ (b) Did you describe the limitations of your work? [Yes] We provide the discussion on limitations an failure cases in Supplement.
313
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] We provide the discussion in the Board Impact section with further discussions in Supplement.
314
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
315
+
316
+ 2. If you are including theoretical results...
317
+
318
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
319
+
320
+ 3. If you ran experiments...
321
+
322
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] The code is currently quite uncleaned and requires many dependencies. We are planning to release the code after cleaning.
323
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] We provide training details in both Sec. 4 in the main paper and Supplement.
324
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Training existing 3D models, including ours, on large-scale 3D datasets is too computation costly to repeat multiple times.
325
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We provide in the Supplement.
326
+
327
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
328
+
329
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We used ShapeNet [3] core dataset in Sec. 4.2. We also used official code to reproduce baselines with citations. In particular, ConvONet [44] and DECOR-GAN [6].
330
+ (b) Did you mention the license of the assets? [Yes] We provided the license of ShapeNet and Turbosquid.
331
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No] The Turbosquid data we are using contains proprietary information.
332
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] We discussed in the Sec. 4 and provide further details in the Supplementary Materials.
333
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] We provide discussion on this in Supplement.
334
+
335
+ 5. If you used crowdsourcing or conducted research with human subjects...
336
+
337
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [Yes] We provide details in the paper, with full text and screenshot in Supplement.
338
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [No] We did not anticipate the potential participant risks, as we only conduct human studies on generated animals.
339
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [Yes] We provide details in Supplement
parse/train/GFV8IVyMM4n/GFV8IVyMM4n_content_list.json ADDED
@@ -0,0 +1,1582 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Deep Marching Tetrahedra: a Hybrid Representation for High-Resolution 3D Shape Synthesis ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 122,
9
+ 823,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tianchang Shen 1,2,3 Jun Gao1,2,3 Kangxue Yin 1 ",
17
+ "bbox": [
18
+ 276,
19
+ 223,
20
+ 718,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Ming-Yu Liu 1 Sanja Fidler1,2,3 ",
28
+ "bbox": [
29
+ 382,
30
+ 260,
31
+ 656,
32
+ 276
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "NVIDIA1 University of Toronto2 Vector Institute3 ",
39
+ "bbox": [
40
+ 334,
41
+ 286,
42
+ 656,
43
+ 300
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "{frshen, jung, kangxuey, mingyul, sfidler}@nvidia.com ",
50
+ "bbox": [
51
+ 339,
52
+ 306,
53
+ 658,
54
+ 318
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 353,
65
+ 535,
66
+ 369
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "We introduce DMTET, a deep 3D conditional generative model that can synthesize high-resolution 3D shapes using simple user guides such as coarse voxels. It marries the merits of implicit and explicit 3D representations by leveraging a novel hybrid 3D representation. Compared to the current implicit approaches, which are trained to regress the signed distance values, DMTET directly optimizes for the reconstructed surface, which enables us to synthesize finer geometric details with fewer artifacts. Unlike deep 3D generative models that directly generate explicit representations such as meshes, our model can synthesize shapes with arbitrary topology. The core of DMTET includes a deformable tetrahedral grid that encodes a discretized signed distance function and a differentiable marching tetrahedra layer that converts the implicit signed distance representation to the explicit surface mesh representation. This combination allows joint optimization of the surface geometry and topology as well as generation of the hierarchy of subdivisions using reconstruction and adversarial losses defined explicitly on the surface mesh. Our approach significantly outperforms existing work on conditional shape synthesis from coarse voxel inputs, trained on a dataset of complex 3D animal shapes. Project page: https://nv-tlabs.github.io/DMTet/. ",
73
+ "bbox": [
74
+ 233,
75
+ 386,
76
+ 766,
77
+ 619
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 637,
88
+ 312,
89
+ 655
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Fields such as simulation, architecture, gaming, and film rely on high-quality 3D content with rich geometric details and complex topology. However, creating such content requires tremendous expert human effort. It takes a significant amount of development time to create each individual 3D asset. In contrast, creating rough 3D shapes with simple building blocks like voxels has been widely adopted. For example, Minecraft has been used by hundreds of millions of users for creating 3D content. Most of them are non-experts. Developing A.I. tools that enable regular people to upscale coarse, voxelized objects into high resolution, beautiful 3D shapes would bring us one step closer to democratizing high-quality 3D content creation. Similar tools can be envisioned for turning 3D scans of objects recorded by modern phones into high-quality forms. Our work aspires to create such capabilities. ",
96
+ "bbox": [
97
+ 174,
98
+ 665,
99
+ 825,
100
+ 790
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "A powerful 3D representation is a critical component of a learning-based 3D content creation framework. A good 3D representation for high-quality reconstruction and synthesis should capture local geometric details and represent objects with arbitrary topology while also being memory and computationally efficient for fast inference in interactive applications. ",
107
+ "bbox": [
108
+ 174,
109
+ 796,
110
+ 825,
111
+ 852
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Recently, neural implicit representations [8, 39, 42, 51], which use a neural network to implicitly represent a shape via a signed distance field (SDF) or an occupancy field (OF), have emerged as an effective 3D representation. Neural implicits have the benefit of representing complex geometry and topology, not limited to a predefined resolution. The success of these methods has been shown in shape compression [49, 13, 51], single-image shape generation [47, 60, 48], and point cloud reconstruction [57]. However, most of the current implicit approaches are trained by regressing to SDF or OF values and cannot utilize an explicit supervision on the target surface, which imposes useful constraints for training. To mitigate this issue, several works [45, 31] proposed to utilize iso-surfacing techniques such as the Marching Cubes (MC) algorithm to extract a surface mesh from the implicit representation, which, however, is computationally expensive. ",
118
+ "bbox": [
119
+ 174,
120
+ 858,
121
+ 823,
122
+ 900
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 174,
131
+ 92,
132
+ 825,
133
+ 189
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In this work, we introduce DMTET, a deep 3D conditional generative model for high-resolution 3D shape synthesis from user guides in the form of coarse voxels. In the heart of DMTET is a new differentiable shape representation that marries implicit and explicit 3D representations. In contrast to deep implicit approaches optimized for predicting sign distance (or occupancy) values, our model employs additional supervision on the surface, which empirically renders higher quality shapes with finer geometric details. Compared to methods that learn to directly generate explicit representations, such as meshes [54], by committing to a preset topology, our DMTET can produce shapes with arbitrary topology. Specifically, DMTET predicts the underlying surface parameterized by an implicit function encoded via a deformable tetrahedral grid. The underlying surface is converted into an explicit mesh with a Marching Tetrahedra (MT) algorithm, which we show is differentiable and more performant than the Marching Cubes. DMTET maintains efficiency by learning to adapt the grid resolution by deforming and selectively subdividing tetrahedra. This has the effect of spending computation only on the relevant regions in space. We achieve further gains in the overall quality of the output shape with learned surface subdivision. Our DMTET is end-to-end differentiable, allowing the network to jointly optimize the geometry and topology of the surface, as well as the hierarchy of subdivisions using a loss function defined explicitly on the surface mesh. ",
140
+ "bbox": [
141
+ 174,
142
+ 194,
143
+ 825,
144
+ 416
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "We demonstrate our DMTET on two challenging tasks: 3D shape synthesis from coarse voxel inputs and point cloud 3D reconstruction. We outperform existing state-of-the-art methods by a significant margin while being 10 times faster than alternative implicit representation-based methods at inference time. In summary, we make the following technical contributions: ",
151
+ "bbox": [
152
+ 176,
153
+ 421,
154
+ 825,
155
+ 478
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "1. We show that using Marching Tetrahedra (MT) as a differentiable iso-surfacing layer allows topological change for the underlying shape represented by a implicit field, in contrast to the analysis in prior works [31, 45]. \n2. We incorporate MT in a DL framework and introduce DMTET, a hybrid representation that combines implicit and explicit surface representations. We demonstrate that the additional supervision (e.g. chamfer distance, adversarial loss) defined directly on the extracted surface from implicit field improves the shape synthesis quality. \n3. We introduce a coarse-to-fine optimization strategy that scales DMTET to high resolution during training. We thus achieves better reconstruction quality than state-of-the-art methods on challenging 3D shape synthesis tasks, while requiring a lower computation cost. ",
162
+ "bbox": [
163
+ 210,
164
+ 488,
165
+ 825,
166
+ 636
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 Related Work ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 174,
176
+ 651,
177
+ 323,
178
+ 667
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "We review the related work on learning-based 3D synthesis methods based on their 3D representations. ",
185
+ "bbox": [
186
+ 176,
187
+ 674,
188
+ 823,
189
+ 689
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Voxel-based Methods Early work [59, 10, 38] represented 3D shapes as voxels, which store the coarse occupancy (inside/outside) values on a regular grid, which makes powerful convolutional neural networks native and renders impressive results on 3D reconstruction and synthesis [12, 11, 58, 2]. For high-resolution shape synthesis, DECOR-GAN [6] transfers geometric details from a high-resolution shape represented in voxel to a low-resolution shape by utilizing a discriminator defined on 3D patches of the voxel grid. However, the computational and memory costs grow cubically as the resolution increases, prohibiting the reconstruction of fine geometric details and smooth curves. One common way to address this limitation is building hierarchical structures such as octrees [46, 52, 55, 56, 24, 52], which adapt the grid resolution locally based on the underlying shape. In this paper, we adopt a hierarchical deformable tetrahedral grid to utilize the resolution better. Unlike octree-based shape synthesis, our network learns grid deformation and subdivision jointly to better represent the surface without relying on explicit supervision from a pre-computed hierarchy. ",
196
+ "bbox": [
197
+ 174,
198
+ 696,
199
+ 825,
200
+ 862
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Deep Implicit Fields (DIFs) represent a 3D shape as a zero level set of a continuous function parameterized by a neural network [39, 44, 17, 40]. This formulation can represent arbitrary typology and has infinite resolution. DIF-based shape synthesis approaches have demonstrated strong performance in many applications, including single view 3D reconstruction [60, 30, 47, 48], shape manipulation, and synthesis [26, 21, 28, 14, 1, 9]. However, as these approaches are trained by minimizing the reconstruction loss of function values at a set of sampled 3D locations (a rough proxy of the surface), they tend to render artifacts when synthesizing fine details. Furthermore, if one desires a mesh to be extracted from a DIF, an expensive iso-surfacing step based on Marching Cubes [36] or Marching Tetrahedra [15] is required. Due to the computational burden, iso-surfacing is often done on a smaller resolution, hence prone to quantization errors. Lei et al. [29] proposes an analytic meshing solution to reduce the error, but is only applicable to DIFs parametrized by MLPs with ReLU activation. Our representation scales to high resolution and does not require additional modification to the backward pass for training end-to-end. DMTET can represent arbitrary typology, and is trained via direct supervision on the generated surface. Recent works [1, 9] learn to regress unsigned distance to triangle soup or point cloud. However, their iso-surfacing formulation is not differentiable in contrast to DMTET. ",
207
+ "bbox": [
208
+ 174,
209
+ 869,
210
+ 825,
211
+ 911
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "image",
217
+ "img_path": "images/0d5058ec53aafbd0e0995b8e5ac5432565d0802e926641001c8ac4ebef8fb2be.jpg",
218
+ "image_caption": [
219
+ "Figure 1: DMTET reconstructs the shape implicitly in a coarse-to-fine manner by predicting the SDF defined on a deformable tetrahedral grid. It then converts the SDF to a surface mesh by a differentiable Marching Tetrahedra layer. DMTET is trained by optimizing the objective function defined on the final surface. "
220
+ ],
221
+ "image_footnote": [],
222
+ "bbox": [
223
+ 179,
224
+ 87,
225
+ 815,
226
+ 209
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "",
233
+ "bbox": [
234
+ 174,
235
+ 262,
236
+ 825,
237
+ 441
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Surface-based Methods directly predict triangular meshes and have achieved impressive results for reconstructing and synthesizing simpler shapes [54, 23, 5, 41, 7]. Typically, they predefined the topology of the shape, e.g. equivalent to a sphere [54, 5, 25], or a union of primitives [43, 53, 19] or a set of segmented parts [61, 62, 50]. As a result, they can not model a distribution of shapes with complex topology variations. Recently, DefTet [18] represents a mesh with a deformable tetrahedral grid where the grid vertex coordinates and the occupancy values are learned. However, similar to voxel-based methods, the computational costf increases cubically with the grid resolution. Furthermore, as the occupancy loss for supervising topology learning and the surface loss for supervising geometry learning do not support joint training, it tends to generate suboptimal results. In contrast, our method is able to synthesize high-resolution 3D shapes, not shown in previous work. ",
244
+ "bbox": [
245
+ 174,
246
+ 457,
247
+ 825,
248
+ 594
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "3 Deep Marching Tetrahedra ",
255
+ "text_level": 1,
256
+ "bbox": [
257
+ 176,
258
+ 609,
259
+ 433,
260
+ 627
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "We now introduce our DMTET for synthesizing high-quality 3D objects. The schematic illustration is provided in Fig. 1. Our model relies on a new, hybrid 3D representation specifically designed for high-resolution reconstruction and synthesis, which we describe in Sec. 3.1. In Sec. 3.2, we describe the neural network architecture of DMTET that predicts the shape representation from inputs such as coarse voxels. We provide the training objectives in Sec. 3.3. ",
267
+ "bbox": [
268
+ 174,
269
+ 635,
270
+ 825,
271
+ 704
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "3.1 3D Representation ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 174,
281
+ 720,
282
+ 341,
283
+ 736
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "We represent a shape using a sign distance field (SDF) encoded with a deformable tetrahedral grid, adopted from DefTet [18, 20]. The grid fully tetrahedralizes a unit cube, where each cell in the volume is a tetahedron with 4 vertices and faces. The key aspect of this representation is that the grid vertices can deform to represent the geometry of the shape more efficiently. While the original DefTet encoded occupancy defined on each tetrahedron, we here encode signed distance values defined on the vertices of the grid and represent the underlying surface implicitly (Sec. 3.1.1). The use of signed distance values, instead of occupancy values, provides more flexibility in representing the underlying surface. For greater representation power while keeping memory and computation manageable, we further selectively subdivide the tetrahedra around the predicted surface (Sec. 3.1.2). We convert the signed distance-based implicit representation into a triangular mesh using a marching tetrahedra layer, which we discuss in Sec. 3.1.3. The final mesh is further converted into a parameterized surface with a differentiable surface subdivision module, described in Sec. 3.1.4. ",
290
+ "bbox": [
291
+ 174,
292
+ 744,
293
+ 825,
294
+ 911
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "3.1.1 Deformable Tetrahedral Mesh as an Approximation of an Implicit Function ",
301
+ "text_level": 1,
302
+ "bbox": [
303
+ 173,
304
+ 90,
305
+ 751,
306
+ 106
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "We adopt and extend the deformable tetrahedral grid introduced in Gao et al. [18], which we denote with $( V _ { T } , T )$ , where $V _ { T }$ are the vertices in the tetrahedral grid $T$ . Following the notation in [18], each tetrahedron $T _ { k } \\in T$ is represented with four vertices $\\left\\{ v _ { a _ { k } } , v _ { b _ { k } } , v _ { c _ { k } } , v _ { d _ { k } } \\right\\}$ , with $k \\in \\{ 1 , . . . . , K \\}$ , where $K$ is the total number of tetrahedra and $v _ { i _ { k } } \\in V _ { T }$ . ",
313
+ "bbox": [
314
+ 174,
315
+ 109,
316
+ 826,
317
+ 165
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "We represent the sign distance field by interpolating SDF values defined on the vertices of the grid. Specifically, we denote the SDF value in vertex $v _ { i } \\in V _ { T }$ as $s ( v _ { i } )$ . SDF values for the points that lie inside the tetrahedron follow a barycentric interpolation of the SDF values of the four vertices that encapsulates the point. ",
324
+ "bbox": [
325
+ 173,
326
+ 171,
327
+ 825,
328
+ 228
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "3.1.2 Volume Subdivision ",
335
+ "text_level": 1,
336
+ "bbox": [
337
+ 174,
338
+ 247,
339
+ 362,
340
+ 262
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "We represent shape in a coarse to fine manner for efficiency. We determine the surface tetrahedra $T _ { s u r f }$ by checking whether a tetrahedron has vertices with different SDF signs – indicating that it intersects the surface encoded by the SDF. We subdivide $T _ { s u r f }$ as well as their immediate neighbors and increase resolution by adding the mid point to each edge. We compute SDF values of the new vertices by averaging the SDF values on the edge (Fig. 2). ",
347
+ "bbox": [
348
+ 174,
349
+ 273,
350
+ 604,
351
+ 371
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "image",
357
+ "img_path": "images/690ebadbdb5fb11a0781110c51057baf1fbf00e37c739b19a6285e80b9e34a71.jpg",
358
+ "image_caption": [
359
+ "Figure 2: Volume Subdivision: Each surface tet.(blue) is divided into 8 tet.(red) by adding midpoints. "
360
+ ],
361
+ "image_footnote": [],
362
+ "bbox": [
363
+ 617,
364
+ 227,
365
+ 820,
366
+ 327
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "3.1.3 Marching Tetrahedra for converting between an Implicit and Explicit Representation ",
373
+ "text_level": 1,
374
+ "bbox": [
375
+ 173,
376
+ 383,
377
+ 560,
378
+ 411
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "image",
384
+ "img_path": "images/66197fc00f7d532542743103dce49d9e142b692a641aa4f468f4386db848bf60.jpg",
385
+ "image_caption": [
386
+ "Figure 3: Three unique surface configurations in MT. Vertex color indicates the sign of signed distance value. Notice that flipping the signs of all vertices will result in the same surface configuration. Position of the vertex is linearly interpolated along the edges with sign change. "
387
+ ],
388
+ "image_footnote": [],
389
+ "bbox": [
390
+ 179,
391
+ 417,
392
+ 464,
393
+ 513
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "We use the Marching Tetrahedra [15] algorithm to convert the encoded SDF into an explicit triangular mesh. Given the SDF values $\\mathbf { \\bar { \\{ } } s ( v _ { a } ) , s ( \\mathbf { \\bar { { v } } } _ { b } ) , s ( v _ { c } ) , s ( v _ { d } ) \\}$ of the vertices of a tetrahedron, MT determines the surface typology inside the tetrahedron based on the signs of $s ( v )$ , which is illustrated in Fig. 3. The total number of configurations is $2 ^ { 4 } = { \\bar { 1 } } 6$ , which falls into 3 unique cases after considering rotation symmetry. Once the surface typology inside the tetrahedron is identified, the vertex location of the iso-surface is computed at the zero crossings of the linear interpolation along the tetrahedron’s edges, as shown in Fig. 3. ",
400
+ "bbox": [
401
+ 488,
402
+ 416,
403
+ 825,
404
+ 595
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "Prior works [45, 31] argue that the singularity in this formulation, i.e. when $s ( v _ { a } ) = s ( v _ { b } )$ , prevents the change of surface typology (sign change of $s ( v _ { a } ) )$ ) during training. However, we find that, in practise, the equation is only evaluated when $\\mathrm { s i g n } ( s ( v _ { a } ) ) \\neq \\mathrm { s i g n } ( s ( v _ { b } ) )$ . Thus, during training, the singularity never happens and the gradient from a loss defined on the extracted iso-surface (Sec. 3.3), can be back-propagated to both vertex positions and SDF values via the chain rule. A more detailed analysis is in the Appendix. ",
411
+ "bbox": [
412
+ 174,
413
+ 602,
414
+ 825,
415
+ 685
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "3.1.4 Surface Subdivision ",
422
+ "text_level": 1,
423
+ "bbox": [
424
+ 174,
425
+ 698,
426
+ 364,
427
+ 712
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "Having a surface mesh as output allows us to further increase the representation power and the visual quality of the shapes with a differentiable surface subdivision module. We follow the scheme of the Loop Subdivision method [35], but instead of using a fixed set of parameters for subdivision, we make these parameters learnable in DMTET. Specifically, learnable parameters include the positions of each mesh vertex $\\boldsymbol { v } _ { i } ^ { \\prime }$ , as well as $\\alpha _ { i }$ which controls the generated surface via weighting the smoothness of neighbouring vertices. Note that different from Liu et al. [33], we only predict the per-vertex parameter at the beginning and carry it over to subsequent subdivision iterations to attain a lower computational cost. We provide more details in Appendix. ",
434
+ "bbox": [
435
+ 173,
436
+ 717,
437
+ 825,
438
+ 828
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "3.2 DMTET: 3D Deep Conditional Generative Model ",
445
+ "text_level": 1,
446
+ "bbox": [
447
+ 173,
448
+ 835,
449
+ 558,
450
+ 849
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Our DMTET is a neural network that utilizes our proposed 3D representation and aims to output a high resolution 3D mesh $M$ from input $x$ (a point cloud or a coarse voxelized shape). We describe the architecture (Fig. 4) of the generator for each module of our 3D representation in Sec. 3.2.1, with the architecture of the discriminator presented in Sec. 3.2.2. Further details are in Appendix. ",
457
+ "bbox": [
458
+ 174,
459
+ 856,
460
+ 825,
461
+ 911
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "image",
467
+ "img_path": "images/fa49995de6dd2e0e3e4ada8be106cd973661cac4b1241747a493f2249be01cff.jpg",
468
+ "image_caption": [
469
+ "Figure 4: Our generator and discriminator architectures. The generator is composed of two parts—one utilizes MLP to generate the initial predictions for all grid vertices and the other uses GCN to refine the surface. "
470
+ ],
471
+ "image_footnote": [],
472
+ "bbox": [
473
+ 191,
474
+ 61,
475
+ 807,
476
+ 178
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "3.2.1 3D Generator ",
483
+ "text_level": 1,
484
+ "bbox": [
485
+ 174,
486
+ 231,
487
+ 321,
488
+ 246
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "Input Encoder We use PVCNN [34] as an input encoder to extract a 3D feature volume $F _ { v o l } ( x )$ from a point cloud. When the input is a coarse voxelized shape, we sample points on its surface. We compute a feature vector $F _ { v o l } ( v , x )$ for a grid vertex $v \\in \\mathbb { R } ^ { 3 }$ via trilinear interpolation. ",
495
+ "bbox": [
496
+ 174,
497
+ 248,
498
+ 825,
499
+ 290
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Initial Prediction of SDF We predict the SDF value for each vertex in the initial deformable tetrahedral grid using a fully-connected network $s ( v ) = M L P ( F _ { v o l } ( v , x ) , v )$ . The fully-connected network additionally outputs a feature vector $f ( v )$ , which is used for the surface refinement in the volume subdivision stage. ",
506
+ "bbox": [
507
+ 173,
508
+ 297,
509
+ 825,
510
+ 354
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Surface Refinement with Volume Subdivision After obtaining the initial SDF, we iteratively refine the surface and subdivide the tetrahedral grid. We first identify surface tetrahedra $T _ { s u r f }$ based on the current $s ( v )$ value. We then build a graph $G = ( V _ { s u r f } , E _ { s u r f } )$ , where $V _ { s u r f } , E _ { s u r f }$ correspond to the vertices and edges in $T _ { s u r f }$ . We then predict the position offsets $\\Delta v _ { i }$ and SDF residual values $\\Delta s ( v _ { i } )$ for each vertex $i$ in $V _ { s u r f }$ using a Graph Convolutional Network [32] (GCN): ",
517
+ "bbox": [
518
+ 174,
519
+ 359,
520
+ 825,
521
+ 431
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/c23b00128dc037edafe2fde1487ee41eb4ff642d329832475e1941d503f3144b.jpg",
528
+ "text": "$$\n\\begin{array} { r c l } { f _ { v _ { i } } ^ { \\prime } } & { = } & { \\mathsf { c o n c a t } ( v _ { i } , s ( v _ { i } ) , F _ { v o l } ( v _ { i } , x ) , f ( v _ { i } ) ) , } \\\\ { ( \\Delta v _ { i } , \\Delta s ( v _ { i } ) , \\overline { { f ( v _ { i } ) } } ) _ { i = 1 , \\cdots N _ { s u r f } } } & { = } & { \\mathsf { G C N } \\big ( ( f _ { v _ { i } } ^ { \\prime } ) _ { i = 1 , \\cdots N _ { s u r f } } , G \\big ) , } \\end{array}\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 250,
532
+ 435,
533
+ 743,
534
+ 477
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "where $N _ { s u r f }$ is the total number of vertices in $V _ { s u r f }$ and $\\overline { { f ( v _ { i } ) } }$ is the updated per-vertex feature. The vertex position and the SDF value for vertex $v _ { i }$ are updated as $v _ { i } ^ { \\prime } = v _ { i } + \\Delta v _ { i }$ and $s ( v _ { i } ^ { \\prime } ) =$ $s ( v _ { i } ) + \\Delta s ( v _ { i } )$ . This refinement step can potentially flip the sign of the SDF values to refine the local typology, and also move the vertices thus improving the local geometry. ",
541
+ "bbox": [
542
+ 174,
543
+ 482,
544
+ 825,
545
+ 539
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "After surface refinement, we perform the volume subdivision step followed by an additional surface refinement step. In particular, we re-identify $T _ { s u r f }$ and subdivide $T _ { s u r f }$ and their immediate neighbors. We drop the unsubdivided tetrahedra from the full tetrahedral grid in both steps, which saves memory and computation, as the size of the $T _ { s u r f }$ is proportional to the surface area of the object, and scales up quadratically rather than cubically as the grid resolution increases. ",
552
+ "bbox": [
553
+ 174,
554
+ 545,
555
+ 825,
556
+ 616
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Note that the SDF values and positions of the vertices are inherited from the level before subdivision, thus, the loss computed at the final surface can back-propagate to all vertices from all levels. Therefore, our DMTET automatically learns to subdivide the tetrahedra and does not need an additional loss term in the intermediate steps to supervise the learning of the octree hierarchy as in the prior work [52]. ",
563
+ "bbox": [
564
+ 173,
565
+ 621,
566
+ 825,
567
+ 676
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "Learnable Surface Subdivision After extracting the surface mesh using MT, we can further apply learnable surface subdivision. Specifically, we build a new graph on the extracted mesh, and use GCN to predict the updated position of each vertex $\\boldsymbol { v } _ { i } ^ { \\prime }$ , and $\\alpha _ { i }$ for Loop Subvidision. This step removes the quantization errors and mitigates the approximation errors from the classic Loop Subdivision by adjusting $\\alpha _ { i }$ , which are fixed in the classic method. ",
574
+ "bbox": [
575
+ 174,
576
+ 684,
577
+ 825,
578
+ 753
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "3.2.2 3D Discriminator ",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 174,
588
+ 761,
589
+ 346,
590
+ 775
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "We apply a 3D discriminator $D$ on the final surface predicted from the generator. We empirically find that using a 3D CNN from DECOR-GAN [6] as the discriminator on the signed distance field that is computed from the predicted mesh is effective to capture the local details. Specifically, we first randomly select a high-curvature vertex $v$ from the target mesh and compute the ground truth signed distance field $S _ { r e a l } \\in \\mathbb { R } ^ { N \\times N \\times N }$ at a voxelized region around $v$ . Similarly, we compute the signed distance field of the predicted surface mesh $M$ at the same location to obtain $S _ { p r e d } \\in \\mathbb { R } ^ { N \\times \\tilde { N } \\times N }$ . Note that $S _ { p r e d }$ is an analytical function of the mesh $M$ , and thus the gradient to $S _ { p r e d }$ can backpropagate to the vertex positions in $M$ . We feed $S _ { r e a l }$ or $S _ { p r e d }$ into the discriminator, along with the feature vector $F _ { v o l } ( v , x )$ in position $v$ . The discriminator then predicts the probability indicating whether the input comes from the real or generated shapes. ",
597
+ "bbox": [
598
+ 173,
599
+ 777,
600
+ 826,
601
+ 916
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "3.3 Loss Function ",
608
+ "text_level": 1,
609
+ "bbox": [
610
+ 173,
611
+ 90,
612
+ 312,
613
+ 106
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "DMTET is end-to-end trainable. We supervise all modules to minimize the error defined on the final predicted mesh $M$ . Our loss function contains three different terms: a surface alignment loss to encourage the alignment with ground truth surface, an adversarial loss to improve realism of the generated shape, and regularizations to regularize the behavior of SDF and vertex deformations. ",
620
+ "bbox": [
621
+ 174,
622
+ 109,
623
+ 825,
624
+ 165
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "Surface Alignment loss We sample a set of points $P _ { g t }$ from the surface of the ground truth mesh $M _ { g t }$ . Similarly, we also sample a set of points from $M _ { p r e d }$ to obtain $P _ { p r e d }$ , and minimize the L2 Chamfer Distance and the normal consistency loss between $P _ { g t }$ and $P _ { p r e d }$ : ",
631
+ "bbox": [
632
+ 174,
633
+ 171,
634
+ 825,
635
+ 214
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "equation",
641
+ "img_path": "images/e64ab678ee6659ce63b55c98d5f2f734f874712d27e15225187c2b8e7093ea13.jpg",
642
+ "text": "$$\nL _ { \\mathrm { c d } } = \\sum _ { p \\in P _ { p r e d } } \\operatorname* { m i n } _ { q \\in P _ { g t } } | | p - q | | _ { 2 } + \\sum _ { q \\in P _ { g t } } \\operatorname* { m i n } _ { p \\in P _ { p r e d } } | | q - p | | _ { 2 } , L _ { \\mathrm { n o m a l } } = \\sum _ { p \\in P _ { p r e d } } ( 1 - | \\Vec { \\mathbf { n } } _ { p } \\cdot \\Vec { \\mathbf { n } } _ { \\Vec { q } } | ) ,\n$$",
643
+ "text_format": "latex",
644
+ "bbox": [
645
+ 187,
646
+ 218,
647
+ 776,
648
+ 255
649
+ ],
650
+ "page_idx": 5
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "where $\\hat { q }$ is the point that corresponds to $p$ when computing the Chamfer Distance, and $\\vec { \\bf n } _ { p } , \\vec { \\bf n } _ { \\hat { q } }$ denotes the normal direction at point $p , \\hat { q }$ . ",
655
+ "bbox": [
656
+ 174,
657
+ 258,
658
+ 825,
659
+ 287
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "Adversarial Loss We use the adversarial loss proposed in LSGAN [37]: ",
666
+ "bbox": [
667
+ 174,
668
+ 292,
669
+ 663,
670
+ 309
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "equation",
676
+ "img_path": "images/17f344150cf5ac968e7b3ff206f3a406b00d72d8b6b004e8975ea72d1606bac8.jpg",
677
+ "text": "$$\nL _ { \\mathrm { D } } = \\frac { 1 } { 2 } [ ( D ( M _ { g t } ) - 1 ) ^ { 2 } + D ( M _ { p r e d } ) ^ { 2 } ] , L _ { \\mathrm { G } } = \\frac { 1 } { 2 } [ ( D ( M _ { p r e d } ) - 1 ) ^ { 2 } ] .\n$$",
678
+ "text_format": "latex",
679
+ "bbox": [
680
+ 250,
681
+ 310,
682
+ 714,
683
+ 342
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "Regularizations The above loss functions operate on the extracted surface, thus, only the vertices that are close to the iso-surface in the tetrahedral grid receive gradients, while the other vertices do not. Moreover, the surface losses do not provide information about what is inside/outside, since flipping the SDF sign of all vertices in a tetrahedron would result in the same surface being extracted by MT. This may lead to disconnected components during training. To alleviate this issue, we add a SDF loss to regularize SDF values: ",
690
+ "bbox": [
691
+ 173,
692
+ 352,
693
+ 825,
694
+ 435
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "equation",
700
+ "img_path": "images/776fd095945e78462a0165ae55b342a5542feb18a1f752dc0ac69338d741825d.jpg",
701
+ "text": "$$\nL _ { \\mathrm { S D F } } = \\sum _ { v _ { i } \\in V _ { T } } | s ( v _ { i } ) - S D F ( v _ { i } , M _ { g t } ) | ^ { 2 } ,\n$$",
702
+ "text_format": "latex",
703
+ "bbox": [
704
+ 346,
705
+ 438,
706
+ 617,
707
+ 473
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "where $S D F ( v _ { i } , M _ { g t } )$ denotes the SDF value of point $v _ { i }$ to the mesh $M _ { g t }$ . In addition, we apply the $L _ { 2 }$ regularization loss on the predicted vertex deformations to avoid artifacts: $\\begin{array} { r } { L _ { \\mathrm { d e f } } = \\sum _ { v _ { i } \\in V _ { T } } | | \\Delta v _ { i } | | _ { 2 } } \\end{array}$ . ",
714
+ "bbox": [
715
+ 169,
716
+ 477,
717
+ 825,
718
+ 508
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "The final loss is a weighted sum of all five loss terms: ",
725
+ "bbox": [
726
+ 171,
727
+ 511,
728
+ 526,
729
+ 526
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "equation",
735
+ "img_path": "images/dda99802456be2f83ede0a92476294d583b92d4aa933604c884ab3838aa4b2aa.jpg",
736
+ "text": "$$\nL = \\lambda _ { \\mathrm { c d } } L _ { \\mathrm { c d } } + \\lambda _ { \\mathrm { n o r m a l } } L _ { \\mathrm { n o r m a l } } + \\lambda _ { \\mathrm { G } } L _ { \\mathrm { G } } + \\lambda _ { \\mathrm { S D F } } L _ { \\mathrm { S D F } } + \\lambda _ { \\mathrm { d e f } } L _ { \\mathrm { d e f } } ,\n$$",
737
+ "text_format": "latex",
738
+ "bbox": [
739
+ 279,
740
+ 530,
741
+ 684,
742
+ 546
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "where $\\lambda _ { \\mathrm { c d } } , \\lambda _ { \\mathrm { n o r m a l } } , \\lambda _ { \\mathrm { G } } , \\lambda _ { \\mathrm { S D F } } , \\lambda _ { \\mathrm { d e f } }$ are hyperparameters (provided in the Supplement). ",
749
+ "bbox": [
750
+ 178,
751
+ 550,
752
+ 717,
753
+ 565
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "4 Experiments ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 173,
763
+ 577,
764
+ 313,
765
+ 593
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "We first evaluate DMTET in the challenging application of generating high-quality animal shapes from coarse voxels. We further evaluate DMTET in reconstructing 3D shapes from noisy point clouds on ShapeNet by comparing to existing state-of-the-art methods. ",
772
+ "bbox": [
773
+ 173,
774
+ 599,
775
+ 825,
776
+ 642
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "4.1 3D Shape Synthesis from Coarse Voxels ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 174,
786
+ 650,
787
+ 490,
788
+ 665
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Experimental Settings We collected 1562 animal models from the TurboSquid website1. These models have a wide range of diversity, ranging from cats, dogs, bears, giraffes, to rhinoceros, goats, etc. We provide visualizations in Supplement. Among 1562 shapes, we randomly select 1120 shapes for training, and the remaining 442 shapes for testing. We follow the pipeline in Kaolin [27] to convert shapes to watertight meshes. To prepare the input to the network, we first voxelize the mesh into the resolution of $1 6 ^ { \\overleftarrow { 3 } }$ , and then sample 3000 points from the surface after applying marching cubes to the $1 6 ^ { 3 }$ voxel grid. Note that this preprocessing is agnostic to the representation of the input coarse shape, allowing us to evaluate on different resolution voxels, or even meshes. ",
795
+ "bbox": [
796
+ 173,
797
+ 669,
798
+ 825,
799
+ 780
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "We compare our model with the official implementation of ConvOnet [44], which achieved SOTA performance on voxel upsampling. We also compare to DECOR-GAN [6], which obtained impressive results on transferring styles from a high-resolution voxel shape to a low-resolution voxel. Note that the original setting of DECOR-GAN is different from ours. For a fair comparison, we use all 1120 training shapes as the high-resolution style shapes during training, and retrieve the closet training shape to the test shape as the style shape during inference, which we refer as DECOR-Retv. We also compare against a randomly selected style shape as reference, denoted as DECOR-Rand. ",
806
+ "bbox": [
807
+ 174,
808
+ 785,
809
+ 825,
810
+ 883
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "1https://www.turbosquid.com, we obtain consent via an agreement with TurboSquid, and following license at https://blog.turbosquid.com/turbosquid-3d-model-license/ ",
817
+ "bbox": [
818
+ 173,
819
+ 885,
820
+ 825,
821
+ 911
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "image",
827
+ "img_path": "images/4b1bbd56197269ad4335baabf87fb00fe595064f3e4ec463efdf1d0b619d8092.jpg",
828
+ "image_caption": [
829
+ "Figure 5: Qualitative results on 3D shapes Synthesis from Coarse Voxels. Comparing with all baselines, our method reconstructs shapes with much higher quality. Adding GAN further improves the realism of the generated shape. We also show the retrieved shapes from the training set in the second last column. "
830
+ ],
831
+ "image_footnote": [],
832
+ "bbox": [
833
+ 173,
834
+ 84,
835
+ 812,
836
+ 501
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Metrics We evaluate L2 and L1 Chamfer Distance, as well as normal consistency score to assess how well the methods reconstruct the corresponding high-resolution shape following [44]. We also report Light Field Distance [4] (LFD) which measures the visual similarity in 2D rendered views. In addition, we evaluate Cls score following [6]. Specifically, we render the predicted 3D shapes and train a patch-based image classifier to distinguish whether images are from the renderings of real or generated shapes. The mean classification accuracy of the trained classifier is reported as Cls (lower is better). More details are in the Supplement. ",
843
+ "bbox": [
844
+ 173,
845
+ 556,
846
+ 825,
847
+ 654
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Experimental Results We provide quantitative results in Table 1 with qualitative examples in Fig. 5. Our DMTET achieves significant improvements over all baselines in terms of all metrics. Compared to both ConvOnet [44] and DECORGAN [6], our DMTET reconstructs shapes with better quality when training without adversarial loss (5th column in Fig. 5). Further geometric details, including nails, ears, eyes, mouths, etc, are captured when trained with the adversarial loss (6th column in Fig. 5), significantly improving the realism and visual quality of the generated shape. To demonstrate the generalization ability of our ",
854
+ "bbox": [
855
+ 174,
856
+ 662,
857
+ 498,
858
+ 842
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "image",
864
+ "img_path": "images/51a010aed7513fe7dfaf318abbe714fe80699ba1341c5a33b907b24eb8d658e0.jpg",
865
+ "image_caption": [
866
+ "Figure 6: Qualitative Results of synthesizing highresolution shapes from coarse voxels collected online. "
867
+ ],
868
+ "image_footnote": [],
869
+ "bbox": [
870
+ 521,
871
+ 650,
872
+ 818,
873
+ 810
874
+ ],
875
+ "page_idx": 6
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "DMTET, we collect human-created low-resolution voxels from Turbosquid (shapes unseen in training). We provide qualitative results in Fig. 6. Despite the fact that these human-created shapes have noticeable differences with our coarse voxels used in training, e.g., different ratios of body parts compared with our training shapes (larger head, thinner legs, longer necks), our model faithfully generates high-quality 3D details conditioned on each coarse voxel – an exciting result. ",
880
+ "bbox": [
881
+ 174,
882
+ 843,
883
+ 825,
884
+ 911
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "table",
890
+ "img_path": "images/df1e7551c170f87070b67404a130987968feb5b96f31ec1b8553941510bf4ad7.jpg",
891
+ "table_caption": [],
892
+ "table_footnote": [
893
+ "Table 1: Super Resolution of Animal Shapes: DMTET significantly outperforms all baselines in all metrics. "
894
+ ],
895
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>L2 Chamfer↓</td><td rowspan=1 colspan=1>L1 Chamfer↓</td><td rowspan=1 colspan=1>Norm. Cons.↑</td><td rowspan=1 colspan=1>LFD↓</td><td rowspan=1 colspan=1>Cls</td></tr><tr><td rowspan=1 colspan=1>ConvOnet [44]</td><td rowspan=1 colspan=1>0.83</td><td rowspan=1 colspan=1>2.41</td><td rowspan=1 colspan=1>0.901</td><td rowspan=1 colspan=1>3220</td><td rowspan=1 colspan=1>0.63</td></tr><tr><td rowspan=1 colspan=1>DECOR [6]-Retv.</td><td rowspan=1 colspan=1>1.32</td><td rowspan=1 colspan=1>3.81</td><td rowspan=1 colspan=1>0.876</td><td rowspan=1 colspan=1>3689</td><td rowspan=1 colspan=1>0.66</td></tr><tr><td rowspan=1 colspan=1>DECOR [6]-Rand.</td><td rowspan=1 colspan=1>2.38</td><td rowspan=1 colspan=1>6.85</td><td rowspan=1 colspan=1>0.797</td><td rowspan=1 colspan=1>5338</td><td rowspan=1 colspan=1>0.67</td></tr><tr><td rowspan=1 colspan=1>DMTET wo Adv.</td><td rowspan=1 colspan=1>0.76</td><td rowspan=1 colspan=1>2.20</td><td rowspan=1 colspan=1>0.916</td><td rowspan=1 colspan=1>2846</td><td rowspan=1 colspan=1>0.58</td></tr><tr><td rowspan=1 colspan=1>DMTET</td><td rowspan=1 colspan=1>0.75</td><td rowspan=1 colspan=1>2.19</td><td rowspan=1 colspan=1>0.918</td><td rowspan=1 colspan=1>2823</td><td rowspan=1 colspan=1>0.54</td></tr></table>",
896
+ "bbox": [
897
+ 241,
898
+ 85,
899
+ 754,
900
+ 160
901
+ ],
902
+ "page_idx": 7
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "User Studies We conduct user studies via Amazon Machanical Turk (AMT) to further evaluate the performance of all methods. In particular, we present two shapes that are predicted from two different models to the AMT workers and ask them to evaluate which one is a better looking shape and which one features more realistic details. Detailed experimental settings are provided in the Supplement. We compare DMTET against ConvONet [44], DECOR [6]-Retv, as well as DMTET without adversarial loss (w.o. Adv.). Quantitative results are reported in Table 2. Human judges agree that the shapes generated from our model have better details, compared to all baselines, in a vast majority of the cases. Ablations on using adversarial loss demonstrate the effectiveness of generating higher quality geometry using a discriminator during training. ",
907
+ "bbox": [
908
+ 173,
909
+ 199,
910
+ 825,
911
+ 325
912
+ ],
913
+ "page_idx": 7
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Ablation Studies To evaluate the effectiveness of our volume subdivision and surface subdivision modules, we ablate by sequentially introducing them to the base model (we refer as $\\mathrm { D M T E T } _ { B }$ ) which we train on 100-resolution uniform tetrahedral grid without both volume and surface subdivision modules and adversarial ",
918
+ "bbox": [
919
+ 174,
920
+ 342,
921
+ 485,
922
+ 438
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "table",
928
+ "img_path": "images/a97fa21e21618d409e2083e585facfbf1958aaa1268147ae1b4384ddd53a54e6.jpg",
929
+ "table_caption": [
930
+ "Table 2: User Study on 3D Shape Synthesis from Coarse voxels. In each cell, we report percentages of shapes for which the users agree are better looking (left) or have better details (right). "
931
+ ],
932
+ "table_footnote": [],
933
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>ConvONet[44]</td><td rowspan=1 colspan=1>DECOR[6]-Retv.</td><td rowspan=1 colspan=1>DMTETWoAdv</td></tr><tr><td rowspan=1 colspan=1>Baselinewins</td><td rowspan=1 colspan=1>5% 15%</td><td rowspan=1 colspan=1>26%/17%</td><td rowspan=1 colspan=1>29% /25%</td></tr><tr><td rowspan=1 colspan=1>DMTETwins</td><td rowspan=1 colspan=1>95%/95%</td><td rowspan=1 colspan=1>74% /83%</td><td rowspan=1 colspan=1>71% 175%</td></tr></table>",
934
+ "bbox": [
935
+ 503,
936
+ 340,
937
+ 818,
938
+ 372
939
+ ],
940
+ "page_idx": 7
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "loss. We conduct user studies to evaluate the improvement after each step using the protocol described in the above paragraph. We first reduce the initial resolution to 70 and employ volume subdivision to support higher output resolution (we refer this model as $\\mathbf { D M T E T } _ { V }$ ) and compare with $\\mathbf { D M T E T } _ { B }$ Predictions by $\\mathrm { D M T E T } _ { V }$ wins $78 \\%$ of cases over $\\mathrm { D M T E T } _ { B }$ for better looking, and $61 \\%$ of cases for realistic details, showing that the volume subdivision module is effective in synthesizing shape details. We then add surface subdivision on top of the $\\mathbf { D M T E T } _ { V }$ and compare with it. The new model wins $62 \\%$ of cases over $\\mathrm { D M T E T } _ { V }$ for better looking, and $62 \\%$ of cases for realistic details as well, demonstrating the effect of surface subdivision module in enhancing the shape details. ",
945
+ "bbox": [
946
+ 174,
947
+ 438,
948
+ 825,
949
+ 549
950
+ ],
951
+ "page_idx": 7
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "4.2 Point Cloud 3D Reconstruction ",
956
+ "text_level": 1,
957
+ "bbox": [
958
+ 176,
959
+ 559,
960
+ 429,
961
+ 574
962
+ ],
963
+ "page_idx": 7
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Experimental Settings We follow the setting from DefTet [18], and use all 13 categories in ShapeNet [3] core data2, which we pre-process using Kaolin [27] to watertight meshes. We sample 5000 points for each shape and add Gaussian noise with zero mean of standard deviation 0.005. For quantitative evaluation, we report the L1 Chamfer Distance in the main paper, and refer readers to the Supplement for results in other metrics (3D IoU, L2 Chamfer Distance and F1 score). We additionally report average inference time on the same Nvidia V100 GPU. ",
968
+ "bbox": [
969
+ 174,
970
+ 578,
971
+ 825,
972
+ 661
973
+ ],
974
+ "page_idx": 7
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "We compare DMTET against state-of-the-art 3D reconstruction approaches using different representations: voxels [10], deforming a mesh with a fixed template [54], deforming a mesh generated from a volumetric representation [22], DefTet [18], and implicit functions [44]. For a fair comparison, we use the same point cloud encoder for all the methods, and adopt the decoders in the original papers to generate shapes in different representations. We also remove the adversarial loss in this application, since baselines also do not have it. We further compare with oracle performance of MC/MT where the ground truth SDF is utilized to extract iso-surface using MC/MT. ",
979
+ "bbox": [
980
+ 173,
981
+ 667,
982
+ 825,
983
+ 765
984
+ ],
985
+ "page_idx": 7
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Experimental Results Quantitative results are summarized in Table 3, with a few qualitative examples shown in Fig. 7. Compared to DMC [31], which also predicts the SDF values and supervises with a surface loss, DMTET achieves much better reconstruction quality since training using the marching tetrahedra layer is more efficient than calculating an expectation over all possible configurations within one grid cell as done in DMC [31]. Compared to a method that deforms a fixed template (sphere) [54], we reconstruct shapes with different topologies, achieving more faithful results compared to the ground truth shape. When compared with other explicit surface representations that also support different topology [18, 22], our method achieves higher quality results for local geometry, benefiting from the fact that the typology is jointly optimized with the geometry, whereas it is separately supervised by an occupancy loss in [18, 22]. Compared to a neural implicit method [44], we generate higher quality shapes with less artifacts, while running significantly faster at inference. Finally, compared to a voxel-based method [10] at the same resolution, our method recovers more geometric details, benefiting from the predicted vertex deformations as well as the surface loss. ",
990
+ "bbox": [
991
+ 174,
992
+ 773,
993
+ 825,
994
+ 885
995
+ ],
996
+ "page_idx": 7
997
+ },
998
+ {
999
+ "type": "image",
1000
+ "img_path": "images/7bd33ba212cc763b44caca6f6748c49136fb2f72c0e054ac16d83ee028728622.jpg",
1001
+ "image_caption": [
1002
+ "Figure 7: Qualitative results on 3D Reconstruction from Point Clouds: Our model reconstructs shapes with more geometric details compared to baselines. "
1003
+ ],
1004
+ "image_footnote": [],
1005
+ "bbox": [
1006
+ 178,
1007
+ 63,
1008
+ 823,
1009
+ 404
1010
+ ],
1011
+ "page_idx": 8
1012
+ },
1013
+ {
1014
+ "type": "table",
1015
+ "img_path": "images/1585e0bf24ed2ee50f6489bda6d09d78fef7cc3f9d898b9448c222e335133ad1.jpg",
1016
+ "table_caption": [
1017
+ "Table 3: Quantitative Results on Point Cloud Reconstruction (Chamfer L1). Note that all the networks in the baselines are not designed for this task, and thus we use the same encoder and their decoder for a fair comparison. We also ablate ourselves by operating on fixed grid (DMTET wo (Def, Vol., Surf.)), removing volume subdivision (DMTET wo Vol.), or surface subdivision (DMTET wo Surf.), or the both (DMTET wo (Vol., Surf.)). "
1018
+ ],
1019
+ "table_footnote": [],
1020
+ "table_body": "<table><tr><td>Category</td><td>Airplane</td><td>Bench</td><td>Dresser</td><td>Car</td><td>Chair</td><td>Display</td><td>Lamp</td><td>Speaker</td><td>Rifle</td><td>Sofa</td><td>Table</td><td>Phone</td><td>Vessel</td><td>Mean↓</td><td>Time(ms)</td></tr><tr><td>3D-R2N2[10]</td><td>1.48</td><td>1.59</td><td>1.64</td><td>1.62</td><td>1.70</td><td>1.66</td><td>1.74</td><td>1.74</td><td>1.37</td><td>1.60</td><td>1.78</td><td>1.55</td><td>1.51</td><td>1.61</td><td>174</td></tr><tr><td>DMC [31]</td><td>1.57</td><td>1.47</td><td>1.29</td><td>1.67</td><td>1.44</td><td>1.25</td><td>2.15</td><td>1.49</td><td>1.45</td><td>1.19</td><td>1.33</td><td>0.88</td><td>1.70</td><td>1.45</td><td>349</td></tr><tr><td>Pixel2mesh [54]</td><td>0.98</td><td>1.28</td><td>1.44</td><td>1.19</td><td>1.91</td><td>1.25</td><td>2.07</td><td>1.61</td><td>0.91</td><td>1.15</td><td>1.82</td><td>0.83</td><td>1.12</td><td>1.35</td><td>30</td></tr><tr><td>ConvOnet [44]</td><td>0.82</td><td>0.95</td><td>0.96</td><td>1.12</td><td>1.03</td><td>0.93</td><td>1.22</td><td>1.12</td><td>0.79</td><td>0.91</td><td>0.94</td><td>0.67</td><td>0.99</td><td>0.95</td><td>866</td></tr><tr><td>MeshRCNN [22]</td><td>0.88</td><td>1.01</td><td>1.05</td><td>1.14</td><td>1.10</td><td>0.99</td><td>1.20</td><td>1.21</td><td>0.83</td><td>0.96</td><td>1.00</td><td>0.71</td><td>1.03</td><td>1.01</td><td>228</td></tr><tr><td>DEFTET[18]</td><td>0.85</td><td>0.94</td><td>0.97</td><td>1.13</td><td>1.04</td><td>0.92</td><td>1.28</td><td>1.17</td><td>0.85</td><td>0.90</td><td>0.93</td><td>0.65</td><td>0.99</td><td>0.97</td><td>61</td></tr><tr><td>DMTET wo (Def, Vol., Surf.)]</td><td>0.82</td><td>0.96</td><td>0.94</td><td>0.98</td><td>0.99</td><td>0.90</td><td>1.04</td><td>1.03</td><td>0.80</td><td>0.86</td><td>0.93</td><td>0.65</td><td>0.89</td><td>0.91</td><td></td></tr><tr><td>DMTET wo (Vol.,Surf.)</td><td>0.69</td><td>0.82</td><td>0.88</td><td>0.92</td><td>0.92</td><td>0.82</td><td>0.89</td><td>0.97</td><td>0.65</td><td>0.81</td><td>0.84</td><td>0.61</td><td>0.80</td><td>0.81</td><td>52 52</td></tr><tr><td>DMTET wo Vol.</td><td>0.65</td><td>0.78</td><td>0.84</td><td>0.89</td><td>0.89</td><td>0.79</td><td>0.86</td><td>0.95</td><td>0.61</td><td>0.78</td><td>0.79</td><td>0.60</td><td>0.78</td><td>0.79</td><td>67</td></tr><tr><td>DMTET wo Surf.</td><td>0.63</td><td>0.77</td><td>0.84</td><td>0.88</td><td>0.88</td><td>0.79</td><td>0.84</td><td>0.94</td><td>0.60</td><td>0.78</td><td>0.79</td><td>0.59</td><td>0.76</td><td>0.78</td><td>108</td></tr><tr><td>DMTET</td><td>0.62</td><td>0.76</td><td>0.83</td><td>0.87</td><td>0.88</td><td>0.78</td><td>0.84</td><td>0.94</td><td>0.59</td><td>0.77</td><td>0.78</td><td>0.57</td><td>0.76</td><td>0.77</td><td>129</td></tr></table>",
1021
+ "bbox": [
1022
+ 174,
1023
+ 438,
1024
+ 825,
1025
+ 544
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "",
1032
+ "bbox": [
1033
+ 173,
1034
+ 625,
1035
+ 826,
1036
+ 694
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "4.2.1 Analysis ",
1043
+ "text_level": 1,
1044
+ "bbox": [
1045
+ 174,
1046
+ 710,
1047
+ 284,
1048
+ 726
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "We investigate how each component in our representation affects the performance and reconstruction quality. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 729,
1058
+ 575,
1059
+ 756
1060
+ ],
1061
+ "page_idx": 8
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Comparisons with Oracle Performance of MC/MT We first demonstrate the effect of learning on explicit surface via MT. We compare with the oracle performance of extracting the iso-surface with MT/MC from the ground truth signed distance fields on the Chair test set in ShapeNet, which contains diverse high-quality details. Specifically, for MC/MT, we first compute the discretized SDF at different grid resolutions, and compare the extracted surface to the ground truth surface. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 766,
1069
+ 576,
1070
+ 877
1071
+ ],
1072
+ "page_idx": 8
1073
+ },
1074
+ {
1075
+ "type": "image",
1076
+ "img_path": "images/ca6df925a51dd1d96de02ca23469bf92f0ad16b5ce533ad7239d3a0faf8c0a73.jpg",
1077
+ "image_caption": [
1078
+ "Figure 8: Comparing our DMTET with oracle performance of MC and MT. "
1079
+ ],
1080
+ "image_footnote": [],
1081
+ "bbox": [
1082
+ 593,
1083
+ 717,
1084
+ 821,
1085
+ 849
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "As shown in Fig. 8, MT consistently outperforms MC when querying the same number of points. We found the staggered grids pattern in tetrahedral grid [16, 18] better captures thin structures at a limited resolution (Fig. 9). This makes MT a better choice for efficiency reasons. The usage of tetrahedral mesh in DMTET follows this motivation. Without deforming the grid, DMTET outperforms the oracle performance of MT by a large margin when querying the same number of points, although DMTET predicts the surface from noisy point cloud. This demonstrates that directly optimizing the reconstructed surface can mitigate the discretization errors imposed by MT to a large extent. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 883,
1095
+ 825,
1096
+ 911
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "",
1103
+ "bbox": [
1104
+ 174,
1105
+ 90,
1106
+ 825,
1107
+ 161
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "image",
1113
+ "img_path": "images/430b26fbbcba7dc56f2f3f84c2d486be08926dbae7665f553626b9f093f6b9b3.jpg",
1114
+ "image_caption": [
1115
+ "Figure 9: We compare trained DMTET to oracle performance of MT and MC. Number in bracket indicates number of SDF points queried. "
1116
+ ],
1117
+ "image_footnote": [],
1118
+ "bbox": [
1119
+ 187,
1120
+ 167,
1121
+ 467,
1122
+ 347
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Ablation Studies We further provide ablation studies on the entire ShapeNet test set, which is summarized in Tab. 3. We first compare the version where we only predict SDF values without learning to deform the vertices and volume/surface subdivision with the version that predicts both SDF and the deformation. Predicting deformation along with SDF is significantly more performant, since vertex movements allow for a better reconstruction of the underlying surface. This is especially true for categories with thin structures (e.g. lamp) where the grid vertices are desired to align with them. We further ablate the use of volume subdivision and surface subdivision. We show that each component provides an improvement. In particular, volume subdivision has a significant ",
1129
+ "bbox": [
1130
+ 501,
1131
+ 171,
1132
+ 825,
1133
+ 392
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "improvement for object categories with fine-grained structural details, such as airplane and lamp, which require higher grid resolutions to model the occupancy change. Surface subdivision generates shapes with a parametric surface, avoiding the quantization errors in the planar faces and produces more visually pleasing results. ",
1140
+ "bbox": [
1141
+ 174,
1142
+ 392,
1143
+ 825,
1144
+ 446
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "5 Conclusion ",
1151
+ "text_level": 1,
1152
+ "bbox": [
1153
+ 174,
1154
+ 458,
1155
+ 299,
1156
+ 474
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "In this paper, we introduced a deep 3D conditional generative model that can synthesize highresolution 3D shapes using simple user guides such as coarse voxels. Our DMTET features a novel 3D representation that marries implicit and explicit representations by leveraging the advantages of both. We experimentally show that our approach synthesizes significantly higher quality shapes with better geometric details than existing methods, confirmed by quantitative metrics and an extensive user study. By showcasing the ability to upscale coarse voxels such as Minecraft shapes, we hope that we take one step closer to democratizing 3D content creation. ",
1163
+ "bbox": [
1164
+ 174,
1165
+ 479,
1166
+ 825,
1167
+ 577
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "6 Broad Impact ",
1174
+ "text_level": 1,
1175
+ "bbox": [
1176
+ 174,
1177
+ 587,
1178
+ 323,
1179
+ 604
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Many fields such as AR/VR, robotics, architecture, gaming and film rely on high-quality 3D content. Creating such content, however, requires human experts, i.e., experienced artists, and a significant amount of development time. In contrast, platforms like Minecraft enable millions of users around the world to carve out coarse shapes with simple blocks. Our work aims at creating A.I. tools that would enable even novice users to upscale simple, low-resolution shapes into high resolution, beautiful 3D content. Our method currently focuses on 3D animal shapes. We are not currently aware of and do not foresee nefarious use cases of our method. ",
1186
+ "bbox": [
1187
+ 174,
1188
+ 608,
1189
+ 825,
1190
+ 705
1191
+ ],
1192
+ "page_idx": 9
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "7 Disclosure of Funding ",
1197
+ "text_level": 1,
1198
+ "bbox": [
1199
+ 176,
1200
+ 727,
1201
+ 390,
1202
+ 744
1203
+ ],
1204
+ "page_idx": 9
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "This work was funded by NVIDIA. Tianchang Shen and Jun Gao acknowledge additional revenue in the form of student scholarships from University of Toronto and the Vector Institute, which are not in direct support of this work. ",
1209
+ "bbox": [
1210
+ 174,
1211
+ 758,
1212
+ 825,
1213
+ 801
1214
+ ],
1215
+ "page_idx": 9
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "References ",
1220
+ "text_level": 1,
1221
+ "bbox": [
1222
+ 174,
1223
+ 821,
1224
+ 267,
1225
+ 838
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "[1] Matan Atzmon and Yaron Lipman. Sal: Sign agnostic learning of shapes from raw data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2565–2574, 2020. \n[2] Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Generative and discriminative voxel modeling with convolutional neural networks. arXiv preprint arXiv:1608.04236, 2016. [3] 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. \n[4] Ding-Yun Chen, Xiao-Pei Tian, Yu-Te Shen, and Ming Ouhyoung. On visual similarity based 3d model retrieval. In Computer graphics forum, volume 22, pages 223–232. Wiley Online Library, 2003. \n[5] Wenzheng Chen, Jun Gao, Huan Ling, Edward Smith, Jaakko Lehtinen, Alec Jacobson, and Sanja Fidler. Learning to predict 3d objects with an interpolation-based differentiable renderer. In Advances In Neural Information Processing Systems, 2019. \n[6] Zhiqin Chen, Vladimir G. Kim, Matthew Fisher, Noam Aigerman, Hao Zhang, and Siddhartha Chaudhuri. Decor-gan: 3d shape detailization by conditional refinement. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. \n[7] Zhiqin Chen, Andrea Tagliasacchi, and Hao Zhang. Bsp-net: Generating compact meshes via binary space partitioning. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. [8] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. \n[9] Julian Chibane, Aymen Mir, and Gerard Pons-Moll. Neural unsigned distance fields for implicit function learning. In Advances in Neural Information Processing Systems (NeurIPS), December 2020. \n[10] Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision, pages 628–644. Springer, 2016. \n[11] Angela Dai, Daniel Ritchie, Martin Bokeloh, Scott Reed, Jürgen Sturm, and Matthias Nießner. Scancomplete: Large-scale scene completion and semantic segmentation for 3d scans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4578–4587, 2018. \n[12] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5868–5877, 2017. \n[13] Thomas Davies, Derek Nowrouzezahrai, and Alec Jacobson. Overfit neural networks as a compact shape representation. arXiv preprint arXiv:2009.09808, 2020. \n[14] Yu Deng, Jiaolong Yang, and Xin Tong. Deformed implicit field: Modeling 3d shapes with learned dense correspondence. In IEEE Computer Vision and Pattern Recognition, 2021. \n[15] Akio Doi and Akio Koide. An efficient method of triangulating equi-valued surfaces by using tetrahedral cells. IEICE TRANSACTIONS on Information and Systems, 74(1):214–224, 1991. \n[16] Crawford Doran, Athena Chang, and Robert Bridson. Isosurface stuffing improved: acute lattices and feature matching. In ACM SIGGRAPH 2013 Talks, pages 1–1, 2013. \n[17] Yueqi Duan, Haidong Zhu, He Wang, Li Yi, Ram Nevatia, and Leonidas J Guibas. Curriculum deepsdf. In European Conference on Computer Vision, pages 51–67. Springer, 2020. \n[18] Jun Gao, Wenzheng Chen, Tommy Xiang, Clement Fuji Tsang, Alec Jacobson, Morgan McGuire, and Sanja Fidler. Learning deformable tetrahedral meshes for 3d reconstruction. In Advances In Neural Information Processing Systems, 2020. \n[19] Jun Gao, Chengcheng Tang, Vignesh Ganapathi-Subramanian, Jiahui Huang, Hao Su, and Leonidas J Guibas. Deepspline: Data-driven reconstruction of parametric curves and surfaces. arXiv preprint arXiv:1901.03781, 2019. \n[20] Jun Gao, Zian Wang, Jinchen Xuan, and Sanja Fidler. Beyond fixed grid: Learning geometric image representation with a deformable grid. In ECCV, 2020. \n[21] Lin Gao, Jie Yang, Tong Wu, Yu-Jie Yuan, Hongbo Fu, Yu-Kun Lai, and Hao Zhang. Sdm-net: Deep generative network for structured deformable mesh. ACM Transactions on Graphics (TOG), 38(6):1–15, 2019. \n[22] Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, pages 9785–9795, 2019. \n[23] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 216–224, 2018. \n[24] Christian Häne, Shubham Tulsiani, and Jitendra Malik. Hierarchical surface prediction for 3d object reconstruction. In 2017 International Conference on 3D Vision (3DV), pages 412–420. IEEE, 2017. \n[25] Rana Hanocka, Gal Metzer, Raja Giryes, and Daniel Cohen-Or. Point2mesh: A self-prior for deformable meshes. ACM Trans. Graph., 39(4), 2020. \n[26] Zekun Hao, Hadar Averbuch-Elor, Noah Snavely, and Serge Belongie. Dualsdf: Semantic shape manipulation using a two-level representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7631–7641, 2020. \n[27] Krishna Murthy J., Edward Smith, Jean-Francois Lafleche, Clement Fuji Tsang, Artem Rozantsev, Wenzheng Chen, Tommy Xiang, Rev Lebaredian, and Sanja Fidler. Kaolin: A pytorch library for accelerating 3d deep learning research. arXiv:1911.05063, 2019. \n[28] Marian Kleineberg, Matthias Fey, and Frank Weichert. Adversarial generation of continuous implicit shape representations. arXiv preprint arXiv:2002.00349, 2020. \n[29] Jiabao Lei and Kui Jia. Analytic marching: An analytic meshing solution from deep implicit surface networks. In International Conference on Machine Learning, pages 5789–5798. PMLR, 2020. \n[30] Manyi Li and Hao Zhang. D2im-net: Learning detail disentangled implicit fields from single images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10246– 10255, 2021. \n[31] Yiyi Liao, Simon Donné, and Andreas Geiger. Deep marching cubes: Learning explicit surface representations. In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \n[32] Huan Ling, Jun Gao, Amlan Kar, Wenzheng Chen, and Sanja Fidler. Fast interactive object annotation with curve-gcn. In CVPR, 2019. \n[33] Hsueh-Ti Derek Liu, Vladimir G. Kim, Siddhartha Chaudhuri, Noam Aigerman, and Alec Jacobson. Neural subdivision. ACM Trans. Graph., 39(4), 2020. \n[34] Zhijian Liu, Haotian Tang, Yujun Lin, and Song Han. Point-voxel cnn for efficient 3d deep learning. In Advances in Neural Information Processing Systems, 2019. \n[35] Charles Loop. Smooth subdivision surfaces based on triangles. January 1987. \n[36] William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. ACM siggraph computer graphics, 21(4):163–169, 1987. \n[37] Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2794–2802, 2017. \n[38] Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 922–928. IEEE, 2015. \n[39] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4460–4470, 2019. \n[40] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020. \n[41] Charlie Nash, Yaroslav Ganin, S. M. Ali Eslami, and Peter W. Battaglia. Polygen: An autoregressive generative model of 3d meshes. ICML, 2020. \n[42] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 165–174, 2019. \n[43] Despoina Paschalidou, Angelos Katharopoulos, Andreas Geiger, and Sanja Fidler. Neural parts: Learning expressive 3d shape abstractions with invertible neural networks. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2021. ",
1232
+ "bbox": [
1233
+ 178,
1234
+ 847,
1235
+ 826,
1236
+ 911
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "",
1243
+ "bbox": [
1244
+ 171,
1245
+ 83,
1246
+ 828,
1247
+ 922
1248
+ ],
1249
+ "page_idx": 10
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "",
1254
+ "bbox": [
1255
+ 171,
1256
+ 58,
1257
+ 828,
1258
+ 917
1259
+ ],
1260
+ "page_idx": 11
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "[44] Songyou Peng, Michael Niemeyer, Lars Mescheder, Marc Pollefeys, and Andreas Geiger. Convolutional occupancy networks. In European Conference on Computer Vision (ECCV), 2020. ",
1265
+ "bbox": [
1266
+ 169,
1267
+ 92,
1268
+ 823,
1269
+ 118
1270
+ ],
1271
+ "page_idx": 12
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "[45] Edoardo Remelli, Artem Lukoianov, Stephan Richter, Benoit Guillard, Timur Bagautdinov, Pierre Baque, and Pascal Fua. Meshsdf: Differentiable iso-surface extraction. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 22468–22478. Curran Associates, Inc., 2020. ",
1276
+ "bbox": [
1277
+ 176,
1278
+ 127,
1279
+ 820,
1280
+ 179
1281
+ ],
1282
+ "page_idx": 12
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "[46] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3d representations at high resolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3577–3586, 2017. ",
1287
+ "bbox": [
1288
+ 173,
1289
+ 189,
1290
+ 821,
1291
+ 228
1292
+ ],
1293
+ "page_idx": 12
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "[47] Shunsuke Saito, Zeng Huang, Ryota Natsume, Shigeo Morishima, Angjoo Kanazawa, and Hao Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In The IEEE International Conference on Computer Vision (ICCV), October 2019. ",
1298
+ "bbox": [
1299
+ 171,
1300
+ 238,
1301
+ 823,
1302
+ 277
1303
+ ],
1304
+ "page_idx": 12
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "[48] Shunsuke Saito, Tomas Simon, Jason Saragih, and Hanbyul Joo. Pifuhd: Multi-level pixel-aligned implicit function for high-resolution 3d human digitization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, June 2020. ",
1309
+ "bbox": [
1310
+ 171,
1311
+ 286,
1312
+ 823,
1313
+ 325
1314
+ ],
1315
+ "page_idx": 12
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "[49] Vincent Sitzmann, Julien N.P. Martel, Alexander W. Bergman, David B. Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. In Proc. NeurIPS, 2020. ",
1320
+ "bbox": [
1321
+ 171,
1322
+ 335,
1323
+ 823,
1324
+ 363
1325
+ ],
1326
+ "page_idx": 12
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "[50] Minhyuk Sung, Hao Su, Vladimir G Kim, Siddhartha Chaudhuri, and Leonidas Guibas. Complementme: Weakly-supervised component suggestions for 3d modeling. ACM Transactions on Graphics (TOG), 36(6):1–12, 2017. ",
1331
+ "bbox": [
1332
+ 173,
1333
+ 371,
1334
+ 825,
1335
+ 411
1336
+ ],
1337
+ "page_idx": 12
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "[51] Towaki Takikawa, Joey Litalien, Kangxue Yin, Karsten Kreis, Charles Loop, Derek Nowrouzezahrai, Alec Jacobson, Morgan McGuire, and Sanja Fidler. Neural geometric level of detail: Real-time rendering with implicit 3D shapes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021. ",
1342
+ "bbox": [
1343
+ 173,
1344
+ 420,
1345
+ 825,
1346
+ 472
1347
+ ],
1348
+ "page_idx": 12
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "[52] M. Tatarchenko, A. Dosovitskiy, and T. Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In IEEE International Conference on Computer Vision (ICCV), 2017. ",
1353
+ "bbox": [
1354
+ 173,
1355
+ 482,
1356
+ 823,
1357
+ 521
1358
+ ],
1359
+ "page_idx": 12
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "[53] Shubham Tulsiani, Hao Su, Leonidas J. Guibas, Alexei A. Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Computer Vision and Pattern Regognition (CVPR), 2017. ",
1364
+ "bbox": [
1365
+ 173,
1366
+ 530,
1367
+ 823,
1368
+ 570
1369
+ ],
1370
+ "page_idx": 12
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "[54] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 52–67, 2018. ",
1375
+ "bbox": [
1376
+ 173,
1377
+ 579,
1378
+ 823,
1379
+ 619
1380
+ ],
1381
+ "page_idx": 12
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "[55] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis. ACM Transactions on Graphics (SIGGRAPH), 36(4), 2017. ",
1386
+ "bbox": [
1387
+ 173,
1388
+ 627,
1389
+ 823,
1390
+ 666
1391
+ ],
1392
+ "page_idx": 12
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "[56] Peng-Shuai Wang, Yang Liu, and Xin Tong. Deep octree-based cnns with output-guided skip connections for 3d shape and scene completion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 266–267, 2020. ",
1397
+ "bbox": [
1398
+ 173,
1399
+ 676,
1400
+ 823,
1401
+ 717
1402
+ ],
1403
+ "page_idx": 12
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "[57] Francis Williams, Matthew Trager, Joan Bruna, and Denis Zorin. Neural splines: Fitting 3d surfaces with infinitely-wide neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9949–9958, 2021. ",
1408
+ "bbox": [
1409
+ 171,
1410
+ 726,
1411
+ 825,
1412
+ 765
1413
+ ],
1414
+ "page_idx": 12
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "[58] Jiajun Wu, Chengkai Zhang, Tianfan Xue, William T Freeman, and Joshua B Tenenbaum. Learning a probabilistic latent space of object shapes via 3d generative-adversarial modeling. In Advances in Neural Information Processing Systems, pages 82–90, 2016. ",
1419
+ "bbox": [
1420
+ 171,
1421
+ 775,
1422
+ 823,
1423
+ 814
1424
+ ],
1425
+ "page_idx": 12
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "[59] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1912–1920, 2015. ",
1430
+ "bbox": [
1431
+ 171,
1432
+ 823,
1433
+ 823,
1434
+ 863
1435
+ ],
1436
+ "page_idx": 12
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "[60] Qiangeng Xu, Weiyue Wang, Duygu Ceylan, Radomir Mech, and Ulrich Neumann. Disn: Deep implicit surface network for high-quality single-view 3d reconstruction. In Advances in Neural Information Processing Systems, pages 490–500, 2019. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 872,
1444
+ 826,
1445
+ 911
1446
+ ],
1447
+ "page_idx": 12
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "[61] Kangxue Yin, Zhiqin Chen, Siddhartha Chaudhuri, Matthew Fisher, Vladimir Kim, and Hao Zhang. Coalesce: Component assembly by learning to synthesize connections. In Proc. of 3DV, 2020. \n[62] Chenyang Zhu, Kai Xu, Siddhartha Chaudhuri, Renjiao Yi, and Hao Zhang. SCORES: Shape composition with recursive substructure priors. ACM Transactions on Graphics, 37(6):Article 211, 2018. ",
1452
+ "bbox": [
1453
+ 171,
1454
+ 92,
1455
+ 826,
1456
+ 154
1457
+ ],
1458
+ "page_idx": 13
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "Checklist ",
1463
+ "text_level": 1,
1464
+ "bbox": [
1465
+ 174,
1466
+ 89,
1467
+ 254,
1468
+ 106
1469
+ ],
1470
+ "page_idx": 14
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "1. For all authors... ",
1475
+ "bbox": [
1476
+ 214,
1477
+ 116,
1478
+ 339,
1479
+ 130
1480
+ ],
1481
+ "page_idx": 14
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We provide extensive experiments in Sec. 4. \n(b) Did you describe the limitations of your work? [Yes] We provide the discussion on limitations an failure cases in Supplement. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] We provide the discussion in the Board Impact section with further discussions in Supplement. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1486
+ "bbox": [
1487
+ 238,
1488
+ 135,
1489
+ 825,
1490
+ 253
1491
+ ],
1492
+ "page_idx": 14
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "2. If you are including theoretical results... ",
1497
+ "bbox": [
1498
+ 214,
1499
+ 257,
1500
+ 493,
1501
+ 272
1502
+ ],
1503
+ "page_idx": 14
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1508
+ "bbox": [
1509
+ 236,
1510
+ 276,
1511
+ 736,
1512
+ 308
1513
+ ],
1514
+ "page_idx": 14
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "3. If you ran experiments... ",
1519
+ "bbox": [
1520
+ 214,
1521
+ 311,
1522
+ 393,
1523
+ 325
1524
+ ],
1525
+ "page_idx": 14
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] The code is currently quite uncleaned and requires many dependencies. We are planning to release the code after cleaning. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] We provide training details in both Sec. 4 in the main paper and Supplement. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Training existing 3D models, including ours, on large-scale 3D datasets is too computation costly to repeat multiple times. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We provide in the Supplement. ",
1530
+ "bbox": [
1531
+ 238,
1532
+ 332,
1533
+ 825,
1534
+ 503
1535
+ ],
1536
+ "page_idx": 14
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1541
+ "bbox": [
1542
+ 214,
1543
+ 508,
1544
+ 823,
1545
+ 523
1546
+ ],
1547
+ "page_idx": 14
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We used ShapeNet [3] core dataset in Sec. 4.2. We also used official code to reproduce baselines with citations. In particular, ConvONet [44] and DECOR-GAN [6]. \n(b) Did you mention the license of the assets? [Yes] We provided the license of ShapeNet and Turbosquid. \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] The Turbosquid data we are using contains proprietary information. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] We discussed in the Sec. 4 and provide further details in the Supplementary Materials. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] We provide discussion on this in Supplement. ",
1552
+ "bbox": [
1553
+ 238,
1554
+ 527,
1555
+ 825,
1556
+ 703
1557
+ ],
1558
+ "page_idx": 14
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1563
+ "bbox": [
1564
+ 214,
1565
+ 708,
1566
+ 705,
1567
+ 722
1568
+ ],
1569
+ "page_idx": 14
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [Yes] We provide details in the paper, with full text and screenshot in Supplement. \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [No] We did not anticipate the potential participant risks, as we only conduct human studies on generated animals. \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [Yes] We provide details in Supplement ",
1574
+ "bbox": [
1575
+ 238,
1576
+ 727,
1577
+ 825,
1578
+ 843
1579
+ ],
1580
+ "page_idx": 14
1581
+ }
1582
+ ]
parse/train/GFV8IVyMM4n/GFV8IVyMM4n_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/GFV8IVyMM4n/GFV8IVyMM4n_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1sUHgb0Z/H1sUHgb0Z.md ADDED
@@ -0,0 +1,392 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING FROM NOISY SINGLY-LABELED DATA
2
+
3
+ Ashish Khetan
4
+ University of Illinois at Urbana-Champaign
5
+ Urbana, IL 61801
6
+ khetan2@illinois.edu
7
+
8
+ Zachary C. Lipton Amazon Web Services Seattle, WA 98101 liptoz@amazon.com
9
+
10
+ Animashree Anandkumar Amazon Web Services Seattle, WA 98101 anima@amazon.com
11
+
12
+ # ABSTRACT
13
+
14
+ Supervised learning depends on annotated examples, which are taken to be the ground truth. But these labels often come from noisy crowdsourcing platforms, like Amazon Mechanical Turk. Practitioners typically collect multiple labels per example and aggregate the results to mitigate noise (the classic crowdsourcing problem). Given a fixed annotation budget and unlimited unlabeled data, redundant annotation comes at the expense of fewer labeled examples. This raises two fundamental questions: (1) How can we best learn from noisy workers? (2) How should we allocate our labeling budget to maximize the performance of a classifier? We propose a new algorithm for jointly modeling labels and worker quality from noisy crowd-sourced data. The alternating minimization proceeds in rounds, estimating worker quality from disagreement with the current model and then updating the model by optimizing a loss function that accounts for the current estimate of worker quality. Unlike previous approaches, even with only one annotation per example, our algorithm can estimate worker quality. We establish a generalization error bound for models learned with our algorithm and establish theoretically that it’s better to label many examples once (vs less multiply) when worker quality exceeds a threshold. Experiments conducted on both ImageNet (with simulated noisy workers) and MS-COCO (using the real crowdsourced labels) confirm our algorithm’s benefits.
15
+
16
+ # 1 INTRODUCTION
17
+
18
+ Recent advances in supervised learning owe, in part, to the availability of large annotated datasets. For instance, the performance of modern image classifiers saturates only with millions of labeled examples. This poses an economic problem: Assembling such datasets typically requires the labor of human annotators. If we confined the labor pool to experts, this work might be prohibitively expensive. Therefore, most practitioners turn to crowdsourcing platforms such as Amazon Mechanical Turk (AMT), which connect employers with low-skilled workers who perform simple tasks, such as classifying images, at low cost.
19
+
20
+ Compared to experts, crowd-workers provide noisier annotations, possibly owing to high variation in worker skill; and a per-answer compensation structure that encourages rapid answers, even at the expense of accuracy. To address variation in worker skill, practitioners typically collect multiple independent labels for each training example from different workers. In practice, these labels are often aggregated by applying a simple majority vote. Academics have proposed many efficient algorithms for estimating the ground truth from noisy annotations. Research addressing the crowd-sourcing problem goes back to the early 1970s. Dawid & Skene (1979) proposed a probabilistic model to jointly estimate worker skills and ground truth labels and used expectation maximization (EM) to estimate the parameters. Whitehill et al. (2009); Welinder et al. (2010); Zhou et al. (2015) proposed generalizations of the Dawid-Skene model, e.g. by estimating the difficulty of each example.
21
+
22
+ Although the downstream goal of many crowdsourcing projects is to train supervised learning models, research in the two disciplines tends to proceed in isolation. Crowdsourcing research seldom accounts for the downstream utility of the produced annotations as training data in machine learning (ML) algorithms. And ML research seldom exploits the noisy labels collected from multiple human workers. A few recent papers use the original noisy labels and the corresponding worker identities together with the predictions of a supervised learning model trained on those same labels, to estimate the ground truth (Branson et al., 2017; Guan et al., 2017; Welinder et al., 2010). However, these papers do not realize the full potential of combining modeling and crowd-sourcing. In particular, they are unable to estimate worker qualities when there is only one label per training example.
23
+
24
+ This paper presents a new supervised learning algorithm that alternately models the labels and worker quality. The EM algorithm bootstraps itself in the following way: Given a trained model, the algorithm estimates worker qualities using the disagreement between workers and the current predictions of the learning algorithm. Given estimated worker qualities, our algorithm optimizes a suitably modified loss function. We show that accurate estimates of worker quality can be obtained even when only collecting one label per example provided that each worker labels sufficiently many examples. An accurate estimate of the worker qualities leads to learning a better model. This addresses a shortcoming of the prior work and overcomes a significant hurdle to achieving practical crowdsourcing without redundancy.
25
+
26
+ We give theoretical guarantees on the performance of our algorithm. We analyze the two alternating steps: (a) estimating worker qualities from disagreement with the model, (b) learning a model by optimizing the modified loss function. We obtain a bound on the accuracy of the estimated worker qualities and the generalization error of the model. Through the generalization error bound, we establish that it is better to label many examples once than to label less examples multiply when worker quality is above a threshold. Empirically, we verify our approach on several multi-class classification datasets: ImageNet and CIFAR10 (with simulated noisy workers), and MS-COCO (using the real noisy annotator labels). Our experiments validate that when the cost of obtaining unlabeled examples is negligible and the total annotation budget is fixed, it is best to collect a single label per training example for as many examples as possible. We emphasize that although this paper applies our approach to classification problems, the main ideas of the algorithm can be extended to other tasks in supervised learning.
27
+
28
+ # 2 RELATED WORK
29
+
30
+ The traditional crowdsourcing problem addresses the challenge of aggregating multiple noisy labels. A naive approach is to aggregate the labels based on majority voting. More sophisticated agreementbased algorithms jointly model worker skills and ground truth labels, estimating both using EM or similar techniques (Dawid & Skene, 1979; Jin & Ghahramani, 2003; Whitehill et al., 2009; Welinder et al., 2010; Zhou et al., 2012; Liu et al., 2012; Dalvi et al., 2013; Liu et al., 2012). Zhang et al. (2014) shows that the EM algorithm with spectral initialization achieves minimax optimal performance under the Dawid-Skene model. Karger et al. (2014) introduces a message-passing algorithm for estimating binary labels under the Dawid-Skene model, showing that it performs strictly better than majority voting when the number of labels per example exceeds some threshold. Similar observations are made by (Bragg et al., 2016). A primary criticism of EM-based approaches is that in practice, it’s rare to collect more than 3 to 5 labels per example; and with so little redundancy, the small gains achieved by EM over majority voting are not compelling to practitioners. In contrast, our algorithm performs well in the low-redundancy setting. Even with just one label per example, we can accurately estimate worker quality.
31
+
32
+ Several prior crowdsourcing papers incorporate the predictions of a supervised learning model, together with the noisy labels, to estimate the ground truth labels. Welinder et al. (2010) consider binary classification and frames the problem as a generative Bayesian model on the features of the examples and the labels. Branson et al. (2017) consider a generalization of the Dawid-Skene model and estimate its parameters using supervised learning in the loop. In particular, they consider a joint probability over observed image features, ground truth labels, and the worker labels and compute the maximum likelihood estimate of the true labels using alternating minimization. We also consider a joint probability model but it is significantly different from theirs as we assume that the optimal labeling function gives the ground truth labels. We maximize the joint likelihood using a variation of expectation maximization to learn the optimal labeling function and the true labels. Further, they train the supervised learning model using the intermediate predictions of the labels whereas we train the model by minimizing a weighted loss function where the weights are the intermediate posterior probability distribution of the labels. Moreover, with only one label per example, their algorithm fails and estimates all the workers to be equally good. They only consider binary classification, whereas we verify our algorithm on multi-class (ten classes) classification problem.
33
+
34
+ A rich body of work addresses human-in-loop annotation for computer vision tasks. However, these works assume that humans are experts, i.e., that they give noiseless annotations (Branson et al., 2010; Deng et al., 2013; Wah et al., 2011). We assume workers are unreliable and have varying skills. A recent work by Ratner et al. (2016) also proposes to use predictions of a supervised learning model to estimate the ground truth. However, their algorithm is significantly different than ours as it does not use iterative estimation technique, and their approach of incorporating worker quality parameters in the supervised learning model is different. Their theoretical results are limited to the linear classifiers.
35
+
36
+ Another line of work employs active learning, iteratively filtering out examples for which aggregated labels have high confidence and collect additional labels for the remaining examples (Whitehill et al., 2009; Welinder & Perona, 2010; Khetan & Oh, 2016). The underlying modeling assumption in these papers is that the questions have varying levels of difficulty. At each iteration, these approaches employ an EM-based algorithm to estimate the ground truth label of the remaining unclassified examples. For simplicity, our paper does not address example difficulties, but we could easily extend our model and algorithm to accommodate this complexity.
37
+
38
+ Several papers analyze whether repeated labeling is useful. Sheng et al. (2008) analyzed the effect of repeated labeling and showed that it depends upon the relative cost of getting an unlabeled example and the cost of labeling. Ipeirotis et al. (2014) shows that if worker quality is below a threshold then repeated labeling is useful, otherwise not. Lin et al. (2014a; 2016) argues that it also depends upon expressiveness of the classifier in addition to the factors considered by others. However, these works do not exploit predictions of the supervised learning algorithm to estimate the ground truth labels, and hence their findings do not extend to our methodology.
39
+
40
+ Another body of work that is relevant to our problem is learning with noisy labels where usual assumption is that all the labels are generated through the same noisy rate given their ground truth label. Recently Natarajan et al. (2013) proposed a generic unbiased loss function for binary classification with noisy labels. They employed a modified loss function that can be expressed as a weighted sum of the original loss function, and gave theoretical bounds on the performance. However, their weights become unstably large when the noise rate is large, and hence the weights need to be tuned. Sukhbaatar et al. (2014); Jindal et al. (2016) learns noise rate as parameters of the model. A recent work by Guan et al. (2017) trains an individual softmax layer for each expert and then predicts their weighted sum where weights are also learned by the model. It is not scalable to crowdsourcing scenario where there are thousands of workers. There are works that aim to create noise-robust models (Joulin et al., 2016; Krause et al., 2016), but they are not relevant to our work.
41
+
42
+ # 3 PROBLEM FORMULATION
43
+
44
+ Let $\mathcal { D }$ be the underlying true distribution generating pairs $( X , Y ) \in { \mathcal { X } } \times { \mathcal { K } }$ from which $n$ i.i.d. samples $( X _ { 1 } , Y _ { 1 } ) , ( X _ { 2 } , Y _ { 2 } ) , \cdot \cdot \cdot , ( X _ { n } , Y _ { n } )$ are drawn, where $\kappa$ denotes the set of possible labels ${ \mathcal { K } } : = \{ 1 , 2 , \cdots , K \}$ , and $\mathcal { X } \subseteq \mathbb { R } ^ { d }$ denotes the set of euclidean features. We denote the marginal distribution of $Y$ by $\{ q _ { 1 } , q _ { 2 } , \cdots , q _ { K } \}$ , which is unknown to us. Consider a pool of $m$ workers indexed by $1 , 2 , \cdots , m$ . We use $[ m ]$ to denote the set $\{ 1 , 2 , \cdots , m \}$ . For each $i$ -th sample $X _ { i }$ , $r$ workers $\{ w _ { i j } \} _ { j \in [ r ] } \in [ m ] ^ { r }$ are selected randomly, independent of the sample $X _ { i }$ . Each selected worker provides a noisy label $Z _ { i j }$ for the sample $X _ { i }$ , where the distribution of $Z _ { i j }$ depends on the selected worker and the true label $Y _ { i }$ . We call $r$ the redundancy and, for simplicity, assume it to be the same for each sample. However, our algorithm can also be applied when redundancy varies across the samples. We use $Z _ { i } ^ { ( r ) }$ to denote $\{ Z _ { i j } \} _ { j \in [ r ] }$ , the set of $r$ labels collected on the $i$ -th example, and $w _ { i } ^ { ( r ) }$ to denote $\{ w _ { i j } \} _ { j \in [ r ] }$ .
45
+
46
+ Following Dawid & Skene (1979), we assume the probability that the $a$ -th worker labels an item in class $k \in \mathcal { K }$ as class $s \in \kappa$ is independent of any particular chosen item, that is, it is a constant over $i \in [ n ]$ . Let us denote this constant by $\pi _ { k s }$ ; by definition, $\textstyle \sum _ { s \in { \mathcal { K } } } \pi _ { k s } = 1$ for all $k \in \mathcal { K }$ , and we call $\pi ^ { ( a ) } \in \left[ 0 , 1 \right] ^ { K \times K }$ the confusion matrix of the $a$ -th worker. In particular, the distribution of $Z$ is:
47
+
48
+ $$
49
+ \mathbb { P } \left[ Z _ { i j } = s \mid Y _ { i } = k , w _ { i j } = a \right] = \pi _ { k s } ^ { ( a ) } .
50
+ $$
51
+
52
+ The diagonal entries of the confusion matrix correspond to the probabilities of correctly labeling an example. The off-diagonal entries represent the probability of mislabeling. We use $\pi$ to denote the collection of confusion matrices $\{ \pi ^ { ( \bar { a } ) } \} _ { a \in [ m ] }$ .
53
+
54
+ We assume nr workers $w _ { 1 , 1 } , w _ { 1 , 2 } , \cdots , w _ { n , r }$ are selected uniformly at random from a pool of $m$ workers with replacement and a batch of $r$ workers are assigned to each of the examples $X _ { 1 } , X _ { 2 } , \cdots , X _ { n }$ . The corrupted labels along with the worker information $( X _ { 1 } , Z _ { 1 } ^ { ( r ) } , w _ { 1 } ^ { ( r ) } ) , \cdot \cdot \cdot , ( X _ { n } , Z _ { n } ^ { ( r ) } , w _ { n } ^ { ( r ) } )$ are what the learning algorithm sees.
55
+
56
+ Let $\mathcal { F }$ be the hypothesis class, and $f \in \mathcal { F } , f : \mathcal { X } \to \mathbb { R } ^ { K }$ , denote a vector valued predictor function. Let $\ell ( f ( X ) , Y )$ denote a loss function. For a predictor $f$ , its $\ell$ -risk under $\mathcal { D }$ is defined as
57
+
58
+ $$
59
+ \begin{array} { r l r } { R _ { \ell , { \mathcal D } } ( f ) } & { : = } & { { \mathbb E } _ { ( X , Y ) \sim { \mathcal D } } \left[ \ell ( f ( X ) , Y ) \right] . } \end{array}
60
+ $$
61
+
62
+ Given the observed samples $( X _ { 1 } , Z _ { 1 } ^ { ( r ) } , w _ { 1 } ^ { ( r ) } ) , \cdot \cdot \cdot , ( X _ { n } , Z _ { n } ^ { ( r ) } , w _ { n } ^ { ( r ) } )$ , we want to learn a good predictor function ${ \widehat { f } } \in { \mathcal { F } }$ such that its risk under the true distribution $\mathcal { D }$ , $R _ { \ell , \mathcal { D } } ( \widehat { f } )$ is minimal. Having access to only noisy labels $Z ^ { ( r ) }$ by workers $w ^ { ( r ) }$ , we compute $\widehat { f }$ as the one which minimizes a suitably modified loss function $\ell _ { \widehat { \pi } , \widehat { q } } ( f ( X ) , Z ^ { ( r ) } , w ^ { ( r ) } )$ . Where $\widehat { \pi }$ denote an estimate of confusion matrix $\pi$ , and $\widehat { q }$ an estimate of $q$ b b, the prior distribution on $Y$ b. We define $\ell _ { \widehat { \pi } , \widehat { q } }$ in the following section.
63
+
64
+ # 4 ALGORITHM
65
+
66
+ Assume that there exists a function $f ^ { * } \in { \mathcal { F } }$ such that $f ^ { * } ( X _ { i } ) = Y _ { i }$ for all $i \in [ n ]$ . Under the Dawid-Skene model (described in previous section), the joint likelihood of true labeling function $f ^ { * } ( X _ { i } )$ and observed labels $\{ Z _ { i j } \} _ { i \in [ n ] , j \in [ r ] }$ as a function of confusion matrices of workers $\pi$ can be written as
67
+
68
+ $$
69
+ \begin{array} { l } { L \left( \pi ; f ^ { * } , \{ X _ { i } \} _ { i \in [ n ] } , \{ Z _ { i j } \} _ { i \in [ n ] , j \in [ r ] } \right) : = } \\ { \displaystyle \prod _ { i = 1 } ^ { n } \left( \sum _ { k \in { \cal K } } q _ { k } \mathbb { I } [ f ^ { * } ( X _ { i } ) = k ] \left( \prod _ { j = 1 } ^ { r } \left( \sum _ { s \in { \cal K } } \mathbb { I } [ Z _ { i j } = s ] \pi _ { k s } ^ { ( w _ { i j } ) } \right) \right) \right) \ : . } \end{array}
70
+ $$
71
+
72
+ $q _ { k }$ ’s are the marginal distribution of the true labels $Y _ { i }$ ’s. We estimate the worker confusion matrices $\pi$ and the true labeling function $f ^ { * }$ by maximizing the likelihood function $L ( \pi ; f ^ { * } ( X ) , Z )$ . Observe that the likelihood function $L ( \pi ; f ^ { * } ( X ) , Z )$ is different than the standard likelihood function of Dawid-Skene model in that we replace each true hidden labels $Y _ { i }$ by $f ^ { * } ( X _ { i } )$ . Like the EM algorithm introduced in (Dawid & Skene, 1979), we propose ‘Model Bootstrapped EM’ (MBEM) to estimate confusion matrices $\pi$ and the true labeling function $f ^ { * }$ . EM converges to the true confusion matrices and the true labels given an appropriate spectral initialization of worker confusion matrices (Zhang et al., 2014). We show in Section 4.4 that MBEM converges under mild conditions when the worker quality is above a threshold and the number of training examples is sufficiently large. In the following two subsections, we motivate and explain our iterative algorithm to estimate the true labeling function $f ^ { * }$ given a good estimate of worker confusion matrices $\pi$ and vice-versa.
73
+
74
+ # 4.1 LEARNING WITH NOISY LABELS
75
+
76
+ To begin, we ask, what is the optimal approach to learn the predictor function $\widehat { f }$ when for each worker we have $\widehat { \pi }$ , a good estimation of the true confusion matrix $\pi$ , and $\widehat { q } ,$ , an estimate of the prior? b bA recent paper, Natarajan et al. (2013) proposes minimizing an unbiased loss function specifically, a weighted sum of the original loss over each possible ground truth label. They provide weights for binary classification where each example is labeled by only one worker. Consider a worker with confusion matrix $\pi$ , where $\pi _ { y } > 1 / 2$ and $\pi _ { - y } > 1 / 2$ represent her probability of correctly labeling the examples belonging to class $y$ and $- y$ respectively. Then their weights are $\pi _ { - y } / ( \pi _ { y } + \bar { \pi } _ { - y } - 1 \bar { ) }$ for class $y$ and $- ( 1 - \pi _ { y } ) / ( \pi _ { y } + \pi _ { - y } - 1 )$ for class $- y$ . It is evident that their weights become unstably large when the probabilities of correct classification $\pi _ { y }$ and $\pi _ { - y }$ are close to $1 / 2$ , limiting the method’s usefulness in practice. As explained below, for the same scenario, our weights would be $\pi _ { y } / ( 1 + \pi _ { y } - \pi _ { - y } )$ for class $y$ and $( 1 - \bar { \pi } _ { - y } ) / ( 1 + \pi _ { y } - \pi _ { - y } )$ for class $- y$ . Inspired by their idea, we propose weighing the loss function according to the posterior distribution of the true label given the $Z ^ { ( r ) }$ observed labels and an estimate of the confusion matrices of the worker who provided those labels. In particular, we define $\ell _ { \widehat { \pi } , \widehat { q } }$ to be
77
+
78
+ $$
79
+ \begin{array} { r c l } { \ell _ { \widehat { \pi } , \widehat { q } } ( f ( X ) , Z ^ { ( r ) } , w ^ { ( r ) } ) } & { : = } & { \displaystyle \sum _ { k \in K } \mathbb { P } _ { \widehat { \pi } , \widehat { q } } [ Y = k \mid Z ^ { ( r ) } ; w ^ { ( r ) } ] \ell ( f ( X ) , Y = k ) . } \end{array}
80
+ $$
81
+
82
+ If the observed label is uniformly random, then all weights are equal and the loss is identical for all predictor functions $f$ . Absent noise, we recover the original loss function. Under the Dawid-Skene model, given the observed noisy labels $Z ^ { ( r ) }$ , an estimate of confusion matrices $\widehat { \pi }$ , and an estimate of prior $\widehat { q }$ b, the posterior distribution of the true labels can be computed as follows:
83
+
84
+ $$
85
+ \begin{array} { r l r } { \mathbb { P } _ { \widehat { \pi } , \widehat { q } } [ Y _ { i } = k \mid Z _ { i } ^ { ( r ) } ; { w } _ { i } ^ { ( r ) } ] } & { = } & { \frac { \widehat { q } _ { k } \prod _ { j = 1 } ^ { r } \Big ( \sum _ { s \in { \mathcal K } } \mathbb { I } [ Z _ { i j } = s ] \widehat { \pi } _ { k s } ^ { ( w _ { i j } ) } \Big ) } { \sum _ { k ^ { \prime } \in { \mathcal K } } \Big ( \widehat { q } _ { k ^ { \prime } } \prod _ { j = 1 } ^ { r } \Big ( \sum _ { s \in { \mathcal K } } \mathbb { I } [ Z _ { i j } = s ] \widehat { \pi } _ { k ^ { \prime } s } ^ { ( w _ { i j } ) } \Big ) \Big ) } , } \end{array}
86
+ $$
87
+
88
+ where $\mathbb { I } [ . ]$ is the indicator function which takes value one if the identity inside it is true, otherwise zero. We give guarantees on the performance of the proposed loss function in Theorem 4.1. In practice, it is robust to noise level and significantly outperforms the unbiased loss function. Given $\ell _ { \widehat { \pi } , \widehat { q } } .$ , we learn the predictor function $\hat { f }$ by minimizing the empirical risk
89
+
90
+ $$
91
+ \widehat { f } \arg \operatorname* { m i n } _ { f \in \mathcal { F } } \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell _ { \widehat { \pi } , \widehat { q } } ( f ( X _ { i } ) , Z _ { i } ^ { ( r ) } , w _ { i } ^ { ( r ) } ) .
92
+ $$
93
+
94
+ # 4.2 ESTIMATING ANNOTATOR NOISE
95
+
96
+ The next question is: how do we get a good estimate $\widehat { \pi }$ of the true confusion matrix $\pi$ for each worker. If redundancy $r$ bis sufficiently large, we can employ the EM algorithm. However, in practical applications, redundancy is typically three or five. With so little redundancy, the standard applications of EM are of limited use. In this paper we look to transcend this problem, posing the question: Can we estimate confusion matrices of workers even when there is only one label per example? While this isn’t possible in the standard approach, we can overcome this obstacle by incorporating a supervised learning model into the process of assessing worker quality.
97
+
98
+ Under the Dawid-Skene model, the EM algorithm estimates the ground truth labels and the confusion matrices in the following way: It alternately fixes the ground truth labels and the confusion matrices by their estimates and and updates its estimate of the other by maximizing the likelihood of the observed labels. The alternating maximization begins by initializing the ground truth labels with a majority vote. With only 1 label per example, EM estimates that all the workers are perfect.
99
+
100
+ We propose using model predictions as estimates of the ground truth labels. Our model is initially trained on the majority vote of the labels. In particular, if the model prediction is $\{ t _ { i } \} _ { i \in [ n ] }$ , where $t _ { i } \in \mathcal { K }$ , then the maximum likelihood estimate of confusion matrices and the prior distribution is given below. For the $a$ -th worker, ${ \widehat \pi } _ { k s } ^ { ( a ) }$ for $k , s \in \mathcal { K }$ , and $\widehat { q _ { k } }$ for $k \in \mathcal { K }$ , we have,
101
+
102
+ $$
103
+ \widehat { \pi } _ { k s } ^ { ( a ) } = \frac { \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { r } \mathbb { I } [ w _ { i j } = a ] \mathbb { I } [ t _ { i } = k ] \mathbb { I } [ Z _ { i j } = s ] } { \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { r } \mathbb { I } [ w _ { i j } = a ] \mathbb { I } [ t _ { i } = k ] } , \qquad \widehat { q } _ { k } = ( 1 / n ) \sum _ { i = 1 } ^ { n } \mathbb { I } [ t _ { i } = k ]
104
+ $$
105
+
106
+ The estimate is effective when the hypothesis class $\mathcal { F }$ is expressive enough and the learner is robust to noise. Thus the model should, in general, have small training error on correctly labeled examples and large training error on wrongly labeled examples. Consider the case when there is only one label per example. The model will be trained on the raw noisy labels given by the workers. For simplicity, assume that each worker is either a hammer (always correct) or a spammer (chooses labels uniformly random). By comparing model predictions with the training labels, we can identify which workers are hammers and which are spammers, as long as each worker labels sufficiently many examples. We expect a hammer to agree with the model more often than a spammer.
107
+
108
+ # 4.3 ITERATIVE ALGORITHM
109
+
110
+ Building upon the previous two ideas, we present ‘Model Bootstrapped EM’, an iterative algorithm for efficient learning from noisy labels with small redundancy. MBEM takes data, noisy labels, and the corresponding worker IDs, and returns the best predictor function $\widehat { f }$ in the hypothesis class $\mathcal { F }$ . In the first round, we compute the weights of the modified loss function $\ell _ { \widehat { \pi } , \widehat { q } }$ by using the weighted b bmajority vote. Then we obtain an estimate of the worker confusion matrices $\widehat { \pi }$ using the maximum blikelihood estimator by taking the model predictions as the ground truth labels. In the second round, weights of the loss function are computed as the posterior probability distribution of the ground truth labels conditioned on the noisy labels and the estimate of the confusion matrices obtained in the previous round. In our experiments, only two rounds are required to achieve substantial improvements over baselines.
111
+
112
+ # Algorithm 1 Model Bootstrapped EM (MBEM)
113
+
114
+ Input: $\{ ( X _ { i } , Z _ { i } ^ { ( r ) } , w _ { i } ^ { ( r ) } ) \} _ { i \in [ n ] }$ , $T$ : number of iterations
115
+ Output: $\widehat { f }$ : predictor function
116
+ Initialize posterior distribution using weighted majority vote
117
+ $\mathbb P _ { \widehat { \pi } , \widehat { q } } [ Y _ { i } = k \mid Z _ { i } ^ { ( r ) } ; w _ { i } ^ { ( r ) } ] \gets ( 1 / r ) \bar { \sum _ { j = 1 } ^ { r } } \mathbb I [ Z _ { i j } = k ]$ , for $k \in \mathcal { K } , i \in [ n ]$
118
+ b bRepeat $T$ times: learn predictor function $\widehat { f }$ $\begin{array} { r } { \widehat { f } \longleftarrow \arg \operatorname* { m i n } _ { f \in \mathcal { F } _ { \ast } } \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \sum _ { k \in K } \mathbb { P } _ { \widehat { \pi } , \widehat { q } } [ Y _ { i } = k \mid Z _ { i } ^ { ( r ) } ; w _ { i } ^ { ( r ) } ] \ell ( f ( X _ { i } ) , Y _ { i } = k ) } \end{array}$ predict on training examples $t _ { i } \gets \arg \operatorname* { m a x } _ { k \in \mathcal { K } } \widehat { f } ( X _ { i } ) _ { k }$ , for $i \in [ n ]$ bestimate confusion matrices $\widehat { \pi }$ and prior class distribution $\widehat { q }$ given $\{ t _ { i } \} _ { i \in [ n ] }$ ${ \widehat { \pi } } ^ { ( a ) } \gets$ Equation (7), for $a \in [ m ]$ ; $\widehat { q } \gets$ Equation (7) b bestimate label posterior distribution given ${ \widehat { \pi } } , { \widehat { q } }$ $\mathbb { P } _ { \widehat { \pi } , \widehat { q } } [ Y _ { i } = k \mid \bar { Z _ { i } ^ { ( r ) } } ; w _ { i } ^ { ( r ) } ] , \gets \mathrm { I }$ bquation (5), for $k \in \mathcal { K } , i \in [ n ]$
119
+ b bReturn f
120
+
121
+ # 4.4 PERFORMANCE GUARANTEES
122
+
123
+ The following result gives guarantee on the excess risk for the learned predictor function $\widehat { f }$ in terms of the VC dimension of the hypothesis class $\mathcal { F }$ . Recall that risk of a function $f$ w.r.t. loss function $\ell$ is defined to be $R _ { \ell , \mathcal { D } } ( f ) : = \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } \left[ \ell ( f ( X ) , Y ) \right]$ , Equation (2). We assume that the classification problem is binary, and the distribution $q$ , prior on ground truth labels $Y$ , is uniform and is known to us. We give guarantees on the excess risk of the predictor function $\widehat { f }$ , and accuracy of $\widehat { \pi }$ estimated bin the second round. For the purpose of analysis, we assume that fresh samples are used in each round for computing function $\widehat { f }$ and estimating $\widehat { \pi }$ . In other words, we assume that $\widehat { f }$ and $\widehat { \pi }$ are each computed using $n / 4$ bfresh samples in the first two rounds. We define $\alpha$ and $\beta _ { \epsilon }$ bto capture the average worker quality. Here, we give their concise bound for a special case when all the workers are identical, and their confusion matrix is represented by a single parameter, $0 \leq \rho < 1 / 2$ . Where $\pi _ { k k } = 1 - \rho$ $\pi _ { k s } ~ = ~ \rho$ $k \neq s$ . re t. e with probability for this special cas $\rho$ . i $\beta _ { \epsilon } \leq$ $\begin{array} { r } { ( \rho + \epsilon ) ^ { r } \sum _ { u = 0 } ^ { r } \binom { r } { u } ( \tau ^ { u } + \tau ^ { r - u } ) ^ { - 1 } } \end{array}$ $\tau : = ( \rho + \epsilon ) / ( 1 - \rho - \epsilon )$ $\alpha$ $\rho$ general definition of $\alpha$ and $\beta _ { \epsilon }$ for any confusion matrices $\pi$ is provided in the Appendix.
124
+
125
+ Theorem 4.1. Define $N : = n r$ to be the number of total annotations collected on n training examples with redundancy $r$ . Suppose $\operatorname* { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f ) \leq 1 / 4$ . For any hypothesis class $\mathcal { F }$ with a finite VC dimension $V$ , and any $\delta < 1$ , there exists a universal constant $C$ such that if $N$ is large enough and satisfies
126
+
127
+ $$
128
+ N \ge \operatorname* { m a x } \left\{ C r \big ( \big ( \sqrt V + \sqrt { \log ( 1 / \delta ) } \big ) / ( 1 - 2 \alpha ) \big ) ^ { 2 } , 2 ^ { 1 2 } m \log ( 2 ^ { 6 } m / \delta ) \right\} ,
129
+ $$
130
+
131
+ then for binary classification with 0-1 loss function $\ell$ , $\hat { f }$ and $\widehat { \pi }$ returned by Algorithm $I$ after $T = 2$ iterations satisfies
132
+
133
+ $$
134
+ R _ { \ell , \mathcal { D } } ( \widehat { f } ) - \operatorname* { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f ) \leq \frac { C \sqrt { r } } { 1 - 2 \beta _ { \epsilon } } \left( \sqrt { \frac { V } { N } } + \sqrt { \frac { \log ( 1 / \delta ) } { N } } \right) ,
135
+ $$
136
+
137
+ and $\| \widehat { \pi } ^ { ( a ) } - \pi ^ { ( a ) } \| _ { \infty } \leq \epsilon _ { 1 }$ for all $a \in [ m ]$ , with probability at least √ $1 - \delta$ . Where $\epsilon : = 2 ^ { 4 } \gamma +$ $2 ^ { 8 } \sqrt { m \log ( 2 ^ { 6 } m \delta ) / N }$ , and $\begin{array} { r } { \gamma : = \operatorname* { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f ) + C ( \sqrt { V } + \sqrt { \log ( 1 / \delta ) } ) / ( ( 1 - 2 \alpha ) \sqrt { N / r } ) } \end{array}$ . $\epsilon _ { 1 }$ is defined to be $\epsilon$ with $\alpha$ in it replaced by $\beta _ { \epsilon }$ .
138
+
139
+ The price we pay in generalization error bound on $\widehat { f }$ is $( 1 - 2 \beta _ { \epsilon } )$ . Note that, when $n$ is large, $\epsilon$ goes to zero, and $\beta _ { \epsilon } \leq 2 \rho ( 1 - \rho )$ , for $r = 1$ .
140
+
141
+ If $\mathrm { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f )$ is sufficiently small, VC dimension is finite, and $\rho$ is bounded away from $1 / 2$ then for $n = { \cal O } ( m \log ( m ) / r )$ , we get $\epsilon _ { 1 }$ to be sufficiently small. Therefore, for any redundancy $r$ , error in confusion matrix estimation is small when the number of training examples is sufficiently large. Hence, for $N$ large enough, using Equation (9) and the bound on $\beta _ { \epsilon }$ , we get that for fixed total annotation budget, the optimal choice of redundancy $r$ is 1 when the worker quality $( 1 - \rho )$ is above a threshold. In particular, if $( 1 - \rho ) \ge 0 . 8 2 5$ then label once is the optimal strategy. However, in experiments we observe that with our algorithm the choice of $r = 1$ is optimal even for much smaller values of worker quality.
142
+
143
+ # 5 EXPERIMENTS
144
+
145
+ We experimentally investigate our algorithm, MBEM, on multiple large datasets. On CIFAR-10 (Krizhevsky & Hinton, 2009) and ImageNet (Deng et al., 2009), we draw noisy labels from synthetic worker models. We confirm our results on multiple worker models. On the MS-COCO dataset (Lin et al., 2014b), we accessed the real raw data that was used to produce this annotation. We compare MBEM against the following baselines:
146
+
147
+ • MV: First aggregate labels by performing a majority vote, then train the model. • weighted-MV: Model learned using weighted loss function with weights set by majority vote. • EM: First aggregate labels using EM. Then train model in the standard fashion. (Dawid & Skene, 1979) • weighted-EM: Model learned using weighted loss function with weights set by standard EM. • oracle weighted EM: This model is learned by minimizing $\ell _ { \pi }$ , using the true confusion matrices. • oracle correctly labeled: This baseline is trained using the standard loss function $\ell$ but only using those training examples for which at least one of the $r$ workers has given the true label.
148
+
149
+ Note that oracle models cannot be deployed in practice. We show them to build understanding only. In the plots, the dashed lines correspond to MV and EM algorithm. The black dashed-dotted line shows generalization error if the model is trained using ground truth labels on all the training examples. For experiments with synthetic noisy workers, we consider two models of worker skill:
150
+
151
+ • hammer-spammer: Each worker is either a hammer (always correct) with probability $\gamma$ or a spammer (chooses labels uniformly at random).
152
+ • class-wise hammer-spammer: Each worker can be a hammer for some subset of classes and a spammer for the others. The confusion matrix in this case has two types of rows: (a) hammer class: row with all off-diagonal elements being 0. (b) spammer class: row with all elements being $1 / | \mathcal { K } |$ . A worker is a hammer for any class $k \in \mathcal { K }$ with probability $\gamma$ .
153
+
154
+ We sample $m$ confusion matrices $\{ \pi ^ { ( a ) } \} _ { a \in [ m ] }$ according to the given worker skill distribution for a given $\gamma$ . We assign $r$ workers uniformly at random to each example. Given the ground truth labels, we generate noisy labels according to the probabilities given in a worker’s confusion matrix, using Equation (1). While our synthetic workers are sampled from these specific worker skill models, our algorithms do not use this information to estimate the confusion matrices. A Python implementation of the MBEM algorithm is available for download at https://github.com/khetan2/MBEM.
155
+
156
+ CIFAR-10 This dataset has a total of $6 0 \mathrm { K }$ images belonging to 10 different classes where each class is represented by an equal number of images. We use 50K images for training the model and 10K images for testing. We use the ground truth labels to generate noisy labels from synthetic workers. We choose $m = 1 0 0$ , and for each worker, sample confusion matrix of size $1 0 \times 1 0$ according to the worker skill distribution. All our experiments are carried out with a 20-layer ResNet which achieves an accuracy of $9 1 . 5 \%$ . With the larger ResNet-200, we can obtain a higher accuracy of $9 3 . 5 \%$ but to save training time we restrict our attention to ResNet-20. We run MBEM 1 for $T = 2$ rounds. We assume that the prior distribution $\widehat { q }$ is uniform. We report mean accuracy of 5 runs and its standard error for all the experiments.
157
+
158
+ ![](images/6c945ae9fff5521cc6e41d06a130396dbff3f15c56211f1937aa4caf459564d6.jpg)
159
+ Figure 1: Plots for CIFAR-10. Line colors- black: oracle correctly labeled, red: oracle weighted EM, blue: MBEM, green: weighted EM, yellow: weighted MV.
160
+
161
+ Figure 1 shows plots for CIFAR-10 dataset under various settings. The three plots in the first row correspond to “hammer-spammer” worker skill distribution and the plots in the second row correspond to “class-wise hammer-spammer” distribution. In the first plot, we fix redundancy $r = 1$ , and plot generalization error of the model for varying hammer probability $\gamma$ . MBEM significantly outperforms all baselines and closely matches the Oracle weighted EM. This implies MBEM recovers worker confusion matrices accurately even when we have only one label per example. When there is only one label per example, MV, weighted-MV, EM, and weighted-EM all reduce learning with the standard loss function $\ell$ .
162
+
163
+ In the second plot, we fix hammer probability $\gamma = 0 . 2$ , and vary redundancy $r$ . This plot shows that weighted-MV and weighted-EM perform significantly better than MV and EM and confirms that our approach of weighing the loss function with posterior probability is effective. MBEM performs much better than weighted-EM at small redundancy, demonstrating the effect of our bootstrapping idea. However, when redundancy is large, EM works as good as MBEM.
164
+
165
+ In the third plot, we show that when the total annotation budget is fixed, it is optimal to collect one label per example for as many examples as possible. We fixed hammer probability $\gamma = 0 . 2$ . Here, when redundancy is increased from 1 to 2, the number of of available training examples is reduced by $50 \%$ , and so on. Performance of weighted-EM improves when redundancy is increased from 1 to 5, showing that with the standard EM algorithm it might be better to collect redundant annotations for fewer example (as it leads to better estimation of worker qualities) than to singly annotate more examples. However, MBEM always performs better than the standard EM algorithm, achieving lowest generalization error with many singly annotated examples. Unlike standard EM, MBEM can estimate worker qualities even with singly annotated examples by comparing them with model predictions. This corroborates our theoretical result that label-once is the optimal strategy when worker quality is above a threshold. The plots corresponding to class-wise hammer-spammer workers follow the same trend. Estimation of confusion matrices in this setting is difficult and hence the gap between MBEM and the baselines is less pronounced.
166
+
167
+ ImageNet The ImageNet-1K dataset contains 1.2M training examples and 50K validation examples. We divide test set in two parts: 10K for validation and 40K for test. Each example belongs to one of the possible 1000 classes. We implement our algorithms using a ResNet-18 that achieves top
168
+
169
+ ![](images/30f356ecd82f96c6537d9c31616006d1638d277695f800b639ed35818b630b05.jpg)
170
+ Figure 2: Plots for ImageNet. Solid lines represent top-5 error, dashed-lines represent top-1 error. Line colors- blue: MBEM, green: weighted majority vote, yellow: majority vote
171
+
172
+ <table><tr><td rowspan=1 colspan=1>Approach</td><td rowspan=1 colspan=1>F1 score</td></tr><tr><td rowspan=1 colspan=1>majority vote</td><td rowspan=1 colspan=1>0.433</td></tr><tr><td rowspan=1 colspan=1>EM</td><td rowspan=1 colspan=1>0.447</td></tr><tr><td rowspan=1 colspan=1>MBEM</td><td rowspan=1 colspan=1>0.451</td></tr><tr><td rowspan=1 colspan=1>ground truth labels</td><td rowspan=1 colspan=1>0.512</td></tr></table>
173
+
174
+ ![](images/052f3a805394aed41772f861c3670f86759ecf43e7f19897d4beb4aeb74f5e6c.jpg)
175
+ Figure 3: Results on raw MS-COCO annotations.
176
+
177
+ 1 accuracy of $6 9 . 5 \%$ and top-5 accuracy of $8 9 \%$ on ground truth labels. We use $m = 1 0 0 0$ simulated workers. Although in general, a worker can mislabel an example to one of the 1000 possible classes, our simulated workers mislabel an example to only one of the 10 possible classes. This captures the intuition that even with a larger number of classes, perhaps only a small number are easily confused for each other. Therefore, each workers’ confusion matrix is of size $1 0 \times 1 0$ . Note that without this assumption, there is little hope of estimating a $1 0 0 0 \times 1 0 0 0$ confusion matrix for each worker by collecting only approximately 1200 noisy labels from a worker. The rest of the settings are the same as in our CIFAR-10 experiments. In Figure 2, we fix total annotation budget to be 1.2M and vary redundancy from 1 to 9. When redundancy is 9, we have only $( 1 . 2 / 9 ) \mathbf { M }$ training examples, each labeled by 9 workers. MBEM outperforms baselines in each of the plots, achieving the minimum generalization error with many singly annotated training examples.
178
+
179
+ MS-COCO These experiments use the real raw annotations collected when MS-COCO was crowdsourced. Each image in the dataset has multiple objects (approximately 3 on average). For validation set images (out of 40K), labels were collected from 9 workers on average. Each worker marks which out of the 80 possible objects are present. However, on many examples workers disagree. These annotations were collected to label bounding boxes but we ask a different question: what is the best way to learn a model to perform multi-object classification, using these noisy annotations. We use 35K images for training the model and 1K for validation and 4K for testing. We use raw noisy annotations for training the model and the final MS-COCO annotations as the ground truth for the validation and test set. We use ResNet-98 deep learning model and train independent binary classifier for each of the 80 object classes. Table in Figure 3 shows generalization F1 score of four different algorithms: majority vote, EM, MBEM using all 9 noisy annotations on each of the training examples, and a model trained using the ground truth labels. MBEM performs significantly better than the standard majority vote and slightly improves over EM. In the plot, we fix the total annotation budget to 35K. We vary redundancy from 1 to 7, and accordingly reduce the number of training examples to keep the total number of annotations fixed. When redundancy is $r \ < \ 9$ we select uniformly at random $r$ of the original 9 noisy annotations. Again, we find it best to singly annotate as many examples as possible when the total annotation budget is fixed. MBEM significantly outperforms majority voting and EM at small redundancy.
180
+
181
+ # 6 CONCLUSION
182
+
183
+ We introduced a new algorithm for learning from noisy crowd workers. We also presented a new theoretical and empirical demonstration of the insight that when examples are cheap and annotations expensive, it’s better to label many examples once than to label few multiply when worker quality is above a threshold. Many avenues seem ripe for future work. We are especially keen to incorporate our approach into active query schemes, choosing not only which examples to annotate, but which annotator to route them to based on our models current knowledge of both the data and the worker confusion matrices.
184
+
185
+ # REFERENCES
186
+
187
+ Jonathan Bragg, Daniel S Weld, et al. Optimal testing for crowd workers. In Proceedings of the 2016 International Conference on Autonomous Agents & Multiagent Systems, pp. 966–974. International Foundation for Autonomous Agents and Multiagent Systems, 2016.
188
+
189
+ Steve Branson, Catherine Wah, Florian Schroff, Boris Babenko, Peter Welinder, Pietro Perona, and Serge Belongie. Visual recognition with humans in the loop. Computer Vision–ECCV 2010, pp. 438–451, 2010.
190
+
191
+ Steve Branson, Grant Van Horn, and Pietro Perona. Lean crowdsourcing: Combining humans and machines in an online system. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7474–7483, 2017.
192
+
193
+ Nilesh Dalvi, Anirban Dasgupta, Ravi Kumar, and Vibhor Rastogi. Aggregating crowdsourced binary ratings. In Proceedings of the 22nd international conference on World Wide Web, pp. 285–294. ACM, 2013.
194
+
195
+ Alexander Philip Dawid and Allan M Skene. Maximum likelihood estimation of observer error-rates using the em algorithm. Applied statistics, pp. 20–28, 1979.
196
+
197
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
198
+
199
+ Jia Deng, Jonathan Krause, and Li Fei-Fei. Fine-grained crowdsourcing for fine-grained recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 580–587, 2013.
200
+
201
+ Melody Y Guan, Varun Gulshan, Andrew M Dai, and Geoffrey E Hinton. Who said what: Modeling individual labelers improves classification. arXiv preprint arXiv:1703.08774, 2017.
202
+
203
+ Panagiotis G Ipeirotis, Foster Provost, Victor S Sheng, and Jing Wang. Repeated labeling using multiple noisy labelers. Data Mining and Knowledge Discovery, 28(2):402–441, 2014.
204
+
205
+ Rong Jin and Zoubin Ghahramani. Learning with multiple labels. In Advances in neural information processing systems, pp. 921–928, 2003.
206
+
207
+ Ishan Jindal, Matthew Nokleby, and Xuewen Chen. Learning deep networks from noisy labels with dropout regularization. In Data Mining (ICDM), 2016 IEEE 16th International Conference on, pp. 967–972. IEEE, 2016.
208
+
209
+ Armand Joulin, Laurens van der Maaten, Allan Jabri, and Nicolas Vasilache. Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Springer, 2016.
210
+
211
+ David R Karger, Sewoong Oh, and Devavrat Shah. Budget-optimal task allocation for reliable crowdsourcing systems. Operations Research, 62(1):1–24, 2014.
212
+
213
+ Ashish Khetan and Sewoong Oh. Achieving budget-optimality with adaptive schemes in crowdsourcing. In Advances in Neural Information Processing Systems, pp. 4844–4852, 2016.
214
+
215
+ Jonathan Krause, Benjamin Sapp, Andrew Howard, Howard Zhou, Alexander Toshev, Tom Duerig, James Philbin, and Li Fei-Fei. The unreasonable effectiveness of noisy data for fine-grained recognition. In European Conference on Computer Vision, pp. 301–320. Springer, 2016.
216
+
217
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
218
+
219
+ Christopher H Lin, Daniel S Weld, et al. To re (label), or not to re (label). In Second AAAI conference on human computation and crowdsourcing, 2014a.
220
+
221
+ Christopher H Lin, M Mausam, and Daniel S Weld. Re-active learning: Active learning with relabeling. In AAAI, pp. 1845–1852, 2016.
222
+
223
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ European conference on computer vision, pp. 740–755. Springer, 2014b.
224
+
225
+ Qiang Liu, Jian Peng, and Alexander T Ihler. Variational inference for crowdsourcing. In Advances in neural information processing systems, pp. 692–700, 2012.
226
+
227
+ Nagarajan Natarajan, Inderjit S Dhillon, Pradeep K Ravikumar, and Ambuj Tewari. Learning with noisy labels. In Advances in neural information processing systems, pp. 1196–1204, 2013.
228
+
229
+ Alexander J Ratner, Christopher M De Sa, Sen Wu, Daniel Selsam, and Christopher Re. Data pro- ´ gramming: Creating large training sets, quickly. In Advances in Neural Information Processing Systems, pp. 3567–3575, 2016.
230
+
231
+ Victor S Sheng, Foster Provost, and Panagiotis G Ipeirotis. Get another label? improving data quality and data mining using multiple, noisy labelers. In Proceedings of the 14th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 614–622. ACM, 2008.
232
+
233
+ Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. arXiv preprint arXiv:1406.2080, 2014.
234
+
235
+ Catherine Wah, Steve Branson, Pietro Perona, and Serge Belongie. Multiclass recognition and part localization with humans in the loop. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 2524–2531. IEEE, 2011.
236
+
237
+ Peter Welinder and Pietro Perona. Online crowdsourcing: rating annotators and obtaining costeffective labels. In Computer Vision and Pattern Recognition Workshops (CVPRW), 2010 IEEE Computer Society Conference on, pp. 25–32. IEEE, 2010.
238
+
239
+ Peter Welinder, Steve Branson, Pietro Perona, and Serge J Belongie. The multidimensional wisdom of crowds. In Advances in neural information processing systems, pp. 2424–2432, 2010.
240
+
241
+ Jacob Whitehill, Ting-fan Wu, Jacob Bergsma, Javier R Movellan, and Paul L Ruvolo. Whose vote should count more: Optimal integration of labels from labelers of unknown expertise. In Advances in neural information processing systems, pp. 2035–2043, 2009.
242
+
243
+ Yuchen Zhang, Xi Chen, Denny Zhou, and Michael I Jordan. Spectral methods meet em: A provably optimal algorithm for crowdsourcing. In Advances in neural information processing systems, pp. 1260–1268, 2014.
244
+
245
+ Dengyong Zhou, Qiang Liu, John C Platt, Christopher Meek, and Nihar B Shah. Regularized minimax conditional entropy for crowdsourcing. arXiv preprint arXiv:1503.07240, 2015.
246
+
247
+ Denny Zhou, Sumit Basu, Yi Mao, and John C Platt. Learning from the wisdom of crowds by minimax entropy. In Advances in Neural Information Processing Systems, pp. 2195–2203, 2012.
248
+
249
+ # APPENDIX
250
+
251
+ # A PROOF OF THEOREM 4.1
252
+
253
+ Assuming the prior on $Y$ , distribution $q$ , to be uniform, we change the notation for the modified loss function $\ell _ { \widehat { \pi } , \widehat { q } }$ to $\ell _ { \widehat { \pi } }$ . Observe that for binary classification, $Z ^ { ( r ) } \bar { \in } \{ \pm 1 \} ^ { r }$ . Let $\rho$ denote the posterior b bdistribution of $Y$ b, Equation (5), when $q$ is uniform. Let $\tau$ denote the probability of observing an instance of $Z ^ { ( r ) }$ as a function of the latent true confusion matrices $\pi$ , conditioned on the ground truth label $Y = y$ .
254
+
255
+ $$
256
+ \rho _ { \pi } ( y , Z ^ { ( r ) } , w ^ { ( r ) } ) : = \mathbb { P } _ { \widehat { \pi } } [ Y = y \mid Z ^ { ( r ) } ; w ^ { ( r ) } ] , \qquad \tau _ { \pi } ( y , Z ^ { ( r ) } , w ^ { ( r ) } ) : = \mathbb { P } _ { \pi } [ Z ^ { ( r ) } \mid Y = y ; w ^ { ( r ) } ] .
257
+ $$
258
+
259
+ Let $W$ denote the uniform distribution over a pool of $m$ workers, from which nr workers are selected i.i.d. with replacement, and a batch of $r$ workers are assigned to each example $X _ { i }$ . We define the following quantities which play an important role in our analysis.
260
+
261
+ $$
262
+ \begin{array} { r c l } { \displaystyle \beta _ { \widetilde \pi } ( y ) } & { : = } & { \displaystyle \mathbb { E } _ { w \sim W } \left[ \sum _ { Z ^ { ( r ) } \in \{ \pm 1 \} ^ { r } } \rho _ { \widetilde \pi } ( - y , Z ^ { ( r ) } , w ^ { ( r ) } ) \tau _ { \pi } ( y , Z ^ { ( r ) } , w ^ { ( r ) } ) \right] . } \\ { \displaystyle \beta _ { \widetilde \pi } } & { : = } & { \displaystyle \mathbb { E } _ { w \sim W } \left[ \operatorname* { m a x } _ { y \in \{ \pm 1 \} } \left\{ \sum _ { Z ^ { ( r ) } \in \{ \pm 1 \} ^ { r } } \rho _ { \widetilde \pi } ( - y , Z ^ { ( r ) } , w ^ { ( r ) } ) \tau _ { \pi } ( y , Z ^ { ( r ) } , w ^ { ( r ) } ) \right\} \right] . } \\ { \displaystyle \alpha ( y ) } & { : = } & { \displaystyle \mathbb { E } _ { w \sim W } \left[ \mathbb { P } _ { \pi } [ Z = - y \mid Y = y ; w ] \right] . } \\ { \displaystyle \alpha } & { : = } & { \displaystyle \mathbb { E } _ { w \sim W } \left[ \operatorname* { m a x } _ { y \in \{ \pm 1 \} } \mathbb { P } _ { \pi } [ Z = - y \mid Y = y ; w ] \right] . } \end{array}
263
+ $$
264
+
265
+ For any give $\widehat { \pi }$ with $| \widehat { \pi } _ { k s } ^ { ( a ) } - \pi _ { k s } ^ { ( a ) } | \le \epsilon$ , for all $a \in [ m ] , k , s \in \mathcal { K }$ , we can compute $\beta _ { \epsilon }$ from the $\beta _ { \widehat { \pi } }$ b such that $\beta _ { \widehat { \pi } } ~ \leq ~ \beta _ { \epsilon }$ . For the special case described in Section 4.4, we have the bfollowing bound on $\beta _ { \epsilon }$ .
266
+
267
+ $$
268
+ \begin{array} { r c l } { \beta _ { \epsilon } } & { \le } & { \displaystyle \sum _ { u = 0 } ^ { r } \frac { ( \rho + \epsilon ) ^ { ( r - u ) } ( 1 - \rho - \epsilon ) ^ { u } } { ( \rho + \epsilon ) ^ { u } ( 1 - \rho - \epsilon ) ^ { ( r - u ) } + ( \rho + \epsilon ) ^ { ( r - u ) } ( 1 - \rho - \epsilon ) ^ { u } } \binom { r } { u } ( 1 - \rho ) ^ { r - u } \rho ^ { u } } \\ & { = } & { \displaystyle ( \rho + \epsilon ) ^ { r } \sum _ { u = 0 } ^ { r } \binom { r } { u } \left( \left( \frac { \rho + \epsilon } { 1 - \rho - \epsilon } \right) ^ { u } + \left( \frac { \rho + \epsilon } { 1 - \rho - \epsilon } \right) ^ { r - u } \right) ^ { - 1 } . } \end{array}
269
+ $$
270
+
271
+ It can easily be checked that $\begin{array} { r } { \beta _ { \epsilon } \leq ( \rho + \epsilon ) ^ { r } \sum _ { u = 0 } ^ { \lceil r / 2 \rceil } \binom { r } { u } ( 1 - \rho - \epsilon ) ^ { u } ( \rho + \epsilon ) ^ { - u } . } \end{array}$
272
+
273
+ We present two lemma that analyze the two alternative steps of our algorithm. The following lemma gives a bound on the excess risk of function $\widehat { f }$ learnt by minimizing the modified loss function $\ell _ { \widehat { \pi } }$ .
274
+
275
+ Lemma A.1. Under the assumptions of Theorem 4.1, the excess risk of function $\hat { f }$ in Equation (6), computed with posterior distribution $\mathbb { P } _ { \widehat { \pi } }$ (5) using $n$ training examples is bounded by
276
+
277
+ $$
278
+ R _ { \ell , D } ( \widehat f ) - \operatorname* { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f ) \ \leq \ \frac { C } { 1 - 2 \beta _ { \widehat \pi } } \left( \sqrt { \frac { V } { n } } + \sqrt { \frac { \log ( 1 / \delta _ { 1 } ) } { n } } \right) ,
279
+ $$
280
+
281
+ with probability at least $1 - \delta _ { 1 }$ , where $C$ is a universal constant. When $\mathbb { P } _ { \widehat { \pi } }$ is computed using majority vote, while initializing the iterative Algorithm $^ { l }$ b, the above bound holds with $\beta _ { \widehat { \pi } }$ replaced by $\alpha$ .
282
+
283
+ The following lemma gives an $\ell _ { \infty }$ norm bound on confusion matrices $\widehat { \pi }$ estimated using model prediction ${ \widehat { f } } ( X )$ as the ground truth labels. In the analysis, we assume fresh samples are used for estimating confusion matrices in step 3, Algorithm 1. Therefore the function $\widehat { f }$ is independent of the samples $X _ { i }$ ’s on which $\widehat { \pi }$ is estimated. Let $K = | { \cal K } |$ .
284
+
285
+ Lemma A.2. Under the assumptions of Theorem 4.1, $\ell _ { \infty }$ error in estimated confusion matrices $\widehat { \pi }$ as computed in Equation (7), using $n$ samples and a predictor function $\widehat { f }$ with risk $R _ { \ell , \mathcal { D } } \ \leq \ \delta$ , is bounded by
286
+
287
+ $$
288
+ \left. \widehat { \pi } _ { k s } ^ { ( a ) } - \pi _ { k s } ^ { ( a ) } \right. ~ \leq ~ \frac { 2 \delta + 1 6 \sqrt { m \log ( 4 m K ^ { 2 } \delta _ { 1 } ) / ( n r ) } } { 1 / K - \delta - 8 \sqrt { m \log ( 4 m K ^ { 2 } / \delta _ { 1 } ) / ( n r ) } } , \qquad \forall a \in [ m ] , \ k , s \in { \mathcal K } ,
289
+ $$
290
+
291
+ with probability at least $1 - \delta _ { 1 }$ .
292
+
293
+ First we apply Lemma A.1 with $\mathbb { P } _ { \widehat { \pi } }$ computed using majority vote. We get a bound on the risk of function $\widehat { f }$ computed in the first round. With this $\widehat { f }$ , we apply Lemma A.2. When $n$ is sufficiently large such that Equation (8) holds, the denominator in Equation (18), $1 / K - \delta -$ $8 \sqrt { m \log ( 4 m K ^ { 2 } / \delta _ { 1 } ) / ( n r ) } \ge 1 / 8$ . Therefore, in the first round, the error in confusion matrix estimation is bounded by $\epsilon$ , which is defined in the Theorem.
294
+
295
+ For the second round: we apply Lemma A.1 with $\mathbb { P } _ { \widehat { \pi } }$ computed as the posterior distribution (5). Where $\ell _ { \infty }$ error in $\widehat { \pi }$ is bounded by $\epsilon$ b. This gives the desired bound in (9). With this $\hat { f }$ , we apply bLemma A.2 and obtain $\ell _ { \infty }$ error in $\widehat { \pi }$ bounded by $\epsilon _ { 1 }$ , which is defined in the Theorem.
296
+
297
+ For the given probability of error $\delta$ in the Theorem, we chose $\delta _ { 1 }$ in both the lemma to be $\delta / 4$ such that with union bound we get the desired probability of $\delta$ .
298
+
299
+ # A.1 PROOF OF LEMMA A.1
300
+
301
+ Let $\begin{array} { r } { f ^ { * } : = \arg \operatorname* { m i n } _ { f \in \mathcal { F } } R _ { \ell , \mathcal { D } } ( f ) } \end{array}$ . Let’s denote the distribution of $( \boldsymbol { X } , \boldsymbol { Z } ^ { ( r ) } , \boldsymbol { w } ^ { ( r ) } )$ by $\mathcal { D } _ { W , \pi , r }$ . For ease of notation, we denote $\mathcal { D } _ { W , \pi , r }$ by $\mathcal { D } _ { \pi }$ . Similar to $R _ { \ell , \mathcal { D } }$ , risk of decision function $f$ with respect to the modified loss function $\ell _ { \widehat { \pi } }$ is characterized by the following quantities:
302
+
303
+ 1. $\ell _ { \widehat { \pi } }$ -risk unde $\mathcal D _ { \pi } \colon R _ { \ell _ { \widehat { \pi } } , \mathcal D _ { \pi } } ( f ) : = \mathbb E _ { ( X , Z ^ { ( r ) } , w ^ { ( r ) } ) \sim \mathcal D _ { \pi } } \left[ \ell _ { \widehat { \pi } } \big ( f ( X ) , Z ^ { ( r ) } , w ^ { ( r ) } \big ) \right] .$
304
+ 2. Empirical $\ell _ { \widehat { \pi } }$ -risk on samples: $\begin{array} { r } { \widehat { R } _ { \ell _ { \widehat { \pi } } , \mathcal { D } _ { \pi } } ( f ) : = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell _ { \widehat { \pi } } ( f ( X _ { i } ) , Z _ { i } ^ { ( r ) } , w _ { i } ^ { ( r ) } ) . } \end{array}$
305
+
306
+ With the above definitions, we have the following,
307
+
308
+ $$
309
+ \begin{array} { r l r } & { \ } & { R _ { \ell , D } ( \widehat f ) - R _ { \ell , D } ( f ^ { * } ) } \\ & { = } & { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) + ( R _ { \ell , D } ( \widehat f ) - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) ) - ( R _ { \ell , D } ( f ^ { * } ) - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) ) } \\ & { = } & { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) + 2 \beta _ { \overline { { \pi } } } ( R _ { \ell , D } ( \widehat f ) - R _ { \ell , D } ( f ^ { * } ) ) } \\ & { \leq } & { \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) } - \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } } ( f ^ { * } ) + 2 \beta _ { \overline { { \pi } } } ( R _ { \ell , D } ( \widehat f ) - R _ { \ell , D } ( f ^ { * } ) ) } \\ & { = } & { \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) } - \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) } + ( R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) - \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( \widehat f ) } ) + ( \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) } - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ^ { * } ) ) } \\ & { } & { + 2 \beta _ { \overline { { \pi } } } ( R _ { \ell , D } ( \widehat f ) - R _ { \ell , D } ( f ^ { * } ) ) } \\ & { \leq } & 2 \operatorname* { m a x } | \widehat { R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } } ( f ) - R _ { \ell , \widehat \sigma , \mathcal { P } _ { \ell } } ( f ) \ \end{array}
310
+ $$
311
+
312
+ where (19) follows from Equation (24). (20) follows from the fact that $\widehat { f }$ is the minimizer of $\widehat { R } _ { \ell _ { \widehat { \pi } } , { \mathcal { D } } _ { \pi } }$ as computed in (6). (21) follows from the basic excess-risk bound. $V$ bis the VC dimension of hypothesis class $\mathcal { F }$ , and $C$ is a universal constant.
313
+
314
+ Following shows the inequality used in Equation (19). For binary classification, we denote the two classes by $Y , - Y$ .
315
+
316
+ $$
317
+ \begin{array} { r l r } { = } & { { \cal R } _ { \ell , \mathcal { D } } ( \widehat { f } ) - { \cal R } _ { \ell _ { \widehat { \pi } } , \mathcal { D } _ { \pi } } ( \widehat { f } ) - ( { \cal R } _ { \ell , \mathcal { D } } ( f ^ { * } ) - { \cal R } _ { \ell _ { \widehat { \pi } } , \mathcal { D } _ { \pi } } ( f ^ { * } ) ) } \\ { = } & { \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } [ \beta _ { \widehat { \pi } } ( Y ) ( ( \ell ( \widehat { f } ( X ) , Y ) - \ell ( f ^ { * } ( X ) , Y ) ) - ( \ell ( \widehat { f } ( X ) , - Y ) - \ell ( f ^ { * } ( X ) , - Y ) ) ) ] ) } \\ { = } & { 2 \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } [ \beta _ { \widehat { \pi } } ( Y ) ( \ell ( \widehat { f } ( X ) , Y ) - \ell ( f ^ { * } ( X ) , Y ) ) ] } & { ( 2 3 ) } \\ { \leq } & { 2 \beta _ { \widehat { \pi } } ( { \cal R } _ { \ell , \mathcal { D } } ( \widehat { f } ) - { \cal R } _ { \ell , \mathcal { D } } ( f ^ { * } ) ) , } & { ( 2 4 ) } \end{array}
318
+ $$
319
+
320
+ where (22) follows from Equation (26). (23) follows from the fact that for 0-1 loss function $\ell ( f ( X ) , Y ) + \ell ( f ( X ) , - Y ) = 1$ . (24) follows from the definition of $\beta _ { \widehat { \pi } }$ defined in Equation (12). When $\ell _ { \widehat { \pi } }$ bis computed using weighted majority vote of the workers then (24) holds with $\beta _ { \widehat { \pi } }$ replaced by $\alpha , \alpha$ bis defined in (14).
321
+
322
+ Following shows the equality used in Equation (22). Using the notations $\rho _ { \widehat { \pi } }$ and $\tau _ { \pi }$ , in the following, for any function $f \in { \mathcal { F } }$ b, we compute the excess risk due to the unbiasedness of the modified loss function $\ell _ { \widehat { \pi } }$ .
323
+
324
+ $$
325
+ \begin{array} { r l } & { \displaystyle R _ { \xi , \mathcal { D } } ( f ) - R _ { \xi _ { \Psi } , \mathcal { D } _ { \pi } } ( f ) } \\ { = } & { \displaystyle \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } \left[ \ell ( f ( X ) , Y ) \right] - \mathbb { E } _ { ( X , Z ^ { ( r ) } , w ^ { ( r ) } ) \sim \mathcal { D } _ { \mathbb { P } } } [ \ell _ { \widetilde { \pi } } ( f ( X ) , Z ^ { ( r ) } , w ^ { ( r ) } ) ] } \\ { = } & { \displaystyle \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } \left[ \ell ( f ( X ) , Y ) \right] } \\ & { \displaystyle - \mathbb { E } _ { ( X , Y , w ^ { ( r ) } ) \sim \mathcal { D } _ { \pi } } \Bigg [ \sum _ { Z ^ { ( r ) } \in \{ \pm 1 \} ^ { r } } \Big ( ( 1 - \rho _ { \widetilde { \pi } } ( - Y , Z ^ { ( r ) } , w ^ { ( r ) } ) ) \ell ( f ( X ) , Y ) } \\ & { \displaystyle + \rho _ { \widetilde { \pi } } ( - Y , Z ^ { ( r ) } , w ^ { ( r ) } ) \ell ( f ( X ) , - Y ) \Big ) \tau _ { \pi } ( Y , Z ^ { ( r ) } , w ^ { ( r ) } ) \Bigg ] } \\ { = } & { \displaystyle \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } \left[ \beta _ { \widetilde { \pi } } ( Y ) \left( \ell ( f ( X ) , Y ) - \ell ( f ( X ) , - Y ) \right) \right] , } \end{array}
326
+ $$
327
+
328
+ where $\beta _ { \widehat { \pi } } ( Y )$ is defined in (11). Where (25) follows from the definition of $\ell _ { \widehat { \pi } }$ given in Equation (4). bObserve that when $\ell _ { \widehat { \pi } }$ bis computed using weighted majority vote of the workers then Equation (26) holds with $\beta _ { \widehat { \pi } } ( Y )$ b replaced by $\alpha ( y ) . \alpha ( \bar { y } )$ is defined in (13).
329
+
330
+ # A.2 PROOF OF LEMMA A.2
331
+
332
+ Recall that we have
333
+
334
+ $$
335
+ \begin{array} { r l r } { \widehat { \pi } _ { k s } ^ { ( a ) } } & { = } & { \frac { \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { r } \mathbb { I } [ w _ { i j } = a ] \mathbb { I } [ t _ { i } = k ] \mathbb { I } [ Z _ { i j } = s ] } { \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { r } \mathbb { I } [ w _ { i j } = a ] \mathbb { I } [ t _ { i } = k ] } } \end{array}
336
+ $$
337
+
338
+ Let $t _ { i }$ denote ${ \widehat { f } } ( X _ { i } )$ . By the definition of risk, for any $k \in \mathcal { K }$ , we have
339
+
340
+ $$
341
+ \mathbb { P } \Big [ \big | \mathbb { I } [ Y _ { i } = k ] - \mathbb { I } [ t _ { i } = k ] \big | = 1 \Big ] = \delta .
342
+ $$
343
+
344
+ Let $| { \cal K } | = { \cal K }$ . Define, for fixed $a \in [ m ]$ , and $k , s \in \mathcal { K }$ ,
345
+
346
+ $$
347
+ \begin{array} { r l } { A } & { \displaystyle : = \begin{array} { l } { \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { n } [ [ w _ { i j } = a ] [ [ t _ { i } = k ] ] [ Z _ { i j } = s ] , } \end{array} \quad \bar { A } = \frac { n r \pi _ { k i } } { m K } } \\ { B } & \displaystyle : = \begin{array} { l } { \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { n } [ [ w _ { i j } = a ] [ [ t _ { i } = k ] ] , \quad \quad \bar { B } : = \frac { n r } { m K } } \\ { \displaystyle C } \end{array} \end{array}
348
+ $$
349
+
350
+ Note that $A , B , C , D , E$ depend upon $a \in [ m ] , k , s \in \mathcal { K }$ . However, for ease of notations, we have not included the subscripts. We have,
351
+
352
+ $$
353
+ \begin{array} { r l r } { \left| \widehat { \pi } _ { k s } ^ { ( a ) } - \pi _ { k s } ^ { ( a ) } \right| = \frac { A - B \pi _ { k s } } { B } } & { = } & { \frac { \left| \left( A - \bar { A } \right) - \left( B - \bar { B } \right) \pi _ { k s } \right| } { \left| \bar { B } + \left( B - \bar { B } \right) \right| } } \\ & { \leq } & { \frac { \left| A - \bar { A } \right| + \left| \left( B - \bar { B } \right) \right| \pi _ { k s } } { \left| \bar { B } \right| - \left| B - \bar { B } \right| } } \end{array}
354
+ $$
355
+
356
+ Now, we have,
357
+
358
+ $$
359
+ \begin{array} { l r c l } { { | A - \bar { A } | } } & { { \le } } & { { | A - D | + | D - \bar { A } | } } \\ { { } } & { { \le } } & { { C + | D - \bar { A } | . } } \end{array}
360
+ $$
361
+
362
+ We have,
363
+
364
+ $$
365
+ \begin{array} { l l l } { | B - \bar { B } | } & { \leq } & { | B - E | \ + \ | E - \bar { B } | } \\ & { \leq } & { C + \ | E - \bar { B } | } \end{array}
366
+ $$
367
+
368
+ Observe that $C$ is a sum of $n r$ i.i.d. Bernoulli random variables with mean $\delta / m$ . Using Chernoff bound we get that
369
+
370
+ $$
371
+ C ~ \leq ~ \frac { n r \delta } { m } + \sqrt { \frac { 3 n r \delta \log ( 2 m K / \delta _ { 1 } ) } { m } } ,
372
+ $$
373
+
374
+ for all $a \in [ m ]$ , and $k \in \mathcal { K }$ with probability at least $1 - \delta _ { 1 }$ . Similarly, $D$ is a sum of $n r$ i.i.d. Bernoulli random variables with mean $\pi _ { k s } / ( m k )$ . Again, using Chernoff bound we get that
375
+
376
+ $$
377
+ \begin{array} { r l r } { \left| D - \bar { A } \right| } & { \leq } & { \sqrt { \frac { 3 n r \pi _ { k s } \log ( 2 m K ^ { 2 } / \delta _ { 1 } ) } { m K } } , } \end{array}
378
+ $$
379
+
380
+ for all $a \in [ m ] , k , s \in \mathcal { K }$ with probability at least $1 - \delta _ { 1 }$ . From the bound on $| D - { \bar { A } } |$ , it follows that
381
+
382
+ $$
383
+ | E - \bar { B } | \leq \sqrt { \frac { 3 n r \log ( 2 m K ^ { 2 } / \delta _ { 1 } ) } { m } }
384
+ $$
385
+
386
+ Collecting Equations (33)-(38), we have for all $a \in [ m ] , k , s \in \mathcal { K }$
387
+
388
+ $$
389
+ \left| { \widehat \pi } _ { k s } ^ { ( a ) } - \pi _ { k s } ^ { ( a ) } \right| ~ \leq ~ { \frac { 2 \delta + 1 6 \sqrt { m \log ( 2 m K ^ { 2 } \delta _ { 1 } / ( n r ) } } { 1 / K - \delta - 8 \sqrt { m \log ( 2 m K ^ { 2 } / \delta _ { 1 } ) / ( n r ) } } } ,
390
+ $$
391
+
392
+ with probability at least $1 - 2 \delta _ { 1 }$ .
parse/train/H1sUHgb0Z/H1sUHgb0Z_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1sUHgb0Z/H1sUHgb0Z_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1sUHgb0Z/H1sUHgb0Z_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxNAnVtDS/HJxNAnVtDS.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxNAnVtDS/HJxNAnVtDS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxNAnVtDS/HJxNAnVtDS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxNAnVtDS/HJxNAnVtDS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hkc-TeZ0W/Hkc-TeZ0W.md ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A HIERARCHICAL MODEL FOR DEVICE PLACEMENT
2
+
3
+ Azalia Mirhoseini\*, Anna Goldie∗, Hieu Pham, Benoit Steiner, Quoc V. Le and Jeff Dean {azalia,agoldie,hyhieu,bsteiner,qvl,jeff}@google.com
4
+
5
+ # ABSTRACT
6
+
7
+ We introduce a hierarchical model for efficient placement of computational graphs onto hardware devices, especially in heterogeneous environments with a mixture of CPUs, GPUs, and other computational devices. Our method learns to assign graph operations to groups and to allocate those groups to available devices. The grouping and device allocations are learned jointly. The proposed method is trained with policy gradient and requires no human intervention. Experiments with widely-used computer vision and natural language models show that our algorithm can find optimized, non-trivial placements for TensorFlow computational graphs with over 80,000 operations. In addition, our approach outperforms placements by human experts as well as a previous state-of-the-art placement method based on deep reinforcement learning. Our method achieves runtime reductions of up to $6 0 . 6 \%$ per training step when applied to models such as Neural Machine Translation.
8
+
9
+ # 1 INTRODUCTION & RELATED WORK
10
+
11
+ Deep neural networks have been successfully applied to many practical problems, such as image classification (LeCun et al., 1998; Krizhevsky et al., 2012; Taigman et al., 2014; Szegedy et al., 2015), speech recognition (Hinton et al., 2012; Hannun et al., 2014), and machine translation (Sutskever et al., 2014; Bahdanau et al., 2015; Wu et al., 2016b). These successes have lead to a surge in demand for the computational resources needed to train and infer with neural networks. A common approach to addressing this demand is to use a distributed environment with a combination of CPUs and GPUs. In this environment, it is typical for a machine learning practitioner to explicitly place the operations of their neural network onto particular computing devices for model parallelism and data parallelism. For example, one might distribute the computation of the first layer in a translation network onto the first GPU and the computation of the second layer onto the second GPU (Sutskever et al., 2014; Wu et al., 2016b). Although these decisions can be made by a human practitioner, such an approach does not scale well or produce optimal results, especially in the case of more complicated networks (Szegedy et al., 2016b;a). Given the growing diversity of hardware devices (e.g., Google TPUs, Intel Nervana, etc.) and recent trends toward automated neural architecture search (Zoph & Le, 2017; Real et al., 2017; Baker et al., 2016), where new models are generated, trained and evaluated in an entirely end-to-end fashion, it seems natural to move toward more automated solutions for efficiently distributing computation.
12
+
13
+ Device placement can be framed as the problem of learning to partition a graph across available devices. Given that graph partitioning is a well-studied subject in computer science (Fiduccia & Mattheyses, 1988; Karypis & Kumar, 1995b; Pellegrini, 2009b), traditional graph partitioning methods represent a natural baseline for automated device placement. We ran experiments using Scotch (Pellegrini, 2009b), a well-established open source library for graph partitioning, which includes optimizations such as k-way Fiduccia-Mattheyses (Fiduccia & Mattheyses, 1988), Multilevel methods (Barnard & Simon, 1994; Hendrickson & Leland, 1993; Karypis & Kumar, 1995a), the Band Method (Chevalier & Pellegrini, 2006), the Diffusion Method (Pellegrini, 2007), and Dual Recursive Bipartitioning Mapping (Pellegrini & Roman, 1996). The objective was to balance the computational load across a set of connected processing nodes, while colocating neighboring nodes to minimize communication cost. Despite its promise, this approach yielded disappointing results, likely due to the non-stationarity of the cost function. We target a distributed environment where we use a shared cluster of CPUs and GPUs, and our CPUs may also serve other jobs at the same time. Thus, while cost-based models such as (Matthias Boehm & Tian, 2014) provide a strong baseline for memory optimizations, since memory usage is deterministic, they cannot be directly applied to environments with dynamic costs.
14
+
15
+ Using deep networks and reinforcement learning for combinatorial optimization has already been proposed (Vinyals et al., 2015; Bello et al., 2016; Mirhoseini et al., 2017). Recent work (Mirhoseini et al., 2017) uses a recurrent neural network (RNN) policy network to predict the placement of operations in a computational graph, optimizing for speed of computation using policy gradient methods. While this approach outperforms traditional graph partitioning heuristics and human expert placements, it is prohibitively expensive for the RNN policy to learn when the number of operations is large. This method is therefore limited to small graphs (with fewer than 1000 nodes) and requires human experts to manually partition the graph into collocation groups as a pre-processing step in order to scale to larger graphs. We refer to the method in (Mirhoseini et al., 2017) as ColocRL.
16
+
17
+ In this paper, we propose a more flexible approach which learns to optimize device placement for training neural networks that have tens of thousands of operations with no need for manual grouping. Our method consists of a two-level hierarchical network, in which the first model groups the operations of the graph (the Grouper) and the second model places those groups onto devices (the Placer). The Grouper is a feed forward network which reads in information about each operation and its context within the graph, in order to predict the group to which that operation should be assigned. The Placer is a sequence-to-sequence model (Sutskever et al., 2014) that reads in the embedding of the group and predicts the device placement for that group. The entire two-level network is trained jointly using reinforcement learning to optimize for speed of computation and for feasibility (e.g., having sufficient memory available on each device for the computation assigned). Unlike the previous work, our method is end-to-end and does not require human experts to manually group operations as a pre-processing step, making it a fully automated solution to optimizing device placement.
18
+
19
+ Our main result is that our model effectively handles very large graphs and finds non-trivial placements on multiple devices for models such as Inception-V3 (Szegedy et al., 2016b), ResNet (He et al., 2016), Language Modeling (Jozefowicz et al., 2016), and Neural Machine Translation (Wu et al., 2016b). The placements found by our model outperform TensorFlow’s default placements (Abadi et al., 2016), the Scotch algorithm’s placements, and human expert placements, as well as those of ColocRL (Mirhoseini et al., 2017). Our results demonstrate that the proposed approach learns the properties of the environment, including the complex tradeoff between computation and communication in hardware. For example, on a Neural Machine Translation model, our method achieves a $6 0 . 6 \%$ reduction in training time per iteration.
20
+
21
+ # 2 METHOD
22
+
23
+ An overview of our hierarchical model for device placement is shown in Figure 1. Our model consists of two sub-networks: A Grouper that assigns operations to groups and a Placer that assigns groups to target devices. The two models are trained jointly.
24
+
25
+ The objective of the proposed approach, which we refer to as the Hierarchical Planner, is to predict a placement that speeds up the training of neural network graphs. The runtime we are optimizing for is the time taken to conduct one forward pass, one back-propagation pass, and one parameter update on the target neural network. To measure the runtime, the predicted placement is run on actual hardware. Since the reward (runtime) in this problem is non-differentiable, we use policy gradients to train the Hierarchical Planner. Moreover, the policy gradients flow through to train both the feed forward Grouper and the recurrent Placer.
26
+
27
+ The Grouper assigns each operation to a group. Once all the operations are grouped, we use information about each member operation to generate an embedding for that group. We then pass these embeddings as input to the Placer, which computes device placements for each group. The Placer assigns zero or more groups to each available device. The final placement is determined by placing each operation on the device that its group was assigned to.
28
+
29
+ In our implementation, the Grouper is a feed forward model followed by a softmax layer with an output size equal to the number of groups. The Placer is a sequence-to-sequence model (Sutskever et al., 2014) with Long Short-Term Memory (Hochreiter & Schmidhuber, 1997) and a content-based attention mechanism (Bahdanau et al., 2015) to predict the placements.
30
+
31
+ ![](images/c56fddd4bd4622ffa38b903a4d0ab98f0a71a48323668391d2d32def81c9d41c.jpg)
32
+ Figure 1: Hierarchical model for device placement (see text for more details).
33
+
34
+ We first generate operation embeddings to pass as input to the Grouper. Each operation embedding consists of 3 vectors: 1) A vector that embeds operation type information (e.g., MatMul, Conv2d, Sum, etc.). We treat this as a language modeling task and learn an operation type embedding of size 20 with a vocabulary of the 200 most commonly used TF operations. 2) A vector that contains output sizes and number of outputs for each operation. We limit the number of output edges to 6 and the size of each of these outputs to 4 elements. We populate this vector by reading the outputs of an operation one by one and inserting the output operations shapes. We pad the vector with -1 if we have fewer outgoing edges or smaller sizes. 3) A vector that contains adjacency information for that operation. We index the graph by traversing it in a BFS manner and set the maximum number of incoming and outgoing edges to 12 (6 for each direction). We then fill the vector with the index of the incoming and outgoing operations. We pad the vector with -1, in cases where the number of incoming or outgoing edges is less than 6.
35
+
36
+ To generate input for the Placer, we take each group and create its group embedding by concatenating 3 vectors: 1) A vector containing the count of each operation type in the group. 2) A vector that counts the total number of output shapes of all the operations in that group. This vector is created by concatenating all the operation output shape embeddings described above (not including the -1) and is of size 16. 3) A vector that contains group adjacency information. The size of this vector is the number of groups (256 in our experiments), and its i-th value is 1 if the group has edges to the i-th group and 0 otherwise.
37
+
38
+ The Placer’s RNN encoder reads the group embeddings one at a time and produces $M$ hidden states. We treat $M$ , which is equal to the number of groups, as a hyperparameter. The Placer’s decoder RNN predicts one device per time step. The devices are returned in the same order as the input group embeddings, i.e., the operations in the first group will be placed on the device returned by the first decoder step, and so on. Each device has its own trainable embedding, which is then fed as input to the next decoder time step.
39
+
40
+ At each step $t$ (where $1 \leq t \leq M )$ ), the decoder uses an attention mechanism to attend over the encoder states. We use the attention mechanism from Vinyals et al. (2015). At training time, the decoder samples one device $d _ { t }$ per step from the Placer’s softmax. To make the activations $l _ { t }$ less steep and to allow the model to explore, we follow Bello et al. (2016) and use a temperature $T$ and apply a tanh constant $C$ to $l _ { t }$ . Thus, we sample $d _ { t }$ as follows:
41
+
42
+ $$
43
+ d _ { t } \sim \operatorname { s o f t m a x } ( C \operatorname { t a n h } \left( l _ { t } / T \right) )
44
+ $$
45
+
46
+ The placement decisions are then used to place the model. In the following section, we describe a policy gradient method to train the Hierarchical Planner, such that it improves its decisions over time.
47
+
48
+ Training with REINFORCE: The planner optimizes the training time for a target model (e.g., a TensorFlow graph) given the decisions made by the Grouper and the Placer. Let $r _ { d }$ be the runtime
49
+
50
+ per training step for a predicted device placement $d$ . We define the reward for placement $d$ as $R _ { d } = - s q r t ( r )$ . The planner should try to maximize the expectation of $R _ { d }$ given its decisions. As such, the cost function we are optimizing for is:
51
+
52
+ $$
53
+ J ( \theta _ { g } , \theta _ { d } ) = \mathbf { E _ { P ( d ; \theta _ { \mathbf { g } } , \theta _ { \mathbf { d } } ) } } [ R _ { d } ] = \sum _ { g \sim \pi _ { g } } \sum _ { d \sim \pi _ { d } } p ( g ; \theta _ { g } ) p ( d | g ; \theta _ { d } ) R _ { d }
54
+ $$
55
+
56
+ Let $\theta _ { g }$ and $\theta _ { d }$ be parameters of the Grouper and Placer, respectively. Here, $p ( g ; \theta _ { g } )$ is the probability of a sample group assignment $g$ drawn from the Grouper softmax distribution $\sim \pi _ { g }$ and $p ( d ; \theta _ { d } )$ is the probability of a sample device placement $d$ drawn from the Placer softmax distribution $\sim \pi d$ . We can write the derivative of the cost function defined in Eq. 2 w.r.t. $\theta _ { g }$ and $\theta _ { d }$ as follows:
57
+
58
+ $$
59
+ \begin{array} { l } { { \displaystyle \nabla _ { \theta g } J ( \theta _ { g } , \theta _ { d } ) = \sum _ { g \sim \pi _ { g } } \nabla _ { \theta g } p ( g ; \theta _ { g } ) \sum _ { d \sim \pi _ { d } } p ( d | g ; \theta _ { d } ) R _ { d } } } \\ { { \displaystyle \approx \frac { 1 } { m } \sum _ { g _ { i } \sim \pi _ { g } } ^ { 1 \le i \le m } \nabla _ { \theta g } \log p ( g _ { i } ; \theta _ { g } ) . \frac { 1 } { k } ( \sum _ { d _ { j } \sim \pi _ { d } } ^ { 1 \le j \le k } R _ { d _ { j } } ) } } \end{array}
60
+ $$
61
+
62
+ $$
63
+ \begin{array} { l l } { { \displaystyle \nabla _ { \theta d } J ( \theta _ { g } , \theta _ { d } ) = \sum _ { d \sim \pi _ { d } } \sum _ { g \sim \pi _ { g } } p ( g ; \theta _ { g } ) \nabla _ { \theta d } p ( d | g ; \theta _ { d } ) R _ { d } } } \\ { { \displaystyle \approx \frac { 1 } { k } \sum _ { d _ { j } \sim \pi _ { d } } ^ { 1 \le j \le k } \frac { 1 } { m } ( \sum _ { g _ { i } \sim \pi _ { g } } ^ { 1 \le i \le m } \nabla _ { \theta d } \log p ( d _ { j } | g _ { i } ; \theta _ { d } ) R _ { d _ { j } } ) } } \end{array}
64
+ $$
65
+
66
+ Deriving Eqs. 3 and 5 from the cost function is straightforward. We use the REINFORCE rule (Williams, 1992) and approximate expectation values with samples $g _ { i }$ and $d _ { j }$ drawn from the Grouper and Placer to arrive at Eqs. 4 and 6.
67
+
68
+ In our implementation, the Grouper makes independent predictions when assigning operations to groups. The Placer, however, conditions the placement of groups on those that have already been placed. To reduce the variance, we also subtract a baseline $B$ from $R$ . In our experiments, we found that the exponential moving average of the reward was an effective baseline.
69
+
70
+ Distributed Training: Our policy is trained in a distributed manner. Our framework has a parameter server that is shared among several controllers. All controllers use the same set of parameters and update the policy asynchronously. Each controller communicates with $k$ worker nodes, where $k$ is as shown in Eqs. 4 and 6. Each worker interacts with only one controller.
71
+
72
+ Each worker executes the placement given by its controller and reports the runtime. In our experiments, we use 4 controllers and 16 workers (4 per controller). For example, if we are optimizing a placement on 2 GPUs, each worker needs 2 GPUs to measure runtime. Each controller is hosted on a single GPU. Therefore, we use a total of 36 GPUs for this example. The workers run the placements in parallel. Once all workers have finished running the placements, the controller computes the gradients using the measured runtimes. To reduce the variance of runtime measurements across workers (different machines), each controller maintains a separate baseline. While we get our best results by using many workers, we show in Section 3 that it is possible to train the policy and achieve comparable results with far fewer resources.
73
+
74
+ # 3 EXPERIMENTS
75
+
76
+ In this section, we apply Hierarchical Planner to widely used machine learning models in computer vision and natural language processing. We compare our results to heuristic and RL-based graph optimization baselines and demonstrate our approach’s ability to find performant placements. We also compare our method with two simpler alternatives: 1). no grouping (a feed forward model that directly places each operation) and 2). random grouping (a random Grouper feeding into a learned Placer), to demonstrate that our hierarchical architecture allows us to learn better placements.
77
+
78
+ Models: We evaluate our approach on four widely used deep neural networks:
79
+
80
+ • Inception-V3 (Szegedy et al., 2016b) is a model used for a variety of computer vision tasks, including classification, recognition, or generation (Khetan & Oh, 2016; Esteva et al., 2016). The network consists of multiple blocks, each of which is made up of several convolutional and pooling layers. Within a block, the layers can be executed in parallel. However, since the outputs of each block are concatenated together to form the input to the next block, the blocks must be executed sequentially. We use a batch size of 1. The TensorFlow graph encoding this model contains 24,713 operations.
81
+
82
+ • ResNet (He et al., 2016) is a popular model for image classification. It is a deep convolutional network that uses residual connections to avoid the vanishing gradient problem. We use batch size 128. The TensorFlow implementation of this model has 20,586 operations.
83
+
84
+ • RNNLM (Zaremba et al., 2014; Jozefowicz et al., 2016) Recurrent Neural Network Language Model is made of many LSTM cells organized in a grid structure. The processing of each LSTM cell only depends on the results of 2 other cells, which make the concurrent execution of many LSTM cells possible given enough hardware resources. We use batch size 64. The corresponding TensorFlow graph contains 9,021 operations.
85
+
86
+ • NMT (Bahdanau et al., 2015; Wu et al., 2016a) Neural Machine Translation with attention mechanism has an architecture similar to that of RNNLM, but its many hidden states make it far more computationally expensive. To decrease the training time, both Sutskever et al. (2014) and Wu et al. (2016a) propose placing each LSTM layer, as well as the attention and the softmax layer, on a separate device. While this strategy results in meaningful speed improvements, we show that our Hierarchical Planner can find significantly better placements. We use batch size 64. We evaluated 3 versions of the NMT model:
87
+
88
+ – The original 2-layer encoder-decoder consisting of 28,044 operations.
89
+ – An extended 4-layer version consisting of 46,600 operations.
90
+ – An even larger 8-layer version consisting of 83,712 operations.
91
+
92
+ For a fair comparison to previous state-of-the-art deep RL methods (Mirhoseini et al., 2017), we use the same model architectures (Inception-V3, RNNLM, and 2-Layer NMT models), hyperparameters and input data. In addition, we evaluate our model on a 152-layer ResNet (He et al., 2016) with ImageNet data (Deng et al., 2009), as well as more complex NMT models with 4 and 8 layers.
93
+
94
+ Baselines: We compare the placements found by our approach to the following baselines:
95
+
96
+ • CPU Only. Here, we execute the model on a single CPU. While this is generally slow, we find that some large models are very hard to fit on GPUs, given their memory limitations, leaving a CPU-only placement as the only naive option.
97
+ • GPU Only. In cases where it is possible to fit the entire model on a single GPU, this is a strong baseline as most graph operations run fastest on GPU and this placement incurs no cross-device communication cost. For operations that are not implemented on GPU, TensorFlow automatically places them on CPU.
98
+ Scotch. We use the Scotch static mapper (Pellegrini, 2009a) which takes as input the graph, the computational cost of each operation, the volume of data flowing through each edge, and the compute and communication capacities of the pertinent devices.
99
+ MinCut. We use the Scotch optimizer, but we only consider GPUs as our devices. The objective is to balance computation across all the available devices while minimizing interdevice communication.
100
+ Human Expert. We use hand-crafted placements from previous publications. For InceptionV3 (Szegedy et al., 2016b) and Resnet (He et al., 2016), where it is difficult to exploit model parallelism, human experts place the graph on a single GPU. For RNNLM and NMT, existing work (Sutskever et al., 2014; Wu et al., 2016a) places each LSTM layer on a separate GPU. For NMT, the attention and softmax layers are placed on the same device as the final LSTM layer, while the embedding layer is colocated with the first LSTM layer.
101
+ ColocRL. This method (Mirhoseini et al., 2017) uses policy gradient to train a recurrent neural network that reads in hand-crafted colocation groups and then places each group on a device.
102
+
103
+ Measuring Reward: Our reward is the negative square root of the runtime for one training step of the target TensorFlow model (lower runtimes are better). We assign a large negative reward of -10 to invalid placements (e.g., due to memory limitations). We define runtime as the time in seconds required to complete one training step of the target model (i.e. one forward pass, one back-propagation pass, and one parameter update). To reduce measurement variance, we run each predicted placement of the model for 10 steps. We discard the first 5 steps (to avoid warmup variations) and use the median value of the next 5 steps to calculate the reward. We found empirically that calculating the reward with square root yielded better placements than identity or logarithm. Note that by altering the reward, we can use our proposed method for optimizing other metrics, such as inference speed, throughput, and network congestion.
104
+
105
+ Devices and Software: Our experiments are run on machines with 1 Intel Haswell 2300 CPU and up to 8 Nvidia Tesla K40 GPUs. We use TensorFlow r1.3 to run our experiments.
106
+
107
+ Architecture of the Policy Network: In the Hierarchical Planner, the Grouper is a feed forward network with a hidden size of 64 and the Placer is a sequence-to-sequence (Sutskever et al., 2014) model with an LSTM hidden size of 256. For the encoder of the sequence-to-sequence model, we used two layers of LSTM to form a bi-LSTM similar to (Wu et al., 2016b). We used a uni-directional LSTM for the decoder. The Grouper’s softmax output size is equal to the number of groups, which we set to 256 in our experiments. We also experimented with a range of group sizes (64 to 1024), but got the best results with group size 256. The number of unrolled steps in the Placer is equal to the number of groups. The Placer’s softmax output size in both models is equal to the number of available hardware devices.
108
+
109
+ Training Details: We train both policies using Adam (Kingma & Ba, 2015) optimizer with a fixed learning rate of 0.1, gradient clipping of norm 1.0, tanh constant $C = 5 . 0$ , and temperature $T = 1 0 . 0$ The number of Grouper and Placer samples in Eqs. 4 and 6 are $m = 1$ and $k = 4$ , respectively.
110
+
111
+ To encourage more exploration, we added noise to the logits of both the Grouper and the Placer networks for the first 500 policy training steps. The noise was sampled from the normal distribution and modulated to have a max amplitude of 0.1.
112
+
113
+ Given that the vast majority of placements are invalid, especially for more complex models such as NMT, we update the policy only for valid placements after the first 500 steps. By updating the baseline and the policy only for samples that give valid placements, we prevent the policy from converging to the reward associated with invalid placements.
114
+
115
+ <table><tr><td>Tasks</td><td>CPU Only</td><td>GPU Only</td><td>#GPUs</td><td>Human Expert</td><td>Scotch</td><td>MinCut</td><td>Hierarchical Planner</td><td>Runtime Reduction</td></tr><tr><td>Inception-V3</td><td>0.61</td><td>0.15</td><td>2</td><td>0.15</td><td>0.93</td><td>0.82</td><td>0.13</td><td>16.3%</td></tr><tr><td>ResNet</td><td>-</td><td>1.18</td><td>2</td><td>1.18</td><td>6.27</td><td>2.92</td><td>1.18</td><td>0%</td></tr><tr><td>RNNLM</td><td>6.89</td><td>1.57</td><td>2</td><td>1.57</td><td>5.62</td><td>5.21</td><td>1.57</td><td>0%</td></tr><tr><td>NMT (2-layer)</td><td>6.46</td><td>0OM</td><td>2</td><td>2.13</td><td>3.21</td><td>5.34</td><td>0.84</td><td>60.6%</td></tr><tr><td>NMT (4-layer)</td><td>10.68</td><td>0OM</td><td>4</td><td>3.64</td><td>11.18</td><td>11.63</td><td>1.69</td><td>53.7%</td></tr><tr><td>NMT (8-layer)</td><td>11.52</td><td>OOM</td><td>8</td><td>3.88</td><td>17.85</td><td>19.01</td><td>4.07</td><td>-4.9%</td></tr></table>
116
+
117
+ Table 1: Model Runtimes (seconds) for different placements (lower is better). OOM: Out Of Memory.
118
+
119
+ Results Compared with Graph Partitioning Heuristics: In Table 1, we report the performance of the Hierarchical Planner and compare it to the aforementioned baselines. The only information available to our models is the TensorFlow graph and a list of devices. The reduction percentages are computed by taking the difference between the runtime achieved by the Hierarchical Planner and that of the best prior placement, and then dividing it by that best prior runtime.
120
+
121
+ For ResNet and RNNLM, our model learns that it is more efficient to use a single GPU, as this minimizes communication cost. For Inception-V3, the Hierarchical Planner learns to distribute the model across 2 GPUs, achieving a $1 6 . 3 \%$ reduction in runtime over placing the model on a single GPU.
122
+
123
+ ![](images/05c5e6e0ca836f2165ff98aa796f2ac741410c430f98974eb75d5f834387925f.jpg)
124
+ Figure 2: The Hierarchical Planner’s placement of a NMT (4-layer) model. White denotes CPU and the four colors each represent one of the GPUs. Note that every step of every layer is allocated across multiple GPUs. This placement is $5 3 . 7 \%$ faster than that generated by a human expert.
125
+
126
+ For NMT with 2, 4, and 8 layers, we ran experiments with 2, 4, and 8 GPUs, respectively. We outperform the best prior results by $6 0 . 6 \%$ for NMT (2-layer) and $5 3 . 7 \%$ for NMT (4-layer). For further insight into the model’s behavior, we visualize its placement for NMT (4-layer) in Figure 2.
127
+
128
+ For NMT (8-layer), the Hierarchical Planner finds a placement that is $4 . 9 \%$ slower than that of human experts. Even in this one case where the method slightly underperforms, it is still useful to have an automated method of finding placements that are comparable to those of human experts.
129
+
130
+ Results associated with both Scotch and MinCut were significantly worse than human expert baselines, which is consistent with results reported in (Mirhoseini et al., 2017).
131
+
132
+ Results Compared with ColocRL: A fair comparison with ColocRL would require us to run the models using exactly the same software (TensorFlow version) and hardware (CPU and GPU types). Although our runtimes are considerably faster, they are not directly comparable to those reported in (Mirhoseini et al., 2017), because we ran with different GPU types (the slower $\mathbf { k } 4 0$ for us vs. their $\mathbf { k } 8 0$ ) and TensorFlow versions (our r1.3 vs. their unspecified but presumably earlier version). We will discuss the relative improvements achieved by our approach.
133
+
134
+ For NMT (2-layer), our improvement over best heuristics is $6 0 . 6 \%$ , compared to $1 9 . 0 \%$ for ColocRL. For NMT (4-layer) and NMT (8-layer), no results were reported for ColocRL, which we suspect is due to the model being unable to handle the large number of operations in these graphs.
135
+
136
+ Unlike our method, ColocRL makes the strong assumption that certain operations must be colocated. Figure 2 shows the high granularity of the Hierarchical Planner’s placements, a degree of parallelism that would be infeasible for prior methods. For example, the Hierarchical Planner places each step of an unrolled LSTM layer across multiple GPUs, whereas ColocRL colocates all operations in a step.
137
+
138
+ Analysis: Here, we want to understand and analyze the placements generated by the RL model. In Figure 2, we show a portion of the placement found by the Hierarchical Planner for NMT (4-layer). With this placement, the runtime per training iteration is $5 3 . 7 \%$ faster than that of a hand-crafted placement. As shown by the figure, the generated placement is non-trivial and highly parallelized. In particular, all of the unrolled steps of the LSTM, attention, and softmax layers are distributed across multiple GPUs. Note that it is impossible for an approach like ColocRL (Mirhoseini et al., 2017) to find such a placement, as this method forces all operations within an unrolled LSTM step to be placed on the same device. Our method also learns to place the sparse embedding lookup operations on CPU. In this placement, the policy search space is incredibly large, i.e., $5 ^ { 4 6 , 6 0 \breve { 0 } }$ (5 devices and 46,600 operations). The automated placement enabled by jointly learned grouping not only outperforms previous methods, but unlike ColocRL, it is deployable with no human effort (e.g. manual grouping).
139
+
140
+ In our experiments, we set the number of groups to 256. While training the policy, we observed that initially the operations are assigned nearly uniformly across all the 256 groups, but that the Grouper ultimately converges to using only a small subset of groups across all models. This suggests that the feed forward Grouper has learned to partition the computational graph such that operations that should be placed on the same device are grouped together.
141
+
142
+ We cast the device placement problem as a sequential decision-making task. Since there is no canonical order for a TensorFlow graph, we randomized the order of the groups that we fed into the the Placer, with the Placer’s bi-LSTM architecture enabling it to look at a graph more holistically. We ran 10 experiments on our NMT (4-layer) baseline, shuffling the order of group embeddings passed to the Placer. The difference between the fastest and slowest placements was less than $7 \%$ .
143
+
144
+ Overhead of Training Hierarchical Planner: For each of the models, we train a new policy which learns to optimize placements for that particular model. All results for the Hierarchical Planner are after 1000 iterations of updating the policy. In practice, this takes at most three hours for our largest benchmark. The runtime per policy update is dominated by the time it takes to measure the reward for a sampled placement. To calculate the reward, we run the target model according to the predicted placement for 5 training steps and use the median runtime. The policy itself is a lightweight network that is trained on a single GPU. For measuring the reward, however, we use actual runtime measurements for the given placements. Measuring runtime is done by worker nodes. For example, if we are optimizing a model placement on 5 devices (1 CPU and 4 GPUs), we need at least one worker with that many devices that can run the input model for the predicted placements and report the runtime.
145
+
146
+ As described in Section 2, we used 16 workers to train our policy. However, in this section, we will show that we can generate good results even in limited hardware settings. We consider training the policy to optimize placement of our 4-layer NMT benchmark model on 5 devices (1 Intel Haswell 2300 and 4 Nvidia Tesla K40s). The goal is to show that the policy can be trained efficiently even when we have only one worker. Figure 3 demonstrates the policy loss reduction as a function of policy training time, in 2 different scenarios where we have access to 1 and 4 workers. The policy is hosted on a single K40 GPU which sends 1 placement at a time to the worker(s) and applies a gradient step for each reward collected from worker(s). While, more workers can reduce the policy training time, as seen in Figure 3, we still get reasonable training times with only one worker. In this case, it takes less than 2.5 hours for the policy to achieve a placement with training step time of 1.94 seconds.
147
+
148
+ Given that we train NMT models for hundreds of thousands of steps, the overhead of policy optimization is more than justified. For example, to train WMT’14 En->Fr dataset which has more than 36 million examples for one epoch (with batch-size ${ \boldsymbol { \mathsf { \Omega } } } { = } 6 4$ ), we need to run the NMT model for approximately 562500 steps. Since we reduce the runtime per step by approximately $4 6 . 7 \%$ (from 3.64 to 1.94 seconds), this saves us 265 GPU-hours, which is a significant savings even if we consider the 12.5 GPU-hours we spent on training the policy on a single worker.
149
+
150
+ ![](images/9c472e8d083086362413a9ab80ff21df602bae192aaf8cc1f5ac6235b098704f.jpg)
151
+ Figure 3: Training the policy with 1 and 4 workers to measure the reward. Each worker is a platform with 1 Intel Haswell 2300 and 4 Nvidia Tesla K40s.
152
+
153
+ For simplicity, we first train the Hierarchical Planner and then use its best placement to train the target model. For greater efficiency, however, we could interleave the training of the Hierarchical Planner with the training of the target model, using the runtime of actual training steps as our reward signal.
154
+
155
+ Alternative Policy Architectures: We compared the Hierarchical Planner against two alternative policy architectures described below.
156
+
157
+ The first alternative we considered was a simpler model consisting of a single feed forward network. This model, which we refer to as the Simple Planner, independently predicts the placement for each operation in the input model, given information about that operation and its connectivity to others. This is equivalent to having only a feed forward Grouper which predicts placements rather than groups (i.e. the number of groups is equal to number of available devices).
158
+
159
+ The Simple Planner finds placements for Inception-V3 that are within $20 \%$ of the Hierarchical Planner, and it successfully learns to place RNNLM and ResNet benchmarks on a single GPU. Its learned placement for NMT (2-layer), however, is more than twice as slow as that of the Hierarchical Planner. The Simple Planner also fails to find any valid placements for larger benchmarks, such as NMT with 4 or 8 layers. The Hierarchical Planner which breaks the problem into grouping and placing sub-tasks is able to scale to much larger models. The Hierarchical Planner’s sequence-to-sequence model also enables conditioning placement of an operation on those previously placed.
160
+
161
+ Another architecture we considered was a Hierarchical Planner with randomized grouping. To verify that the Grouper was contributing meaningfully to the performance of the Hierarchical Planner, we compared its performance to a baseline where we fed randomized groupings into the Placer. We ran this experiment with 10 different randomized group assignments for 1000 iterations. As can be seen in Table 2, there is significant variance across different trials and the best result is worse than that of the Hierarchical Planner. This suggests that end-to-end learning of grouping operations and placing groups does indeed improve the performance.
162
+
163
+ <table><tr><td>Benchmark</td><td>Best</td><td>Median</td><td>Worst</td><td>Improvement with Hierarchical Planner</td></tr><tr><td>Inception-V3</td><td>0.22</td><td>0.51</td><td>0.65</td><td>40.9%</td></tr><tr><td>ResNet</td><td>1.18</td><td>1.18</td><td>1.18</td><td>0%</td></tr><tr><td>RNNLM</td><td>1.57</td><td>1.57</td><td>1.57</td><td>0%</td></tr><tr><td>NMT (2-layer)</td><td>2.25</td><td>3.72</td><td>4.45</td><td>62.7%</td></tr><tr><td>NMT (4-layer)</td><td>3.20</td><td>3.42</td><td>6.91</td><td>47.2%</td></tr><tr><td>NMT (8-layer)</td><td>6.35</td><td>6.86</td><td>7.23</td><td>35.9%</td></tr></table>
164
+
165
+ Table 2: Best, median and worst runtimes for 10 trials each with a different randomized grouping of operations. These results demonstrate that the Hierarchical Planner, which uses learned groupings rather than random ones, is able to significantly reduce runtime.
166
+
167
+ # 4 CONCLUSION
168
+
169
+ In this paper, we present a hierarchical method for efficiently placing the operations of a computational graph onto devices. Our approach consists of a hierarchical model that first assigns the operations to groups and then places those groups onto devices. We use a policy gradient method to optimize the parameters of the planner. The proposed method enables us to scale to computational graphs containing over 80,000 operations. Unlike previous work, our method is end-to-end and requires no manual effort. On a range of tasks including image classification, language modeling, and machine translation, our method surpasses placements designed by human experts as well as those of previous state-of-the-art deep RL methods. Our approach finds highly granular parallelism within the graph, enabling us to outperform prior methods by up to $6 0 . 6 \%$ .
170
+
171
+ # REFERENCES
172
+
173
+ Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete
174
+
175
+ Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: A system for large-scale machine learning. In OSDI, 2016.
176
+
177
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
178
+
179
+ Bowen Baker, Otkrist Gupta, Nikhil Naik, and Ramesh Raskar. Designing neural network architectures using reinforcement learning. 2016. URL http://arxiv.org/abs/1611.02167.
180
+
181
+ S. T. Barnard and H. D. Simon. A fast multilevel implementation of recursive spectral bisection for partitioning unstructured problems. Concurrency: practice and Experience, 6(2):101–117, 1994.
182
+
183
+ Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. arXiv preprint arXiv:1611.09940, 2016.
184
+
185
+ C. Chevalier and F. Pellegrini. Improvement of the efficiency of genetic algorithms for scalable parallel graph partitioning in a multi-level framework. pp. 243—-252, September 2006.
186
+
187
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
188
+
189
+ Andre Esteva, Brett Kuprel, Rob Novoa, Justin Ko, Susan Swetter, Helen M. Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer. Nature, 2016.
190
+
191
+ Charles M Fiduccia and Robert M Mattheyses. A linear-time heuristic for improving network partitions. In Papers on Twenty-five years of electronic design automation, pp. 241–247. ACM, 1988.
192
+
193
+ Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro, Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh, Shubho Sengupta, Adam Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014.
194
+
195
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
196
+
197
+ B. Hendrickson and R. Leland. A multilevel algorithm for partitioning graphs. Technical Report SAND93–1301, Sandia National Laboratories, June 1993.
198
+
199
+ Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 2012.
200
+
201
+ Sepp Hochreiter and Juergen Schmidhuber. Long short-term memory. Neural Computation, 1997.
202
+
203
+ Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
204
+
205
+ G. Karypis and V. Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. Technical Report 95-035, University of Minnesota, June 1995a.
206
+
207
+ George Karypis and Vipin Kumar. Metis–unstructured graph partitioning and sparse matrix ordering system, version 2.0. 1995b.
208
+
209
+ Ashish Khetan and Sewoong Oh. Achieving budget-optimality with adaptive schemes in crowdsourcing. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4844–4852. Curran Associates, Inc., 2016.
210
+
211
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
212
+
213
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolu tional neural networks. In NIPS, 2012.
214
+
215
+ Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998.
216
+
217
+ Alexandre V. Evfimievski Berthold Reinwald Frederick R. Reiss Prithviraj Sen Shirish Tatikonda Matthias Boehm, Douglas R. Burdick and Yuanyuan Tian. Systemml’s optimizer: Plan generation for large-scale machine learning programs. IEEE Data Engineering Bulletin, 2014.
218
+
219
+ Azalia Mirhoseini, Hieu Pham, Quoc V. Le, Benoit Steiner, Mohammad Norouzi, Naveen Kumar, Rasmus Munk Larsen, Yuefeng Zhou, Samy Bengio, and Jeff Dean. Device placement optimization with reinforcement learning. In International Conference on Machine Learning, 2017.
220
+
221
+ F. Pellegrini. A parallelisable multi-level banded diffusion scheme for computing balanced partitions with smooth boundaries. pp. 191—-200, August 2007.
222
+
223
+ F. Pellegrini. Distillating knowledge about scotch. 2009a.
224
+
225
+ F. Pellegrini and J. Roman. Experimental analysis of the dual recursive bipartitioning algorithm for static mapping. Research Report, LaBRI, Universite Bordeaux I, August 1996.
226
+
227
+ François Pellegrini. Distillating knowledge about scotch. In Dagstuhl Seminar Proceedings. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2009b.
228
+
229
+ Esteban Real, Sherry Moore, Andrew Selle, Saurabh Saxena, Yutaka Leon Suematsu, Quoc Le, and Alex Kurakin. Large-scale evolution of image classifiers. 2017. URL https://arxiv.org/ abs/1703.01041.
230
+
231
+ Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In NIPS, 2014.
232
+
233
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015.
234
+
235
+ Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alex Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261, 2016a.
236
+
237
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016b.
238
+
239
+ Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1701–1708, 2014.
240
+
241
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, 2015.
242
+
243
+ Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Machine Learning, 1992.
244
+
245
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Łukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016a.
246
+
247
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016b.
248
+
249
+ Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
250
+
251
+ Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations, 2017.
parse/train/Hkc-TeZ0W/Hkc-TeZ0W_content_list.json ADDED
@@ -0,0 +1,1344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A HIERARCHICAL MODEL FOR DEVICE PLACEMENT ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 802,
10
+ 122
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Azalia Mirhoseini\\*, Anna Goldie∗, Hieu Pham, Benoit Steiner, Quoc V. Le and Jeff Dean {azalia,agoldie,hyhieu,bsteiner,qvl,jeff}@google.com ",
17
+ "bbox": [
18
+ 184,
19
+ 143,
20
+ 797,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We introduce a hierarchical model for efficient placement of computational graphs onto hardware devices, especially in heterogeneous environments with a mixture of CPUs, GPUs, and other computational devices. Our method learns to assign graph operations to groups and to allocate those groups to available devices. The grouping and device allocations are learned jointly. The proposed method is trained with policy gradient and requires no human intervention. Experiments with widely-used computer vision and natural language models show that our algorithm can find optimized, non-trivial placements for TensorFlow computational graphs with over 80,000 operations. In addition, our approach outperforms placements by human experts as well as a previous state-of-the-art placement method based on deep reinforcement learning. Our method achieves runtime reductions of up to $6 0 . 6 \\%$ per training step when applied to models such as Neural Machine Translation. ",
40
+ "bbox": [
41
+ 233,
42
+ 241,
43
+ 766,
44
+ 407
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION & RELATED WORK ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 433,
55
+ 500,
56
+ 449
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep neural networks have been successfully applied to many practical problems, such as image classification (LeCun et al., 1998; Krizhevsky et al., 2012; Taigman et al., 2014; Szegedy et al., 2015), speech recognition (Hinton et al., 2012; Hannun et al., 2014), and machine translation (Sutskever et al., 2014; Bahdanau et al., 2015; Wu et al., 2016b). These successes have lead to a surge in demand for the computational resources needed to train and infer with neural networks. A common approach to addressing this demand is to use a distributed environment with a combination of CPUs and GPUs. In this environment, it is typical for a machine learning practitioner to explicitly place the operations of their neural network onto particular computing devices for model parallelism and data parallelism. For example, one might distribute the computation of the first layer in a translation network onto the first GPU and the computation of the second layer onto the second GPU (Sutskever et al., 2014; Wu et al., 2016b). Although these decisions can be made by a human practitioner, such an approach does not scale well or produce optimal results, especially in the case of more complicated networks (Szegedy et al., 2016b;a). Given the growing diversity of hardware devices (e.g., Google TPUs, Intel Nervana, etc.) and recent trends toward automated neural architecture search (Zoph & Le, 2017; Real et al., 2017; Baker et al., 2016), where new models are generated, trained and evaluated in an entirely end-to-end fashion, it seems natural to move toward more automated solutions for efficiently distributing computation. ",
63
+ "bbox": [
64
+ 174,
65
+ 463,
66
+ 825,
67
+ 700
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Device placement can be framed as the problem of learning to partition a graph across available devices. Given that graph partitioning is a well-studied subject in computer science (Fiduccia & Mattheyses, 1988; Karypis & Kumar, 1995b; Pellegrini, 2009b), traditional graph partitioning methods represent a natural baseline for automated device placement. We ran experiments using Scotch (Pellegrini, 2009b), a well-established open source library for graph partitioning, which includes optimizations such as k-way Fiduccia-Mattheyses (Fiduccia & Mattheyses, 1988), Multilevel methods (Barnard & Simon, 1994; Hendrickson & Leland, 1993; Karypis & Kumar, 1995a), the Band Method (Chevalier & Pellegrini, 2006), the Diffusion Method (Pellegrini, 2007), and Dual Recursive Bipartitioning Mapping (Pellegrini & Roman, 1996). The objective was to balance the computational load across a set of connected processing nodes, while colocating neighboring nodes to minimize communication cost. Despite its promise, this approach yielded disappointing results, likely due to the non-stationarity of the cost function. We target a distributed environment where we use a shared cluster of CPUs and GPUs, and our CPUs may also serve other jobs at the same time. Thus, while cost-based models such as (Matthias Boehm & Tian, 2014) provide a strong baseline for memory optimizations, since memory usage is deterministic, they cannot be directly applied to environments with dynamic costs. ",
74
+ "bbox": [
75
+ 174,
76
+ 708,
77
+ 825,
78
+ 901
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 173,
87
+ 103,
88
+ 823,
89
+ 132
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Using deep networks and reinforcement learning for combinatorial optimization has already been proposed (Vinyals et al., 2015; Bello et al., 2016; Mirhoseini et al., 2017). Recent work (Mirhoseini et al., 2017) uses a recurrent neural network (RNN) policy network to predict the placement of operations in a computational graph, optimizing for speed of computation using policy gradient methods. While this approach outperforms traditional graph partitioning heuristics and human expert placements, it is prohibitively expensive for the RNN policy to learn when the number of operations is large. This method is therefore limited to small graphs (with fewer than 1000 nodes) and requires human experts to manually partition the graph into collocation groups as a pre-processing step in order to scale to larger graphs. We refer to the method in (Mirhoseini et al., 2017) as ColocRL. ",
96
+ "bbox": [
97
+ 174,
98
+ 138,
99
+ 825,
100
+ 263
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we propose a more flexible approach which learns to optimize device placement for training neural networks that have tens of thousands of operations with no need for manual grouping. Our method consists of a two-level hierarchical network, in which the first model groups the operations of the graph (the Grouper) and the second model places those groups onto devices (the Placer). The Grouper is a feed forward network which reads in information about each operation and its context within the graph, in order to predict the group to which that operation should be assigned. The Placer is a sequence-to-sequence model (Sutskever et al., 2014) that reads in the embedding of the group and predicts the device placement for that group. The entire two-level network is trained jointly using reinforcement learning to optimize for speed of computation and for feasibility (e.g., having sufficient memory available on each device for the computation assigned). Unlike the previous work, our method is end-to-end and does not require human experts to manually group operations as a pre-processing step, making it a fully automated solution to optimizing device placement. ",
107
+ "bbox": [
108
+ 174,
109
+ 271,
110
+ 825,
111
+ 438
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our main result is that our model effectively handles very large graphs and finds non-trivial placements on multiple devices for models such as Inception-V3 (Szegedy et al., 2016b), ResNet (He et al., 2016), Language Modeling (Jozefowicz et al., 2016), and Neural Machine Translation (Wu et al., 2016b). The placements found by our model outperform TensorFlow’s default placements (Abadi et al., 2016), the Scotch algorithm’s placements, and human expert placements, as well as those of ColocRL (Mirhoseini et al., 2017). Our results demonstrate that the proposed approach learns the properties of the environment, including the complex tradeoff between computation and communication in hardware. For example, on a Neural Machine Translation model, our method achieves a $6 0 . 6 \\%$ reduction in training time per iteration. ",
118
+ "bbox": [
119
+ 174,
120
+ 444,
121
+ 825,
122
+ 570
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 METHOD ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 599,
133
+ 281,
134
+ 616
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "An overview of our hierarchical model for device placement is shown in Figure 1. Our model consists of two sub-networks: A Grouper that assigns operations to groups and a Placer that assigns groups to target devices. The two models are trained jointly. ",
141
+ "bbox": [
142
+ 174,
143
+ 637,
144
+ 823,
145
+ 679
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "The objective of the proposed approach, which we refer to as the Hierarchical Planner, is to predict a placement that speeds up the training of neural network graphs. The runtime we are optimizing for is the time taken to conduct one forward pass, one back-propagation pass, and one parameter update on the target neural network. To measure the runtime, the predicted placement is run on actual hardware. Since the reward (runtime) in this problem is non-differentiable, we use policy gradients to train the Hierarchical Planner. Moreover, the policy gradients flow through to train both the feed forward Grouper and the recurrent Placer. ",
152
+ "bbox": [
153
+ 174,
154
+ 686,
155
+ 825,
156
+ 784
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "The Grouper assigns each operation to a group. Once all the operations are grouped, we use information about each member operation to generate an embedding for that group. We then pass these embeddings as input to the Placer, which computes device placements for each group. The Placer assigns zero or more groups to each available device. The final placement is determined by placing each operation on the device that its group was assigned to. ",
163
+ "bbox": [
164
+ 174,
165
+ 791,
166
+ 823,
167
+ 861
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "In our implementation, the Grouper is a feed forward model followed by a softmax layer with an output size equal to the number of groups. The Placer is a sequence-to-sequence model (Sutskever et al., 2014) with Long Short-Term Memory (Hochreiter & Schmidhuber, 1997) and a content-based attention mechanism (Bahdanau et al., 2015) to predict the placements. ",
174
+ "bbox": [
175
+ 174,
176
+ 867,
177
+ 823,
178
+ 924
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "image",
184
+ "img_path": "images/c56fddd4bd4622ffa38b903a4d0ab98f0a71a48323668391d2d32def81c9d41c.jpg",
185
+ "image_caption": [
186
+ "Figure 1: Hierarchical model for device placement (see text for more details). "
187
+ ],
188
+ "image_footnote": [],
189
+ "bbox": [
190
+ 174,
191
+ 99,
192
+ 823,
193
+ 335
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "We first generate operation embeddings to pass as input to the Grouper. Each operation embedding consists of 3 vectors: 1) A vector that embeds operation type information (e.g., MatMul, Conv2d, Sum, etc.). We treat this as a language modeling task and learn an operation type embedding of size 20 with a vocabulary of the 200 most commonly used TF operations. 2) A vector that contains output sizes and number of outputs for each operation. We limit the number of output edges to 6 and the size of each of these outputs to 4 elements. We populate this vector by reading the outputs of an operation one by one and inserting the output operations shapes. We pad the vector with -1 if we have fewer outgoing edges or smaller sizes. 3) A vector that contains adjacency information for that operation. We index the graph by traversing it in a BFS manner and set the maximum number of incoming and outgoing edges to 12 (6 for each direction). We then fill the vector with the index of the incoming and outgoing operations. We pad the vector with -1, in cases where the number of incoming or outgoing edges is less than 6. ",
200
+ "bbox": [
201
+ 173,
202
+ 383,
203
+ 825,
204
+ 550
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "To generate input for the Placer, we take each group and create its group embedding by concatenating 3 vectors: 1) A vector containing the count of each operation type in the group. 2) A vector that counts the total number of output shapes of all the operations in that group. This vector is created by concatenating all the operation output shape embeddings described above (not including the -1) and is of size 16. 3) A vector that contains group adjacency information. The size of this vector is the number of groups (256 in our experiments), and its i-th value is 1 if the group has edges to the i-th group and 0 otherwise. ",
211
+ "bbox": [
212
+ 173,
213
+ 558,
214
+ 825,
215
+ 655
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "The Placer’s RNN encoder reads the group embeddings one at a time and produces $M$ hidden states. We treat $M$ , which is equal to the number of groups, as a hyperparameter. The Placer’s decoder RNN predicts one device per time step. The devices are returned in the same order as the input group embeddings, i.e., the operations in the first group will be placed on the device returned by the first decoder step, and so on. Each device has its own trainable embedding, which is then fed as input to the next decoder time step. ",
222
+ "bbox": [
223
+ 174,
224
+ 661,
225
+ 825,
226
+ 746
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "At each step $t$ (where $1 \\leq t \\leq M )$ ), the decoder uses an attention mechanism to attend over the encoder states. We use the attention mechanism from Vinyals et al. (2015). At training time, the decoder samples one device $d _ { t }$ per step from the Placer’s softmax. To make the activations $l _ { t }$ less steep and to allow the model to explore, we follow Bello et al. (2016) and use a temperature $T$ and apply a tanh constant $C$ to $l _ { t }$ . Thus, we sample $d _ { t }$ as follows: ",
233
+ "bbox": [
234
+ 173,
235
+ 752,
236
+ 825,
237
+ 821
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "equation",
243
+ "img_path": "images/f7415bb4e73a530bdec96d04a55078f6fbcd4f0fff896e5002790b9d105816ea.jpg",
244
+ "text": "$$\nd _ { t } \\sim \\operatorname { s o f t m a x } ( C \\operatorname { t a n h } \\left( l _ { t } / T \\right) )\n$$",
245
+ "text_format": "latex",
246
+ "bbox": [
247
+ 398,
248
+ 825,
249
+ 598,
250
+ 842
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "The placement decisions are then used to place the model. In the following section, we describe a policy gradient method to train the Hierarchical Planner, such that it improves its decisions over time. ",
257
+ "bbox": [
258
+ 173,
259
+ 852,
260
+ 825,
261
+ 881
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Training with REINFORCE: The planner optimizes the training time for a target model (e.g., a TensorFlow graph) given the decisions made by the Grouper and the Placer. Let $r _ { d }$ be the runtime ",
268
+ "bbox": [
269
+ 173,
270
+ 895,
271
+ 825,
272
+ 924
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "per training step for a predicted device placement $d$ . We define the reward for placement $d$ as $R _ { d } = - s q r t ( r )$ . The planner should try to maximize the expectation of $R _ { d }$ given its decisions. As such, the cost function we are optimizing for is: ",
279
+ "bbox": [
280
+ 173,
281
+ 103,
282
+ 825,
283
+ 146
284
+ ],
285
+ "page_idx": 3
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "img_path": "images/cd42f458a2168c3ed1acdd4a44ac865216db917cc10b23cab3f86283680f0daf.jpg",
290
+ "text": "$$\nJ ( \\theta _ { g } , \\theta _ { d } ) = \\mathbf { E _ { P ( d ; \\theta _ { \\mathbf { g } } , \\theta _ { \\mathbf { d } } ) } } [ R _ { d } ] = \\sum _ { g \\sim \\pi _ { g } } \\sum _ { d \\sim \\pi _ { d } } p ( g ; \\theta _ { g } ) p ( d | g ; \\theta _ { d } ) R _ { d }\n$$",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 289,
294
+ 166,
295
+ 709,
296
+ 203
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "Let $\\theta _ { g }$ and $\\theta _ { d }$ be parameters of the Grouper and Placer, respectively. Here, $p ( g ; \\theta _ { g } )$ is the probability of a sample group assignment $g$ drawn from the Grouper softmax distribution $\\sim \\pi _ { g }$ and $p ( d ; \\theta _ { d } )$ is the probability of a sample device placement $d$ drawn from the Placer softmax distribution $\\sim \\pi d$ . We can write the derivative of the cost function defined in Eq. 2 w.r.t. $\\theta _ { g }$ and $\\theta _ { d }$ as follows: ",
303
+ "bbox": [
304
+ 173,
305
+ 213,
306
+ 825,
307
+ 270
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "equation",
313
+ "img_path": "images/43bd891bbb836352b3c46b1dae4a609b1a9b33b65c5666c66d4c6b9e8ef53f42.jpg",
314
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle \\nabla _ { \\theta g } J ( \\theta _ { g } , \\theta _ { d } ) = \\sum _ { g \\sim \\pi _ { g } } \\nabla _ { \\theta g } p ( g ; \\theta _ { g } ) \\sum _ { d \\sim \\pi _ { d } } p ( d | g ; \\theta _ { d } ) R _ { d } } } \\\\ { { \\displaystyle \\approx \\frac { 1 } { m } \\sum _ { g _ { i } \\sim \\pi _ { g } } ^ { 1 \\le i \\le m } \\nabla _ { \\theta g } \\log p ( g _ { i } ; \\theta _ { g } ) . \\frac { 1 } { k } ( \\sum _ { d _ { j } \\sim \\pi _ { d } } ^ { 1 \\le j \\le k } R _ { d _ { j } } ) } } \\end{array}\n$$",
315
+ "text_format": "latex",
316
+ "bbox": [
317
+ 300,
318
+ 289,
319
+ 699,
320
+ 375
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "equation",
326
+ "img_path": "images/b2a9142fe1a771f0dfb2c047d5a743165e5ed2ab999d4e7c8e685466de2b4b1c.jpg",
327
+ "text": "$$\n\\begin{array} { l l } { { \\displaystyle \\nabla _ { \\theta d } J ( \\theta _ { g } , \\theta _ { d } ) = \\sum _ { d \\sim \\pi _ { d } } \\sum _ { g \\sim \\pi _ { g } } p ( g ; \\theta _ { g } ) \\nabla _ { \\theta d } p ( d | g ; \\theta _ { d } ) R _ { d } } } \\\\ { { \\displaystyle \\approx \\frac { 1 } { k } \\sum _ { d _ { j } \\sim \\pi _ { d } } ^ { 1 \\le j \\le k } \\frac { 1 } { m } ( \\sum _ { g _ { i } \\sim \\pi _ { g } } ^ { 1 \\le i \\le m } \\nabla _ { \\theta d } \\log p ( d _ { j } | g _ { i } ; \\theta _ { d } ) R _ { d _ { j } } ) } } \\end{array}\n$$",
328
+ "text_format": "latex",
329
+ "bbox": [
330
+ 292,
331
+ 388,
332
+ 704,
333
+ 473
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Deriving Eqs. 3 and 5 from the cost function is straightforward. We use the REINFORCE rule (Williams, 1992) and approximate expectation values with samples $g _ { i }$ and $d _ { j }$ drawn from the Grouper and Placer to arrive at Eqs. 4 and 6. ",
340
+ "bbox": [
341
+ 174,
342
+ 481,
343
+ 825,
344
+ 523
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "In our implementation, the Grouper makes independent predictions when assigning operations to groups. The Placer, however, conditions the placement of groups on those that have already been placed. To reduce the variance, we also subtract a baseline $B$ from $R$ . In our experiments, we found that the exponential moving average of the reward was an effective baseline. ",
351
+ "bbox": [
352
+ 174,
353
+ 530,
354
+ 825,
355
+ 587
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "Distributed Training: Our policy is trained in a distributed manner. Our framework has a parameter server that is shared among several controllers. All controllers use the same set of parameters and update the policy asynchronously. Each controller communicates with $k$ worker nodes, where $k$ is as shown in Eqs. 4 and 6. Each worker interacts with only one controller. ",
362
+ "bbox": [
363
+ 174,
364
+ 601,
365
+ 825,
366
+ 657
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "Each worker executes the placement given by its controller and reports the runtime. In our experiments, we use 4 controllers and 16 workers (4 per controller). For example, if we are optimizing a placement on 2 GPUs, each worker needs 2 GPUs to measure runtime. Each controller is hosted on a single GPU. Therefore, we use a total of 36 GPUs for this example. The workers run the placements in parallel. Once all workers have finished running the placements, the controller computes the gradients using the measured runtimes. To reduce the variance of runtime measurements across workers (different machines), each controller maintains a separate baseline. While we get our best results by using many workers, we show in Section 3 that it is possible to train the policy and achieve comparable results with far fewer resources. ",
373
+ "bbox": [
374
+ 174,
375
+ 664,
376
+ 826,
377
+ 790
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "3 EXPERIMENTS ",
384
+ "text_level": 1,
385
+ "bbox": [
386
+ 176,
387
+ 809,
388
+ 326,
389
+ 825
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "In this section, we apply Hierarchical Planner to widely used machine learning models in computer vision and natural language processing. We compare our results to heuristic and RL-based graph optimization baselines and demonstrate our approach’s ability to find performant placements. We also compare our method with two simpler alternatives: 1). no grouping (a feed forward model that directly places each operation) and 2). random grouping (a random Grouper feeding into a learned Placer), to demonstrate that our hierarchical architecture allows us to learn better placements. ",
396
+ "bbox": [
397
+ 174,
398
+ 839,
399
+ 825,
400
+ 924
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Models: We evaluate our approach on four widely used deep neural networks: ",
407
+ "bbox": [
408
+ 173,
409
+ 103,
410
+ 696,
411
+ 118
412
+ ],
413
+ "page_idx": 4
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "• Inception-V3 (Szegedy et al., 2016b) is a model used for a variety of computer vision tasks, including classification, recognition, or generation (Khetan & Oh, 2016; Esteva et al., 2016). The network consists of multiple blocks, each of which is made up of several convolutional and pooling layers. Within a block, the layers can be executed in parallel. However, since the outputs of each block are concatenated together to form the input to the next block, the blocks must be executed sequentially. We use a batch size of 1. The TensorFlow graph encoding this model contains 24,713 operations. ",
418
+ "bbox": [
419
+ 217,
420
+ 128,
421
+ 825,
422
+ 226
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "• ResNet (He et al., 2016) is a popular model for image classification. It is a deep convolutional network that uses residual connections to avoid the vanishing gradient problem. We use batch size 128. The TensorFlow implementation of this model has 20,586 operations. ",
429
+ "bbox": [
430
+ 215,
431
+ 229,
432
+ 825,
433
+ 271
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "• RNNLM (Zaremba et al., 2014; Jozefowicz et al., 2016) Recurrent Neural Network Language Model is made of many LSTM cells organized in a grid structure. The processing of each LSTM cell only depends on the results of 2 other cells, which make the concurrent execution of many LSTM cells possible given enough hardware resources. We use batch size 64. The corresponding TensorFlow graph contains 9,021 operations. ",
440
+ "bbox": [
441
+ 215,
442
+ 275,
443
+ 826,
444
+ 344
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "• NMT (Bahdanau et al., 2015; Wu et al., 2016a) Neural Machine Translation with attention mechanism has an architecture similar to that of RNNLM, but its many hidden states make it far more computationally expensive. To decrease the training time, both Sutskever et al. (2014) and Wu et al. (2016a) propose placing each LSTM layer, as well as the attention and the softmax layer, on a separate device. While this strategy results in meaningful speed improvements, we show that our Hierarchical Planner can find significantly better placements. We use batch size 64. We evaluated 3 versions of the NMT model: ",
451
+ "bbox": [
452
+ 217,
453
+ 347,
454
+ 823,
455
+ 445
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "– The original 2-layer encoder-decoder consisting of 28,044 operations. \n– An extended 4-layer version consisting of 46,600 operations. \n– An even larger 8-layer version consisting of 83,712 operations. ",
462
+ "bbox": [
463
+ 245,
464
+ 449,
465
+ 718,
466
+ 493
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "For a fair comparison to previous state-of-the-art deep RL methods (Mirhoseini et al., 2017), we use the same model architectures (Inception-V3, RNNLM, and 2-Layer NMT models), hyperparameters and input data. In addition, we evaluate our model on a 152-layer ResNet (He et al., 2016) with ImageNet data (Deng et al., 2009), as well as more complex NMT models with 4 and 8 layers. ",
473
+ "bbox": [
474
+ 176,
475
+ 503,
476
+ 823,
477
+ 559
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "Baselines: We compare the placements found by our approach to the following baselines: ",
484
+ "bbox": [
485
+ 171,
486
+ 574,
487
+ 772,
488
+ 589
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "• CPU Only. Here, we execute the model on a single CPU. While this is generally slow, we find that some large models are very hard to fit on GPUs, given their memory limitations, leaving a CPU-only placement as the only naive option. \n• GPU Only. In cases where it is possible to fit the entire model on a single GPU, this is a strong baseline as most graph operations run fastest on GPU and this placement incurs no cross-device communication cost. For operations that are not implemented on GPU, TensorFlow automatically places them on CPU. \nScotch. We use the Scotch static mapper (Pellegrini, 2009a) which takes as input the graph, the computational cost of each operation, the volume of data flowing through each edge, and the compute and communication capacities of the pertinent devices. \nMinCut. We use the Scotch optimizer, but we only consider GPUs as our devices. The objective is to balance computation across all the available devices while minimizing interdevice communication. \nHuman Expert. We use hand-crafted placements from previous publications. For InceptionV3 (Szegedy et al., 2016b) and Resnet (He et al., 2016), where it is difficult to exploit model parallelism, human experts place the graph on a single GPU. For RNNLM and NMT, existing work (Sutskever et al., 2014; Wu et al., 2016a) places each LSTM layer on a separate GPU. For NMT, the attention and softmax layers are placed on the same device as the final LSTM layer, while the embedding layer is colocated with the first LSTM layer. \nColocRL. This method (Mirhoseini et al., 2017) uses policy gradient to train a recurrent neural network that reads in hand-crafted colocation groups and then places each group on a device. ",
495
+ "bbox": [
496
+ 214,
497
+ 598,
498
+ 828,
499
+ 926
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Measuring Reward: Our reward is the negative square root of the runtime for one training step of the target TensorFlow model (lower runtimes are better). We assign a large negative reward of -10 to invalid placements (e.g., due to memory limitations). We define runtime as the time in seconds required to complete one training step of the target model (i.e. one forward pass, one back-propagation pass, and one parameter update). To reduce measurement variance, we run each predicted placement of the model for 10 steps. We discard the first 5 steps (to avoid warmup variations) and use the median value of the next 5 steps to calculate the reward. We found empirically that calculating the reward with square root yielded better placements than identity or logarithm. Note that by altering the reward, we can use our proposed method for optimizing other metrics, such as inference speed, throughput, and network congestion. ",
506
+ "bbox": [
507
+ 173,
508
+ 103,
509
+ 825,
510
+ 242
511
+ ],
512
+ "page_idx": 5
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Devices and Software: Our experiments are run on machines with 1 Intel Haswell 2300 CPU and up to 8 Nvidia Tesla K40 GPUs. We use TensorFlow r1.3 to run our experiments. ",
517
+ "bbox": [
518
+ 174,
519
+ 262,
520
+ 821,
521
+ 290
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Architecture of the Policy Network: In the Hierarchical Planner, the Grouper is a feed forward network with a hidden size of 64 and the Placer is a sequence-to-sequence (Sutskever et al., 2014) model with an LSTM hidden size of 256. For the encoder of the sequence-to-sequence model, we used two layers of LSTM to form a bi-LSTM similar to (Wu et al., 2016b). We used a uni-directional LSTM for the decoder. The Grouper’s softmax output size is equal to the number of groups, which we set to 256 in our experiments. We also experimented with a range of group sizes (64 to 1024), but got the best results with group size 256. The number of unrolled steps in the Placer is equal to the number of groups. The Placer’s softmax output size in both models is equal to the number of available hardware devices. ",
528
+ "bbox": [
529
+ 174,
530
+ 310,
531
+ 825,
532
+ 435
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Training Details: We train both policies using Adam (Kingma & Ba, 2015) optimizer with a fixed learning rate of 0.1, gradient clipping of norm 1.0, tanh constant $C = 5 . 0$ , and temperature $T = 1 0 . 0$ The number of Grouper and Placer samples in Eqs. 4 and 6 are $m = 1$ and $k = 4$ , respectively. ",
539
+ "bbox": [
540
+ 174,
541
+ 455,
542
+ 825,
543
+ 498
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "To encourage more exploration, we added noise to the logits of both the Grouper and the Placer networks for the first 500 policy training steps. The noise was sampled from the normal distribution and modulated to have a max amplitude of 0.1. ",
550
+ "bbox": [
551
+ 176,
552
+ 505,
553
+ 820,
554
+ 547
555
+ ],
556
+ "page_idx": 5
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Given that the vast majority of placements are invalid, especially for more complex models such as NMT, we update the policy only for valid placements after the first 500 steps. By updating the baseline and the policy only for samples that give valid placements, we prevent the policy from converging to the reward associated with invalid placements. ",
561
+ "bbox": [
562
+ 174,
563
+ 554,
564
+ 825,
565
+ 611
566
+ ],
567
+ "page_idx": 5
568
+ },
569
+ {
570
+ "type": "table",
571
+ "img_path": "images/18622e6ffe8b936f0f07e1994b524bd28f99a5904a08e4326eb7d9d2098314df.jpg",
572
+ "table_caption": [],
573
+ "table_footnote": [],
574
+ "table_body": "<table><tr><td>Tasks</td><td>CPU Only</td><td>GPU Only</td><td>#GPUs</td><td>Human Expert</td><td>Scotch</td><td>MinCut</td><td>Hierarchical Planner</td><td>Runtime Reduction</td></tr><tr><td>Inception-V3</td><td>0.61</td><td>0.15</td><td>2</td><td>0.15</td><td>0.93</td><td>0.82</td><td>0.13</td><td>16.3%</td></tr><tr><td>ResNet</td><td>-</td><td>1.18</td><td>2</td><td>1.18</td><td>6.27</td><td>2.92</td><td>1.18</td><td>0%</td></tr><tr><td>RNNLM</td><td>6.89</td><td>1.57</td><td>2</td><td>1.57</td><td>5.62</td><td>5.21</td><td>1.57</td><td>0%</td></tr><tr><td>NMT (2-layer)</td><td>6.46</td><td>0OM</td><td>2</td><td>2.13</td><td>3.21</td><td>5.34</td><td>0.84</td><td>60.6%</td></tr><tr><td>NMT (4-layer)</td><td>10.68</td><td>0OM</td><td>4</td><td>3.64</td><td>11.18</td><td>11.63</td><td>1.69</td><td>53.7%</td></tr><tr><td>NMT (8-layer)</td><td>11.52</td><td>OOM</td><td>8</td><td>3.88</td><td>17.85</td><td>19.01</td><td>4.07</td><td>-4.9%</td></tr></table>",
575
+ "bbox": [
576
+ 179,
577
+ 627,
578
+ 818,
579
+ 733
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Table 1: Model Runtimes (seconds) for different placements (lower is better). OOM: Out Of Memory. ",
586
+ "bbox": [
587
+ 173,
588
+ 743,
589
+ 821,
590
+ 758
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Results Compared with Graph Partitioning Heuristics: In Table 1, we report the performance of the Hierarchical Planner and compare it to the aforementioned baselines. The only information available to our models is the TensorFlow graph and a list of devices. The reduction percentages are computed by taking the difference between the runtime achieved by the Hierarchical Planner and that of the best prior placement, and then dividing it by that best prior runtime. ",
597
+ "bbox": [
598
+ 174,
599
+ 790,
600
+ 823,
601
+ 861
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "For ResNet and RNNLM, our model learns that it is more efficient to use a single GPU, as this minimizes communication cost. For Inception-V3, the Hierarchical Planner learns to distribute the model across 2 GPUs, achieving a $1 6 . 3 \\%$ reduction in runtime over placing the model on a single GPU. ",
608
+ "bbox": [
609
+ 174,
610
+ 867,
611
+ 823,
612
+ 922
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "image",
618
+ "img_path": "images/05c5e6e0ca836f2165ff98aa796f2ac741410c430f98974eb75d5f834387925f.jpg",
619
+ "image_caption": [
620
+ "Figure 2: The Hierarchical Planner’s placement of a NMT (4-layer) model. White denotes CPU and the four colors each represent one of the GPUs. Note that every step of every layer is allocated across multiple GPUs. This placement is $5 3 . 7 \\%$ faster than that generated by a human expert. "
621
+ ],
622
+ "image_footnote": [],
623
+ "bbox": [
624
+ 236,
625
+ 98,
626
+ 761,
627
+ 300
628
+ ],
629
+ "page_idx": 6
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "For NMT with 2, 4, and 8 layers, we ran experiments with 2, 4, and 8 GPUs, respectively. We outperform the best prior results by $6 0 . 6 \\%$ for NMT (2-layer) and $5 3 . 7 \\%$ for NMT (4-layer). For further insight into the model’s behavior, we visualize its placement for NMT (4-layer) in Figure 2. ",
634
+ "bbox": [
635
+ 174,
636
+ 382,
637
+ 825,
638
+ 425
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "For NMT (8-layer), the Hierarchical Planner finds a placement that is $4 . 9 \\%$ slower than that of human experts. Even in this one case where the method slightly underperforms, it is still useful to have an automated method of finding placements that are comparable to those of human experts. ",
645
+ "bbox": [
646
+ 176,
647
+ 431,
648
+ 825,
649
+ 474
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Results associated with both Scotch and MinCut were significantly worse than human expert baselines, which is consistent with results reported in (Mirhoseini et al., 2017). ",
656
+ "bbox": [
657
+ 173,
658
+ 481,
659
+ 823,
660
+ 508
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Results Compared with ColocRL: A fair comparison with ColocRL would require us to run the models using exactly the same software (TensorFlow version) and hardware (CPU and GPU types). Although our runtimes are considerably faster, they are not directly comparable to those reported in (Mirhoseini et al., 2017), because we ran with different GPU types (the slower $\\mathbf { k } 4 0$ for us vs. their $\\mathbf { k } 8 0$ ) and TensorFlow versions (our r1.3 vs. their unspecified but presumably earlier version). We will discuss the relative improvements achieved by our approach. ",
667
+ "bbox": [
668
+ 174,
669
+ 523,
670
+ 825,
671
+ 608
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "For NMT (2-layer), our improvement over best heuristics is $6 0 . 6 \\%$ , compared to $1 9 . 0 \\%$ for ColocRL. For NMT (4-layer) and NMT (8-layer), no results were reported for ColocRL, which we suspect is due to the model being unable to handle the large number of operations in these graphs. ",
678
+ "bbox": [
679
+ 176,
680
+ 614,
681
+ 823,
682
+ 657
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "Unlike our method, ColocRL makes the strong assumption that certain operations must be colocated. Figure 2 shows the high granularity of the Hierarchical Planner’s placements, a degree of parallelism that would be infeasible for prior methods. For example, the Hierarchical Planner places each step of an unrolled LSTM layer across multiple GPUs, whereas ColocRL colocates all operations in a step. ",
689
+ "bbox": [
690
+ 174,
691
+ 664,
692
+ 825,
693
+ 719
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Analysis: Here, we want to understand and analyze the placements generated by the RL model. In Figure 2, we show a portion of the placement found by the Hierarchical Planner for NMT (4-layer). With this placement, the runtime per training iteration is $5 3 . 7 \\%$ faster than that of a hand-crafted placement. As shown by the figure, the generated placement is non-trivial and highly parallelized. In particular, all of the unrolled steps of the LSTM, attention, and softmax layers are distributed across multiple GPUs. Note that it is impossible for an approach like ColocRL (Mirhoseini et al., 2017) to find such a placement, as this method forces all operations within an unrolled LSTM step to be placed on the same device. Our method also learns to place the sparse embedding lookup operations on CPU. In this placement, the policy search space is incredibly large, i.e., $5 ^ { 4 6 , 6 0 \\breve { 0 } }$ (5 devices and 46,600 operations). The automated placement enabled by jointly learned grouping not only outperforms previous methods, but unlike ColocRL, it is deployable with no human effort (e.g. manual grouping). ",
700
+ "bbox": [
701
+ 174,
702
+ 734,
703
+ 825,
704
+ 888
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "In our experiments, we set the number of groups to 256. While training the policy, we observed that initially the operations are assigned nearly uniformly across all the 256 groups, but that the Grouper ultimately converges to using only a small subset of groups across all models. This suggests that the feed forward Grouper has learned to partition the computational graph such that operations that should be placed on the same device are grouped together. ",
711
+ "bbox": [
712
+ 173,
713
+ 895,
714
+ 823,
715
+ 924
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "",
722
+ "bbox": [
723
+ 174,
724
+ 103,
725
+ 823,
726
+ 146
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "We cast the device placement problem as a sequential decision-making task. Since there is no canonical order for a TensorFlow graph, we randomized the order of the groups that we fed into the the Placer, with the Placer’s bi-LSTM architecture enabling it to look at a graph more holistically. We ran 10 experiments on our NMT (4-layer) baseline, shuffling the order of group embeddings passed to the Placer. The difference between the fastest and slowest placements was less than $7 \\%$ . ",
733
+ "bbox": [
734
+ 174,
735
+ 152,
736
+ 825,
737
+ 222
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Overhead of Training Hierarchical Planner: For each of the models, we train a new policy which learns to optimize placements for that particular model. All results for the Hierarchical Planner are after 1000 iterations of updating the policy. In practice, this takes at most three hours for our largest benchmark. The runtime per policy update is dominated by the time it takes to measure the reward for a sampled placement. To calculate the reward, we run the target model according to the predicted placement for 5 training steps and use the median runtime. The policy itself is a lightweight network that is trained on a single GPU. For measuring the reward, however, we use actual runtime measurements for the given placements. Measuring runtime is done by worker nodes. For example, if we are optimizing a model placement on 5 devices (1 CPU and 4 GPUs), we need at least one worker with that many devices that can run the input model for the predicted placements and report the runtime. ",
744
+ "bbox": [
745
+ 173,
746
+ 257,
747
+ 825,
748
+ 410
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "As described in Section 2, we used 16 workers to train our policy. However, in this section, we will show that we can generate good results even in limited hardware settings. We consider training the policy to optimize placement of our 4-layer NMT benchmark model on 5 devices (1 Intel Haswell 2300 and 4 Nvidia Tesla K40s). The goal is to show that the policy can be trained efficiently even when we have only one worker. Figure 3 demonstrates the policy loss reduction as a function of policy training time, in 2 different scenarios where we have access to 1 and 4 workers. The policy is hosted on a single K40 GPU which sends 1 placement at a time to the worker(s) and applies a gradient step for each reward collected from worker(s). While, more workers can reduce the policy training time, as seen in Figure 3, we still get reasonable training times with only one worker. In this case, it takes less than 2.5 hours for the policy to achieve a placement with training step time of 1.94 seconds. ",
755
+ "bbox": [
756
+ 173,
757
+ 416,
758
+ 825,
759
+ 569
760
+ ],
761
+ "page_idx": 7
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Given that we train NMT models for hundreds of thousands of steps, the overhead of policy optimization is more than justified. For example, to train WMT’14 En->Fr dataset which has more than 36 million examples for one epoch (with batch-size ${ \\boldsymbol { \\mathsf { \\Omega } } } { = } 6 4$ ), we need to run the NMT model for approximately 562500 steps. Since we reduce the runtime per step by approximately $4 6 . 7 \\%$ (from 3.64 to 1.94 seconds), this saves us 265 GPU-hours, which is a significant savings even if we consider the 12.5 GPU-hours we spent on training the policy on a single worker. ",
766
+ "bbox": [
767
+ 174,
768
+ 575,
769
+ 825,
770
+ 661
771
+ ],
772
+ "page_idx": 7
773
+ },
774
+ {
775
+ "type": "image",
776
+ "img_path": "images/9c472e8d083086362413a9ab80ff21df602bae192aaf8cc1f5ac6235b098704f.jpg",
777
+ "image_caption": [
778
+ "Figure 3: Training the policy with 1 and 4 workers to measure the reward. Each worker is a platform with 1 Intel Haswell 2300 and 4 Nvidia Tesla K40s. "
779
+ ],
780
+ "image_footnote": [],
781
+ "bbox": [
782
+ 346,
783
+ 707,
784
+ 633,
785
+ 877
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "For simplicity, we first train the Hierarchical Planner and then use its best placement to train the target model. For greater efficiency, however, we could interleave the training of the Hierarchical Planner with the training of the target model, using the runtime of actual training steps as our reward signal. ",
792
+ "bbox": [
793
+ 176,
794
+ 103,
795
+ 823,
796
+ 146
797
+ ],
798
+ "page_idx": 8
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "Alternative Policy Architectures: We compared the Hierarchical Planner against two alternative policy architectures described below. ",
803
+ "bbox": [
804
+ 174,
805
+ 161,
806
+ 823,
807
+ 189
808
+ ],
809
+ "page_idx": 8
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "The first alternative we considered was a simpler model consisting of a single feed forward network. This model, which we refer to as the Simple Planner, independently predicts the placement for each operation in the input model, given information about that operation and its connectivity to others. This is equivalent to having only a feed forward Grouper which predicts placements rather than groups (i.e. the number of groups is equal to number of available devices). ",
814
+ "bbox": [
815
+ 174,
816
+ 196,
817
+ 825,
818
+ 266
819
+ ],
820
+ "page_idx": 8
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "The Simple Planner finds placements for Inception-V3 that are within $20 \\%$ of the Hierarchical Planner, and it successfully learns to place RNNLM and ResNet benchmarks on a single GPU. Its learned placement for NMT (2-layer), however, is more than twice as slow as that of the Hierarchical Planner. The Simple Planner also fails to find any valid placements for larger benchmarks, such as NMT with 4 or 8 layers. The Hierarchical Planner which breaks the problem into grouping and placing sub-tasks is able to scale to much larger models. The Hierarchical Planner’s sequence-to-sequence model also enables conditioning placement of an operation on those previously placed. ",
825
+ "bbox": [
826
+ 173,
827
+ 273,
828
+ 825,
829
+ 372
830
+ ],
831
+ "page_idx": 8
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "Another architecture we considered was a Hierarchical Planner with randomized grouping. To verify that the Grouper was contributing meaningfully to the performance of the Hierarchical Planner, we compared its performance to a baseline where we fed randomized groupings into the Placer. We ran this experiment with 10 different randomized group assignments for 1000 iterations. As can be seen in Table 2, there is significant variance across different trials and the best result is worse than that of the Hierarchical Planner. This suggests that end-to-end learning of grouping operations and placing groups does indeed improve the performance. ",
836
+ "bbox": [
837
+ 173,
838
+ 377,
839
+ 825,
840
+ 476
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "table",
846
+ "img_path": "images/f0f6f8d9cf62d6161c32aea194454690ca8afe636435c3763cc166fcd6a054bd.jpg",
847
+ "table_caption": [],
848
+ "table_footnote": [],
849
+ "table_body": "<table><tr><td>Benchmark</td><td>Best</td><td>Median</td><td>Worst</td><td>Improvement with Hierarchical Planner</td></tr><tr><td>Inception-V3</td><td>0.22</td><td>0.51</td><td>0.65</td><td>40.9%</td></tr><tr><td>ResNet</td><td>1.18</td><td>1.18</td><td>1.18</td><td>0%</td></tr><tr><td>RNNLM</td><td>1.57</td><td>1.57</td><td>1.57</td><td>0%</td></tr><tr><td>NMT (2-layer)</td><td>2.25</td><td>3.72</td><td>4.45</td><td>62.7%</td></tr><tr><td>NMT (4-layer)</td><td>3.20</td><td>3.42</td><td>6.91</td><td>47.2%</td></tr><tr><td>NMT (8-layer)</td><td>6.35</td><td>6.86</td><td>7.23</td><td>35.9%</td></tr></table>",
850
+ "bbox": [
851
+ 290,
852
+ 489,
853
+ 707,
854
+ 597
855
+ ],
856
+ "page_idx": 8
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Table 2: Best, median and worst runtimes for 10 trials each with a different randomized grouping of operations. These results demonstrate that the Hierarchical Planner, which uses learned groupings rather than random ones, is able to significantly reduce runtime. ",
861
+ "bbox": [
862
+ 174,
863
+ 606,
864
+ 823,
865
+ 648
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "4 CONCLUSION ",
872
+ "text_level": 1,
873
+ "bbox": [
874
+ 176,
875
+ 679,
876
+ 318,
877
+ 695
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "In this paper, we present a hierarchical method for efficiently placing the operations of a computational graph onto devices. Our approach consists of a hierarchical model that first assigns the operations to groups and then places those groups onto devices. We use a policy gradient method to optimize the parameters of the planner. The proposed method enables us to scale to computational graphs containing over 80,000 operations. Unlike previous work, our method is end-to-end and requires no manual effort. On a range of tasks including image classification, language modeling, and machine translation, our method surpasses placements designed by human experts as well as those of previous state-of-the-art deep RL methods. Our approach finds highly granular parallelism within the graph, enabling us to outperform prior methods by up to $6 0 . 6 \\%$ . ",
884
+ "bbox": [
885
+ 174,
886
+ 710,
887
+ 825,
888
+ 837
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "REFERENCES ",
895
+ "text_level": 1,
896
+ "bbox": [
897
+ 176,
898
+ 858,
899
+ 285,
900
+ 873
901
+ ],
902
+ "page_idx": 8
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete ",
907
+ "bbox": [
908
+ 176,
909
+ 882,
910
+ 825,
911
+ 924
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: A system for large-scale machine learning. In OSDI, 2016. ",
918
+ "bbox": [
919
+ 181,
920
+ 103,
921
+ 823,
922
+ 132
923
+ ],
924
+ "page_idx": 9
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. ",
929
+ "bbox": [
930
+ 173,
931
+ 141,
932
+ 823,
933
+ 171
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Bowen Baker, Otkrist Gupta, Nikhil Naik, and Ramesh Raskar. Designing neural network architectures using reinforcement learning. 2016. URL http://arxiv.org/abs/1611.02167. ",
940
+ "bbox": [
941
+ 173,
942
+ 180,
943
+ 823,
944
+ 210
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "S. T. Barnard and H. D. Simon. A fast multilevel implementation of recursive spectral bisection for partitioning unstructured problems. Concurrency: practice and Experience, 6(2):101–117, 1994. ",
951
+ "bbox": [
952
+ 173,
953
+ 219,
954
+ 823,
955
+ 250
956
+ ],
957
+ "page_idx": 9
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. arXiv preprint arXiv:1611.09940, 2016. ",
962
+ "bbox": [
963
+ 174,
964
+ 257,
965
+ 823,
966
+ 287
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "C. Chevalier and F. Pellegrini. Improvement of the efficiency of genetic algorithms for scalable parallel graph partitioning in a multi-level framework. pp. 243—-252, September 2006. ",
973
+ "bbox": [
974
+ 174,
975
+ 296,
976
+ 825,
977
+ 327
978
+ ],
979
+ "page_idx": 9
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009. ",
984
+ "bbox": [
985
+ 173,
986
+ 335,
987
+ 825,
988
+ 378
989
+ ],
990
+ "page_idx": 9
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Andre Esteva, Brett Kuprel, Rob Novoa, Justin Ko, Susan Swetter, Helen M. Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer. Nature, 2016. ",
995
+ "bbox": [
996
+ 174,
997
+ 387,
998
+ 823,
999
+ 417
1000
+ ],
1001
+ "page_idx": 9
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Charles M Fiduccia and Robert M Mattheyses. A linear-time heuristic for improving network partitions. In Papers on Twenty-five years of electronic design automation, pp. 241–247. ACM, 1988. ",
1006
+ "bbox": [
1007
+ 176,
1008
+ 426,
1009
+ 823,
1010
+ 469
1011
+ ],
1012
+ "page_idx": 9
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro, Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh, Shubho Sengupta, Adam Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014. ",
1017
+ "bbox": [
1018
+ 174,
1019
+ 479,
1020
+ 823,
1021
+ 522
1022
+ ],
1023
+ "page_idx": 9
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1028
+ "bbox": [
1029
+ 174,
1030
+ 531,
1031
+ 823,
1032
+ 561
1033
+ ],
1034
+ "page_idx": 9
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "B. Hendrickson and R. Leland. A multilevel algorithm for partitioning graphs. Technical Report SAND93–1301, Sandia National Laboratories, June 1993. ",
1039
+ "bbox": [
1040
+ 174,
1041
+ 570,
1042
+ 821,
1043
+ 601
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 2012. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 609,
1053
+ 825,
1054
+ 666
1055
+ ],
1056
+ "page_idx": 9
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Sepp Hochreiter and Juergen Schmidhuber. Long short-term memory. Neural Computation, 1997. ",
1061
+ "bbox": [
1062
+ 171,
1063
+ 676,
1064
+ 816,
1065
+ 693
1066
+ ],
1067
+ "page_idx": 9
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. ",
1072
+ "bbox": [
1073
+ 171,
1074
+ 702,
1075
+ 823,
1076
+ 731
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "G. Karypis and V. Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. Technical Report 95-035, University of Minnesota, June 1995a. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 739,
1086
+ 825,
1087
+ 768
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "George Karypis and Vipin Kumar. Metis–unstructured graph partitioning and sparse matrix ordering system, version 2.0. 1995b. ",
1094
+ "bbox": [
1095
+ 171,
1096
+ 779,
1097
+ 823,
1098
+ 808
1099
+ ],
1100
+ "page_idx": 9
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "Ashish Khetan and Sewoong Oh. Achieving budget-optimality with adaptive schemes in crowdsourcing. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4844–4852. Curran Associates, Inc., 2016. ",
1105
+ "bbox": [
1106
+ 174,
1107
+ 818,
1108
+ 823,
1109
+ 861
1110
+ ],
1111
+ "page_idx": 9
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
1116
+ "bbox": [
1117
+ 171,
1118
+ 869,
1119
+ 812,
1120
+ 886
1121
+ ],
1122
+ "page_idx": 9
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolu tional neural networks. In NIPS, 2012. ",
1127
+ "bbox": [
1128
+ 174,
1129
+ 895,
1130
+ 820,
1131
+ 924
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. ",
1138
+ "bbox": [
1139
+ 171,
1140
+ 103,
1141
+ 825,
1142
+ 132
1143
+ ],
1144
+ "page_idx": 10
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Alexandre V. Evfimievski Berthold Reinwald Frederick R. Reiss Prithviraj Sen Shirish Tatikonda Matthias Boehm, Douglas R. Burdick and Yuanyuan Tian. Systemml’s optimizer: Plan generation for large-scale machine learning programs. IEEE Data Engineering Bulletin, 2014. ",
1149
+ "bbox": [
1150
+ 176,
1151
+ 140,
1152
+ 823,
1153
+ 184
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Azalia Mirhoseini, Hieu Pham, Quoc V. Le, Benoit Steiner, Mohammad Norouzi, Naveen Kumar, Rasmus Munk Larsen, Yuefeng Zhou, Samy Bengio, and Jeff Dean. Device placement optimization with reinforcement learning. In International Conference on Machine Learning, 2017. ",
1160
+ "bbox": [
1161
+ 176,
1162
+ 190,
1163
+ 825,
1164
+ 234
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "F. Pellegrini. A parallelisable multi-level banded diffusion scheme for computing balanced partitions with smooth boundaries. pp. 191—-200, August 2007. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 242,
1174
+ 825,
1175
+ 271
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "F. Pellegrini. Distillating knowledge about scotch. 2009a. ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 279,
1185
+ 553,
1186
+ 295
1187
+ ],
1188
+ "page_idx": 10
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "F. Pellegrini and J. Roman. Experimental analysis of the dual recursive bipartitioning algorithm for static mapping. Research Report, LaBRI, Universite Bordeaux I, August 1996. ",
1193
+ "bbox": [
1194
+ 173,
1195
+ 303,
1196
+ 823,
1197
+ 332
1198
+ ],
1199
+ "page_idx": 10
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "François Pellegrini. Distillating knowledge about scotch. In Dagstuhl Seminar Proceedings. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2009b. ",
1204
+ "bbox": [
1205
+ 173,
1206
+ 339,
1207
+ 825,
1208
+ 368
1209
+ ],
1210
+ "page_idx": 10
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Esteban Real, Sherry Moore, Andrew Selle, Saurabh Saxena, Yutaka Leon Suematsu, Quoc Le, and Alex Kurakin. Large-scale evolution of image classifiers. 2017. URL https://arxiv.org/ abs/1703.01041. ",
1215
+ "bbox": [
1216
+ 176,
1217
+ 376,
1218
+ 823,
1219
+ 420
1220
+ ],
1221
+ "page_idx": 10
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In NIPS, 2014. ",
1226
+ "bbox": [
1227
+ 171,
1228
+ 426,
1229
+ 826,
1230
+ 457
1231
+ ],
1232
+ "page_idx": 10
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015. ",
1237
+ "bbox": [
1238
+ 176,
1239
+ 464,
1240
+ 825,
1241
+ 507
1242
+ ],
1243
+ "page_idx": 10
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alex Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261, 2016a. ",
1248
+ "bbox": [
1249
+ 174,
1250
+ 515,
1251
+ 823,
1252
+ 545
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016b. ",
1259
+ "bbox": [
1260
+ 173,
1261
+ 551,
1262
+ 823,
1263
+ 582
1264
+ ],
1265
+ "page_idx": 10
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1701–1708, 2014. ",
1270
+ "bbox": [
1271
+ 176,
1272
+ 589,
1273
+ 825,
1274
+ 632
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, 2015. ",
1281
+ "bbox": [
1282
+ 171,
1283
+ 640,
1284
+ 738,
1285
+ 656
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Machine Learning, 1992. ",
1292
+ "bbox": [
1293
+ 169,
1294
+ 664,
1295
+ 823,
1296
+ 693
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Łukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016a. ",
1303
+ "bbox": [
1304
+ 176,
1305
+ 700,
1306
+ 825,
1307
+ 799
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016b. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 808,
1317
+ 825,
1318
+ 849
1319
+ ],
1320
+ "page_idx": 10
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. ",
1325
+ "bbox": [
1326
+ 174,
1327
+ 858,
1328
+ 821,
1329
+ 887
1330
+ ],
1331
+ "page_idx": 10
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations, 2017. ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 895,
1339
+ 821,
1340
+ 924
1341
+ ],
1342
+ "page_idx": 10
1343
+ }
1344
+ ]
parse/train/Hkc-TeZ0W/Hkc-TeZ0W_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hkc-TeZ0W/Hkc-TeZ0W_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke3gyHYwH/Hke3gyHYwH.md ADDED
@@ -0,0 +1,607 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SIMPLE AND EFFECTIVE REGULARIZATION METHODS FOR TRAINING ON NOISILY LABELED DATA WITH GENERALIZATION GUARANTEE
2
+
3
+ Wei Hu Zhiyuan Li Dingli Yu
4
+ Princeton University
5
+ {huwei,zhiyuanli,dingliy}@cs.princeton.edu
6
+
7
+ # ABSTRACT
8
+
9
+ Over-parameterized deep neural networks trained by simple first-order methods are known to be able to fit any labeling of data. Such over-fitting ability hinders generalization when mislabeled training examples are present. On the other hand, simple regularization methods like early-stopping can often achieve highly nontrivial performance on clean test data in these scenarios, a phenomenon not theoretically understood. This paper proposes and analyzes two simple and intuitive regularization methods: (i) regularization by the distance between the network parameters to initialization, and (ii) adding a trainable auxiliary variable to the network output for each training example. Theoretically, we prove that gradient descent training with either of these two methods leads to a generalization guarantee on the clean data distribution despite being trained using noisy labels. Our generalization analysis relies on the connection between wide neural network and neural tangent kernel (NTK). The generalization bound is independent of the network size, and is comparable to the bound one can get when there is no label noise. Experimental results verify the effectiveness of these methods on noisily labeled datasets.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Modern deep neural networks are trained in a highly over-parameterized regime, with many more trainable parameters than training examples. It is well-known that these networks trained with simple first-order methods can fit any labels, even completely random ones (Zhang et al., 2017). Although training on properly labeled data usually leads to good generalization performance, the ability to over-fit the entire training dataset is undesirable for generalization when noisy labels are present. Therefore preventing over-fitting is crucial for robust performance since mislabeled data are ubiquitous in very large datasets (Krishna et al., 2016).
14
+
15
+ In order to prevent over-fitting to mislabeled data, some form of regularization is necessary. A simple such example is early stopping, which has been observed to be surprisingly effective for this purpose (Rolnick et al., 2017; Guan et al., 2018; Li et al., 2019). For instance, training ResNet-34 with early stopping can achieve $8 4 \%$ test accuracy on CIFAR-10 even when $6 0 \%$ of the training labels are corrupted (Table 1). This is nontrivial since the test error is much smaller than the error rate in training data. How to explain such generalization phenomenon is an intriguing theoretical question.
16
+
17
+ As a step towards a theoretical understanding of the generalization phenomenon for overparameterized neural networks when noisy labels are present, this paper proposes and analyzes two simple regularization methods as alternatives of early stopping:
18
+
19
+ 1. Regularization by distance to initialization. Denote by $\pmb \theta$ the network parameters and by $\pmb \theta ( 0 )$ its random initialization. This method adds a regularizer $\lambda \| \pmb \theta - \pmb \theta ( 0 ) \| ^ { 2 }$ to the training objective.
20
+ 2. Adding an auxiliary variable for each training example. Let $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ be the $i$ -th training example and $f ( \pmb \theta , \cdot )$ represent the neural net. This method adds a trainable variable $b _ { i }$ and tries to fit the $i$ -th label using $f ( \pmb { \theta } , \pmb { x } _ { i } ) + \lambda \pmb { b } _ { i }$ . At test time, only the neural net $f ( \theta , \cdot )$ is used and the auxiliary variables are discarded.
21
+
22
+ These two choices of regularization are well motivated with clear intuitions. First, distance to initialization has been observed to be very related to generalization in deep learning (Neyshabur et al., 2019; Nagarajan and Kolter, 2019), so regularizing by distance to initialization can potentially help generalization. Second, the effectiveness of early stopping indicates that clean labels are somewhat easier to fit than wrong labels; therefore, adding an auxiliary variable could help “absorb” the noise in the labels, thus making the neural net itself not over-fitting.
23
+
24
+ We provide theoretical analysis of the above two regularization methods for a class of sufficiently wide neural networks by proving a generalization bound for the trained network on clean data distribution when the training dataset contains noisy labels. Our generalization bound depends on the (unobserved) clean labels, and is comparable to the bound one can get when there is no label noise, therefore indicating that the proposed regularization methods are robust to noisy labels.
25
+
26
+ Our theoretical analysis is based on the recently established connection between wide neural net and neural tangent kernel (Jacot et al., 2018; Lee et al., 2019; Arora et al., 2019a). In this line of work, parameters in a wide neural net are shown to stay close to their initialization during gradient descent training, and as a consequence, the neural net can be effectively approximated by its first-order Taylor expansion with respect to its parameters at initialization. This leads to tractable linear dynamics under $\ell _ { 2 }$ loss, and the final solution can be characterized by kernel regression using a particular kernel named neural tangent kernel (NTK). In fact, we show that for wide neural nets, both of our regularization methods, when trained with gradient descent to convergence, correspond to kernel ridge regression using the NTK, which is often regarded as an alternative to early stopping in kernel literature. This viewpoint makes explicit the connection between our methods and early stopping.
27
+
28
+ The effectiveness of these two regularization methods is verified empirically – on MNIST and CIFAR-10, they are able to achieve highly nontrivial test accuracy, on a par with or even better than early stopping. Furthermore, with our regularization, the validation accuracy is almost monotone increasing throughout the entire training process, indicating their resistance to over-fitting.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Neural tangent kernel was first explicitly studied and named by Jacot et al. (2018), with several further refinements and extensions by Lee et al. (2019); Yang (2019); Arora et al. (2019a). Using the similar idea that weights stay close to initialization and that the neural network is approximated by a linear model, a series of theoretical papers studied the optimization and generalization issues of very wide deep neural nets trained by (stochastic) gradient descent (Du et al., 2019b; 2018b; Li and Liang, 2018; Allen-Zhu et al., 2018a;b; Zou et al., 2018; Arora et al., 2019b; Cao and Gu, 2019). Empirically, variants of NTK on convolutional neural nets and graph neural nets exhibit strong practical performance (Arora et al., 2019a; Du et al., 2019a), thus suggesting that ultra-wide (or infinitely wide) neural nets are at least not irrelevant.
33
+
34
+ Our methods are closely related to kernel ridge regression, which is one of the most common kernel methods and has been widely studied. It was shown to perform comparably to early-stopped gradient descent (Bauer et al., 2007; Gerfo et al., 2008; Raskutti et al., 2014; Wei et al., 2017). Accordingly, we indeed observe in our experiments that our regularization methods perform similarly to gradient descent with early stopping in neural net training.
35
+
36
+ In another theoretical study relevant to ours, Li et al. (2019) proved that gradient descent with early stopping is robust to label noise for an over-parameterized two-layer neural net. Under a clustering assumption on data, they showed that gradient descent fits the correct labels before starting to over-fit wrong labels. Their result is different from ours from several aspects: they only considered two-layer nets while we allow arbitrarily deep nets; they required a clustering assumption on data while our generalization bound is general and data-dependent; furthermore, they did not address the question of generalization, but only provided guarantees on the training data.
37
+
38
+ A large body of work proposed various methods for training with mislabeled examples, such as estimating noise distribution (Liu and Tao, 2015) or confusion matrix (Sukhbaatar et al., 2014), using surrogate loss functions (Ghosh et al., 2017; Zhang and Sabuncu, 2018), meta-learning (Ren et al., 2018), using a pre-trained network (Jiang et al., 2017), and training two networks simultaneously (Malach and Shalev-Shwartz, 2017; Han et al., 2018; Yu et al., 2019). While our methods are not necessarily superior to these methods in terms of performance, our methods are arguably simpler (with minimal change to normal training procedure) and come with formal generalization guarantee.
39
+
40
+ # 3 PRELIMINARIES
41
+
42
+ Notation. We use bold-faced letters for vectors and matrices. We use $\left. \cdot \right.$ to denote the Euclidean norm of a vector or the spectral norm of a matrix, and $\left\| \cdot \right\| _ { F }$ to denote the Frobenius norm of a matrix. $\langle \cdot , \cdot \rangle$ represents the standard inner product. Let $\pmb { I }$ be the identity matrix of appropriate dimension. Let $[ n ] ^ { - } = \{ 1 , 2 , \dots , n \}$ . Let $\mathbb { I } [ A ]$ be the indicator of event $A$ .
43
+
44
+ # 3.1 SETTING: LEARNING FROM NOISILY LABELED DATA
45
+
46
+ Now we formally describe the setting considered in this paper. We first describe the binary classification setting as a warm-up, and then describe the more general setting of multi-class classification.
47
+
48
+ Binary classification. Suppose that there is an underlying data distribution $\mathcal { D }$ over $\mathbb { R } ^ { d } \times \{ \pm 1 \}$ , where 1 and $- 1$ are labels corresponding to two classes. However, we only have access to samples from a noisily labeled version of $\mathcal { D }$ . Formally, the data generation process is: draw $( \boldsymbol { x } , \boldsymbol { y } ) \sim \mathcal { D }$ , and flip the sign of label $y$ with probability $p$ $( 0 \leq p < \frac { 1 } { 2 } )$ ; let $\tilde { y } \in \{ \pm 1 \bar { \} }$ be the resulting noisy label.
49
+
50
+ Let $\{ ( \pmb { x } _ { i } , \tilde { y } _ { i } ) \} _ { i = 1 } ^ { n }$ be i.i.d. samples generated from the above process. Although we only have access to these noisily labeled data, the goal is still to learn a function (in the form of a neural net) that can predict the true label well on the clean distribution $\mathcal { D }$ . For binary classification, it suffices to learn a single-output function $f : { \mathbb { R } ^ { d } } \to { \mathbb { R } }$ whose sign is used to predict the class, and thus the classification error of $f$ on $\mathcal { D }$ is defined as $\mathrm { P r } _ { ( \pmb { x } , \pmb { y } ) \sim \mathcal { D } } [ \mathrm { s g n } \bar { ( } f ( \pmb { x } ) ) \pmb { \operatorname { \mu } } _ { { { \bf \mu } } } y ]$ .
51
+
52
+ Multi-class classification. When there are $K$ classes $K > 2$ ), let the underlying data distribution $\mathcal { D }$ be over $\mathbb { R } ^ { d } \times [ K ]$ . We describe the noise generation process as a matrix $\overset { \cdot } { P } \in \mathbb { R } ^ { K \times K }$ , whose entry $p _ { c ^ { \prime } , c }$ is the probability that the label $c$ is transformed into $\mathrm { { \sf c } } ^ { \prime } \left( \forall \mathrm { { \boldsymbol { c } } } , \boldsymbol { c } ^ { \prime } \in \left[ K \right] \right)$ . Therefore the data generation process is: draw $( \pmb { x } , c ) \sim \mathcal { D }$ , and replace the label $c$ with $\tilde { c }$ from the distribution $\mathrm { P r } [ \tilde { c } = c ^ { \prime } | c ] = p _ { c ^ { \prime } , c }$ $\forall c ^ { \prime } \in [ K ] )$ .
53
+
54
+ Let $\left\{ \left( \pmb { x } _ { i } , \tilde { c } _ { i } \right) \right\} _ { i = 1 } ^ { n }$ be i.i.d. samples from the above process. Again we would like to learn a neural net with low classification error on the clean distribution $\mathcal { D }$ . For $K$ -way classification, it is common to use a neural net with $K$ outputs, and the index of the maximum output is used to predict the class. Thus for $f : \mathbb { R } ^ { d } \mathbb { R } ^ { K }$ , its (top-1) classification error on $\mathcal { D }$ is $\mathrm { P r } _ { ( \pmb { x } , c ) \sim \mathcal { D } } [ c \not \in \mathrm { a r g m a x } _ { h \in [ K ] } f ^ { ( h ) } ( \pmb { x } ) ]$ , where $f ^ { ( h ) } : \mathbb { R } ^ { d } \mathbb { R }$ is the function computed by the $h$ -th output of $f$ .
55
+
56
+ As standard practice, a class label $c ~ \in ~ [ K ]$ is also treated as its one-hot encoding $\begin{array} { r l } { e ^ { ( c ) } } & { { } = } \end{array}$ $( 0 , 0 , \cdot \cdot \cdot , 0 , \bar { 1 } , 0 , \cdot \cdot \cdot , 0 ) \in \mathbb { R } ^ { K }$ (the $c$ -th coordinate being 1), which can be paired with the $K$ outputs of the network and fed into a loss function during training.
57
+
58
+ Note that it is necessary to assume $p _ { c , c } > p _ { c ^ { \prime } , c }$ for all $c \neq c ^ { \prime }$ , i.e., the probability that a class label $c$ is transformed into another particular label must be smaller than the label $c$ being correct – otherwise it is impossible to identify class $c$ correctly from noisily labeled data.
59
+
60
+ # 3.2 RECAP OF NEURAL TANGENT KERNEL
61
+
62
+ Now we briefly and informally recap the theory of neural tangent kernel (NTK) (Jacot et al., 2018; Lee et al., 2019; Arora et al., 2019a), which establishes the equivalence between training a wide neural net and a kernel method.
63
+
64
+ We first consider a neural net with a scalar output, defined as $f ( { \pmb \theta } , { \pmb x } ) \in \mathbb { R }$ , where $\pmb \theta \in \mathbb { R } ^ { N }$ is all the parameters in the net and $\pmb { x } \in \mathbb { R } ^ { d }$ is the input. Suppose that the net is trained by minimizing theř $\ell _ { 2 }$ loss over a training dataset $\begin{array} { r } { \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n } \subset \mathbb { R } ^ { d } \times \mathbb { R } \colon L ( \pmb \theta ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \left( f ( \pmb \theta , x _ { i } ) - y _ { i } \right) ^ { 2 } } \end{array}$ . Let the random initial parameters be $\pmb \theta ( 0 )$ , and the parameters be updated according to gradient descent on $L ( \theta )$ . It is shown that if the network is sufficiently wide1, the parameters $\pmb { \theta }$ will stay close to the initialization $\pmb \theta ( 0 )$ during training so that the following first-order approximation is accurate:
65
+
66
+ $$
67
+ f ( \pmb \theta , \pmb x ) \approx f ( \pmb \theta ( 0 ) , \pmb x ) + \langle \nabla _ { \pmb \theta } f ( \pmb \theta ( 0 ) , \pmb x ) , \pmb \theta - \pmb \theta ( 0 ) \rangle .
68
+ $$
69
+
70
+ This approximation is exact in the infinite width limit, but can also be shown when the width is finite but sufficiently large. When approximation (1) holds, we say that we are in the NTK regime.
71
+
72
+ Define ${ \boldsymbol { \phi } } ( { \boldsymbol { \mathbf { \mathit { x } } } } ) ~ = ~ \nabla _ { \boldsymbol { \theta } } f ( \boldsymbol { \theta } ( 0 ) , { \boldsymbol { \mathbf { \mathit { x } } } } )$ for any $\pmb { x } \in \mathbb { R } ^ { d }$ . The right hand side in (1) is linear in $\pmb { \theta }$ . As a consequence, training on the $\ell _ { 2 }$ loss with gradient descent leads to the kernel regression solution with respect to the kernel induced by (random) features $\phi ( { \pmb x } )$ , which is defined as $k ( { \pmb x } , { \pmb x } ^ { \prime } ) =$ $\langle \phi ( { \pmb x } ) , \bar { \phi } ( { \pmb x } ^ { \prime } ) \rangle$ for $\pmb { x } , \pmb { x } ^ { \prime } \in \mathbb { R } ^ { d }$ . This kernel was named the neural tangent kernel (NTK) by Jacot et al. (2018). Although this kernel is random, it is shown that when the network is sufficiently wide, this random kernel converges to a deterministic limit in probability (Arora et al., 2019a). If we additionally let the neural net and its initialization be defined so that the initial output is small, i.e., $f ( \pmb \theta ( 0 ) , \pmb x ) \overset { \cdot } { \approx } \ 0$ ,2 then the network at the end of training approximately computes the following function:
73
+
74
+ $$
75
+ { \pmb x } \mapsto k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) \right) ^ { - 1 } { \pmb y } ,
76
+ $$
77
+
78
+ where $\pmb { X } = \left( \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { n } \right)$ is the training inputs, $\pmb { y } = ( y _ { 1 } , \ldots , y _ { n } ) ^ { \top }$ is the training targets, $k ( { \pmb x } , { \pmb X } ) =$ ${ \big ( } k ( \mathbf { { \pmb x } } , \mathbf { { \pmb x } } _ { 1 } ) , \dots , k ( \mathbf { { \pmb x } } , \mathbf { { \pmb x } } _ { n } ) { \big ) } ^ { \top } \in \mathbb { R } ^ { n }$ , and $k ( X , X ) \in \mathbb { R } ^ { n \times n }$ with $( i , j )$ -th entry being $k ( \pmb { x } _ { i } , \pmb { x } _ { j } )$ .
79
+
80
+ Multiple outputs. The NTK theory above can also be generalized straightforwardly to the case of multiple outputs (Jacot et al., 2018; Lee et al., 2019). Suppose we train a neural net with $K$ outputs, $\bar { f } ( \pmb \theta , \bar { \pmb x ) }$ , by minimizing the $\ell _ { 2 }$ loss over a training dataset $\{ ( \pmb { x } _ { i } , \pmb { y } _ { i } ) \} _ { i = 1 } ^ { n } \subset \mathbb { R } ^ { d } \times \mathbb { R } ^ { K }$ $\begin{array} { r } { L ( \pmb { \theta } ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \left\| \pmb { f } ( \pmb { \theta } , \pmb { x } _ { i } ) - \pmb { y } _ { i } \right\| ^ { 2 } } \end{array}$ . When the hidden layers are sufficiently wide such that we are in the NTK regime, at the end of gradient descent, each output of $f$ also attains the kernel regression solution with respect to the same NTK as before, using the corresponding dimension in the training targets $\mathbf { \nabla } _ { \mathbf { \psi } _ { 3 } } \mathbf { \psi } _ { 2 } \qquad \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \qquad \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \qquad \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 3 } \qquad \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 3 } \qquad \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 3 } \mathbf { \psi } _ { 4 } \mathbf { \psi } _ { 4 }$ . Namely, the $h$ -th output of the network computes the function
81
+
82
+ $$
83
+ f ^ { ( h ) } ( { \pmb x } ) = k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) \right) ^ { - 1 } { \pmb y } ^ { ( h ) } ,
84
+ $$
85
+
86
+ where $\pmb { y } ^ { ( h ) } \in \mathbb { R } ^ { n }$ whose $i$ -th coordinate is the $h$ -th coordinate of $\mathbf { \nabla } _ { \mathbf { \psi } _ { 3 } } \psi _ { i }$
87
+
88
+ # 4 REGULARIZATION METHODS
89
+
90
+ In this section we describe two simple regularization methods for training with noisy labels, and show that if the network is sufficiently wide, both methods lead to kernel ridge regression using the NTK.3
91
+
92
+ We first consider the case of scalar target and single-output network. The generalization to multiple outputs is straightforward and is treated at the end of this section. Given a noisily labeled training dataset $\{ ( \pmb { x } _ { i } , \tilde { y } _ { i } ) \} _ { i = 1 } ^ { n } \subset \mathbb { R } ^ { d } \times \mathbb { R }$ , let $f ( \pmb \theta , \cdot )$ be a neural net to be trained. A direct, unregularized train-ř ing method would involve minimizing an objective function like $\begin{array} { r } { L ( \pmb { \theta } ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \left( f ( \pmb { \theta } , \pmb { x } _ { i } ) - \tilde { y } _ { i } \right) ^ { 2 } } \end{array}$ To prevent over-fitting, we suggest the following simple regularization methods that slightly modify this objective:
93
+
94
+ • Method 1: Regularization using Distance to Initialization (RDI). We let the initial parameters $\pmb \theta ( 0 )$ be randomly generated, and minimize the following regularized objective:
95
+
96
+ $$
97
+ L _ { \lambda } ^ { \mathsf { R D I } } ( \pmb \theta ) = \frac 1 2 \sum _ { i = 1 } ^ { n } \left( f ( \pmb \theta , \pmb x _ { i } ) - \tilde { y } _ { i } \right) ^ { 2 } + \frac { \lambda ^ { 2 } } { 2 } \left\| \pmb \theta - \pmb \theta ( 0 ) \right\| ^ { 2 } .
98
+ $$
99
+
100
+ • Method 2: adding an AUXiliary variable for each training example (AUX). We add an auxiliary trainable parameter $b _ { i } \in \mathbb { R }$ for each $i \in [ n ]$ , and minimize the following objective:
101
+
102
+ $$
103
+ L _ { \lambda } ^ { \mathsf { A U X } } ( \pmb \theta , \pmb b ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \left( f ( \pmb \theta , \pmb x _ { i } ) + \lambda b _ { i } - \tilde { y } _ { i } \right) ^ { 2 } ,
104
+ $$
105
+
106
+ where $\pmb { b } = ( b _ { 1 } , \dots , b _ { n } ) ^ { \top } \in \mathbb { R } ^ { n }$ is initialized to be 0.
107
+
108
+ Equivalence to kernel ridge regression in wide neural nets. Now we assume that we are in the NTK regime described in Section 3.2, where the neural net architecture is sufficiently wide so that the first-order approximation (1) is accurate during gradient descent: $f ( \pmb \theta , \pmb x ) \approx f ( \pmb \theta ( 0 ) , \pmb x ) +$ $\phi ( { \pmb x } ) ^ { \top } ( { \pmb \theta } - { \pmb \theta } ( 0 ) )$ . Recall that we have ${ \boldsymbol { \phi } } ( { \boldsymbol { \mathbf { \mathit { x } } } } ) = \nabla _ { \boldsymbol { \theta } } f ( \boldsymbol { \theta } ( 0 ) , { \boldsymbol { \mathbf { \mathit { x } } } } )$ which induces the NTK $k ( \pmb { x } , \pmb { x } ^ { \prime } ) =$ $\langle \phi ( { \pmb x } ) , \phi ( { \pmb x } ^ { \prime } ) \rangle$ . Also recall that we can assume near-zero initial output: $f ( { \pmb \theta } ( 0 ) , { \pmb x } ) ~ \approx ~ 0$ (see Footnote 2). Therefore we have the approximation:
109
+
110
+ $$
111
+ f ( \pmb \theta , \pmb x ) \approx \phi ( \pmb x ) ^ { \top } ( \pmb \theta - \pmb \theta ( 0 ) ) .
112
+ $$
113
+
114
+ Under the approximation (5), it suffices to consider gradient descent on the objectives (3) and (4) using the linearized model instead:
115
+
116
+ $$
117
+ \begin{array} { r l } & { \tilde { L } _ { \lambda } ^ { \mathrm { R D I } } ( \pmb \theta ) = \displaystyle \frac 1 2 \sum _ { i = 1 } ^ { n } \Big ( \phi ( \pmb x _ { i } ) ^ { \top } ( \pmb \theta - \pmb \theta ( 0 ) ) - \tilde { y } _ { i } \Big ) ^ { 2 } + \frac { \lambda ^ { 2 } } { 2 } \left. \pmb \theta - \pmb \theta ( 0 ) \right. ^ { 2 } , } \\ & { \tilde { L } _ { \lambda } ^ { \mathrm { A U X } } ( \pmb \theta , \pmb b ) = \displaystyle \frac 1 2 \sum _ { i = 1 } ^ { n } \Big ( \phi ( \pmb x _ { i } ) ^ { \top } ( \pmb \theta - \pmb \theta ( 0 ) ) + \lambda b _ { i } - \tilde { y } _ { i } \Big ) ^ { 2 } . } \end{array}
118
+ $$
119
+
120
+ The following theorem shows that in either case, gradient descent leads to the same dynamics and converges to the kernel ridge regression solution using the NTK.
121
+
122
+ Theorem 4.1. Fix a learning rate $\eta > 0$ . Consider gradient descent on $\tilde { L } _ { \lambda } ^ { \mathsf { R D I } }$ with initialization $\pmb \theta ( 0 )$
123
+
124
+ $$
125
+ \pmb { \theta } ( t + 1 ) = \pmb { \theta } ( t ) - \eta \nabla _ { \pmb { \theta } } \tilde { L } _ { \lambda } ^ { \mathrm { R D 1 } } ( \pmb { \theta } ( t ) ) , \quad t = 0 , 1 , 2 , . . .
126
+ $$
127
+
128
+ and gradient descent on $\tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \pmb \theta , \pmb b )$ with initialization $\pmb \theta ( 0 )$ and $\mathbf { \delta } \mathbf { b } ( 0 ) = \mathbf { 0 }$ :
129
+
130
+ $$
131
+ \begin{array} { r l } { \bar { \pmb \theta } ( 0 ) = \pmb \theta ( 0 ) , \quad \bar { \pmb \theta } ( t + 1 ) = \bar { \pmb \theta } ( t ) - \eta \nabla _ { \pmb \theta } \tilde { L } _ { \lambda } ^ { \mathrm { A U X } } ( \bar { \pmb \theta } ( t ) , { \pmb b } ( t ) ) , \quad t = 0 , 1 , 2 , . . . } \\ { { \pmb b } ( 0 ) = { \bf 0 } , \quad { \pmb b } ( t + 1 ) = { \pmb b } ( t ) - \eta \nabla _ { b } \tilde { L } _ { \lambda } ^ { \mathrm { A U X } } ( \bar { \pmb \theta } ( t ) , { \pmb b } ( t ) ) , \quad t = 0 , 1 , 2 , . . . } \end{array}
132
+ $$
133
+
134
+ Then we must have θptq “ θ¯ptq for all t. Furthermore, if the learning rate satisfies η ď 1}kpX,Xq}\`λ2 , then $\{ \pmb \theta ( t ) \}$ converges linearly to a limit solution $\pmb { \theta } ^ { * }$ such that:
135
+
136
+ $$
137
+ \phi ( { \pmb x } ) ^ { \top } ( { \pmb \theta } ^ { * } - { \pmb \theta } ( 0 ) ) = k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } { \pmb \tilde { y } } , \quad \forall { \pmb x } ,
138
+ $$
139
+
140
+ where $\tilde { \pmb { y } } = ( \tilde { y } _ { 1 } , \dots , \tilde { y } _ { n } ) ^ { \top } \in \mathbb { R } ^ { n }$
141
+
142
+ Proof sketch. The proof is given in Appendix B. A key step is to observe $\begin{array} { r } { \bar { \pmb \theta } ( t ) = \pmb \theta ( 0 ) + \sum _ { i = 1 } ^ { n } \frac { 1 } { \lambda } b _ { i } ( t ) } \end{array}$ $\phi ( { \pmb x } _ { i } )$ , from which we can show that $\{ \pmb \theta ( t ) \}$ and $\{ \bar { \pmb { \theta } } ( t ) \}$ follow the same update rule.
143
+
144
+ Theorem 4.1 indicates that gradient descent on the regularized objectives (3) and (4) both learn approximately the following function at the end of training when the neural net is sufficiently wide:\` ˘
145
+
146
+ If no regularization were used, the labels $\tilde { \pmb { y } }$ would be fitted perfectly and the learned function would be $k ( { \pmb x } , { \bf { \bar { X } } } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) \right) ^ { - 1 } { \tilde { \pmb y } }$ (c.f. (2)). Therefore the effect of regularization is to add $\lambda ^ { 2 } I$ to the kernel matrix, and (8) is known as the solution to kernel ridge regression in kernel literature. In Section 5, we give a generalization bound of this solution on the clean data distribution, which is comparable to the bound one can obtain even when clean labels are used in training.
147
+
148
+ Extension to multiple outputs. Suppose that the training dataset is $\{ ( \pmb { x } _ { i } , \tilde { \pmb { y } } _ { i } ) \} _ { i = 1 } ^ { n } \subset \mathbb { R } ^ { d } \times \mathbb { R } ^ { K }$ , an the neural net ${ f } ( \pmb \theta , \pmb x )$ has $K$ outputs. On top of the vanilla loss $\begin{array} { r } { L ( \pmb { \theta } ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \| \pmb { f } ( \pmb { \theta } , \pmb { x } _ { i } ) - \tilde { \pmb { y } } _ { i } \| ^ { 2 } } \end{array}$ the two regularization methods RDI and AUX give the following objectives similar to (3) and (4):
149
+
150
+ $$
151
+ L _ { \lambda } ^ { \mathsf { R D I } } ( \pmb \theta ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \| \pmb f ( \pmb \theta , \pmb x _ { i } ) - \tilde { \pmb y } _ { i } \| ^ { 2 } + \frac { \lambda ^ { 2 } } { 2 } \left\| \pmb \theta - \pmb \theta ( 0 ) \right\| ^ { 2 } ,
152
+ $$
153
+
154
+ $$
155
+ L _ { \lambda } ^ { \mathrm { A u x } } ( \pmb \theta , \pmb B ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } \| \pmb f ( \pmb \theta , \pmb x _ { i } ) + \lambda \pmb b _ { i } - \tilde { \pmb y } _ { i } \| ^ { 2 } , \quad \pmb B = \left( \pmb b _ { 1 } , \dots , \pmb b _ { n } \right) \in \mathbb { R } ^ { K \times n } .
156
+ $$
157
+
158
+ In the NTK regime, both methods lead to the kernel ridge regression solution at each output. Namely, letting $\tilde { \pmb { Y } } = \left( \tilde { \pmb { y } } _ { 1 } , \dots , \tilde { \pmb { y } } _ { n } \right) \in \mathbb { R } ^ { K \times n }$ be the training target matrix and $\tilde { \pmb y } ^ { ( h ) } \in \mathbb { R } ^ { n }$ be the $h$ -th row of $\tilde { Y }$ at the end of training the $h$ -th output of the network learns the following function:\` ˘
159
+
160
+ $$
161
+ \overset { \circ } { f } ^ { ( h ) } ( \pmb { x } ) = k ( \overset { \cdot } { \pmb { x } } , \pmb { X } ) ^ { \top } \left( k ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } \right) ^ { - 1 } \tilde { \pmb { y } } ^ { ( h ) } , \quad \overset { \circ } { h } \in [ K ] .
162
+ $$
163
+
164
+ # 5 GENERALIZATION GUARANTEE ON CLEAN DATA DISTRIBUTION
165
+
166
+ We show that gradient descent training on noisily labeled data with our regularization methods RDI or AUX leads to a generalization guarantee on the clean data distribution. As in Section 4, we consider the NTK regime and let $k ( \cdot , \cdot )$ be the NTK corresponding to the neural net. It suffices to analyze the kernel ridge regression predictor, i.e., (8) for single output and (9) for multiple outputs.
167
+
168
+ We start with a regression setting where labels are real numbers and the noisy label is the true label plus an additive noise (Theorem 5.1). Built on this result, we then provide generalization bounds for the classification settings described in Section 3.1. Omitted proofs in this section are in Appendix C.
169
+
170
+ Theorem 5.1 (Additive label noise). Let $\mathcal { D }$ be a distribution over $\mathbb { R } ^ { d } \times [ - 1 , 1 ]$ . Consider the following data generation process: $( i )$ draw $( \boldsymbol { x } , \boldsymbol { y } ) \sim \mathcal { D }$ , (ii) conditioned on $( { \pmb x } , y )$ , let $\varepsilon$ be drawn from a noise distribution $\mathcal { E } _ { x , y }$ over $\mathbb { R }$ that may depend on $_ { \textbf { \em x } }$ and $y$ , and (iii) let $\tilde { y } = y + \varepsilon$ . Suppose that $\mathcal { E } _ { x , y }$ has mean 0 and is subgaussian with parameter $\sigma > 0$ , for any $( { \pmb x } , y )$ .
171
+
172
+ Let $\{ ( \pmb { x } _ { i } , y _ { i } , \tilde { y } _ { i } ) \} _ { i = 1 } ^ { n }$ be i.i.d. samples from the above process. Denote $\pmb { X } = \left( \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { n } \right)$ , ${ \textbf { \em y } } =$ $( y _ { 1 } , \ldots , y _ { n } ) ^ { \top }$ and $\tilde { \pmb { y } } = ( \tilde { y } _ { 1 } , \dots , \tilde { y } _ { n } ) ^ { \top }$ . Consider the kernel ridge regression solution in (8): $f ^ { * } ( x ) =$ $k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } { \tilde { \pmb y } } .$ . Suppose that the kernel matrix satisfies $\operatorname { t r } [ k ( X , X ) ] = O ( n )$ . Then for any loss function $\ell : \mathbb { R } \times \mathbb { R } \to [ 0 , 1 ]$ that is 1-Lipschitz in the first argument such that $\ell ( y , \dot { y } ) = 0$ , with probability at least $1 - \delta$ we havec
173
+
174
+ $$
175
+ \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim \mathcal { D } } \left[ \ell ( \pmb { f } ^ { * } ( \pmb { x } ) , \pmb { y } ) \right] \leqslant \frac { \lambda + O ( 1 ) } { 2 } \sqrt { \frac { \pmb { y } ^ { \top } ( k ( \pmb { X } , \pmb { X } ) ) ^ { - 1 } \pmb { y } } { n } } + O \left( \frac { \sigma } { \lambda } \right) + \Delta ,
176
+ $$
177
+
178
+ $\begin{array} { r } { \Delta = O \left( \sigma \sqrt { \frac { \log \left( 1 / \delta \right) } { n } } + \frac { \sigma } { \lambda } \sqrt { \frac { \log \left( 1 / \delta \right) } { n } } + \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) . } \end{array}$
179
+
180
+ Remark 5.1. As the number of samples $n \to \infty$ , we have $\Delta 0$ . In order for the second term $O ( { \frac { \sigma } { \lambda } } )$ in (10) to go to $0$ , we need to choose $\lambda$ to grow with $n$ , e.g., $\lambda = n ^ { c }$ for some small constant $c > 0$ . Then, the only remaining term in (10) to worry about is ${ \frac { \lambda } { 2 } } { \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } }$ . Notice that it depends on the (unobserved) clean labels $\textbf { { y } }$ , instead of the noisy labels $\tilde { y }$ . By a very similar proof, one can show that training on the clean labels ´b ¯ $\textbf { { y } }$ (without regularization) leads to a population loss bound $O { \Big ( } { \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } } { \Big ) }$ . In comparison, we can see that even when there is label noise, we only lose a factor of $O ( \lambda )$ in the population loss on the clean distribution, which can be chosen as any slow-growing function of $n$ . If $\pmb { y } ^ { \top } ( k ( \pmb { X } , \pmb { X } ) ) ^ { - 1 } \pmb { y }$ grows much slower than $n$ , by choosing an appropriate $\lambda$ , our result indicates that the underlying distribution is learnable in presence of additive label noise. See Remark 5.2 for an example.
181
+
182
+ Remark 5.2. Arora et al. (2019b) proved that two-layer ReLU neural nets trained with gradient descent can learn a class of smooth functions on the unit sphere. Their proof is by showing $\pmb { y } ^ { \top } ( k ( \pmb { X } , \pmb { X } ) ) ^ { - 1 } \pmb { y } = O ( 1 )$ if $y _ { i } = g ( \pmb { x } _ { i } )$ ${ \check { \forall } } i \in [ n ] )$ for certain function $g$ , where $k ( \cdot , \cdot )$ is the NTK corresponding to two-layer ReLU nets. Combined with their result, Theorem 5.1 implies that the same class of functions can be learned by the same network even if the labels are noisy.
183
+
184
+ Next we use Theorem 5.1 to provide generalization bounds for the classification settings described in Section 3.1. For binary classification, we treat the labels as $\pm 1$ and consider a single-output neural net; for $K$ -class classification, we treat the labels as their one-hot encodings (which are $K$ standard unit vectors in $\mathbb { R } ^ { K }$ ) and consider a $K$ -output neural net. Again, we use $\ell _ { 2 }$ loss and wide neural nets so that it suffices to consider the kernel ridge regression solution ((8) or (9)).
185
+
186
+ Theorem 5.2 (Binary classification). Consider the binary classification setting stated in Section 3.1. Let $\{ ( \pmb { x } _ { i } , y _ { i } , \tilde { y } _ { i } ) \} _ { i = 1 } ^ { n } \overset { \cdot } { \subset } \mathbb { R } ^ { d } \times \{ \pm 1 \} \times \{ \pm 1 \}$ be i.i.d. samples from that process. Recall that $\mathrm { P r } [ \tilde { y } _ { i } \neq$ $y _ { i } | y _ { i } ] = p$ $\begin{array} { r } { 0 \leqslant p < \frac { 1 } { 2 } , } \end{array}$ ). Denote $\pmb { X } = \left( \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { n } \right)$ , $\pmb { y } = ( y _ { 1 } , \dots , y _ { n } ) ^ { \top }$ and \` $\tilde { \pmb { y } } = ( \tilde { y } _ { 1 } , \dots , \tilde { y } _ { n } ) ^ { \top }$ . Consider the kernel ridge regression solution in (8): $f ^ { * } ( { \pmb x } ) = k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } \tilde { \pmb y }$ . Suppose that the kernel matrix satisfies $\operatorname { t r } [ k ( X , X ) ] = O ( n )$ . Then with probability at least $1 - \delta$ , the classification error of $f ^ { * }$ on the clean distribution c $\mathcal { D }$ satisfies
187
+
188
+ $$
189
+ \operatorname* { P r } _ { \substack { v , y \sim \widetilde { D } } } [ \mathrm { s g n } ( f ^ { * } ( x ) ) \neq y ] \leqslant \frac { \lambda + O ( 1 ) } { 2 } \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } + \frac { 1 } { 1 - 2 p } O \left( \frac { \sqrt { p } } { \lambda } + \sqrt { \frac { p \log \frac { 1 } { \delta } } { n } } + \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) .
190
+ $$
191
+
192
+ Theorem 5.3 (Multi-class classification). Consider the $K$ -class classification setting stated in Section 3.1. Let $\{ ( \pmb { x } _ { i } , \pmb { c } _ { i } , \tilde { \pmb { c } _ { i } } ) \} _ { i = 1 } ^ { n } \subset \mathbb { R } ^ { d } \times [ K ] \times [ K ]$ be i.i.d. samples from that process. Recall that $\mathrm { P r } [ \tilde { c } _ { i } = c ^ { \prime } | c _ { i } = c ] = p _ { c ^ { \prime } , c } ( \forall c , c ^ { \prime } \in [ K ] ) ,$ , where the transition probabilities form a matrix $\pmb { P } \in \mathbb { R } ^ { K \times K }$ . $\begin{array} { r } { L e t \mathsf { g a p } = \operatorname* { m i n } _ { c , c ^ { \prime } \in [ K ] , c \neq c ^ { \prime } } ( p _ { c , c } - p _ { c ^ { \prime } , c } ) . } \end{array}$ .
193
+
194
+ Let $\pmb { X } = ( \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { n } )$ , and let $\pmb { y } _ { i } = \pmb { e } ^ { ( c _ { i } ) } \in \mathbb { R } ^ { K }$ , $\tilde { \pmb { y } } _ { i } = \pmb { e } ^ { ( \tilde { c } _ { i } ) } \in \mathbb { R } ^ { K }$ be one-hot label encodings. Denote $\pmb { Y } = ( \pmb { y } _ { 1 } , \dots , \pmb { y } _ { n } ) \in \mathbb { R } ^ { K \times n }$ , $\tilde { \pmb { Y } } = ( \tilde { \pmb { y } } _ { 1 } , \dots , \tilde { \pmb { y } } _ { n } ) \in \mathbb { R } ^ { K \times n }$ , and let $\tilde { \pmb y } ^ { ( h ) } \in \mathbb { R } ^ { n }$ be the $h$ -th row of $\tilde { \mathbf { Y } }$ . Define a matrix $Q = P \cdot Y \in \mathbb { R } ^ { K \times n }$ , and let $\pmb q ^ { ( h ) } \in \mathbb { R } ^ { n }$ be the $h$ -th row of $Q$ .
195
+
196
+ Consider the kernel ridge regression solution in (9): $f ^ { ( h ) } ( { \pmb x } ) = k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } \tilde { \pmb y } ^ { ( h ) }$ . Suppose that the kernel matrix satisfies $\operatorname { t r } [ k ( X , X ) ] = O ( n )$ . Then with probability at least $1 - \delta$ , the classification error of $\pmb { f } = ( f ^ { ( h ) } ) _ { k = 1 } ^ { K }$ on the clean data distribution $\mathcal { D }$ is bounded as
197
+
198
+ ![](images/7537c94aaa9bd3f1bfd70c5a6a1e5facc5cf753d7b19bfbf79046d57acdf19ed.jpg)
199
+
200
+ (a) Test error vs. noise level for Setting 1. For each noise level, we do a grid search for $\lambda$ and report the best accuracy.
201
+
202
+ ![](images/3b1ecffa19f60959b0e172d180726aceb4d7bc33072f485ffe56f456abf01a10.jpg)
203
+ (b) Training (dashed) & test (solid) errors vs. epoch for Setting 2. Noise rate $= 2 0 \%$ , $\lambda = 4$ . Training error of AUX is measured with auxiliary variables.
204
+
205
+ Figure 1: Performance on binary classification using $\ell _ { 2 }$ loss. Setting 1: MNIST; Setting 2: CIFAR.
206
+
207
+ $$
208
+ \begin{array} { c } { { \displaystyle \operatorname* { P r } _ { ( \alpha , c ) \sim \mathcal { D } } \left[ c \not \in \mathrm { a r g m a x } _ { h \in [ K ] } f ^ { ( h ) } ( x ) \right] } } \\ { { \displaystyle \leqslant \frac { 1 } { \mathsf { g a p } } \left( \frac { \lambda + O ( 1 ) } { 2 } \sum _ { h = 1 } ^ { K } \sqrt { \frac { ( q ^ { ( h ) } ) ^ { \top } ( k ( X , X ) ) ^ { - 1 } q ^ { ( h ) } } { n } } + K \cdot O \left( \frac { 1 } { \lambda } + \sqrt { \frac { \log \frac { 1 } { \delta ^ { \prime } } } { n } } + \sqrt { \frac { \log \frac { n } { \delta ^ { \prime } \lambda } } { n } } \right) \right) . } } \end{array}
209
+ $$
210
+
211
+ Note that the bounds in Theorems 5.2 and 5.3 only depend on the clean labels instead of the noisy labels, similar to Theorem 5.1.
212
+
213
+ # 6 EXPERIMENTS
214
+
215
+ In this section, we empirically verify the effectiveness of our regularization methods RDI and AUX, and compare them against gradient descent or stochastic gradient descent (GD/SGD) with or without early stopping. We experiment with three settings of increasing complexities:
216
+
217
+ Setting 1: Binary classification on MNIST (“5” vs. “8”) using a two-layer wide fully-connected net.
218
+
219
+ Setting 2: Binary classification on CIFAR (“airplanes” vs. “automobiles”) using a 11-layer convolutional neural net (CNN).
220
+
221
+ Setting 3: CIFAR-10 classification (10 classes) using standard ResNet-34.
222
+
223
+ For detailed description see Appendix D. We obtain noisy labels by randomly corrupting correct labels, where noise rate/level is the fraction of corrupted labels (for CIFAR-10, a corrupted label is chosen uniformly from the other 9 classes.)
224
+
225
+ # 6.1 PERFORMANCE OF REGULARIZATION METHODS
226
+
227
+ For Setting 1 (binary MNIST), we plot the test errors of different methods under different noise rates in Figure 1a. We observe that both methods $\mathrm { G D + A U X }$ and $\mathrm { G D + R D I }$ consistently achieve much lower test error than vanilla GD which over-fits the noisy dataset, and they achieve similar test error to GD with early stopping. We see that $\mathtt { G D + A U X }$ and $\mathrm { G D + R D I }$ have essentially the same performance, which verifies our theory of their equivalence in wide networks (Theorem 4.1).
228
+
229
+ For Setting 2 (binary CIFAR), Figure 1b shows the learning curves (training and test errors) of SGD, $\mathrm { S G D + A U X }$ and $\mathrm { S G D + R D I }$ for noise rate $2 0 \%$ and $\lambda = 4$ . Additional figures for other choices of $\lambda$ are in Figure 5. We again observe that both $\mathrm { S G D + A U X }$ and $\mathrm { S G D + R D I }$ outperform vanilla SGD and are comparable to SGD with early stopping. We also observe a discrepancy between $\mathrm { S G D + A U X }$ and $\mathrm { S G D + R D I }$ , possibly due to the noise in SGD or the finite width.
230
+
231
+ Finally, for Setting 3 (CIFAR-10), Table 1 shows the test accuracies of training with and without AUX. We train with both mean square error $\mathrm { ( M S E / \ell _ { 2 } }$ loss) and categorical cross entropy (CCE) loss. For normal training without AUX, we report the test accuracy at the epoch where validation accuracy is maximum (early stopping). For training with AUX, we report the test accuracy at the last epoch as well as the best epoch. Figure 2 shows the training curves for noise rate 0.4. We observe that training with AUX achieves very good test accuracy – even better than the best accuracy of normal training with early stopping, and better than the recent method of Zhang and Sabuncu (2018) using the same architecture (ResNet-34). Furthermore, AUX does not over-fit (the last epoch performs similarly to the best epoch). In addition, we find that in this setting classification performance is insensitive of whether MSE or CCE is used as the loss function.
232
+
233
+ Table 1: CIFAR-10 test accuracies of different methods under different noise rates.
234
+
235
+ <table><tr><td rowspan=1 colspan=1>Noise rate</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.6</td></tr><tr><td rowspan=1 colspan=1>Normal CCE (earlystop)</td><td rowspan=1 colspan=1>94.05±0.07</td><td rowspan=1 colspan=1>89.73±0.43</td><td rowspan=1 colspan=1>86.35±0.47</td><td rowspan=1 colspan=1>79.13±0.41</td></tr><tr><td rowspan=1 colspan=1>Normal MSE (early stop)</td><td rowspan=1 colspan=1>93.88±0.37</td><td rowspan=1 colspan=1>89.96±0.13</td><td rowspan=1 colspan=1>85.92±0.32</td><td rowspan=1 colspan=1>78.68±0.56</td></tr><tr><td rowspan=1 colspan=1>CCE+AUX (last)</td><td rowspan=1 colspan=1>94.22±0.10</td><td rowspan=1 colspan=1>92.07±0.10</td><td rowspan=1 colspan=1>87.81±0.37</td><td rowspan=1 colspan=1>82.60±0.29</td></tr><tr><td rowspan=1 colspan=1>CCE+AUX (best)</td><td rowspan=1 colspan=1>94.30±0.09</td><td rowspan=1 colspan=1>92.16±0.08</td><td rowspan=1 colspan=1>88.61±0.14</td><td rowspan=1 colspan=1>82.91±0.22</td></tr><tr><td rowspan=1 colspan=1>MSE+AUX (last)</td><td rowspan=1 colspan=1>94.25±0.10</td><td rowspan=1 colspan=1>92.31±0.18</td><td rowspan=1 colspan=1>88.92±0.30</td><td rowspan=1 colspan=1>83.90±0.30</td></tr><tr><td rowspan=1 colspan=1>MSE+AUX(best)</td><td rowspan=1 colspan=1>94.32±0.06</td><td rowspan=1 colspan=1>92.40±0.18</td><td rowspan=1 colspan=1>88.95±0.31</td><td rowspan=1 colspan=1>83.95±0.30</td></tr><tr><td rowspan=1 colspan=1>(Zhang and Sabuncu, 2018)</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>89.83±0.20</td><td rowspan=1 colspan=1>87.62±0.26</td><td rowspan=1 colspan=1>82.70±0.23</td></tr></table>
236
+
237
+ ![](images/dafd1e57d46a3bf8c0ca3876b747c6b30bc67ce38ed01a130159a468c82a6938.jpg)
238
+ Figure 2: Test accuracy during CIFAR-10 training (noise 0.4).
239
+
240
+ ![](images/222b9d81796a0a530a4307273a0af4ab819b89c86dad6ad4a37c0bd98634fa9f.jpg)
241
+ Figure 3: Setting 2, $\| \mathbf { W } ^ { ( 4 ) } \| _ { F }$ and $\lVert W ^ { ( 4 ) } - W ^ { ( 4 ) } ( 0 ) \rVert _ { F }$ during training. Noise $= 2 0 \%$ , $\lambda = 4$
242
+
243
+ # 6.2 DISTANCE OF WEIGHTS TO INITIALIZATION, VERIFICATION OF THE NTK REGIME
244
+
245
+ We also track how much the weights move during training as a way to see whether the neural net is in the NTK regime. For Settings 1 and 2, we find that the neural nets are likely in or close to the NTK regime because the weight movements are small during training. Figure 3 shows in Setting 2 how much the 4-th layer weights move during training. Additional figures are provided as Figures 6 to 8.
246
+
247
+ Table 2 summarizes the relationship between the distance to initialization and other hyper-parameters that we observe from various experiments. Note that the weights tend to move more with larger noise level, and AUX and RDI can reduce the moving distance as expected (as shown in Figure 3).
248
+
249
+ The ResNet-34 in Setting 3 is likely not operating in the NTK regime, so its effectiveness cannot yet be explained by our theory. This is an intriguing direction of future work.
250
+
251
+ Table 2: Relationship between distance to initialization at convergence and other hyper-parameters. “Õ”: positive correlation; $\tilde { \mathbf { \Gamma } } ^ { 6 6 } \dot { \mathbf { \Gamma } } \searrow \ '$ : negative correlation; ‘—’: no correlation as long as width is sufficiently large and learning rate is sufficiently small.
252
+
253
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1># samples</td><td rowspan=1 colspan=1>noise level</td><td rowspan=1 colspan=1>width</td><td rowspan=1 colspan=1>regularizationstrength 入</td><td rowspan=1 colspan=1>learning rate</td></tr><tr><td rowspan=1 colspan=1>Distance</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></table>
254
+
255
+ # 7 CONCLUSION
256
+
257
+ Towards understanding generalization of deep neural networks in presence of noisy labels, this paper presents two simple regularization methods and shows that they are theoretically and empirically effective. The theoretical analysis relies on the correspondence between neural networks and NTKs. We believe that a better understanding of such correspondence could help the design of other principled methods in practice. We also observe that our methods can be effective outside the NTK regime. Explaining this theoretically is left for future work.
258
+
259
+ # ACKNOWLEDGMENTS
260
+
261
+ This work is supported by NSF, ONR, Simons Foundation, Schmidt Foundation, Mozilla Research, Amazon Research, DARPA and SRC. The authors thank Sanjeev Arora for helpful discussions and suggestions. The authors thank Amazon Web Services for cloud computing time.
262
+
263
+ # REFERENCES
264
+
265
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Yingyu Liang. Learning and generalization in overparameterized neural networks, going beyond two layers. arXiv preprint arXiv:1811.04918, 2018a.
266
+
267
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via overparameterization. arXiv preprint arXiv:1811.03962, 2018b.
268
+
269
+ Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, Ruslan Salakhutdinov, and Ruosong Wang. On exact computation with an infinitely wide neural net. arXiv preprint arXiv:1904.11955, 2019a.
270
+
271
+ Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. arXiv preprint arXiv:1901.08584, 2019b.
272
+
273
+ Peter L Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. Journal of Machine Learning Research, 3(Nov):463–482, 2002.
274
+
275
+ Frank Bauer, Sergei Pereverzev, and Lorenzo Rosasco. On regularization algorithms in learning theory. Journal of complexity, 23(1):52–72, 2007.
276
+
277
+ Yuan Cao and Quanquan Gu. A generalization theory of gradient descent for learning overparameterized deep relu networks. arXiv preprint arXiv:1902.01384, 2019.
278
+
279
+ Lenaic Chizat and Francis Bach. A note on lazy training in supervised differentiable programming. arXiv preprint arXiv:1812.07956, 2018.
280
+
281
+ Simon S Du, Wei Hu, and Jason D Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. In Advances in Neural Information Processing Systems 31, pages 382–393. 2018a.
282
+
283
+ Simon S Du, Jason D Lee, Haochuan Li, Liwei Wang, and Xiyu Zhai. Gradient descent finds global minima of deep neural networks. arXiv preprint arXiv:1811.03804, 2018b.
284
+
285
+ Simon S Du, Kangcheng Hou, Barnabás Póczos, Ruslan Salakhutdinov, Ruosong Wang, and Keyulu Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. arXiv preprint arXiv:1905.13192, 2019a.
286
+
287
+ Simon S. Du, Xiyu Zhai, Barnabas Poczos, and Aarti Singh. Gradient descent provably optimizes over-parameterized neural networks. In International Conference on Learning Representations, 2019b.
288
+
289
+ L Lo Gerfo, Lorenzo Rosasco, Francesca Odone, E De Vito, and Alessandro Verri. Spectral algorithms for supervised learning. Neural Computation, 20(7):1873–1897, 2008.
290
+
291
+ Aritra Ghosh, Himanshu Kumar, and PS Sastry. Robust loss functions under label noise for deep neural networks. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
292
+
293
+ Melody Y Guan, Varun Gulshan, Andrew M Dai, and Geoffrey E Hinton. Who said what: Modeling individual labelers improves classification. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
294
+
295
+ Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, pages 8527–8537, 2018.
296
+
297
+ Daniel Hsu, Sham Kakade, Tong Zhang, et al. A tail inequality for quadratic forms of subgaussian random vectors. Electronic Communications in Probability, 17, 2012.
298
+
299
+ Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. arXiv preprint arXiv:1806.07572, 2018.
300
+
301
+ Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning data-driven curriculum for very deep neural networks on corrupted labels. arXiv preprint arXiv:1712.05055, 2017.
302
+
303
+ Ranjay A Krishna, Kenji Hata, Stephanie Chen, Joshua Kravitz, David A Shamma, Li Fei-Fei, and Michael S Bernstein. Embracing error to enable rapid crowdsourcing. In Proceedings of the 2016 CHI conference on human factors in computing systems, pages 3167–3179. ACM, 2016.
304
+
305
+ Jaehoon Lee, Lechao Xiao, Samuel S Schoenholz, Yasaman Bahri, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. arXiv preprint arXiv:1902.06720, 2019.
306
+
307
+ Mingchen Li, Mahdi Soltanolkotabi, and Samet Oymak. Gradient descent with early stopping is provably robust to label noise for overparameterized neural networks. arXiv preprint arXiv:1903.11680, 2019.
308
+
309
+ Yuanzhi Li and Yingyu Liang. Learning overparameterized neural networks via stochastic gradient descent on structured data. arXiv preprint arXiv:1808.01204, 2018.
310
+
311
+ Tongliang Liu and Dacheng Tao. Classification with noisy labels by importance reweighting. IEEE Transactions on pattern analysis and machine intelligence, 38(3):447–461, 2015.
312
+
313
+ Eran Malach and Shai Shalev-Shwartz. Decoupling" when to update" from" how to update". In Advances in Neural Information Processing Systems, pages 960–970, 2017.
314
+
315
+ Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of machine learning. MIT Press, 2012.
316
+
317
+ Vaishnavh Nagarajan and J Zico Kolter. Generalization in deep networks: The role of distance from initialization. arXiv preprint arXiv:1901.01672, 2019.
318
+
319
+ Behnam Neyshabur, Zhiyuan Li, Srinadh Bhojanapalli, Yann LeCun, and Nathan Srebro. The role of over-parametrization in generalization of neural networks. In International Conference on Learning Representations, 2019.
320
+
321
+ Garvesh Raskutti, Martin J Wainwright, and Bin Yu. Early stopping and non-parametric regression: an optimal data-dependent stopping rule. The Journal of Machine Learning Research, 15(1): 335–366, 2014.
322
+
323
+ Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. arXiv preprint arXiv:1803.09050, 2018.
324
+
325
+ David Rolnick, Andreas Veit, Serge Belongie, and Nir Shavit. Deep learning is robust to massive label noise. arXiv preprint arXiv:1705.10694, 2017.
326
+
327
+ Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. arXiv preprint arXiv:1406.2080, 2014.
328
+
329
+ Yuting Wei, Fanny Yang, and Martin J Wainwright. Early stopping for kernel boosting algorithms: A general analysis with localized complexities. In Advances in Neural Information Processing Systems, pages 6065–6075, 2017.
330
+
331
+ Greg Yang. Scaling limits of wide neural networks with weight sharing: Gaussian process behavior, gradient independence, and neural tangent kernel derivation. arXiv preprint arXiv:1902.04760, 2019.
332
+
333
+ Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In International Conference on Machine Learning, pages 7164–7173, 2019.
334
+
335
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In Proceedings of the International Conference on Learning Representations (ICLR), 2017, 2017.
336
+
337
+ Zhilu Zhang and Mert Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, pages 8778–8788, 2018.
338
+
339
+ Difan Zou, Yuan Cao, Dongruo Zhou, and Quanquan Gu. Stochastic gradient descent optimizes over-parameterized deep ReLU networks. arXiv preprint arXiv:1811.08888, 2018.
340
+
341
+ # A DIFFERENCE TRICK
342
+
343
+ We give a quick analysis of the “difference trick” described in Footnote 2, i.e., let $f ( { \pmb \theta } , { \pmb x } ) ~ =$ $\begin{array} { r l r } { { \frac { \sqrt { 2 } } { 2 } g ( \pmb { \theta } _ { 1 } , \pmb { x } ) - \frac { \sqrt { 2 } } { 2 } g ( \pmb { \theta } _ { 2 } , \pmb { x } ) } } \end{array}$ where mma im $\pmb { \theta } = ( \pmb { \theta } _ { 1 } , \pmb { \theta } _ { 2 } )$ , and initi NTKs for ize an $\pmb { \theta } _ { 1 }$ and are t $\pmb { \theta } _ { 2 }$ to be the same (and still same. $f$ $g$
344
+
345
+ Lemma A.1. If $\pmb { \theta } _ { 1 } ( 0 ) = \pmb { \theta } _ { 2 } ( 0 )$ , then
346
+
347
+ (i) $\begin{array} { r } { f ( \pmb { \theta } ( 0 ) , \pmb { x } ) = 0 , \forall \pmb { x } , } \end{array}$
348
+
349
+ $$
350
+ \begin{array} { r } { ( i i ) \ \langle \nabla _ { \theta } f ( \theta ( 0 ) , x ) , \nabla _ { \theta } f ( \theta ( 0 ) , x ^ { \prime } ) \rangle = \langle \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ) , \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ^ { \prime } ) \rangle , \forall x , x ^ { \prime } . } \end{array}
351
+ $$
352
+
353
+ Proof. (i) holds by definition. For (ii), we can calculate that
354
+
355
+ $$
356
+ \begin{array} { r l } & { \quad \left. \nabla _ { \theta } f ( \theta ( 0 ) , x ) , \nabla _ { \theta } f ( \theta ( 0 ) , x ^ { \prime } ) \right. } \\ & { = \left. \nabla _ { \theta _ { 1 } } f ( \theta ( 0 ) , x ) , \nabla _ { \theta _ { 1 } } f ( \theta ( 0 ) , x ^ { \prime } ) \right. + \left. \nabla _ { \theta _ { 2 } } f ( \theta ( 0 ) , x ) , \nabla _ { \theta _ { 2 } } f ( \theta ( 0 ) , x ^ { \prime } ) \right. } \\ & { = \displaystyle \frac { 1 } { 2 } \left. \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ) , \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ) \right. + \displaystyle \frac { 1 } { 2 } \left. \nabla _ { \theta _ { 2 } } g ( \theta _ { 2 } ( 0 ) , x ) , \nabla _ { \theta _ { 2 } } g ( \theta _ { 2 } ( 0 ) , x ^ { \prime } ) \right. } \\ & { = \left. \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ) , \nabla _ { \theta _ { 1 } } g ( \theta _ { 1 } ( 0 ) , x ^ { \prime } ) \right. . } \end{array}
357
+ $$
358
+
359
+ The above lemma allows us to ensure zero output at initialization while preserving NTK. As a comparison, Chizat and Bach (2018) proposed the following "doubling trick": neurons in the last layer are duplicated, with the new neurons having the same input weights and opposite output weights. This satisfies zero output at initialization, but destroys the NTK. To see why, note that with the “doubling trick", the network will output 0 at initialization no matter what the input to its second to last layer is. Thus the gradients with respect to all parameters that are not in the last two layers are 0.
360
+
361
+ In our experiments, we observe that the performance of the neural net improves with the “difference trick.” See Figure 4. This intuitively makes sense, since the initial network output is independent of the label (only depends on the input) and thus can be viewed as noise. When the width of the neural net is infinity, the initial network output is actually a zero-mean Gaussian process, whose covariance matrix is equal to the NTK contributed by the gradients of parameters in its last layer. Therefore, learning an infinitely wide neural network with nonzero initial output is equivalent to doing kernel regression with an additive correlated Gaussian noise on training and testing labels.
362
+
363
+ ![](images/582a5be651ca698a49cd2364c39a2a899c51c35bca97ccc115d50f6c39ed7b14.jpg)
364
+
365
+ Figure 4: Plot of test error for fully connected two-layer network on MNIST (binary classification between $\ddot { } 5 \ '$ and “8”) with difference trick and different mixing coefficients b $\alpha$ , where ${ \bf \dot { \boldsymbol { f } } } ( \pmb { \theta } _ { 1 } , \pmb { \theta } _ { 2 } , \pmb { x } ) =$ $\sqrt { \textstyle \frac { \alpha } { 2 } } g ( \pmb { \theta } _ { 1 } , \pmb { x } ) - \sqrt { \textstyle \frac { 1 - \alpha } { 2 } } g ( \pmb { \theta } _ { 1 } , \pmb { x } )$ . Note that this parametrization preserves the NTK. The network has 10,000 hidden neurons and we train both layers with gradient descent with fixed learning rate for 5,000 steps. The training loss is less than 0.0001 at the time of stopping. We observe that when $\alpha$ increases, the test error drops because the scale of the initial output of the network goes down.
366
+
367
+ # B MISSING PROOF IN SECTION 4
368
+
369
+ Proof of Theorem 4.1. The gradient of $\tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \pmb \theta , \pmb b )$ can be written as
370
+
371
+ $$
372
+ \begin{array} { r } { \nabla _ { \pmb { \theta } } \tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \pmb { \theta } , \pmb { b } ) = \sum _ { i = 1 } ^ { n } a _ { i } \phi ( \pmb { x } _ { i } ) , \quad \nabla _ { b _ { i } } \tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \pmb { \theta } , \pmb { b } ) = \lambda a _ { i } , \quad i = 1 , \ldots , n , } \end{array}
373
+ $$
374
+
375
+ where ř $a _ { i } \ = \ \phi ( { \pmb x } _ { i } ) ^ { \top } ( { \pmb \theta } \ - \ { \pmb \theta } ( 0 ) ) + \lambda b _ { i } - \tilde { y } _ { i } ( i \ \in \ [ n ] )$ . Therefore we have $\nabla _ { \pmb { \theta } } \tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \pmb { \theta } , \pmb { b } ) \ =$ $\begin{array} { r } { \sum _ { i = 1 } ^ { n } \frac { 1 } { \lambda } \nabla _ { b _ { i } } \tilde { L } _ { \lambda } ^ { \mathsf { A U X } } ( \theta , b ) \cdot \phi ( { \boldsymbol x } ) } \end{array}$ . Then, according to the gradient descent update rule (7), we know thatřn $ { \bar { \theta } } ( t )$ and $\mathbf { } _ { \mathbf { } } \mathbf { } _ { \mathbf { } } \mathbf { } _ { \mathbf { } } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf { } \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf { } \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf { } \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf \Psi \Psi \Psi \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf \Psi \Psi \mathbf { } \mathbf \Psi \Psi \mathbf \Psi \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \Psi \mathbf \Psi \mathbf \Psi \Psi \mathbf \Psi \mathbf \Psi \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \mathbf \Psi \Psi \mathbf \mathbf \Psi \mathbf \Psi \mathbf \Psi \mathbf \mathbf \Psi \Psi \mathbf \mathbf \Psi \mathbf \mathbf \Psi \mathbf \mathbf \Psi \mathbf \mathbf \Psi \mathbf \mathbf \Psi \mathbf \mathbf \Psi \mathbf \Psi \mathbf $ can always be related by $\begin{array} { r } { \bar { \pmb \theta } ( t ) = \pmb \theta ( 0 ) + \sum _ { i = 1 } ^ { n } \frac { 1 } { \lambda } b _ { i } ( t ) \cdot \pmb \phi ( \pmb x _ { i } ) } \end{array}$ . It follows that
376
+
377
+ $$
378
+ \begin{array} { r l } & { \bar { \theta } ( t + 1 ) = \bar { \theta } ( t ) - \eta \sum _ { i = 1 } ^ { n } \left( \phi ( { \pmb x } _ { i } ) ^ { \top } ( \bar { \theta } ( t ) - \theta ( 0 ) ) + \lambda b _ { i } ( t ) - \tilde { y } _ { i } \right) \phi ( { \pmb x } _ { i } ) } \\ & { \qquad = \bar { \theta } ( t ) - \eta \sum _ { i = 1 } ^ { n } \left( \phi ( { \pmb x } _ { i } ) ^ { \top } ( \bar { \theta } ( t ) - \theta ( 0 ) ) - \tilde { y } _ { i } \right) \phi ( { \pmb x } _ { i } ) - \eta \lambda \sum _ { i = 1 } ^ { n } b _ { i } ( t ) \phi ( { \pmb x } _ { i } ) } \\ & { \qquad = \bar { \theta } ( t ) - \eta \sum _ { i = 1 } ^ { n } \left( \phi ( { \pmb x } _ { i } ) ^ { \top } ( \bar { \theta } ( t ) - \theta ( 0 ) ) - \tilde { y } _ { i } \right) \phi ( { \pmb x } _ { i } ) - \eta \lambda ^ { 2 } ( \bar { \theta } ( t ) - \theta ( 0 ) ) . } \end{array}
379
+ $$
380
+
381
+ On the other hand, from (6) we have
382
+
383
+ $$
384
+ \theta ( t + 1 ) = \theta ( t ) - \eta \sum _ { i = 1 } ^ { n } \left( \phi ( x _ { i } ) ^ { \top } ( \theta ( t ) - \theta ( 0 ) ) - \tilde { y } _ { i } \right) \phi ( x _ { i } ) - \eta \lambda ^ { 2 } ( \theta ( t ) - \theta ( 0 ) ) .
385
+ $$
386
+
387
+ Comparing the above two equations, we find that $\{ \pmb \theta ( t ) \}$ and $\{ \bar { \pmb { \theta } } ( t ) \}$ have the same update rule. Since $\pmb { \theta } ( 0 ) \overset { \cdot } { = } \bar { \pmb { \theta } } ( 0 )$ , this proves $\pmb { \theta } ( \mathbf { \hat { \eta } } _ { t } ) = \bar { \pmb { \theta } } ( t )$ for all $t$ .
388
+
389
+ Now we prove the second part of the theorem. Notice that ř $\tilde { L } _ { \lambda } ^ { \mathsf { R D I } } ( \pmb { \theta } )$ is a strongly convex quadratic function with Hessian $\begin{array} { r } { \nabla _ { \pmb { \theta } } ^ { 2 } \tilde { L } _ { \lambda } ^ { \mathrm { R D I } } ( \pmb { \theta } ) \ = \ \sum _ { i = 1 } ^ { n } \phi ( { \pmb x } _ { i } ) \phi ( { \pmb x } _ { i } ) ^ { \top } \ + \ \lambda ^ { 2 } \pmb { I } \ = \ Z Z ^ { \top } + \ \lambda ^ { 2 } \pmb { I } , } \end{array}$ , where $z =$ $( \phi ( \pmb { x } _ { 1 } ) , \dots , \phi ( \pmb { x } _ { n } ) )$ . From the classical convex optimization theory, as long as $\begin{array} { r } { \eta \leqslant \frac { 1 } { \| Z Z ^ { \top } + \lambda ^ { 2 } I \| } = } \end{array}$ $\frac { 1 } { \| Z ^ { \top } Z + \lambda ^ { 2 } I \| } ~ = ~ \frac { 1 } { \| k ( X , X ) \| + \lambda ^ { 2 } } ~$ “ 1}kpX,Xq}\`λ2 , gradient descent converges linearly to the unique optimum θ˚ of $\tilde { L } _ { \lambda } ^ { \mathsf { R D I } } ( \pmb { \theta } )$ , which can be easily obtained:
390
+
391
+ $$
392
+ \pmb { \theta } ^ { * } = \pmb { \theta } ( 0 ) + \pmb { Z } ( k ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } ) ^ { - 1 } \tilde { \pmb { y } } .
393
+ $$
394
+
395
+ Then we have
396
+
397
+ $$
398
+ \phi ( { \pmb x } ) ^ { \top } ( { \pmb \theta } ^ { * } - { \pmb \theta } ( { \bf 0 } ) ) = \phi ( { \pmb x } ) ^ { \top } { \pmb Z } ( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } ) ^ { - 1 } { \tilde { \pmb y } } = k ( { \pmb x } , { \pmb X } ) ^ { \top } \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } { \tilde { \pmb y } } ,
399
+ $$
400
+
401
+ finishing the proof.
402
+
403
+ # C MISSING PROOFS IN SECTION 5
404
+
405
+ # C.1 PROOF OF THEOREM 5.1
406
+
407
+ Define $\varepsilon _ { i } = \tilde { y } _ { i } - y _ { i }$ $( i \in [ n ] )$ , and $\pmb { \varepsilon } = ( \varepsilon _ { 1 } , \ldots , \varepsilon _ { n } ) ^ { \top } = \tilde { \pmb { y } } - \pmb { y }$
408
+
409
+ We first prove two lemmas.
410
+
411
+ Lemma C.1. With probability at least $1 - \delta$ , we have
412
+
413
+ $$
414
+ \sqrt { \sum _ { i = 1 } ^ { n } \left( f ^ { * } ( { \pmb x } _ { i } ) - y _ { i } \right) ^ { 2 } \leqslant \frac { \lambda } { 2 } \sqrt { { \pmb y } ^ { \top } ( k ( { \pmb X } , { \pmb X } ) ) ^ { - 1 } { \pmb y } } + \frac { \sigma } { 2 \lambda } \sqrt { \mathrm { t r } [ k ( { \pmb X } , { \pmb X } ) ] } + \sigma \sqrt { 2 \log ( 1 / \delta ) } } .
415
+ $$
416
+
417
+ Proof. In this proof we are conditioned on $\boldsymbol { X }$ and $\textbf { { y } }$ , and only consider the randomness in $\tilde { \pmb { y } }$ given $\boldsymbol { X }$ and $\textbf { { y } }$ .
418
+
419
+ First of all, we can write
420
+
421
+ $$
422
+ \left( f ^ { * } ( \pmb { x } _ { 1 } ) , \ldots , f ^ { * } ( \pmb { x } _ { n } ) \right) ^ { \top } = k ( \pmb { X } , \pmb { X } ) \left( k ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } \right) ^ { - 1 } \pmb { \tilde { y } } ,
423
+ $$
424
+
425
+ so we can write the training loss on true labels $\textbf { { y } }$ as
426
+
427
+ $$
428
+ \begin{array} { r l } { { \sqrt { \sum _ { i = 1 } ^ { n } ( f ^ { * } ( \boldsymbol { x } _ { i } ) - y _ { i } ) ^ { 2 } } = \| k ( \boldsymbol { X } , \boldsymbol { X } ) ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } \tilde { \boldsymbol { y } } - \boldsymbol { y } \| } } \\ & { = \| k ( \boldsymbol { X } , \boldsymbol { X } ) ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } ( \boldsymbol { y } + \varepsilon ) - \boldsymbol { y } \| } \\ & { = \| k ( \boldsymbol { X } , \boldsymbol { X } ) ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } \varepsilon - \lambda ^ { 2 } ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } \boldsymbol { y } \| } \\ & { \leqslant \| k ( \boldsymbol { X } , \boldsymbol { X } ) ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } \varepsilon \| + \lambda ^ { 2 } \| ( k ( \boldsymbol { X } , \boldsymbol { X } ) + \lambda ^ { 2 } \boldsymbol { I } ) ^ { - 1 } \boldsymbol { y } \| . } \end{array}
429
+ $$
430
+
431
+ Next, since $\varepsilon$ , conditioned on $\boldsymbol { X }$ and $\textbf { { y } }$ , has independent and subgaussian entries (with parameter $\sigma$ ), by (Hsu et al., 2012), for any symmetric matrix $\pmb { A }$ , with probability at least $1 - \delta$ ,
432
+
433
+ $$
434
+ \| A \pmb { \varepsilon } \| \leqslant \sigma \sqrt { \mathrm { t r } [ \pmb { A } ^ { 2 } ] + 2 \sqrt { \mathrm { t r } [ \pmb { A } ^ { 4 } ] \log ( 1 / \delta ) } + 2 \| \pmb { A } ^ { 2 } \| \log ( 1 / \delta ) } .
435
+ $$
436
+
437
+ Let $\pmb { A } = k ( \pmb { X } , \pmb { X } ) \left( k ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } \right) ^ { - 1 }$ and let $\lambda _ { 1 } , \ldots , \lambda _ { n } > 0$ be the eigenvalues of $k ( X , X )$
438
+
439
+ $$
440
+ \begin{array} { r l } & { \mathrm { t r } [ A ^ { 2 } ] = \displaystyle \sum _ { i = 1 } ^ { n } \frac { \lambda _ { i } ^ { 2 } } { ( \lambda _ { i } + \lambda ^ { 2 } ) ^ { 2 } } \leqslant \displaystyle \sum _ { i = 1 } ^ { n } \frac { \lambda _ { i } ^ { 2 } } { 4 \lambda _ { i } \cdot \lambda ^ { 2 } } = \frac { \mathrm { t r } [ k ( X , X ) ] } { 4 \lambda ^ { 2 } } , } \\ & { \mathrm { t r } [ A ^ { 4 } ] = \displaystyle \sum _ { i = 1 } ^ { n } \frac { \lambda _ { i } ^ { 4 } } { ( \lambda _ { i } + \lambda ^ { 2 } ) ^ { 4 } } \leqslant \displaystyle \sum _ { i = 1 } ^ { n } \frac { \lambda _ { i } ^ { 4 } } { 4 ^ { 4 } \lambda ^ { 2 } \left( \frac { \lambda _ { i } } { 3 } \right) ^ { 3 } } \leqslant \frac { \mathrm { t r } [ k ( X , X ) ] } { 9 \lambda ^ { 2 } } , } \\ & { \| A ^ { 2 } \| \leqslant 1 . } \end{array}
441
+ $$
442
+
443
+ Therefore,
444
+
445
+ $$
446
+ \begin{array} { r l } & { k \big ( { \pmb X } , { \pmb X } \big ) \left( k ( { \pmb X } , { \pmb X } ) + \lambda ^ { 2 } { \pmb I } \right) ^ { - 1 } \varepsilon \Big \| \leqslant \sigma \sqrt { \frac { \mathrm { t r } \big [ k ( { \pmb X } , { \pmb X } ) \big ] } { 4 \lambda ^ { 2 } } + 2 \sqrt { \frac { \mathrm { t r } \big [ k ( { \pmb X } , { \pmb X } ) \big ] \log ( 1 / \delta ) } { 9 \lambda ^ { 2 } } } + 2 \log ( 1 / \delta ) } } \\ & { \leqslant \sigma \left( \sqrt { \frac { \mathrm { t r } \big [ k ( { \pmb X } , { \pmb X } ) \big ] } { 4 \lambda ^ { 2 } } } + \sqrt { 2 \log ( 1 / \delta ) } \right) . } \end{array}
447
+ $$
448
+
449
+ Finally, since $\big ( k ( X , X ) + \lambda ^ { 2 } I \big ) ^ { - 2 } \preceq \frac { 1 } { 4 \lambda ^ { 2 } } \left( k ( X , X ) \right) ^ { - 1 }$ (note $( \lambda _ { i } + \lambda ^ { 2 } ) ^ { 2 } \geqslant 4 \lambda _ { i } \cdot \lambda ^ { 2 } )$ , we have
450
+
451
+ $$
452
+ \lambda ^ { 2 } \left\| \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } y \right\| = \lambda ^ { 2 } { \sqrt { y ^ { \top } \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 2 } y } } \leqslant { \frac { \lambda } { 2 } } { \sqrt { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } } .
453
+ $$
454
+
455
+ The proof is finished by combining (11), (13) and (14).
456
+
457
+ Let $\mathcal { H }$ be the reproducing kernel Hilbert space (RKHS) corresponding to the kernel $k ( \cdot , \cdot )$ . Recall that the RKHS norm of a function $f ( { \pmb x } ) = \mathbf { \dot { \alpha } } { } ^ { \top } k ( { \pmb x } , { \pmb X } )$ is
458
+
459
+ $$
460
+ \| f \| _ { \mathcal { H } } = \sqrt { \pmb { \alpha } ^ { \top } k ( \pmb { X } , \pmb { X } ) \pmb { \alpha } } .
461
+ $$
462
+
463
+ Lemma C.2. With probability at least $1 - \delta$ , we have
464
+
465
+ $$
466
+ \| f ^ { * } \| _ { \mathcal { H } } \leqslant \sqrt { y ^ { \top } \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } y } + \frac { \sigma } { \lambda } \left( \sqrt { n } + \sqrt { 2 \log ( 1 / \delta ) } \right)
467
+ $$
468
+
469
+ Proof. In this proof we are still conditioned on $\boldsymbol { X }$ and $\textbf { { y } }$ , and only consider the randomness in\` ˘ $\tilde { \pmb { y } }$ given $\boldsymbol { X }$ and $\textbf { { y } }$ . Note that $f ^ { * } ( { \pmb x } ) \ = \ { \pmb \alpha } ^ { \top } k ( { \pmb x } , { \pmb X } )$ with $\pmb { \alpha } = \left( \bar { k } ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } \right) ^ { - 1 } \tilde { \pmb { y } }$ . Since $\left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } \preceq \left( k ( X , X ) \right) ^ { - 1 }$ and $\begin{array} { r } { \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } \le \frac { 1 } { \lambda ^ { 2 } } I , } \end{array}$ , we can bound
470
+
471
+ $$
472
+ \begin{array} { r l } & { \| f ^ { * } \| _ { \mathcal H } = \sqrt { \tilde { y } ^ { \top } \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } k ( X , X ) \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } \tilde { y } } } \\ & { \qquad \leqslant \sqrt { ( y + \varepsilon ) ^ { \top } \left( k ( X , X ) + \lambda ^ { 2 } I \right) ^ { - 1 } ( y + \varepsilon ) } } \end{array}
473
+ $$
474
+
475
+ $$
476
+ \begin{array} { r l } & { \leqslant \sqrt { { { y } ^ { \top } } \left( k ( { \boldsymbol { X } } , { \boldsymbol { X } } ) + { { \lambda } ^ { 2 } } { { I } } \right) ^ { - 1 } { { y } } } + \sqrt { { { \varepsilon } ^ { \top } } \left( k ( { \boldsymbol { X } } , { \boldsymbol { X } } ) + { { \lambda } ^ { 2 } } { { I } } \right) ^ { - 1 } { { \varepsilon } } } } \\ & { \leqslant \sqrt { { { y } ^ { \top } } \left( k ( { \boldsymbol { X } } , { \boldsymbol { X } } ) + { { \lambda } ^ { 2 } } { { I } } \right) ^ { - 1 } { { y } } } + \frac { \sqrt { { { \varepsilon } ^ { \top } } { { \varepsilon } } } } { \lambda } . } \end{array}
477
+ $$
478
+
479
+ Since $\varepsilon$ has independent and subgaussian (with parameter $\sigma$ ) coordinates, using (12) with $A = I$ with probability at least $1 - \delta$ we have
480
+
481
+ $$
482
+ \sqrt { \pmb { \varepsilon } ^ { \top } \pmb { \varepsilon } } \leqslant \sigma \left( \sqrt { n } + \sqrt { 2 \log ( 1 / \delta ) } \right) .
483
+ $$
484
+
485
+ Now we prove Theorem 5.1.
486
+
487
+ Proof of Theorem 5.1. First, by Lemma C.1, with probability $1 - \delta / 3$ ,
488
+
489
+ $$
490
+ \sqrt { \sum _ { i = 1 } ^ { n } \left( f ^ { * } ( { \pmb x } _ { i } ) - y _ { i } \right) ^ { 2 } } \leqslant \frac { \lambda } { 2 } \sqrt { { \pmb y } ^ { \top } ( k ( { \pmb X } , { \pmb X } ) ) ^ { - 1 } { \pmb y } } + \frac { \sigma } { 2 \lambda } \sqrt { \mathrm { t r } [ k ( { \pmb X } , { \pmb X } ) ] } + \sigma \sqrt { 2 \log ( 3 / \delta ) } ,
491
+ $$
492
+
493
+ which implies that the training error on the true labels under loss function $\ell$ is bounded as
494
+
495
+ $$
496
+ \begin{array} { l } { \displaystyle \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ( f ^ { * } ( x _ { i } ) , y _ { i } ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } ( \ell ( f ^ { * } ( x _ { i } ) , y _ { i } ) - \ell ( y _ { i } , y _ { i } ) ) } \\ { \displaystyle \leqslant \frac { 1 } { n } \sum _ { i = 1 } ^ { n } | f ^ { * } ( x _ { i } ) - y _ { i } | } \\ { \displaystyle \leqslant \frac { 1 } { \sqrt { n } } \sqrt { \sum _ { i = 1 } ^ { n } | f ^ { * } ( x _ { i } ) - y _ { i } | ^ { 2 } } } \\ { \displaystyle \leqslant \frac { \lambda } { 2 } \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } + \frac { \sigma } { 2 \lambda } \sqrt { \frac { \mathrm { t r } [ k ( X , X ) ] } { n } } + \sigma \sqrt { \frac { 2 \log ( 3 / \delta ) } { n } } . } \end{array}
497
+ $$
498
+
499
+ Next, for function class ${ \mathcal { F } } _ { B } = \{ f ( { \pmb x } ) = \pmb { \alpha } ^ { \top } k ( { \pmb x } , { \pmb X } ) : \| f \| _ { \mathcal { H } } \leqslant B \}$ , Bartlett and Mendelson (2002) showed that its empirical Rademacher complexity can be bounded as
500
+
501
+ $$
502
+ { \hat { \mathcal { R } } } _ { S } ( { \mathcal { F } } _ { B } ) \triangleq { \frac { 1 } { n } } \mathop { \mathbb { E } } _ { \gamma \sim \{ \pm 1 \} ^ { n } } \left[ \operatorname* { s u p } _ { f \in { \mathcal { F } } _ { B } } \sum _ { i = 1 } ^ { n } f ( { \pmb x } _ { i } ) \gamma _ { i } \right] \leqslant { \frac { B { \sqrt { \operatorname { t r } [ k ( { \pmb X } , { \pmb X } ) ] } } } { n } } .
503
+ $$
504
+
505
+ By Lemma C.2, with probability at least $1 - \delta / 3$ we have
506
+
507
+ $$
508
+ \| f ^ { * } \| _ { \mathcal { H } } \leqslant \sqrt { \pmb { y } ^ { \top } \left( k ( \pmb { X } , \pmb { X } ) + \lambda ^ { 2 } \pmb { I } \right) ^ { - 1 } \pmb { y } } + \frac { \sigma } { \lambda } \left( \sqrt { n } + \sqrt { 2 \log ( 3 / \delta ) } \right) \triangleq B ^ { \prime } .
509
+ $$
510
+
511
+ We also recall the standard generalization bound from Rademacher complexity (see e.g. (Mohri et al., 2012)): with probability at least $1 - \delta$ , we have
512
+
513
+ $$
514
+ \operatorname* { s u p } _ { f \in \mathcal { F } } \left\{ \mathbb { E } _ { ( \alpha , y ) \sim \mathcal { D } } [ \ell ( f ( \boldsymbol { x } ) , y ) ] - \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ( f ( \boldsymbol { x } _ { i } ) , y _ { i } ) \right\} \leqslant 2 \hat { \mathcal { R } } _ { S } ( \mathcal { F } ) + 3 \sqrt { \frac { \log ( 2 / \delta ) } { 2 n } } .
515
+ $$
516
+
517
+ Then it is tempting to apply the above bound on the function class $\mathcal { F } _ { B ^ { \prime } }$ which contains $f ^ { * }$ . However, we are not yet able to do so, because $B ^ { \prime }$ depends on the data $\boldsymbol { X }$ and $\textbf { { y } }$ . To deal with this, we use a standard $\epsilon$ -net argument on the interval that $B ^ { \prime }$ must lie in: (note that $\| { \pmb y } \| = O ( { \sqrt { n } } ) ,$ )
518
+
519
+ $$
520
+ B ^ { \prime } \in \left[ \frac { \sigma } { \lambda } \left( \sqrt { n } + \sqrt { 2 \log ( 3 / \delta ) } \right) , \frac { \sigma } { \lambda } \left( \sqrt { n } + \sqrt { 2 \log ( 3 / \delta ) } \right) + O \left( \frac { n } { \lambda } \right) \right] .
521
+ $$
522
+
523
+ The above interval has length ${ \it O } \left( \frac { n } { \lambda } \right)$ , so its $\epsilon$ -net $\mathcal { N }$ has size $\begin{array} { r } { O \left( \frac { n } { \epsilon \lambda } \right) } \end{array}$ . Using a union bound, we apply the generalization bound (15) simultaneously on $\mathcal { F } _ { B }$ for all $B \in { \mathcal { N } }$ : with probability at least $1 - \delta / 3$ we have
524
+
525
+ $$
526
+ \operatorname* { s u p } _ { f _ { B } \in \mathcal { F } } \left\{ \mathbb { E } _ { ( \alpha , y ) \sim \mathcal { D } } [ \ell ( f ( \alpha ) , y ) ] - \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ( f ( x _ { i } ) , y _ { i } ) \right\} \leqslant 2 \hat { \mathcal { R } } _ { S } ( \mathcal { F } _ { B } ) + O \left( \sqrt { \frac { \log \frac { n } { \epsilon \delta \lambda } } { n } } \right) , \quad \forall B \in \mathcal { N }
527
+ $$
528
+
529
+ By definition there exists $B \in \mathcal N$ such that $B ^ { \prime } \leqslant B \leqslant B ^ { \prime } + \epsilon .$ . Then we also have $f ^ { * } \in \mathcal { F } _ { B }$ . Using the above bound on this particular $B$ , and putting all parts together, we know that with probability at least $1 - \delta$ ,
530
+
531
+ $$
532
+ \begin{array} { r l } & { \quad \forall _ { \{ u , v \} = 1 , \ldots } [ f _ { v } ^ { ( 1 ) } ( \overline { { \rho } } ( \overline { { \rho } } ( x , \overline { { x } } ) ) ^ { - 1 } ) ] } \\ & { \quad \in \mathbb { I } _ { \frac { 1 } { 2 } \leq \frac { 1 } { \pi } } \frac { \sum _ { j } ^ { \prime } \Gamma \left( f _ { v } ^ { ( 1 ) } ( x , \overline { { x } } ) \right) + \mathcal { B } _ { c } \zeta _ { j } [ P _ { v } ] + \mathcal { O } \left( \sqrt { \frac { \| \overline { { \theta } } ( \overline { { x } } , \overline { { x } } ) } { \pi } } } { \pi\right) } } \\ & { \quad \in \frac { \mathcal { B } _ { c } } { \pi } \frac { 1 } { \pi } \frac { \sum _ { j } ^ { \prime } \Gamma \left( j _ { v } ^ { ( 1 ) } ( \overline { { \rho } } ( x , \overline { { x } } ) ) \right) - \mathcal { B } _ { c } } { \pi } + \frac { \alpha } { 2 \sqrt { N } } \sqrt { \frac { \| \mathrm { d } ( \overline { { \nu } } ( x , \overline { { x } } ) ) \| } { \pi } } + \sigma \sqrt { \frac { \| \mathrm { d } ( \overline { { \nu } } ( \overline { { \rho } } ( \overline { { \rho } } ( \overline { { \rho } } ( \overline { { \rho } } ) ) ) ) } { \pi } } } \\ & { \quad \quad + \frac { 2 ( l ^ { ( 1 ) } + \mathcal { C } ) \sqrt { \pi } \Gamma \left( \overline { { \mathrm { R } } } ( ( \overline { { X } } , \overline { { x } } ) ) \right) } { \pi } + \sigma \left( \sqrt { \frac { \| \mathrm { d } ( \overline { { \nu } } ( \overline { { \rho } } , \overline { { x } } ) ) \| } { \pi } } \right) } \\ & \quad \in \frac { \mathcal { B } _ { c } } { \pi } \frac { 1 } { \sqrt { \pi } ^ { \prime } ( N ( \overline { { \rho } } ( \overline { { \rho } } ( \overline { { X } } , \overline { { X } } ) ) ) - \frac { \rho } { 2 } } + \frac \mathcal { O } \left( \sqrt { \frac { \| \mathrm { d } ( \overline { { X } } , \overline { { X } } ) \| } { \pi } } { \pi } \right) + \sigma \sqrt \frac { \| \mathrm { d } ( \overline { { X } } ) \| } \end{array}
533
+ $$
534
+
535
+ Then, using $\operatorname { t r } [ k ( X , X ) ] = O ( n )$ and choosing $\epsilon = 1$ , we obtain
536
+
537
+ $$
538
+ \begin{array} { r l } & { \quad \mathbb { E } _ { ( \alpha , y ) \sim \mathcal { D } } [ \ell ( f ^ { * } ( x ) , y ) ] } \\ & { \leqslant \displaystyle \frac { \lambda } { 2 } \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } + O \left( \frac { \sigma } { \lambda } \right) + \sigma \sqrt { \frac { 2 \log ( 3 / \delta ) } { n } } } \\ & { \quad \quad + O \left( \sqrt { \frac { y ^ { \top } \left( k ( X , X ) \right) ^ { - 1 } y } { n } } \right) + O \left( \frac { \sigma } { \lambda \sqrt { n } } \sqrt { 2 \log ( 3 / \delta ) } \right) + O \left( \frac { 1 } { \sqrt { n } } \right) + O \left( \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) } \\ & { \leqslant \displaystyle \frac { \lambda + O ( 1 ) } { 2 } \sqrt { \frac { y ^ { \top } \left( k ( X , X ) \right) ^ { - 1 } y } { n } } + O \left( \frac { \sigma } { \lambda } + \sigma \sqrt { \frac { \log ( 1 / \delta ) } { n } } + \frac { \sigma } { \lambda } \sqrt { \frac { \log ( 1 / \delta ) } { n } } + \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) . } \end{array}
539
+ $$
540
+
541
+ # C.2 PROOF OF THEOREM 5.2
542
+
543
+ Proof of Theorem 5.2. We will apply Theorem 5.1 in this proof. Note that we cannot directly apply it on $\{ ( \pmb { x } _ { i } , y _ { i } , \tilde { y } _ { i } ) \}$ because the mean of $\tilde { y } _ { i } - y _ { i }$ is non-zero (conditioned on $( x _ { i } , y _ { i } ) )$ . Nevertheless, this issue can be resolved by considering $\{ ( { \pmb x } _ { i } , ( 1 - 2 p ) y _ { i } , \tilde { y } _ { i } ) \}$ instead.4 Then we can easily check that conditioned on $y _ { i } , \tilde { y } _ { i } - ( 1 - 2 p ) y _ { i }$ has mean 0 and is subgaussian with parameter $\sigma = O ( { \sqrt { p } } )$ . With this change, we are ready to apply Theorem 5.1.
544
+
545
+ Define the following ramp loss for $u \in \mathbb { R } , \bar { y } \in \{ \pm ( 1 - 2 p ) \}$ :
546
+
547
+ $$
548
+ \ell ^ { \mathrm { r a m p } } ( u , \bar { y } ) = \left\{ \begin{array} { l l } { ( 1 - 2 p ) , } & { u \bar { y } \leqslant 0 , } \\ { ( 1 - 2 p ) - \frac { 1 } { 1 - 2 p } u \bar { y } , } & { 0 < u \bar { y } < ( 1 - 2 p ) ^ { 2 } , } \\ { 0 , } & { u \bar { y } \geqslant ( 1 - 2 p ) ^ { 2 } . } \end{array} \right.
549
+ $$
550
+
551
+ It is easy to see that $\ell ^ { \mathrm { r a m p } } ( u , \bar { y } )$ is 1-Lipschitz in $u$ for $\bar { y } \in \{ \pm ( 1 - 2 p ) \}$ , and satisfies $\ell ^ { \mathrm { r a m p } } ( \bar { y } , \bar { y } ) = 0$ for $\bar { y } \in \{ \pm ( 1 - 2 p ) \}$ . Then by Theorem 5.1, with probability at least $1 - \delta$ ,
552
+
553
+ $$
554
+ \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim \mathcal { D } } \left[ \ell ^ { \mathrm { r a m p } } ( f ^ { * } ( \pmb { x } ) , ( 1 - 2 p ) \pmb { y } ) \right]
555
+ $$
556
+
557
+ $$
558
+ \begin{array} { r l } & { \leqslant \frac { \lambda + O ( 1 ) } { 2 } \sqrt { \frac { ( 1 - 2 p ) y ^ { \top } ( k ( X , X ) ) ^ { - 1 } \cdot ( 1 - 2 p ) y } { n } } + O \left( \frac { \sqrt { p } } { \lambda } + \sqrt { \frac { p \log ( 1 / \delta ) } { n } } + \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) } \\ & { = \frac { ( 1 - 2 p ) ( \lambda + O ( 1 ) ) } { 2 } \sqrt { \frac { y ^ { \top } ( k ( X , X ) ) ^ { - 1 } y } { n } } + O \left( \frac { \sqrt { p } } { \lambda } + \sqrt { \frac { p \log ( 1 / \delta ) } { n } } + \sqrt { \frac { \log \frac { n } { \delta \lambda } } { n } } \right) . } \end{array}
559
+ $$
560
+
561
+ Note that $\ell ^ { \mathrm { { r a m p } } }$ also bounds the 0-1 loss (classification error) as
562
+
563
+ $$
564
+ \begin{array} { r } { \mathrm { r a m p } ( u , ( 1 - 2 p ) y ) \geqslant ( 1 - 2 p ) \mathbb { I } [ \mathrm { s g n } ( u ) \neq \mathrm { s g n } ( y ) ] = ( 1 - 2 p ) \mathbb { I } [ \mathrm { s g n } ( u ) \neq y ] , \quad \forall u \in \mathbb { R } , y \in \{ \pm 1 \} . } \end{array}
565
+ $$
566
+
567
+ Then the conclusion follows.
568
+
569
+ # C.3 PROOF OF THEOREM 5.3
570
+
571
+ Proof of Theorem 5.3. By definition, we have $\mathbb { E } \big [ \tilde { \pmb { y } } _ { i } \big | c _ { i } \big ] = \mathbb { E } \big [ { e } ^ { ( \tilde { c } _ { i } ) } \big | c _ { i } \big ] = { \pmb { p } } _ { c _ { i } }$ (the $c _ { i }$ -th column of $P _ { \mathrm { ~ , ~ } }$ ). This means $\mathbb { E } [ \tilde { Y } | Q ] = Q$ . Therefore we can view $Q$ as an encoding of clean labels, and then the observed noisy labels $\tilde { Y }$ is $Q$ plus a zero-mean noise. (The noise is always bounded by 1 so is subgaussian with parameter 1.) This enables us to apply Theorem 5.1 to each $f ^ { ( h ) }$ , which says that with probability at least $1 - \delta ^ { \prime }$ ,
572
+
573
+ $$
574
+ \mathfrak { L } _ { ( \mathbf { x } , c ) \sim \mathcal { D } } \left| f ^ { ( h ) } ( \mathbf { x } ) - p _ { h , c } \right| \leqslant \frac { \lambda + O ( 1 ) } { 2 } \sqrt { \frac { ( g ^ { ( h ) } ) ^ { \top } ( k ( \mathbf { X } , \mathbf { X } ) ) ^ { - 1 } q ^ { ( h ) } } { n } } + O \left( \frac { 1 } { \lambda } + \sqrt { \frac { \log \frac { 1 } { \delta ^ { \prime } } } { n } } + \sqrt { \frac { \log \frac { 1 } { \delta ^ { \prime } } } { n } } \right)
575
+ $$
576
+
577
+ Lettinevery $\begin{array} { r } { \delta ^ { \prime } = \frac { \delta } { K } } \end{array}$ and taking a union bound over neously with probability at least $h \in [ K ]$ , we know that the above bound holds for $h$ $1 - \delta$
578
+
579
+ Now we proceed to bound the classification error. Note that ˇ ˇ $c \not \in \mathrm { a r g m a x } _ { h \in [ K ] } f ^ { ( h ) } ( { \pmb x } )$ implies $\begin{array} { r } { \sum _ { h = 1 } ^ { K } \left| f ^ { ( h ) } ( { \pmb x } ) - p _ { h , c } \right| \geqslant \mathtt { g a p } } \end{array}$ . Therefore the classification error can be bounded as
580
+
581
+ $$
582
+ \begin{array} { r l } & { \qquad \underset { ( \alpha , c ) \sim \mathcal { D } } { \operatorname* { P r } } \left[ c \neq \mathrm { a r g m a x } _ { h \in [ K ] } f ^ { ( h ) } ( \boldsymbol { x } ) \right] \leqslant \underset { ( \alpha , c ) \sim \mathcal { D } } { \operatorname* { P r } } \left[ \underset { h = 1 } { \overset { K } { \sum } } \left| f ^ { ( h ) } ( \boldsymbol { x } ) - p _ { h , c } \right| \geqslant \mathrm { g a p } \right] } \\ & { \leqslant \frac { 1 } { \mathrm { g a p } } \mathbb { E } _ { ( \boldsymbol { x } , c ) \sim \mathcal { D } } \left[ \underset { h = 1 } { \overset { K } { \sum } } \left| f ^ { ( h ) } ( \boldsymbol { x } ) - p _ { h , c } \right| \right] = \frac { 1 } { \mathrm { g a p } } \underset { h = 1 } { \overset { K } { \sum } } \mathbb { E } _ { ( \boldsymbol { x } , c ) \sim \mathcal { D } } \left[ \left| f ^ { ( h ) } ( \boldsymbol { x } ) - p _ { h , c } \right| \right] } \\ & { \leqslant \frac { 1 } { \mathrm { g a p } } \left( \frac { \lambda + O ( 1 ) } { 2 } \underset { h = 1 } { \overset { K } { \sum } } \sqrt { \frac { ( \boldsymbol { q } ^ { ( h ) } ) ^ { \top } ( k ( \boldsymbol { X } , \boldsymbol { X } ) ) ^ { - 1 } \boldsymbol { q } ^ { ( h ) } } { n } } + K \cdot O \left( \frac { 1 } { \lambda } + \sqrt { \frac { \log \frac { 1 } { \delta ^ { \prime } } } { n } } + \sqrt { \frac { \log \frac { n } { \delta ^ { \prime } \lambda } } { n } } \right) \right) , } \end{array}
583
+ $$
584
+
585
+ completing the proof.
586
+
587
+ # D EXPERIMENT DETAILS AND ADDITIONAL FIGURES
588
+
589
+ In Setting 1, we train a two-layer neural network with 10,000 hidden neurons on MNIST (“5” vs “8”). In Setting 2, we train a CNN, which has 192 channels for each of its 11 layers, on CIFAR (“airplanes” vs “automobiles”). We do not have biases in these two networks. In Setting 3, we use the standard ResNet-34.
590
+
591
+ In Settings 1 and 2, we use a fixed learning rate for GD or SGD, and we do not use tricks like batch normalization, data augmentation, dropout, etc., except the difference trick in Appendix A. We also freeze the first and the last layer of the CNN and the second layer of the fully-connected net.5
592
+
593
+ In Setting 3, we use SGD with 0.9 momentum, weight decay of $5 \times 1 0 ^ { - 4 }$ , and batch size 128. The learning rate is 0.1 initially and is divided by 10 after 82 and 123 epochs (164 in total). Since we observe little over-fitting to noise in the first stage of training (before learning rate decay), we restrict the regularization power of AUX by applying weight decay on auxiliary variables, and dividing their weight decay factor by 10 after each learning rate decay.
594
+
595
+ See Figures 5 to 8 for additional results for Setting 2 with different $\lambda$ ’s.
596
+
597
+ ![](images/baa534318edc0fa0e4d388e697b70cd2933f9f6b35ff2e223f6e1819eea3ef55.jpg)
598
+ Figure 5: Training (dashed) $\&$ test (solid) errors vs. epoch for Setting 2. Noise rate $= ~ 2 0 \%$ , $\lambda \in \{ 0 . 2 5 , 0 . 5 , 1 , 2 , 4 , 8 \}$ . Training error of AUX is measured with auxiliary variables.
599
+
600
+ ![](images/d1a90e8d9dab198702b5eafc86cadf3829ef9f98763f359bc26e4e01e98f5690.jpg)
601
+ Figure 6: Setting 2, $\| \mathbf { W } ^ { ( 7 ) } \| _ { F }$ and $\lVert W ^ { ( 7 ) } - W ^ { ( 7 ) } ( 0 ) \rVert _ { F }$ during training. Noise rate $= 2 0 \%$ , $\lambda = 4$
602
+
603
+ ![](images/ab524ac44e1c735189a643d68f5519f6dc2f25e3e64c90a5295f91faa7fb961c.jpg)
604
+ Figure 7: Setting 2, $\| \pmb { W } ^ { ( 4 ) } \| _ { F }$ and $\lVert W ^ { ( 4 ) } - W ^ { ( 4 ) } ( 0 ) \rVert _ { F }$ during training. Noise rate $= 0$ , $\lambda = 2$
605
+
606
+ ![](images/24f1aa5f167e4a079e4a6a51d1ea9b5442a0d212a3f6f81e798683fbf3f19a4e.jpg)
607
+ Figure 8: Setting 2, $\| \mathbf { W } ^ { ( 7 ) } \| _ { F }$ and $\lVert W ^ { ( 7 ) } - W ^ { ( 7 ) } ( 0 ) \rVert _ { F }$ during training. Noise rate $= 0$ , $\lambda = 2$
parse/train/Hke3gyHYwH/Hke3gyHYwH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke3gyHYwH/Hke3gyHYwH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke3gyHYwH/Hke3gyHYwH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hye4WaVYwr/Hye4WaVYwr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hye4WaVYwr/Hye4WaVYwr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hye4WaVYwr/Hye4WaVYwr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hye4WaVYwr/Hye4WaVYwr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyeVtoRqtQ/HyeVtoRqtQ.md ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRELLIS NETWORKS FOR SEQUENCE MODELING
2
+
3
+ Shaojie Bai Carnegie Mellon University
4
+
5
+ J. Zico Kolter Carnegie Mellon University and Bosch Center for AI
6
+
7
+ Vladlen Koltun Intel Labs
8
+
9
+ # ABSTRACT
10
+
11
+ We present trellis networks, a new architecture for sequence modeling. On the one hand, a trellis network is a temporal convolutional network with special structure, characterized by weight tying across depth and direct injection of the input into deep layers. On the other hand, we show that truncated recurrent networks are equivalent to trellis networks with special sparsity structure in their weight matrices. Thus trellis networks with general weight matrices generalize truncated recurrent networks. We leverage these connections to design high-performing trellis networks that absorb structural and algorithmic elements from both recurrent and convolutional models. Experiments demonstrate that trellis networks outperform the current state of the art methods on a variety of challenging benchmarks, including word-level language modeling and character-level language modeling tasks, and stress tests designed to evaluate long-term memory retention. The code is available here1.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ What is the best architecture for sequence modeling? Recent research has produced significant progress on multiple fronts. Recurrent networks, such as LSTMs, continue to be optimized and extended (Merity et al., 2018b; Melis et al., 2018; Yang et al., 2018; Trinh et al., 2018). Temporal convolutional networks have demonstrated impressive performance, particularly in modeling longrange context (van den Oord et al., 2016; Dauphin et al., 2017; Bai et al., 2018). And architectures based on self-attention are gaining ground (Vaswani et al., 2017; Santoro et al., 2018).
16
+
17
+ In this paper, we introduce a new architecture for sequence modeling, the Trellis Network. We aim to both improve empirical performance on sequence modeling benchmarks and shed light on the relationship between two existing model families: recurrent and convolutional networks.
18
+
19
+ On the one hand, a trellis network is a special temporal convolutional network, distinguished by two unusual characteristics. First, the weights are tied across layers. That is, weights are shared not only by all time steps but also by all network layers, tying them into a regular trellis pattern. Second, the input is injected into all network layers. That is, the input at a given time-step is provided not only to the first layer, but directly to all layers in the network. So far, this may seem merely as a peculiar convolutional network for processing sequences, and not one that would be expected to perform particularly well.
20
+
21
+ Yet on the other hand, we show that trellis networks generalize truncated recurrent networks (recurrent networks with bounded memory horizon). The precise derivation of this connection is one of the key contributions of our work. It allows trellis networks to serve as bridge between recurrent and convolutional architectures, benefitting from algorithmic and architectural techniques developed in either context. We leverage these relationships to design high-performing trellis networks that absorb ideas from both architectural families. Beyond immediate empirical gains, these connections may serve as a step towards unification in sequence modeling.
22
+
23
+ We evaluate trellis networks on challenging benchmarks, including word-level language modeling on the standard Penn Treebank (PTB) and the much larger WikiText-103 (WT103) datasets; character-level language modeling on Penn Treebank; and standard stress tests (e.g. sequential MNIST, permuted MNIST, etc.) designed to evaluate long-term memory retention. On word-level
24
+
25
+ Penn Treebank, a trellis network outperforms by more than a unit of perplexity the recent architecture search work of Pham et al. (2018), as well as the recent results of Melis et al. (2018), which leveraged the Google Vizier service for exhaustive hyperparameter search. On character-level Penn Treebank, a trellis network outperforms the thorough optimization work of Merity et al. (2018a). On word-level WikiText-103, a trellis network outperforms by $7 . 6 \%$ in perplexity the contemporaneous self-attention-based Relational Memory Core (Santoro et al., 2018), and by $1 1 . 5 \%$ the work of Merity et al. (2018a). (Concurrently with our work, Dai et al. (2019) employ a transformer and achieve even better results on WikiText-103.) On stress tests, trellis networks outperform recent results achieved by recurrent networks and self-attention (Trinh et al., 2018). It is notable that the prior state of the art across these benchmarks was held by models with sometimes dramatic mutual differences.
26
+
27
+ # 2 BACKGROUND
28
+
29
+ Recurrent networks (Elman, 1990; Werbos, 1990; Graves, 2012), particularly with gated cells such as LSTMs (Hochreiter & Schmidhuber, 1997) and GRUs (Cho et al., 2014), are perhaps the most popular architecture for modeling temporal sequences. Recurrent architectures have been used to achieve breakthrough results in natural language processing and other domains (Sutskever et al., 2011; Graves, 2013; Sutskever et al., 2014; Bahdanau et al., 2015; Vinyals et al., 2015; Karpathy & Li, 2015). Convolutional networks have also been widely used for sequence processing (Waibel et al., 1989; Collobert et al., 2011). Recent work indicates that convolutional networks are effective on a variety of sequence modeling tasks, particularly ones that demand long-range information propagation (van den Oord et al., 2016; Kalchbrenner et al., 2016; Dauphin et al., 2017; Gehring et al., 2017; Bai et al., 2018). A third notable approach to sequence processing that has recently gained ground is based on self-attention (Vaswani et al., 2017; Santoro et al., 2018; Chen et al., 2018). Our work is most closely related to the first two approaches. In particular, we establish a strong connection between recurrent and convolutional networks and introduce a model that serves as a bridge between the two. A related recent theoretical investigation showed that under a certain stability condition, recurrent networks can be well-approximated by feed-forward models (Miller & Hardt, 2018).
30
+
31
+ There have been many combinations of convolutional and recurrent networks (Sainath et al., 2015). For example, convolutional LSTMs combine convolutional and recurrent units (Donahue et al., 2015; Venugopalan et al., 2015; Shi et al., 2015). Quasi-recurrent neural networks interleave convolutional and recurrent layers (Bradbury et al., 2017). Techniques introduced for convolutional networks, such as dilation, have been applied to RNNs (Chang et al., 2017). Our work establishes a deeper connection, deriving a direct mapping across the two architectural families and providing a structural bridge that can incorporate techniques from both sides.
32
+
33
+ # 3 SEQUENCE MODELING AND TRELLIS NETWORKS
34
+
35
+ Sequence modeling. Given an input $x _ { 1 : T } = x _ { 1 } , . . . , x _ { T }$ with sequence length $T$ , a sequence model is any function $G : { \overset { \smile } { \chi } } ^ { T } \to { \mathcal { V } } ^ { T }$ such that
36
+
37
+ $$
38
+ y _ { 1 : T } = y _ { 1 } , \ldots , y _ { T } = G ( x _ { 1 } , \ldots , x _ { T } ) ,
39
+ $$
40
+
41
+ where $y _ { t }$ should only depend on $x _ { 1 : t }$ and not on $x _ { t + 1 : T }$ (i.e. no leakage of information from the future). This causality constraint is essential for autoregressive modeling.
42
+
43
+ In this section, we describe a new architecture for sequence modeling, referred to as a trellis network or TrellisNet. In particular, we provide an atomic view of TrellisNet, present its fundamental features, and highlight the relationship to convolutional networks. Section 4 will then elaborate on the relationship of trellis networks to convolutional and recurrent models.
44
+
45
+ Notation. We use $\boldsymbol { x } _ { 1 : T } = ( x _ { 1 } , \dots , x _ { T } )$ to denote a length- $\mathcal { T }$ input sequence, where vector $\boldsymbol { x } _ { t } \in \mathbb { R } ^ { p }$ is the input at time step $t$ . Thus $\boldsymbol { x } _ { 1 : T } \in \mathbb { R } ^ { T \times p }$ . We use $\boldsymbol { z } _ { t } ^ { ( i ) } \in \mathbb { R } ^ { q }$ to represent the hidden unit at time $t$ in layer $i$ of the network. We use $\mathrm { C o n v 1 D } ( x ; W )$ to denote a 1D convolution with a kernel $W$ applied to input $x = x _ { 1 : T }$ .
46
+
47
+ A basic trellis network. At the most basic level, a feature vector z(i+1)t+1 at time step $t + 1$ and level $i + 1$ of TrellisNet is computed via three steps, illustrated in Figure 1a:
48
+
49
+ ![](images/3d673cc8be5729c42eb3369d3ed5014f3cdb07ac0651d4b7ff926242e384655a.jpg)
50
+ Figure 1: The interlayer transformation of TrellisNet, at an atomic level (time steps $t$ and $t + 1$ layers $i$ and $i + 1$ ) and on a longer sequence (time steps 1 to 8, layers $i$ and $i + 1$ ).
51
+
52
+ 1. The hidden input comprises the hidden outputs z(i)t , z(i)t+1 $z _ { t + 1 } ^ { ( i ) } \in \mathbb { R } ^ { q }$ from the previous layer $i$ , as well as an injection of the input vectors $x _ { t } , x _ { t + 1 }$ . At level 0, we initialize to $z _ { t } ^ { ( 0 ) } = \mathbf { 0 }$ .
53
+
54
+ 2. A pre-activation output $\hat { z } _ { t + 1 } ^ { ( i + 1 ) } \in \mathbb { R } ^ { r }$ is produced by a feed-forward linear transformation:
55
+
56
+ $$
57
+ \hat { z } _ { t + 1 } ^ { ( i + 1 ) } = W _ { 1 } \left[ { x _ { t } } ^ { } \atop { z _ { t } ^ { ( i ) } } \right] + W _ { 2 } \left[ { x _ { t + 1 } } ^ { } \right] ,
58
+ $$
59
+
60
+ where W1, W2 ∈ Rr×(p+q) are weights, and r is the size of the pre-activation output zˆ(i+1)t+1 , (Here and throughout the paper, all linear transformations can include additive biases. We omit these for clarity.)
61
+
62
+ 3. The output z(i+1)t+1 is produced by a nonlinear activation function $f : \mathbb { R } ^ { r } \times \mathbb { R } ^ { q } \to \mathbb { R } ^ { q }$ applied to the pre-activation output $\hat { z } _ { t + 1 } ^ { ( i + 1 ) }$ and the output $ { \boldsymbol { z } } _ { t } ^ { ( i ) }$ × →from the previous layer. More formally, $z _ { t + 1 } ^ { ( i + 1 ) } = f \left( \hat { z } _ { t + 1 } ^ { ( i + 1 ) } , z _ { t } ^ { ( i ) } \right)$ .
63
+
64
+ A full trellis network can be built by tiling this elementary procedure across time and depth. Given
65
+ an input sequence $x _ { 1 : T }$ , we apply the same production procedure across all time steps and all layers,
66
+ using the same weights. The transformation is the same for all elements in the temporal dimen
67
+ sion and in the depth dimension. This is illustrated in Figure 1b. Note that since we inject the
68
+ same input sequence at every layer of the TrellisNet, we can precompute the linear transformation
69
+ $\tilde { x } _ { t + 1 } = W _ { 1 } ^ { x } x _ { t } + W _ { 2 } ^ { x } x _ { t + 1 }$ l layers propria $i$ . This identical linear combination of th linear combination of the hidden units, $i$ $\bar { W _ { 1 } ^ { z } z _ { t } ^ { ( i ) } + W _ { 2 } ^ { z } z _ { t + 1 } ^ { ( i ) } }$ $W _ { j } ^ { x } \in \mathbb { R } ^ { r \times p }$ $W _ { j } ^ { z } \in \mathbb { R } ^ { r \times q }$
70
+
71
+ Now observe that in each level of the network, we are in effect performing a 1D convolution over the hidden units $z _ { 1 : T } ^ { ( i ) }$ . The output of this convolution is then passed through the activation function $f$ . Formally, with $\ddot { W } \in \mathbb { R } ^ { r \times q }$ as the kernel weight matrix, the computation in layer $i$ can be summarized as follows (Figure 1b):
72
+
73
+ $$
74
+ \hat { z } _ { 1 : T } ^ { ( i + 1 ) } = \mathrm { C o n v } \ln \left( z _ { 1 : T } ^ { ( i ) } ; W \right) + \tilde { x } _ { 1 : T } , \qquad z _ { 1 : T } ^ { ( i + 1 ) } = f \left( \hat { z } _ { 1 : T } ^ { ( i + 1 ) } , z _ { 1 : T - 1 } ^ { ( i ) } \right) .
75
+ $$
76
+
77
+ The resulting network operates in feed-forward fashion, with deeper elements having progressively larger receptive fields. There are, however, important differences from typical (temporal) convolutional networks. Notably, the filter matrix is shared across all layers. That is, the weights are tied not only across time but also across depth. (Vogel & Pock (2017) have previously tied weights across depth in image processing.) Another difference is that the transformed input sequence $\tilde { x } _ { 1 : T }$ is directly injected into each hidden layer. These differences and their importance will be analyzed further in Section 4.
78
+
79
+ The activation function $f$ in Equation (3) can be any nonlinearity that processes the pre-activation output $\hat { z } _ { 1 : T } ^ { ( i + 1 ) }$ and the output from the previous layer $z _ { 1 : T - 1 } ^ { ( i ) }$ . We will later describe an activation function based on the LSTM cell. The rationale for its use will become clearer in light of the analysis presented in the next section.
80
+
81
+ # 4 TRELLISNET, TCN, AND RNN
82
+
83
+ In this section, we analyze the relationships between trellis networks, convolutional networks, and recurrent networks. In particular, we show that trellis networks can serve as a bridge between convolutional and recurrent networks. On the one hand, TrellisNet is a special form of temporal convolutional networks (TCN); this has already been clear in Section 3 and will be discussed further in Section 4.1. On the other hand, any truncated RNN can be represented as a TrellisNet with special structure in the interlayer transformations; this will be the subject of Section 4.2. These connections allow TrellisNet to harness architectural elements and regularization techniques from both TCNs and RNNs; this will be summarized in Section 4.3.
84
+
85
+ # 4.1 TRELLISNET AND TCN
86
+
87
+ We briefly introduce TCNs here, and refer the readers to Bai et al. (2018) for a more thorough discussion. Briefly, a temporal convolutional network (TCN) is a ConvNet that uses one-dimensional convolutions over the sequence. The convolutions are causal, meaning that, at each layer, the transformation at time $t$ can only depend on previous layer units at times $t$ or earlier, not from later points in time. Such approaches were used going back to the late 1980s, under the name of “time-delay neural networks” (Waibel et al., 1989), and have received significant interest in recent years due to their application in architectures such as WaveNet (van den Oord et al., 2016).
88
+
89
+ In essence, TrellisNet is a special kind of temporal convolutional network. TCNs have two distinctive characteristics: 1) causal convolution in each layer to satisfy the causality constraint and 2) deep stacking of layers to increase the effective history length (i.e. receptive field). Trellis networks have both of these characteristics. The basic model presented in Section 3 can easily be elaborated with larger kernel sizes, dilated convolutions, and other architectural elements used in TCNs; some of these are reviewed further in Section 4.3.
90
+
91
+ However, TrellisNet is not a general TCN. As mentioned in Section 3, two important differences are: 1) the weights are tied across layers and 2) the linearly transformed input $\tilde { x } _ { 1 : T }$ is injected into each layer. Weight tying can be viewed as a form of regularization that can stabilize training, support generalization, and significantly reduce the size of the model. Input injection mixes deep features with the original sequence. These structural characteristics will be further illuminated by the connection between trellis networks and recurrent networks, presented next.
92
+
93
+ # 4.2 TRELLISNET AND RNN
94
+
95
+ Recurrent networks appear fundamentally different from convolutional networks. Instead of operating on all elements of a sequence in parallel in each layer, an RNN processes one input element at a time and unrolls in the time dimension. Given a non-linearity $g$ (which could be a sigmoid or a more elaborate cell), we can summarize the transformations in an $L$ -layer RNN at time-step $t$ as follows:
96
+
97
+ $$
98
+ h _ { t } ^ { ( i ) } = g \left( W _ { h x } ^ { ( i ) } h _ { t } ^ { ( i - 1 ) } + W _ { h h } ^ { ( i ) } h _ { t - 1 } ^ { ( i ) } \right) \quad \mathrm { f o r } 1 \leq i \leq L , \qquad h _ { t } ^ { ( 0 ) } = x _ { t } .
99
+ $$
100
+
101
+ Despite the apparent differences, we will now show that any RNN unrolled to a finite length is equivalent to a TrellisNet with special sparsity structure in the kernel matrix $W$ . We begin by formally defining the notion of a truncated (i.e. finite-horizon) RNN.
102
+
103
+ Definition 1. Given an RNN $\rho ,$ , a corresponding M-truncated RNN $\rho ^ { M }$ , applied to the sequence $x _ { 1 : T }$ , produces at time step $t$ the output $y _ { t }$ by applying $\rho$ to the sequence $x _ { t - M + 1 : t }$ (here $x _ { < 0 } = 0$ ).
104
+
105
+ Theorem 1. Let $\rho ^ { M }$ be an $M$ -truncated RNN with $L$ layers and hidden unit dimensionality $d .$ . Then there exists an equivalent TrellisNet $\tau$ with depth $( M + L - 1 )$ and layer width (i.e. number of channels in each hidden layer) Ld. Specifically, for any $x _ { 1 : T }$ , $\rho ^ { M } ( x _ { 1 : T } ) = \tau _ { L ( d - 1 ) + 1 : L d } ( x _ { 1 : T } )$ (i.e. the TrellisNet outputs contain the RNN outputs).
106
+
107
+ Theorem 1 states that any $M$ -truncated RNN can be represented as a TrellisNet. How severe of a restriction is $M$ -truncation? Note that $M$ -truncation is intimately related to truncated backpropagation-through-time (BPTT), used pervasively in training recurrent networks on long sequences. While RNNs can in principle retain unlimited history, there is both empirical and theoretical evidence that the memory horizon of RNNs is bounded (Bai et al., 2018; Khandelwal et al., 2018;
108
+
109
+ Miller & Hardt, 2018). Furthermore, if desired, TrellisNets can recover exactly a common method of applying RNNs to long sequences – hidden state repackaging, i.e. copying the hidden state across subsequences. This is accomplished using an analogous form of hidden state repackaging, detailed in Appendix B.
110
+
111
+ Proof of Theorem 1. Let $h _ { t , t ^ { \prime } } ^ { ( i ) } \in \mathbb { R } ^ { d }$ be the hidden state at time $t$ and layer $i$ of the truncated RNN $\rho ^ { t - t ^ { \prime } + 1 }$ (i.e., the RNN begun at time $t ^ { \prime }$ and run until time ). Note that without truncation, history starts at tiwe define $t ^ { \prime } = 1$ , so the hidden state(i.e. no history info $h _ { t } ^ { ( i ) }$ ofion $\rho$ can be equivalently expressed as f the clock starts in the future). $h _ { t , 1 } ^ { ( i ) }$ . When $t ^ { \prime } > t$ $h _ { t , t ^ { \prime } } = 0$
112
+
113
+ By assumption, $\rho ^ { M }$ is an RNN defined by the following parameters: $\{ W _ { h x } ^ { ( i ) } , W _ { h h } ^ { ( i ) } , g , M \}$ , where $W _ { h h } ^ { ( i ) } \in \mathbb { R } ^ { w \times d }$ for all $i$ , $W _ { h x } ^ { ( 1 ) } \in \mathbb { R } ^ { w \times p }$ , and $W _ { h x } ^ { ( i ) } \in \mathbb { R } ^ { w \times d }$ for all $i = 2 , \ldots , L$ are the weight matrices at each layer ( $w$ is the dimension of pre-activation output). We now construct a TrellisNet $\tau$ according to the exact definition in Section 3, with parameters $\{ W _ { 1 } , W _ { 2 } , f \}$ , where
114
+
115
+ $$
116
+ \begin{array} { r } { W _ { 1 } = \left[ \begin{array} { c c c c c } { 0 } & { W _ { h h } ^ { ( 1 ) } } & { 0 } & { \cdots } & { 0 } \\ { 0 } & { 0 } & { W _ { h h } ^ { ( 2 ) } } & { \cdots } & { 0 } \\ { \vdots } & { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { 0 } & { 0 } & { 0 } & { \cdots } & { W _ { h h } ^ { ( L ) } } \end{array} \right] , W _ { 2 } = \left[ \begin{array} { c c c c c } { W _ { h x } ^ { ( 1 ) } } & { 0 } & { \cdots } & { 0 } & { 0 } \\ { 0 } & { W _ { h x } ^ { ( 2 ) } } & { \cdots } & { 0 } & { 0 } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } & { \vdots } \\ { 0 } & { 0 } & { \cdots } & { W _ { h x } ^ { ( L ) } } & { 0 } \end{array} \right] , } \end{array}
117
+ $$
118
+
119
+ such that $W _ { 1 } , W _ { 2 } \in \mathbb { R } ^ { L w \times ( p + L d ) }$ . We define a nonlinearity $f$ by $f ( \alpha , \beta ) = g ( \alpha )$ (i.e. applying $g$ only on the first entry).
120
+
121
+ Let $t \in [ T ] , j \geq 0$ be arbitrary and fixed. We now claim that the hidden unit at time $t$ and layer $j$ of TrellisNet $\tau$ can be expressed in terms of hidden units at time $t$ in truncated forms of $\rho$ :
122
+
123
+ $$
124
+ z _ { t } ^ { ( j ) } = \left[ h _ { t , t - j + 1 } ^ { ( 1 ) } \quad h _ { t , t - j + 2 } ^ { ( 2 ) } \quad \ldots \quad h _ { t , t - j + L } ^ { ( L ) } \right] ^ { \top } \in \mathbb { R } ^ { L d } ,
125
+ $$
126
+
127
+ where z(jt is the time- $\cdot t$ hidden state at layer $j$ of $\tau$ and $h _ { t , t ^ { \prime } } ^ { ( i ) }$ is the time- $t$ hidden state at layer $i$ of $\rho ^ { t - t ^ { \prime } + 1 }$ .
128
+
129
+ We prove Eq. (6) by induction on $j$ . As a base case, consider $j = 0$ ; i.e. the input layer of $\tau$ . Since $h _ { t , t ^ { \prime } } = 0$ when $t ^ { \prime } > t$ , we have that $z _ { j } ^ { ( 0 ) } = [ 0 \ : \ : 0 \ : \ : \ : . . \ : \ : \ : 0 ] ^ { \bar { \top } }$ . (Recall that in the input layer of TrellisNet we initialize $z _ { t } ^ { ( 0 ) } = \mathbf { 0 } .$ .) For the inductive step, suppose Eq. (6) holds for layer $j$ , and consider layer $j + 1$ . By the feed-forward transformation of TrellisNet defined in Eq. (2) and the nonlinearity $f$ we defined above, we have:
130
+
131
+ $$
132
+ \begin{array} { r l } & { \hat { z } _ { t } ^ { ( j + 1 ) } = W _ { 1 } \left[ \begin{array} { c } { x _ { t - 1 } } \\ { z _ { t - 1 } ^ { ( j ) } } \end{array} \right] + W _ { 2 } \left[ \begin{array} { c } { x _ { t } } \\ { z _ { t } ^ { ( j ) } } \end{array} \right] } \\ & { \quad = \left[ \begin{array} { c c c c c } { 0 } & { W _ { h h } ^ { ( 1 ) } } & { 0 } & { \cdots } & { 0 } \\ { 0 } & { W _ { h h } ^ { ( 2 ) } } & { \cdots } & { \vdots } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { 0 } & { 0 } & { \cdots } & { W _ { h h } ^ { ( L ) } } \end{array} \right] \left[ \begin{array} { c } { x _ { t - 1 } } \\ { h _ { t - 1 , t - j } ^ { ( 1 ) } } \\ { \vdots } \\ { h _ { t - 1 , t - j + L - 1 } ^ { ( L ) } } \end{array} \right] + \left[ \begin{array} { c c c c c } { W _ { h x } ^ { ( 1 ) } } & { 0 } & { \cdots } & { 0 } & { 0 } \\ { 0 } & { W _ { h x } ^ { ( 2 ) } } & { \cdots } & { 0 } & { 0 } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { 0 } & { 0 } & { \cdots } & { W _ { h x } ^ { ( L ) } } & { 0 } \end{array} \right] \left[ \begin{array} { c } { x _ { t } } \\ { h _ { t , t - j + 1 } ^ { ( 1 ) } } \\ { \vdots } \\ { h _ { t , t - j + L - 1 } ^ { ( L ) } } \end{array} \right] } \end{array}
133
+ $$
134
+
135
+ $$
136
+ \begin{array} { r l } & { \quad = \left[ \begin{array} { c c c c } { W _ { h h } ^ { ( 1 ) } h _ { t - 1 , t - j } ^ { ( 1 ) } + W _ { h x } ^ { ( 1 ) } x _ { t } } & & \\ & { \vdots } & \\ { W _ { h h } ^ { ( L ) } h _ { t - 1 , t - j + L - 1 } ^ { ( L ) } + W _ { h x } ^ { ( L ) } h _ { t , t - j + L - 1 } ^ { ( L - 1 ) } } \end{array} \right] } \\ & { z _ { t } ^ { ( j + 1 ) } = f ( \hat { z } _ { t } ^ { ( j + 1 ) } , z _ { t - 1 } ^ { ( j ) } ) = g ( \hat { z } _ { t } ^ { ( j + 1 ) } ) = \left[ h _ { t , t - j } ^ { ( 1 ) } \quad h _ { t , t - j + 1 } ^ { ( 2 ) } \quad . . . \quad h _ { t , t - j + L - 1 } ^ { ( L ) } \right] ^ { \top } } \end{array}
137
+ $$
138
+
139
+ where in Eq. (10) we apply the RNN non-linearity $g$ following Eq. (4). Therefore, by induction, we have shown that Eq. (6) holds for all $j \geq 0$ .
140
+
141
+ If TrellisNet $\tau$ has $M + L - 1$ layers, then at the final layer we have $\boldsymbol { z } _ { t } ^ { ( M + L - 1 ) } = \left[ \cdot \cdot \cdot \ \cdot \ \cdot \ h _ { t , t + 1 - M } ^ { ( L ) } \right] ^ { \top }$ Since $\rho ^ { M }$ is an $L$ -layer $M$ -truncated RNN, this (taking the last $d$ channels of z(M+L−1)) is exactly the output of $\rho ^ { M }$ at time $t$ .
142
+
143
+ ![](images/423da487a84995f6d8a91f2310ae894f78327132c9bac036c255e90994733ad1.jpg)
144
+ Figure 2: Representing a truncated 2-layer RNN $\rho ^ { M }$ as a trellis network $\tau$ . (a) Each unit of $\tau$ has three groups, which house the input, first-layer hidden vector, and second-layer hidden vector of $\rho ^ { M }$ , respectively. (b) Each group in the hidden unit of $\tau$ in level $i + 1$ at time step $t + 1$ is computed by a linear combination of appropriate groups of hidden units in level $i$ at time steps $t$ and $t + 1$ . The linear transformations form a mixed group convolution that reproduces computation in $\rho ^ { M }$ . (Nonlinearities not shown for clarity.)
145
+
146
+ In other words, we have shown that $\rho ^ { M }$ is equivalent to a TrellisNet with sparse kernel matrices $W _ { 1 } , W _ { 2 }$ . This completes the proof.
147
+
148
+ Note that the convolutions in the TrellisNet $\tau$ constructed in Theorem 1 are sparse, as shown in Eq. (5). They are related to group convolutions (Krizhevsky et al., 2012), but have an unusual form because group $k$ at time $t$ is convolved with group $k - 1$ at time $t + 1$ . We refer to these as mixed group convolutions. Moreover, while Theorem 1 assumes that all layers of $\rho ^ { M }$ have the same dimensionality $d$ for clarity, the proof easily generalizes to cases where each layer has different widths.
149
+
150
+ For didactic purposes, we recap and illustrate the construction in the case of a 2-layer RNN. The key challenge is that a na¨ıve unrolling of the RNN into a feed-forward network does not produce a convolutional network, since the linear transformation weights are not constant across a layer. The solution, illustrated in Figure 2a, is to organize each hidden unit into groups of channels, such that each TrellisNet unit represents 3 RNN units simultaneously (for $x _ { t } , h _ { t } ^ { ( 1 ) } , h _ { t } ^ { ( 2 ) } )$ . Each TrellisNet unit thus has $( p + 2 d )$ channels. The interlayer transformation can then be expressed as a mixed group convolution, illustrated in Figure 2b. This can be represented as a sparse convolution with the structure given in Eq. (5) (with $L = 2$ ). Applying the nonlinearity $g$ on the pre-activation output, this exactly reproduces the transformations in the original 2-layer RNN.
151
+
152
+ The TrellisNet that emerges from this construction has special sparsity structure in the weight matrix. It stands to reason that a general TrellisNet with an unconstrained (dense) weight matrix $W$ may have greater expressive power: it can model a broader class of transformations than the original RNN $\mathsf { \bar { \rho } } ^ { M }$ . Note that while the hidden channels of the TrellisNet $\tau$ constructed in the proof of Theorem 1 are naturally arranged into groups that represent different layers of the RNN $\bar { \rho } ^ { M }$ (Eq. (6)), an unconstrained dense weight matrix $W$ no longer admits such an interpretation. A model defined by a dense weight matrix is fundamentally distinct from the RNN $\rho ^ { M }$ that served as our point of departure. We take advantage of this expressivity and use general weight matrices $W$ , as presented in Section 3, in our experiments. Our ablation analysis will show that such generalized dense transformations are beneficial, even when model capacity is controlled for.
153
+
154
+ The proof of Theorem 1 did not delve into the inner structure of the nonlinear transformation $g$ in RNN (or $f$ in the constructed TrellisNet). For a vanilla RNN, for instance, $f$ is usually an elementwise sigmoid or tanh function. But the construction in Theorem 1 applies just as well to RNNs with structured cells, such as LSTMs and GRUs. We adopt LSTM cells for the TrellisNets in our experiments and provide a detailed treatment of this nonlinearity in Section 5.1 and Appendix A.
155
+
156
+ # 4.3 TRELLISNET AS A BRIDGE BETWEEN RECURRENT AND CONVOLUTIONAL MODELS
157
+
158
+ In Section 4.1 we concluded that TrellisNet is a special kind of TCN, characterized by weight tying and input injection. In Section 4.2 we established that TrellisNet is a generalization of truncated
159
+
160
+ RNNs. These connections along with the construction in our proof of Theorem 1 allow TrellisNets to benefit significantly from techniques developed originally for RNNs, while also incorporating architectural and algorithmic motifs developed for convolutional networks. We summarize a number of techniques here. From recurrent networks, we can integrate 1) structured nonlinear activations (e.g. LSTM and GRU gates); 2) variational RNN dropout (Gal & Ghahramani, 2016); 3) recurrent DropConnect (Merity et al., 2018b); and 4) history compression and repackaging. From convolutional networks, we can adapt 1) larger kernels and dilated convolutions (Yu & Koltun, 2016); 2) auxiliary losses at intermediate layers (Lee et al., 2015; Xie & Tu, 2015); 3) weight normalization (Salimans & Kingma, 2016); and 4) parallel convolutional processing. Being able to directly incorporate techniques from both streams of research is one of the benefits of trellis networks. We leverage this in our experiments and provide a more comprehensive treatment of these adaptations in Appendix B.
161
+
162
+ # 5 EXPERIMENTS
163
+
164
+ # 5.1 A TRELLISNET WITH GATED ACTIVATION
165
+
166
+ In our description of generic trellis networks in Section 3, the activation function $f$ can be any nonlinearity that computes $z _ { 1 : T } ^ { ( i + 1 ) }$ based on $\hat { z } _ { 1 : T } ^ { ( i + 1 ) }$ and $z _ { 1 : T - 1 } ^ { ( i ) }$ . In experiments, we use a gated activation based on the LSTM cell. Gated activations have been used before in convolutional networks for sequence modeling (van den Oord et al., 2016; Dauphin et al., 2017). Our choice is inspired directly by Theorem 1, which suggests incorporating an existing RNN cell into TrellisNet. We use the LSTM cell due to its effectiveness in recurrent networks (Jozefowicz et al., 2015; Greff et al., 2017; Melis et al., 2018). We summarize the construction here; a more detailed treatment can be found in Appendix A.
167
+
168
+ ![](images/e408b37a58a2bfe0accb91f0e2b58a49cfdcf7bb3081fb3c4589ee86334ac414.jpg)
169
+ Figure 3: A gated activation based on the LSTM cell.
170
+
171
+ In an LSTM cell, three information-controlling gates are computed at time $t$ . Moreover, there is a cell state that does not participate in the hidden-to-hidden transformations but is updated in every step using the result from the gated activations. We integrate the LSTM cell into the TrellisNet as follows (Figure 3):
172
+
173
+ $$
174
+ \begin{array} { r l r } & { \hat { z } _ { t + 1 } ^ { ( i + 1 ) } = W _ { 1 } \left[ z _ { t , 2 } ^ { ( i ) } \right] + W _ { 2 } \left[ z _ { t + 1 , 2 } ^ { ( i + 1 } \right] = \left[ \hat { z } _ { t + 1 , 1 } \quad \hat { z } _ { t + 1 , 2 } \quad \hat { z } _ { t + 1 , 3 } \quad \hat { z } _ { t + 1 , 4 } \right] ^ { \top } } & \\ & { z _ { t + 1 , 1 } ^ { ( i + 1 ) } = \sigma ( \hat { z } _ { t + 1 , 1 } ) \circ z _ { t , 1 } ^ { ( i ) } + \sigma ( \hat { z } _ { t + 1 , 2 } ) \circ \operatorname { t a n h } ( \hat { z } _ { t + 1 , 3 } ) } & \\ & { z _ { t + 1 , 2 } ^ { ( i + 1 ) } = \sigma ( \hat { z } _ { t + 1 , 4 } ) \circ \operatorname { t a n h } ( z _ { t + 1 , 1 } ^ { ( i + 1 ) } ) } & { ( 1 2 ; \operatorname { G a t e c } } \end{array}
175
+ $$
176
+
177
+ d activation $f$ )
178
+
179
+ Thus the linear transformation in each layer of the TrellisNet produces a pre-activation feature $\hat { z } _ { t + 1 }$ with $r = 4 q$ feature channels, which are then processed by elementwise transformations and Hadamard products to yield the final output z(i+1)t+1 $\boldsymbol { z } _ { t + 1 } ^ { ( i + 1 ) } = \left( \boldsymbol { z } _ { t + 1 , 1 } ^ { ( i + 1 ) } , \boldsymbol { z } _ { t + 1 , 2 } ^ { ( i + 1 ) } \right)$ of the layer.
180
+
181
+ # 5.2 RESULTS
182
+
183
+ We evaluate trellis networks on word-level and character-level language modeling on the standard Penn Treebank (PTB) dataset (Marcus et al., 1993; Mikolov et al., 2010), large-scale word-level modeling on WikiText-103 (WT103) (Merity et al., 2017), and standard stress tests used to study long-range information propagation in sequence models: sequential MNIST, permuted MNIST (PMNIST), and sequential CIFAR-10 (Chang et al., 2017; Bai et al., 2018; Trinh et al., 2018). Note that these tasks are on very different scales, with unique properties that challenge sequence models in different ways. For example, word-level PTB is a small dataset that a typical model easily overfits, so judicious regularization is essential. WT103 is a hundred times larger, with less danger of overfitting, but with a vocabulary size of 268K that makes training more challenging (and precludes the application of techniques such as mixture of softmaxes (Yang et al., 2018)). A more complete description of these tasks and their characteristics can be found in Appendix C.
184
+
185
+ Table 1: Test perplexities (ppl) on word-level language modeling with the PTB corpus. \` means lower is better.
186
+
187
+ <table><tr><td colspan="3">Word-level Penn Treebank (PTB)</td></tr><tr><td>Model</td><td>Size</td><td>Test perplexitye</td></tr><tr><td>Generic TCN (Bai et al., 2018)</td><td>13M</td><td>88.68</td></tr><tr><td>Variational LSTM (Gal &amp; Ghahramani,2016)</td><td>66M</td><td>73.4</td></tr><tr><td>NAS Cell (Zoph &amp; Le,2017)</td><td>54M</td><td>62.4</td></tr><tr><td>AWD-LSTM (Merity et al.,2018b)</td><td>24M</td><td>58.8</td></tr><tr><td>(Black-box tuned) NAS (Melis et al.,2018)</td><td>24M</td><td>59.7</td></tr><tr><td>(Black-box tuned) LSTM+ skip conn. (Melis et al.,2018)</td><td>24M</td><td>58.3</td></tr><tr><td>AWD-LSTM-MoC (Yang et al.,2018)</td><td>22M</td><td>57.55</td></tr><tr><td>DARTS (Liu et al., 2018)</td><td>23M</td><td>56.10</td></tr><tr><td>AWD-LSTM-MoS (Yang et al., 2018)</td><td>24M</td><td>55.97</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>24M</td><td>55.80</td></tr><tr><td>Ours - TrellisNet</td><td>24M</td><td>56.97</td></tr><tr><td>Ours - TrellisNet (1.4x larger)</td><td>33M</td><td>56.80</td></tr><tr><td>Ours-TrellisNet-MoS</td><td>25M</td><td>54.67</td></tr><tr><td>Ours - TrellisNet-MoS (1.4x larger)</td><td>34M</td><td>54.19</td></tr></table>
188
+
189
+ Table 2: Test perplexities (ppl) on word-level language modeling with the WT103 corpus.
190
+
191
+ <table><tr><td colspan="3">Word-level WikiText-103(WT103)</td></tr><tr><td>Model</td><td>Size</td><td>Test perplexityl</td></tr><tr><td>LSTM (Grave et al., 2017b)</td><td>-</td><td>48.7</td></tr><tr><td>LSTM+continuous cache (Grave et al., 2017b)</td><td>=</td><td>40.8</td></tr><tr><td>Generic TCN(Bai et al., 2018)</td><td>150M</td><td>45.2</td></tr><tr><td>Gated Linear ConvNet (Dauphin et al., 2017)</td><td>230M</td><td>37.2</td></tr><tr><td>AWD-QRNN (Merity et al., 2018a)</td><td>159M</td><td>33.0</td></tr><tr><td>Relational Memory Core (Santoro et al., 2018)</td><td>195M</td><td>31.6</td></tr><tr><td>Ours - TrellisNet</td><td>180M</td><td>29.19</td></tr></table>
192
+
193
+ The prior state of the art on these tasks was set by completely different models, such as AWD-LSTM on character-level PTB (Merity et al., 2018a), neural architecture search on word-level PTB (Pham et al., 2018), and the self-attention-based Relational Memory Core on WikiText-103 (Santoro et al., 2018). We use trellis networks on all tasks and outperform the respective state-of-the-art models on each. For example, on word-level Penn Treebank, TrellisNet outperforms by a good margin the recent results of Melis et al. (2018), which used the Google Vizier service for exhaustive hyperparameter tuning, as well as the recent neural architecture search work of Pham et al. (2018). On WikiText-103, a trellis network outperforms by $7 . 6 \%$ the Relational Memory Core (Santoro et al., 2018) and by $1 1 . 5 \%$ the thorough optimization work of Merity et al. (2018a).
194
+
195
+ Many hyperparameters we use are adapted directly from prior work on recurrent networks. (As highlighted in Section 4.3, many techniques can be carried over directly from RNNs.) For others, we perform a basic grid search. We decay the learning rate by a fixed factor once validation error plateaus. All hyperparameters are reported in Appendix D, along with an ablation study.
196
+
197
+ Word-level language modeling. For word-level language modeling, we use PTB and WT103. The results on PTB are listed in Table 1. TrellisNet sets a new state of the art on PTB, both with and without mixture of softmaxes (Yang et al., 2018), outperforming all previously published results by more than one unit of perplexity.
198
+
199
+ WT103 is 110 times larger than PTB, with vocabulary size 268K. We follow prior work and use the adaptive softmax (Grave et al., 2017a), which improves memory efficiency by assigning higher capacity to more frequent words. The results are listed in Table 2. TrellisNet sets a new state of the art on this dataset as well, with perplexity 29.19: about $7 . 6 \%$ better than the contemporaneous self-attention-based Relational Memory Core (RMC) (Santoro et al., 2018). TrellisNet achieves this better accuracy with much faster convergence: 25 epochs, versus 90 for RMC.
200
+
201
+ Table 3: Test bits-per-character (bpc) on character-level language modeling with the PTB corpus.
202
+
203
+ <table><tr><td colspan="3">Char-levelPTB</td></tr><tr><td>Model</td><td>Size</td><td>Test bpcl</td></tr><tr><td>Generic TCN (Bai et al.,2018)</td><td>3.0M</td><td>1.31</td></tr><tr><td>Independently RNN (Li et al., 2018)</td><td>12.0M</td><td>1.23</td></tr><tr><td>Hyper LSTM (Ha et al., 2017)</td><td>14.4M</td><td>1.219</td></tr><tr><td>NAS Cell (Zoph &amp; Le,2017)</td><td>16.3M</td><td>1.214</td></tr><tr><td>Fast-Slow-LSTM-2 (Mujika et al., 2017)</td><td>7.2M</td><td>1.19</td></tr><tr><td>Quasi-RNN (Merity et al.,2018a)</td><td>13.8M</td><td>1.187</td></tr><tr><td>AWD-LSTM (Merity et al.,2018a)</td><td>13.8M</td><td>1.175</td></tr><tr><td>Ours- TrellisNet</td><td>13.4M</td><td>1.158</td></tr></table>
204
+
205
+ Table 4: Test accuracies on long-range modeling benchmarks. h means higher is better.
206
+
207
+ <table><tr><td>Model</td><td>Seq. MNIST Test acc.h</td><td>Permuted MNIST Test acc.h</td><td>Seq. CIFAR-10 Test acc.h</td></tr><tr><td>Dilated GRU (Chang et al., 2017)</td><td>99.0</td><td>94.6</td><td></td></tr><tr><td>IndRNN (Li et al., 2018)</td><td>99.0</td><td>96.0</td><td>=</td></tr><tr><td>Generic TCN (Bai et al., 2018)</td><td>99.0</td><td>97.2</td><td>-</td></tr><tr><td>r-LSTM w/ Aux.Loss (Trinh et al.,2018)</td><td>98.4</td><td>95.2</td><td>72.2</td></tr><tr><td>Transformer (self-attention) (Trinh et al.,2018)</td><td>98.9</td><td>97.9</td><td>62.2</td></tr><tr><td>Ours- TrellisNet</td><td>99.20</td><td>98.13</td><td>73.42</td></tr></table>
208
+
209
+ Character-level language modeling. When used for character-level modeling, PTB is a mediumscale dataset with stronger long-term dependencies between characters. We thus use a deeper network as well as techniques such as weight normalization (Salimans & Kingma, 2016) and deep supervision (Lee et al., 2015; Xie & Tu, 2015). The results are listed in Table 3. TrellisNet sets a new state of the art with 1.158 bpc, outperforming the recent results of Merity et al. (2018a) by a comfortable margin.
210
+
211
+ Long-range modeling with Sequential MNIST, PMNIST, and CIFAR-10. We also evaluate the TrellisNet for ability to model long-term dependencies. In the Sequential MNIST, PMNIST, and CIFAR-10 tasks, images are processed as long sequences, one pixel at a time (Chang et al., 2017; Bai et al., 2018; Trinh et al., 2018). Our model has 8M parameters, in alignment with prior work. To cover the larger context, we use dilated convolutions in intermediate layers, adopting a common architectural element from TCNs (Yu & Koltun, 2016; van den Oord et al., 2016; Bai et al., 2018). The results are listed in Table 4. Note that the performance of prior models is inconsistent. The Transformer works well on MNIST but fairs poorly on CIFAR-10, while $r$ -LSTM with unsupervised auxiliary losses achieves good results on CIFAR-10 but underperforms on Permuted MNIST. TrellisNet outperforms all these models on all three tasks.
212
+
213
+ # 6 DISCUSSION
214
+
215
+ We presented trellis networks, a new architecture for sequence modeling. Trellis networks form a structural bridge between convolutional and recurrent models. This enables direct assimilation of many techniques designed for either of these two architectural families. We leverage these connections to train high-performing trellis networks that set a new state of the art on highly competitive language modeling benchmarks. Beyond the empirical gains, we hope that trellis networks will serve as a step towards deeper and more unified understanding of sequence modeling.
216
+
217
+ There are many exciting opportunities for future work. First, we have not conducted thorough performance optimizations on trellis networks. For example, architecture search on the structure of the gated activation $f$ may yield a higher-performing activation function than the classic LSTM cell we used (Zoph & Le, 2017; Pham et al., 2018). Likewise, principled hyperparameter tuning will likely improve modeling accuracy beyond the levels we have observed (Melis et al., 2018). Future work can also explore acceleration schemes that speed up training and inference.
218
+
219
+ Another significant opportunity is to establish connections between trellis networks and selfattention-based architectures (Transformers) (Vaswani et al., 2017; Santoro et al., 2018; Chen et al., 2018), thus unifying all three major contemporary approaches to sequence modeling. Finally, we look forward to seeing applications of trellis networks to industrial-scale challenges such as machine translation.
220
+
221
+ # REFERENCES
222
+
223
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2015.
224
+
225
+ Shaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv:1803.01271, 2018.
226
+
227
+ James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. In International Conference on Learning Representations (ICLR), 2017.
228
+
229
+ Shiyu Chang, Yang Zhang, Wei Han, Mo Yu, Xiaoxiao Guo, Wei Tan, Xiaodong Cui, Michael Witbrock, Mark Hasegawa-Johnson, and Thomas Huang. Dilated recurrent neural networks. In Neural Information Processing Systems (NIPS), 2017.
230
+
231
+ Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones, Niki Parmar, Noam Shazeer, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Mike Schuster, Zhifeng Chen, Yonghui Wu, and Macduff Hughes. The best of both worlds: Combining recent advances in neural machine translation. In Annual Meeting of the Association for Computational Linguistics (ACL), 2018.
232
+
233
+ Kyunghyun Cho, Bart Van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties ¨ of neural machine translation: Encoder-decoder approaches. arXiv:1409.1259, 2014.
234
+
235
+ Ronan Collobert, Jason Weston, Leon Bottou, Michael Karlen, Koray Kavukcuoglu, and Pavel P. ´ Kuksa. Natural language processing (almost) from scratch. Journal of Machine Learning Research (JMLR), 12, 2011.
236
+
237
+ Zihang Dai, Zhilin Yang, Yiming Yang, William W Cohen, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-XL: Language modeling with longer-term dependency. arXiv:1901.02860, 2019.
238
+
239
+ Yann N. Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. In International Conference on Machine Learning (ICML), 2017.
240
+
241
+ Jeff Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Trevor Darrell, and Kate Saenko. Long-term recurrent convolutional networks for visual recognition and description. In Computer Vision and Pattern Recognition (CVPR), 2015.
242
+
243
+ Jeffrey L Elman. Finding structure in time. Cognitive Science, 14(2), 1990.
244
+
245
+ Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Neural Information Processing Systems (NIPS), 2016.
246
+
247
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. In International Conference on Machine Learning (ICML), 2017.
248
+
249
+ Edouard Grave, Armand Joulin, Moustapha Cisse, David Grangier, and Herv ´ e J ´ egou. Efficient ´ softmax approximation for GPUs. In International Conference on Machine Learning (ICML), 2017a.
250
+
251
+ Edouard Grave, Armand Joulin, and Nicolas Usunier. Improving neural language models with a continuous cache. In International Conference on Learning Representations (ICLR), 2017b.
252
+
253
+ Alex Graves. Supervised Sequence Labelling with Recurrent Neural Networks. Springer, 2012.
254
+
255
+ Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013.
256
+
257
+ Klaus Greff, Rupesh Kumar Srivastava, Jan Koutn´ık, Bas R. Steunebrink, and Jurgen Schmidhuber. ¨ LSTM: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, 28(10), 2017.
258
+
259
+ David Ha, Andrew Dai, and Quoc V Le. HyperNetworks. In International Conference on Learning Representations (ICLR), 2017.
260
+
261
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 9(8), 1997.
262
+
263
+ Rafal Jozefowicz, Wojciech Zaremba, and Ilya Sutskever. An empirical exploration of recurrent network architectures. In International Conference on Machine Learning (ICML), 2015.
264
+
265
+ Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray ¨ Kavukcuoglu. Neural machine translation in linear time. arXiv:1610.10099, 2016.
266
+
267
+ Andrej Karpathy and Fei-Fei Li. Deep visual-semantic alignments for generating image descriptions. In Computer Vision and Pattern Recognition (CVPR), 2015.
268
+
269
+ Urvashi Khandelwal, He He, Peng Qi, and Dan Jurafsky. Sharp nearby, fuzzy far away: How neural language models use context. In Annual Meeting of the Association for Computational Linguistics (ACL), 2018.
270
+
271
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
272
+
273
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. ImageNet classification with deep convolutional neural networks. In Neural Information Processing Systems (NIPS), 2012.
274
+
275
+ Yann LeCun, Bernhard Boser, John S. Denker, Donnie Henderson, Richard E. Howard, Wayne Hubbard, and Lawrence D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4), 1989.
276
+
277
+ Chen-Yu Lee, Saining Xie, Patrick Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeplysupervised nets. In AISTATS, 2015.
278
+
279
+ Shuai Li, Wanqing Li, Chris Cook, Ce Zhu, and Yanbo Gao. Independently recurrent neural network (IndRNN): Building a longer and deeper RNN. In Computer Vision and Pattern Recognition (CVPR), 2018.
280
+
281
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. arXiv:1806.09055, 2018.
282
+
283
+ Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of English: The Penn treebank. Computational Linguistics, 19(2), 1993.
284
+
285
+ Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. In International Conference on Learning Representations (ICLR), 2018.
286
+
287
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations (ICLR), 2017.
288
+
289
+ Stephen Merity, Nitish Shirish Keskar, and Richard Socher. An analysis of neural language modeling at multiple scales. arXiv:1803.08240, 2018a.
290
+
291
+ Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing LSTM language models. In International Conference on Learning Representations (ICLR), 2018b.
292
+
293
+ Tomas Mikolov, Martin Karafiat, Luk ´ as Burget, Jan Cernock ´ y, and Sanjeev Khudanpur. Recurrent´ neural network based language model. In Interspeech, 2010.
294
+
295
+ John Miller and Moritz Hardt. When recurrent models don’t need to be recurrent. arXiv:1805.10369, 2018.
296
+
297
+ Yasumasa Miyamoto and Kyunghyun Cho. Gated word-character recurrent language model. arXiv:1606.01700, 2016.
298
+
299
+ Asier Mujika, Florian Meier, and Angelika Steger. Fast-slow recurrent neural networks. In Neural Information Processing Systems (NIPS), 2017.
300
+
301
+ Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In International Conference on Machine Learning (ICML), 2018.
302
+
303
+ Tara N. Sainath, Oriol Vinyals, Andrew W. Senior, and Hasim Sak. Convolutional, long short-term memory, fully connected deep neural networks. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2015.
304
+
305
+ Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Neural Information Processing Systems (NIPS), 2016.
306
+
307
+ Adam Santoro, Ryan Faulkner, David Raposo, Jack Rae, Mike Chrzanowski, Theophane Weber, Daan Wierstra, Oriol Vinyals, Razvan Pascanu, and Timothy Lillicrap. Relational recurrent neural networks. In Neural Information Processing Systems (NIPS), 2018.
308
+
309
+ Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. In Neural Information Processing Systems (NIPS), 2015.
310
+
311
+ Ilya Sutskever, James Martens, and Geoffrey E. Hinton. Generating text with recurrent neural networks. In International Conference on Machine Learning (ICML), 2011.
312
+
313
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Neural Information Processing Systems (NIPS), 2014.
314
+
315
+ Trieu H Trinh, Andrew M Dai, Thang Luong, and Quoc V Le. Learning longer-term dependencies in RNNs with auxiliary losses. In International Conference on Machine Learning (ICML), 2018.
316
+
317
+ Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, ¨ Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. WaveNet: A generative model for raw audio. arXiv:1609.03499, 2016.
318
+
319
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Neural Information Processing Systems (NIPS), 2017.
320
+
321
+ Subhashini Venugopalan, Marcus Rohrbach, Jeffrey Donahue, Raymond J. Mooney, Trevor Darrell, and Kate Saenko. Sequence to sequence – video to text. In International Conference on Computer Vision (ICCV), 2015.
322
+
323
+ Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Computer Vision and Pattern Recognition (CVPR), 2015.
324
+
325
+ Christoph Vogel and Thomas Pock. A primal dual network for low-level vision problems. In German Conference on Pattern Recognition, 2017.
326
+
327
+ Alex Waibel, Toshiyuki Hanazawa, Geoffrey Hinton, Kiyohiro Shikano, and Kevin J Lang. Phoneme recognition using time-delay neural networks. IEEE Transactions on Acoustics, Speech, and Signal Processing, 37(3), 1989.
328
+
329
+ Paul J Werbos. Backpropagation through time: What it does and how to do it. Proceedings of the IEEE, 78(10), 1990.
330
+
331
+ Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In International Conference on Computer Vision (ICCV), 2015.
332
+
333
+ Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W. Cohen. Breaking the softmax bottleneck: A high-rank RNN language model. International Conference on Learning Representations (ICLR), 2018.
334
+
335
+ Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations (ICLR), 2016.
336
+
337
+ Julian Georg Zilly, Rupesh Kumar Srivastava, Jan Koutn´ık, and Jurgen Schmidhuber. Recurrent ¨ highway networks. In International Conference on Machine Learning (ICML), 2017.
338
+
339
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017.
340
+
341
+ # A EXPRESSING AN LSTM AS A TRELLISNET
342
+
343
+ ![](images/7ece8640e8a4d3bf96a598d1ac638717113d4e343e5a1b715fd063ecd12e8905.jpg)
344
+ Figure 4: A TrellisNet with an LSTM nonlinearity, at an atomic level and on a longer sequence.
345
+
346
+ Here we trace in more detail the transformation of an LSTM into a TrellisNet. This is an application of Theorem 1. The nonlinear activation has been examined in Section 5.1. We will walk through the construction again here.
347
+
348
+ In each time step, an LSTM cell computes the following:
349
+
350
+ $$
351
+ \begin{array} { r l } & { f _ { t } ^ { ( \ell ) } = \sigma ( W _ { f } h _ { t } ^ { ( \ell - 1 ) } + U _ { f } h _ { t - 1 } ^ { ( \ell ) } ) \quad i _ { t } ^ { ( \ell ) } = \sigma ( W _ { i } h _ { t } ^ { ( \ell - 1 ) } + U _ { i } h _ { t - 1 } ^ { ( \ell ) } ) \quad g _ { t } ^ { ( \ell ) } = \operatorname { t a n h } ( W _ { g } h _ { t } ^ { ( \ell - 1 ) } + U _ { g } h _ { t - 1 } ^ { ( \ell ) } ) } \\ & { o _ { t } ^ { ( \ell ) } = \sigma ( W _ { o } h _ { t } ^ { ( \ell - 1 ) } + U _ { o } h _ { t - 1 } ^ { ( \ell ) } ) \quad c _ { t } ^ { ( \ell ) } = f _ { t } ^ { ( \ell ) } \circ c _ { t - 1 } ^ { ( \ell ) } + i _ { t } ^ { ( \ell ) } \circ g _ { t } ^ { ( \ell ) } \quad h _ { t } ^ { ( \ell ) } = o _ { t } ^ { ( \ell ) } \circ \operatorname { t a n h } ( c _ { t } ^ { ( \ell ) } ) } \end{array}
352
+ $$
353
+
354
+ where $h _ { t } ^ { ( 0 ) } = x _ { t }$ , and $f _ { t } , i _ { t } , o _ { t }$ are typically called the forget, input, and output gates. By a similar construction to how we defined $\tau$ in Theorem 1, to recover an LSTM the mixed group convolution needs to produce $3 q$ more channels for these gated outputs, which have the form $f _ { t , t ^ { \prime } } , i _ { t , t ^ { \prime } }$ and $g _ { t , t ^ { \prime } }$ (see Figure 5 for an example). In addition, at each layer of the mixed group convolution, the network also needs to maintain a group of channels for cell states $c _ { t , t ^ { \prime } }$ . Note that in an LSTM network, $c _ { t }$ is updated “synchronously” with $h _ { t }$ , so we can similarly write
355
+
356
+ $$
357
+ c _ { t , t ^ { \prime } } ^ { ( 1 ) } = f _ { t , t ^ { \prime } } ^ { ( 1 ) } \circ c _ { t - 1 , t ^ { \prime } } ^ { ( 1 ) } + i _ { t , t ^ { \prime } } ^ { ( 1 ) } \circ g _ { t , t ^ { \prime } } ^ { ( 1 ) } \qquad h _ { t , t ^ { \prime } } ^ { ( 1 ) } = o _ { t , t ^ { \prime } } ^ { ( 1 ) } \circ \operatorname { t a n h } ( c _ { t , t ^ { \prime } } ^ { ( 1 ) } )
358
+ $$
359
+
360
+ Based on these changes, we show in Figure 4 an atomic and a sequence view of TrellisNet with the LSTM activation. The hidden units $z _ { 1 : T }$ consist of two parts: $z _ { 1 : T , 1 }$ , which gets updated directly via the gated activations (akin to LSTM cell states), and $z _ { 1 : T , 2 }$ , which is processed by parameterized convolutions (akin to LSTM hidden states). Formally, in layer $i$ :
361
+
362
+ $$
363
+ \begin{array} { r l } & { \hat { z } _ { 1 : T } ^ { ( i + 1 ) } = { \operatorname { C o n v } } { \operatorname { l D } } ( z _ { 1 : T , 2 } ^ { ( i ) } ; W ) + \tilde { x } _ { 1 : T } = [ \hat { z } _ { 1 : T , 1 } \quad \hat { z } _ { 1 : T , 2 } \quad \hat { z } _ { 1 : T , 3 } \quad \hat { z } _ { 1 : T , 4 } ] ^ { \top } } \\ & { z _ { 1 : T , 1 } ^ { ( i + 1 ) } = \sigma ( \hat { z } _ { 1 : T , 1 } ) \circ z _ { 0 : T - 1 , 1 } ^ { ( i ) } + \sigma ( \hat { z } _ { 1 : T , 2 } ) \circ { \operatorname { t a n h } } ( \hat { z } _ { 1 : T , 3 } ) } \\ & { z _ { 1 : T , 2 } ^ { ( i + 1 ) } = \sigma ( \hat { z } _ { 1 : T , 4 } ) \circ { \operatorname { t a n h } } ( z _ { 1 : T , 1 } ^ { ( i + 1 ) } ) } \end{array}
364
+ $$
365
+
366
+ ![](images/e46cbe818ada0818d04fd45cf9d757cb8dd00bf6b857a3d0b387c29cfac98024.jpg)
367
+ Figure 5: A 2-layer LSTM is expressed as a trellis network with mixed group convolutions on four groups of feature channels. (Partial view.)
368
+
369
+ # B OPTIMIZING AND REGULARIZING TRELLISNET WITH RNN AND TCN METHODS
370
+
371
+ (a) History repackaging between truncated sequences in recurrent networks.
372
+
373
+ ![](images/c5287e8e00351701cefdeed9dfdbc38cca2d7fb23f9ebf8e4c0b2b8686084246.jpg)
374
+ (b) History repackaging in mixed group convolutions, where we write out $z _ { t }$ explicitly by Eq. (6).
375
+
376
+ ![](images/20fcbbe53f278f1fc12c9c5866ff02383bad4d6c664f6a6bdc448d892cfca736.jpg)
377
+
378
+ Figure 6: Using the equivalence established by Theorem 1, we can transfer the notion of history repackaging in recurrent networks to trellis networks.
379
+
380
+ In Section 4, we formally described the relationship between TrellisNets, RNNs, and temporal convolutional networks (TCN). On the one hand, TrellisNet is a special TCN (with weight-tying and input injection), while on the other hand it can also express any structured RNN via a sparse convolutional kernel. These relationships open clear paths for applying techniques developed for either recurrent or convolutional networks. We summarize below some of the techniques that can be applied in this way to TrellisNet, categorizing them as either inspired by RNNs or TCNs.
381
+
382
+ # B.1 FROM RECURRENT NETWORKS
383
+
384
+ History repackaging. One theoretical advantage of RNNs is their ability to represent a history of infinite length. However, in many applications, sequence lengths are too long for infinite backpropagation during training. A typical solution is to partition the sequence into smaller subsequences and perform truncated backpropagation through time (BPTT) on each. At sequence boundaries, the hidden state $h _ { t }$ is “repackaged” and passed onto the next RNN sequence. Thus gradient flow stops at sequence boundaries (see Figure 6a). Such repackaging is also sometimes used at test time.
385
+
386
+ We can now map this repackaging procedure to trellis networks. As shown in Figure 6, the notion of passing the compressed history vector $h _ { t }$ in an RNN corresponds to specific non-zero padding in the mixed group convolution of the corresponding TrellisNet. The padding is simply the channels from the last step of the final layer applied on the previous sequence (see Figure 6b, where without the repackaging padding, at layer 2 we will have $h _ { T + 1 , T + 1 } ^ { ( 1 ) }$ instead of $h _ { T + 1 , 1 } ^ { ( 1 ) } ,$ ). We illustrate this in Figure 6b, where we have written out $\boldsymbol { z } _ { t } ^ { ( i ) }$ in TrellisNet explicitly in the form of $h _ { t , t ^ { \prime } }$ according to Eq. (6). This suggests that instead of storing all effective history in memory, we can compress history in a feed-forward network to extend its history as well. For a general TrellisNet that employs a dense kernel, similarly, we can pass the hidden channels of the last step of the final layer in the previous sequence as the “history” padding for the next TrellisNet sequence (this works in both training and testing).
387
+
388
+ Gated activations. In general, the structured gates in RNN cells can be translated to gated activations in temporal convolutions, as we did in Appendix A in the case of an LSTM. While in the experiments we adopted the LSTM gating, other activations (e.g. GRUs (Cho et al., 2014) or activations found via architecture search (Zoph & Le, 2017)) can also be applied in trellis networks via the equivalence established in Theorem 1.
389
+
390
+ RNN variational dropout. Variational dropout (VD) for RNNs (Gal & Ghahramani, 2016) is a useful regularization scheme that applies the same mask at every time step within a layer (see Figure 7a). A direct translation of this technique from RNN to the group temporal convolution implies that we need to create a different mask for each diagonal of the network (i.e. each history starting point), as well as for each group of the mixed group convolution. We propose an alternative (and extremely simple) dropout scheme for TrellisNet, which is inspired by VD in RNNs as well as Theo(a) Left: variational dropout (VD) in an RNN. Right: VD in a (b) Auxiliary loss on intermediate layers TrellisNet. Each color indicates a different dropout mask. in a TrellisNet.
391
+
392
+ ![](images/4f3f5e3ccce36f93ab23fcfeda845345ce8a0ad4429f97601f8ed55d7792a48c.jpg)
393
+ Figure 7: (a) RNN-inspired variational dropout. (b) ConvNet-inspired auxiliary losses.
394
+
395
+ rem 1. In each iteration, we apply the same mask on the post-activation outputs, at every time step in both the temporal dimension and depth dimension. That is, based on Eq. (6) in Theorem 1, we adapt VD to the TrellisNet setting by assuming $h _ { t , t ^ { \prime } \pm \delta } \approx h _ { t , t ^ { \prime } }$ ; see Figure 7a. Empirically, we found this dropout to work significantly better than other dropout schemes (e.g. drop certain channels entirely).
396
+
397
+ Recurrent weight dropout/DropConnect. We apply DropConnect on the TrellisNet kernel. Merity et al. (2018b) showed that regularizing hidden-to-hidden weights $W _ { h h }$ can be useful in optimizing LSTM language models, and we carry this scheme over to trellis networks.
398
+
399
+ # B.2 FROM CONVOLUTIONAL NETWORKS
400
+
401
+ Dense convolutional kernel. Generalizing the convolution from a mixed group (sparse) convolution to a general (dense) one means the connections are no longer recurrent and we are computing directly on the hidden units with a large kernel, just like any temporal ConvNet.
402
+
403
+ Deep supervision. Recall that for sparse TrellisNet to recover truncated RNN, at each level the hidden units are of the form $h _ { t , t ^ { \prime } }$ , representing the state at time $t$ if we assume that history started at time $t ^ { \prime }$ (Eq. (6)). We propose to inject the loss function at intermediate layers of the convolutional network (e.g. after every $\ell$ layers of transformations, where we call $\ell$ the auxiliary loss frequency). For example, during training, to predict an output at time $t$ with a $L$ -layer TrellisNet, besides $ { \boldsymbol { z } } _ { t } ^ { ( L ) }$ in the last layer, we can also apply the loss function on $\boldsymbol { z } _ { t } ^ { ( L - \ell ) }$ , $z _ { t } ^ { ( L - 2 \bar { \ell } ) }$ , etc. – where hidden units will predict with a shorter history because they are at lower levels of the network. This had been introduced for convolutional models in computer vision (Lee et al., 2015; Xie & Tu, 2015). The eventual loss of the network will be
404
+
405
+ $$
406
+ \mathcal { L } _ { \mathrm { t o t a l } } = \mathcal { L } _ { \mathrm { o r i g } } + \lambda \cdot \mathcal { L } _ { \mathrm { a u x } } ,
407
+ $$
408
+
409
+ where $\lambda$ is a fixed scaling factor that controls the weight of the auxiliary loss.
410
+
411
+ Note that this technique is not directly transferable (or applicable) to RNNs.
412
+
413
+ Larger kernel and dilations (Yu & Koltun, 2016). These techniques have been used in convolutional networks to more quickly increase the receptive field. They can be immediately applied to trellis networks. Note that the activation function $f$ of TrellisNet may need to change if we change the kernel size or dilation settings (e.g. with dilation $d$ and kernel size 2, the activation will be $f ( \hat { z } _ { 1 : T } ^ { ( i ) } , z _ { 1 : T - d } ^ { ( i ) } ) )$ .
414
+
415
+ Weight normalization (Salimans & Kingma, 2016). Weight normalization (WN) is a technique that learns the direction and the magnitude of the weight matrix independently. Applying WN on the convolutional kernel was used in some prior works on temporal convolutional architectures (Dauphin et al., 2017; Bai et al., 2018), and have been found useful in regularizing the convolutional filters and boosting convergence.
416
+
417
+ Parallelism. Because TrellisNet is convolutional in nature, it can easily leverage the parallel processing in the convolution operation (which slides the kernel across the input features). We note that when the input sequence is relatively long, the predictions of the first few time steps will have insufficient history context compared to the predictions later in the sequence. This can be addressed by either history padding (mentioned in Appendix B.1) or chopping off the loss incurred by the first few time steps.
418
+
419
+ # C BENCHMARK TASKS
420
+
421
+ Word-level language modeling on Penn Treebank (PTB). The original Penn Treebank (PTB) dataset selected 2,499 stories from a collection of almost 100K stories published in Wall Street Journal (WSJ) (Marcus et al., 1993). After Mikolov et al. (2010) processed the corpus, the PTB dataset contains 888K words for training, 70K for validation and 79K for testing, where each sentence is marked with an $< \ominus \hphantom { . 0 0 0 }$ tag at its end. All of the numbers (e.g. in financial news) were replaced with a ? symbol with many punctuations removed. Though small, PTB has been a highly studied dataset in the domain of language modeling (Miyamoto & Cho, 2016; Zilly et al., 2017; Merity et al., 2018b; Melis et al., 2018; Yang et al., 2018). Due to its relatively small size, many computational models can easily overfit on word-level PTB. Therefore, good regularization methods and optimization techniques designed for sequence models are especially important on this benchmark task (Merity et al., 2018b).
422
+
423
+ Word-level language modeling on WikiText-103. WikiText-103 (WT103) is 110 times larger than PTB, containing a training corpus from 28K lightly processed Wikipedia articles (Merity et al., 2017). In total, WT103 features a vocabulary size of about $2 6 8 \mathrm { K } ^ { 2 }$ , with 103M words for training, 218K words for validation, and 246K words for testing/evaluation. The WT103 corpus also retains the original case, punctuation and numbers in the raw data, all of which were removed from the PTB corpus. Moreover, since WT103 is composed of full articles (whereas PTB is sentence-based), it is better suited for testing long-term context retention. For these reasons, WT103 is typically considered much more representative and realistic than PTB (Merity et al., 2018a).
424
+
425
+ Character-level language modeling on Penn Treebank (PTB). When used for character-level language modeling, PTB is a medium size dataset that contains 5M chracters for training, 396K for validation, and 446K for testing, with an alphabet size of 50 (note: the $< \ominus \hphantom { . 0 0 0 }$ tag that marks the end of a sentence in word-level tasks is now considered one character). While the alphabet size of char-level PTB is much smaller compared to the word-level vocabulary size (10K), there is much longer sequential token dependency because a sentence contains many more characters than words.
426
+
427
+ Sequential and permuted MNIST classification. The MNIST handwritten digits dataset (LeCun et al., 1989) contains 60K normalized training images and 10K testing images, all of size $2 8 \times 2 8$ . In the sequential MNIST task, MNIST images are presented to the sequence model as a flattened $7 8 4 \times 1$ sequence for digit classification. Accurate predictions therefore require good long-term memory of the flattened pixels – longer than in most language modeling tasks. In the setting of permuted MNIST (PMNIST), the order of the sequence is permuted at random, so the network can no longer rely on local pixel features for classification.
428
+
429
+ Sequential CIFAR-10 classification. The CIFAR-10 dataset (Krizhevsky & Hinton, 2009) contains 50K images for training and 10K for testing, all of size $3 2 \times 3 2$ . In the sequential CIFAR-10 task, these images are passed into the model one at each time step, flattended as in the MNIST tasks. Compared to sequential MNIST, this task is more challenging. For instance, CIFAR-10 contains more complex image structures and intra-class variations, and there are 3 channels to the input. Moreover, as the images are larger, a sequence model needs to have even longer memory than in sequential MNIST or PMNIST (Trinh et al., 2018).
430
+
431
+ # D HYPERPARAMETERS AND ABLATION STUDY
432
+
433
+ Table 5 specifies the trellis networks used for the various tasks. There are a few things to note while reading the table. First, in training, we decay the learning rate once the validation error plateaus for a while (or according to some fixed schedule, such as after 100 epochs). Second, for auxiliary loss (see Appendix B for more details), we insert the loss function after every fixed number of layers in the network. This “frequency” is included below under the “Auxiliary Frequency” entry. Finally, the hidden dropout in the Table refers to the variational dropout we translated from RNNs (see Appendix B), which is applied at all hidden layers of the TrellisNet. Due to the insight from Theorem 1, many techniques in TrellisNet were translated directly from RNNs or TCNs. Thus, most of the hyperparameters were based on the numbers reported in prior works (e.g. embedding size, embedding dropout, hidden dropout, output dropout, optimizer, weight-decay, etc.) with minor adjustments (Merity et al., 2018b; Yang et al., 2018; Bradbury et al., 2017; Merity et al., 2018a; Trinh et al., 2018; Bai et al., 2018; Santoro et al., 2018). For factors such as auxiliary loss weight and frequency, we perform a basic grid search.
434
+
435
+ Table 5: Models and hyperparameters used in experiments. “–” means not applicable/used.
436
+
437
+ <table><tr><td></td><td>Word-PTB (w/o MoS)</td><td>Word-PTB(w/MoS)</td><td>Word-WT103</td><td>Char-PTB</td><td>(P)MNIST/CIFAR-10</td></tr><tr><td>Optimizer</td><td>SGD</td><td>SGD</td><td>Adam</td><td>Adam</td><td>Adam</td></tr><tr><td>Initial Learning Rate</td><td>20</td><td>20</td><td>1e-3</td><td>2e-3</td><td>2e-3</td></tr><tr><td>Hidden Size (i.e. ht)</td><td>1000</td><td>1000</td><td>2000</td><td>1000</td><td>100</td></tr><tr><td>Output Size (only for MoS)</td><td>1</td><td>480</td><td>1</td><td>1</td><td>1</td></tr><tr><td># of Experts (only for MoS)</td><td>1</td><td>15</td><td>1</td><td>1</td><td>1</td></tr><tr><td>Embedding Size</td><td>400</td><td>280</td><td>512</td><td>200</td><td>1</td></tr><tr><td>Embedding Dropout</td><td>0.1</td><td>0.05</td><td>0.0</td><td>0.0</td><td>1</td></tr><tr><td>Hidden (VD-based) Dropout</td><td>0.28</td><td>0.28</td><td>0.1</td><td>0.3</td><td>0.2</td></tr><tr><td>Output Dropout</td><td>0.45</td><td>0.4</td><td>0.1</td><td>0.1</td><td>0.2</td></tr><tr><td>Weight Dropout</td><td>0.5</td><td>0.45</td><td>0.1</td><td>0.25</td><td>0.1</td></tr><tr><td># of Layers</td><td>55</td><td>55</td><td>70</td><td>125</td><td>16</td></tr><tr><td>Auxiliary Loss 入</td><td>0.05</td><td>0.05</td><td>0.08</td><td>0.3</td><td>1</td></tr><tr><td>Auxiliary Frequency</td><td>16</td><td>16</td><td>25</td><td>70</td><td></td></tr><tr><td>Weight Normalization</td><td>1</td><td>1</td><td>√</td><td>√</td><td>√</td></tr><tr><td>Gradient Clip</td><td>0.225</td><td>0.2</td><td>0.1</td><td>0.2</td><td>0.5</td></tr><tr><td>Weight Decay</td><td>1e-6</td><td>1e-6</td><td>0.0</td><td>1e-6</td><td>1e-6</td></tr><tr><td>Model Size</td><td>24M</td><td>25M</td><td>180M</td><td>13.4M</td><td>8M</td></tr></table>
438
+
439
+ We have also performed an ablation study on TrellisNet to study the influence of various ingredients and techniques on performance. The results are reported in Table 6. We conduct the study on wordlevel PTB using a TrellisNet with 24M parameters. When we study one factor (e.g. removing hidden dropout), all hyperparameters and settings remain the same as in column 1 of Table 5 (except for “Dense Kernel”, where we adjust the number of hidden units so that the model size remains the same).
440
+
441
+ Table 6: Ablation study on word-level PTB (w/o MoS)
442
+
443
+ <table><tr><td></td><td>Model Size</td><td>Test ppl</td><td>△SOTA</td></tr><tr><td>TrellisNet</td><td>24.1M</td><td>56.97</td><td>1 ↓7.72</td></tr><tr><td>-Hidden(VD-based) Dropout</td><td>24.1M</td><td>64.69</td><td>↓6.85</td></tr><tr><td>- Weight Dropout - Auxiliary Losses</td><td>24.1M 24.1M</td><td>63.82 57.99</td><td>↓1.02</td></tr><tr><td>-Long Seq.Parallelism</td><td>24.1M</td><td>57.35</td><td>↓0.38</td></tr><tr><td>-Dense Kernel (i.e.mixed group conv)</td><td>24.1M</td><td>59.18</td><td>↓2.21</td></tr><tr><td>-Injected Input (every 2 layers instead)</td><td>24.1M</td><td>57.44</td><td>↓0.47</td></tr><tr><td>Injected Input (every 5 layers instead)</td><td>24.1M</td><td>59.75</td><td>↓2.78</td></tr><tr><td>-Injected Input (every1O layers instead)</td><td>24.1M</td><td></td><td></td></tr><tr><td>-Injected Input (every 2O layers instead)</td><td>24.1M</td><td>60.70 74.91</td><td>↓3.73 ↓17.94</td></tr></table>
parse/train/HyeVtoRqtQ/HyeVtoRqtQ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyeVtoRqtQ/HyeVtoRqtQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyeVtoRqtQ/HyeVtoRqtQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyrCWeWCb/HyrCWeWCb.md ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRUST-PCL: AN OFF-POLICY TRUST REGION METHOD FOR CONTINUOUS CONTROL
2
+
3
+ Ofir Nachum, Mohammad Norouzi, Kelvin Xu, & Dale Schuurmans∗ {ofirnachum,mnorouzi,kelvinxx,schuurmans}@google.com Google Brain
4
+
5
+ # ABSTRACT
6
+
7
+ Trust region methods, such as TRPO, are often used to stabilize policy optimization algorithms in reinforcement learning (RL). While current trust region strategies are effective for continuous control, they typically require a large amount of on-policy interaction with the environment. To address this problem, we propose an off-policy trust region method, Trust-PCL, which exploits an observation that the optimal policy and state values of a maximum reward objective with a relative-entropy regularizer satisfy a set of multi-step pathwise consistencies along any path. The introduction of relative entropy regularization allows Trust-PCL to maintain optimization stability while exploiting off-policy data to improve sample efficiency. When evaluated on a number of continuous control tasks, Trust-PCL significantly improves the solution quality and sample efficiency of TRPO.1
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The goal of model-free reinforcement learning (RL) is to optimize an agent’s behavior policy through trial and error interaction with a black box environment. Value-based RL algorithms such as Q-learning (Watkins, 1989) and policy-based algorithms such as actor-critic (Konda & Tsitsiklis, 2000) have achieved well-known successes in environments with enumerable action spaces and predictable but possibly complex dynamics, e.g., as in Atari games (Mnih et al., 2013; Van Hasselt et al., 2016; Mnih et al., 2016). However, when applied to environments with more sophisticated action spaces and dynamics (e.g., continuous control and robotics), success has been far more limited.
12
+
13
+ In an attempt to improve the applicability of Q-learning to continuous control, Silver et al. (2014) and Lillicrap et al. (2015) developed an off-policy algorithm DDPG, leading to promising results on continuous control environments. That said, current off-policy methods including DDPG often improve data efficiency at the cost of optimization stability. The behaviour of DDPG is known to be highly dependent on hyperparameter selection and initialization (Metz et al., 2017); even when using optimal hyperparameters, individual training runs can display highly varying outcomes.
14
+
15
+ On the other hand, in an attempt to improve the stability and convergence speed of policy-based RL methods, Kakade (2002) developed a natural policy gradient algorithm based on Amari (1998), which subsequently led to the development of trust region policy optimization (TRPO) (Schulman et al., 2015). TRPO has shown strong empirical performance on difficult continuous control tasks often outperforming value-based methods like DDPG. However, a major drawback is that such methods are not able to exploit off-policy data and thus require a large amount of on-policy interaction with the environment, making them impractical for solving challenging real-world problems.
16
+
17
+ Efforts at combining the stability of trust region policy-based methods with the sample efficiency of value-based methods have focused on using off-policy data to better train a value estimate, which can be used as a control variate for variance reduction (Gu et al., 2017a;b).
18
+
19
+ In this paper, we investigate an alternative approach to improving the sample efficiency of trust region policy-based RL methods. We exploit the key fact that, under entropy regularization, the optimal policy and value function satisfy a set of pathwise consistency properties along any sampled path (Nachum et al., 2017), which allows both on and off-policy data to be incorporated in an actor-critic algorithm, PCL. The original PCL algorithm optimized an entropy regularized maximum reward objective and was evaluated on relatively simple tasks. Here we extend the ideas of PCL to achieve strong results on standard, challenging continuous control benchmarks. The main observation is that by alternatively augmenting the maximum reward objective with a relative entropy regularizer, the optimal policy and values still satisfy a certain set of pathwise consistencies along any sampled trajectory. The resulting objective is equivalent to maximizing expected reward subject to a penalty-based constraint on divergence from a reference (i.e., previous) policy.
20
+
21
+ We exploit this observation to propose a new off-policy trust region algorithm, Trust-PCL, that is able to exploit off-policy data to train policy and value estimates. Moreover, we present a simple method for determining the coefficient on the relative entropy regularizer to remain agnostic to reward scale, hence ameliorating the task of hyperparameter tuning. We find that the incorporation of a relative entropy regularizer is crucial for good and stable performance. We evaluate TrustPCL against TRPO, and observe that Trust-PCL is able to solve difficult continuous control tasks, while improving the performance of TRPO both in terms of the final reward achieved as well as sample-efficiency.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Trust Region Methods. Gradient descent is the predominant optimization method for neural networks. A gradient descent step is equivalent to solving a trust region constrained optimization,
26
+
27
+ $$
28
+ \mathrm { m i n i m i z e } ~ { \boldsymbol { \ell } } ( { \boldsymbol { \theta } } + \mathrm { d } { \boldsymbol { \theta } } ) \approx { \boldsymbol { \ell } } ( { \boldsymbol { \theta } } ) + { \boldsymbol { \nabla } } { \boldsymbol { \ell } } ( { \boldsymbol { \theta } } ) ^ { \top } \mathrm { d } { \boldsymbol { \theta } } \qquad { \mathrm { s . t . } } \quad \mathrm { d } { \boldsymbol { \theta } } ^ { \top } \mathrm { d } { \boldsymbol { \theta } } \leq \epsilon ,
29
+ $$
30
+
31
+ which yields the locally optimal update $\mathrm { d } \theta = - \eta \nabla \ell ( \theta )$ such that $\eta ~ = ~ { \sqrt { \epsilon } } / \| \nabla \ell ( \theta ) \|$ ; hence by considering a Euclidean ball, gradient descent assumes the parameters lie in a Euclidean space.
32
+
33
+ However, in machine learning, particularly in the context of multi-layer neural network training, Euclidean geometry is not necessarily the best way to characterize proximity in parameter space. It is often more effective to define an appropriate Riemannian metric that respects the loss surface (Amari, 2012), which allows much steeper descent directions to be identified within a local neighborhood (e.g., Amari (1998); Martens & Grosse (2015)). Whenever the loss is defined in terms of a Bregman divergence between an (unknown) optimal parameter $\theta ^ { * }$ and model parameter $\theta$ , i.e., $\ell ( \theta ) \equiv D _ { \mathrm { { F } } } ( \theta ^ { * } , \theta )$ , it is natural to use the same divergence to form the trust region:
34
+
35
+ $$
36
+ \mathrm { m i n i m i z e } D _ { \mathrm { F } } ( \theta ^ { * } , \theta + \mathrm { d } \theta ) \mathrm { s . t . } D _ { \mathrm { F } } ( \theta , \theta + \mathrm { d } \theta ) \leq \epsilon .
37
+ $$
38
+
39
+ The natural gradient (Amari, 1998) is a generalization of gradient descent where the Fisher information matrix $F ( \theta )$ is used to define the local geometry of the parameter space around $\theta$ . If a parameter update is constrained by $\mathrm { d } \theta ^ { \mathsf { T } } F ( \theta ) \mathrm { d } \theta \leq \epsilon$ , a descent direction of $\mathrm { d } \theta \equiv - \eta F ( \theta ) ^ { - 1 } \nabla \ell ( \theta )$ is obtained. This geometry is especially effective for optimizing the log-likelihood of a conditional probabilistic model, where the objective is in fact the KL divergence $D _ { \mathrm { K L } } ( \theta ^ { * } , \theta )$ . The local optimization is,
40
+
41
+ $$
42
+ \mathrm { m i n i m i z e } D _ { \mathrm { K L } } ( \theta ^ { * } , \theta + \mathrm { d } \theta ) \quad \mathrm { ~ s . t . ~ } \quad D _ { \mathrm { K L } } ( \theta , \theta + \mathrm { d } \theta ) \approx \mathrm { d } \theta ^ { \mathsf { T } } F ( \theta ) \mathrm { d } \theta \leq \epsilon .
43
+ $$
44
+
45
+ Thus, natural gradient approximates the trust region by $D _ { \mathrm { { K L } } } ( a , b ) \approx ( a - b ) ^ { \mathsf { T } } F ( a ) ( a - b )$ , which is accurate up to a second order Taylor approximation. Previous work (Kakade, 2002; Bagnell $\&$ Schneider, 2003; Peters & Schaal, 2008; Schulman et al., 2015) has applied natural gradient to policy optimization, locally improving expected reward subject to variants of $\mathrm { d } \theta ^ { \mathsf { T } } F ( \theta ) \mathrm { d } \theta \leq \epsilon$ . Recently, TRPO (Schulman et al., 2015; 2016) has achieved state-of-the-art results in continuous control by adding several approximations to the natural gradient to make nonlinear policy optimization feasible.
46
+
47
+ Another approach to trust region optimization is given by proximal gradient methods (Parikh et al., 2014). The class of proximal gradient methods most similar to our work are those that replace the hard constraint in (2) with a penalty added to the objective. These techniques have recently become popular in RL (Wang et al., 2016; Heess et al., 2017; Schulman et al., 2017b), although in terms of final reward performance on continuous control benchmarks, TRPO is still considered to be the state-of-the-art.
48
+
49
+ Norouzi et al. (2016) make the observation that entropy regularized expected reward may be expressed as a reversed KL divergence $D _ { \mathrm { K L } } ( \theta , \theta ^ { * } )$ , which suggests that an alternative to the constraint in (3) should be used when such regularization is present:
50
+
51
+ $$
52
+ D _ { \mathrm { K L } } ( \boldsymbol \theta + \mathrm { d } \boldsymbol \theta , \boldsymbol \theta ^ { * } ) \qquad \mathrm { s . t . } \qquad D _ { \mathrm { K L } } ( \boldsymbol \theta + \mathrm { d } \boldsymbol \theta , \boldsymbol \theta ) \approx \mathrm { d } \boldsymbol \theta ^ { \mathsf { T } } \boldsymbol F ( \boldsymbol \theta + \mathrm { d } \boldsymbol \theta ) \mathrm { d } \boldsymbol \theta \leq \epsilon .
53
+ $$
54
+
55
+ Unfortunately, this update requires computing the Fisher matrix at the endpoint of the update. The use of $F ( \theta )$ in previous work can be considered to be an approximation when entropy regularization is present, but it is not ideal, particularly if $\mathrm { d } \theta$ is large. In this paper, by contrast, we demonstrate that the optimal $\mathrm { d } \theta$ under the reverse KL constraint $\bar { D _ { \mathrm { K L } } } ( \theta + \mathrm { d } \bar { \theta } , \bar { \theta } ) \leq \dot { \epsilon }$ can indeed be characterized. Defining the constraint in this way appears to be more natural and effective than that of TRPO.
56
+
57
+ Softmax Consistency. To comply with the information geometry over policy parameters, previous work has used the relative entropy (i.e., KL divergence) to regularize policy optimization; resulting in a softmax relationship between the optimal policy and state values (Peters et al., 2010; Azar et al., 2012; 2011; Fox et al., 2016; Rawlik et al., 2013) under single-step rollouts. Our work is unique in that we leverage consistencies over multi-step rollouts.
58
+
59
+ The existence of multi-step softmax consistencies has been noted by prior work—first by Nachum et al. (2017) in the presence of entropy regularization. The existence of the same consistencies with relative entropy has been noted by Schulman et al. (2017a). Our work presents multi-step consistency relations for a hybrid relative entropy plus entropy regularized expected reward objective, interpreting relative entropy regularization as a trust region constraint. This work is also distinct from prior work in that the coefficient of relative entropy can be automatically determined, which we have found to be especially crucial in cases where the reward distribution changes dramatically during training.
60
+
61
+ Most previous work on softmax consistency (e.g., Fox et al. (2016); Azar et al. (2012); Nachum et al. (2017)) have only been evaluated on relatively simple tasks, including grid-world and discrete algorithmic environments. Rawlik et al. (2013) conducted evaluations on simple variants of the CartPole and Pendulum continuous control tasks. More recently, Haarnoja et al. (2017) showed that soft Qlearning (a single-step special case of PCL) can succeed on more challenging environments, such as a variant of the Swimmer task we consider below. By contrast, this paper presents a successful application of the softmax consistency concept to difficult and standard continuous-control benchmarks, resulting in performance that is competitive with and in some cases beats the state-of-the-art.
62
+
63
+ # 3 NOTATION & BACKGROUND
64
+
65
+ We model an agent’s behavior by a policy distribution $\pi ( a | s )$ over a set of actions (possibly discrete or continuous). At iteration $t$ , the agent encounters a state $s _ { t }$ and performs an action $a _ { t }$ sampled from $\pi ( \boldsymbol { a } \mid \boldsymbol { s } _ { t } )$ . The environment then returns a scalar reward $\displaystyle r _ { t } \sim r ( s _ { t } , a _ { t } )$ and transitions to the next state $s _ { t + 1 } \sim \rho ( s _ { t } , a _ { t } )$ . When formulating expectations over actions, rewards, and state transitions we will often omit the sampling distributions, $\pi , r$ , and $\rho$ , respectively.
66
+
67
+ Maximizing Expected Reward. The standard objective in RL is to maximize expected future discounted reward. We formulate this objective on a per-state basis recursively as
68
+
69
+ $$
70
+ O _ { \mathrm { E R } } ( s , \pi ) = \mathbb { E } _ { a , r , s ^ { \prime } } \left[ r + \gamma O _ { \mathrm { E R } } ( s ^ { \prime } , \pi ) \right] .
71
+ $$
72
+
73
+ The overall, state-agnostic objective is the expected per-state objective when states are sampled from interactions with the environment:
74
+
75
+ $$
76
+ O _ { \mathrm { E R } } ( \pi ) = \mathbb { E } _ { s } [ O _ { \mathrm { E R } } ( s , \pi ) ] .
77
+ $$
78
+
79
+ Most policy-based algorithms, including REINFORCE (Williams & Peng, 1991) and actorcritic (Konda & Tsitsiklis, 2000), aim to optimize $O _ { \mathrm { E R } }$ given a parameterized policy.
80
+
81
+ Path Consistency Learning (PCL). Inspired by Williams & Peng (1991), Nachum et al. (2017) augment the objective $O _ { \mathrm { E R } }$ in (5) with a discounted entropy regularizer to derive an objective,
82
+
83
+ $$
84
+ O _ { \mathrm { E N T } } ( s , \pi ) = O _ { \mathrm { E R } } ( s , \pi ) + \tau \mathbb { H } ( s , \pi ) ,
85
+ $$
86
+
87
+ where $\tau \geq 0$ is a user-specified temperature parameter that controls the degree of entropy regularization, and the discounted entropy $\mathbb { H } ( s , \pi )$ is recursively defined as
88
+
89
+ $$
90
+ \begin{array} { r } { \mathbb { H } ( s , \pi ) = \mathbb { E } _ { a , s ^ { \prime } } [ - \log \pi ( a \mid s ) + \gamma \mathbb { H } ( s ^ { \prime } , \pi ) ] . } \end{array}
91
+ $$
92
+
93
+ Note that the objective $O _ { \mathrm { E N T } } ( s , \pi )$ can then be re-expressed recursively as,
94
+
95
+ $$
96
+ O _ { \mathrm { E N T } } ( s , \pi ) = \mathbb { E } _ { a , r , s ^ { \prime } } [ r - \tau \log \pi ( a \mid s ) + \gamma O _ { \mathrm { E N T } } ( s ^ { \prime } , \pi ) ] .
97
+ $$
98
+
99
+ Nachum et al. (2017) show that the optimal policy $\pi ^ { * }$ for $O _ { \mathrm { E N T } }$ and $V ^ { * } ( s ) = O _ { \mathrm { E N T } } ( s , \pi ^ { * } )$ mutually satisfy a softmax temporal consistency constraint along any sequence of states $s _ { 0 } , \ldots , s _ { d }$ starting at $s _ { 0 }$ and a corresponding sequence of actions $a _ { 0 } , \ldots , a _ { d - 1 }$ :
100
+
101
+ $$
102
+ V ^ { * } ( s _ { 0 } ) = \underset { r _ { i } , s _ { i } } { \mathbb { E } } \left[ \gamma ^ { d } V ^ { * } ( s _ { d } ) + \sum _ { i = 0 } ^ { d - 1 } \gamma ^ { i } ( r _ { i } - \tau \log \pi ^ { * } ( a _ { i } | s _ { i } ) ) \right] .
103
+ $$
104
+
105
+ This observation led to the development of the PCL algorithm, which attempts to minimize squared error between the LHS and RHS of (10) to simultaneously optimize parameterized $\pi _ { \theta }$ and $V _ { \phi }$ . Importantly, PCL is applicable to both on-policy and off-policy trajectories.
106
+
107
+ Trust Region Policy Optimization (TRPO). As noted, standard policy-based algorithms for maximizing $O _ { \mathrm { E R } }$ can be unstable and require small learning rates for training. To alleviate this issue, Schulman et al. (2015) proposed to perform an iterative trust region optimization to maximize $O _ { \mathrm { E R } }$ . At each step, a prior policy $\tilde { \pi }$ is used to sample a large batch of trajectories, then $\pi$ is subsequently optimized to maximize $O _ { \mathrm { E R } }$ while remaining within a constraint defined by the average per-state KL-divergence with $\tilde { \pi }$ . That is, at each iteration TRPO solves the constrained optimization problem,
108
+
109
+ $$
110
+ \begin{array} { r } { \operatornamewithlimits { m a x i m i z e } O _ { \mathrm { E R } } ( \pi ) \mathrm { s . t . } \mathbb { E } _ { s \sim \pi , \rho } [ \mathrm { K L } \left( \pi ( - | s ) \| \pi ( - | s ) \right) ] \leq \epsilon . } \end{array}
111
+ $$
112
+
113
+ The prior policy is then replaced with the new policy $\pi$ , and the process is repeated.
114
+
115
+ # 4 METHOD
116
+
117
+ To enable more stable training and better exploit the natural information geometry of the parameter space, we propose to augment the entropy regularized expected reward objective $O _ { \mathrm { E N T } }$ in (7) with a discounted relative entropy trust region around a prior policy $\tilde { \pi }$ ,
118
+
119
+ $$
120
+ \operatorname* { m a x i m i z e } _ { \pi } \mathbb { E } _ { s } [ O _ { \mathrm { E N T } } ( \pi ) ] \mathrm { ~ s . t . ~ } \mathbb { E } _ { s } [ \mathbb { G } ( s , \pi , { \tilde { \pi } } ) ] \leq \epsilon ,
121
+ $$
122
+
123
+ where the discounted relative entropy is recursively defined as
124
+
125
+ $$
126
+ \mathbb { G } ( s , \pi , \tilde { \pi } ) = \mathbb { E } _ { a , s ^ { \prime } } \left[ \log \pi ( a | s ) - \log \tilde { \pi } ( a | s ) + \gamma \mathbb { G } ( s ^ { \prime } , \pi , \tilde { \pi } ) \right] .
127
+ $$
128
+
129
+ This objective attempts to maximize entropy regularized expected reward while maintaining natural proximity to the previous policy. Although previous work has separately proposed to use relative entropy and entropy regularization, we find that the two components serve different purposes, each of which is beneficial: entropy regularization helps improve exploration, while the relative entropy improves stability and allows for a faster learning rate. This combination is a key novelty.
130
+
131
+ Using the method of Lagrange multipliers, we cast the constrained optimization problem in (13) into maximization of the following objective,
132
+
133
+ $$
134
+ { \cal O } _ { \mathrm { R E L E N T } } ( s , \pi ) = { \cal O } _ { \mathrm { E N T } } ( s , \pi ) - \lambda \mathbb { G } ( s , \pi , { \tilde { \pi } } ) .
135
+ $$
136
+
137
+ Again, the environment-wide objective is the expected per-state objective when states are sampled from interactions with the environment,
138
+
139
+ $$
140
+ O _ { \mathrm { R E L E N T } } ( \pi ) = \mathbb { E } _ { s } [ O _ { \mathrm { R E L E N T } } ( s , \pi ) ] .
141
+ $$
142
+
143
+ # 4.1 PATH CONSISTENCY WITH RELATIVE ENTROPY
144
+
145
+ A key technical observation is that the $O _ { \mathrm { R E L E N T } }$ objective has a similar decomposition structure to $O _ { \mathrm { E N T } }$ , and one can cast $O$ RELENT as an entropy regularized expected reward objective with a set of transformed rewards, i.e.,
146
+
147
+ $$
148
+ O _ { \mathrm { R E L E N T } } ( s , \pi ) = \widetilde { O } _ { \mathtt { E R } } ( s , \pi ) + ( \tau + \lambda ) \mathbb { H } ( s , \pi ) ,
149
+ $$
150
+
151
+ where $\tilde { O } _ { \mathrm { E R } } ( s , \pi )$ is an expected reward objective on a transformed reward distribution function $\tilde { r } ( s , a ) = r ( s , a ) + \lambda \log \tilde { \pi } ( a | s )$ . Thus, in what follows, we derive a corresponding form of the multi-step path consistency in (10).
152
+
153
+ Let $\pi ^ { * }$ denote the optimal policy, defined as $\pi ^ { * } = \operatorname { a r g m a x } _ { \pi } O _ { \mathrm { R E L E N T } } ( \pi )$ . As in PCL (Nachum et al., 2017), this optimal policy may be expressed as
154
+
155
+ $$
156
+ \pi ^ { * } ( a _ { t } | s _ { t } ) = \exp \left\{ \frac { \mathbb { E } _ { \tilde { r } _ { t } \sim \tilde { r } ( s _ { t } , a _ { t } ) , s _ { t + 1 } } [ \tilde { r } _ { t } + \gamma V ^ { * } ( s _ { t + 1 } ) ] - V ^ { * } ( s _ { t } ) } { \tau + \lambda } \right\} ,
157
+ $$
158
+
159
+ where $V ^ { * }$ are the softmax state values defined recursively as
160
+
161
+ $$
162
+ V ^ { * } ( s _ { t } ) = ( \tau + \lambda ) \log \int _ { A } \exp \left. \frac { \mathbb { E } _ { \tilde { r } _ { t } \sim \tilde { r } ( s _ { t } , a ) , s _ { t + 1 } } [ \tilde { r } _ { t } + \gamma V ^ { * } ( s _ { t + 1 } ) ] } { \tau + \lambda } \right. \mathrm { d } a .
163
+ $$
164
+
165
+ We may re-arrange (17) to yield
166
+
167
+ $$
168
+ \begin{array} { r c l } { V ^ { * } ( s _ { t } ) } & { = } & { \mathbb { E } _ { \tilde { r } _ { t } \sim \tilde { r } ( s _ { t } , a _ { t } ) , s _ { t + 1 } } [ \tilde { r } _ { t } - ( \tau + \lambda ) \log \pi ^ { * } ( a _ { t } | s _ { t } ) + \gamma V ^ { * } ( s _ { t + 1 } ) ] } \\ & { = } & { \mathbb { E } _ { r _ { t } , s _ { t + 1 } } [ r _ { t } - ( \tau + \lambda ) \log \pi ^ { * } ( a _ { t } | s _ { t } ) + \lambda \log \tilde { \pi } ( a _ { t + i } | s _ { t + i } ) + \gamma V ^ { * } ( s _ { t + 1 } ) ] . } \end{array}
169
+ $$
170
+
171
+ This is a single-step temporal consistency which may be extended to multiple steps by further expanding $V ^ { \ast } ( s _ { t + 1 } )$ on the RHS using the same identity. Thus, in general we have the following softmax temporal consistency constraint along any sequence of states defined by a starting state $s _ { t }$ and a sequence of actions $a _ { t } , \ldots , a _ { t + d - 1 }$ :
172
+
173
+ $$
174
+ r ^ { * } ( s _ { t } ) = \underset { r _ { t + i } , s _ { t + i } } { \mathbb { E } } \left[ \gamma ^ { d } V ^ { * } ( s _ { t + d } ) + \sum _ { i = 0 } ^ { d - 1 } \gamma ^ { i } \left( r _ { t + i } - ( \tau + \lambda ) \log \pi ^ { * } ( a _ { t + i } | s _ { t + i } ) + \lambda \log \tilde { \pi } ( a _ { t + i } | s _ { t + i } ) \right) \right] .
175
+ $$
176
+
177
+ # 4.2 TRUST-PCL
178
+
179
+ We propose to train a parameterized policy $\pi _ { \theta }$ and value estimate $V _ { \phi }$ to satisfy the multi-step consistencies in (21). Thus, we define a consistency error for a sequence of states, actions, and rewards st:t+d ≡ (st, at, rt, . . . , st+d−1, at+d−1, rt+d−1, st+d) sampled from the environment as
180
+
181
+ $$
182
+ \begin{array} { r c l } { { C ( s _ { t : t + d } , \theta , \phi ) ~ { = } ~ - { V _ { \phi } ( s _ { t } ) + \gamma ^ { d } V _ { \phi } ( s _ { t + d } ) ~ + } } } & { { } } & { { } } \\ { { } } & { { } } & { { { \displaystyle \sum _ { i = 0 } ^ { d - 1 } \gamma ^ { i } \left( r _ { t + i } - ( { \tau + } \lambda ) \log { \pi _ { \theta } ( a _ { t + i } | s _ { t + i } ) } + \lambda \log { \pi _ { \bar { \theta } } ( a _ { t + i } | s _ { t + i } ) } \right) ~ . } } } \end{array}
183
+ $$
184
+
185
+ loss for a given batch of episodes (or sub-episodes) We aim to minimize the squared consistency error on every sub-trajectory of length $S = \{ s _ { 0 : T _ { k } } ^ { ( k ) } \} _ { k = 1 } ^ { B }$ is $d$ . That is, the
186
+
187
+ $$
188
+ \mathcal { L } ( S , \theta , \phi ) = \sum _ { k = 1 } ^ { B } \sum _ { t = 0 } ^ { T _ { k } - 1 } C ( s _ { t : t + d } ^ { ( k ) } , \theta , \phi ) ^ { 2 } .
189
+ $$
190
+
191
+ We perform gradient descent on $\theta$ and $\phi$ to minimize this loss. In practice, we have found that it is beneficial to learn the parameter $\phi$ at least as fast as $\theta$ , and accordingly, given a mini-batch of episodes we perform a single gradient update on $\theta$ and possibly multiple gradient updates on $\phi$ (see Appendix for details).
192
+
193
+ In principle, the mini-batch $S$ may be taken from either on-policy or off-policy trajectories. In our implementation, we utilized a replay buffer prioritized by recency. As episodes (or sub-episodes) are sampled from the environment they are placed in a replay buffer and a priority $p { \big ( } s _ { 0 : T } )$ is given to a trajectory $s _ { 0 : T }$ equivalent to the current training step. Then, to sample a batch for training, $B$ episodes are sampled from the replay buffer proportional to exponentiated priority $\exp \{ \beta p ( s _ { 0 : T } ) \}$ for some hyperparameter $\beta \geq 0$ .
194
+
195
+ For the prior policy $\pi _ { \tilde { \theta } }$ , we use a lagged geometric mean of the parameters. At each training step, we update $\tilde { \theta } \alpha \tilde { \theta } + ( 1 - \alpha ) \theta$ . Thus on average our training scheme attempts to maximize entropy regularized expected reward while penalizing divergence from a policy roughly $1 / ( 1 - \alpha )$ training steps in the past.
196
+
197
+ # 4.3 AUTOMATIC TUNING OF THE LAGRANGE MULTIPLIER $\lambda$
198
+
199
+ The use of a relative entropy regularizer as a penalty rather than a constraint introduces several difficulties. The hyperparameter $\lambda$ must necessarily adapt to the distribution of rewards. Thus, $\lambda$ must be tuned not only to each environment but also during training on a single environment, since the observed reward distribution changes as the agent’s behavior policy improves. Using a constraint form of the regularizer is more desirable, and others have advocated its use in practice (Schulman et al., 2015) specifically to robustly allow larger updates during training.
200
+
201
+ To this end, we propose to redirect the hyperparameter tuning from $\lambda$ to $\epsilon$ . Specifically, we present a method which, given a desired hard constraint on the relative entropy defined by $\epsilon$ , approximates the equivalent penalty coefficient $\lambda ( \epsilon )$ . This is a key novelty of our work and is distinct from previous attempts at automatically tuning a regularizing coefficient, which iteratively increase and decrease the coefficient based on observed training behavior (Schulman et al., 2017b; Heess et al., 2017).
202
+
203
+ We restrict our analysis to the undiscounted setting $\gamma = 1$ with entropy regularizer $\tau = 0$ . Additionally, we assume deterministic, finite-horizon environment dynamics. An additional assumption we make is that the expected KL-divergence over states is well-approximated by the KL-divergence starting from the unique initial state $s _ { 0 }$ . Although in our experiments these restrictive assumptions are not met, we still found our method to perform well for adapting $\lambda$ during training.
204
+
205
+ In this setting the optimal policy of (14) is proportional to exponentiated scaled reward. Specifically, for a full episode $s _ { 0 : T } = ( s _ { 0 } , a _ { 0 } , r _ { 0 } , \ldots , s _ { T - 1 } , a _ { T - 1 } , r _ { T - 1 } , s _ { T } )$ , we have
206
+
207
+ $$
208
+ \pi ^ { * } ( s _ { 0 : T } ) \propto \tilde { \pi } ( s _ { 0 : T } ) \exp \left\{ \frac { R ( s _ { 0 : T } ) } { \lambda } \right\} ,
209
+ $$
210
+
211
+ where $\begin{array} { r } { \pi ( s _ { 0 : T } ) = \prod _ { i = 0 } ^ { T - 1 } \pi ( a _ { i } | s _ { i } ) } \end{array}$ and $\begin{array} { r } { R ( s _ { 0 : T } ) = \sum _ { i = 0 } ^ { T - 1 } r _ { i } } \end{array}$ . The normalization factor of $\pi ^ { * }$
212
+
213
+ $$
214
+ Z = \mathbb { E } _ { s _ { 0 : T } \sim \tilde { \pi } } \left[ \exp \left\{ \frac { R ( s _ { 0 : T } ) } { \lambda } \right\} \right] .
215
+ $$
216
+
217
+ We would like to approximate the trajectory-wide KL-divergence between $\pi ^ { * }$ and $\tilde { \pi }$ . We may express the KL-divergence analytically:
218
+
219
+ $$
220
+ \begin{array} { r l } & { K L ( \pi ^ { * } | | \tilde { \pi } ) = \mathbb { E } _ { s _ { 0 : T } \sim \pi ^ { * } } \left[ \log \left( \frac { \pi ^ { * } \left( s _ { 0 : T } \right) } { \tilde { \pi } \left( s _ { 0 : T } \right) } \right) \right] } \\ & { \qquad = \mathbb { E } _ { s _ { 0 : T } \sim \pi ^ { * } } \left[ \frac { R \left( s _ { 0 : T } \right) } { \lambda } - \log Z \right] } \\ & { \qquad = - \log Z + \mathbb { E } _ { s _ { 0 : T } \sim \tilde { \pi } } \left[ \frac { R \left( s _ { 0 : T } \right) } { \lambda } \cdot \frac { \pi ^ { * } \left( s _ { 0 : T } \right) } { \tilde { \pi } \left( s _ { 0 : T } \right) } \right] } \\ & { \qquad = - \log Z + \mathbb { E } _ { s _ { 0 : T } \sim \tilde { \pi } } \left[ \frac { R \left( s _ { 0 : T } \right) } { \lambda } \exp \{ R ( s _ { 0 : T } ) / \lambda - \log Z \} \right] . } \end{array}
221
+ $$
222
+
223
+ Since all expectations are with respect to $\tilde { \pi }$ , this quantity is tractable to approximate given episodes sampled from $\tilde { \pi }$
224
+
225
+ Therefore, in Trust-PCL, given a set of episodes sampled from the prior policy $\pi _ { \tilde { \theta } }$ and a desired maximum divergence $\epsilon$ , we can perform a simple line search to find a suitable $\lambda ( \epsilon )$ which yields $K L ( \pi ^ { * } | | \pi _ { \tilde { \theta } } )$ as close as possible to $\epsilon$ .
226
+
227
+ The preceding analysis provided a method to determine $\lambda ( \epsilon )$ given a desired maximum divergence $\epsilon$ . However, there is still a question of whether $\epsilon$ should change during training. Indeed, as episodes may possibly increase in length, $K L ( \pi ^ { * } | | \tilde { \pi } )$ naturally increases when compared to the average perstate $K L ( \pi ^ { * } ( - | s ) | | \tilde { \pi } ( - | s ) )$ , and vice versa for decreasing length. Thus, in practice, given an $\epsilon$ and a set of sampled episodes $\dot { S } = \{ s _ { 0 : T _ { k } } ^ { ( k ) } \} _ { k = 1 } ^ { N }$ , we approximate the best $\lambda$ which yields a maximum divergence of $\begin{array} { r } { \frac { \epsilon } { N } \sum _ { k = 1 } ^ { N } T _ { k } } \end{array}$ . This makes it so that $\epsilon$ corresponds more to a constraint on the lengthaveraged KL-divergence.
228
+
229
+ To avoid incurring a prohibitively large number of interactions with the environment for each parameter update, in practice we use the last 100 episodes as the set of sampled episodes $S$ . While this is not exactly the same as sampling episodes from $\pi _ { \tilde { \theta } }$ , it is not too far off since $\pi _ { \tilde { \theta } }$ is a lagged version of the online policy $\pi _ { \theta }$ . Moreover, we observed this protocol to work well in practice. A more sophisticated and accurate protocol may be derived by weighting the episodes according to the importance weights corresponding to their true sampling distribution.
230
+
231
+ # 5 EXPERIMENTS
232
+
233
+ We evaluate Trust-PCL against TRPO on a number of benchmark tasks. We choose TRPO as a baseline since it is a standard algorithm known to achieve state-of-the-art performance on the continuous control tasks we consider (see e.g., leaderboard results on the OpenAI Gym website (Brockman et al., 2016)). We find that Trust-PCL can match or improve upon TRPO’s performance in terms of both average reward and sample efficiency.
234
+
235
+ # 5.1 SETUP
236
+
237
+ We chose a number of control tasks available from OpenAI Gym (Brockman et al., 2016). The first task, Acrobot, is a discrete-control task, while the remaining tasks (HalfCheetah, Swimmer, Hopper, Walker2d, and Ant) are well-known continuous-control tasks utilizing the MuJoCo environment (Todorov et al., 2012).
238
+
239
+ For TRPO we trained using batches of $Q \ = \ 2 5 , 0 0 0$ steps (12, 500 for Acrobot), which is the approximate batch size used by other implementations (Duan et al., 2016; Schulman, 2017). Thus, at each training iteration, TRPO samples 25, 000 steps using the policy $\pi _ { \tilde { \theta } }$ and then takes a single step within a KL-ball to yield a new $\pi _ { \theta }$ .
240
+
241
+ Trust-PCL is off-policy, so to evaluate its performance we alternate between collecting experience and training on batches of experience sampled from the replay buffer. Specifically, we alternate between collecting $P = 1 0$ steps from the environment and performing a single gradient step based on a batch of size $Q = 6 4$ sub-episodes of length $P$ from the replay buffer, with a recency weight of $\beta = 0 . 0 0 1$ on the sampling distribution of the replay buffer. To maintain stability we use $\alpha = 0 . 9 9$ and we modified the loss from squared loss to Huber loss on the consistency error. Since our policy is parameterized by a unimodal Gaussian, it is impossible for it to satisfy all path consistencies, and so we found this crucial for stability.
242
+
243
+ For each of the variants and for each environment, we performed a hyperparameter search to find the best hyperparameters. The plots presented here show the reward achieved during training on the best hyperparameters averaged over the best 4 seeds of 5 randomly seeded training runs. Note that this reward is based on greedy actions (rather than random sampling).
244
+
245
+ Experiments were performed using Tensorflow (Abadi et al., 2016). Although each training step of Trust-PCL (a simple gradient step) is considerably faster than TRPO, we found that this does not have an overall effect on the run time of our implementation, due to a combination of the fact that each environment step is used in multiple training steps of Trust-PCL and that a majority of the run time is spent interacting with the environment. A detailed description of our implementation and hyperparameter search is available in the Appendix.
246
+
247
+ # 5.2 RESULTS
248
+
249
+ We present the reward over training of Trust-PCL and TRPO in Figure 1. We find that Trust-PCL can match or beat the performance of TRPO across all environments in terms of both final reward and sample efficiency. These results are especially significant on the harder tasks (Walker2d and Ant). We additionally present our results compared to other published results in Table 1. We find that even when comparing across different implementations, Trust-PCL can match or beat the state-of-the-art.
250
+
251
+ # 5.2.1 HYPERPARAMETER ANALYSIS
252
+
253
+ The most important hyperparameter in our method is $\epsilon$ , which determines the size of the trust region and thus has a critical role in the stability of the algorithm. To showcase this effect, we present the reward during training for several different values of $\epsilon$ in Figure 2. As $\epsilon$ increases, instability increases as well, eventually having an adverse effect on the agent’s ability to achieve optimal reward.
254
+
255
+ ![](images/2819973078574959af663e0a5bd2f625284a6841ecbb7974799c6d7e0e859717.jpg)
256
+ Figure 1: The results of Trust-PCL against a TRPO baseline. Each plot shows average greedy reward with single standard deviation error intervals capped at the min and max across 4 best of 5 randomly seeded training runs after choosing best hyperparameters. The $\mathbf { X }$ -axis shows millions of environment steps. We observe that Trust-PCL is consistently able to match and, in many cases, beat TRPO’s performance both in terms of reward and sample efficiency.
257
+
258
+ ![](images/34d09bb3531e483b9be242882f2de4c101ffb45016e355dc9b7df44bf18184cb.jpg)
259
+ Figure 2: The results of Trust-PCL across several values of $\epsilon$ , defining the size of the trust region. Each plot shows average greedy reward across 4 best of 5 randomly seeded training runs after choosing best hyperparameters. The $\mathbf { X }$ -axis shows millions of environment steps. We observe that instability increases with $\epsilon$ , thus concluding that the use of trust region is crucial.
260
+
261
+ Note that standard PCL (Nachum et al., 2017) corresponds to $\epsilon \infty$ (that is, $\lambda = 0$ ). Therefore, standard PCL would fail in these environments, and the use of trust region is crucial.
262
+
263
+ The main advantage of Trust-PCL over existing trust region methods for continuous control is its ability to learn in an off-policy manner. The degree to which Trust-PCL is off-policy is determined by a combination of the hyparparameters $\alpha , \beta$ , and $P$ . To evaluate the importance of training off-policy, we evaluate Trust-PCL with a hyperparameter setting that is more on-policy. We set $\alpha = 0 . 9 5$ , $\beta = 0 . 1$ , and $P = 1 , 0 0 0$ . In this setting, we also use large batches of $Q = 2 5$ episodes of length $P$ (a total of 25, 000 environment steps per batch). Figure 3 shows the results of Trust-PCL with our original parameters and this new setting. We note a dramatic advantage in sample efficiency when using off-policy training. Although Trust-PCL (on-policy) can achieve state-of-the-art reward performance, it requires an exorbitant amount of experience. On the other hand, Trust-PCL (off
264
+
265
+ ![](images/b0d97e378156ad5edbbab6dfd5281f228dce1b8dcd57a11bb07f63cb417ae41b.jpg)
266
+ Figure 3: The results of Trust-PCL varying the degree of on/off-policy. We see that Trust-PCL (on-policy) has a behavior similar to TRPO, achieving good final reward but requiring an exorbitant number of experience collection. When collecting less experience per training step in Trust-PCL (off-policy), we are able to improve sample efficiency while still achieving a competitive final reward.
267
+
268
+ <table><tr><td>Domain</td><td>TRPO-GAE</td><td>TRPO (rllab)</td><td>TRPO (ours)</td><td>Trust-PCL</td><td>IPG</td></tr><tr><td>HalfCheetah</td><td>4871.36</td><td>2889</td><td>4343.6</td><td>7057.1</td><td>4767</td></tr><tr><td>Swimmer</td><td>137.25</td><td>1</td><td>288.1</td><td>297.0</td><td></td></tr><tr><td>Hopper</td><td>3765.78</td><td>1</td><td>3516.7</td><td>3804.9</td><td>一</td></tr><tr><td>Walker2d</td><td>6028.73</td><td>1487</td><td>2838.4</td><td>5027.2</td><td>3047</td></tr><tr><td>Ant</td><td>2918.25</td><td>1520</td><td>4347.5</td><td>6104.2</td><td>4415</td></tr></table>
269
+
270
+ Table 1: Results for best average reward in the first 10M steps of training for our implementations (TRPO (ours) and Trust-PCL) and external implementations. TRPO-GAE are results of Schulman (2017) available on the OpenAI Gym website. TRPO (rllab) and IPG are taken from Gu et al. (2017b). These results are each on different setups with different hyperparameter searches and in some cases different evaluation protocols (e.g.,TRPO (rllab) and IPG were run with a simple linear value network instead of the two-hidden layer network we use). Thus, it is not possible to make any definitive claims based on this data. However, we do conclude that our results are overall competitive with state-of-the-art external implementations.
271
+
272
+ policy) can be competitive in terms of reward while providing a significant improvement in sample efficiency.
273
+
274
+ One last hyperparameter is $\tau$ , determining the degree of exploration. Anecdotally, we found $\tau$ to not be of high importance for the tasks we evaluated. Indeed many of our best results use $\tau =$ 0. Including $\tau > 0$ had a marginal effect, at best. The reason for this is likely due to the tasks themselves. Indeed, other works which focus on exploration in continuous control have found the need to propose exploration-advanageous variants of these standard benchmarks (Haarnoja et al., 2017; Houthooft et al., 2016).
275
+
276
+ # 6 CONCLUSION
277
+
278
+ We have presented Trust-PCL, an off-policy algorithm employing a relative-entropy penalty to impose a trust region on a maximum reward objective. We found that Trust-PCL can perform well on a set of standard control tasks, improving upon TRPO both in terms of average reward and sample efficiency. Our best results on Trust-PCL are able to maintain the stability and solution quality of TRPO while approaching the sample-efficiency of value-based methods (see e.g., Metz et al. (2017)). This gives hope that the goal of achieving both stability and sample-efficiency without trading-off one for the other is attainable in a single unifying RL algorithm.
279
+
280
+ # 7 ACKNOWLEDGMENT
281
+
282
+ We thank Matthew Johnson, Luke Metz, Shane Gu, and the Google Brain team for insightful comments and discussions.
283
+
284
+ # REFERENCES
285
+
286
+ Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for largescale machine learning. arXiv:1605.08695, 2016.
287
+
288
+ Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural Comput., 10, 1998.
289
+
290
+ Shun-Ichi Amari. Differential-geometrical methods in statistics, volume 28. Springer Science & Business Media, 2012.
291
+
292
+ Mohammad Gheshlaghi Azar, Vicenc¸ Gomez, and Hilbert J Kappen. Dynamic policy programming ´ with function approximation. AISTATS, 2011.
293
+
294
+ Mohammad Gheshlaghi Azar, Vicenc¸ Gomez, and Hilbert J Kappen. Dynamic policy programming. ´ JMLR, 13, 2012.
295
+
296
+ J Andrew Bagnell and Jeff Schneider. Covariant policy search. 2003.
297
+
298
+ Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAI Gym. arXiv:1606.01540, 2016.
299
+
300
+ Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. 2016.
301
+
302
+ Roy Fox, Ari Pakman, and Naftali Tishby. G-learning: Taming the noise in reinforcement learning via soft updates. Uncertainty in Artifical Intelligence, 2016. URL http://arxiv.org/abs/ 1512.08562.
303
+
304
+ Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, and Sergey Levine. Q-prop: Sample-efficient policy gradient with an off-policy critic. ICLR, 2017a.
305
+
306
+ Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, Bernhard Scholkopf, and ¨ Sergey Levine. Interpolated policy gradient: Merging on-policy and off-policy gradient estimation for deep reinforcement learning. arXiv preprint arXiv:1706.00387, 2017b.
307
+
308
+ Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. arXiv preprint arXiv:1702.08165, 2017.
309
+
310
+ Nicolas Heess, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, Ali Eslami, Martin Riedmiller, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017.
311
+
312
+ 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, pp. 1109–1117, 2016.
313
+
314
+ Sham M Kakade. A natural policy gradient. In NIPS, 2002.
315
+
316
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015.
317
+
318
+ Vijay R Konda and John N Tsitsiklis. Actor-critic algorithms, 2000.
319
+
320
+ Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
321
+
322
+ James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In ICML, 2015.
323
+
324
+ Luke Metz, Julian Ibarz, Navdeep Jaitly, and James Davidson. Discrete sequential prediction of continuous actions for deep RL. CoRR, abs/1705.05035, 2017. URL http://arxiv.org/ abs/1705.05035.
325
+
326
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin A. Riedmiller. Playing atari with deep reinforcement learning. arXiv:1312.5602, 2013.
327
+
328
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy P Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. ICML, 2016.
329
+
330
+ Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. CoRR, abs/1702.08892, 2017. URL http: //arxiv.org/abs/1702.08892.
331
+
332
+ Mohammad Norouzi, Samy Bengio, Zhifeng Chen, Navdeep Jaitly, Mike Schuster, Yonghui Wu, and Dale Schuurmans. Reward augmented maximum likelihood for neural structured prediction. NIPS, 2016.
333
+
334
+ Neal Parikh, Stephen Boyd, et al. Proximal algorithms. Foundations and Trends $\textsuperscript { \textregistered }$ in Optimization, 1(3):127–239, 2014.
335
+
336
+ Jan Peters and Stefan Schaal. Reinforcement learning of motor skills with policy gradients. Neural networks, 21, 2008.
337
+
338
+ Jan Peters, Katharina Mulling, and Yasemin Altun. Relative entropy policy search. In AAAI, 2010.
339
+
340
+ Konrad Rawlik, Marc Toussaint, and Sethu Vijayakumar. On stochastic optimal control and reinforcement learning by approximate inference. In Twenty-Third International Joint Conference on Artificial Intelligence, 2013.
341
+
342
+ John Schulman. Modular rl. http://github.com/joschu/modular_rl, 2017. Accessed: 2017-06-01.
343
+
344
+ John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In ICML, 2015.
345
+
346
+ John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. ICLR, 2016.
347
+
348
+ John Schulman, Pieter Abbeel, and Xi Chen. Equivalence between policy gradients and soft qlearning. arXiv preprint arXiv:1704.06440, 2017a.
349
+
350
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017b.
351
+
352
+ David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 387–395, 2014.
353
+
354
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026– 5033. IEEE, 2012.
355
+
356
+ Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double qlearning. AAAI, 2016.
357
+
358
+ Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. arXiv preprint arXiv:1611.01224, 2016.
359
+
360
+ Christopher John Cornish Hellaby Watkins. Learning from delayed rewards. PhD thesis, University of Cambridge England, 1989.
361
+
362
+ Ronald J Williams and Jing Peng. Function optimization using connectionist reinforcement learning algorithms. Connection Science, 1991.
363
+
364
+ # A IMPLEMENTATION BENEFITS OF TRUST-PCL
365
+
366
+ We have already highlighted the ability of Trust-PCL to use off-policy data to stably train both a parameterized policy and value estimate, which sets it apart from previous methods. We have also noted the ease with which exploration can be incorporated through the entropy regularizer. We elaborate on several additional benefits of Trust-PCL.
367
+
368
+ Compared to TRPO, Trust-PCL is much easier to implement. Standard TRPO implementations perform second-order gradient calculations on the KL-divergence to construct a Fisher information matrix (more specifically a vector product with the inverse Fisher information matrix). This yields a vector direction for which a line search is subsequently employed to find the optimal step. Compare this to Trust-PCL which employs simple gradient descent. This makes implementation much more straightforward and easily realizable within standard deep learning frameworks.
369
+
370
+ Even if one replaces the constraint on the average KL-divergence of TRPO with a simple regularization penalty (as in proximal policy gradient methods (Schulman et al., 2017b; Wang et al., 2016)), optimizing the resulting objective requires computing the gradient of the KL-divergence. In Trust-PCL, there is no such necessity. The per-state KL-divergence need not have an analytically computable gradient. In fact, the KL-divergence need not have a closed form at all. The only requirement of Trust-PCL is that the log-density be analytically computable. This opens up the possible policy parameterizations to a much wider class of functions. While continuous control has traditionally used policies parameterized by unimodal Gaussians, with Trust-PCL the policy can be replaced with something much more expressive—for example, mixtures of Gaussians or autoregressive policies as in Metz et al. (2017).
371
+
372
+ We have yet to fully explore these additional benefits in this work, but we hope that future investigations can exploit the flexibility and ease of implementation of Trust-PCL to further the progress of RL in continuous control environments.
373
+
374
+ # B EXPERIMENTAL SETUP
375
+
376
+ We describe in detail the experimental setup regarding implementation and hyperparameter search.
377
+
378
+ # B.1 ENVIRONMENTS
379
+
380
+ In Acrobot, episodes were cut-off at step 500. For the remaining environments, episodes were cutoff at step $1 , 0 0 0$ .
381
+
382
+ Acrobot, HalfCheetah, and Swimmer are all non-terminating environments. Thus, for these environments, each episode had equal length and each batch contained the same number of episodes. Hopper, Walker2d, and Ant are environments that can terminate the agent. Thus, for these environments, the batch size throughout training remained constant in terms of steps but not in terms of episodes.
383
+
384
+ There exists an additional common MuJoCo task called Humanoid. We found that neither our implementation of TRPO nor Trust-PCL could make more than negligible headway on this task, and so omit it from the results. We are aware that TRPO with the addition of GAE and enough finetuning can be made to achieve good results on Humanoid (Schulman et al., 2016). We decided to not pursue a GAE implementation to keep a fair comparison between variants. Trust-PCL can also be made to incorporate an analogue to GAE (by maintaining consistencies at varying time scales), but we leave this to future work.
385
+
386
+ # B.2 IMPLEMENTATION DETAILS
387
+
388
+ We use fully-connected feed-forward neural networks to represent both policy and value.
389
+
390
+ The policy $\pi _ { \theta }$ is represented by a neural network with two hidden layers of dimension 64 with tanh activations. At time step $t$ , the network is given the observation $s _ { t }$ . It produces a vector $\mu _ { t }$ , which is combined with a learnable (but $t$ -agnostic) parameter $\xi$ to parametrize a unimodal Gaussian with mean $\mu _ { t }$ and standard deviation $\exp ( \xi )$ . The next action $a _ { t }$ is sampled randomly from this Gaussian.
391
+
392
+ The value network $V _ { \phi }$ is represented by a neural network with two hidden layers of dimension 64 with tanh activations. At time step $t$ the network is given the observation $s _ { t }$ and the component-wise squared observation $s _ { t } \odot s _ { t }$ . It produces a single scalar value.
393
+
394
+ # B.2.1 TRPO LEARNING
395
+
396
+ At each training iteration, both the policy and value parameters are updated. The policy is trained by performing a trust region step according to the procedure described in Schulman et al. (2015).
397
+
398
+ The value parameters at each step are solved using an LBFGS optimizer. To avoid instability, the value parameters are solved to fit a mixture of the empirical values and the expected values. That is, we determine $\phi$ to minimize $\begin{array} { r } { \sum _ { s \in \mathrm { b a t c h } } ( V _ { \phi } ( s ) - \kappa V _ { \tilde { \phi } } ( s ) - ( 1 - \kappa ) \hat { V } _ { \tilde { \phi } } ( s ) ) ^ { 2 } } \end{array}$ , where again $\tilde { \phi }$ is the previous value parameterization. We use $\kappa = 0 . 9$ . This method for training $\phi$ is according to that used in Schulman (2017).
399
+
400
+ # B.2.2 TRUST-PCL LEARNING
401
+
402
+ At each training iteration, both the policy and value parameters are updated. The specific updates are slightly different between Trust-PCL (on-policy) and Trust-PCL (off-policy).
403
+
404
+ For Trust-PCL (on-policy), the policy is trained by taking a single gradient step using the Adam optimizer (Kingma & Ba, 2015) with learning rate 0.001. The value network update is inspired by that used in TRPO we perform 5 gradients steps with learning rate 0.001, calculated with regards to a mix between the empirical values and the expected values according to the previous $\tilde { \phi }$ . We use $\kappa = 0 . 9 5$ .
405
+
406
+ For Trust-PCL (off-policy), both the policy and value parameters are updated in a single step using the Adam optimizer with learning rate 0.0001. For this variant, we also utilize a target value network (lagged at the same rate as the target policy network) to replace the value estimate at the final state for each path. We do not mix between empirical and expected values.
407
+
408
+ # B.3 HYPERPARAMETER SEARCH
409
+
410
+ We found the most crucial hyperparameters for effective learning in both TRPO and TrustPCL to be $\epsilon$ (the constraint defining the size of the trust region) and $d$ (the rollout determining how to evaluate the empirical value of a state). For TRPO we performed a grid search over $\epsilon \in \{ 0 . 0 1 , 0 . 0 2 , 0 . 0 5 , 0 . 1 \} , d \in \{ 1 0 , 5 0 \}$ . For Trust-PCL we performed a grid search over $\epsilon \in \{ 0 . 0 0 1 , 0 . 0 0 2 , 0 . 0 0 5 , 0 . 0 1 \} , d \in \{ 1 0$ $d \in \{ 1 0 , 5 0 \}$ . For Trust-PCL we also experimented with the value of $\tau$ , either keeping it at a constant 0 (thus, no exploration) or decaying it from 0.1 to 0.0 by a smoothed exponential rate of 0.1 every 2,500 training iterations.
411
+
412
+ We fix the discount to $\gamma = 0 . 9 9 5$ for all environments.
413
+
414
+ # C PSEUDOCODE
415
+
416
+ A simplified pseudocode for Trust-PCL is presented in Algorithm 1.
417
+
418
+ # Algorithm 1 Trust-PCL
419
+
420
+ Input: Environment $E N V$ , trust region constraint $\epsilon$ , learning rates $\eta _ { \pi } , \eta _ { v }$ , discount factor $\gamma$ , rollout $d$ , batch size $Q$ , collect steps per train step $P$ , number of training steps $N$ , replay buffer $R B$ with exponential lag $\beta$ , lag on prior policy $\alpha$ .
421
+
422
+ function Gradients $( \{ s _ { t : t + P } ^ { ( k ) } \} _ { k = 1 } ^ { B } )$ $/ / C$ is thpute $\begin{array} { r } { \Delta \theta = \sum _ { k = 1 } ^ { B } \sum _ { p = 0 } ^ { P - 1 } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \theta , \phi ) \nabla _ { \theta } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \theta , \phi ) . } \end{array}$ $\begin{array} { r } { \Delta \phi = \sum _ { k = 1 } ^ { B } \sum _ { p = 0 } ^ { P - 1 } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \theta , \phi ) \nabla _ { \phi } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \theta , \phi ) . } \end{array}$ Return $\Delta \theta , \Delta \phi$
423
+ end function
424
+ Initialize $\theta , \phi , \lambda$ , set $\tilde { \theta } = \theta$ .
425
+ Initialize empty replay buffer $R B ( \beta )$ .
426
+ for $i = 0$ to $N - 1$ do // Collect Sample $P$ steps $s _ { t : t + P } \sim \pi _ { \theta }$ on $E N V$ . Insert $s _ { t : t + P }$ to $R B$ . // Train
427
+ Sample batch $\{ s _ { t : t + P } ^ { ( k ) } \} _ { k = 1 } ^ { B }$ from $R B$ to contain a total of $Q$ transitions $( B \approx Q / P )$ . $\Delta \theta , \Delta \phi = \mathrm { G r a d i e n t s } \big ( \{ s _ { t : t + P } ^ { ( k ) } \} _ { k = 1 } ^ { B } \big )$ . Update $\theta \theta - \eta _ { \pi } \Delta \theta$ . Update $\phi \phi - \eta _ { v } \Delta \phi$ . // Update auxiliary variables Update $\tilde { \theta } = \alpha \tilde { \theta } + \mathrm { \Gamma } ( 1 - \alpha ) \theta$ . Update $\lambda$ in terms of $\epsilon$ according to Section 4.3.
428
+ end for
parse/train/HyrCWeWCb/HyrCWeWCb_content_list.json ADDED
@@ -0,0 +1,2149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TRUST-PCL: AN OFF-POLICY TRUST REGION METHOD FOR CONTINUOUS CONTROL ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ofir Nachum, Mohammad Norouzi, Kelvin Xu, & Dale Schuurmans∗ {ofirnachum,mnorouzi,kelvinxx,schuurmans}@google.com Google Brain ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 687,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Trust region methods, such as TRPO, are often used to stabilize policy optimization algorithms in reinforcement learning (RL). While current trust region strategies are effective for continuous control, they typically require a large amount of on-policy interaction with the environment. To address this problem, we propose an off-policy trust region method, Trust-PCL, which exploits an observation that the optimal policy and state values of a maximum reward objective with a relative-entropy regularizer satisfy a set of multi-step pathwise consistencies along any path. The introduction of relative entropy regularization allows Trust-PCL to maintain optimization stability while exploiting off-policy data to improve sample efficiency. When evaluated on a number of continuous control tasks, Trust-PCL significantly improves the solution quality and sample efficiency of TRPO.1 ",
40
+ "bbox": [
41
+ 233,
42
+ 281,
43
+ 764,
44
+ 434
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 463,
55
+ 336,
56
+ 479
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The goal of model-free reinforcement learning (RL) is to optimize an agent’s behavior policy through trial and error interaction with a black box environment. Value-based RL algorithms such as Q-learning (Watkins, 1989) and policy-based algorithms such as actor-critic (Konda & Tsitsiklis, 2000) have achieved well-known successes in environments with enumerable action spaces and predictable but possibly complex dynamics, e.g., as in Atari games (Mnih et al., 2013; Van Hasselt et al., 2016; Mnih et al., 2016). However, when applied to environments with more sophisticated action spaces and dynamics (e.g., continuous control and robotics), success has been far more limited. ",
63
+ "bbox": [
64
+ 174,
65
+ 496,
66
+ 825,
67
+ 593
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In an attempt to improve the applicability of Q-learning to continuous control, Silver et al. (2014) and Lillicrap et al. (2015) developed an off-policy algorithm DDPG, leading to promising results on continuous control environments. That said, current off-policy methods including DDPG often improve data efficiency at the cost of optimization stability. The behaviour of DDPG is known to be highly dependent on hyperparameter selection and initialization (Metz et al., 2017); even when using optimal hyperparameters, individual training runs can display highly varying outcomes. ",
74
+ "bbox": [
75
+ 174,
76
+ 599,
77
+ 823,
78
+ 684
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "On the other hand, in an attempt to improve the stability and convergence speed of policy-based RL methods, Kakade (2002) developed a natural policy gradient algorithm based on Amari (1998), which subsequently led to the development of trust region policy optimization (TRPO) (Schulman et al., 2015). TRPO has shown strong empirical performance on difficult continuous control tasks often outperforming value-based methods like DDPG. However, a major drawback is that such methods are not able to exploit off-policy data and thus require a large amount of on-policy interaction with the environment, making them impractical for solving challenging real-world problems. ",
85
+ "bbox": [
86
+ 174,
87
+ 690,
88
+ 825,
89
+ 789
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Efforts at combining the stability of trust region policy-based methods with the sample efficiency of value-based methods have focused on using off-policy data to better train a value estimate, which can be used as a control variate for variance reduction (Gu et al., 2017a;b). ",
96
+ "bbox": [
97
+ 174,
98
+ 795,
99
+ 825,
100
+ 837
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we investigate an alternative approach to improving the sample efficiency of trust region policy-based RL methods. We exploit the key fact that, under entropy regularization, the optimal policy and value function satisfy a set of pathwise consistency properties along any sampled path (Nachum et al., 2017), which allows both on and off-policy data to be incorporated in an actor-critic algorithm, PCL. The original PCL algorithm optimized an entropy regularized maximum reward objective and was evaluated on relatively simple tasks. Here we extend the ideas of PCL to achieve strong results on standard, challenging continuous control benchmarks. The main observation is that by alternatively augmenting the maximum reward objective with a relative entropy regularizer, the optimal policy and values still satisfy a certain set of pathwise consistencies along any sampled trajectory. The resulting objective is equivalent to maximizing expected reward subject to a penalty-based constraint on divergence from a reference (i.e., previous) policy. ",
107
+ "bbox": [
108
+ 176,
109
+ 844,
110
+ 821,
111
+ 872
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 173,
120
+ 103,
121
+ 825,
122
+ 229
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We exploit this observation to propose a new off-policy trust region algorithm, Trust-PCL, that is able to exploit off-policy data to train policy and value estimates. Moreover, we present a simple method for determining the coefficient on the relative entropy regularizer to remain agnostic to reward scale, hence ameliorating the task of hyperparameter tuning. We find that the incorporation of a relative entropy regularizer is crucial for good and stable performance. We evaluate TrustPCL against TRPO, and observe that Trust-PCL is able to solve difficult continuous control tasks, while improving the performance of TRPO both in terms of the final reward achieved as well as sample-efficiency. ",
129
+ "bbox": [
130
+ 174,
131
+ 236,
132
+ 825,
133
+ 348
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 367,
144
+ 344,
145
+ 383
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Trust Region Methods. Gradient descent is the predominant optimization method for neural networks. A gradient descent step is equivalent to solving a trust region constrained optimization, ",
152
+ "bbox": [
153
+ 173,
154
+ 400,
155
+ 825,
156
+ 429
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "equation",
162
+ "img_path": "images/7299773d66c3516e87bf42904a77ee55d6965d9fa9a633be53acddc1b4c596d2.jpg",
163
+ "text": "$$\n\\mathrm { m i n i m i z e } ~ { \\boldsymbol { \\ell } } ( { \\boldsymbol { \\theta } } + \\mathrm { d } { \\boldsymbol { \\theta } } ) \\approx { \\boldsymbol { \\ell } } ( { \\boldsymbol { \\theta } } ) + { \\boldsymbol { \\nabla } } { \\boldsymbol { \\ell } } ( { \\boldsymbol { \\theta } } ) ^ { \\top } \\mathrm { d } { \\boldsymbol { \\theta } } \\qquad { \\mathrm { s . t . } } \\quad \\mathrm { d } { \\boldsymbol { \\theta } } ^ { \\top } \\mathrm { d } { \\boldsymbol { \\theta } } \\leq \\epsilon ,\n$$",
164
+ "text_format": "latex",
165
+ "bbox": [
166
+ 282,
167
+ 436,
168
+ 710,
169
+ 457
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "which yields the locally optimal update $\\mathrm { d } \\theta = - \\eta \\nabla \\ell ( \\theta )$ such that $\\eta ~ = ~ { \\sqrt { \\epsilon } } / \\| \\nabla \\ell ( \\theta ) \\|$ ; hence by considering a Euclidean ball, gradient descent assumes the parameters lie in a Euclidean space. ",
176
+ "bbox": [
177
+ 173,
178
+ 463,
179
+ 823,
180
+ 493
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "However, in machine learning, particularly in the context of multi-layer neural network training, Euclidean geometry is not necessarily the best way to characterize proximity in parameter space. It is often more effective to define an appropriate Riemannian metric that respects the loss surface (Amari, 2012), which allows much steeper descent directions to be identified within a local neighborhood (e.g., Amari (1998); Martens & Grosse (2015)). Whenever the loss is defined in terms of a Bregman divergence between an (unknown) optimal parameter $\\theta ^ { * }$ and model parameter $\\theta$ , i.e., $\\ell ( \\theta ) \\equiv D _ { \\mathrm { { F } } } ( \\theta ^ { * } , \\theta )$ , it is natural to use the same divergence to form the trust region: ",
187
+ "bbox": [
188
+ 173,
189
+ 498,
190
+ 825,
191
+ 598
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "equation",
197
+ "img_path": "images/bedb492bf85445eecd0787b4ef439976acf11b4736b8e33e1aff7b23597e8111.jpg",
198
+ "text": "$$\n\\mathrm { m i n i m i z e } D _ { \\mathrm { F } } ( \\theta ^ { * } , \\theta + \\mathrm { d } \\theta ) \\mathrm { s . t . } D _ { \\mathrm { F } } ( \\theta , \\theta + \\mathrm { d } \\theta ) \\leq \\epsilon .\n$$",
199
+ "text_format": "latex",
200
+ "bbox": [
201
+ 305,
202
+ 604,
203
+ 691,
204
+ 622
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The natural gradient (Amari, 1998) is a generalization of gradient descent where the Fisher information matrix $F ( \\theta )$ is used to define the local geometry of the parameter space around $\\theta$ . If a parameter update is constrained by $\\mathrm { d } \\theta ^ { \\mathsf { T } } F ( \\theta ) \\mathrm { d } \\theta \\leq \\epsilon$ , a descent direction of $\\mathrm { d } \\theta \\equiv - \\eta F ( \\theta ) ^ { - 1 } \\nabla \\ell ( \\theta )$ is obtained. This geometry is especially effective for optimizing the log-likelihood of a conditional probabilistic model, where the objective is in fact the KL divergence $D _ { \\mathrm { K L } } ( \\theta ^ { * } , \\theta )$ . The local optimization is, ",
211
+ "bbox": [
212
+ 173,
213
+ 636,
214
+ 825,
215
+ 710
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "equation",
221
+ "img_path": "images/2fff2dcea30febf56cfce9a6bacd3c55322886614c47674fb50c65304e46990e.jpg",
222
+ "text": "$$\n\\mathrm { m i n i m i z e } D _ { \\mathrm { K L } } ( \\theta ^ { * } , \\theta + \\mathrm { d } \\theta ) \\quad \\mathrm { ~ s . t . ~ } \\quad D _ { \\mathrm { K L } } ( \\theta , \\theta + \\mathrm { d } \\theta ) \\approx \\mathrm { d } \\theta ^ { \\mathsf { T } } F ( \\theta ) \\mathrm { d } \\theta \\leq \\epsilon .\n$$",
223
+ "text_format": "latex",
224
+ "bbox": [
225
+ 246,
226
+ 718,
227
+ 753,
228
+ 737
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Thus, natural gradient approximates the trust region by $D _ { \\mathrm { { K L } } } ( a , b ) \\approx ( a - b ) ^ { \\mathsf { T } } F ( a ) ( a - b )$ , which is accurate up to a second order Taylor approximation. Previous work (Kakade, 2002; Bagnell $\\&$ Schneider, 2003; Peters & Schaal, 2008; Schulman et al., 2015) has applied natural gradient to policy optimization, locally improving expected reward subject to variants of $\\mathrm { d } \\theta ^ { \\mathsf { T } } F ( \\theta ) \\mathrm { d } \\theta \\leq \\epsilon$ . Recently, TRPO (Schulman et al., 2015; 2016) has achieved state-of-the-art results in continuous control by adding several approximations to the natural gradient to make nonlinear policy optimization feasible. ",
235
+ "bbox": [
236
+ 173,
237
+ 746,
238
+ 825,
239
+ 834
240
+ ],
241
+ "page_idx": 1
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Another approach to trust region optimization is given by proximal gradient methods (Parikh et al., 2014). The class of proximal gradient methods most similar to our work are those that replace the hard constraint in (2) with a penalty added to the objective. These techniques have recently become popular in RL (Wang et al., 2016; Heess et al., 2017; Schulman et al., 2017b), although in terms of final reward performance on continuous control benchmarks, TRPO is still considered to be the state-of-the-art. ",
246
+ "bbox": [
247
+ 173,
248
+ 839,
249
+ 825,
250
+ 924
251
+ ],
252
+ "page_idx": 1
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Norouzi et al. (2016) make the observation that entropy regularized expected reward may be expressed as a reversed KL divergence $D _ { \\mathrm { K L } } ( \\theta , \\theta ^ { * } )$ , which suggests that an alternative to the constraint in (3) should be used when such regularization is present: ",
257
+ "bbox": [
258
+ 173,
259
+ 103,
260
+ 825,
261
+ 146
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "equation",
267
+ "img_path": "images/57aba5a060ffe5c586141be01042086645da4d8884fa37241cef19f01ef1d16f.jpg",
268
+ "text": "$$\nD _ { \\mathrm { K L } } ( \\boldsymbol \\theta + \\mathrm { d } \\boldsymbol \\theta , \\boldsymbol \\theta ^ { * } ) \\qquad \\mathrm { s . t . } \\qquad D _ { \\mathrm { K L } } ( \\boldsymbol \\theta + \\mathrm { d } \\boldsymbol \\theta , \\boldsymbol \\theta ) \\approx \\mathrm { d } \\boldsymbol \\theta ^ { \\mathsf { T } } \\boldsymbol F ( \\boldsymbol \\theta + \\mathrm { d } \\boldsymbol \\theta ) \\mathrm { d } \\boldsymbol \\theta \\leq \\epsilon .\n$$",
269
+ "text_format": "latex",
270
+ "bbox": [
271
+ 295,
272
+ 150,
273
+ 769,
274
+ 169
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "Unfortunately, this update requires computing the Fisher matrix at the endpoint of the update. The use of $F ( \\theta )$ in previous work can be considered to be an approximation when entropy regularization is present, but it is not ideal, particularly if $\\mathrm { d } \\theta$ is large. In this paper, by contrast, we demonstrate that the optimal $\\mathrm { d } \\theta$ under the reverse KL constraint $\\bar { D _ { \\mathrm { K L } } } ( \\theta + \\mathrm { d } \\bar { \\theta } , \\bar { \\theta } ) \\leq \\dot { \\epsilon }$ can indeed be characterized. Defining the constraint in this way appears to be more natural and effective than that of TRPO. ",
281
+ "bbox": [
282
+ 173,
283
+ 171,
284
+ 825,
285
+ 242
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "Softmax Consistency. To comply with the information geometry over policy parameters, previous work has used the relative entropy (i.e., KL divergence) to regularize policy optimization; resulting in a softmax relationship between the optimal policy and state values (Peters et al., 2010; Azar et al., 2012; 2011; Fox et al., 2016; Rawlik et al., 2013) under single-step rollouts. Our work is unique in that we leverage consistencies over multi-step rollouts. ",
292
+ "bbox": [
293
+ 173,
294
+ 248,
295
+ 825,
296
+ 319
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "The existence of multi-step softmax consistencies has been noted by prior work—first by Nachum et al. (2017) in the presence of entropy regularization. The existence of the same consistencies with relative entropy has been noted by Schulman et al. (2017a). Our work presents multi-step consistency relations for a hybrid relative entropy plus entropy regularized expected reward objective, interpreting relative entropy regularization as a trust region constraint. This work is also distinct from prior work in that the coefficient of relative entropy can be automatically determined, which we have found to be especially crucial in cases where the reward distribution changes dramatically during training. ",
303
+ "bbox": [
304
+ 173,
305
+ 325,
306
+ 825,
307
+ 438
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "Most previous work on softmax consistency (e.g., Fox et al. (2016); Azar et al. (2012); Nachum et al. (2017)) have only been evaluated on relatively simple tasks, including grid-world and discrete algorithmic environments. Rawlik et al. (2013) conducted evaluations on simple variants of the CartPole and Pendulum continuous control tasks. More recently, Haarnoja et al. (2017) showed that soft Qlearning (a single-step special case of PCL) can succeed on more challenging environments, such as a variant of the Swimmer task we consider below. By contrast, this paper presents a successful application of the softmax consistency concept to difficult and standard continuous-control benchmarks, resulting in performance that is competitive with and in some cases beats the state-of-the-art. ",
314
+ "bbox": [
315
+ 173,
316
+ 443,
317
+ 825,
318
+ 555
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "3 NOTATION & BACKGROUND",
325
+ "text_level": 1,
326
+ "bbox": [
327
+ 176,
328
+ 574,
329
+ 439,
330
+ 590
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "We model an agent’s behavior by a policy distribution $\\pi ( a | s )$ over a set of actions (possibly discrete or continuous). At iteration $t$ , the agent encounters a state $s _ { t }$ and performs an action $a _ { t }$ sampled from $\\pi ( \\boldsymbol { a } \\mid \\boldsymbol { s } _ { t } )$ . The environment then returns a scalar reward $\\displaystyle r _ { t } \\sim r ( s _ { t } , a _ { t } )$ and transitions to the next state $s _ { t + 1 } \\sim \\rho ( s _ { t } , a _ { t } )$ . When formulating expectations over actions, rewards, and state transitions we will often omit the sampling distributions, $\\pi , r$ , and $\\rho$ , respectively. ",
337
+ "bbox": [
338
+ 173,
339
+ 604,
340
+ 825,
341
+ 676
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Maximizing Expected Reward. The standard objective in RL is to maximize expected future discounted reward. We formulate this objective on a per-state basis recursively as ",
348
+ "bbox": [
349
+ 173,
350
+ 683,
351
+ 821,
352
+ 710
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/1e92d3528327f5c6feb27f80d5de42be710a854f8349136b6871b145c20d71a6.jpg",
359
+ "text": "$$\nO _ { \\mathrm { E R } } ( s , \\pi ) = \\mathbb { E } _ { a , r , s ^ { \\prime } } \\left[ r + \\gamma O _ { \\mathrm { E R } } ( s ^ { \\prime } , \\pi ) \\right] .\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 369,
363
+ 714,
364
+ 629,
365
+ 732
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "The overall, state-agnostic objective is the expected per-state objective when states are sampled from interactions with the environment: ",
372
+ "bbox": [
373
+ 173,
374
+ 736,
375
+ 826,
376
+ 763
377
+ ],
378
+ "page_idx": 2
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/30d347d2fef35e1ac423b56070e6549b4c59b95c0fbda7742e55574a49f71bc3.jpg",
383
+ "text": "$$\nO _ { \\mathrm { E R } } ( \\pi ) = \\mathbb { E } _ { s } [ O _ { \\mathrm { E R } } ( s , \\pi ) ] .\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 411,
387
+ 767,
388
+ 584,
389
+ 785
390
+ ],
391
+ "page_idx": 2
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Most policy-based algorithms, including REINFORCE (Williams & Peng, 1991) and actorcritic (Konda & Tsitsiklis, 2000), aim to optimize $O _ { \\mathrm { E R } }$ given a parameterized policy. ",
396
+ "bbox": [
397
+ 171,
398
+ 787,
399
+ 823,
400
+ 816
401
+ ],
402
+ "page_idx": 2
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Path Consistency Learning (PCL). Inspired by Williams & Peng (1991), Nachum et al. (2017) augment the objective $O _ { \\mathrm { E R } }$ in (5) with a discounted entropy regularizer to derive an objective, ",
407
+ "bbox": [
408
+ 171,
409
+ 821,
410
+ 826,
411
+ 852
412
+ ],
413
+ "page_idx": 2
414
+ },
415
+ {
416
+ "type": "equation",
417
+ "img_path": "images/f318ae0770265f10a6ce2028b2c0c6cb781e1d0b44c240f11260b5b15f1f3674.jpg",
418
+ "text": "$$\nO _ { \\mathrm { E N T } } ( s , \\pi ) = O _ { \\mathrm { E R } } ( s , \\pi ) + \\tau \\mathbb { H } ( s , \\pi ) ,\n$$",
419
+ "text_format": "latex",
420
+ "bbox": [
421
+ 369,
422
+ 854,
423
+ 627,
424
+ 872
425
+ ],
426
+ "page_idx": 2
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "where $\\tau \\geq 0$ is a user-specified temperature parameter that controls the degree of entropy regularization, and the discounted entropy $\\mathbb { H } ( s , \\pi )$ is recursively defined as ",
431
+ "bbox": [
432
+ 168,
433
+ 876,
434
+ 823,
435
+ 905
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "equation",
441
+ "img_path": "images/d89d8a964f30e72a66ed6e03b4d51b5f804f9a099d84501300f3ee384b2938ad.jpg",
442
+ "text": "$$\n\\begin{array} { r } { \\mathbb { H } ( s , \\pi ) = \\mathbb { E } _ { a , s ^ { \\prime } } [ - \\log \\pi ( a \\mid s ) + \\gamma \\mathbb { H } ( s ^ { \\prime } , \\pi ) ] . } \\end{array}\n$$",
443
+ "text_format": "latex",
444
+ "bbox": [
445
+ 344,
446
+ 907,
447
+ 653,
448
+ 926
449
+ ],
450
+ "page_idx": 2
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "Note that the objective $O _ { \\mathrm { E N T } } ( s , \\pi )$ can then be re-expressed recursively as, ",
455
+ "bbox": [
456
+ 173,
457
+ 103,
458
+ 663,
459
+ 118
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "equation",
465
+ "img_path": "images/ad6fd278e46d9326230444d93bae18e8213b2bc8b02cd6f5ee6b5e08ffcf2fcd.jpg",
466
+ "text": "$$\nO _ { \\mathrm { E N T } } ( s , \\pi ) = \\mathbb { E } _ { a , r , s ^ { \\prime } } [ r - \\tau \\log \\pi ( a \\mid s ) + \\gamma O _ { \\mathrm { E N T } } ( s ^ { \\prime } , \\pi ) ] .\n$$",
467
+ "text_format": "latex",
468
+ "bbox": [
469
+ 303,
470
+ 125,
471
+ 692,
472
+ 143
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "Nachum et al. (2017) show that the optimal policy $\\pi ^ { * }$ for $O _ { \\mathrm { E N T } }$ and $V ^ { * } ( s ) = O _ { \\mathrm { E N T } } ( s , \\pi ^ { * } )$ mutually satisfy a softmax temporal consistency constraint along any sequence of states $s _ { 0 } , \\ldots , s _ { d }$ starting at $s _ { 0 }$ and a corresponding sequence of actions $a _ { 0 } , \\ldots , a _ { d - 1 }$ : ",
479
+ "bbox": [
480
+ 174,
481
+ 156,
482
+ 825,
483
+ 200
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "equation",
489
+ "img_path": "images/9a34440ce67fdd4ff211efe5e959dbdb724f460d7d19891149b1cc907a65992e.jpg",
490
+ "text": "$$\nV ^ { * } ( s _ { 0 } ) = \\underset { r _ { i } , s _ { i } } { \\mathbb { E } } \\left[ \\gamma ^ { d } V ^ { * } ( s _ { d } ) + \\sum _ { i = 0 } ^ { d - 1 } \\gamma ^ { i } ( r _ { i } - \\tau \\log \\pi ^ { * } ( a _ { i } | s _ { i } ) ) \\right] .\n$$",
491
+ "text_format": "latex",
492
+ "bbox": [
493
+ 299,
494
+ 207,
495
+ 699,
496
+ 251
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "This observation led to the development of the PCL algorithm, which attempts to minimize squared error between the LHS and RHS of (10) to simultaneously optimize parameterized $\\pi _ { \\theta }$ and $V _ { \\phi }$ . Importantly, PCL is applicable to both on-policy and off-policy trajectories. ",
503
+ "bbox": [
504
+ 173,
505
+ 257,
506
+ 825,
507
+ 300
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Trust Region Policy Optimization (TRPO). As noted, standard policy-based algorithms for maximizing $O _ { \\mathrm { E R } }$ can be unstable and require small learning rates for training. To alleviate this issue, Schulman et al. (2015) proposed to perform an iterative trust region optimization to maximize $O _ { \\mathrm { E R } }$ . At each step, a prior policy $\\tilde { \\pi }$ is used to sample a large batch of trajectories, then $\\pi$ is subsequently optimized to maximize $O _ { \\mathrm { E R } }$ while remaining within a constraint defined by the average per-state KL-divergence with $\\tilde { \\pi }$ . That is, at each iteration TRPO solves the constrained optimization problem, ",
514
+ "bbox": [
515
+ 173,
516
+ 305,
517
+ 825,
518
+ 390
519
+ ],
520
+ "page_idx": 3
521
+ },
522
+ {
523
+ "type": "equation",
524
+ "img_path": "images/4ec4d359eb657b71cb019d0e5c026f0d7345d61724d4c0f299d9151c15fd9e85.jpg",
525
+ "text": "$$\n\\begin{array} { r } { \\operatornamewithlimits { m a x i m i z e } O _ { \\mathrm { E R } } ( \\pi ) \\mathrm { s . t . } \\mathbb { E } _ { s \\sim \\pi , \\rho } [ \\mathrm { K L } \\left( \\pi ( - | s ) \\| \\pi ( - | s ) \\right) ] \\leq \\epsilon . } \\end{array}\n$$",
526
+ "text_format": "latex",
527
+ "bbox": [
528
+ 276,
529
+ 401,
530
+ 720,
531
+ 425
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "The prior policy is then replaced with the new policy $\\pi$ , and the process is repeated. ",
538
+ "bbox": [
539
+ 176,
540
+ 428,
541
+ 722,
542
+ 444
543
+ ],
544
+ "page_idx": 3
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "4 METHOD ",
549
+ "text_level": 1,
550
+ "bbox": [
551
+ 174,
552
+ 463,
553
+ 282,
554
+ 479
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "To enable more stable training and better exploit the natural information geometry of the parameter space, we propose to augment the entropy regularized expected reward objective $O _ { \\mathrm { E N T } }$ in (7) with a discounted relative entropy trust region around a prior policy $\\tilde { \\pi }$ , ",
561
+ "bbox": [
562
+ 174,
563
+ 496,
564
+ 823,
565
+ 539
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "equation",
571
+ "img_path": "images/fe8df21a4d205d6235194deeed2c880b81fc8998d020d48d8732667e01ddaa92.jpg",
572
+ "text": "$$\n\\operatorname* { m a x i m i z e } _ { \\pi } \\mathbb { E } _ { s } [ O _ { \\mathrm { E N T } } ( \\pi ) ] \\mathrm { ~ s . t . ~ } \\mathbb { E } _ { s } [ \\mathbb { G } ( s , \\pi , { \\tilde { \\pi } } ) ] \\leq \\epsilon ,\n$$",
573
+ "text_format": "latex",
574
+ "bbox": [
575
+ 316,
576
+ 545,
577
+ 679,
578
+ 568
579
+ ],
580
+ "page_idx": 3
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "where the discounted relative entropy is recursively defined as ",
585
+ "bbox": [
586
+ 176,
587
+ 574,
588
+ 583,
589
+ 589
590
+ ],
591
+ "page_idx": 3
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "img_path": "images/f7d7c510878a19012a03194105cd802dd2ee9aed8a60c2d9267246b6379bd1a3.jpg",
596
+ "text": "$$\n\\mathbb { G } ( s , \\pi , \\tilde { \\pi } ) = \\mathbb { E } _ { a , s ^ { \\prime } } \\left[ \\log \\pi ( a | s ) - \\log \\tilde { \\pi } ( a | s ) + \\gamma \\mathbb { G } ( s ^ { \\prime } , \\pi , \\tilde { \\pi } ) \\right] .\n$$",
597
+ "text_format": "latex",
598
+ "bbox": [
599
+ 299,
600
+ 595,
601
+ 699,
602
+ 614
603
+ ],
604
+ "page_idx": 3
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "This objective attempts to maximize entropy regularized expected reward while maintaining natural proximity to the previous policy. Although previous work has separately proposed to use relative entropy and entropy regularization, we find that the two components serve different purposes, each of which is beneficial: entropy regularization helps improve exploration, while the relative entropy improves stability and allows for a faster learning rate. This combination is a key novelty. ",
609
+ "bbox": [
610
+ 173,
611
+ 621,
612
+ 825,
613
+ 691
614
+ ],
615
+ "page_idx": 3
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Using the method of Lagrange multipliers, we cast the constrained optimization problem in (13) into maximization of the following objective, ",
620
+ "bbox": [
621
+ 173,
622
+ 696,
623
+ 825,
624
+ 727
625
+ ],
626
+ "page_idx": 3
627
+ },
628
+ {
629
+ "type": "equation",
630
+ "img_path": "images/9e8d74d96603ad40723f98aa42c83762d1ce045f6ebff16dfd697d0164818c5d.jpg",
631
+ "text": "$$\n{ \\cal O } _ { \\mathrm { R E L E N T } } ( s , \\pi ) = { \\cal O } _ { \\mathrm { E N T } } ( s , \\pi ) - \\lambda \\mathbb { G } ( s , \\pi , { \\tilde { \\pi } } ) .\n$$",
632
+ "text_format": "latex",
633
+ "bbox": [
634
+ 349,
635
+ 733,
636
+ 648,
637
+ 751
638
+ ],
639
+ "page_idx": 3
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "Again, the environment-wide objective is the expected per-state objective when states are sampled from interactions with the environment, ",
644
+ "bbox": [
645
+ 173,
646
+ 757,
647
+ 821,
648
+ 786
649
+ ],
650
+ "page_idx": 3
651
+ },
652
+ {
653
+ "type": "equation",
654
+ "img_path": "images/82340d13708fe541c61d0e7ac47e13d0ce6beecb492886d0a15779d0711278e5.jpg",
655
+ "text": "$$\nO _ { \\mathrm { R E L E N T } } ( \\pi ) = \\mathbb { E } _ { s } [ O _ { \\mathrm { R E L E N T } } ( s , \\pi ) ] .\n$$",
656
+ "text_format": "latex",
657
+ "bbox": [
658
+ 382,
659
+ 792,
660
+ 614,
661
+ 811
662
+ ],
663
+ "page_idx": 3
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "4.1 PATH CONSISTENCY WITH RELATIVE ENTROPY ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 173,
671
+ 827,
672
+ 544,
673
+ 842
674
+ ],
675
+ "page_idx": 3
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "A key technical observation is that the $O _ { \\mathrm { R E L E N T } }$ objective has a similar decomposition structure to $O _ { \\mathrm { E N T } }$ , and one can cast $O$ RELENT as an entropy regularized expected reward objective with a set of transformed rewards, i.e., ",
680
+ "bbox": [
681
+ 173,
682
+ 853,
683
+ 825,
684
+ 896
685
+ ],
686
+ "page_idx": 3
687
+ },
688
+ {
689
+ "type": "equation",
690
+ "img_path": "images/8b80f5158c2cb54762d820136461113e3a80c70aedc60c0484aeaebc67f23619.jpg",
691
+ "text": "$$\nO _ { \\mathrm { R E L E N T } } ( s , \\pi ) = \\widetilde { O } _ { \\mathtt { E R } } ( s , \\pi ) + ( \\tau + \\lambda ) \\mathbb { H } ( s , \\pi ) ,\n$$",
692
+ "text_format": "latex",
693
+ "bbox": [
694
+ 343,
695
+ 902,
696
+ 653,
697
+ 925
698
+ ],
699
+ "page_idx": 3
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "where $\\tilde { O } _ { \\mathrm { E R } } ( s , \\pi )$ is an expected reward objective on a transformed reward distribution function $\\tilde { r } ( s , a ) = r ( s , a ) + \\lambda \\log \\tilde { \\pi } ( a | s )$ . Thus, in what follows, we derive a corresponding form of the multi-step path consistency in (10). ",
704
+ "bbox": [
705
+ 174,
706
+ 103,
707
+ 825,
708
+ 150
709
+ ],
710
+ "page_idx": 4
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "Let $\\pi ^ { * }$ denote the optimal policy, defined as $\\pi ^ { * } = \\operatorname { a r g m a x } _ { \\pi } O _ { \\mathrm { R E L E N T } } ( \\pi )$ . As in PCL (Nachum et al., 2017), this optimal policy may be expressed as ",
715
+ "bbox": [
716
+ 173,
717
+ 155,
718
+ 823,
719
+ 191
720
+ ],
721
+ "page_idx": 4
722
+ },
723
+ {
724
+ "type": "equation",
725
+ "img_path": "images/979ffb451eead80e8fc748a3f09b0134b020abc49384a5830499c872fedc2342.jpg",
726
+ "text": "$$\n\\pi ^ { * } ( a _ { t } | s _ { t } ) = \\exp \\left\\{ \\frac { \\mathbb { E } _ { \\tilde { r } _ { t } \\sim \\tilde { r } ( s _ { t } , a _ { t } ) , s _ { t + 1 } } [ \\tilde { r } _ { t } + \\gamma V ^ { * } ( s _ { t + 1 } ) ] - V ^ { * } ( s _ { t } ) } { \\tau + \\lambda } \\right\\} ,\n$$",
727
+ "text_format": "latex",
728
+ "bbox": [
729
+ 279,
730
+ 195,
731
+ 717,
732
+ 231
733
+ ],
734
+ "page_idx": 4
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "where $V ^ { * }$ are the softmax state values defined recursively as ",
739
+ "bbox": [
740
+ 176,
741
+ 233,
742
+ 570,
743
+ 247
744
+ ],
745
+ "page_idx": 4
746
+ },
747
+ {
748
+ "type": "equation",
749
+ "img_path": "images/d8495a1c78f24ec10af1adcac211e1d258f6dccd3d7d7000875688e8b2ba05ee.jpg",
750
+ "text": "$$\nV ^ { * } ( s _ { t } ) = ( \\tau + \\lambda ) \\log \\int _ { A } \\exp \\left. \\frac { \\mathbb { E } _ { \\tilde { r } _ { t } \\sim \\tilde { r } ( s _ { t } , a ) , s _ { t + 1 } } [ \\tilde { r } _ { t } + \\gamma V ^ { * } ( s _ { t + 1 } ) ] } { \\tau + \\lambda } \\right. \\mathrm { d } a .\n$$",
751
+ "text_format": "latex",
752
+ "bbox": [
753
+ 264,
754
+ 252,
755
+ 735,
756
+ 286
757
+ ],
758
+ "page_idx": 4
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "We may re-arrange (17) to yield ",
763
+ "bbox": [
764
+ 174,
765
+ 289,
766
+ 387,
767
+ 304
768
+ ],
769
+ "page_idx": 4
770
+ },
771
+ {
772
+ "type": "equation",
773
+ "img_path": "images/439adf9eff512b687cdf20e744a793bf8f82d8d7ce0fd0b06ce58bd40ab56b2b.jpg",
774
+ "text": "$$\n\\begin{array} { r c l } { V ^ { * } ( s _ { t } ) } & { = } & { \\mathbb { E } _ { \\tilde { r } _ { t } \\sim \\tilde { r } ( s _ { t } , a _ { t } ) , s _ { t + 1 } } [ \\tilde { r } _ { t } - ( \\tau + \\lambda ) \\log \\pi ^ { * } ( a _ { t } | s _ { t } ) + \\gamma V ^ { * } ( s _ { t + 1 } ) ] } \\\\ & { = } & { \\mathbb { E } _ { r _ { t } , s _ { t + 1 } } [ r _ { t } - ( \\tau + \\lambda ) \\log \\pi ^ { * } ( a _ { t } | s _ { t } ) + \\lambda \\log \\tilde { \\pi } ( a _ { t + i } | s _ { t + i } ) + \\gamma V ^ { * } ( s _ { t + 1 } ) ] . } \\end{array}\n$$",
775
+ "text_format": "latex",
776
+ "bbox": [
777
+ 214,
778
+ 306,
779
+ 782,
780
+ 347
781
+ ],
782
+ "page_idx": 4
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "This is a single-step temporal consistency which may be extended to multiple steps by further expanding $V ^ { \\ast } ( s _ { t + 1 } )$ on the RHS using the same identity. Thus, in general we have the following softmax temporal consistency constraint along any sequence of states defined by a starting state $s _ { t }$ and a sequence of actions $a _ { t } , \\ldots , a _ { t + d - 1 }$ : ",
787
+ "bbox": [
788
+ 174,
789
+ 348,
790
+ 826,
791
+ 405
792
+ ],
793
+ "page_idx": 4
794
+ },
795
+ {
796
+ "type": "equation",
797
+ "img_path": "images/c3606945042fe5a19a07a336bb6ea79de35757c671371fa7b46a27905c2d8720.jpg",
798
+ "text": "$$\nr ^ { * } ( s _ { t } ) = \\underset { r _ { t + i } , s _ { t + i } } { \\mathbb { E } } \\left[ \\gamma ^ { d } V ^ { * } ( s _ { t + d } ) + \\sum _ { i = 0 } ^ { d - 1 } \\gamma ^ { i } \\left( r _ { t + i } - ( \\tau + \\lambda ) \\log \\pi ^ { * } ( a _ { t + i } | s _ { t + i } ) + \\lambda \\log \\tilde { \\pi } ( a _ { t + i } | s _ { t + i } ) \\right) \\right] .\n$$",
799
+ "text_format": "latex",
800
+ "bbox": [
801
+ 181,
802
+ 407,
803
+ 838,
804
+ 452
805
+ ],
806
+ "page_idx": 4
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "4.2 TRUST-PCL ",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 174,
814
+ 478,
815
+ 299,
816
+ 493
817
+ ],
818
+ "page_idx": 4
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "We propose to train a parameterized policy $\\pi _ { \\theta }$ and value estimate $V _ { \\phi }$ to satisfy the multi-step consistencies in (21). Thus, we define a consistency error for a sequence of states, actions, and rewards st:t+d ≡ (st, at, rt, . . . , st+d−1, at+d−1, rt+d−1, st+d) sampled from the environment as ",
823
+ "bbox": [
824
+ 174,
825
+ 505,
826
+ 823,
827
+ 549
828
+ ],
829
+ "page_idx": 4
830
+ },
831
+ {
832
+ "type": "equation",
833
+ "img_path": "images/f092576ac4f465cf906b13fdf21a507f87ff4ac8ea6dad47a68a795d061e7f04.jpg",
834
+ "text": "$$\n\\begin{array} { r c l } { { C ( s _ { t : t + d } , \\theta , \\phi ) ~ { = } ~ - { V _ { \\phi } ( s _ { t } ) + \\gamma ^ { d } V _ { \\phi } ( s _ { t + d } ) ~ + } } } & { { } } & { { } } \\\\ { { } } & { { } } & { { { \\displaystyle \\sum _ { i = 0 } ^ { d - 1 } \\gamma ^ { i } \\left( r _ { t + i } - ( { \\tau + } \\lambda ) \\log { \\pi _ { \\theta } ( a _ { t + i } | s _ { t + i } ) } + \\lambda \\log { \\pi _ { \\bar { \\theta } } ( a _ { t + i } | s _ { t + i } ) } \\right) ~ . } } } \\end{array}\n$$",
835
+ "text_format": "latex",
836
+ "bbox": [
837
+ 200,
838
+ 550,
839
+ 769,
840
+ 617
841
+ ],
842
+ "page_idx": 4
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "loss for a given batch of episodes (or sub-episodes) We aim to minimize the squared consistency error on every sub-trajectory of length $S = \\{ s _ { 0 : T _ { k } } ^ { ( k ) } \\} _ { k = 1 } ^ { B }$ is $d$ . That is, the ",
847
+ "bbox": [
848
+ 173,
849
+ 626,
850
+ 825,
851
+ 660
852
+ ],
853
+ "page_idx": 4
854
+ },
855
+ {
856
+ "type": "equation",
857
+ "img_path": "images/c982c50804668652f721e1593b886fd05fae447c37ee0a9b83a6d2f68d0120c4.jpg",
858
+ "text": "$$\n\\mathcal { L } ( S , \\theta , \\phi ) = \\sum _ { k = 1 } ^ { B } \\sum _ { t = 0 } ^ { T _ { k } - 1 } C ( s _ { t : t + d } ^ { ( k ) } , \\theta , \\phi ) ^ { 2 } .\n$$",
859
+ "text_format": "latex",
860
+ "bbox": [
861
+ 369,
862
+ 664,
863
+ 629,
864
+ 708
865
+ ],
866
+ "page_idx": 4
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "We perform gradient descent on $\\theta$ and $\\phi$ to minimize this loss. In practice, we have found that it is beneficial to learn the parameter $\\phi$ at least as fast as $\\theta$ , and accordingly, given a mini-batch of episodes we perform a single gradient update on $\\theta$ and possibly multiple gradient updates on $\\phi$ (see Appendix for details). ",
871
+ "bbox": [
872
+ 173,
873
+ 710,
874
+ 825,
875
+ 767
876
+ ],
877
+ "page_idx": 4
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "In principle, the mini-batch $S$ may be taken from either on-policy or off-policy trajectories. In our implementation, we utilized a replay buffer prioritized by recency. As episodes (or sub-episodes) are sampled from the environment they are placed in a replay buffer and a priority $p { \\big ( } s _ { 0 : T } )$ is given to a trajectory $s _ { 0 : T }$ equivalent to the current training step. Then, to sample a batch for training, $B$ episodes are sampled from the replay buffer proportional to exponentiated priority $\\exp \\{ \\beta p ( s _ { 0 : T } ) \\}$ for some hyperparameter $\\beta \\geq 0$ . ",
882
+ "bbox": [
883
+ 173,
884
+ 773,
885
+ 825,
886
+ 859
887
+ ],
888
+ "page_idx": 4
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "For the prior policy $\\pi _ { \\tilde { \\theta } }$ , we use a lagged geometric mean of the parameters. At each training step, we update $\\tilde { \\theta } \\alpha \\tilde { \\theta } + ( 1 - \\alpha ) \\theta$ . Thus on average our training scheme attempts to maximize entropy regularized expected reward while penalizing divergence from a policy roughly $1 / ( 1 - \\alpha )$ training steps in the past. ",
893
+ "bbox": [
894
+ 174,
895
+ 864,
896
+ 825,
897
+ 924
898
+ ],
899
+ "page_idx": 4
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "4.3 AUTOMATIC TUNING OF THE LAGRANGE MULTIPLIER $\\lambda$ ",
904
+ "text_level": 1,
905
+ "bbox": [
906
+ 173,
907
+ 103,
908
+ 606,
909
+ 118
910
+ ],
911
+ "page_idx": 5
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "The use of a relative entropy regularizer as a penalty rather than a constraint introduces several difficulties. The hyperparameter $\\lambda$ must necessarily adapt to the distribution of rewards. Thus, $\\lambda$ must be tuned not only to each environment but also during training on a single environment, since the observed reward distribution changes as the agent’s behavior policy improves. Using a constraint form of the regularizer is more desirable, and others have advocated its use in practice (Schulman et al., 2015) specifically to robustly allow larger updates during training. ",
916
+ "bbox": [
917
+ 174,
918
+ 128,
919
+ 825,
920
+ 213
921
+ ],
922
+ "page_idx": 5
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "To this end, we propose to redirect the hyperparameter tuning from $\\lambda$ to $\\epsilon$ . Specifically, we present a method which, given a desired hard constraint on the relative entropy defined by $\\epsilon$ , approximates the equivalent penalty coefficient $\\lambda ( \\epsilon )$ . This is a key novelty of our work and is distinct from previous attempts at automatically tuning a regularizing coefficient, which iteratively increase and decrease the coefficient based on observed training behavior (Schulman et al., 2017b; Heess et al., 2017). ",
927
+ "bbox": [
928
+ 174,
929
+ 219,
930
+ 825,
931
+ 290
932
+ ],
933
+ "page_idx": 5
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "We restrict our analysis to the undiscounted setting $\\gamma = 1$ with entropy regularizer $\\tau = 0$ . Additionally, we assume deterministic, finite-horizon environment dynamics. An additional assumption we make is that the expected KL-divergence over states is well-approximated by the KL-divergence starting from the unique initial state $s _ { 0 }$ . Although in our experiments these restrictive assumptions are not met, we still found our method to perform well for adapting $\\lambda$ during training. ",
938
+ "bbox": [
939
+ 174,
940
+ 296,
941
+ 825,
942
+ 367
943
+ ],
944
+ "page_idx": 5
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "In this setting the optimal policy of (14) is proportional to exponentiated scaled reward. Specifically, for a full episode $s _ { 0 : T } = ( s _ { 0 } , a _ { 0 } , r _ { 0 } , \\ldots , s _ { T - 1 } , a _ { T - 1 } , r _ { T - 1 } , s _ { T } )$ , we have ",
949
+ "bbox": [
950
+ 174,
951
+ 373,
952
+ 823,
953
+ 404
954
+ ],
955
+ "page_idx": 5
956
+ },
957
+ {
958
+ "type": "equation",
959
+ "img_path": "images/b8aa17d0a3de5c196658b2f48ebe22f3c24268d08679676a10c0be61cca8ff50.jpg",
960
+ "text": "$$\n\\pi ^ { * } ( s _ { 0 : T } ) \\propto \\tilde { \\pi } ( s _ { 0 : T } ) \\exp \\left\\{ \\frac { R ( s _ { 0 : T } ) } { \\lambda } \\right\\} ,\n$$",
961
+ "text_format": "latex",
962
+ "bbox": [
963
+ 370,
964
+ 409,
965
+ 624,
966
+ 444
967
+ ],
968
+ "page_idx": 5
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "where $\\begin{array} { r } { \\pi ( s _ { 0 : T } ) = \\prod _ { i = 0 } ^ { T - 1 } \\pi ( a _ { i } | s _ { i } ) } \\end{array}$ and $\\begin{array} { r } { R ( s _ { 0 : T } ) = \\sum _ { i = 0 } ^ { T - 1 } r _ { i } } \\end{array}$ . The normalization factor of $\\pi ^ { * }$ ",
973
+ "bbox": [
974
+ 173,
975
+ 450,
976
+ 784,
977
+ 470
978
+ ],
979
+ "page_idx": 5
980
+ },
981
+ {
982
+ "type": "equation",
983
+ "img_path": "images/f4eedf06c204c8457dc51d2bd64f08449907ce0932cefd50877a3333f0d0c7c0.jpg",
984
+ "text": "$$\nZ = \\mathbb { E } _ { s _ { 0 : T } \\sim \\tilde { \\pi } } \\left[ \\exp \\left\\{ \\frac { R ( s _ { 0 : T } ) } { \\lambda } \\right\\} \\right] .\n$$",
985
+ "text_format": "latex",
986
+ "bbox": [
987
+ 383,
988
+ 476,
989
+ 612,
990
+ 511
991
+ ],
992
+ "page_idx": 5
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "We would like to approximate the trajectory-wide KL-divergence between $\\pi ^ { * }$ and $\\tilde { \\pi }$ . We may express the KL-divergence analytically: ",
997
+ "bbox": [
998
+ 176,
999
+ 517,
1000
+ 823,
1001
+ 545
1002
+ ],
1003
+ "page_idx": 5
1004
+ },
1005
+ {
1006
+ "type": "equation",
1007
+ "img_path": "images/44239c5241fef6e1f0e176e02f53d9ab4c46543d6ef3c0a4696d73db9a041cab.jpg",
1008
+ "text": "$$\n\\begin{array} { r l } & { K L ( \\pi ^ { * } | | \\tilde { \\pi } ) = \\mathbb { E } _ { s _ { 0 : T } \\sim \\pi ^ { * } } \\left[ \\log \\left( \\frac { \\pi ^ { * } \\left( s _ { 0 : T } \\right) } { \\tilde { \\pi } \\left( s _ { 0 : T } \\right) } \\right) \\right] } \\\\ & { \\qquad = \\mathbb { E } _ { s _ { 0 : T } \\sim \\pi ^ { * } } \\left[ \\frac { R \\left( s _ { 0 : T } \\right) } { \\lambda } - \\log Z \\right] } \\\\ & { \\qquad = - \\log Z + \\mathbb { E } _ { s _ { 0 : T } \\sim \\tilde { \\pi } } \\left[ \\frac { R \\left( s _ { 0 : T } \\right) } { \\lambda } \\cdot \\frac { \\pi ^ { * } \\left( s _ { 0 : T } \\right) } { \\tilde { \\pi } \\left( s _ { 0 : T } \\right) } \\right] } \\\\ & { \\qquad = - \\log Z + \\mathbb { E } _ { s _ { 0 : T } \\sim \\tilde { \\pi } } \\left[ \\frac { R \\left( s _ { 0 : T } \\right) } { \\lambda } \\exp \\{ R ( s _ { 0 : T } ) / \\lambda - \\log Z \\} \\right] . } \\end{array}\n$$",
1009
+ "text_format": "latex",
1010
+ "bbox": [
1011
+ 256,
1012
+ 550,
1013
+ 740,
1014
+ 693
1015
+ ],
1016
+ "page_idx": 5
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Since all expectations are with respect to $\\tilde { \\pi }$ , this quantity is tractable to approximate given episodes sampled from $\\tilde { \\pi }$ ",
1021
+ "bbox": [
1022
+ 176,
1023
+ 698,
1024
+ 823,
1025
+ 727
1026
+ ],
1027
+ "page_idx": 5
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Therefore, in Trust-PCL, given a set of episodes sampled from the prior policy $\\pi _ { \\tilde { \\theta } }$ and a desired maximum divergence $\\epsilon$ , we can perform a simple line search to find a suitable $\\lambda ( \\epsilon )$ which yields $K L ( \\pi ^ { * } | | \\pi _ { \\tilde { \\theta } } )$ as close as possible to $\\epsilon$ . ",
1032
+ "bbox": [
1033
+ 174,
1034
+ 733,
1035
+ 825,
1036
+ 776
1037
+ ],
1038
+ "page_idx": 5
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "The preceding analysis provided a method to determine $\\lambda ( \\epsilon )$ given a desired maximum divergence $\\epsilon$ . However, there is still a question of whether $\\epsilon$ should change during training. Indeed, as episodes may possibly increase in length, $K L ( \\pi ^ { * } | | \\tilde { \\pi } )$ naturally increases when compared to the average perstate $K L ( \\pi ^ { * } ( - | s ) | | \\tilde { \\pi } ( - | s ) )$ , and vice versa for decreasing length. Thus, in practice, given an $\\epsilon$ and a set of sampled episodes $\\dot { S } = \\{ s _ { 0 : T _ { k } } ^ { ( k ) } \\} _ { k = 1 } ^ { N }$ , we approximate the best $\\lambda$ which yields a maximum divergence of $\\begin{array} { r } { \\frac { \\epsilon } { N } \\sum _ { k = 1 } ^ { N } T _ { k } } \\end{array}$ . This makes it so that $\\epsilon$ corresponds more to a constraint on the lengthaveraged KL-divergence. ",
1043
+ "bbox": [
1044
+ 173,
1045
+ 781,
1046
+ 825,
1047
+ 888
1048
+ ],
1049
+ "page_idx": 5
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "To avoid incurring a prohibitively large number of interactions with the environment for each parameter update, in practice we use the last 100 episodes as the set of sampled episodes $S$ . While this is not exactly the same as sampling episodes from $\\pi _ { \\tilde { \\theta } }$ , it is not too far off since $\\pi _ { \\tilde { \\theta } }$ is a lagged version of the online policy $\\pi _ { \\theta }$ . Moreover, we observed this protocol to work well in practice. A more sophisticated and accurate protocol may be derived by weighting the episodes according to the importance weights corresponding to their true sampling distribution. ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 895,
1057
+ 823,
1058
+ 924
1059
+ ],
1060
+ "page_idx": 5
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "",
1065
+ "bbox": [
1066
+ 174,
1067
+ 103,
1068
+ 825,
1069
+ 160
1070
+ ],
1071
+ "page_idx": 6
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "5 EXPERIMENTS ",
1076
+ "text_level": 1,
1077
+ "bbox": [
1078
+ 176,
1079
+ 180,
1080
+ 326,
1081
+ 195
1082
+ ],
1083
+ "page_idx": 6
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "We evaluate Trust-PCL against TRPO on a number of benchmark tasks. We choose TRPO as a baseline since it is a standard algorithm known to achieve state-of-the-art performance on the continuous control tasks we consider (see e.g., leaderboard results on the OpenAI Gym website (Brockman et al., 2016)). We find that Trust-PCL can match or improve upon TRPO’s performance in terms of both average reward and sample efficiency. ",
1088
+ "bbox": [
1089
+ 174,
1090
+ 212,
1091
+ 825,
1092
+ 281
1093
+ ],
1094
+ "page_idx": 6
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "5.1 SETUP ",
1099
+ "text_level": 1,
1100
+ "bbox": [
1101
+ 174,
1102
+ 299,
1103
+ 261,
1104
+ 313
1105
+ ],
1106
+ "page_idx": 6
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "We chose a number of control tasks available from OpenAI Gym (Brockman et al., 2016). The first task, Acrobot, is a discrete-control task, while the remaining tasks (HalfCheetah, Swimmer, Hopper, Walker2d, and Ant) are well-known continuous-control tasks utilizing the MuJoCo environment (Todorov et al., 2012). ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 324,
1114
+ 825,
1115
+ 380
1116
+ ],
1117
+ "page_idx": 6
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "For TRPO we trained using batches of $Q \\ = \\ 2 5 , 0 0 0$ steps (12, 500 for Acrobot), which is the approximate batch size used by other implementations (Duan et al., 2016; Schulman, 2017). Thus, at each training iteration, TRPO samples 25, 000 steps using the policy $\\pi _ { \\tilde { \\theta } }$ and then takes a single step within a KL-ball to yield a new $\\pi _ { \\theta }$ . ",
1122
+ "bbox": [
1123
+ 174,
1124
+ 387,
1125
+ 825,
1126
+ 443
1127
+ ],
1128
+ "page_idx": 6
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Trust-PCL is off-policy, so to evaluate its performance we alternate between collecting experience and training on batches of experience sampled from the replay buffer. Specifically, we alternate between collecting $P = 1 0$ steps from the environment and performing a single gradient step based on a batch of size $Q = 6 4$ sub-episodes of length $P$ from the replay buffer, with a recency weight of $\\beta = 0 . 0 0 1$ on the sampling distribution of the replay buffer. To maintain stability we use $\\alpha = 0 . 9 9$ and we modified the loss from squared loss to Huber loss on the consistency error. Since our policy is parameterized by a unimodal Gaussian, it is impossible for it to satisfy all path consistencies, and so we found this crucial for stability. ",
1133
+ "bbox": [
1134
+ 174,
1135
+ 450,
1136
+ 825,
1137
+ 561
1138
+ ],
1139
+ "page_idx": 6
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "For each of the variants and for each environment, we performed a hyperparameter search to find the best hyperparameters. The plots presented here show the reward achieved during training on the best hyperparameters averaged over the best 4 seeds of 5 randomly seeded training runs. Note that this reward is based on greedy actions (rather than random sampling). ",
1144
+ "bbox": [
1145
+ 174,
1146
+ 569,
1147
+ 825,
1148
+ 625
1149
+ ],
1150
+ "page_idx": 6
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Experiments were performed using Tensorflow (Abadi et al., 2016). Although each training step of Trust-PCL (a simple gradient step) is considerably faster than TRPO, we found that this does not have an overall effect on the run time of our implementation, due to a combination of the fact that each environment step is used in multiple training steps of Trust-PCL and that a majority of the run time is spent interacting with the environment. A detailed description of our implementation and hyperparameter search is available in the Appendix. ",
1155
+ "bbox": [
1156
+ 174,
1157
+ 631,
1158
+ 825,
1159
+ 715
1160
+ ],
1161
+ "page_idx": 6
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "5.2 RESULTS ",
1166
+ "text_level": 1,
1167
+ "bbox": [
1168
+ 174,
1169
+ 732,
1170
+ 277,
1171
+ 746
1172
+ ],
1173
+ "page_idx": 6
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "We present the reward over training of Trust-PCL and TRPO in Figure 1. We find that Trust-PCL can match or beat the performance of TRPO across all environments in terms of both final reward and sample efficiency. These results are especially significant on the harder tasks (Walker2d and Ant). We additionally present our results compared to other published results in Table 1. We find that even when comparing across different implementations, Trust-PCL can match or beat the state-of-the-art. ",
1178
+ "bbox": [
1179
+ 174,
1180
+ 757,
1181
+ 825,
1182
+ 828
1183
+ ],
1184
+ "page_idx": 6
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "5.2.1 HYPERPARAMETER ANALYSIS ",
1189
+ "text_level": 1,
1190
+ "bbox": [
1191
+ 176,
1192
+ 843,
1193
+ 437,
1194
+ 858
1195
+ ],
1196
+ "page_idx": 6
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "The most important hyperparameter in our method is $\\epsilon$ , which determines the size of the trust region and thus has a critical role in the stability of the algorithm. To showcase this effect, we present the reward during training for several different values of $\\epsilon$ in Figure 2. As $\\epsilon$ increases, instability increases as well, eventually having an adverse effect on the agent’s ability to achieve optimal reward. ",
1201
+ "bbox": [
1202
+ 176,
1203
+ 867,
1204
+ 823,
1205
+ 924
1206
+ ],
1207
+ "page_idx": 6
1208
+ },
1209
+ {
1210
+ "type": "image",
1211
+ "img_path": "images/2819973078574959af663e0a5bd2f625284a6841ecbb7974799c6d7e0e859717.jpg",
1212
+ "image_caption": [
1213
+ "Figure 1: The results of Trust-PCL against a TRPO baseline. Each plot shows average greedy reward with single standard deviation error intervals capped at the min and max across 4 best of 5 randomly seeded training runs after choosing best hyperparameters. The $\\mathbf { X }$ -axis shows millions of environment steps. We observe that Trust-PCL is consistently able to match and, in many cases, beat TRPO’s performance both in terms of reward and sample efficiency. "
1214
+ ],
1215
+ "image_footnote": [],
1216
+ "bbox": [
1217
+ 238,
1218
+ 102,
1219
+ 761,
1220
+ 388
1221
+ ],
1222
+ "page_idx": 7
1223
+ },
1224
+ {
1225
+ "type": "image",
1226
+ "img_path": "images/34d09bb3531e483b9be242882f2de4c101ffb45016e355dc9b7df44bf18184cb.jpg",
1227
+ "image_caption": [
1228
+ "Figure 2: The results of Trust-PCL across several values of $\\epsilon$ , defining the size of the trust region. Each plot shows average greedy reward across 4 best of 5 randomly seeded training runs after choosing best hyperparameters. The $\\mathbf { X }$ -axis shows millions of environment steps. We observe that instability increases with $\\epsilon$ , thus concluding that the use of trust region is crucial. "
1229
+ ],
1230
+ "image_footnote": [],
1231
+ "bbox": [
1232
+ 313,
1233
+ 502,
1234
+ 679,
1235
+ 654
1236
+ ],
1237
+ "page_idx": 7
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Note that standard PCL (Nachum et al., 2017) corresponds to $\\epsilon \\infty$ (that is, $\\lambda = 0$ ). Therefore, standard PCL would fail in these environments, and the use of trust region is crucial. ",
1242
+ "bbox": [
1243
+ 173,
1244
+ 762,
1245
+ 823,
1246
+ 791
1247
+ ],
1248
+ "page_idx": 7
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "The main advantage of Trust-PCL over existing trust region methods for continuous control is its ability to learn in an off-policy manner. The degree to which Trust-PCL is off-policy is determined by a combination of the hyparparameters $\\alpha , \\beta$ , and $P$ . To evaluate the importance of training off-policy, we evaluate Trust-PCL with a hyperparameter setting that is more on-policy. We set $\\alpha = 0 . 9 5$ , $\\beta = 0 . 1$ , and $P = 1 , 0 0 0$ . In this setting, we also use large batches of $Q = 2 5$ episodes of length $P$ (a total of 25, 000 environment steps per batch). Figure 3 shows the results of Trust-PCL with our original parameters and this new setting. We note a dramatic advantage in sample efficiency when using off-policy training. Although Trust-PCL (on-policy) can achieve state-of-the-art reward performance, it requires an exorbitant amount of experience. On the other hand, Trust-PCL (off",
1253
+ "bbox": [
1254
+ 173,
1255
+ 797,
1256
+ 825,
1257
+ 924
1258
+ ],
1259
+ "page_idx": 7
1260
+ },
1261
+ {
1262
+ "type": "image",
1263
+ "img_path": "images/b0d97e378156ad5edbbab6dfd5281f228dce1b8dcd57a11bb07f63cb417ae41b.jpg",
1264
+ "image_caption": [
1265
+ "Figure 3: The results of Trust-PCL varying the degree of on/off-policy. We see that Trust-PCL (on-policy) has a behavior similar to TRPO, achieving good final reward but requiring an exorbitant number of experience collection. When collecting less experience per training step in Trust-PCL (off-policy), we are able to improve sample efficiency while still achieving a competitive final reward. "
1266
+ ],
1267
+ "image_footnote": [],
1268
+ "bbox": [
1269
+ 316,
1270
+ 102,
1271
+ 681,
1272
+ 253
1273
+ ],
1274
+ "page_idx": 8
1275
+ },
1276
+ {
1277
+ "type": "table",
1278
+ "img_path": "images/53c954ae74a9a7c6efff8f9a07081ba4f869841cea5ec8cbc039211bbe15b587.jpg",
1279
+ "table_caption": [],
1280
+ "table_footnote": [],
1281
+ "table_body": "<table><tr><td>Domain</td><td>TRPO-GAE</td><td>TRPO (rllab)</td><td>TRPO (ours)</td><td>Trust-PCL</td><td>IPG</td></tr><tr><td>HalfCheetah</td><td>4871.36</td><td>2889</td><td>4343.6</td><td>7057.1</td><td>4767</td></tr><tr><td>Swimmer</td><td>137.25</td><td>1</td><td>288.1</td><td>297.0</td><td></td></tr><tr><td>Hopper</td><td>3765.78</td><td>1</td><td>3516.7</td><td>3804.9</td><td>一</td></tr><tr><td>Walker2d</td><td>6028.73</td><td>1487</td><td>2838.4</td><td>5027.2</td><td>3047</td></tr><tr><td>Ant</td><td>2918.25</td><td>1520</td><td>4347.5</td><td>6104.2</td><td>4415</td></tr></table>",
1282
+ "bbox": [
1283
+ 225,
1284
+ 376,
1285
+ 764,
1286
+ 455
1287
+ ],
1288
+ "page_idx": 8
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "Table 1: Results for best average reward in the first 10M steps of training for our implementations (TRPO (ours) and Trust-PCL) and external implementations. TRPO-GAE are results of Schulman (2017) available on the OpenAI Gym website. TRPO (rllab) and IPG are taken from Gu et al. (2017b). These results are each on different setups with different hyperparameter searches and in some cases different evaluation protocols (e.g.,TRPO (rllab) and IPG were run with a simple linear value network instead of the two-hidden layer network we use). Thus, it is not possible to make any definitive claims based on this data. However, we do conclude that our results are overall competitive with state-of-the-art external implementations. ",
1293
+ "bbox": [
1294
+ 173,
1295
+ 465,
1296
+ 825,
1297
+ 577
1298
+ ],
1299
+ "page_idx": 8
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "policy) can be competitive in terms of reward while providing a significant improvement in sample efficiency. ",
1304
+ "bbox": [
1305
+ 173,
1306
+ 621,
1307
+ 823,
1308
+ 650
1309
+ ],
1310
+ "page_idx": 8
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "One last hyperparameter is $\\tau$ , determining the degree of exploration. Anecdotally, we found $\\tau$ to not be of high importance for the tasks we evaluated. Indeed many of our best results use $\\tau =$ 0. Including $\\tau > 0$ had a marginal effect, at best. The reason for this is likely due to the tasks themselves. Indeed, other works which focus on exploration in continuous control have found the need to propose exploration-advanageous variants of these standard benchmarks (Haarnoja et al., 2017; Houthooft et al., 2016). ",
1315
+ "bbox": [
1316
+ 174,
1317
+ 656,
1318
+ 825,
1319
+ 741
1320
+ ],
1321
+ "page_idx": 8
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "6 CONCLUSION ",
1326
+ "text_level": 1,
1327
+ "bbox": [
1328
+ 176,
1329
+ 781,
1330
+ 318,
1331
+ 797
1332
+ ],
1333
+ "page_idx": 8
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "We have presented Trust-PCL, an off-policy algorithm employing a relative-entropy penalty to impose a trust region on a maximum reward objective. We found that Trust-PCL can perform well on a set of standard control tasks, improving upon TRPO both in terms of average reward and sample efficiency. Our best results on Trust-PCL are able to maintain the stability and solution quality of TRPO while approaching the sample-efficiency of value-based methods (see e.g., Metz et al. (2017)). This gives hope that the goal of achieving both stability and sample-efficiency without trading-off one for the other is attainable in a single unifying RL algorithm. ",
1338
+ "bbox": [
1339
+ 174,
1340
+ 825,
1341
+ 825,
1342
+ 924
1343
+ ],
1344
+ "page_idx": 8
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "7 ACKNOWLEDGMENT ",
1349
+ "text_level": 1,
1350
+ "bbox": [
1351
+ 176,
1352
+ 102,
1353
+ 379,
1354
+ 118
1355
+ ],
1356
+ "page_idx": 9
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "We thank Matthew Johnson, Luke Metz, Shane Gu, and the Google Brain team for insightful comments and discussions. ",
1361
+ "bbox": [
1362
+ 173,
1363
+ 133,
1364
+ 821,
1365
+ 161
1366
+ ],
1367
+ "page_idx": 9
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "REFERENCES ",
1372
+ "text_level": 1,
1373
+ "bbox": [
1374
+ 174,
1375
+ 183,
1376
+ 287,
1377
+ 198
1378
+ ],
1379
+ "page_idx": 9
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for largescale machine learning. arXiv:1605.08695, 2016. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 205,
1387
+ 825,
1388
+ 248
1389
+ ],
1390
+ "page_idx": 9
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural Comput., 10, 1998. ",
1395
+ "bbox": [
1396
+ 171,
1397
+ 257,
1398
+ 774,
1399
+ 272
1400
+ ],
1401
+ "page_idx": 9
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Shun-Ichi Amari. Differential-geometrical methods in statistics, volume 28. Springer Science & Business Media, 2012. ",
1406
+ "bbox": [
1407
+ 171,
1408
+ 280,
1409
+ 823,
1410
+ 310
1411
+ ],
1412
+ "page_idx": 9
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Mohammad Gheshlaghi Azar, Vicenc¸ Gomez, and Hilbert J Kappen. Dynamic policy programming ´ with function approximation. AISTATS, 2011. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 318,
1420
+ 823,
1421
+ 347
1422
+ ],
1423
+ "page_idx": 9
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Mohammad Gheshlaghi Azar, Vicenc¸ Gomez, and Hilbert J Kappen. Dynamic policy programming. ´ JMLR, 13, 2012. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 354,
1431
+ 823,
1432
+ 385
1433
+ ],
1434
+ "page_idx": 9
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "J Andrew Bagnell and Jeff Schneider. Covariant policy search. 2003. ",
1439
+ "bbox": [
1440
+ 173,
1441
+ 392,
1442
+ 627,
1443
+ 409
1444
+ ],
1445
+ "page_idx": 9
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAI Gym. arXiv:1606.01540, 2016. ",
1450
+ "bbox": [
1451
+ 173,
1452
+ 416,
1453
+ 825,
1454
+ 446
1455
+ ],
1456
+ "page_idx": 9
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. 2016. ",
1461
+ "bbox": [
1462
+ 173,
1463
+ 454,
1464
+ 823,
1465
+ 483
1466
+ ],
1467
+ "page_idx": 9
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Roy Fox, Ari Pakman, and Naftali Tishby. G-learning: Taming the noise in reinforcement learning via soft updates. Uncertainty in Artifical Intelligence, 2016. URL http://arxiv.org/abs/ 1512.08562. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 491,
1475
+ 823,
1476
+ 535
1477
+ ],
1478
+ "page_idx": 9
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, and Sergey Levine. Q-prop: Sample-efficient policy gradient with an off-policy critic. ICLR, 2017a. ",
1483
+ "bbox": [
1484
+ 171,
1485
+ 542,
1486
+ 823,
1487
+ 573
1488
+ ],
1489
+ "page_idx": 9
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, Bernhard Scholkopf, and ¨ Sergey Levine. Interpolated policy gradient: Merging on-policy and off-policy gradient estimation for deep reinforcement learning. arXiv preprint arXiv:1706.00387, 2017b. ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 580,
1497
+ 825,
1498
+ 625
1499
+ ],
1500
+ "page_idx": 9
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. arXiv preprint arXiv:1702.08165, 2017. ",
1505
+ "bbox": [
1506
+ 174,
1507
+ 632,
1508
+ 823,
1509
+ 661
1510
+ ],
1511
+ "page_idx": 9
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "Nicolas Heess, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, Ali Eslami, Martin Riedmiller, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017. ",
1516
+ "bbox": [
1517
+ 174,
1518
+ 670,
1519
+ 825,
1520
+ 712
1521
+ ],
1522
+ "page_idx": 9
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "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, pp. 1109–1117, 2016. ",
1527
+ "bbox": [
1528
+ 174,
1529
+ 720,
1530
+ 825,
1531
+ 763
1532
+ ],
1533
+ "page_idx": 9
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Sham M Kakade. A natural policy gradient. In NIPS, 2002. ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 772,
1541
+ 566,
1542
+ 789
1543
+ ],
1544
+ "page_idx": 9
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. ",
1549
+ "bbox": [
1550
+ 169,
1551
+ 796,
1552
+ 795,
1553
+ 811
1554
+ ],
1555
+ "page_idx": 9
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "Vijay R Konda and John N Tsitsiklis. Actor-critic algorithms, 2000. ",
1560
+ "bbox": [
1561
+ 173,
1562
+ 820,
1563
+ 620,
1564
+ 835
1565
+ ],
1566
+ "page_idx": 9
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
1571
+ "bbox": [
1572
+ 174,
1573
+ 843,
1574
+ 823,
1575
+ 886
1576
+ ],
1577
+ "page_idx": 9
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In ICML, 2015. ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 895,
1585
+ 821,
1586
+ 924
1587
+ ],
1588
+ "page_idx": 9
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "Luke Metz, Julian Ibarz, Navdeep Jaitly, and James Davidson. Discrete sequential prediction of continuous actions for deep RL. CoRR, abs/1705.05035, 2017. URL http://arxiv.org/ abs/1705.05035. ",
1593
+ "bbox": [
1594
+ 174,
1595
+ 103,
1596
+ 823,
1597
+ 145
1598
+ ],
1599
+ "page_idx": 10
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin A. Riedmiller. Playing atari with deep reinforcement learning. arXiv:1312.5602, 2013. ",
1604
+ "bbox": [
1605
+ 176,
1606
+ 152,
1607
+ 823,
1608
+ 195
1609
+ ],
1610
+ "page_idx": 10
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy P Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. ICML, 2016. ",
1615
+ "bbox": [
1616
+ 173,
1617
+ 202,
1618
+ 823,
1619
+ 246
1620
+ ],
1621
+ "page_idx": 10
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. CoRR, abs/1702.08892, 2017. URL http: //arxiv.org/abs/1702.08892. ",
1626
+ "bbox": [
1627
+ 173,
1628
+ 252,
1629
+ 821,
1630
+ 295
1631
+ ],
1632
+ "page_idx": 10
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "text": "Mohammad Norouzi, Samy Bengio, Zhifeng Chen, Navdeep Jaitly, Mike Schuster, Yonghui Wu, and Dale Schuurmans. Reward augmented maximum likelihood for neural structured prediction. NIPS, 2016. ",
1637
+ "bbox": [
1638
+ 173,
1639
+ 301,
1640
+ 823,
1641
+ 344
1642
+ ],
1643
+ "page_idx": 10
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "Neal Parikh, Stephen Boyd, et al. Proximal algorithms. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Optimization, 1(3):127–239, 2014. ",
1648
+ "bbox": [
1649
+ 171,
1650
+ 352,
1651
+ 823,
1652
+ 381
1653
+ ],
1654
+ "page_idx": 10
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "Jan Peters and Stefan Schaal. Reinforcement learning of motor skills with policy gradients. Neural networks, 21, 2008. ",
1659
+ "bbox": [
1660
+ 173,
1661
+ 387,
1662
+ 823,
1663
+ 416
1664
+ ],
1665
+ "page_idx": 10
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "Jan Peters, Katharina Mulling, and Yasemin Altun. Relative entropy policy search. In AAAI, 2010. ",
1670
+ "bbox": [
1671
+ 169,
1672
+ 422,
1673
+ 820,
1674
+ 439
1675
+ ],
1676
+ "page_idx": 10
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "Konrad Rawlik, Marc Toussaint, and Sethu Vijayakumar. On stochastic optimal control and reinforcement learning by approximate inference. In Twenty-Third International Joint Conference on Artificial Intelligence, 2013. ",
1681
+ "bbox": [
1682
+ 171,
1683
+ 445,
1684
+ 821,
1685
+ 488
1686
+ ],
1687
+ "page_idx": 10
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "John Schulman. Modular rl. http://github.com/joschu/modular_rl, 2017. Accessed: 2017-06-01. ",
1692
+ "bbox": [
1693
+ 171,
1694
+ 494,
1695
+ 821,
1696
+ 523
1697
+ ],
1698
+ "page_idx": 10
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In ICML, 2015. ",
1703
+ "bbox": [
1704
+ 169,
1705
+ 530,
1706
+ 823,
1707
+ 560
1708
+ ],
1709
+ "page_idx": 10
1710
+ },
1711
+ {
1712
+ "type": "text",
1713
+ "text": "John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. ICLR, 2016. ",
1714
+ "bbox": [
1715
+ 171,
1716
+ 566,
1717
+ 823,
1718
+ 597
1719
+ ],
1720
+ "page_idx": 10
1721
+ },
1722
+ {
1723
+ "type": "text",
1724
+ "text": "John Schulman, Pieter Abbeel, and Xi Chen. Equivalence between policy gradients and soft qlearning. arXiv preprint arXiv:1704.06440, 2017a. ",
1725
+ "bbox": [
1726
+ 171,
1727
+ 603,
1728
+ 823,
1729
+ 632
1730
+ ],
1731
+ "page_idx": 10
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017b. ",
1736
+ "bbox": [
1737
+ 173,
1738
+ 637,
1739
+ 825,
1740
+ 667
1741
+ ],
1742
+ "page_idx": 10
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 387–395, 2014. ",
1747
+ "bbox": [
1748
+ 174,
1749
+ 674,
1750
+ 823,
1751
+ 718
1752
+ ],
1753
+ "page_idx": 10
1754
+ },
1755
+ {
1756
+ "type": "text",
1757
+ "text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026– 5033. IEEE, 2012. ",
1758
+ "bbox": [
1759
+ 173,
1760
+ 724,
1761
+ 823,
1762
+ 767
1763
+ ],
1764
+ "page_idx": 10
1765
+ },
1766
+ {
1767
+ "type": "text",
1768
+ "text": "Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double qlearning. AAAI, 2016. ",
1769
+ "bbox": [
1770
+ 171,
1771
+ 773,
1772
+ 823,
1773
+ 803
1774
+ ],
1775
+ "page_idx": 10
1776
+ },
1777
+ {
1778
+ "type": "text",
1779
+ "text": "Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. arXiv preprint arXiv:1611.01224, 2016. ",
1780
+ "bbox": [
1781
+ 173,
1782
+ 809,
1783
+ 823,
1784
+ 852
1785
+ ],
1786
+ "page_idx": 10
1787
+ },
1788
+ {
1789
+ "type": "text",
1790
+ "text": "Christopher John Cornish Hellaby Watkins. Learning from delayed rewards. PhD thesis, University of Cambridge England, 1989. ",
1791
+ "bbox": [
1792
+ 173,
1793
+ 859,
1794
+ 823,
1795
+ 888
1796
+ ],
1797
+ "page_idx": 10
1798
+ },
1799
+ {
1800
+ "type": "text",
1801
+ "text": "Ronald J Williams and Jing Peng. Function optimization using connectionist reinforcement learning algorithms. Connection Science, 1991. ",
1802
+ "bbox": [
1803
+ 174,
1804
+ 895,
1805
+ 821,
1806
+ 924
1807
+ ],
1808
+ "page_idx": 10
1809
+ },
1810
+ {
1811
+ "type": "text",
1812
+ "text": "A IMPLEMENTATION BENEFITS OF TRUST-PCL ",
1813
+ "text_level": 1,
1814
+ "bbox": [
1815
+ 174,
1816
+ 102,
1817
+ 580,
1818
+ 118
1819
+ ],
1820
+ "page_idx": 11
1821
+ },
1822
+ {
1823
+ "type": "text",
1824
+ "text": "We have already highlighted the ability of Trust-PCL to use off-policy data to stably train both a parameterized policy and value estimate, which sets it apart from previous methods. We have also noted the ease with which exploration can be incorporated through the entropy regularizer. We elaborate on several additional benefits of Trust-PCL. ",
1825
+ "bbox": [
1826
+ 174,
1827
+ 133,
1828
+ 823,
1829
+ 190
1830
+ ],
1831
+ "page_idx": 11
1832
+ },
1833
+ {
1834
+ "type": "text",
1835
+ "text": "Compared to TRPO, Trust-PCL is much easier to implement. Standard TRPO implementations perform second-order gradient calculations on the KL-divergence to construct a Fisher information matrix (more specifically a vector product with the inverse Fisher information matrix). This yields a vector direction for which a line search is subsequently employed to find the optimal step. Compare this to Trust-PCL which employs simple gradient descent. This makes implementation much more straightforward and easily realizable within standard deep learning frameworks. ",
1836
+ "bbox": [
1837
+ 174,
1838
+ 198,
1839
+ 825,
1840
+ 281
1841
+ ],
1842
+ "page_idx": 11
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "Even if one replaces the constraint on the average KL-divergence of TRPO with a simple regularization penalty (as in proximal policy gradient methods (Schulman et al., 2017b; Wang et al., 2016)), optimizing the resulting objective requires computing the gradient of the KL-divergence. In Trust-PCL, there is no such necessity. The per-state KL-divergence need not have an analytically computable gradient. In fact, the KL-divergence need not have a closed form at all. The only requirement of Trust-PCL is that the log-density be analytically computable. This opens up the possible policy parameterizations to a much wider class of functions. While continuous control has traditionally used policies parameterized by unimodal Gaussians, with Trust-PCL the policy can be replaced with something much more expressive—for example, mixtures of Gaussians or autoregressive policies as in Metz et al. (2017). ",
1847
+ "bbox": [
1848
+ 174,
1849
+ 287,
1850
+ 825,
1851
+ 426
1852
+ ],
1853
+ "page_idx": 11
1854
+ },
1855
+ {
1856
+ "type": "text",
1857
+ "text": "We have yet to fully explore these additional benefits in this work, but we hope that future investigations can exploit the flexibility and ease of implementation of Trust-PCL to further the progress of RL in continuous control environments. ",
1858
+ "bbox": [
1859
+ 176,
1860
+ 434,
1861
+ 823,
1862
+ 476
1863
+ ],
1864
+ "page_idx": 11
1865
+ },
1866
+ {
1867
+ "type": "text",
1868
+ "text": "B EXPERIMENTAL SETUP ",
1869
+ "text_level": 1,
1870
+ "bbox": [
1871
+ 176,
1872
+ 498,
1873
+ 401,
1874
+ 513
1875
+ ],
1876
+ "page_idx": 11
1877
+ },
1878
+ {
1879
+ "type": "text",
1880
+ "text": "We describe in detail the experimental setup regarding implementation and hyperparameter search. ",
1881
+ "bbox": [
1882
+ 174,
1883
+ 531,
1884
+ 818,
1885
+ 545
1886
+ ],
1887
+ "page_idx": 11
1888
+ },
1889
+ {
1890
+ "type": "text",
1891
+ "text": "B.1 ENVIRONMENTS ",
1892
+ "text_level": 1,
1893
+ "bbox": [
1894
+ 176,
1895
+ 564,
1896
+ 331,
1897
+ 579
1898
+ ],
1899
+ "page_idx": 11
1900
+ },
1901
+ {
1902
+ "type": "text",
1903
+ "text": "In Acrobot, episodes were cut-off at step 500. For the remaining environments, episodes were cutoff at step $1 , 0 0 0$ . ",
1904
+ "bbox": [
1905
+ 173,
1906
+ 592,
1907
+ 823,
1908
+ 619
1909
+ ],
1910
+ "page_idx": 11
1911
+ },
1912
+ {
1913
+ "type": "text",
1914
+ "text": "Acrobot, HalfCheetah, and Swimmer are all non-terminating environments. Thus, for these environments, each episode had equal length and each batch contained the same number of episodes. Hopper, Walker2d, and Ant are environments that can terminate the agent. Thus, for these environments, the batch size throughout training remained constant in terms of steps but not in terms of episodes. ",
1915
+ "bbox": [
1916
+ 174,
1917
+ 626,
1918
+ 823,
1919
+ 695
1920
+ ],
1921
+ "page_idx": 11
1922
+ },
1923
+ {
1924
+ "type": "text",
1925
+ "text": "There exists an additional common MuJoCo task called Humanoid. We found that neither our implementation of TRPO nor Trust-PCL could make more than negligible headway on this task, and so omit it from the results. We are aware that TRPO with the addition of GAE and enough finetuning can be made to achieve good results on Humanoid (Schulman et al., 2016). We decided to not pursue a GAE implementation to keep a fair comparison between variants. Trust-PCL can also be made to incorporate an analogue to GAE (by maintaining consistencies at varying time scales), but we leave this to future work. ",
1926
+ "bbox": [
1927
+ 174,
1928
+ 703,
1929
+ 825,
1930
+ 800
1931
+ ],
1932
+ "page_idx": 11
1933
+ },
1934
+ {
1935
+ "type": "text",
1936
+ "text": "B.2 IMPLEMENTATION DETAILS ",
1937
+ "text_level": 1,
1938
+ "bbox": [
1939
+ 176,
1940
+ 819,
1941
+ 408,
1942
+ 833
1943
+ ],
1944
+ "page_idx": 11
1945
+ },
1946
+ {
1947
+ "type": "text",
1948
+ "text": "We use fully-connected feed-forward neural networks to represent both policy and value. ",
1949
+ "bbox": [
1950
+ 171,
1951
+ 845,
1952
+ 753,
1953
+ 861
1954
+ ],
1955
+ "page_idx": 11
1956
+ },
1957
+ {
1958
+ "type": "text",
1959
+ "text": "The policy $\\pi _ { \\theta }$ is represented by a neural network with two hidden layers of dimension 64 with tanh activations. At time step $t$ , the network is given the observation $s _ { t }$ . It produces a vector $\\mu _ { t }$ , which is combined with a learnable (but $t$ -agnostic) parameter $\\xi$ to parametrize a unimodal Gaussian with mean $\\mu _ { t }$ and standard deviation $\\exp ( \\xi )$ . The next action $a _ { t }$ is sampled randomly from this Gaussian. ",
1960
+ "bbox": [
1961
+ 176,
1962
+ 867,
1963
+ 823,
1964
+ 924
1965
+ ],
1966
+ "page_idx": 11
1967
+ },
1968
+ {
1969
+ "type": "text",
1970
+ "text": "The value network $V _ { \\phi }$ is represented by a neural network with two hidden layers of dimension 64 with tanh activations. At time step $t$ the network is given the observation $s _ { t }$ and the component-wise squared observation $s _ { t } \\odot s _ { t }$ . It produces a single scalar value. ",
1971
+ "bbox": [
1972
+ 174,
1973
+ 103,
1974
+ 823,
1975
+ 146
1976
+ ],
1977
+ "page_idx": 12
1978
+ },
1979
+ {
1980
+ "type": "text",
1981
+ "text": "B.2.1 TRPO LEARNING ",
1982
+ "text_level": 1,
1983
+ "bbox": [
1984
+ 176,
1985
+ 161,
1986
+ 354,
1987
+ 175
1988
+ ],
1989
+ "page_idx": 12
1990
+ },
1991
+ {
1992
+ "type": "text",
1993
+ "text": "At each training iteration, both the policy and value parameters are updated. The policy is trained by performing a trust region step according to the procedure described in Schulman et al. (2015). ",
1994
+ "bbox": [
1995
+ 174,
1996
+ 185,
1997
+ 823,
1998
+ 213
1999
+ ],
2000
+ "page_idx": 12
2001
+ },
2002
+ {
2003
+ "type": "text",
2004
+ "text": "The value parameters at each step are solved using an LBFGS optimizer. To avoid instability, the value parameters are solved to fit a mixture of the empirical values and the expected values. That is, we determine $\\phi$ to minimize $\\begin{array} { r } { \\sum _ { s \\in \\mathrm { b a t c h } } ( V _ { \\phi } ( s ) - \\kappa V _ { \\tilde { \\phi } } ( s ) - ( 1 - \\kappa ) \\hat { V } _ { \\tilde { \\phi } } ( s ) ) ^ { 2 } } \\end{array}$ , where again $\\tilde { \\phi }$ is the previous value parameterization. We use $\\kappa = 0 . 9$ . This method for training $\\phi$ is according to that used in Schulman (2017). ",
2005
+ "bbox": [
2006
+ 174,
2007
+ 219,
2008
+ 825,
2009
+ 295
2010
+ ],
2011
+ "page_idx": 12
2012
+ },
2013
+ {
2014
+ "type": "text",
2015
+ "text": "B.2.2 TRUST-PCL LEARNING ",
2016
+ "text_level": 1,
2017
+ "bbox": [
2018
+ 176,
2019
+ 309,
2020
+ 395,
2021
+ 324
2022
+ ],
2023
+ "page_idx": 12
2024
+ },
2025
+ {
2026
+ "type": "text",
2027
+ "text": "At each training iteration, both the policy and value parameters are updated. The specific updates are slightly different between Trust-PCL (on-policy) and Trust-PCL (off-policy). ",
2028
+ "bbox": [
2029
+ 176,
2030
+ 334,
2031
+ 821,
2032
+ 362
2033
+ ],
2034
+ "page_idx": 12
2035
+ },
2036
+ {
2037
+ "type": "text",
2038
+ "text": "For Trust-PCL (on-policy), the policy is trained by taking a single gradient step using the Adam optimizer (Kingma & Ba, 2015) with learning rate 0.001. The value network update is inspired by that used in TRPO we perform 5 gradients steps with learning rate 0.001, calculated with regards to a mix between the empirical values and the expected values according to the previous $\\tilde { \\phi }$ . We use $\\kappa = 0 . 9 5$ . ",
2039
+ "bbox": [
2040
+ 174,
2041
+ 368,
2042
+ 823,
2043
+ 440
2044
+ ],
2045
+ "page_idx": 12
2046
+ },
2047
+ {
2048
+ "type": "text",
2049
+ "text": "For Trust-PCL (off-policy), both the policy and value parameters are updated in a single step using the Adam optimizer with learning rate 0.0001. For this variant, we also utilize a target value network (lagged at the same rate as the target policy network) to replace the value estimate at the final state for each path. We do not mix between empirical and expected values. ",
2050
+ "bbox": [
2051
+ 173,
2052
+ 446,
2053
+ 825,
2054
+ 503
2055
+ ],
2056
+ "page_idx": 12
2057
+ },
2058
+ {
2059
+ "type": "text",
2060
+ "text": "B.3 HYPERPARAMETER SEARCH ",
2061
+ "text_level": 1,
2062
+ "bbox": [
2063
+ 176,
2064
+ 521,
2065
+ 413,
2066
+ 535
2067
+ ],
2068
+ "page_idx": 12
2069
+ },
2070
+ {
2071
+ "type": "text",
2072
+ "text": "We found the most crucial hyperparameters for effective learning in both TRPO and TrustPCL to be $\\epsilon$ (the constraint defining the size of the trust region) and $d$ (the rollout determining how to evaluate the empirical value of a state). For TRPO we performed a grid search over $\\epsilon \\in \\{ 0 . 0 1 , 0 . 0 2 , 0 . 0 5 , 0 . 1 \\} , d \\in \\{ 1 0 , 5 0 \\}$ . For Trust-PCL we performed a grid search over $\\epsilon \\in \\{ 0 . 0 0 1 , 0 . 0 0 2 , 0 . 0 0 5 , 0 . 0 1 \\} , d \\in \\{ 1 0$ $d \\in \\{ 1 0 , 5 0 \\}$ . For Trust-PCL we also experimented with the value of $\\tau$ , either keeping it at a constant 0 (thus, no exploration) or decaying it from 0.1 to 0.0 by a smoothed exponential rate of 0.1 every 2,500 training iterations. ",
2073
+ "bbox": [
2074
+ 174,
2075
+ 546,
2076
+ 825,
2077
+ 645
2078
+ ],
2079
+ "page_idx": 12
2080
+ },
2081
+ {
2082
+ "type": "text",
2083
+ "text": "We fix the discount to $\\gamma = 0 . 9 9 5$ for all environments. ",
2084
+ "bbox": [
2085
+ 174,
2086
+ 651,
2087
+ 531,
2088
+ 665
2089
+ ],
2090
+ "page_idx": 12
2091
+ },
2092
+ {
2093
+ "type": "text",
2094
+ "text": "C PSEUDOCODE ",
2095
+ "text_level": 1,
2096
+ "bbox": [
2097
+ 174,
2098
+ 685,
2099
+ 325,
2100
+ 702
2101
+ ],
2102
+ "page_idx": 12
2103
+ },
2104
+ {
2105
+ "type": "text",
2106
+ "text": "A simplified pseudocode for Trust-PCL is presented in Algorithm 1. ",
2107
+ "bbox": [
2108
+ 173,
2109
+ 717,
2110
+ 620,
2111
+ 733
2112
+ ],
2113
+ "page_idx": 12
2114
+ },
2115
+ {
2116
+ "type": "text",
2117
+ "text": "Algorithm 1 Trust-PCL ",
2118
+ "text_level": 1,
2119
+ "bbox": [
2120
+ 174,
2121
+ 299,
2122
+ 333,
2123
+ 314
2124
+ ],
2125
+ "page_idx": 13
2126
+ },
2127
+ {
2128
+ "type": "text",
2129
+ "text": "Input: Environment $E N V$ , trust region constraint $\\epsilon$ , learning rates $\\eta _ { \\pi } , \\eta _ { v }$ , discount factor $\\gamma$ , rollout $d$ , batch size $Q$ , collect steps per train step $P$ , number of training steps $N$ , replay buffer $R B$ with exponential lag $\\beta$ , lag on prior policy $\\alpha$ . ",
2130
+ "bbox": [
2131
+ 183,
2132
+ 315,
2133
+ 823,
2134
+ 359
2135
+ ],
2136
+ "page_idx": 13
2137
+ },
2138
+ {
2139
+ "type": "text",
2140
+ "text": "function Gradients $( \\{ s _ { t : t + P } ^ { ( k ) } \\} _ { k = 1 } ^ { B } )$ $/ / C$ is thpute $\\begin{array} { r } { \\Delta \\theta = \\sum _ { k = 1 } ^ { B } \\sum _ { p = 0 } ^ { P - 1 } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \\theta , \\phi ) \\nabla _ { \\theta } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \\theta , \\phi ) . } \\end{array}$ $\\begin{array} { r } { \\Delta \\phi = \\sum _ { k = 1 } ^ { B } \\sum _ { p = 0 } ^ { P - 1 } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \\theta , \\phi ) \\nabla _ { \\phi } C ( s _ { t + p : t + p + d } ^ { ( k ) } , \\theta , \\phi ) . } \\end{array}$ Return $\\Delta \\theta , \\Delta \\phi$ \nend function \nInitialize $\\theta , \\phi , \\lambda$ , set $\\tilde { \\theta } = \\theta$ . \nInitialize empty replay buffer $R B ( \\beta )$ . \nfor $i = 0$ to $N - 1$ do // Collect Sample $P$ steps $s _ { t : t + P } \\sim \\pi _ { \\theta }$ on $E N V$ . Insert $s _ { t : t + P }$ to $R B$ . // Train \nSample batch $\\{ s _ { t : t + P } ^ { ( k ) } \\} _ { k = 1 } ^ { B }$ from $R B$ to contain a total of $Q$ transitions $( B \\approx Q / P )$ . $\\Delta \\theta , \\Delta \\phi = \\mathrm { G r a d i e n t s } \\big ( \\{ s _ { t : t + P } ^ { ( k ) } \\} _ { k = 1 } ^ { B } \\big )$ . Update $\\theta \\theta - \\eta _ { \\pi } \\Delta \\theta$ . Update $\\phi \\phi - \\eta _ { v } \\Delta \\phi$ . // Update auxiliary variables Update $\\tilde { \\theta } = \\alpha \\tilde { \\theta } + \\mathrm { \\Gamma } ( 1 - \\alpha ) \\theta$ . Update $\\lambda$ in terms of $\\epsilon$ according to Section 4.3. \nend for ",
2141
+ "bbox": [
2142
+ 186,
2143
+ 325,
2144
+ 776,
2145
+ 723
2146
+ ],
2147
+ "page_idx": 13
2148
+ }
2149
+ ]