ZHANGYUXUAN-zR commited on
Commit
4b72330
·
verified ·
1 Parent(s): 9386c3d

Add files using upload-large-folder tool

Browse files
parse/train/H1Xw62kRZ/H1Xw62kRZ.md ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEVERAGING GRAMMAR AND REINFORCEMENT LEARNING FOR NEURAL PROGRAM SYNTHESIS
2
+
3
+ Rudy Bunel∗ University of Oxford rudy@robots.ox.ac.uk
4
+
5
+ Matthew Hausknecht
6
+ Microsoft Research
7
+ matthew.hausknecht@microsoft.com
8
+ Jacob Devlin∗
9
+ Google
10
+ jacobdevlin@google.com
11
+
12
+ Rishabh Singh Microsoft Research risin@microsoft.com
13
+
14
+ Pushmeet Kohli∗
15
+ Deepmind
16
+ pushmeet@google.com
17
+
18
+ # ABSTRACT
19
+
20
+ Program synthesis is the task of automatically generating a program consistent with a specification. Recent years have seen proposal of a number of neural approaches for program synthesis, many of which adopt a sequence generation paradigm similar to neural machine translation, in which sequence-to-sequence models are trained to maximize the likelihood of known reference programs. While achieving impressive results, this strategy has two key limitations. First, it ignores Program Aliasing: the fact that many different programs may satisfy a given specification (especially with incomplete specifications such as a few input-output examples). By maximizing the likelihood of only a single reference program, it penalizes many semantically correct programs, which can adversely affect the synthesizer performance. Second, this strategy overlooks the fact that programs have a strict syntax that can be efficiently checked. To address the first limitation, we perform reinforcement learning on top of a supervised model with an objective that explicitly maximizes the likelihood of generating semantically correct programs. For addressing the second limitation, we introduce a training procedure that directly maximizes the probability of generating syntactically correct programs that fulfill the specification. We show that our contributions lead to improved accuracy of the models, especially in cases where the training data is limited.
21
+
22
+ # 1 INTRODUCTION
23
+
24
+ The task of program synthesis is to automatically generate a program that is consistent with a specification such as a set of input-output examples, and has been studied since the early days of Artificial Intelligence (Waldinger and Lee, 1969). There has been a lot of recent progress made on neural program induction, where novel neural architectures inspired from computation modules such as RAM, stack, CPU, turing machines, and GPU (Graves et al., 2014; Joulin and Mikolov, 2015; Kurach et al., 2016; Graves et al., 2016; Reed and de Freitas, 2016; Kaiser and Sutskever, 2016) have been proposed to train these architectures in an end-to-end fashion to mimic the behavior of the desired program. While these approaches have achieved impressive results, they do not return explicit interpretable programs, tend not to generalize well on inputs of arbitrary length, and require a lot of examples and computation for learning each program. To mitigate some of these limitations, neural program synthesis approaches (Johnson et al., 2017; Parisotto et al., 2017; Devlin et al., 2017b) have been recently proposed that learn explicit programs in a Domain-specific language (DSL) from as few as five input-output examples. These approaches, instead of using a large number of input-output examples to learn a single program, learn a large number of different programs, each from just a few input-output examples. During training, the correct program is provided as reference, but at test time, the learnt model generates the program from only the input-output examples.
25
+
26
+ While neural program synthesis techniques improve over program induction techniques in certain domains, they suffer from two key limitations. First, these approaches use supervised learning with reference programs and suffer from the problem of Program Aliasing: For a small number of input-output examples, there can be many programs that correctly transform inputs to outputs. The problem is the discrepancy between the single supervised reference program and the multitude of correct programs. Figure 1 shows an example of this: if maximizing the probability of ground truth program, predicting Program B would be assigned a high loss even though the two programs are semantically equivalent for the input-output example. Maximum likelihood training forces the model to learn to predict ground truth programs, which is different from the true objective of program synthesis: predicting any consistent program. To address this problem, we alter the optimization objective: instead of maximum likelihood, we use policy gradient reinforcement learning to directly encourage generation of any program that is consistent with the given examples.
27
+
28
+ ![](images/da75918d710670223bada7e9820b7a9a2b98c2401abdf44c0cfab4f8b4c145dc.jpg)
29
+ Figure 1: Program Aliasing is one difficulty of program synthesis: For the input-output specification given in (1a), both programs are semantically correct. However, supervised training would penalize the prediction of Program B, if A is the ground truth.
30
+
31
+ The second limitation of neural program synthesis techniques based on sequence generation paradigm (Devlin et al., 2017b) is that they often overlook the fact that programs have a strict syntax, which can be checked efficiently. Similarly to the work of Parisotto et al. (2017), we explore a method for leveraging the syntax of the programming language in order to aggressively prune the exponentially large search space of possible programs. In particular, not all sequences of tokens are valid programs and syntactically incorrect programs can be efficiently ignored both during training and at test time. A syntax checker is an additional form of supervision that may not always be present. To address this limitation, we introduce a neural architecture that retains the benefits of aggressive syntax pruning, even without assuming access to the definition of the grammar made in previous work (Parisotto et al., 2017). This model is jointly conditioned on syntactic and program correctness, and can implicitly learn the syntax of the language while training.
32
+
33
+ We demonstrate the efficacy of our approach by developing a neural program synthesis system for the Karel programming language (Pattis, 1981), an educational programming language, consiting of control flow constructs such as loops and conditionals, making it more complex than the domains tackled by previous neural program synthesis works.
34
+
35
+ This paper makes the following key contributions:
36
+
37
+ • We show that Reinforcement Learning can directly optimize for generating any consistent program and improves performance compared to pure supervised learning. • We introduce a method for pruning the space of possible programs using a syntax checker and show that explicit syntax checking helps generate better programs. In the absence of a syntax checker, we introduce a model that jointly learns syntax and the production of correct programs. We demonstrate this model improves performance in instances with limited training data.
38
+
39
+ # 2 RELATED WORK
40
+
41
+ Program synthesis is one of the fundamental problems in Artificial Intelligence. To the best of our knowledge, it can be traced back to the work of Waldinger and Lee (1969) where a theorem prover was used to construct LISP programs based on a formal specification of the input-output relation. As formal specification is often as complex as writing the original program, many techniques were developed to achieve the same goal with simpler partial specifications in the form of input-output (IO) examples (Amarel, 1970; Summers, 1977). Rule-based synthesis approaches have recently been successful in delivering on the promise of Programming By Example (Lieberman, 2001), the most widely known example being the FlashFill system (Gulwani et al., 2012) in Excel. However, such systems are extremely complicated to extend and need significant development time from domain experts to provide the pruning rules for efficient search.
42
+
43
+ As a result, the use of Machine Learning methods have been proposed, based on Bayesian probabilistic models (Liang et al., 2010) or Inductive Logic programming (Muggleton, 1991; Muggleton et al., 2014) to automatically generate programs based on examples. Recently, inspired by the success of Neural Networks in other applications such as vision (Krizhevsky et al., 2012) or speech recognition (Graves et al., 2013) differentiable controllers were made to learn the behaviour of programs by using gradient descent over differentiable version of traditional programming concepts such as memory addressing (Graves et al., 2014), manipulating stacks (Joulin and Mikolov, 2015; Grefenstette et al., 2015), register machines (Kurach et al., 2016), and data manipulation (Neelakantan et al., 2016). These approaches to program induction however tend to struggle with generalization, especially when presented with inputs of a different dimension than the one they were trained with and require a very large amount of training data. Some exceptions to this include Neural Programmer Interpreters (Reed and de Freitas, 2016) and its extensions (Li et al., 2017; Cai et al., 2017) that learn from program traces rather than only examples. However, they still learn a different model for each program and are computationally expensive, unlike our system that uses a single model for learning a large number of programs.
44
+
45
+ A series of recent works aim to infer explicit program source code with the assumption that code structure provides an inductive bias for better generalization. In particular, explicitly modeling control flow statements such as conditionals and loops can often lead to programs capable of generalizing, regardless of input size (Gaunt et al., 2016; Bunel et al., 2016; Riedel et al., 2017). One remaining drawback of these approaches is the need to restart learning from scratch for each new program. Thus they are largely unsuited for the situation of synthesizing a new program on-the-fly from very few examples. The latest developments use large datasets of artificially generated programs and learn to map embeddings of IO examples to information about the programs to generate. Balog et al. (2017) produce scores over attributes, to be used as heuristics to speed up search-based techniques. Parisotto et al. (2017) use their dataset to learn probability over the expansion rules of a predefined grammar, while (Devlin et al., 2017b) directly predict the source code of the programs. These last two methods use supervised training to maximize the likelihood of a single reference program, while we directly optimize for the generation of any consistent program.
46
+
47
+ Our approach to optimize program correctness is similar in spirit to advances in Neural Machine Translation (Wu et al., 2016; Ranzato et al., 2016) that leverage reinforcement learning to optimize directly for evaluation metrics. Taking advantage of the fact that programs can be syntactically checked and unit tested against the specification examples, we show how to improve on those REINFORCE (Williams, 1992) based methods. Recently, Guu et al. (2017) proposed a method similar to ours based on Maximum Marginal Likelihood to generate programs based on a description in natural language. From an application point of view, our target domain is more complex as our DSL includes control flow operations such as conditionals and loops. Moreover, natural language utterances fully describe the steps that the program needs to take, while learning from IO examples requires planning over potentially long executions. Their approach is more akin to inferring a formal specification based on a natural language description, as opposed to our generation of imperative programs.
48
+
49
+ Incorporating knowledge of the grammar of the target domain to enforce syntactical correctness has already proven useful to model arithmetic expressions, molecules (Kusner et al., 2017), and programs (Parisotto et al., 2017; Yin and Neubig, 2017). These approaches define the model over the production rules of the grammar; we instead operate directly over the terminals of the grammar. This allows us to learn the grammar jointly with the model in the case where no formal grammar specification is available. Our approach is extremely general and can be applied to the very recently proposed methods for inferring and executing programs for visual reasoning (Johnson et al., 2017) that to the best of our knowledge does not directly explictly encourage grammar consistency of the resulting program.
50
+
51
+ # 3 PROBLEM OVERVIEW
52
+
53
+ Before describing our proposed methods, we establish the necessary notation, present the problem setting and describe the general paradigm of our approach.
54
+
55
+ # 3.1 PROGRAM SYNTHESIS FORMULATION
56
+
57
+ To avoid confusion with probabilities, we will use the letter $\lambda$ to denote programs. $I$ and $O$ will be used to denote respectively input states and output states and we will use the shortcut $I O$ to denote a pair of corresponding input/output examples. A state constitutes what the programs are going to be operating on, depending on the application domain. In FlashFill-type applications (Parisotto et al., 2017; Devlin et al., 2017b), Input and Output states would be strings of characters, while in our Karel environment, states are grids describing the presence of objects. If we were to apply our method to actual programming languages, states would represent the content of the machine’s registers and the memory.
58
+
59
+ At training time, we assume to have access to $N$ training samples, each training sample consisting of a set of $K$ Input/Output states and a program implementing the mapping correctly:
60
+
61
+ $$
62
+ { \mathcal { D } } = \left\{ { \left( \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } , \ \lambda _ { i } \right) } \right\} \qquad { \mathrm { s u c h ~ t h a t : } } \quad \lambda _ { i } ( I _ { i } ^ { k } ) = O _ { i } ^ { k } \quad \forall i \in 1 . . N , \quad \forall k \in 1 . . K
63
+ $$
64
+
65
+ where $\lambda _ { i } ( I _ { i } ^ { k } )$ denotes the resulting state of applying the program $\lambda _ { i }$ to the input state $I _ { i } ^ { k }$ . Our goal is to learn a synthesizer $\sigma$ that, given a set of input/output examples produces a program:
66
+
67
+ $$
68
+ \sigma : ~ \left\{ { I O } ^ { k } \right\} _ { k = 1 \dots K } ~ \longrightarrow ~ { \hat { \lambda } }
69
+ $$
70
+
71
+ We evaluate the programs on a set of test cases for which we have both specification examples and held-out examples:
72
+
73
+ $$
74
+ { \mathcal D } _ { \mathrm { t e s t } } = \left\{ \left( \left\{ I O _ { j } ^ { k _ { \mathrm { s p e c } } } \right\} _ { k _ { \mathrm { s p e c } } = 1 \dots K } , \quad \left\{ I O _ { j } ^ { k _ { \mathrm { t e s t } } } \right\} _ { k _ { \mathrm { t e s t } } = K + 1 \dots K ^ { \prime } } \right) \right\} _ { j = 1 \dots N _ { \mathrm { t e s t } } } ,
75
+ $$
76
+
77
+ At test time, we evaluate the performance of our learned synthesizer by generating, for each sample in the test set, a program $\hat { \lambda _ { j } }$ . The metric we care about is Generalization:
78
+
79
+ $$
80
+ \{ \begin{array} { l l } { j \in \{ 1 . . N _ { \mathrm { t e x } } \} \ \mathrm { s u c h } \mathrm { t h a t } \ \hat { \lambda _ { j } } ( I _ { j } ^ { k } ) = O _ { j } ^ { k } } & { \forall k \in \{ 1 . . K ^ { \prime } \} \ \} \mathrm { w h e r e } \ \ \hat { \lambda _ { j } } = \sigma ( \{ I O _ { j } ^ { k _ { \mathrm { s p e c } } } \} _ { k _ { \mathrm { s p e c } } = 1 . . K } ) . } \end{array}
81
+ $$
82
+
83
+ # 3.2 NEURAL PROGRAM SYNTHESIS ARCHITECTURE
84
+
85
+ Similar to Devlin et al. (2017b) we use a sequential LSTM-based (Hochreiter and Schmidhuber, 1997) language model, conditioned on an embedding of the input-output pairs. Each pair is encoded independently by a convolutional neural network (CNN) to generate a joint embedding. A succinct description of the architecture can be found in section 6.1 and the exact dimensions are available in the supplementary materials.
86
+
87
+ Each program is represented by a sequence of tokens $\lambda = [ s _ { 1 } , s _ { 2 } , . . . , s _ { L } ]$ where each token comes from an alphabet $\Sigma$ . We model the program one token at a time using an LSTM. At each timestep, the input consists of the concatenation of the embedding of the IO pair and of the last predicted token. One such decoder LSTM is run for each of the IO pairs, all using the same weights. The probability of the next token is defined as the Softmax of a linear layer over the max-pooled hidden state of all the decoder LSTMs. A schema representing this architecture can be seen in Figure 2.
88
+
89
+ The form of the model that we are learning is:
90
+
91
+ $$
92
+ p _ { \theta } ( \lambda _ { i } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } ) = \prod _ { t = 1 } ^ { L _ { i } } p _ { \theta } ( s _ { t } \mid s _ { 1 } , . . . , s _ { t - 1 } , \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . . K } )
93
+ $$
94
+
95
+ At test time, the most likely programs are obtained by running a beam search. One of the advantages of program synthesis is the ability to execute hypothesized programs. Through execution, we remove syntactically incorrect programs and programs that are not consistent with the observed examples. Among the remaining programs, we return the most likely according to the model.
96
+
97
+ ![](images/2a0a88c147a38409c6453040414a01e83b66bff4e8779b4a6684ec70c945ff06.jpg)
98
+ Figure 2: Architecture of our model. Each pair of Input-Output is embedded jointly by a CNN. One decoder LSTM is run for each example, getting fed in a concatenation of the previous token and the IO pair embedding (constant across timestep). Results of all the decoders are maxpooled and the prediction is modulated by the mask generated by the syntax model. The probability over the next token is then obtained by a Softmax transformation.
99
+
100
+ # 4 OBJECTIVE FUNCTIONS
101
+
102
+ # 4.1 MAXIMUM LIKELIHOOD OPTIMIZATION
103
+
104
+ To estimate the parameters $\theta$ of our model, the default solution is to perform supervised training, framing the problem as Maximum Likelihood estimation. Devlin et al. (2017b) follow this approach and use stochastic gradient descent to solve:
105
+
106
+ $$
107
+ \theta ^ { \star } = \operatorname * { a r g m a x } _ { \theta } \prod _ { i = 1 . . N } p _ { \theta } ( \lambda _ { i } \mid \{ I O _ { i } ^ { i } \} _ { i = 1 . . K } ) = \operatorname * { a r g m a x } _ { \theta } \sum _ { i = 1 . . N } \log \left( p _ { \theta } ( \lambda _ { i } \mid \{ I O _ { i } ^ { k } \} _ { k = 1 . . K } ) \right)
108
+ $$
109
+
110
+ However, this training objective exhibits several drawbacks. First, at training time, the model is only exposed to the training data distribution, while at test time, it is fed back the token from its own previous predictions. This discrepancy in distribution of the inputs is well known in Natural Language Processing under the name of exposure bias (Ranzato et al., 2016).
111
+
112
+ Moreover, this loss does not represent the true objective of program synthesis. In practice, any equivalent program should be as valid a prediction as the reference one. This property, that we call program aliasing, is not taken into account by the MLE training. Ideally, we would like the model to learn to reason about the necessary steps needed to map the input to the output. As a result, the loss shouldn’t penalize correct programs, even if they do not correspond to the ground truth.
113
+
114
+ # 4.2 OPTIMIZING EXPECTED CORRECTNESS
115
+
116
+ The first modification that we propose is to change the target objective to bring it more in line with the goal of program synthesis. We replace the optimization problem of (6) by
117
+
118
+ $$
119
+ \theta ^ { \star } = { \underset { \theta } { \operatorname { a r g m a x } } } \ \mathcal { L } _ { R } ( \theta ) , \qquad { \mathrm { w h e r e ~ } } \mathcal { L } _ { R } ( \theta ) = \sum _ { i . . N } \left( \sum _ { \lambda } p \theta ( \lambda \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } ) \ R _ { i } ( \lambda ) \right) ,
120
+ $$
121
+
122
+ where $R _ { i } ( \lambda )$ is a reward function designed to encode the quality of the sampled programs. Note that this formulation is extremely generic and would allow to represent a wide range of different objective functions. If we assume that we have access to a simulator to run our programs, we can design $R _ { i }$ so as to optimize for generalization on held-out examples, preventing the model to overfit on its inputs. Additional property such as program conciseness, or runtime efficiency could also be encoded into the reward.
123
+
124
+ ![](images/6162ab9de360efe363cf765e8ca2dcf1b6d329f7160feb3a3ba2ed750da8c054.jpg)
125
+ Figure 3: Approximation using a beamsearch. All possibles next tokens are tried for each candidates, the $S$ (here 3) most likely according to $p _ { \theta }$ are kept. When an End-Of-Sequence token (green) is reached, the candidate is held out. At the end, the most likely complete sequences are used to construct an approximate distribution, through rescaling.
126
+
127
+ However, this expressiveness comes at a cost: the inner sum in (7) is over all possible programs and therefore is not tractable to compute. The standard method consists of approximating the objective by defining a Monte Carlo estimate of the expected reward, using $S$ samples from the model. To perform optimization, an estimator of the gradient of the expected reward is built based on the REINFORCE trick (Williams, 1992).
128
+
129
+ $$
130
+ \begin{array} { r l r } { { \mathcal { L } _ { R } ( \theta ) \approx \sum _ { i = 1 . . N } \sum _ { r = 1 } ^ { S } \frac { 1 } { S } R _ { i } ( \lambda _ { r } ) , } } & { \mathrm { ~ w h e r e ~ } \lambda _ { r } \sim p _ { \theta } ( \cdot \vert \{ I O _ { i } ^ { k } \} _ { k = 1 . . K } ) } \\ & { } & { \nabla _ { \theta } \mathcal { L } _ { R } ( \theta ) \approx \sum _ { i = 1 . . N } \sum _ { r = 1 } ^ { S } \frac { 1 } { S } R _ { i } ( \lambda _ { r } ) \log \big ( p _ { \theta } ( \lambda _ { r } \vert \{ I O _ { i } ^ { k } \} _ { k = 1 . . K } ) \big ) } \end{array}
131
+ $$
132
+
133
+ However, given that we sample from a unique model, there is a high chance that we will sample the same programs repeatedly when estimating the gradient. This is especially true when the model has been pre-trained in a supervised manner. A different approach is to approximate the distribution of the learned distribution by another one with a smaller support.
134
+
135
+ To obtain this smaller distribution, one possible solution is to employ the $S$ most likely samples as returned by a Beam Search. We generate the embedding of the IO grids and perform decoding, keeping at each step the $S$ most likely candidates prefixes based on the probability $p _ { \theta }$ given by the model. At step $t$ , we evaluate $p _ { \theta } ( s _ { 1 } \cdot \cdot . s _ { t } , \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 \dots K } ^ { \cdot } )$ for all the possible next token $s _ { t }$ and all the candidates $\left( s _ { 1 } \ldots s _ { t - 1 } \right)$ previously obtained. The $S$ most likely sequences will be the candidates at the $( t + 1 )$ step. Figure 3 represents this process.
136
+
137
+ Based on the final samples obtained, we define a probability distribution to use as an approximation of $p _ { \theta }$ in (7). As opposed to (8), this approximation introduces a bias. It however has the advantage of aligning the training procedure more closely with the testing procedure where only likely samples are going to be decoded. Formally, this corresponds to performing the following approximation of the objective function, $( \mathrm { B S } ( p _ { \theta } , S )$ being the $S$ samples returned by a beam search with beam size $S$ ):
138
+
139
+ $$
140
+ \begin{array} { r l } & { { \mathcal { L } } _ { R } ( \theta ) \approx \displaystyle \sum _ { i = . . . N } \left( \sum _ { \lambda } q \theta \big ( \lambda \big | \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \big ) R _ { i } ( \lambda ) \right) } \\ & { \mathrm { ~ w h e r e ~ } \qquad q \theta \big ( \lambda _ { r } \big | \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \big ) = \left\{ \begin{array} { l l } { \displaystyle \frac { p _ { \theta } \big ( \lambda _ { r } \big | \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \big ) } { \sum _ { \lambda _ { r } \in \mathsf { B S } ( r _ { \theta } , s ) } p _ { \theta } \big ( \lambda _ { r } \big | \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \big ) } \qquad } & { \mathrm { i f ~ } \lambda _ { r } \in \mathsf { B S } ( p _ { \theta } , S ) } \\ { 0 \qquad } & { \mathrm { o t h e r w i s e . } } \end{array} \right. } \end{array}
141
+ $$
142
+
143
+ With this approximation, the support of the distribution $q _ { \theta }$ is much smaller as it contains only the $S$ elements returned by the beam search. As a result, the sum become tractable and no estimator are needed. We can simply differentiate this new objective function to obtain the gradients of the loss with regards to $p _ { \theta }$ and use the chain-rule to subsequently obtain gradient with regards to $\theta$ necessary for the optimization. Note that if $S$ is large enough to cover all possible programs, we recover the objective of (7).
144
+
145
+ Based on this more tractable distribution, we can define more complex objective functions. In program synthesis, we have the possibility to prune out several predictions by using the specification. Therefore, we can choose to go beyond optimizing the expected reward when sampling a single program and optimize the expected reward when sampling a bag of $C$ programs and keeping the best one. This results in a new objective function:
146
+
147
+ $$
148
+ \boldsymbol \theta ^ { \star } = \underset { \boldsymbol \theta } { \operatorname { a r g m a x } } \sum _ { i = 1 . . N } \left( \sum _ { \{ \lambda _ { 1 } , \dots , \lambda _ { C } \} \in \mathbf { B } \setminus ( p _ { \theta , s } ) ^ { C } } \left[ \underset { j \in 1 . . C } { \operatorname* { m a x } } R _ { i } ( \lambda _ { j } ) \right] \left( \prod _ { r \in 1 . . C } q _ { \theta } \left( \lambda _ { r } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . R } \right) \right) \right) ,
149
+ $$
150
+
151
+ where $q _ { \theta }$ is defined as previously. We argue that by optimizing this objective function, the model gets the capability of “hedging its bets” and assigning probability mass to several candidates programs, resulting in a higher diversity of outputs.
152
+
153
+ In the special case where the reward function only takes values in $\{ 0 , 1 \}$ , as it is when we are using correctness as a reward, this can be more easily computed as:
154
+
155
+ $$
156
+ \theta ^ { \star } = \operatorname * { a r g m a x } _ { \theta } \sum _ { i = 1 \dots N } \left( 1 - \left( \sum _ { \lambda _ { r } \in \mathrm { B S } ( p _ { \theta } , S ) } \left[ R _ { i } ( \lambda _ { r } ) = = 0 \right] q _ { \theta } ( \lambda _ { r } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 \dots K } ) \right) ^ { C } \right)
157
+ $$
158
+
159
+ The derivation leading to this formulation as well as a description on how to efficiently compute the more general loss(10) can be found in appendix A. Note that although this formulation brings the training objective function closer to the testing procedure, it is still not ideal. It indeed makes the assumption that if we have a correct program in our bag of samples, we can identify it, ignoring the fact that it is possible to have some incorrect program consistent with the IO pairs partial specification (and therefore not prunable). In addition, this represents a probability where the $C$ programs are sampled independently, which in practice we wouldn’t do.
160
+
161
+ # 5 MODEL
162
+
163
+ # 5.1 CONDITIONING ON THE SYNTAX
164
+
165
+ One aspect of the program synthesis task is that syntactically incorrect programs can be trivially identified and pruned before making a prediction. As a result, if we use stx to denote the event that the sampled program is syntactically correct, what we care about modeling correctly is $p ( \lambda | \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 \ldots K } , \dot { \mathbf { s t x } } )$ k=1..K , stx). Using Bayes rule, we can rewrite this:
166
+
167
+ $$
168
+ \begin{array} { r l } & { p \left( \boldsymbol { \lambda } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } , \mathbf { s t x } \right) \propto p \left( \mathbf { s t x } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } , \boldsymbol { \lambda } \right) \times p \left( \boldsymbol { \lambda } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \right) } \\ & { \qquad \propto p \left( \mathbf { s t x } \mid \boldsymbol { \lambda } \right) \times p \left( \boldsymbol { \lambda } \mid \left\{ I O _ { i } ^ { k } \right\} _ { k = 1 . . K } \right) } \end{array}
169
+ $$
170
+
171
+ We drop the conditional dependency on the IO pairs in the second line of (12) as the syntactical correctness of the program is independent from the specification when conditioned on the program. We can do the same operation at the token level, denoting by $\mathtt { s t x } _ { 1 \dots t }$ the event that the sequence of the first $t$ tokens $s _ { 1 } \cdot \cdot \cdot s _ { t }$ doesn’t contain any syntax error and may therefore be a prefix to a valid program.
172
+
173
+ $$
174
+ \begin{array} { r l } { p ( \textit { s } _ { t } | \textit { s } _ { 1 } \cdot \cdot \cdot \mathscr { s } _ { t - 1 } , \{ I O _ { i } ^ { k } \} _ { k = 1 . . . K } , \mathfrak { s t x } _ { 1 . . . t } ) \propto } & { p ( \mathfrak { s t x } _ { 1 . . . t } | \mathscr { s } _ { 1 } \cdot \cdot \cdot \mathscr { s } _ { t } ) \times } \\ & { \quad p ( \textit { s } _ { t } | \mathscr { s } _ { 1 } \cdot \cdot \cdot \mathscr { s } _ { t - 1 } , \{ I O _ { i } ^ { k } \} _ { k = 1 . . . K } ) } \end{array}
175
+ $$
176
+
177
+ Given a grammar, it is possible to construct a checker to determine valid prefixes of programs. Example applications include compilers to signal syntax errors to the user and autocomplete features of Integrated Development Environments (IDEs) to restrict the list of suggested completions.
178
+
179
+ The quantity $p \left( \left. \mathbf { s t x } _ { 1 \ldots t } \right| s _ { 1 } \cdot \cdot \cdot s _ { t } \right)$ is therefore not a probability but can be implemented as a deterministic process for a given target programming language. In practice, this is implemented by getting at each timestep a mask $M = \{ - \operatorname { i n f } , 0 \} ^ { | \Sigma | }$ where $M _ { j } = - \operatorname { i n f }$ if the $j$ -th token in the alphabet is not a valid token in the current context, and 0 otherwise. This mask is added to the output of the network, just before the Softmax operation that normalizes the output to a probability over the tokens.
180
+
181
+ Conditioning on the syntactical correctness of the programs provides several advantages: First, sampled programs become syntactically correct by construction. At test time, it allows the beam search to only explore useful candidates. It also ensures that when we are optimizing for correctness, the samples used to approximate the distribution are all going to be valid candidates. Restricting the dimension of the space on which our model is defined also makes the problem simpler to learn.
182
+
183
+ It may not always be feasible to assume access to a syntax checker. In general, we wish to retain the syntax checker’s ability to aggressively prune the search in program space without requiring access to the syntax itself. To this end, we propose to represent the syntax checker as a neural network module and learn it jointly. Similar to the base model, we implement learned syntax checking using an LSTM $g _ { \phi }$ . Comparing to the decoder LSTM, there are two major differences:
184
+
185
+ • The syntaxLSTM is conditioned only on the program tokens, not on the IO pairs. This ensures that the learned checker models only the syntax of the language. • The output of the syntaxLSTM is passed through an elementwise $x \mapsto - \exp ( x )$ activation function and added to the decoder LSTM’s output. Similar to the mask in Section 5.1, the exponential activation function allows the syntaxLSTM to output high penalties to any tokens deemed syntactically incorrect.
186
+
187
+ The addition of the syntaxLSTM doesn’t necessitate any change to the training procedure as it is simply equivalent to a change of architecture. However, in the supervised setting, when we have access to syntactically correct programs, we have the possibility of adding an additional term to the loss (6) to prevent the model from masking valid programs:
188
+
189
+ $$
190
+ \mathcal { L } _ { \mathrm { s y n t a x } } = - \sum _ { i = 1 } \cdots N \sum _ { t = 1 } \cdots L _ { \varnothing } \left( \boldsymbol s _ { t } ^ { i } | \boldsymbol s _ { 1 } ^ { i } \cdots \boldsymbol s _ { t - 1 } ^ { i } \right) , \qquad \mathrm { w h e r e } \lambda _ { i } = [ \boldsymbol s _ { 1 } ^ { i } , \boldsymbol s _ { 2 } ^ { i } \cdots \boldsymbol s _ { L } ^ { i } ]
191
+ $$
192
+
193
+ This loss penalizes the syntaxLSTM for giving negative scores to each token belonging to a known valid program. We use the reference programs as example of valid programs when we perform supervised training.
194
+
195
+ # 6 EXPERIMENTS
196
+
197
+ # 6.1 THE DOMAIN: KAREL
198
+
199
+ The Karel programming language is an educational programming language (Pattis, 1981), used for example in Stanford CS introductory classes (cs1) or in the Hour of Code initiative (hoc). It features an agent inside a gridworld (See Figure 1), capable of moving (move, turn{Left,Right}), modifying world state ({pick,put}Marker), and querying the state of the nearby environment for its own markers (markerPresent, noMarkerPresent) or for natural obstacles (frontIsClear, leftIsClear, rightIsClear). Our goal is to learn to generate a program in the Karel DSL given a small set of input and output grids. The language supports for loops, while loops, and conditionals, but no variable assignment. Compared to the original Karel language, we only removed the possibility of defining subroutines. The specification for the DSL can be found in appendix B.
200
+
201
+ To evaluate our method, we follow the standard practice (Devlin et al., 2017b; Parisotto et al., 2017; Neelakantan et al., 2016; Balog et al., 2017) and use a synthetic dataset generated by randomly sampling programs from the DSL. We perform a few simple heuristic checks to ensure generated programs have observable effect on the world and prune out programs performing spurious actions (e.g. executing a turnLeft just after a turnRight for example). For each program, we a set of IO pairs are generated by sampling random input grids and executing the program on them to obtain the corresponding output grids. A large number of them are sampled and 6 are kept for each program, ensuring that all conditionals in a program are hit by at least one of the examples. The first 5 samples serve as the specification, and the sixth one is kept as held-out test pair. 5000 programs are not used for training, and get split out between a validation set and a test set.
202
+
203
+ We represent the input and output elements as grids where each cell in the grid is a vector with 16 channels, indicating the presence of elements (AgentFacingNorth, AgentFacingSouth, · · · , Obstacle, OneMarkerPresent, TwoMarkersPresent, · · · ). The input and output grids are initially passed through independent convolution layers, before being concatenated and passed through two convolutional residual blocks and a fully connected layer, mapping them to a final 512-dimensional representation. We run one decoder per IO pair and perform a maxpooling operation over the output of all the decoders, out of which we perform the prediction of the next token. Our models are implemented using the Pytorch framework (pyt). Code and data will be made available.
204
+
205
+ <table><tr><td></td><td colspan="2">Full Dataset</td><td colspan="2">Small Dataset</td></tr><tr><td>Top-1</td><td>Generalization</td><td>Exact Match</td><td>Generalization</td><td>Exact Match</td></tr><tr><td>MLE</td><td>71.91</td><td>39.94</td><td>12.58</td><td>8.93</td></tr><tr><td>RL</td><td>68.39</td><td>34.74</td><td>0</td><td>0</td></tr><tr><td>RL_beam</td><td>75.72</td><td>8.21</td><td>25.28</td><td>17.63</td></tr><tr><td>RL_beam_div</td><td>76.20</td><td>31.25</td><td>23.72</td><td>16.31</td></tr><tr><td>RL_beam_div_opt</td><td>77.12</td><td>32.17</td><td>24.24</td><td>16.63</td></tr></table>
206
+
207
+ Table 1: RL_beam optimization of program correctness results in consistent improvements in top-1 generalization accuracy over supervised learning MLE, even though the exact match of recovering the reference program drops. The improved objective function results in further improvements.
208
+
209
+ # 6.2 RESULTS
210
+
211
+ We trained a variety of models on the full Karel dataset containing 1-million examples as well as a reduced dataset containing only $1 0 , 0 0 0$ examples. In general, the small dataset serves to help understand the data efficiency of the program synthesis methods and is motivated by the expected difficulty of obtaining many labeled examples in real-world program synthesis domains.
212
+
213
+ The Karel DSL was previously used by Devlin et al. (2017a) to study the relative perfomances of a range of methods depending on the available amount of data. The task considered was however different as they attempted to perform program induction as opposed to program synthesis. Rather than predicting a program implementing the desired transformation, they simply output a specification of the changes that would result from applying the program so a direct number comparison wouldn’t be meaningful.
214
+
215
+ Models are grouped according to training objectives. As a baseline, we use MLE, which corresponds to the maximum likelihood objective (Eq.6), similar to the method proposed by Devlin et al. (2017b). Unless otherwise specified, the reward considered for our other methods is generalization: $+ 1$ if the program matches all samples, including the held out one and 0 otherwise. RL uses the expected reward objective (Eq.7), using REINFORCE to obtain a gradient estimate (Eq.8). RL_beam attempts to solve the proxy problem described by Equation (9) and RL_beam_div the richer loss function of Equation (10). RL_beam_div_opt also optimizes the loss of equation (10) but the reward additionally includes a term inversly proportional to the number of timesteps it takes for the program to finish executing. All RL models are initialized from pretrained supervised models.
216
+
217
+ Optimizing for correctness (RL): Results in Table 1 show that optimizing for the expected program correctness consistently provides improvements in top-1 generalization accuracy. Top-1 Generalization Accuracy (Eq. 4) denotes the accuracy of the most likely program synthesized by beam search decoding having the correct behaviour across all input-output examples. We didn’t perform any pruning of programs that were incorrect on the 5 specification examples. The improved performance of RL methods confirms our hypothesis that better loss functions can effectively combat the program aliasing problem.
218
+
219
+ On the full dataset, when optimizing for correctness, Exact Match Accuracy decreases, indicating that the RL models no longer prioritize generating programs that exactly match the references. On the small dataset, RL_beam methods improves both exact match accuracy and generalization.
220
+
221
+ Comparing RL_beam to standard RL, we note improvements across all levels of generalization. By better aligning the RL objective with the sampling that happens during beam search decoding, consistent improvements can be made in accuracy. Further improvements are made by encouraging diversity in the beam of solutions (RL_beam_div) and penalizing long running programs (RL_beam_div_opt).
222
+
223
+ In the settings where little training data is available, RL methods show more dramatic improvements over MLE, indicating that data efficiency of program synthesis methods can be greatly improved by using a small number of samples first for supervised training and again for Reinforcement Learning.
224
+
225
+ As a side note, we were unable to achieve high performance when training the RL methods from scratch. The necessity of extensive supervised pretraining to get benefits from Reinforcement
226
+
227
+ <table><tr><td>Top-1 Generalization</td><td>Full Dataset</td><td>Small Dataset</td></tr><tr><td>MLE</td><td>71.91</td><td>12.58</td></tr><tr><td>MLE_learned</td><td>69.37</td><td>17.02</td></tr><tr><td>MLE _handwritten</td><td>72.07</td><td>9.81</td></tr><tr><td>MLE _large</td><td>73.67</td><td>13.14</td></tr></table>
228
+
229
+ Table 2: Top-k accuracies: MLE shows greater relative accuracy increases as k increases than RL. Methods employing beam search and diversity objectives reduce this accuracy gap by encouraging diversity in the beam of partial programs.
230
+
231
+ <table><tr><td>Generalization</td><td>Top-1 Top-5 Top-50</td></tr><tr><td>MLE</td><td>71.91 79.56 86.37</td></tr><tr><td>RL_beam</td><td>75.72 79.29 83.49</td></tr><tr><td>RL_beam_div</td><td>76.20 82.09 85.86</td></tr><tr><td>RL_beam_div_opt</td><td>77.12 82.17 85.38</td></tr></table>
232
+
233
+ Table 3: Grammar prunes the space of possible programs: On the full dataset, handwritten syntax checking MLE_handwritten improves accuracy over no grammar MLE, although MLE_large shows that simply adding more parameters results in even greater gains. On the small dataset, learning the syntax MLE_learned outperforms handwritten grammar and larger models.
234
+
235
+ Learning fine-tuning is well-known in the Neural Machine Translation literature (Ranzato et al., 2016;
236
+ Wu et al., 2016; Wiseman and Rush, 2016; Bahdanau et al., 2017).
237
+
238
+ Table 2 examines the top-1, top-5, and top-50 generalization accuracy of supervised and RL models. RL_beam methods performs best for top-1 but their advantage drops for higher-rank accuracy. Inspection of generated programs shows that the top predictions all become diverse variations of the same program, up to addition/removal of no-operations (turnLeft followed by turnRight, full circle obtained by a series of four turnLeft). The RL_beam_div objective helps alleviate this effect as does RL_beam_div_opt, which penalizes redundant programs. This is important as in the task of Program Synthesis, we may not necessarily need to return the most likely output if it can be pruned by our specification.
239
+
240
+ Impact of syntax: We also compare models according to the use of syntax: MLE_handwritten denotes the use of a handwritten syntax checker (Sec 5.1), MLE_learned denotes a learned syntax (Sec 5.2), while no suffix denotes no syntax usage. Table 3 compares syntax models.
241
+
242
+ On the full dataset, leveraging the handwritten syntax leads to marginally better accuracies than learning the syntax or using no syntax. Given access to enough data, the network seems to be capable of learning to model the syntax using the sheer volume of training examples.
243
+
244
+ On the other hand, when the amount of training data is limited, learning the syntax produces significantly better performance. By incorporating syntactic structure in the model architecture and objective, more leverage is gained from small training data. Interestingly, the learned syntax model even outperforms the handwritten syntax model. We posit the syntaxLSTM is free to learn a richer syntax. For example, the syntaxLSTM could learn to model the distribution of programs and discourage the prediction of not only syntactically incorrect programs, but also the unlikely ones.
245
+
246
+ To control for the extra parameters introduced by the syntaxLSTM, we compare against MLE_large, which uses no syntax but features a larger decoder LSTM, resulting in the same number of parameters as MLE_learned. Results show that the larger number of parameters is not enough to explain the difference in performance, which again indicates the utility of jointly learning syntax.
247
+
248
+ Analysis of learned syntax: Section 5.2 claimed that by decomposing our models into two separate decoders, we could decompose the learning so that one decoder would specialize in picking the likely tokens given the IO pairs, while the other would enforce the grammar of the language. We now provide experimental evidence that this decomposition happens in practice.
249
+
250
+ Table 4 shows the percentage of syntactically correct programs among the most likely predictions of the ${ \bf M L E + }$ learned model trained on the full dataset. Both columns correspond to the same set of parameters but the second column doesn’t apply the syntaxLSTM’s mask to constrain the decoding process. The precipitous drop in syntax accuracy indicates the extent to which the program decoder has learned to rely on the syntaxLSTM to produce syntactically correct programs.
251
+
252
+ Figure 3 compares the syntax masks generated by the learned and handwritten syntax models while decoding Program A in Figure 1. (3a) shows output of the handwritten syntax checker; (3b) shows syntaxLSTM output. White cells indicates tokens that are labeled syntactically correct at each decoding step.
253
+
254
+ Figure 3c analyzes the difference between the handwritten and learned syntax masks. White indicates similar output, which occupies the majority of the visualization. Blue cells correspond to instances where the syntaxLSTM labeled a token correct when it actually was syntactically incorrect. This type of error can be recovered if the program decoder predicts those tokens as unlikely.
255
+
256
+ <table><tr><td>% Synctactically Correct</td><td>Joint Model</td><td>Without Learned Syntax</td></tr><tr><td>Amongst Top1</td><td>100%</td><td>0%</td></tr><tr><td>Amongst Top5</td><td>100 %</td><td>0%</td></tr><tr><td>Amongst Top50</td><td>100 %</td><td>0%</td></tr><tr><td>Amongst Top100</td><td>99.79 %</td><td>.04%</td></tr></table>
257
+
258
+ On the other hand, red cells indicate the syntaxLSTM predicted a valid token is syntactically incorrect. This type of error is more dangerous because the program decoder cannot recover the valid token once it is declared incorrect. The majority of red errors correspond to tokens which are rarely observed in the training dataset, indicating that the syntaxLSTM learns to model more than just syntax - it also captures the distribution over programs. Given a large enough dataset of real programs, the syntaxLSTM learns to consider non-sensical and unlikely programs as syntactically incorrect, ensuring that generated programs are both syntactically correct and likely.
259
+
260
+ ![](images/e35294641612e826d101b53ba678d4ef72143e4a9050fd2d1f76a85e7228fa3e.jpg)
261
+ Table 4: Importance of Syntax
262
+ Figure 3: Syntax Comparison
263
+
264
+ # 7 CONCLUSION
265
+
266
+ We presented two novel contributions to improve stateof-the-art neural program synthesis techniques. Our first contribution uses Reinforcement Learning to optimize for generating any consistent program, which we show helps in improving generalization accuracy of the learned programs for large training datasets. Our second contribution incorporates syntax checking as an additional conditioning mechanism for pruning the space of programs during decoding. We show that incorporating syntax leads to significant improvements with limited training datasets.
267
+
268
+ # REFERENCES
269
+
270
+ Stanford CS106A course page. https://see.stanford.edu/Course/CS106A. Accessed: 2017-05- 16.
271
+
272
+ Hour of Code. http://hourofcode.codehs.com/. Accessed: 2017-05-16.
273
+
274
+ Pytorch. http://pytorch.org/.
275
+
276
+ Saul Amarel. Representations and modeling in problems of program formation. Rutgers University. Livingstone College. Department of Computer Science, 1970.
277
+
278
+ Dzmitry Bahdanau, Philemon Brakel, Kelvin Xu, Anirudh Goyal, Ryan Lowe, Joelle Pineau, Aaron Courville, and Yoshua Bengio. An actor-critic algorithm for sequence prediction. ICLR, 2017.
279
+
280
+ Matej Balog, Alexander L Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. Deepcoder: Learning to write programs. In ICLR, 2017.
281
+
282
+ Rudy R Bunel, Alban Desmaison, Pawan K Mudigonda, Pushmeet Kohli, and Philip Torr. Adaptive neural compilation. In NIPS, 2016.
283
+
284
+ Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. In ICLR, 2017.
285
+
286
+ Jacob Devlin, Rudy R Bunel, Rishabh Singh, Matthew Hausknecht, and Pushmeet Kohli. Neural program meta-induction. 2017a.
287
+
288
+ Jacob Devlin, Jonathan Uesato, Surya Bhupatiraju, Rishabh Singh, Abdel-rahman Mohamed, and Pushmeet Kohli. Robustfill: Neural program learning under noisy I/O. In ICML, 2017b.
289
+
290
+ Alexander L Gaunt, Marc Brockschmidt, Rishabh Singh, Nate Kushman, Pushmeet Kohli, Jonathan Taylor, and Daniel Tarlow. Terpret: A probabilistic programming language for program induction. arXiv preprint arXiv:1608.04428, 2016.
291
+
292
+ Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013.
293
+
294
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
295
+
296
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwinska, ´ Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 2016.
297
+
298
+ Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In NIPS, 2015.
299
+
300
+ Sumit Gulwani, William R Harris, and Rishabh Singh. Spreadsheet data manipulation using examples. Communications of the ACM, 2012.
301
+
302
+ Kelvin Guu, Panupong Pasupat, Evan Zheran Liu, and Percy Liang. From language to programs: Bridging reinforcement learning and maximum marginal likelihood. In ACL, 2017.
303
+
304
+ Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997.
305
+
306
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Judy Hoffman, Fei-Fei Li, C. Lawrence Zitnick, and Ross B. Girshick. Inferring and executing programs for visual reasoning. 2017.
307
+
308
+ Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In NIPS, 2015.
309
+
310
+ Łukasz Kaiser and Ilya Sutskever. Neural gpus learn algorithms. In ICLR, 2016.
311
+
312
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
313
+
314
+ Karol Kurach, Marcin Andrychowicz, and Ilya Sutskever. Neural random-access machines. In ICLR, 2016.
315
+
316
+ Matt J Kusner, Brooks Paige, and José Miguel Hernández-Lobato. Grammar variational autoencoder. In ICML, 2017.
317
+
318
+ Chengtao Li, Daniel Tarlow, Alexander L. Gaunt, Marc Brockschmidt, and Nate Kushman. Neural program lattices. In ICLR, 2017.
319
+
320
+ Percy Liang, Michael I Jordan, and Dan Klein. Learning programs: A hierarchical bayesian approach. In ICML, 2010.
321
+
322
+ Henry Lieberman. Your wish is my command: Programming by example. 2001.
323
+
324
+ Stephen Muggleton. Inductive logic programming. New generation computing, 1991.
325
+
326
+ Stephen H Muggleton, Dianhuan Lin, Niels Pahlavi, and Alireza Tamaddoni-Nezhad. Meta-interpretive learning: application to grammatical inference. Machine learning, 2014.
327
+
328
+ Arvind Neelakantan, Quoc V Le, and Ilya Sutskever. Neural programmer: Inducing latent programs with gradient descent. In ICLR, 2016.
329
+
330
+ Emilio Parisotto, Abdelrahman Mohamed, Rishabh Singh, Lihong Li, Denny Zhou, and Pushmeet Kohli. Neuro-symbolic program synthesis. In ICLR, 2017.
331
+
332
+ Richard E Pattis. Karel the robot: a gentle introduction to the art of programming. John Wiley & Sons, Inc., 1981.
333
+
334
+ Marc’Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence level training with recurrent neural networks. In ICLR, 2016.
335
+
336
+ Scott Reed and Nando de Freitas. Neural programmer-interpreters. In ICLR, 2016.
337
+
338
+ Sebastian Riedel, Matko Bosnjak, and Tim Rocktäschel. Programming with a differentiable forth interpreter. In ICML, 2017.
339
+
340
+ Phillip D Summers. A methodology for lisp program construction from examples. Journal of the ACM, 1977.
341
+
342
+ Richard J Waldinger and Richard CT Lee. Prow: A step toward automatic program writing. In IJCAI, 1969.
343
+
344
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 1992.
345
+
346
+ Sam Wiseman and Alexander M Rush. Sequence-to-sequence learning as beam-search optimization. In EMNLP, 2016.
347
+
348
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
349
+
350
+ Pengcheng Yin and Graham Neubig. A syntactic neural model for general-purpose code generation. In ACL, 2017.
351
+
352
+ # A COMPUTING THE RICHER LOSS FUNCTION
353
+
354
+ In this section, we describe how the objective function of Equation (10) can be computed.
355
+
356
+ We have a distribution $q _ { \theta }$ over $S$ programs, as obtained by performing a beam search over $p _ { \theta }$ and renormalizing. We are going to get $C$ independent samples from this distribution and obtain a reward corresponding to the best performing of all of them.
357
+
358
+ In the case where the reward function $R _ { i } ( \lambda _ { r } )$ is built on a boolean property, such as for example “correctness of the generated program”, Equation (10) can be simplified. As $R _ { i } ( \lambda _ { r } )$ can only take the values 0 or 1, the term $\operatorname* { m a x } _ { j \in 1 \ldots C } R _ { i } ( \lambda _ { j } )$ is going to be equal to 0 only if all of the $C$ sampled programs give a reward of zero. For each sample, there is a probability of $\begin{array} { r } { q _ { \mathrm { i n c o r r e c t } } = \sum _ { \lambda _ { r } \in { \bf B S } ( p _ { \theta } , S ) } [ R _ { i } ( \bar { \lambda _ { r } } ) = = 0 ] q _ { \theta } ( \lambda _ { r } \mid \{ I O _ { i } ^ { k } \} _ { k = 1 \dots K } ) } \end{array}$ of samput of the g a prograsamples is ewards. From $C$ $q _ { \mathrm { i n c o r r e c t } } ^ { C }$ this, we can derive the form of Equation (11). Note that this can be computed without any additional sampling steps as we have a close form solution for this expectation.
359
+
360
+ In the general case, a similar derivation can be obtained. Assume that the programs outputted by the beam search have associated rewards $R _ { 0 } , R _ { 1 } , . . . , R _ { S }$ and assume without loss of generality that $R _ { 0 } < R _ { 1 } < . . < R _ { S }$ . The probability of sampling a program with a reward smaller than $R _ { i }$ is $\begin{array} { r } { q _ { \le R _ { i } } = \sum _ { \lambda _ { r } \in \mathrm { B S } ( p _ { \theta } , S ) } [ R _ { i } ( \lambda _ { r } ) \le R _ { i } ] \stackrel { \cdot } { q _ { \theta } } ( \lambda _ { r } \mid \{ { \hat { I } } { \hat { O } } _ { i } ^ { k } \} _ { k = 1 \ldots K } ^ { - } ) } \end{array}$ so the probability of obtaining a final reward of less than $R _ { i }$ when sampling $\textrm { C }$ samples is $q _ { \leq { R _ { i } } } ^ { C }$ . As a result, the probability of obtaining a reward of exactly $R _ { i }$ is $\left( q _ { \leq R _ { i } } ^ { C } - q _ { \leq R _ { i - 1 } } ^ { C } \right)$ . Based on this, it is easy to evaluate (and differentiate) the loss function described by Equation (10).
361
+
362
+ # B KAREL LANGAGE SPECIFICATION
363
+
364
+ $$
365
+ \begin{array} { r c l } { \operatorname { P r o g } p } & { : = } & { \det \operatorname { r u n } ( ) : s } \\ { \operatorname { S t m } \textstyle * } & { : = } & { \textstyle \operatorname { w h i l } \textstyle \mathrm { 1 } \cdot \boldsymbol { \mathrm { s } } \left| \operatorname { r e p e a t } ( r ) : s \right| \textstyle \mathrm { s } _ { 1 } ; \boldsymbol { s } _ { 2 } \left| \alpha \right. } \\ & { \big | } & { \big | \big | \big | \big | \big | \big | \operatorname { s } : \big | \operatorname { i f e l s e } ( b ) : \boldsymbol { s } _ { 1 } \big . \mathrm { e l s e } : \boldsymbol { s } _ { 2 } } \\ { \operatorname { C o n d } b } & { : = } & { \textstyle \operatorname { f r o n t } \operatorname { I s C l e a r } ( ) \big | \big | \operatorname { l e f t } \operatorname { I s C l e a r } ( ) \big | \big | \operatorname { r i g h t } \operatorname { I s C l e a r } ( ) } \\ & { \big | } & { \textstyle \operatorname { m a r k e r s p r e s e n t } ( ) \big | \operatorname { n o M a r k e r s P r e s e n t } ( ) \big | \operatorname { n o t } b } \\ { \operatorname { A c t i o n } \big . } & { : = } & { \operatorname { m o v e } \big ( ) \big | \operatorname { t u r n R i g h t } \big ( ) \big | \operatorname { t u r n L e f t } ( ) } \\ & { \big | } & { \big | \operatorname { p i c k M a r k e r } ( ) \big | \operatorname { p u t M a r k e r } ( ) } \\ { \operatorname { C s t e r } } & { : = } & { 0 \big | 1 \big | \operatorname { 1 } \dots | \operatorname { l 9 } } \end{array}
366
+ $$
367
+
368
+ Figure 4: The Domain-specific language for Karel programs.
369
+
370
+ # C EXPERIMENTS HYPERPARAMETERS
371
+
372
+ The state of the grid word are represented as a $1 6 \times 1 8 \times 1 8$ tensor. For each cell of the grid, the 16-dimensional vector corresponds to the feature indicated in Table 5
373
+
374
+ The decoders are two-layer LSTM with a hidden size of 256. Tokens of the DSL are embedded to a 256 dimensional vector. The input of the LSTM is therefore of dimension 768 (256 dimensional of the token $+ 5 1 2$ dimensional of the IO pair embedding). The LSTM used to model the syntax is similarly sized but doesn’t take the embedding of the IO pairs as input so its input size is only 256.
375
+
376
+ One decoder LSTM is run on the embedding of each IO pair. The topmost activation are passed through a MaxPooling operation to obtain a 256 dimensional vector representing all pairs. This is passed through a linear layer to obtain a score for each of the 52 possible tokens. We add the output of the model and of the eventual syntax model, whether learned or handwritten and pass it through a SoftMax layer to obtain a probability distribution over the next token.
377
+
378
+ All training is performed using the Adam optimizer, with a learning rate of $1 0 ^ { - } 4$ . Supervised training used a batch size of 128 and RL methods used a batch size of 16. We used 100 rollouts per samples for the Reinforce method and a beam size of 64 for methods based on the beam search. The value of C used for the methods computing a loss on bags of programs was 5.
379
+
380
+ Table 5: Representation of the grid
381
+
382
+ <table><tr><td rowspan=1 colspan=1>Hero facingNorth</td></tr><tr><td rowspan=1 colspan=1>Hero facingSouth</td></tr><tr><td rowspan=1 colspan=1>Hero facing West</td></tr><tr><td rowspan=1 colspan=1>Hero facing East</td></tr><tr><td rowspan=1 colspan=1>Obstacle</td></tr><tr><td rowspan=1 colspan=1>Grid boundary</td></tr><tr><td rowspan=1 colspan=1>1 marker</td></tr><tr><td rowspan=1 colspan=1>2 marker</td></tr><tr><td rowspan=1 colspan=1>3 marker</td></tr><tr><td rowspan=1 colspan=1>4 marker</td></tr><tr><td rowspan=1 colspan=1>5marker</td></tr><tr><td rowspan=1 colspan=1>6 marker</td></tr><tr><td rowspan=1 colspan=1>7 marker</td></tr><tr><td rowspan=1 colspan=1>8 marker</td></tr><tr><td rowspan=1 colspan=1>9 marker</td></tr><tr><td rowspan=1 colspan=1>10 marker</td></tr></table>
383
+
384
+ Table 6: Encoding of the Input/Output Pairs
385
+
386
+ <table><tr><td rowspan="2">Grid Embedding</td><td>Input Grid Conv2D,kernel size= 3, padding=1,16 →32</td><td>Output Grid Conv2D,kernel size=3,padding=1,16-&gt;32</td></tr><tr><td>ReLU</td><td>ReLU Conv2D,kernel size=3,padding1,64 → 64</td></tr><tr><td>Residual Block 1</td><td colspan="2">ReLU Conv2D, kernel size = 3, padding 1, 64 → 64 ReLU Conv2D,kernel size = 3,padding1,64 →→ 64 ReLU</td></tr><tr><td rowspan="2">Residual Block 1</td><td>Conv2D,kernel size =3,padding1, 64 -→ 64 Conv2D,kernel size = 3, padding 1, 64 -→ 64</td><td>ReLU</td></tr><tr><td>Conv2D,kernel size = 3, padding 1, 64 -→ 64</td><td>ReLU</td></tr><tr><td>Fully Connected</td><td colspan="2">ReLU Linear,20736→512</td></tr></table>
parse/train/H1Xw62kRZ/H1Xw62kRZ_content_list.json ADDED
@@ -0,0 +1,2027 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEVERAGING GRAMMAR AND REINFORCEMENT LEARNING FOR NEURAL PROGRAM SYNTHESIS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Rudy Bunel∗ University of Oxford rudy@robots.ox.ac.uk ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 382,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Matthew Hausknecht \nMicrosoft Research \nmatthew.hausknecht@microsoft.com \nJacob Devlin∗ \nGoogle \njacobdevlin@google.com ",
28
+ "bbox": [
29
+ 498,
30
+ 170,
31
+ 813,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 184,
41
+ 233,
42
+ 401,
43
+ 275
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Rishabh Singh Microsoft Research risin@microsoft.com ",
50
+ "bbox": [
51
+ 418,
52
+ 233,
53
+ 607,
54
+ 275
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Pushmeet Kohli∗ \nDeepmind \npushmeet@google.com ",
61
+ "bbox": [
62
+ 624,
63
+ 233,
64
+ 813,
65
+ 275
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "ABSTRACT ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 454,
75
+ 313,
76
+ 544,
77
+ 327
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Program synthesis is the task of automatically generating a program consistent with a specification. Recent years have seen proposal of a number of neural approaches for program synthesis, many of which adopt a sequence generation paradigm similar to neural machine translation, in which sequence-to-sequence models are trained to maximize the likelihood of known reference programs. While achieving impressive results, this strategy has two key limitations. First, it ignores Program Aliasing: the fact that many different programs may satisfy a given specification (especially with incomplete specifications such as a few input-output examples). By maximizing the likelihood of only a single reference program, it penalizes many semantically correct programs, which can adversely affect the synthesizer performance. Second, this strategy overlooks the fact that programs have a strict syntax that can be efficiently checked. To address the first limitation, we perform reinforcement learning on top of a supervised model with an objective that explicitly maximizes the likelihood of generating semantically correct programs. For addressing the second limitation, we introduce a training procedure that directly maximizes the probability of generating syntactically correct programs that fulfill the specification. We show that our contributions lead to improved accuracy of the models, especially in cases where the training data is limited. ",
84
+ "bbox": [
85
+ 233,
86
+ 343,
87
+ 766,
88
+ 593
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 INTRODUCTION ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 176,
98
+ 614,
99
+ 336,
100
+ 631
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The task of program synthesis is to automatically generate a program that is consistent with a specification such as a set of input-output examples, and has been studied since the early days of Artificial Intelligence (Waldinger and Lee, 1969). There has been a lot of recent progress made on neural program induction, where novel neural architectures inspired from computation modules such as RAM, stack, CPU, turing machines, and GPU (Graves et al., 2014; Joulin and Mikolov, 2015; Kurach et al., 2016; Graves et al., 2016; Reed and de Freitas, 2016; Kaiser and Sutskever, 2016) have been proposed to train these architectures in an end-to-end fashion to mimic the behavior of the desired program. While these approaches have achieved impressive results, they do not return explicit interpretable programs, tend not to generalize well on inputs of arbitrary length, and require a lot of examples and computation for learning each program. To mitigate some of these limitations, neural program synthesis approaches (Johnson et al., 2017; Parisotto et al., 2017; Devlin et al., 2017b) have been recently proposed that learn explicit programs in a Domain-specific language (DSL) from as few as five input-output examples. These approaches, instead of using a large number of input-output examples to learn a single program, learn a large number of different programs, each from just a few input-output examples. During training, the correct program is provided as reference, but at test time, the learnt model generates the program from only the input-output examples. ",
107
+ "bbox": [
108
+ 174,
109
+ 643,
110
+ 825,
111
+ 866
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "While neural program synthesis techniques improve over program induction techniques in certain domains, they suffer from two key limitations. First, these approaches use supervised learning with reference programs and suffer from the problem of Program Aliasing: For a small number of input-output examples, there can be many programs that correctly transform inputs to outputs. The problem is the discrepancy between the single supervised reference program and the multitude of correct programs. Figure 1 shows an example of this: if maximizing the probability of ground truth program, predicting Program B would be assigned a high loss even though the two programs are semantically equivalent for the input-output example. Maximum likelihood training forces the model to learn to predict ground truth programs, which is different from the true objective of program synthesis: predicting any consistent program. To address this problem, we alter the optimization objective: instead of maximum likelihood, we use policy gradient reinforcement learning to directly encourage generation of any program that is consistent with the given examples. ",
118
+ "bbox": [
119
+ 176,
120
+ 872,
121
+ 823,
122
+ 900
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/da75918d710670223bada7e9820b7a9a2b98c2401abdf44c0cfab4f8b4c145dc.jpg",
129
+ "image_caption": [
130
+ "Figure 1: Program Aliasing is one difficulty of program synthesis: For the input-output specification given in (1a), both programs are semantically correct. However, supervised training would penalize the prediction of Program B, if A is the ground truth. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 173,
135
+ 99,
136
+ 823,
137
+ 210
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 174,
146
+ 292,
147
+ 825,
148
+ 433
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "The second limitation of neural program synthesis techniques based on sequence generation paradigm (Devlin et al., 2017b) is that they often overlook the fact that programs have a strict syntax, which can be checked efficiently. Similarly to the work of Parisotto et al. (2017), we explore a method for leveraging the syntax of the programming language in order to aggressively prune the exponentially large search space of possible programs. In particular, not all sequences of tokens are valid programs and syntactically incorrect programs can be efficiently ignored both during training and at test time. A syntax checker is an additional form of supervision that may not always be present. To address this limitation, we introduce a neural architecture that retains the benefits of aggressive syntax pruning, even without assuming access to the definition of the grammar made in previous work (Parisotto et al., 2017). This model is jointly conditioned on syntactic and program correctness, and can implicitly learn the syntax of the language while training. ",
155
+ "bbox": [
156
+ 174,
157
+ 439,
158
+ 825,
159
+ 592
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "We demonstrate the efficacy of our approach by developing a neural program synthesis system for the Karel programming language (Pattis, 1981), an educational programming language, consiting of control flow constructs such as loops and conditionals, making it more complex than the domains tackled by previous neural program synthesis works. ",
166
+ "bbox": [
167
+ 174,
168
+ 599,
169
+ 825,
170
+ 655
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "This paper makes the following key contributions: ",
177
+ "bbox": [
178
+ 174,
179
+ 661,
180
+ 501,
181
+ 676
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "• We show that Reinforcement Learning can directly optimize for generating any consistent program and improves performance compared to pure supervised learning. • We introduce a method for pruning the space of possible programs using a syntax checker and show that explicit syntax checking helps generate better programs. In the absence of a syntax checker, we introduce a model that jointly learns syntax and the production of correct programs. We demonstrate this model improves performance in instances with limited training data. ",
188
+ "bbox": [
189
+ 215,
190
+ 688,
191
+ 825,
192
+ 797
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "2 RELATED WORK ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 174,
202
+ 811,
203
+ 341,
204
+ 828
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Program synthesis is one of the fundamental problems in Artificial Intelligence. To the best of our knowledge, it can be traced back to the work of Waldinger and Lee (1969) where a theorem prover was used to construct LISP programs based on a formal specification of the input-output relation. As formal specification is often as complex as writing the original program, many techniques were developed to achieve the same goal with simpler partial specifications in the form of input-output (IO) examples (Amarel, 1970; Summers, 1977). Rule-based synthesis approaches have recently been successful in delivering on the promise of Programming By Example (Lieberman, 2001), the most widely known example being the FlashFill system (Gulwani et al., 2012) in Excel. However, such systems are extremely complicated to extend and need significant development time from domain experts to provide the pruning rules for efficient search. ",
211
+ "bbox": [
212
+ 173,
213
+ 839,
214
+ 825,
215
+ 924
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "",
222
+ "bbox": [
223
+ 174,
224
+ 103,
225
+ 823,
226
+ 159
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "As a result, the use of Machine Learning methods have been proposed, based on Bayesian probabilistic models (Liang et al., 2010) or Inductive Logic programming (Muggleton, 1991; Muggleton et al., 2014) to automatically generate programs based on examples. Recently, inspired by the success of Neural Networks in other applications such as vision (Krizhevsky et al., 2012) or speech recognition (Graves et al., 2013) differentiable controllers were made to learn the behaviour of programs by using gradient descent over differentiable version of traditional programming concepts such as memory addressing (Graves et al., 2014), manipulating stacks (Joulin and Mikolov, 2015; Grefenstette et al., 2015), register machines (Kurach et al., 2016), and data manipulation (Neelakantan et al., 2016). These approaches to program induction however tend to struggle with generalization, especially when presented with inputs of a different dimension than the one they were trained with and require a very large amount of training data. Some exceptions to this include Neural Programmer Interpreters (Reed and de Freitas, 2016) and its extensions (Li et al., 2017; Cai et al., 2017) that learn from program traces rather than only examples. However, they still learn a different model for each program and are computationally expensive, unlike our system that uses a single model for learning a large number of programs. ",
233
+ "bbox": [
234
+ 174,
235
+ 166,
236
+ 825,
237
+ 375
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "A series of recent works aim to infer explicit program source code with the assumption that code structure provides an inductive bias for better generalization. In particular, explicitly modeling control flow statements such as conditionals and loops can often lead to programs capable of generalizing, regardless of input size (Gaunt et al., 2016; Bunel et al., 2016; Riedel et al., 2017). One remaining drawback of these approaches is the need to restart learning from scratch for each new program. Thus they are largely unsuited for the situation of synthesizing a new program on-the-fly from very few examples. The latest developments use large datasets of artificially generated programs and learn to map embeddings of IO examples to information about the programs to generate. Balog et al. (2017) produce scores over attributes, to be used as heuristics to speed up search-based techniques. Parisotto et al. (2017) use their dataset to learn probability over the expansion rules of a predefined grammar, while (Devlin et al., 2017b) directly predict the source code of the programs. These last two methods use supervised training to maximize the likelihood of a single reference program, while we directly optimize for the generation of any consistent program. ",
244
+ "bbox": [
245
+ 174,
246
+ 382,
247
+ 825,
248
+ 563
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Our approach to optimize program correctness is similar in spirit to advances in Neural Machine Translation (Wu et al., 2016; Ranzato et al., 2016) that leverage reinforcement learning to optimize directly for evaluation metrics. Taking advantage of the fact that programs can be syntactically checked and unit tested against the specification examples, we show how to improve on those REINFORCE (Williams, 1992) based methods. Recently, Guu et al. (2017) proposed a method similar to ours based on Maximum Marginal Likelihood to generate programs based on a description in natural language. From an application point of view, our target domain is more complex as our DSL includes control flow operations such as conditionals and loops. Moreover, natural language utterances fully describe the steps that the program needs to take, while learning from IO examples requires planning over potentially long executions. Their approach is more akin to inferring a formal specification based on a natural language description, as opposed to our generation of imperative programs. ",
255
+ "bbox": [
256
+ 174,
257
+ 569,
258
+ 825,
259
+ 736
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Incorporating knowledge of the grammar of the target domain to enforce syntactical correctness has already proven useful to model arithmetic expressions, molecules (Kusner et al., 2017), and programs (Parisotto et al., 2017; Yin and Neubig, 2017). These approaches define the model over the production rules of the grammar; we instead operate directly over the terminals of the grammar. This allows us to learn the grammar jointly with the model in the case where no formal grammar specification is available. Our approach is extremely general and can be applied to the very recently proposed methods for inferring and executing programs for visual reasoning (Johnson et al., 2017) that to the best of our knowledge does not directly explictly encourage grammar consistency of the resulting program. ",
266
+ "bbox": [
267
+ 174,
268
+ 742,
269
+ 825,
270
+ 867
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "3 PROBLEM OVERVIEW ",
277
+ "text_level": 1,
278
+ "bbox": [
279
+ 176,
280
+ 102,
281
+ 382,
282
+ 117
283
+ ],
284
+ "page_idx": 3
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Before describing our proposed methods, we establish the necessary notation, present the problem setting and describe the general paradigm of our approach. ",
289
+ "bbox": [
290
+ 173,
291
+ 131,
292
+ 823,
293
+ 159
294
+ ],
295
+ "page_idx": 3
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "3.1 PROGRAM SYNTHESIS FORMULATION ",
300
+ "text_level": 1,
301
+ "bbox": [
302
+ 176,
303
+ 170,
304
+ 475,
305
+ 185
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "To avoid confusion with probabilities, we will use the letter $\\lambda$ to denote programs. $I$ and $O$ will be used to denote respectively input states and output states and we will use the shortcut $I O$ to denote a pair of corresponding input/output examples. A state constitutes what the programs are going to be operating on, depending on the application domain. In FlashFill-type applications (Parisotto et al., 2017; Devlin et al., 2017b), Input and Output states would be strings of characters, while in our Karel environment, states are grids describing the presence of objects. If we were to apply our method to actual programming languages, states would represent the content of the machine’s registers and the memory. ",
312
+ "bbox": [
313
+ 173,
314
+ 196,
315
+ 826,
316
+ 309
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "At training time, we assume to have access to $N$ training samples, each training sample consisting of a set of $K$ Input/Output states and a program implementing the mapping correctly: ",
323
+ "bbox": [
324
+ 171,
325
+ 315,
326
+ 825,
327
+ 345
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "equation",
333
+ "img_path": "images/cd6dbe8dc5943ef92139ea016e3daa79daf06131f034eb971c3ce242fca2b469.jpg",
334
+ "text": "$$\n{ \\mathcal { D } } = \\left\\{ { \\left( \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } , \\ \\lambda _ { i } \\right) } \\right\\} \\qquad { \\mathrm { s u c h ~ t h a t : } } \\quad \\lambda _ { i } ( I _ { i } ^ { k } ) = O _ { i } ^ { k } \\quad \\forall i \\in 1 . . N , \\quad \\forall k \\in 1 . . K\n$$",
335
+ "text_format": "latex",
336
+ "bbox": [
337
+ 186,
338
+ 347,
339
+ 792,
340
+ 392
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "where $\\lambda _ { i } ( I _ { i } ^ { k } )$ denotes the resulting state of applying the program $\\lambda _ { i }$ to the input state $I _ { i } ^ { k }$ . Our goal is to learn a synthesizer $\\sigma$ that, given a set of input/output examples produces a program: ",
347
+ "bbox": [
348
+ 174,
349
+ 395,
350
+ 826,
351
+ 422
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "equation",
357
+ "img_path": "images/3ff478f222fd1d7d34c45916a21847cd5616e12664375c90c4db0517bc5123b1.jpg",
358
+ "text": "$$\n\\sigma : ~ \\left\\{ { I O } ^ { k } \\right\\} _ { k = 1 \\dots K } ~ \\longrightarrow ~ { \\hat { \\lambda } }\n$$",
359
+ "text_format": "latex",
360
+ "bbox": [
361
+ 392,
362
+ 426,
363
+ 607,
364
+ 448
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "We evaluate the programs on a set of test cases for which we have both specification examples and held-out examples: ",
371
+ "bbox": [
372
+ 176,
373
+ 449,
374
+ 828,
375
+ 477
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "equation",
381
+ "img_path": "images/3b5652d1eeb277530083648635a050facf7ce3a7177a248b05a231357bac3ab3.jpg",
382
+ "text": "$$\n{ \\mathcal D } _ { \\mathrm { t e s t } } = \\left\\{ \\left( \\left\\{ I O _ { j } ^ { k _ { \\mathrm { s p e c } } } \\right\\} _ { k _ { \\mathrm { s p e c } } = 1 \\dots K } , \\quad \\left\\{ I O _ { j } ^ { k _ { \\mathrm { t e s t } } } \\right\\} _ { k _ { \\mathrm { t e s t } } = K + 1 \\dots K ^ { \\prime } } \\right) \\right\\} _ { j = 1 \\dots N _ { \\mathrm { t e s t } } } ,\n$$",
383
+ "text_format": "latex",
384
+ "bbox": [
385
+ 266,
386
+ 479,
387
+ 732,
388
+ 525
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "At test time, we evaluate the performance of our learned synthesizer by generating, for each sample in the test set, a program $\\hat { \\lambda _ { j } }$ . The metric we care about is Generalization: ",
395
+ "bbox": [
396
+ 171,
397
+ 526,
398
+ 825,
399
+ 558
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "equation",
405
+ "img_path": "images/3da2f7a805a4fb5e58e3a035ff5861f516918ecc8ff2d026322582289706b0f4.jpg",
406
+ "text": "$$\n\\{ \\begin{array} { l l } { j \\in \\{ 1 . . N _ { \\mathrm { t e x } } \\} \\ \\mathrm { s u c h } \\mathrm { t h a t } \\ \\hat { \\lambda _ { j } } ( I _ { j } ^ { k } ) = O _ { j } ^ { k } } & { \\forall k \\in \\{ 1 . . K ^ { \\prime } \\} \\ \\} \\mathrm { w h e r e } \\ \\ \\hat { \\lambda _ { j } } = \\sigma ( \\{ I O _ { j } ^ { k _ { \\mathrm { s p e c } } } \\} _ { k _ { \\mathrm { s p e c } } = 1 . . K } ) . } \\end{array} \n$$",
407
+ "text_format": "latex",
408
+ "bbox": [
409
+ 184,
410
+ 560,
411
+ 794,
412
+ 593
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "3.2 NEURAL PROGRAM SYNTHESIS ARCHITECTURE ",
419
+ "text_level": 1,
420
+ "bbox": [
421
+ 174,
422
+ 614,
423
+ 549,
424
+ 630
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Similar to Devlin et al. (2017b) we use a sequential LSTM-based (Hochreiter and Schmidhuber, 1997) language model, conditioned on an embedding of the input-output pairs. Each pair is encoded independently by a convolutional neural network (CNN) to generate a joint embedding. A succinct description of the architecture can be found in section 6.1 and the exact dimensions are available in the supplementary materials. ",
431
+ "bbox": [
432
+ 173,
433
+ 641,
434
+ 825,
435
+ 712
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Each program is represented by a sequence of tokens $\\lambda = [ s _ { 1 } , s _ { 2 } , . . . , s _ { L } ]$ where each token comes from an alphabet $\\Sigma$ . We model the program one token at a time using an LSTM. At each timestep, the input consists of the concatenation of the embedding of the IO pair and of the last predicted token. One such decoder LSTM is run for each of the IO pairs, all using the same weights. The probability of the next token is defined as the Softmax of a linear layer over the max-pooled hidden state of all the decoder LSTMs. A schema representing this architecture can be seen in Figure 2. ",
442
+ "bbox": [
443
+ 173,
444
+ 718,
445
+ 826,
446
+ 803
447
+ ],
448
+ "page_idx": 3
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "The form of the model that we are learning is: ",
453
+ "bbox": [
454
+ 173,
455
+ 808,
456
+ 475,
457
+ 823
458
+ ],
459
+ "page_idx": 3
460
+ },
461
+ {
462
+ "type": "equation",
463
+ "img_path": "images/9d60e9c51e9eef30e20c0c9eb73f9e7c7df87439ae35f4cbe0aa4b7ecc1f0cb2.jpg",
464
+ "text": "$$\np _ { \\theta } ( \\lambda _ { i } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } ) = \\prod _ { t = 1 } ^ { L _ { i } } p _ { \\theta } ( s _ { t } \\mid s _ { 1 } , . . . , s _ { t - 1 } , \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . . K } )\n$$",
465
+ "text_format": "latex",
466
+ "bbox": [
467
+ 297,
468
+ 827,
469
+ 700,
470
+ 864
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "At test time, the most likely programs are obtained by running a beam search. One of the advantages of program synthesis is the ability to execute hypothesized programs. Through execution, we remove syntactically incorrect programs and programs that are not consistent with the observed examples. Among the remaining programs, we return the most likely according to the model. ",
477
+ "bbox": [
478
+ 174,
479
+ 867,
480
+ 825,
481
+ 924
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "image",
487
+ "img_path": "images/2a0a88c147a38409c6453040414a01e83b66bff4e8779b4a6684ec70c945ff06.jpg",
488
+ "image_caption": [
489
+ "Figure 2: Architecture of our model. Each pair of Input-Output is embedded jointly by a CNN. One decoder LSTM is run for each example, getting fed in a concatenation of the previous token and the IO pair embedding (constant across timestep). Results of all the decoders are maxpooled and the prediction is modulated by the mask generated by the syntax model. The probability over the next token is then obtained by a Softmax transformation. "
490
+ ],
491
+ "image_footnote": [],
492
+ "bbox": [
493
+ 181,
494
+ 98,
495
+ 821,
496
+ 325
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "4 OBJECTIVE FUNCTIONS ",
503
+ "text_level": 1,
504
+ "bbox": [
505
+ 176,
506
+ 433,
507
+ 405,
508
+ 449
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "4.1 MAXIMUM LIKELIHOOD OPTIMIZATION ",
515
+ "text_level": 1,
516
+ "bbox": [
517
+ 174,
518
+ 463,
519
+ 490,
520
+ 478
521
+ ],
522
+ "page_idx": 4
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "To estimate the parameters $\\theta$ of our model, the default solution is to perform supervised training, framing the problem as Maximum Likelihood estimation. Devlin et al. (2017b) follow this approach and use stochastic gradient descent to solve: ",
527
+ "bbox": [
528
+ 176,
529
+ 489,
530
+ 825,
531
+ 532
532
+ ],
533
+ "page_idx": 4
534
+ },
535
+ {
536
+ "type": "equation",
537
+ "img_path": "images/fb5f8db4bfd54b81c7749e7704742c33680b2a10550cb81ba7fe098c864166ac.jpg",
538
+ "text": "$$\n\\theta ^ { \\star } = \\operatorname * { a r g m a x } _ { \\theta } \\prod _ { i = 1 . . N } p _ { \\theta } ( \\lambda _ { i } \\mid \\{ I O _ { i } ^ { i } \\} _ { i = 1 . . K } ) = \\operatorname * { a r g m a x } _ { \\theta } \\sum _ { i = 1 . . N } \\log \\left( p _ { \\theta } ( \\lambda _ { i } \\mid \\{ I O _ { i } ^ { k } \\} _ { k = 1 . . K } ) \\right)\n$$",
539
+ "text_format": "latex",
540
+ "bbox": [
541
+ 191,
542
+ 539,
543
+ 785,
544
+ 573
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "However, this training objective exhibits several drawbacks. First, at training time, the model is only exposed to the training data distribution, while at test time, it is fed back the token from its own previous predictions. This discrepancy in distribution of the inputs is well known in Natural Language Processing under the name of exposure bias (Ranzato et al., 2016). ",
551
+ "bbox": [
552
+ 174,
553
+ 585,
554
+ 825,
555
+ 642
556
+ ],
557
+ "page_idx": 4
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "Moreover, this loss does not represent the true objective of program synthesis. In practice, any equivalent program should be as valid a prediction as the reference one. This property, that we call program aliasing, is not taken into account by the MLE training. Ideally, we would like the model to learn to reason about the necessary steps needed to map the input to the output. As a result, the loss shouldn’t penalize correct programs, even if they do not correspond to the ground truth. ",
562
+ "bbox": [
563
+ 173,
564
+ 647,
565
+ 825,
566
+ 718
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "4.2 OPTIMIZING EXPECTED CORRECTNESS ",
573
+ "text_level": 1,
574
+ "bbox": [
575
+ 176,
576
+ 729,
577
+ 488,
578
+ 744
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "The first modification that we propose is to change the target objective to bring it more in line with the goal of program synthesis. We replace the optimization problem of (6) by ",
585
+ "bbox": [
586
+ 173,
587
+ 757,
588
+ 826,
589
+ 786
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "img_path": "images/d3eaa9ce4c5abc218dcadf8832559ef89968664433439ae37ae9de8a3a375401.jpg",
596
+ "text": "$$\n\\theta ^ { \\star } = { \\underset { \\theta } { \\operatorname { a r g m a x } } } \\ \\mathcal { L } _ { R } ( \\theta ) , \\qquad { \\mathrm { w h e r e ~ } } \\mathcal { L } _ { R } ( \\theta ) = \\sum _ { i . . N } \\left( \\sum _ { \\lambda } p \\theta ( \\lambda \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } ) \\ R _ { i } ( \\lambda ) \\right) ,\n$$",
597
+ "text_format": "latex",
598
+ "bbox": [
599
+ 215,
600
+ 791,
601
+ 779,
602
+ 834
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "where $R _ { i } ( \\lambda )$ is a reward function designed to encode the quality of the sampled programs. Note that this formulation is extremely generic and would allow to represent a wide range of different objective functions. If we assume that we have access to a simulator to run our programs, we can design $R _ { i }$ so as to optimize for generalization on held-out examples, preventing the model to overfit on its inputs. Additional property such as program conciseness, or runtime efficiency could also be encoded into the reward. ",
609
+ "bbox": [
610
+ 173,
611
+ 839,
612
+ 826,
613
+ 924
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "image",
619
+ "img_path": "images/6162ab9de360efe363cf765e8ca2dcf1b6d329f7160feb3a3ba2ed750da8c054.jpg",
620
+ "image_caption": [
621
+ "Figure 3: Approximation using a beamsearch. All possibles next tokens are tried for each candidates, the $S$ (here 3) most likely according to $p _ { \\theta }$ are kept. When an End-Of-Sequence token (green) is reached, the candidate is held out. At the end, the most likely complete sequences are used to construct an approximate distribution, through rescaling. "
622
+ ],
623
+ "image_footnote": [],
624
+ "bbox": [
625
+ 196,
626
+ 101,
627
+ 815,
628
+ 183
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "However, this expressiveness comes at a cost: the inner sum in (7) is over all possible programs and therefore is not tractable to compute. The standard method consists of approximating the objective by defining a Monte Carlo estimate of the expected reward, using $S$ samples from the model. To perform optimization, an estimator of the gradient of the expected reward is built based on the REINFORCE trick (Williams, 1992). ",
635
+ "bbox": [
636
+ 173,
637
+ 275,
638
+ 826,
639
+ 345
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "equation",
645
+ "img_path": "images/fba3acc0737630a8e51c5c1575c4e08b3d707b7475992b047997e739ce0eb0e8.jpg",
646
+ "text": "$$\n\\begin{array} { r l r } { { \\mathcal { L } _ { R } ( \\theta ) \\approx \\sum _ { i = 1 . . N } \\sum _ { r = 1 } ^ { S } \\frac { 1 } { S } R _ { i } ( \\lambda _ { r } ) , } } & { \\mathrm { ~ w h e r e ~ } \\lambda _ { r } \\sim p _ { \\theta } ( \\cdot \\vert \\{ I O _ { i } ^ { k } \\} _ { k = 1 . . K } ) } \\\\ & { } & { \\nabla _ { \\theta } \\mathcal { L } _ { R } ( \\theta ) \\approx \\sum _ { i = 1 . . N } \\sum _ { r = 1 } ^ { S } \\frac { 1 } { S } R _ { i } ( \\lambda _ { r } ) \\log \\big ( p _ { \\theta } ( \\lambda _ { r } \\vert \\{ I O _ { i } ^ { k } \\} _ { k = 1 . . K } ) \\big ) } \\end{array}\n$$",
647
+ "text_format": "latex",
648
+ "bbox": [
649
+ 253,
650
+ 351,
651
+ 745,
652
+ 441
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "However, given that we sample from a unique model, there is a high chance that we will sample the same programs repeatedly when estimating the gradient. This is especially true when the model has been pre-trained in a supervised manner. A different approach is to approximate the distribution of the learned distribution by another one with a smaller support. ",
659
+ "bbox": [
660
+ 173,
661
+ 450,
662
+ 825,
663
+ 507
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "To obtain this smaller distribution, one possible solution is to employ the $S$ most likely samples as returned by a Beam Search. We generate the embedding of the IO grids and perform decoding, keeping at each step the $S$ most likely candidates prefixes based on the probability $p _ { \\theta }$ given by the model. At step $t$ , we evaluate $p _ { \\theta } ( s _ { 1 } \\cdot \\cdot . s _ { t } , \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 \\dots K } ^ { \\cdot } )$ for all the possible next token $s _ { t }$ and all the candidates $\\left( s _ { 1 } \\ldots s _ { t - 1 } \\right)$ previously obtained. The $S$ most likely sequences will be the candidates at the $( t + 1 )$ step. Figure 3 represents this process. ",
670
+ "bbox": [
671
+ 173,
672
+ 513,
673
+ 825,
674
+ 599
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Based on the final samples obtained, we define a probability distribution to use as an approximation of $p _ { \\theta }$ in (7). As opposed to (8), this approximation introduces a bias. It however has the advantage of aligning the training procedure more closely with the testing procedure where only likely samples are going to be decoded. Formally, this corresponds to performing the following approximation of the objective function, $( \\mathrm { B S } ( p _ { \\theta } , S )$ being the $S$ samples returned by a beam search with beam size $S$ ): ",
681
+ "bbox": [
682
+ 173,
683
+ 606,
684
+ 825,
685
+ 676
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "equation",
691
+ "img_path": "images/ce239a0cae9d9fef1f0a98e5bee4a55e2b173bfbe4dec75fbdcc9909ccc609be.jpg",
692
+ "text": "$$\n\\begin{array} { r l } & { { \\mathcal { L } } _ { R } ( \\theta ) \\approx \\displaystyle \\sum _ { i = . . . N } \\left( \\sum _ { \\lambda } q \\theta \\big ( \\lambda \\big | \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\big ) R _ { i } ( \\lambda ) \\right) } \\\\ & { \\mathrm { ~ w h e r e ~ } \\qquad q \\theta \\big ( \\lambda _ { r } \\big | \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\big ) = \\left\\{ \\begin{array} { l l } { \\displaystyle \\frac { p _ { \\theta } \\big ( \\lambda _ { r } \\big | \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\big ) } { \\sum _ { \\lambda _ { r } \\in \\mathsf { B S } ( r _ { \\theta } , s ) } p _ { \\theta } \\big ( \\lambda _ { r } \\big | \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\big ) } \\qquad } & { \\mathrm { i f ~ } \\lambda _ { r } \\in \\mathsf { B S } ( p _ { \\theta } , S ) } \\\\ { 0 \\qquad } & { \\mathrm { o t h e r w i s e . } } \\end{array} \\right. } \\end{array}\n$$",
693
+ "text_format": "latex",
694
+ "bbox": [
695
+ 181,
696
+ 681,
697
+ 823,
698
+ 776
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "With this approximation, the support of the distribution $q _ { \\theta }$ is much smaller as it contains only the $S$ elements returned by the beam search. As a result, the sum become tractable and no estimator are needed. We can simply differentiate this new objective function to obtain the gradients of the loss with regards to $p _ { \\theta }$ and use the chain-rule to subsequently obtain gradient with regards to $\\theta$ necessary for the optimization. Note that if $S$ is large enough to cover all possible programs, we recover the objective of (7). ",
705
+ "bbox": [
706
+ 173,
707
+ 794,
708
+ 825,
709
+ 878
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Based on this more tractable distribution, we can define more complex objective functions. In program synthesis, we have the possibility to prune out several predictions by using the specification. Therefore, we can choose to go beyond optimizing the expected reward when sampling a single program and optimize the expected reward when sampling a bag of $C$ programs and keeping the best one. This results in a new objective function: ",
716
+ "bbox": [
717
+ 176,
718
+ 883,
719
+ 825,
720
+ 924
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "",
727
+ "bbox": [
728
+ 171,
729
+ 103,
730
+ 825,
731
+ 131
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "equation",
737
+ "img_path": "images/1a7cb6168d28a46c7449375686270d1f1fcc2cfe564c6e650fd50316e83eb165.jpg",
738
+ "text": "$$\n\\boldsymbol \\theta ^ { \\star } = \\underset { \\boldsymbol \\theta } { \\operatorname { a r g m a x } } \\sum _ { i = 1 . . N } \\left( \\sum _ { \\{ \\lambda _ { 1 } , \\dots , \\lambda _ { C } \\} \\in \\mathbf { B } \\setminus ( p _ { \\theta , s } ) ^ { C } } \\left[ \\underset { j \\in 1 . . C } { \\operatorname* { m a x } } R _ { i } ( \\lambda _ { j } ) \\right] \\left( \\prod _ { r \\in 1 . . C } q _ { \\theta } \\left( \\lambda _ { r } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . R } \\right) \\right) \\right) ,\n$$",
739
+ "text_format": "latex",
740
+ "bbox": [
741
+ 187,
742
+ 136,
743
+ 784,
744
+ 183
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "where $q _ { \\theta }$ is defined as previously. We argue that by optimizing this objective function, the model gets the capability of “hedging its bets” and assigning probability mass to several candidates programs, resulting in a higher diversity of outputs. ",
751
+ "bbox": [
752
+ 176,
753
+ 188,
754
+ 826,
755
+ 231
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "In the special case where the reward function only takes values in $\\{ 0 , 1 \\}$ , as it is when we are using correctness as a reward, this can be more easily computed as: ",
762
+ "bbox": [
763
+ 173,
764
+ 236,
765
+ 825,
766
+ 263
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "equation",
772
+ "img_path": "images/d1017ca0e81c3431a07e21187091c73dacd43a2631e297e157072ccb749822a1.jpg",
773
+ "text": "$$\n\\theta ^ { \\star } = \\operatorname * { a r g m a x } _ { \\theta } \\sum _ { i = 1 \\dots N } \\left( 1 - \\left( \\sum _ { \\lambda _ { r } \\in \\mathrm { B S } ( p _ { \\theta } , S ) } \\left[ R _ { i } ( \\lambda _ { r } ) = = 0 \\right] q _ { \\theta } ( \\lambda _ { r } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 \\dots K } ) \\right) ^ { C } \\right) \n$$",
774
+ "text_format": "latex",
775
+ "bbox": [
776
+ 238,
777
+ 270,
778
+ 759,
779
+ 318
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "The derivation leading to this formulation as well as a description on how to efficiently compute the more general loss(10) can be found in appendix A. Note that although this formulation brings the training objective function closer to the testing procedure, it is still not ideal. It indeed makes the assumption that if we have a correct program in our bag of samples, we can identify it, ignoring the fact that it is possible to have some incorrect program consistent with the IO pairs partial specification (and therefore not prunable). In addition, this represents a probability where the $C$ programs are sampled independently, which in practice we wouldn’t do. ",
786
+ "bbox": [
787
+ 173,
788
+ 321,
789
+ 825,
790
+ 420
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "5 MODEL ",
797
+ "text_level": 1,
798
+ "bbox": [
799
+ 174,
800
+ 433,
801
+ 269,
802
+ 449
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "5.1 CONDITIONING ON THE SYNTAX ",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 176,
812
+ 465,
813
+ 439,
814
+ 479
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "One aspect of the program synthesis task is that syntactically incorrect programs can be trivially identified and pruned before making a prediction. As a result, if we use stx to denote the event that the sampled program is syntactically correct, what we care about modeling correctly is $p ( \\lambda | \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 \\ldots K } , \\dot { \\mathbf { s t x } } )$ k=1..K , stx). Using Bayes rule, we can rewrite this: ",
821
+ "bbox": [
822
+ 173,
823
+ 491,
824
+ 825,
825
+ 549
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "equation",
831
+ "img_path": "images/de14d9669e6163c801d78526cab69832cafd0836d9d00c6beaa5b589ab1a6510.jpg",
832
+ "text": "$$\n\\begin{array} { r l } & { p \\left( \\boldsymbol { \\lambda } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } , \\mathbf { s t x } \\right) \\propto p \\left( \\mathbf { s t x } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } , \\boldsymbol { \\lambda } \\right) \\times p \\left( \\boldsymbol { \\lambda } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\right) } \\\\ & { \\qquad \\propto p \\left( \\mathbf { s t x } \\mid \\boldsymbol { \\lambda } \\right) \\times p \\left( \\boldsymbol { \\lambda } \\mid \\left\\{ I O _ { i } ^ { k } \\right\\} _ { k = 1 . . K } \\right) } \\end{array}\n$$",
833
+ "text_format": "latex",
834
+ "bbox": [
835
+ 200,
836
+ 554,
837
+ 767,
838
+ 602
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "We drop the conditional dependency on the IO pairs in the second line of (12) as the syntactical correctness of the program is independent from the specification when conditioned on the program. We can do the same operation at the token level, denoting by $\\mathtt { s t x } _ { 1 \\dots t }$ the event that the sequence of the first $t$ tokens $s _ { 1 } \\cdot \\cdot \\cdot s _ { t }$ doesn’t contain any syntax error and may therefore be a prefix to a valid program. ",
845
+ "bbox": [
846
+ 173,
847
+ 603,
848
+ 825,
849
+ 674
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "equation",
855
+ "img_path": "images/27d084def02f78d9ed92316c7213ee1271c55cd7d3dd55bcf3b565c2a8eb588a.jpg",
856
+ "text": "$$\n\\begin{array} { r l } { p ( \\textit { s } _ { t } | \\textit { s } _ { 1 } \\cdot \\cdot \\cdot \\mathscr { s } _ { t - 1 } , \\{ I O _ { i } ^ { k } \\} _ { k = 1 . . . K } , \\mathfrak { s t x } _ { 1 . . . t } ) \\propto } & { p ( \\mathfrak { s t x } _ { 1 . . . t } | \\mathscr { s } _ { 1 } \\cdot \\cdot \\cdot \\mathscr { s } _ { t } ) \\times } \\\\ & { \\quad p ( \\textit { s } _ { t } | \\mathscr { s } _ { 1 } \\cdot \\cdot \\cdot \\mathscr { s } _ { t - 1 } , \\{ I O _ { i } ^ { k } \\} _ { k = 1 . . . K } ) } \\end{array}\n$$",
857
+ "text_format": "latex",
858
+ "bbox": [
859
+ 200,
860
+ 679,
861
+ 769,
862
+ 723
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Given a grammar, it is possible to construct a checker to determine valid prefixes of programs. Example applications include compilers to signal syntax errors to the user and autocomplete features of Integrated Development Environments (IDEs) to restrict the list of suggested completions. ",
869
+ "bbox": [
870
+ 176,
871
+ 727,
872
+ 825,
873
+ 770
874
+ ],
875
+ "page_idx": 6
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "The quantity $p \\left( \\left. \\mathbf { s t x } _ { 1 \\ldots t } \\right| s _ { 1 } \\cdot \\cdot \\cdot s _ { t } \\right)$ is therefore not a probability but can be implemented as a deterministic process for a given target programming language. In practice, this is implemented by getting at each timestep a mask $M = \\{ - \\operatorname { i n f } , 0 \\} ^ { | \\Sigma | }$ where $M _ { j } = - \\operatorname { i n f }$ if the $j$ -th token in the alphabet is not a valid token in the current context, and 0 otherwise. This mask is added to the output of the network, just before the Softmax operation that normalizes the output to a probability over the tokens. ",
880
+ "bbox": [
881
+ 173,
882
+ 775,
883
+ 826,
884
+ 848
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Conditioning on the syntactical correctness of the programs provides several advantages: First, sampled programs become syntactically correct by construction. At test time, it allows the beam search to only explore useful candidates. It also ensures that when we are optimizing for correctness, the samples used to approximate the distribution are all going to be valid candidates. Restricting the dimension of the space on which our model is defined also makes the problem simpler to learn. ",
891
+ "bbox": [
892
+ 174,
893
+ 853,
894
+ 825,
895
+ 924
896
+ ],
897
+ "page_idx": 6
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "It may not always be feasible to assume access to a syntax checker. In general, we wish to retain the syntax checker’s ability to aggressively prune the search in program space without requiring access to the syntax itself. To this end, we propose to represent the syntax checker as a neural network module and learn it jointly. Similar to the base model, we implement learned syntax checking using an LSTM $g _ { \\phi }$ . Comparing to the decoder LSTM, there are two major differences: ",
902
+ "bbox": [
903
+ 174,
904
+ 130,
905
+ 825,
906
+ 200
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "• The syntaxLSTM is conditioned only on the program tokens, not on the IO pairs. This ensures that the learned checker models only the syntax of the language. • The output of the syntaxLSTM is passed through an elementwise $x \\mapsto - \\exp ( x )$ activation function and added to the decoder LSTM’s output. Similar to the mask in Section 5.1, the exponential activation function allows the syntaxLSTM to output high penalties to any tokens deemed syntactically incorrect. ",
913
+ "bbox": [
914
+ 215,
915
+ 212,
916
+ 825,
917
+ 303
918
+ ],
919
+ "page_idx": 7
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "The addition of the syntaxLSTM doesn’t necessitate any change to the training procedure as it is simply equivalent to a change of architecture. However, in the supervised setting, when we have access to syntactically correct programs, we have the possibility of adding an additional term to the loss (6) to prevent the model from masking valid programs: ",
924
+ "bbox": [
925
+ 174,
926
+ 314,
927
+ 825,
928
+ 371
929
+ ],
930
+ "page_idx": 7
931
+ },
932
+ {
933
+ "type": "equation",
934
+ "img_path": "images/ed181f612d67ff47e82ec6f2b9c272876ac88a8287e86297250e9c583084ef8a.jpg",
935
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { s y n t a x } } = - \\sum _ { i = 1 } \\cdots N \\sum _ { t = 1 } \\cdots L _ { \\varnothing } \\left( \\boldsymbol s _ { t } ^ { i } | \\boldsymbol s _ { 1 } ^ { i } \\cdots \\boldsymbol s _ { t - 1 } ^ { i } \\right) , \\qquad \\mathrm { w h e r e } \\lambda _ { i } = [ \\boldsymbol s _ { 1 } ^ { i } , \\boldsymbol s _ { 2 } ^ { i } \\cdots \\boldsymbol s _ { L } ^ { i } ]\n$$",
936
+ "text_format": "latex",
937
+ "bbox": [
938
+ 235,
939
+ 378,
940
+ 763,
941
+ 412
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "This loss penalizes the syntaxLSTM for giving negative scores to each token belonging to a known valid program. We use the reference programs as example of valid programs when we perform supervised training. ",
948
+ "bbox": [
949
+ 174,
950
+ 419,
951
+ 823,
952
+ 462
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "6 EXPERIMENTS ",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 176,
962
+ 477,
963
+ 326,
964
+ 492
965
+ ],
966
+ "page_idx": 7
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "6.1 THE DOMAIN: KAREL ",
971
+ "text_level": 1,
972
+ "bbox": [
973
+ 174,
974
+ 507,
975
+ 367,
976
+ 521
977
+ ],
978
+ "page_idx": 7
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "The Karel programming language is an educational programming language (Pattis, 1981), used for example in Stanford CS introductory classes (cs1) or in the Hour of Code initiative (hoc). It features an agent inside a gridworld (See Figure 1), capable of moving (move, turn{Left,Right}), modifying world state ({pick,put}Marker), and querying the state of the nearby environment for its own markers (markerPresent, noMarkerPresent) or for natural obstacles (frontIsClear, leftIsClear, rightIsClear). Our goal is to learn to generate a program in the Karel DSL given a small set of input and output grids. The language supports for loops, while loops, and conditionals, but no variable assignment. Compared to the original Karel language, we only removed the possibility of defining subroutines. The specification for the DSL can be found in appendix B. ",
983
+ "bbox": [
984
+ 174,
985
+ 534,
986
+ 826,
987
+ 660
988
+ ],
989
+ "page_idx": 7
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "To evaluate our method, we follow the standard practice (Devlin et al., 2017b; Parisotto et al., 2017; Neelakantan et al., 2016; Balog et al., 2017) and use a synthetic dataset generated by randomly sampling programs from the DSL. We perform a few simple heuristic checks to ensure generated programs have observable effect on the world and prune out programs performing spurious actions (e.g. executing a turnLeft just after a turnRight for example). For each program, we a set of IO pairs are generated by sampling random input grids and executing the program on them to obtain the corresponding output grids. A large number of them are sampled and 6 are kept for each program, ensuring that all conditionals in a program are hit by at least one of the examples. The first 5 samples serve as the specification, and the sixth one is kept as held-out test pair. 5000 programs are not used for training, and get split out between a validation set and a test set. ",
994
+ "bbox": [
995
+ 173,
996
+ 666,
997
+ 825,
998
+ 805
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "We represent the input and output elements as grids where each cell in the grid is a vector with 16 channels, indicating the presence of elements (AgentFacingNorth, AgentFacingSouth, · · · , Obstacle, OneMarkerPresent, TwoMarkersPresent, · · · ). The input and output grids are initially passed through independent convolution layers, before being concatenated and passed through two convolutional residual blocks and a fully connected layer, mapping them to a final 512-dimensional representation. We run one decoder per IO pair and perform a maxpooling operation over the output of all the decoders, out of which we perform the prediction of the next token. Our models are implemented using the Pytorch framework (pyt). Code and data will be made available. ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 811,
1008
+ 825,
1009
+ 924
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "table",
1015
+ "img_path": "images/afc5e611a1fc3e7a43fdcecfa14ccc8229ccd7d8780052ddb371093f6a2c6b43.jpg",
1016
+ "table_caption": [],
1017
+ "table_footnote": [],
1018
+ "table_body": "<table><tr><td></td><td colspan=\"2\">Full Dataset</td><td colspan=\"2\">Small Dataset</td></tr><tr><td>Top-1</td><td>Generalization</td><td>Exact Match</td><td>Generalization</td><td>Exact Match</td></tr><tr><td>MLE</td><td>71.91</td><td>39.94</td><td>12.58</td><td>8.93</td></tr><tr><td>RL</td><td>68.39</td><td>34.74</td><td>0</td><td>0</td></tr><tr><td>RL_beam</td><td>75.72</td><td>8.21</td><td>25.28</td><td>17.63</td></tr><tr><td>RL_beam_div</td><td>76.20</td><td>31.25</td><td>23.72</td><td>16.31</td></tr><tr><td>RL_beam_div_opt</td><td>77.12</td><td>32.17</td><td>24.24</td><td>16.63</td></tr></table>",
1019
+ "bbox": [
1020
+ 235,
1021
+ 101,
1022
+ 763,
1023
+ 212
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Table 1: RL_beam optimization of program correctness results in consistent improvements in top-1 generalization accuracy over supervised learning MLE, even though the exact match of recovering the reference program drops. The improved objective function results in further improvements. ",
1030
+ "bbox": [
1031
+ 176,
1032
+ 222,
1033
+ 823,
1034
+ 263
1035
+ ],
1036
+ "page_idx": 8
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "6.2 RESULTS ",
1041
+ "text_level": 1,
1042
+ "bbox": [
1043
+ 174,
1044
+ 303,
1045
+ 277,
1046
+ 316
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "We trained a variety of models on the full Karel dataset containing 1-million examples as well as a reduced dataset containing only $1 0 , 0 0 0$ examples. In general, the small dataset serves to help understand the data efficiency of the program synthesis methods and is motivated by the expected difficulty of obtaining many labeled examples in real-world program synthesis domains. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 332,
1056
+ 823,
1057
+ 387
1058
+ ],
1059
+ "page_idx": 8
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "The Karel DSL was previously used by Devlin et al. (2017a) to study the relative perfomances of a range of methods depending on the available amount of data. The task considered was however different as they attempted to perform program induction as opposed to program synthesis. Rather than predicting a program implementing the desired transformation, they simply output a specification of the changes that would result from applying the program so a direct number comparison wouldn’t be meaningful. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 393,
1067
+ 825,
1068
+ 478
1069
+ ],
1070
+ "page_idx": 8
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Models are grouped according to training objectives. As a baseline, we use MLE, which corresponds to the maximum likelihood objective (Eq.6), similar to the method proposed by Devlin et al. (2017b). Unless otherwise specified, the reward considered for our other methods is generalization: $+ 1$ if the program matches all samples, including the held out one and 0 otherwise. RL uses the expected reward objective (Eq.7), using REINFORCE to obtain a gradient estimate (Eq.8). RL_beam attempts to solve the proxy problem described by Equation (9) and RL_beam_div the richer loss function of Equation (10). RL_beam_div_opt also optimizes the loss of equation (10) but the reward additionally includes a term inversly proportional to the number of timesteps it takes for the program to finish executing. All RL models are initialized from pretrained supervised models. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 484,
1078
+ 825,
1079
+ 611
1080
+ ],
1081
+ "page_idx": 8
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Optimizing for correctness (RL): Results in Table 1 show that optimizing for the expected program correctness consistently provides improvements in top-1 generalization accuracy. Top-1 Generalization Accuracy (Eq. 4) denotes the accuracy of the most likely program synthesized by beam search decoding having the correct behaviour across all input-output examples. We didn’t perform any pruning of programs that were incorrect on the 5 specification examples. The improved performance of RL methods confirms our hypothesis that better loss functions can effectively combat the program aliasing problem. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 630,
1089
+ 825,
1090
+ 728
1091
+ ],
1092
+ "page_idx": 8
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "On the full dataset, when optimizing for correctness, Exact Match Accuracy decreases, indicating that the RL models no longer prioritize generating programs that exactly match the references. On the small dataset, RL_beam methods improves both exact match accuracy and generalization. ",
1097
+ "bbox": [
1098
+ 176,
1099
+ 734,
1100
+ 825,
1101
+ 776
1102
+ ],
1103
+ "page_idx": 8
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Comparing RL_beam to standard RL, we note improvements across all levels of generalization. By better aligning the RL objective with the sampling that happens during beam search decoding, consistent improvements can be made in accuracy. Further improvements are made by encouraging diversity in the beam of solutions (RL_beam_div) and penalizing long running programs (RL_beam_div_opt). ",
1108
+ "bbox": [
1109
+ 176,
1110
+ 784,
1111
+ 825,
1112
+ 839
1113
+ ],
1114
+ "page_idx": 8
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "In the settings where little training data is available, RL methods show more dramatic improvements over MLE, indicating that data efficiency of program synthesis methods can be greatly improved by using a small number of samples first for supervised training and again for Reinforcement Learning. ",
1119
+ "bbox": [
1120
+ 176,
1121
+ 845,
1122
+ 825,
1123
+ 888
1124
+ ],
1125
+ "page_idx": 8
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "As a side note, we were unable to achieve high performance when training the RL methods from scratch. The necessity of extensive supervised pretraining to get benefits from Reinforcement ",
1130
+ "bbox": [
1131
+ 174,
1132
+ 895,
1133
+ 823,
1134
+ 924
1135
+ ],
1136
+ "page_idx": 8
1137
+ },
1138
+ {
1139
+ "type": "table",
1140
+ "img_path": "images/06c0f90ae2e392841808239c2489ab612550dba80a983232a5770eac1763b1f7.jpg",
1141
+ "table_caption": [],
1142
+ "table_footnote": [],
1143
+ "table_body": "<table><tr><td>Top-1 Generalization</td><td>Full Dataset</td><td>Small Dataset</td></tr><tr><td>MLE</td><td>71.91</td><td>12.58</td></tr><tr><td>MLE_learned</td><td>69.37</td><td>17.02</td></tr><tr><td>MLE _handwritten</td><td>72.07</td><td>9.81</td></tr><tr><td>MLE _large</td><td>73.67</td><td>13.14</td></tr></table>",
1144
+ "bbox": [
1145
+ 467,
1146
+ 101,
1147
+ 805,
1148
+ 179
1149
+ ],
1150
+ "page_idx": 9
1151
+ },
1152
+ {
1153
+ "type": "table",
1154
+ "img_path": "images/4c4b7879740a87e2f4e1346ea3a5ee195e432b73780f2eca2e31970bd8efc9a9.jpg",
1155
+ "table_caption": [
1156
+ "Table 2: Top-k accuracies: MLE shows greater relative accuracy increases as k increases than RL. Methods employing beam search and diversity objectives reduce this accuracy gap by encouraging diversity in the beam of partial programs. "
1157
+ ],
1158
+ "table_footnote": [],
1159
+ "table_body": "<table><tr><td>Generalization</td><td>Top-1 Top-5 Top-50</td></tr><tr><td>MLE</td><td>71.91 79.56 86.37</td></tr><tr><td>RL_beam</td><td>75.72 79.29 83.49</td></tr><tr><td>RL_beam_div</td><td>76.20 82.09 85.86</td></tr><tr><td>RL_beam_div_opt</td><td>77.12 82.17 85.38</td></tr></table>",
1160
+ "bbox": [
1161
+ 183,
1162
+ 101,
1163
+ 444,
1164
+ 180
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Table 3: Grammar prunes the space of possible programs: On the full dataset, handwritten syntax checking MLE_handwritten improves accuracy over no grammar MLE, although MLE_large shows that simply adding more parameters results in even greater gains. On the small dataset, learning the syntax MLE_learned outperforms handwritten grammar and larger models. ",
1171
+ "bbox": [
1172
+ 457,
1173
+ 190,
1174
+ 818,
1175
+ 287
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Learning fine-tuning is well-known in the Neural Machine Translation literature (Ranzato et al., 2016; \nWu et al., 2016; Wiseman and Rush, 2016; Bahdanau et al., 2017). ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 325,
1185
+ 823,
1186
+ 354
1187
+ ],
1188
+ "page_idx": 9
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Table 2 examines the top-1, top-5, and top-50 generalization accuracy of supervised and RL models. RL_beam methods performs best for top-1 but their advantage drops for higher-rank accuracy. Inspection of generated programs shows that the top predictions all become diverse variations of the same program, up to addition/removal of no-operations (turnLeft followed by turnRight, full circle obtained by a series of four turnLeft). The RL_beam_div objective helps alleviate this effect as does RL_beam_div_opt, which penalizes redundant programs. This is important as in the task of Program Synthesis, we may not necessarily need to return the most likely output if it can be pruned by our specification. ",
1193
+ "bbox": [
1194
+ 174,
1195
+ 361,
1196
+ 825,
1197
+ 473
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Impact of syntax: We also compare models according to the use of syntax: MLE_handwritten denotes the use of a handwritten syntax checker (Sec 5.1), MLE_learned denotes a learned syntax (Sec 5.2), while no suffix denotes no syntax usage. Table 3 compares syntax models. ",
1204
+ "bbox": [
1205
+ 176,
1206
+ 492,
1207
+ 823,
1208
+ 534
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "On the full dataset, leveraging the handwritten syntax leads to marginally better accuracies than learning the syntax or using no syntax. Given access to enough data, the network seems to be capable of learning to model the syntax using the sheer volume of training examples. ",
1215
+ "bbox": [
1216
+ 176,
1217
+ 541,
1218
+ 821,
1219
+ 583
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "On the other hand, when the amount of training data is limited, learning the syntax produces significantly better performance. By incorporating syntactic structure in the model architecture and objective, more leverage is gained from small training data. Interestingly, the learned syntax model even outperforms the handwritten syntax model. We posit the syntaxLSTM is free to learn a richer syntax. For example, the syntaxLSTM could learn to model the distribution of programs and discourage the prediction of not only syntactically incorrect programs, but also the unlikely ones. ",
1226
+ "bbox": [
1227
+ 174,
1228
+ 590,
1229
+ 825,
1230
+ 674
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "To control for the extra parameters introduced by the syntaxLSTM, we compare against MLE_large, which uses no syntax but features a larger decoder LSTM, resulting in the same number of parameters as MLE_learned. Results show that the larger number of parameters is not enough to explain the difference in performance, which again indicates the utility of jointly learning syntax. ",
1237
+ "bbox": [
1238
+ 174,
1239
+ 680,
1240
+ 825,
1241
+ 736
1242
+ ],
1243
+ "page_idx": 9
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Analysis of learned syntax: Section 5.2 claimed that by decomposing our models into two separate decoders, we could decompose the learning so that one decoder would specialize in picking the likely tokens given the IO pairs, while the other would enforce the grammar of the language. We now provide experimental evidence that this decomposition happens in practice. ",
1248
+ "bbox": [
1249
+ 174,
1250
+ 756,
1251
+ 825,
1252
+ 811
1253
+ ],
1254
+ "page_idx": 9
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Table 4 shows the percentage of syntactically correct programs among the most likely predictions of the ${ \\bf M L E + }$ learned model trained on the full dataset. Both columns correspond to the same set of parameters but the second column doesn’t apply the syntaxLSTM’s mask to constrain the decoding process. The precipitous drop in syntax accuracy indicates the extent to which the program decoder has learned to rely on the syntaxLSTM to produce syntactically correct programs. ",
1259
+ "bbox": [
1260
+ 174,
1261
+ 819,
1262
+ 825,
1263
+ 888
1264
+ ],
1265
+ "page_idx": 9
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Figure 3 compares the syntax masks generated by the learned and handwritten syntax models while decoding Program A in Figure 1. (3a) shows output of the handwritten syntax checker; (3b) shows syntaxLSTM output. White cells indicates tokens that are labeled syntactically correct at each decoding step. ",
1270
+ "bbox": [
1271
+ 174,
1272
+ 895,
1273
+ 821,
1274
+ 924
1275
+ ],
1276
+ "page_idx": 9
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "",
1281
+ "bbox": [
1282
+ 173,
1283
+ 103,
1284
+ 823,
1285
+ 132
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Figure 3c analyzes the difference between the handwritten and learned syntax masks. White indicates similar output, which occupies the majority of the visualization. Blue cells correspond to instances where the syntaxLSTM labeled a token correct when it actually was syntactically incorrect. This type of error can be recovered if the program decoder predicts those tokens as unlikely. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 138,
1295
+ 549,
1296
+ 236
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "table",
1302
+ "img_path": "images/71c290110c3bef8c7d5977cbbd33de177aab4f332e02779dcc33e8c860e76302.jpg",
1303
+ "table_caption": [],
1304
+ "table_footnote": [],
1305
+ "table_body": "<table><tr><td>% Synctactically Correct</td><td>Joint Model</td><td>Without Learned Syntax</td></tr><tr><td>Amongst Top1</td><td>100%</td><td>0%</td></tr><tr><td>Amongst Top5</td><td>100 %</td><td>0%</td></tr><tr><td>Amongst Top50</td><td>100 %</td><td>0%</td></tr><tr><td>Amongst Top100</td><td>99.79 %</td><td>.04%</td></tr></table>",
1306
+ "bbox": [
1307
+ 565,
1308
+ 155,
1309
+ 833,
1310
+ 233
1311
+ ],
1312
+ "page_idx": 10
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "On the other hand, red cells indicate the syntaxLSTM predicted a valid token is syntactically incorrect. This type of error is more dangerous because the program decoder cannot recover the valid token once it is declared incorrect. The majority of red errors correspond to tokens which are rarely observed in the training dataset, indicating that the syntaxLSTM learns to model more than just syntax - it also captures the distribution over programs. Given a large enough dataset of real programs, the syntaxLSTM learns to consider non-sensical and unlikely programs as syntactically incorrect, ensuring that generated programs are both syntactically correct and likely. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 243,
1320
+ 549,
1321
+ 410
1322
+ ],
1323
+ "page_idx": 10
1324
+ },
1325
+ {
1326
+ "type": "image",
1327
+ "img_path": "images/e35294641612e826d101b53ba678d4ef72143e4a9050fd2d1f76a85e7228fa3e.jpg",
1328
+ "image_caption": [
1329
+ "Table 4: Importance of Syntax ",
1330
+ "Figure 3: Syntax Comparison "
1331
+ ],
1332
+ "image_footnote": [],
1333
+ "bbox": [
1334
+ 566,
1335
+ 263,
1336
+ 820,
1337
+ 477
1338
+ ],
1339
+ "page_idx": 10
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "7 CONCLUSION ",
1344
+ "text_level": 1,
1345
+ "bbox": [
1346
+ 176,
1347
+ 424,
1348
+ 318,
1349
+ 440
1350
+ ],
1351
+ "page_idx": 10
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "We presented two novel contributions to improve stateof-the-art neural program synthesis techniques. Our first contribution uses Reinforcement Learning to optimize for generating any consistent program, which we show helps in improving generalization accuracy of the learned programs for large training datasets. Our second contribution incorporates syntax checking as an additional conditioning mechanism for pruning the space of programs during decoding. We show that incorporating syntax leads to significant improvements with limited training datasets. ",
1356
+ "bbox": [
1357
+ 174,
1358
+ 453,
1359
+ 550,
1360
+ 522
1361
+ ],
1362
+ "page_idx": 10
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "",
1367
+ "bbox": [
1368
+ 173,
1369
+ 522,
1370
+ 823,
1371
+ 564
1372
+ ],
1373
+ "page_idx": 10
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "REFERENCES ",
1378
+ "text_level": 1,
1379
+ "bbox": [
1380
+ 176,
1381
+ 103,
1382
+ 287,
1383
+ 118
1384
+ ],
1385
+ "page_idx": 11
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Stanford CS106A course page. https://see.stanford.edu/Course/CS106A. Accessed: 2017-05- 16. ",
1390
+ "bbox": [
1391
+ 174,
1392
+ 132,
1393
+ 823,
1394
+ 159
1395
+ ],
1396
+ "page_idx": 11
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Hour of Code. http://hourofcode.codehs.com/. Accessed: 2017-05-16. ",
1401
+ "bbox": [
1402
+ 173,
1403
+ 166,
1404
+ 665,
1405
+ 181
1406
+ ],
1407
+ "page_idx": 11
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Pytorch. http://pytorch.org/. ",
1412
+ "bbox": [
1413
+ 174,
1414
+ 189,
1415
+ 401,
1416
+ 205
1417
+ ],
1418
+ "page_idx": 11
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "Saul Amarel. Representations and modeling in problems of program formation. Rutgers University. Livingstone College. Department of Computer Science, 1970. ",
1423
+ "bbox": [
1424
+ 176,
1425
+ 213,
1426
+ 823,
1427
+ 239
1428
+ ],
1429
+ "page_idx": 11
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Dzmitry Bahdanau, Philemon Brakel, Kelvin Xu, Anirudh Goyal, Ryan Lowe, Joelle Pineau, Aaron Courville, and Yoshua Bengio. An actor-critic algorithm for sequence prediction. ICLR, 2017. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 247,
1437
+ 823,
1438
+ 275
1439
+ ],
1440
+ "page_idx": 11
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Matej Balog, Alexander L Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. Deepcoder: Learning to write programs. In ICLR, 2017. ",
1445
+ "bbox": [
1446
+ 174,
1447
+ 284,
1448
+ 821,
1449
+ 310
1450
+ ],
1451
+ "page_idx": 11
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "Rudy R Bunel, Alban Desmaison, Pawan K Mudigonda, Pushmeet Kohli, and Philip Torr. Adaptive neural compilation. In NIPS, 2016. ",
1456
+ "bbox": [
1457
+ 171,
1458
+ 319,
1459
+ 823,
1460
+ 347
1461
+ ],
1462
+ "page_idx": 11
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. In ICLR, 2017. ",
1467
+ "bbox": [
1468
+ 171,
1469
+ 354,
1470
+ 823,
1471
+ 382
1472
+ ],
1473
+ "page_idx": 11
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Jacob Devlin, Rudy R Bunel, Rishabh Singh, Matthew Hausknecht, and Pushmeet Kohli. Neural program meta-induction. 2017a. ",
1478
+ "bbox": [
1479
+ 173,
1480
+ 390,
1481
+ 823,
1482
+ 417
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Jacob Devlin, Jonathan Uesato, Surya Bhupatiraju, Rishabh Singh, Abdel-rahman Mohamed, and Pushmeet Kohli. Robustfill: Neural program learning under noisy I/O. In ICML, 2017b. ",
1489
+ "bbox": [
1490
+ 173,
1491
+ 425,
1492
+ 825,
1493
+ 453
1494
+ ],
1495
+ "page_idx": 11
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Alexander L Gaunt, Marc Brockschmidt, Rishabh Singh, Nate Kushman, Pushmeet Kohli, Jonathan Taylor, and Daniel Tarlow. Terpret: A probabilistic programming language for program induction. arXiv preprint arXiv:1608.04428, 2016. ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 460,
1503
+ 825,
1504
+ 501
1505
+ ],
1506
+ "page_idx": 11
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013. ",
1511
+ "bbox": [
1512
+ 173,
1513
+ 508,
1514
+ 823,
1515
+ 536
1516
+ ],
1517
+ "page_idx": 11
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1522
+ "bbox": [
1523
+ 173,
1524
+ 544,
1525
+ 823,
1526
+ 559
1527
+ ],
1528
+ "page_idx": 11
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwinska, ´ Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 2016. ",
1533
+ "bbox": [
1534
+ 174,
1535
+ 566,
1536
+ 823,
1537
+ 608
1538
+ ],
1539
+ "page_idx": 11
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In NIPS, 2015. ",
1544
+ "bbox": [
1545
+ 171,
1546
+ 614,
1547
+ 823,
1548
+ 642
1549
+ ],
1550
+ "page_idx": 11
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "Sumit Gulwani, William R Harris, and Rishabh Singh. Spreadsheet data manipulation using examples. Communications of the ACM, 2012. ",
1555
+ "bbox": [
1556
+ 174,
1557
+ 650,
1558
+ 823,
1559
+ 678
1560
+ ],
1561
+ "page_idx": 11
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "Kelvin Guu, Panupong Pasupat, Evan Zheran Liu, and Percy Liang. From language to programs: Bridging reinforcement learning and maximum marginal likelihood. In ACL, 2017. ",
1566
+ "bbox": [
1567
+ 173,
1568
+ 685,
1569
+ 825,
1570
+ 713
1571
+ ],
1572
+ "page_idx": 11
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997. ",
1577
+ "bbox": [
1578
+ 174,
1579
+ 722,
1580
+ 743,
1581
+ 736
1582
+ ],
1583
+ "page_idx": 11
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Judy Hoffman, Fei-Fei Li, C. Lawrence Zitnick, and Ross B. Girshick. Inferring and executing programs for visual reasoning. 2017. ",
1588
+ "bbox": [
1589
+ 171,
1590
+ 744,
1591
+ 823,
1592
+ 772
1593
+ ],
1594
+ "page_idx": 11
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In NIPS, 2015. ",
1599
+ "bbox": [
1600
+ 174,
1601
+ 780,
1602
+ 823,
1603
+ 808
1604
+ ],
1605
+ "page_idx": 11
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "Łukasz Kaiser and Ilya Sutskever. Neural gpus learn algorithms. In ICLR, 2016. ",
1610
+ "bbox": [
1611
+ 173,
1612
+ 815,
1613
+ 650,
1614
+ 830
1615
+ ],
1616
+ "page_idx": 11
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. ",
1621
+ "bbox": [
1622
+ 173,
1623
+ 838,
1624
+ 823,
1625
+ 866
1626
+ ],
1627
+ "page_idx": 11
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "Karol Kurach, Marcin Andrychowicz, and Ilya Sutskever. Neural random-access machines. In ICLR, 2016. ",
1632
+ "bbox": [
1633
+ 173,
1634
+ 875,
1635
+ 805,
1636
+ 888
1637
+ ],
1638
+ "page_idx": 11
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "Matt J Kusner, Brooks Paige, and José Miguel Hernández-Lobato. Grammar variational autoencoder. In ICML, 2017. ",
1643
+ "bbox": [
1644
+ 174,
1645
+ 897,
1646
+ 823,
1647
+ 924
1648
+ ],
1649
+ "page_idx": 11
1650
+ },
1651
+ {
1652
+ "type": "text",
1653
+ "text": "Chengtao Li, Daniel Tarlow, Alexander L. Gaunt, Marc Brockschmidt, and Nate Kushman. Neural program lattices. In ICLR, 2017. ",
1654
+ "bbox": [
1655
+ 173,
1656
+ 103,
1657
+ 823,
1658
+ 131
1659
+ ],
1660
+ "page_idx": 12
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "Percy Liang, Michael I Jordan, and Dan Klein. Learning programs: A hierarchical bayesian approach. In ICML, 2010. ",
1665
+ "bbox": [
1666
+ 173,
1667
+ 138,
1668
+ 825,
1669
+ 166
1670
+ ],
1671
+ "page_idx": 12
1672
+ },
1673
+ {
1674
+ "type": "text",
1675
+ "text": "Henry Lieberman. Your wish is my command: Programming by example. 2001. ",
1676
+ "bbox": [
1677
+ 174,
1678
+ 174,
1679
+ 645,
1680
+ 189
1681
+ ],
1682
+ "page_idx": 12
1683
+ },
1684
+ {
1685
+ "type": "text",
1686
+ "text": "Stephen Muggleton. Inductive logic programming. New generation computing, 1991. ",
1687
+ "bbox": [
1688
+ 174,
1689
+ 196,
1690
+ 679,
1691
+ 212
1692
+ ],
1693
+ "page_idx": 12
1694
+ },
1695
+ {
1696
+ "type": "text",
1697
+ "text": "Stephen H Muggleton, Dianhuan Lin, Niels Pahlavi, and Alireza Tamaddoni-Nezhad. Meta-interpretive learning: application to grammatical inference. Machine learning, 2014. ",
1698
+ "bbox": [
1699
+ 173,
1700
+ 219,
1701
+ 823,
1702
+ 247
1703
+ ],
1704
+ "page_idx": 12
1705
+ },
1706
+ {
1707
+ "type": "text",
1708
+ "text": "Arvind Neelakantan, Quoc V Le, and Ilya Sutskever. Neural programmer: Inducing latent programs with gradient descent. In ICLR, 2016. ",
1709
+ "bbox": [
1710
+ 174,
1711
+ 255,
1712
+ 825,
1713
+ 282
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "text",
1719
+ "text": "Emilio Parisotto, Abdelrahman Mohamed, Rishabh Singh, Lihong Li, Denny Zhou, and Pushmeet Kohli. Neuro-symbolic program synthesis. In ICLR, 2017. ",
1720
+ "bbox": [
1721
+ 176,
1722
+ 290,
1723
+ 823,
1724
+ 318
1725
+ ],
1726
+ "page_idx": 12
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "Richard E Pattis. Karel the robot: a gentle introduction to the art of programming. John Wiley & Sons, Inc., 1981. ",
1731
+ "bbox": [
1732
+ 174,
1733
+ 325,
1734
+ 825,
1735
+ 352
1736
+ ],
1737
+ "page_idx": 12
1738
+ },
1739
+ {
1740
+ "type": "text",
1741
+ "text": "Marc’Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence level training with recurrent neural networks. In ICLR, 2016. ",
1742
+ "bbox": [
1743
+ 173,
1744
+ 361,
1745
+ 823,
1746
+ 387
1747
+ ],
1748
+ "page_idx": 12
1749
+ },
1750
+ {
1751
+ "type": "text",
1752
+ "text": "Scott Reed and Nando de Freitas. Neural programmer-interpreters. In ICLR, 2016. ",
1753
+ "bbox": [
1754
+ 174,
1755
+ 395,
1756
+ 665,
1757
+ 411
1758
+ ],
1759
+ "page_idx": 12
1760
+ },
1761
+ {
1762
+ "type": "text",
1763
+ "text": "Sebastian Riedel, Matko Bosnjak, and Tim Rocktäschel. Programming with a differentiable forth interpreter. In ICML, 2017. ",
1764
+ "bbox": [
1765
+ 173,
1766
+ 417,
1767
+ 823,
1768
+ 445
1769
+ ],
1770
+ "page_idx": 12
1771
+ },
1772
+ {
1773
+ "type": "text",
1774
+ "text": "Phillip D Summers. A methodology for lisp program construction from examples. Journal of the ACM, 1977. ",
1775
+ "bbox": [
1776
+ 173,
1777
+ 453,
1778
+ 820,
1779
+ 468
1780
+ ],
1781
+ "page_idx": 12
1782
+ },
1783
+ {
1784
+ "type": "text",
1785
+ "text": "Richard J Waldinger and Richard CT Lee. Prow: A step toward automatic program writing. In IJCAI, 1969. ",
1786
+ "bbox": [
1787
+ 171,
1788
+ 477,
1789
+ 812,
1790
+ 491
1791
+ ],
1792
+ "page_idx": 12
1793
+ },
1794
+ {
1795
+ "type": "text",
1796
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 1992. ",
1797
+ "bbox": [
1798
+ 173,
1799
+ 500,
1800
+ 823,
1801
+ 526
1802
+ ],
1803
+ "page_idx": 12
1804
+ },
1805
+ {
1806
+ "type": "text",
1807
+ "text": "Sam Wiseman and Alexander M Rush. Sequence-to-sequence learning as beam-search optimization. In EMNLP, 2016. ",
1808
+ "bbox": [
1809
+ 174,
1810
+ 534,
1811
+ 823,
1812
+ 561
1813
+ ],
1814
+ "page_idx": 12
1815
+ },
1816
+ {
1817
+ "type": "text",
1818
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. ",
1819
+ "bbox": [
1820
+ 174,
1821
+ 569,
1822
+ 823,
1823
+ 609
1824
+ ],
1825
+ "page_idx": 12
1826
+ },
1827
+ {
1828
+ "type": "text",
1829
+ "text": "Pengcheng Yin and Graham Neubig. A syntactic neural model for general-purpose code generation. In ACL, 2017. ",
1830
+ "bbox": [
1831
+ 173,
1832
+ 617,
1833
+ 825,
1834
+ 645
1835
+ ],
1836
+ "page_idx": 12
1837
+ },
1838
+ {
1839
+ "type": "text",
1840
+ "text": "A COMPUTING THE RICHER LOSS FUNCTION ",
1841
+ "text_level": 1,
1842
+ "bbox": [
1843
+ 174,
1844
+ 103,
1845
+ 560,
1846
+ 118
1847
+ ],
1848
+ "page_idx": 13
1849
+ },
1850
+ {
1851
+ "type": "text",
1852
+ "text": "In this section, we describe how the objective function of Equation (10) can be computed. ",
1853
+ "bbox": [
1854
+ 173,
1855
+ 130,
1856
+ 759,
1857
+ 145
1858
+ ],
1859
+ "page_idx": 13
1860
+ },
1861
+ {
1862
+ "type": "text",
1863
+ "text": "We have a distribution $q _ { \\theta }$ over $S$ programs, as obtained by performing a beam search over $p _ { \\theta }$ and renormalizing. We are going to get $C$ independent samples from this distribution and obtain a reward corresponding to the best performing of all of them. ",
1864
+ "bbox": [
1865
+ 174,
1866
+ 151,
1867
+ 821,
1868
+ 194
1869
+ ],
1870
+ "page_idx": 13
1871
+ },
1872
+ {
1873
+ "type": "text",
1874
+ "text": "In the case where the reward function $R _ { i } ( \\lambda _ { r } )$ is built on a boolean property, such as for example “correctness of the generated program”, Equation (10) can be simplified. As $R _ { i } ( \\lambda _ { r } )$ can only take the values 0 or 1, the term $\\operatorname* { m a x } _ { j \\in 1 \\ldots C } R _ { i } ( \\lambda _ { j } )$ is going to be equal to 0 only if all of the $C$ sampled programs give a reward of zero. For each sample, there is a probability of $\\begin{array} { r } { q _ { \\mathrm { i n c o r r e c t } } = \\sum _ { \\lambda _ { r } \\in { \\bf B S } ( p _ { \\theta } , S ) } [ R _ { i } ( \\bar { \\lambda _ { r } } ) = = 0 ] q _ { \\theta } ( \\lambda _ { r } \\mid \\{ I O _ { i } ^ { k } \\} _ { k = 1 \\dots K } ) } \\end{array}$ of samput of the g a prograsamples is ewards. From $C$ $q _ { \\mathrm { i n c o r r e c t } } ^ { C }$ this, we can derive the form of Equation (11). Note that this can be computed without any additional sampling steps as we have a close form solution for this expectation. ",
1875
+ "bbox": [
1876
+ 173,
1877
+ 200,
1878
+ 825,
1879
+ 316
1880
+ ],
1881
+ "page_idx": 13
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "text": "In the general case, a similar derivation can be obtained. Assume that the programs outputted by the beam search have associated rewards $R _ { 0 } , R _ { 1 } , . . . , R _ { S }$ and assume without loss of generality that $R _ { 0 } < R _ { 1 } < . . < R _ { S }$ . The probability of sampling a program with a reward smaller than $R _ { i }$ is $\\begin{array} { r } { q _ { \\le R _ { i } } = \\sum _ { \\lambda _ { r } \\in \\mathrm { B S } ( p _ { \\theta } , S ) } [ R _ { i } ( \\lambda _ { r } ) \\le R _ { i } ] \\stackrel { \\cdot } { q _ { \\theta } } ( \\lambda _ { r } \\mid \\{ { \\hat { I } } { \\hat { O } } _ { i } ^ { k } \\} _ { k = 1 \\ldots K } ^ { - } ) } \\end{array}$ so the probability of obtaining a final reward of less than $R _ { i }$ when sampling $\\textrm { C }$ samples is $q _ { \\leq { R _ { i } } } ^ { C }$ . As a result, the probability of obtaining a reward of exactly $R _ { i }$ is $\\left( q _ { \\leq R _ { i } } ^ { C } - q _ { \\leq R _ { i - 1 } } ^ { C } \\right)$ . Based on this, it is easy to evaluate (and differentiate) the loss function described by Equation (10). ",
1886
+ "bbox": [
1887
+ 173,
1888
+ 323,
1889
+ 825,
1890
+ 436
1891
+ ],
1892
+ "page_idx": 13
1893
+ },
1894
+ {
1895
+ "type": "text",
1896
+ "text": "B KAREL LANGAGE SPECIFICATION",
1897
+ "text_level": 1,
1898
+ "bbox": [
1899
+ 174,
1900
+ 450,
1901
+ 490,
1902
+ 467
1903
+ ],
1904
+ "page_idx": 13
1905
+ },
1906
+ {
1907
+ "type": "equation",
1908
+ "img_path": "images/a3e9426d10477a1607372e874fd8f7d7e405c0b2aa489a49720581ed82f16dcb.jpg",
1909
+ "text": "$$\n\\begin{array} { r c l } { \\operatorname { P r o g } p } & { : = } & { \\det \\operatorname { r u n } ( ) : s } \\\\ { \\operatorname { S t m } \\textstyle * } & { : = } & { \\textstyle \\operatorname { w h i l } \\textstyle \\mathrm { 1 } \\cdot \\boldsymbol { \\mathrm { s } } \\left| \\operatorname { r e p e a t } ( r ) : s \\right| \\textstyle \\mathrm { s } _ { 1 } ; \\boldsymbol { s } _ { 2 } \\left| \\alpha \\right. } \\\\ & { \\big | } & { \\big | \\big | \\big | \\big | \\big | \\big | \\operatorname { s } : \\big | \\operatorname { i f e l s e } ( b ) : \\boldsymbol { s } _ { 1 } \\big . \\mathrm { e l s e } : \\boldsymbol { s } _ { 2 } } \\\\ { \\operatorname { C o n d } b } & { : = } & { \\textstyle \\operatorname { f r o n t } \\operatorname { I s C l e a r } ( ) \\big | \\big | \\operatorname { l e f t } \\operatorname { I s C l e a r } ( ) \\big | \\big | \\operatorname { r i g h t } \\operatorname { I s C l e a r } ( ) } \\\\ & { \\big | } & { \\textstyle \\operatorname { m a r k e r s p r e s e n t } ( ) \\big | \\operatorname { n o M a r k e r s P r e s e n t } ( ) \\big | \\operatorname { n o t } b } \\\\ { \\operatorname { A c t i o n } \\big . } & { : = } & { \\operatorname { m o v e } \\big ( ) \\big | \\operatorname { t u r n R i g h t } \\big ( ) \\big | \\operatorname { t u r n L e f t } ( ) } \\\\ & { \\big | } & { \\big | \\operatorname { p i c k M a r k e r } ( ) \\big | \\operatorname { p u t M a r k e r } ( ) } \\\\ { \\operatorname { C s t e r } } & { : = } & { 0 \\big | 1 \\big | \\operatorname { 1 } \\dots | \\operatorname { l 9 } } \\end{array}\n$$",
1910
+ "text_format": "latex",
1911
+ "bbox": [
1912
+ 261,
1913
+ 497,
1914
+ 735,
1915
+ 641
1916
+ ],
1917
+ "page_idx": 13
1918
+ },
1919
+ {
1920
+ "type": "image",
1921
+ "img_path": "",
1922
+ "image_caption": [
1923
+ "Figure 4: The Domain-specific language for Karel programs. "
1924
+ ],
1925
+ "image_footnote": [],
1926
+ "page_idx": 13
1927
+ },
1928
+ {
1929
+ "type": "text",
1930
+ "text": "C EXPERIMENTS HYPERPARAMETERS ",
1931
+ "text_level": 1,
1932
+ "bbox": [
1933
+ 173,
1934
+ 693,
1935
+ 503,
1936
+ 708
1937
+ ],
1938
+ "page_idx": 13
1939
+ },
1940
+ {
1941
+ "type": "text",
1942
+ "text": "The state of the grid word are represented as a $1 6 \\times 1 8 \\times 1 8$ tensor. For each cell of the grid, the 16-dimensional vector corresponds to the feature indicated in Table 5 ",
1943
+ "bbox": [
1944
+ 176,
1945
+ 719,
1946
+ 823,
1947
+ 750
1948
+ ],
1949
+ "page_idx": 13
1950
+ },
1951
+ {
1952
+ "type": "text",
1953
+ "text": "The decoders are two-layer LSTM with a hidden size of 256. Tokens of the DSL are embedded to a 256 dimensional vector. The input of the LSTM is therefore of dimension 768 (256 dimensional of the token $+ 5 1 2$ dimensional of the IO pair embedding). The LSTM used to model the syntax is similarly sized but doesn’t take the embedding of the IO pairs as input so its input size is only 256. ",
1954
+ "bbox": [
1955
+ 174,
1956
+ 755,
1957
+ 825,
1958
+ 811
1959
+ ],
1960
+ "page_idx": 13
1961
+ },
1962
+ {
1963
+ "type": "text",
1964
+ "text": "One decoder LSTM is run on the embedding of each IO pair. The topmost activation are passed through a MaxPooling operation to obtain a 256 dimensional vector representing all pairs. This is passed through a linear layer to obtain a score for each of the 52 possible tokens. We add the output of the model and of the eventual syntax model, whether learned or handwritten and pass it through a SoftMax layer to obtain a probability distribution over the next token. ",
1965
+ "bbox": [
1966
+ 174,
1967
+ 818,
1968
+ 825,
1969
+ 888
1970
+ ],
1971
+ "page_idx": 13
1972
+ },
1973
+ {
1974
+ "type": "text",
1975
+ "text": "All training is performed using the Adam optimizer, with a learning rate of $1 0 ^ { - } 4$ . Supervised training used a batch size of 128 and RL methods used a batch size of 16. We used 100 rollouts per samples for the Reinforce method and a beam size of 64 for methods based on the beam search. The value of C used for the methods computing a loss on bags of programs was 5. ",
1976
+ "bbox": [
1977
+ 174,
1978
+ 895,
1979
+ 823,
1980
+ 924
1981
+ ],
1982
+ "page_idx": 13
1983
+ },
1984
+ {
1985
+ "type": "table",
1986
+ "img_path": "images/c23c96d93e164557f86b91c8c405961a35388c0e83e6e6b66539b0561a4eadb0.jpg",
1987
+ "table_caption": [
1988
+ "Table 5: Representation of the grid "
1989
+ ],
1990
+ "table_footnote": [],
1991
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Hero facingNorth</td></tr><tr><td rowspan=1 colspan=1>Hero facingSouth</td></tr><tr><td rowspan=1 colspan=1>Hero facing West</td></tr><tr><td rowspan=1 colspan=1>Hero facing East</td></tr><tr><td rowspan=1 colspan=1>Obstacle</td></tr><tr><td rowspan=1 colspan=1>Grid boundary</td></tr><tr><td rowspan=1 colspan=1>1 marker</td></tr><tr><td rowspan=1 colspan=1>2 marker</td></tr><tr><td rowspan=1 colspan=1>3 marker</td></tr><tr><td rowspan=1 colspan=1>4 marker</td></tr><tr><td rowspan=1 colspan=1>5marker</td></tr><tr><td rowspan=1 colspan=1>6 marker</td></tr><tr><td rowspan=1 colspan=1>7 marker</td></tr><tr><td rowspan=1 colspan=1>8 marker</td></tr><tr><td rowspan=1 colspan=1>9 marker</td></tr><tr><td rowspan=1 colspan=1>10 marker</td></tr></table>",
1992
+ "bbox": [
1993
+ 428,
1994
+ 101,
1995
+ 570,
1996
+ 333
1997
+ ],
1998
+ "page_idx": 14
1999
+ },
2000
+ {
2001
+ "type": "table",
2002
+ "img_path": "images/3df5e05947fa987499a3c503dceba26ce851d3b6ea7551b5f6b7d5bbc8914514.jpg",
2003
+ "table_caption": [
2004
+ "Table 6: Encoding of the Input/Output Pairs "
2005
+ ],
2006
+ "table_footnote": [],
2007
+ "table_body": "<table><tr><td rowspan=\"2\">Grid Embedding</td><td>Input Grid Conv2D,kernel size= 3, padding=1,16 →32</td><td>Output Grid Conv2D,kernel size=3,padding=1,16-&gt;32</td></tr><tr><td>ReLU</td><td>ReLU Conv2D,kernel size=3,padding1,64 → 64</td></tr><tr><td>Residual Block 1</td><td colspan=\"2\">ReLU Conv2D, kernel size = 3, padding 1, 64 → 64 ReLU Conv2D,kernel size = 3,padding1,64 →→ 64 ReLU</td></tr><tr><td rowspan=\"2\">Residual Block 1</td><td>Conv2D,kernel size =3,padding1, 64 -→ 64 Conv2D,kernel size = 3, padding 1, 64 -→ 64</td><td>ReLU</td></tr><tr><td>Conv2D,kernel size = 3, padding 1, 64 -→ 64</td><td>ReLU</td></tr><tr><td>Fully Connected</td><td colspan=\"2\">ReLU Linear,20736→512</td></tr></table>",
2008
+ "bbox": [
2009
+ 173,
2010
+ 363,
2011
+ 968,
2012
+ 590
2013
+ ],
2014
+ "page_idx": 14
2015
+ },
2016
+ {
2017
+ "type": "text",
2018
+ "text": "",
2019
+ "bbox": [
2020
+ 171,
2021
+ 641,
2022
+ 825,
2023
+ 670
2024
+ ],
2025
+ "page_idx": 14
2026
+ }
2027
+ ]
parse/train/H1Xw62kRZ/H1Xw62kRZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1Xw62kRZ/H1Xw62kRZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HHiiQKWsOcV/HHiiQKWsOcV.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HHiiQKWsOcV/HHiiQKWsOcV_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HHiiQKWsOcV/HHiiQKWsOcV_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HHiiQKWsOcV/HHiiQKWsOcV_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UEtNMTl6yN/UEtNMTl6yN.md ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NEURAL POOLING FOR GRAPH NEURAL NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Tasks such as graph classification, require graph pooling to learn graph-level representations from constituent node representations. In this work, we propose two novel methods using fully connected neural network layers for graph pooling, namely Neural Pooling Method 1 and 2. Our proposed methods have the ability to handle variable number of nodes in different graphs, and are also invariant to the isomorphic structures of graphs. In addition, compared to existing graph pooling methods, our proposed methods are able to capture information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn relationships among node representations, making them more powerful. We perform experiments on graph classification tasks in the bio-informatics and social network domains to determine the effectiveness of our proposed methods. Experimental results show that our methods lead to an absolute increase of upto $1 . 2 \%$ in classification accuracy over previous works and a general decrease in standard deviation across multiple runs indicating greater reliability. Experimental results also indicate that this improvement in performance is consistent across several datasets.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Over the past several years, there is a growing number of applications where data is generated from non-Euclidean domains and is represented as graphs with complex relationships and interdependency between entities. Deep learning generalised from grid-like data to the graph domain has led to the development of the remarkably successful Graph Neural Networks (GNNs) (Fan et al., 2019; Gao et al., 2019; Ma et al., $2 0 1 9 \mathrm { a }$ ; Wang et al., 2019b) and its numerous variants such the Graph Convolutional Network (GCN) (Kipf & Welling, 2017), GraphSAGE (Hamilton et al., 2017), graph attention network (GAT) (Velickovi ˇ c et al., 2018), jumping knowledge network (JK) (Xu et al., ´ 2018), and graph isomorphism networks (GINs) (Xu et al., 2019), etc.
12
+
13
+ Pooling is a common operation in deep learning on grid-like data, such as images. Pooling layers provide an approach to down sampling feature maps by summarizing the presence of features in patches of the feature map. It reduces dimensionality and also provides local translational invariance. In the case of graph data, pooling is used to obtain a representation of a graph using its constituent node representations. However, it is challenging to develop graph pooling methods due to the some special properties of graph data such as the variable number of nodes in different graphs and the isomorphic structures of graphs. Firstly, the number of nodes varies in different graphs, while the graph representations are usually required to have the same fixed size to fit into other downstream machine learning models where they are used for tasks such as classification. Therefore, graph pooling should be capable of handling the variable number of node representations as inputs and producing fixed-sized graph representations. Secondly, unlike images and texts where we can order pixels and words according to the spatial structural information, there is no inherent ordering relationship among nodes in graphs. Therefore, isomorphic graphs should have the same graph representation, and hence, graph pooling should give the same output by taking node representations in any order as inputs.
14
+
15
+ Our main contributions in this work are two novel graph pooling methods, Neural Pooling Method 1 and 2. These new pooling methods allow us to do the following,i) produce the same dimensional graph representation for graphs with variable number of nodes, ii) remain invariant to the isomorphic structures of graphs, iii) collect second- order statistics, iv) leverage trainable parameters in the form of fully connected neural networks to learn relationships between underlying node representations to generate high quality graph representations which are then used for graph classification tasks.
16
+
17
+ Experiments are performed on four benchmark bio-informatics datasets and five popular social network datasets to demonstrate the effectiveness and superiority of our proposed graph pooling methods. Experimental results show that our methods lead to an improvement in classification accuracy over existing methods and are also more reliable as compared to previous works.
18
+
19
+ # 2 RELATED WORK
20
+
21
+ # 2.1 GRAPH NEURAL NETWORKS
22
+
23
+ A graph can be represented by its adjacency matrix and node features. Formally, for a graph $\mathcal { G }$ consisting of $n$ nodes, its topology information can be represented by an adjacency matrix ${ \pmb A } \in$ $\{ 0 , 1 \} ^ { n \times n }$ and the node features can be represented as $\dot { \boldsymbol { X } } \in \mathbb { R } ^ { n \times d }$ , assuming each node has a d-dimensional feature vector. GNNs learn feature representations for different nodes using these matrices (Gilmer et al., 2017). Several approaches are proposed to investigate deep GNNs, and they generally follow a neighborhood information aggregation scheme (Gilmer et al., 2017; Xu et al., 2019; Kipf & Welling, 2017; Hamilton et al., 2017; Velickovi ˇ c et al., 2018). In each step, ´ the representation of a node is updated by aggregating the representations of its neighbors. Graph Convolutional Networks (GCNs) are popular variants of GNNs and inspired by the first order graph Laplacian methods (Kipf & Welling, 2017). Graph pooling is used to connect embedded graphs outputted by GNN layers with classifiers for graph classification. Given a graph, GNN layers produce node representations, where each node is embedded as a vector. Graph pooling is applied after GNN layers to process node representations into a single feature vector as the graph representation. A classifier takes the graph representation and performs graph classification.
24
+
25
+ # 2.2 GRAPH POOLING
26
+
27
+ Early studies employ simple methods such as averaging and summation as graph pooling (Xu et al., 2019; Duvenaud et al., 2015; Defferrard et al., 2016). However, averaging and summation do not capture the feature correlation information, curtailing the overall model performance (Zhang et al., 2018). Other studies have proposed advanced graph pooling methods, including DIFFPOOL (Ying et al., 2018), SORT-POOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), SAGPOOL (Lee et al., 2019), and EIGENPOOL (Ma et al., 2019b), and achieve great performance on multiple benchmark datasets. EIGENPOOL involves the computation of eigenvectors, which is slow and expensive. DIFFPOOL (Ying et al., 2018) treats the graph pooling as a node clustering problem. A cluster of nodes from the original graph are merged to form a new node in the new graph. DIFFPOOL (Ying et al., 2018) proposes to perform the graph convolution operation on node features to obtain node clustering assignment matrix. Intuitively, the class assignment of a given node should depend on the class assignments of other neighbouring nodes. However, DIFFPOOL does not explicitly consider high-order structural relationships, which we that are important for graph pooling. SORTPOOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), and SAGPOOL (Lee et al., 2019) learn to select important nodes from the original graph and use these nodes to build a new graph. They share the similar idea to learn a sorting vector based on node representations, which indicates the importance of different nodes. Then only the top $\mathrm { k }$ important nodes are selected to form a new graph while the other nodes are ignored. However, the ignored nodes may contain important features and this information is lost during pooling. It is worth noting that all the graph pooling methods mentioned till now only collect first-order statistics (Boureau et al., 2010). A recent study has proposed second order graph pooling methods $S O P o o l _ { b i m a p }$ and $S O P o o l _ { a t t e n t i o n }$ (Wang & Ji, 2020). In this work, we propose two novel methods using fully connected neural network layers for graph pooling, namely Neural Pooling Method 1 and 2. Compared to existing graph pooling methods, our proposed methods are able to capture information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn relationships among node representations, making them more powerful.
28
+
29
+ # 3 METHODOLOGY
30
+
31
+ # 3.1 PROPERTIES OF GRAPH POOLING
32
+
33
+ Consider a graph $\mathcal { G } = ( A , X )$ represented by its adjacency matrix $\pmb { A } \in \{ 0 , 1 \} ^ { n \times n }$ and node feature matrix $\ b { X } \in \mathbb { R } ^ { n \times d }$ , where $n$ is the number of nodes in $\mathcal { G }$ and $d$ is the dimension of node features. The node features may come from node labels or node degrees. Graph neural networks are known to be powerful in learning good node representation matrix $\pmb { H }$ from $\pmb { A }$ and $\boldsymbol { X }$ :
34
+
35
+ $$
36
+ \pmb { H } = [ h _ { 1 } , h _ { 2 } , . . . . . . . . . , h _ { n } ] ^ { T } = \mathbf { G } \mathbf { N } \mathbf { N } ( \pmb { A } , \pmb { X } ) \in \mathbb { R } ^ { n \times \textit { f } }
37
+ $$
38
+
39
+ where rows of $H , h _ { i } \in \mathbb { R } ^ { f } , i = 1 , 2 , . . . , n$ , are representations of $n$ nodes, and $f$ is the dimension of the node representation obtained from the GNN and depends on the architecture of the GNN. The task that we focus on in this work is to obtain a graph representation vector $_ { h _ { G } }$ from $\pmb { H }$ , which is then fed into a classifier to perform graph classification:
40
+
41
+ $$
42
+ h _ { G } = \operatorname { g } ( [ A ] , H ) \in \mathbb { R } ^ { c }
43
+ $$
44
+
45
+ where $\mathrm { g } ( \cdot )$ is the graph pooling function and $c$ is the dimension of $_ { h _ { G } }$ . Here, $[ A ]$ means that the information from $\pmb { A }$ can be optionally used in graph pooling. For simplicity, we omit it in the following discussion.
46
+
47
+ Note that the function $\mathrm { g } ( \cdot )$ must satisfy two requirements to serve as graph pooling. First, $\mathrm { g } ( \cdot )$ should be able to take $\pmb { H }$ with variable number of rows as the inputs and produce fixed-sized outputs. Specifically, different graphs may have different number of nodes, which means that $n$ is a variable. On the other hand, $c$ , which is the dimension of the graph representation $_ { h _ { G } }$ is supposed to be fixed to fit into the classifier. Second, $\mathrm { g } ( \cdot )$ should output the same $_ { h _ { G } }$ when the order of rows of $\pmb { H }$ changes. This permutation invariance property is necessary to handle isomorphic graphs. To be concrete, if two graph $\mathcal { G } _ { 1 } = ( A _ { 1 } , X _ { 1 } )$ and $\mathcal { G } _ { 2 } = ( A _ { 2 } , X _ { 2 } )$ are isomorphic, GNNs will output the same multi set of node representations. That is, there exists a permutation matrix $P \in \{ 0 , \bar { 1 } \bar \} ^ { n \times n }$ such that $H _ { 1 } = P H _ { 2 }$ , for $\pmb { H } _ { 1 } = \mathbf { G } \mathbf { N } \mathbf { N } ( \pmb { A } _ { 1 } , \pmb { X } _ { 1 } )$ and $H _ { 2 } = \mathrm { G N N } ( A _ { 2 } , X _ { 2 } )$ . However, the graph representation computed by $\mathrm { g } ( \cdot )$ should be the same, i.e., $\begin{array} { r } { \mathrm { g } ( \pmb { H } _ { 1 } ) = \mathrm { g } ( \pmb { H } _ { 2 } ) } \end{array}$ if ${ \cal H } _ { 1 } = { \cal P } { \cal H } _ { 2 }$ .
48
+
49
+ # 3.2 NEURAL POOLING METHOD 1
50
+
51
+ Our first proposed method is called Neural Pooling Method 1. Consider a node representation matrix $\pmb { H }$ obtained following Equation 1 in Section 3.1.
52
+
53
+ ![](images/4a464ce1dec9d058abdf8c5f8e85f74243f223cbe400ccb32842325b50311b2a.jpg)
54
+ Figure 1: Illustration of our proposed Neural Pooling Method 1. This is an example for a graph $\mathcal { G }$ with 8 nodes. GNNs can learn representations for each node and graph pooling processes node representations into a graph representation vector.
55
+
56
+ $\pmb { H }$ is passed through a Fully Connected Neural Network Layer $( F C L ^ { 1 } )$ to obtain $H ^ { \prime }$ as:
57
+
58
+ $$
59
+ \pmb { H } ^ { \prime } = F C L ^ { 1 } ( \pmb { H } ) \in \mathbb { R } ^ { n \times \textit { f } ^ { \prime } } \mathrm { \bf ~ w h e r e ~ } f ^ { \prime } < f
60
+ $$
61
+
62
+ After this $H ^ { \prime }$ is again passed through a second Fully Connected Neural Network Layer $( F C L ^ { 2 } )$ to obtain $Q$ as:
63
+
64
+ $$
65
+ Q = F C L ^ { 2 } ( H ^ { \prime } ) \in \mathbb { R } ^ { n \times 1 }
66
+ $$
67
+
68
+ Finally the graph representation $h _ { G }$ is obtained as:
69
+
70
+ $$
71
+ \pmb { h } _ { G } = \pmb { H } ^ { \prime T } \pmb { Q } \in \mathbb { R } ^ { f ^ { \prime } \times 1 }
72
+ $$
73
+
74
+ where $H ^ { \prime T }$ denotes the transpose of $H ^ { \prime }$ .
75
+
76
+ Neural Pooling Method 1 always outputs an $f ^ { \prime }$ -dimensional graph representation for $\ b { H } \in \mathbb { R } ^ { n \times f }$ , regardless of the value of $\mathbf { n }$ . It is also invariant to permutation so that it outputs the same graph representation, even when the order of rows of $\pmb { H }$ changes.
77
+
78
+ Intuition: The $F C L ^ { 1 }$ performs the role of reducing the dimensionality of the input node representations. The trainable parameters of this $F C L ^ { 1 }$ can be thought of as learning a mapping from the $f$ to the $f ^ { \prime }$ -dimensional space. The $F C L ^ { 2 }$ reduces the $f ^ { \prime }$ -dimensional node representations to a 1 dimensional representation, $Q$ . $\pmb { H } ^ { \prime } \in \mathbb { R } ^ { n \times \ f ^ { \prime } }$ can be viewed as $H ^ { \prime } = [ l _ { 1 } , l _ { 2 } , \ldots \ldots , l _ { f ^ { \prime } } ] .$ , where $l _ { j }$ $\in \mathbb { R } ^ { n }$ , $j { = } 1 , 2 , . . . , f ^ { \prime }$ . The vector $l _ { j }$ encodes the spatial distribution of the $j$ -th feature in the graph. Based on this view, $H ^ { \prime T } \pmb { Q }$ is able to capture the topology information and $Q$ can be thought of as roughly encoding the position of nodes by learning the weights according to which the $j$ -th feature is aggregated across the nodes.
79
+
80
+ Neural Pooling Method 1 hence, leverages the ability of neural networks to learn the topological structure as well as correlation among the node representations in $\pmb { H }$ . It captures the essential features and connections between underlying data. It also reduces the dimensionality of $\pmb { H }$ , and results in an accurate representation of the input graph.
81
+
82
+ # 3.3 NEURAL POOLING METHOD 2
83
+
84
+ Our second proposed method is called Neural Pooling Method 2. Consider a node representation matrix $\pmb { H }$ obtained following Equation 1 in Section 3.1.
85
+
86
+ ![](images/550267784e0cc753e84314e02422fdc4a7e97d7ea04f2d5dfefc8ec628a99301.jpg)
87
+ Figure 2: Illustration of our proposed Neural Pooling Method 2. This is an example for a graph $\mathcal { G }$ with 8 nodes. GNNs can learn representations for each node and graph pooling processes node representations into a graph representation vector.
88
+
89
+ $\pmb { H }$ is passed through a Fully Connected Neural Network Layer $( F C L ^ { 1 } )$ to obtain $H ^ { \prime \prime }$ as:
90
+
91
+ $$
92
+ \pmb { H } ^ { \prime \prime } = F C L ^ { 1 } ( \pmb { H } ) \in \mathbb { R } ^ { n \times \textit { f } ^ { \prime \prime } } \mathrm { \bf ~ w h e r e ~ } f ^ { \prime \prime } < f
93
+ $$
94
+
95
+ After this $H ^ { \prime \prime }$ is again passed through a second Fully Connected Neural Network Layer $( F C L ^ { 2 } )$ to obtain $H ^ { \prime }$ as:
96
+
97
+ $$
98
+ \pmb { H } ^ { \prime } = F C L ^ { 2 } ( \pmb { H } ^ { \prime \prime } ) \in \mathbb { R } ^ { n \times \textit { f } ^ { \prime } } \mathrm { w h e r e } \ f ^ { \prime } < f ^ { \prime \prime }
99
+ $$
100
+
101
+ Finally the graph representation $h _ { G }$ is obtained as:
102
+
103
+ $$
104
+ \pmb { h } _ { G } = \mathrm { F l a t t e n } ( \pmb { H } ^ { \prime T } \pmb { H } ^ { \prime } ) \in \mathbb { R } ^ { f ^ { 2 } \times 1 }
105
+ $$
106
+
107
+ where $H ^ { \prime T }$ denotes the transpose of $H ^ { \prime }$ .
108
+
109
+ Intuition: The $F C L ^ { 1 }$ performs the role of reducing the dimensionality of the input node representations. The trainable parameters of this $F C L ^ { 1 }$ can be thought of as learning a mapping from the $f$ to the $f ^ { \prime \prime }$ -dimensional space. The $F C L ^ { 2 }$ further reduces the $f ^ { \prime \prime }$ -dimensional node representations to a $f ^ { \prime }$ dimensional representation. $\pmb { H } ^ { \prime } \in \mathbb { R } ^ { n \times \textit { f } ^ { \prime } }$ can be viewed as $H ^ { \prime } = [ l _ { 1 } , l _ { 2 } , \dots \dots , l _ { f ^ { \prime } } ]$ , where $\boldsymbol { l } _ { j } \in \mathbb { R } ^ { n }$ , $j { = } 1 , 2 , . . . , f ^ { \prime }$ . The vector $l _ { j }$ encodes the spatial distribution of the $j$ -th feature in the graph. Based on this view, ${ \pmb { H } } ^ { \prime T } { \pmb { H } } ^ { \prime }$ is able to capture the topology information.
110
+
111
+ Similar to the previous method, Neural Pooling Method 2 satisfies both the conditions of graph pooling which is that it always outputs an $f ^ { \prime 2 }$ -dimensional graph representation for $H \in \mathbb { R } ^ { \breve { n } \times ^ { \bullet } } $ , regardless of the value of $n$ . It is also invariant to permutation so that it outputs the same graph representation when the order of rows of $\pmb { H }$ changes.
112
+
113
+ # 4 EXPERIMENTAL SETUP
114
+
115
+ We perform experiments on graph classification tasks in the bio-informatics and social network domains to demonstrate the effectiveness and superiority of our proposed methods, namely Neural Pooling Methods 1 and 2. Details of datasets and parameter settings are described below.
116
+
117
+ # 4.1 DATASETS
118
+
119
+ We use nine graph classification datasets from (Yanardag & Vishwanathan, 2015), including four bioinformatics datasets and five social network datasets. Only bioinformatics datasets come with node labels. For the social network datasets, we use one-hot encoding of node degrees as features. The details of the datasets are summarized in Table 1 and Table 2.
120
+
121
+ • MUTAG (Debnath et al., 1991) is a bioinformatics dataset of 188 graphs representing nitro compounds. The task is to classify each graph by determining whether the compound is mutagenic aromatic or heteroaromatic.
122
+ • PTC (Toivonen et al., 2003) is a bioinformatics dataset of 344 graphs representing chemical compounds. Each node comes with one of 19 discrete node labels. The task is to predict the rodent carcinogenicity for each graph.
123
+ PROTEINS (Borgwardt et al., 2005) is a bioinformatics dataset of 1,113 graph structures of proteins. Nodes in the graphs refer to secondary structure elements (SSEs) and have discrete node labels indicating whether they represent a helix, sheet or turn. And edges mean that two nodes are neighbors along the amino-acid sequence or in space. The task is to predict the protein function for each graph.
124
+ NCI1 (Wale et al., 2008) is a bioinformatics dataset of 4,110 graphs representing chemical compounds. The graph classification label is decided by anti-cancer screens for ability to suppress or inhibit the growth of a panel of human tumor cell lines.
125
+ • COLLAB is a scientific collaboration dataset of 5,000 graphs corresponding to egonetworks.The dataset is derived from 3 public collaboration datasets (Leskovec et al., 2005). Each ego-network contains different researchers from each field and is labeled by the corresponding field. The three fields are High Energy Physics, Condensed Matter Physics, and Astro Physics.
126
+ IMDB-BINARY is a movie collaboration dataset of 1,000 graphs representing egonetworks for actors/actresses. The dataset is derived from collaboration graphs on Action and Romance genres. In each graph, nodes represent actors/actresses and edges simply mean they collaborate the same movie. The graphs are labeled by the corresponding genre and the task is to identify the genre for each graph.
127
+ IMDB-MULTI is multi-class version of IMDB-BINARY. It contains 1,500 ego-networks and has three extra genres, namely, Comedy, Romance and Sci-Fi.
128
+ • REDDIT-BINARY is a dataset of 2,000 graphs where each graph represents an online discussion thread. Nodes in a graph correspond to users appearing in the corresponding discussion thread and an edge means that one user responded to another. TrollXChromosomes and atheism are discussion-based subreddits, forming two classes to be classified.
129
+
130
+ Table 1: Details of bioinformatics datasets
131
+
132
+ <table><tr><td>Name</td><td>MUTAG</td><td>PTC PROTEINS</td><td>NCI1</td></tr><tr><td># graphs</td><td>188 344</td><td>1113</td><td>4110</td></tr><tr><td># classes</td><td>2 2</td><td>2</td><td>2</td></tr><tr><td># nodes(max)</td><td>28 109</td><td>620</td><td>111</td></tr><tr><td># nodes(avg.)</td><td>18.0 25.6</td><td>39.1</td><td>29.9</td></tr></table>
133
+
134
+ Table 2: Details of social network datasets
135
+
136
+ <table><tr><td>Name</td><td>COLLAB IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M5K</td></tr><tr><td># graphs</td><td>5000 1000</td><td>1500</td><td>2000</td><td>5000</td></tr><tr><td># classes</td><td>3 2</td><td>3</td><td>2</td><td>5</td></tr><tr><td># nodes(max)</td><td>492 136</td><td>89</td><td>3783</td><td>3783</td></tr><tr><td># nodes(avg.)</td><td>74.5 19.8</td><td>13.0</td><td>429.6</td><td>508.5</td></tr></table>
137
+
138
+ • REDDIT-MULTI5K is a similar dataset as REDDIT- BINARY, which contains 5,000 graphs. The difference lies in that REDDIT-MULTI5K crawled data from five different subreddits, namely, worldnews, videos, AdviceAnimals, aww and mildlyinteresting. And the task is to identify the subreddit of each graph instead of determining the type of subreddits.
139
+
140
+ # 4.2 TRAINING AND EVALUATION
141
+
142
+ Following (Yanardag & Vishwanathan, 2015; Niepert et al., 2016), model performance is evaluated using 10-fold cross-validation and reported as the average and standard deviation of validation accuracies across the 10 folds. For GNNs, we follow the same training process in (Xu et al., 2019). The GNN has 5 layers. Each multi-layer perceptron (MLP) has 2 layers with batch normalization (Ioffe & Szegedy, 2015). Dropout (Srivastava et al., 2014) is applied in the classifiers. The Adam (Kingma & Ba, 2015) optimizer is used with the learning rate initialized as 0.01 and decayed by 0.5 every 50 epochs. The number of total epochs is selected according to the best cross-validation accuracy. We tune the number of hidden units (16, 32, 64) and the batch size (32, 128) using grid search.
143
+
144
+ # 4.3 BASELINES
145
+
146
+ We compare our methods with various other graph pooling methods on the graph classification task, including DIFFPOOL (Ying et al., 2018), SORT-POOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), SAGPOOL (Lee et al., 2019), and EIGEN-POOL (Ma et al., 2019b). DIFFPOOL maps nodes to a pre-defined number of clusters but is hard to train. EIGENPOOL involves the computation of eigenvectors, which is slow and expensive. SORTPOOL, SAGPOOL and TOPKPOOL rely on the top-K sorting to select a fixed number (K) of nodes and order them, during which the information from unselected nodes is discarded. We also compare with some recent methods including COVPOOL (Wang et al., 2019a), ATTNPOOL (Girdhar & Ramanan, 2017) as well as second order pooling methods $\mathbf { S O P o o l } _ { b i m a p }$ and SOPoolattention (Wang & Ji, 2020).
147
+
148
+ # 5 RESULTS & DISCUSSION
149
+
150
+ The results of our experiments are summarized in Table 3 and Table 4 .From the results we can see that our methods lead to an improvement in classification accuracy over existing methods and are also more reliable as compared previous works as observed from the lower values of standard deviation.This enhancement in performance is consistent across all the datasets. The results may be attributed to the fact that compared to existing graph pooling methods, our pooling methods are able to use information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn from underlying data, making them more powerful. The Neural Pooling methods utilize the ability of neural networks to learn the topological structure as well as correlation among the node representations in, capturing essential features and connections between underlying data.
151
+
152
+ Table 3: Comparison results of our proposed methods with other graph pooling methods on bioinformatics datasets. Results shown are the average classification accuracy and standard deviation across 10-fold cross-validation.
153
+
154
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>PTC</td><td rowspan=1 colspan=1>PROTEINS</td><td rowspan=1 colspan=1>MUTAG</td><td rowspan=1 colspan=1>NCI1</td></tr><tr><td rowspan=1 colspan=1>SUM/AVG(Xu et al., 2019)</td><td rowspan=1 colspan=1>64.6 ± 7.0</td><td rowspan=1 colspan=1>76.2 ± 2.8</td><td rowspan=1 colspan=1>89.4 ±5.6</td><td rowspan=1 colspan=1>82.7 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>DIFFPOOL(Ying et al., 2018)</td><td rowspan=1 colspan=1>66.1 ± 7.7</td><td rowspan=1 colspan=1>78.8± 3.1</td><td rowspan=1 colspan=1>94.8± 4.8</td><td rowspan=1 colspan=1>76.6 ± 1.3</td></tr><tr><td rowspan=1 colspan=1>SORTPOOL(Zhang et al., 2018)</td><td rowspan=1 colspan=1>69.5± 6.3</td><td rowspan=1 colspan=1>79.2 ± 3.0</td><td rowspan=1 colspan=1>95.2 ± 3.9</td><td rowspan=1 colspan=1>78.9 ± 2.7</td></tr><tr><td rowspan=1 colspan=1>TOPKPOOL(Gao &amp; Ji, 2019)</td><td rowspan=1 colspan=1>68.4 ± 6.4</td><td rowspan=1 colspan=1>79.1 ± 2.2</td><td rowspan=1 colspan=1>94.7± 3.5</td><td rowspan=1 colspan=1>79.6 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>SAGPOOL(Lee et al., 2019)</td><td rowspan=1 colspan=1>69.0 ± 6.6</td><td rowspan=1 colspan=1>78.4± 3.1</td><td rowspan=1 colspan=1>93.9 ± 3.3</td><td rowspan=1 colspan=1>79.0 ± 2.8</td></tr><tr><td rowspan=1 colspan=1>ATTNPOOL(Girdhar &amp; Ramanan, 2017)</td><td rowspan=1 colspan=1>71.2± 8.0</td><td rowspan=1 colspan=1>77.5± 3.3</td><td rowspan=1 colspan=1>93.2± 5.8</td><td rowspan=1 colspan=1>80.6± 2.1</td></tr><tr><td rowspan=1 colspan=1>EIGENPOOL(Ma et al.,2019b)</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>76.6± 2.3</td><td rowspan=1 colspan=1>80.6± 4.3</td><td rowspan=1 colspan=1>77.0 ± 2.3</td></tr><tr><td rowspan=1 colspan=1>COVPOOL(Wang et al.,2019a)</td><td rowspan=1 colspan=1>73.3 ± 5.1</td><td rowspan=1 colspan=1>80.1 ± 2.2</td><td rowspan=1 colspan=1>95.3 ± 3.7</td><td rowspan=1 colspan=1>83.5 ± 1.9</td></tr><tr><td rowspan=1 colspan=1>SOPOOLattn(Wang &amp; Ji, 2020)</td><td rowspan=1 colspan=1>72.9 ± 6.2</td><td rowspan=1 colspan=1>79.4 ± 3.2</td><td rowspan=1 colspan=1>93.6 ± 4.1</td><td rowspan=1 colspan=1>82.8± 1.4</td></tr><tr><td rowspan=1 colspan=1> SOPOOLbimap(Wang &amp; Ji, 2020)</td><td rowspan=1 colspan=1>75.0 ± 4.3</td><td rowspan=1 colspan=1>80.1 ± 2.7</td><td rowspan=1 colspan=1>95.3 ± 4.4</td><td rowspan=1 colspan=1>83.6 ± 1.4</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 1(ours)</td><td rowspan=1 colspan=1>74.5 ± 3.7</td><td rowspan=1 colspan=1>80.6 ± 2.7</td><td rowspan=1 colspan=1>94.0 ± 2.3</td><td rowspan=1 colspan=1>83.1 ± 1.2</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 2(ours)</td><td rowspan=1 colspan=1>76.2 ± 4.2</td><td rowspan=1 colspan=1>79.6± 3.0</td><td rowspan=1 colspan=1>95.5 ± 2.4</td><td rowspan=1 colspan=1>83.4 ± 1.9</td></tr></table>
155
+
156
+ Table 4: Comparison results of our proposed methods with other graph pooling methods on social network datsets. Results shown are the average classification accuracy and standard deviation across 10-fold cross-validation.
157
+
158
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>COLLAB</td><td rowspan=1 colspan=1>RDT-B</td><td rowspan=1 colspan=1>IMDB-B</td><td rowspan=1 colspan=1>IMDB-M</td><td rowspan=1 colspan=1>RDT-M5K</td></tr><tr><td rowspan=1 colspan=1> SUM/AVG</td><td rowspan=1 colspan=1>80.2 ± 1.9</td><td rowspan=1 colspan=1>92.4 ± 2.5</td><td rowspan=1 colspan=1>75.1 ± 5.1</td><td rowspan=1 colspan=1>52.3 ± 2.8</td><td rowspan=1 colspan=1>57.5 ± 1.5</td></tr><tr><td rowspan=1 colspan=1>DIFFPOOL</td><td rowspan=1 colspan=1>75.3 ± 2.2</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>74.4 ± 4.0</td><td rowspan=1 colspan=1>50.1 ± 3.2</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>SORTPOOL</td><td rowspan=1 colspan=1>78.2 ± 1.6</td><td rowspan=1 colspan=1>81.6 ± 4.6</td><td rowspan=1 colspan=1>77.5± 2.7</td><td rowspan=1 colspan=1>53.1 ± 2.9</td><td rowspan=1 colspan=1>48.4± 4.8</td></tr><tr><td rowspan=1 colspan=1>TOPKPOOL</td><td rowspan=1 colspan=1>79.6 ± 2.1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>77.8 ± 5.1</td><td rowspan=1 colspan=1>53.7 ± 2.8</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>SAGPOOL</td><td rowspan=1 colspan=1>78.9 ± 1.7</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>77.8 ± 2.9</td><td rowspan=1 colspan=1>53.1 ± 2.8</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>ATTNPOOL</td><td rowspan=1 colspan=1>81.8± 2.2</td><td rowspan=1 colspan=1>92.5± 2.3</td><td rowspan=1 colspan=1>77.1 ± 4.4</td><td rowspan=1 colspan=1>53.8 ± 2.5</td><td rowspan=1 colspan=1>57.9 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>COVPOOL</td><td rowspan=1 colspan=1>79.3 ± 1.8</td><td rowspan=1 colspan=1>90.3± 3.6</td><td rowspan=1 colspan=1>72.1± 5.1</td><td rowspan=1 colspan=1>47.8 ± 2.7</td><td rowspan=1 colspan=1>58.4±1.7</td></tr><tr><td rowspan=1 colspan=1>SOPOOLattn</td><td rowspan=1 colspan=1>81.1 ± 1.8</td><td rowspan=1 colspan=1>91.7 ± 2.7</td><td rowspan=1 colspan=1>78.1 ± 4.0</td><td rowspan=1 colspan=1>54.3± 2.6</td><td rowspan=1 colspan=1>58.3 ± 1.4</td></tr><tr><td rowspan=1 colspan=1>SOPOOLbimap</td><td rowspan=1 colspan=1>79.9 ± 1.9</td><td rowspan=1 colspan=1>89.6±3.3</td><td rowspan=1 colspan=1>78.4± 4.7</td><td rowspan=1 colspan=1>54.6± 3.6</td><td rowspan=1 colspan=1>58.4 ± 1.6</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 1(ours)</td><td rowspan=1 colspan=1>80.5± 1.5</td><td rowspan=1 colspan=1>90.6± 2.3</td><td rowspan=1 colspan=1>79.0 ± 2.3</td><td rowspan=1 colspan=1>55.1± 2.2</td><td rowspan=1 colspan=1>58.5 ± 1.8</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 2(ours)</td><td rowspan=1 colspan=1>81.0 ± 1.7</td><td rowspan=1 colspan=1>91.5 ± 3.0</td><td rowspan=1 colspan=1>78.5 ± 2.4</td><td rowspan=1 colspan=1>54.4 ± 1.9</td><td rowspan=1 colspan=1>59.1 ± 1.4</td></tr></table>
159
+
160
+ # 6 COMPLEXITY
161
+
162
+ Consider a graph $\mathcal { G } = ( A , X )$ represented by its adjacency matrix $\pmb { A } \in \{ 0 , 1 \} ^ { n \times n }$ and node feature matrix $\ b { X } \in \ b { \mathbb { R } ^ { n } } \times \ b { d }$ , where $n$ is the number of nodes in $\mathcal { G }$ and $d$ is the dimension of node features. Consider, $H = [ h _ { 1 } , h _ { 2 }$ , ........., $\pmb { h } _ { n } ] ^ { T } = \mathbf { G } \mathbf { N } \mathbf { N } ( \pmb { A } , \pmb { X } ) \in \mathbb { R } ^ { n \times \pmb { f } }$ where rows of $\pmb { H }$ , $\boldsymbol { h } _ { i } \in \mathbb { R } ^ { f }$ , $i$ $= 1 , 2 , . . . , n$ , are representations of $n$ nodes. Consider a direct application of second-order graph pooling to obtain the graph representation $h _ { G }$ as:
163
+
164
+ $$
165
+ \pmb { h } _ { G } = \mathrm { F l a t t e n } ( \pmb { H } ^ { T } \pmb { H } ) \in \mathbb { R } ^ { f ^ { 2 } \times 1 }
166
+ $$
167
+
168
+ where $H ^ { T }$ denotes the transpose of $\pmb { H }$
169
+
170
+ However, it causes an explosion in the number of training parameters in the following classifier when $f$ is large, making the learning process harder to converge and easier to overfit. While each layer in a GNN usually has outputs with a small number of hidden units (e.g. 16, 32, 64), it has been pointed out that graph representation learning benefits from using information from outputs of all layers, obtaining better performance and generalization ability. It is usually achieved by concatenating outputs across all layers in a GNN. In this case, $\pmb { H }$ has a large final $f$ , making direct use of secondorder pooling infeasible. For example, if a GNN has 5 layers and each layer’s outputs have 32 hidden units, $f$ becomes $3 2 \times 5 = 1 6 0$ . Suppose $h _ { G }$ is sent into a 1-layer fully-connected classifier for $c$ graph categories in a graph classification task. It results in $1 6 0 ^ { \dot { 2 } } c = 2 \dot { 5 } , 6 0 0 c$ training parameters, which is excessive. We omit the bias term for simplicity. On the other hand, both of our proposed novel graph pooling methods significantly reduce the number of training parameters. In the case of Neural Pooling Method 1, considering the previous example if $f ^ { \prime }$ is chosen to be 64, and $f$ is 160, then the total number of trainable parameters in the $2 ~ F C L s$ and a 1-layer fully-connected $c$ class classifier will be $( 1 6 0 \times 6 4 ) + 6 4 + 6 4 c = 1 0 , 3 0 4 + 6 4 c$ notably reducing the number of parameters as compared to 25, $6 0 0 c$ . In the case of Neural Pooling Method 2, if $f ^ { \prime \bar { \prime } }$ is chosen to be 64, $f ^ { \prime }$ as 32 and $f$ is 160, then the total number of trainable parameters in the $2 \ : F C L s$ and a 1-layer fully-connected $c$ class classifier will be $( 1 6 0 \times 6 4 ) + ( 6 4 \times 3 2 ) + 3 2 2 c = 1 2 , 2 8 8 + 1 0 2 4 c$ again reducing the number of parameters when compared to $2 5 , 6 0 0 c$ .
171
+
172
+ # 7 CONCLUSION
173
+
174
+ In this work, we propose to perform graph representation learning with Neural Pooling, by pointing out that Neural Pooling can naturally solve the challenges of graph pooling. Neural Pooling is more powerful than existing graph pooling methods, since it is capable of using all node information, collecting second-order statistics that encode feature correlations and topology information and leverage the ability of neural networks to learn from underlying data, making them more powerful. Our proposed methods solve the practical problems incurred by directly using second-order pooling with GNNs. To demonstrate the effectiveness and superiority of our methods, we perform experiments on graph classification tasks in the bio-informatics and social network domains to demonstrate the effectiveness and superiority of our proposed methods. Experimental results show that our methods improve the performance significantly and consistently. An interesting future work direction could be to extend our methods for hierarchical graph pooling, where the output is a is a pseudo graph with fewer nodes than the input graph. It is used to build hierarchical GNNs, where hierarchical graph pooling is used several times between GNN layers to gradually decrease the number of nodes.
175
+
176
+ # REFERENCES
177
+
178
+ KM Borgwardt, Stefan Schonauer, SVN Vishwanathan, Alexander Smola, and HP Kriegel. Protein ¨ function prediction via graph kernels. Bioinformatics, 21 Suppl 1:i47–56, 01 2005.
179
+
180
+ Y-Lan Boureau, Jean Ponce, and Yann LeCun. A theoretical analysis of feature pooling in visual recognition. In Johannes Furnkranz and Thorsten Joachims (eds.), ¨ Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 111–118, Haifa, Israel, June 2010. Omnipress. URL http://www.icml2010.org/papers/638.pdf.
181
+
182
+ Asim Kumar Debnath, Rosa L Lopez de Compadre, Gargi Debnath, Alan J Shusterman, and Corwin Hansch. Structure-activity relationship of mutagenic aromatic and heteroaromatic nitro compounds. correlation with molecular orbital energies and hydrophobicity. Journal of medicinal chemistry, 34(2):786–797, 1991.
183
+
184
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett (eds.), Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5- 10, 2016, Barcelona, Spain, pp. 3837–3845, 2016.
185
+
186
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2224–2232. Curran Associates, Inc., 2015.
187
+
188
+ Wenqi Fan, Yao Ma, Qing Li, Yuan He, Eric Zhao, Jiliang Tang, and Dawei Yin. Graph neural networks for social recommendation. In The World Wide Web Conference, WWW ’19, pp. 417–426, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450366748. doi: 10.1145/3308558.3313488. URL https://doi.org/10.1145/3308558.3313488.
189
+
190
+ Hongchang Gao, Jian Pei, and Heng Huang. Conditional random field enhanced graph convolutional neural networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD ’19, pp. 276–284, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450362016. doi: 10.1145/3292500.3330888. URL https://doi.org/10.1145/3292500.3330888.
191
+
192
+ Hongyang Gao and Shuiwang Ji. Graph u-nets. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9- 15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 2083–2092. PMLR, 2019. URL http://proceedings.mlr.press/v97/ gao19a.html.
193
+
194
+ Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pp. 1263–1272. PMLR, 2017. URL http://proceedings.mlr.press/v70/gilmer17a.html.
195
+
196
+ Rohit Girdhar and Deva Ramanan. Attentional pooling for action recognition. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett (eds.), Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pp. 34–45, 2017. URL http://papers.nips.cc/paper/ 6609-attentional-pooling-for-action-recognition.
197
+
198
+ Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 1024–1034. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 6703-inductive-representation-learning-on-large-graphs.pdf.
199
+
200
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis R. Bach and David M. Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pp. 448–456. JMLR.org, 2015. URL http://proceedings.mlr.press/v37/ioffe15.html.
201
+
202
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http: //arxiv.org/abs/1412.6980.
203
+
204
+ Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https: //openreview.net/forum?id $=$ SJU4ayYgl.
205
+
206
+ Junhyun Lee, Inyeop Lee, and Jaewoo Kang. Self-attention graph pooling. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 3734–3743. PMLR, 2019. URL http://proceedings. mlr.press/v97/lee19c.html.
207
+
208
+ Jure Leskovec, Jon Kleinberg, and Christos Faloutsos. Graphs over time: densification laws, shrinking diameters and possible explanations. In Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining, pp. 177–187, 2005.
209
+
210
+ Jianxin Ma, Peng Cui, Kun Kuang, Xin Wang, and Wenwu Zhu. Disentangled graph convolutional networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 4212–4221. PMLR, 2019a. URL http://proceedings.mlr.press/v97/ma19a.html.
211
+
212
+ Yao Ma, Suhang Wang, Charu C. Aggarwal, and Jiliang Tang. Graph convolutional networks with eigenpooling. KDD ’19, pp. 723–731, New York, NY, USA, 2019b. Association for Computing Machinery. ISBN 9781450362016. doi: 10.1145/3292500.3330982. URL https://doi. org/10.1145/3292500.3330982.
213
+
214
+ Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In Maria-Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pp. 2014–2023. JMLR.org, 2016. URL http://proceedings.mlr.press/v48/niepert16.html.
215
+
216
+ Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1): 1929–1958, 2014. URL http://dl.acm.org/citation.cfm?id=2670313.
217
+
218
+ Hannu Toivonen, Ashwin Srinivasan, Ross D. King, Stefan Kramer, and Christoph Helma. Statistical evaluation of the Predictive Toxicology Challenge 2000–2001. Bioinformatics, 19(10): 1183–1193, 07 2003. ISSN 1367-4803. doi: 10.1093/bioinformatics/btg130. URL https: //doi.org/10.1093/bioinformatics/btg130.
219
+
220
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \` Bengio. Graph attention networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ rJXMpikCZ.
221
+
222
+ Nikil Wale, Ian A Watson, and George Karypis. Comparison of descriptor spaces for chemical compound retrieval and classification. Knowledge and Information Systems, 14(3):347–375, 2008.
223
+
224
+ Qilong Wang, Jiangtao Xie, Wangmeng Zuo, Lei Zhang, and Peihua Li. Deep cnns meet global covariance pooling: Better representation and generalization. CoRR, abs/1904.06836, 2019a. URL http://arxiv.org/abs/1904.06836.
225
+
226
+ Xiao Wang, Houye Ji, Chuan Shi, Bai Wang, Yanfang Ye, Peng Cui, and Philip S Yu. Heterogeneous graph attention network. In The World Wide Web Conference, WWW ’19, pp. 2022–2032, New York, NY, USA, 2019b. Association for Computing Machinery. ISBN 9781450366748. doi: 10.1145/3308558.3313562. URL https://doi.org/10.1145/3308558.3313562.
227
+
228
+ Z. Wang and S. Ji. Second-order pooling for graph neural networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
229
+
230
+ Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In Jennifer G. Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on
231
+
232
+ Machine Learning, ICML 2018, Stockholmsmassan, Stockholm, Sweden, July 10-15, 2018 ¨ , volume 80 of Proceedings of Machine Learning Research, pp. 5449–5458. PMLR, 2018. URL http://proceedings.mlr.press/v80/xu18c.html.
233
+
234
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $=$ ryGs6iA5Km.
235
+
236
+ Pinar Yanardag and S.V.N. Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’15, pp. 1365–1374, New York, NY, USA, 2015. Association for Computing Machinery. ISBN 9781450336642. doi: 10.1145/2783258.2783417. URL https://doi.org/10.1145/ 2783258.2783417.
237
+
238
+ Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, William L. Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolo Cesa-Bianchi, and Roman Garnett (eds.), \` Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, 3-8 December 2018, Montreal, Canada ´ , pp. 4805–4815, 2018.
239
+
240
+ Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning architecture for graph classification. AAAI, 2018.
parse/train/UEtNMTl6yN/UEtNMTl6yN_content_list.json ADDED
@@ -0,0 +1,1232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "NEURAL POOLING FOR GRAPH NEURAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 803,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 398,
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": "Tasks such as graph classification, require graph pooling to learn graph-level representations from constituent node representations. In this work, we propose two novel methods using fully connected neural network layers for graph pooling, namely Neural Pooling Method 1 and 2. Our proposed methods have the ability to handle variable number of nodes in different graphs, and are also invariant to the isomorphic structures of graphs. In addition, compared to existing graph pooling methods, our proposed methods are able to capture information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn relationships among node representations, making them more powerful. We perform experiments on graph classification tasks in the bio-informatics and social network domains to determine the effectiveness of our proposed methods. Experimental results show that our methods lead to an absolute increase of upto $1 . 2 \\%$ in classification accuracy over previous works and a general decrease in standard deviation across multiple runs indicating greater reliability. Experimental results also indicate that this improvement in performance is consistent across several datasets. ",
40
+ "bbox": [
41
+ 233,
42
+ 244,
43
+ 764,
44
+ 465
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 500,
55
+ 334,
56
+ 516
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Over the past several years, there is a growing number of applications where data is generated from non-Euclidean domains and is represented as graphs with complex relationships and interdependency between entities. Deep learning generalised from grid-like data to the graph domain has led to the development of the remarkably successful Graph Neural Networks (GNNs) (Fan et al., 2019; Gao et al., 2019; Ma et al., $2 0 1 9 \\mathrm { a }$ ; Wang et al., 2019b) and its numerous variants such the Graph Convolutional Network (GCN) (Kipf & Welling, 2017), GraphSAGE (Hamilton et al., 2017), graph attention network (GAT) (Velickovi ˇ c et al., 2018), jumping knowledge network (JK) (Xu et al., ´ 2018), and graph isomorphism networks (GINs) (Xu et al., 2019), etc. ",
63
+ "bbox": [
64
+ 174,
65
+ 535,
66
+ 825,
67
+ 646
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Pooling is a common operation in deep learning on grid-like data, such as images. Pooling layers provide an approach to down sampling feature maps by summarizing the presence of features in patches of the feature map. It reduces dimensionality and also provides local translational invariance. In the case of graph data, pooling is used to obtain a representation of a graph using its constituent node representations. However, it is challenging to develop graph pooling methods due to the some special properties of graph data such as the variable number of nodes in different graphs and the isomorphic structures of graphs. Firstly, the number of nodes varies in different graphs, while the graph representations are usually required to have the same fixed size to fit into other downstream machine learning models where they are used for tasks such as classification. Therefore, graph pooling should be capable of handling the variable number of node representations as inputs and producing fixed-sized graph representations. Secondly, unlike images and texts where we can order pixels and words according to the spatial structural information, there is no inherent ordering relationship among nodes in graphs. Therefore, isomorphic graphs should have the same graph representation, and hence, graph pooling should give the same output by taking node representations in any order as inputs. ",
74
+ "bbox": [
75
+ 174,
76
+ 654,
77
+ 825,
78
+ 861
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Our main contributions in this work are two novel graph pooling methods, Neural Pooling Method 1 and 2. These new pooling methods allow us to do the following,i) produce the same dimensional graph representation for graphs with variable number of nodes, ii) remain invariant to the isomorphic structures of graphs, iii) collect second- order statistics, iv) leverage trainable parameters in the form of fully connected neural networks to learn relationships between underlying node representations to generate high quality graph representations which are then used for graph classification tasks. ",
85
+ "bbox": [
86
+ 176,
87
+ 868,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 171,
98
+ 103,
99
+ 823,
100
+ 132
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Experiments are performed on four benchmark bio-informatics datasets and five popular social network datasets to demonstrate the effectiveness and superiority of our proposed graph pooling methods. Experimental results show that our methods lead to an improvement in classification accuracy over existing methods and are also more reliable as compared to previous works. ",
107
+ "bbox": [
108
+ 174,
109
+ 138,
110
+ 823,
111
+ 194
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 231,
122
+ 344,
123
+ 247
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "2.1 GRAPH NEURAL NETWORKS ",
130
+ "text_level": 1,
131
+ "bbox": [
132
+ 176,
133
+ 271,
134
+ 415,
135
+ 286
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "A graph can be represented by its adjacency matrix and node features. Formally, for a graph $\\mathcal { G }$ consisting of $n$ nodes, its topology information can be represented by an adjacency matrix ${ \\pmb A } \\in$ $\\{ 0 , 1 \\} ^ { n \\times n }$ and the node features can be represented as $\\dot { \\boldsymbol { X } } \\in \\mathbb { R } ^ { n \\times d }$ , assuming each node has a d-dimensional feature vector. GNNs learn feature representations for different nodes using these matrices (Gilmer et al., 2017). Several approaches are proposed to investigate deep GNNs, and they generally follow a neighborhood information aggregation scheme (Gilmer et al., 2017; Xu et al., 2019; Kipf & Welling, 2017; Hamilton et al., 2017; Velickovi ˇ c et al., 2018). In each step, ´ the representation of a node is updated by aggregating the representations of its neighbors. Graph Convolutional Networks (GCNs) are popular variants of GNNs and inspired by the first order graph Laplacian methods (Kipf & Welling, 2017). Graph pooling is used to connect embedded graphs outputted by GNN layers with classifiers for graph classification. Given a graph, GNN layers produce node representations, where each node is embedded as a vector. Graph pooling is applied after GNN layers to process node representations into a single feature vector as the graph representation. A classifier takes the graph representation and performs graph classification. ",
142
+ "bbox": [
143
+ 174,
144
+ 304,
145
+ 825,
146
+ 498
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "2.2 GRAPH POOLING ",
153
+ "text_level": 1,
154
+ "bbox": [
155
+ 176,
156
+ 531,
157
+ 334,
158
+ 545
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "Early studies employ simple methods such as averaging and summation as graph pooling (Xu et al., 2019; Duvenaud et al., 2015; Defferrard et al., 2016). However, averaging and summation do not capture the feature correlation information, curtailing the overall model performance (Zhang et al., 2018). Other studies have proposed advanced graph pooling methods, including DIFFPOOL (Ying et al., 2018), SORT-POOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), SAGPOOL (Lee et al., 2019), and EIGENPOOL (Ma et al., 2019b), and achieve great performance on multiple benchmark datasets. EIGENPOOL involves the computation of eigenvectors, which is slow and expensive. DIFFPOOL (Ying et al., 2018) treats the graph pooling as a node clustering problem. A cluster of nodes from the original graph are merged to form a new node in the new graph. DIFFPOOL (Ying et al., 2018) proposes to perform the graph convolution operation on node features to obtain node clustering assignment matrix. Intuitively, the class assignment of a given node should depend on the class assignments of other neighbouring nodes. However, DIFFPOOL does not explicitly consider high-order structural relationships, which we that are important for graph pooling. SORTPOOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), and SAGPOOL (Lee et al., 2019) learn to select important nodes from the original graph and use these nodes to build a new graph. They share the similar idea to learn a sorting vector based on node representations, which indicates the importance of different nodes. Then only the top $\\mathrm { k }$ important nodes are selected to form a new graph while the other nodes are ignored. However, the ignored nodes may contain important features and this information is lost during pooling. It is worth noting that all the graph pooling methods mentioned till now only collect first-order statistics (Boureau et al., 2010). A recent study has proposed second order graph pooling methods $S O P o o l _ { b i m a p }$ and $S O P o o l _ { a t t e n t i o n }$ (Wang & Ji, 2020). In this work, we propose two novel methods using fully connected neural network layers for graph pooling, namely Neural Pooling Method 1 and 2. Compared to existing graph pooling methods, our proposed methods are able to capture information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn relationships among node representations, making them more powerful. ",
165
+ "bbox": [
166
+ 174,
167
+ 564,
168
+ 825,
169
+ 922
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "3 METHODOLOGY ",
176
+ "text_level": 1,
177
+ "bbox": [
178
+ 176,
179
+ 102,
180
+ 341,
181
+ 118
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "3.1 PROPERTIES OF GRAPH POOLING",
188
+ "text_level": 1,
189
+ "bbox": [
190
+ 176,
191
+ 133,
192
+ 446,
193
+ 148
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Consider a graph $\\mathcal { G } = ( A , X )$ represented by its adjacency matrix $\\pmb { A } \\in \\{ 0 , 1 \\} ^ { n \\times n }$ and node feature matrix $\\ b { X } \\in \\mathbb { R } ^ { n \\times d }$ , where $n$ is the number of nodes in $\\mathcal { G }$ and $d$ is the dimension of node features. The node features may come from node labels or node degrees. Graph neural networks are known to be powerful in learning good node representation matrix $\\pmb { H }$ from $\\pmb { A }$ and $\\boldsymbol { X }$ : ",
200
+ "bbox": [
201
+ 173,
202
+ 160,
203
+ 825,
204
+ 217
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "equation",
210
+ "img_path": "images/038c8421976545f4c394f0bd38d2dbe4d50f6c75e97819249c5dfcc8210f641a.jpg",
211
+ "text": "$$\n\\pmb { H } = [ h _ { 1 } , h _ { 2 } , . . . . . . . . . , h _ { n } ] ^ { T } = \\mathbf { G } \\mathbf { N } \\mathbf { N } ( \\pmb { A } , \\pmb { X } ) \\in \\mathbb { R } ^ { n \\times \\textit { f } }\n$$",
212
+ "text_format": "latex",
213
+ "bbox": [
214
+ 334,
215
+ 222,
216
+ 679,
217
+ 239
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "where rows of $H , h _ { i } \\in \\mathbb { R } ^ { f } , i = 1 , 2 , . . . , n$ , are representations of $n$ nodes, and $f$ is the dimension of the node representation obtained from the GNN and depends on the architecture of the GNN. The task that we focus on in this work is to obtain a graph representation vector $_ { h _ { G } }$ from $\\pmb { H }$ , which is then fed into a classifier to perform graph classification: ",
224
+ "bbox": [
225
+ 173,
226
+ 244,
227
+ 825,
228
+ 301
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "equation",
234
+ "img_path": "images/be98070400f4364e5125405225699dd7a32524da295cf637b39c2f853fbb0fdc.jpg",
235
+ "text": "$$\nh _ { G } = \\operatorname { g } ( [ A ] , H ) \\in \\mathbb { R } ^ { c }\n$$",
236
+ "text_format": "latex",
237
+ "bbox": [
238
+ 428,
239
+ 308,
240
+ 578,
241
+ 324
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "where $\\mathrm { g } ( \\cdot )$ is the graph pooling function and $c$ is the dimension of $_ { h _ { G } }$ . Here, $[ A ]$ means that the information from $\\pmb { A }$ can be optionally used in graph pooling. For simplicity, we omit it in the following discussion. ",
248
+ "bbox": [
249
+ 176,
250
+ 329,
251
+ 825,
252
+ 372
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "Note that the function $\\mathrm { g } ( \\cdot )$ must satisfy two requirements to serve as graph pooling. First, $\\mathrm { g } ( \\cdot )$ should be able to take $\\pmb { H }$ with variable number of rows as the inputs and produce fixed-sized outputs. Specifically, different graphs may have different number of nodes, which means that $n$ is a variable. On the other hand, $c$ , which is the dimension of the graph representation $_ { h _ { G } }$ is supposed to be fixed to fit into the classifier. Second, $\\mathrm { g } ( \\cdot )$ should output the same $_ { h _ { G } }$ when the order of rows of $\\pmb { H }$ changes. This permutation invariance property is necessary to handle isomorphic graphs. To be concrete, if two graph $\\mathcal { G } _ { 1 } = ( A _ { 1 } , X _ { 1 } )$ and $\\mathcal { G } _ { 2 } = ( A _ { 2 } , X _ { 2 } )$ are isomorphic, GNNs will output the same multi set of node representations. That is, there exists a permutation matrix $P \\in \\{ 0 , \\bar { 1 } \\bar \\} ^ { n \\times n }$ such that $H _ { 1 } = P H _ { 2 }$ , for $\\pmb { H } _ { 1 } = \\mathbf { G } \\mathbf { N } \\mathbf { N } ( \\pmb { A } _ { 1 } , \\pmb { X } _ { 1 } )$ and $H _ { 2 } = \\mathrm { G N N } ( A _ { 2 } , X _ { 2 } )$ . However, the graph representation computed by $\\mathrm { g } ( \\cdot )$ should be the same, i.e., $\\begin{array} { r } { \\mathrm { g } ( \\pmb { H } _ { 1 } ) = \\mathrm { g } ( \\pmb { H } _ { 2 } ) } \\end{array}$ if ${ \\cal H } _ { 1 } = { \\cal P } { \\cal H } _ { 2 }$ . ",
259
+ "bbox": [
260
+ 173,
261
+ 378,
262
+ 825,
263
+ 518
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "3.2 NEURAL POOLING METHOD 1 ",
270
+ "text_level": 1,
271
+ "bbox": [
272
+ 176,
273
+ 536,
274
+ 421,
275
+ 550
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "Our first proposed method is called Neural Pooling Method 1. Consider a node representation matrix $\\pmb { H }$ obtained following Equation 1 in Section 3.1. ",
282
+ "bbox": [
283
+ 173,
284
+ 563,
285
+ 825,
286
+ 592
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "image",
292
+ "img_path": "images/4a464ce1dec9d058abdf8c5f8e85f74243f223cbe400ccb32842325b50311b2a.jpg",
293
+ "image_caption": [
294
+ "Figure 1: Illustration of our proposed Neural Pooling Method 1. This is an example for a graph $\\mathcal { G }$ with 8 nodes. GNNs can learn representations for each node and graph pooling processes node representations into a graph representation vector. "
295
+ ],
296
+ "image_footnote": [],
297
+ "bbox": [
298
+ 173,
299
+ 606,
300
+ 821,
301
+ 776
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "$\\pmb { H }$ is passed through a Fully Connected Neural Network Layer $( F C L ^ { 1 } )$ to obtain $H ^ { \\prime }$ as: ",
308
+ "bbox": [
309
+ 173,
310
+ 849,
311
+ 754,
312
+ 866
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "equation",
318
+ "img_path": "images/afb9bc776dc6d353d908d7aa49441af8c96086e0f5d11dc6577ff3ec97d449c1.jpg",
319
+ "text": "$$\n\\pmb { H } ^ { \\prime } = F C L ^ { 1 } ( \\pmb { H } ) \\in \\mathbb { R } ^ { n \\times \\textit { f } ^ { \\prime } } \\mathrm { \\bf ~ w h e r e ~ } f ^ { \\prime } < f\n$$",
320
+ "text_format": "latex",
321
+ "bbox": [
322
+ 357,
323
+ 871,
324
+ 638,
325
+ 890
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "After this $H ^ { \\prime }$ is again passed through a second Fully Connected Neural Network Layer $( F C L ^ { 2 } )$ to obtain $Q$ as: ",
332
+ "bbox": [
333
+ 173,
334
+ 895,
335
+ 825,
336
+ 924
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "equation",
342
+ "img_path": "images/db9a17d042786f0794253023f537953d0679c744769e7e7a0bf295516cb76858.jpg",
343
+ "text": "$$\nQ = F C L ^ { 2 } ( H ^ { \\prime } ) \\in \\mathbb { R } ^ { n \\times 1 }\n$$",
344
+ "text_format": "latex",
345
+ "bbox": [
346
+ 405,
347
+ 102,
348
+ 581,
349
+ 119
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Finally the graph representation $h _ { G }$ is obtained as: ",
356
+ "bbox": [
357
+ 173,
358
+ 125,
359
+ 508,
360
+ 140
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "equation",
366
+ "img_path": "images/f027a5ab7d3356ee216a469dcb56f4346b6bc75e4a99975596751ecb5c2cd97c.jpg",
367
+ "text": "$$\n\\pmb { h } _ { G } = \\pmb { H } ^ { \\prime T } \\pmb { Q } \\in \\mathbb { R } ^ { f ^ { \\prime } \\times 1 }\n$$",
368
+ "text_format": "latex",
369
+ "bbox": [
370
+ 428,
371
+ 145,
372
+ 584,
373
+ 164
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "where $H ^ { \\prime T }$ denotes the transpose of $H ^ { \\prime }$ . ",
380
+ "bbox": [
381
+ 176,
382
+ 169,
383
+ 442,
384
+ 184
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Neural Pooling Method 1 always outputs an $f ^ { \\prime }$ -dimensional graph representation for $\\ b { H } \\in \\mathbb { R } ^ { n \\times f }$ , regardless of the value of $\\mathbf { n }$ . It is also invariant to permutation so that it outputs the same graph representation, even when the order of rows of $\\pmb { H }$ changes. ",
391
+ "bbox": [
392
+ 174,
393
+ 190,
394
+ 825,
395
+ 234
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "Intuition: The $F C L ^ { 1 }$ performs the role of reducing the dimensionality of the input node representations. The trainable parameters of this $F C L ^ { 1 }$ can be thought of as learning a mapping from the $f$ to the $f ^ { \\prime }$ -dimensional space. The $F C L ^ { 2 }$ reduces the $f ^ { \\prime }$ -dimensional node representations to a 1 dimensional representation, $Q$ . $\\pmb { H } ^ { \\prime } \\in \\mathbb { R } ^ { n \\times \\ f ^ { \\prime } }$ can be viewed as $H ^ { \\prime } = [ l _ { 1 } , l _ { 2 } , \\ldots \\ldots , l _ { f ^ { \\prime } } ] .$ , where $l _ { j }$ $\\in \\mathbb { R } ^ { n }$ , $j { = } 1 , 2 , . . . , f ^ { \\prime }$ . The vector $l _ { j }$ encodes the spatial distribution of the $j$ -th feature in the graph. Based on this view, $H ^ { \\prime T } \\pmb { Q }$ is able to capture the topology information and $Q$ can be thought of as roughly encoding the position of nodes by learning the weights according to which the $j$ -th feature is aggregated across the nodes. ",
402
+ "bbox": [
403
+ 173,
404
+ 239,
405
+ 825,
406
+ 356
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "Neural Pooling Method 1 hence, leverages the ability of neural networks to learn the topological structure as well as correlation among the node representations in $\\pmb { H }$ . It captures the essential features and connections between underlying data. It also reduces the dimensionality of $\\pmb { H }$ , and results in an accurate representation of the input graph. ",
413
+ "bbox": [
414
+ 174,
415
+ 362,
416
+ 825,
417
+ 419
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "3.3 NEURAL POOLING METHOD 2 ",
424
+ "text_level": 1,
425
+ "bbox": [
426
+ 176,
427
+ 444,
428
+ 423,
429
+ 458
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "Our second proposed method is called Neural Pooling Method 2. Consider a node representation matrix $\\pmb { H }$ obtained following Equation 1 in Section 3.1. ",
436
+ "bbox": [
437
+ 173,
438
+ 473,
439
+ 825,
440
+ 502
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "image",
446
+ "img_path": "images/550267784e0cc753e84314e02422fdc4a7e97d7ea04f2d5dfefc8ec628a99301.jpg",
447
+ "image_caption": [
448
+ "Figure 2: Illustration of our proposed Neural Pooling Method 2. This is an example for a graph $\\mathcal { G }$ with 8 nodes. GNNs can learn representations for each node and graph pooling processes node representations into a graph representation vector. "
449
+ ],
450
+ "image_footnote": [],
451
+ "bbox": [
452
+ 173,
453
+ 526,
454
+ 825,
455
+ 683
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "$\\pmb { H }$ is passed through a Fully Connected Neural Network Layer $( F C L ^ { 1 } )$ to obtain $H ^ { \\prime \\prime }$ as: ",
462
+ "bbox": [
463
+ 171,
464
+ 761,
465
+ 758,
466
+ 777
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "equation",
472
+ "img_path": "images/0c5d4dcc44d8a28a77aff2516cf9d0ad2cf7dca647215c04576008863aaaf5ff.jpg",
473
+ "text": "$$\n\\pmb { H } ^ { \\prime \\prime } = F C L ^ { 1 } ( \\pmb { H } ) \\in \\mathbb { R } ^ { n \\times \\textit { f } ^ { \\prime \\prime } } \\mathrm { \\bf ~ w h e r e ~ } f ^ { \\prime \\prime } < f\n$$",
474
+ "text_format": "latex",
475
+ "bbox": [
476
+ 357,
477
+ 782,
478
+ 648,
479
+ 801
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "After this $H ^ { \\prime \\prime }$ is again passed through a second Fully Connected Neural Network Layer $( F C L ^ { 2 } )$ to obtain $H ^ { \\prime }$ as: ",
486
+ "bbox": [
487
+ 173,
488
+ 806,
489
+ 823,
490
+ 835
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "equation",
496
+ "img_path": "images/352336bc9f1aed75e05b0dcc419cb7ff2725bff68a01a174f7f98431cf21dd54.jpg",
497
+ "text": "$$\n\\pmb { H } ^ { \\prime } = F C L ^ { 2 } ( \\pmb { H } ^ { \\prime \\prime } ) \\in \\mathbb { R } ^ { n \\times \\textit { f } ^ { \\prime } } \\mathrm { w h e r e } \\ f ^ { \\prime } < f ^ { \\prime \\prime }\n$$",
498
+ "text_format": "latex",
499
+ "bbox": [
500
+ 357,
501
+ 838,
502
+ 655,
503
+ 858
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Finally the graph representation $h _ { G }$ is obtained as: ",
510
+ "bbox": [
511
+ 173,
512
+ 863,
513
+ 508,
514
+ 878
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "equation",
520
+ "img_path": "images/ec05fbc2b7a0fdddb912f8a255b58678bb87265c539590b3db744c38987d5c5a.jpg",
521
+ "text": "$$\n\\pmb { h } _ { G } = \\mathrm { F l a t t e n } ( \\pmb { H } ^ { \\prime T } \\pmb { H } ^ { \\prime } ) \\in \\mathbb { R } ^ { f ^ { 2 } \\times 1 }\n$$",
522
+ "text_format": "latex",
523
+ "bbox": [
524
+ 405,
525
+ 883,
526
+ 630,
527
+ 904
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "where $H ^ { \\prime T }$ denotes the transpose of $H ^ { \\prime }$ . ",
534
+ "bbox": [
535
+ 176,
536
+ 909,
537
+ 442,
538
+ 924
539
+ ],
540
+ "page_idx": 3
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "Intuition: The $F C L ^ { 1 }$ performs the role of reducing the dimensionality of the input node representations. The trainable parameters of this $F C L ^ { 1 }$ can be thought of as learning a mapping from the $f$ to the $f ^ { \\prime \\prime }$ -dimensional space. The $F C L ^ { 2 }$ further reduces the $f ^ { \\prime \\prime }$ -dimensional node representations to a $f ^ { \\prime }$ dimensional representation. $\\pmb { H } ^ { \\prime } \\in \\mathbb { R } ^ { n \\times \\textit { f } ^ { \\prime } }$ can be viewed as $H ^ { \\prime } = [ l _ { 1 } , l _ { 2 } , \\dots \\dots , l _ { f ^ { \\prime } } ]$ , where $\\boldsymbol { l } _ { j } \\in \\mathbb { R } ^ { n }$ , $j { = } 1 , 2 , . . . , f ^ { \\prime }$ . The vector $l _ { j }$ encodes the spatial distribution of the $j$ -th feature in the graph. Based on this view, ${ \\pmb { H } } ^ { \\prime T } { \\pmb { H } } ^ { \\prime }$ is able to capture the topology information. ",
545
+ "bbox": [
546
+ 173,
547
+ 103,
548
+ 825,
549
+ 190
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Similar to the previous method, Neural Pooling Method 2 satisfies both the conditions of graph pooling which is that it always outputs an $f ^ { \\prime 2 }$ -dimensional graph representation for $H \\in \\mathbb { R } ^ { \\breve { n } \\times ^ { \\bullet } } $ , regardless of the value of $n$ . It is also invariant to permutation so that it outputs the same graph representation when the order of rows of $\\pmb { H }$ changes. ",
556
+ "bbox": [
557
+ 174,
558
+ 196,
559
+ 825,
560
+ 253
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "4 EXPERIMENTAL SETUP ",
567
+ "text_level": 1,
568
+ "bbox": [
569
+ 176,
570
+ 275,
571
+ 398,
572
+ 291
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "We perform experiments on graph classification tasks in the bio-informatics and social network domains to demonstrate the effectiveness and superiority of our proposed methods, namely Neural Pooling Methods 1 and 2. Details of datasets and parameter settings are described below. ",
579
+ "bbox": [
580
+ 174,
581
+ 308,
582
+ 825,
583
+ 349
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "4.1 DATASETS ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 174,
593
+ 368,
594
+ 287,
595
+ 382
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "We use nine graph classification datasets from (Yanardag & Vishwanathan, 2015), including four bioinformatics datasets and five social network datasets. Only bioinformatics datasets come with node labels. For the social network datasets, we use one-hot encoding of node degrees as features. The details of the datasets are summarized in Table 1 and Table 2. ",
602
+ "bbox": [
603
+ 176,
604
+ 395,
605
+ 825,
606
+ 450
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "• MUTAG (Debnath et al., 1991) is a bioinformatics dataset of 188 graphs representing nitro compounds. The task is to classify each graph by determining whether the compound is mutagenic aromatic or heteroaromatic. \n• PTC (Toivonen et al., 2003) is a bioinformatics dataset of 344 graphs representing chemical compounds. Each node comes with one of 19 discrete node labels. The task is to predict the rodent carcinogenicity for each graph. \nPROTEINS (Borgwardt et al., 2005) is a bioinformatics dataset of 1,113 graph structures of proteins. Nodes in the graphs refer to secondary structure elements (SSEs) and have discrete node labels indicating whether they represent a helix, sheet or turn. And edges mean that two nodes are neighbors along the amino-acid sequence or in space. The task is to predict the protein function for each graph. \nNCI1 (Wale et al., 2008) is a bioinformatics dataset of 4,110 graphs representing chemical compounds. The graph classification label is decided by anti-cancer screens for ability to suppress or inhibit the growth of a panel of human tumor cell lines. \n• COLLAB is a scientific collaboration dataset of 5,000 graphs corresponding to egonetworks.The dataset is derived from 3 public collaboration datasets (Leskovec et al., 2005). Each ego-network contains different researchers from each field and is labeled by the corresponding field. The three fields are High Energy Physics, Condensed Matter Physics, and Astro Physics. \nIMDB-BINARY is a movie collaboration dataset of 1,000 graphs representing egonetworks for actors/actresses. The dataset is derived from collaboration graphs on Action and Romance genres. In each graph, nodes represent actors/actresses and edges simply mean they collaborate the same movie. The graphs are labeled by the corresponding genre and the task is to identify the genre for each graph. \nIMDB-MULTI is multi-class version of IMDB-BINARY. It contains 1,500 ego-networks and has three extra genres, namely, Comedy, Romance and Sci-Fi. \n• REDDIT-BINARY is a dataset of 2,000 graphs where each graph represents an online discussion thread. Nodes in a graph correspond to users appearing in the corresponding discussion thread and an edge means that one user responded to another. TrollXChromosomes and atheism are discussion-based subreddits, forming two classes to be classified. ",
613
+ "bbox": [
614
+ 217,
615
+ 460,
616
+ 825,
617
+ 924
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "table",
623
+ "img_path": "images/0629ea85045624b2b28500cbe470ebe80895a908e72b07a1f654377d2a75326a.jpg",
624
+ "table_caption": [
625
+ "Table 1: Details of bioinformatics datasets "
626
+ ],
627
+ "table_footnote": [],
628
+ "table_body": "<table><tr><td>Name</td><td>MUTAG</td><td>PTC PROTEINS</td><td>NCI1</td></tr><tr><td># graphs</td><td>188 344</td><td>1113</td><td>4110</td></tr><tr><td># classes</td><td>2 2</td><td>2</td><td>2</td></tr><tr><td># nodes(max)</td><td>28 109</td><td>620</td><td>111</td></tr><tr><td># nodes(avg.)</td><td>18.0 25.6</td><td>39.1</td><td>29.9</td></tr></table>",
629
+ "bbox": [
630
+ 312,
631
+ 130,
632
+ 686,
633
+ 239
634
+ ],
635
+ "page_idx": 5
636
+ },
637
+ {
638
+ "type": "table",
639
+ "img_path": "images/61dc99362960f87758fd74892c25bd8b01c26b592b970ad2065b1803db15b94f.jpg",
640
+ "table_caption": [
641
+ "Table 2: Details of social network datasets "
642
+ ],
643
+ "table_footnote": [],
644
+ "table_body": "<table><tr><td>Name</td><td>COLLAB IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M5K</td></tr><tr><td># graphs</td><td>5000 1000</td><td>1500</td><td>2000</td><td>5000</td></tr><tr><td># classes</td><td>3 2</td><td>3</td><td>2</td><td>5</td></tr><tr><td># nodes(max)</td><td>492 136</td><td>89</td><td>3783</td><td>3783</td></tr><tr><td># nodes(avg.)</td><td>74.5 19.8</td><td>13.0</td><td>429.6</td><td>508.5</td></tr></table>",
645
+ "bbox": [
646
+ 251,
647
+ 286,
648
+ 746,
649
+ 396
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "• REDDIT-MULTI5K is a similar dataset as REDDIT- BINARY, which contains 5,000 graphs. The difference lies in that REDDIT-MULTI5K crawled data from five different subreddits, namely, worldnews, videos, AdviceAnimals, aww and mildlyinteresting. And the task is to identify the subreddit of each graph instead of determining the type of subreddits. ",
656
+ "bbox": [
657
+ 218,
658
+ 428,
659
+ 825,
660
+ 498
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "4.2 TRAINING AND EVALUATION ",
667
+ "text_level": 1,
668
+ "bbox": [
669
+ 176,
670
+ 522,
671
+ 415,
672
+ 537
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Following (Yanardag & Vishwanathan, 2015; Niepert et al., 2016), model performance is evaluated using 10-fold cross-validation and reported as the average and standard deviation of validation accuracies across the 10 folds. For GNNs, we follow the same training process in (Xu et al., 2019). The GNN has 5 layers. Each multi-layer perceptron (MLP) has 2 layers with batch normalization (Ioffe & Szegedy, 2015). Dropout (Srivastava et al., 2014) is applied in the classifiers. The Adam (Kingma & Ba, 2015) optimizer is used with the learning rate initialized as 0.01 and decayed by 0.5 every 50 epochs. The number of total epochs is selected according to the best cross-validation accuracy. We tune the number of hidden units (16, 32, 64) and the batch size (32, 128) using grid search. ",
679
+ "bbox": [
680
+ 173,
681
+ 547,
682
+ 825,
683
+ 674
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "4.3 BASELINES",
690
+ "text_level": 1,
691
+ "bbox": [
692
+ 174,
693
+ 690,
694
+ 294,
695
+ 705
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "We compare our methods with various other graph pooling methods on the graph classification task, including DIFFPOOL (Ying et al., 2018), SORT-POOL (Zhang et al., 2018), TOPKPOOL (Gao & Ji, 2019), SAGPOOL (Lee et al., 2019), and EIGEN-POOL (Ma et al., 2019b). DIFFPOOL maps nodes to a pre-defined number of clusters but is hard to train. EIGENPOOL involves the computation of eigenvectors, which is slow and expensive. SORTPOOL, SAGPOOL and TOPKPOOL rely on the top-K sorting to select a fixed number (K) of nodes and order them, during which the information from unselected nodes is discarded. We also compare with some recent methods including COVPOOL (Wang et al., 2019a), ATTNPOOL (Girdhar & Ramanan, 2017) as well as second order pooling methods $\\mathbf { S O P o o l } _ { b i m a p }$ and SOPoolattention (Wang & Ji, 2020). ",
702
+ "bbox": [
703
+ 173,
704
+ 717,
705
+ 825,
706
+ 843
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "5 RESULTS & DISCUSSION ",
713
+ "text_level": 1,
714
+ "bbox": [
715
+ 176,
716
+ 863,
717
+ 411,
718
+ 880
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "The results of our experiments are summarized in Table 3 and Table 4 .From the results we can see that our methods lead to an improvement in classification accuracy over existing methods and are also more reliable as compared previous works as observed from the lower values of standard deviation.This enhancement in performance is consistent across all the datasets. The results may be attributed to the fact that compared to existing graph pooling methods, our pooling methods are able to use information from all nodes, collect second-order statistics, and leverage the ability of neural networks to learn from underlying data, making them more powerful. The Neural Pooling methods utilize the ability of neural networks to learn the topological structure as well as correlation among the node representations in, capturing essential features and connections between underlying data. ",
725
+ "bbox": [
726
+ 173,
727
+ 895,
728
+ 823,
729
+ 924
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "table",
735
+ "img_path": "images/38566588002cdcca225cf0ae785694088391e0c9bf5a8ea7a370ced3ae3e83fa.jpg",
736
+ "table_caption": [
737
+ "Table 3: Comparison results of our proposed methods with other graph pooling methods on bioinformatics datasets. Results shown are the average classification accuracy and standard deviation across 10-fold cross-validation. "
738
+ ],
739
+ "table_footnote": [],
740
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>PTC</td><td rowspan=1 colspan=1>PROTEINS</td><td rowspan=1 colspan=1>MUTAG</td><td rowspan=1 colspan=1>NCI1</td></tr><tr><td rowspan=1 colspan=1>SUM/AVG(Xu et al., 2019)</td><td rowspan=1 colspan=1>64.6 ± 7.0</td><td rowspan=1 colspan=1>76.2 ± 2.8</td><td rowspan=1 colspan=1>89.4 ±5.6</td><td rowspan=1 colspan=1>82.7 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>DIFFPOOL(Ying et al., 2018)</td><td rowspan=1 colspan=1>66.1 ± 7.7</td><td rowspan=1 colspan=1>78.8± 3.1</td><td rowspan=1 colspan=1>94.8± 4.8</td><td rowspan=1 colspan=1>76.6 ± 1.3</td></tr><tr><td rowspan=1 colspan=1>SORTPOOL(Zhang et al., 2018)</td><td rowspan=1 colspan=1>69.5± 6.3</td><td rowspan=1 colspan=1>79.2 ± 3.0</td><td rowspan=1 colspan=1>95.2 ± 3.9</td><td rowspan=1 colspan=1>78.9 ± 2.7</td></tr><tr><td rowspan=1 colspan=1>TOPKPOOL(Gao &amp; Ji, 2019)</td><td rowspan=1 colspan=1>68.4 ± 6.4</td><td rowspan=1 colspan=1>79.1 ± 2.2</td><td rowspan=1 colspan=1>94.7± 3.5</td><td rowspan=1 colspan=1>79.6 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>SAGPOOL(Lee et al., 2019)</td><td rowspan=1 colspan=1>69.0 ± 6.6</td><td rowspan=1 colspan=1>78.4± 3.1</td><td rowspan=1 colspan=1>93.9 ± 3.3</td><td rowspan=1 colspan=1>79.0 ± 2.8</td></tr><tr><td rowspan=1 colspan=1>ATTNPOOL(Girdhar &amp; Ramanan, 2017)</td><td rowspan=1 colspan=1>71.2± 8.0</td><td rowspan=1 colspan=1>77.5± 3.3</td><td rowspan=1 colspan=1>93.2± 5.8</td><td rowspan=1 colspan=1>80.6± 2.1</td></tr><tr><td rowspan=1 colspan=1>EIGENPOOL(Ma et al.,2019b)</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>76.6± 2.3</td><td rowspan=1 colspan=1>80.6± 4.3</td><td rowspan=1 colspan=1>77.0 ± 2.3</td></tr><tr><td rowspan=1 colspan=1>COVPOOL(Wang et al.,2019a)</td><td rowspan=1 colspan=1>73.3 ± 5.1</td><td rowspan=1 colspan=1>80.1 ± 2.2</td><td rowspan=1 colspan=1>95.3 ± 3.7</td><td rowspan=1 colspan=1>83.5 ± 1.9</td></tr><tr><td rowspan=1 colspan=1>SOPOOLattn(Wang &amp; Ji, 2020)</td><td rowspan=1 colspan=1>72.9 ± 6.2</td><td rowspan=1 colspan=1>79.4 ± 3.2</td><td rowspan=1 colspan=1>93.6 ± 4.1</td><td rowspan=1 colspan=1>82.8± 1.4</td></tr><tr><td rowspan=1 colspan=1> SOPOOLbimap(Wang &amp; Ji, 2020)</td><td rowspan=1 colspan=1>75.0 ± 4.3</td><td rowspan=1 colspan=1>80.1 ± 2.7</td><td rowspan=1 colspan=1>95.3 ± 4.4</td><td rowspan=1 colspan=1>83.6 ± 1.4</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 1(ours)</td><td rowspan=1 colspan=1>74.5 ± 3.7</td><td rowspan=1 colspan=1>80.6 ± 2.7</td><td rowspan=1 colspan=1>94.0 ± 2.3</td><td rowspan=1 colspan=1>83.1 ± 1.2</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 2(ours)</td><td rowspan=1 colspan=1>76.2 ± 4.2</td><td rowspan=1 colspan=1>79.6± 3.0</td><td rowspan=1 colspan=1>95.5 ± 2.4</td><td rowspan=1 colspan=1>83.4 ± 1.9</td></tr></table>",
741
+ "bbox": [
742
+ 173,
743
+ 170,
744
+ 828,
745
+ 450
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "table",
751
+ "img_path": "images/f7722e0e1e59d95930c686b0361cb0094f3ce68cef19da9cc88b9feb65dc0616.jpg",
752
+ "table_caption": [
753
+ "Table 4: Comparison results of our proposed methods with other graph pooling methods on social network datsets. Results shown are the average classification accuracy and standard deviation across 10-fold cross-validation. "
754
+ ],
755
+ "table_footnote": [],
756
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>COLLAB</td><td rowspan=1 colspan=1>RDT-B</td><td rowspan=1 colspan=1>IMDB-B</td><td rowspan=1 colspan=1>IMDB-M</td><td rowspan=1 colspan=1>RDT-M5K</td></tr><tr><td rowspan=1 colspan=1> SUM/AVG</td><td rowspan=1 colspan=1>80.2 ± 1.9</td><td rowspan=1 colspan=1>92.4 ± 2.5</td><td rowspan=1 colspan=1>75.1 ± 5.1</td><td rowspan=1 colspan=1>52.3 ± 2.8</td><td rowspan=1 colspan=1>57.5 ± 1.5</td></tr><tr><td rowspan=1 colspan=1>DIFFPOOL</td><td rowspan=1 colspan=1>75.3 ± 2.2</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>74.4 ± 4.0</td><td rowspan=1 colspan=1>50.1 ± 3.2</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>SORTPOOL</td><td rowspan=1 colspan=1>78.2 ± 1.6</td><td rowspan=1 colspan=1>81.6 ± 4.6</td><td rowspan=1 colspan=1>77.5± 2.7</td><td rowspan=1 colspan=1>53.1 ± 2.9</td><td rowspan=1 colspan=1>48.4± 4.8</td></tr><tr><td rowspan=1 colspan=1>TOPKPOOL</td><td rowspan=1 colspan=1>79.6 ± 2.1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>77.8 ± 5.1</td><td rowspan=1 colspan=1>53.7 ± 2.8</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>SAGPOOL</td><td rowspan=1 colspan=1>78.9 ± 1.7</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>77.8 ± 2.9</td><td rowspan=1 colspan=1>53.1 ± 2.8</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>ATTNPOOL</td><td rowspan=1 colspan=1>81.8± 2.2</td><td rowspan=1 colspan=1>92.5± 2.3</td><td rowspan=1 colspan=1>77.1 ± 4.4</td><td rowspan=1 colspan=1>53.8 ± 2.5</td><td rowspan=1 colspan=1>57.9 ± 1.7</td></tr><tr><td rowspan=1 colspan=1>COVPOOL</td><td rowspan=1 colspan=1>79.3 ± 1.8</td><td rowspan=1 colspan=1>90.3± 3.6</td><td rowspan=1 colspan=1>72.1± 5.1</td><td rowspan=1 colspan=1>47.8 ± 2.7</td><td rowspan=1 colspan=1>58.4±1.7</td></tr><tr><td rowspan=1 colspan=1>SOPOOLattn</td><td rowspan=1 colspan=1>81.1 ± 1.8</td><td rowspan=1 colspan=1>91.7 ± 2.7</td><td rowspan=1 colspan=1>78.1 ± 4.0</td><td rowspan=1 colspan=1>54.3± 2.6</td><td rowspan=1 colspan=1>58.3 ± 1.4</td></tr><tr><td rowspan=1 colspan=1>SOPOOLbimap</td><td rowspan=1 colspan=1>79.9 ± 1.9</td><td rowspan=1 colspan=1>89.6±3.3</td><td rowspan=1 colspan=1>78.4± 4.7</td><td rowspan=1 colspan=1>54.6± 3.6</td><td rowspan=1 colspan=1>58.4 ± 1.6</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 1(ours)</td><td rowspan=1 colspan=1>80.5± 1.5</td><td rowspan=1 colspan=1>90.6± 2.3</td><td rowspan=1 colspan=1>79.0 ± 2.3</td><td rowspan=1 colspan=1>55.1± 2.2</td><td rowspan=1 colspan=1>58.5 ± 1.8</td></tr><tr><td rowspan=1 colspan=1>Neural Pooling 2(ours)</td><td rowspan=1 colspan=1>81.0 ± 1.7</td><td rowspan=1 colspan=1>91.5 ± 3.0</td><td rowspan=1 colspan=1>78.5 ± 2.4</td><td rowspan=1 colspan=1>54.4 ± 1.9</td><td rowspan=1 colspan=1>59.1 ± 1.4</td></tr></table>",
757
+ "bbox": [
758
+ 187,
759
+ 531,
760
+ 810,
761
+ 789
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "",
768
+ "bbox": [
769
+ 173,
770
+ 825,
771
+ 825,
772
+ 924
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "6 COMPLEXITY ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 174,
782
+ 102,
783
+ 318,
784
+ 117
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Consider a graph $\\mathcal { G } = ( A , X )$ represented by its adjacency matrix $\\pmb { A } \\in \\{ 0 , 1 \\} ^ { n \\times n }$ and node feature matrix $\\ b { X } \\in \\ b { \\mathbb { R } ^ { n } } \\times \\ b { d }$ , where $n$ is the number of nodes in $\\mathcal { G }$ and $d$ is the dimension of node features. Consider, $H = [ h _ { 1 } , h _ { 2 }$ , ........., $\\pmb { h } _ { n } ] ^ { T } = \\mathbf { G } \\mathbf { N } \\mathbf { N } ( \\pmb { A } , \\pmb { X } ) \\in \\mathbb { R } ^ { n \\times \\pmb { f } }$ where rows of $\\pmb { H }$ , $\\boldsymbol { h } _ { i } \\in \\mathbb { R } ^ { f }$ , $i$ $= 1 , 2 , . . . , n$ , are representations of $n$ nodes. Consider a direct application of second-order graph pooling to obtain the graph representation $h _ { G }$ as: ",
791
+ "bbox": [
792
+ 174,
793
+ 133,
794
+ 825,
795
+ 204
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "equation",
801
+ "img_path": "images/f2afe3ed0441771cba0c087de5c28d916cb44ab4188718a1b75e950ce2c058ee.jpg",
802
+ "text": "$$\n\\pmb { h } _ { G } = \\mathrm { F l a t t e n } ( \\pmb { H } ^ { T } \\pmb { H } ) \\in \\mathbb { R } ^ { f ^ { 2 } \\times 1 }\n$$",
803
+ "text_format": "latex",
804
+ "bbox": [
805
+ 403,
806
+ 209,
807
+ 619,
808
+ 229
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "where $H ^ { T }$ denotes the transpose of $\\pmb { H }$ ",
815
+ "bbox": [
816
+ 176,
817
+ 234,
818
+ 433,
819
+ 250
820
+ ],
821
+ "page_idx": 7
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "However, it causes an explosion in the number of training parameters in the following classifier when $f$ is large, making the learning process harder to converge and easier to overfit. While each layer in a GNN usually has outputs with a small number of hidden units (e.g. 16, 32, 64), it has been pointed out that graph representation learning benefits from using information from outputs of all layers, obtaining better performance and generalization ability. It is usually achieved by concatenating outputs across all layers in a GNN. In this case, $\\pmb { H }$ has a large final $f$ , making direct use of secondorder pooling infeasible. For example, if a GNN has 5 layers and each layer’s outputs have 32 hidden units, $f$ becomes $3 2 \\times 5 = 1 6 0$ . Suppose $h _ { G }$ is sent into a 1-layer fully-connected classifier for $c$ graph categories in a graph classification task. It results in $1 6 0 ^ { \\dot { 2 } } c = 2 \\dot { 5 } , 6 0 0 c$ training parameters, which is excessive. We omit the bias term for simplicity. On the other hand, both of our proposed novel graph pooling methods significantly reduce the number of training parameters. In the case of Neural Pooling Method 1, considering the previous example if $f ^ { \\prime }$ is chosen to be 64, and $f$ is 160, then the total number of trainable parameters in the $2 ~ F C L s$ and a 1-layer fully-connected $c$ class classifier will be $( 1 6 0 \\times 6 4 ) + 6 4 + 6 4 c = 1 0 , 3 0 4 + 6 4 c$ notably reducing the number of parameters as compared to 25, $6 0 0 c$ . In the case of Neural Pooling Method 2, if $f ^ { \\prime \\bar { \\prime } }$ is chosen to be 64, $f ^ { \\prime }$ as 32 and $f$ is 160, then the total number of trainable parameters in the $2 \\ : F C L s$ and a 1-layer fully-connected $c$ class classifier will be $( 1 6 0 \\times 6 4 ) + ( 6 4 \\times 3 2 ) + 3 2 2 c = 1 2 , 2 8 8 + 1 0 2 4 c$ again reducing the number of parameters when compared to $2 5 , 6 0 0 c$ . ",
826
+ "bbox": [
827
+ 173,
828
+ 257,
829
+ 825,
830
+ 506
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "7 CONCLUSION ",
837
+ "text_level": 1,
838
+ "bbox": [
839
+ 176,
840
+ 527,
841
+ 318,
842
+ 544
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "In this work, we propose to perform graph representation learning with Neural Pooling, by pointing out that Neural Pooling can naturally solve the challenges of graph pooling. Neural Pooling is more powerful than existing graph pooling methods, since it is capable of using all node information, collecting second-order statistics that encode feature correlations and topology information and leverage the ability of neural networks to learn from underlying data, making them more powerful. Our proposed methods solve the practical problems incurred by directly using second-order pooling with GNNs. To demonstrate the effectiveness and superiority of our methods, we perform experiments on graph classification tasks in the bio-informatics and social network domains to demonstrate the effectiveness and superiority of our proposed methods. Experimental results show that our methods improve the performance significantly and consistently. An interesting future work direction could be to extend our methods for hierarchical graph pooling, where the output is a is a pseudo graph with fewer nodes than the input graph. It is used to build hierarchical GNNs, where hierarchical graph pooling is used several times between GNN layers to gradually decrease the number of nodes. ",
849
+ "bbox": [
850
+ 173,
851
+ 560,
852
+ 825,
853
+ 741
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "REFERENCES ",
860
+ "text_level": 1,
861
+ "bbox": [
862
+ 174,
863
+ 763,
864
+ 285,
865
+ 779
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "KM Borgwardt, Stefan Schonauer, SVN Vishwanathan, Alexander Smola, and HP Kriegel. Protein ¨ function prediction via graph kernels. Bioinformatics, 21 Suppl 1:i47–56, 01 2005. ",
872
+ "bbox": [
873
+ 174,
874
+ 787,
875
+ 823,
876
+ 815
877
+ ],
878
+ "page_idx": 7
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Y-Lan Boureau, Jean Ponce, and Yann LeCun. A theoretical analysis of feature pooling in visual recognition. In Johannes Furnkranz and Thorsten Joachims (eds.), ¨ Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 111–118, Haifa, Israel, June 2010. Omnipress. URL http://www.icml2010.org/papers/638.pdf. ",
883
+ "bbox": [
884
+ 176,
885
+ 828,
886
+ 825,
887
+ 883
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Asim Kumar Debnath, Rosa L Lopez de Compadre, Gargi Debnath, Alan J Shusterman, and Corwin Hansch. Structure-activity relationship of mutagenic aromatic and heteroaromatic nitro compounds. correlation with molecular orbital energies and hydrophobicity. Journal of medicinal chemistry, 34(2):786–797, 1991. ",
894
+ "bbox": [
895
+ 176,
896
+ 895,
897
+ 820,
898
+ 924
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "",
905
+ "bbox": [
906
+ 181,
907
+ 103,
908
+ 823,
909
+ 132
910
+ ],
911
+ "page_idx": 8
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett (eds.), Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5- 10, 2016, Barcelona, Spain, pp. 3837–3845, 2016. ",
916
+ "bbox": [
917
+ 174,
918
+ 142,
919
+ 825,
920
+ 213
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2224–2232. Curran Associates, Inc., 2015. ",
927
+ "bbox": [
928
+ 173,
929
+ 223,
930
+ 825,
931
+ 292
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Wenqi Fan, Yao Ma, Qing Li, Yuan He, Eric Zhao, Jiliang Tang, and Dawei Yin. Graph neural networks for social recommendation. In The World Wide Web Conference, WWW ’19, pp. 417–426, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450366748. doi: 10.1145/3308558.3313488. URL https://doi.org/10.1145/3308558.3313488. ",
938
+ "bbox": [
939
+ 174,
940
+ 303,
941
+ 825,
942
+ 361
943
+ ],
944
+ "page_idx": 8
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Hongchang Gao, Jian Pei, and Heng Huang. Conditional random field enhanced graph convolutional neural networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD ’19, pp. 276–284, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450362016. doi: 10.1145/3292500.3330888. URL https://doi.org/10.1145/3292500.3330888. ",
949
+ "bbox": [
950
+ 173,
951
+ 369,
952
+ 825,
953
+ 440
954
+ ],
955
+ "page_idx": 8
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Hongyang Gao and Shuiwang Ji. Graph u-nets. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9- 15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 2083–2092. PMLR, 2019. URL http://proceedings.mlr.press/v97/ gao19a.html. ",
960
+ "bbox": [
961
+ 173,
962
+ 450,
963
+ 825,
964
+ 521
965
+ ],
966
+ "page_idx": 8
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pp. 1263–1272. PMLR, 2017. URL http://proceedings.mlr.press/v70/gilmer17a.html. ",
971
+ "bbox": [
972
+ 173,
973
+ 531,
974
+ 825,
975
+ 602
976
+ ],
977
+ "page_idx": 8
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Rohit Girdhar and Deva Ramanan. Attentional pooling for action recognition. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett (eds.), Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pp. 34–45, 2017. URL http://papers.nips.cc/paper/ 6609-attentional-pooling-for-action-recognition. ",
982
+ "bbox": [
983
+ 173,
984
+ 612,
985
+ 825,
986
+ 696
987
+ ],
988
+ "page_idx": 8
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 1024–1034. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 6703-inductive-representation-learning-on-large-graphs.pdf. ",
993
+ "bbox": [
994
+ 174,
995
+ 707,
996
+ 825,
997
+ 776
998
+ ],
999
+ "page_idx": 8
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis R. Bach and David M. Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pp. 448–456. JMLR.org, 2015. URL http://proceedings.mlr.press/v37/ioffe15.html. ",
1004
+ "bbox": [
1005
+ 174,
1006
+ 786,
1007
+ 825,
1008
+ 858
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http: //arxiv.org/abs/1412.6980. ",
1015
+ "bbox": [
1016
+ 174,
1017
+ 867,
1018
+ 825,
1019
+ 924
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https: //openreview.net/forum?id $=$ SJU4ayYgl. ",
1026
+ "bbox": [
1027
+ 174,
1028
+ 103,
1029
+ 823,
1030
+ 160
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Junhyun Lee, Inyeop Lee, and Jaewoo Kang. Self-attention graph pooling. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 3734–3743. PMLR, 2019. URL http://proceedings. mlr.press/v97/lee19c.html. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 167,
1040
+ 825,
1041
+ 238
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Jure Leskovec, Jon Kleinberg, and Christos Faloutsos. Graphs over time: densification laws, shrinking diameters and possible explanations. In Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining, pp. 177–187, 2005. ",
1048
+ "bbox": [
1049
+ 173,
1050
+ 247,
1051
+ 825,
1052
+ 291
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Jianxin Ma, Peng Cui, Kun Kuang, Xin Wang, and Wenwu Zhu. Disentangled graph convolutional networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 4212–4221. PMLR, 2019a. URL http://proceedings.mlr.press/v97/ma19a.html. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 297,
1062
+ 825,
1063
+ 369
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Yao Ma, Suhang Wang, Charu C. Aggarwal, and Jiliang Tang. Graph convolutional networks with eigenpooling. KDD ’19, pp. 723–731, New York, NY, USA, 2019b. Association for Computing Machinery. ISBN 9781450362016. doi: 10.1145/3292500.3330982. URL https://doi. org/10.1145/3292500.3330982. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 377,
1073
+ 825,
1074
+ 434
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In Maria-Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pp. 2014–2023. JMLR.org, 2016. URL http://proceedings.mlr.press/v48/niepert16.html. ",
1081
+ "bbox": [
1082
+ 173,
1083
+ 443,
1084
+ 826,
1085
+ 513
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1): 1929–1958, 2014. URL http://dl.acm.org/citation.cfm?id=2670313. ",
1092
+ "bbox": [
1093
+ 174,
1094
+ 522,
1095
+ 825,
1096
+ 565
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Hannu Toivonen, Ashwin Srinivasan, Ross D. King, Stefan Kramer, and Christoph Helma. Statistical evaluation of the Predictive Toxicology Challenge 2000–2001. Bioinformatics, 19(10): 1183–1193, 07 2003. ISSN 1367-4803. doi: 10.1093/bioinformatics/btg130. URL https: //doi.org/10.1093/bioinformatics/btg130. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 573,
1106
+ 825,
1107
+ 631
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \\` Bengio. Graph attention networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ rJXMpikCZ. ",
1114
+ "bbox": [
1115
+ 174,
1116
+ 638,
1117
+ 825,
1118
+ 681
1119
+ ],
1120
+ "page_idx": 9
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Nikil Wale, Ian A Watson, and George Karypis. Comparison of descriptor spaces for chemical compound retrieval and classification. Knowledge and Information Systems, 14(3):347–375, 2008. ",
1125
+ "bbox": [
1126
+ 169,
1127
+ 689,
1128
+ 821,
1129
+ 719
1130
+ ],
1131
+ "page_idx": 9
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Qilong Wang, Jiangtao Xie, Wangmeng Zuo, Lei Zhang, and Peihua Li. Deep cnns meet global covariance pooling: Better representation and generalization. CoRR, abs/1904.06836, 2019a. URL http://arxiv.org/abs/1904.06836. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 727,
1139
+ 823,
1140
+ 770
1141
+ ],
1142
+ "page_idx": 9
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Xiao Wang, Houye Ji, Chuan Shi, Bai Wang, Yanfang Ye, Peng Cui, and Philip S Yu. Heterogeneous graph attention network. In The World Wide Web Conference, WWW ’19, pp. 2022–2032, New York, NY, USA, 2019b. Association for Computing Machinery. ISBN 9781450366748. doi: 10.1145/3308558.3313562. URL https://doi.org/10.1145/3308558.3313562. ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 779,
1150
+ 825,
1151
+ 835
1152
+ ],
1153
+ "page_idx": 9
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Z. Wang and S. Ji. Second-order pooling for graph neural networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. ",
1158
+ "bbox": [
1159
+ 171,
1160
+ 843,
1161
+ 823,
1162
+ 872
1163
+ ],
1164
+ "page_idx": 9
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In Jennifer G. Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on ",
1169
+ "bbox": [
1170
+ 176,
1171
+ 881,
1172
+ 825,
1173
+ 924
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Machine Learning, ICML 2018, Stockholmsmassan, Stockholm, Sweden, July 10-15, 2018 ¨ , volume 80 of Proceedings of Machine Learning Research, pp. 5449–5458. PMLR, 2018. URL http://proceedings.mlr.press/v80/xu18c.html. ",
1180
+ "bbox": [
1181
+ 186,
1182
+ 103,
1183
+ 821,
1184
+ 146
1185
+ ],
1186
+ "page_idx": 10
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $=$ ryGs6iA5Km. ",
1191
+ "bbox": [
1192
+ 178,
1193
+ 155,
1194
+ 820,
1195
+ 196
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Pinar Yanardag and S.V.N. Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’15, pp. 1365–1374, New York, NY, USA, 2015. Association for Computing Machinery. ISBN 9781450336642. doi: 10.1145/2783258.2783417. URL https://doi.org/10.1145/ 2783258.2783417. ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 207,
1205
+ 825,
1206
+ 276
1207
+ ],
1208
+ "page_idx": 10
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, William L. Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolo Cesa-Bianchi, and Roman Garnett (eds.), \\` Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, 3-8 December 2018, Montreal, Canada ´ , pp. 4805–4815, 2018. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 285,
1216
+ 825,
1217
+ 369
1218
+ ],
1219
+ "page_idx": 10
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning architecture for graph classification. AAAI, 2018. ",
1224
+ "bbox": [
1225
+ 171,
1226
+ 378,
1227
+ 823,
1228
+ 409
1229
+ ],
1230
+ "page_idx": 10
1231
+ }
1232
+ ]
parse/train/UEtNMTl6yN/UEtNMTl6yN_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UEtNMTl6yN/UEtNMTl6yN_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Z2vksUFuVst/Z2vksUFuVst_content_list.json ADDED
@@ -0,0 +1,1561 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Conservative Offline Distributional Reinforcement Learning ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 285,
8
+ 122,
9
+ 710,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yecheng Jason Ma, Dinesh Jayaraman, Osbert Bastani University of Pennsylvania {jasonyma, dineshj, obastani}@seas.upenn.edu ",
17
+ "bbox": [
18
+ 307,
19
+ 226,
20
+ 687,
21
+ 268
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 303,
32
+ 535,
33
+ 320
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Many reinforcement learning (RL) problems in practice are offline, learning purely from observational data. A key challenge is how to ensure the learned policy is safe, which requires quantifying the risk associated with different actions. In the online setting, distributional RL algorithms do so by learning the distribution over returns (i.e., cumulative rewards) instead of the expected return; beyond quantifying risk, they have also been shown to learn better representations for planning. We propose Conservative Offline Distributional Actor Critic (CODAC), an offline RL algorithm suitable for both risk-neutral and risk-averse domains. CODAC adapts distributional RL to the offline setting by penalizing the predicted quantiles of the return for out-of-distribution actions. We prove that CODAC learns a conservative return distribution—in particular, for finite MDPs, CODAC converges to an uniform lower bound on the quantiles of the return distribution; our proof relies on a novel analysis of the distributional Bellman operator. In our experiments, on two challenging robot navigation tasks, CODAC successfully learns risk-averse policies using offline data collected purely from risk-neutral agents. Furthermore, CODAC is state-of-the-art on the D4RL MuJoCo benchmark in terms of both expected and risk-sensitive performance. Code is available at: https://github.com/JasonMa2016/CODAC ",
40
+ "bbox": [
41
+ 232,
42
+ 334,
43
+ 766,
44
+ 584
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 608,
55
+ 310,
56
+ 626
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In many applications of reinforcement learning, actively gathering data through interactions with the environment can be risky and unsafe. Offline (or batch) reinforcement learning (RL) avoids this problem by learning a policy solely from historical data (called observational data) [9, 22, 23]. ",
63
+ "bbox": [
64
+ 176,
65
+ 638,
66
+ 823,
67
+ 681
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "A shortcoming of most existing approaches to offline RL [11, 46, 20, 21, 48, 18] is that they are designed to maximize the expected value of the cumulative reward (which we call the return) of the policy. As a consequence, they are unable to quantify risk and ensure that the learned policy acts in a safe way. In the online setting, there has been recent work on distributional RL algorithms [7, 6, 27, 38, 17], which instead learn the full distribution over future returns. They can use this distribution to plan in a way that avoids taking risky, unsafe actions. Furthermore, when coupled with deep neural network function approximation, they can learn better state representations due to the richer distributional learning signal $\\lVert \\rVert 2 6 \\rVert$ , enabling them to outperform traditional RL algorithms even on the risk-neutral, expected return objective [4, 7, 6, 47, 14]. ",
74
+ "bbox": [
75
+ 174,
76
+ 686,
77
+ 825,
78
+ 813
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We propose Conservative Offline Distributional Actor-Critic (CODAC), which adapts distributional RL to the offline setting. A key challenge in offline RL is accounting for high uncertainty on out-of-distribution (OOD) state-action pairs for which observational data is limited $\\pm \\sqrt { 2 3 } \\sqrt { 2 0 } ]$ ; the value estimates for these state-action pairs are intrinsically high variance, and may be exploited by the policy without correction due to the lack of online data gathering and feedback. We build on conservative $Q$ -learning $\\pmb { \\left. 2 1 \\right. }$ , which penalizes $Q$ values for OOD state-action pairs to ensure that the learned $Q$ -function lower bounds the true $Q$ -function. Analogously, CODAC uses a penalty to ensure that the quantiles of the learned return distribution lower bound those of the true return distribution. Crucially, the lower bound is data-driven and selectively penalizes the quantile estimates of state-actions that are less frequent in the offline dataset; see Figure 1. ",
85
+ "bbox": [
86
+ 174,
87
+ 819,
88
+ 825,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 173,
98
+ 90,
99
+ 825,
100
+ 147
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We prove that for finite MDPs, CODAC converges to an estimate of the return distribution whose quantiles uniformly lower bound the quantiles of the true return distribution; in addition, this data-driven lower bound is tight up to the approximation error in estimating the quantiles using finite data. Thus, CODAC obtains a uniform lower bound on all integrations of the quantiles, including the standard RL objective of expected return, the risk-sensitive conditional-value-at-risk (CVaR) objective $\\pmb { \\Vert 3 5 \\Vert }$ , as well as many other risk-sensitive objectives. We additionally prove that CODAC expands the gap in quantile estimates between in-distribution and OOD actions, thus avoiding overconfidence when extrapolating to OOD actions $\\pmb { \\mathbb { D } }$ . ",
107
+ "bbox": [
108
+ 174,
109
+ 154,
110
+ 549,
111
+ 333
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our theoretical guarantees rely on novel techniques for analyzing the distributional Bellman operator, which is challenging since it acts on the infinite-dimensional function space of return distributions (whereas the traditional ",
118
+ "bbox": [
119
+ 174,
120
+ 339,
121
+ 549,
122
+ 395
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/76192742e57ca7417188924db6dc1141f1cc9a9de88268ae200008b9ef91309e.jpg",
129
+ "image_caption": [
130
+ "Figure 1: CODAC obtains conservative estimates of the true return quantiles (black); it penalizes out-of-distribution actions, $\\mu ( a \\mid s )$ , more heavily than indistribution actions, $\\pi _ { \\hat { \\beta } } ( a \\mid s )$ . "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 566,
135
+ 157,
136
+ 820,
137
+ 304
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Bellman operator acts on a finite-dimensional vector space). We provide several novel results that may be of independent interest; for instance, our techniques can be used to bound the error of the fixed-point of the empirical distributional Bellman operator; see Appendix A.6. ",
144
+ "bbox": [
145
+ 174,
146
+ 395,
147
+ 825,
148
+ 436
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Finally, to obtain a practical algorithm, CODAC builds on existing distributional RL algorithms by integrating conservative return distribution estimation into a quantile-based actor-critic framework. ",
155
+ "bbox": [
156
+ 176,
157
+ 443,
158
+ 823,
159
+ 470
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "In our experiments, we demonstrate the effectiveness of CODAC on both risk-sensitive and riskneutral RL. First, on two novel risk-sensitive robot navigation tasks, we show that CODAC successfully learns risk-averse policies using offline datasets collected purely from a risk-neutral agent, a challenging task that all our baselines fail to solve. Next, on the D4RL Mujoco suite $\\tilde { \\left[ 1 0 \\right] }$ , a popular offline RL benchmark, we show that CODAC achieves state-of-art results on both the original risk-neutral version as well a modified risk-sensitive version $\\boxed { 4 3 }$ . Finally, we empirically show that CODAC computes quantile lower-bounds and gap-expanded quantiles even on high-dimensional continuous-control problems, validating our key theoretical insights into the effectiveness of CODAC. ",
166
+ "bbox": [
167
+ 174,
168
+ 477,
169
+ 826,
170
+ 588
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Related work. There has been growing interest in offline (or batch) RL [22, 23]. The key challenge in offline RL is to avoid overestimating the value of out-of-distribution (OOD) actions rarely taken in the observational dataset $\\overline { { 1 4 0 } } , \\overline { { 4 4 } } , \\overline { { 2 0 } } ]$ . The problem is that policy learning optimizes against the value estimates; thus, even if the estimation error is i.i.d., policy optimization biases towards taking actions with high variance value estimates, since some of these values will be large by random chance. In risk-sensitive or safety-critical settings, these actions are exactly the ones that should be avoided. ",
177
+ "bbox": [
178
+ 173,
179
+ 593,
180
+ 825,
181
+ 678
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "One solution is to constrain the learned policy to take actions similar to the ones in the dataset (similar to imitation learning)—e.g., by performing support matching $\\lVert \\overline { { 4 6 } } \\rVert$ or distributional matching [20, 12]. However, these approaches tend to perform poorly when data is gathered from suboptimal policies. An alternative is to regularize the $Q$ -function estimates to be conservative at OOD actions [21, 48, 18]. CODAC builds on these approaches, but obtains conservative estimates of all quantile values of the return distribution rather than just the expected return. Traditionally, the literature on off-policy evaluation (OPE) $\\left\\| 3 2 \\right\\| \\left. 1 6 \\right. , \\left\\| 3 9 \\right\\| \\left. 2 5 \\right. \\left. 3 7 \\right\\|$ aims to estimate the expected return of a policy using precollected offline data; CODAC proposes an OPE procedure amenable to all objectives that can be expressed as integrals of the return quantiles. Consequently, our fine-grained approach not only enables risk-sensitive policy learning, but also improves performance on risk-neutral domains. ",
188
+ "bbox": [
189
+ 174,
190
+ 684,
191
+ 825,
192
+ 821
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "In particular, CODAC builds on recent works on distributional RL [4, 7, 6, 47], which parameterize and estimate the entire return distribution instead of just a point estimate of the expected return (i.e., the $Q$ -function) $ { \\mathbb { I } } 2 9 . { \\left| 2 8 \\right| }$ . Distributional RL algorithms have been shown to achieve state-of-art performance on Atari and continuous control domains [14, 3]; intuitively, they provide richer training signals that stabilize value network training $\\boxed { \\boxed { 4 } }$ . Existing distributional RL algorithms parameterize the policy return distribution in many different ways, including canonical return atoms $\\pmb { \\mathbb { H } }$ , the expectiles $\\pmb { \\mathbb { B } } 6 \\mathbf { I }$ , the moments $\\pmb { \\triangleright }$ , and the quantiles [7, 6, 47]. CODAC builds on the quantile approach due to its suitability for risk-sensitive policy optimization. The quantile representation provides an unified framework for optimizing different objectives of interest $\\textcircled { 7 }$ , such as the riskneutral expected return, and a family of risk-sensitive objectives representable by the quantiles; this family includes, for example, the conditional-value-at-risk (CVaR) return [35, 5, 38, 17], the Wang measure $\\boxed { \\boxplus 5 } \\boxed { }$ , and the cumulative probability weighting (CPW) metric $\\pmb { \\left. 4 2 \\right. }$ . Recent work has provided theoretical guarantees on learning CVaR policies $\\overline { { \\| 1 7 \\| } }$ ; however, their approach cannot provide bounds on the quantiles of the estimated return distribution, which is significantly more challenging since there is no closed-form expression for the Bellman update on the return quantiles. ",
199
+ "bbox": [
200
+ 174,
201
+ 828,
202
+ 823,
203
+ 898
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "",
210
+ "bbox": [
211
+ 173,
212
+ 90,
213
+ 825,
214
+ 229
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "Finally, there has been some recent work adapting distributional RL to the offline setting [1, 43]. First, REM $\\pmb { \\mathbb { \\left[ 1 \\right] } }$ builds on QR-DQN $\\textcircled { 7 }$ , an online distributional RL algorithm; however, REM can be applied to regular DQN $\\sqrt { 2 9 }$ and does not directly utilize the distributional aspect of QR-DQN. The closest work to ours is ORAAC $\\textcircled { 1 4 3 }$ , which uses distributional RL to learn a CVaR policy in the offline setting. ORAAC uses imitation learning to avoid OOD actions and stay close to the data distribution. As discussed above, imitation learning strategies can perform poorly unless the dataset comes from an optimal policy; in our experiments, we find that CODAC significantly outperforms ORAAC. Furthermore, unlike ORAAC, we provide theoretical guarantees on our approach. ",
221
+ "bbox": [
222
+ 173,
223
+ 236,
224
+ 826,
225
+ 347
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "2 Background ",
232
+ "text_level": 1,
233
+ "bbox": [
234
+ 174,
235
+ 366,
236
+ 308,
237
+ 383
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Offline RL. Consider a Markov Decision Process (MDP) $\\lVert 3 3 \\rVert$ $( S , { \\mathcal { A } } , P , R , \\gamma )$ , where $s$ is the state space, $\\mathcal { A }$ is the action space, $P ( s ^ { \\prime } \\mid s , a )$ is the transition distribution, $\\ \\cdot$ is the reward distribution, and $\\gamma \\in ( 0 , 1 )$ is the discount factor, and consider a stochastic policy $\\pi ( a \\mid$ $s ) : \\mathcal { S } \\Delta ( \\mathcal { A } )$ . A rollout using $\\pi$ from state $s$ using initial action $a$ is the random sequence $\\xi = ( ( s _ { 0 } , a _ { 0 } , r _ { 0 } ) , ( s _ { 1 } , a _ { 1 } , r _ { 1 } ) , \\ldots )$ such that $s _ { 0 } ~ = ~ s$ , $a _ { 0 } ~ = ~ a$ , $a _ { t } \\sim \\pi ( \\cdot \\mid s _ { t } )$ (for $t > 0$ ), $r _ { t } ~ \\sim$ $R ( \\cdot \\mid s _ { t } , a _ { t } )$ , and $s _ { t + 1 } \\sim P ( \\cdot \\mid s _ { t } , a _ { t } )$ ; we denote the distribution over rollouts by $D ^ { \\pi } ( \\xi \\mid s , a )$ . The $Q$ -function $Q ^ { \\pi } : S \\times \\mathcal { A } \\mathbb { R }$ of $\\pi$ is its expected discounted cumulative return $Q ^ { \\pi } ( s , a ) =$ $\\begin{array} { r l } { } & { { } \\underset { - } { \\mathbb { E } } _ { D ^ { \\pi } ( \\xi | s , a ) } [ \\sum _ { t = 0 } ^ { \\infty } \\overset { \\cdot } { \\gamma } { } ^ { t } r _ { t } ] } \\end{array}$ . Assuming the rewards satisfy $r _ { t } \\in [ R _ { \\operatorname* { m i n } } , R _ { \\operatorname* { m a x } } ]$ , then we have $Q ^ { \\pi } ( s , a ) \\in$ $[ V _ { \\operatorname* { m i n } } , V _ { \\operatorname* { m a x } } ] \\subseteq [ \\dot { R } _ { \\operatorname* { m i n } } / ( 1 - \\gamma ) , R _ { \\operatorname* { m a x } } / ( 1 - \\gamma ) ]$ . ",
244
+ "bbox": [
245
+ 173,
246
+ 397,
247
+ 826,
248
+ 526
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "A standard goal of reinforcement learning (RL), which we call risk-neutral RL, is to learn the optimal policy $\\pi ^ { * }$ such that $Q ^ { \\pi ^ { * } } ( s , a ) \\geq Q ^ { \\pi } ( s , a )$ for all $s \\in S , a \\in A$ and all $\\pi$ . ",
255
+ "bbox": [
256
+ 174,
257
+ 530,
258
+ 821,
259
+ 561
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "In offline RL, the learning algorithm only has access to a fixed dataset $\\mathcal { D } : = \\{ ( s , a , r , s ^ { \\prime } ) \\}$ , where $r \\sim R ( \\cdot \\mid s , a )$ and $s ^ { \\prime } \\sim \\bar { P } ( \\cdot \\mid s , a )$ . The goal is to learn the optimal policy without any interaction with the environment. Though we do not assume that $\\mathcal { D }$ necessarily comes from a single behavior policy, we define the empirical behavior policy to be $\\begin{array} { r } { \\hat { \\pi } _ { \\beta } ( a \\mid s ) : = \\frac { \\dot { \\sum _ { s ^ { \\prime } , a ^ { \\prime } \\in \\mathcal { D } } } \\mathbb { 1 } ( s ^ { \\prime } = s , a ^ { \\prime } = a ) } { \\sum _ { s ^ { \\prime } \\in \\mathcal { D } } \\mathbb { 1 } ( s ^ { \\prime } = s ) } } \\end{array}$ . With slight abuse of notation, we write $( s , a , r , s ^ { \\prime } ) \\sim \\mathcal { D }$ to denote a uniformly random sample from the dataset. Also, in this paper, we broadly refer to actions not drawn from ${ \\hat { \\pi } } _ { \\beta } ( \\cdot \\mid s )$ (i.e., low probability density) as out-of-distribution (OOD). ",
266
+ "bbox": [
267
+ 173,
268
+ 565,
269
+ 826,
270
+ 674
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Fitted $Q$ -evaluation (FQE) [9, 34] uses $Q$ -learning for offline RL, which leverages the fact that $Q ^ { \\pi } = \\tau ^ { \\pi } Q ^ { \\pi }$ is the unique fixed point of the Bellman operator $\\mathcal { T } ^ { \\pi } : \\mathbb { R } ^ { | \\mathcal { S } | | \\mathcal { A } | } \\mathbb { R } ^ { | \\bar { \\mathcal { S } } | | \\mathcal { A } | }$ defined by ",
277
+ "bbox": [
278
+ 171,
279
+ 679,
280
+ 823,
281
+ 710
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "equation",
287
+ "img_path": "images/0bc47bbe3b2983fa49883143733a4c18c68b6251747baa596bf36db0927dcc74.jpg",
288
+ "text": "$$\n\\begin{array} { r } { \\mathcal { T } ^ { \\pi } Q ( s , a ) = \\mathbb { E } _ { R ( r \\mid s , a ) } [ r ] + \\gamma \\cdot \\mathbb { E } _ { P ^ { \\pi } ( s ^ { \\prime } , a ^ { \\prime } \\mid s , a ) } [ Q ( s ^ { \\prime } , a ^ { \\prime } ) ] , } \\end{array}\n$$",
289
+ "text_format": "latex",
290
+ "bbox": [
291
+ 312,
292
+ 717,
293
+ 683,
294
+ 736
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "where $P ^ { \\pi } ( s ^ { \\prime } , a ^ { \\prime } | s , a ) = P ( s ^ { \\prime } \\mid s , a ) \\pi ( a ^ { \\prime } \\mid s ^ { \\prime } )$ . In the offline setting, we do not have access to $\\tau ^ { \\pi }$ ; instead, FQE uses an approximation ${ \\hat { \\mathcal { T } } } ^ { \\pi }$ obtained by replacing $R$ and $P$ in $\\mathcal { T } ^ { \\pi }$ with estimates $\\hat { R }$ and $\\hat { P }$ based on $\\mathcal { D }$ . Then, we can estimate $Q ^ { \\pi }$ by starting from an arbitrary $\\hat { Q } ^ { 0 }$ and iteratively computing ",
301
+ "bbox": [
302
+ 174,
303
+ 741,
304
+ 826,
305
+ 790
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "equation",
311
+ "img_path": "images/cc72f87f00b88904b5d5f81f12d5d256abeb8dc1713fdeb5612ed5bb0d161ab1.jpg",
312
+ "text": "$$\n\\hat { Q } ^ { k + 1 } : = \\underset { Q } { \\arg \\operatorname* { m i n } } \\mathcal { L } ( \\hat { Q } , \\hat { T } ^ { \\pi } \\hat { Q } ^ { k } ) \\quad \\mathrm { w h e r e } \\quad \\mathcal { L } ( Q , Q ^ { \\prime } ) = \\mathbb { E } _ { \\mathcal { D } ( s , a ) } \\left[ ( Q ( s , a ) - Q ^ { \\prime } ( s , a ) ) ^ { 2 } \\right] .\n$$",
313
+ "text_format": "latex",
314
+ "bbox": [
315
+ 209,
316
+ 796,
317
+ 787,
318
+ 825
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "Assuming we search over the space of all possible $Q$ (i.e., do not use function approximation), then the minimizer is $\\hat { Q } ^ { k + 1 } = \\hat { T } ^ { \\pi } \\hat { Q } ^ { k }$ , so $\\hat { Q } ^ { k } = ( \\hat { T } ^ { \\pi } ) ^ { k } Q ^ { 0 }$ . If $\\hat { \\mathcal { T } } ^ { \\pi } = \\mathcal { T } ^ { \\pi }$ , then $\\textstyle \\operatorname* { l i m } _ { k \\to \\infty } { \\hat { Q } } ^ { k } = Q ^ { \\pi }$ . ",
325
+ "bbox": [
326
+ 174,
327
+ 832,
328
+ 823,
329
+ 864
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "Distributional RL. In distributional RL, the goal is to learn the distribution of the discounted cumulative rewards (i.e., returns) $\\boxed { 4 }$ . Given a policy $\\pi$ , we denote its return distribution as the random variable $\\begin{array} { r } { Z ^ { \\pi } ( s , a ) = \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r _ { t } } \\end{array}$ , which is a function of a random rollout $\\xi \\sim D ^ { \\pi } ( \\cdot \\mid s , a )$ ",
336
+ "bbox": [
337
+ 173,
338
+ 868,
339
+ 825,
340
+ 912
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "note that $Z ^ { \\pi }$ includes three sources of randomness: (1) the reward $R ( \\cdot \\mid s , a )$ , (2) the transition $\\textstyle P ( \\cdot \\mid s , a )$ , and (3) the policy $\\pi ( \\cdot \\mid s )$ . Also, note that $Q ^ { \\pi } ( s , a ) = \\mathbb { E } _ { D ^ { \\pi } ( \\xi \\mid s , a ) } [ Z ^ { \\pi } ( s , a ) ]$ . Analogous to $Q$ -function Bellman operator, the distributional Bellman operator for $\\pi$ is ",
347
+ "bbox": [
348
+ 171,
349
+ 90,
350
+ 826,
351
+ 133
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "equation",
357
+ "img_path": "images/18f97c0e14f8c3eca4570dc17a17441b4e5b4cf5c9c0f18cc7656f2e63352242.jpg",
358
+ "text": "$$\n\\begin{array} { r } { { \\mathcal T } ^ { \\pi } Z ( s , a ) : = r + \\gamma Z ( s ^ { \\prime } , a ^ { \\prime } ) \\quad \\mathrm { w h e r e } \\quad r \\sim R ( \\cdot \\mid s , a ) , s ^ { \\prime } \\sim P ( \\cdot \\mid s , a ) , a ^ { \\prime } \\sim \\pi ( \\cdot \\mid s ^ { \\prime } ) , } \\end{array}\n$$",
359
+ "text_format": "latex",
360
+ "bbox": [
361
+ 191,
362
+ 140,
363
+ 771,
364
+ 162
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "where $\\underline { { \\underline { { D } } } }$ indicates equality in distribution. As with $Q ^ { \\pi } , Z ^ { \\pi }$ is the unique fixed point of $\\mathcal { T } ^ { \\pi }$ in Eq. 1. Next, let $F _ { Z ( s , a ) } ( x ) : [ V _ { \\mathrm { m i n } } , V _ { \\mathrm { m a x } } ] \\to [ 0 , 1 ]$ be the cumulative density function (CDF) for return distribution $Z ( s , a )$ , and $F _ { R ( s , a ) }$ be the CDF of $R ( \\cdot \\mid s , a )$ Then, we have the following equality, which captures how the distributional Bellman operator $\\tau ^ { \\pi }$ operates on the CDF $F _ { Z ( s , a ) }$ [17]: ",
371
+ "bbox": [
372
+ 173,
373
+ 171,
374
+ 828,
375
+ 239
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "equation",
381
+ "img_path": "images/2d647799d14f43112a9ebf1f81d5fa0e872c8b945b6a05f5abdabeb609050ff9.jpg",
382
+ "text": "$$\nF _ { \\mathcal { T } ^ { \\pi } Z ( s , a ) } ( x ) = \\sum _ { s ^ { \\prime } , a ^ { \\prime } } P ^ { \\pi } ( s ^ { \\prime } , a ^ { \\prime } \\mid s , a ) \\int F _ { Z ( s ^ { \\prime } , a ^ { \\prime } ) } \\left( \\frac { x - r } { \\gamma } \\right) d F _ { R ( s , a ) } ( r ) .\n$$",
383
+ "text_format": "latex",
384
+ "bbox": [
385
+ 258,
386
+ 246,
387
+ 738,
388
+ 286
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "Let $X$ and $Y$ be two random variables. Then, the quantile function (i.e., inverse CDF) $F _ { X } ^ { - 1 }$ of $X$ is $F _ { X } ^ { - 1 } ( \\tau ) : = \\operatorname* { i n f } \\{ x \\in \\mathbb { R } \\mid \\tau \\leq F _ { X } ( x ) \\} .$ , and the $p$ -Wasserstein distance between $X$ and $Y$ is $\\begin{array} { r } { W _ { p } ( X , Y ) = ( \\int _ { 0 } ^ { 1 } \\lvert F _ { Y } ^ { - 1 } ( \\tau ) - F _ { X } ^ { - 1 } ( \\tau ) \\rvert ^ { p } d \\tau ) ^ { 1 / p } } \\end{array}$ . Then, the distributional Bellman operator $\\mathcal { T } ^ { \\pi }$ is a $\\gamma$ -contraction in the $W _ { p }$ [4]—i.e., letting $\\begin{array} { r } { \\bar { d } _ { p } ( Z _ { 1 } , Z _ { 2 } ) : = \\operatorname* { s u p } _ { s , a } W _ { p } ( Z _ { 1 } ( s , a ) , Z _ { 2 } ( s , a ) ) } \\end{array}$ be the largest Wasserstein distance over $( s , a )$ , and $\\mathcal { Z } = \\{ Z : \\mathcal { S } \\times \\mathcal { A } \\to \\mathcal { P } ( \\mathbb { R } ) \\ | \\ \\forall ( s , a ) \\ . \\mathbb { E } [ | Z ( s , a ) | ^ { p } ] < \\infty \\}$ be the space of distributions over $\\mathbb { R }$ with bounded $p$ -th moment, then ",
395
+ "bbox": [
396
+ 173,
397
+ 300,
398
+ 826,
399
+ 396
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "equation",
405
+ "img_path": "images/316e280c0fd7787270c2e243ccbde74a3bf0e384b38e84a42e972b18a5726755.jpg",
406
+ "text": "$$\n\\bar { d } _ { p } ( \\mathcal { T } ^ { \\pi } Z _ { 1 } , \\mathcal { T } ^ { \\pi } Z _ { 2 } ) \\leq \\gamma \\bar { d } _ { p } ( Z _ { 1 } , Z _ { 2 } ) \\qquad ( \\forall Z _ { 1 } , Z _ { 2 } \\in \\mathcal { Z } ) .\n$$",
407
+ "text_format": "latex",
408
+ "bbox": [
409
+ 318,
410
+ 400,
411
+ 679,
412
+ 419
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "As a result, $Z ^ { \\pi }$ may be obtained by iteratively applying $\\tau ^ { \\pi }$ to an initial distribution $Z$ . ",
419
+ "bbox": [
420
+ 171,
421
+ 422,
422
+ 741,
423
+ 439
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "As before, in the offline setting, we can approximate $\\tau ^ { \\pi }$ by ${ \\hat { \\tau } } ^ { \\pi }$ using $\\mathcal { D }$ . Then, we can compute $Z ^ { \\pi }$ (represented as $F _ { Z ( s , a ) } ^ { - 1 }$ ; see below) by starting from an arbitrary ${ \\hat { Z } } ^ { 0 }$ , and iteratively computing ",
430
+ "bbox": [
431
+ 174,
432
+ 445,
433
+ 825,
434
+ 479
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "equation",
440
+ "img_path": "images/56beaebb803b27054bb9c8927bc28b27943a9f31f8dbb80224f09b349580ba82.jpg",
441
+ "text": "$$\n\\hat { Z } ^ { k + 1 } = \\underset { Z } { \\arg \\operatorname* { m i n } } \\mathcal { L } _ { p } ( Z , \\hat { T } ^ { \\pi } \\hat { Z } ^ { k } ) \\quad \\mathrm { w h e r e } \\quad \\mathcal { L } _ { p } ( Z , Z ^ { \\prime } ) = \\mathbb { E } _ { \\mathcal { D } ( s , a ) } \\left[ W _ { p } ( Z ( s , a ) , Z ^ { \\prime } ( s , a ) ) ^ { p } \\right] .\n$$",
442
+ "text_format": "latex",
443
+ "bbox": [
444
+ 192,
445
+ 487,
446
+ 784,
447
+ 515
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "We call this procedure fitted distributional evaluation $( F D E )$ . ",
454
+ "bbox": [
455
+ 173,
456
+ 520,
457
+ 575,
458
+ 535
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "One distributional RL algorithmic framework is quantile-based distributional RL [7, 6, 47, 27, 38, 43], where the return distribution $Z$ is represented by its quantile function $F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) : [ 0 , 1 ] \\to \\mathbb { R }$ . Given a distribution $g ( \\tau )$ over $[ 0 , 1 ]$ , the distorted expectation of $Z$ is $\\begin{array} { r } { \\Phi _ { g } ( Z ( s , a ) ) = \\int _ { 0 } ^ { 1 } F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) g ( \\tau ) d \\tau } \\end{array}$ , and the corresponding policy is $\\begin{array} { r } { \\pi _ { g } ( s ) : = \\arg \\operatorname* { m a x } _ { a } \\Phi _ { g } ( Z ( s , a ) ) } \\end{array}$ [7]. If $g = \\mathrm { U n i f o r m } ( [ 0 , 1 ] )$ , then $Q ^ { \\pi } ( s , a ) = \\bar { \\Phi _ { g } } ( Z ( s , \\bar { a } ) )$ ; alternatively, $g = \\operatorname { U n i f o r m } ( [ 0 , \\xi ] )$ corresponds to the CVaR [35, 5, 6] objective, where only the bottom $\\xi$ -percentile of the return is considered. Additional risk-sensitive objectives are also compatible. For example, CPW $\\pmb { \\mathbb { \\mathbb { \\mathbb { \\mathbb { \\mathbb { \\Psi } } } } } }$ amounts to $g ( \\tau ) = \\tau ^ { \\beta } / ( \\tau ^ { \\beta } + ( 1 - \\tau ) ^ { \\beta } ) ^ { \\frac { 1 } { \\beta } }$ , and Wang $\\boxed { 4 5 }$ has $g ( \\tau ) = F _ { \\cal N } ( F _ { \\cal N } ^ { - 1 } ( \\tau ) + \\beta )$ , where $F _ { \\mathcal { N } }$ is the standard Gaussian CDF. ",
465
+ "bbox": [
466
+ 173,
467
+ 540,
468
+ 826,
469
+ 670
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "A drawback of FDE is that it does not account for estimation error, especially for pairs $( s , a )$ that rarely appear in the given dataset $\\mathcal { D }$ ; thus, $\\hat { Z } ^ { k } ( s , a )$ may be an overestimate of $Z ^ { k } ( s , a )$ [12, 20, 21], even in distributional RL (since the learned distribution does not include randomness in the dataset) $\\boxed { 1 4 } \\boxed { 3 }$ . Importantly, since we act by optimizing with respect to $\\hat { Z } ^ { k } ( s , a )$ , the optimization algorithm will exploit these errors, biasing towards actions with higher uncertainty, which is the opposite of what is desired. In Section $\\textcircled { 3 }$ we propose and analyze a penalty designed to avoid this issue. ",
476
+ "bbox": [
477
+ 173,
478
+ 674,
479
+ 826,
480
+ 763
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "3 Conservative offline distributional policy evaluation ",
487
+ "text_level": 1,
488
+ "bbox": [
489
+ 173,
490
+ 780,
491
+ 637,
492
+ 799
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "We describe our algorithm for computing a conservative estimate of $Z ^ { \\pi } ( s , a )$ , and provide theoretical guarantees for finite MDPs. In particular, we modify Eq. 4 to include a penalty term: ",
499
+ "bbox": [
500
+ 173,
501
+ 811,
502
+ 826,
503
+ 842
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/acbd3f8d5867dbd7b8bda8afc2a516ad8dd0dc6e96af1d67436dc5f52a0f001b.jpg",
510
+ "text": "$$\n\\tilde { Z } ^ { k + 1 } = \\underset { Z } { \\arg \\operatorname* { m i n } } \\alpha \\cdot \\mathbb { E } _ { U ( \\tau ) , \\mathcal { D } ( s , a ) } \\left[ c _ { 0 } ( s , a ) \\cdot F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) \\right] + \\mathcal { L } _ { p } ( Z , \\hat { T } ^ { \\pi } \\tilde { Z } ^ { k } )\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 256,
514
+ 847,
515
+ 740,
516
+ 876
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "for some state-action dependent scale factor $c _ { 0 }$ ; here, $U = \\mathrm { U n i f o r m } ( [ 0 , 1 ] )$ . This objective adapts the conservative penalty in prior work $\\left[ 2 1 \\right]$ to the distributional RL setting; in particular, the first term in the objective is a penalty that aims to shrink the quantile values for out-of-distribution (OOD) actions compared to those of in-distribution actions; intuitively, $c _ { 0 } ( s , a )$ should be larger for OOD actions. For now, we let $c _ { 0 }$ be arbitrary; we describe our choice in Section 4. $\\alpha \\in \\mathbb { R } _ { > 0 }$ is a hyperparameter controlling the magnitude of the penalty term with respect to the usual FDE objective. We call this iterative algorithm conservative distribution evaluation $( C D E )$ . ",
523
+ "bbox": [
524
+ 173,
525
+ 882,
526
+ 823,
527
+ 912
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "image",
533
+ "img_path": "images/818c7e37b648f95f76603f525bd2bbdf997d895493501e11bf9b97c1ce6624f1.jpg",
534
+ "image_caption": [
535
+ "Figure 2: Overview of our theoretical results. "
536
+ ],
537
+ "image_footnote": [],
538
+ "bbox": [
539
+ 176,
540
+ 90,
541
+ 823,
542
+ 195
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "",
549
+ "bbox": [
550
+ 173,
551
+ 242,
552
+ 826,
553
+ 313
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "Next, we analyze theoretical properties of CDE in the setting of finite MDPs; Figure 2 overviews these results. First, we prove that CDE iteratively obtains conservative quantile estimates (Lemma 3.4) and defines a contraction operator on return distributions (Lemma $\\textcircled { 3 . 5 }$ Then, our main result (Theorem $\\boxed { 3 . 6 }$ is that CDE converges to a fixed point $\\tilde { Z } ^ { \\pi }$ whose quantile function lower bounds that of the true returns $Z ^ { \\pi }$ . We also prove that CDE is gap-expanding (Theorem $3 . 8 )$ —i.e., it is more conservative for actions that are rare in $\\mathcal { D }$ . These results translate to RL objectives computed by integrating the return quantiles, including expected and CVaR returns (Corollaries 3.7 & 3.9). ",
560
+ "bbox": [
561
+ 173,
562
+ 318,
563
+ 825,
564
+ 419
565
+ ],
566
+ "page_idx": 4
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "We begin by describing our assumptions on the MDP and dataset. First, we assume that our dataset $\\mathcal { D }$ has nonzero coverage of all actions for states in the dataset $[ \\sqrt { 2 3 } , \\sqrt { 2 1 } ]$ . ",
571
+ "bbox": [
572
+ 173,
573
+ 424,
574
+ 823,
575
+ 453
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Assumption 3.1. For all $s \\in \\mathcal { D }$ and $a \\in { \\mathcal { A } }$ , we have ${ \\hat { \\pi } } _ { \\beta } ( a \\mid s ) > 0$ ",
582
+ "bbox": [
583
+ 174,
584
+ 457,
585
+ 616,
586
+ 472
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "This assumption is only needed by our theoretical analysis to avoid division-by-zero and ensure that all estimates are well-defined; alternatively, we could assign a very low value ${ \\hat { \\pi } } _ { \\beta } ( a \\mid s ) : = \\epsilon$ for all actions not visited at state $s$ in the offline dataset and renormalize ${ \\hat { \\pi } } _ { \\beta } ( a \\mid s )$ accordingly. Next, we impose regularity conditions on the fixed point $Z ^ { \\pi }$ of the distributional Bellman operator $\\mathcal { T } ^ { \\pi }$ . ",
593
+ "bbox": [
594
+ 174,
595
+ 482,
596
+ 826,
597
+ 537
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Assumption 3.2. For all $s \\in S$ and $a \\in { \\mathcal { A } }$ , $F _ { Z ^ { \\pi } \\left( s , a \\right) }$ is smooth. Furthermore, there exists $\\zeta \\in \\mathbb { R } _ { > 0 }$ such that for all $s \\in S$ and $a \\in { \\mathcal { A } }$ , $F _ { Z ^ { \\pi } \\left( s , a \\right) }$ is $\\zeta$ -strongly monotone—i.e., we have $F _ { Z ^ { \\pi } ( s , a ) } ^ { \\prime } ( x ) \\geq \\zeta$ ",
604
+ "bbox": [
605
+ 174,
606
+ 541,
607
+ 825,
608
+ 574
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "The smoothness assumption ensures that the $p$ th moments of $Z ^ { \\pi } ( s , a )$ are bounded (since $Z ^ { \\pi } \\in \\mathbf { \\pi }$ $[ V _ { \\operatorname* { m i n } } , V _ { \\operatorname* { m a x } } ]$ is also bounded), whnsure convergence of n ensures that . Next, we assu $Z ^ { \\pi } \\in { \\mathcal { Z } }$ . The monotonicitthe search space in sumption is includes all $F _ { Z ^ { \\pi } \\left( s , a \\right) } ^ { - 1 } .$ $( 5 )$ possible functions (i.e., no function approximation). ",
615
+ "bbox": [
616
+ 173,
617
+ 585,
618
+ 826,
619
+ 647
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Assumption 3.3. The search space of the minimum over $Z$ in $( 5 )$ is over all smooth functions $F _ { Z ( s , a ) }$ (for all $s \\in S$ and $a \\in { \\mathcal { A } }$ ) with support on $[ V _ { \\operatorname* { m i n } } , V _ { \\operatorname* { m a x } } ]$ . ",
626
+ "bbox": [
627
+ 173,
628
+ 650,
629
+ 821,
630
+ 681
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "This assumption is required for us to analytically characterize the solution $\\tilde { Z } ^ { k + 1 }$ of the CDE objective. \nFinally, we also assume $p > 1$ (i.e., we use the $p$ -Wasserstein distance for some $p > 1$ ). ",
637
+ "bbox": [
638
+ 173,
639
+ 691,
640
+ 825,
641
+ 722
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "Now, we describe our key results. Our first result characterizes the CDE iterates $\\tilde { Z } ^ { k + 1 }$ ; importantly, if $c _ { 0 } ( s , a ) > 0$ , then these iterates encode successively more conservative quantile estimates. ",
648
+ "bbox": [
649
+ 171,
650
+ 728,
651
+ 825,
652
+ 758
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Lemma 3.4. For all $s \\in \\mathcal { D }$ , $a \\in \\mathcal { A } , k \\in \\mathbb { N } .$ , and $\\tau \\in [ 0 , 1 ]$ , we have ",
659
+ "bbox": [
660
+ 173,
661
+ 761,
662
+ 614,
663
+ 777
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "equation",
669
+ "img_path": "images/971446d5088bef7d1f050f22b611395852996a6620cef5024b31695d1a9ad52d.jpg",
670
+ "text": "$$\nF _ { \\tilde { Z } ^ { k + 1 } ( s , a ) } ^ { - 1 } ( \\tau ) = F _ { \\tilde { T } ^ { \\pi } \\tilde { Z } ^ { k } ( s , a ) } ^ { - 1 } ( \\tau ) - c ( s , a ) \\ w h e r e \\ c ( s , a ) = | \\alpha p ^ { - 1 } c _ { 0 } ( s , a ) | ^ { 1 / ( p - 1 ) } \\cdot \\mathrm { s i g n } ( c _ { 0 } ( s , a ) ) .\n$$",
671
+ "text_format": "latex",
672
+ "bbox": [
673
+ 181,
674
+ 784,
675
+ 816,
676
+ 809
677
+ ],
678
+ "page_idx": 4
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "We give a proof in Appendix $\\mathbf { A . l } ;$ roughly speaking, it follows by setting the gradient of $\\textcircled{5}$ equal to zero, relying on results from the calculus of variations to handle the fact that $\\stackrel { - } { F } _ { Z \\left( s , a \\right) } ^ { - 1 }$ is a function. ",
683
+ "bbox": [
684
+ 173,
685
+ 819,
686
+ 823,
687
+ 852
688
+ ],
689
+ "page_idx": 4
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Next, we define the CDE operator $\\tilde { \\mathcal { T } } ^ { \\pi } = \\mathcal { O } _ { c } \\hat { \\mathcal { T } } ^ { \\pi }$ to be the composition of ${ \\hat { \\mathcal { T } } } ^ { \\pi }$ with the shift operator $\\mathcal { O } _ { c } : \\mathcal { Z } \\mathcal { Z }$ defined by $F _ { \\mathcal { O } _ { c } Z ( s , a ) } ^ { - 1 } ( \\tau ) = F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) - c ( s , a )$ T; thus, Lemma 3.4 says $\\tilde { Z } ^ { k + \\bar { 1 } } = \\tilde { T } ^ { \\pi } \\tilde { Z } ^ { k }$ . Now, we show that $\\tilde { \\tau } ^ { \\pi }$ is a contraction in the maximum Wasserstein distance $\\bar { d } _ { p }$ . ",
694
+ "bbox": [
695
+ 173,
696
+ 859,
697
+ 826,
698
+ 912
699
+ ],
700
+ "page_idx": 4
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Lemma 3.5. $\\tilde { \\mathcal { T } } ^ { \\pi }$ is a $\\gamma$ -contraction in $\\bar { d } _ { p }$ , so $\\tilde { Z } ^ { k }$ converges to a unique fixed point $\\tilde { Z } ^ { \\pi }$ ",
705
+ "bbox": [
706
+ 171,
707
+ 88,
708
+ 740,
709
+ 107
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "The first part follows since ${ \\hat { \\mathcal { T } } } ^ { \\pi }$ is a $\\gamma$ -contraction in $\\bar { d } _ { p }$ [4, $\\textcircled { 7 }$ , and $\\mathcal { O } _ { c }$ is a non-expansion in $\\bar { d } _ { p }$ , so by composition, $\\tilde { \\mathcal { T } } ^ { \\pi }$ is a $\\gamma$ -contraction in $\\bar { d } _ { p }$ ; the second follows by the Banach fixed point theorem. ",
716
+ "bbox": [
717
+ 174,
718
+ 118,
719
+ 823,
720
+ 152
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "Now, our first main theorem says that the fixed point $\\tilde { Z } ^ { \\pi }$ of $\\tilde { \\mathcal { T } } ^ { \\pi }$ is a conservative estimate of $Z ^ { \\pi }$ at all quantiles $\\tau$ —i.e., CDE computes quantile estimates that lower bound the quantiles of the true return; furthermore, it says that this lower bound is tight. ",
727
+ "bbox": [
728
+ 174,
729
+ 159,
730
+ 826,
731
+ 203
732
+ ],
733
+ "page_idx": 5
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "Theorem 3.6. For any $\\delta \\in \\mathbb { R } _ { > 0 }$ , $c _ { 0 } ( s , a ) > 0$ , with probability at least $1 - \\delta$ , ",
738
+ "bbox": [
739
+ 174,
740
+ 207,
741
+ 684,
742
+ 223
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "equation",
748
+ "img_path": "images/8f6b75a17e5027fa8c46c1453e845a2efd4f6ed9a5a26e2a1a8730aacaca7eb3.jpg",
749
+ "text": "$$\n\\begin{array} { r l } & { F _ { Z ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) \\geq F _ { \\tilde { Z } ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) + ( 1 - \\gamma ) ^ { - 1 } \\underset { s ^ { \\prime } , a ^ { \\prime } } { \\operatorname* { m i n } } \\{ c ( s ^ { \\prime } , a ^ { \\prime } ) - \\Delta ( s ^ { \\prime } , a ^ { \\prime } ) \\} , } \\\\ & { F _ { Z ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) \\leq F _ { \\tilde { Z } ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) + ( 1 - \\gamma ) ^ { - 1 } \\underset { s ^ { \\prime } , a ^ { \\prime } } { \\operatorname* { m a x } } \\{ c ( s ^ { \\prime } , a ^ { \\prime } ) - \\Delta ( s ^ { \\prime } , a ^ { \\prime } ) \\} } \\end{array}\n$$",
750
+ "text_format": "latex",
751
+ "bbox": [
752
+ 272,
753
+ 229,
754
+ 723,
755
+ 284
756
+ ],
757
+ "page_idx": 5
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "for all sufficie $s \\in \\mathcal { D }$ $a \\in { \\mathcal { A } } ,$ $\\tau \\in [ 0 , 1 ]$ $\\begin{array} { r } { \\Delta ( s , a ) = \\frac { 1 } { \\zeta } \\sqrt { \\frac { 5 | S | } { n ( s , a ) } \\log \\frac { 4 | S | | A | } { \\delta } } } \\end{array}$ rmore, for . $\\alpha$ ntly large (i.e., ↵ \u0000 maxs,a{ p·\u0000(s,a)p\u00001c (s,a) } $F _ { Z ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) \\geq F _ { \\tilde { Z } ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) .$ ",
762
+ "bbox": [
763
+ 173,
764
+ 292,
765
+ 825,
766
+ 340
767
+ ],
768
+ "page_idx": 5
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "We give a proof in Appendix $\\boxed { \\mathbf { A . 2 } }$ The first inequality says that the quantile estimates computed by CDE form a lower bound on the true quantiles; this bound is not vacuous as long as $\\alpha$ satisfies the given condition. Furthermore, the second inequality states that this lower bound is tight. ",
773
+ "bbox": [
774
+ 173,
775
+ 351,
776
+ 826,
777
+ 393
778
+ ],
779
+ "page_idx": 5
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Many RL objectives (e.g., expected or CVaR return) are distorted expectations (i.e, integrals of the return quantiles). We can extend Theorem $3 . 6$ to obtain conservative estimates for all such objectives: ",
784
+ "bbox": [
785
+ 176,
786
+ 398,
787
+ 823,
788
+ 429
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Corollary 3.7. For any $\\delta \\in \\mathbb { R } _ { > 0 }$ , $c _ { 0 } ( s , a ) > 0$ , $\\alpha$ sufficiently large, and $g ( \\tau )$ , with probability at least $1 - \\delta$ , for all $s \\in \\mathcal { D }$ , $a \\in { \\mathcal { A } }$ , we have $\\Phi _ { g } ( Z ^ { \\pi } ( s , a ) ) \\geq \\Phi _ { g } ( \\tilde { Z } ^ { \\pi } ( s , a ) )$ . ",
795
+ "bbox": [
796
+ 173,
797
+ 433,
798
+ 823,
799
+ 465
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Choosing $g = { \\mathrm { U n i f o r m } } ( [ 0 , 1 ] )$ gives $Q ^ { \\pi } ( s , a ) \\geq \\tilde { Q } ^ { \\pi } ( s , a ) .$ —i.e., a lower bound on the $Q$ -function. CQL $\\pmb { \\mathbb { Z } } 1 \\mathbf { l }$ obtains a similar lower-bound; thus, CDE generalizes CQL to other objectives—e.g., it can be used in conjunction with any distorted expectation objective (e.g., CVaR, Wang, CPW, etc.) for risk-sensitive offline RL. ",
806
+ "bbox": [
807
+ 173,
808
+ 476,
809
+ 826,
810
+ 534
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Note that Theorem $\\boxed { 3 . 6 }$ does not preclude the possibility that the lower bounds are more conservative for good actions (i.e., ones for which $\\hat { \\pi } _ { \\beta } ( a \\mid \\bar { s } )$ is larger). We prove that under the choice1 ",
817
+ "bbox": [
818
+ 171,
819
+ 539,
820
+ 825,
821
+ 570
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "equation",
827
+ "img_path": "images/b601e51b40fc42d4527d96b3725a9ec310dd8278608a5f4b20d0df64b21543de.jpg",
828
+ "text": "$$\nc _ { 0 } ( s , a ) = { \\frac { \\mu ( a \\mid s ) - { \\hat { \\pi } } _ { \\beta } ( a \\mid s ) } { { \\hat { \\pi } } _ { \\beta } ( a \\mid s ) } }\n$$",
829
+ "text_format": "latex",
830
+ "bbox": [
831
+ 392,
832
+ 577,
833
+ 606,
834
+ 612
835
+ ],
836
+ "page_idx": 5
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "for some $\\mu ( a \\mid s ) \\neq { \\hat { \\pi } } _ { \\beta } ( a \\mid s )$ , then $\\tilde { \\mathcal { T } } ^ { \\pi }$ is gap-expanding—i.e., the difference in quantile values between in-distribution and out-of-distribution actions is larger under $\\tilde { \\tau } ^ { \\pi }$ than under $\\mathcal { T } ^ { \\pi }$ . Intuitively, $c _ { 0 } ( s , a )$ is large for actions $a$ with higher probability under $\\mu$ than under $\\hat { \\pi } _ { \\beta }$ (i.e., an OOD action). ",
841
+ "bbox": [
842
+ 173,
843
+ 619,
844
+ 826,
845
+ 667
846
+ ],
847
+ "page_idx": 5
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "Theorem 3.8. For $p = 2$ , $\\alpha$ sufficiently large, and $c _ { 0 }$ as in $( ^ { \\dag } )$ , for all $s \\in S$ and $\\tau \\in [ 0 , 1 ]$ , ",
852
+ "bbox": [
853
+ 171,
854
+ 670,
855
+ 769,
856
+ 689
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "equation",
862
+ "img_path": "images/095ba7a4970b2e20ec693a75f4f980d8e53c1f54aae63ff1e94cd140fc5750a2.jpg",
863
+ "text": "$$\n\\begin{array} { r } { \\mathbb { E } _ { \\hat { \\pi } _ { \\beta } ( a \\vert s ) } F _ { \\tilde { Z } ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) - \\mathbb { E } _ { \\mu ( a \\vert s ) } F _ { \\tilde { Z } ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) \\geq \\mathbb { E } _ { \\hat { \\pi } _ { \\beta } ( a \\vert s ) } F _ { Z ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) - \\mathbb { E } _ { \\mu ( a \\vert s ) } F _ { Z ^ { \\pi } ( s , a ) } ^ { - 1 } ( \\tau ) . } \\end{array}\n$$",
864
+ "text_format": "latex",
865
+ "bbox": [
866
+ 207,
867
+ 694,
868
+ 789,
869
+ 717
870
+ ],
871
+ "page_idx": 5
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "As before, the gap-expansion property implies gap-expansion of integrals of the quantiles—i.e.: ",
876
+ "bbox": [
877
+ 171,
878
+ 731,
879
+ 795,
880
+ 747
881
+ ],
882
+ "page_idx": 5
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Corollary 3.9. For $p = 2$ , $\\alpha$ sufficiently large, $c _ { 0 }$ as in $\\textcircled { 6 }$ , and any $g ( \\tau )$ , for all $s \\in S$ ",
887
+ "bbox": [
888
+ 173,
889
+ 750,
890
+ 745,
891
+ 768
892
+ ],
893
+ "page_idx": 5
894
+ },
895
+ {
896
+ "type": "equation",
897
+ "img_path": "images/75d1f96b505b7ba2448d172824f131c319515e4a8410f077fdff23683ed7018a.jpg",
898
+ "text": "$$\n\\begin{array} { r } { \\mathbb { E } _ { \\hat { \\pi } _ { \\beta } ( a | s ) } \\Phi _ { g } \\big ( \\tilde { Z } ^ { \\pi } ( s , a ) \\big ) - \\mathbb { E } _ { \\mu ( a | s ) } \\Phi _ { g } \\big ( \\tilde { Z } ^ { \\pi } ( s , a ) \\big ) \\geq \\mathbb { E } _ { \\hat { \\pi } _ { \\beta } ( a | s ) } \\Phi _ { g } \\big ( Z ^ { \\pi } ( s , a ) \\big ) - \\mathbb { E } _ { \\mu ( a | s ) } \\Phi _ { g } \\big ( Z ^ { \\pi } ( s , a ) \\big ) . } \\end{array}\n$$",
899
+ "text_format": "latex",
900
+ "bbox": [
901
+ 184,
902
+ 773,
903
+ 813,
904
+ 795
905
+ ],
906
+ "page_idx": 5
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Together, Corollaries $\\underline { { \\boldsymbol { \\left| 3 . 7 \\right| } } } \\& \\boxed { 3 . 9 }$ say that CDE provides conservative lower bounds on the return quantiles while being less conservative for in-distribution actions. ",
911
+ "bbox": [
912
+ 176,
913
+ 806,
914
+ 821,
915
+ 837
916
+ ],
917
+ "page_idx": 5
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Finally, we briefly discuss the condition on $\\alpha$ in Theorems $3 . 6 \\ : \\& \\ : 3 . 8 .$ In general, $\\alpha$ can be taken to be small as long as $\\Delta ( s , a )$ is small for all $s \\in S$ and $a \\in { \\mathcal { A } }$ , which in turn holds as long as $n ( s , a )$ is large—i.e., the dataset $\\mathcal { D }$ has wide coverage. ",
922
+ "bbox": [
923
+ 174,
924
+ 842,
925
+ 825,
926
+ 886
927
+ ],
928
+ "page_idx": 5
929
+ },
930
+ {
931
+ "type": "image",
932
+ "img_path": "images/142f1926c99155859d31045ab575b1c477b26a6df08a0856e9ab15d348af434e.jpg",
933
+ "image_caption": [
934
+ "Figure 3: 2D visualization of evaluation trajectories on the Risky PointMass environment. The red region is risky, the solid blue circles indicate initial states, and the blue lines are trajectories. CODAC-C is the only algorithm that successfully avoids the risky region. "
935
+ ],
936
+ "image_footnote": [],
937
+ "bbox": [
938
+ 186,
939
+ 87,
940
+ 815,
941
+ 185
942
+ ],
943
+ "page_idx": 6
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "4 Conservative offline distributional actor critic ",
948
+ "text_level": 1,
949
+ "bbox": [
950
+ 173,
951
+ 262,
952
+ 588,
953
+ 280
954
+ ],
955
+ "page_idx": 6
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Next, we incorporate the distributional evaluation algorithm in Section 3 into an actor-critic framework. Following $\\overrightarrow { \\vert 2 1 \\vert }$ , we propose a min-max objective where the inner loop chooses the current policy to maximize the CDE objective, and the outer loop minimizes the CDE objective for this policy: ",
960
+ "bbox": [
961
+ 173,
962
+ 292,
963
+ 828,
964
+ 335
965
+ ],
966
+ "page_idx": 6
967
+ },
968
+ {
969
+ "type": "equation",
970
+ "img_path": "images/27dc8c0a72a1d3c0a07b98f4a3d2fe2ec7811ba7871904d75057f6235ade64de.jpg",
971
+ "text": "$$\n\\hat { Z } ^ { k + 1 } = \\underset { Z } { \\arg \\operatorname* { m i n } } \\underset { \\mu } { \\operatorname* { m a x } } \\left\\{ \\alpha \\cdot \\mathbb { E } _ { U ( \\tau ) } \\left[ \\mathbb { E } _ { \\mathcal { D } ( s ) , \\mu ( a \\mid s ) } F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) - \\mathbb { E } _ { \\mathcal { D } ( s , a ) } F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) \\right] + \\mathcal { L } _ { p } ( Z , \\hat { T } ^ { \\pi ^ { k } } \\hat { Z } ^ { k } ) \\right\\}\n$$",
972
+ "text_format": "latex",
973
+ "bbox": [
974
+ 181,
975
+ 342,
976
+ 831,
977
+ 371
978
+ ],
979
+ "page_idx": 6
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "where we have used $c _ { 0 }$ as in $^ { ( 6 ) }$ . We can interpret $\\mu$ as an actor policy, the first term as the objective for $\\mu$ , and the overall objective as an actor-critic algorithm $\\textcircled { 8 }$ . In this framework, a natural choice for $\\mu$ is a maximum entropy policy $\\mu ( a \\mid s ) \\propto \\exp ( Q ( s , a ) )$ [49]. Then, our objective becomes ",
984
+ "bbox": [
985
+ 173,
986
+ 377,
987
+ 825,
988
+ 421
989
+ ],
990
+ "page_idx": 6
991
+ },
992
+ {
993
+ "type": "equation",
994
+ "img_path": "images/0f6f4ddcfba551e4f166fd14b6408766c64b459b44d12bee34a16908ade8a68b.jpg",
995
+ "text": "$$\n^ { \\mathrm { ~ 1 ~ } } = \\arg \\operatorname* { m i n } _ { Z } \\left\\{ \\alpha \\cdot \\mathbb { E } _ { U ( \\tau ) } \\left[ \\mathbb { E } _ { \\mathcal { D } ( s ) } \\log \\sum _ { a } \\exp ( F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) ) - \\mathbb { E } _ { \\mathcal { D } ( s , a ) } F _ { Z ( s , a ) } ^ { - 1 } ( \\tau ) \\right] + \\mathcal { L } _ { p } ( Z , \\hat { T } ^ { \\pi ^ { k } } \\hat { Z } ^ { k } ) \\right\\} ,\n$$",
996
+ "text_format": "latex",
997
+ "bbox": [
998
+ 202,
999
+ 426,
1000
+ 861,
1001
+ 469
1002
+ ],
1003
+ "page_idx": 6
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "where $U = { \\mathrm { U n i f o r m } } ( [ 0 , 1 ] )$ ; we provide a derivation in Appendix B. We call this strategy conservative offline distributional actor critic (CODAC). To optimize over $Z$ , we represent the quantile function as a DNN $G _ { \\theta } ( \\tau ; s , a ) \\approx F _ { Z ( s , a ) } ^ { - 1 } ( \\tau )$ . The main challenge is optimizing the term $\\mathcal { L } _ { p } ( Z , \\hat { T } ^ { \\pi } \\hat { Z } ^ { k } ) = W _ { p } ( Z , \\hat { T } ^ { \\pi } \\hat { Z } ^ { k } ) ^ { p }$ . We do so using distributional temporal-differences (TD) [6]. For a sample $( s , a , r , s ^ { \\prime } ) \\tilde { } \\sim \\mathcal { D }$ and $\\smash { \\dot { a ^ { \\prime } } \\sim \\pi ( \\cdot \\mid s ^ { \\prime } ) }$ and random quantiles $\\tau , \\tau ^ { \\prime } \\sim U$ , we have ",
1008
+ "bbox": [
1009
+ 173,
1010
+ 473,
1011
+ 828,
1012
+ 553
1013
+ ],
1014
+ "page_idx": 6
1015
+ },
1016
+ {
1017
+ "type": "equation",
1018
+ "img_path": "images/23cd1dbdf3e7991e0619843412511ad6ccef6904ea32bfc1392d7210952d7525.jpg",
1019
+ "text": "$$\n\\mathcal { L } _ { p } ( Z , \\hat { \\mathcal { T } } ^ { \\pi } \\hat { Z } ^ { k } ) \\approx \\mathcal { L } _ { \\kappa } ( \\delta ; \\tau ) \\qquad \\mathrm { w h e r e } \\qquad \\delta = r + \\gamma G _ { \\theta ^ { \\prime } } ( \\tau ^ { \\prime } ; s ^ { \\prime } , a ^ { \\prime } ) - G _ { \\theta } ( \\tau ; s , a ) .\n$$",
1020
+ "text_format": "latex",
1021
+ "bbox": [
1022
+ 232,
1023
+ 559,
1024
+ 764,
1025
+ 579
1026
+ ],
1027
+ "page_idx": 6
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Here, $\\delta$ is the distributional TD error, $\\theta ^ { \\prime }$ are the parameters of the target $Q$ -network $\\pmb { \\Vert 3 0 }$ , and ",
1032
+ "bbox": [
1033
+ 169,
1034
+ 583,
1035
+ 779,
1036
+ 599
1037
+ ],
1038
+ "page_idx": 6
1039
+ },
1040
+ {
1041
+ "type": "equation",
1042
+ "img_path": "images/672a90d4c8c2203e2ace2a0b14d1f37ee2b772bac5f79646fc2235f31406fedc.jpg",
1043
+ "text": "$$\n\\mathcal { L } _ { \\kappa } ( \\delta ; \\tau ) = \\left\\{ \\begin{array} { l l } { | \\tau - \\mathbb { 1 } ( \\delta < 0 ) | \\cdot \\delta ^ { 2 } / ( 2 \\kappa ) } & { \\mathrm { i f ~ } | \\delta | \\leq \\kappa } \\\\ { | \\tau - \\mathbb { 1 } ( \\delta < 0 ) | \\cdot ( | \\delta | - \\kappa / 2 ) } & { \\mathrm { o t h e r w i s e } \\ . } \\end{array} \\right.\n$$",
1044
+ "text_format": "latex",
1045
+ "bbox": [
1046
+ 320,
1047
+ 606,
1048
+ 674,
1049
+ 642
1050
+ ],
1051
+ "page_idx": 6
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "is the $\\tau$ -Huber quantile regression loss at threshold $\\kappa$ [15]; then, $\\mathbb { E } _ { U ( \\tau ) } \\mathcal { L } _ { \\kappa } ( \\delta ; \\tau )$ is an unbiased estimator of the Wasserstein distance that can be optimized using stochastic gradient descent (SGD) $\\boxed { 1 9 }$ . With this strategy, our overall objective can be optimized using any off-policy actorcritic method $\\pm \\boxed { 1 3 } \\boxed { 1 1 }$ ; we use distributional soft actor-critic (DSAC) $| \\widetilde { | 2 7 | }$ , which replaces the $Q$ -network in SAC $\\textcircled { 1 3 } \\textcircled { }$ with a quantile distributional critic network $\\perp \\parallel$ . We provide the full CODAC pseudocode in Algorithm 1 of Appendix B. ",
1056
+ "bbox": [
1057
+ 173,
1058
+ 647,
1059
+ 826,
1060
+ 734
1061
+ ],
1062
+ "page_idx": 6
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "5 Experiments ",
1067
+ "text_level": 1,
1068
+ "bbox": [
1069
+ 173,
1070
+ 751,
1071
+ 312,
1072
+ 768
1073
+ ],
1074
+ "page_idx": 6
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "We show that CODAC achieves state-of-the-art results on both risk-sensitive (Sections 5.1 &5.2) and risk-neutral (Section 5.3) offline RL tasks, including our risky robot navigation and D4RL [10] We also show that our lower bound (Theorem $\\underline { { \\overline { { 3 . 6 } } } }$ and gap-expansion (Theorem $\\boxed { 3 . 8 }$ results approximately hold in practice, (Section 5.4), validating our theory on CODAC’s effectiveness. We provide additional details (e.g., environment descriptions, hyperparameters, and additional results) in Appendix C. ",
1079
+ "bbox": [
1080
+ 173,
1081
+ 781,
1082
+ 825,
1083
+ 853
1084
+ ],
1085
+ "page_idx": 6
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "5.1 Risky robot navigation ",
1090
+ "text_level": 1,
1091
+ "bbox": [
1092
+ 174,
1093
+ 868,
1094
+ 370,
1095
+ 883
1096
+ ],
1097
+ "page_idx": 6
1098
+ },
1099
+ {
1100
+ "type": "table",
1101
+ "img_path": "images/c7b888d17f028df1fa4fc033d62e37e8428be03884c18ba1f81a073aa6c9858d.jpg",
1102
+ "table_caption": [
1103
+ "Table 1: Risky robot navigation quantitative evaluation. CODAC-C achieves the best performance on most metrics and is the only method that learns risk-averse behavior. This table is reproduced with standard deviations in Table 6 in Appendix C. "
1104
+ ],
1105
+ "table_footnote": [],
1106
+ "table_body": "<table><tr><td rowspan=\"2\">Algorithm</td><td colspan=\"4\">Risky PointMass</td><td colspan=\"4\">Risky Ant</td></tr><tr><td>Mean</td><td>Median</td><td>CVaR0.1</td><td>Violations</td><td>Mean</td><td>Median</td><td>CVaRo.1</td><td>Violations</td></tr><tr><td>DSAC (Online)</td><td>-7.69</td><td>-3.82</td><td>-49.9</td><td>94</td><td>-866.1</td><td>-833.3</td><td>-1422.7</td><td>2247</td></tr><tr><td>CODAC-C (Ours)</td><td>-6.05</td><td>-4.89</td><td>-14.73</td><td>0.0</td><td>-456.0</td><td>-433.4</td><td>-686.6</td><td>347.8</td></tr><tr><td>CODAC-N (Ours)</td><td>-8.60</td><td>-4.05</td><td>-51.96</td><td>108.3</td><td>-432.7</td><td>-395.1</td><td>-847.1</td><td>936.0</td></tr><tr><td>ORAAC</td><td>-10.67</td><td>-4.55</td><td>-64.12</td><td>138.7</td><td>-788.1</td><td>-795.3</td><td>-1247.2</td><td>1196</td></tr><tr><td>CQL</td><td>-7.51</td><td>-4.18</td><td>-43.44</td><td>93.4</td><td>-967.8</td><td>-858.5</td><td>-1887.3</td><td>1854.3</td></tr></table>",
1107
+ "bbox": [
1108
+ 176,
1109
+ 138,
1110
+ 825,
1111
+ 238
1112
+ ],
1113
+ "page_idx": 7
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Tasks. We consider an Ant robot whose goal is to navigate from a random initial state to the green circle as quickly as possible (see Figure 4 for a visualization). Passing through the red circle triggers a high cost with small probability, introducing risk. A risk-neutral agent may pass through the red region, but a risk-aware agent should not. We also consider a PointMass variant for illustrative purposes. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 284,
1121
+ 612,
1122
+ 367
1123
+ ],
1124
+ "page_idx": 7
1125
+ },
1126
+ {
1127
+ "type": "image",
1128
+ "img_path": "images/e1bc4e34e6fe671f4b34cffd4d482a7b0d2b35ae1cb7e759adcf766b3b556726.jpg",
1129
+ "image_caption": [
1130
+ "Figure 4: Risky Ant. "
1131
+ ],
1132
+ "image_footnote": [],
1133
+ "bbox": [
1134
+ 627,
1135
+ 286,
1136
+ 821,
1137
+ 390
1138
+ ],
1139
+ "page_idx": 7
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "We construct an offline dataset that is the replay buffer of a riskneutral distributional SAC $\\lVert 2 7 \\rVert$ agent. Intuitively, this choice matches the practical goals of offline RL, where data is gathered from a diverse range of sources with no assumptions on their quality and risk tolerance levels. [23] See Appendix C.1 for details on the environments and datasets. ",
1144
+ "bbox": [
1145
+ 173,
1146
+ 373,
1147
+ 614,
1148
+ 429
1149
+ ],
1150
+ "page_idx": 7
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "",
1155
+ "bbox": [
1156
+ 173,
1157
+ 429,
1158
+ 789,
1159
+ 444
1160
+ ],
1161
+ "page_idx": 7
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Approaches. We consider two variants of CODAC: (i) CODAC-N, which maximizes the expected return and (ii) CODAC-C, which optimizes the $\\mathrm { C V a R } _ { 0 . 1 }$ objective. We compare to Offline RiskAverse Actor Critic (ORAAC) $\\boxed { \\boxplus 3 }$ , a state-of-the-art offline risk-averse RL algorithm that combines a distributional critic with an imitation-learning based policy to optimize a risk-sensitive objective, and to Conservative Q-Learning (CQL) [21], a state-of-art offline RL algorithm that is non-distributional. ",
1166
+ "bbox": [
1167
+ 174,
1168
+ 449,
1169
+ 826,
1170
+ 518
1171
+ ],
1172
+ "page_idx": 7
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Results. We evaluate each approach using 100 test episodes, reporting the mean, median, and $\\mathrm { C V a R } _ { 0 . 1 }$ (i.e., average over bottom 10 episodes) returns, and the total number of violations (i.e., time steps spent inside the risky region), all averaged over 5 random seeds. We also report the performance of the online DSAC agent used to collect data. See Appendix C for details. Results are in Table 1. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 525,
1180
+ 825,
1181
+ 582
1182
+ ],
1183
+ "page_idx": 7
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Performance of CODAC. CODAC-C consistently outperforms the other approaches on the $\\mathrm { C V a R } _ { 0 . 1 }$ return, as well as the number of violations, demonstrating that CODAC-C is able to avoid risky actions. It is also competitive in terms of mean return due to its high $\\mathrm { C V a R } _ { 0 . 1 }$ performance, but performs slightly worse on median return, since it is not designed to optimize this objective. Remarkably, on Risky PointMass, CODAC-C learns a safe policy that completely avoids the risky region (i.e., zero violations), even though such behavior is absent in the dataset. In Appendix $\\underline { { \\mathbf { \\overline { { C . 1 } } } } }$ we also show that CODAC can successfully optimize alternative risk-sensitive objectives such as Wang and CPW. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 587,
1191
+ 825,
1192
+ 684
1193
+ ],
1194
+ "page_idx": 7
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Comparison to ORAAC. While ORAAC also optimizes the CVaR objective, it uses imitation learning to regularize the learned policy to stay close to the empirical behavior policy. However, the dataset contains many sub-optimal trajectories generated early in training, and is furthermore risk-neutral. Thus, imitating the behavioral policy encourages poor performance. In practice, a key use of offline RL is to leverage large datasets available for training, and such datasets will rarely consist of data from a single, high-quality behavioral policy. Our results demonstrate that CODAC is significantly better suited to learned in these settings compared to ORAAC. ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 690,
1202
+ 825,
1203
+ 787
1204
+ ],
1205
+ "page_idx": 7
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Comparison to CQL. On Risky PointMass, CQL learns a risky policy with poor tail-performance, indicated by its high median performance but low $\\mathrm { C V a R } _ { 0 . 1 }$ performance. Interestingly, its mean performance is also poor; intuitively, the mean is highly sensitive to outliers that may not be present in the training dataset. On Risky Ant, possibly due to the added challenge of high-dimensionality, CQL performs poorly on all metrics, failing to reach the goal and to avoid the risky region. As expected, these results show that accounting for risk is necessary in risky environments. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 792,
1213
+ 825,
1214
+ 877
1215
+ ],
1216
+ "page_idx": 7
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Qualitative analysis. In Figure 3, we show the 100 evaluation rollouts from each policy on Risky PointMass. As can be seen, CODAC-C extrapolates a safe policy that distances itself from the risky region before proceeding to the goal; in contrast, all other agents traverse the risky region. For Ant, we include plots of the trajectories of trained agents in Appendix C.1, and videos in the supplement. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 882,
1224
+ 821,
1225
+ 911
1226
+ ],
1227
+ "page_idx": 7
1228
+ },
1229
+ {
1230
+ "type": "table",
1231
+ "img_path": "images/c36ef47bf3f2a3a36284f6cb1aa05141e59bb3bd6f4381d5a888e6d76386780f.jpg",
1232
+ "table_caption": [
1233
+ "Table 2: D4RL results. CODAC achieves the best overall performance in both risk-sensitive (Left) and risk-neutral (Right) variants of the benchmark. These tables are reproduced with standard deviations in Tables 7 & 9 in Appendix C. "
1234
+ ],
1235
+ "table_footnote": [],
1236
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Algorithm</td><td colspan=\"2\">Medium</td><td colspan=\"2\">Mixed</td></tr><tr><td>Mean</td><td>CVaR0.1</td><td>Mean</td><td>CVaR0.1</td></tr><tr><td>Ceeeca</td><td>CQL</td><td>33.2</td><td>-15.0</td><td>214.1</td><td>12.0</td></tr><tr><td></td><td>ORAAC</td><td>361.4</td><td>91.3</td><td>307.1</td><td>118.9</td></tr><tr><td></td><td>CODAC-N</td><td>338</td><td>-41</td><td>347.7</td><td>149.2</td></tr><tr><td></td><td>CODAC-C</td><td>335</td><td>-27</td><td>396.4</td><td>238.5</td></tr><tr><td>Jaddoh</td><td>CQL</td><td>877.9</td><td>693.0</td><td>189.2</td><td>-21.4</td></tr><tr><td></td><td>ORAAC</td><td>1007.1</td><td>767.6</td><td>876.3</td><td>524.9</td></tr><tr><td></td><td>CODAC-N</td><td>993.7</td><td>952.5</td><td>1483.9</td><td>1457.6</td></tr><tr><td></td><td>CODAC-C</td><td>1014.0</td><td>976.4</td><td>1551.2</td><td>1449.6</td></tr><tr><td>Aaaaka</td><td>CQL</td><td>1524.3</td><td>1343.8</td><td>74.3</td><td>-64.0</td></tr><tr><td></td><td>ORAAC</td><td>1134.1</td><td>663.0</td><td>222.0</td><td>-69.6</td></tr><tr><td></td><td>CODAC-N</td><td>1537.3</td><td>1158.8</td><td>358.7</td><td>106.4</td></tr><tr><td></td><td>CODAC-C</td><td>1120.8</td><td>902.3</td><td>450.0</td><td>261.4</td></tr></table>",
1237
+ "bbox": [
1238
+ 176,
1239
+ 138,
1240
+ 464,
1241
+ 294
1242
+ ],
1243
+ "page_idx": 8
1244
+ },
1245
+ {
1246
+ "type": "table",
1247
+ "img_path": "images/ddb0ffa32df1e3bd64d11e32b3226d9de67c08709768537289ad14ff4f1f9ec4.jpg",
1248
+ "table_caption": [],
1249
+ "table_footnote": [],
1250
+ "table_body": "<table><tr><td>Dataset</td><td>BCQ</td><td>MOPO</td><td>CQL</td><td>ORAAC</td><td>CODAC</td></tr><tr><td>halfcheetah-random</td><td>2.2</td><td>35.4</td><td>35.4</td><td>13.5</td><td>34.6</td></tr><tr><td>hopper-random</td><td>10.6</td><td>11.7</td><td>10.8</td><td>9.8</td><td>11.0</td></tr><tr><td>walker2d-random</td><td>4.9</td><td>13.6</td><td>7.0</td><td>3.2</td><td>18.7</td></tr><tr><td>halfcheetah-medium</td><td>40.7</td><td>42.3</td><td>44.4</td><td>41.0</td><td>46.3</td></tr><tr><td>walker2d-medium</td><td>53.1</td><td>17.8</td><td>79.2</td><td>27.3</td><td>82.0</td></tr><tr><td>hopper-medium</td><td>54.5</td><td>28.0</td><td>58.0</td><td>1.48</td><td>70.8</td></tr><tr><td>halfcheetah-mixed</td><td>38.2</td><td>53.1</td><td>46.2</td><td>30.0</td><td>44.1</td></tr><tr><td>hopper-mixed</td><td>33.1</td><td>67.5</td><td>48.6</td><td>16.3</td><td>100.2</td></tr><tr><td>walker2d-mixed</td><td>15.0</td><td>39.0</td><td>26.7</td><td>28</td><td>33.2</td></tr><tr><td>halfcheetah-med-exp</td><td>64.7</td><td>63.3</td><td>62.4</td><td>24.0</td><td>70.4</td></tr><tr><td>walker2d-med-exp</td><td>57.5</td><td>44.6</td><td>98.7</td><td>28.2</td><td>106.0</td></tr><tr><td>hopper-med-exp</td><td>110.9</td><td>23.7</td><td>111.0</td><td>18.2</td><td>112.0</td></tr></table>",
1251
+ "bbox": [
1252
+ 473,
1253
+ 141,
1254
+ 825,
1255
+ 292
1256
+ ],
1257
+ "page_idx": 8
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "",
1262
+ "bbox": [
1263
+ 176,
1264
+ 320,
1265
+ 825,
1266
+ 351
1267
+ ],
1268
+ "page_idx": 8
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "5.2 Risk-sensitive D4RL ",
1273
+ "text_level": 1,
1274
+ "bbox": [
1275
+ 174,
1276
+ 366,
1277
+ 354,
1278
+ 381
1279
+ ],
1280
+ "page_idx": 8
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Tasks. Next, we consider stochastic D4RL $\\boxed { 4 3 }$ . The original D4RL benchmark $\\pmb { \\mathbb { I O } }$ consists of datasets collected by SAC agents of varying performance (Mixed, Medium, and Expert) on the Hopper, Walker2d, and HalfCheetah MuJoCo environments $\\pmb { \\mathbb { E } } \\mathbf { \\overline { { 4 D } } }$ ; stochastic D4RL relabels the rewards to represent stochastic robot damage for behaviors such as unnatural gaits or high velocities; see Appendix $\\boxed { C . 2 }$ The Expert dataset consists of rollouts from a fixed SAC agent trained to convergence; the Medium dataset is constructed the same way except the agent is trained to only achieve $50 \\%$ of the expert agent’s return. The Mixed dataset is the replay buffer of the Medium agent. ",
1285
+ "bbox": [
1286
+ 173,
1287
+ 390,
1288
+ 826,
1289
+ 489
1290
+ ],
1291
+ "page_idx": 8
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Results. In Table $\\bigstar$ (Left), we report the mean and $\\mathrm { C V a R } _ { 0 . 1 }$ returns on test episodes from each approach, averaged over 5 random seeds. We show results on the Expert dataset in Appendix $\\underline { { \\vec { \\mathbf { C } . 2 } } }$ CODAC still achieves the strongest performance. As can be seen, CODAC-C and CODAC-N outperform both CQL and ORAAC on most datasets. Surprisingly, CODAC-N is quite effective on the $\\mathrm { C V a R } _ { 0 . 1 }$ metric despite its risk-neutral objective; a likely explanation is that for these datasets, mean and CVaR performance are highly correlated. Furthermore, we observe that directly optimizing CVaR may lead to unstable training, potentially since CVaR estimates have higher variance. This instability occurs for both CODAC-C and ORAAC—on Walker2d-Medium, they perform worse than the risk-neutral algorithms. Overall, CODAC-C outperforms CODAC-N in terms of $\\mathrm { C V a R } _ { 0 . 1 }$ on about half of the datasets, and often improves mean performance as well. Next, while ORAAC is generally effective on Medium datasets, it performs poorly on Mixed datasets; these results mirror the ones in Section $\\boxed { 5 . 1 }$ Finally, CQL’s performance varies drastically across datasets; we hypothesize that learning the full distribution helps stabilize training in CODAC. In Appendix C.2, we also qualitatively analyze the behavior learned by CODAC compared to the baselines, demonstrating that the better CVaR performance CODAC obtains indeed translates to safer locomotion behaviors. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 494,
1299
+ 825,
1300
+ 702
1301
+ ],
1302
+ "page_idx": 8
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "5.3 Risk-neutral D4RL ",
1307
+ "text_level": 1,
1308
+ "bbox": [
1309
+ 174,
1310
+ 719,
1311
+ 346,
1312
+ 734
1313
+ ],
1314
+ "page_idx": 8
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Task. Next, we show that CODAC is effective even when the goal is to optimize the standard expected return. To this end, we evaluate CODAC-N on the popular D4RL Mujoco benchmark [10]. ",
1319
+ "bbox": [
1320
+ 176,
1321
+ 744,
1322
+ 825,
1323
+ 773
1324
+ ],
1325
+ "page_idx": 8
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Baselines. We compare to state-of-art algorithms benchmarked in [10] and $\\pm 8 \\mathbb { I }$ , including BatchConstrained Q-Learning (BCQ), Model-Based Offline Policy Optimization (MOPO) $\\pm \\boxed { 4 8 }$ , and CQL. We also include ORAAC as an offline distributional RL baseline. We have omitted less competitive baselines included in $\\pmb { \\mathbb { I O } }$ from the main text; a full comparison is included in Appendix C.3. ",
1330
+ "bbox": [
1331
+ 174,
1332
+ 779,
1333
+ 826,
1334
+ 837
1335
+ ],
1336
+ "page_idx": 8
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Results. Results for non-distributional approaches are directly taken from $\\boxed { 1 0 }$ ; for ORAAC and CODAC, we evaluate them using 10 test episodes in the environment, averaged over 5 random seeds. As shown in Table 2 (Right), CODAC achieves strong performance across all 12 datasets, obtaining state-of-art results on 5 datasets (walker2d-random, hopper-medium, hopper-mixed, halfcheetahmedium-expert, and walker2d-medium-expert), demonstrating that performance improvements from distributional learning also apply in the offline setting. Note that CODAC’s advantage is not solely due to distributional RL—ORAAC also uses distributional RL, but in most cases underperforms prior state-of-the-art, These results suggest that CODAC’s use of a conservative penalty is critical for it to achieve strong performance. ",
1341
+ "bbox": [
1342
+ 174,
1343
+ 842,
1344
+ 826,
1345
+ 911
1346
+ ],
1347
+ "page_idx": 8
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "",
1352
+ "bbox": [
1353
+ 174,
1354
+ 90,
1355
+ 825,
1356
+ 147
1357
+ ],
1358
+ "page_idx": 9
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "5.4 Analysis of Theoretical Insights ",
1363
+ "text_level": 1,
1364
+ "bbox": [
1365
+ 174,
1366
+ 185,
1367
+ 431,
1368
+ 200
1369
+ ],
1370
+ "page_idx": 9
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "We perform additional experiments to validate that our theoretical insights in Section $\\textcircled { 3 }$ hold in practice, suggesting that they help explain CODAC’s empirical performance. ",
1375
+ "bbox": [
1376
+ 173,
1377
+ 220,
1378
+ 356,
1379
+ 318
1380
+ ],
1381
+ "page_idx": 9
1382
+ },
1383
+ {
1384
+ "type": "table",
1385
+ "img_path": "images/d4f9b23cd233e4c7c19ea1d8370506d02d7f0eb5d82f67dc3b7f003c087fec57.jpg",
1386
+ "table_caption": [
1387
+ "Table 3: Monte-Carlo estimate vs. critic prediction. The CODACpredicted expected and $\\mathrm { C V a R } _ { 0 . 1 }$ return is a lower bound on a MC estimate of the true value. "
1388
+ ],
1389
+ "table_footnote": [],
1390
+ "table_body": "<table><tr><td rowspan=\"2\">Regular</td><td colspan=\"2\">Walker2d-Medium</td><td colspan=\"2\">Walker2d-Mixed</td><td colspan=\"2\">Walker2d-Medium-Expert</td></tr><tr><td>MC Return</td><td>Q-Estimate</td><td>MC Return</td><td>Q-Estimate</td><td>MC Return</td><td>Q-Estimate</td></tr><tr><td>CODAC</td><td>240.2</td><td>55.7</td><td>127.1</td><td>97.6</td><td>370.</td><td>39.7</td></tr><tr><td>CQL</td><td>247.2</td><td>53.0</td><td>124.5</td><td>-45.2</td><td>369.7</td><td>116.4</td></tr><tr><td>ORAAC</td><td>245.2</td><td>302.2</td><td>118.2</td><td>7.70×105</td><td>68.2</td><td>322.2</td></tr><tr><td>Stochastic</td><td>Walker2d-Medium MC CVaR0.1</td><td>Z-Estimate</td><td>Walker2d-Mixed MC CVaR0.1</td><td>Z-Estimate</td><td>Walker2d-Medium-Expert MC CVaR0.1</td><td>Z-Estimate</td></tr><tr><td>CODAC</td><td>185.7</td><td>204.2</td><td>85.6</td><td>59.9</td><td>265.3</td><td>-127.8</td></tr><tr><td>ORAAC</td><td>201.9</td><td>367.6</td><td>50.9</td><td>1.54×106</td><td>199.5</td><td>343.5</td></tr></table>",
1391
+ "bbox": [
1392
+ 369,
1393
+ 272,
1394
+ 823,
1395
+ 376
1396
+ ],
1397
+ "page_idx": 9
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Lower bound. We show that in practice, CODAC obtains conservative estimates of the $Q$ and CVaR objectives across different dataset ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 324,
1405
+ 356,
1406
+ 392
1407
+ ],
1408
+ "page_idx": 9
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "types (i.e., Medium vs. Mixed vs. Medium-Expert). Given an initial state $s _ { 0 }$ , we obtain a Monte Carlo (MC) estimate of $Q$ and CVaR for $( s _ { 0 } , \\pi ( s _ { 0 } ) )$ based on sampled rollouts from $s _ { 0 }$ , and compare them to the values predicted by the critic. In Table $\\triangledown$ we show results averaged over 10 random $s _ { 0 }$ and with $1 0 0 \\mathrm { M C }$ samples for each $s _ { 0 }$ . CODAC obtains conservative estimates for both $Q$ and $\\mathrm { C V a R }$ ; in contrast, ORAAC overestimates these values, especially on Mixed datasets, and CQL only obtains conservative estimates for $Q$ , not CVaR. ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 392,
1416
+ 825,
1417
+ 476
1418
+ ],
1419
+ "page_idx": 9
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Gap-Expansion. Next, we verify that CODAC’s quantile estimates expand their gap between in-distribution and out-of-distribution actions. We use the D4RL ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 482,
1427
+ 356,
1428
+ 564
1429
+ ],
1430
+ "page_idx": 9
1431
+ },
1432
+ {
1433
+ "type": "table",
1434
+ "img_path": "images/b5e2aee2bfa941d3057fd9e89b3e2e04d301f68f2f408fb9aac8b3998f2dae8f.jpg",
1435
+ "table_caption": [
1436
+ "Table 4: Gap-expansion: CODAC expands the quantile gap and obtains higher returns than an ablation without the conservative penalty. "
1437
+ ],
1438
+ "table_footnote": [],
1439
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">HalfCheetah-Medium-Expert</td><td rowspan=\"2\">Hopper-Medium-Expert Positive Gap %</td><td rowspan=\"2\">Return</td><td colspan=\"2\">Walker2d-Medium-Expert</td></tr><tr><td>Positive Gap %</td><td>Return</td><td>Positive Gap %</td><td>Return</td></tr><tr><td>CODAC</td><td>95.3</td><td>93.6</td><td>91.3</td><td>111.9</td><td>91.1</td><td>111.3</td></tr><tr><td>CODAC w.o. Penalty</td><td>4.7</td><td>12.1</td><td>8.7</td><td>25.8</td><td>8.9</td><td>5.9</td></tr></table>",
1440
+ "bbox": [
1441
+ 369,
1442
+ 521,
1443
+ 823,
1444
+ 563
1445
+ ],
1446
+ "page_idx": 9
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "Medium-Expert datasets where CODAC uniformly performs well, making them ideal for understanding the source of CODAC’s empirical performance. We train “CODAC w.o. Penalty”, a non-conservative variant of CODAC (i.e., $\\alpha = 0$ ), and use its actor as $\\mu$ and its critic as $F _ { Z ^ { \\pi } } ^ { - 1 }$ . Next, for each dataset, we randomly sample 1000 state-action pairs and 32 quantiles $\\tau$ , resulting in 32000 $( s , a , \\tau )$ tuples; for each one, we compute the quantile gaps for CODAC and CODAC w.o. Penalty. In Table $\\textcircled { 4 }$ we show the percentage of tuples where each CODAC variant has a larger quantile gap, along with their average return. As can be seen, CODAC has a larger gap for more than $9 0 \\%$ of the tuples on all datasets, as well as significantly higher returns. These results show that gap-expansion holds in practice and suggest that it helps CODAC achieve good performance. ",
1451
+ "bbox": [
1452
+ 173,
1453
+ 564,
1454
+ 826,
1455
+ 690
1456
+ ],
1457
+ "page_idx": 9
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "6 Conclusion ",
1462
+ "text_level": 1,
1463
+ "bbox": [
1464
+ 174,
1465
+ 720,
1466
+ 299,
1467
+ 738
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "We have introduced Conservative Offline Distributional Actor-Critic (CODAC), a general purpose offline distributional reinforcement learning algorithm. We have proven that CODAC obtains conservative estimates of the return quantile, which translate into lower bounds on $Q$ and CVaR values. In our experiments, CODAC outperforms prior approaches on both stochastic, risk-sensitive offline RL benchmarks, as well as traditional, risk-neutral benchmarks. ",
1474
+ "bbox": [
1475
+ 174,
1476
+ 765,
1477
+ 825,
1478
+ 835
1479
+ ],
1480
+ "page_idx": 9
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "One limitation of our work is that CODAC has hyperparameters that must be tuned (in particular, the penalty magnitude $\\alpha$ ). As in prior work, we choose these hyperparameters by evaluate online rollouts in the environment. Designing better hyperparameter selection strategies for offline RL is an important direction for future work. Finally, we do not foresee any societal impacts or ethical concerns for our work, other than the usual risks around algorithms for improving robotics capabilities. ",
1485
+ "bbox": [
1486
+ 174,
1487
+ 842,
1488
+ 825,
1489
+ 911
1490
+ ],
1491
+ "page_idx": 9
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Acknowledgments and Disclosure of Funding ",
1496
+ "text_level": 1,
1497
+ "bbox": [
1498
+ 174,
1499
+ 88,
1500
+ 553,
1501
+ 107
1502
+ ],
1503
+ "page_idx": 10
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "This work is funded in part by an Amazon Research Award, gift funding from NEC Laboratories America, NSF Award CCF-1910769, and ARO Award W911NF-20-1-0080. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein. ",
1508
+ "bbox": [
1509
+ 174,
1510
+ 121,
1511
+ 825,
1512
+ 178
1513
+ ],
1514
+ "page_idx": 10
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "References ",
1519
+ "text_level": 1,
1520
+ "bbox": [
1521
+ 174,
1522
+ 198,
1523
+ 266,
1524
+ 213
1525
+ ],
1526
+ "page_idx": 10
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "[1] Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, pages 104–114. PMLR, 2020. \n[2] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \n[3] Gabriel Barth-Maron, Matthew W Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva Tb, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap. Distributed distributional deterministic policy gradients. arXiv preprint arXiv:1804.08617, 2018. \n[4] Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In International Conference on Machine Learning, pages 449–458. PMLR, 2017. \n[5] Yinlam Chow, Mohammad Ghavamzadeh, Lucas Janson, and Marco Pavone. Risk-constrained reinforcement learning with percentile risk criteria. The Journal of Machine Learning Research, 18(1):6070–6120, 2017. \n[6] Will Dabney, Georg Ostrovski, David Silver, and Rémi Munos. Implicit quantile networks for distributional reinforcement learning. In International conference on machine learning, pages 1096–1105. PMLR, 2018. \n[7] Will Dabney, Mark Rowland, Marc Bellemare, and Rémi Munos. Distributional reinforcement learning with quantile regression. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. \n[8] Thomas Degris, Martha White, and Richard S Sutton. Off-policy actor-critic. arXiv preprint arXiv:1205.4839, 2012. \n[9] Damien Ernst, Pierre Geurts, and Louis Wehenkel. Tree-based batch mode reinforcement learning. Journal of Machine Learning Research, 6:503–556, 2005. \n[10] Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020. \n[11] Scott Fujimoto, Herke Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In International Conference on Machine Learning, pages 1587–1596. PMLR, 2018. \n[12] Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pages 2052–2062. PMLR, 2019. \n[13] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pages 1861–1870. PMLR, 2018. \n[14] Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. \n[15] Peter J. Huber. Robust Estimation of a Location Parameter. The Annals of Mathematical Statistics, 35(1):73 – 101, 1964. \n[16] Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning, 2016. \n[17] Ramtin Keramati, Christoph Dann, Alex Tamkin, and Emma Brunskill. Being optimistic to be conservative: Quickly learning a cvar policy. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4436–4443, 2020. \n[18] Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Model-based offline reinforcement learning. arXiv preprint arXiv:2005.05951, 2020. \n[19] Roger Koenker and Kevin F Hallock. Quantile regression. Journal of economic perspectives, z15(4):143–156, 2001. \n[20] Aviral Kumar, Justin Fu, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. arXiv preprint arXiv:1906.00949, 2019. \n[21] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1179–1191. Curran Associates, Inc., 2020. \n[22] Sascha Lange, Thomas Gabel, and Martin Riedmiller. Batch reinforcement learning. In Reinforcement learning, pages 45–73. Springer, 2012. \n[23] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020. \n[24] 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. \n[25] Qiang Liu, Lihong Li, Ziyang Tang, and Dengyong Zhou. Breaking the curse of horizon: Infinite-horizon off-policy estimation. arXiv preprint arXiv:1810.12429, 2018. \n[26] Clare Lyle, Marc G Bellemare, and Pablo Samuel Castro. A comparative analysis of expected and distributional reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4504–4511, 2019. \n[27] Xiaoteng Ma, Qiyuan Zhang, Li Xia, Zhengyuan Zhou, Jun Yang, and Qianchuan Zhao. Distributional soft actor critic for risk sensitive learning. arXiv preprint arXiv:2004.14547, 2020. \n[28] Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pages 1928–1937. PMLR, 2016. \n[29] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013. \n[30] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015. \n[31] Thanh Tang Nguyen, Sunil Gupta, and Svetha Venkatesh. Distributional reinforcement learning via moment matching, 2020. \n[32] Doina Precup. Eligibility traces for off-policy policy evaluation. Computer Science Department Faculty Publication Series, page 80, 2000. \n[33] Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014. \n[34] Martin Riedmiller. Neural fitted q iteration–first experiences with a data efficient neural reinforcement learning method. In European Conference on Machine Learning, pages 317–328. Springer, 2005. \n[35] R Tyrrell Rockafellar and Stanislav Uryasev. Conditional value-at-risk for general loss distributions. Journal of banking & finance, 26(7):1443–1471, 2002. \n[36] Mark Rowland, Robert Dadashi, Saurabh Kumar, Rémi Munos, Marc G Bellemare, and Will Dabney. Statistics and samples in distributional reinforcement learning. In International Conference on Machine Learning, pages 5528–5536. PMLR, 2019. \n[37] Simon P. Shen, Yecheng Jason Ma, Omer Gottesman, and Finale Doshi-Velez. State relevance for off-policy evaluation, 2021. \n[38] Yichuan Charlie Tang, Jian Zhang, and Ruslan Salakhutdinov. Worst cases policy gradients. arXiv preprint arXiv:1911.03618, 2019. \n[39] Philip Thomas and Emma Brunskill. Data-efficient off-policy policy evaluation for reinforcement learning. In International Conference on Machine Learning, pages 2139–2148. PMLR, 2016. \n[40] Sebastian Thrun and Anton Schwartz. Issues in using function approximation for reinforcement learning. In Proceedings of the Fourth Connectionist Models Summer School, pages 255–263. Hillsdale, NJ, 1993. \n[41] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026–5033. IEEE, 2012. \n[42] Amos Tversky and Daniel Kahneman. Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and uncertainty, 5(4):297–323, 1992. \n[43] Núria Armengol Urpí, Sebastian Curi, and Andreas Krause. Risk-averse offline reinforcement learning. arXiv preprint arXiv:2102.05371, 2021. \n[44] Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double q-learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016. \n[45] Shaun S Wang. A class of distortion operators for pricing financial and insurance risks. Journal of risk and insurance, pages 15–36, 2000. \n[46] Yifan Wu, George Tucker, and Ofir Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019. \n[47] Derek Yang, Li Zhao, Zichuan Lin, Tao Qin, Jiang Bian, and Tieyan Liu. Fully parameterized quantile function for distributional reinforcement learning. arXiv preprint arXiv:1911.02140, 2019. \n[48] Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Y Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. Mopo: Model-based offline policy optimization. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 14129–14142. Curran Associates, Inc., 2020. \n[49] Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In Aaai, volume 8, pages 1433–1438. Chicago, IL, USA, 2008. ",
1531
+ "bbox": [
1532
+ 171,
1533
+ 208,
1534
+ 828,
1535
+ 919
1536
+ ],
1537
+ "page_idx": 10
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "",
1542
+ "bbox": [
1543
+ 171,
1544
+ 54,
1545
+ 828,
1546
+ 915
1547
+ ],
1548
+ "page_idx": 11
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "",
1553
+ "bbox": [
1554
+ 171,
1555
+ 22,
1556
+ 828,
1557
+ 835
1558
+ ],
1559
+ "page_idx": 12
1560
+ }
1561
+ ]
parse/train/Z2vksUFuVst/Z2vksUFuVst_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Z2vksUFuVst/Z2vksUFuVst_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1lIKlSYvH/r1lIKlSYvH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/wTutcPE7zOC/wTutcPE7zOC.md ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Metropolis-CVAE: Bootstrapping Labels for Bayesian Inference via Semi-Supervised Conditional Variational Autoencoders
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 In Bayesian parameter estimation, models make simplifying assumptions to make
11
+ 2 parameter inference feasible. If learned inference methods are trained using data
12
+ 3 simulated by models, however, distributional differences between simulated and
13
+ 4 observed data may lead to biased inference results on the observed data. In this
14
+ 5 work, we introduce a semi-supervised learned Bayesian inference method which
15
+ 6 makes use of both simulated data – for which the underlying parameters are known
16
+ 7 by construction – and unlabeled data, which may depend on nuissance parameters
17
+ 8 not captured by the simulation procedure. A conditional variational autoencoder
18
+ 9 (CVAE) is trained to perform approximate inference simultaneously on the sets of
19
+ 10 labeled simulated data and unlabeled data, where the unlabeled data is initialized
20
+ 11 with arbitrary pseudo labels. At each training iteration, new candidate pseudo
21
+ 12 labels are drawn from the CVAE posterior and the pseudo labels are updated using
22
+ 13 the Metropolis-Hastings algorithm. This process results in a Markov chain of
23
+ 14 bootstrapped pseudo labels for each unlabeled datum, effectively performing online
24
+ 15 Markov chain Monte Carlo (MCMC) inference wherein the proposal distribution
25
+ 16 is a CVAE informed by labeled simulated data, producing proposals which are
26
+ 17 increasingly likely to be accepted as training proceeds. The resulting CVAE is
27
+ 18 able to efficiently produce samples from the posterior distributions of both the
28
+ 19 simulated and unlabeled data, implicitly marginalizing over nuissance parameters
29
+ 20 in the unlabeled data. We demonstrate the effectiveness of this method in magnetic
30
+ 21 resonance imaging (MRI) where MCMC is computationally impractical to due the
31
+ 22 $( 3 + 1 ) \mathrm { D }$ nature of the images, showing improvement against traditional MCMC
32
+ 23 inference in both speed and posterior quality.
33
+
34
+ # 24 1 Introduction
35
+
36
+ 25 Bayesian parameter estimation methods are robust techniques for quantifying properties of a system
37
+ 26 that cannot be observed directly [1]. In order to estimate such parameters, one first needs to develop
38
+ 27 a model of the phenomena to be studied. This process requires deep domain-specific knowledge. For
39
+ 28 all but the most basic of systems, a series of simplifying assumptions on the system are required to
40
+ 29 make parameter inference tractable. Typically, tractable is synonymous with not being unreasonably
41
+ 30 expensive to compute. Examples of such methodologies include perturbation theory, in which models
42
+ 31 containing Taylor series expansions drop higher order terms; mean-field theory, in which interactions
43
+ 32 involving many degrees of freedom are replaced by averaged approximations; and (stochastic)
44
+ 33 differential equations, when used as continuous limits of discrete stochastic processes. The price one
45
+ 34 pays for utilizing a given approximation is highly problem dependent. When approximate models
46
+ 35 are used for parameter inference, the mismatch between model predictions and data may propagate
47
+ 36 through the inference process and lead to bias and other misestimations of the inferred parameters. In
48
+ 37 this work, we are interested in the following research question: can a deep learning model be trained
49
+ 38 to perform inference, while incorporating both labeled data generated from a well-understood model,
50
+ 39 and unlabeled data which contains additional complex structure which cannot be modeled?
51
+ 40 Here, we present Metropolis conditional variational autoencoders (Metropolis-CVAEs). Metropolis
52
+ 41 CVAEs combine traditional CVAEs with the Metropolis-Hastings Markov chain monte carlo (MCMC)
53
+ 42 inference method. The resulting networks combine the ability of CVAEs to learn to perform rapid
54
+ 43 approximate Bayesian inference from labeled data with traditional MCMC methodology which
55
+ 44 requires only a likelihood model and a prior distribution over the parameters of interest. The
56
+ 45 Metropolis-CVAE initializes the unlabeled data with pseudo labels drawn from the prior distribution
57
+ 46 and, informed by the labeled data, iteratively improves the pseudo labels throughout training. We
58
+ 47 demonstrate the effectiveness of the Metropolis-CVAE network compared to traditional MCMC
59
+ 48 methods on an inference problem from magnetic resonance imaging (MRI) which is inherently
60
+ 49 computationally challenging due to the $( 3 + 1 ) \mathrm { D }$ nature of the data.
61
+
62
+ # 2 Methods
63
+
64
+ # 2.1 Related work
65
+
66
+ In the pioneering work by Sohn et al. [2], conditional variational autoencoders were introduced by considering a variational lower bound to the conditional log-likelihood $\log p ( \mathbf { y } | \mathbf { x } )$ of labels $\mathbf { y }$ given corresponding data $\mathbf { x }$ . Ideally, to perform data-driven approximate inference, one would like to train a network to learn to maximize the conditional log-likelihood directly. However, this is known to be an intractable problem. To mitigate this issue, the stochastic gradient variational Bayes (SGVB) framework is employed. In SGVB, a latent space which factorizes the marginal likelihood is introduced via $\begin{array} { r } { p ( \mathbf { y } | \mathbf { x } ) = \int _ { \mathbf { z } } \mathrm { d } \mathbf { z } p ( \mathbf { z } | \mathbf { x } ) p ( \mathbf { y } | \mathbf { z } , \mathbf { x } ) } \end{array}$ , as well as a recognition distribution $q ( \mathbf { z } | \mathbf { x } , \mathbf { y } )$ . The conditional log-likelihood is then maximized indirectly via maximizing the variational lower bound
67
+
68
+ $$
69
+ \begin{array} { r l } & { \log p ( \mathbf { y } | \mathbf { x } ) \geq - \mathrm { K L } \left( q ( \mathbf { z } | \mathbf { x } , \mathbf { y } ) \left| \right| p ( \mathbf { z } | \mathbf { x } ) \right) + \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } , \mathbf { y } ) } \left[ \log p ( \mathbf { y } | \mathbf { x } , \mathbf { z } ) \right] } \\ & { \qquad : = - \mathcal { L } ( \mathbf { x } , \mathbf { y } ) } \end{array}
70
+ $$
71
+
72
+ 60 where $\mathrm { K L }$ is the Kullback-Leibler divergence. The interpretation as a conditional autoencoder is
73
+ 61 as follows: let $p ( \mathbf { z } | \mathbf { x } )$ , $q ( \mathbf { z } | \mathbf { x } , \mathbf { y } )$ , and $p ( \mathbf { y } | \mathbf { x } , \mathbf { z } )$ be parameterized by deep neural networks $E _ { 1 } ( \mathbf { z } | \mathbf { x } )$ ,
74
+ 62 $E _ { 2 } ( \mathbf { z } | \mathbf { x } , \mathbf { y } )$ , and $D ( \mathbf { y } | \mathbf { x } , \mathbf { z } )$ , respectively. Then, $E _ { 1 }$ and $E _ { 2 }$ can be viewed as encoders which map
75
+ 63 their inputs into distributions over the latent variables $\mathbf { z }$ . $D$ can be viewed as a decoder which maps
76
+ 64 stochastic latent representations $\mathbf { z }$ and data $\mathbf { x }$ into posterior distributions over the labels y. Hence, $\mathbf { y }$
77
+ 65 is conditionally autoencoded via the encoder-decoder pipeline $\mathbf { z } \sim E _ { 2 } ( \mathbf { z } | \mathbf { x } , \mathbf { y } ) \mathbf { y } \sim D ( \mathbf { y } | \mathbf { x } , \mathbf { z } )$ .
78
+ 66 At inference time, posterior samples are similarly drawn via $\mathbf { z } \sim E _ { 1 } ( \mathbf { z } | \mathbf { x } ) \mathbf { y } \sim D ( \mathbf { y } | \mathbf { x } , \mathbf { z } )$ . The
79
+ 67 CVAE – the triplet of networks $( E _ { 1 } , E _ { 2 } , D ) -$ is trained by minimizing $\mathcal { L }$ over the CVAE parameters,
80
+ 68 thereby maximizing the variational lower bound on $\log p ( \mathbf { y } | \mathbf { x } )$ .
81
+ 69 The CVAE approach by Sohn et al. [2] is designed for supervised learning problems. Earlier work of
82
+ 70 a similar vein by Kingma et al. [3] introduces a semi-supervised framework in which labeled data
83
+ 71 $\left( \mathbf { x } _ { \ell } , \mathbf { y } \right)$ is used to infer labels for unlabeled data $\mathbf { x } _ { u }$ via the minimization of a two-term loss function.
84
+ 72 The first term of the loss function is a supervised loss over $\left( \mathbf { x } _ { \ell } , \mathbf { y } \right)$ samples, similar to Equation 1,
85
+ 73 derived from a variational lower bound on the joint log-likelihood $\log p ( \mathbf { x } _ { \ell } , \mathbf { y } )$ . The second term is an
86
+ 74 unsupervised loss over $\mathbf { x } _ { u }$ samples which treats label inference as a data imputation task. Specifically,
87
+ 75 the unknown label is treated as a parameter over which posterior inference is performed; the resulting
88
+ 76 loss is a variational lower bound on the log-likelihood $\bar { \log { p ( \mathbf { x } _ { u } ) } }$ .
89
+ 77 While the semi-supervised method of Kingma et al. is an elegant approach to discovering labels,
90
+ 78 it is not quite suitable for inferring labels for out of distribution data. This is due to the implicit
91
+ 79 assumption that relationships between $\mathbf { x } _ { \ell }$ and $\mathbf { y }$ learned from the joint distribution $p ( \mathbf x _ { \ell } , \mathbf y )$ generalize
92
+ 80 to data from $p ( \mathbf { x } _ { u } )$ . In fact, this assumption is made explicit via an extended objective function which
93
+ 81 adds a regularization term $\mathbb { E } _ { \widetilde { p } _ { \ell } ( \mathbf { x } , \mathbf { y } ) } \left[ - \log q ( \mathbf { y } | \mathbf { x } _ { \ell } ) \right]$ over the empirical distribution $\widetilde { p } _ { \ell } ( \mathbf { x } , \mathbf { y } )$ of labeled
94
+ 82 edata. This penalty encourages the learned posterior distribution $q ( \mathbf { y } \vert \mathbf { x } )$ e to generate labels for $\mathbf { x } _ { u }$ by
95
+ 83 extrapolating from the relationships it discovers between $\left( \mathbf { x } _ { \ell } , \mathbf { y } \right)$ pairs. This will naturally lead to
96
+ 84 biased labels for $\mathbf { x } _ { u }$ when the distribution underlying $\mathbf { x } _ { u }$ differs from that of $\mathbf { x } _ { \ell }$ .
97
+ 85 Gabbard et al., who made use of CVAEs to accelerate inference for an application in gravitational
98
+ 86 wave astronomy [4], presented an alternate view of Equation 1. Gabbard et al. begin by aiming to
99
+ 87 minimize the expected cross-entropy
100
+
101
+ $$
102
+ \mathcal { H } : = - \mathbb { E } _ { p ( \mathbf { x } ) } \left[ \int _ { \mathbf { y } } \mathrm { d } \mathbf { y } p ( \mathbf { y } | \mathbf { x } ) \log \hat { p } ( \mathbf { y } | \mathbf { x } ) \right]
103
+ $$
104
+
105
+ 88 over the data distribution $p ( \mathbf { x } )$ between the true posterior $p ( \mathbf { y } \vert \mathbf { x } )$ and approximate posterior ${ \hat { p } } ( \mathbf { y } | \mathbf { x } )$ . Employing the SGVB framework and letting 89 $\begin{array} { r } { \hat { p } ( \mathbf { y } | \mathbf { x } ) = \int _ { \mathbf { z } } \mathrm { d } \mathbf { z } \hat { p } ( \mathbf { z } | \mathbf { x } ) \hat { p } ( \mathbf { y } | \mathbf { z } , \mathbf { x } ) } \end{array}$ , it follows from 1 that
106
+
107
+ $$
108
+ \mathcal { H } \leq \mathbb { E } _ { p ( \mathbf { x } ) } \left[ \int _ { \mathbf { y } } \mathrm { d } \mathbf { y } p ( \mathbf { y } | \mathbf { x } ) \mathcal { L } ( \mathbf { x } , \mathbf { y } ) \right] .
109
+ $$
110
+
111
+ 90 Applying Bayes’ theorem, we equivalently have that
112
+
113
+ $$
114
+ \begin{array} { r l } & { \mathcal { H } \leq \mathbb { E } _ { p ( \mathbf { x } ) } \mathbb { E } _ { p ( \mathbf { y } \mid \mathbf { x } ) } \left[ \mathcal { L } ( \mathbf { x } , \mathbf { y } ) \right] } \\ & { \quad = \mathbb { E } _ { p ( \mathbf { y } ) } \mathbb { E } _ { p ( \mathbf { x } \mid \mathbf { y } ) } \left[ \mathcal { L } ( \mathbf { x } , \mathbf { y } ) \right] } \\ & { \quad = \mathbb { E } _ { p ( \mathbf { x } , \mathbf { y } ) } \left[ \mathcal { L } ( \mathbf { x } , \mathbf { y } ) \right] . } \end{array}
115
+ $$
116
+
117
+ 91 Therefore, maximizing the variational lower bound to $\log p ( \mathbf { y } | \mathbf { x } )$ over a dataset of $\displaystyle ( \mathbf { x } , \mathbf { y } )$ pairs, as in
118
+ 92 Equation 1, is equivalent to minimizing the expected cross-entropy via Equation 6. The interpretation
119
+ 93 of Equations 4 and 5, however, will prove useful for remedying the issue of label inference for out of
120
+ 94 distribution data.
121
+
122
+ # 95 2.2 Theoretical contributions
123
+
124
+ 96 Equation 5 is a natural framework for using CVAEs to perform inference on simulated data with
125
+ 97 known labels [4]. Suppose labels $\mathbf { y } \sim p ( \mathbf { y } )$ are sampled from a prior distribution and $\mathbf { x } \sim p ( \mathbf { x } | \mathbf { y } )$
126
+ 98 is subsequently given by a (possibly stochastic) model function $\mathbf { x } = f ( \mathbf { y } )$ . Then, Equation 5
127
+ 99 corresponds to minimizing the average CVAE loss $\mathcal { L } ( \mathbf { x } , \mathbf { y } )$ over pairs of simulated data $( \mathbf { x } = f ( \mathbf { y } ) , \mathbf { y } )$ .
128
+ 100 The novel contribution of this work stems from of Equation 4. Using this formulation directly would
129
+ 101 require sampling from the posterior $p ( \mathbf { y } \vert \mathbf { x } )$ , which is our stated objective. However, this can be
130
+ 102 circumvented by making the observation that if we could construct a Markov chain of pseudo labels
131
+ 103 $\widetilde { \mathbf { y } }$ during training, such that the stationary distribution of the sequence $( \widetilde { \mathbf { y } } _ { k } ) _ { k \in \mathbb { N } }$ was $p ( \mathbf { y } \vert \mathbf { x } )$ , then
132
+ 104 eEquation 4 could be approximated as
133
+
134
+ $$
135
+ \mathbb { E } _ { p ( \mathbf { x } ) } \mathbb { E } _ { p ( \mathbf { y } | \mathbf { x } ) } \left[ \mathcal { L } ( \mathbf { x } , \mathbf { y } ) \right] \approx \mathbb { E } _ { p ( \mathbf { x } ) } \left[ \frac { 1 } { L _ { c } } \sum _ { i = 0 } ^ { L _ { c } - 1 } \mathcal { L } ( \mathbf { x } , \widetilde { \mathbf { y } } _ { n - i } ) \right]
136
+ $$
137
+
138
+ 105 where $( \widetilde { \mathbf { y } } _ { n - L _ { c } + 1 } , \ldots , \widetilde { \mathbf { y } } _ { n } )$ are the $L _ { c }$ most recent samples in the Markov chain. This approach to
139
+ 106 e edistribution sampling – Markov chain Monte Carlo (MCMC) sampling – is considered the gold
140
+ 107 standard in parameter inference.
141
+ 108 In this work, we consider the Metropolis-Hastings (MH) algorithm [5, 6]. In the context of Bayesian
142
+ 109 inference for recovering labels $\mathbf { y }$ from data $\mathbf { x }$ , MH sampling begins with a prior distribution $p ( \mathbf { y } )$ , a
143
+ 110 likelihood function $p ( \mathbf { x } | \mathbf { y } )$ , and a proposal distribution $Q ( \mathbf { y } ^ { \prime } | \mathbf { y } )$ which quantifies the probability of
144
+ 111 transitioning from y to $\mathbf { y } ^ { \prime }$ in the space of possible labels. Given a sample ${ \bf y } _ { n }$ of a Markov chain, the
145
+ 112 MH update rule is given by
146
+
147
+ ![](images/97cf94220a9e5f30dc3213d1f093a81f544c1b859c6af51de3cb1c59aca7af8f.jpg)
148
+ Figure 1: (A-G) Comparison of inference results for data simulated using Equation 14 with parameters drawn from Equation 17. Histograms of errors between the means of the empirical distributions and the true labels are shown. $\mathrm { ( H ) }$ ) p-p plot for each label. In all plots, MCMC with 100 samples, MCMC with 3000 samples, and Metropolis-CVAE with 100 samples are shown in red, green, and blue, respectively.
149
+
150
+ $$
151
+ \begin{array} { r l } & { \mathbf { y } ^ { \prime } \sim Q ( \mathbf { y } ^ { \prime } | \mathbf { y } _ { n } ) } \\ & { \alpha = \operatorname* { m i n } ( 1 , \frac { p ( \mathbf { y } ^ { \prime } ) } { p ( \mathbf { y } _ { n } ) } \cdot \frac { p ( \mathbf { x } | \mathbf { y } ^ { \prime } ) } { p ( \mathbf { x } | \mathbf { y } _ { n } ) } ) } \\ & { u \sim \mathrm { U n i f o r m } ( 0 , 1 ) } \\ & { \mathbf { y } _ { n + 1 } = \{ \mathbf { y } ^ { \prime } \quad u \leq \alpha } \\ & { \mathbf { y } _ { n } + \mathrm { o t h e r w i s e } . } \end{array}
152
+ $$
153
+
154
+ 113 The proposal distribution $Q ( \mathbf { y } ^ { \prime } | \mathbf { y } )$ is a free parameter of the MH algorithm. In general, choosing $Q$
155
+ 114 to resemble the true posterior as closely as possible improves the efficiency of the MH algorithm.
156
+ 115 Therefore, we propose to use the approximate posterior ${ \hat { p } } ( \mathbf { y } | \mathbf { x } )$ of the CVAE itself as the proposal
157
+ 116 distribution. Recalling that $\begin{array} { r } { \hat { p } ( { \bf y } | { \bf x } ) = \int _ { \bf z } \mathrm { d } { \bf z } \hat { p } ( { \bf z } | { \bf x } ) \hat { p } ( { \bf y } | { \bf z } , { \bf x } ) : = \int _ { \bf z } \mathrm { d } { \bf z } E _ { 1 } ( { \bf z } | { \bf x } ) D ( { \bf y } | { \bf z } , { \bf x } ) } \end{array}$ , we let
158
+
159
+ $$
160
+ \begin{array} { r l r } { { Q ( \mathbf { y } ^ { \prime } | \mathbf { y } _ { n } ) = Q ( \mathbf { y } ^ { \prime } ) = \int _ { \mathbf { z } } \mathrm { d } \mathbf { z } E _ { 1 } ( \mathbf { z } | \mathbf { x } ) D ( \mathbf { y } ^ { \prime } | \mathbf { z } , \mathbf { x } ) } } \\ & { } & { \approx \frac { 1 } { L _ { \mathbf { z } } } \sum _ { i = 1 } ^ { L _ { \mathbf { z } } } D ( \mathbf { y } ^ { \prime } | \mathbf { z } _ { i } , \mathbf { x } ) \quad \mathrm { w h e r e } \quad \mathbf { z } _ { i } \sim E _ { 1 } ( \mathbf { z } | \mathbf { x } ) . } \end{array}
161
+ $$
162
+
163
+ 117 By choosing this proposal function, we are able to bootstrap pseudo labels $\widetilde { \mathbf { y } }$ onto unlabeled data $\mathbf { x } _ { u }$ .
164
+ 118 In particular, we minimize the semi-supervised hybrid loss
165
+
166
+ $$
167
+ \begin{array} { r l } & { \mathcal { L } _ { \mathrm { h y b r i d } } = \mathcal { L } _ { \mathrm { s u p e r } } + \mathcal { L } _ { \mathrm { s e l f } } } \\ & { \mathcal { L } _ { \mathrm { s u p e r } } = \mathbb { E } _ { ( \mathbf { x } _ { \ell } , \mathbf { y } ) \sim \widetilde { p } _ { \ell } ( \mathbf { x } , \mathbf { y } ) } \left[ \mathcal { L } ( \mathbf { x } _ { \ell } , \mathbf { y } ) \right] } \\ & { \quad \mathcal { L } _ { \mathrm { s e l f } } = \mathbb { E } _ { ( \mathbf { x } _ { u } , \widetilde { \mathbf { y } } ) \sim \widetilde { p } _ { u } ( \mathbf { x } , \widetilde { \mathbf { y } } ) } \left[ \mathcal { L } ( \mathbf { x } _ { u } , \widetilde { \mathbf { y } } ) \right] } \end{array}
168
+ $$
169
+
170
+ ![](images/b3d49121ec203886e2bc9c61ce626fb10e54c05e6823fcb7acd2debb6477c954.jpg)
171
+ Figure 2: (A) Pseudo label acceptance rate vs. epochs for the MRI datasets $\widetilde { p } _ { \ell , 1 } ( \mathbf { x } )$ and $\widetilde { p } _ { \ell , 2 } ( \mathbf { x } )$ . (B) e eWasserstein distance vs. epochs between empirical label distributions and MCMC with 100 posterior samples, and (C) same as (B) but MCMC with 3000 posterior samples.
172
+
173
+ 119 where $\widetilde { p } _ { \ell } ( \mathbf x , \mathbf y )$ and $\widetilde { p } _ { u } ( \mathbf { x } , \widetilde { \mathbf { y } } )$ are the empirical distributions over the pairs of labeled data $\left( \mathbf { x } _ { \ell } , \mathbf { y } \right)$
174
+ 120 e e eand unlabeled data with bootstrapped pseudo labels $\left( \mathbf { x } _ { u } , \widetilde { \mathbf { y } } \right)$ , respectively. The pseudolabels $\widetilde { \mathbf { y } }$ are
175
+ 121 initialized uniformly from the prior space $p ( \mathbf { y } )$ e eand are updated according to the MH algorithm 8 at
176
+ 122 each training iteration.
177
+ 123 Note that in the MH update step, the MH acceptance ratio $\alpha$ can be interepreted as computing a
178
+ 124 Bayesian goodness of fit check relative to the current label $\widetilde { \mathbf { y } } _ { n }$ . Therefore, $\widetilde { p } _ { \ell } ( \mathbf { x } )$ and $\widetilde { p } _ { u } ( \mathbf { x } )$ need
179
+ 125 e e enot be identical distributions, merely close enough such that decreasing the supervised loss $\mathcal { L } _ { \mathrm { s u p e r } }$
180
+ 126 improves the proposal quality for the self-supervised loss $\mathcal { L } _ { \mathrm { s e l f } }$ early in training.
181
+
182
+ # 2.3 MRI physics application
183
+
184
+ 128 We consider an application in magnetic resonance imaging. In MRI, data is typically acquired in
185
+ 129 the form of $( 3 + 1 ) \mathrm { D }$ spatio-temporal grids, with 1D magnetic resonance time signals measured in
186
+ 130 each voxel of the three spatial dimensions. Advanced imaging methods typically involve voxelwise
187
+ 131 parameter inference for each time signal for the computation of quantitative maps. Modeling the
188
+ 132 individual time signals for inference, however, is challenging due to imperfections in the magnetic
189
+ 133 field generated by the scanner and other sources of signal corruption. Effectively, in MRI there is a
190
+ 134 distributional mismatch problem: simulated data $\widetilde { p } _ { \ell } ( \mathbf { x } )$ , with labels corresponding to well understood
191
+ 135 ephysics parameters, does not contain the full distribution of measured data $\widetilde { p } _ { u } ( \mathbf { x } )$ which, while
192
+ 136 egenerated by the same physics in principle, depends on additional nuissance parameters which cannot
193
+ 137 be modeled. Machine learning models which intended to generalize to $\widetilde { p } _ { u } ( \mathbf { x } )$ should therefore not be
194
+ 138 trained only on data from $\widetilde { p } _ { \ell } ( \mathbf { x } )$ .
195
+ 139 In this work, we acquire multi spin-echo (MSE) MRI images. The MSE time signals are modeled
196
+ 140 using a two-component extended phase graph (EPG) model using the algorithm detailed in Prasloski
197
+ 141 et al. [7]. Using this model, the $j$ -th time point for each signal is given by
198
+
199
+ $$
200
+ \begin{array} { l } { { \displaystyle { \widehat { \mathbf { x } } } _ { j } = f ( j \cdot \mathrm { T E } ) } } \\ { { \displaystyle f ( t ) = \sum _ { \ell = 1 } ^ { 2 } A _ { \ell } \mathrm { E P G } ( t , \alpha , \beta , T _ { 2 , \ell } , T _ { 1 } ) } } \end{array}
201
+ $$
202
+
203
+ 142 where $\alpha$ is the spin flip angle, $\beta$ the refocusing control angle, $A _ { 1 } , A _ { 2 }$ the component amplitudes,
204
+ 143 $T _ { 2 , 1 } \leq T _ { 2 , 2 }$ the short and long transverse relaxation times, and $T _ { 1 }$ the longitudinal relaxation time.
205
+ 144 The $\mathrm { E P G } ( t , \ldots )$ terms are approximately exponentially decaying in $t$ with time constants $T _ { 2 , \ell }$ , with
206
+ 145 additional modifications due to MRI physics determined by $\alpha$ , $\beta$ , and $T _ { 1 }$ . The echo time $\mathrm { T E }$ is the
207
+ 146 uniform spacing between time points. We reparameterize $A _ { 1 }$ , $A _ { 2 }$ , $T _ { 2 , 1 }$ , and $T _ { 2 , 2 }$ in terms of the
208
+ 147 unconstrained parameters $\eta , \delta _ { 1 }$ , and $\delta _ { 2 }$ as follows: $A _ { 1 } = \eta$ , $A _ { 2 } = 1 - \eta$ , $\log T _ { 2 , 1 } = \log T _ { 2 , \mathrm { m i n } } +$
209
+ 148 $( \log T _ { 2 , \mathrm { m a x } } - \log T _ { 2 , \mathrm { m i n } } ) \cdot \delta _ { 1 }$ , and $\log T _ { 2 , 2 } = \log T _ { 2 , \mathrm { m i n } } + \left( \log T _ { 2 , \mathrm { m a x } } - \log T _ { 2 , \mathrm { m i n } } \right) \cdot \left( \delta _ { 1 } + \delta _ { 2 } \cdot \left( 1 - \delta _ { 1 } \right) \right)$ ,
210
+ 149 where $T _ { \mathrm { 2 , m i n } } = 1 0 \mathrm { m s }$ and $T _ { \mathrm { 2 , m a x } } = 1 \mathrm { s }$ . The longitudinal relaxation time is fixed $T _ { 1 } = 1 . 0 \mathrm { s }$ .
211
+ 150 MRI signal noise can be modeled as Rician [8, 9]. Given data $\mathbf { x }$ normalized to have maximum value
212
+ 151 1, the likelihood $p ( \mathbf { x } | \mathbf { y } )$ under Rician noise is given by
213
+
214
+ $$
215
+ \begin{array} { r l } & { \log p ( { \bf x } | { \bf y } ) = \displaystyle \sum _ { j = 1 } ^ { N _ { \bf x } } \log p _ { \mathrm { R i c e } } \left( { \bf x } _ { j } ~ \middle | \frac { { \boldsymbol s } \cdot \hat { \bf x } ( \boldsymbol \theta ) _ { j } } { \operatorname* { m a x } _ { \boldsymbol k } \hat { \bf x } ( \boldsymbol \theta ) _ { k } } ~ , ~ { \boldsymbol s } \cdot { \boldsymbol \epsilon } \right) , } \\ & { p _ { \mathrm { R i c e } } ( \boldsymbol { \xi } | \nu , \sigma ) = \displaystyle \frac { \boldsymbol { \xi } } { \sigma ^ { 2 } } \exp \left( - \frac { \boldsymbol { \xi } ^ { 2 } + \nu ^ { 2 } } { 2 \sigma ^ { 2 } } \right) I _ { 0 } \left( \frac { \boldsymbol { \xi } \nu } { \sigma ^ { 2 } } \right) } \end{array}
216
+ $$
217
+
218
+ 152 is the Rician probability density function with location parameter $\nu$ and scale parameter $\sigma ; I _ { 0 }$ is
219
+ 153 the modified Bessel function of the first kind with order zero. We have introduced two additional
220
+ 154 parameters: a scale parameter $s$ to account for signal normalization, and a noise level $\epsilon$ relative to this
221
+ 155 scale. Additionally, we denote $\theta = \left( \alpha , \beta , \eta , \delta _ { 1 } , \delta _ { 2 } \right)$ the parameters of the EPG model 14.
222
+ 156 In total, there are 7 labels to be inferred: $\mathbf { y } = ( \alpha , \beta , \eta , \delta _ { 1 } , \delta _ { 2 } , \log \epsilon , \log s )$ . We place the following
223
+ 157 priors on the parameters:
224
+
225
+ $$
226
+ \begin{array} { c c } { { \begin{array} { l } { \alpha \sim { \mathcal { T N } } ( 1 8 0 ^ { \circ } , 4 5 ^ { \circ } , 9 0 ^ { \circ } , 1 8 0 ^ { \circ } ) } \\ { \beta \sim { \mathcal { T N } } ( 1 8 0 ^ { \circ } , 4 5 ^ { \circ } , 9 0 ^ { \circ } , 1 8 0 ^ { \circ } ) } \\ { \eta \sim { \mathcal { T N } } ( 0 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \\ { \delta _ { 1 } \sim { \mathcal { T N } } ( 0 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \end{array} } } & { { \begin{array} { r } { \delta _ { 2 } \sim { \mathcal { T N } } ( 1 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \\ { \log \epsilon \sim { \mathcal { U } } ( \log 1 0 ^ { - 5 } , \log 1 0 ^ { - 1 } ) } \\ { \log s \sim { \mathcal { T N } } ( 0 . 0 , 0 . 5 , - 2 . 5 , 2 . 5 ) } \end{array} } } \end{array}
227
+ $$
228
+
229
+ 158 where $\mathcal { T N } ( \mu , \sigma , a , b )$ is the normal distribution with parameters $( \mu , \sigma )$ truncated to the interval $[ a , b ]$ ,
230
+ 159 and $\boldsymbol { \mathcal { U } } ( a , b )$ is the uniform distribution on $[ a , b ]$ . The priors were chosen to align with the expectations
231
+ 160 that: $\alpha , \beta$ are typically near $1 8 0 ^ { \circ }$ ; the short component amplitude $\eta$ is typically less than the long
232
+ 161 amplitude $1 - \eta ; \delta _ { 1 }$ and $\delta _ { 2 }$ should prefer to represent the shortest and longest components; the noise
233
+ 162 level $\epsilon$ is chosen uniformly from signal-to-noise ratios between 20 and 100; the scale parameter $s$
234
+ 163 should prefer to be 1.
235
+
236
+ # 3 Experiments
237
+
238
+ # 3.1 Data sets
239
+
240
+ 166 MRI data The MRI data used for this study consists of two anonymized brain scans acquired using
241
+ 167 a Carr-Purcell-Meiboom-Gill (CPMG) [10, 11] multi spin-echo sequence [12]. The first data set,
242
+ 168 denoted $\widetilde { p } _ { u , 1 } ( \mathbf { x } )$ , contains signals with $N _ { \mathbf { x } , 1 } = 4 8$ samples at times $t _ { i } = i \cdot \mathrm { T E }$ , with echo spacing
243
+ 169 $\mathrm { T E } = 8 \mathrm { m s }$ , repetition time $\mathrm { T R } = 1 0 7 3 \mathrm { m }$ s, matrix size $2 4 0 \times 2 4 0 \times 4 8$ , and spatial resolution
244
+ 170 $0 . 9 6 \times 0 . 9 6 \times 2 . 5 \mathrm { m m ^ { 3 } }$ . The second data set, denoted $\widetilde { p } _ { u , 2 } ( \mathbf { x } )$ , contains signals with $N _ { \mathbf { x } , 2 } = 5 6$
245
+ 171 samples at times $t _ { i } = i \cdot \mathrm { T E }$ , with echo spacing $\mathrm { T E } = 7 \mathrm { m s }$ , repetition time $\mathrm { T R } = 1 0 6 6 \mathrm { m s } .$
246
+ 172 matrix size $2 4 0 \times 2 4 0 \times 1 1 3$ , and spatial resolution $1 . 0 \times 1 . 0 \times 3 . 0 \mathrm { { \dot { m } m } ^ { 3 } }$ . Following the extraction
247
+ 173 of image volumes containing the brain, $\widetilde { p } _ { u , 1 } ( \mathbf { x } )$ and $\widetilde { p } _ { u , 2 } ( \mathbf { x } )$ contain 821 145 and 1 265 306 signals,
248
+ 174 erespectively. MRI data was acquired on a $3 \mathrm { T }$ eMR system (Ingenia Elition, Philips Medical Systems,
249
+ 175 Best, The Netherlands) from healthy volunteers giving written and informed consent, and approved
250
+ 176 by our university ethics board.
251
+ 177 Simulated data Using the EPG physics model 14 with Rician noise, we consider two simulated
252
+ 178 data sets. First, the labeled data set $\widetilde { p } _ { \ell } ( \mathbf { x } )$ which is generated on demand during training using labels
253
+ 179 $\mathbf { y } \sim p ( \mathbf { y } )$ e drawn from the prior distributions 17. Second, a precomputed simulated data set $\widetilde { p } _ { u , 3 } ( \mathbf { x } )$
254
+ 180 eused for validation of the method, where the labels are held out during training. All simulated signals
255
+ 181 are generated with $N _ { \mathbf { x } , 3 } = 6 4$ samples and $\mathrm { T E } = 1 0 \mathrm { m s }$ .
256
+ 182 MCMC data MCMC is performed using the No-U-Turn Sampler [13] algorithm to generate
257
+ 183 posterior samples $\hat { \mathbf { y } } \sim p ( \mathbf { y } | \mathbf { x } _ { u } )$ which can be compared with the (Metropolis-)CVAE posterior
258
+ 184 samples. MCMC was performed twice: once to draw 100 posterior samples for every time signal in
259
+ 185 $\widetilde { p } _ { u , 1 } ( \mathbf { x } )$ , $\widetilde { p } _ { u , 2 } ( \mathbf { x } )$ , and $\bar { \widetilde { p } } _ { u , 3 } ( { \bf x } )$ , and once to draw 3000 posterior samples for a subset of 5000 signals
260
+ 186 e e efrom the training, validation, and testing partitions of all three data sets. In total, performing the
261
+ 187 above MCMC analysis took approximately $7 2 \mathrm { h }$ using an AMD Ryzen 9 3950X 16-Core CPU.
262
+
263
+ ![](images/9b33f26f0cc59901628e3fadea310d4a50d7248c7e97428a7324e60c3f9b4790.jpg)
264
+ Figure 3: (A-G) Histograms of Wasserstein distances between (Metropolis-)CVAE and MCMC empirical distributions for the two MRI data sets. Histograms of errors between the means of the empirical distributions and the true labels are shown. (H) Quantile-quantile plot for each label between global empirical distributions of CVAE samples and MCMC samples. In all plots, comparison with MCMC with 100 samples and 3000 samples are shown in red and green, respectively; CVAE trained only on simulated data is shown in dashed lines; Metropolis-CVAE shown in solid lines.
265
+
266
+ # 188 3.2 Model architecture
267
+
268
+ 189 CVAE components Let $\mathbf { x } \in \mathbb { R } ^ { N _ { \mathbf { x } } }$ , $\mathbf { y } \in \mathbb { R } ^ { N _ { \mathbf { y } } }$ , and $\mathbf { z } \in \mathbb { R } ^ { N _ { \mathbf { z } } }$ be input data, corresponding labels,
269
+ 190 and latent space samples, respectively. The encoders $E _ { 1 }$ and $E _ { 2 }$ are chosen to be multivariate normal
270
+ 191 distributions: $E _ { 1 } ( \mathbf { z } | \mathbf { \bar { x } } ) = \bar { \mathcal { N } } ( \mu _ { \mathbf { z } _ { 1 } } , \bar { \mathcal { \sigma } _ { \mathbf { z } _ { 1 } } } )$ and $E _ { 2 } ( \mathbf { z } | \mathbf { x } , \mathbf { y } ) = \mathcal { N } ( \mu _ { \mathbf { z } _ { 2 } } , \sigma _ { \mathbf { z } _ { 2 } } )$ , where $\mu _ { \mathbf { z } _ { 1 } } , \mu _ { \mathbf { z } _ { 2 } } \in \mathbb { R } ^ { N _ { \mathbf { z } } }$ and
271
+ 192 $\sigma _ { \mathbf { z } _ { 1 } } , \sigma _ { \mathbf { z } _ { 2 } } \in \mathbb { R } _ { + } ^ { N _ { \mathbf { z } } }$ . Similarly, the decoder is given by $D ( \mathbf { y } | \mathbf { x } , \mathbf { z } ) = \mathscr { T N } ( \mu _ { \mathbf { y } } , \sigma _ { \mathbf { y } } , 0 , 1 )$ , where $\mu _ { \mathbf { y } } \in \mathbb { R } ^ { N _ { \mathbf { y } } }$
272
+ 193 and $\boldsymbol { \sigma _ { \mathbf { y } } } \in \mathbb { R } _ { + } ^ { N _ { \mathbf { y } } }$ parameterize independent multivariate normal distributions truncated to [0, 1]. The
273
+ 194 labels $\mathbf { y }$ are scaled linearly from the prior domains 17 to $[ 0 , 1 ] ^ { N _ { \mathbf { y } } }$ in order to better condition the
274
+ 195 network during training. Similarly, as we are interested only in the relative $\mathbf { x }$ values and not their
275
+ 196 absolute scale, inputs $\mathbf { x }$ are normalized to $[ 0 , 1 ] ^ { N _ { \mathbf { x } } }$ .
276
+ 197 Each of the $E _ { 1 }$ , $E _ { 2 }$ , and $D$ networks are composed of fully connected layers with ReLU activation
277
+ 198 functions and $H = 2$ hidden layers, with hidden dimension $N _ { H } = 5 1 2$ , for a total of $H + 2 = 4$
278
+ 199 layers. The dimensions of the data, labels, and latent space are $N _ { \mathbf { x } } = 6 4$ , $N _ { \mathbf { y } } = 7$ , and $N _ { \mathbf { z } } = 1 2$ ,
279
+ 200 respectively. The encoder networks output $\mu _ { \mathbf { z } _ { 1 } }$ , $\log \sigma _ { \mathbf { z } _ { 1 } }$ , $\mu _ { \mathbf { z } _ { 2 } }$ , and $\log \sigma _ { \mathbf { z } _ { 2 } }$ vectors. In order to avoid
280
+ 201 latent space collapse during early training stages – that is, one or both of $\vert \mu _ { \mathbf { z } _ { i } } \vert , \vert \log \sigma _ { \mathbf { z } _ { i } } \vert \infty -$
281
+ 202 each $\mu _ { \mathbf { z } _ { i } }$ was bounded to $( - 3 , 3 )$ using the activation function $x 3 \operatorname { t a n h } ( x )$ , and each $\log \sigma _ { \mathbf { z } _ { i } }$ was
282
+ 203 bounded to $( - 6 , 0 )$ using the activation function $x 3 \operatorname { t a n h } ( x ) - 3$ . These bounds were determined
283
+ 204 by observing empirical $\mu _ { \mathbf { z } _ { i } }$ and $\log \sigma _ { \mathbf { z } _ { i } }$ values and choosing intervals which clipped only the tails of
284
+ 205 the distributions. The decoder network outputs $\mu _ { \mathbf { y } }$ and $\log \sigma _ { \mathbf { y } }$ vectors without further nonlinearities.
285
+ 206 Loss functions The terms $\mathcal { L } _ { \mathrm { s u p e r } }$ and $\mathcal { L } _ { \mathrm { s e l f } }$ in Equation 11 are identical apart from their inputs,
286
+ 207 with each term consisting of the KL-divergence and evidence lower bound (ELBO) terms from the
287
+ 208 variational lower bound of Equation 1. The KL-divergence can be computed in closed closed-form,
288
+ 209 and is given by
289
+
290
+ $$
291
+ \displaystyle \mathrm { K L } \left( E _ { 2 } ( \mathbf { z } | \mathbf { x } , \mathbf { y } ) \left| \right| E _ { 1 } ( \mathbf { z } | \mathbf { x } ) \right) = \sum _ { j = 1 } ^ { N _ { \mathbf { z } } } \frac { \sigma _ { \mathbf { z } _ { 2 } , j } ^ { 2 } + ( \mu _ { \mathbf { z } _ { 2 } , j } - \mu _ { \mathbf { z } _ { 1 } , j } ) ^ { 2 } } { 2 \sigma _ { \mathbf { z } _ { 1 } , j } ^ { 2 } } + \log \frac { \sigma _ { \mathbf { z } _ { 1 } , j } } { \sigma _ { \mathbf { z } _ { 2 } , j } } - \frac { 1 } { 2 }
292
+ $$
293
+
294
+ 210 Following sampling $\mathbf { z } _ { 2 } \sim E _ { 2 } ( \mathbf { z } | \mathbf { x } , \mathbf { y } )$ and subsequently computing $( \mu _ { \mathbf { y } } , \log \sigma _ { \mathbf { y } } ) = D ( \mathbf { y } | \mathbf { x } , \mathbf { z } _ { 2 } )$ , the
295
+ 211 ELBO component is approximated as
296
+
297
+ $$
298
+ \begin{array} { r l } { \displaystyle \mathbb { E } _ { E _ { 2 } ( { \mathbf z } | { \mathbf x } , { \mathbf y } ) } \left[ \log D ( \mathbf { y } | { \mathbf x } , { \mathbf z } ) \right] \approx _ { j = 1 } ^ { N _ { y } } \Bigg \{ } & { } \\ { \displaystyle \log \phi \left( \frac { \mathbf { y } _ { j } - \mu _ { { \mathbf y } , j } } { \sigma _ { { \mathbf y } , j } } \right) - \log \left( \Phi \left( \frac { 1 - \mu _ { { \mathbf y } , j } } { \sigma _ { { \mathbf y } , j } } \right) - \Phi \left( \frac { 0 - \mu _ { { \mathbf y } , j } } { \sigma _ { { \mathbf y } , j } } \right) \right) - \log \sigma _ { { \mathbf y } , j } \Bigg \} } & { } \\ { \displaystyle \mathrm { w h e r e } \quad } & { \phi ( \xi ) = \frac { 1 } { \sqrt { 2 \pi } } \exp \left( - \frac { 1 } { 2 } \xi ^ { 2 } \right) } \\ & { \displaystyle \Phi ( \zeta ) = \frac { 1 } { 2 } \left( 1 + \mathrm { e r f } \left( \frac { \zeta } { \sqrt { 2 } } \right) \right) . } \end{array}
299
+ $$
300
+
301
+ $\phi ( \xi )$ and $\Phi ( \zeta )$ are the probability density and cumulative distribution functions of the standard normal distribution, respectively. Note that each term in the sum of Equation 19 is the log-likelihood of a normal distribution with parameters $( \mu _ { \mathbf { y } , i } , \sigma _ { \mathbf { y } , i } )$ truncated to the unit interval [0, 1].
302
+
303
+ # 3.3 Training
304
+
305
+ All data sets were split into training/validation/testing with proportions $5 0 \% / 2 5 \% / 2 5 \%$ . Input data was padded with zeros to length $N _ { \mathbf { x } } = 6 4$ , if necessary. To support data with differing unpadded lengths, random masking was performed during training: for each x, a random integer $j _ { \mathrm { m a s k } }$ was sampled from 32–64 and all elements $\mathbf { x } _ { j } { > } j _ { \mathrm { m a s k } }$ were set to zero. The ADAM optimizer was used with√ an initial learning rate of $1 0 ^ { - 4 }$ . The learning rate was decreased every 1000 epochs by a factor of $\sqrt { 1 0 }$ Training was completed after 5000 epochs, where an epoch is defined as 100 iterations. Each iteration, a batch of 1024 data and (pseudo-)label pairs are drawn from either a labeled or an unlabeled dataset, with equal probability. If labeled data are sampled, the loss component $\mathcal { L } _ { \mathrm { s u p e r } } ( \mathbf { x } _ { \ell } , \mathbf { y } )$ is descended on. If unlabeled data are sampled, the pseudo labels $\widetilde { \mathbf { y } }$ corresponding to the sampled $\mathbf { x } _ { u }$ are updated eusing Equation 8 before descending on the loss component $\bar { \mathcal { L } } _ { \mathrm { s e l f } } ( \mathbf { x } _ { u } , \widetilde { \mathbf { y } } )$ . In the Metropolis-Hastings update step, we set $L _ { c } = 1$ in equation 7 and $L _ { \mathbf { z } } = 1$ ein equation 9. Training was performed on a single Nvidia GeForce RTX 3080 GPU with 10 GB of VRAM; approximately 15 hours was required to train for 5000 epochs.
306
+
307
+ # 229 4 Results and discussion
308
+
309
+ In the first experiment, a Metropolis-CVAE is trained on online simulated labeled data $\mathbf { x } _ { \ell } \sim \widetilde { p } _ { \ell } ( \mathbf { x } )$ as well as precomputed simulated data $\mathbf { x } _ { u } \sim \widetilde { p } _ { u , 3 } ( \mathbf { x } )$ with labels held out during training. Figure 1(A-G) eshows the distributions of prediction errors by the trained network for each label. For each method, the prediction error is defined as the difference between the true label and the mean of the posterior samples. The labels have been normalized to [0, 1]. The histograms for the Metropolis-CVAE with 100 posterior samples are more tightly clustered around zero than MCMC with either 100 or 3000 posterior samples – denoted MCMC-100 and MCMC-3000 – in all cases except for one (Figure 1F). Figure 1H shows a $p { - } p$ plot: the fraction of posterior samples greater than or equal to the true label, $p$ is plotted against the cumulative distribution of $p$ -values across the data set; the Metropolis-CVAE produces similar curves as MCMC-3000.
310
+
311
+ 240 In the second experiment, a Metropolis-CVAE is similarly trained using labeled simulated $\mathbf { x } _ { \ell } \sim \widetilde { p } _ { \ell } ( \mathbf { x } )$ ,
312
+ 241 but now with the unlabeled data $\mathbf { x } _ { u }$ drawn from the MRI data sets $\widetilde { p } _ { u , 1 } ( \mathbf { x } )$ and $\widetilde { p } _ { u , 2 } ( \mathbf { x } )$ e. For
313
+ 242 e ecomparison, a second traditional CVAE is trained on the simulated data only. Figure 2A shows the
314
+ 243 acceptance rate of the proposed pseudo labels $\widetilde { \mathbf { y } } ^ { \prime } \sim Q ( \mathbf { y } ^ { \prime } )$ for each data set during training. As the
315
+ 244 eMetropolis-CVAE continually learns from both data sets, we find that the network quickly enters
316
+ 245 a negative feedback loop in which the acceptance rate continually increases throughout training.
317
+ 246 Noteworthy is that the acceptance rate of $\widetilde { \mathbf { y } }$ converges to a value between 0.6 and 0.7 for both datasets.
318
+ 247 eThe default target acceptance rate of the No-U-Turn sampler is 0.65, a value which originates from
319
+ 248 a theoretical result pertaining to Hamiltonian Monte Carlo (HMC) [14]. Theoretical work would
320
+ 249 be required to demonstrate a direct connection between Metropolis-CVAEs and the HMC result.
321
+ 250 However, this illustrates that the network neither accepts nor rejects more proposals than is typically
322
+ 251 desired. Figure 2(B-C) shows the average Wasserstein distance between empirical label distributions
323
+ 252 from the Metropolis-CVAE with MCMC-100 and MCMC-3000, respectively. During training, the
324
+ 253 Metropolis-CVAE quickly reaches minimum Wasserstein distances with respect to MCMC-100.
325
+ 254 Minima are reached with respect to MCMC-3000 similarly quickly. We can extrapolate from this
326
+ 255 result that the Metropolis-CVAE likely produces higher quality posterior samples than MCMC-3000.
327
+ 256 This may be expected, as the Metropolis-CVAE updates its pseudo labels at every training iteration,
328
+ 257 continuously performing MCMC throughout training using the MH update rule 8.
329
+ 258 Figure 3(A-G) compares the empirical distributions of a traditional CVAE trained only on simulated
330
+ 259 data with a Metropolis-CVAE. Histograms of the Wasserstein distances between the two networks and
331
+ 260 MCMC-100 do not show large differences, due to the low-quality of MCMC-100. Compared with
332
+ 261 MCMC-3000, parameters which are traditionally easier to infer, such as $\alpha$ and $\beta$ , show little difference
333
+ 262 between the networks. The CVAE trained on supervised data alone shows significant deviation from
334
+ 263 MCMC-3000 for several parameters, particularly $\eta$ , $\delta _ { 1 }$ , and $\log \epsilon$ . This illustrates the ability of the
335
+ 264 Metropolis-CVAE to generalize well to the unlabeled test data, as unlabeled training data from $\widetilde { p } _ { u } ( \mathbf { x } )$
336
+ 265 ehas been explicitly incorporated into its training process. Figure 3(H) shows quantile-quantile plots
337
+ 266 for distributions of all label samples across the data sets. All methods agree.
338
+ 267 Limitations A limitation of this method is the requirement of a likelihood function which is fast to
339
+ 268 compute in order to perform the Metropolis-Hastings update step 8. For physics models, computing
340
+ 269 the likelihood of a set of parameters often involves costly forward simulations of complex models.
341
+ 270 Therefore, computationally intensive models which require solving non-trivial integral or differential
342
+ 271 equations will not be suitable.
343
+ 272 Another limitation is that the pseudo label sampling procedure may converge to a stable local
344
+ 273 minimum which is far from the globally optimal labels. This is inherent to the MH update step; while
345
+ 274 MCMC methods often provide convergence guarantees in the limit of large numbers of update steps,
346
+ 275 one can not predict how many update steps this will require in practice. However, by training the
347
+ 276 Metropolis-CVAE on both simulated data generated from the prior space as well as real unlabeled
348
+ 277 data, we have not found this to be a practical concern.
349
+
350
+ Potential negative societal impacts This work describes a framework for ascribing labels to unlabeled data. Potential malicious and unintended uses could occur if this framework were significantly extended beyond the MRI physics inference problem which we considered. For example, this methodology could be used to infer missing data generally, with the inferred data then presented under the pretense that it were true data. Further, we have not shown that our method of data inference for unlabeled data is inherently fair, nor that the clinical MRI data under which the Metropolis-CVAE model is trained on cannot be recovered from the network weights.
351
+
352
+ 285 References
353
+ 286 [1] Udo von Toussaint. Bayesian inference in physics. Reviews of Modern Physics, 83(3):943–999,
354
+ 287 September 2011. doi: 10.1103/RevModPhys.83.943. URL https://link.aps.org/doi/
355
+ 288 10.1103/RevModPhys.83.943. Publisher: American Physical Society.
356
+ 289 [2] Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning Structured Output Representation
357
+ 290 using Deep Conditional Generative Models. In C. Cortes, N. Lawrence, D. Lee, M. Sugiyama,
358
+ 291 and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 28. Curran
359
+ 292 Associates, Inc., December 2015. URL https://proceedings.neurips.cc/paper/2015/
360
+ 293 file/8d55a249e6baa5c06772297520da2051-Paper.pdf.
361
+ 294 [3] Diederik P. Kingma, Danilo J. Rezende, Shakir Mohamed, and Max Welling. Semi-Supervised
362
+ 295 Learning with Deep Generative Models. arXiv:1406.5298 [cs, stat], October 2014. URL
363
+ 296 http://arxiv.org/abs/1406.5298. arXiv: 1406.5298.
364
+ 297 [4] Hunter Gabbard, Chris Messenger, Ik Siong Heng, Francesco Tonolini, and Roderick
365
+ 298 Murray-Smith. Bayesian parameter estimation using conditional variational autoencoders
366
+ 299 for gravitational-wave astronomy. arXiv:1909.06296 [astro-ph, physics:gr-qc], September
367
+ 300 2019. URL http://arxiv.org/abs/1909.06296. arXiv: 1909.06296.
368
+ 301 [5] Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and
369
+ 302 Edward Teller. Equation of State Calculations by Fast Computing Machines. The Journal of
370
+ 303 Chemical Physics, 21(6):1087–1092, June 1953. ISSN 0021-9606. doi: 10.1063/1.1699114.
371
+ 304 URL https://aip.scitation.org/doi/10.1063/1.1699114. Publisher: American In
372
+ 305 stitute of Physics.
373
+ 306 [6] W. K. Hastings. Monte Carlo sampling methods using Markov chains and their applications.
374
+ 307 Biometrika, 57(1):97–109, April 1970. ISSN 0006-3444. doi: 10.1093/biomet/57.1.97. URL
375
+ 308 https://doi.org/10.1093/biomet/57.1.97.
376
+ 309 [7] Thomas Prasloski, Burkhard Mädler, Qing-San Xiang, Alex MacKay, and Craig Jones.
377
+ 310 Applications of stimulated echo correction to multicomponent T2 analysis. Magnetic
378
+ 311 Resonance in Medicine, 67(6):1803–1814, 2012. ISSN 1522-2594. doi: 10.1002/
379
+ 312 mrm.23157. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/mrm.23157.
380
+ 313 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/mrm.23157.
381
+ 314 [8] S. O. Rice. Mathematical Analysis of Random Noise. Bell System Technical Journal, 23(3):
382
+ 315 282–332, 1944. ISSN 1538-7305. doi: 10.1002/j.1538-7305.1944.tb00874.x. URL https:
383
+ 316 //onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1944.tb00874.x.
384
+ 317 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1944.tb00874.x.
385
+ 318 [9] S. O. Rice. Mathematical Analysis of Random Noise. Bell System Technical Journal, 24(1):
386
+ 319 46–156, 1945. ISSN 1538-7305. doi: 10.1002/j.1538-7305.1945.tb00453.x. URL https:
387
+ 320 //onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1945.tb00453.x.
388
+ 321 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1945.tb00453.x.
389
+ 322 [10] H. Y. Carr and E. M. Purcell. Effects of Diffusion on Free Precession in Nuclear Magnetic
390
+ 323 Resonance Experiments. Physical Review, 94(3):630–638, May 1954. doi: 10.1103/PhysRev.94.
391
+ 324 630. URL https://link.aps.org/doi/10.1103/PhysRev.94.630. Publisher: American
392
+ 325 Physical Society.
393
+ 326 [11] S. Meiboom and D. Gill. Modified Spin-Echo Method for Measuring Nuclear Relaxation
394
+ 327 Times. Review of Scientific Instruments, 29(8):688–691, August 1958. ISSN 0034-6748. doi:
395
+ 328 10.1063/1.1716296. URL https://aip.scitation.org/doi/abs/10.1063/1.1716296.
396
+ 329 Publisher: American Institute of Physics.
397
+ 330 [12] Kenneth P. Whittall, Alex L. Mackay, Douglas A. Graeb, Robert A. Nugent, David K. B.
398
+ 331 Li, and Donald W. Paty. In vivo measurement of T2 distributions and water contents in
399
+ 332 normal human brain. Magnetic Resonance in Medicine, 37(1):34–43, 1997. ISSN 1522-2594.
400
+ 333 doi: 10.1002/mrm.1910370107. URL https://onlinelibrary.wiley.com/doi/abs/10.
401
+ 334 1002/mrm.1910370107.
402
+
403
+ 35 [13] Matthew D Hoffman and Andrew Gelman. The No-U-Turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. J. Mach. Learn. Res., 15(1):1593–1623, 2014.
404
+
405
+ [14] Alexandros Beskos, Natesh Pillai, Gareth Roberts, Jesus-Maria Sanz-Serna, and Andrew Stuart. Optimal tuning of the hybrid Monte Carlo algorithm. Bernoulli, 19 (5A):1501–1534, November 2013. ISSN 1350-7265. doi: 10.3150/12-BEJ414. URL https://projecteuclid.org/journals/bernoulli/volume-19/issue-5A/ Optimal-tuning-of-the-hybrid-Monte-Carlo-algorithm/10.3150/12-BEJ414. full. Publisher: Bernoulli Society for Mathematical Statistics and Probability.
406
+
407
+ # Checklist
408
+
409
+ 1. For all authors...
410
+
411
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
412
+ (b) Did you describe the limitations of your work? [Yes] See the Limitations paragraph of the Results and discussion section.
413
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See the Potential negative societal impacts paragraph of the Results and discussion section.
414
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
415
+
416
+ 2. If you are including theoretical results...
417
+
418
+ (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]
419
+
420
+ 3. If you ran experiments...
421
+
422
+ (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] Code to reproduce the main results is included with the supplemental material. The MRI data cannot be included, as it is medical data. However, the simulated data is provided in the supplemental material.
423
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See the Training subsection of the Experiments section.
424
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We provide entire histograms of relevant error metrics; see Figures 1 and 3.
425
+ (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] See the MCMC data paragraph of the Data sets subsection of the Experiments section, as well as the Training subsection of the Experiments section.
426
+
427
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
428
+
429
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
430
+ (b) Did you mention the license of the assets? [N/A]
431
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] The trained models are supplied in the supplemental material.
432
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] See the MRI data paragraph of the Data sets subsection of the Experiments section.
433
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] The MRI data used in this work is anonymized; see the MRI data paragraph of the Data sets subsection of the Experiments section.
434
+
435
+ 5. If you used crowdsourcing or conducted research with human subjects...
436
+
437
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [No] This was a prospective study; this information was not available.
438
+
439
+ 385 (b) Did you describe any potential participant risks, with links to Institutional Review
440
+ 386 Board (IRB) approvals, if applicable? [Yes] These MRI scans were acquired with
441
+ 387 approval from our university ethics board; see the MRI data paragraph of the Data sets
442
+ 388 subsection of the Experiments section.
443
+ 389 (c) Did you include the estimated hourly wage paid to participants and the total amount
444
+ 390 spent on participant compensation? [N/A]
parse/train/wTutcPE7zOC/wTutcPE7zOC_content_list.json ADDED
@@ -0,0 +1,1021 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Metropolis-CVAE: Bootstrapping Labels for Bayesian Inference via Semi-Supervised Conditional Variational Autoencoders ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 122,
9
+ 823,
10
+ 196
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 247,
20
+ 578,
21
+ 301
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 338,
32
+ 535,
33
+ 354
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 In Bayesian parameter estimation, models make simplifying assumptions to make \n2 parameter inference feasible. If learned inference methods are trained using data \n3 simulated by models, however, distributional differences between simulated and \n4 observed data may lead to biased inference results on the observed data. In this \n5 work, we introduce a semi-supervised learned Bayesian inference method which \n6 makes use of both simulated data – for which the underlying parameters are known \n7 by construction – and unlabeled data, which may depend on nuissance parameters \n8 not captured by the simulation procedure. A conditional variational autoencoder \n9 (CVAE) is trained to perform approximate inference simultaneously on the sets of \n10 labeled simulated data and unlabeled data, where the unlabeled data is initialized \n11 with arbitrary pseudo labels. At each training iteration, new candidate pseudo \n12 labels are drawn from the CVAE posterior and the pseudo labels are updated using \n13 the Metropolis-Hastings algorithm. This process results in a Markov chain of \n14 bootstrapped pseudo labels for each unlabeled datum, effectively performing online \n15 Markov chain Monte Carlo (MCMC) inference wherein the proposal distribution \n16 is a CVAE informed by labeled simulated data, producing proposals which are \n17 increasingly likely to be accepted as training proceeds. The resulting CVAE is \n18 able to efficiently produce samples from the posterior distributions of both the \n19 simulated and unlabeled data, implicitly marginalizing over nuissance parameters \n20 in the unlabeled data. We demonstrate the effectiveness of this method in magnetic \n21 resonance imaging (MRI) where MCMC is computationally impractical to due the \n22 $( 3 + 1 ) \\mathrm { D }$ nature of the images, showing improvement against traditional MCMC \n23 inference in both speed and posterior quality. ",
40
+ "bbox": [
41
+ 147,
42
+ 369,
43
+ 766,
44
+ 689
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "24 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 715,
55
+ 310,
56
+ 733
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "25 Bayesian parameter estimation methods are robust techniques for quantifying properties of a system \n26 that cannot be observed directly [1]. In order to estimate such parameters, one first needs to develop \n27 a model of the phenomena to be studied. This process requires deep domain-specific knowledge. For \n28 all but the most basic of systems, a series of simplifying assumptions on the system are required to \n29 make parameter inference tractable. Typically, tractable is synonymous with not being unreasonably \n30 expensive to compute. Examples of such methodologies include perturbation theory, in which models \n31 containing Taylor series expansions drop higher order terms; mean-field theory, in which interactions \n32 involving many degrees of freedom are replaced by averaged approximations; and (stochastic) \n33 differential equations, when used as continuous limits of discrete stochastic processes. The price one \n34 pays for utilizing a given approximation is highly problem dependent. When approximate models \n35 are used for parameter inference, the mismatch between model predictions and data may propagate \n36 through the inference process and lead to bias and other misestimations of the inferred parameters. In \n37 this work, we are interested in the following research question: can a deep learning model be trained \n38 to perform inference, while incorporating both labeled data generated from a well-understood model, \n39 and unlabeled data which contains additional complex structure which cannot be modeled? \n40 Here, we present Metropolis conditional variational autoencoders (Metropolis-CVAEs). Metropolis \n41 CVAEs combine traditional CVAEs with the Metropolis-Hastings Markov chain monte carlo (MCMC) \n42 inference method. The resulting networks combine the ability of CVAEs to learn to perform rapid \n43 approximate Bayesian inference from labeled data with traditional MCMC methodology which \n44 requires only a likelihood model and a prior distribution over the parameters of interest. The \n45 Metropolis-CVAE initializes the unlabeled data with pseudo labels drawn from the prior distribution \n46 and, informed by the labeled data, iteratively improves the pseudo labels throughout training. We \n47 demonstrate the effectiveness of the Metropolis-CVAE network compared to traditional MCMC \n48 methods on an inference problem from magnetic resonance imaging (MRI) which is inherently \n49 computationally challenging due to the $( 3 + 1 ) \\mathrm { D }$ nature of the data. ",
63
+ "bbox": [
64
+ 147,
65
+ 747,
66
+ 825,
67
+ 900
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 92,
77
+ 825,
78
+ 147
79
+ ],
80
+ "page_idx": 1
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 154,
88
+ 825,
89
+ 292
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 Methods ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 161,
99
+ 310,
100
+ 277,
101
+ 327
102
+ ],
103
+ "page_idx": 1
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "2.1 Related work ",
108
+ "text_level": 1,
109
+ "bbox": [
110
+ 163,
111
+ 342,
112
+ 305,
113
+ 356
114
+ ],
115
+ "page_idx": 1
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "In the pioneering work by Sohn et al. [2], conditional variational autoencoders were introduced by considering a variational lower bound to the conditional log-likelihood $\\log p ( \\mathbf { y } | \\mathbf { x } )$ of labels $\\mathbf { y }$ given corresponding data $\\mathbf { x }$ . Ideally, to perform data-driven approximate inference, one would like to train a network to learn to maximize the conditional log-likelihood directly. However, this is known to be an intractable problem. To mitigate this issue, the stochastic gradient variational Bayes (SGVB) framework is employed. In SGVB, a latent space which factorizes the marginal likelihood is introduced via $\\begin{array} { r } { p ( \\mathbf { y } | \\mathbf { x } ) = \\int _ { \\mathbf { z } } \\mathrm { d } \\mathbf { z } p ( \\mathbf { z } | \\mathbf { x } ) p ( \\mathbf { y } | \\mathbf { z } , \\mathbf { x } ) } \\end{array}$ , as well as a recognition distribution $q ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } )$ . The conditional log-likelihood is then maximized indirectly via maximizing the variational lower bound ",
120
+ "bbox": [
121
+ 165,
122
+ 367,
123
+ 825,
124
+ 479
125
+ ],
126
+ "page_idx": 1
127
+ },
128
+ {
129
+ "type": "equation",
130
+ "img_path": "images/6066ca64b04e61fe886f3ebfc9cbae90e40ce6fcd7cd2e2bb35ac97c2829a7a5.jpg",
131
+ "text": "$$\n\\begin{array} { r l } & { \\log p ( \\mathbf { y } | \\mathbf { x } ) \\geq - \\mathrm { K L } \\left( q ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } ) \\left| \\right| p ( \\mathbf { z } | \\mathbf { x } ) \\right) + \\mathbb { E } _ { q ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } ) } \\left[ \\log p ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } ) \\right] } \\\\ & { \\qquad : = - \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) } \\end{array}\n$$",
132
+ "text_format": "latex",
133
+ "bbox": [
134
+ 277,
135
+ 501,
136
+ 720,
137
+ 540
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "60 where $\\mathrm { K L }$ is the Kullback-Leibler divergence. The interpretation as a conditional autoencoder is \n61 as follows: let $p ( \\mathbf { z } | \\mathbf { x } )$ , $q ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } )$ , and $p ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } )$ be parameterized by deep neural networks $E _ { 1 } ( \\mathbf { z } | \\mathbf { x } )$ , \n62 $E _ { 2 } ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } )$ , and $D ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } )$ , respectively. Then, $E _ { 1 }$ and $E _ { 2 }$ can be viewed as encoders which map \n63 their inputs into distributions over the latent variables $\\mathbf { z }$ . $D$ can be viewed as a decoder which maps \n64 stochastic latent representations $\\mathbf { z }$ and data $\\mathbf { x }$ into posterior distributions over the labels y. Hence, $\\mathbf { y }$ \n65 is conditionally autoencoded via the encoder-decoder pipeline $\\mathbf { z } \\sim E _ { 2 } ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } ) \\mathbf { y } \\sim D ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } )$ . \n66 At inference time, posterior samples are similarly drawn via $\\mathbf { z } \\sim E _ { 1 } ( \\mathbf { z } | \\mathbf { x } ) \\mathbf { y } \\sim D ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } )$ . The \n67 CVAE – the triplet of networks $( E _ { 1 } , E _ { 2 } , D ) -$ is trained by minimizing $\\mathcal { L }$ over the CVAE parameters, \n68 thereby maximizing the variational lower bound on $\\log p ( \\mathbf { y } | \\mathbf { x } )$ . \n69 The CVAE approach by Sohn et al. [2] is designed for supervised learning problems. Earlier work of \n70 a similar vein by Kingma et al. [3] introduces a semi-supervised framework in which labeled data \n71 $\\left( \\mathbf { x } _ { \\ell } , \\mathbf { y } \\right)$ is used to infer labels for unlabeled data $\\mathbf { x } _ { u }$ via the minimization of a two-term loss function. \n72 The first term of the loss function is a supervised loss over $\\left( \\mathbf { x } _ { \\ell } , \\mathbf { y } \\right)$ samples, similar to Equation 1, \n73 derived from a variational lower bound on the joint log-likelihood $\\log p ( \\mathbf { x } _ { \\ell } , \\mathbf { y } )$ . The second term is an \n74 unsupervised loss over $\\mathbf { x } _ { u }$ samples which treats label inference as a data imputation task. Specifically, \n75 the unknown label is treated as a parameter over which posterior inference is performed; the resulting \n76 loss is a variational lower bound on the log-likelihood $\\bar { \\log { p ( \\mathbf { x } _ { u } ) } }$ . \n77 While the semi-supervised method of Kingma et al. is an elegant approach to discovering labels, \n78 it is not quite suitable for inferring labels for out of distribution data. This is due to the implicit \n79 assumption that relationships between $\\mathbf { x } _ { \\ell }$ and $\\mathbf { y }$ learned from the joint distribution $p ( \\mathbf x _ { \\ell } , \\mathbf y )$ generalize \n80 to data from $p ( \\mathbf { x } _ { u } )$ . In fact, this assumption is made explicit via an extended objective function which \n81 adds a regularization term $\\mathbb { E } _ { \\widetilde { p } _ { \\ell } ( \\mathbf { x } , \\mathbf { y } ) } \\left[ - \\log q ( \\mathbf { y } | \\mathbf { x } _ { \\ell } ) \\right]$ over the empirical distribution $\\widetilde { p } _ { \\ell } ( \\mathbf { x } , \\mathbf { y } )$ of labeled \n82 edata. This penalty encourages the learned posterior distribution $q ( \\mathbf { y } \\vert \\mathbf { x } )$ e to generate labels for $\\mathbf { x } _ { u }$ by \n83 extrapolating from the relationships it discovers between $\\left( \\mathbf { x } _ { \\ell } , \\mathbf { y } \\right)$ pairs. This will naturally lead to \n84 biased labels for $\\mathbf { x } _ { u }$ when the distribution underlying $\\mathbf { x } _ { u }$ differs from that of $\\mathbf { x } _ { \\ell }$ . \n85 Gabbard et al., who made use of CVAEs to accelerate inference for an application in gravitational \n86 wave astronomy [4], presented an alternate view of Equation 1. Gabbard et al. begin by aiming to \n87 minimize the expected cross-entropy ",
144
+ "bbox": [
145
+ 145,
146
+ 550,
147
+ 825,
148
+ 676
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 147,
157
+ 681,
158
+ 825,
159
+ 794
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "",
166
+ "bbox": [
167
+ 147,
168
+ 799,
169
+ 825,
170
+ 911
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "",
177
+ "bbox": [
178
+ 145,
179
+ 90,
180
+ 825,
181
+ 135
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "equation",
187
+ "img_path": "images/a2e96bed20a6dfe430e4bc44d480d618010e95db0f6ac8adf91397b174b767f5.jpg",
188
+ "text": "$$\n\\mathcal { H } : = - \\mathbb { E } _ { p ( \\mathbf { x } ) } \\left[ \\int _ { \\mathbf { y } } \\mathrm { d } \\mathbf { y } p ( \\mathbf { y } | \\mathbf { x } ) \\log \\hat { p } ( \\mathbf { y } | \\mathbf { x } ) \\right]\n$$",
189
+ "text_format": "latex",
190
+ "bbox": [
191
+ 359,
192
+ 164,
193
+ 637,
194
+ 200
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "88 over the data distribution $p ( \\mathbf { x } )$ between the true posterior $p ( \\mathbf { y } \\vert \\mathbf { x } )$ and approximate posterior ${ \\hat { p } } ( \\mathbf { y } | \\mathbf { x } )$ . Employing the SGVB framework and letting 89 $\\begin{array} { r } { \\hat { p } ( \\mathbf { y } | \\mathbf { x } ) = \\int _ { \\mathbf { z } } \\mathrm { d } \\mathbf { z } \\hat { p } ( \\mathbf { z } | \\mathbf { x } ) \\hat { p } ( \\mathbf { y } | \\mathbf { z } , \\mathbf { x } ) } \\end{array}$ , it follows from 1 that ",
201
+ "bbox": [
202
+ 142,
203
+ 219,
204
+ 830,
205
+ 251
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "equation",
211
+ "img_path": "images/afc23f01bd5a0279dea31fad27250d26ebe452e29a0b6cfb94a559d3d4ae73f4.jpg",
212
+ "text": "$$\n\\mathcal { H } \\leq \\mathbb { E } _ { p ( \\mathbf { x } ) } \\left[ \\int _ { \\mathbf { y } } \\mathrm { d } \\mathbf { y } p ( \\mathbf { y } | \\mathbf { x } ) \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) \\right] .\n$$",
213
+ "text_format": "latex",
214
+ "bbox": [
215
+ 375,
216
+ 279,
217
+ 622,
218
+ 315
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "90 Applying Bayes’ theorem, we equivalently have that ",
225
+ "bbox": [
226
+ 145,
227
+ 334,
228
+ 517,
229
+ 349
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "equation",
235
+ "img_path": "images/de2ba5dce8bd1c3273f4caceba3b57adb06c97b699361e9e82dd38aeb0d1df9b.jpg",
236
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { H } \\leq \\mathbb { E } _ { p ( \\mathbf { x } ) } \\mathbb { E } _ { p ( \\mathbf { y } \\mid \\mathbf { x } ) } \\left[ \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) \\right] } \\\\ & { \\quad = \\mathbb { E } _ { p ( \\mathbf { y } ) } \\mathbb { E } _ { p ( \\mathbf { x } \\mid \\mathbf { y } ) } \\left[ \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) \\right] } \\\\ & { \\quad = \\mathbb { E } _ { p ( \\mathbf { x } , \\mathbf { y } ) } \\left[ \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) \\right] . } \\end{array}\n$$",
237
+ "text_format": "latex",
238
+ "bbox": [
239
+ 401,
240
+ 381,
241
+ 596,
242
+ 441
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "91 Therefore, maximizing the variational lower bound to $\\log p ( \\mathbf { y } | \\mathbf { x } )$ over a dataset of $\\displaystyle ( \\mathbf { x } , \\mathbf { y } )$ pairs, as in \n92 Equation 1, is equivalent to minimizing the expected cross-entropy via Equation 6. The interpretation \n93 of Equations 4 and 5, however, will prove useful for remedying the issue of label inference for out of \n94 distribution data. ",
249
+ "bbox": [
250
+ 145,
251
+ 459,
252
+ 825,
253
+ 515
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "95 2.2 Theoretical contributions ",
260
+ "text_level": 1,
261
+ "bbox": [
262
+ 151,
263
+ 539,
264
+ 388,
265
+ 554
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "96 Equation 5 is a natural framework for using CVAEs to perform inference on simulated data with \n97 known labels [4]. Suppose labels $\\mathbf { y } \\sim p ( \\mathbf { y } )$ are sampled from a prior distribution and $\\mathbf { x } \\sim p ( \\mathbf { x } | \\mathbf { y } )$ \n98 is subsequently given by a (possibly stochastic) model function $\\mathbf { x } = f ( \\mathbf { y } )$ . Then, Equation 5 \n99 corresponds to minimizing the average CVAE loss $\\mathcal { L } ( \\mathbf { x } , \\mathbf { y } )$ over pairs of simulated data $( \\mathbf { x } = f ( \\mathbf { y } ) , \\mathbf { y } )$ . \n100 The novel contribution of this work stems from of Equation 4. Using this formulation directly would \n101 require sampling from the posterior $p ( \\mathbf { y } \\vert \\mathbf { x } )$ , which is our stated objective. However, this can be \n102 circumvented by making the observation that if we could construct a Markov chain of pseudo labels \n103 $\\widetilde { \\mathbf { y } }$ during training, such that the stationary distribution of the sequence $( \\widetilde { \\mathbf { y } } _ { k } ) _ { k \\in \\mathbb { N } }$ was $p ( \\mathbf { y } \\vert \\mathbf { x } )$ , then \n104 eEquation 4 could be approximated as ",
272
+ "bbox": [
273
+ 143,
274
+ 566,
275
+ 826,
276
+ 625
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "",
283
+ "bbox": [
284
+ 142,
285
+ 628,
286
+ 825,
287
+ 699
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/744464a54b459d31ae1e6a9b58f4d0e0b58d06d67e014f287b5c6d048f7738f6.jpg",
294
+ "text": "$$\n\\mathbb { E } _ { p ( \\mathbf { x } ) } \\mathbb { E } _ { p ( \\mathbf { y } | \\mathbf { x } ) } \\left[ \\mathcal { L } ( \\mathbf { x } , \\mathbf { y } ) \\right] \\approx \\mathbb { E } _ { p ( \\mathbf { x } ) } \\left[ \\frac { 1 } { L _ { c } } \\sum _ { i = 0 } ^ { L _ { c } - 1 } \\mathcal { L } ( \\mathbf { x } , \\widetilde { \\mathbf { y } } _ { n - i } ) \\right]\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 308,
298
+ 729,
299
+ 687,
300
+ 773
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "105 where $( \\widetilde { \\mathbf { y } } _ { n - L _ { c } + 1 } , \\ldots , \\widetilde { \\mathbf { y } } _ { n } )$ are the $L _ { c }$ most recent samples in the Markov chain. This approach to \n106 e edistribution sampling – Markov chain Monte Carlo (MCMC) sampling – is considered the gold \n107 standard in parameter inference. \n108 In this work, we consider the Metropolis-Hastings (MH) algorithm [5, 6]. In the context of Bayesian \n109 inference for recovering labels $\\mathbf { y }$ from data $\\mathbf { x }$ , MH sampling begins with a prior distribution $p ( \\mathbf { y } )$ , a \n110 likelihood function $p ( \\mathbf { x } | \\mathbf { y } )$ , and a proposal distribution $Q ( \\mathbf { y } ^ { \\prime } | \\mathbf { y } )$ which quantifies the probability of \n111 transitioning from y to $\\mathbf { y } ^ { \\prime }$ in the space of possible labels. Given a sample ${ \\bf y } _ { n }$ of a Markov chain, the \n112 MH update rule is given by ",
307
+ "bbox": [
308
+ 142,
309
+ 792,
310
+ 825,
311
+ 835
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "",
318
+ "bbox": [
319
+ 142,
320
+ 840,
321
+ 825,
322
+ 912
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "image",
328
+ "img_path": "images/97cf94220a9e5f30dc3213d1f093a81f544c1b859c6af51de3cb1c59aca7af8f.jpg",
329
+ "image_caption": [
330
+ "Figure 1: (A-G) Comparison of inference results for data simulated using Equation 14 with parameters drawn from Equation 17. Histograms of errors between the means of the empirical distributions and the true labels are shown. $\\mathrm { ( H ) }$ ) p-p plot for each label. In all plots, MCMC with 100 samples, MCMC with 3000 samples, and Metropolis-CVAE with 100 samples are shown in red, green, and blue, respectively. "
331
+ ],
332
+ "image_footnote": [],
333
+ "bbox": [
334
+ 171,
335
+ 85,
336
+ 826,
337
+ 386
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "equation",
343
+ "img_path": "images/1cf156bd9ad5d296266ae0f52c2170681d82486ad91e1e9879841a3c672d6842.jpg",
344
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { y } ^ { \\prime } \\sim Q ( \\mathbf { y } ^ { \\prime } | \\mathbf { y } _ { n } ) } \\\\ & { \\alpha = \\operatorname* { m i n } ( 1 , \\frac { p ( \\mathbf { y } ^ { \\prime } ) } { p ( \\mathbf { y } _ { n } ) } \\cdot \\frac { p ( \\mathbf { x } | \\mathbf { y } ^ { \\prime } ) } { p ( \\mathbf { x } | \\mathbf { y } _ { n } ) } ) } \\\\ & { u \\sim \\mathrm { U n i f o r m } ( 0 , 1 ) } \\\\ & { \\mathbf { y } _ { n + 1 } = \\{ \\mathbf { y } ^ { \\prime } \\quad u \\leq \\alpha } \\\\ & { \\mathbf { y } _ { n } + \\mathrm { o t h e r w i s e } . } \\end{array}\n$$",
345
+ "text_format": "latex",
346
+ "bbox": [
347
+ 374,
348
+ 507,
349
+ 622,
350
+ 619
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "113 The proposal distribution $Q ( \\mathbf { y } ^ { \\prime } | \\mathbf { y } )$ is a free parameter of the MH algorithm. In general, choosing $Q$ \n114 to resemble the true posterior as closely as possible improves the efficiency of the MH algorithm. \n115 Therefore, we propose to use the approximate posterior ${ \\hat { p } } ( \\mathbf { y } | \\mathbf { x } )$ of the CVAE itself as the proposal \n116 distribution. Recalling that $\\begin{array} { r } { \\hat { p } ( { \\bf y } | { \\bf x } ) = \\int _ { \\bf z } \\mathrm { d } { \\bf z } \\hat { p } ( { \\bf z } | { \\bf x } ) \\hat { p } ( { \\bf y } | { \\bf z } , { \\bf x } ) : = \\int _ { \\bf z } \\mathrm { d } { \\bf z } E _ { 1 } ( { \\bf z } | { \\bf x } ) D ( { \\bf y } | { \\bf z } , { \\bf x } ) } \\end{array}$ , we let ",
357
+ "bbox": [
358
+ 137,
359
+ 631,
360
+ 826,
361
+ 690
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "equation",
367
+ "img_path": "images/7f3f7ce68d3802c1c1d2bc999963ff691a9cd8ae4c643907d32d48610b9a29f1.jpg",
368
+ "text": "$$\n\\begin{array} { r l r } { { Q ( \\mathbf { y } ^ { \\prime } | \\mathbf { y } _ { n } ) = Q ( \\mathbf { y } ^ { \\prime } ) = \\int _ { \\mathbf { z } } \\mathrm { d } \\mathbf { z } E _ { 1 } ( \\mathbf { z } | \\mathbf { x } ) D ( \\mathbf { y } ^ { \\prime } | \\mathbf { z } , \\mathbf { x } ) } } \\\\ & { } & { \\approx \\frac { 1 } { L _ { \\mathbf { z } } } \\sum _ { i = 1 } ^ { L _ { \\mathbf { z } } } D ( \\mathbf { y } ^ { \\prime } | \\mathbf { z } _ { i } , \\mathbf { x } ) \\quad \\mathrm { w h e r e } \\quad \\mathbf { z } _ { i } \\sim E _ { 1 } ( \\mathbf { z } | \\mathbf { x } ) . } \\end{array}\n$$",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 274,
372
+ 710,
373
+ 723,
374
+ 790
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "117 By choosing this proposal function, we are able to bootstrap pseudo labels $\\widetilde { \\mathbf { y } }$ onto unlabeled data $\\mathbf { x } _ { u }$ . \n118 In particular, we minimize the semi-supervised hybrid loss ",
381
+ "bbox": [
382
+ 137,
383
+ 799,
384
+ 826,
385
+ 829
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/012ef2419901580f1d17eb91b339e7b60685b2360a9c569b0225d401c28be25e.jpg",
392
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\mathrm { h y b r i d } } = \\mathcal { L } _ { \\mathrm { s u p e r } } + \\mathcal { L } _ { \\mathrm { s e l f } } } \\\\ & { \\mathcal { L } _ { \\mathrm { s u p e r } } = \\mathbb { E } _ { ( \\mathbf { x } _ { \\ell } , \\mathbf { y } ) \\sim \\widetilde { p } _ { \\ell } ( \\mathbf { x } , \\mathbf { y } ) } \\left[ \\mathcal { L } ( \\mathbf { x } _ { \\ell } , \\mathbf { y } ) \\right] } \\\\ & { \\quad \\mathcal { L } _ { \\mathrm { s e l f } } = \\mathbb { E } _ { ( \\mathbf { x } _ { u } , \\widetilde { \\mathbf { y } } ) \\sim \\widetilde { p } _ { u } ( \\mathbf { x } , \\widetilde { \\mathbf { y } } ) } \\left[ \\mathcal { L } ( \\mathbf { x } _ { u } , \\widetilde { \\mathbf { y } } ) \\right] } \\end{array}\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 377,
396
+ 853,
397
+ 620,
398
+ 912
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "image",
404
+ "img_path": "images/b3d49121ec203886e2bc9c61ce626fb10e54c05e6823fcb7acd2debb6477c954.jpg",
405
+ "image_caption": [
406
+ "Figure 2: (A) Pseudo label acceptance rate vs. epochs for the MRI datasets $\\widetilde { p } _ { \\ell , 1 } ( \\mathbf { x } )$ and $\\widetilde { p } _ { \\ell , 2 } ( \\mathbf { x } )$ . (B) e eWasserstein distance vs. epochs between empirical label distributions and MCMC with 100 posterior samples, and (C) same as (B) but MCMC with 3000 posterior samples. "
407
+ ],
408
+ "image_footnote": [],
409
+ "bbox": [
410
+ 173,
411
+ 87,
412
+ 825,
413
+ 292
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "119 where $\\widetilde { p } _ { \\ell } ( \\mathbf x , \\mathbf y )$ and $\\widetilde { p } _ { u } ( \\mathbf { x } , \\widetilde { \\mathbf { y } } )$ are the empirical distributions over the pairs of labeled data $\\left( \\mathbf { x } _ { \\ell } , \\mathbf { y } \\right)$ \n120 e e eand unlabeled data with bootstrapped pseudo labels $\\left( \\mathbf { x } _ { u } , \\widetilde { \\mathbf { y } } \\right)$ , respectively. The pseudolabels $\\widetilde { \\mathbf { y } }$ are \n121 initialized uniformly from the prior space $p ( \\mathbf { y } )$ e eand are updated according to the MH algorithm 8 at \n122 each training iteration. \n123 Note that in the MH update step, the MH acceptance ratio $\\alpha$ can be interepreted as computing a \n124 Bayesian goodness of fit check relative to the current label $\\widetilde { \\mathbf { y } } _ { n }$ . Therefore, $\\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ and $\\widetilde { p } _ { u } ( \\mathbf { x } )$ need \n125 e e enot be identical distributions, merely close enough such that decreasing the supervised loss $\\mathcal { L } _ { \\mathrm { s u p e r } }$ \n126 improves the proposal quality for the self-supervised loss $\\mathcal { L } _ { \\mathrm { s e l f } }$ early in training. ",
420
+ "bbox": [
421
+ 142,
422
+ 371,
423
+ 825,
424
+ 428
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "",
431
+ "bbox": [
432
+ 142,
433
+ 433,
434
+ 825,
435
+ 489
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "2.3 MRI physics application ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 161,
445
+ 505,
446
+ 382,
447
+ 520
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "128 We consider an application in magnetic resonance imaging. In MRI, data is typically acquired in \n129 the form of $( 3 + 1 ) \\mathrm { D }$ spatio-temporal grids, with 1D magnetic resonance time signals measured in \n130 each voxel of the three spatial dimensions. Advanced imaging methods typically involve voxelwise \n131 parameter inference for each time signal for the computation of quantitative maps. Modeling the \n132 individual time signals for inference, however, is challenging due to imperfections in the magnetic \n133 field generated by the scanner and other sources of signal corruption. Effectively, in MRI there is a \n134 distributional mismatch problem: simulated data $\\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ , with labels corresponding to well understood \n135 ephysics parameters, does not contain the full distribution of measured data $\\widetilde { p } _ { u } ( \\mathbf { x } )$ which, while \n136 egenerated by the same physics in principle, depends on additional nuissance parameters which cannot \n137 be modeled. Machine learning models which intended to generalize to $\\widetilde { p } _ { u } ( \\mathbf { x } )$ should therefore not be \n138 trained only on data from $\\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ . \n139 In this work, we acquire multi spin-echo (MSE) MRI images. The MSE time signals are modeled \n140 using a two-component extended phase graph (EPG) model using the algorithm detailed in Prasloski \n141 et al. [7]. Using this model, the $j$ -th time point for each signal is given by ",
454
+ "bbox": [
455
+ 140,
456
+ 530,
457
+ 825,
458
+ 683
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "",
465
+ "bbox": [
466
+ 142,
467
+ 688,
468
+ 825,
469
+ 732
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "equation",
475
+ "img_path": "images/5609a94b354038ab54e8f7901d949574d257820178e2a02021cdf4355a3435de.jpg",
476
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { \\widehat { \\mathbf { x } } } _ { j } = f ( j \\cdot \\mathrm { T E } ) } } \\\\ { { \\displaystyle f ( t ) = \\sum _ { \\ell = 1 } ^ { 2 } A _ { \\ell } \\mathrm { E P G } ( t , \\alpha , \\beta , T _ { 2 , \\ell } , T _ { 1 } ) } } \\end{array}\n$$",
477
+ "text_format": "latex",
478
+ "bbox": [
479
+ 375,
480
+ 752,
481
+ 622,
482
+ 818
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "142 where $\\alpha$ is the spin flip angle, $\\beta$ the refocusing control angle, $A _ { 1 } , A _ { 2 }$ the component amplitudes, \n143 $T _ { 2 , 1 } \\leq T _ { 2 , 2 }$ the short and long transverse relaxation times, and $T _ { 1 }$ the longitudinal relaxation time. \n144 The $\\mathrm { E P G } ( t , \\ldots )$ terms are approximately exponentially decaying in $t$ with time constants $T _ { 2 , \\ell }$ , with \n145 additional modifications due to MRI physics determined by $\\alpha$ , $\\beta$ , and $T _ { 1 }$ . The echo time $\\mathrm { T E }$ is the \n146 uniform spacing between time points. We reparameterize $A _ { 1 }$ , $A _ { 2 }$ , $T _ { 2 , 1 }$ , and $T _ { 2 , 2 }$ in terms of the \n147 unconstrained parameters $\\eta , \\delta _ { 1 }$ , and $\\delta _ { 2 }$ as follows: $A _ { 1 } = \\eta$ , $A _ { 2 } = 1 - \\eta$ , $\\log T _ { 2 , 1 } = \\log T _ { 2 , \\mathrm { m i n } } +$ \n148 $( \\log T _ { 2 , \\mathrm { m a x } } - \\log T _ { 2 , \\mathrm { m i n } } ) \\cdot \\delta _ { 1 }$ , and $\\log T _ { 2 , 2 } = \\log T _ { 2 , \\mathrm { m i n } } + \\left( \\log T _ { 2 , \\mathrm { m a x } } - \\log T _ { 2 , \\mathrm { m i n } } \\right) \\cdot \\left( \\delta _ { 1 } + \\delta _ { 2 } \\cdot \\left( 1 - \\delta _ { 1 } \\right) \\right)$ , \n149 where $T _ { \\mathrm { 2 , m i n } } = 1 0 \\mathrm { m s }$ and $T _ { \\mathrm { 2 , m a x } } = 1 \\mathrm { s }$ . The longitudinal relaxation time is fixed $T _ { 1 } = 1 . 0 \\mathrm { s }$ . \n150 MRI signal noise can be modeled as Rician [8, 9]. Given data $\\mathbf { x }$ normalized to have maximum value \n151 1, the likelihood $p ( \\mathbf { x } | \\mathbf { y } )$ under Rician noise is given by ",
489
+ "bbox": [
490
+ 142,
491
+ 827,
492
+ 825,
493
+ 912
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "",
500
+ "bbox": [
501
+ 148,
502
+ 90,
503
+ 826,
504
+ 121
505
+ ],
506
+ "page_idx": 5
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "",
511
+ "bbox": [
512
+ 143,
513
+ 125,
514
+ 825,
515
+ 155
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "equation",
521
+ "img_path": "images/68a06daa9614863c6edd46b091664a8e1fc20b60df209bae753b84c8b50a8a2f.jpg",
522
+ "text": "$$\n\\begin{array} { r l } & { \\log p ( { \\bf x } | { \\bf y } ) = \\displaystyle \\sum _ { j = 1 } ^ { N _ { \\bf x } } \\log p _ { \\mathrm { R i c e } } \\left( { \\bf x } _ { j } ~ \\middle | \\frac { { \\boldsymbol s } \\cdot \\hat { \\bf x } ( \\boldsymbol \\theta ) _ { j } } { \\operatorname* { m a x } _ { \\boldsymbol k } \\hat { \\bf x } ( \\boldsymbol \\theta ) _ { k } } ~ , ~ { \\boldsymbol s } \\cdot { \\boldsymbol \\epsilon } \\right) , } \\\\ & { p _ { \\mathrm { R i c e } } ( \\boldsymbol { \\xi } | \\nu , \\sigma ) = \\displaystyle \\frac { \\boldsymbol { \\xi } } { \\sigma ^ { 2 } } \\exp \\left( - \\frac { \\boldsymbol { \\xi } ^ { 2 } + \\nu ^ { 2 } } { 2 \\sigma ^ { 2 } } \\right) I _ { 0 } \\left( \\frac { \\boldsymbol { \\xi } \\nu } { \\sigma ^ { 2 } } \\right) } \\end{array}\n$$",
523
+ "text_format": "latex",
524
+ "bbox": [
525
+ 346,
526
+ 179,
527
+ 722,
528
+ 262
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "152 is the Rician probability density function with location parameter $\\nu$ and scale parameter $\\sigma ; I _ { 0 }$ is \n153 the modified Bessel function of the first kind with order zero. We have introduced two additional \n154 parameters: a scale parameter $s$ to account for signal normalization, and a noise level $\\epsilon$ relative to this \n155 scale. Additionally, we denote $\\theta = \\left( \\alpha , \\beta , \\eta , \\delta _ { 1 } , \\delta _ { 2 } \\right)$ the parameters of the EPG model 14. \n156 In total, there are 7 labels to be inferred: $\\mathbf { y } = ( \\alpha , \\beta , \\eta , \\delta _ { 1 } , \\delta _ { 2 } , \\log \\epsilon , \\log s )$ . We place the following \n157 priors on the parameters: ",
535
+ "bbox": [
536
+ 140,
537
+ 272,
538
+ 825,
539
+ 329
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "",
546
+ "bbox": [
547
+ 140,
548
+ 334,
549
+ 826,
550
+ 363
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "equation",
556
+ "img_path": "images/90b6b3d26980558b7e286d6abd3e5fddd1cc52f96c8dd7e80da1b03038197f85.jpg",
557
+ "text": "$$\n\\begin{array} { c c } { { \\begin{array} { l } { \\alpha \\sim { \\mathcal { T N } } ( 1 8 0 ^ { \\circ } , 4 5 ^ { \\circ } , 9 0 ^ { \\circ } , 1 8 0 ^ { \\circ } ) } \\\\ { \\beta \\sim { \\mathcal { T N } } ( 1 8 0 ^ { \\circ } , 4 5 ^ { \\circ } , 9 0 ^ { \\circ } , 1 8 0 ^ { \\circ } ) } \\\\ { \\eta \\sim { \\mathcal { T N } } ( 0 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \\\\ { \\delta _ { 1 } \\sim { \\mathcal { T N } } ( 0 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \\end{array} } } & { { \\begin{array} { r } { \\delta _ { 2 } \\sim { \\mathcal { T N } } ( 1 . 0 , 0 . 5 , 0 . 0 , 1 . 0 ) } \\\\ { \\log \\epsilon \\sim { \\mathcal { U } } ( \\log 1 0 ^ { - 5 } , \\log 1 0 ^ { - 1 } ) } \\\\ { \\log s \\sim { \\mathcal { T N } } ( 0 . 0 , 0 . 5 , - 2 . 5 , 2 . 5 ) } \\end{array} } } \\end{array}\n$$",
558
+ "text_format": "latex",
559
+ "bbox": [
560
+ 248,
561
+ 386,
562
+ 741,
563
+ 459
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "158 where $\\mathcal { T N } ( \\mu , \\sigma , a , b )$ is the normal distribution with parameters $( \\mu , \\sigma )$ truncated to the interval $[ a , b ]$ , \n159 and $\\boldsymbol { \\mathcal { U } } ( a , b )$ is the uniform distribution on $[ a , b ]$ . The priors were chosen to align with the expectations \n160 that: $\\alpha , \\beta$ are typically near $1 8 0 ^ { \\circ }$ ; the short component amplitude $\\eta$ is typically less than the long \n161 amplitude $1 - \\eta ; \\delta _ { 1 }$ and $\\delta _ { 2 }$ should prefer to represent the shortest and longest components; the noise \n162 level $\\epsilon$ is chosen uniformly from signal-to-noise ratios between 20 and 100; the scale parameter $s$ \n163 should prefer to be 1. ",
570
+ "bbox": [
571
+ 140,
572
+ 472,
573
+ 826,
574
+ 555
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "3 Experiments ",
581
+ "text_level": 1,
582
+ "bbox": [
583
+ 161,
584
+ 575,
585
+ 312,
586
+ 592
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "3.1 Data sets ",
593
+ "text_level": 1,
594
+ "bbox": [
595
+ 173,
596
+ 606,
597
+ 276,
598
+ 621
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "166 MRI data The MRI data used for this study consists of two anonymized brain scans acquired using \n167 a Carr-Purcell-Meiboom-Gill (CPMG) [10, 11] multi spin-echo sequence [12]. The first data set, \n168 denoted $\\widetilde { p } _ { u , 1 } ( \\mathbf { x } )$ , contains signals with $N _ { \\mathbf { x } , 1 } = 4 8$ samples at times $t _ { i } = i \\cdot \\mathrm { T E }$ , with echo spacing \n169 $\\mathrm { T E } = 8 \\mathrm { m s }$ , repetition time $\\mathrm { T R } = 1 0 7 3 \\mathrm { m }$ s, matrix size $2 4 0 \\times 2 4 0 \\times 4 8$ , and spatial resolution \n170 $0 . 9 6 \\times 0 . 9 6 \\times 2 . 5 \\mathrm { m m ^ { 3 } }$ . The second data set, denoted $\\widetilde { p } _ { u , 2 } ( \\mathbf { x } )$ , contains signals with $N _ { \\mathbf { x } , 2 } = 5 6$ \n171 samples at times $t _ { i } = i \\cdot \\mathrm { T E }$ , with echo spacing $\\mathrm { T E } = 7 \\mathrm { m s }$ , repetition time $\\mathrm { T R } = 1 0 6 6 \\mathrm { m s } .$ \n172 matrix size $2 4 0 \\times 2 4 0 \\times 1 1 3$ , and spatial resolution $1 . 0 \\times 1 . 0 \\times 3 . 0 \\mathrm { { \\dot { m } m } ^ { 3 } }$ . Following the extraction \n173 of image volumes containing the brain, $\\widetilde { p } _ { u , 1 } ( \\mathbf { x } )$ and $\\widetilde { p } _ { u , 2 } ( \\mathbf { x } )$ contain 821 145 and 1 265 306 signals, \n174 erespectively. MRI data was acquired on a $3 \\mathrm { T }$ eMR system (Ingenia Elition, Philips Medical Systems, \n175 Best, The Netherlands) from healthy volunteers giving written and informed consent, and approved \n176 by our university ethics board. \n177 Simulated data Using the EPG physics model 14 with Rician noise, we consider two simulated \n178 data sets. First, the labeled data set $\\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ which is generated on demand during training using labels \n179 $\\mathbf { y } \\sim p ( \\mathbf { y } )$ e drawn from the prior distributions 17. Second, a precomputed simulated data set $\\widetilde { p } _ { u , 3 } ( \\mathbf { x } )$ \n180 eused for validation of the method, where the labels are held out during training. All simulated signals \n181 are generated with $N _ { \\mathbf { x } , 3 } = 6 4$ samples and $\\mathrm { T E } = 1 0 \\mathrm { m s }$ . \n182 MCMC data MCMC is performed using the No-U-Turn Sampler [13] algorithm to generate \n183 posterior samples $\\hat { \\mathbf { y } } \\sim p ( \\mathbf { y } | \\mathbf { x } _ { u } )$ which can be compared with the (Metropolis-)CVAE posterior \n184 samples. MCMC was performed twice: once to draw 100 posterior samples for every time signal in \n185 $\\widetilde { p } _ { u , 1 } ( \\mathbf { x } )$ , $\\widetilde { p } _ { u , 2 } ( \\mathbf { x } )$ , and $\\bar { \\widetilde { p } } _ { u , 3 } ( { \\bf x } )$ , and once to draw 3000 posterior samples for a subset of 5000 signals \n186 e e efrom the training, validation, and testing partitions of all three data sets. In total, performing the \n187 above MCMC analysis took approximately $7 2 \\mathrm { h }$ using an AMD Ryzen 9 3950X 16-Core CPU. ",
605
+ "bbox": [
606
+ 147,
607
+ 631,
608
+ 826,
609
+ 784
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "",
616
+ "bbox": [
617
+ 142,
618
+ 797,
619
+ 825,
620
+ 868
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "",
627
+ "bbox": [
628
+ 145,
629
+ 882,
630
+ 825,
631
+ 912
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/9b33f26f0cc59901628e3fadea310d4a50d7248c7e97428a7324e60c3f9b4790.jpg",
638
+ "image_caption": [
639
+ "Figure 3: (A-G) Histograms of Wasserstein distances between (Metropolis-)CVAE and MCMC empirical distributions for the two MRI data sets. Histograms of errors between the means of the empirical distributions and the true labels are shown. (H) Quantile-quantile plot for each label between global empirical distributions of CVAE samples and MCMC samples. In all plots, comparison with MCMC with 100 samples and 3000 samples are shown in red and green, respectively; CVAE trained only on simulated data is shown in dashed lines; Metropolis-CVAE shown in solid lines. "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 171,
644
+ 85,
645
+ 826,
646
+ 404
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "",
653
+ "bbox": [
654
+ 140,
655
+ 539,
656
+ 825,
657
+ 595
658
+ ],
659
+ "page_idx": 6
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "188 3.2 Model architecture ",
664
+ "text_level": 1,
665
+ "bbox": [
666
+ 147,
667
+ 628,
668
+ 346,
669
+ 643
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "189 CVAE components Let $\\mathbf { x } \\in \\mathbb { R } ^ { N _ { \\mathbf { x } } }$ , $\\mathbf { y } \\in \\mathbb { R } ^ { N _ { \\mathbf { y } } }$ , and $\\mathbf { z } \\in \\mathbb { R } ^ { N _ { \\mathbf { z } } }$ be input data, corresponding labels, \n190 and latent space samples, respectively. The encoders $E _ { 1 }$ and $E _ { 2 }$ are chosen to be multivariate normal \n191 distributions: $E _ { 1 } ( \\mathbf { z } | \\mathbf { \\bar { x } } ) = \\bar { \\mathcal { N } } ( \\mu _ { \\mathbf { z } _ { 1 } } , \\bar { \\mathcal { \\sigma } _ { \\mathbf { z } _ { 1 } } } )$ and $E _ { 2 } ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } ) = \\mathcal { N } ( \\mu _ { \\mathbf { z } _ { 2 } } , \\sigma _ { \\mathbf { z } _ { 2 } } )$ , where $\\mu _ { \\mathbf { z } _ { 1 } } , \\mu _ { \\mathbf { z } _ { 2 } } \\in \\mathbb { R } ^ { N _ { \\mathbf { z } } }$ and \n192 $\\sigma _ { \\mathbf { z } _ { 1 } } , \\sigma _ { \\mathbf { z } _ { 2 } } \\in \\mathbb { R } _ { + } ^ { N _ { \\mathbf { z } } }$ . Similarly, the decoder is given by $D ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } ) = \\mathscr { T N } ( \\mu _ { \\mathbf { y } } , \\sigma _ { \\mathbf { y } } , 0 , 1 )$ , where $\\mu _ { \\mathbf { y } } \\in \\mathbb { R } ^ { N _ { \\mathbf { y } } }$ \n193 and $\\boldsymbol { \\sigma _ { \\mathbf { y } } } \\in \\mathbb { R } _ { + } ^ { N _ { \\mathbf { y } } }$ parameterize independent multivariate normal distributions truncated to [0, 1]. The \n194 labels $\\mathbf { y }$ are scaled linearly from the prior domains 17 to $[ 0 , 1 ] ^ { N _ { \\mathbf { y } } }$ in order to better condition the \n195 network during training. Similarly, as we are interested only in the relative $\\mathbf { x }$ values and not their \n196 absolute scale, inputs $\\mathbf { x }$ are normalized to $[ 0 , 1 ] ^ { N _ { \\mathbf { x } } }$ . \n197 Each of the $E _ { 1 }$ , $E _ { 2 }$ , and $D$ networks are composed of fully connected layers with ReLU activation \n198 functions and $H = 2$ hidden layers, with hidden dimension $N _ { H } = 5 1 2$ , for a total of $H + 2 = 4$ \n199 layers. The dimensions of the data, labels, and latent space are $N _ { \\mathbf { x } } = 6 4$ , $N _ { \\mathbf { y } } = 7$ , and $N _ { \\mathbf { z } } = 1 2$ , \n200 respectively. The encoder networks output $\\mu _ { \\mathbf { z } _ { 1 } }$ , $\\log \\sigma _ { \\mathbf { z } _ { 1 } }$ , $\\mu _ { \\mathbf { z } _ { 2 } }$ , and $\\log \\sigma _ { \\mathbf { z } _ { 2 } }$ vectors. In order to avoid \n201 latent space collapse during early training stages – that is, one or both of $\\vert \\mu _ { \\mathbf { z } _ { i } } \\vert , \\vert \\log \\sigma _ { \\mathbf { z } _ { i } } \\vert \\infty -$ \n202 each $\\mu _ { \\mathbf { z } _ { i } }$ was bounded to $( - 3 , 3 )$ using the activation function $x 3 \\operatorname { t a n h } ( x )$ , and each $\\log \\sigma _ { \\mathbf { z } _ { i } }$ was \n203 bounded to $( - 6 , 0 )$ using the activation function $x 3 \\operatorname { t a n h } ( x ) - 3$ . These bounds were determined \n204 by observing empirical $\\mu _ { \\mathbf { z } _ { i } }$ and $\\log \\sigma _ { \\mathbf { z } _ { i } }$ values and choosing intervals which clipped only the tails of \n205 the distributions. The decoder network outputs $\\mu _ { \\mathbf { y } }$ and $\\log \\sigma _ { \\mathbf { y } }$ vectors without further nonlinearities. \n206 Loss functions The terms $\\mathcal { L } _ { \\mathrm { s u p e r } }$ and $\\mathcal { L } _ { \\mathrm { s e l f } }$ in Equation 11 are identical apart from their inputs, \n207 with each term consisting of the KL-divergence and evidence lower bound (ELBO) terms from the \n208 variational lower bound of Equation 1. The KL-divergence can be computed in closed closed-form, \n209 and is given by ",
676
+ "bbox": [
677
+ 140,
678
+ 659,
679
+ 825,
680
+ 781
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "",
687
+ "bbox": [
688
+ 140,
689
+ 786,
690
+ 826,
691
+ 912
692
+ ],
693
+ "page_idx": 6
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "",
698
+ "bbox": [
699
+ 142,
700
+ 90,
701
+ 825,
702
+ 148
703
+ ],
704
+ "page_idx": 7
705
+ },
706
+ {
707
+ "type": "equation",
708
+ "img_path": "images/e36776ec31eb8b8d1d58361f7e9e1415ed89561280f9ece3bd3bc0340376b7a3.jpg",
709
+ "text": "$$\n\\displaystyle \\mathrm { K L } \\left( E _ { 2 } ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } ) \\left| \\right| E _ { 1 } ( \\mathbf { z } | \\mathbf { x } ) \\right) = \\sum _ { j = 1 } ^ { N _ { \\mathbf { z } } } \\frac { \\sigma _ { \\mathbf { z } _ { 2 } , j } ^ { 2 } + ( \\mu _ { \\mathbf { z } _ { 2 } , j } - \\mu _ { \\mathbf { z } _ { 1 } , j } ) ^ { 2 } } { 2 \\sigma _ { \\mathbf { z } _ { 1 } , j } ^ { 2 } } + \\log \\frac { \\sigma _ { \\mathbf { z } _ { 1 } , j } } { \\sigma _ { \\mathbf { z } _ { 2 } , j } } - \\frac { 1 } { 2 }\n$$",
710
+ "text_format": "latex",
711
+ "bbox": [
712
+ 243,
713
+ 171,
714
+ 754,
715
+ 217
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "210 Following sampling $\\mathbf { z } _ { 2 } \\sim E _ { 2 } ( \\mathbf { z } | \\mathbf { x } , \\mathbf { y } )$ and subsequently computing $( \\mu _ { \\mathbf { y } } , \\log \\sigma _ { \\mathbf { y } } ) = D ( \\mathbf { y } | \\mathbf { x } , \\mathbf { z } _ { 2 } )$ , the \n211 ELBO component is approximated as ",
722
+ "bbox": [
723
+ 138,
724
+ 229,
725
+ 825,
726
+ 260
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "equation",
732
+ "img_path": "images/647a67370d86aefde32f956a11a08128b6c5eea1f20953a4acf8c9379477c6aa.jpg",
733
+ "text": "$$\n\\begin{array} { r l } { \\displaystyle \\mathbb { E } _ { E _ { 2 } ( { \\mathbf z } | { \\mathbf x } , { \\mathbf y } ) } \\left[ \\log D ( \\mathbf { y } | { \\mathbf x } , { \\mathbf z } ) \\right] \\approx _ { j = 1 } ^ { N _ { y } } \\Bigg \\{ } & { } \\\\ { \\displaystyle \\log \\phi \\left( \\frac { \\mathbf { y } _ { j } - \\mu _ { { \\mathbf y } , j } } { \\sigma _ { { \\mathbf y } , j } } \\right) - \\log \\left( \\Phi \\left( \\frac { 1 - \\mu _ { { \\mathbf y } , j } } { \\sigma _ { { \\mathbf y } , j } } \\right) - \\Phi \\left( \\frac { 0 - \\mu _ { { \\mathbf y } , j } } { \\sigma _ { { \\mathbf y } , j } } \\right) \\right) - \\log \\sigma _ { { \\mathbf y } , j } \\Bigg \\} } & { } \\\\ { \\displaystyle \\mathrm { w h e r e } \\quad } & { \\phi ( \\xi ) = \\frac { 1 } { \\sqrt { 2 \\pi } } \\exp \\left( - \\frac { 1 } { 2 } \\xi ^ { 2 } \\right) } \\\\ & { \\displaystyle \\Phi ( \\zeta ) = \\frac { 1 } { 2 } \\left( 1 + \\mathrm { e r f } \\left( \\frac { \\zeta } { \\sqrt { 2 } } \\right) \\right) . } \\end{array}\n$$",
734
+ "text_format": "latex",
735
+ "bbox": [
736
+ 212,
737
+ 284,
738
+ 758,
739
+ 445
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "$\\phi ( \\xi )$ and $\\Phi ( \\zeta )$ are the probability density and cumulative distribution functions of the standard normal distribution, respectively. Note that each term in the sum of Equation 19 is the log-likelihood of a normal distribution with parameters $( \\mu _ { \\mathbf { y } , i } , \\sigma _ { \\mathbf { y } , i } )$ truncated to the unit interval [0, 1]. ",
746
+ "bbox": [
747
+ 158,
748
+ 455,
749
+ 823,
750
+ 500
751
+ ],
752
+ "page_idx": 7
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "3.3 Training ",
757
+ "text_level": 1,
758
+ "bbox": [
759
+ 173,
760
+ 515,
761
+ 274,
762
+ 530
763
+ ],
764
+ "page_idx": 7
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "All data sets were split into training/validation/testing with proportions $5 0 \\% / 2 5 \\% / 2 5 \\%$ . Input data was padded with zeros to length $N _ { \\mathbf { x } } = 6 4$ , if necessary. To support data with differing unpadded lengths, random masking was performed during training: for each x, a random integer $j _ { \\mathrm { m a s k } }$ was sampled from 32–64 and all elements $\\mathbf { x } _ { j } { > } j _ { \\mathrm { m a s k } }$ were set to zero. The ADAM optimizer was used with√ an initial learning rate of $1 0 ^ { - 4 }$ . The learning rate was decreased every 1000 epochs by a factor of $\\sqrt { 1 0 }$ Training was completed after 5000 epochs, where an epoch is defined as 100 iterations. Each iteration, a batch of 1024 data and (pseudo-)label pairs are drawn from either a labeled or an unlabeled dataset, with equal probability. If labeled data are sampled, the loss component $\\mathcal { L } _ { \\mathrm { s u p e r } } ( \\mathbf { x } _ { \\ell } , \\mathbf { y } )$ is descended on. If unlabeled data are sampled, the pseudo labels $\\widetilde { \\mathbf { y } }$ corresponding to the sampled $\\mathbf { x } _ { u }$ are updated eusing Equation 8 before descending on the loss component $\\bar { \\mathcal { L } } _ { \\mathrm { s e l f } } ( \\mathbf { x } _ { u } , \\widetilde { \\mathbf { y } } )$ . In the Metropolis-Hastings update step, we set $L _ { c } = 1$ in equation 7 and $L _ { \\mathbf { z } } = 1$ ein equation 9. Training was performed on a single Nvidia GeForce RTX 3080 GPU with 10 GB of VRAM; approximately 15 hours was required to train for 5000 epochs. ",
769
+ "bbox": [
770
+ 163,
771
+ 540,
772
+ 825,
773
+ 723
774
+ ],
775
+ "page_idx": 7
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "229 4 Results and discussion ",
780
+ "text_level": 1,
781
+ "bbox": [
782
+ 150,
783
+ 741,
784
+ 392,
785
+ 758
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "In the first experiment, a Metropolis-CVAE is trained on online simulated labeled data $\\mathbf { x } _ { \\ell } \\sim \\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ as well as precomputed simulated data $\\mathbf { x } _ { u } \\sim \\widetilde { p } _ { u , 3 } ( \\mathbf { x } )$ with labels held out during training. Figure 1(A-G) eshows the distributions of prediction errors by the trained network for each label. For each method, the prediction error is defined as the difference between the true label and the mean of the posterior samples. The labels have been normalized to [0, 1]. The histograms for the Metropolis-CVAE with 100 posterior samples are more tightly clustered around zero than MCMC with either 100 or 3000 posterior samples – denoted MCMC-100 and MCMC-3000 – in all cases except for one (Figure 1F). Figure 1H shows a $p { - } p$ plot: the fraction of posterior samples greater than or equal to the true label, $p$ is plotted against the cumulative distribution of $p$ -values across the data set; the Metropolis-CVAE produces similar curves as MCMC-3000. ",
792
+ "bbox": [
793
+ 165,
794
+ 772,
795
+ 825,
796
+ 911
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "240 In the second experiment, a Metropolis-CVAE is similarly trained using labeled simulated $\\mathbf { x } _ { \\ell } \\sim \\widetilde { p } _ { \\ell } ( \\mathbf { x } )$ , \n241 but now with the unlabeled data $\\mathbf { x } _ { u }$ drawn from the MRI data sets $\\widetilde { p } _ { u , 1 } ( \\mathbf { x } )$ and $\\widetilde { p } _ { u , 2 } ( \\mathbf { x } )$ e. For \n242 e ecomparison, a second traditional CVAE is trained on the simulated data only. Figure 2A shows the \n243 acceptance rate of the proposed pseudo labels $\\widetilde { \\mathbf { y } } ^ { \\prime } \\sim Q ( \\mathbf { y } ^ { \\prime } )$ for each data set during training. As the \n244 eMetropolis-CVAE continually learns from both data sets, we find that the network quickly enters \n245 a negative feedback loop in which the acceptance rate continually increases throughout training. \n246 Noteworthy is that the acceptance rate of $\\widetilde { \\mathbf { y } }$ converges to a value between 0.6 and 0.7 for both datasets. \n247 eThe default target acceptance rate of the No-U-Turn sampler is 0.65, a value which originates from \n248 a theoretical result pertaining to Hamiltonian Monte Carlo (HMC) [14]. Theoretical work would \n249 be required to demonstrate a direct connection between Metropolis-CVAEs and the HMC result. \n250 However, this illustrates that the network neither accepts nor rejects more proposals than is typically \n251 desired. Figure 2(B-C) shows the average Wasserstein distance between empirical label distributions \n252 from the Metropolis-CVAE with MCMC-100 and MCMC-3000, respectively. During training, the \n253 Metropolis-CVAE quickly reaches minimum Wasserstein distances with respect to MCMC-100. \n254 Minima are reached with respect to MCMC-3000 similarly quickly. We can extrapolate from this \n255 result that the Metropolis-CVAE likely produces higher quality posterior samples than MCMC-3000. \n256 This may be expected, as the Metropolis-CVAE updates its pseudo labels at every training iteration, \n257 continuously performing MCMC throughout training using the MH update rule 8. \n258 Figure 3(A-G) compares the empirical distributions of a traditional CVAE trained only on simulated \n259 data with a Metropolis-CVAE. Histograms of the Wasserstein distances between the two networks and \n260 MCMC-100 do not show large differences, due to the low-quality of MCMC-100. Compared with \n261 MCMC-3000, parameters which are traditionally easier to infer, such as $\\alpha$ and $\\beta$ , show little difference \n262 between the networks. The CVAE trained on supervised data alone shows significant deviation from \n263 MCMC-3000 for several parameters, particularly $\\eta$ , $\\delta _ { 1 }$ , and $\\log \\epsilon$ . This illustrates the ability of the \n264 Metropolis-CVAE to generalize well to the unlabeled test data, as unlabeled training data from $\\widetilde { p } _ { u } ( \\mathbf { x } )$ \n265 ehas been explicitly incorporated into its training process. Figure 3(H) shows quantile-quantile plots \n266 for distributions of all label samples across the data sets. All methods agree. \n267 Limitations A limitation of this method is the requirement of a likelihood function which is fast to \n268 compute in order to perform the Metropolis-Hastings update step 8. For physics models, computing \n269 the likelihood of a set of parameters often involves costly forward simulations of complex models. \n270 Therefore, computationally intensive models which require solving non-trivial integral or differential \n271 equations will not be suitable. \n272 Another limitation is that the pseudo label sampling procedure may converge to a stable local \n273 minimum which is far from the globally optimal labels. This is inherent to the MH update step; while \n274 MCMC methods often provide convergence guarantees in the limit of large numbers of update steps, \n275 one can not predict how many update steps this will require in practice. However, by training the \n276 Metropolis-CVAE on both simulated data generated from the prior space as well as real unlabeled \n277 data, we have not found this to be a practical concern. ",
803
+ "bbox": [
804
+ 138,
805
+ 90,
806
+ 826,
807
+ 340
808
+ ],
809
+ "page_idx": 8
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "",
814
+ "bbox": [
815
+ 138,
816
+ 345,
817
+ 825,
818
+ 470
819
+ ],
820
+ "page_idx": 8
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "",
825
+ "bbox": [
826
+ 140,
827
+ 486,
828
+ 825,
829
+ 554
830
+ ],
831
+ "page_idx": 8
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "",
836
+ "bbox": [
837
+ 140,
838
+ 561,
839
+ 825,
840
+ 645
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Potential negative societal impacts This work describes a framework for ascribing labels to unlabeled data. Potential malicious and unintended uses could occur if this framework were significantly extended beyond the MRI physics inference problem which we considered. For example, this methodology could be used to infer missing data generally, with the inferred data then presented under the pretense that it were true data. Further, we have not shown that our method of data inference for unlabeled data is inherently fair, nor that the clinical MRI data under which the Metropolis-CVAE model is trained on cannot be recovered from the network weights. ",
847
+ "bbox": [
848
+ 161,
849
+ 659,
850
+ 825,
851
+ 756
852
+ ],
853
+ "page_idx": 8
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "285 References \n286 [1] Udo von Toussaint. Bayesian inference in physics. Reviews of Modern Physics, 83(3):943–999, \n287 September 2011. doi: 10.1103/RevModPhys.83.943. URL https://link.aps.org/doi/ \n288 10.1103/RevModPhys.83.943. Publisher: American Physical Society. \n289 [2] Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning Structured Output Representation \n290 using Deep Conditional Generative Models. In C. Cortes, N. Lawrence, D. Lee, M. Sugiyama, \n291 and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 28. Curran \n292 Associates, Inc., December 2015. URL https://proceedings.neurips.cc/paper/2015/ \n293 file/8d55a249e6baa5c06772297520da2051-Paper.pdf. \n294 [3] Diederik P. Kingma, Danilo J. Rezende, Shakir Mohamed, and Max Welling. Semi-Supervised \n295 Learning with Deep Generative Models. arXiv:1406.5298 [cs, stat], October 2014. URL \n296 http://arxiv.org/abs/1406.5298. arXiv: 1406.5298. \n297 [4] Hunter Gabbard, Chris Messenger, Ik Siong Heng, Francesco Tonolini, and Roderick \n298 Murray-Smith. Bayesian parameter estimation using conditional variational autoencoders \n299 for gravitational-wave astronomy. arXiv:1909.06296 [astro-ph, physics:gr-qc], September \n300 2019. URL http://arxiv.org/abs/1909.06296. arXiv: 1909.06296. \n301 [5] Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and \n302 Edward Teller. Equation of State Calculations by Fast Computing Machines. The Journal of \n303 Chemical Physics, 21(6):1087–1092, June 1953. ISSN 0021-9606. doi: 10.1063/1.1699114. \n304 URL https://aip.scitation.org/doi/10.1063/1.1699114. Publisher: American In \n305 stitute of Physics. \n306 [6] W. K. Hastings. Monte Carlo sampling methods using Markov chains and their applications. \n307 Biometrika, 57(1):97–109, April 1970. ISSN 0006-3444. doi: 10.1093/biomet/57.1.97. URL \n308 https://doi.org/10.1093/biomet/57.1.97. \n309 [7] Thomas Prasloski, Burkhard Mädler, Qing-San Xiang, Alex MacKay, and Craig Jones. \n310 Applications of stimulated echo correction to multicomponent T2 analysis. Magnetic \n311 Resonance in Medicine, 67(6):1803–1814, 2012. ISSN 1522-2594. doi: 10.1002/ \n312 mrm.23157. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/mrm.23157. \n313 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/mrm.23157. \n314 [8] S. O. Rice. Mathematical Analysis of Random Noise. Bell System Technical Journal, 23(3): \n315 282–332, 1944. ISSN 1538-7305. doi: 10.1002/j.1538-7305.1944.tb00874.x. URL https: \n316 //onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1944.tb00874.x. \n317 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1944.tb00874.x. \n318 [9] S. O. Rice. Mathematical Analysis of Random Noise. Bell System Technical Journal, 24(1): \n319 46–156, 1945. ISSN 1538-7305. doi: 10.1002/j.1538-7305.1945.tb00453.x. URL https: \n320 //onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1945.tb00453.x. \n321 _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1945.tb00453.x. \n322 [10] H. Y. Carr and E. M. Purcell. Effects of Diffusion on Free Precession in Nuclear Magnetic \n323 Resonance Experiments. Physical Review, 94(3):630–638, May 1954. doi: 10.1103/PhysRev.94. \n324 630. URL https://link.aps.org/doi/10.1103/PhysRev.94.630. Publisher: American \n325 Physical Society. \n326 [11] S. Meiboom and D. Gill. Modified Spin-Echo Method for Measuring Nuclear Relaxation \n327 Times. Review of Scientific Instruments, 29(8):688–691, August 1958. ISSN 0034-6748. doi: \n328 10.1063/1.1716296. URL https://aip.scitation.org/doi/abs/10.1063/1.1716296. \n329 Publisher: American Institute of Physics. \n330 [12] Kenneth P. Whittall, Alex L. Mackay, Douglas A. Graeb, Robert A. Nugent, David K. B. \n331 Li, and Donald W. Paty. In vivo measurement of T2 distributions and water contents in \n332 normal human brain. Magnetic Resonance in Medicine, 37(1):34–43, 1997. ISSN 1522-2594. \n333 doi: 10.1002/mrm.1910370107. URL https://onlinelibrary.wiley.com/doi/abs/10. \n334 1002/mrm.1910370107. ",
858
+ "bbox": [
859
+ 143,
860
+ 65,
861
+ 828,
862
+ 916
863
+ ],
864
+ "page_idx": 9
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "35 [13] Matthew D Hoffman and Andrew Gelman. The No-U-Turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. J. Mach. Learn. Res., 15(1):1593–1623, 2014. ",
869
+ "bbox": [
870
+ 150,
871
+ 90,
872
+ 825,
873
+ 119
874
+ ],
875
+ "page_idx": 10
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "[14] Alexandros Beskos, Natesh Pillai, Gareth Roberts, Jesus-Maria Sanz-Serna, and Andrew Stuart. Optimal tuning of the hybrid Monte Carlo algorithm. Bernoulli, 19 (5A):1501–1534, November 2013. ISSN 1350-7265. doi: 10.3150/12-BEJ414. URL https://projecteuclid.org/journals/bernoulli/volume-19/issue-5A/ Optimal-tuning-of-the-hybrid-Monte-Carlo-algorithm/10.3150/12-BEJ414. full. Publisher: Bernoulli Society for Mathematical Statistics and Probability. ",
880
+ "bbox": [
881
+ 176,
882
+ 130,
883
+ 825,
884
+ 214
885
+ ],
886
+ "page_idx": 10
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Checklist ",
891
+ "text_level": 1,
892
+ "bbox": [
893
+ 142,
894
+ 239,
895
+ 254,
896
+ 256
897
+ ],
898
+ "page_idx": 10
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "1. For all authors... ",
903
+ "bbox": [
904
+ 214,
905
+ 267,
906
+ 339,
907
+ 281
908
+ ],
909
+ "page_idx": 10
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See the Limitations paragraph of the Results and discussion section. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See the Potential negative societal impacts paragraph of the Results and discussion section. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
914
+ "bbox": [
915
+ 238,
916
+ 286,
917
+ 825,
918
+ 406
919
+ ],
920
+ "page_idx": 10
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "2. If you are including theoretical results... ",
925
+ "bbox": [
926
+ 214,
927
+ 410,
928
+ 493,
929
+ 425
930
+ ],
931
+ "page_idx": 10
932
+ },
933
+ {
934
+ "type": "text",
935
+ "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] ",
936
+ "bbox": [
937
+ 236,
938
+ 429,
939
+ 738,
940
+ 460
941
+ ],
942
+ "page_idx": 10
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "3. If you ran experiments... ",
947
+ "bbox": [
948
+ 214,
949
+ 465,
950
+ 393,
951
+ 479
952
+ ],
953
+ "page_idx": 10
954
+ },
955
+ {
956
+ "type": "text",
957
+ "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] Code to reproduce the main results is included with the supplemental material. The MRI data cannot be included, as it is medical data. However, the simulated data is provided in the supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See the Training subsection of the Experiments section. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We provide entire histograms of relevant error metrics; see Figures 1 and 3. \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] See the MCMC data paragraph of the Data sets subsection of the Experiments section, as well as the Training subsection of the Experiments section. ",
958
+ "bbox": [
959
+ 238,
960
+ 484,
961
+ 825,
962
+ 685
963
+ ],
964
+ "page_idx": 10
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
969
+ "bbox": [
970
+ 217,
971
+ 690,
972
+ 823,
973
+ 705
974
+ ],
975
+ "page_idx": 10
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] The trained models are supplied in the supplemental material. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] See the MRI data paragraph of the Data sets subsection of the Experiments section. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] The MRI data used in this work is anonymized; see the MRI data paragraph of the Data sets subsection of the Experiments section. ",
980
+ "bbox": [
981
+ 238,
982
+ 709,
983
+ 825,
984
+ 859
985
+ ],
986
+ "page_idx": 10
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
991
+ "bbox": [
992
+ 214,
993
+ 863,
994
+ 705,
995
+ 878
996
+ ],
997
+ "page_idx": 10
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [No] This was a prospective study; this information was not available. ",
1002
+ "bbox": [
1003
+ 236,
1004
+ 883,
1005
+ 828,
1006
+ 911
1007
+ ],
1008
+ "page_idx": 10
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "385 (b) Did you describe any potential participant risks, with links to Institutional Review \n386 Board (IRB) approvals, if applicable? [Yes] These MRI scans were acquired with \n387 approval from our university ethics board; see the MRI data paragraph of the Data sets \n388 subsection of the Experiments section. \n389 (c) Did you include the estimated hourly wage paid to participants and the total amount \n390 spent on participant compensation? [N/A] ",
1013
+ "bbox": [
1014
+ 140,
1015
+ 90,
1016
+ 826,
1017
+ 179
1018
+ ],
1019
+ "page_idx": 11
1020
+ }
1021
+ ]
parse/train/wTutcPE7zOC/wTutcPE7zOC_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/wTutcPE7zOC/wTutcPE7zOC_model.json ADDED
The diff for this file is too large to render. See raw diff