ZHANGYUXUAN-zR commited on
Commit
c7237db
·
verified ·
1 Parent(s): 327aab3

Add files using upload-large-folder tool

Browse files
parse/train/68B1ezcffDc/68B1ezcffDc.md ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Subgroup Generalization and Fairness of Graph Neural Networks
2
+
3
+ Jiaqi Ma ∗† jiaqima@umich.edu
4
+
5
+ Junwei Deng ∗† junweid@umich.edu
6
+
7
+ Qiaozhu Mei∗‡ qmei@umich.edu
8
+
9
+ # Abstract
10
+
11
+ Despite enormous successful applications of graph neural networks (GNNs), theoretical understanding of their generalization ability, especially for node-level tasks where data are not independent and identically-distributed (IID), has been sparse. The theoretical investigation of the generalization performance is beneficial for understanding fundamental issues (such as fairness) of GNN models and designing better learning methods. In this paper, we present a novel PAC-Bayesian analysis for GNNs under a non-IID semi-supervised learning setup. Moreover, we analyze the generalization performances on different subgroups of unlabeled nodes, which allows us to further study an accuracy-(dis)parity-style (un)fairness of GNNs from a theoretical perspective. Under reasonable assumptions, we demonstrate that the distance between a test subgroup and the training set can be a key factor affecting the GNN performance on that subgroup, which calls special attention to the training node selection for fair learning. Experiments across multiple GNN models and datasets support our theoretical results4.
12
+
13
+ # 1 Introduction
14
+
15
+ Graph Neural Networks (GNNs) [13, 35, 20] are a family of machine learning models that can be used to model non-Euclidean data as well as inter-related samples in a flexible way. In recent years, there have been enormous successful applications of GNNs in various areas, such as drug discovery [18], computer vision [29], transportation forecasting [49], recommender systems [48], etc. Depending on the type of prediction target, the application tasks can be roughly categorized into node-level, edge-level, subgraph-level, and graph-level tasks [46].
16
+
17
+ In contrast to the marked empirical success, theoretical understanding of the generalization ability of GNNs has been rather limited. Among the existing literature, some studies [9, 11, 25] focus on the analysis of graph-level tasks where each sample is an entire graph and the samples of graphs are IID. A very limited number of studies [36, 42] explore GNN generalization for node-level tasks but they assume the nodes (and their associated neighborhoods) are IID samples, which does not align with the commonly seen graph-based semi-supervised learning setups. Baranwal et al. [3] investigate GNN generalization without IID assumptions but under a specific data generating mechanism.
18
+
19
+ In this work, our first contribution is to provide a novel PAC-Bayesian analysis for the generalization ability of GNNs on node-level tasks with non-IID assumptions. In particular, we assume the node features are fixed and the node labels are independently sampled from distributions conditioned on the node features. We also assume the training set and the test set can be chosen as arbitrary subsets of nodes on the graph. We first prove two general PAC-Bayesian generalization bounds (Theorem 1 and Theorem 2) under this non-IID setup. Subsequently, we derive a generalization bound for GNN (Theorem 3) in terms of characteristics of the GNN models and the node features.
20
+
21
+ Notably, the generalization bound for GNN is influenced by the distance between the test nodes and the training nodes in terms of their aggregated node features. This suggests that, given a fixed training set, test nodes that are “far away” from all the training nodes may suffer from larger generalization errors. Based on this analysis, our second contribution is the discovering of a type of unfairness that arises from theoretically predictable accuracy disparity across some subgroups of test nodes. We further conduct a empirical study that investigates the prediction accuracy of four popular GNN models on different subgroups of test nodes. The results on multiple benchmark datasets indicate that there is indeed a significant disparity in test accuracy among these subgroups.
22
+
23
+ We summarize the contributions of this work as follows:
24
+
25
+ (1) We establish a novel PAC-Bayesian analysis for graph-based semi-supervised learning with non-IID assumptions.
26
+ (2) Under this setup, we derive a generalization bound for GNNs that can be applied to an arbitrary subgroup of test nodes.
27
+ (3) As an implication of the generalization bound, we predict that there would be an unfairness of GNN predictions that arises from accuracy disparity across subgroups of test nodes.
28
+ (4) We empirically verify the existence of accuracy disparity of popular GNN models on multiple benchmark datasets, as predicted by our theoretical analysis.
29
+
30
+ # 2 Related Work
31
+
32
+ # 2.1 Generalization of Graph Neural Networks
33
+
34
+ The majority of existing literature that aims to develop theoretical understandings of GNNs have focused on the expressive power of GNNs (see Sato [34] for a survey along this line), while the number of studies trying to understand the generalizability of GNNs is rather limited. Among them, some [9, 11, 25] focus on graph-level tasks, the analyses of which cannot be easily applied to node-level tasks. As far as we know, Scarselli et al. [36], Verma and Zhang [42], and Baranwal et al. [3] are the only existing studies investigating the generalization of GNNs on node-level tasks, even though node-level tasks are more common in reality. Scarselli et al. [36] present an upper bound of the VC-dimension of GNNs; Verma and Zhang [42] derive a stability-based generalization bound for a single-layer GCN [20] model. Yet, both Scarselli et al. [36] and Verma and Zhang [42] (implicitly) assume that the training nodes are IID samples from a certain distribution, which does not align with the common practice of node-level semi-supervised learning. Baranwal et al. [3] investigate the generalization of graph convolution under a specific data generating mechanism (i.e., the contextual stochastic block model [8]). Our work presents the first generalization analysis of GNNs for non-IID node-level tasks without strong assumptions on the data generating mechanism.
35
+
36
+ # 2.2 Fairness of Machine Learning on Graphs
37
+
38
+ The fairness issues of machine learning on graphs start to receive research attention recently. Following conventional machine learning fairness literature, the majority of previous work along this line [1, 5–7, 22, 32, 39, 50] concerns about fairness with respect to a given sensitive attribute, such as gender or race, which defines protected groups. In practice, the fairness issues of learning on graphs are much more complicated due to the asymmetric nature of the graph-structured data. However, only a few studies [19] investigate the unfairness caused by the graph structure without knowing a sensitive feature. Moreover, in a node-level semi-supervised learning task, the non-IID sampling of training nodes brings additional uncertainty to the fairness of the learned models. This work is the first to present a learning theoretic analysis under this setup, which in turn suggests how the graph structure and the selection of training nodes may influence the fairness of machine learning on graphs.
39
+
40
+ # 2.3 PAC-Bayesian Analysis
41
+
42
+ PAC-Bayesian analysis [27] has become one of the most powerful theoretical framework to analyze the generalization ability of machine learning models. We will briefly introduce the background in
43
+
44
+ Section 3.2, and refer the readers to a recent tutorial [14] for a systematic overview of PAC-Bayesian analysis. We note that Liao et al. [25] recently present a PAC-Bayesian generalization bound for GNNs on IID graph-level tasks. Both Liao et al. [25] and this work utilize results from Neyshabur et al. [30], a PAC-Bayesian analysis for ReLU-activated neural networks, in part of our proofs. Compared to Neyshabur et al. [30], the key contribution of Liao et al. [25] is the derivation of perturbation bounds of two types of GNN architectures; while the key contribution of this work is the novel analysis under the setup of non-IID node-level tasks. There is also an existing work of PAC-Bayesian analysis for transductive semi-supervised learning [4]. But it is different from our problem setup and, in particular, it cannot be used to analyze the generalization on subgroups.
45
+
46
+ # 3 Preliminaries
47
+
48
+ In this section, we first formulate the problem of node-level semi-supervised learning. We also provide a brief introduction of the PAC-Bayesian framework.
49
+
50
+ # 3.1 The Problem Formulation and Notations
51
+
52
+ Semi-supervised node classification. Let $G = ( V , E ) \in \mathcal G _ { N }$ be an undirected graph, with $V = \{ 1 , \bar { 2 } , \dots , N \}$ being the set of $N$ nodes and $E \subseteq V \times V$ being the set of edges. And $\mathcal { G } _ { N }$ is the space of all undirected graphs with $N$ nodes. The nodes are associated with node features $\boldsymbol { X } \in \mathbb { R } ^ { \hat { \boldsymbol { N } } \times \boldsymbol { D } }$ and node labels $y \in \{ 1 , 2 , \ldots , K \} ^ { N }$ .
53
+
54
+ In this work, we focus on the transductive node classification setting [47], where the node features $X$ and the graph $G$ are observed prior to learning, and every quantity of interest in the analysis will be conditioned on $X$ and $G$ . Without loss of generality, we treat $X$ and $G$ as fixed throughout our analysis, and the randomness comes from the labels $y$ . In particular, we assume that for each node $i \in V$ , its label $y _ { i }$ is generated from an unknown conditional distribution $\mathrm { P r } ( y _ { i } \mid Z _ { i } )$ , where $Z = g ( X , G )$ and $g : \mathbb { R } ^ { N \times D } \times \mathcal { G } _ { N } \mathbb { R } ^ { N \times D ^ { \prime } }$ is an aggregation function that aggregates the features over (multi-hop) local neighborhoods5. We also assume that the node labels are generated independently conditional on their respective aggregated features $Z _ { i }$ ’s.
55
+
56
+ Given a small set of the labeled nodes, $V _ { 0 } \subseteq V$ , the task of node-level semi-supervised learning is to learn a classifier $h : \mathbb { R } ^ { N \times D } \times \mathcal { G } _ { N } \mathbb { R } ^ { N \times K }$ from a function family $\mathcal { H }$ and perform it on the remaining unlabeled nodes. Given a classifier $h$ , the classification for a node $i$ is obtained by
57
+
58
+ $$
59
+ \hat { y } _ { i } = \underset { k \in \{ 1 , \dots , K \} } { \mathrm { a r g m a x } } h _ { i } ( X , G ) [ k ] ,
60
+ $$
61
+
62
+ where $h _ { i } ( X , G )$ is the $i$ -th row of $h ( X , G )$ and $h _ { i } ( X , G ) [ k ]$ refers to the $k$ -th element of $h _ { i } ( X , G )$ .
63
+
64
+ Subgroups. In Section 4, we will present an analysis of the GNN generalization performance on any subgroup of the set of unlabeled nodes, $V \setminus \bar { V _ { 0 } }$ . Note that the analysis on any subgroup is a stronger result than that on the entire unlabeled set, as any set is a subset of itself. Later we will show that the analysis on subgroups (rather than on the entire set) further allows us to investigate the accuracy disparity across subgroups. We denote a collection of subgroups of interest as $V _ { 1 } , \bar { V } _ { 2 } , \ldots , V _ { M } \subseteq \bar { V } \setminus \bar { V } _ { 0 }$ . In practice, a subgroup can be defined based on an attribute of the nodes (e.g., a gender group), certain graph-based properties, or an arbitrary partition of the nodes. We also define the size of each subgroup as $N _ { m } : = | V _ { m } | , m = 0 , \ldots , M$ .
65
+
66
+ Margin loss on each subgroup. Now we can define the empirical and expected margin loss of any classifier $h \in \mathcal H$ on each subgroup $V _ { m } , m = 0 , 1 , \dots , M$ . Given a sample of observed node labels $y _ { i }$ ’s, the empirical margin loss of $h$ on $V _ { m }$ for a margin $\gamma \geq 0$ is defined as
67
+
68
+ $$
69
+ \widehat { \mathcal { L } } _ { m } ^ { \gamma } ( h ) : = \frac { 1 } { N _ { m } } \sum _ { i \in V _ { m } } \mathbb { 1 } \left[ h _ { i } ( X , G ) [ y _ { i } ] \leq \gamma + \operatorname* { m a x } _ { k \neq y _ { i } } h _ { i } ( X , G ) [ k ] \right] ,
70
+ $$
71
+
72
+ where $\mathbb { 1 } \left[ \cdot \right]$ is the indicator function. The expected margin loss is the expectation of Eq. (1), i.e.,
73
+
74
+ $$
75
+ \begin{array} { r } { \mathcal { L } _ { m } ^ { \gamma } ( h ) : = \mathbb { E } _ { y _ { i } \sim \operatorname* { P r } ( \mathbf { y } \mid Z _ { i } ) , i \in V _ { m } } \widehat { \mathcal { L } } _ { m } ^ { \gamma } ( h ) . } \end{array}
76
+ $$
77
+
78
+ To simplify the notation, we define $y ^ { m } : = \{ y _ { i } \} _ { i \in V _ { m } }$ , $\forall m = 0 , \ldots , M$ , so that Eq. (2) can be written as $\bar { \mathcal { L } } _ { m } ^ { \gamma } \bar { ( } h ) \bar { = } \mathbb { E } _ { y ^ { m } } \widehat { \mathcal { L } } _ { m } ^ { \gamma } ( h )$ . We note that the classification risk and empirical risk of $h$ on $V _ { m }$ are respectively equal to $\mathcal { L } _ { m } ^ { 0 } ( h )$ and $\widehat { \mathcal { L } } _ { m } ^ { 0 } ( h )$ .
79
+
80
+ # 3.2 The PAC-Bayesian Framework
81
+
82
+ The PAC-Bayesian framework [27] is an approach to analyze the generalization ability of a stochastic predictor drawn from a distribution $Q$ over the predictor family $\mathcal { H }$ that is learned from the training data. For any stochastic classifier distribution $Q$ and $m = 0 , \ldots , M$ , slightly overloading the notation, we denote the empirical margin loss of $Q$ on $V _ { m }$ as ${ \widehat { \mathcal { L } } } _ { m } ^ { \gamma } ( Q )$ , and the corresponding expected margin loss as $\mathcal { L } _ { m } ^ { \gamma } ( Q )$ . And they are given by
83
+
84
+ $$
85
+ \widehat { \mathscr { L } } _ { m } ^ { \gamma } ( Q ) : = \mathbb { E } _ { h \sim Q } \widehat { \mathscr { L } } _ { m } ^ { \gamma } ( h ) , \quad \mathscr { L } _ { m } ^ { \gamma } ( Q ) : = \mathbb { E } _ { h \sim Q } \mathscr { L } _ { m } ^ { \gamma } ( h ) .
86
+ $$
87
+
88
+ In general, a PAC-Bayesian analysis aims to bound the generalization gap between $\mathcal { L } _ { m } ^ { \gamma } ( Q )$ and $\widehat { \mathcal { L } } _ { m } ^ { \gamma } ( Q )$ . The analysis is usually done by first proving that, for any “prior” distribution6 $P$ over $\mathcal { H }$ that is independent of the training data, the generalization gap can be controlled by the discrepancy between $P$ and $Q$ ; the analysis is then followed by careful choices of $P$ to get concrete upper bounds of the generalization gap. While the PAC-Bayesian framework is built on top of stochastic predictors, there exist standard techniques [23] that can be used to derive generalization bounds for deterministic predictors from PAC-Bayesian bounds.
89
+
90
+ Finally, we denote the Kullback-Leibler $( K L )$ divergence as $\begin{array} { r } { D _ { \mathrm { K L } } ( Q \| P ) : = \int \ln \frac { d Q } { d P } d Q } \end{array}$ , which will be used in the following analysis.
91
+
92
+ # 4 The Generalization Bound and Its Implications for Fairness
93
+
94
+ As we mentioned in Section 2.3, existing PAC-Bayesian analyses cannot be directly applied to the nonIID semi-supervised learning setup where we care about the generalization (and its disparity) across different subgroups of the unlabeled samples. In this section, we first present general PAC-Bayesian theorems for subgroup generalization under our problem setup; then we derive a generalization bound for GNNs and discuss fairness implications of the bound.
95
+
96
+ # 4.1 General PAC-Bayesian Theorems for Subgroup Generalization
97
+
98
+ Stochastic classifier bound. We first present the general PAC-Bayesian theorem (Theorem 1) for subgroup generalization of stochastic classifiers. The generalization bound depends on a notion of expected loss discrepancy between two subgroups as defined below.
99
+
100
+ Definition 1 (Expected Loss Discrepancy). Given a distribution $P$ over $\mathcal { H }$ , for any $\lambda > 0$ and $\gamma \geq 0$ for any two subgroups $V _ { m }$ and $V _ { m ^ { \prime } }$ $0 \leq m , m ^ { \prime } \leq M )$ , define the expected loss discrepancy between $V _ { m }$ and $V _ { 0 }$ with respect to $( P , \gamma , \lambda )$ as
101
+
102
+ $$
103
+ D _ { m , m ^ { \prime } } ^ { \gamma } ( P ; \lambda ) : = \ln \mathbb { E } _ { h \sim P } e ^ { \lambda \left( \mathcal { L } _ { m } ^ { \gamma / 2 } ( h ) - \mathcal { L } _ { m ^ { \prime } } ^ { \gamma } ( h ) \right) } ,
104
+ $$
105
+
106
+ where $\mathcal { L } _ { m } ^ { \gamma / 2 } ( h )$ and $\mathcal { L } _ { m ^ { \prime } } ^ { \gamma } ( h )$ follow the definition of Eq. (2).
107
+
108
+ Intuitively, $D _ { m , m ^ { \prime } } ^ { \gamma } ( P ; \lambda )$ captures the difference of the expected loss between $V _ { m }$ and $V _ { m ^ { \prime } }$ in an average sense (over $P$ ). Note that $D _ { m , m ^ { \prime } } ^ { \gamma } ( P ; \lambda )$ is asymmetric in terms of $V _ { m }$ and $V _ { m ^ { \prime } }$ , and can be negative if the loss on $V _ { m }$ is mostly smaller than that on $V _ { m ^ { \prime } }$ .
109
+
110
+ For stochastic classifiers, we have the following Theorem 1. Proof can be found in Appendix A.1.
111
+
112
+ Theorem 1 (Subgroup Generalization of Stochastic Classifiers). For any $0 < m \le M$ , for any $\lambda > 0$ and $\gamma \geq 0 _ { ; }$ , for any “prior” distribution $P$ on $\mathcal { H }$ that is independent of the training data on $V _ { 0 }$ , with
113
+
114
+ probability at least $1 - \delta$ over the sample of $y ^ { 0 }$ , for any $Q$ on $\mathcal { H }$ , we have7
115
+
116
+ $$
117
+ \mathcal { L } _ { m } ^ { \gamma / 2 } ( Q ) \leq \widehat { \mathcal { L } } _ { 0 } ^ { \gamma } ( Q ) + \frac { 1 } { \lambda } \left( D _ { \mathrm { K L } } ( Q \| P ) + \ln \frac { 1 } { \delta } + \frac { \lambda ^ { 2 } } { 4 N _ { 0 } } + D _ { m , 0 } ^ { \gamma } ( P ; \lambda ) \right) .
118
+ $$
119
+
120
+ Theorem 1 can be viewed as an adaptation of a result by Alquier et al. [2] from the IID supervised setting to our non-IID semi-supervised setting. The terms $\begin{array} { r } { D _ { \mathrm { K L } } ( Q \| P ) , \mathrm { l n } \frac { 2 } { \delta } } \end{array}$ , and $\frac { \lambda ^ { 2 } } { 4 N _ { 0 } }$ are commonly seen in PAC-Bayesian analysis for IID supervised setting. In particular, when setting $\lambda = \Theta ( \sqrt { N _ { 0 } } )$ , $\begin{array} { r } { \frac { 1 } { \lambda } \left( \ln \frac { 2 } { \delta } + \frac { \lambda ^ { 2 } } { 4 N _ { 0 } } \right) } \end{array}$ vanishes as the training size $N _ { 0 }$ grows. The divergence between $Q$ and $P$ , $D _ { \mathrm { K L } } ( Q \| P )$ , is usually considered as a measurement of the model complexity [14]. And there will be a trade-off between the training loss, $\widehat { \mathcal { L } } _ { 0 } ^ { \gamma } ( Q )$ , and the complexity (how far can the learned “posterior” $Q$ go from the “prior” $P$ ).
121
+
122
+ Uniquely for the non-IID semi-supervised setting, there is an extra term $D _ { m , 0 } ^ { \gamma } ( P ; \lambda )$ , which is the expected loss discrepancy between the target test subgroup $V _ { m }$ and the training set $V _ { 0 }$ . Note that this quantity is independent of the training labels $y ^ { 0 }$ . Not surprisingly, it is difficult to give generalization guarantees if the expected loss on $V _ { m }$ is much larger than that on $V _ { 0 }$ for any stochastic classifier $P$ independent of training data. We have to make some assumptions about the relationship between $V _ { m }$ and $V _ { 0 }$ to obtain a meaningful bound on $\begin{array} { r } { \frac { 1 } { \lambda } D _ { m , 0 } ^ { \gamma } ( P ; \lambda ) } \end{array}$ , which we will discuss in details in Section 4.2.
123
+
124
+ Deterministic classifier bound. Utilizing standard techniques in PAC-Bayesian analysis [23, 27, 30], we can convert the bound for stochastic classifiers in Theorem 1 to a bound for deterministic classifiers as stated in Theorem 2 below (see Appendix A.2 for the proof).
125
+
126
+ Theorem 2 (Subgroup Generalization of Deterministic Classifiers). Let $\tilde { h }$ be any classifier in $\mathcal { H }$ . For any $0 < m \le M$ , for any $\lambda > 0$ and $\gamma \geq 0$ , for any “prior” distribution $P$ on $\mathcal { H }$ that is independent of the training data on $V _ { 0 }$ , with probability at least $1 - \delta$ over the sample of $y ^ { 0 }$ , for any $Q$ on $\mathcal { H }$ such that $\begin{array} { r } { \operatorname* { P r } _ { h \sim Q } \left( \operatorname* { m a x } _ { i \in V _ { 0 } \cup V _ { m } } \| h _ { i } ( X , G ) - \tilde { h } _ { i } ( X , G ) \| _ { \infty } < \frac { \gamma } { 8 } \right) > \frac { 1 } { 2 } } \end{array}$ , we have
127
+
128
+ $$
129
+ \mathcal { L } _ { m } ^ { 0 } ( \widetilde { h } ) \le \widehat { \mathcal { L } } _ { 0 } ^ { \gamma } ( \widetilde { h } ) + \frac { 1 } { \lambda } \left( 2 ( D _ { \mathrm { K L } } ( Q \| P ) + 1 ) + \ln \frac { 1 } { \delta } + \frac { \lambda ^ { 2 } } { 4 N _ { 0 } } + D _ { m , 0 } ^ { \gamma / 2 } ( P ; \lambda ) \right) .
130
+ $$
131
+
132
+ Theorem 1 and 2 are not specific to GNNs and hold for any (respectively stochastic and deterministic) classifier under the semi-supervised setup. In Section 4.2, we will apply Theorem 2 to obtain a subgroup generalization bound that explicitly depends on the characteristics of GNNs and the data.
133
+
134
+ # 4.2 Subgroup Generalization Bound for Graph Neural Networks
135
+
136
+ The GNN model. We consider GNNs where the node feature aggregation step and the prediction step are separate. In particular, we assume the GNN classifier takes the form of $h _ { i } ( X , G ) ~ =$ $f ( \bar { g } _ { i } ( X , G ) ; W _ { 1 } , W _ { 2 } , \underline { { { \cdot \cdot \cdot } } } , W _ { L } )$ , where $g$ is an aggregation function as we described in Section 3.1 and $f$ is a ReLU-activated $L$ -layer Multi-Layer Perceptron (MLP) with $W _ { 1 } , \dots , W _ { L }$ as parameters for each layer8. Denote the largest width of all the hidden layers as $b$ .
137
+
138
+ Remark 1. There is a technical restriction on the possible choice of the aggregation function $g$ . For the following derivation of the generalization bound (6) to be valid, we need the condition that the node labels $y _ { i }$ ’s are independent conditional on their aggregated features $g _ { i } ( X , G )$ ’s, as introduced in the problem formulation in Section 3.1. However, we also note that this condition tends to hold when the aggregated features $g _ { i } ( X , G )$ ’s contain rich information about the labels.
139
+
140
+ Upper-bounding $D _ { m , 0 } ^ { \gamma } ( P ; \lambda )$ . To derive the generalization guarantee, we need to upper-bound the expected loss discrepancy $D _ { m , 0 } ^ { \gamma } ( P ; \lambda )$ . It turns out that we have to make some assumptions on the data in order to get a meaningful upper bound.
141
+
142
+ So far we have not had any restrictions on the conditional label distributions $\operatorname* { P r } ( y _ { i } = k \mid g _ { i } ( X , G ) )$ If the label distributions on $V \backslash V _ { 0 }$ can be arbitrarily different from those on $V _ { 0 }$ , the generalization can be arbitrarily poor. We therefore assume that the label distributions conditional on aggregated features are smooth (Assumption 1).
143
+
144
+ Assumption 1 (Smoothness of Data Distribution). Assume there exist $c$ -Lipschitz continuous functions $\mathring { \eta _ { 1 } } , \eta _ { 2 } , \dotsc , \eta _ { K } : \mathbb { R } ^ { D ^ { \prime } } [ 0 , 1 ]$ , such that, for any node $i \in V$ ,
145
+
146
+ $$
147
+ \operatorname* { P r } ( y _ { i } = k \mid g _ { i } ( X , G ) ) = \eta _ { k } ( g _ { i } ( X , G ) ) , \forall k = 1 , \ldots , K .
148
+ $$
149
+
150
+ We also need to characterize the relationship between a target test subgroup $V _ { m }$ and the training set $V _ { 0 }$ . For this purpose, we define the distance from $V _ { m }$ to $V _ { 0 }$ and the concept of near set below.
151
+
152
+ Definition 2 (Distance To Training Set and Near Set). For each $0 < m \le M$ , define the distance from the subgroup $V _ { m }$ to the training set $V _ { 0 }$ as
153
+
154
+ $$
155
+ \epsilon _ { m } : = \operatorname* { m a x } _ { j \in V _ { m } } \operatorname* { m i n } _ { i \in V _ { 0 } } \| g _ { i } ( X , G ) - g _ { j } ( X , G ) \| _ { 2 } .
156
+ $$
157
+
158
+ Further, for each $i \in V _ { 0 }$ , define the near set of $i$ with respect to $V _ { m }$ as
159
+
160
+ $$
161
+ V _ { m } ^ { ( i ) } : = \{ j \in V _ { m } \mid \| g _ { i } ( X , G ) - g _ { j } ( X , G ) \| _ { 2 } \leq \epsilon _ { m } \} .
162
+ $$
163
+
164
+ Clearly,
165
+
166
+ $$
167
+ V _ { m } = \cup _ { i \in V _ { 0 } } V _ { m } ^ { ( i ) } .
168
+ $$
169
+
170
+ Then, with the Assumption 2 and 3 below, we can bound the expected loss discrepancy $D _ { m , 0 } ^ { \gamma } ( P ; \lambda )$ with the following Lemma 1 (see the proof in Appendix A.3).
171
+
172
+ Assumption 2 (Equal-Sized and Disjoint Near Sets). For any $0 < m \le M$ , assume the near sets of each $i \in V _ { 0 }$ with respect to $V _ { m }$ are disjoint and have the same size $s _ { m } \in \mathbb { N } ^ { + }$ .
173
+
174
+ Assumption 3 (Concentrated Expected Loss Difference). Let $P$ be a distribution on $\mathcal { H }$ , defined by sampling the vectorized MLP parameters from ${ \mathcal { N } } ( 0 , \sigma ^ { 2 } I )$ for some $\begin{array} { r } { \sigma ^ { 2 } \le \frac { ( \gamma / 8 \epsilon _ { m } ) ^ { 2 / L } } { 2 b ( \lambda N _ { 0 } ^ { - \alpha } + \ln { 2 b L } ) } } \end{array}$ For any $L$ - layer GNN classifier $h \in \mathcal H$ with model parameters $W _ { 1 } ^ { h } , \ldots , W _ { L } ^ { h }$ , define $T _ { h } : = \operatorname* { m a x } _ { l = 1 , \ldots , L } \| W _ { l } \| _ { 2 }$ . Assume that there exists some $\textstyle 0 < \alpha < { \frac { 1 } { 4 } }$ satisfying
175
+
176
+ $$
177
+ \operatorname* { P r } _ { h \sim P } \left( \mathcal { L } _ { m } ^ { \gamma / 4 } ( h ) - \mathcal { L } _ { 0 } ^ { \gamma / 2 } ( h ) > N _ { 0 } ^ { - \alpha } + c K \epsilon _ { m } \mid T _ { h } ^ { L } \epsilon _ { m } > \frac { \gamma } { 8 } \right) \le e ^ { - N _ { 0 } ^ { 2 \alpha } } .
178
+ $$
179
+
180
+ Lemma 1 (Bound for $D _ { m , 0 } ^ { \gamma } ( P ; \lambda ) )$ . Under Assumption $I$ , 2 and 3, for any $0 < m \le M$ , any $0 < \lambda \leq N _ { 0 } ^ { 2 \alpha }$ and $\gamma \geq 0$ , assume the “prior” $P$ on $\mathcal { H }$ is defined by sampling the vectorized $M L P$ parameters from ${ \mathcal { N } } ( 0 , \sigma ^ { 2 } I )$ for some $\begin{array} { r } { \sigma ^ { 2 } \le \frac { ( \gamma / 8 \epsilon _ { m } ) ^ { 2 / L } } { 2 b ( \lambda N _ { 0 } ^ { - \alpha } + \ln { 2 b L } ) } } \end{array}$ . We have
181
+
182
+ $$
183
+ D _ { m , 0 } ^ { \gamma / 2 } ( P ; \lambda ) \leq \ln { 3 } + \lambda c K \epsilon _ { m } .
184
+ $$
185
+
186
+ Intuitively, what we need to bound $D _ { m , 0 } ^ { \gamma } ( P ; \lambda )$ is that the training set $V _ { 0 }$ is “representative” for $V _ { m }$ . This is reasonable in practice as it is natural to select the training samples according to the distribution of the population. Specifically, Assumption 2 assumes that $V _ { m }$ can be split into equalsized partitions indexed by the training samples. The elements of each partition $V _ { m } ^ { ( i ) }$ are close to the corresponding training sample $i$ but not so close to training samples other than $i$ . This assumption is stronger than needed to obtain a meaningful bound on $\bar { D } _ { m , 0 } ^ { \gamma } \bar { ( } P ; \lambda )$ , and we can relax it by only assuming that most samples in $V _ { m }$ have proportional “close representatives” in $V _ { 0 }$ . But we keep Assumption 2 in this work, as it is intuitively clear and significantly eases the analysis and notations. Assumption 3 essentially assumes that the expected margin loss on $V _ { m }$ is not much larger than that on $V _ { 0 }$ when the number of samples becomes large. We first note that this assumption becomes trivially true in the degenerate case that all samples in $V _ { m }$ and $V _ { 0 }$ are IID. In this case, $\bar { \mathcal { L } } _ { m } ^ { \gamma / 4 } ( h ) = \bar { \mathcal { L } } _ { 0 } ^ { \gamma / 4 } ( h ) < \bar { \mathcal { L } } _ { 0 } ^ { \gamma / 2 } ( h ) \bar { \ } \leq 0$ for any classifier $h$ . In Appendix A.5, we further provide a simple non-IID example where Assumption 3 holds.
187
+
188
+ The bound (5) suggests that the closer between $V _ { m }$ and $V _ { 0 }$ (smaller $\epsilon _ { m }$ ), the smaller the expected loss discrepancy.
189
+
190
+ Bound for GNNs. Finally, with an additional technical assumption (Assumption 4) that the maximum L2 norm of aggregated node features does not grow too fast in terms of the number of training samples, we obtain a subgroup generalization bound for GNNs in Theorem 3. The proof of Theorem 3 can be found in Appendix A.4.
191
+
192
+ Assumption 4. Define $B _ { m } : = \operatorname* { m a x } _ { i \in V _ { 0 } \cup V _ { m } } \| g _ { i } ( X , G ) \| _ { 2 }$ . For any classifier $\tilde { h } \in \mathcal { H }$ with parameters $\{ \widetilde { W } _ { l } \} _ { l = 1 } ^ { L }$ , assume $\| \widetilde { W } _ { l } \| _ { F } \le C f o r l = 1 , \ldots , L .$ . Assume $B _ { m } , C$ are constants with respect to $N _ { 0 }$ .
193
+
194
+ Theorem 3 (Subgroup Generalization Bound for GNNs). Let $\tilde { h }$ be any classifier in $\mathcal { H }$ with parameters $\{ \widetilde { W } _ { l } \} _ { l = 1 } ^ { L }$ . Under Assumptions 1, 2, 3, and 4, for any $0 < m \le M$ , $\gamma \geq 0$ , and large enough $N _ { 0 }$ , with probability at least $1 - \delta$ over the sample of $y ^ { 0 }$ , we have
195
+
196
+ $$
197
+ \mathcal { L } _ { m } ^ { 0 } ( \widetilde { h } ) \leq \widehat { \mathcal { L } } _ { 0 } ^ { \gamma } ( \widetilde { h } ) + O \left( c K \epsilon _ { m } + \frac { b \sum _ { l = 1 } ^ { L } \| \widetilde { W } _ { l } \| _ { F } ^ { 2 } } { ( \gamma / 8 ) ^ { 2 / L } N _ { 0 } ^ { \alpha } } ( \epsilon _ { m } ) ^ { 2 / L } + \frac { 1 } { N _ { 0 } ^ { 1 - 2 \alpha } } + \frac { 1 } { N _ { 0 } ^ { 2 \alpha } } \ln \frac { L C ( 2 B _ { m } ) ^ { 1 / L } } { \gamma ^ { 1 / L } \delta } \right) .
198
+ $$
199
+
200
+ Next, we investigate the qualitative implications of our theoretical results.
201
+
202
+ # 4.3 Implications for Fairness of Graph Neural Networks
203
+
204
+ Theoretically predictable accuracy disparity. One merit of our analysis is that we can apply Theorem 3 on different subgroups of the unlabeled nodes and compare the subgroup generalization bounds. This allows us to study the accuracy disparity across subgroups from a theoretical perspective.
205
+
206
+ A major factor that affects the generalization bound (6) is $\epsilon _ { m }$ , the aggregated-feature distance (in terms of $g ( X , G ) )$ from the target test subgroup $V _ { m }$ to the training set $V _ { 0 }$ . The generalization bound (6) suggests that there is a better generalization guarantee for subgroups that are closer to the training set. In other words, it is unfair for subgroups that are far away from the training set. While our theoretical analysis can only tell the difference among upper bounds of generalization errors, we empirically verify that, in the following Section 5, the aggregated-feature distance $\epsilon _ { m }$ is indeed a strong predictor for the test accuracy of each subgroup $V _ { m }$ . More specifically, the test accuracy decreases as the distance increases, which is consistent with the theoretical prediction given by the bound (6).
207
+
208
+ Impact of the structural positions of nodes. We further investigate if the aggregated-feature distance can be related to simpler and more interpretable graph characteristics, in order to obtain a more intuitive understanding of how the structural positions of nodes influence the prediction accuracy on them. We find that the geodesic distance (length of the shortest path) between two nodes is positively related to the distance between their aggregated features in some scenarios9, such as when the node features exhibit homophily [28]. Empirically, we also observe that test nodes with larger geodesic distance to the training set tend to suffer from lower accuracy (see Figure 2).
209
+
210
+ In contrast, we find that common node centrality metrics (e.g., degree and PageRank) have less influence on the test accuracy (see Figure 3). These centrality metrics only capture the graph characteristics of the test nodes alone, but do not take their relationship to the training set into account, which is a key factor suggested by our theoretical analysis.
211
+
212
+ Impact of training data selection. Another implication of the theoretical results is that the selection of the training set plays an important role on the fairness of the learned GNN models. First, if the training set is selected unevenly on the graph, leaving part of the test nodes far away, there will likely be a large accuracy disparity. Second, a key ingredient in the proof of Lemma 1 is that the GNN predictions on two nodes tend to be more similar if they are closer in terms of the aggregated node features. This suggests that, if an individual training node is close to many test nodes, it may bias the predictions of the learned GNN on the test nodes towards the class it belongs to.
213
+
214
+ # 5 Experiments
215
+
216
+ In this section, we empirically verify the fairness implications suggested by our theoretical analysis.
217
+
218
+ General setup. We experiment on 4 popular GNN models, GCN [20], GAT [41], SGC [45], and APPNP [21], as well as an MLP model for reference. For all models, we use the implementations by Deep Graph Library [43]. For each experiment setting, 40 independent trials are carried out.
219
+
220
+ # 5.1 Accuracy Disparity Across Subgroups
221
+
222
+ Subgroups. We examine the accuracy disparity with three types of subgroups as described below.
223
+
224
+ ![](images/48f1a17779a5858cf36af9557baf10070dff8a78e3728d933ffc0b4856a6f4fc.jpg)
225
+ Figure 1: Test accuracy disparity across subgroups by aggregated-feature distance. Each figure corresponds to a dataset, and each bar cluster corresponds to a model. Bars labeled 1 to 5 represent subgroups with increasing distance to training set. Results are averaged over 40 independent trials with different random splits of the data, and the error bar represents the standard error of the mean.
226
+
227
+ ![](images/6677d439e47c9833970758a260951d224a6965a92db8cf0bb8ba71dbefa1f5b3.jpg)
228
+ Figure 2: Test accuracy disparity across subgroups by geodesic distance. The experiment and plot settings are the same as Figure 1, except for the bars labeled from 1 to 5 here represent subgroups with increasing shortest-path distance to training set.
229
+
230
+ Subgroup by aggregated-feature distance. In order to directly investigate the effect of $\epsilon _ { m }$ on the generalization bound (6), we first split the test nodes into subgroups by their distance to the training set in terms of the aggregated features. We use the two-step aggregated features to calculate the distance. In particular, denote the adjacency matrix of the graph $G$ as $\breve { A } \in \{ 0 , 1 \} ^ { N \times N }$ and the corresponding degree matrix as D, where D is an N × N diagonal matrix with Dii = PNj=1 Aij , ∀i = 1, . . . , N . Given the feature matrix $X \in \mathbb { R } ^ { N \times D }$ , the two-step aggregated features $Z$ are obtained by $Z =$ $( D + I ) ^ { - 1 } ( A + I ) ( D + I ) ^ { - 1 } ( A + I ) X$ . For each test node $i$ , we calculate its aggregated-feature distance to the training set $V _ { 0 }$ as $\begin{array} { r } { d _ { i } = \operatorname* { m i n } _ { j \in V _ { 0 } } \| Z _ { i } - Z _ { j } \| _ { 2 } } \end{array}$ . Then we sort the test nodes according to this distance and split them into 5 equal-sized subgroups.
231
+
232
+ Strictly speaking, our theory does not directly apply to GCN and GAT as they are not in the form as we defined in Section 4.2. Moreover, the two-step aggregated feature does not match exactly to the feature aggregation function of SGC and APPNP. Nevertheless, we find that even with such approximations, we are still able to observe the expected descending trend of test accuracy with respect to increasing distance in terms of the two-step aggregated features, on all four GNN models.
233
+
234
+ Subgroup by geodesic distance. As we discussed in Section 4.3, geodesic distance on the graph may well relate to the aggregated-feature distance. So we also define subgroups based on geodesic distance. We split the subgroups by replacing the aggregated-feature distance $d _ { i }$ of each test node $i$ with the minimum of the geodesic distances from $i$ to each training node on the graph.
235
+
236
+ Subgroup by node centrality. Lastly, we define subgroups based on 4 types of common node centrality metrics (degree, closeness, betweenness, and PageRank) of the test nodes. We split the subgroups by replacing the aggregated-feature distance $d _ { i }$ of each test node $i$ with the centrality score of $i$ . The purpose of this setup is to show that the common node centrality metrics are not sufficient to capture the monotonic trend of test accuracy.
237
+
238
+ Experiment setup. Following common GNN experiment setup [38], we randomly select 20 nodes in each class for training, 500 nodes for validation, and 1,000 nodes for testing. Once training is done, we report the test accuracy on subgroups defined by aggregated-feature distance, geodesic distance, and node centrality in Figure 1, 2, and 3 respectively10.
239
+
240
+ ![](images/62daec6597baf0aa2fbaf0628bb7dbf3b33af1d4106321e0808a137b7b93049f.jpg)
241
+ Figure 3: Test accuracy disparity across subgroups by node centrality. Each figure corresponds to the results of a pair of model and dataset, and each bar cluster corresponds to the subgroups defined by a certain centrality metric. In each cluster, the bars labeled from 1 to 5 represent subgroups with decreasing node centrality. Other settings are the same as Figure 1.
242
+
243
+ Experiment results. First, as shown in Figure 1, there is a clear trend that the accuracy of a test subgroup decreases as the aggregated-feature distance between the test subgroup and the training set increases. And the trend is consistent for all 4 GNN models on all the datasets we test on (except for APPNP on Cora). This result verifies the existence of accuracy disparity suggested by Theorem 3.
244
+
245
+ Second, we observe in Figure 2 that there is a similar trend when we split subgroups by the geodesic distance. This suggests that the geodesic distance on the graph can sometimes be used as a simpler indicator in practice for machine learning fairness on graph-structured data. Using such a classical graph metric as an indicator also helps us connect graph-based machine learning to network theory, especially to understandings about social networks, to better analyze fairness issues of machine learning on social networks, where high-stake decisions related to human subjects may be involved.
246
+
247
+ Furthermore, as shown in Figure 3, there is no clear monotonic trend for test accuracy when we split subgroups by node centrality, except for some particular combinations of GNN model and dataset. Empirically, the common node centrality metrics are not as good as the geodesic distance in terms of capturing the accuracy disparity. This contrast highlights the importance of the insight provided by our analysis: the “distance” to the training set, rather than some graph characteristics of the test nodes alone, is the key predictor of test accuracy.
248
+
249
+ Finally, it is intriguing that, in both Figure 1 and 2, the test accuracy of MLP (which does not use the graph structure) also decreases as the distance of a subgroup to the training set increases. This result is perhaps not surprising if the subgroups were defined by distance on the original node features, as MLP can be viewed as a special GNN where the feature aggregation function is an identity mapping, so the “aggregated features” for MLP essentially equal to the original features. Our theoretical analysis can then be similarly applied to MLP. The question is why there is also an accuracy disparity w.r.t. the aggregated-feature distance and the geodesic distance. We suspect this is because these datasets present homophily, i.e., original (non-aggregated) features of geodesically closer nodes tend to be more similar. As a result, a subgroup with smaller geodesic distance may also have closer node features to the training set. To verify this hypothesis, we repeat the experiments in Figure 1, but with independent noises added to node features such that they become less homophilious. As in Figure 4, the decreasing pattern of test accuracy across subgroups remains for the 4 GNNs on all datasets; while for MLP, the pattern disappears on Cora and Pubmed and becomes less sharp on Citeseer.
250
+
251
+ ![](images/43a6f9ddd3cd82fb9e4751088ea82fe67ef906373cea7fa9923f126277ed7222.jpg)
252
+ Figure 4: Test accuracy disparity across subgroups by aggregated-feature distance, experimented with noisy features. The experiment and plot settings are the same as Figure 1, except for the node features are perturbed by independent noises such that they are less homophilious.
253
+
254
+ ![](images/4443e45c660f7f688ed8bc0cbbbdcea18c303fec1825501f557ef97f0856d03f.jpg)
255
+ Figure 5: Relative ratio between the FPR under biased training node selection and the FPR under uniform training node selection. Each bar in each cluster corresponds to a class (there are 7 classes in total). The red shaded bar indicates the class with high centrality training nodes under the biased setup. Each cluster corresponds to a centrality metric being used for the biased node selection.
256
+
257
+ # 5.2 Impact of Biased Training Node Selection
258
+
259
+ In all the previous experiments, we follow the standard GNN training setup where 20 training nodes are uniformly sampled for each class. Next we investigate the impact if the selection of training nodes is biased, verifying our discussions in Section 4.3. We will demonstrate that the node centrality scores of the training nodes play an important role in the learned GNN model.
260
+
261
+ We choose a “dominant class” and construct a manipulated training set. For each class, we still sample 20 training nodes but in a biased way. For the dominant class, the sample is biased towards nodes of high centrality; while for other classes, the sample is biased towards nodes of low centrality. We evaluate the relative ratio of False Positive Rate (FPR) for each class between the setup using manipulated training set and the setup using uniformly sampled training set.
262
+
263
+ As shown in Figure 5, compared to MLP, the GNN models have significantly worse FPR for the dominant class when the training nodes are biased. This is because, after feature aggregation, there will be a larger proportion of test nodes that are closer to the training nodes of higher centrality. And the learned GNN model will be heavily biased towards the training labels of these nodes.
264
+
265
+ # 6 Conclusion
266
+
267
+ We present a novel PAC-Bayesian analysis for the generalization ability of GNNs on node-level semi-supervised learning tasks. As far as we know, this is the first generalization bound for GNNs for non-IID node-level tasks without strong assumptions on the data generating mechanism. One advantage of our analysis is that it can be applied to arbitrary subgroups of the test nodes, which allows us to investigate an accuracy-disparity style of fairness for GNNs. Both the theoretical and empirical results suggest that there is an accuracy disparity across subgroups of test nodes that have varying distance to the training set, and nodes with larger distance to the training nodes suffer from a lower classification accuracy. In the future, we would like to utilize our theory to analyze the fairness of GNNs on real-world applications and develop principled methods to mitigate the unfairness.
268
+
269
+ # Acknowledgements
270
+
271
+ This work was in part supported by the National Science Foundation under grant number 1633370.
272
+ The authors claim no competing interests.
273
+ References
274
+ [1] Chirag Agarwal, Himabindu Lakkaraju, and Marinka Zitnik. Towards a unified framework for fair and stable graph representation learning. CoRR, abs/2102.13186, 2021. URL https: //arxiv.org/abs/2102.13186.
275
+ [2] Pierre Alquier, James Ridgway, and Nicolas Chopin. On the properties of variational approximations of gibbs posteriors. The Journal of Machine Learning Research, 17(1):8374–8414, 2016.
276
+ [3] Aseem Baranwal, Kimon Fountoulakis, and Aukosh Jagannath. Graph convolution for semisupervised classification: Improved linear separability and out-of-distribution generalization. arXiv preprint arXiv:2102.06966, 2021.
277
+ [4] Luc Bégin, Pascal Germain, François Laviolette, and Jean-Francis Roy. Pac-bayesian theory for transductive learning. In Artificial Intelligence and Statistics, pages 105–113. PMLR, 2014.
278
+ [5] Avishek Joey Bose and William L. Hamilton. Compositional fairness constraints for graph embeddings. CoRR, abs/1905.10674, 2019. URL http://arxiv.org/abs/1905.10674.
279
+ [6] Maarten Buyl and Tijl De Bie. The kl-divergence between a graph model and its fair i-projection as a fairness regularizer. CoRR, abs/2103.01846, 2021. URL https://arxiv.org/abs/2103. 01846.
280
+ [7] Enyan Dai and Suhang Wang. Say no to the discrimination: Learning fair graph neural networks with limited sensitive attribute information. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, WSDM ’21, page 680–688, New York, NY, USA, 2021. Association for Computing Machinery. ISBN 9781450382977. doi: 10.1145/3437963. 3441752. URL https://doi.org/10.1145/3437963.3441752.
281
+ [8] Yash Deshpande, Subhabrata Sen, Andrea Montanari, and Elchanan Mossel. Contextual stochastic block models. In NeurIPS, 2018.
282
+ [9] Simon S Du, Kangcheng Hou, Barnabás Póczos, Ruslan Salakhutdinov, Ruosong Wang, and Keyulu Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. arXiv preprint arXiv:1905.13192, 2019.
283
+ [10] Gintare Karolina Dziugaite, Kyle Hsu, Waseem Gharbieh, Gabriel Arpino, and Daniel Roy. On the role of data in pac-bayes. In International Conference on Artificial Intelligence and Statistics, pages 604–612. PMLR, 2021.
284
+ [11] Vikas Garg, Stefanie Jegelka, and Tommi Jaakkola. Generalization and representational limits of graph neural networks. In International Conference on Machine Learning, pages 3419–3430. PMLR, 2020.
285
+ [12] Pascal Germain, Alexandre Lacasse, Francois Laviolette, Mario March, and Jean-Francis Roy. Risk bounds for the majority vote: From a pac-bayesian analysis to a learning algorithm. Journal of Machine Learning Research, 16(26):787–860, 2015.
286
+ [13] Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pages 729–734. IEEE, 2005.
287
+ [14] Benjamin Guedj. A primer on pac-bayesian learning. arXiv preprint arXiv:1901.05353, 2019.
288
+ [15] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. In The Collected Works of Wassily Hoeffding, pages 409–426. Springer, 1994.
289
+
290
+ [16] Yifan Hou, Jian Zhang, James Cheng, Kaili Ma, Richard TB Ma, Hongzhi Chen, and MingChang Yang. Measuring and improving the use of graph information in graph neural networks. In International Conference on Learning Representations, 2019.
291
+
292
+ [17] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. arXiv preprint arXiv:2005.00687, 2020.
293
+
294
+ [18] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. In International Conference on Machine Learning, pages 2323–2332. PMLR, 2018.
295
+
296
+ [19] Ahmad Khajehnejad, Moein Khajehnejad, Mahmoudreza Babaei, Krishna P. Gummadi, Adrian Weller, and Baharan Mirzasoleiman. Crosswalk: Fairness-enhanced node representation learning, 2021.
297
+
298
+ [20] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
299
+
300
+ [21] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized pagerank. In ICLR, 2019.
301
+
302
+ [22] Charlotte Laclau, Ievgen Redko, Manvi Choudhary, and Christine Largeron. All of the fairness for edge prediction with optimal transport. CoRR, abs/2010.16326, 2020. URL https: //arxiv.org/abs/2010.16326.
303
+
304
+ [23] John Langford and John Shawe-Taylor. Pac-bayes & margins. Advances in neural information processing systems, pages 439–446, 2003.
305
+
306
+ [24] Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
307
+
308
+ [25] Renjie Liao, Raquel Urtasun, and Richard Zemel. A pac-bayesian approach to generalization bounds for graph neural networks. In ICLR, 2021.
309
+
310
+ [26] Yao Ma, Xiaorui Liu, Neil Shah, and Jiliang Tang. Is homophily a necessity for graph neural networks? arXiv preprint arXiv:2106.06134, 2021.
311
+
312
+ [27] David McAllester. Simplified pac-bayesian margin bounds. In Learning theory and Kernel machines, pages 203–215. Springer, 2003.
313
+
314
+ [28] Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27(1):415–444, 2001.
315
+
316
+ [29] Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5115–5124, 2017.
317
+
318
+ [30] Behnam Neyshabur, Srinadh Bhojanapalli, and Nathan Srebro. A pac-bayesian approach to spectrally-normalized margin bounds for neural networks. 2018.
319
+
320
+ [31] Hoang NT and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. arXiv preprint arXiv:1905.09550, 2019.
321
+
322
+ [32] Tahleen Rahman, Bartlomiej Surma, Michael Backes, and Yang Zhang. Fairwalk: Towards fair graph embedding. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19, pages 3289–3295. International Joint Conferences on Artificial Intelligence Organization, 7 2019. doi: 10.24963/ijcai.2019/456. URL https: //doi.org/10.24963/ijcai.2019/456.
323
+
324
+ [33] Omar Rivasplata. Subgaussian random variables: An expository note. Internet publication, PDF, 2012.
325
+
326
+ [34] Ryoma Sato. A survey on the expressive power of graph neural networks. arXiv preprint arXiv:2003.04078, 2020.
327
+ [35] Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE transactions on neural networks, 20(1):61–80, 2008.
328
+ [36] Franco Scarselli, Ah Chung Tsoi, and Markus Hagenbuchner. The vapnik–chervonenkis dimension of graph and recursive neural networks. Neural Networks, 108:248–259, 2018.
329
+ [37] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective classification in network data. AI magazine, 29(3):93–93, 2008.
330
+ [38] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of graph neural network evaluation. CoRR, abs/1811.05868, 2018. URL http:// arxiv.org/abs/1811.05868.
331
+ [39] Indro Spinelli, Simone Scardapane, Amir Hussain, and Aurelio Uncini. Biased edge dropout for enhancing fairness in graph representation learning, 2021.
332
+ [40] Joel A Tropp. An introduction to matrix concentration inequalities. Foundations and Trends in Machine Learning, 8(1-2):1–230, 2015.
333
+ [41] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2018.
334
+ [42] Saurabh Verma and Zhi-Li Zhang. Stability and generalization of graph convolutional neural networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1539–1548, 2019.
335
+ [43] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, et al. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019.
336
+ [44] Duncan J Watts and Steven H Strogatz. Collective dynamics of ‘small-world’networks. nature, 393(6684):440–442, 1998.
337
+ [45] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In International conference on machine learning, pages 6861–6871. PMLR, 2019.
338
+ [46] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 2020.
339
+ [47] Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In International conference on machine learning, pages 40–48. PMLR, 2016.
340
+ [48] Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 974–983, 2018.
341
+ [49] Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional networks: a deep learning framework for traffic forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, pages 3634–3640, 2018.
342
+ [50] Ziqian Zeng, Rashidul Islam, Kamrun Naher Keya, James R. Foulds, Yangqiu Song, and Shimei Pan. Fair representation learning for heterogeneous information networks. CoRR, abs/2104.08769, 2021. URL https://arxiv.org/abs/2104.08769.
343
+ [51] Wenda Zhou, Victor Veitch, Morgane Austern, Ryan P Adams, and Peter Orbanz. Nonvacuous generalization bounds at the imagenet scale: a pac-bayesian compression approach. In International Conference on Learning Representations, 2018.
parse/train/68B1ezcffDc/68B1ezcffDc_content_list.json ADDED
@@ -0,0 +1,1631 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Subgroup Generalization and Fairness of Graph Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 207,
8
+ 122,
9
+ 792,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jiaqi Ma ∗† jiaqima@umich.edu ",
17
+ "bbox": [
18
+ 230,
19
+ 220,
20
+ 375,
21
+ 250
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Junwei Deng ∗† junweid@umich.edu ",
28
+ "bbox": [
29
+ 437,
30
+ 222,
31
+ 586,
32
+ 250
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Qiaozhu Mei∗‡ qmei@umich.edu ",
39
+ "bbox": [
40
+ 647,
41
+ 222,
42
+ 769,
43
+ 250
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 286,
54
+ 535,
55
+ 301
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Despite enormous successful applications of graph neural networks (GNNs), theoretical understanding of their generalization ability, especially for node-level tasks where data are not independent and identically-distributed (IID), has been sparse. The theoretical investigation of the generalization performance is beneficial for understanding fundamental issues (such as fairness) of GNN models and designing better learning methods. In this paper, we present a novel PAC-Bayesian analysis for GNNs under a non-IID semi-supervised learning setup. Moreover, we analyze the generalization performances on different subgroups of unlabeled nodes, which allows us to further study an accuracy-(dis)parity-style (un)fairness of GNNs from a theoretical perspective. Under reasonable assumptions, we demonstrate that the distance between a test subgroup and the training set can be a key factor affecting the GNN performance on that subgroup, which calls special attention to the training node selection for fair learning. Experiments across multiple GNN models and datasets support our theoretical results4. ",
62
+ "bbox": [
63
+ 233,
64
+ 318,
65
+ 766,
66
+ 511
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 537,
77
+ 310,
78
+ 555
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Graph Neural Networks (GNNs) [13, 35, 20] are a family of machine learning models that can be used to model non-Euclidean data as well as inter-related samples in a flexible way. In recent years, there have been enormous successful applications of GNNs in various areas, such as drug discovery [18], computer vision [29], transportation forecasting [49], recommender systems [48], etc. Depending on the type of prediction target, the application tasks can be roughly categorized into node-level, edge-level, subgraph-level, and graph-level tasks [46]. ",
85
+ "bbox": [
86
+ 174,
87
+ 570,
88
+ 825,
89
+ 654
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In contrast to the marked empirical success, theoretical understanding of the generalization ability of GNNs has been rather limited. Among the existing literature, some studies [9, 11, 25] focus on the analysis of graph-level tasks where each sample is an entire graph and the samples of graphs are IID. A very limited number of studies [36, 42] explore GNN generalization for node-level tasks but they assume the nodes (and their associated neighborhoods) are IID samples, which does not align with the commonly seen graph-based semi-supervised learning setups. Baranwal et al. [3] investigate GNN generalization without IID assumptions but under a specific data generating mechanism. ",
96
+ "bbox": [
97
+ 174,
98
+ 660,
99
+ 825,
100
+ 757
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this work, our first contribution is to provide a novel PAC-Bayesian analysis for the generalization ability of GNNs on node-level tasks with non-IID assumptions. In particular, we assume the node features are fixed and the node labels are independently sampled from distributions conditioned on the node features. We also assume the training set and the test set can be chosen as arbitrary subsets of nodes on the graph. We first prove two general PAC-Bayesian generalization bounds (Theorem 1 and Theorem 2) under this non-IID setup. Subsequently, we derive a generalization bound for GNN (Theorem 3) in terms of characteristics of the GNN models and the node features. ",
107
+ "bbox": [
108
+ 176,
109
+ 763,
110
+ 823,
111
+ 833
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 173,
120
+ 92,
121
+ 823,
122
+ 119
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Notably, the generalization bound for GNN is influenced by the distance between the test nodes and the training nodes in terms of their aggregated node features. This suggests that, given a fixed training set, test nodes that are “far away” from all the training nodes may suffer from larger generalization errors. Based on this analysis, our second contribution is the discovering of a type of unfairness that arises from theoretically predictable accuracy disparity across some subgroups of test nodes. We further conduct a empirical study that investigates the prediction accuracy of four popular GNN models on different subgroups of test nodes. The results on multiple benchmark datasets indicate that there is indeed a significant disparity in test accuracy among these subgroups. ",
129
+ "bbox": [
130
+ 173,
131
+ 126,
132
+ 825,
133
+ 237
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We summarize the contributions of this work as follows: ",
140
+ "bbox": [
141
+ 173,
142
+ 242,
143
+ 544,
144
+ 257
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "(1) We establish a novel PAC-Bayesian analysis for graph-based semi-supervised learning with non-IID assumptions. \n(2) Under this setup, we derive a generalization bound for GNNs that can be applied to an arbitrary subgroup of test nodes. \n(3) As an implication of the generalization bound, we predict that there would be an unfairness of GNN predictions that arises from accuracy disparity across subgroups of test nodes. \n(4) We empirically verify the existence of accuracy disparity of popular GNN models on multiple benchmark datasets, as predicted by our theoretical analysis. ",
151
+ "bbox": [
152
+ 205,
153
+ 267,
154
+ 825,
155
+ 393
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 Related Work ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 174,
165
+ 411,
166
+ 321,
167
+ 429
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "2.1 Generalization of Graph Neural Networks ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 174,
177
+ 443,
178
+ 508,
179
+ 458
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "The majority of existing literature that aims to develop theoretical understandings of GNNs have focused on the expressive power of GNNs (see Sato [34] for a survey along this line), while the number of studies trying to understand the generalizability of GNNs is rather limited. Among them, some [9, 11, 25] focus on graph-level tasks, the analyses of which cannot be easily applied to node-level tasks. As far as we know, Scarselli et al. [36], Verma and Zhang [42], and Baranwal et al. [3] are the only existing studies investigating the generalization of GNNs on node-level tasks, even though node-level tasks are more common in reality. Scarselli et al. [36] present an upper bound of the VC-dimension of GNNs; Verma and Zhang [42] derive a stability-based generalization bound for a single-layer GCN [20] model. Yet, both Scarselli et al. [36] and Verma and Zhang [42] (implicitly) assume that the training nodes are IID samples from a certain distribution, which does not align with the common practice of node-level semi-supervised learning. Baranwal et al. [3] investigate the generalization of graph convolution under a specific data generating mechanism (i.e., the contextual stochastic block model [8]). Our work presents the first generalization analysis of GNNs for non-IID node-level tasks without strong assumptions on the data generating mechanism. ",
186
+ "bbox": [
187
+ 174,
188
+ 468,
189
+ 826,
190
+ 661
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "2.2 Fairness of Machine Learning on Graphs ",
197
+ "text_level": 1,
198
+ "bbox": [
199
+ 176,
200
+ 678,
201
+ 500,
202
+ 693
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "The fairness issues of machine learning on graphs start to receive research attention recently. Following conventional machine learning fairness literature, the majority of previous work along this line [1, 5–7, 22, 32, 39, 50] concerns about fairness with respect to a given sensitive attribute, such as gender or race, which defines protected groups. In practice, the fairness issues of learning on graphs are much more complicated due to the asymmetric nature of the graph-structured data. However, only a few studies [19] investigate the unfairness caused by the graph structure without knowing a sensitive feature. Moreover, in a node-level semi-supervised learning task, the non-IID sampling of training nodes brings additional uncertainty to the fairness of the learned models. This work is the first to present a learning theoretic analysis under this setup, which in turn suggests how the graph structure and the selection of training nodes may influence the fairness of machine learning on graphs. ",
209
+ "bbox": [
210
+ 174,
211
+ 703,
212
+ 825,
213
+ 842
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "2.3 PAC-Bayesian Analysis ",
220
+ "text_level": 1,
221
+ "bbox": [
222
+ 174,
223
+ 857,
224
+ 375,
225
+ 872
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "PAC-Bayesian analysis [27] has become one of the most powerful theoretical framework to analyze the generalization ability of machine learning models. We will briefly introduce the background in ",
232
+ "bbox": [
233
+ 174,
234
+ 882,
235
+ 821,
236
+ 911
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Section 3.2, and refer the readers to a recent tutorial [14] for a systematic overview of PAC-Bayesian analysis. We note that Liao et al. [25] recently present a PAC-Bayesian generalization bound for GNNs on IID graph-level tasks. Both Liao et al. [25] and this work utilize results from Neyshabur et al. [30], a PAC-Bayesian analysis for ReLU-activated neural networks, in part of our proofs. Compared to Neyshabur et al. [30], the key contribution of Liao et al. [25] is the derivation of perturbation bounds of two types of GNN architectures; while the key contribution of this work is the novel analysis under the setup of non-IID node-level tasks. There is also an existing work of PAC-Bayesian analysis for transductive semi-supervised learning [4]. But it is different from our problem setup and, in particular, it cannot be used to analyze the generalization on subgroups. ",
243
+ "bbox": [
244
+ 173,
245
+ 90,
246
+ 826,
247
+ 217
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "3 Preliminaries ",
254
+ "text_level": 1,
255
+ "bbox": [
256
+ 174,
257
+ 234,
258
+ 318,
259
+ 252
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "In this section, we first formulate the problem of node-level semi-supervised learning. We also provide a brief introduction of the PAC-Bayesian framework. ",
266
+ "bbox": [
267
+ 174,
268
+ 265,
269
+ 823,
270
+ 294
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "3.1 The Problem Formulation and Notations ",
277
+ "text_level": 1,
278
+ "bbox": [
279
+ 173,
280
+ 309,
281
+ 496,
282
+ 324
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Semi-supervised node classification. Let $G = ( V , E ) \\in \\mathcal G _ { N }$ be an undirected graph, with $V = \\{ 1 , \\bar { 2 } , \\dots , N \\}$ being the set of $N$ nodes and $E \\subseteq V \\times V$ being the set of edges. And $\\mathcal { G } _ { N }$ is the space of all undirected graphs with $N$ nodes. The nodes are associated with node features $\\boldsymbol { X } \\in \\mathbb { R } ^ { \\hat { \\boldsymbol { N } } \\times \\boldsymbol { D } }$ and node labels $y \\in \\{ 1 , 2 , \\ldots , K \\} ^ { N }$ . ",
289
+ "bbox": [
290
+ 174,
291
+ 335,
292
+ 825,
293
+ 393
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "In this work, we focus on the transductive node classification setting [47], where the node features $X$ and the graph $G$ are observed prior to learning, and every quantity of interest in the analysis will be conditioned on $X$ and $G$ . Without loss of generality, we treat $X$ and $G$ as fixed throughout our analysis, and the randomness comes from the labels $y$ . In particular, we assume that for each node $i \\in V$ , its label $y _ { i }$ is generated from an unknown conditional distribution $\\mathrm { P r } ( y _ { i } \\mid Z _ { i } )$ , where $Z = g ( X , G )$ and $g : \\mathbb { R } ^ { N \\times D } \\times \\mathcal { G } _ { N } \\mathbb { R } ^ { N \\times D ^ { \\prime } }$ is an aggregation function that aggregates the features over (multi-hop) local neighborhoods5. We also assume that the node labels are generated independently conditional on their respective aggregated features $Z _ { i }$ ’s. ",
300
+ "bbox": [
301
+ 173,
302
+ 397,
303
+ 825,
304
+ 513
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Given a small set of the labeled nodes, $V _ { 0 } \\subseteq V$ , the task of node-level semi-supervised learning is to learn a classifier $h : \\mathbb { R } ^ { N \\times D } \\times \\mathcal { G } _ { N } \\mathbb { R } ^ { N \\times K }$ from a function family $\\mathcal { H }$ and perform it on the remaining unlabeled nodes. Given a classifier $h$ , the classification for a node $i$ is obtained by ",
311
+ "bbox": [
312
+ 174,
313
+ 517,
314
+ 825,
315
+ 560
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "equation",
321
+ "img_path": "images/d52d86c3dd14f3a17979157016e249aa6cf3d0cc7c78d4b213a4be01cb97b120.jpg",
322
+ "text": "$$\n\\hat { y } _ { i } = \\underset { k \\in \\{ 1 , \\dots , K \\} } { \\mathrm { a r g m a x } } h _ { i } ( X , G ) [ k ] ,\n$$",
323
+ "text_format": "latex",
324
+ "bbox": [
325
+ 401,
326
+ 564,
327
+ 593,
328
+ 592
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "where $h _ { i } ( X , G )$ is the $i$ -th row of $h ( X , G )$ and $h _ { i } ( X , G ) [ k ]$ refers to the $k$ -th element of $h _ { i } ( X , G )$ . ",
335
+ "bbox": [
336
+ 174,
337
+ 597,
338
+ 820,
339
+ 613
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Subgroups. In Section 4, we will present an analysis of the GNN generalization performance on any subgroup of the set of unlabeled nodes, $V \\setminus \\bar { V _ { 0 } }$ . Note that the analysis on any subgroup is a stronger result than that on the entire unlabeled set, as any set is a subset of itself. Later we will show that the analysis on subgroups (rather than on the entire set) further allows us to investigate the accuracy disparity across subgroups. We denote a collection of subgroups of interest as $V _ { 1 } , \\bar { V } _ { 2 } , \\ldots , V _ { M } \\subseteq \\bar { V } \\setminus \\bar { V } _ { 0 }$ . In practice, a subgroup can be defined based on an attribute of the nodes (e.g., a gender group), certain graph-based properties, or an arbitrary partition of the nodes. We also define the size of each subgroup as $N _ { m } : = | V _ { m } | , m = 0 , \\ldots , M$ . ",
346
+ "bbox": [
347
+ 173,
348
+ 619,
349
+ 825,
350
+ 732
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Margin loss on each subgroup. Now we can define the empirical and expected margin loss of any classifier $h \\in \\mathcal H$ on each subgroup $V _ { m } , m = 0 , 1 , \\dots , M$ . Given a sample of observed node labels $y _ { i }$ ’s, the empirical margin loss of $h$ on $V _ { m }$ for a margin $\\gamma \\geq 0$ is defined as ",
357
+ "bbox": [
358
+ 174,
359
+ 738,
360
+ 825,
361
+ 781
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "equation",
367
+ "img_path": "images/c45f73335bd99a9af2447ab8e02052461a0b4c5342b50f207e76c052c8f2b707.jpg",
368
+ "text": "$$\n\\widehat { \\mathcal { L } } _ { m } ^ { \\gamma } ( h ) : = \\frac { 1 } { N _ { m } } \\sum _ { i \\in V _ { m } } \\mathbb { 1 } \\left[ h _ { i } ( X , G ) [ y _ { i } ] \\leq \\gamma + \\operatorname* { m a x } _ { k \\neq y _ { i } } h _ { i } ( X , G ) [ k ] \\right] ,\n$$",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 284,
372
+ 785,
373
+ 710,
374
+ 824
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "where $\\mathbb { 1 } \\left[ \\cdot \\right]$ is the indicator function. The expected margin loss is the expectation of Eq. (1), i.e., ",
381
+ "bbox": [
382
+ 171,
383
+ 829,
384
+ 800,
385
+ 844
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/f254ad428adeaf5a7c0f4303e4ddcc081b96723c54c44d9d8699c10b3aef8430.jpg",
392
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { m } ^ { \\gamma } ( h ) : = \\mathbb { E } _ { y _ { i } \\sim \\operatorname* { P r } ( \\mathbf { y } \\mid Z _ { i } ) , i \\in V _ { m } } \\widehat { \\mathcal { L } } _ { m } ^ { \\gamma } ( h ) . } \\end{array}\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 377,
396
+ 848,
397
+ 620,
398
+ 869
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "To simplify the notation, we define $y ^ { m } : = \\{ y _ { i } \\} _ { i \\in V _ { m } }$ , $\\forall m = 0 , \\ldots , M$ , so that Eq. (2) can be written as $\\bar { \\mathcal { L } } _ { m } ^ { \\gamma } \\bar { ( } h ) \\bar { = } \\mathbb { E } _ { y ^ { m } } \\widehat { \\mathcal { L } } _ { m } ^ { \\gamma } ( h )$ . We note that the classification risk and empirical risk of $h$ on $V _ { m }$ are respectively equal to $\\mathcal { L } _ { m } ^ { 0 } ( h )$ and $\\widehat { \\mathcal { L } } _ { m } ^ { 0 } ( h )$ . ",
405
+ "bbox": [
406
+ 174,
407
+ 90,
408
+ 825,
409
+ 141
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "3.2 The PAC-Bayesian Framework ",
416
+ "text_level": 1,
417
+ "bbox": [
418
+ 174,
419
+ 159,
420
+ 429,
421
+ 174
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "The PAC-Bayesian framework [27] is an approach to analyze the generalization ability of a stochastic predictor drawn from a distribution $Q$ over the predictor family $\\mathcal { H }$ that is learned from the training data. For any stochastic classifier distribution $Q$ and $m = 0 , \\ldots , M$ , slightly overloading the notation, we denote the empirical margin loss of $Q$ on $V _ { m }$ as ${ \\widehat { \\mathcal { L } } } _ { m } ^ { \\gamma } ( Q )$ , and the corresponding expected margin loss as $\\mathcal { L } _ { m } ^ { \\gamma } ( Q )$ . And they are given by ",
428
+ "bbox": [
429
+ 173,
430
+ 184,
431
+ 826,
432
+ 258
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "img_path": "images/64432050e29f91da93f8a34f0f0e7ba84fa71525e03ebb4992dde54dacfdb228.jpg",
439
+ "text": "$$\n\\widehat { \\mathscr { L } } _ { m } ^ { \\gamma } ( Q ) : = \\mathbb { E } _ { h \\sim Q } \\widehat { \\mathscr { L } } _ { m } ^ { \\gamma } ( h ) , \\quad \\mathscr { L } _ { m } ^ { \\gamma } ( Q ) : = \\mathbb { E } _ { h \\sim Q } \\mathscr { L } _ { m } ^ { \\gamma } ( h ) .\n$$",
440
+ "text_format": "latex",
441
+ "bbox": [
442
+ 321,
443
+ 267,
444
+ 676,
445
+ 287
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "In general, a PAC-Bayesian analysis aims to bound the generalization gap between $\\mathcal { L } _ { m } ^ { \\gamma } ( Q )$ and $\\widehat { \\mathcal { L } } _ { m } ^ { \\gamma } ( Q )$ . The analysis is usually done by first proving that, for any “prior” distribution6 $P$ over $\\mathcal { H }$ that is independent of the training data, the generalization gap can be controlled by the discrepancy between $P$ and $Q$ ; the analysis is then followed by careful choices of $P$ to get concrete upper bounds of the generalization gap. While the PAC-Bayesian framework is built on top of stochastic predictors, there exist standard techniques [23] that can be used to derive generalization bounds for deterministic predictors from PAC-Bayesian bounds. ",
452
+ "bbox": [
453
+ 173,
454
+ 295,
455
+ 826,
456
+ 397
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Finally, we denote the Kullback-Leibler $( K L )$ divergence as $\\begin{array} { r } { D _ { \\mathrm { K L } } ( Q \\| P ) : = \\int \\ln \\frac { d Q } { d P } d Q } \\end{array}$ , which will be used in the following analysis. ",
463
+ "bbox": [
464
+ 171,
465
+ 401,
466
+ 823,
467
+ 434
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "4 The Generalization Bound and Its Implications for Fairness ",
474
+ "text_level": 1,
475
+ "bbox": [
476
+ 173,
477
+ 454,
478
+ 702,
479
+ 473
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "As we mentioned in Section 2.3, existing PAC-Bayesian analyses cannot be directly applied to the nonIID semi-supervised learning setup where we care about the generalization (and its disparity) across different subgroups of the unlabeled samples. In this section, we first present general PAC-Bayesian theorems for subgroup generalization under our problem setup; then we derive a generalization bound for GNNs and discuss fairness implications of the bound. ",
486
+ "bbox": [
487
+ 173,
488
+ 487,
489
+ 826,
490
+ 558
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "4.1 General PAC-Bayesian Theorems for Subgroup Generalization ",
497
+ "text_level": 1,
498
+ "bbox": [
499
+ 174,
500
+ 577,
501
+ 650,
502
+ 592
503
+ ],
504
+ "page_idx": 3
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Stochastic classifier bound. We first present the general PAC-Bayesian theorem (Theorem 1) for subgroup generalization of stochastic classifiers. The generalization bound depends on a notion of expected loss discrepancy between two subgroups as defined below. ",
509
+ "bbox": [
510
+ 174,
511
+ 604,
512
+ 825,
513
+ 647
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Definition 1 (Expected Loss Discrepancy). Given a distribution $P$ over $\\mathcal { H }$ , for any $\\lambda > 0$ and $\\gamma \\geq 0$ for any two subgroups $V _ { m }$ and $V _ { m ^ { \\prime } }$ $0 \\leq m , m ^ { \\prime } \\leq M )$ , define the expected loss discrepancy between $V _ { m }$ and $V _ { 0 }$ with respect to $( P , \\gamma , \\lambda )$ as ",
520
+ "bbox": [
521
+ 173,
522
+ 652,
523
+ 823,
524
+ 695
525
+ ],
526
+ "page_idx": 3
527
+ },
528
+ {
529
+ "type": "equation",
530
+ "img_path": "images/251f0e935db798647347016b52c2f221e14f5acede631403884d2ebc9c3d49a8.jpg",
531
+ "text": "$$\nD _ { m , m ^ { \\prime } } ^ { \\gamma } ( P ; \\lambda ) : = \\ln \\mathbb { E } _ { h \\sim P } e ^ { \\lambda \\left( \\mathcal { L } _ { m } ^ { \\gamma / 2 } ( h ) - \\mathcal { L } _ { m ^ { \\prime } } ^ { \\gamma } ( h ) \\right) } ,\n$$",
532
+ "text_format": "latex",
533
+ "bbox": [
534
+ 346,
535
+ 704,
536
+ 650,
537
+ 728
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "where $\\mathcal { L } _ { m } ^ { \\gamma / 2 } ( h )$ and $\\mathcal { L } _ { m ^ { \\prime } } ^ { \\gamma } ( h )$ follow the definition of Eq. (2). ",
544
+ "bbox": [
545
+ 173,
546
+ 739,
547
+ 562,
548
+ 757
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Intuitively, $D _ { m , m ^ { \\prime } } ^ { \\gamma } ( P ; \\lambda )$ captures the difference of the expected loss between $V _ { m }$ and $V _ { m ^ { \\prime } }$ in an average sense (over $P$ ). Note that $D _ { m , m ^ { \\prime } } ^ { \\gamma } ( P ; \\lambda )$ is asymmetric in terms of $V _ { m }$ and $V _ { m ^ { \\prime } }$ , and can be negative if the loss on $V _ { m }$ is mostly smaller than that on $V _ { m ^ { \\prime } }$ . ",
555
+ "bbox": [
556
+ 173,
557
+ 767,
558
+ 825,
559
+ 815
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "For stochastic classifiers, we have the following Theorem 1. Proof can be found in Appendix A.1. ",
566
+ "bbox": [
567
+ 171,
568
+ 820,
569
+ 810,
570
+ 837
571
+ ],
572
+ "page_idx": 3
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "Theorem 1 (Subgroup Generalization of Stochastic Classifiers). For any $0 < m \\le M$ , for any $\\lambda > 0$ and $\\gamma \\geq 0 _ { ; }$ , for any “prior” distribution $P$ on $\\mathcal { H }$ that is independent of the training data on $V _ { 0 }$ , with ",
577
+ "bbox": [
578
+ 174,
579
+ 840,
580
+ 825,
581
+ 869
582
+ ],
583
+ "page_idx": 3
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "probability at least $1 - \\delta$ over the sample of $y ^ { 0 }$ , for any $Q$ on $\\mathcal { H }$ , we have7 ",
588
+ "bbox": [
589
+ 171,
590
+ 90,
591
+ 660,
592
+ 107
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "equation",
598
+ "img_path": "images/2a3892c9cc6f527d2495e5054a91c91432242f78f5801a66c57e9ae8b800263b.jpg",
599
+ "text": "$$\n\\mathcal { L } _ { m } ^ { \\gamma / 2 } ( Q ) \\leq \\widehat { \\mathcal { L } } _ { 0 } ^ { \\gamma } ( Q ) + \\frac { 1 } { \\lambda } \\left( D _ { \\mathrm { K L } } ( Q \\| P ) + \\ln \\frac { 1 } { \\delta } + \\frac { \\lambda ^ { 2 } } { 4 N _ { 0 } } + D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda ) \\right) .\n$$",
600
+ "text_format": "latex",
601
+ "bbox": [
602
+ 261,
603
+ 112,
604
+ 736,
605
+ 147
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Theorem 1 can be viewed as an adaptation of a result by Alquier et al. [2] from the IID supervised setting to our non-IID semi-supervised setting. The terms $\\begin{array} { r } { D _ { \\mathrm { K L } } ( Q \\| P ) , \\mathrm { l n } \\frac { 2 } { \\delta } } \\end{array}$ , and $\\frac { \\lambda ^ { 2 } } { 4 N _ { 0 } }$ are commonly seen in PAC-Bayesian analysis for IID supervised setting. In particular, when setting $\\lambda = \\Theta ( \\sqrt { N _ { 0 } } )$ , $\\begin{array} { r } { \\frac { 1 } { \\lambda } \\left( \\ln \\frac { 2 } { \\delta } + \\frac { \\lambda ^ { 2 } } { 4 N _ { 0 } } \\right) } \\end{array}$ vanishes as the training size $N _ { 0 }$ grows. The divergence between $Q$ and $P$ , $D _ { \\mathrm { K L } } ( Q \\| P )$ , is usually considered as a measurement of the model complexity [14]. And there will be a trade-off between the training loss, $\\widehat { \\mathcal { L } } _ { 0 } ^ { \\gamma } ( Q )$ , and the complexity (how far can the learned “posterior” $Q$ go from the “prior” $P$ ). ",
612
+ "bbox": [
613
+ 173,
614
+ 157,
615
+ 825,
616
+ 275
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Uniquely for the non-IID semi-supervised setting, there is an extra term $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda )$ , which is the expected loss discrepancy between the target test subgroup $V _ { m }$ and the training set $V _ { 0 }$ . Note that this quantity is independent of the training labels $y ^ { 0 }$ . Not surprisingly, it is difficult to give generalization guarantees if the expected loss on $V _ { m }$ is much larger than that on $V _ { 0 }$ for any stochastic classifier $P$ independent of training data. We have to make some assumptions about the relationship between $V _ { m }$ and $V _ { 0 }$ to obtain a meaningful bound on $\\begin{array} { r } { \\frac { 1 } { \\lambda } D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda ) } \\end{array}$ , which we will discuss in details in Section 4.2. ",
623
+ "bbox": [
624
+ 173,
625
+ 279,
626
+ 825,
627
+ 366
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Deterministic classifier bound. Utilizing standard techniques in PAC-Bayesian analysis [23, 27, 30], we can convert the bound for stochastic classifiers in Theorem 1 to a bound for deterministic classifiers as stated in Theorem 2 below (see Appendix A.2 for the proof). ",
634
+ "bbox": [
635
+ 173,
636
+ 371,
637
+ 825,
638
+ 414
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Theorem 2 (Subgroup Generalization of Deterministic Classifiers). Let $\\tilde { h }$ be any classifier in $\\mathcal { H }$ . For any $0 < m \\le M$ , for any $\\lambda > 0$ and $\\gamma \\geq 0$ , for any “prior” distribution $P$ on $\\mathcal { H }$ that is independent of the training data on $V _ { 0 }$ , with probability at least $1 - \\delta$ over the sample of $y ^ { 0 }$ , for any $Q$ on $\\mathcal { H }$ such that $\\begin{array} { r } { \\operatorname* { P r } _ { h \\sim Q } \\left( \\operatorname* { m a x } _ { i \\in V _ { 0 } \\cup V _ { m } } \\| h _ { i } ( X , G ) - \\tilde { h } _ { i } ( X , G ) \\| _ { \\infty } < \\frac { \\gamma } { 8 } \\right) > \\frac { 1 } { 2 } } \\end{array}$ , we have ",
645
+ "bbox": [
646
+ 173,
647
+ 419,
648
+ 825,
649
+ 484
650
+ ],
651
+ "page_idx": 4
652
+ },
653
+ {
654
+ "type": "equation",
655
+ "img_path": "images/58d1623d69b4b9c4aa8c896e24f0f8bf9d53658c4a937877d93d8e0b35711ab4.jpg",
656
+ "text": "$$\n\\mathcal { L } _ { m } ^ { 0 } ( \\widetilde { h } ) \\le \\widehat { \\mathcal { L } } _ { 0 } ^ { \\gamma } ( \\widetilde { h } ) + \\frac { 1 } { \\lambda } \\left( 2 ( D _ { \\mathrm { K L } } ( Q \\| P ) + 1 ) + \\ln \\frac { 1 } { \\delta } + \\frac { \\lambda ^ { 2 } } { 4 N _ { 0 } } + D _ { m , 0 } ^ { \\gamma / 2 } ( P ; \\lambda ) \\right) .\n$$",
657
+ "text_format": "latex",
658
+ "bbox": [
659
+ 245,
660
+ 491,
661
+ 753,
662
+ 526
663
+ ],
664
+ "page_idx": 4
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "Theorem 1 and 2 are not specific to GNNs and hold for any (respectively stochastic and deterministic) classifier under the semi-supervised setup. In Section 4.2, we will apply Theorem 2 to obtain a subgroup generalization bound that explicitly depends on the characteristics of GNNs and the data. ",
669
+ "bbox": [
670
+ 173,
671
+ 537,
672
+ 825,
673
+ 582
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "4.2 Subgroup Generalization Bound for Graph Neural Networks ",
680
+ "text_level": 1,
681
+ "bbox": [
682
+ 174,
683
+ 595,
684
+ 637,
685
+ 612
686
+ ],
687
+ "page_idx": 4
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "The GNN model. We consider GNNs where the node feature aggregation step and the prediction step are separate. In particular, we assume the GNN classifier takes the form of $h _ { i } ( X , G ) ~ =$ $f ( \\bar { g } _ { i } ( X , G ) ; W _ { 1 } , W _ { 2 } , \\underline { { { \\cdot \\cdot \\cdot } } } , W _ { L } )$ , where $g$ is an aggregation function as we described in Section 3.1 and $f$ is a ReLU-activated $L$ -layer Multi-Layer Perceptron (MLP) with $W _ { 1 } , \\dots , W _ { L }$ as parameters for each layer8. Denote the largest width of all the hidden layers as $b$ . ",
692
+ "bbox": [
693
+ 173,
694
+ 623,
695
+ 825,
696
+ 694
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Remark 1. There is a technical restriction on the possible choice of the aggregation function $g$ . For the following derivation of the generalization bound (6) to be valid, we need the condition that the node labels $y _ { i }$ ’s are independent conditional on their aggregated features $g _ { i } ( X , G )$ ’s, as introduced in the problem formulation in Section 3.1. However, we also note that this condition tends to hold when the aggregated features $g _ { i } ( X , G )$ ’s contain rich information about the labels. ",
703
+ "bbox": [
704
+ 173,
705
+ 696,
706
+ 825,
707
+ 768
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Upper-bounding $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda )$ . To derive the generalization guarantee, we need to upper-bound the expected loss discrepancy $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda )$ . It turns out that we have to make some assumptions on the data in order to get a meaningful upper bound. ",
714
+ "bbox": [
715
+ 174,
716
+ 780,
717
+ 825,
718
+ 825
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "So far we have not had any restrictions on the conditional label distributions $\\operatorname* { P r } ( y _ { i } = k \\mid g _ { i } ( X , G ) )$ If the label distributions on $V \\backslash V _ { 0 }$ can be arbitrarily different from those on $V _ { 0 }$ , the generalization can be arbitrarily poor. We therefore assume that the label distributions conditional on aggregated features are smooth (Assumption 1). ",
725
+ "bbox": [
726
+ 173,
727
+ 830,
728
+ 823,
729
+ 859
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "",
736
+ "bbox": [
737
+ 171,
738
+ 90,
739
+ 823,
740
+ 121
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "Assumption 1 (Smoothness of Data Distribution). Assume there exist $c$ -Lipschitz continuous functions $\\mathring { \\eta _ { 1 } } , \\eta _ { 2 } , \\dotsc , \\eta _ { K } : \\mathbb { R } ^ { D ^ { \\prime } } [ 0 , 1 ]$ , such that, for any node $i \\in V$ , ",
747
+ "bbox": [
748
+ 173,
749
+ 122,
750
+ 825,
751
+ 154
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "equation",
757
+ "img_path": "images/de88584bc801a4d743515e4152923b1944acce172e82245b43a3c765853a4b39.jpg",
758
+ "text": "$$\n\\operatorname* { P r } ( y _ { i } = k \\mid g _ { i } ( X , G ) ) = \\eta _ { k } ( g _ { i } ( X , G ) ) , \\forall k = 1 , \\ldots , K .\n$$",
759
+ "text_format": "latex",
760
+ "bbox": [
761
+ 313,
762
+ 157,
763
+ 684,
764
+ 175
765
+ ],
766
+ "page_idx": 5
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "We also need to characterize the relationship between a target test subgroup $V _ { m }$ and the training set $V _ { 0 }$ . For this purpose, we define the distance from $V _ { m }$ to $V _ { 0 }$ and the concept of near set below. ",
771
+ "bbox": [
772
+ 173,
773
+ 185,
774
+ 825,
775
+ 214
776
+ ],
777
+ "page_idx": 5
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "Definition 2 (Distance To Training Set and Near Set). For each $0 < m \\le M$ , define the distance from the subgroup $V _ { m }$ to the training set $V _ { 0 }$ as ",
782
+ "bbox": [
783
+ 173,
784
+ 217,
785
+ 823,
786
+ 246
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "equation",
792
+ "img_path": "images/f7752fd07052d77fed2ae327e680343a67084c54807d10fa53f1b698af41e46d.jpg",
793
+ "text": "$$\n\\epsilon _ { m } : = \\operatorname* { m a x } _ { j \\in V _ { m } } \\operatorname* { m i n } _ { i \\in V _ { 0 } } \\| g _ { i } ( X , G ) - g _ { j } ( X , G ) \\| _ { 2 } .\n$$",
794
+ "text_format": "latex",
795
+ "bbox": [
796
+ 356,
797
+ 250,
798
+ 642,
799
+ 275
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Further, for each $i \\in V _ { 0 }$ , define the near set of $i$ with respect to $V _ { m }$ as ",
806
+ "bbox": [
807
+ 173,
808
+ 277,
809
+ 632,
810
+ 294
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "equation",
816
+ "img_path": "images/70d34dc9d33b7b2aaa231e517cf62a872ff6085234cd58ab25ee29b4bc93ee3b.jpg",
817
+ "text": "$$\nV _ { m } ^ { ( i ) } : = \\{ j \\in V _ { m } \\mid \\| g _ { i } ( X , G ) - g _ { j } ( X , G ) \\| _ { 2 } \\leq \\epsilon _ { m } \\} .\n$$",
818
+ "text_format": "latex",
819
+ "bbox": [
820
+ 323,
821
+ 297,
822
+ 671,
823
+ 318
824
+ ],
825
+ "page_idx": 5
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Clearly, ",
830
+ "bbox": [
831
+ 173,
832
+ 320,
833
+ 227,
834
+ 335
835
+ ],
836
+ "page_idx": 5
837
+ },
838
+ {
839
+ "type": "equation",
840
+ "img_path": "images/858d59592d993ed28f882d7bad558139be6f2b553872658f28d5b5499ed8a1a3.jpg",
841
+ "text": "$$\nV _ { m } = \\cup _ { i \\in V _ { 0 } } V _ { m } ^ { ( i ) } .\n$$",
842
+ "text_format": "latex",
843
+ "bbox": [
844
+ 439,
845
+ 333,
846
+ 558,
847
+ 353
848
+ ],
849
+ "page_idx": 5
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Then, with the Assumption 2 and 3 below, we can bound the expected loss discrepancy $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda )$ with the following Lemma 1 (see the proof in Appendix A.3). ",
854
+ "bbox": [
855
+ 174,
856
+ 361,
857
+ 826,
858
+ 390
859
+ ],
860
+ "page_idx": 5
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Assumption 2 (Equal-Sized and Disjoint Near Sets). For any $0 < m \\le M$ , assume the near sets of each $i \\in V _ { 0 }$ with respect to $V _ { m }$ are disjoint and have the same size $s _ { m } \\in \\mathbb { N } ^ { + }$ . ",
865
+ "bbox": [
866
+ 173,
867
+ 392,
868
+ 825,
869
+ 421
870
+ ],
871
+ "page_idx": 5
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Assumption 3 (Concentrated Expected Loss Difference). Let $P$ be a distribution on $\\mathcal { H }$ , defined by sampling the vectorized MLP parameters from ${ \\mathcal { N } } ( 0 , \\sigma ^ { 2 } I )$ for some $\\begin{array} { r } { \\sigma ^ { 2 } \\le \\frac { ( \\gamma / 8 \\epsilon _ { m } ) ^ { 2 / L } } { 2 b ( \\lambda N _ { 0 } ^ { - \\alpha } + \\ln { 2 b L } ) } } \\end{array}$ For any $L$ - layer GNN classifier $h \\in \\mathcal H$ with model parameters $W _ { 1 } ^ { h } , \\ldots , W _ { L } ^ { h }$ , define $T _ { h } : = \\operatorname* { m a x } _ { l = 1 , \\ldots , L } \\| W _ { l } \\| _ { 2 }$ . Assume that there exists some $\\textstyle 0 < \\alpha < { \\frac { 1 } { 4 } }$ satisfying ",
876
+ "bbox": [
877
+ 173,
878
+ 422,
879
+ 826,
880
+ 494
881
+ ],
882
+ "page_idx": 5
883
+ },
884
+ {
885
+ "type": "equation",
886
+ "img_path": "images/f2e2ef052fe29a4dba0573498e7dbeb1d6eb0ae441f6836551b31af6a640121d.jpg",
887
+ "text": "$$\n\\operatorname* { P r } _ { h \\sim P } \\left( \\mathcal { L } _ { m } ^ { \\gamma / 4 } ( h ) - \\mathcal { L } _ { 0 } ^ { \\gamma / 2 } ( h ) > N _ { 0 } ^ { - \\alpha } + c K \\epsilon _ { m } \\mid T _ { h } ^ { L } \\epsilon _ { m } > \\frac { \\gamma } { 8 } \\right) \\le e ^ { - N _ { 0 } ^ { 2 \\alpha } } .\n$$",
888
+ "text_format": "latex",
889
+ "bbox": [
890
+ 267,
891
+ 500,
892
+ 725,
893
+ 526
894
+ ],
895
+ "page_idx": 5
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Lemma 1 (Bound for $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda ) )$ . Under Assumption $I$ , 2 and 3, for any $0 < m \\le M$ , any $0 < \\lambda \\leq N _ { 0 } ^ { 2 \\alpha }$ and $\\gamma \\geq 0$ , assume the “prior” $P$ on $\\mathcal { H }$ is defined by sampling the vectorized $M L P$ parameters from ${ \\mathcal { N } } ( 0 , \\sigma ^ { 2 } I )$ for some $\\begin{array} { r } { \\sigma ^ { 2 } \\le \\frac { ( \\gamma / 8 \\epsilon _ { m } ) ^ { 2 / L } } { 2 b ( \\lambda N _ { 0 } ^ { - \\alpha } + \\ln { 2 b L } ) } } \\end{array}$ . We have ",
900
+ "bbox": [
901
+ 173,
902
+ 531,
903
+ 826,
904
+ 588
905
+ ],
906
+ "page_idx": 5
907
+ },
908
+ {
909
+ "type": "equation",
910
+ "img_path": "images/092e640e7b2d7a5576a5e3ed10f256bd997cb9889c176e28b5661b1bc013d4fa.jpg",
911
+ "text": "$$\nD _ { m , 0 } ^ { \\gamma / 2 } ( P ; \\lambda ) \\leq \\ln { 3 } + \\lambda c K \\epsilon _ { m } .\n$$",
912
+ "text_format": "latex",
913
+ "bbox": [
914
+ 397,
915
+ 592,
916
+ 601,
917
+ 614
918
+ ],
919
+ "page_idx": 5
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Intuitively, what we need to bound $D _ { m , 0 } ^ { \\gamma } ( P ; \\lambda )$ is that the training set $V _ { 0 }$ is “representative” for $V _ { m }$ . This is reasonable in practice as it is natural to select the training samples according to the distribution of the population. Specifically, Assumption 2 assumes that $V _ { m }$ can be split into equalsized partitions indexed by the training samples. The elements of each partition $V _ { m } ^ { ( i ) }$ are close to the corresponding training sample $i$ but not so close to training samples other than $i$ . This assumption is stronger than needed to obtain a meaningful bound on $\\bar { D } _ { m , 0 } ^ { \\gamma } \\bar { ( } P ; \\lambda )$ , and we can relax it by only assuming that most samples in $V _ { m }$ have proportional “close representatives” in $V _ { 0 }$ . But we keep Assumption 2 in this work, as it is intuitively clear and significantly eases the analysis and notations. Assumption 3 essentially assumes that the expected margin loss on $V _ { m }$ is not much larger than that on $V _ { 0 }$ when the number of samples becomes large. We first note that this assumption becomes trivially true in the degenerate case that all samples in $V _ { m }$ and $V _ { 0 }$ are IID. In this case, $\\bar { \\mathcal { L } } _ { m } ^ { \\gamma / 4 } ( h ) = \\bar { \\mathcal { L } } _ { 0 } ^ { \\gamma / 4 } ( h ) < \\bar { \\mathcal { L } } _ { 0 } ^ { \\gamma / 2 } ( h ) \\bar { \\ } \\leq 0$ for any classifier $h$ . In Appendix A.5, we further provide a simple non-IID example where Assumption 3 holds. ",
924
+ "bbox": [
925
+ 173,
926
+ 625,
927
+ 826,
928
+ 814
929
+ ],
930
+ "page_idx": 5
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "The bound (5) suggests that the closer between $V _ { m }$ and $V _ { 0 }$ (smaller $\\epsilon _ { m }$ ), the smaller the expected loss discrepancy. ",
935
+ "bbox": [
936
+ 176,
937
+ 819,
938
+ 821,
939
+ 848
940
+ ],
941
+ "page_idx": 5
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Bound for GNNs. Finally, with an additional technical assumption (Assumption 4) that the maximum L2 norm of aggregated node features does not grow too fast in terms of the number of training samples, we obtain a subgroup generalization bound for GNNs in Theorem 3. The proof of Theorem 3 can be found in Appendix A.4. ",
946
+ "bbox": [
947
+ 174,
948
+ 854,
949
+ 825,
950
+ 911
951
+ ],
952
+ "page_idx": 5
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "Assumption 4. Define $B _ { m } : = \\operatorname* { m a x } _ { i \\in V _ { 0 } \\cup V _ { m } } \\| g _ { i } ( X , G ) \\| _ { 2 }$ . For any classifier $\\tilde { h } \\in \\mathcal { H }$ with parameters $\\{ \\widetilde { W } _ { l } \\} _ { l = 1 } ^ { L }$ , assume $\\| \\widetilde { W } _ { l } \\| _ { F } \\le C f o r l = 1 , \\ldots , L .$ . Assume $B _ { m } , C$ are constants with respect to $N _ { 0 }$ . ",
957
+ "bbox": [
958
+ 174,
959
+ 90,
960
+ 825,
961
+ 123
962
+ ],
963
+ "page_idx": 6
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Theorem 3 (Subgroup Generalization Bound for GNNs). Let $\\tilde { h }$ be any classifier in $\\mathcal { H }$ with parameters $\\{ \\widetilde { W } _ { l } \\} _ { l = 1 } ^ { L }$ . Under Assumptions 1, 2, 3, and 4, for any $0 < m \\le M$ , $\\gamma \\geq 0$ , and large enough $N _ { 0 }$ , with probability at least $1 - \\delta$ over the sample of $y ^ { 0 }$ , we have ",
968
+ "bbox": [
969
+ 174,
970
+ 127,
971
+ 825,
972
+ 174
973
+ ],
974
+ "page_idx": 6
975
+ },
976
+ {
977
+ "type": "equation",
978
+ "img_path": "images/4e81a4c1e803f17863568334c94bb2b29431c47e2a6e43e05980a4efafa63784.jpg",
979
+ "text": "$$\n\\mathcal { L } _ { m } ^ { 0 } ( \\widetilde { h } ) \\leq \\widehat { \\mathcal { L } } _ { 0 } ^ { \\gamma } ( \\widetilde { h } ) + O \\left( c K \\epsilon _ { m } + \\frac { b \\sum _ { l = 1 } ^ { L } \\| \\widetilde { W } _ { l } \\| _ { F } ^ { 2 } } { ( \\gamma / 8 ) ^ { 2 / L } N _ { 0 } ^ { \\alpha } } ( \\epsilon _ { m } ) ^ { 2 / L } + \\frac { 1 } { N _ { 0 } ^ { 1 - 2 \\alpha } } + \\frac { 1 } { N _ { 0 } ^ { 2 \\alpha } } \\ln \\frac { L C ( 2 B _ { m } ) ^ { 1 / L } } { \\gamma ^ { 1 / L } \\delta } \\right) .\n$$",
980
+ "text_format": "latex",
981
+ "bbox": [
982
+ 181,
983
+ 178,
984
+ 820,
985
+ 219
986
+ ],
987
+ "page_idx": 6
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Next, we investigate the qualitative implications of our theoretical results. ",
992
+ "bbox": [
993
+ 174,
994
+ 241,
995
+ 656,
996
+ 256
997
+ ],
998
+ "page_idx": 6
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "4.3 Implications for Fairness of Graph Neural Networks ",
1003
+ "text_level": 1,
1004
+ "bbox": [
1005
+ 173,
1006
+ 271,
1007
+ 578,
1008
+ 286
1009
+ ],
1010
+ "page_idx": 6
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Theoretically predictable accuracy disparity. One merit of our analysis is that we can apply Theorem 3 on different subgroups of the unlabeled nodes and compare the subgroup generalization bounds. This allows us to study the accuracy disparity across subgroups from a theoretical perspective. ",
1015
+ "bbox": [
1016
+ 174,
1017
+ 299,
1018
+ 825,
1019
+ 340
1020
+ ],
1021
+ "page_idx": 6
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "A major factor that affects the generalization bound (6) is $\\epsilon _ { m }$ , the aggregated-feature distance (in terms of $g ( X , G ) )$ from the target test subgroup $V _ { m }$ to the training set $V _ { 0 }$ . The generalization bound (6) suggests that there is a better generalization guarantee for subgroups that are closer to the training set. In other words, it is unfair for subgroups that are far away from the training set. While our theoretical analysis can only tell the difference among upper bounds of generalization errors, we empirically verify that, in the following Section 5, the aggregated-feature distance $\\epsilon _ { m }$ is indeed a strong predictor for the test accuracy of each subgroup $V _ { m }$ . More specifically, the test accuracy decreases as the distance increases, which is consistent with the theoretical prediction given by the bound (6). ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 347,
1029
+ 825,
1030
+ 458
1031
+ ],
1032
+ "page_idx": 6
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Impact of the structural positions of nodes. We further investigate if the aggregated-feature distance can be related to simpler and more interpretable graph characteristics, in order to obtain a more intuitive understanding of how the structural positions of nodes influence the prediction accuracy on them. We find that the geodesic distance (length of the shortest path) between two nodes is positively related to the distance between their aggregated features in some scenarios9, such as when the node features exhibit homophily [28]. Empirically, we also observe that test nodes with larger geodesic distance to the training set tend to suffer from lower accuracy (see Figure 2). ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 465,
1040
+ 823,
1041
+ 563
1042
+ ],
1043
+ "page_idx": 6
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "In contrast, we find that common node centrality metrics (e.g., degree and PageRank) have less influence on the test accuracy (see Figure 3). These centrality metrics only capture the graph characteristics of the test nodes alone, but do not take their relationship to the training set into account, which is a key factor suggested by our theoretical analysis. ",
1048
+ "bbox": [
1049
+ 174,
1050
+ 569,
1051
+ 825,
1052
+ 625
1053
+ ],
1054
+ "page_idx": 6
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Impact of training data selection. Another implication of the theoretical results is that the selection of the training set plays an important role on the fairness of the learned GNN models. First, if the training set is selected unevenly on the graph, leaving part of the test nodes far away, there will likely be a large accuracy disparity. Second, a key ingredient in the proof of Lemma 1 is that the GNN predictions on two nodes tend to be more similar if they are closer in terms of the aggregated node features. This suggests that, if an individual training node is close to many test nodes, it may bias the predictions of the learned GNN on the test nodes towards the class it belongs to. ",
1059
+ "bbox": [
1060
+ 174,
1061
+ 632,
1062
+ 825,
1063
+ 729
1064
+ ],
1065
+ "page_idx": 6
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "5 Experiments ",
1070
+ "text_level": 1,
1071
+ "bbox": [
1072
+ 174,
1073
+ 750,
1074
+ 313,
1075
+ 766
1076
+ ],
1077
+ "page_idx": 6
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "In this section, we empirically verify the fairness implications suggested by our theoretical analysis. ",
1082
+ "bbox": [
1083
+ 176,
1084
+ 767,
1085
+ 823,
1086
+ 781
1087
+ ],
1088
+ "page_idx": 6
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "General setup. We experiment on 4 popular GNN models, GCN [20], GAT [41], SGC [45], and APPNP [21], as well as an MLP model for reference. For all models, we use the implementations by Deep Graph Library [43]. For each experiment setting, 40 independent trials are carried out. ",
1093
+ "bbox": [
1094
+ 176,
1095
+ 789,
1096
+ 820,
1097
+ 832
1098
+ ],
1099
+ "page_idx": 6
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "5.1 Accuracy Disparity Across Subgroups ",
1104
+ "text_level": 1,
1105
+ "bbox": [
1106
+ 174,
1107
+ 847,
1108
+ 478,
1109
+ 862
1110
+ ],
1111
+ "page_idx": 6
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Subgroups. We examine the accuracy disparity with three types of subgroups as described below. ",
1116
+ "bbox": [
1117
+ 176,
1118
+ 873,
1119
+ 818,
1120
+ 888
1121
+ ],
1122
+ "page_idx": 6
1123
+ },
1124
+ {
1125
+ "type": "image",
1126
+ "img_path": "images/48f1a17779a5858cf36af9557baf10070dff8a78e3728d933ffc0b4856a6f4fc.jpg",
1127
+ "image_caption": [
1128
+ "Figure 1: Test accuracy disparity across subgroups by aggregated-feature distance. Each figure corresponds to a dataset, and each bar cluster corresponds to a model. Bars labeled 1 to 5 represent subgroups with increasing distance to training set. Results are averaged over 40 independent trials with different random splits of the data, and the error bar represents the standard error of the mean. "
1129
+ ],
1130
+ "image_footnote": [],
1131
+ "bbox": [
1132
+ 176,
1133
+ 112,
1134
+ 812,
1135
+ 233
1136
+ ],
1137
+ "page_idx": 7
1138
+ },
1139
+ {
1140
+ "type": "image",
1141
+ "img_path": "images/6677d439e47c9833970758a260951d224a6965a92db8cf0bb8ba71dbefa1f5b3.jpg",
1142
+ "image_caption": [
1143
+ "Figure 2: Test accuracy disparity across subgroups by geodesic distance. The experiment and plot settings are the same as Figure 1, except for the bars labeled from 1 to 5 here represent subgroups with increasing shortest-path distance to training set. "
1144
+ ],
1145
+ "image_footnote": [],
1146
+ "bbox": [
1147
+ 176,
1148
+ 329,
1149
+ 812,
1150
+ 450
1151
+ ],
1152
+ "page_idx": 7
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Subgroup by aggregated-feature distance. In order to directly investigate the effect of $\\epsilon _ { m }$ on the generalization bound (6), we first split the test nodes into subgroups by their distance to the training set in terms of the aggregated features. We use the two-step aggregated features to calculate the distance. In particular, denote the adjacency matrix of the graph $G$ as $\\breve { A } \\in \\{ 0 , 1 \\} ^ { N \\times N }$ and the corresponding degree matrix as D, where D is an N × N diagonal matrix with Dii = PNj=1 Aij , ∀i = 1, . . . , N . Given the feature matrix $X \\in \\mathbb { R } ^ { N \\times D }$ , the two-step aggregated features $Z$ are obtained by $Z =$ $( D + I ) ^ { - 1 } ( A + I ) ( D + I ) ^ { - 1 } ( A + I ) X$ . For each test node $i$ , we calculate its aggregated-feature distance to the training set $V _ { 0 }$ as $\\begin{array} { r } { d _ { i } = \\operatorname* { m i n } _ { j \\in V _ { 0 } } \\| Z _ { i } - Z _ { j } \\| _ { 2 } } \\end{array}$ . Then we sort the test nodes according to this distance and split them into 5 equal-sized subgroups. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 530,
1160
+ 826,
1161
+ 661
1162
+ ],
1163
+ "page_idx": 7
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Strictly speaking, our theory does not directly apply to GCN and GAT as they are not in the form as we defined in Section 4.2. Moreover, the two-step aggregated feature does not match exactly to the feature aggregation function of SGC and APPNP. Nevertheless, we find that even with such approximations, we are still able to observe the expected descending trend of test accuracy with respect to increasing distance in terms of the two-step aggregated features, on all four GNN models. ",
1168
+ "bbox": [
1169
+ 174,
1170
+ 667,
1171
+ 825,
1172
+ 738
1173
+ ],
1174
+ "page_idx": 7
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Subgroup by geodesic distance. As we discussed in Section 4.3, geodesic distance on the graph may well relate to the aggregated-feature distance. So we also define subgroups based on geodesic distance. We split the subgroups by replacing the aggregated-feature distance $d _ { i }$ of each test node $i$ with the minimum of the geodesic distances from $i$ to each training node on the graph. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 743,
1182
+ 825,
1183
+ 799
1184
+ ],
1185
+ "page_idx": 7
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Subgroup by node centrality. Lastly, we define subgroups based on 4 types of common node centrality metrics (degree, closeness, betweenness, and PageRank) of the test nodes. We split the subgroups by replacing the aggregated-feature distance $d _ { i }$ of each test node $i$ with the centrality score of $i$ . The purpose of this setup is to show that the common node centrality metrics are not sufficient to capture the monotonic trend of test accuracy. ",
1190
+ "bbox": [
1191
+ 174,
1192
+ 805,
1193
+ 825,
1194
+ 875
1195
+ ],
1196
+ "page_idx": 7
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Experiment setup. Following common GNN experiment setup [38], we randomly select 20 nodes in each class for training, 500 nodes for validation, and 1,000 nodes for testing. Once training is done, we report the test accuracy on subgroups defined by aggregated-feature distance, geodesic distance, and node centrality in Figure 1, 2, and 3 respectively10. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 882,
1204
+ 821,
1205
+ 911
1206
+ ],
1207
+ "page_idx": 7
1208
+ },
1209
+ {
1210
+ "type": "image",
1211
+ "img_path": "images/62daec6597baf0aa2fbaf0628bb7dbf3b33af1d4106321e0808a137b7b93049f.jpg",
1212
+ "image_caption": [
1213
+ "Figure 3: Test accuracy disparity across subgroups by node centrality. Each figure corresponds to the results of a pair of model and dataset, and each bar cluster corresponds to the subgroups defined by a certain centrality metric. In each cluster, the bars labeled from 1 to 5 represent subgroups with decreasing node centrality. Other settings are the same as Figure 1. "
1214
+ ],
1215
+ "image_footnote": [],
1216
+ "bbox": [
1217
+ 176,
1218
+ 104,
1219
+ 812,
1220
+ 409
1221
+ ],
1222
+ "page_idx": 8
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "",
1227
+ "bbox": [
1228
+ 176,
1229
+ 473,
1230
+ 823,
1231
+ 501
1232
+ ],
1233
+ "page_idx": 8
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Experiment results. First, as shown in Figure 1, there is a clear trend that the accuracy of a test subgroup decreases as the aggregated-feature distance between the test subgroup and the training set increases. And the trend is consistent for all 4 GNN models on all the datasets we test on (except for APPNP on Cora). This result verifies the existence of accuracy disparity suggested by Theorem 3. ",
1238
+ "bbox": [
1239
+ 174,
1240
+ 508,
1241
+ 825,
1242
+ 564
1243
+ ],
1244
+ "page_idx": 8
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Second, we observe in Figure 2 that there is a similar trend when we split subgroups by the geodesic distance. This suggests that the geodesic distance on the graph can sometimes be used as a simpler indicator in practice for machine learning fairness on graph-structured data. Using such a classical graph metric as an indicator also helps us connect graph-based machine learning to network theory, especially to understandings about social networks, to better analyze fairness issues of machine learning on social networks, where high-stake decisions related to human subjects may be involved. ",
1249
+ "bbox": [
1250
+ 174,
1251
+ 570,
1252
+ 825,
1253
+ 654
1254
+ ],
1255
+ "page_idx": 8
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Furthermore, as shown in Figure 3, there is no clear monotonic trend for test accuracy when we split subgroups by node centrality, except for some particular combinations of GNN model and dataset. Empirically, the common node centrality metrics are not as good as the geodesic distance in terms of capturing the accuracy disparity. This contrast highlights the importance of the insight provided by our analysis: the “distance” to the training set, rather than some graph characteristics of the test nodes alone, is the key predictor of test accuracy. ",
1260
+ "bbox": [
1261
+ 174,
1262
+ 660,
1263
+ 825,
1264
+ 744
1265
+ ],
1266
+ "page_idx": 8
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Finally, it is intriguing that, in both Figure 1 and 2, the test accuracy of MLP (which does not use the graph structure) also decreases as the distance of a subgroup to the training set increases. This result is perhaps not surprising if the subgroups were defined by distance on the original node features, as MLP can be viewed as a special GNN where the feature aggregation function is an identity mapping, so the “aggregated features” for MLP essentially equal to the original features. Our theoretical analysis can then be similarly applied to MLP. The question is why there is also an accuracy disparity w.r.t. the aggregated-feature distance and the geodesic distance. We suspect this is because these datasets present homophily, i.e., original (non-aggregated) features of geodesically closer nodes tend to be more similar. As a result, a subgroup with smaller geodesic distance may also have closer node features to the training set. To verify this hypothesis, we repeat the experiments in Figure 1, but with independent noises added to node features such that they become less homophilious. As in Figure 4, the decreasing pattern of test accuracy across subgroups remains for the 4 GNNs on all datasets; while for MLP, the pattern disappears on Cora and Pubmed and becomes less sharp on Citeseer. ",
1271
+ "bbox": [
1272
+ 173,
1273
+ 750,
1274
+ 825,
1275
+ 876
1276
+ ],
1277
+ "page_idx": 8
1278
+ },
1279
+ {
1280
+ "type": "image",
1281
+ "img_path": "images/43a6f9ddd3cd82fb9e4751088ea82fe67ef906373cea7fa9923f126277ed7222.jpg",
1282
+ "image_caption": [
1283
+ "Figure 4: Test accuracy disparity across subgroups by aggregated-feature distance, experimented with noisy features. The experiment and plot settings are the same as Figure 1, except for the node features are perturbed by independent noises such that they are less homophilious. "
1284
+ ],
1285
+ "image_footnote": [],
1286
+ "bbox": [
1287
+ 181,
1288
+ 113,
1289
+ 812,
1290
+ 233
1291
+ ],
1292
+ "page_idx": 9
1293
+ },
1294
+ {
1295
+ "type": "image",
1296
+ "img_path": "images/4443e45c660f7f688ed8bc0cbbbdcea18c303fec1825501f557ef97f0856d03f.jpg",
1297
+ "image_caption": [
1298
+ "Figure 5: Relative ratio between the FPR under biased training node selection and the FPR under uniform training node selection. Each bar in each cluster corresponds to a class (there are 7 classes in total). The red shaded bar indicates the class with high centrality training nodes under the biased setup. Each cluster corresponds to a centrality metric being used for the biased node selection. "
1299
+ ],
1300
+ "image_footnote": [],
1301
+ "bbox": [
1302
+ 184,
1303
+ 284,
1304
+ 810,
1305
+ 385
1306
+ ],
1307
+ "page_idx": 9
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "",
1312
+ "bbox": [
1313
+ 174,
1314
+ 445,
1315
+ 825,
1316
+ 501
1317
+ ],
1318
+ "page_idx": 9
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "5.2 Impact of Biased Training Node Selection ",
1323
+ "text_level": 1,
1324
+ "bbox": [
1325
+ 174,
1326
+ 517,
1327
+ 501,
1328
+ 532
1329
+ ],
1330
+ "page_idx": 9
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "In all the previous experiments, we follow the standard GNN training setup where 20 training nodes are uniformly sampled for each class. Next we investigate the impact if the selection of training nodes is biased, verifying our discussions in Section 4.3. We will demonstrate that the node centrality scores of the training nodes play an important role in the learned GNN model. ",
1335
+ "bbox": [
1336
+ 174,
1337
+ 542,
1338
+ 825,
1339
+ 598
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "We choose a “dominant class” and construct a manipulated training set. For each class, we still sample 20 training nodes but in a biased way. For the dominant class, the sample is biased towards nodes of high centrality; while for other classes, the sample is biased towards nodes of low centrality. We evaluate the relative ratio of False Positive Rate (FPR) for each class between the setup using manipulated training set and the setup using uniformly sampled training set. ",
1346
+ "bbox": [
1347
+ 174,
1348
+ 604,
1349
+ 825,
1350
+ 675
1351
+ ],
1352
+ "page_idx": 9
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "As shown in Figure 5, compared to MLP, the GNN models have significantly worse FPR for the dominant class when the training nodes are biased. This is because, after feature aggregation, there will be a larger proportion of test nodes that are closer to the training nodes of higher centrality. And the learned GNN model will be heavily biased towards the training labels of these nodes. ",
1357
+ "bbox": [
1358
+ 174,
1359
+ 680,
1360
+ 825,
1361
+ 736
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "6 Conclusion ",
1368
+ "text_level": 1,
1369
+ "bbox": [
1370
+ 174,
1371
+ 756,
1372
+ 299,
1373
+ 772
1374
+ ],
1375
+ "page_idx": 9
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "We present a novel PAC-Bayesian analysis for the generalization ability of GNNs on node-level semi-supervised learning tasks. As far as we know, this is the first generalization bound for GNNs for non-IID node-level tasks without strong assumptions on the data generating mechanism. One advantage of our analysis is that it can be applied to arbitrary subgroups of the test nodes, which allows us to investigate an accuracy-disparity style of fairness for GNNs. Both the theoretical and empirical results suggest that there is an accuracy disparity across subgroups of test nodes that have varying distance to the training set, and nodes with larger distance to the training nodes suffer from a lower classification accuracy. In the future, we would like to utilize our theory to analyze the fairness of GNNs on real-world applications and develop principled methods to mitigate the unfairness. ",
1380
+ "bbox": [
1381
+ 174,
1382
+ 786,
1383
+ 825,
1384
+ 911
1385
+ ],
1386
+ "page_idx": 9
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Acknowledgements ",
1391
+ "text_level": 1,
1392
+ "bbox": [
1393
+ 174,
1394
+ 92,
1395
+ 310,
1396
+ 106
1397
+ ],
1398
+ "page_idx": 10
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "This work was in part supported by the National Science Foundation under grant number 1633370. \nThe authors claim no competing interests. \nReferences \n[1] Chirag Agarwal, Himabindu Lakkaraju, and Marinka Zitnik. Towards a unified framework for fair and stable graph representation learning. CoRR, abs/2102.13186, 2021. URL https: //arxiv.org/abs/2102.13186. \n[2] Pierre Alquier, James Ridgway, and Nicolas Chopin. On the properties of variational approximations of gibbs posteriors. The Journal of Machine Learning Research, 17(1):8374–8414, 2016. \n[3] Aseem Baranwal, Kimon Fountoulakis, and Aukosh Jagannath. Graph convolution for semisupervised classification: Improved linear separability and out-of-distribution generalization. arXiv preprint arXiv:2102.06966, 2021. \n[4] Luc Bégin, Pascal Germain, François Laviolette, and Jean-Francis Roy. Pac-bayesian theory for transductive learning. In Artificial Intelligence and Statistics, pages 105–113. PMLR, 2014. \n[5] Avishek Joey Bose and William L. Hamilton. Compositional fairness constraints for graph embeddings. CoRR, abs/1905.10674, 2019. URL http://arxiv.org/abs/1905.10674. \n[6] Maarten Buyl and Tijl De Bie. The kl-divergence between a graph model and its fair i-projection as a fairness regularizer. CoRR, abs/2103.01846, 2021. URL https://arxiv.org/abs/2103. 01846. \n[7] Enyan Dai and Suhang Wang. Say no to the discrimination: Learning fair graph neural networks with limited sensitive attribute information. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, WSDM ’21, page 680–688, New York, NY, USA, 2021. Association for Computing Machinery. ISBN 9781450382977. doi: 10.1145/3437963. 3441752. URL https://doi.org/10.1145/3437963.3441752. \n[8] Yash Deshpande, Subhabrata Sen, Andrea Montanari, and Elchanan Mossel. Contextual stochastic block models. In NeurIPS, 2018. \n[9] Simon S Du, Kangcheng Hou, Barnabás Póczos, Ruslan Salakhutdinov, Ruosong Wang, and Keyulu Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. arXiv preprint arXiv:1905.13192, 2019. \n[10] Gintare Karolina Dziugaite, Kyle Hsu, Waseem Gharbieh, Gabriel Arpino, and Daniel Roy. On the role of data in pac-bayes. In International Conference on Artificial Intelligence and Statistics, pages 604–612. PMLR, 2021. \n[11] Vikas Garg, Stefanie Jegelka, and Tommi Jaakkola. Generalization and representational limits of graph neural networks. In International Conference on Machine Learning, pages 3419–3430. PMLR, 2020. \n[12] Pascal Germain, Alexandre Lacasse, Francois Laviolette, Mario March, and Jean-Francis Roy. Risk bounds for the majority vote: From a pac-bayesian analysis to a learning algorithm. Journal of Machine Learning Research, 16(26):787–860, 2015. \n[13] Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pages 729–734. IEEE, 2005. \n[14] Benjamin Guedj. A primer on pac-bayesian learning. arXiv preprint arXiv:1901.05353, 2019. \n[15] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. In The Collected Works of Wassily Hoeffding, pages 409–426. Springer, 1994. ",
1403
+ "bbox": [
1404
+ 173,
1405
+ 117,
1406
+ 826,
1407
+ 145
1408
+ ],
1409
+ "page_idx": 10
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "",
1414
+ "bbox": [
1415
+ 174,
1416
+ 165,
1417
+ 828,
1418
+ 916
1419
+ ],
1420
+ "page_idx": 10
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "[16] Yifan Hou, Jian Zhang, James Cheng, Kaili Ma, Richard TB Ma, Hongzhi Chen, and MingChang Yang. Measuring and improving the use of graph information in graph neural networks. In International Conference on Learning Representations, 2019. ",
1425
+ "bbox": [
1426
+ 171,
1427
+ 90,
1428
+ 823,
1429
+ 133
1430
+ ],
1431
+ "page_idx": 11
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "[17] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. arXiv preprint arXiv:2005.00687, 2020. ",
1436
+ "bbox": [
1437
+ 171,
1438
+ 142,
1439
+ 823,
1440
+ 185
1441
+ ],
1442
+ "page_idx": 11
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "[18] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. In International Conference on Machine Learning, pages 2323–2332. PMLR, 2018. ",
1447
+ "bbox": [
1448
+ 173,
1449
+ 194,
1450
+ 823,
1451
+ 236
1452
+ ],
1453
+ "page_idx": 11
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "[19] Ahmad Khajehnejad, Moein Khajehnejad, Mahmoudreza Babaei, Krishna P. Gummadi, Adrian Weller, and Baharan Mirzasoleiman. Crosswalk: Fairness-enhanced node representation learning, 2021. ",
1458
+ "bbox": [
1459
+ 171,
1460
+ 244,
1461
+ 823,
1462
+ 287
1463
+ ],
1464
+ "page_idx": 11
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "[20] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1469
+ "bbox": [
1470
+ 173,
1471
+ 296,
1472
+ 823,
1473
+ 327
1474
+ ],
1475
+ "page_idx": 11
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "[21] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized pagerank. In ICLR, 2019. ",
1480
+ "bbox": [
1481
+ 174,
1482
+ 333,
1483
+ 823,
1484
+ 364
1485
+ ],
1486
+ "page_idx": 11
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "[22] Charlotte Laclau, Ievgen Redko, Manvi Choudhary, and Christine Largeron. All of the fairness for edge prediction with optimal transport. CoRR, abs/2010.16326, 2020. URL https: //arxiv.org/abs/2010.16326. ",
1491
+ "bbox": [
1492
+ 173,
1493
+ 372,
1494
+ 821,
1495
+ 415
1496
+ ],
1497
+ "page_idx": 11
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "[23] John Langford and John Shawe-Taylor. Pac-bayes & margins. Advances in neural information processing systems, pages 439–446, 2003. ",
1502
+ "bbox": [
1503
+ 173,
1504
+ 422,
1505
+ 823,
1506
+ 453
1507
+ ],
1508
+ "page_idx": 11
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "[24] Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. ",
1513
+ "bbox": [
1514
+ 176,
1515
+ 460,
1516
+ 823,
1517
+ 503
1518
+ ],
1519
+ "page_idx": 11
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "[25] Renjie Liao, Raquel Urtasun, and Richard Zemel. A pac-bayesian approach to generalization bounds for graph neural networks. In ICLR, 2021. ",
1524
+ "bbox": [
1525
+ 176,
1526
+ 512,
1527
+ 823,
1528
+ 542
1529
+ ],
1530
+ "page_idx": 11
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "[26] Yao Ma, Xiaorui Liu, Neil Shah, and Jiliang Tang. Is homophily a necessity for graph neural networks? arXiv preprint arXiv:2106.06134, 2021. ",
1535
+ "bbox": [
1536
+ 174,
1537
+ 550,
1538
+ 823,
1539
+ 579
1540
+ ],
1541
+ "page_idx": 11
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "[27] David McAllester. Simplified pac-bayesian margin bounds. In Learning theory and Kernel machines, pages 203–215. Springer, 2003. ",
1546
+ "bbox": [
1547
+ 176,
1548
+ 588,
1549
+ 825,
1550
+ 617
1551
+ ],
1552
+ "page_idx": 11
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "[28] Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27(1):415–444, 2001. ",
1557
+ "bbox": [
1558
+ 173,
1559
+ 626,
1560
+ 823,
1561
+ 655
1562
+ ],
1563
+ "page_idx": 11
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "[29] Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5115–5124, 2017. ",
1568
+ "bbox": [
1569
+ 176,
1570
+ 662,
1571
+ 823,
1572
+ 719
1573
+ ],
1574
+ "page_idx": 11
1575
+ },
1576
+ {
1577
+ "type": "text",
1578
+ "text": "[30] Behnam Neyshabur, Srinadh Bhojanapalli, and Nathan Srebro. A pac-bayesian approach to spectrally-normalized margin bounds for neural networks. 2018. ",
1579
+ "bbox": [
1580
+ 171,
1581
+ 728,
1582
+ 823,
1583
+ 757
1584
+ ],
1585
+ "page_idx": 11
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "[31] Hoang NT and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. arXiv preprint arXiv:1905.09550, 2019. ",
1590
+ "bbox": [
1591
+ 173,
1592
+ 766,
1593
+ 823,
1594
+ 795
1595
+ ],
1596
+ "page_idx": 11
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "[32] Tahleen Rahman, Bartlomiej Surma, Michael Backes, and Yang Zhang. Fairwalk: Towards fair graph embedding. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19, pages 3289–3295. International Joint Conferences on Artificial Intelligence Organization, 7 2019. doi: 10.24963/ijcai.2019/456. URL https: //doi.org/10.24963/ijcai.2019/456. ",
1601
+ "bbox": [
1602
+ 174,
1603
+ 804,
1604
+ 825,
1605
+ 873
1606
+ ],
1607
+ "page_idx": 11
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "[33] Omar Rivasplata. Subgaussian random variables: An expository note. Internet publication, PDF, 2012. ",
1612
+ "bbox": [
1613
+ 171,
1614
+ 883,
1615
+ 821,
1616
+ 911
1617
+ ],
1618
+ "page_idx": 11
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "[34] Ryoma Sato. A survey on the expressive power of graph neural networks. arXiv preprint arXiv:2003.04078, 2020. \n[35] Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE transactions on neural networks, 20(1):61–80, 2008. \n[36] Franco Scarselli, Ah Chung Tsoi, and Markus Hagenbuchner. The vapnik–chervonenkis dimension of graph and recursive neural networks. Neural Networks, 108:248–259, 2018. \n[37] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective classification in network data. AI magazine, 29(3):93–93, 2008. \n[38] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of graph neural network evaluation. CoRR, abs/1811.05868, 2018. URL http:// arxiv.org/abs/1811.05868. \n[39] Indro Spinelli, Simone Scardapane, Amir Hussain, and Aurelio Uncini. Biased edge dropout for enhancing fairness in graph representation learning, 2021. \n[40] Joel A Tropp. An introduction to matrix concentration inequalities. Foundations and Trends in Machine Learning, 8(1-2):1–230, 2015. \n[41] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2018. \n[42] Saurabh Verma and Zhi-Li Zhang. Stability and generalization of graph convolutional neural networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1539–1548, 2019. \n[43] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, et al. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019. \n[44] Duncan J Watts and Steven H Strogatz. Collective dynamics of ‘small-world’networks. nature, 393(6684):440–442, 1998. \n[45] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In International conference on machine learning, pages 6861–6871. PMLR, 2019. \n[46] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 2020. \n[47] Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In International conference on machine learning, pages 40–48. PMLR, 2016. \n[48] Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 974–983, 2018. \n[49] Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional networks: a deep learning framework for traffic forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, pages 3634–3640, 2018. \n[50] Ziqian Zeng, Rashidul Islam, Kamrun Naher Keya, James R. Foulds, Yangqiu Song, and Shimei Pan. Fair representation learning for heterogeneous information networks. CoRR, abs/2104.08769, 2021. URL https://arxiv.org/abs/2104.08769. \n[51] Wenda Zhou, Victor Veitch, Morgane Austern, Ryan P Adams, and Peter Orbanz. Nonvacuous generalization bounds at the imagenet scale: a pac-bayesian compression approach. In International Conference on Learning Representations, 2018. ",
1623
+ "bbox": [
1624
+ 171,
1625
+ 51,
1626
+ 828,
1627
+ 921
1628
+ ],
1629
+ "page_idx": 12
1630
+ }
1631
+ ]
parse/train/68B1ezcffDc/68B1ezcffDc_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/68B1ezcffDc/68B1ezcffDc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJeqhA4YDS/HJeqhA4YDS.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJeqhA4YDS/HJeqhA4YDS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJx7l309Fm/HJx7l309Fm.md ADDED
@@ -0,0 +1,393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ACTOR-ATTENTION-CRITIC FOR MULTI-AGENT REINFORCEMENT LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Reinforcement learning in multi-agent scenarios is important for real-world applications but presents challenges beyond those seen in single-agent settings. We present an actor-critic algorithm that trains decentralized policies in multi-agent settings, using centrally computed critics that share an attention mechanism which selects relevant information for each agent at every timestep. This attention mechanism enables more effective and scalable learning in complex multi-agent environments, when compared to recent approaches. Our approach is applicable not only to cooperative settings with shared rewards, but also individualized reward settings, including adversarial settings, and it makes no assumptions about the action spaces of the agents. As such, it is flexible enough to be applied to most multi-agent learning problems.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Reinforcement learning has recently made exciting progress in many domains, including Atari games (Mnih et al., 2015), the ancient Chinese board game, Go (Silver et al., 2016), and complex continuous control tasks involving locomotion (Lillicrap et al., 2016; Schulman et al., 2015; 2017; Heess et al., 2017). While most reinforcement learning paradigms focus on single agents acting in a static environment (or against themselves in the case of Go), real-world agents often compete or cooperate with other agents in a dynamically shifting environment. In order to learn effectively in multi-agent environments, agents must not only learn the dynamics of their environment, but also those of the other learning agents present.
12
+
13
+ To this end, several approaches for multi-agent reinforcement learning have been developed. The simplest approach is to train each agent independently to maximize their individual reward, while treating other agents as part of the environment. However, this approach violates the basic assumption underlying reinforcement learning, that the environment should be stationary and Markovian. Any single agent’s environment is dynamic and nonstationary due to other agents’ changing policies. As such, standard algorithms developed for stationary Markov decision processes fail.
14
+
15
+ At the other end of the spectrum, all agents can be collectively modeled as a single-agent whose action space is the joint action space of all agents (Bus¸oniu et al., 2010). While allowing coordinated behaviors across agents, this approach is not scalable due to the action space size increasing exponentially with the number of agents. It also demands a high degree of communication during execution, as the central policy must collect observations from and distribute actions to the individual agents. In real-world settings, this demand can be problematic.
16
+
17
+ Recent work (Lowe et al., 2017; Foerster et al., 2018) attempts to combine the strengths of these two approaches. In particular, a critic (or a number of critics) is centrally learned with information from all agents. The actors, however, receive information only from their corresponding agents. Thus, during testing, executing the policies does not require the knowledge of other agents’ actions. This paradigm circumvents the challenge of non-Markovian and non-stationary environments during learning. Despite those progresses, however, algorithms for multi-agent reinforcement learning are still far from being scalable (to a larger number of agents) and being generically applicable to environments and tasks that are co-operative (sharing a global reward), competitive, or mixed.
18
+
19
+ Our approach extends these prior works in several directions. The main idea is to centrally learn a critic with an attention mechanism. The intuition behind our idea is that in many real-world environments, it is beneficial for agents to know what other agents it should pay attention to. For example, a soccer defender needs to pay attention to attackers in their vicinity as well as the player with the ball, while she/he rarely needs to pay attention to the opposing team’s goalie. The specific attackers that the defender is paying attention to can change at different parts of the game, depending on the formation and strategy of the opponent. A typical centralized approach to multi-agent reinforcement learning does not take these dynamics into account, instead simply considering all agents at all timepoints. Our attention mechanism is able to dynamically select which agents to attend to at each time point, improving performance in multi-agent domains with complex interactions.
20
+
21
+ The proposed approach has an input space linearly increasing with respect to the number of agents, as opposed to the quadratic increase in a previous approach Lowe et al. (2017). It also works well in co-operative, competitive, and mixed environments, exceeding the capability of some prior work that focuses only on co-operative environments Foerster et al. (2018).
22
+
23
+ We have validated our approach on two simulated environments and tasks. We plan to release the code for both the model and the environments after the reviewing period ends.
24
+
25
+ The rest of the paper is organized as follows. In section 2, we discuss related work, followed by a detailed description of our approach in section 3. We report experimental studies in section 4 and conclude in section 5.
26
+
27
+ # 2 RELATED WORK
28
+
29
+ Multi-Agent Reinforcement Learning (MARL) is a long studied problem (Bus¸oniu et al., 2010). Topics within MARL are diverse, ranging from learning communication between cooperative agents (Tan, 1993; Fischer et al., 2004) to algorithms for optimal play in competitive settings (Littman, 1994), though, until recently, they have been focused on simple gridworld environments with tabular learning methods.
30
+
31
+ As deep learning based approaches to reinforcement learning have grown more popular, they have, naturally, been applied to the MARL setting (Tampuu et al., 2017; Gupta et al., 2017), allowing multi-agent learning in high-dimensional/continuous state spaces; however, naive applications of Deep RL methods to MARL naturally encounter some limitations, such as nonstationarity of the environment from the perspective of individual agents (Foerster et al., 2017; Lowe et al., 2017; Foerster et al., 2018), lack of coordination/communication in cooperative settings (Sukhbaatar et al., 2016; Mordatch & Abbeel, 2018; Lowe et al., 2017; Foerster et al., 2016), credit assignment in cooperative settings with global rewards (Rashid et al., 2018; Sunehag et al., 2018; Foerster et al., 2018), and the failure to take opponent strategies into account when learning agent policies (He et al., 2016).
32
+
33
+ Most relevant to this work are recent, non-attention approaches that propose an actor-critic framework consisting of centralized training with decentralized execution (Lowe et al., 2017; Foerster et al., 2018), as well as some approaches that utilize attention in a fully centralized multi-agent setting (Choi et al., 2017; Jiang & Lu, 2018). Lowe et al. (2017) investigate the challenges of multiagent learning in mixed reward environments (Bus¸oniu et al., 2010). They propose an actor-critic method that uses separate centralized critics for each agent which take in all other agents’ actions and observations as input, while training policies that are conditioned only on local information. This practice reduces the non-stationarity of multi-agent environments, as considering the actions of other agents to be part of the environment makes the state transition dynamics stable from the perspective of one agent. In practice, these ideas greatly stabilize learning, due to reduced variance in the value function estimates.
34
+
35
+ Similarly Foerster et al. (2018) introduce a centralized critic for cooperative settings with shared rewards. Their method incorporates a ”counterfactual baseline” for calculating the advantage function which is able to marginalize a single agent’s actions while keeping others fixed. This method allows for complex multi-agent credit assignment, as the advantage function only encourages actions that directly influence an agent’s rewards.
36
+
37
+ Attention models have recently emerged as a successful approach to intelligently selecting contextual information, with applications in computer vision (Ba et al., 2015; Mnih et al., 2014), natural language processing(Vaswani et al., 2017; Bahdanau et al., 2015; Lin et al., 2017), and reinforcement learning (Oh et al., 2016).
38
+
39
+ In a similar vein, Jiang & Lu (2018) proposed an attention-based actor-critic algorithm for MARL. This work follows the alternative paradigm of centralizing policies while keeping the critics decentralized. Their focus is on learning an attention model for sharing information between the policies. As such, this approach is complementary to ours, and a combination of both approaches could yield further performance benefits in cases where centralized policies are desirable.
40
+
41
+ Our proposed approach is more flexible than the aformentioned approaches for MARL. Our algorithm is able to train policies in environments with any reward setup, different action spaces for each agent, a variance-reducing baseline that only marginalizes the relevant agent’s actions, and with a set of centralized critics that dynamically attend to the relevant information for each agent at each time point. As such, our approach is more scalable to the number of agents, and is more broadly applicable to different types of environments.
42
+
43
+ # 3 OUR APPROACH
44
+
45
+ We start by introducing the necessary notation and basic building blocks for our approach. We then describe our ideas in detail.
46
+
47
+ # 3.1 NOTATION AND BACKGROUND
48
+
49
+ We consider the framework of Markov Games (Littman, 1994), which is a multi-agent extension of Markov Decision Processes. They are defined by a set of states, $S$ , action sets for each of $N$ agents, $A _ { 1 } , . . . , A _ { N }$ , a state transition function, $T : S \times A _ { 1 } \times . . . \times A _ { N } P ( S )$ , which defines the probability distribution over possible next states, given the current state and actions for each agent, and a reward function for each agent that also depends on the global state and actions of all agents, $R _ { i } : S \times A _ { 1 } \times . . . \times A _ { N } \to \mathbb { R }$ . We will specifically be considering a partially observable variant in which an agent, $i$ receives an observation, $o _ { i }$ , which contains partial information from the global state, $s \in S$ . Each agent learns a policy, $\pi _ { i } : O _ { i } \to P ( A _ { i } )$ which maps each agent’s observation to a distribution over it’s set of actions. The agents aim to learn a policy that maximizes their expected discounted returns, $J _ { i } ( \pi _ { i } ) = \mathbb { E } _ { a _ { 1 } \sim \pi _ { 1 } , \dots , a _ { N } \sim \pi _ { N } , s \sim T } [ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \hat { r _ { i t } } ( s _ { t } , a _ { 1 t } , . . , a _ { N t } ) ]$ , where $\gamma \in [ 0 , 1 ]$ is the discount factor that determines how much the policy favors immediate reward over long-term gain.
50
+
51
+ Policy Gradients Policy gradient techniques (Sutton et al., 2000; Williams, 1992) aim to estimate the gradient of an agent’s expected returns with respect to the parameters of its policy. This gradient estimate takes the following form:
52
+
53
+ $$
54
+ \nabla _ { \theta } J ( \pi _ { \theta } ) = \mathbb { E } _ { a \sim \pi _ { \theta } } \left[ \nabla _ { \theta } \log ( \pi _ { \theta } ( a _ { t } \vert s _ { t } ) ) \sum _ { t ^ { \prime } = t } ^ { \infty } \gamma ^ { t ^ { \prime } - t } r _ { t ^ { \prime } } ( s _ { t ^ { \prime } } , a _ { t ^ { \prime } } ) \right]
55
+ $$
56
+
57
+ Actor-Critic and Soft Actor-Critic The term P∞t0=t γ $\begin{array} { r } { \sum _ { t ^ { \prime } = t } ^ { \infty } \gamma ^ { t ^ { \prime } - t } r _ { t ^ { \prime } } ( s _ { t ^ { \prime } } , a _ { t ^ { \prime } } ) } \end{array}$ in the policy gradient estimator leads to high variance, as these returns can vary drastically between episodes. Actor-critic methods (Konda & Tsitsiklis, 2000) aim to ameliorate this issue by using a function approximation of the expected returns, and replacing the original return term in the policy gradient estimator with this function. One specific instance of actor-critic methods learns a function to estimate expected discounted returns, given a state and action, $\begin{array} { r } { Q _ { \psi } ( s _ { t } , a _ { t } ) = \mathbb { E } [ \sum _ { t ^ { \prime } = t } ^ { \infty } \gamma ^ { t ^ { \prime } - t } r _ { t ^ { \prime } } ( s _ { t ^ { \prime } } , a _ { t ^ { \prime } } ) ] } \end{array}$ , learned through temporal-difference learning by minimizing the regression loss:
58
+
59
+ $$
60
+ \begin{array} { r } { \mathcal { L } _ { Q } ( \psi ) = \mathbb { E } _ { s , a , r , s ^ { \prime } } \left[ ( Q _ { \psi } ( s , a ) - y ) ^ { 2 } \right] \mathrm { , w h e r e ~ } y = r ( s , a ) + \gamma \mathbb { E } _ { a ^ { \prime } \sim \pi ( s ^ { \prime } ) } \left[ Q _ { \bar { \psi } } ( s ^ { \prime } , a ^ { \prime } ) \right] } \end{array}
61
+ $$
62
+
63
+ where $Q _ { \bar { \psi } }$ is the target Q-value function.
64
+
65
+ To encourage exploration and avoid converging to non-optimal deterministic policies, recent approaches of maximum entropy reinforcement learning learn a soft value function by modifying the policy gradient to incorporate an entropy term (Haarnoja et al., 2018):
66
+
67
+ $$
68
+ \nabla _ { \theta } J ( \pi _ { \theta } ) = \mathbb { E } _ { a \sim \pi _ { \theta } } \left[ \nabla _ { \theta } \log ( \pi _ { \theta } ( a | s ) ) ( \alpha \log ( \pi _ { \theta } ( a | s ) ) - Q _ { \psi } ( s , a ) + b ( s ) ) \right]
69
+ $$
70
+
71
+ where $b ( s )$ is a state-dependent baseline (for the $\mathbf { Q }$ -value function). The loss function for temporaldifference learning of the value function is also revised accordingly with a new target:
72
+
73
+ $$
74
+ y = r ( s , a ) + \gamma \mathbb { E } _ { a ^ { \prime } \sim \pi ( s ^ { \prime } ) } \left[ Q _ { \bar { \psi } } ( s ^ { \prime } , a ^ { \prime } ) - \alpha \ \log ( \pi _ { \theta } ( a ^ { \prime } | s ^ { \prime } ) ) \right]
75
+ $$
76
+
77
+ While an estimate of the value function $V _ { \phi } ( s )$ can be used a baseline, we provide an alternative that further reduces variance and addresses credit assignment in the multi-agent setting in section 3.2.
78
+
79
+ # 3.2 MULTIPLE-ACTOR-ATTENTION-CRITIC (MAAC)
80
+
81
+ The main idea behind our multi-agent learning approach is to learn the critic for each agent by selectively paying attention to other agents’ actions. This is the same paradigm of training critics centrally (to overcome the challenge of non-stationary non-Markovian environments) and executing learned policies distributedly. Figure 1 illustrates the main components of our approach.
82
+
83
+ Attention The attention mechanism functions in a manner similar to a differentiable key-value memory model (Graves et al., 2014; Oh et al., 2016). Intuitively, each agent queries the other agents for information about their observations and actions and incorporates that information into the estimate of its value function. This paradigm was chosen, in contrast to other attention-based approaches, as it doesn’t make any assumptions about the temporal or spatial locality of the inputs, as opposed to approaches taken in the natural language processing and computer vision fields.
84
+
85
+ To calculate the Q-value function $Q _ { i } ^ { \psi } ( o , a )$ for the agent $i$ , the critic receives the observations, $o = \left( o _ { 1 } , . . . , o _ { N } \right)$ , and actions, $a = ( a _ { 1 } , . . . , a _ { N } )$ , for all agents indexed by $i \in \{ 1 \ldots N \}$ . We represent the set of all agents except $i$ as $\backslash i$ and we index this set with $j$ . $Q _ { i } ^ { \psi } ( o , a )$ is a function of agent $i$ ’s observation and action, as well as other agents’ contributions:
86
+
87
+ $$
88
+ Q _ { i } ^ { \psi } ( o , a ) = f _ { i } ( g _ { i } ( o _ { i } , a _ { i } ) , x _ { i } )
89
+ $$
90
+
91
+ where $f _ { i }$ is a two-layer multi-layer perceptron (MLP), while $g _ { i }$ is a one-layer MLP embedding function. The contribution from other agents, $x _ { i }$ , is a weighted sum of each agent’s value:
92
+
93
+ ![](images/1b63afec914c8275c439d4f59e0a54ef9030be274d1a28a8b7ef0cc5169eda6a.jpg)
94
+ Figure 1: Calculating $Q _ { i } ^ { \psi } ( o , a )$ with attention for agent $i$ .
95
+
96
+ $$
97
+ x _ { i } = \sum _ { j \neq i } \alpha _ { j } v _ { j } = \sum _ { j \neq i } \alpha _ { j } h ( V g _ { j } ( o _ { j } , a _ { j } ) )
98
+ $$
99
+
100
+ where the value, $v _ { j }$ is a function of agent $j$ ’s
101
+
102
+ embedding, encoded with an embedding function and then linearly transformed by a shared matrix $V , h$ is an element-wise nonlinearity (we have used leaky ReLU).
103
+
104
+ The attention weight $\alpha _ { j }$ compares the embedding $e _ { j }$ with $e _ { i } = g _ { i } ( o _ { i } , a _ { i } )$ , using a bilinear mapping (ie, the query-key system) and passes the similarity value between these two embeddings into a softmax
105
+
106
+ $$
107
+ \alpha _ { j } \propto \exp ( e _ { j } ^ { \operatorname { T } } W _ { k } ^ { \operatorname { T } } W _ { q } e _ { i } )
108
+ $$
109
+
110
+ where $W _ { q }$ transforms $e _ { i }$ into a “query” and $W _ { k }$ transforms $e _ { j }$ into a “key”. The matching is then scaled by the dimensionality of these two matrices to prevent vanishing gradients (Vaswani et al., 2017).
111
+
112
+ In our experiments, we have used multiple attention heads (Vaswani et al., 2017). In this case, each head, using a separate set of parameters $( W _ { k } , W _ { q } , V )$ , gives rise to an aggregated contribution from all other agents to the agent $i$ and we simply concatenate the contributions from all heads as a single vector. Crucially, each head can focus on a different weighted mixture of agents.
113
+
114
+ Note that the weights for extracting selectors, keys, and values are shared across all agents, which encourages a common embedding space. The sharing of critic parameters between agents is possible, even in adversarial settings, because multi-agent value-function approximation is, essentially, a multi-task regression problem. This method can easily be extended to include additional information, beyond local observations and actions, at training time, including the global state if it is available, simply by adding additional encoders, $e$ . (We do not consider this case in our experiments, however, as our approach is effective in combining local observations to predict expected returns in environments where the global state may not be available).
115
+
116
+ Learning with Attentive Critics All critics are updated together to minimize a joint regression loss function, due to the parameter sharing:
117
+
118
+ $$
119
+ \begin{array} { l } { { \displaystyle { \mathcal L } _ { Q } ( \psi ) = \sum _ { i = 1 } ^ { N } \mathbb E _ { ( o , a , r , o ^ { \prime } ) \sim D } \Big [ ( Q _ { i } ^ { \psi } ( o , a ) - y _ { i } ) ^ { 2 } \Big ] , \mathrm { w h e r e } } } \\ { { \displaystyle y _ { i } = r _ { i } + \gamma \mathbb E _ { a ^ { \prime } \sim \pi _ { \bar { \theta } } ( o ^ { \prime } ) } \Big [ Q _ { i } ^ { \bar { \psi } } ( o ^ { \prime } , a ^ { \prime } ) - \alpha \ \log ( \pi _ { \bar { \theta } _ { i } } ( a _ { i } ^ { ' } | o _ { i } ^ { ' } ) ) \Big ] } } \end{array}
120
+ $$
121
+
122
+ where $\bar { \psi }$ and $\bar { \theta }$ are the parameters of the target critics and target policies respectively. Note that $Q _ { i } ^ { \psi }$ , the action-value estimate for agent $i$ , receives observations and actions for all agents. $\alpha$ is the temperature parameter determining the balance between maximizing entropy and rewards. The individual policies are updated with the following gradient:
123
+
124
+ $$
125
+ \nabla _ { \theta _ { i } } J ( \pi _ { \theta } ) = \mathbb { E } _ { a \sim \pi _ { \theta } } \left[ \nabla _ { \theta _ { i } } \log ( \pi _ { \theta _ { i } } ( a _ { i } | o _ { i } ) ) ( \alpha \ \log ( \pi _ { \theta _ { i } } ( a _ { i } | o _ { i } ) ) - Q _ { i } ^ { \psi } ( o , a ) + b ( o , a \setminus i ) ) \right]
126
+ $$
127
+
128
+ where $b ( o , a _ { \backslash i } )$ is the multi-agent baseline used to calculate the advantage function decribed in the following section. Note that we are sampling all actions, $a$ , from all agents’ current policies in order to calculate the gradient estimate for agent $i$ , unlike in the MADDPG algorithm Lowe et al. (2017), where the other agents’ actions are sampled from the replay buffer, potentially causing overgeneralization where agents fail to coordinate based on their current policies Wei et al. (2018). Full training details and hyperparameters can be found in the appendix 6.1.
129
+
130
+ Multi-Agent Advantage Function As shown in Foerster et al. (2018), an advantage function using a baseline that only marginalizes out the actions of the given agent from $Q _ { i } ^ { \psi } ( o , a )$ , can help solve the multi-agent credit assignment problem. In other words, by comparing the value of a specific action to the value of the average action for the agent, with all other agents fixed, we can learn whether said action will cause an increase in expected return or whether any increase in reward is attributed to the actions of other agents. The form of this advantage function is shown below:
131
+
132
+ $$
133
+ \begin{array} { r } { A _ { i } ( o , a ) = Q _ { i } ^ { \psi } ( o , a ) - b ( o , a _ { \backslash i } ) ) , \mathrm { ~ w h e r e ~ } } \\ { b ( o , a _ { \backslash i } ) ) = \mathbb { E } _ { a _ { i } \sim \pi _ { i } ( o _ { i } ) } \left[ Q _ { i } ^ { \psi } ( o , ( a _ { i } , a _ { \backslash i } ) ) \right] } \end{array}
134
+ $$
135
+
136
+ Using our attention mechanism, we can implement a more general and flexible form of a multiagent baseline that, unlike the advantage function proposed in Foerster et al. (2018), doesn’t assume the same action space for each agent, doesn’t require a global reward, and attends dynamically to other agents, as in our $\mathrm { Q }$ -function. This is made simple by the natural decomposition of an agents encoding, $e _ { i }$ , and the weighted sum of encodings of other agents, $x _ { i }$ , in our attention model.
137
+
138
+ Concretely, in the case of discrete policies, we can calculate our baseline in a single forward pass by outputting the expected return $Q _ { i } { \big ( } o , { \big ( } a _ { i } , a _ { \backslash i } { \big ) } { \big ) }$ for every possible action, $a _ { i } \in A _ { i }$ , that agent $i$ can take. We can then calculate the expectation exactly:
139
+
140
+ $$
141
+ \mathbb { E } _ { a _ { i } \sim \pi _ { i } ( o _ { i } ) } \left[ Q _ { i } ^ { \psi } ( o , ( a _ { i } , a _ { \setminus i } ) ) \right] = \sum _ { a _ { i } ^ { \prime } \in A _ { i } } \pi ( a _ { i } ^ { \prime } | o _ { i } ) Q _ { i } ( o , ( a _ { i } ^ { \prime } , a _ { \setminus i } ) )
142
+ $$
143
+
144
+ In order to do so, we must remove $a _ { i }$ from the input of $Q _ { i }$ , and output a value for every action. We add an observation-encoder, $e _ { i } = g _ { i } ^ { o } ( o _ { i } )$ , for each agent, using these encodings in place of the $e _ { i } = g _ { i } ( o _ { i } , a _ { i } )$ described above, and modify $f _ { i }$ such that it outputs a value for each possible action, rather than the single input action. In the case of continuous policies, we do not need to add any parameters, as we can simply estimate the expectation in Equation 9 by sampling actions from our policy and averaging their $\mathbf { Q }$ -values, though, this comes at the cost of multiple expensive passes through the network.
145
+
146
+ # 4 EXPERIMENTS
147
+
148
+ # 4.1 SETUP
149
+
150
+ We construct two environments that test various capabilities of our approach (MAAC) and baselines. We investigate in two main directions. First, we study the scalability of different methods as the number of agents grows. We hypothesize that the current approach of concatenating all agents’ observations (often used as a global state to be shared among agents) and actions in order to centralize critics does not scale well. To this end, we implement a cooperative environment, Cooperative Treasure Collection, with shared rewards where we can vary the total number of agents. The experimental results in sec 4.3 validate our claim.
151
+
152
+ Secondly, we want to evaluate each method’s ability to attend to information relevant to rewards. Moreover, the relevance (to rewards) can dynamically change during an episode. This is analogous to real-life tasks such as the soccer example presented earlier. To this end, we implement a Rover-Tower task environment where randomly paired agents communicate information and coordinate.
153
+
154
+ The two environments are implemented in the multi-agent particle environment framework1 introduced by Mordatch & Abbeel (2018), and extended by Lowe et al. (2017). We found this framework useful for creating environments involving complex interaction between agents, while keeping the control and perception problems simple, as we are primarily interested in addressing agent interaction. To further simplify the control problem, we use discrete action spaces, allowing agents to move up, down, left, right, or stay; however, the agents may not immediately move exactly in the specified direction, as the task framework incorporates a basic physics engine where agents’ momentums are taken into account. Fig. 2 illustrates the two environments.
155
+
156
+ Cooperative Treasure Collection The cooperative environment in Figure 2a) involves 8 total agents, 6 of which are ”treasure hunters” and 2 of which are “treasure banks”, which each correspond to a different color of treasure. The role of the hunters is to collect the treasure of any color, which re-spawn randomly upon being collected (with a total of 6), and then “deposit” the treasure into the correctly colored “bank”. The role of each bank is to simply gather as much treasure as possible from the hunters. All agents are able to see each others’ positions with respect to their own. Hunters receive a global
157
+
158
+ (a) Cooperative Treasure Collection. The small grey agents are “hunters” who collect the colored treasure, and deposit them with the correctly colored large “bank” agents.
159
+
160
+ ![](images/196f9f5050f478b3d0ff7933669b33756ff258369934bc880ecf228a3588d3f8.jpg)
161
+
162
+ ![](images/af616e275beaa86e10d3b5d5bf56ab295a010c237b388dc0a2148b49ec269525.jpg)
163
+ Figure 2: Our environments
164
+
165
+ (b) Rover-Tower. Each grey “Tower” is paired with a “Rover” and a destination (color of rover corresponds to its destination). Their goal is to communicate with the ”Rover” such that it moves toward the destination.
166
+
167
+ reward for the successful collection of treasure and all agents receive a global reward for the depositing of treasure. Hunters are additionally penalized for colliding with each other. As such, the task contains a mixture of shared and individual rewards and requires different “modes of attention” which depend on the agent’s state and other agents’ potential for affecting its rewards.
168
+
169
+ Rover-Tower The environment in Figure 2b involves 8 total agents, 4 of which are “rovers” and another 4 which are “towers”. At each episode, rovers and towers are randomly paired. The pair is negatively rewarded by the distance of the rover to its goal. The task can be thought of as a navigation task on an alien planet with limited infrastructure and low visibility. The rovers are unable to see in their surroundings and must rely on communication from the towers, which are able to locate the rovers as well as their destinations and can send one of five discrete communication messages to their paired rover. Note that communication is highly restricted and different from centralized policy approaches Jiang & Lu (2018), which allow for free transfer of continuous information among policies. In our setup, the communication is integrated into the environment (in the tower’s action space and the rover’s observation space), rather than being explicitly part of the model, and is limited to a few discrete signals.
170
+
171
+ Table 1: Comparison of various methods for multi-agent RL
172
+
173
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Base Algorithm</td><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>CentralizedCritic(s)</td><td rowspan=1 colspan=1>Numberof Critics</td><td rowspan=1 colspan=1>Multi-taskLearning of Critics</td><td rowspan=1 colspan=1>Multi-AgentAdvantage</td></tr><tr><td rowspan=1 colspan=1>MAAC (ours)</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MAAC(Uniform) (ours)</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>uniform</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>COMA*</td><td rowspan=1 colspan=1>Actor-Critic (On-Policy)</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MADDPG†</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>COMA+SAC</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MADDPG+SAC</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr></table>
174
+
175
+ Centralized $C r i t i c ( s )$ : each agent’s estimate of $Q _ { i }$ takes the actions and observations of the other agents into account. Number of Critics: number of separate networks used for predicting $Q _ { i }$ for all $N$ agents. Multi-task Learning of Critics: all agents’ estimates of $Q _ { i }$ share information in intermediate layers, benefiting from multi-task learning. Multi-Agent Advantage: cf. Sec 3.2 for details. ∗(Foerster et al., 2018), †(Lowe et al., 2017), ‡(Lillicrap et al., 2016)
176
+
177
+ # 4.2 BASELINES
178
+
179
+ We compare to two recently proposed approaches for centralized training of decentralized policies: MADDPG (Lowe et al., 2017) and COMA (Foerster et al., 2018), as well as a single-agent RL approach, DDPG, trained separately for each agent.
180
+
181
+ In order to enable learning in discrete action spaces for both MADDPG and DDPG, where deterministic policies are not possible, we use the Gumbel-Softmax reparametrization trick (Jang et al., 2017). We will refer to these modified versions as MADDPG (Discrete) and DDPG (Discrete). For a detailed description of this reparametrization, see the appendix 6.2. We use soft actor critic to optimize. Thus, in order to have fair comparisons, we additionally implement MADDPG and COMA with Soft Actor-Critic, named as MADDPG $^ +$ SAC and COMA $^ +$ SAC.
182
+
183
+ We also consider an ablated version of our model as a variant of our approach. In this model, we use uniform attention by fixing the attention weight $\alpha _ { j }$ (Eq. 6) to be $1 / ( N - 1 )$ . This restriction prevents the model from focusing its attention on specific agents.
184
+
185
+ All methods are implemented such that their approximate total number of parameters (across agents) are equal to our method, and each model is trained with 6 random seeds each. Hyperparameters for each underlying algorithm are tuned based on performance and kept constant across all variants of critic architectures for that algorithm. A thorough comparison of all baselines is summarized in Table 1.
186
+
187
+ # 4.3 RESULTS AND ANALYSIS
188
+
189
+ Fig. 3 illustrates averaged rewards per episode by various methods. The proposed approach (MAAC) is competitive with other approaches being compared. In what follows, we provide detailed analysis.
190
+
191
+ Impact of Rewards and Required Attention Uniform attention is competitive with our approach in the Cooperative Treasure Collection (CTC) environment, but not in Rover-Tower. On the other hand, both MADDPG (Discrete) and MADDPG $^ +$ SAC perform well on Rover-Tower, though they do not on CTC. Both variants of COMA do not fare well in our environments. DDPG, arguably a weaker baseline, performs surprisingly well in CTC, but does poorly in Rover-Tower.
192
+
193
+ In CTC, the rewards are shared across agents thus an agent’s critic does not need to focus on information from specific agents in order to calculate its expected rewards. Moreover, each agent’s local observation provides enough information to make a decent prediction of its expected rewards. This might explain why MAAC (uniform) which attends to other agents equally, and DDPG (being very unattentive to other agents) perform well.
194
+
195
+ On the other hand, rewards in the Rover-Tower environment for a specific agent are tied to another single agent’s observations. This environment exemplifies a class of scenarios where dynamic attention can be beneficial: when subgroups of agents are interacting and performing coordinated tasks with separate rewards, but the groups do not remain static. This explains why MAAC (uniform)
196
+
197
+ ![](images/3ea705bb380bed2beaacfcdfa36922d6441291f128b93b1c4d14848b1219e9f7.jpg)
198
+ Figure 3: (Left) Average Rewards on Cooperative Treasure Collection. (Right) Average Rewards on RoverTower. Our model (MAAC) is competitive in both environments. Error bars are a $9 5 \%$ confidence interval across 6 runs.
199
+
200
+ perform poorly and DDPG completely breaks down, as knowing information from another specific agent is crucial in predicting expected rewards.
201
+
202
+ COMA uses a single centralized network for predicting Q-values for all agents with separate forward passes. Thus, this approach may perform best in environments with global rewards and agents with similar action spaces. However, our environments have agents with differing roles (and non-global rewards in the case of Rover-Tower). Thus both variants of COMA do not fare well.
203
+
204
+ MADDPG (and its variant) is a very strong method. However, we suspect its low performance in CTC is due to this environment’s relatively large observation spaces for all agents, as the MADDPG critic concatenates observations for all agents into a single input vector for each agent’s critic. Our next experiments confirm this hypothesis.
205
+
206
+ Scalability We compare the average rewards attained by both approaches (normalized by the range of rewards attained in the environment, as differing the number of agents changes the nature of rewards in each environment), and show that the improvement of our approach MAAC over MADDPG $^ +$ SAC grows with respect to the number of agents. As suspected, MADDPG-like critics use all information non-selectively, while our approach can learn which agents to pay more attention through the attention mechanism. Thus our approach scales better when the number of agents increases. In future research we will continue to improve the scalability when the number of agents further increases by sharing policies among agents, and performing attention on sub-groups (of agents).
207
+
208
+ Table 2: MAAC improves over MADDPG $^ +$ SAC
209
+
210
+ <table><tr><td rowspan=1 colspan=1>#agents</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>16</td></tr><tr><td rowspan=1 colspan=1>Percentage</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>49</td><td rowspan=1 colspan=1>53</td></tr></table>
211
+
212
+ While the Rover-Tower task has a lot of agents, each agent only gets information about its paired agent – in other words, the task itself has an intrinsically smaller number of “other agents” (conditioned on each agent) than the CTC environment. As a future direction, we are creating more complicated environments where each agent needs to cope with a large group of agents where selective attention is needed. This naturally models real-life scenarios that multiple agents are organized in clusters/sub-societies (school, work, family, etc) where the agent needs to interact with a small number of agents from many groups. We anticipate that in such complicated scenarios, our approach, combined with some advantages exhibited by other approaches would do well.
213
+
214
+ # 5 CONCLUSION
215
+
216
+ We propose an algorithm for training decentralized policies in multi-agent settings. The key idea is to utilize attention in order to select relevant information for estimating critics. We analyze the performance of the proposed approach with respect to the number of agents, different configurations of rewards, and the span of relevant observational information. Empirical results are promising and we intend to extend to highly complicated and dynamic environments.
217
+
218
+ # REFERENCES
219
+
220
+ Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In International Conference on Learning Representations, 2015.
221
+
222
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2015.
223
+
224
+ Lucian Bus¸oniu, Robert Babuska, and Bart De Schutter. Multi-agent reinforcement learning: Anˇ overview. In Innovations in multi-agent systems and applications-1, pp. 183–221. Springer, 2010.
225
+
226
+ Jinyoung Choi, Beom-Jin Lee, and Byoung-Tak Zhang. Multi-focus attention network for efficient deep reinforcement learning. arXiv preprint arXiv:1712.04603, December 2017.
227
+
228
+ Felix Fischer, Michael Rovatsos, and Gerhard Weiss. Hierarchical reinforcement learning in communication-mediated multiagent coordination. In Proceedings of the Third International Joint Conference on Autonomous Agents and Multiagent Systems-Volume 3, pp. 1334–1335. IEEE Computer Society, 2004.
229
+
230
+ Jakob Foerster, Ioannis Alexandros Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2137–2145, 2016.
231
+
232
+ Jakob Foerster, Nantas Nardelli, Gregory Farquhar, Triantafyllos Afouras, Philip H. S. Torr, Pushmeet Kohli, and Shimon Whiteson. Stabilising experience replay for deep multi-agent reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1146–1155, International Convention Centre, Sydney, Australia, 06–11 Aug 2017.
233
+
234
+ Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients, 2018.
235
+
236
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
237
+
238
+ Jayesh K Gupta, Maxim Egorov, and Mykel Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In Autonomous Agents and Multiagent Systems, Lecture Notes in Computer Science, pp. 66–83. Springer, Cham, May 2017.
239
+
240
+ Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018.
241
+
242
+ He He, Jordan Boyd-Graber, Kevin Kwok, and Hal Daume III. Opponent modeling in deep rein- ´ forcement learning. In International Conference on Machine Learning, pp. 1804–1813, 2016.
243
+
244
+ Nicolas Heess, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, Ali Eslami, Martin Riedmiller, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017.
245
+
246
+ Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2017.
247
+
248
+ Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. arXiv preprint arXiv:1805.07733, 2018.
249
+
250
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014.
251
+
252
+ Vijay R Konda and John N Tsitsiklis. Actor-critic algorithms. In Advances in neural information processing systems, pp. 1008–1014, 2000.
253
+
254
+ 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. In International Conference on Learning Representations, 2016.
255
+
256
+ Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. In International Conference on Learning Representations, 2017.
257
+
258
+ Michael L Littman. Markov games as a framework for multi-agent reinforcement learning. In Machine Learning Proceedings 1994, pp. 157–163. Elsevier, 1994.
259
+
260
+ Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In Advances in Neural Information Processing Systems, pp. 6382–6393, 2017.
261
+
262
+ Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In Advances in neural information processing systems, pp. 2204–2212, 2014.
263
+
264
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
265
+
266
+ Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations, 2018.
267
+
268
+ Junhyuk Oh, Valliappa Chockalingam, Honglak Lee, et al. Control of memory, active perception, and action in minecraft. In International Conference on Machine Learning, pp. 2790–2799, 2016.
269
+
270
+ Tabish Rashid, Mikayel Samvelyan, Christian Schroeder, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. QMIX: Monotonic value function factorisation for deep multi-agent reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 4295–4304, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018.
271
+
272
+ John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015.
273
+
274
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
275
+
276
+ David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
277
+
278
+ Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In Advances in Neural Information Processing Systems, pp. 2244–2252, 2016.
279
+
280
+ Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinicius Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z. Leibo, Karl Tuyls, and Thore Graepel. Valuedecomposition networks for cooperative multi-agent learning based on team reward. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS ’18, pp. 2085–2087, Richland, SC, 2018. International Foundation for Autonomous Agents and Multiagent Systems.
281
+
282
+ Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000.
283
+
284
+ Ardi Tampuu, Tambet Matiisen, Dorian Kodelja, Ilya Kuzovkin, Kristjan Korjus, Juhan Aru, Jaan Aru, and Raul Vicente. Multiagent cooperation and competition with deep reinforcement learning. PLoS One, 12(4):e0172395, April 2017.
285
+
286
+ Ming Tan. Multi-agent reinforcement learning: independent versus cooperative agents. In Proceedings of the Tenth International Conference on International Conference on Machine Learning, pp. 330–337. Morgan Kaufmann Publishers Inc., 1993.
287
+
288
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 6000–6010, 2017.
289
+
290
+ Ermo Wei, Drew Wicke, David Freelan, and Sean Luke. Multiagent soft q-learning. arXiv preprint arXiv:1804.09817, 2018.
291
+
292
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Reinforcement Learning, pp. 5–32. Springer, 1992.
293
+
294
+ # 6 APPENDIX
295
+
296
+ # Algorithm 1 Training Procedure for Attention-Actor-Critic
297
+
298
+ 1: Initialize $E$ parallel environments with $N$ agents, each
299
+ 2: Initialize replay buffer, $D$
300
+ 3: $T _ { \mathrm { u p d a t e } } \gets 0$
301
+ 4: for $i _ { \mathrm { e p } } = 1 \ldots$ num episodes do
302
+ 5: Reset environments, and get initial $o _ { i } ^ { e }$ for each agent, $i$
303
+ 6: for $t = 1$ . . . steps per episode do
304
+ 7: Select actions $a _ { i } ^ { e } \sim \pi _ { i } ( \cdot | o _ { i } ^ { e } )$ for each agent, $i$ , in each environment, $e$
305
+ 8: Send actions to all parallel environments and get $\boldsymbol { o ^ { \prime } } _ { i } ^ { e }$ , $\boldsymbol { r } _ { i } ^ { e }$ for all agents in all environments
306
+ 9: Store transitions $\left( o _ { 1 \dots N } , a _ { 1 \dots N } , r _ { 1 \dots N } , o _ { 1 \dots N } ^ { \prime } \right)$ for all environments in $D$
307
+ 10: $T _ { \mathrm { u p d a t e } } = T _ { \mathrm { u p d a t e } } + E$
308
+ 11: if $T _ { \mathrm { u p d a t e } } \geq \mathrm { \bar { m i n } }$ steps per update then
309
+ 12: for $j = 1$ . . . num critic updates do
310
+ 13: Sample minibatch $B \gets m \times ( o _ { 1 . . . N } , a _ { 1 . . . N } , r _ { 1 . . . N } , o _ { 1 . . . N } ^ { \prime } ) \sim D$
311
+ 14: UPDATECRITIC $( B )$
312
+ 15: end for
313
+ 16: for $j = 1 \ldots \mathrm { n u m }$ policy updates do
314
+ 17: 18: Sample UPDAT $m \times \left( o _ { 1 \dots N } \right) \sim D$ $( \acute { o } _ { 1 \dots N } ^ { B } )$
315
+ 19: end for
316
+ 20: Update target critic and policy parameters:
317
+
318
+ $$
319
+ \begin{array} { c } { { \bar { \psi } = \tau \bar { \psi } + ( 1 - \tau ) \psi } } \\ { { { } } } \\ { { \bar { \theta } = \tau \bar { \theta } + ( 1 - \tau ) \theta } } \end{array}
320
+ $$
321
+
322
+ 21: $T _ { \mathrm { u p d a t e } } \gets 0$
323
+ 22: end if
324
+ 23: end for
325
+ 24: end for
326
+ 25:
327
+ 26: 27: function UPDATECRIUnpack minibatch $( B )$
328
+ $( o _ { 1 \dots N } ^ { B } , a _ { 1 \dots N } ^ { B } , r _ { 1 \dots N } ^ { B } , o _ { 1 \dots N } ^ { ' B } ) B$
329
+ 28: Calculate $Q _ { i } ^ { \psi } ( o _ { 1 \ldots N } ^ { B } , a _ { 1 \ldots N } ^ { B } )$ for all $i$ in parallel
330
+ 29: Calculate $a _ { i } ^ { ' B } \sim \pi _ { i } ^ { \bar { \theta } } ( o _ { i } ^ { ' B } )$ using target policies
331
+ 30: Calculate $Q _ { i } ^ { \bar { \psi } } ( o _ { 1 \dots N } ^ { ' B } , a _ { 1 \dots N } ^ { ' B } )$ for all $i$ in parallel, using target critic
332
+ 31: Update critic:
333
+
334
+ $$
335
+ \begin{array} { l } { \displaystyle \mathcal { L } _ { Q } ( \psi ) = \sum _ { i = 1 } ^ { N } \mathbb { E } _ { ( o , a , r , o ^ { \prime } ) \sim D } \Big [ ( Q _ { i } ^ { \psi } ( o , a ) - y _ { i } ) ^ { 2 } \Big ] , \mathrm { w h e r e } } \\ { \displaystyle y _ { i } = r _ { i } + \gamma \mathbb { E } _ { a ^ { \prime } \sim \bar { \pi _ { i } } ( o ^ { \prime } ) } \Big [ Q _ { i } ^ { \bar { \psi } } ( o ^ { \prime } , a ^ { \prime } ) - \alpha l o g ( \pi _ { \bar { \theta _ { i } } } ( a _ { i } ^ { ' } | o _ { i } ^ { ' } ) ) \Big ] } \end{array}
336
+ $$
337
+
338
+ 32: end function
339
+
340
+ 34: function UPDATEPOLICIES $( o _ { 1 \dots N } ^ { B } )$
341
+
342
+ 35: Calculate $a _ { 1 \dots N } ^ { B } \sim \pi _ { i } ^ { \bar { \theta } } ( o _ { i } ^ { ' B } ) , i \in 1 \dots N$
343
+
344
+ 36: Calculate $Q _ { i } ^ { \psi } ( o _ { 1 \ldots N } ^ { B } , a _ { 1 \ldots N } ^ { B } )$ for all $i$ in parallel
345
+
346
+ 37: Update policies:
347
+
348
+ $$
349
+ \nabla _ { \theta _ { i } } J ( \pi _ { \theta } ) = \mathbb { E } _ { a \sim \pi _ { \theta } } \left[ \nabla _ { \theta _ { i } } l o g ( \pi _ { \theta _ { i } } ( a _ { i } | o _ { i } ) ) ( \alpha l o g ( \pi _ { \theta _ { i } } ( a _ { i } | o _ { i } ) ) - Q _ { i } ^ { \psi } ( o , a ) + b ( o , \bar { a } ) ) \right]
350
+ $$
351
+
352
+ # 38: end function
353
+
354
+ # 6.1 TRAINING PROCEDURE
355
+
356
+ We train using Soft Actor-Critic (Haarnoja et al., 2018), an off-policy, actor-critic method for maximum entropy reinforcement learning. Our training procedure consists of performing 12 parallel rollouts, and adding a tuple of $\big ( o _ { t } , a _ { t } , r _ { t } , o _ { t + 1 } \big ) _ { 1 \dots N }$ to a replay buffer (with maximum length 1e6) for each timepoint. We reset each environment after every 100 steps (an episode). After 100 steps (across all rollouts), we perform 4 updates for the attention critic and for all policies. For each update we sample minibatches of 1024 timepoints from the replay buffer and then perform gradient descent on the Q-function loss objective (7), as well as the policy objective (8), using Adam (Kingma & Ba, 2014) as the optimizer for both with a learning rate of 0.001. These updates can be computed efficiently in parallel (across agents) using a GPU. After the updates are complete, we update the parameters $\dot { \psi }$ of our target critic $Q _ { \bar { \psi } }$ to move toward our learned critic’s parameters, $\psi$ , as in Lillicrap et al. (2016); Haarnoja et al. (2018): $\bar { \psi } = ( 1 - \tau ) \bar { \psi } + \tau \psi$ , where $\tau$ is the update rate (set to 0.002 for attention parameters and 0.04 for all other parameters). Using a target critic has been shown to stabilize the use of experience replay for off-policy reinforcement learning with neural network function approximators (Mnih et al., 2015; Lillicrap et al., 2016). We update the parameters of the target policies, $\bar { \theta }$ in the same manner. We use a discount factor, $\gamma$ , of 0.99. All networks (separate policies and contained within the centralized critics) use a hidden dimension of 128 and Leaky Rectified Linear Units as the nonlinearity. We use 0.2 as our temperature setting for Soft Actor-Critic. Additionally, we typically use 4 attention heads in our attention critics unless otherwise specified.
357
+
358
+ # 6.2 REPARAMETRIZATION OF DDPG/MADDPG FOR DISCRETE ACTION SPACES
359
+
360
+ In order to compare to DDPG and MADDPG in our environments with discrete action spaces, we must make a slight modification to the basic algorithm. This modification is first suggested by Lowe et al. (2017) in order to enable policies that output discrete communication messages. Consider the original DDPG policy gradient which takes advantage of the fact that you can easily calculate the gradient of the output of a deterministic policy with respect to its parameters.
361
+
362
+ $$
363
+ \nabla _ { \theta } J = \mathbb { E } _ { s \sim \rho } \left[ \nabla _ { a } Q ( s , a ) | _ { a = \mu ( s ) } \nabla _ { \theta } \mu ( s | \theta ) \right]
364
+ $$
365
+
366
+ Rather than policies that deterministically output an action from within a continuous action space, we use policies that produce differentiable samples through a Gumbel-Softmax distribution (Jang et al., 2017). Using differentiable samples allows us to use the gradient of expected returns to train policies without using the log derivative trick, just as in DDPG.
367
+
368
+ $$
369
+ \nabla _ { \theta } J = \mathbb { E } _ { s \sim \rho , a \sim \pi ( s ) } \left[ \nabla _ { a } Q ( s , a ) \nabla _ { \theta } a \right]
370
+ $$
371
+
372
+ # 6.3 VISUALIZING ATTENTION
373
+
374
+ In order to understand how the use of attention evolves over the course of training, we examine the ”entropy” of the attention weights for each agent for each of the four attention heads that we use in both tasks (Figures 4 and 5). The black bars indicate the maximum possible entropy (i.e. uniform attention across all agents). Lower entropy indicates that the head is focusing on specific agents, with an entropy of 0 indicating attention focusing on one agent. In Rover-Tower, we plot the attention entropy for each rover. Interestingly, each agent appears to use a different combination of the four heads, but their use is not mutually exclusive, indicating that the inclusion of separate attention heads for each agent is not necessary. This differential use of attention heads is sensible due to the nature of rewards in this environment (i.e. individualized rewards). In the case of Treasure Collection, we find that all agents use the attention heads similarly, which is unsurprising considering that rewards are shared in that environment.
375
+
376
+ In order to inspect how the attention mechanism is working on a more fine-grained level, we visualize the attention weights for one of the rovers in Rover-Tower (Figure 6), from the head that the agent appears to use the most (determined by looking at Figure 4), while changing the tower that said rover is paired to. In these plots, we ignore the weights over other rovers for simplicity since these are always near zero. We find that the rover learns to strongly attend to the tower that it is paired with, without any explicit supervision signal to do so. The model implicitly learns which agent is most relevant to estimating the rover’s expecture future returns, and said agent can change dynamically without affecting the performance of the algorithm.
377
+
378
+ ![](images/dd6d226b64964d0586712c101b05f8f35f4c98b43b49eba256d1ac3e6721a78c.jpg)
379
+ Figure 4: Attention ”entropy” for each head over the course of training for the four rovers in the Rover-Tower environment
380
+
381
+ ![](images/3b64d8a5ae6a830193dffa365d2dc696f9bf36d1a08a6a75ed444b65375a6deb.jpg)
382
+ Figure 5: Attention ”entropy” for each head over the course of training for two collectors in the Treasure Collection Environment
383
+
384
+ # 6.4 CONTINUOUS ACTION SPACES
385
+
386
+ In order to test our model’s ability to handle continuous action spaces, we add a network for each agent to learn a state-value function $V _ { i } ( o , a _ { \backslash i } )$ , which uses the same weighted attention embedding over other agents as $Q _ { i } ( o , a )$ . The loss functions to learn both networks are provided by Haarnoja et al. (2018). We test on an environment introduced in Lowe et al. (2017) called Cooperative Navigation and compare to MADDPG. Our results are presented in Table 3. This task does not require attention, as all agents are relevant to each others rewards at each time step. As such, it is unsurprising that our approach matches but does not surpass the performance of MADDPG. It is notable, however, both that attention does not harm performance in simple cases and that our approach handles continuous action spaces as well.
387
+
388
+ Table 3: Cooperative Navigation (Continuous)
389
+
390
+ <table><tr><td>MADDPG</td><td>MAAC</td></tr><tr><td>-2.47 ± 0.05</td><td>-2.49 ±0.11</td></tr></table>
391
+
392
+ ![](images/202b9b1da1f524d817219da2b216af9549b8bbb38788d6852c92299fca0b6d58.jpg)
393
+ Figure 6: Attention weights when subjected to different Tower pairings for Rover 1 in Rover-Tower environment
parse/train/HJx7l309Fm/HJx7l309Fm_content_list.json ADDED
@@ -0,0 +1,1956 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ACTOR-ATTENTION-CRITIC FOR MULTI-AGENT REINFORCEMENT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Reinforcement learning in multi-agent scenarios is important for real-world applications but presents challenges beyond those seen in single-agent settings. We present an actor-critic algorithm that trains decentralized policies in multi-agent settings, using centrally computed critics that share an attention mechanism which selects relevant information for each agent at every timestep. This attention mechanism enables more effective and scalable learning in complex multi-agent environments, when compared to recent approaches. Our approach is applicable not only to cooperative settings with shared rewards, but also individualized reward settings, including adversarial settings, and it makes no assumptions about the action spaces of the agents. As such, it is flexible enough to be applied to most multi-agent learning problems. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 419
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 445,
55
+ 336,
56
+ 462
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Reinforcement learning has recently made exciting progress in many domains, including Atari games (Mnih et al., 2015), the ancient Chinese board game, Go (Silver et al., 2016), and complex continuous control tasks involving locomotion (Lillicrap et al., 2016; Schulman et al., 2015; 2017; Heess et al., 2017). While most reinforcement learning paradigms focus on single agents acting in a static environment (or against themselves in the case of Go), real-world agents often compete or cooperate with other agents in a dynamically shifting environment. In order to learn effectively in multi-agent environments, agents must not only learn the dynamics of their environment, but also those of the other learning agents present. ",
63
+ "bbox": [
64
+ 174,
65
+ 477,
66
+ 825,
67
+ 589
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "To this end, several approaches for multi-agent reinforcement learning have been developed. The simplest approach is to train each agent independently to maximize their individual reward, while treating other agents as part of the environment. However, this approach violates the basic assumption underlying reinforcement learning, that the environment should be stationary and Markovian. Any single agent’s environment is dynamic and nonstationary due to other agents’ changing policies. As such, standard algorithms developed for stationary Markov decision processes fail. ",
74
+ "bbox": [
75
+ 174,
76
+ 595,
77
+ 825,
78
+ 679
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "At the other end of the spectrum, all agents can be collectively modeled as a single-agent whose action space is the joint action space of all agents (Bus¸oniu et al., 2010). While allowing coordinated behaviors across agents, this approach is not scalable due to the action space size increasing exponentially with the number of agents. It also demands a high degree of communication during execution, as the central policy must collect observations from and distribute actions to the individual agents. In real-world settings, this demand can be problematic. ",
85
+ "bbox": [
86
+ 174,
87
+ 686,
88
+ 823,
89
+ 770
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Recent work (Lowe et al., 2017; Foerster et al., 2018) attempts to combine the strengths of these two approaches. In particular, a critic (or a number of critics) is centrally learned with information from all agents. The actors, however, receive information only from their corresponding agents. Thus, during testing, executing the policies does not require the knowledge of other agents’ actions. This paradigm circumvents the challenge of non-Markovian and non-stationary environments during learning. Despite those progresses, however, algorithms for multi-agent reinforcement learning are still far from being scalable (to a larger number of agents) and being generically applicable to environments and tasks that are co-operative (sharing a global reward), competitive, or mixed. ",
96
+ "bbox": [
97
+ 174,
98
+ 776,
99
+ 825,
100
+ 888
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Our approach extends these prior works in several directions. The main idea is to centrally learn a critic with an attention mechanism. The intuition behind our idea is that in many real-world environments, it is beneficial for agents to know what other agents it should pay attention to. For example, a soccer defender needs to pay attention to attackers in their vicinity as well as the player with the ball, while she/he rarely needs to pay attention to the opposing team’s goalie. The specific attackers that the defender is paying attention to can change at different parts of the game, depending on the formation and strategy of the opponent. A typical centralized approach to multi-agent reinforcement learning does not take these dynamics into account, instead simply considering all agents at all timepoints. Our attention mechanism is able to dynamically select which agents to attend to at each time point, improving performance in multi-agent domains with complex interactions. ",
107
+ "bbox": [
108
+ 174,
109
+ 895,
110
+ 823,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 825,
122
+ 215
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "The proposed approach has an input space linearly increasing with respect to the number of agents, as opposed to the quadratic increase in a previous approach Lowe et al. (2017). It also works well in co-operative, competitive, and mixed environments, exceeding the capability of some prior work that focuses only on co-operative environments Foerster et al. (2018). ",
129
+ "bbox": [
130
+ 174,
131
+ 222,
132
+ 825,
133
+ 277
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We have validated our approach on two simulated environments and tasks. We plan to release the code for both the model and the environments after the reviewing period ends. ",
140
+ "bbox": [
141
+ 174,
142
+ 285,
143
+ 820,
144
+ 313
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "The rest of the paper is organized as follows. In section 2, we discuss related work, followed by a detailed description of our approach in section 3. We report experimental studies in section 4 and conclude in section 5. ",
151
+ "bbox": [
152
+ 174,
153
+ 319,
154
+ 825,
155
+ 362
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 RELATED WORK ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 176,
165
+ 396,
166
+ 344,
167
+ 412
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Multi-Agent Reinforcement Learning (MARL) is a long studied problem (Bus¸oniu et al., 2010). Topics within MARL are diverse, ranging from learning communication between cooperative agents (Tan, 1993; Fischer et al., 2004) to algorithms for optimal play in competitive settings (Littman, 1994), though, until recently, they have been focused on simple gridworld environments with tabular learning methods. ",
174
+ "bbox": [
175
+ 174,
176
+ 435,
177
+ 823,
178
+ 506
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "As deep learning based approaches to reinforcement learning have grown more popular, they have, naturally, been applied to the MARL setting (Tampuu et al., 2017; Gupta et al., 2017), allowing multi-agent learning in high-dimensional/continuous state spaces; however, naive applications of Deep RL methods to MARL naturally encounter some limitations, such as nonstationarity of the environment from the perspective of individual agents (Foerster et al., 2017; Lowe et al., 2017; Foerster et al., 2018), lack of coordination/communication in cooperative settings (Sukhbaatar et al., 2016; Mordatch & Abbeel, 2018; Lowe et al., 2017; Foerster et al., 2016), credit assignment in cooperative settings with global rewards (Rashid et al., 2018; Sunehag et al., 2018; Foerster et al., 2018), and the failure to take opponent strategies into account when learning agent policies (He et al., 2016). ",
185
+ "bbox": [
186
+ 174,
187
+ 513,
188
+ 825,
189
+ 651
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Most relevant to this work are recent, non-attention approaches that propose an actor-critic framework consisting of centralized training with decentralized execution (Lowe et al., 2017; Foerster et al., 2018), as well as some approaches that utilize attention in a fully centralized multi-agent setting (Choi et al., 2017; Jiang & Lu, 2018). Lowe et al. (2017) investigate the challenges of multiagent learning in mixed reward environments (Bus¸oniu et al., 2010). They propose an actor-critic method that uses separate centralized critics for each agent which take in all other agents’ actions and observations as input, while training policies that are conditioned only on local information. This practice reduces the non-stationarity of multi-agent environments, as considering the actions of other agents to be part of the environment makes the state transition dynamics stable from the perspective of one agent. In practice, these ideas greatly stabilize learning, due to reduced variance in the value function estimates. ",
196
+ "bbox": [
197
+ 174,
198
+ 659,
199
+ 825,
200
+ 810
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Similarly Foerster et al. (2018) introduce a centralized critic for cooperative settings with shared rewards. Their method incorporates a ”counterfactual baseline” for calculating the advantage function which is able to marginalize a single agent’s actions while keeping others fixed. This method allows for complex multi-agent credit assignment, as the advantage function only encourages actions that directly influence an agent’s rewards. ",
207
+ "bbox": [
208
+ 174,
209
+ 819,
210
+ 823,
211
+ 888
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Attention models have recently emerged as a successful approach to intelligently selecting contextual information, with applications in computer vision (Ba et al., 2015; Mnih et al., 2014), natural language processing(Vaswani et al., 2017; Bahdanau et al., 2015; Lin et al., 2017), and reinforcement learning (Oh et al., 2016). ",
218
+ "bbox": [
219
+ 174,
220
+ 895,
221
+ 821,
222
+ 924
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "",
229
+ "bbox": [
230
+ 173,
231
+ 103,
232
+ 823,
233
+ 132
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "In a similar vein, Jiang & Lu (2018) proposed an attention-based actor-critic algorithm for MARL. This work follows the alternative paradigm of centralizing policies while keeping the critics decentralized. Their focus is on learning an attention model for sharing information between the policies. As such, this approach is complementary to ours, and a combination of both approaches could yield further performance benefits in cases where centralized policies are desirable. ",
240
+ "bbox": [
241
+ 174,
242
+ 138,
243
+ 823,
244
+ 208
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "Our proposed approach is more flexible than the aformentioned approaches for MARL. Our algorithm is able to train policies in environments with any reward setup, different action spaces for each agent, a variance-reducing baseline that only marginalizes the relevant agent’s actions, and with a set of centralized critics that dynamically attend to the relevant information for each agent at each time point. As such, our approach is more scalable to the number of agents, and is more broadly applicable to different types of environments. ",
251
+ "bbox": [
252
+ 174,
253
+ 215,
254
+ 825,
255
+ 299
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "3 OUR APPROACH",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 319,
266
+ 341,
267
+ 335
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "We start by introducing the necessary notation and basic building blocks for our approach. We then describe our ideas in detail. ",
274
+ "bbox": [
275
+ 174,
276
+ 351,
277
+ 823,
278
+ 378
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "3.1 NOTATION AND BACKGROUND",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 176,
288
+ 395,
289
+ 426,
290
+ 410
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "We consider the framework of Markov Games (Littman, 1994), which is a multi-agent extension of Markov Decision Processes. They are defined by a set of states, $S$ , action sets for each of $N$ agents, $A _ { 1 } , . . . , A _ { N }$ , a state transition function, $T : S \\times A _ { 1 } \\times . . . \\times A _ { N } P ( S )$ , which defines the probability distribution over possible next states, given the current state and actions for each agent, and a reward function for each agent that also depends on the global state and actions of all agents, $R _ { i } : S \\times A _ { 1 } \\times . . . \\times A _ { N } \\to \\mathbb { R }$ . We will specifically be considering a partially observable variant in which an agent, $i$ receives an observation, $o _ { i }$ , which contains partial information from the global state, $s \\in S$ . Each agent learns a policy, $\\pi _ { i } : O _ { i } \\to P ( A _ { i } )$ which maps each agent’s observation to a distribution over it’s set of actions. The agents aim to learn a policy that maximizes their expected discounted returns, $J _ { i } ( \\pi _ { i } ) = \\mathbb { E } _ { a _ { 1 } \\sim \\pi _ { 1 } , \\dots , a _ { N } \\sim \\pi _ { N } , s \\sim T } [ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\hat { r _ { i t } } ( s _ { t } , a _ { 1 t } , . . , a _ { N t } ) ]$ , where $\\gamma \\in [ 0 , 1 ]$ is the discount factor that determines how much the policy favors immediate reward over long-term gain. ",
297
+ "bbox": [
298
+ 173,
299
+ 421,
300
+ 825,
301
+ 588
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Policy Gradients Policy gradient techniques (Sutton et al., 2000; Williams, 1992) aim to estimate the gradient of an agent’s expected returns with respect to the parameters of its policy. This gradient estimate takes the following form: ",
308
+ "bbox": [
309
+ 174,
310
+ 603,
311
+ 823,
312
+ 646
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "equation",
318
+ "img_path": "images/44abfc5bd83f84432365025338e4536bc141e6e8f8c9435852e5e3bc3603ef60.jpg",
319
+ "text": "$$\n\\nabla _ { \\theta } J ( \\pi _ { \\theta } ) = \\mathbb { E } _ { a \\sim \\pi _ { \\theta } } \\left[ \\nabla _ { \\theta } \\log ( \\pi _ { \\theta } ( a _ { t } \\vert s _ { t } ) ) \\sum _ { t ^ { \\prime } = t } ^ { \\infty } \\gamma ^ { t ^ { \\prime } - t } r _ { t ^ { \\prime } } ( s _ { t ^ { \\prime } } , a _ { t ^ { \\prime } } ) \\right]\n$$",
320
+ "text_format": "latex",
321
+ "bbox": [
322
+ 294,
323
+ 651,
324
+ 702,
325
+ 695
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "Actor-Critic and Soft Actor-Critic The term P∞t0=t γ $\\begin{array} { r } { \\sum _ { t ^ { \\prime } = t } ^ { \\infty } \\gamma ^ { t ^ { \\prime } - t } r _ { t ^ { \\prime } } ( s _ { t ^ { \\prime } } , a _ { t ^ { \\prime } } ) } \\end{array}$ in the policy gradient estimator leads to high variance, as these returns can vary drastically between episodes. Actor-critic methods (Konda & Tsitsiklis, 2000) aim to ameliorate this issue by using a function approximation of the expected returns, and replacing the original return term in the policy gradient estimator with this function. One specific instance of actor-critic methods learns a function to estimate expected discounted returns, given a state and action, $\\begin{array} { r } { Q _ { \\psi } ( s _ { t } , a _ { t } ) = \\mathbb { E } [ \\sum _ { t ^ { \\prime } = t } ^ { \\infty } \\gamma ^ { t ^ { \\prime } - t } r _ { t ^ { \\prime } } ( s _ { t ^ { \\prime } } , a _ { t ^ { \\prime } } ) ] } \\end{array}$ , learned through temporal-difference learning by minimizing the regression loss: ",
332
+ "bbox": [
333
+ 173,
334
+ 708,
335
+ 825,
336
+ 810
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "equation",
342
+ "img_path": "images/4f9200a85c73de71161a839b8e912110c3e82cd247174a88e9746bc2e9723657.jpg",
343
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { Q } ( \\psi ) = \\mathbb { E } _ { s , a , r , s ^ { \\prime } } \\left[ ( Q _ { \\psi } ( s , a ) - y ) ^ { 2 } \\right] \\mathrm { , w h e r e ~ } y = r ( s , a ) + \\gamma \\mathbb { E } _ { a ^ { \\prime } \\sim \\pi ( s ^ { \\prime } ) } \\left[ Q _ { \\bar { \\psi } } ( s ^ { \\prime } , a ^ { \\prime } ) \\right] } \\end{array}\n$$",
344
+ "text_format": "latex",
345
+ "bbox": [
346
+ 218,
347
+ 814,
348
+ 777,
349
+ 834
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "where $Q _ { \\bar { \\psi } }$ is the target Q-value function. ",
356
+ "bbox": [
357
+ 176,
358
+ 838,
359
+ 439,
360
+ 854
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "To encourage exploration and avoid converging to non-optimal deterministic policies, recent approaches of maximum entropy reinforcement learning learn a soft value function by modifying the policy gradient to incorporate an entropy term (Haarnoja et al., 2018): ",
367
+ "bbox": [
368
+ 174,
369
+ 859,
370
+ 823,
371
+ 902
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/237841cd52604e344a39fb2d5324d225775d66f34bb312ee4e76c6dfc98a2571.jpg",
378
+ "text": "$$\n\\nabla _ { \\theta } J ( \\pi _ { \\theta } ) = \\mathbb { E } _ { a \\sim \\pi _ { \\theta } } \\left[ \\nabla _ { \\theta } \\log ( \\pi _ { \\theta } ( a | s ) ) ( \\alpha \\log ( \\pi _ { \\theta } ( a | s ) ) - Q _ { \\psi } ( s , a ) + b ( s ) ) \\right]\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 253,
382
+ 907,
383
+ 743,
384
+ 925
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "where $b ( s )$ is a state-dependent baseline (for the $\\mathbf { Q }$ -value function). The loss function for temporaldifference learning of the value function is also revised accordingly with a new target: ",
391
+ "bbox": [
392
+ 171,
393
+ 103,
394
+ 821,
395
+ 132
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "equation",
401
+ "img_path": "images/3d6e9a6cb479b17784368062c8208d16c2a4b99de992cb1002c6ba077dd31ada.jpg",
402
+ "text": "$$\ny = r ( s , a ) + \\gamma \\mathbb { E } _ { a ^ { \\prime } \\sim \\pi ( s ^ { \\prime } ) } \\left[ Q _ { \\bar { \\psi } } ( s ^ { \\prime } , a ^ { \\prime } ) - \\alpha \\ \\log ( \\pi _ { \\theta } ( a ^ { \\prime } | s ^ { \\prime } ) ) \\right]\n$$",
403
+ "text_format": "latex",
404
+ "bbox": [
405
+ 305,
406
+ 138,
407
+ 691,
408
+ 159
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "While an estimate of the value function $V _ { \\phi } ( s )$ can be used a baseline, we provide an alternative that further reduces variance and addresses credit assignment in the multi-agent setting in section 3.2. ",
415
+ "bbox": [
416
+ 171,
417
+ 165,
418
+ 823,
419
+ 194
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "3.2 MULTIPLE-ACTOR-ATTENTION-CRITIC (MAAC) ",
426
+ "text_level": 1,
427
+ "bbox": [
428
+ 173,
429
+ 212,
430
+ 557,
431
+ 227
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "The main idea behind our multi-agent learning approach is to learn the critic for each agent by selectively paying attention to other agents’ actions. This is the same paradigm of training critics centrally (to overcome the challenge of non-stationary non-Markovian environments) and executing learned policies distributedly. Figure 1 illustrates the main components of our approach. ",
438
+ "bbox": [
439
+ 174,
440
+ 238,
441
+ 825,
442
+ 295
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "Attention The attention mechanism functions in a manner similar to a differentiable key-value memory model (Graves et al., 2014; Oh et al., 2016). Intuitively, each agent queries the other agents for information about their observations and actions and incorporates that information into the estimate of its value function. This paradigm was chosen, in contrast to other attention-based approaches, as it doesn’t make any assumptions about the temporal or spatial locality of the inputs, as opposed to approaches taken in the natural language processing and computer vision fields. ",
449
+ "bbox": [
450
+ 173,
451
+ 309,
452
+ 825,
453
+ 395
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "To calculate the Q-value function $Q _ { i } ^ { \\psi } ( o , a )$ for the agent $i$ , the critic receives the observations, $o = \\left( o _ { 1 } , . . . , o _ { N } \\right)$ , and actions, $a = ( a _ { 1 } , . . . , a _ { N } )$ , for all agents indexed by $i \\in \\{ 1 \\ldots N \\}$ . We represent the set of all agents except $i$ as $\\backslash i$ and we index this set with $j$ . $Q _ { i } ^ { \\psi } ( o , a )$ is a function of agent $i$ ’s observation and action, as well as other agents’ contributions: ",
460
+ "bbox": [
461
+ 173,
462
+ 404,
463
+ 485,
464
+ 517
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "equation",
470
+ "img_path": "images/bf8d2c79e10f2bcb65b42000a4d17e1740f935b5cd39344eb971c8d279ccab95.jpg",
471
+ "text": "$$\nQ _ { i } ^ { \\psi } ( o , a ) = f _ { i } ( g _ { i } ( o _ { i } , a _ { i } ) , x _ { i } )\n$$",
472
+ "text_format": "latex",
473
+ "bbox": [
474
+ 232,
475
+ 525,
476
+ 426,
477
+ 545
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "where $f _ { i }$ is a two-layer multi-layer perceptron (MLP), while $g _ { i }$ is a one-layer MLP embedding function. The contribution from other agents, $x _ { i }$ , is a weighted sum of each agent’s value: ",
484
+ "bbox": [
485
+ 173,
486
+ 553,
487
+ 485,
488
+ 608
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "image",
494
+ "img_path": "images/1b63afec914c8275c439d4f59e0a54ef9030be274d1a28a8b7ef0cc5169eda6a.jpg",
495
+ "image_caption": [
496
+ "Figure 1: Calculating $Q _ { i } ^ { \\psi } ( o , a )$ with attention for agent $i$ . "
497
+ ],
498
+ "image_footnote": [],
499
+ "bbox": [
500
+ 496,
501
+ 425,
502
+ 823,
503
+ 608
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/828cb50af7d007c1fbafcded257cb44cbf3366b15b4a53a79666305d1b9a328a.jpg",
510
+ "text": "$$\nx _ { i } = \\sum _ { j \\neq i } \\alpha _ { j } v _ { j } = \\sum _ { j \\neq i } \\alpha _ { j } h ( V g _ { j } ( o _ { j } , a _ { j } ) )\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 196,
514
+ 616,
515
+ 460,
516
+ 651
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "where the value, $v _ { j }$ is a function of agent $j$ ’s ",
523
+ "bbox": [
524
+ 176,
525
+ 657,
526
+ 485,
527
+ 672
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "embedding, encoded with an embedding function and then linearly transformed by a shared matrix $V , h$ is an element-wise nonlinearity (we have used leaky ReLU). ",
534
+ "bbox": [
535
+ 174,
536
+ 672,
537
+ 821,
538
+ 700
539
+ ],
540
+ "page_idx": 3
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "The attention weight $\\alpha _ { j }$ compares the embedding $e _ { j }$ with $e _ { i } = g _ { i } ( o _ { i } , a _ { i } )$ , using a bilinear mapping (ie, the query-key system) and passes the similarity value between these two embeddings into a softmax ",
545
+ "bbox": [
546
+ 174,
547
+ 707,
548
+ 825,
549
+ 747
550
+ ],
551
+ "page_idx": 3
552
+ },
553
+ {
554
+ "type": "equation",
555
+ "img_path": "images/f3d04670f0d5d31caf9864b39f52dd4c105337a57fb8847b57039d7134dbf861.jpg",
556
+ "text": "$$\n\\alpha _ { j } \\propto \\exp ( e _ { j } ^ { \\operatorname { T } } W _ { k } ^ { \\operatorname { T } } W _ { q } e _ { i } )\n$$",
557
+ "text_format": "latex",
558
+ "bbox": [
559
+ 419,
560
+ 747,
561
+ 578,
562
+ 767
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "where $W _ { q }$ transforms $e _ { i }$ into a “query” and $W _ { k }$ transforms $e _ { j }$ into a “key”. The matching is then scaled by the dimensionality of these two matrices to prevent vanishing gradients (Vaswani et al., 2017). ",
569
+ "bbox": [
570
+ 174,
571
+ 770,
572
+ 825,
573
+ 811
574
+ ],
575
+ "page_idx": 3
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "In our experiments, we have used multiple attention heads (Vaswani et al., 2017). In this case, each head, using a separate set of parameters $( W _ { k } , W _ { q } , V )$ , gives rise to an aggregated contribution from all other agents to the agent $i$ and we simply concatenate the contributions from all heads as a single vector. Crucially, each head can focus on a different weighted mixture of agents. ",
580
+ "bbox": [
581
+ 173,
582
+ 818,
583
+ 825,
584
+ 875
585
+ ],
586
+ "page_idx": 3
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "Note that the weights for extracting selectors, keys, and values are shared across all agents, which encourages a common embedding space. The sharing of critic parameters between agents is possible, even in adversarial settings, because multi-agent value-function approximation is, essentially, a multi-task regression problem. This method can easily be extended to include additional information, beyond local observations and actions, at training time, including the global state if it is available, simply by adding additional encoders, $e$ . (We do not consider this case in our experiments, however, as our approach is effective in combining local observations to predict expected returns in environments where the global state may not be available). ",
591
+ "bbox": [
592
+ 174,
593
+ 882,
594
+ 823,
595
+ 924
596
+ ],
597
+ "page_idx": 3
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "",
602
+ "bbox": [
603
+ 173,
604
+ 102,
605
+ 825,
606
+ 174
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "Learning with Attentive Critics All critics are updated together to minimize a joint regression loss function, due to the parameter sharing: ",
613
+ "bbox": [
614
+ 173,
615
+ 188,
616
+ 823,
617
+ 217
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "equation",
623
+ "img_path": "images/9f3ecbf20bda06d9edb1a06fff14706ea5adb0e3a537f81e3435d567e7becb12.jpg",
624
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { \\mathcal L } _ { Q } ( \\psi ) = \\sum _ { i = 1 } ^ { N } \\mathbb E _ { ( o , a , r , o ^ { \\prime } ) \\sim D } \\Big [ ( Q _ { i } ^ { \\psi } ( o , a ) - y _ { i } ) ^ { 2 } \\Big ] , \\mathrm { w h e r e } } } \\\\ { { \\displaystyle y _ { i } = r _ { i } + \\gamma \\mathbb E _ { a ^ { \\prime } \\sim \\pi _ { \\bar { \\theta } } ( o ^ { \\prime } ) } \\Big [ Q _ { i } ^ { \\bar { \\psi } } ( o ^ { \\prime } , a ^ { \\prime } ) - \\alpha \\ \\log ( \\pi _ { \\bar { \\theta } _ { i } } ( a _ { i } ^ { ' } | o _ { i } ^ { ' } ) ) \\Big ] } } \\end{array}\n$$",
625
+ "text_format": "latex",
626
+ "bbox": [
627
+ 313,
628
+ 219,
629
+ 687,
630
+ 292
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "where $\\bar { \\psi }$ and $\\bar { \\theta }$ are the parameters of the target critics and target policies respectively. Note that $Q _ { i } ^ { \\psi }$ , the action-value estimate for agent $i$ , receives observations and actions for all agents. $\\alpha$ is the temperature parameter determining the balance between maximizing entropy and rewards. The individual policies are updated with the following gradient: ",
637
+ "bbox": [
638
+ 173,
639
+ 295,
640
+ 826,
641
+ 354
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "equation",
647
+ "img_path": "images/89241b550583eaaf418ef49f694138bbf3fdd88528b5737ed608554fb653d050.jpg",
648
+ "text": "$$\n\\nabla _ { \\theta _ { i } } J ( \\pi _ { \\theta } ) = \\mathbb { E } _ { a \\sim \\pi _ { \\theta } } \\left[ \\nabla _ { \\theta _ { i } } \\log ( \\pi _ { \\theta _ { i } } ( a _ { i } | o _ { i } ) ) ( \\alpha \\ \\log ( \\pi _ { \\theta _ { i } } ( a _ { i } | o _ { i } ) ) - Q _ { i } ^ { \\psi } ( o , a ) + b ( o , a \\setminus i ) ) \\right]\n$$",
649
+ "text_format": "latex",
650
+ "bbox": [
651
+ 215,
652
+ 369,
653
+ 781,
654
+ 397
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "where $b ( o , a _ { \\backslash i } )$ is the multi-agent baseline used to calculate the advantage function decribed in the following section. Note that we are sampling all actions, $a$ , from all agents’ current policies in order to calculate the gradient estimate for agent $i$ , unlike in the MADDPG algorithm Lowe et al. (2017), where the other agents’ actions are sampled from the replay buffer, potentially causing overgeneralization where agents fail to coordinate based on their current policies Wei et al. (2018). Full training details and hyperparameters can be found in the appendix 6.1. ",
661
+ "bbox": [
662
+ 173,
663
+ 398,
664
+ 825,
665
+ 483
666
+ ],
667
+ "page_idx": 4
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "Multi-Agent Advantage Function As shown in Foerster et al. (2018), an advantage function using a baseline that only marginalizes out the actions of the given agent from $Q _ { i } ^ { \\psi } ( o , a )$ , can help solve the multi-agent credit assignment problem. In other words, by comparing the value of a specific action to the value of the average action for the agent, with all other agents fixed, we can learn whether said action will cause an increase in expected return or whether any increase in reward is attributed to the actions of other agents. The form of this advantage function is shown below: ",
672
+ "bbox": [
673
+ 173,
674
+ 496,
675
+ 825,
676
+ 583
677
+ ],
678
+ "page_idx": 4
679
+ },
680
+ {
681
+ "type": "equation",
682
+ "img_path": "images/8e1349cff5b570357dfbbb18a4cee282c8b132de0854b5a3afa2c466e2da1998.jpg",
683
+ "text": "$$\n\\begin{array} { r } { A _ { i } ( o , a ) = Q _ { i } ^ { \\psi } ( o , a ) - b ( o , a _ { \\backslash i } ) ) , \\mathrm { ~ w h e r e ~ } } \\\\ { b ( o , a _ { \\backslash i } ) ) = \\mathbb { E } _ { a _ { i } \\sim \\pi _ { i } ( o _ { i } ) } \\left[ Q _ { i } ^ { \\psi } ( o , ( a _ { i } , a _ { \\backslash i } ) ) \\right] } \\end{array}\n$$",
684
+ "text_format": "latex",
685
+ "bbox": [
686
+ 359,
687
+ 603,
688
+ 640,
689
+ 655
690
+ ],
691
+ "page_idx": 4
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Using our attention mechanism, we can implement a more general and flexible form of a multiagent baseline that, unlike the advantage function proposed in Foerster et al. (2018), doesn’t assume the same action space for each agent, doesn’t require a global reward, and attends dynamically to other agents, as in our $\\mathrm { Q }$ -function. This is made simple by the natural decomposition of an agents encoding, $e _ { i }$ , and the weighted sum of encodings of other agents, $x _ { i }$ , in our attention model. ",
696
+ "bbox": [
697
+ 173,
698
+ 662,
699
+ 825,
700
+ 734
701
+ ],
702
+ "page_idx": 4
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Concretely, in the case of discrete policies, we can calculate our baseline in a single forward pass by outputting the expected return $Q _ { i } { \\big ( } o , { \\big ( } a _ { i } , a _ { \\backslash i } { \\big ) } { \\big ) }$ for every possible action, $a _ { i } \\in A _ { i }$ , that agent $i$ can take. We can then calculate the expectation exactly: ",
707
+ "bbox": [
708
+ 174,
709
+ 739,
710
+ 823,
711
+ 782
712
+ ],
713
+ "page_idx": 4
714
+ },
715
+ {
716
+ "type": "equation",
717
+ "img_path": "images/1d9077932b455aa3d8b73bf783fe76c0790c134b39444f0dcf1039051085a36e.jpg",
718
+ "text": "$$\n\\mathbb { E } _ { a _ { i } \\sim \\pi _ { i } ( o _ { i } ) } \\left[ Q _ { i } ^ { \\psi } ( o , ( a _ { i } , a _ { \\setminus i } ) ) \\right] = \\sum _ { a _ { i } ^ { \\prime } \\in A _ { i } } \\pi ( a _ { i } ^ { \\prime } | o _ { i } ) Q _ { i } ( o , ( a _ { i } ^ { \\prime } , a _ { \\setminus i } ) )\n$$",
719
+ "text_format": "latex",
720
+ "bbox": [
721
+ 292,
722
+ 785,
723
+ 704,
724
+ 823
725
+ ],
726
+ "page_idx": 4
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "In order to do so, we must remove $a _ { i }$ from the input of $Q _ { i }$ , and output a value for every action. We add an observation-encoder, $e _ { i } = g _ { i } ^ { o } ( o _ { i } )$ , for each agent, using these encodings in place of the $e _ { i } = g _ { i } ( o _ { i } , a _ { i } )$ described above, and modify $f _ { i }$ such that it outputs a value for each possible action, rather than the single input action. In the case of continuous policies, we do not need to add any parameters, as we can simply estimate the expectation in Equation 9 by sampling actions from our policy and averaging their $\\mathbf { Q }$ -values, though, this comes at the cost of multiple expensive passes through the network. ",
731
+ "bbox": [
732
+ 173,
733
+ 825,
734
+ 825,
735
+ 924
736
+ ],
737
+ "page_idx": 4
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "4 EXPERIMENTS ",
742
+ "text_level": 1,
743
+ "bbox": [
744
+ 176,
745
+ 102,
746
+ 326,
747
+ 117
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "4.1 SETUP ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 174,
757
+ 133,
758
+ 261,
759
+ 147
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "We construct two environments that test various capabilities of our approach (MAAC) and baselines. We investigate in two main directions. First, we study the scalability of different methods as the number of agents grows. We hypothesize that the current approach of concatenating all agents’ observations (often used as a global state to be shared among agents) and actions in order to centralize critics does not scale well. To this end, we implement a cooperative environment, Cooperative Treasure Collection, with shared rewards where we can vary the total number of agents. The experimental results in sec 4.3 validate our claim. ",
766
+ "bbox": [
767
+ 174,
768
+ 160,
769
+ 627,
770
+ 297
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Secondly, we want to evaluate each method’s ability to attend to information relevant to rewards. Moreover, the relevance (to rewards) can dynamically change during an episode. This is analogous to real-life tasks such as the soccer example presented earlier. To this end, we implement a Rover-Tower task environment where randomly paired agents communicate information and coordinate. ",
777
+ "bbox": [
778
+ 174,
779
+ 305,
780
+ 625,
781
+ 388
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "The two environments are implemented in the multi-agent particle environment framework1 introduced by Mordatch & Abbeel (2018), and extended by Lowe et al. (2017). We found this framework useful for creating environments involving complex interaction between agents, while keeping the control and perception problems simple, as we are primarily interested in addressing agent interaction. To further simplify the control problem, we use discrete action spaces, allowing agents to move up, down, left, right, or stay; however, the agents may not immediately move exactly in the specified direction, as the task framework incorporates a basic physics engine where agents’ momentums are taken into account. Fig. 2 illustrates the two environments. ",
788
+ "bbox": [
789
+ 174,
790
+ 396,
791
+ 627,
792
+ 561
793
+ ],
794
+ "page_idx": 5
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Cooperative Treasure Collection The cooperative environment in Figure 2a) involves 8 total agents, 6 of which are ”treasure hunters” and 2 of which are “treasure banks”, which each correspond to a different color of treasure. The role of the hunters is to collect the treasure of any color, which re-spawn randomly upon being collected (with a total of 6), and then “deposit” the treasure into the correctly colored “bank”. The role of each bank is to simply gather as much treasure as possible from the hunters. All agents are able to see each others’ positions with respect to their own. Hunters receive a global ",
799
+ "bbox": [
800
+ 174,
801
+ 578,
802
+ 625,
803
+ 703
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "(a) Cooperative Treasure Collection. The small grey agents are “hunters” who collect the colored treasure, and deposit them with the correctly colored large “bank” agents. ",
810
+ "bbox": [
811
+ 648,
812
+ 306,
813
+ 813,
814
+ 395
815
+ ],
816
+ "page_idx": 5
817
+ },
818
+ {
819
+ "type": "image",
820
+ "img_path": "images/196f9f5050f478b3d0ff7933669b33756ff258369934bc880ecf228a3588d3f8.jpg",
821
+ "image_caption": [],
822
+ "image_footnote": [],
823
+ "bbox": [
824
+ 648,
825
+ 412,
826
+ 815,
827
+ 540
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "image",
833
+ "img_path": "images/af616e275beaa86e10d3b5d5bf56ab295a010c237b388dc0a2148b49ec269525.jpg",
834
+ "image_caption": [
835
+ "Figure 2: Our environments "
836
+ ],
837
+ "image_footnote": [],
838
+ "bbox": [
839
+ 648,
840
+ 172,
841
+ 816,
842
+ 301
843
+ ],
844
+ "page_idx": 5
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "(b) Rover-Tower. Each grey “Tower” is paired with a “Rover” and a destination (color of rover corresponds to its destination). Their goal is to communicate with the ”Rover” such that it moves toward the destination. ",
849
+ "bbox": [
850
+ 648,
851
+ 546,
852
+ 813,
853
+ 660
854
+ ],
855
+ "page_idx": 5
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "reward for the successful collection of treasure and all agents receive a global reward for the depositing of treasure. Hunters are additionally penalized for colliding with each other. As such, the task contains a mixture of shared and individual rewards and requires different “modes of attention” which depend on the agent’s state and other agents’ potential for affecting its rewards. ",
860
+ "bbox": [
861
+ 174,
862
+ 704,
863
+ 823,
864
+ 758
865
+ ],
866
+ "page_idx": 5
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "Rover-Tower The environment in Figure 2b involves 8 total agents, 4 of which are “rovers” and another 4 which are “towers”. At each episode, rovers and towers are randomly paired. The pair is negatively rewarded by the distance of the rover to its goal. The task can be thought of as a navigation task on an alien planet with limited infrastructure and low visibility. The rovers are unable to see in their surroundings and must rely on communication from the towers, which are able to locate the rovers as well as their destinations and can send one of five discrete communication messages to their paired rover. Note that communication is highly restricted and different from centralized policy approaches Jiang & Lu (2018), which allow for free transfer of continuous information among policies. In our setup, the communication is integrated into the environment (in the tower’s action space and the rover’s observation space), rather than being explicitly part of the model, and is limited to a few discrete signals. ",
871
+ "bbox": [
872
+ 173,
873
+ 775,
874
+ 825,
875
+ 900
876
+ ],
877
+ "page_idx": 5
878
+ },
879
+ {
880
+ "type": "table",
881
+ "img_path": "images/1213142260f71685ed880fa2ba317aec40f6b9910d640dae1bfa7a77668b4e2f.jpg",
882
+ "table_caption": [
883
+ "Table 1: Comparison of various methods for multi-agent RL "
884
+ ],
885
+ "table_footnote": [
886
+ "Centralized $C r i t i c ( s )$ : each agent’s estimate of $Q _ { i }$ takes the actions and observations of the other agents into account. Number of Critics: number of separate networks used for predicting $Q _ { i }$ for all $N$ agents. Multi-task Learning of Critics: all agents’ estimates of $Q _ { i }$ share information in intermediate layers, benefiting from multi-task learning. Multi-Agent Advantage: cf. Sec 3.2 for details. ∗(Foerster et al., 2018), †(Lowe et al., 2017), ‡(Lillicrap et al., 2016) "
887
+ ],
888
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Base Algorithm</td><td rowspan=1 colspan=1>Attention</td><td rowspan=1 colspan=1>CentralizedCritic(s)</td><td rowspan=1 colspan=1>Numberof Critics</td><td rowspan=1 colspan=1>Multi-taskLearning of Critics</td><td rowspan=1 colspan=1>Multi-AgentAdvantage</td></tr><tr><td rowspan=1 colspan=1>MAAC (ours)</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MAAC(Uniform) (ours)</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>uniform</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>COMA*</td><td rowspan=1 colspan=1>Actor-Critic (On-Policy)</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MADDPG†</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>COMA+SAC</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>MADDPG+SAC</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr></table>",
889
+ "bbox": [
890
+ 174,
891
+ 127,
892
+ 823,
893
+ 227
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "",
900
+ "bbox": [
901
+ 174,
902
+ 291,
903
+ 823,
904
+ 319
905
+ ],
906
+ "page_idx": 6
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "4.2 BASELINES",
911
+ "text_level": 1,
912
+ "bbox": [
913
+ 174,
914
+ 338,
915
+ 294,
916
+ 352
917
+ ],
918
+ "page_idx": 6
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "We compare to two recently proposed approaches for centralized training of decentralized policies: MADDPG (Lowe et al., 2017) and COMA (Foerster et al., 2018), as well as a single-agent RL approach, DDPG, trained separately for each agent. ",
923
+ "bbox": [
924
+ 178,
925
+ 364,
926
+ 821,
927
+ 406
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "In order to enable learning in discrete action spaces for both MADDPG and DDPG, where deterministic policies are not possible, we use the Gumbel-Softmax reparametrization trick (Jang et al., 2017). We will refer to these modified versions as MADDPG (Discrete) and DDPG (Discrete). For a detailed description of this reparametrization, see the appendix 6.2. We use soft actor critic to optimize. Thus, in order to have fair comparisons, we additionally implement MADDPG and COMA with Soft Actor-Critic, named as MADDPG $^ +$ SAC and COMA $^ +$ SAC. ",
934
+ "bbox": [
935
+ 174,
936
+ 412,
937
+ 825,
938
+ 497
939
+ ],
940
+ "page_idx": 6
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "We also consider an ablated version of our model as a variant of our approach. In this model, we use uniform attention by fixing the attention weight $\\alpha _ { j }$ (Eq. 6) to be $1 / ( N - 1 )$ . This restriction prevents the model from focusing its attention on specific agents. ",
945
+ "bbox": [
946
+ 176,
947
+ 503,
948
+ 821,
949
+ 546
950
+ ],
951
+ "page_idx": 6
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "All methods are implemented such that their approximate total number of parameters (across agents) are equal to our method, and each model is trained with 6 random seeds each. Hyperparameters for each underlying algorithm are tuned based on performance and kept constant across all variants of critic architectures for that algorithm. A thorough comparison of all baselines is summarized in Table 1. ",
956
+ "bbox": [
957
+ 174,
958
+ 553,
959
+ 825,
960
+ 622
961
+ ],
962
+ "page_idx": 6
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "4.3 RESULTS AND ANALYSIS ",
967
+ "text_level": 1,
968
+ "bbox": [
969
+ 176,
970
+ 642,
971
+ 387,
972
+ 656
973
+ ],
974
+ "page_idx": 6
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "Fig. 3 illustrates averaged rewards per episode by various methods. The proposed approach (MAAC) is competitive with other approaches being compared. In what follows, we provide detailed analysis. ",
979
+ "bbox": [
980
+ 171,
981
+ 669,
982
+ 823,
983
+ 696
984
+ ],
985
+ "page_idx": 6
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Impact of Rewards and Required Attention Uniform attention is competitive with our approach in the Cooperative Treasure Collection (CTC) environment, but not in Rover-Tower. On the other hand, both MADDPG (Discrete) and MADDPG $^ +$ SAC perform well on Rover-Tower, though they do not on CTC. Both variants of COMA do not fare well in our environments. DDPG, arguably a weaker baseline, performs surprisingly well in CTC, but does poorly in Rover-Tower. ",
990
+ "bbox": [
991
+ 174,
992
+ 714,
993
+ 823,
994
+ 784
995
+ ],
996
+ "page_idx": 6
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "In CTC, the rewards are shared across agents thus an agent’s critic does not need to focus on information from specific agents in order to calculate its expected rewards. Moreover, each agent’s local observation provides enough information to make a decent prediction of its expected rewards. This might explain why MAAC (uniform) which attends to other agents equally, and DDPG (being very unattentive to other agents) perform well. ",
1001
+ "bbox": [
1002
+ 174,
1003
+ 791,
1004
+ 823,
1005
+ 861
1006
+ ],
1007
+ "page_idx": 6
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "On the other hand, rewards in the Rover-Tower environment for a specific agent are tied to another single agent’s observations. This environment exemplifies a class of scenarios where dynamic attention can be beneficial: when subgroups of agents are interacting and performing coordinated tasks with separate rewards, but the groups do not remain static. This explains why MAAC (uniform) ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 867,
1015
+ 823,
1016
+ 924
1017
+ ],
1018
+ "page_idx": 6
1019
+ },
1020
+ {
1021
+ "type": "image",
1022
+ "img_path": "images/3ea705bb380bed2beaacfcdfa36922d6441291f128b93b1c4d14848b1219e9f7.jpg",
1023
+ "image_caption": [
1024
+ "Figure 3: (Left) Average Rewards on Cooperative Treasure Collection. (Right) Average Rewards on RoverTower. Our model (MAAC) is competitive in both environments. Error bars are a $9 5 \\%$ confidence interval across 6 runs. "
1025
+ ],
1026
+ "image_footnote": [],
1027
+ "bbox": [
1028
+ 192,
1029
+ 103,
1030
+ 805,
1031
+ 273
1032
+ ],
1033
+ "page_idx": 7
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "perform poorly and DDPG completely breaks down, as knowing information from another specific agent is crucial in predicting expected rewards. ",
1038
+ "bbox": [
1039
+ 173,
1040
+ 338,
1041
+ 823,
1042
+ 367
1043
+ ],
1044
+ "page_idx": 7
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "COMA uses a single centralized network for predicting Q-values for all agents with separate forward passes. Thus, this approach may perform best in environments with global rewards and agents with similar action spaces. However, our environments have agents with differing roles (and non-global rewards in the case of Rover-Tower). Thus both variants of COMA do not fare well. ",
1049
+ "bbox": [
1050
+ 174,
1051
+ 375,
1052
+ 825,
1053
+ 429
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "MADDPG (and its variant) is a very strong method. However, we suspect its low performance in CTC is due to this environment’s relatively large observation spaces for all agents, as the MADDPG critic concatenates observations for all agents into a single input vector for each agent’s critic. Our next experiments confirm this hypothesis. ",
1060
+ "bbox": [
1061
+ 174,
1062
+ 436,
1063
+ 825,
1064
+ 492
1065
+ ],
1066
+ "page_idx": 7
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Scalability We compare the average rewards attained by both approaches (normalized by the range of rewards attained in the environment, as differing the number of agents changes the nature of rewards in each environment), and show that the improvement of our approach MAAC over MADDPG $^ +$ SAC grows with respect to the number of agents. As suspected, MADDPG-like critics use all information non-selectively, while our approach can learn which agents to pay more attention through the attention mechanism. Thus our approach scales better when the number of agents increases. In future research we will continue to improve the scalability when the number of agents further increases by sharing policies among agents, and performing attention on sub-groups (of agents). ",
1071
+ "bbox": [
1072
+ 174,
1073
+ 517,
1074
+ 614,
1075
+ 627
1076
+ ],
1077
+ "page_idx": 7
1078
+ },
1079
+ {
1080
+ "type": "table",
1081
+ "img_path": "images/b2d37685bac034501e6168a5448eb1f74fd0b682be02d542418474509edd9a6e.jpg",
1082
+ "table_caption": [
1083
+ "Table 2: MAAC improves over MADDPG $^ +$ SAC "
1084
+ ],
1085
+ "table_footnote": [],
1086
+ "table_body": "<table><tr><td rowspan=1 colspan=1>#agents</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>16</td></tr><tr><td rowspan=1 colspan=1>Percentage</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>49</td><td rowspan=1 colspan=1>53</td></tr></table>",
1087
+ "bbox": [
1088
+ 627,
1089
+ 574,
1090
+ 826,
1091
+ 606
1092
+ ],
1093
+ "page_idx": 7
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "",
1098
+ "bbox": [
1099
+ 176,
1100
+ 628,
1101
+ 825,
1102
+ 670
1103
+ ],
1104
+ "page_idx": 7
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "While the Rover-Tower task has a lot of agents, each agent only gets information about its paired agent – in other words, the task itself has an intrinsically smaller number of “other agents” (conditioned on each agent) than the CTC environment. As a future direction, we are creating more complicated environments where each agent needs to cope with a large group of agents where selective attention is needed. This naturally models real-life scenarios that multiple agents are organized in clusters/sub-societies (school, work, family, etc) where the agent needs to interact with a small number of agents from many groups. We anticipate that in such complicated scenarios, our approach, combined with some advantages exhibited by other approaches would do well. ",
1109
+ "bbox": [
1110
+ 174,
1111
+ 676,
1112
+ 825,
1113
+ 787
1114
+ ],
1115
+ "page_idx": 7
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "5 CONCLUSION ",
1120
+ "text_level": 1,
1121
+ "bbox": [
1122
+ 176,
1123
+ 816,
1124
+ 318,
1125
+ 833
1126
+ ],
1127
+ "page_idx": 7
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "We propose an algorithm for training decentralized policies in multi-agent settings. The key idea is to utilize attention in order to select relevant information for estimating critics. We analyze the performance of the proposed approach with respect to the number of agents, different configurations of rewards, and the span of relevant observational information. Empirical results are promising and we intend to extend to highly complicated and dynamic environments. ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 853,
1135
+ 823,
1136
+ 924
1137
+ ],
1138
+ "page_idx": 7
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "REFERENCES ",
1143
+ "text_level": 1,
1144
+ "bbox": [
1145
+ 174,
1146
+ 102,
1147
+ 287,
1148
+ 118
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In International Conference on Learning Representations, 2015. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 126,
1158
+ 823,
1159
+ 155
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2015. ",
1166
+ "bbox": [
1167
+ 173,
1168
+ 165,
1169
+ 823,
1170
+ 195
1171
+ ],
1172
+ "page_idx": 8
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Lucian Bus¸oniu, Robert Babuska, and Bart De Schutter. Multi-agent reinforcement learning: Anˇ overview. In Innovations in multi-agent systems and applications-1, pp. 183–221. Springer, 2010. ",
1177
+ "bbox": [
1178
+ 174,
1179
+ 204,
1180
+ 823,
1181
+ 234
1182
+ ],
1183
+ "page_idx": 8
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Jinyoung Choi, Beom-Jin Lee, and Byoung-Tak Zhang. Multi-focus attention network for efficient deep reinforcement learning. arXiv preprint arXiv:1712.04603, December 2017. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 244,
1191
+ 823,
1192
+ 273
1193
+ ],
1194
+ "page_idx": 8
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Felix Fischer, Michael Rovatsos, and Gerhard Weiss. Hierarchical reinforcement learning in communication-mediated multiagent coordination. In Proceedings of the Third International Joint Conference on Autonomous Agents and Multiagent Systems-Volume 3, pp. 1334–1335. IEEE Computer Society, 2004. ",
1199
+ "bbox": [
1200
+ 173,
1201
+ 284,
1202
+ 826,
1203
+ 340
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Jakob Foerster, Ioannis Alexandros Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2137–2145, 2016. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 351,
1213
+ 823,
1214
+ 393
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Jakob Foerster, Nantas Nardelli, Gregory Farquhar, Triantafyllos Afouras, Philip H. S. Torr, Pushmeet Kohli, and Shimon Whiteson. Stabilising experience replay for deep multi-agent reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1146–1155, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 404,
1224
+ 825,
1225
+ 474
1226
+ ],
1227
+ "page_idx": 8
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients, 2018. ",
1232
+ "bbox": [
1233
+ 174,
1234
+ 484,
1235
+ 821,
1236
+ 513
1237
+ ],
1238
+ "page_idx": 8
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1243
+ "bbox": [
1244
+ 171,
1245
+ 525,
1246
+ 823,
1247
+ 553
1248
+ ],
1249
+ "page_idx": 8
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Jayesh K Gupta, Maxim Egorov, and Mykel Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In Autonomous Agents and Multiagent Systems, Lecture Notes in Computer Science, pp. 66–83. Springer, Cham, May 2017. ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 563,
1257
+ 823,
1258
+ 607
1259
+ ],
1260
+ "page_idx": 8
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. ",
1265
+ "bbox": [
1266
+ 173,
1267
+ 617,
1268
+ 825,
1269
+ 674
1270
+ ],
1271
+ "page_idx": 8
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "He He, Jordan Boyd-Graber, Kevin Kwok, and Hal Daume III. Opponent modeling in deep rein- ´ forcement learning. In International Conference on Machine Learning, pp. 1804–1813, 2016. ",
1276
+ "bbox": [
1277
+ 171,
1278
+ 684,
1279
+ 823,
1280
+ 713
1281
+ ],
1282
+ "page_idx": 8
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Nicolas Heess, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, Ali Eslami, Martin Riedmiller, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017. ",
1287
+ "bbox": [
1288
+ 173,
1289
+ 723,
1290
+ 825,
1291
+ 766
1292
+ ],
1293
+ "page_idx": 8
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2017. ",
1298
+ "bbox": [
1299
+ 169,
1300
+ 776,
1301
+ 823,
1302
+ 806
1303
+ ],
1304
+ "page_idx": 8
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. arXiv preprint arXiv:1805.07733, 2018. ",
1309
+ "bbox": [
1310
+ 168,
1311
+ 816,
1312
+ 823,
1313
+ 845
1314
+ ],
1315
+ "page_idx": 8
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014. ",
1320
+ "bbox": [
1321
+ 169,
1322
+ 856,
1323
+ 823,
1324
+ 885
1325
+ ],
1326
+ "page_idx": 8
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Vijay R Konda and John N Tsitsiklis. Actor-critic algorithms. In Advances in neural information processing systems, pp. 1008–1014, 2000. ",
1331
+ "bbox": [
1332
+ 174,
1333
+ 895,
1334
+ 823,
1335
+ 924
1336
+ ],
1337
+ "page_idx": 8
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. In International Conference on Learning Representations, 2016. ",
1342
+ "bbox": [
1343
+ 176,
1344
+ 103,
1345
+ 823,
1346
+ 146
1347
+ ],
1348
+ "page_idx": 9
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. In International Conference on Learning Representations, 2017. ",
1353
+ "bbox": [
1354
+ 173,
1355
+ 156,
1356
+ 826,
1357
+ 199
1358
+ ],
1359
+ "page_idx": 9
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Michael L Littman. Markov games as a framework for multi-agent reinforcement learning. In Machine Learning Proceedings 1994, pp. 157–163. Elsevier, 1994. ",
1364
+ "bbox": [
1365
+ 171,
1366
+ 210,
1367
+ 823,
1368
+ 239
1369
+ ],
1370
+ "page_idx": 9
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In Advances in Neural Information Processing Systems, pp. 6382–6393, 2017. ",
1375
+ "bbox": [
1376
+ 174,
1377
+ 251,
1378
+ 823,
1379
+ 294
1380
+ ],
1381
+ "page_idx": 9
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In Advances in neural information processing systems, pp. 2204–2212, 2014. ",
1386
+ "bbox": [
1387
+ 171,
1388
+ 304,
1389
+ 823,
1390
+ 334
1391
+ ],
1392
+ "page_idx": 9
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015. ",
1397
+ "bbox": [
1398
+ 174,
1399
+ 343,
1400
+ 825,
1401
+ 387
1402
+ ],
1403
+ "page_idx": 9
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations, 2018. ",
1408
+ "bbox": [
1409
+ 173,
1410
+ 397,
1411
+ 823,
1412
+ 426
1413
+ ],
1414
+ "page_idx": 9
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Junhyuk Oh, Valliappa Chockalingam, Honglak Lee, et al. Control of memory, active perception, and action in minecraft. In International Conference on Machine Learning, pp. 2790–2799, 2016. ",
1419
+ "bbox": [
1420
+ 173,
1421
+ 438,
1422
+ 825,
1423
+ 467
1424
+ ],
1425
+ "page_idx": 9
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Tabish Rashid, Mikayel Samvelyan, Christian Schroeder, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. QMIX: Monotonic value function factorisation for deep multi-agent reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 4295–4304, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. ",
1430
+ "bbox": [
1431
+ 173,
1432
+ 477,
1433
+ 825,
1434
+ 547
1435
+ ],
1436
+ "page_idx": 9
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 559,
1444
+ 821,
1445
+ 588
1446
+ ],
1447
+ "page_idx": 9
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
1452
+ "bbox": [
1453
+ 173,
1454
+ 598,
1455
+ 823,
1456
+ 628
1457
+ ],
1458
+ "page_idx": 9
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016. ",
1463
+ "bbox": [
1464
+ 174,
1465
+ 638,
1466
+ 823,
1467
+ 681
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In Advances in Neural Information Processing Systems, pp. 2244–2252, 2016. ",
1474
+ "bbox": [
1475
+ 171,
1476
+ 691,
1477
+ 823,
1478
+ 722
1479
+ ],
1480
+ "page_idx": 9
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinicius Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z. Leibo, Karl Tuyls, and Thore Graepel. Valuedecomposition networks for cooperative multi-agent learning based on team reward. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS ’18, pp. 2085–2087, Richland, SC, 2018. International Foundation for Autonomous Agents and Multiagent Systems. ",
1485
+ "bbox": [
1486
+ 173,
1487
+ 732,
1488
+ 825,
1489
+ 816
1490
+ ],
1491
+ "page_idx": 9
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000. ",
1496
+ "bbox": [
1497
+ 173,
1498
+ 827,
1499
+ 823,
1500
+ 871
1501
+ ],
1502
+ "page_idx": 9
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "Ardi Tampuu, Tambet Matiisen, Dorian Kodelja, Ilya Kuzovkin, Kristjan Korjus, Juhan Aru, Jaan Aru, and Raul Vicente. Multiagent cooperation and competition with deep reinforcement learning. PLoS One, 12(4):e0172395, April 2017. ",
1507
+ "bbox": [
1508
+ 176,
1509
+ 881,
1510
+ 823,
1511
+ 924
1512
+ ],
1513
+ "page_idx": 9
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Ming Tan. Multi-agent reinforcement learning: independent versus cooperative agents. In Proceedings of the Tenth International Conference on International Conference on Machine Learning, pp. 330–337. Morgan Kaufmann Publishers Inc., 1993. ",
1518
+ "bbox": [
1519
+ 176,
1520
+ 103,
1521
+ 823,
1522
+ 146
1523
+ ],
1524
+ "page_idx": 10
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 6000–6010, 2017. ",
1529
+ "bbox": [
1530
+ 176,
1531
+ 155,
1532
+ 823,
1533
+ 198
1534
+ ],
1535
+ "page_idx": 10
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "Ermo Wei, Drew Wicke, David Freelan, and Sean Luke. Multiagent soft q-learning. arXiv preprint arXiv:1804.09817, 2018. ",
1540
+ "bbox": [
1541
+ 171,
1542
+ 207,
1543
+ 823,
1544
+ 234
1545
+ ],
1546
+ "page_idx": 10
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Reinforcement Learning, pp. 5–32. Springer, 1992. ",
1551
+ "bbox": [
1552
+ 173,
1553
+ 244,
1554
+ 823,
1555
+ 273
1556
+ ],
1557
+ "page_idx": 10
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "6 APPENDIX ",
1562
+ "text_level": 1,
1563
+ "bbox": [
1564
+ 174,
1565
+ 102,
1566
+ 294,
1567
+ 117
1568
+ ],
1569
+ "page_idx": 11
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "Algorithm 1 Training Procedure for Attention-Actor-Critic ",
1574
+ "text_level": 1,
1575
+ "bbox": [
1576
+ 173,
1577
+ 160,
1578
+ 563,
1579
+ 174
1580
+ ],
1581
+ "page_idx": 11
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "1: Initialize $E$ parallel environments with $N$ agents, each \n2: Initialize replay buffer, $D$ \n3: $T _ { \\mathrm { u p d a t e } } \\gets 0$ \n4: for $i _ { \\mathrm { e p } } = 1 \\ldots$ num episodes do \n5: Reset environments, and get initial $o _ { i } ^ { e }$ for each agent, $i$ \n6: for $t = 1$ . . . steps per episode do \n7: Select actions $a _ { i } ^ { e } \\sim \\pi _ { i } ( \\cdot | o _ { i } ^ { e } )$ for each agent, $i$ , in each environment, $e$ \n8: Send actions to all parallel environments and get $\\boldsymbol { o ^ { \\prime } } _ { i } ^ { e }$ , $\\boldsymbol { r } _ { i } ^ { e }$ for all agents in all environments \n9: Store transitions $\\left( o _ { 1 \\dots N } , a _ { 1 \\dots N } , r _ { 1 \\dots N } , o _ { 1 \\dots N } ^ { \\prime } \\right)$ for all environments in $D$ \n10: $T _ { \\mathrm { u p d a t e } } = T _ { \\mathrm { u p d a t e } } + E$ \n11: if $T _ { \\mathrm { u p d a t e } } \\geq \\mathrm { \\bar { m i n } }$ steps per update then \n12: for $j = 1$ . . . num critic updates do \n13: Sample minibatch $B \\gets m \\times ( o _ { 1 . . . N } , a _ { 1 . . . N } , r _ { 1 . . . N } , o _ { 1 . . . N } ^ { \\prime } ) \\sim D$ \n14: UPDATECRITIC $( B )$ \n15: end for \n16: for $j = 1 \\ldots \\mathrm { n u m }$ policy updates do \n17: 18: Sample UPDAT $m \\times \\left( o _ { 1 \\dots N } \\right) \\sim D$ $( \\acute { o } _ { 1 \\dots N } ^ { B } )$ \n19: end for \n20: Update target critic and policy parameters: ",
1586
+ "bbox": [
1587
+ 174,
1588
+ 181,
1589
+ 825,
1590
+ 457
1591
+ ],
1592
+ "page_idx": 11
1593
+ },
1594
+ {
1595
+ "type": "equation",
1596
+ "img_path": "images/21124c7e5702770fb457cd8453133802792e9b791639b14f9472f5c7f8e24bb4.jpg",
1597
+ "text": "$$\n\\begin{array} { c } { { \\bar { \\psi } = \\tau \\bar { \\psi } + ( 1 - \\tau ) \\psi } } \\\\ { { { } } } \\\\ { { \\bar { \\theta } = \\tau \\bar { \\theta } + ( 1 - \\tau ) \\theta } } \\end{array}\n$$",
1598
+ "text_format": "latex",
1599
+ "bbox": [
1600
+ 442,
1601
+ 462,
1602
+ 581,
1603
+ 505
1604
+ ],
1605
+ "page_idx": 11
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "21: $T _ { \\mathrm { u p d a t e } } \\gets 0$ \n22: end if \n23: end for \n24: end for \n25: \n26: 27: function UPDATECRIUnpack minibatch $( B )$ \n$( o _ { 1 \\dots N } ^ { B } , a _ { 1 \\dots N } ^ { B } , r _ { 1 \\dots N } ^ { B } , o _ { 1 \\dots N } ^ { ' B } ) B$ \n28: Calculate $Q _ { i } ^ { \\psi } ( o _ { 1 \\ldots N } ^ { B } , a _ { 1 \\ldots N } ^ { B } )$ for all $i$ in parallel \n29: Calculate $a _ { i } ^ { ' B } \\sim \\pi _ { i } ^ { \\bar { \\theta } } ( o _ { i } ^ { ' B } )$ using target policies \n30: Calculate $Q _ { i } ^ { \\bar { \\psi } } ( o _ { 1 \\dots N } ^ { ' B } , a _ { 1 \\dots N } ^ { ' B } )$ for all $i$ in parallel, using target critic \n31: Update critic: ",
1610
+ "bbox": [
1611
+ 168,
1612
+ 506,
1613
+ 665,
1614
+ 672
1615
+ ],
1616
+ "page_idx": 11
1617
+ },
1618
+ {
1619
+ "type": "equation",
1620
+ "img_path": "images/616a4df6c6006f495a3ae7f04044518adba48f475409e9bd6eb348aa7b7ccb5a.jpg",
1621
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathcal { L } _ { Q } ( \\psi ) = \\sum _ { i = 1 } ^ { N } \\mathbb { E } _ { ( o , a , r , o ^ { \\prime } ) \\sim D } \\Big [ ( Q _ { i } ^ { \\psi } ( o , a ) - y _ { i } ) ^ { 2 } \\Big ] , \\mathrm { w h e r e } } \\\\ { \\displaystyle y _ { i } = r _ { i } + \\gamma \\mathbb { E } _ { a ^ { \\prime } \\sim \\bar { \\pi _ { i } } ( o ^ { \\prime } ) } \\Big [ Q _ { i } ^ { \\bar { \\psi } } ( o ^ { \\prime } , a ^ { \\prime } ) - \\alpha l o g ( \\pi _ { \\bar { \\theta _ { i } } } ( a _ { i } ^ { ' } | o _ { i } ^ { ' } ) ) \\Big ] } \\end{array}\n$$",
1622
+ "text_format": "latex",
1623
+ "bbox": [
1624
+ 326,
1625
+ 678,
1626
+ 699,
1627
+ 750
1628
+ ],
1629
+ "page_idx": 11
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "32: end function ",
1634
+ "bbox": [
1635
+ 174,
1636
+ 755,
1637
+ 292,
1638
+ 768
1639
+ ],
1640
+ "page_idx": 11
1641
+ },
1642
+ {
1643
+ "type": "text",
1644
+ "text": "",
1645
+ "bbox": [
1646
+ 176,
1647
+ 770,
1648
+ 196,
1649
+ 781
1650
+ ],
1651
+ "page_idx": 11
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "34: function UPDATEPOLICIES $( o _ { 1 \\dots N } ^ { B } )$ ",
1656
+ "bbox": [
1657
+ 174,
1658
+ 781,
1659
+ 437,
1660
+ 797
1661
+ ],
1662
+ "page_idx": 11
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "35: Calculate $a _ { 1 \\dots N } ^ { B } \\sim \\pi _ { i } ^ { \\bar { \\theta } } ( o _ { i } ^ { ' B } ) , i \\in 1 \\dots N$ ",
1667
+ "bbox": [
1668
+ 173,
1669
+ 797,
1670
+ 490,
1671
+ 815
1672
+ ],
1673
+ "page_idx": 11
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "36: Calculate $Q _ { i } ^ { \\psi } ( o _ { 1 \\ldots N } ^ { B } , a _ { 1 \\ldots N } ^ { B } )$ for all $i$ in parallel ",
1678
+ "bbox": [
1679
+ 173,
1680
+ 815,
1681
+ 535,
1682
+ 832
1683
+ ],
1684
+ "page_idx": 11
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "text": "37: Update policies: ",
1689
+ "bbox": [
1690
+ 174,
1691
+ 832,
1692
+ 334,
1693
+ 844
1694
+ ],
1695
+ "page_idx": 11
1696
+ },
1697
+ {
1698
+ "type": "equation",
1699
+ "img_path": "images/03010c3dbf4f6fd8a2953218712beee39d61204a64d4bd1a347657193b8db94f.jpg",
1700
+ "text": "$$\n\\nabla _ { \\theta _ { i } } J ( \\pi _ { \\theta } ) = \\mathbb { E } _ { a \\sim \\pi _ { \\theta } } \\left[ \\nabla _ { \\theta _ { i } } l o g ( \\pi _ { \\theta _ { i } } ( a _ { i } | o _ { i } ) ) ( \\alpha l o g ( \\pi _ { \\theta _ { i } } ( a _ { i } | o _ { i } ) ) - Q _ { i } ^ { \\psi } ( o , a ) + b ( o , \\bar { a } ) ) \\right]\n$$",
1701
+ "text_format": "latex",
1702
+ "bbox": [
1703
+ 223,
1704
+ 851,
1705
+ 772,
1706
+ 878
1707
+ ],
1708
+ "page_idx": 11
1709
+ },
1710
+ {
1711
+ "type": "text",
1712
+ "text": "38: end function ",
1713
+ "text_level": 1,
1714
+ "bbox": [
1715
+ 174,
1716
+ 883,
1717
+ 292,
1718
+ 898
1719
+ ],
1720
+ "page_idx": 11
1721
+ },
1722
+ {
1723
+ "type": "text",
1724
+ "text": "6.1 TRAINING PROCEDURE ",
1725
+ "text_level": 1,
1726
+ "bbox": [
1727
+ 176,
1728
+ 103,
1729
+ 377,
1730
+ 117
1731
+ ],
1732
+ "page_idx": 12
1733
+ },
1734
+ {
1735
+ "type": "text",
1736
+ "text": "We train using Soft Actor-Critic (Haarnoja et al., 2018), an off-policy, actor-critic method for maximum entropy reinforcement learning. Our training procedure consists of performing 12 parallel rollouts, and adding a tuple of $\\big ( o _ { t } , a _ { t } , r _ { t } , o _ { t + 1 } \\big ) _ { 1 \\dots N }$ to a replay buffer (with maximum length 1e6) for each timepoint. We reset each environment after every 100 steps (an episode). After 100 steps (across all rollouts), we perform 4 updates for the attention critic and for all policies. For each update we sample minibatches of 1024 timepoints from the replay buffer and then perform gradient descent on the Q-function loss objective (7), as well as the policy objective (8), using Adam (Kingma & Ba, 2014) as the optimizer for both with a learning rate of 0.001. These updates can be computed efficiently in parallel (across agents) using a GPU. After the updates are complete, we update the parameters $\\dot { \\psi }$ of our target critic $Q _ { \\bar { \\psi } }$ to move toward our learned critic’s parameters, $\\psi$ , as in Lillicrap et al. (2016); Haarnoja et al. (2018): $\\bar { \\psi } = ( 1 - \\tau ) \\bar { \\psi } + \\tau \\psi$ , where $\\tau$ is the update rate (set to 0.002 for attention parameters and 0.04 for all other parameters). Using a target critic has been shown to stabilize the use of experience replay for off-policy reinforcement learning with neural network function approximators (Mnih et al., 2015; Lillicrap et al., 2016). We update the parameters of the target policies, $\\bar { \\theta }$ in the same manner. We use a discount factor, $\\gamma$ , of 0.99. All networks (separate policies and contained within the centralized critics) use a hidden dimension of 128 and Leaky Rectified Linear Units as the nonlinearity. We use 0.2 as our temperature setting for Soft Actor-Critic. Additionally, we typically use 4 attention heads in our attention critics unless otherwise specified. ",
1737
+ "bbox": [
1738
+ 173,
1739
+ 130,
1740
+ 825,
1741
+ 382
1742
+ ],
1743
+ "page_idx": 12
1744
+ },
1745
+ {
1746
+ "type": "text",
1747
+ "text": "6.2 REPARAMETRIZATION OF DDPG/MADDPG FOR DISCRETE ACTION SPACES ",
1748
+ "text_level": 1,
1749
+ "bbox": [
1750
+ 173,
1751
+ 398,
1752
+ 746,
1753
+ 415
1754
+ ],
1755
+ "page_idx": 12
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "In order to compare to DDPG and MADDPG in our environments with discrete action spaces, we must make a slight modification to the basic algorithm. This modification is first suggested by Lowe et al. (2017) in order to enable policies that output discrete communication messages. Consider the original DDPG policy gradient which takes advantage of the fact that you can easily calculate the gradient of the output of a deterministic policy with respect to its parameters. ",
1760
+ "bbox": [
1761
+ 174,
1762
+ 425,
1763
+ 825,
1764
+ 496
1765
+ ],
1766
+ "page_idx": 12
1767
+ },
1768
+ {
1769
+ "type": "equation",
1770
+ "img_path": "images/d9337ab0401554c9f434892cf8e12165ac05605496530072774c13dc81bbdf93.jpg",
1771
+ "text": "$$\n\\nabla _ { \\theta } J = \\mathbb { E } _ { s \\sim \\rho } \\left[ \\nabla _ { a } Q ( s , a ) | _ { a = \\mu ( s ) } \\nabla _ { \\theta } \\mu ( s | \\theta ) \\right]\n$$",
1772
+ "text_format": "latex",
1773
+ "bbox": [
1774
+ 354,
1775
+ 515,
1776
+ 643,
1777
+ 535
1778
+ ],
1779
+ "page_idx": 12
1780
+ },
1781
+ {
1782
+ "type": "text",
1783
+ "text": "Rather than policies that deterministically output an action from within a continuous action space, we use policies that produce differentiable samples through a Gumbel-Softmax distribution (Jang et al., 2017). Using differentiable samples allows us to use the gradient of expected returns to train policies without using the log derivative trick, just as in DDPG. ",
1784
+ "bbox": [
1785
+ 174,
1786
+ 544,
1787
+ 825,
1788
+ 601
1789
+ ],
1790
+ "page_idx": 12
1791
+ },
1792
+ {
1793
+ "type": "equation",
1794
+ "img_path": "images/6bdb58d05691785993428f50fd86affe8e994310723df5c20d11cd9bb13bb204.jpg",
1795
+ "text": "$$\n\\nabla _ { \\theta } J = \\mathbb { E } _ { s \\sim \\rho , a \\sim \\pi ( s ) } \\left[ \\nabla _ { a } Q ( s , a ) \\nabla _ { \\theta } a \\right]\n$$",
1796
+ "text_format": "latex",
1797
+ "bbox": [
1798
+ 372,
1799
+ 619,
1800
+ 624,
1801
+ 638
1802
+ ],
1803
+ "page_idx": 12
1804
+ },
1805
+ {
1806
+ "type": "text",
1807
+ "text": "6.3 VISUALIZING ATTENTION ",
1808
+ "text_level": 1,
1809
+ "bbox": [
1810
+ 174,
1811
+ 654,
1812
+ 393,
1813
+ 667
1814
+ ],
1815
+ "page_idx": 12
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "text": "In order to understand how the use of attention evolves over the course of training, we examine the ”entropy” of the attention weights for each agent for each of the four attention heads that we use in both tasks (Figures 4 and 5). The black bars indicate the maximum possible entropy (i.e. uniform attention across all agents). Lower entropy indicates that the head is focusing on specific agents, with an entropy of 0 indicating attention focusing on one agent. In Rover-Tower, we plot the attention entropy for each rover. Interestingly, each agent appears to use a different combination of the four heads, but their use is not mutually exclusive, indicating that the inclusion of separate attention heads for each agent is not necessary. This differential use of attention heads is sensible due to the nature of rewards in this environment (i.e. individualized rewards). In the case of Treasure Collection, we find that all agents use the attention heads similarly, which is unsurprising considering that rewards are shared in that environment. ",
1820
+ "bbox": [
1821
+ 173,
1822
+ 680,
1823
+ 825,
1824
+ 833
1825
+ ],
1826
+ "page_idx": 12
1827
+ },
1828
+ {
1829
+ "type": "text",
1830
+ "text": "In order to inspect how the attention mechanism is working on a more fine-grained level, we visualize the attention weights for one of the rovers in Rover-Tower (Figure 6), from the head that the agent appears to use the most (determined by looking at Figure 4), while changing the tower that said rover is paired to. In these plots, we ignore the weights over other rovers for simplicity since these are always near zero. We find that the rover learns to strongly attend to the tower that it is paired with, without any explicit supervision signal to do so. The model implicitly learns which agent is most relevant to estimating the rover’s expecture future returns, and said agent can change dynamically without affecting the performance of the algorithm. ",
1831
+ "bbox": [
1832
+ 174,
1833
+ 840,
1834
+ 823,
1835
+ 924
1836
+ ],
1837
+ "page_idx": 12
1838
+ },
1839
+ {
1840
+ "type": "image",
1841
+ "img_path": "images/dd6d226b64964d0586712c101b05f8f35f4c98b43b49eba256d1ac3e6721a78c.jpg",
1842
+ "image_caption": [
1843
+ "Figure 4: Attention ”entropy” for each head over the course of training for the four rovers in the Rover-Tower environment "
1844
+ ],
1845
+ "image_footnote": [],
1846
+ "bbox": [
1847
+ 176,
1848
+ 92,
1849
+ 820,
1850
+ 450
1851
+ ],
1852
+ "page_idx": 13
1853
+ },
1854
+ {
1855
+ "type": "image",
1856
+ "img_path": "images/3b64d8a5ae6a830193dffa365d2dc696f9bf36d1a08a6a75ed444b65375a6deb.jpg",
1857
+ "image_caption": [
1858
+ "Figure 5: Attention ”entropy” for each head over the course of training for two collectors in the Treasure Collection Environment "
1859
+ ],
1860
+ "image_footnote": [],
1861
+ "bbox": [
1862
+ 178,
1863
+ 492,
1864
+ 816,
1865
+ 662
1866
+ ],
1867
+ "page_idx": 13
1868
+ },
1869
+ {
1870
+ "type": "text",
1871
+ "text": "",
1872
+ "bbox": [
1873
+ 176,
1874
+ 726,
1875
+ 821,
1876
+ 755
1877
+ ],
1878
+ "page_idx": 13
1879
+ },
1880
+ {
1881
+ "type": "text",
1882
+ "text": "6.4 CONTINUOUS ACTION SPACES ",
1883
+ "text_level": 1,
1884
+ "bbox": [
1885
+ 176,
1886
+ 771,
1887
+ 426,
1888
+ 785
1889
+ ],
1890
+ "page_idx": 13
1891
+ },
1892
+ {
1893
+ "type": "text",
1894
+ "text": "In order to test our model’s ability to handle continuous action spaces, we add a network for each agent to learn a state-value function $V _ { i } ( o , a _ { \\backslash i } )$ , which uses the same weighted attention embedding over other agents as $Q _ { i } ( o , a )$ . The loss functions to learn both networks are provided by Haarnoja et al. (2018). We test on an environment introduced in Lowe et al. (2017) called Cooperative Navigation and compare to MADDPG. Our results are presented in Table 3. This task does not require attention, as all agents are relevant to each others rewards at each time step. As such, it is unsurprising that our approach matches but does not surpass the performance of MADDPG. It is notable, however, both that attention does not harm performance in simple cases and that our approach handles continuous action spaces as well. ",
1895
+ "bbox": [
1896
+ 174,
1897
+ 796,
1898
+ 588,
1899
+ 920
1900
+ ],
1901
+ "page_idx": 13
1902
+ },
1903
+ {
1904
+ "type": "table",
1905
+ "img_path": "images/7d14c8053c110be92140d4f026110c025028537004811bb892faeff906b68b66.jpg",
1906
+ "table_caption": [
1907
+ "Table 3: Cooperative Navigation (Continuous) "
1908
+ ],
1909
+ "table_footnote": [],
1910
+ "table_body": "<table><tr><td>MADDPG</td><td>MAAC</td></tr><tr><td>-2.47 ± 0.05</td><td>-2.49 ±0.11</td></tr></table>",
1911
+ "bbox": [
1912
+ 606,
1913
+ 854,
1914
+ 815,
1915
+ 886
1916
+ ],
1917
+ "page_idx": 13
1918
+ },
1919
+ {
1920
+ "type": "text",
1921
+ "text": "",
1922
+ "bbox": [
1923
+ 173,
1924
+ 910,
1925
+ 820,
1926
+ 924
1927
+ ],
1928
+ "page_idx": 13
1929
+ },
1930
+ {
1931
+ "type": "image",
1932
+ "img_path": "images/202b9b1da1f524d817219da2b216af9549b8bbb38788d6852c92299fca0b6d58.jpg",
1933
+ "image_caption": [
1934
+ "Figure 6: Attention weights when subjected to different Tower pairings for Rover 1 in Rover-Tower environment "
1935
+ ],
1936
+ "image_footnote": [],
1937
+ "bbox": [
1938
+ 176,
1939
+ 93,
1940
+ 823,
1941
+ 481
1942
+ ],
1943
+ "page_idx": 14
1944
+ },
1945
+ {
1946
+ "type": "text",
1947
+ "text": "",
1948
+ "bbox": [
1949
+ 174,
1950
+ 544,
1951
+ 825,
1952
+ 587
1953
+ ],
1954
+ "page_idx": 14
1955
+ }
1956
+ ]
parse/train/HJx7l309Fm/HJx7l309Fm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJx7l309Fm/HJx7l309Fm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hk4fpoA5Km/Hk4fpoA5Km.md ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DISCRIMINATOR-ACTOR-CRITIC:ADDRESSING SAMPLE INEFFICIENCY AND REWARDBIAS IN ADVERSARIAL IMITATION LEARNING
2
+
3
+ Ilya Kostrikov1,2,\*, Kumar Krishna Agrawal2, †, Debidatta Dwibedi2, †, Sergey Levine2, and Jonathan Tompson2
4
+
5
+ 1Courant Institute of Mathematical Sciences, New York University, New York, NY 2Google Brain, Mountain View, CA
6
+
7
+ # ABSTRACT
8
+
9
+ Algorithms for imitation learning based on adversarial optimization, such as generative adversarial imitation learning (GAIL) and adversarial inverse reinforcement learning (AIRL), can effectively mimic demonstrated behaviours by employing both reward and reinforcement learning (RL). However, applications of such algorithms are challenged by the inherent instability and poor sample efficiency of on-policy RL. In particular, the inadequate handling of absorbing states in canonical implementations of RL environments causes an implicit bias in reward functions used by these algorithms. While these biases might work well for some environments, they lead to sub-optimal behaviors in others. Moreover, despite the ability of these algorithms to learn from a few demonstrations, they require a prohibitively large number of the environment interactions for many real-world applications. To address these issues, we first propose to extend the environment MDP with absorbing states which leads to task-independent, and more importantly, unbiased rewards. Secondly, we introduce an off-policy learning algorithm, which we refer to as Discriminator-Actor-Critic. We demonstrate the effectiveness of proper handling of absorbing states, while empirically improving the sample efficiency by an average factor of 10. Our implementation is available online 1.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ The Adversarial Imitation Learning (AIL) class of algorithms learns a policy that robustly imitates an expert’s actions via a collection of expert demonstrations, an adversarial discriminator and a reinforcement learning method. For example, the Generative Adversarial Imitation Learning (GAIL) algorithm (Ho & Ermon, 2016) uses a discriminator reward and a policy gradient algorithm to imitate an expert RL policy. Similarly, the Adversarial Inverse Reinforcement Learning (AIRL) algorithm (Fu et al., 2017) makes use of a modified GAIL discriminator to recover a reward function to perform Inverse Reinforcement Learning (IRL) (Abbeel & Ng, 2004). Additionally, this subsequent dense reward is robust to changes in dynamics or environment properties. Importantly, AIL algorithms such as GAIL and AIRL, obtain higher performance than supervised Behavioral Cloning (BC) when using a small number of expert demonstrations; experimentally suggesting that AIL algorithms alleviate some of the distributional drift (Ross et al., 2011) issues associated with BC. However, these AIL methods suffer from two important issues that will be addressed by this work: 1) a large number of policy interactions with the learning environment is required for policy convergence and 2) although in principle these methods can learn rewards for absorbing states, the original implementations suffer from improper handling of the environment terminal states. This introduces implicit rewards priors which can either improve or degrade policy performance.
14
+
15
+ ![](images/1de8cf30d798c6c776834bfece5450f74e76287380d82db216a4e24c0a81ab5b.jpg)
16
+ Figure 1: The Discriminator-Actor-Critic imitation learning framework combined with a method to explicitly learn rewards for the absorbing states.
17
+
18
+ While GAIL requires as little as 200 expert frame transitions (from 4 expert trajectories) to learn a robust reward function on most MuJoCo (Todorov et al., 2012) tasks, the number of policy frame transitions sampled from the environment can be as high as 25 million in order to reach convergence. If PPO (Schulman et al., 2017) is used in place of TRPO (Schulman et al., 2015), the sample complexity can be improved (for example, as in Figure 3, 25 million steps reduces to approximately 10 million steps), however it is still intractable for many robotics or real-world applications. In this work we address this issue by incorporating an off-policy RL algorithm (TD3 (Fujimoto et al., 2018)) and an off-policy discriminator to dramatically decrease the sample complexity by orders of magnitude.
19
+
20
+ In this work, we also illustrate how specific design choices for AIL algorithms and MDPs used in practice, have a large impact on agent performance for environments with absorbing states. For instance, as we will demonstrate, if the implementation assigns zero rewards for absorbing states, a strictly positive reward function can prevent the agent from solving tasks with a minimal number of steps, while a strictly negative reward function is unable to emulate a survival bonus. Therefore, one must have some knowledge of the true environment reward and incorporate such priors to choose a suitable reward function for successful application of GAIL and AIRL. We will discuss these issues formally, and present a simple - yet effective - solution that drastically improves policy performance for environments with absorbing states; we explicitly handle absorbing state transitions by learning the reward associated with these states.
21
+
22
+ First we propose a new algorithm, which we call Discriminator-Actor-Critic (DAC) (Figure 1), that is compatible with the GAIL and AIRL frameworks by extending them with an off-policy discriminator and an off-policy actor-critic reinforcement learning algorithm. Then we propose a general approach to handling absorbing states in inverse reinforcement learning and reward learning methods. We experimentally demonstrate that this removes the bias due to incorrect absorbing state handling in both GAIL-like and AIRL-like variants of our DAC algorithm. In our experiments, we demonstrate that DAC achieves state-of-the-art AIL performance for a number of difficult imitation learning tasks, where proper handling of terminal states is crucial for matching expert performance in the presence of absorbing states. More specifically, in this work we:
23
+
24
+ • Identify, and propose solutions for the problem of handling terminal states of policy rollouts in standard RL benchmarks in the context of AIL algorithms. • Accelerate learning from demonstrations by providing an off-policy variant for AIL algorithms, which significantly reduces the number of agent-environment interactions. • Illustrate the robustness of DAC to noisy, multi-modal and constrained expert demonstrations, by performing experiments with human demonstrations on non-trivial robotic tasks.
25
+
26
+ # 2 RELATED WORK
27
+
28
+ Imitation learning has been broadly studied under the twin umbrellas of Behavioral Cloning (BC) (Bain & Sommut, 1999; Ross et al., 2011) and Inverse Reinforcement Learning (IRL) (Ng & Russell, 2000). To recover the underlying policy, IRL performs an intermediate step of estimating the reward function followed by RL on this function (Abbeel & Ng, 2004; Ratliff et al., 2006). Operating in the Maximum Entropy IRL formulation (Ziebart et al., 2008), Finn et al. (2016b) introduce an iterativesampling based estimator for the partition function, deriving an algorithm for recovering non-linear reward functions in high-dimensional state and action spaces. Finn et al. (2016a) and $\mathrm { F u }$ et al.
29
+
30
+ (2017) further extend this by exploring the theoretical and practical considerations of an adversarial IRL framework, and draw connections between IRL and cost learning in GANs (Goodfellow et al., 2014).
31
+
32
+ In practical scenarios, we are often interested in recovering the expert’s policy, rather than the reward function. Following Syed et al. (2008), and by treating imitation learning as an occupancy matching problem, Ho & Ermon (2016) proposed a Generative Adversarial Imitation Learning (GAIL) framework for learning a policy from demonstrations, which bypasses the need to recover the expert’s reward function. More recent work extends the framework by improving on stability and robustness (Wang et al., 2017; Kim & Park, 2018) and making connections to model-based imitation learning (Baram et al., 2017). These approaches generally use on-policy algorithms for policy optimization, trading off sample efficiency for training stability.
33
+
34
+ Learning complex behaviors from sparse reward signals poses a significant challenge in reinforcement learning. In this context, expert demonstrations or template trajectories have been successfully used (Peters & Schaal, 2008) for initializing RL policies. There has been a growing interest in combining extrinsic sparse reward signals with imitation learning for guided exploration (Zhu et al., 2018; Kang et al., 2018; Le et al., 2018; Vecer´ık et al., 2017). Off policy learning from demonstration has been previously studied under the umbrella of accelerating reinforcement learning by structured exploration (Nair et al., 2017; Hester et al., 2017) An implicit assumption of these approaches is access to demonstrations and reward from the environment; our approach requires access only to expert demonstrations.
35
+
36
+ Biases associated with specific MDP benchmarks also arise in the standard RL setup. In particular, Pardo et al. (2017) and Tucker et al. (2018) discuss handling of time limits in RL specifically with MDPs where time limits make the problems non-Markovian and might affect optimality of the training policy and value function estimation. The problem with the biases associated with episode terminations also prove to be severe for AIL algorithms because for specific RL benchmarks the absorbing states might not even be adequately taken into consideration. We discuss this in more detail in Section 4.1.
37
+
38
+ Our work is most related to AIL algorithms (Ho & Ermon, 2016; Fu et al., 2017; Torabi et al., 2018). In contrast to Ho & Ermon (2016) which assumes (state-action-state’) transition tuples, Torabi et al. (2018) has weaker assumptions, by relying only on observations and removing the dependency on actions. The contributions in this work are complementary (and compatible) to Torabi et al. (2018).
39
+
40
+ Concurrent to our work, several other papers introduced algorithms for sample efficient imitation learning. Blonde & Kalousis (2018) introduced Sample-efficient Adversarial Mimic (SAM) algo- ´ rithm that combines Deep Deterministic Policy Gradients (DDPG) from Lillicrap et al. (2015) with GAIL. While Reddy et al. (2019) and Sasaki et al. (2019) proposed imitation learning algorithms based on off-policy reinforcement learning that does not require to learn rewards.
41
+
42
+ # 3 BACKGROUND
43
+
44
+ # 3.1 MARKOV DECISION PROCESS
45
+
46
+ We consider problems that satisfy the definition of a Markov Decision Process (MDP), formalized by the tuple: $( \bar { S ^ { , } } A , p ( s ) , p ( s ^ { \prime } \vert s , a ) , r ( s , a , s ^ { \prime } ) , \gamma )$ . Here $s$ , $\mathcal { A }$ represent the state and action spaces respectively, $p ( s )$ is the initial state distribution, $p ( s ^ { \prime } | s , a )$ defines environment dynamics represented as a conditional state distribution, $r ( s , a , s ^ { \prime } )$ is reward function and $\gamma$ the return discount factor.
47
+
48
+ In continuing tfor a trajectory $\tau = \{ ( s _ { t } , a _ { t } ) \} _ { t = 0 } ^ { \infty }$ nment interactio, are defined as $\begin{array} { r } { R _ { t } = \sum _ { k = t } ^ { \infty } \gamma ^ { k - t } r \bigl ( s _ { k } , \dot { a } _ { k } , s _ { k + 1 } \bigr ) } \end{array}$ ngth, the returns. In order to use the same notation for tasks with absorbing states, whose finite length episodes end when reaching a terminal state, we can define a set of absorbing states $s _ { a }$ (Sutton et al., 1998) that an agent enters after the end of episode, has zero reward and transitions to itself for all agent actions: $s _ { a } \sim p ( \cdot | s _ { T } , a _ { T } )$ , can be defined simply as learn a policy that maxim $r ( s _ { a } , \cdot , \cdot ) = 0$ and $s _ { a } \sim p ( \cdot | s _ { a } , \cdot )$ $\begin{array} { r } { R _ { t } = \sum _ { k = t } ^ { T } \gamma ^ { k - t } r \big ( s _ { k } , a _ { k } , s _ { k + 1 } \big ) } \end{array}$ (see Figure 2). With this above absorbing state notation, returns . In reinforcement learning, the goal is to
49
+
50
+ ![](images/e65c3a8e2b5c5b30543feb3d8c12d649047ee7a7c8e15dcb6ed33447bf464c25.jpg)
51
+ Figure 2: We depict an episode of MDP with an absorbing state. The absorbing state transitions to itself with zero reward.
52
+
53
+ In many imitation learning and IRL algorithms a common assumption is to assign zero reward value, often implicitly, to absorbing states. Moreover, standard benchmark MDPs, such as the tasks in OpenAI Gym, omit absorbing states and corresponding transitions from rollouts. Under this omission and a de-facto reward of 0 to absorbing states, the standard AIL algorithms do not have access to absorbing states in the buffer, which biases the reward learning process. We propose a modification that enables our DAC algorithm to assign a learned, potentially non-zero, reward for absorbing states. We discuss this in detail in Section 4.1, and demonstrate empirically in Section 5.2 that it is extremely important to properly handle the absorbing states for algorithms where rewards are learned.
54
+
55
+ Considering the implications of adequate handling of terminal states, it is worth mentioning that practical implementations of MDP benchmarks terminate episodes after a specific number of steps. We refer to this as time dependent termination, which makes the tasks non-Markovian, since the returns are now time-dependent as observed in Pardo et al. (2017), Tucker et al. (2018). These works propose to fix this problem by using a time-dependent value function, or by bootstrapping after the terminal state instead of masking the returns, which can be achieved using an algorithm that incorporates value function learning (Fujimoto et al., 2018). Because our solution is derived for infinite horizon problems, we do not treat states that occur after time-dependent termination as absorbing states and assume that after explicitly adding absorbing states and transitions all tasks have infinite horizon (for example, see Figure 2). For this reason, in our implementation we use the latter approach and perform bootstrapping for the terminal states (for elaborate discussion on time limits in MDPs, we refer the reader to Pardo et al. (2017)).
56
+
57
+ # 3.2 ADVERSARIAL IMITATION LEARNING
58
+
59
+ In order to learn a robust reward function we use the GAIL framework (Ho & Ermon, 2016). Inspired by maximum entropy IRL (Ziebart et al., 2008) and Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), GAIL trains a binary classifier, $D ( s , a )$ , referred to as the discriminator, to distinguish between transitions sampled from an expert and those generated by the trained policy. In standard GAN frameworks, a generator gradient is calculated by backprop through the learned discriminator. However, in GAIL the policy is instead provided a reward for confusing the discriminator, which is then maximized via some on-policy RL optimization scheme (e.g. TRPO (Schulman et al., 2015)):
60
+
61
+ $$
62
+ \operatorname* { m i n } _ { \pi } \operatorname* { m a x } _ { D } \mathbb { E } _ { \pi } [ \log ( D ( s , a ) ) ] + \mathbb { E } _ { \pi _ { E } } [ \log ( 1 - D ( s , a ) ) ] - \lambda H ( \pi )
63
+ $$
64
+
65
+ where $H ( \pi )$ is an entropy regularization term and $\pi _ { E }$ is a policy provided by an expert.
66
+
67
+ The rewards learned by GAIL might not correspond to a true reward ( $\mathrm { F u }$ et al., 2017) but can be used to match the expert occupancy measure, which is defined as $\begin{array} { r } { \rho _ { \pi _ { E } } ( s , a ) = \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } p ( s _ { t } = } \end{array}$ $s , a _ { t } = a | \pi _ { E } )$ ). Ho & Ermon (2016) draw analogies between distribution matching using GANs and occupancy matching with GAIL. They demonstrate that by maximizing the above reward, the algorithm matches occupancy measures of the expert and trained policies with some regularization term defined by the choice of GAN loss function.
68
+
69
+ In principle, GAIL can be incorporated with any on-policy RL algorithm. However, in this work we adapt it for off-policy training (discussed in Section 4.3). As can be seen from Equation 1, the algorithm requires state-action pairs to be sampled from the learned policy. In Section 4.3 we will discuss what modifications are necessary to adapt the algorithm to off-policy training.
70
+
71
+ # 4 DISCRIMINATOR-ACTOR-CRITIC
72
+
73
+ In this section we first elaborate on specific instances of biased rewards in AIL algorithms due to insufficient handling of terminal states. Following that in Section 4.2, we present an approach for unbiasing rewards for existing AIL algorithms. Then, we derive an off-policy formulation of AIL in Section 4.3, which we name Discriminator-Actor-Critic (DAC). A high level pictorial representation of this algorithm is shown in Figure 1, and it is formally summarized in Appendix A.
74
+
75
+ # 4.1 BIAS IN REWARDS
76
+
77
+ In the following section, we present examples of bias present in implementations of different AIL algorithms as they assign zero rewards to absorbing states:
78
+
79
+ • Absorbing states in MDPs: In the GAIL framework (and follow-up methods, such as GMMIL (Kim & Park, 2018), OptionGAN (Henderson et al., 2017a), AIRL and the widely used implementation of GAIL from OpenAI Baselines (Dhariwal et al., 2017)), for some benchmarks such as MuJoCo locomotion tasks from OpenAI Gym, a reward function $r ( s , a )$ assigns rewards to intermediate states depending on properties of a task. At the same time, policies executed on these MDPs generate rollouts that ignore absorbing states. Subsequently, the algorithms do not have access to these absorbing states in the buffer, cannot learn proper rewards, and therefore do not perform bootstrapping after terminal states; thus, 0 reward is implicitly assigned for absorbing states. For certain environments, a survival bonus in the form of per-step positive reward is added to the rewards received by the agent. This encourages agents to survive longer in the environment to collect more rewards. We observe that a commonly used form of the reward function: $r ( s , a ) = - \log ( 1 - D ( s , a ) )$ has worked well for environments that require a survival bonus. Under the implicit assumption of zero rewards for absorbing states in the MDP implementation, this strictly positive estimator cannot recover the true reward function for environments where an agent is required to solve the task as quickly as possible. Using this form of the reward function will lead to sub-optimal solutions. The agent is now incentivized to move in loops or take small actions (in continuous action spaces) that keep it close to the states in the expert’s trajectories. The agent keeps collecting positive rewards without actually attempting to solve the task demonstrated by the expert.2 Another reward formulation is $r ( s , a ) = \log ( D ( s , a ) )$ . This is often used for tasks with a per step penalty, when a part of a reward function consists of a negative constant assigned unconditionally of states and actions. However, this variant assigns only negative rewards and cannot learn a survival bonus. Such strong priors might lead to good results even with no expert trajectories (as shown in Figure 4).
80
+
81
+ From an end-user’s perspective, it is undesirable to have to craft a different reward function for every new task. In the next section, we propose a method to handle absorbing states of the standard benchmark MDPs in such a way that AIL algorithms are able to recover different reward functions without adjusting the form of reward estimator.
82
+
83
+ # 4.2 UNBIASING REWARDS
84
+
85
+ In order to resolve the issues described in Section 4.1, we suggest explicitly learning rewards for absorbing states for expert demonstrations and trajectories produced by a policy. Thus, the returns episode that consists o with a learned reward $T$ nsitions are defiinstead of just $R _ { T } = r ( s _ { T } , a _ { T } ) \ : +$ $\scriptstyle \sum _ { t = T + 1 } ^ { \infty } \gamma ^ { t - T } r ( s _ { a } , \cdot )$ $r ( s _ { a } , \cdot )$ $R _ { T } = r ( s _ { T } , a _ { T } )$ used due to issues described in Section 4.2. This formulation allows the algorithms to correctly estimate returns for the final transitions and optimize the policy accordingly.
86
+
87
+ In order to enable the AIL algorithms to learn the rewards for absorbing states and RL algorithms to take into account learned rewards, we suggest to update rollouts sampled from MDPs in the following way. After terminating an episode, we explicitly add a transition from the terminal state of the episode to an absorbing state $\left( { { s _ { T } } , { s _ { a } } } \right)$ and a transition from an absorbing state to itself $( s _ { a } , s _ { a } )$ .
88
+
89
+ Thus, when sample from the replay buffer AIL algorithms will be able to see absorbing states there were previous hidden, while RL algorithms will be able to properly estimate values for terminal states using transitions $\left( { { s _ { T } } , { s _ { a } } } \right)$ and $( s _ { a } , s _ { a } )$ using the following recursions:
90
+
91
+ $$
92
+ \begin{array} { c } { { Q ( s _ { T } , a ) = r ( s _ { T } , a ) + \gamma Q ( s _ { a } , \cdot ) } } \\ { { Q ( s _ { a } , \cdot ) = r ( s _ { a } , \cdot ) + \gamma Q ( s _ { a } , \cdot ) } } \end{array}
93
+ $$
94
+
95
+ We implemented these absorbing states by adding an extra indicator dimension that indicates whether the state is absorbing or not, for absorbing states we set the indicator dimension to one and all other dimensions to zero. The GAIL discriminator can distinguish whether reaching an absorbing state is a desirable behavior from the expert’s perspective and assign the rewards accordingly.
96
+
97
+ # 4.3 ADDRESSING SAMPLE INEFFICIENCY
98
+
99
+ As previously mentioned, GAIL requires a significant number of interactions with a learning environment in order to imitate an expert policy. To address the sample inefficiency of GAIL, we use an off-policy RL algorithm and perform off-policy training of the GAIL discriminator performed in the following way: instead of sampling trajectories from a policy directly, we sample transitions from a replay buffer $\mathcal { R }$ collected while performing off-policy training:
100
+
101
+ $$
102
+ \operatorname* { m a x } _ { D } \mathbb { E } _ { \mathcal { R } } [ \log ( D ( s , a ) ) ] + \mathbb { E } _ { \pi _ { E } } [ \log ( 1 - D ( s , a ) ) ] - \lambda H ( \pi ) .
103
+ $$
104
+
105
+ Equation 2 tries to match the occupancy measures between the expert and the distribution induced by the replay buffer $\mathcal { R }$ , which can be seen as a mixture of all policy distributions that appeared during training, instead of the latest trained policy $\pi$ . In order to recover the original on-policy expectation, one needs to use importance sampling:
106
+
107
+ $$
108
+ \operatorname* { m a x } _ { D } \mathbb { E } _ { \mathcal { R } } \left[ \frac { p _ { \pi _ { \theta } } ( s , a ) } { p _ { \mathcal { R } } ( s , a ) } \log ( D ( s , a ) ) \right] + \mathbb { E } _ { \pi _ { E } } [ \log ( 1 - D ( s , a ) ) ] - \lambda H ( \pi ) .
109
+ $$
110
+
111
+ However, it can be challenging to properly estimate these densities and the discriminator updates might have large variance. We found that the algorithm works well in practice with the importance weight omitted.
112
+
113
+ We use the GAIL discriminator in order to define rewards for training a policy using TD3; we update per-step rewards every time when we pull transitions from the replay buffer using the latest discriminator. The TD3 algorithm provides a good balance between sample complexity and simplicity of implementation and so is a good candidate for practical applications. Additionally, depending on the distribution of expert demonstrations and properties of the task, off-policy RL algorithms can effectively handle multi-modal action distributions; for example, this can be achieved for the Soft Actor Critic algorithm (Haarnoja et al., 2018b) using the reparametrization trick (Kingma & Ba, 2014) with a normalizing flow (Rezende & Mohamed, 2015) as described in Haarnoja et al. (2018a).
114
+
115
+ # 5 EXPERIMENTS
116
+
117
+ We implemented the DAC algorithm described in Section 4.3 using TensorFlow Eager (Abadi et al., 2015) and we evaluated it on popular benchmarks for continuous control simulated in MuJoCo (Todorov et al., 2012). We also define a new set of robotic continuous control tasks (described in detail below) simulated in PyBullet (Coumans & Bai, 2016), and a Virtual Reality (VR) system for capturing human examples in this environment; human examples constitute a particularly challenging demonstration source due to their noisy, multi-modal and potentially sub-optimal nature, and we define multi-task environments as a challenging setup for adversarial imitation learning.
118
+
119
+ For the critic and policy networks we used the same architecture as in Fujimoto et al. (2018): a 2 layer MLP with ReLU activations and 400 and 300 hidden units correspondingly. We also add gradient clipping (Pascanu et al., 2013) to the actor network with clipping value of 40. For the discriminator we used the same architecture as in Ho & Ermon (2016): a 2 layer MLP with 100 hidden units and tanh activations. We trained all networks with the Adam optimizer (Kingma & Ba, 2014) and decay learning rate by starting with initial learning rate of $1 0 ^ { - 3 }$ and decaying it by 0.5 every $1 0 ^ { 5 }$ training steps for the actor network.
120
+
121
+ ![](images/63831734656c3d784b2bd775b6fde185329f704567069ef963c5441987fb2419.jpg)
122
+ Figure 3: Comparisons of algorithms using 4 expert demonstrations. y-axis corresponds to normalized reward (0 corresponds to a random policy, while 1 corresponds to an expert policy).
123
+
124
+ In order to make the algorithm more stable, especially in the off-policy regime when the discriminator can easily over-fit to training data, we use regularization in the form of gradient penalties (Gulrajani et al., 2017) for the discriminator. Originally, this was introduced as an alternative to weight clipping for Wasserstein GANs (Arjovsky et al., 2017), but later it was shown that it helps to make JS-based GANs more stable as well (Lucic et al., 2017).
125
+
126
+ We replicate the experimental setup of Ho & Ermon (2016): expert trajectories are sub-sampled by retaining every 20 time steps starting with a random offset (and fixed stride). It is worth mentioning that, as in Ho & Ermon (2016), this procedure is done in order to make the imitation learning task harder. With full trajectories, behavioral cloning provides competitive results to GAIL.
127
+
128
+ Following Henderson et al. (2017b) and Fujimoto et al. (2018), we perform evaluation using 10 different random seeds. For each seed, we compute average episode reward using 10 episodes and running the policy without random noise. As in Ho & Ermon (2016) we plot reward normalized in such a way that zero corresponds to a random reward while one corresponds to expert rewards. We compute mean over all seeds and visualize half standard deviations. In order to produce the same evaluation for GAIL we used the original implementation3 of the algorithm.
129
+
130
+ # 5.1 OFF POLICY DAC ALGORITHM
131
+
132
+ Evaluation results of the DAC algorithm on a suite of MuJoCo tasks are shown in Figure 3, as are the GAIL (TRPO) and BC basline results. In the top-left plot, we show DAC is an order of magnitude more sample efficent than then TRPO and PPO based GAIL baselines. In the other plots, we show that by using a significantly smaller number of environment steps (orders of magnitude fewer), our DAC algorithm reaches comparable expected reward as the GAIL baseline. Furthermore, DAC outperforms the GAIL baseline on all environments within a 1 million step threshold. We obtained slightly worse results for Walker2d. However, as mentioned earlier, GAIL uses a reward function that already has some biases encoded in it that aids training on this specific environment. A comprehensive suit of results can be found in Appendix B, Figure 7.
133
+
134
+ # 5.2 REWARD BIAS
135
+
136
+ As discussed in Section 4.1, the reward function variants used with GAIL can have implicit biases when used without handling absorbing states. Figure 4 demonstrates how bias affects results on an environment with survival bonus when using the reward function of Ho & Ermon (2016): $r ( s , a ) =$ $- \log ( 1 - D ( s , a ) )$ . Surprisingly, when using a fixed and untrained GAIL discriminator that outputs 0.5 for every state-action pair, we were able to reach episode rewards of around 1000 on the Hopper environment, corresponding to approximately one third of the expert performance. Without any reward learning, and using no expert demonstrations, the agent can learn a policy that outperforms behavioral cloning (Figure 4). Therefore, the choice of a specific reward function might already provide strong prior knowledge that helps the RL algorithm to move towards recovering the expert policy, irrespective of the quality of the learned reward.
137
+
138
+ ![](images/20efb2c433e451e3882df5a3213393f3045bd0dfe602a94c2aeb08ef956f4fdc.jpg)
139
+
140
+ ![](images/f27a4b0f4225210951edf48b03b0d9121fd8d1bf32fe83bfae02f883ce474e37.jpg)
141
+ Figure 4: Even without training, some reward functions can perform well on some tasks.
142
+ Figure 5: Effect of absorbing state handling on Kuka environments. For these environments, we use human demonstrations as expert trajectories, and GAIL framework with a positive reward function.
143
+
144
+ Additionally, we evaluated our method on two environments with per-step penalty (see Figure 5). These environment are simulated in PyBullet and consist of a Kuka IIWA arm and 3 blocks on a virtual table. A rendering of the environment can be found in Appendix C, Figure 8. Using a Cartesian displacement action for the gripper end-effector and a compact observation-space (consisting of each block’s 6DOF pose and the Kuka’s end-effector pose), the agent must either a) reach one of the 3 blocks in the shortest number of frames possible (the target block is provided to the policy as a one-hot vector), which we call Kuka-Reach, or b) push one block along the table so that it is adjacent to another block, which we call Kuka-PushNext. For evaluation, we define a sparse reward indicating successful task completion (within some threshold). For these imitation learning experiments, we use human demonstrations collected with a VR setup, where the participant wears a VR headset and controls in real-time the gripper end-effector using a 6DOF controller.
145
+
146
+ Using the reward defined as $r ( s , a ) = - l o g ( 1 - D ( s , a ) )$ and without absorbing state handling, the agent completely fails to recover the expert policy given 600 expert trajectories without subsampling (as shown in Figure 4). In contrast, our DAC algorithm quickly learns to imitate the expert, despite using noisy and potentially sub-optimal human demonstrations.
147
+
148
+ As discussed, alternative reward functions do not have this positive bias but still require proper handling of the absorbing states as well in order to avoid early termination due to incorrectly assigned per-frame penalty. Figure 6 illustrates results for AIRL with and without learning rewards for absorbing states. For these experiments we use the discriminator structure from $\mathrm { F u }$ et al. (2017) in combination with the TD3 algorithm.
149
+
150
+ # 6 CONCLUSION
151
+
152
+ In this work we address several important issues associated with the popular GAIL framework. In particular, we address 1) sample inefficiency with respect to policy transitions in the environment and 2) we demonstrate a number of reward biases that can either implicitly impose prior knowledge about the true reward, or alternatively, prevent the policy from imitating the optimal expert. To address reward bias, we propose a simple mechanism whereby the rewards for absorbing states are also learned, which negates the need to hand-craft a discriminator reward function for the properties of the task at hand. In order to improve sample efficiency, we perform off-policy training of the discriminator and use an off-policy RL algorithm. We show that our algorithm reaches state-of-theart performance for an imitation learning algorithm on several standard RL benchmarks, and is able to recover the expert policy given a significantly smaller number of samples than in recent GAIL work.
153
+
154
+ ![](images/6fee1a4b0187eb33856999252f719d3b3a7323edb7c8a270e64e4cead5914dd8.jpg)
155
+ Figure 6: Effect of learning absorbing state rewards when using an AIRL discriminator within the DAC Framework in OpenAI Gym environments.
156
+
157
+ # ACKNOWLEDGMENTS
158
+
159
+ We would like to thank Justin Fu and the ICLR Reproducibility Workshop team for insightful discussions and feedback.
160
+
161
+ # REFERENCES
162
+
163
+ Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris ´ Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Wat- ´ tenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org.
164
+
165
+ Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004.
166
+
167
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. ´ arXiv preprint arXiv:1701.07875, 2017.
168
+
169
+ Michael Bain and Claude Sommut. A framework for behavioural cloning. Machine intelligence, 15 (15):103, 1999.
170
+
171
+ Nir Baram, Oron Anschel, Itai Caspi, and Shie Mannor. End-to-end differentiable adversarial imitation learning. In International Conference on Machine Learning, pp. 390–399, 2017.
172
+
173
+ Lionel Blonde and Alexandros Kalousis. Sample-efficient imitation learning via generative adver- ´ sarial nets. arXiv preprint arXiv:1809.02064, 2018.
174
+
175
+ E Coumans and Y Bai. Pybullet, a python module for physics simulation for games, robotics and machine learning. GitHub repository, 2016.
176
+
177
+ Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, Yuhuai Wu, and Peter Zhokhov. Openai baselines. https: //github.com/openai/baselines, 2017.
178
+
179
+ Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. NIPS Workshop on Adversarial Training, 2016a.
180
+
181
+ Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016b.
182
+
183
+ Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017.
184
+
185
+ Scott Fujimoto, Herke van Hoof, and Dave Meger. Addressing function approximation error in actor-critic methods. arXiv preprint arXiv:1802.09477, 2018.
186
+
187
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
188
+
189
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems, pp. 5767–5777, 2017.
190
+
191
+ Tuomas Haarnoja, Kristian Hartikainen, Pieter Abbeel, and Sergey Levine. Latent space policies for hierarchical reinforcement learning. arXiv preprint arXiv:1804.02808, 2018a.
192
+
193
+ Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018b.
194
+
195
+ Peter Henderson, Wei-Di Chang, Pierre-Luc Bacon, David Meger, Joelle Pineau, and Doina Precup. Optiongan: Learning joint reward-policy options using generative adversarial inverse reinforcement learning. arXiv preprint arXiv:1709.06683, 2017a.
196
+
197
+ Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. arXiv preprint arXiv:1709.06560, 2017b.
198
+
199
+ Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Gabriel Dulac-Arnold, et al. Deep q-learning from demonstrations. arXiv preprint arXiv:1704.03732, 2017.
200
+
201
+ Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016.
202
+
203
+ Bingyi Kang, Zequn Jie, and Jiashi Feng. Policy optimization with demonstrations. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 2469–2478. PMLR, 2018.
204
+
205
+ Kee-Eung Kim and Hyun Soo Park. Imitation learning via kernel mean embedding. AAAI, 2018.
206
+
207
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
208
+
209
+ Hoang M Le, Nan Jiang, Alekh Agarwal, Miroslav Dud´ık, Yisong Yue, and Hal Daume III. Hierar- ´ chical imitation and reinforcement learning. arXiv preprint arXiv:1803.00590, 2018.
210
+
211
+ 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.
212
+
213
+ Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are gans created equal? a large-scale study. arXiv preprint arXiv:1711.10337, 2017.
214
+
215
+ Ashvin Nair, Bob McGrew, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Overcoming exploration in reinforcement learning with demonstrations. arXiv preprint arXiv:1709.10089, 2017.
216
+
217
+ Andrew Y. $\mathrm { N g }$ and Stuart Russell. Algorithms for inverse reinforcement learning. In in Proc. 17th International Conf. on Machine Learning, pp. 663–670. Morgan Kaufmann, 2000.
218
+
219
+ Andrew $\mathrm { ~ Y ~ N ~ g ~ }$ , Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In ICML, volume 99, pp. 278–287, 1999.
220
+
221
+ Fabio Pardo, Arash Tavakoli, Vitaly Levdik, and Petar Kormushev. Time limits in reinforcement learning. arXiv preprint arXiv:1712.00378, 2017.
222
+
223
+ Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International Conference on Machine Learning, pp. 1310–1318, 2013.
224
+
225
+ Jan Peters and Stefan Schaal. Reinforcement learning of motor skills with policy gradients. Neural networks, 21(4):682–697, 2008.
226
+
227
+ Nathan D Ratliff, J Andrew Bagnell, and Martin A Zinkevich. Maximum margin planning. In Proceedings of the 23rd international conference on Machine learning, pp. 729–736. ACM, 2006.
228
+
229
+ Siddharth Reddy, Anca D. Dragan, and Sergey Levine. What would pi\* do?: Imitation learning via off-policy reinforcement learning, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ B1excoAqKQ.
230
+
231
+ Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015.
232
+
233
+ Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and struc- ´ tured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011.
234
+
235
+ Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ BkN5UoAqF7.
236
+
237
+ John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015.
238
+
239
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
240
+
241
+ Richard S Sutton, Andrew G Barto, et al. Reinforcement learning: An introduction. MIT press, 1998.
242
+
243
+ Umar Syed, Michael Bowling, and Robert E Schapire. Apprenticeship learning using linear programming. In Proceedings of the 25th international conference on Machine learning, pp. 1032– 1039. ACM, 2008.
244
+
245
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026– 5033. IEEE, 2012.
246
+
247
+ Faraz Torabi, Garrett Warnell, and Peter Stone. Generative adversarial imitation from observation. arXiv preprint arXiv:1807.06158, 2018.
248
+
249
+ Matej Vecer´ık, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothorl, Thomas Lampe, and Martin A Riedmiller. Leveraging demonstrations for ¨ deep reinforcement learning on robotics problems with sparse rewards. CoRR, abs/1707.08817, 2017.
250
+
251
+ Ziyu Wang, Josh S Merel, Scott E Reed, Nando de Freitas, Gregory Wayne, and Nicolas Heess. Robust imitation of diverse behaviors. In Advances in Neural Information Processing Systems, pp. 5320–5329, 2017.
252
+
253
+ Yuke Zhu, Ziyu Wang, Josh Merel, Andrei Rusu, Tom Erez, Serkan Cabi, Saran Tunyasuvunakool, Janos Kram ´ ar, Raia Hadsell, Nando de Freitas, et al. Reinforcement and imitation learning for ´ diverse visuomotor skills. arXiv preprint arXiv:1802.09564, 2018.
254
+
255
+ Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008.
256
+
257
+ # A DAC ALGORITHM
258
+
259
+ # Algorithm 1 Discriminative-Actor-Critic Adversarial Imitation Learning Algorithm
260
+
261
+ <table><tr><td>nput:expert replay buffer RE procedure WRAPFORABSORBINGSTATES(T)</td></tr><tr><td>if sT is a terminal state not caused by time limits then T ←T\{(st,aT,:,st)}U{(st,aT,:,Sa)} T←TU{(sa,,:,sa)}</td></tr><tr><td>end if return T</td></tr><tr><td>end procedure</td></tr><tr><td></td></tr><tr><td>Initialize replaybufferR←@ for T={(St,at,,st)}T=1 ∈REdo</td></tr><tr><td>T ←WrapForAbsorbingState(T) Wrap expert rollouts with absorbing states end for</td></tr><tr><td></td></tr><tr><td>for n = 1,...,do</td></tr><tr><td>Sample T = {(st,at,:,st)}T=1 with π0 R ←RU WrapForAbsorbingState(τ) Update Policy Replay Buffer</td></tr></table>
262
+
263
+ ![](images/b3571dd47a884af45bdecca1273f0671b42c431d444710ab08254166537fed2f.jpg)
264
+ B SUPPLEMENTARY RESULTS ON MUJOCO ENVIRONMENTS
265
+ Figure 7: Comparisons of different algorithms given the same number of expert demonstrations. y-axis corresponds to normalized reward (0 corresponds to a random policy, while 1 corresponds to an expert policy).
266
+
267
+ # C KUKA-IIWA SIMULATED ENVIRONMENT
268
+
269
+ ![](images/19b746b7ce5e603b62f5f309187dd95f7891096815c19481338661b775f8874f.jpg)
270
+ Figure 8: Renderings of our Kuka-IIWA environment. Using a VR headset and 6DOF controller, a human participant can control the 6DOF end-effector pose in order to record expert demonstrations. In the Kuka-Reach tasks, the agent must bring the robot gripper to 1 of the 3 blocks (where the state contains a 1-hot encoding of the task) and for the Kuka-PushNext tasks, the agent must use the robot gripper to push one block next to another.
parse/train/Hk4fpoA5Km/Hk4fpoA5Km_content_list.json ADDED
@@ -0,0 +1,1495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DISCRIMINATOR-ACTOR-CRITIC:ADDRESSING SAMPLE INEFFICIENCY AND REWARDBIAS IN ADVERSARIAL IMITATION LEARNING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 821,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ilya Kostrikov1,2,\\*, Kumar Krishna Agrawal2, †, Debidatta Dwibedi2, †, Sergey Levine2, and Jonathan Tompson2 ",
17
+ "bbox": [
18
+ 184,
19
+ 199,
20
+ 815,
21
+ 229
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Courant Institute of Mathematical Sciences, New York University, New York, NY 2Google Brain, Mountain View, CA ",
28
+ "bbox": [
29
+ 228,
30
+ 241,
31
+ 767,
32
+ 270
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 311,
43
+ 544,
44
+ 327
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Algorithms for imitation learning based on adversarial optimization, such as generative adversarial imitation learning (GAIL) and adversarial inverse reinforcement learning (AIRL), can effectively mimic demonstrated behaviours by employing both reward and reinforcement learning (RL). However, applications of such algorithms are challenged by the inherent instability and poor sample efficiency of on-policy RL. In particular, the inadequate handling of absorbing states in canonical implementations of RL environments causes an implicit bias in reward functions used by these algorithms. While these biases might work well for some environments, they lead to sub-optimal behaviors in others. Moreover, despite the ability of these algorithms to learn from a few demonstrations, they require a prohibitively large number of the environment interactions for many real-world applications. To address these issues, we first propose to extend the environment MDP with absorbing states which leads to task-independent, and more importantly, unbiased rewards. Secondly, we introduce an off-policy learning algorithm, which we refer to as Discriminator-Actor-Critic. We demonstrate the effectiveness of proper handling of absorbing states, while empirically improving the sample efficiency by an average factor of 10. Our implementation is available online 1. ",
51
+ "bbox": [
52
+ 233,
53
+ 343,
54
+ 764,
55
+ 592
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 178,
65
+ 619,
66
+ 334,
67
+ 636
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The Adversarial Imitation Learning (AIL) class of algorithms learns a policy that robustly imitates an expert’s actions via a collection of expert demonstrations, an adversarial discriminator and a reinforcement learning method. For example, the Generative Adversarial Imitation Learning (GAIL) algorithm (Ho & Ermon, 2016) uses a discriminator reward and a policy gradient algorithm to imitate an expert RL policy. Similarly, the Adversarial Inverse Reinforcement Learning (AIRL) algorithm (Fu et al., 2017) makes use of a modified GAIL discriminator to recover a reward function to perform Inverse Reinforcement Learning (IRL) (Abbeel & Ng, 2004). Additionally, this subsequent dense reward is robust to changes in dynamics or environment properties. Importantly, AIL algorithms such as GAIL and AIRL, obtain higher performance than supervised Behavioral Cloning (BC) when using a small number of expert demonstrations; experimentally suggesting that AIL algorithms alleviate some of the distributional drift (Ross et al., 2011) issues associated with BC. However, these AIL methods suffer from two important issues that will be addressed by this work: 1) a large number of policy interactions with the learning environment is required for policy convergence and 2) although in principle these methods can learn rewards for absorbing states, the original implementations suffer from improper handling of the environment terminal states. This introduces implicit rewards priors which can either improve or degrade policy performance. ",
74
+ "bbox": [
75
+ 174,
76
+ 651,
77
+ 825,
78
+ 873
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/1de8cf30d798c6c776834bfece5450f74e76287380d82db216a4e24c0a81ab5b.jpg",
85
+ "image_caption": [
86
+ "Figure 1: The Discriminator-Actor-Critic imitation learning framework combined with a method to explicitly learn rewards for the absorbing states. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 186,
91
+ 98,
92
+ 808,
93
+ 189
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "While GAIL requires as little as 200 expert frame transitions (from 4 expert trajectories) to learn a robust reward function on most MuJoCo (Todorov et al., 2012) tasks, the number of policy frame transitions sampled from the environment can be as high as 25 million in order to reach convergence. If PPO (Schulman et al., 2017) is used in place of TRPO (Schulman et al., 2015), the sample complexity can be improved (for example, as in Figure 3, 25 million steps reduces to approximately 10 million steps), however it is still intractable for many robotics or real-world applications. In this work we address this issue by incorporating an off-policy RL algorithm (TD3 (Fujimoto et al., 2018)) and an off-policy discriminator to dramatically decrease the sample complexity by orders of magnitude. ",
100
+ "bbox": [
101
+ 174,
102
+ 258,
103
+ 825,
104
+ 383
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In this work, we also illustrate how specific design choices for AIL algorithms and MDPs used in practice, have a large impact on agent performance for environments with absorbing states. For instance, as we will demonstrate, if the implementation assigns zero rewards for absorbing states, a strictly positive reward function can prevent the agent from solving tasks with a minimal number of steps, while a strictly negative reward function is unable to emulate a survival bonus. Therefore, one must have some knowledge of the true environment reward and incorporate such priors to choose a suitable reward function for successful application of GAIL and AIRL. We will discuss these issues formally, and present a simple - yet effective - solution that drastically improves policy performance for environments with absorbing states; we explicitly handle absorbing state transitions by learning the reward associated with these states. ",
111
+ "bbox": [
112
+ 174,
113
+ 391,
114
+ 825,
115
+ 530
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "First we propose a new algorithm, which we call Discriminator-Actor-Critic (DAC) (Figure 1), that is compatible with the GAIL and AIRL frameworks by extending them with an off-policy discriminator and an off-policy actor-critic reinforcement learning algorithm. Then we propose a general approach to handling absorbing states in inverse reinforcement learning and reward learning methods. We experimentally demonstrate that this removes the bias due to incorrect absorbing state handling in both GAIL-like and AIRL-like variants of our DAC algorithm. In our experiments, we demonstrate that DAC achieves state-of-the-art AIL performance for a number of difficult imitation learning tasks, where proper handling of terminal states is crucial for matching expert performance in the presence of absorbing states. More specifically, in this work we: ",
122
+ "bbox": [
123
+ 174,
124
+ 536,
125
+ 825,
126
+ 662
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• Identify, and propose solutions for the problem of handling terminal states of policy rollouts in standard RL benchmarks in the context of AIL algorithms. • Accelerate learning from demonstrations by providing an off-policy variant for AIL algorithms, which significantly reduces the number of agent-environment interactions. • Illustrate the robustness of DAC to noisy, multi-modal and constrained expert demonstrations, by performing experiments with human demonstrations on non-trivial robotic tasks. ",
133
+ "bbox": [
134
+ 215,
135
+ 674,
136
+ 823,
137
+ 768
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 RELATED WORK ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 794,
148
+ 344,
149
+ 810
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Imitation learning has been broadly studied under the twin umbrellas of Behavioral Cloning (BC) (Bain & Sommut, 1999; Ross et al., 2011) and Inverse Reinforcement Learning (IRL) (Ng & Russell, 2000). To recover the underlying policy, IRL performs an intermediate step of estimating the reward function followed by RL on this function (Abbeel & Ng, 2004; Ratliff et al., 2006). Operating in the Maximum Entropy IRL formulation (Ziebart et al., 2008), Finn et al. (2016b) introduce an iterativesampling based estimator for the partition function, deriving an algorithm for recovering non-linear reward functions in high-dimensional state and action spaces. Finn et al. (2016a) and $\\mathrm { F u }$ et al. ",
156
+ "bbox": [
157
+ 173,
158
+ 825,
159
+ 825,
160
+ 924
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "(2017) further extend this by exploring the theoretical and practical considerations of an adversarial IRL framework, and draw connections between IRL and cost learning in GANs (Goodfellow et al., 2014). ",
167
+ "bbox": [
168
+ 174,
169
+ 103,
170
+ 823,
171
+ 145
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "In practical scenarios, we are often interested in recovering the expert’s policy, rather than the reward function. Following Syed et al. (2008), and by treating imitation learning as an occupancy matching problem, Ho & Ermon (2016) proposed a Generative Adversarial Imitation Learning (GAIL) framework for learning a policy from demonstrations, which bypasses the need to recover the expert’s reward function. More recent work extends the framework by improving on stability and robustness (Wang et al., 2017; Kim & Park, 2018) and making connections to model-based imitation learning (Baram et al., 2017). These approaches generally use on-policy algorithms for policy optimization, trading off sample efficiency for training stability. ",
178
+ "bbox": [
179
+ 174,
180
+ 152,
181
+ 825,
182
+ 263
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Learning complex behaviors from sparse reward signals poses a significant challenge in reinforcement learning. In this context, expert demonstrations or template trajectories have been successfully used (Peters & Schaal, 2008) for initializing RL policies. There has been a growing interest in combining extrinsic sparse reward signals with imitation learning for guided exploration (Zhu et al., 2018; Kang et al., 2018; Le et al., 2018; Vecer´ık et al., 2017). Off policy learning from demonstration has been previously studied under the umbrella of accelerating reinforcement learning by structured exploration (Nair et al., 2017; Hester et al., 2017) An implicit assumption of these approaches is access to demonstrations and reward from the environment; our approach requires access only to expert demonstrations. ",
189
+ "bbox": [
190
+ 174,
191
+ 270,
192
+ 825,
193
+ 396
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Biases associated with specific MDP benchmarks also arise in the standard RL setup. In particular, Pardo et al. (2017) and Tucker et al. (2018) discuss handling of time limits in RL specifically with MDPs where time limits make the problems non-Markovian and might affect optimality of the training policy and value function estimation. The problem with the biases associated with episode terminations also prove to be severe for AIL algorithms because for specific RL benchmarks the absorbing states might not even be adequately taken into consideration. We discuss this in more detail in Section 4.1. ",
200
+ "bbox": [
201
+ 174,
202
+ 402,
203
+ 825,
204
+ 500
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Our work is most related to AIL algorithms (Ho & Ermon, 2016; Fu et al., 2017; Torabi et al., 2018). In contrast to Ho & Ermon (2016) which assumes (state-action-state’) transition tuples, Torabi et al. (2018) has weaker assumptions, by relying only on observations and removing the dependency on actions. The contributions in this work are complementary (and compatible) to Torabi et al. (2018). ",
211
+ "bbox": [
212
+ 174,
213
+ 507,
214
+ 823,
215
+ 564
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Concurrent to our work, several other papers introduced algorithms for sample efficient imitation learning. Blonde & Kalousis (2018) introduced Sample-efficient Adversarial Mimic (SAM) algo- ´ rithm that combines Deep Deterministic Policy Gradients (DDPG) from Lillicrap et al. (2015) with GAIL. While Reddy et al. (2019) and Sasaki et al. (2019) proposed imitation learning algorithms based on off-policy reinforcement learning that does not require to learn rewards. ",
222
+ "bbox": [
223
+ 174,
224
+ 570,
225
+ 825,
226
+ 640
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 BACKGROUND ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 674,
237
+ 326,
238
+ 690
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "3.1 MARKOV DECISION PROCESS ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 176,
248
+ 714,
249
+ 419,
250
+ 729
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "We consider problems that satisfy the definition of a Markov Decision Process (MDP), formalized by the tuple: $( \\bar { S ^ { , } } A , p ( s ) , p ( s ^ { \\prime } \\vert s , a ) , r ( s , a , s ^ { \\prime } ) , \\gamma )$ . Here $s$ , $\\mathcal { A }$ represent the state and action spaces respectively, $p ( s )$ is the initial state distribution, $p ( s ^ { \\prime } | s , a )$ defines environment dynamics represented as a conditional state distribution, $r ( s , a , s ^ { \\prime } )$ is reward function and $\\gamma$ the return discount factor. ",
257
+ "bbox": [
258
+ 174,
259
+ 746,
260
+ 823,
261
+ 803
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "In continuing tfor a trajectory $\\tau = \\{ ( s _ { t } , a _ { t } ) \\} _ { t = 0 } ^ { \\infty }$ nment interactio, are defined as $\\begin{array} { r } { R _ { t } = \\sum _ { k = t } ^ { \\infty } \\gamma ^ { k - t } r \\bigl ( s _ { k } , \\dot { a } _ { k } , s _ { k + 1 } \\bigr ) } \\end{array}$ ngth, the returns. In order to use the same notation for tasks with absorbing states, whose finite length episodes end when reaching a terminal state, we can define a set of absorbing states $s _ { a }$ (Sutton et al., 1998) that an agent enters after the end of episode, has zero reward and transitions to itself for all agent actions: $s _ { a } \\sim p ( \\cdot | s _ { T } , a _ { T } )$ , can be defined simply as learn a policy that maxim $r ( s _ { a } , \\cdot , \\cdot ) = 0$ and $s _ { a } \\sim p ( \\cdot | s _ { a } , \\cdot )$ $\\begin{array} { r } { R _ { t } = \\sum _ { k = t } ^ { T } \\gamma ^ { k - t } r \\big ( s _ { k } , a _ { k } , s _ { k + 1 } \\big ) } \\end{array}$ (see Figure 2). With this above absorbing state notation, returns . In reinforcement learning, the goal is to ",
268
+ "bbox": [
269
+ 174,
270
+ 809,
271
+ 825,
272
+ 924
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "image",
278
+ "img_path": "images/e65c3a8e2b5c5b30543feb3d8c12d649047ee7a7c8e15dcb6ed33447bf464c25.jpg",
279
+ "image_caption": [
280
+ "Figure 2: We depict an episode of MDP with an absorbing state. The absorbing state transitions to itself with zero reward. "
281
+ ],
282
+ "image_footnote": [],
283
+ "bbox": [
284
+ 269,
285
+ 97,
286
+ 736,
287
+ 164
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "In many imitation learning and IRL algorithms a common assumption is to assign zero reward value, often implicitly, to absorbing states. Moreover, standard benchmark MDPs, such as the tasks in OpenAI Gym, omit absorbing states and corresponding transitions from rollouts. Under this omission and a de-facto reward of 0 to absorbing states, the standard AIL algorithms do not have access to absorbing states in the buffer, which biases the reward learning process. We propose a modification that enables our DAC algorithm to assign a learned, potentially non-zero, reward for absorbing states. We discuss this in detail in Section 4.1, and demonstrate empirically in Section 5.2 that it is extremely important to properly handle the absorbing states for algorithms where rewards are learned. ",
294
+ "bbox": [
295
+ 174,
296
+ 233,
297
+ 825,
298
+ 358
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Considering the implications of adequate handling of terminal states, it is worth mentioning that practical implementations of MDP benchmarks terminate episodes after a specific number of steps. We refer to this as time dependent termination, which makes the tasks non-Markovian, since the returns are now time-dependent as observed in Pardo et al. (2017), Tucker et al. (2018). These works propose to fix this problem by using a time-dependent value function, or by bootstrapping after the terminal state instead of masking the returns, which can be achieved using an algorithm that incorporates value function learning (Fujimoto et al., 2018). Because our solution is derived for infinite horizon problems, we do not treat states that occur after time-dependent termination as absorbing states and assume that after explicitly adding absorbing states and transitions all tasks have infinite horizon (for example, see Figure 2). For this reason, in our implementation we use the latter approach and perform bootstrapping for the terminal states (for elaborate discussion on time limits in MDPs, we refer the reader to Pardo et al. (2017)). ",
305
+ "bbox": [
306
+ 174,
307
+ 366,
308
+ 825,
309
+ 532
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "3.2 ADVERSARIAL IMITATION LEARNING ",
316
+ "text_level": 1,
317
+ "bbox": [
318
+ 176,
319
+ 555,
320
+ 475,
321
+ 569
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "In order to learn a robust reward function we use the GAIL framework (Ho & Ermon, 2016). Inspired by maximum entropy IRL (Ziebart et al., 2008) and Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), GAIL trains a binary classifier, $D ( s , a )$ , referred to as the discriminator, to distinguish between transitions sampled from an expert and those generated by the trained policy. In standard GAN frameworks, a generator gradient is calculated by backprop through the learned discriminator. However, in GAIL the policy is instead provided a reward for confusing the discriminator, which is then maximized via some on-policy RL optimization scheme (e.g. TRPO (Schulman et al., 2015)): ",
328
+ "bbox": [
329
+ 173,
330
+ 583,
331
+ 825,
332
+ 695
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/bc533a374eae2e01f2d9aa562e216d7ff1a09da6653a949060a23bf3e5e89767.jpg",
339
+ "text": "$$\n\\operatorname* { m i n } _ { \\pi } \\operatorname* { m a x } _ { D } \\mathbb { E } _ { \\pi } [ \\log ( D ( s , a ) ) ] + \\mathbb { E } _ { \\pi _ { E } } [ \\log ( 1 - D ( s , a ) ) ] - \\lambda H ( \\pi )\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 290,
343
+ 722,
344
+ 709,
345
+ 744
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "where $H ( \\pi )$ is an entropy regularization term and $\\pi _ { E }$ is a policy provided by an expert. ",
352
+ "bbox": [
353
+ 173,
354
+ 756,
355
+ 746,
356
+ 771
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "The rewards learned by GAIL might not correspond to a true reward ( $\\mathrm { F u }$ et al., 2017) but can be used to match the expert occupancy measure, which is defined as $\\begin{array} { r } { \\rho _ { \\pi _ { E } } ( s , a ) = \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } p ( s _ { t } = } \\end{array}$ $s , a _ { t } = a | \\pi _ { E } )$ ). Ho & Ermon (2016) draw analogies between distribution matching using GANs and occupancy matching with GAIL. They demonstrate that by maximizing the above reward, the algorithm matches occupancy measures of the expert and trained policies with some regularization term defined by the choice of GAN loss function. ",
363
+ "bbox": [
364
+ 174,
365
+ 776,
366
+ 825,
367
+ 861
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "In principle, GAIL can be incorporated with any on-policy RL algorithm. However, in this work we adapt it for off-policy training (discussed in Section 4.3). As can be seen from Equation 1, the algorithm requires state-action pairs to be sampled from the learned policy. In Section 4.3 we will discuss what modifications are necessary to adapt the algorithm to off-policy training. ",
374
+ "bbox": [
375
+ 174,
376
+ 867,
377
+ 823,
378
+ 924
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "4 DISCRIMINATOR-ACTOR-CRITIC ",
385
+ "text_level": 1,
386
+ "bbox": [
387
+ 176,
388
+ 102,
389
+ 477,
390
+ 117
391
+ ],
392
+ "page_idx": 4
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "In this section we first elaborate on specific instances of biased rewards in AIL algorithms due to insufficient handling of terminal states. Following that in Section 4.2, we present an approach for unbiasing rewards for existing AIL algorithms. Then, we derive an off-policy formulation of AIL in Section 4.3, which we name Discriminator-Actor-Critic (DAC). A high level pictorial representation of this algorithm is shown in Figure 1, and it is formally summarized in Appendix A. ",
397
+ "bbox": [
398
+ 174,
399
+ 133,
400
+ 825,
401
+ 203
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "4.1 BIAS IN REWARDS ",
408
+ "text_level": 1,
409
+ "bbox": [
410
+ 176,
411
+ 219,
412
+ 343,
413
+ 233
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "In the following section, we present examples of bias present in implementations of different AIL algorithms as they assign zero rewards to absorbing states: ",
420
+ "bbox": [
421
+ 174,
422
+ 246,
423
+ 821,
424
+ 275
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "• Absorbing states in MDPs: In the GAIL framework (and follow-up methods, such as GMMIL (Kim & Park, 2018), OptionGAN (Henderson et al., 2017a), AIRL and the widely used implementation of GAIL from OpenAI Baselines (Dhariwal et al., 2017)), for some benchmarks such as MuJoCo locomotion tasks from OpenAI Gym, a reward function $r ( s , a )$ assigns rewards to intermediate states depending on properties of a task. At the same time, policies executed on these MDPs generate rollouts that ignore absorbing states. Subsequently, the algorithms do not have access to these absorbing states in the buffer, cannot learn proper rewards, and therefore do not perform bootstrapping after terminal states; thus, 0 reward is implicitly assigned for absorbing states. For certain environments, a survival bonus in the form of per-step positive reward is added to the rewards received by the agent. This encourages agents to survive longer in the environment to collect more rewards. We observe that a commonly used form of the reward function: $r ( s , a ) = - \\log ( 1 - D ( s , a ) )$ has worked well for environments that require a survival bonus. Under the implicit assumption of zero rewards for absorbing states in the MDP implementation, this strictly positive estimator cannot recover the true reward function for environments where an agent is required to solve the task as quickly as possible. Using this form of the reward function will lead to sub-optimal solutions. The agent is now incentivized to move in loops or take small actions (in continuous action spaces) that keep it close to the states in the expert’s trajectories. The agent keeps collecting positive rewards without actually attempting to solve the task demonstrated by the expert.2 Another reward formulation is $r ( s , a ) = \\log ( D ( s , a ) )$ . This is often used for tasks with a per step penalty, when a part of a reward function consists of a negative constant assigned unconditionally of states and actions. However, this variant assigns only negative rewards and cannot learn a survival bonus. Such strong priors might lead to good results even with no expert trajectories (as shown in Figure 4). ",
431
+ "bbox": [
432
+ 215,
433
+ 285,
434
+ 825,
435
+ 642
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "From an end-user’s perspective, it is undesirable to have to craft a different reward function for every new task. In the next section, we propose a method to handle absorbing states of the standard benchmark MDPs in such a way that AIL algorithms are able to recover different reward functions without adjusting the form of reward estimator. ",
442
+ "bbox": [
443
+ 176,
444
+ 655,
445
+ 825,
446
+ 709
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "4.2 UNBIASING REWARDS ",
453
+ "text_level": 1,
454
+ "bbox": [
455
+ 176,
456
+ 727,
457
+ 370,
458
+ 741
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "In order to resolve the issues described in Section 4.1, we suggest explicitly learning rewards for absorbing states for expert demonstrations and trajectories produced by a policy. Thus, the returns episode that consists o with a learned reward $T$ nsitions are defiinstead of just $R _ { T } = r ( s _ { T } , a _ { T } ) \\ : +$ $\\scriptstyle \\sum _ { t = T + 1 } ^ { \\infty } \\gamma ^ { t - T } r ( s _ { a } , \\cdot )$ $r ( s _ { a } , \\cdot )$ $R _ { T } = r ( s _ { T } , a _ { T } )$ used due to issues described in Section 4.2. This formulation allows the algorithms to correctly estimate returns for the final transitions and optimize the policy accordingly. ",
465
+ "bbox": [
466
+ 174,
467
+ 752,
468
+ 823,
469
+ 837
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "In order to enable the AIL algorithms to learn the rewards for absorbing states and RL algorithms to take into account learned rewards, we suggest to update rollouts sampled from MDPs in the following way. After terminating an episode, we explicitly add a transition from the terminal state of the episode to an absorbing state $\\left( { { s _ { T } } , { s _ { a } } } \\right)$ and a transition from an absorbing state to itself $( s _ { a } , s _ { a } )$ . ",
476
+ "bbox": [
477
+ 174,
478
+ 843,
479
+ 823,
480
+ 900
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Thus, when sample from the replay buffer AIL algorithms will be able to see absorbing states there were previous hidden, while RL algorithms will be able to properly estimate values for terminal states using transitions $\\left( { { s _ { T } } , { s _ { a } } } \\right)$ and $( s _ { a } , s _ { a } )$ using the following recursions: ",
487
+ "bbox": [
488
+ 174,
489
+ 103,
490
+ 825,
491
+ 147
492
+ ],
493
+ "page_idx": 5
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "img_path": "images/02b6d476a742208cad871bd4028410afcbeed4841d84f7bba62a48b036380c7e.jpg",
498
+ "text": "$$\n\\begin{array} { c } { { Q ( s _ { T } , a ) = r ( s _ { T } , a ) + \\gamma Q ( s _ { a } , \\cdot ) } } \\\\ { { Q ( s _ { a } , \\cdot ) = r ( s _ { a } , \\cdot ) + \\gamma Q ( s _ { a } , \\cdot ) } } \\end{array}\n$$",
499
+ "text_format": "latex",
500
+ "bbox": [
501
+ 387,
502
+ 172,
503
+ 609,
504
+ 212
505
+ ],
506
+ "page_idx": 5
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "We implemented these absorbing states by adding an extra indicator dimension that indicates whether the state is absorbing or not, for absorbing states we set the indicator dimension to one and all other dimensions to zero. The GAIL discriminator can distinguish whether reaching an absorbing state is a desirable behavior from the expert’s perspective and assign the rewards accordingly. ",
511
+ "bbox": [
512
+ 174,
513
+ 223,
514
+ 825,
515
+ 280
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "4.3 ADDRESSING SAMPLE INEFFICIENCY ",
522
+ "text_level": 1,
523
+ "bbox": [
524
+ 176,
525
+ 296,
526
+ 472,
527
+ 311
528
+ ],
529
+ "page_idx": 5
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "As previously mentioned, GAIL requires a significant number of interactions with a learning environment in order to imitate an expert policy. To address the sample inefficiency of GAIL, we use an off-policy RL algorithm and perform off-policy training of the GAIL discriminator performed in the following way: instead of sampling trajectories from a policy directly, we sample transitions from a replay buffer $\\mathcal { R }$ collected while performing off-policy training: ",
534
+ "bbox": [
535
+ 174,
536
+ 321,
537
+ 825,
538
+ 393
539
+ ],
540
+ "page_idx": 5
541
+ },
542
+ {
543
+ "type": "equation",
544
+ "img_path": "images/217062f9db10c6e8d727ade963b2a0a40382eab25f7425f536bcf8b598d8cb23.jpg",
545
+ "text": "$$\n\\operatorname* { m a x } _ { D } \\mathbb { E } _ { \\mathcal { R } } [ \\log ( D ( s , a ) ) ] + \\mathbb { E } _ { \\pi _ { E } } [ \\log ( 1 - D ( s , a ) ) ] - \\lambda H ( \\pi ) .\n$$",
546
+ "text_format": "latex",
547
+ "bbox": [
548
+ 302,
549
+ 412,
550
+ 699,
551
+ 435
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Equation 2 tries to match the occupancy measures between the expert and the distribution induced by the replay buffer $\\mathcal { R }$ , which can be seen as a mixture of all policy distributions that appeared during training, instead of the latest trained policy $\\pi$ . In order to recover the original on-policy expectation, one needs to use importance sampling: ",
558
+ "bbox": [
559
+ 174,
560
+ 446,
561
+ 825,
562
+ 503
563
+ ],
564
+ "page_idx": 5
565
+ },
566
+ {
567
+ "type": "equation",
568
+ "img_path": "images/02b888260085e5a60c698e2ba58c367e3c1094fca6269a92402482d74fd0e4e1.jpg",
569
+ "text": "$$\n\\operatorname* { m a x } _ { D } \\mathbb { E } _ { \\mathcal { R } } \\left[ \\frac { p _ { \\pi _ { \\theta } } ( s , a ) } { p _ { \\mathcal { R } } ( s , a ) } \\log ( D ( s , a ) ) \\right] + \\mathbb { E } _ { \\pi _ { E } } [ \\log ( 1 - D ( s , a ) ) ] - \\lambda H ( \\pi ) .\n$$",
570
+ "text_format": "latex",
571
+ "bbox": [
572
+ 263,
573
+ 520,
574
+ 736,
575
+ 554
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "However, it can be challenging to properly estimate these densities and the discriminator updates might have large variance. We found that the algorithm works well in practice with the importance weight omitted. ",
582
+ "bbox": [
583
+ 176,
584
+ 564,
585
+ 825,
586
+ 606
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "We use the GAIL discriminator in order to define rewards for training a policy using TD3; we update per-step rewards every time when we pull transitions from the replay buffer using the latest discriminator. The TD3 algorithm provides a good balance between sample complexity and simplicity of implementation and so is a good candidate for practical applications. Additionally, depending on the distribution of expert demonstrations and properties of the task, off-policy RL algorithms can effectively handle multi-modal action distributions; for example, this can be achieved for the Soft Actor Critic algorithm (Haarnoja et al., 2018b) using the reparametrization trick (Kingma & Ba, 2014) with a normalizing flow (Rezende & Mohamed, 2015) as described in Haarnoja et al. (2018a). ",
593
+ "bbox": [
594
+ 173,
595
+ 612,
596
+ 825,
597
+ 726
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "5 EXPERIMENTS ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 176,
607
+ 746,
608
+ 326,
609
+ 761
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "We implemented the DAC algorithm described in Section 4.3 using TensorFlow Eager (Abadi et al., 2015) and we evaluated it on popular benchmarks for continuous control simulated in MuJoCo (Todorov et al., 2012). We also define a new set of robotic continuous control tasks (described in detail below) simulated in PyBullet (Coumans & Bai, 2016), and a Virtual Reality (VR) system for capturing human examples in this environment; human examples constitute a particularly challenging demonstration source due to their noisy, multi-modal and potentially sub-optimal nature, and we define multi-task environments as a challenging setup for adversarial imitation learning. ",
616
+ "bbox": [
617
+ 173,
618
+ 776,
619
+ 825,
620
+ 875
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "For the critic and policy networks we used the same architecture as in Fujimoto et al. (2018): a 2 layer MLP with ReLU activations and 400 and 300 hidden units correspondingly. We also add gradient clipping (Pascanu et al., 2013) to the actor network with clipping value of 40. For the discriminator we used the same architecture as in Ho & Ermon (2016): a 2 layer MLP with 100 hidden units and tanh activations. We trained all networks with the Adam optimizer (Kingma & Ba, 2014) and decay learning rate by starting with initial learning rate of $1 0 ^ { - 3 }$ and decaying it by 0.5 every $1 0 ^ { 5 }$ training steps for the actor network. ",
627
+ "bbox": [
628
+ 176,
629
+ 882,
630
+ 825,
631
+ 924
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/63831734656c3d784b2bd775b6fde185329f704567069ef963c5441987fb2419.jpg",
638
+ "image_caption": [
639
+ "Figure 3: Comparisons of algorithms using 4 expert demonstrations. y-axis corresponds to normalized reward (0 corresponds to a random policy, while 1 corresponds to an expert policy). "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 194,
644
+ 99,
645
+ 805,
646
+ 297
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "",
653
+ "bbox": [
654
+ 174,
655
+ 367,
656
+ 825,
657
+ 422
658
+ ],
659
+ "page_idx": 6
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "In order to make the algorithm more stable, especially in the off-policy regime when the discriminator can easily over-fit to training data, we use regularization in the form of gradient penalties (Gulrajani et al., 2017) for the discriminator. Originally, this was introduced as an alternative to weight clipping for Wasserstein GANs (Arjovsky et al., 2017), but later it was shown that it helps to make JS-based GANs more stable as well (Lucic et al., 2017). ",
664
+ "bbox": [
665
+ 174,
666
+ 430,
667
+ 823,
668
+ 501
669
+ ],
670
+ "page_idx": 6
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "We replicate the experimental setup of Ho & Ermon (2016): expert trajectories are sub-sampled by retaining every 20 time steps starting with a random offset (and fixed stride). It is worth mentioning that, as in Ho & Ermon (2016), this procedure is done in order to make the imitation learning task harder. With full trajectories, behavioral cloning provides competitive results to GAIL. ",
675
+ "bbox": [
676
+ 174,
677
+ 507,
678
+ 823,
679
+ 563
680
+ ],
681
+ "page_idx": 6
682
+ },
683
+ {
684
+ "type": "text",
685
+ "text": "Following Henderson et al. (2017b) and Fujimoto et al. (2018), we perform evaluation using 10 different random seeds. For each seed, we compute average episode reward using 10 episodes and running the policy without random noise. As in Ho & Ermon (2016) we plot reward normalized in such a way that zero corresponds to a random reward while one corresponds to expert rewards. We compute mean over all seeds and visualize half standard deviations. In order to produce the same evaluation for GAIL we used the original implementation3 of the algorithm. ",
686
+ "bbox": [
687
+ 174,
688
+ 569,
689
+ 825,
690
+ 654
691
+ ],
692
+ "page_idx": 6
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "5.1 OFF POLICY DAC ALGORITHM ",
697
+ "text_level": 1,
698
+ "bbox": [
699
+ 176,
700
+ 672,
701
+ 431,
702
+ 685
703
+ ],
704
+ "page_idx": 6
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "Evaluation results of the DAC algorithm on a suite of MuJoCo tasks are shown in Figure 3, as are the GAIL (TRPO) and BC basline results. In the top-left plot, we show DAC is an order of magnitude more sample efficent than then TRPO and PPO based GAIL baselines. In the other plots, we show that by using a significantly smaller number of environment steps (orders of magnitude fewer), our DAC algorithm reaches comparable expected reward as the GAIL baseline. Furthermore, DAC outperforms the GAIL baseline on all environments within a 1 million step threshold. We obtained slightly worse results for Walker2d. However, as mentioned earlier, GAIL uses a reward function that already has some biases encoded in it that aids training on this specific environment. A comprehensive suit of results can be found in Appendix B, Figure 7. ",
709
+ "bbox": [
710
+ 174,
711
+ 698,
712
+ 825,
713
+ 824
714
+ ],
715
+ "page_idx": 6
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "5.2 REWARD BIAS ",
720
+ "text_level": 1,
721
+ "bbox": [
722
+ 176,
723
+ 842,
724
+ 315,
725
+ 856
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "As discussed in Section 4.1, the reward function variants used with GAIL can have implicit biases when used without handling absorbing states. Figure 4 demonstrates how bias affects results on an environment with survival bonus when using the reward function of Ho & Ermon (2016): $r ( s , a ) =$ $- \\log ( 1 - D ( s , a ) )$ . Surprisingly, when using a fixed and untrained GAIL discriminator that outputs 0.5 for every state-action pair, we were able to reach episode rewards of around 1000 on the Hopper environment, corresponding to approximately one third of the expert performance. Without any reward learning, and using no expert demonstrations, the agent can learn a policy that outperforms behavioral cloning (Figure 4). Therefore, the choice of a specific reward function might already provide strong prior knowledge that helps the RL algorithm to move towards recovering the expert policy, irrespective of the quality of the learned reward. ",
732
+ "bbox": [
733
+ 176,
734
+ 869,
735
+ 823,
736
+ 897
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "image",
742
+ "img_path": "images/20efb2c433e451e3882df5a3213393f3045bd0dfe602a94c2aeb08ef956f4fdc.jpg",
743
+ "image_caption": [],
744
+ "image_footnote": [],
745
+ "bbox": [
746
+ 397,
747
+ 99,
748
+ 599,
749
+ 195
750
+ ],
751
+ "page_idx": 7
752
+ },
753
+ {
754
+ "type": "image",
755
+ "img_path": "images/f27a4b0f4225210951edf48b03b0d9121fd8d1bf32fe83bfae02f883ce474e37.jpg",
756
+ "image_caption": [
757
+ "Figure 4: Even without training, some reward functions can perform well on some tasks. ",
758
+ "Figure 5: Effect of absorbing state handling on Kuka environments. For these environments, we use human demonstrations as expert trajectories, and GAIL framework with a positive reward function. "
759
+ ],
760
+ "image_footnote": [],
761
+ "bbox": [
762
+ 295,
763
+ 238,
764
+ 699,
765
+ 334
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "",
772
+ "bbox": [
773
+ 173,
774
+ 404,
775
+ 825,
776
+ 515
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Additionally, we evaluated our method on two environments with per-step penalty (see Figure 5). These environment are simulated in PyBullet and consist of a Kuka IIWA arm and 3 blocks on a virtual table. A rendering of the environment can be found in Appendix C, Figure 8. Using a Cartesian displacement action for the gripper end-effector and a compact observation-space (consisting of each block’s 6DOF pose and the Kuka’s end-effector pose), the agent must either a) reach one of the 3 blocks in the shortest number of frames possible (the target block is provided to the policy as a one-hot vector), which we call Kuka-Reach, or b) push one block along the table so that it is adjacent to another block, which we call Kuka-PushNext. For evaluation, we define a sparse reward indicating successful task completion (within some threshold). For these imitation learning experiments, we use human demonstrations collected with a VR setup, where the participant wears a VR headset and controls in real-time the gripper end-effector using a 6DOF controller. ",
783
+ "bbox": [
784
+ 173,
785
+ 522,
786
+ 825,
787
+ 675
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "Using the reward defined as $r ( s , a ) = - l o g ( 1 - D ( s , a ) )$ and without absorbing state handling, the agent completely fails to recover the expert policy given 600 expert trajectories without subsampling (as shown in Figure 4). In contrast, our DAC algorithm quickly learns to imitate the expert, despite using noisy and potentially sub-optimal human demonstrations. ",
794
+ "bbox": [
795
+ 174,
796
+ 681,
797
+ 823,
798
+ 738
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "As discussed, alternative reward functions do not have this positive bias but still require proper handling of the absorbing states as well in order to avoid early termination due to incorrectly assigned per-frame penalty. Figure 6 illustrates results for AIRL with and without learning rewards for absorbing states. For these experiments we use the discriminator structure from $\\mathrm { F u }$ et al. (2017) in combination with the TD3 algorithm. ",
805
+ "bbox": [
806
+ 174,
807
+ 744,
808
+ 825,
809
+ 814
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "6 CONCLUSION ",
816
+ "text_level": 1,
817
+ "bbox": [
818
+ 174,
819
+ 835,
820
+ 318,
821
+ 852
822
+ ],
823
+ "page_idx": 7
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "In this work we address several important issues associated with the popular GAIL framework. In particular, we address 1) sample inefficiency with respect to policy transitions in the environment and 2) we demonstrate a number of reward biases that can either implicitly impose prior knowledge about the true reward, or alternatively, prevent the policy from imitating the optimal expert. To address reward bias, we propose a simple mechanism whereby the rewards for absorbing states are also learned, which negates the need to hand-craft a discriminator reward function for the properties of the task at hand. In order to improve sample efficiency, we perform off-policy training of the discriminator and use an off-policy RL algorithm. We show that our algorithm reaches state-of-theart performance for an imitation learning algorithm on several standard RL benchmarks, and is able to recover the expert policy given a significantly smaller number of samples than in recent GAIL work. ",
828
+ "bbox": [
829
+ 174,
830
+ 867,
831
+ 825,
832
+ 924
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "image",
838
+ "img_path": "images/6fee1a4b0187eb33856999252f719d3b3a7323edb7c8a270e64e4cead5914dd8.jpg",
839
+ "image_caption": [
840
+ "Figure 6: Effect of learning absorbing state rewards when using an AIRL discriminator within the DAC Framework in OpenAI Gym environments. "
841
+ ],
842
+ "image_footnote": [],
843
+ "bbox": [
844
+ 295,
845
+ 98,
846
+ 705,
847
+ 199
848
+ ],
849
+ "page_idx": 8
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "",
854
+ "bbox": [
855
+ 174,
856
+ 266,
857
+ 825,
858
+ 363
859
+ ],
860
+ "page_idx": 8
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "ACKNOWLEDGMENTS ",
865
+ "text_level": 1,
866
+ "bbox": [
867
+ 176,
868
+ 378,
869
+ 326,
870
+ 392
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "We would like to thank Justin Fu and the ICLR Reproducibility Workshop team for insightful discussions and feedback. ",
877
+ "bbox": [
878
+ 176,
879
+ 402,
880
+ 821,
881
+ 430
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "REFERENCES ",
888
+ "text_level": 1,
889
+ "bbox": [
890
+ 176,
891
+ 452,
892
+ 285,
893
+ 467
894
+ ],
895
+ "page_idx": 8
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris ´ Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Wat- ´ tenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org. ",
900
+ "bbox": [
901
+ 176,
902
+ 474,
903
+ 825,
904
+ 599
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004. ",
911
+ "bbox": [
912
+ 174,
913
+ 608,
914
+ 823,
915
+ 637
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. ´ arXiv preprint arXiv:1701.07875, 2017. ",
922
+ "bbox": [
923
+ 173,
924
+ 645,
925
+ 823,
926
+ 674
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Michael Bain and Claude Sommut. A framework for behavioural cloning. Machine intelligence, 15 (15):103, 1999. ",
933
+ "bbox": [
934
+ 174,
935
+ 683,
936
+ 821,
937
+ 710
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Nir Baram, Oron Anschel, Itai Caspi, and Shie Mannor. End-to-end differentiable adversarial imitation learning. In International Conference on Machine Learning, pp. 390–399, 2017. ",
944
+ "bbox": [
945
+ 174,
946
+ 719,
947
+ 820,
948
+ 748
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Lionel Blonde and Alexandros Kalousis. Sample-efficient imitation learning via generative adver- ´ sarial nets. arXiv preprint arXiv:1809.02064, 2018. ",
955
+ "bbox": [
956
+ 171,
957
+ 756,
958
+ 823,
959
+ 785
960
+ ],
961
+ "page_idx": 8
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "E Coumans and Y Bai. Pybullet, a python module for physics simulation for games, robotics and machine learning. GitHub repository, 2016. ",
966
+ "bbox": [
967
+ 173,
968
+ 792,
969
+ 823,
970
+ 823
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, Yuhuai Wu, and Peter Zhokhov. Openai baselines. https: //github.com/openai/baselines, 2017. ",
977
+ "bbox": [
978
+ 176,
979
+ 830,
980
+ 821,
981
+ 872
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. NIPS Workshop on Adversarial Training, 2016a. ",
988
+ "bbox": [
989
+ 174,
990
+ 882,
991
+ 823,
992
+ 922
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016b. ",
999
+ "bbox": [
1000
+ 171,
1001
+ 103,
1002
+ 823,
1003
+ 133
1004
+ ],
1005
+ "page_idx": 9
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017. ",
1010
+ "bbox": [
1011
+ 171,
1012
+ 142,
1013
+ 821,
1014
+ 171
1015
+ ],
1016
+ "page_idx": 9
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Scott Fujimoto, Herke van Hoof, and Dave Meger. Addressing function approximation error in actor-critic methods. arXiv preprint arXiv:1802.09477, 2018. ",
1021
+ "bbox": [
1022
+ 171,
1023
+ 180,
1024
+ 823,
1025
+ 209
1026
+ ],
1027
+ "page_idx": 9
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1032
+ "bbox": [
1033
+ 173,
1034
+ 218,
1035
+ 823,
1036
+ 262
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems, pp. 5767–5777, 2017. ",
1043
+ "bbox": [
1044
+ 173,
1045
+ 271,
1046
+ 826,
1047
+ 314
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Tuomas Haarnoja, Kristian Hartikainen, Pieter Abbeel, and Sergey Levine. Latent space policies for hierarchical reinforcement learning. arXiv preprint arXiv:1804.02808, 2018a. ",
1054
+ "bbox": [
1055
+ 173,
1056
+ 324,
1057
+ 821,
1058
+ 353
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018b. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 362,
1068
+ 823,
1069
+ 405
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Peter Henderson, Wei-Di Chang, Pierre-Luc Bacon, David Meger, Joelle Pineau, and Doina Precup. Optiongan: Learning joint reward-policy options using generative adversarial inverse reinforcement learning. arXiv preprint arXiv:1709.06683, 2017a. ",
1076
+ "bbox": [
1077
+ 178,
1078
+ 415,
1079
+ 823,
1080
+ 458
1081
+ ],
1082
+ "page_idx": 9
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. arXiv preprint arXiv:1709.06560, 2017b. ",
1087
+ "bbox": [
1088
+ 171,
1089
+ 467,
1090
+ 823,
1091
+ 497
1092
+ ],
1093
+ "page_idx": 9
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Gabriel Dulac-Arnold, et al. Deep q-learning from demonstrations. arXiv preprint arXiv:1704.03732, 2017. ",
1098
+ "bbox": [
1099
+ 176,
1100
+ 506,
1101
+ 823,
1102
+ 549
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016. ",
1109
+ "bbox": [
1110
+ 173,
1111
+ 559,
1112
+ 823,
1113
+ 588
1114
+ ],
1115
+ "page_idx": 9
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Bingyi Kang, Zequn Jie, and Jiashi Feng. Policy optimization with demonstrations. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 2469–2478. PMLR, 2018. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 597,
1123
+ 825,
1124
+ 640
1125
+ ],
1126
+ "page_idx": 9
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Kee-Eung Kim and Hyun Soo Park. Imitation learning via kernel mean embedding. AAAI, 2018. ",
1131
+ "bbox": [
1132
+ 169,
1133
+ 648,
1134
+ 807,
1135
+ 665
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 674,
1145
+ 820,
1146
+ 703
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Hoang M Le, Nan Jiang, Alekh Agarwal, Miroslav Dud´ık, Yisong Yue, and Hal Daume III. Hierar- ´ chical imitation and reinforcement learning. arXiv preprint arXiv:1803.00590, 2018. ",
1153
+ "bbox": [
1154
+ 171,
1155
+ 712,
1156
+ 823,
1157
+ 742
1158
+ ],
1159
+ "page_idx": 9
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
1164
+ "bbox": [
1165
+ 174,
1166
+ 751,
1167
+ 823,
1168
+ 795
1169
+ ],
1170
+ "page_idx": 9
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are gans created equal? a large-scale study. arXiv preprint arXiv:1711.10337, 2017. ",
1175
+ "bbox": [
1176
+ 169,
1177
+ 804,
1178
+ 823,
1179
+ 833
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Ashvin Nair, Bob McGrew, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Overcoming exploration in reinforcement learning with demonstrations. arXiv preprint arXiv:1709.10089, 2017. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 843,
1189
+ 823,
1190
+ 885
1191
+ ],
1192
+ "page_idx": 9
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Andrew Y. $\\mathrm { N g }$ and Stuart Russell. Algorithms for inverse reinforcement learning. In in Proc. 17th International Conf. on Machine Learning, pp. 663–670. Morgan Kaufmann, 2000. ",
1197
+ "bbox": [
1198
+ 171,
1199
+ 895,
1200
+ 821,
1201
+ 924
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Andrew $\\mathrm { ~ Y ~ N ~ g ~ }$ , Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In ICML, volume 99, pp. 278–287, 1999. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 103,
1211
+ 823,
1212
+ 133
1213
+ ],
1214
+ "page_idx": 10
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Fabio Pardo, Arash Tavakoli, Vitaly Levdik, and Petar Kormushev. Time limits in reinforcement learning. arXiv preprint arXiv:1712.00378, 2017. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 142,
1222
+ 823,
1223
+ 171
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International Conference on Machine Learning, pp. 1310–1318, 2013. ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 181,
1233
+ 823,
1234
+ 212
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Jan Peters and Stefan Schaal. Reinforcement learning of motor skills with policy gradients. Neural networks, 21(4):682–697, 2008. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 220,
1244
+ 823,
1245
+ 251
1246
+ ],
1247
+ "page_idx": 10
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Nathan D Ratliff, J Andrew Bagnell, and Martin A Zinkevich. Maximum margin planning. In Proceedings of the 23rd international conference on Machine learning, pp. 729–736. ACM, 2006. ",
1252
+ "bbox": [
1253
+ 173,
1254
+ 260,
1255
+ 825,
1256
+ 290
1257
+ ],
1258
+ "page_idx": 10
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Siddharth Reddy, Anca D. Dragan, and Sergey Levine. What would pi\\* do?: Imitation learning via off-policy reinforcement learning, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ B1excoAqKQ. ",
1263
+ "bbox": [
1264
+ 173,
1265
+ 299,
1266
+ 823,
1267
+ 343
1268
+ ],
1269
+ "page_idx": 10
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015. ",
1274
+ "bbox": [
1275
+ 171,
1276
+ 352,
1277
+ 825,
1278
+ 382
1279
+ ],
1280
+ "page_idx": 10
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and struc- ´ tured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011. ",
1285
+ "bbox": [
1286
+ 174,
1287
+ 391,
1288
+ 821,
1289
+ 435
1290
+ ],
1291
+ "page_idx": 10
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ BkN5UoAqF7. ",
1296
+ "bbox": [
1297
+ 176,
1298
+ 444,
1299
+ 821,
1300
+ 488
1301
+ ],
1302
+ "page_idx": 10
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015. ",
1307
+ "bbox": [
1308
+ 173,
1309
+ 497,
1310
+ 821,
1311
+ 527
1312
+ ],
1313
+ "page_idx": 10
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 536,
1321
+ 823,
1322
+ 566
1323
+ ],
1324
+ "page_idx": 10
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Richard S Sutton, Andrew G Barto, et al. Reinforcement learning: An introduction. MIT press, 1998. ",
1329
+ "bbox": [
1330
+ 169,
1331
+ 575,
1332
+ 825,
1333
+ 606
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Umar Syed, Michael Bowling, and Robert E Schapire. Apprenticeship learning using linear programming. In Proceedings of the 25th international conference on Machine learning, pp. 1032– 1039. ACM, 2008. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 616,
1343
+ 823,
1344
+ 659
1345
+ ],
1346
+ "page_idx": 10
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026– 5033. IEEE, 2012. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 667,
1354
+ 821,
1355
+ 712
1356
+ ],
1357
+ "page_idx": 10
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Faraz Torabi, Garrett Warnell, and Peter Stone. Generative adversarial imitation from observation. arXiv preprint arXiv:1807.06158, 2018. ",
1362
+ "bbox": [
1363
+ 171,
1364
+ 722,
1365
+ 823,
1366
+ 751
1367
+ ],
1368
+ "page_idx": 10
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Matej Vecer´ık, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothorl, Thomas Lampe, and Martin A Riedmiller. Leveraging demonstrations for ¨ deep reinforcement learning on robotics problems with sparse rewards. CoRR, abs/1707.08817, 2017. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 814,
1376
+ 825,
1377
+ 869
1378
+ ],
1379
+ "page_idx": 10
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Ziyu Wang, Josh S Merel, Scott E Reed, Nando de Freitas, Gregory Wayne, and Nicolas Heess. Robust imitation of diverse behaviors. In Advances in Neural Information Processing Systems, pp. 5320–5329, 2017. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 881,
1387
+ 825,
1388
+ 924
1389
+ ],
1390
+ "page_idx": 10
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Yuke Zhu, Ziyu Wang, Josh Merel, Andrei Rusu, Tom Erez, Serkan Cabi, Saran Tunyasuvunakool, Janos Kram ´ ar, Raia Hadsell, Nando de Freitas, et al. Reinforcement and imitation learning for ´ diverse visuomotor skills. arXiv preprint arXiv:1802.09564, 2018. ",
1395
+ "bbox": [
1396
+ 176,
1397
+ 103,
1398
+ 825,
1399
+ 146
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 155,
1409
+ 823,
1410
+ 184
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "A DAC ALGORITHM ",
1417
+ "text_level": 1,
1418
+ "bbox": [
1419
+ 176,
1420
+ 102,
1421
+ 364,
1422
+ 118
1423
+ ],
1424
+ "page_idx": 12
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Algorithm 1 Discriminative-Actor-Critic Adversarial Imitation Learning Algorithm ",
1429
+ "text_level": 1,
1430
+ "bbox": [
1431
+ 173,
1432
+ 148,
1433
+ 722,
1434
+ 164
1435
+ ],
1436
+ "page_idx": 12
1437
+ },
1438
+ {
1439
+ "type": "table",
1440
+ "img_path": "images/03db262ede4f4603e06539803dba80d6b35f1f7a27e20878b8a0b223460578f9.jpg",
1441
+ "table_caption": [],
1442
+ "table_footnote": [],
1443
+ "table_body": "<table><tr><td>nput:expert replay buffer RE procedure WRAPFORABSORBINGSTATES(T)</td></tr><tr><td>if sT is a terminal state not caused by time limits then T ←T\\{(st,aT,:,st)}U{(st,aT,:,Sa)} T←TU{(sa,,:,sa)}</td></tr><tr><td>end if return T</td></tr><tr><td>end procedure</td></tr><tr><td></td></tr><tr><td>Initialize replaybufferR←@ for T={(St,at,,st)}T=1 ∈REdo</td></tr><tr><td>T ←WrapForAbsorbingState(T) Wrap expert rollouts with absorbing states end for</td></tr><tr><td></td></tr><tr><td>for n = 1,...,do</td></tr><tr><td>Sample T = {(st,at,:,st)}T=1 with π0 R ←RU WrapForAbsorbingState(τ) Update Policy Replay Buffer</td></tr></table>",
1444
+ "bbox": [
1445
+ 181,
1446
+ 164,
1447
+ 826,
1448
+ 595
1449
+ ],
1450
+ "page_idx": 12
1451
+ },
1452
+ {
1453
+ "type": "image",
1454
+ "img_path": "images/b3571dd47a884af45bdecca1273f0671b42c431d444710ab08254166537fed2f.jpg",
1455
+ "image_caption": [
1456
+ "B SUPPLEMENTARY RESULTS ON MUJOCO ENVIRONMENTS ",
1457
+ "Figure 7: Comparisons of different algorithms given the same number of expert demonstrations. y-axis corresponds to normalized reward (0 corresponds to a random policy, while 1 corresponds to an expert policy). "
1458
+ ],
1459
+ "image_footnote": [],
1460
+ "bbox": [
1461
+ 192,
1462
+ 136,
1463
+ 807,
1464
+ 625
1465
+ ],
1466
+ "page_idx": 13
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "C KUKA-IIWA SIMULATED ENVIRONMENT ",
1471
+ "text_level": 1,
1472
+ "bbox": [
1473
+ 173,
1474
+ 102,
1475
+ 553,
1476
+ 118
1477
+ ],
1478
+ "page_idx": 14
1479
+ },
1480
+ {
1481
+ "type": "image",
1482
+ "img_path": "images/19b746b7ce5e603b62f5f309187dd95f7891096815c19481338661b775f8874f.jpg",
1483
+ "image_caption": [
1484
+ "Figure 8: Renderings of our Kuka-IIWA environment. Using a VR headset and 6DOF controller, a human participant can control the 6DOF end-effector pose in order to record expert demonstrations. In the Kuka-Reach tasks, the agent must bring the robot gripper to 1 of the 3 blocks (where the state contains a 1-hot encoding of the task) and for the Kuka-PushNext tasks, the agent must use the robot gripper to push one block next to another. "
1485
+ ],
1486
+ "image_footnote": [],
1487
+ "bbox": [
1488
+ 232,
1489
+ 138,
1490
+ 764,
1491
+ 340
1492
+ ],
1493
+ "page_idx": 14
1494
+ }
1495
+ ]
parse/train/Hk4fpoA5Km/Hk4fpoA5Km_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hk4fpoA5Km/Hk4fpoA5Km_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/RSU17UoKfJF/RSU17UoKfJF.md ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # R-GAP: RECURSIVE GRADIENT ATTACK ON PRIVACY
2
+
3
+ Junyi Zhu and Matthew Blaschko
4
+
5
+ Dept. ESAT, Center for Processing Speech and Images KU Leuven, Belgium {junyi.zhu,matthew.blaschko}@esat.kuleuven.be
6
+
7
+ # ABSTRACT
8
+
9
+ Federated learning frameworks have been regarded as a promising approach to break the dilemma between demands on privacy and the promise of learning from large collections of distributed data. Many such frameworks only ask collaborators to share their local update of a common model, i.e. gradients, instead of exposing their raw data to other collaborators. However, recent optimization-based gradient attacks show that raw data can often be accurately recovered from gradients. It has been shown that minimizing the Euclidean distance between true gradients and those calculated from estimated data is often effective in fully recovering private data. However, there is a fundamental lack of theoretical understanding of how and when gradients can lead to unique recovery of original data. Our research fills this gap by providing a closed-form recursive procedure to recover data from gradients in deep neural networks. We name it Recursive Gradient Attack on Privacy (R-GAP). Experimental results demonstrate that R-GAP works as well as or even better than optimization-based approaches at a fraction of the computation under certain conditions. Additionally, we propose a Rank Analysis method, which can be used to estimate the risk of gradient attacks inherent in certain network architectures, regardless of whether an optimization-based or closed-form-recursive attack is used. Experimental results demonstrate the utility of the rank analysis towards improving the network’s security. Source code is available for download from https://github.com/JunyiZhu-AI/R-GAP.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Distributed and federated learning have become common strategies for training neural networks without transferring data (Jochems et al., 2016; 2017; Konecnˇ y et al., 2016; McMahan et al., 2017). ´ Instead, model updates, often in the form of gradients, are exchanged between participating nodes. These are then used to update at each node a copy of the model. This has been widely applied for privacy purposes (Rigaki & Garcia, 2020; Cristofaro, 2020), including with medical data (Jochems et al., 2016; 2017). Recently, it has been demonstrated that this family of approaches is susceptible to attacks that can in some circumstances recover the training data from the gradient information exchanged in such federated learning approaches, calling into question their suitability for privacy preserving distributed machine learning (Phong et al., 2018; Wang et al., 2019; Zhu et al., 2019; Zhao et al., 2020; Geiping et al., 2020; Wei et al., 2020). To date these attack strategies have broadly fallen into two groups: (i) an analytical attack based on the use of gradients with respect to a bias term (Phong et al., 2018), and (ii) an optimization-based attack (Zhu et al., 2019) that can in some circumstances recover individual training samples in a batch, but that involves a difficult nonconvex optimization that doesn’t always converge to a correct solution (Geiping et al., 2020), and that provides comparatively little insights into the information that is being exploited in the attack.
14
+
15
+ The development of privacy attacks is most important because they inform strategies for protecting against them. This is achieved by perturbations to the transferred gradients, and the form of the attack can give insights into the type of perturbation that can effectively protect the data (Fan et al., 2020). As such, the development of novel closed-form attacks is essential to the analysis of privacy in federated learning. More broadly, the existence of model inversion attacks (He et al., 2019; Wang et al., 2019; Yang et al., 2019; Zhang et al., 2020) calls into question whether transferring a fully trained model can be considered privacy preserving. As the weights of a model trained by (stochastic) gradient descent are the summation of individual gradients, understanding gradient attacks can assist in the analysis of and protection against model inversion attacks in and outside of a federated learning setting.
16
+
17
+ In this work, we develop a novel third family of attacks, recursive gradient attack on privacy (RGAP), that is based on a recursive, depth-wise algorithm for recovering training data from gradient information. Different from the analytical attack using the bias term, R-GAP utilizes much more information and is the first closed-form algorithm that works on both convolutional networks and fully connected networks with or without bias term. Compared to optimization-based attacks, it is not susceptible to local optima, and is orders of magnitude faster to run with a deterministic running time. Furthermore, we show that under certain conditions our recursive attack can fully recover training data in cases where optimization attacks fail. Additionally, the insights gained from the closed form of our recursive attack have lead to a refined rank analysis that predicts which network architectures enable full recovery, and which lead to provable noisy recovery due to rankdeficiency. This explains well the performance of both closed-form and optimization-based attacks. We also demonstrate that using rank analysis we are able to make small modifications to network architectures to increase the network’s security without sacrificing its accuracy.
18
+
19
+ # 1.1 RELATED WORK
20
+
21
+ Bias attacks: The original discovery of the existence of an analytical attack based on gradients with respect to the bias term is due to Phong et al. (2018). Fan et al. (2020) also analyzed the bias attack as a system of linear equations, and proposed a method of perturbing the gradients to protect against it. Their work considers convolutional and fully-connected networks as equivalent, but this ignores the aggregation of gradients in convolutional networks. Similar to our work, they also perform a rank analysis, but it considers fewer constraints than is included in our analysis (Section 4).
22
+
23
+ Optimization attacks: The first attack that utilized an optimization approach to minimize the distance between gradients appears to be due to Wang et al. (2019). In this work, optimization is adopted as a submodule in their GAN-style framework. Subsequently, Zhu et al. (2019) proposed a method called deep leakage from gradients (DLG) which relies entirely on minimization of the difference of gradients (Section 2). They propose the use of L-BFGS (Liu & Nocedal, 1989) to perform the optimization. Zhao et al. (2020) further analyzed label inference in this setting, proposing an analytic way to reconstruct the one-hot label of multi-class classification in terms of a single input. Wei et al. (2020) show that DLG is sensitive to initialization and proposed that the same class image is an optimal initialization. They proposed to use SSIM as image similarity metric, which can then be used to guide optimization by DLG. Geiping et al. (2020) point out that as DLG requires second-order derivatives, L-BFGS actually requires third-order derivatives, which leads to challenging optimzation for networks with activation functions such as ReLU and LeakyReLU. They therefore propose to replace L-BFGS with Adam (Kingma & Ba, 2015). Similar to the work of Wei et al. (2020), Geiping et al. (2020) propose to incorporate an image prior, in this case total variation, while using PSNR as a quality measurement.
24
+
25
+ # 2 OPTIMIZATION-BASED GRADIENT ATTACKS ON PRIVACY (O-GAP)
26
+
27
+ Optimization-based gradient attacks on privacy (O-GAP) take the real gradients as its ground-truth label and utilizes optimization to decrease the distance between the real gradients $\nabla { \mathbf W }$ and the dummy gradients $\nabla { \mathbf W } ^ { \prime }$ generated by a pair of randomly initialized dummy data and dummy label. The objective function of O-GAP can be generally expressed as:
28
+
29
+ $$
30
+ \arg \operatorname* { m i n } _ { x ^ { \prime } , y ^ { \prime } } \| \nabla \mathbf { W } - \nabla \mathbf { W } ^ { \prime } \| ^ { 2 } = \arg \operatorname* { m i n } _ { x ^ { \prime } , y ^ { \prime } } \sum _ { i = 1 } ^ { d } \| \nabla \mathbf { W } _ { i } - \nabla \mathbf { W } _ { i } ^ { \prime } \| ^ { 2 } ,
31
+ $$
32
+
33
+ where the summation is taken over the layers of a network of depth $d$ , and $( x ^ { \prime } , y ^ { \prime } )$ is the dummy training data and label used to generate $\nabla W ^ { \prime }$ . The idea of O-GAP was proposed by Wang et al. (2019). However, they have adopted it as a part of their GAN-style framework and did not realize that O-GAP is able to preform a more accurate attack by itself. Later in the work of Zhu et al. (2019), O-GAP has been proposed as a stand alone approach, the framework has been named as Deep Leakage from Gradients (DLG).
34
+
35
+ The approach is intuitively simple, and in practice has been shown to give surprisingly good results (Zhu et al., 2019). However, it is sensitive to initialization and prone to fail (Zhao et al., 2020). The choice of optimizer is therefore important, and convergence can be very slow (Geiping et al., 2020). Perhaps most importantly, Equation 1 gives little insight into what information in the gradients is being exploited to recover the data. Analysis in Zhu et al. (2019) is limited to empirical insights, and fundamental open questions remain: What are sufficient conditions for arg $\begin{array} { r l } { { \bf \operatorname* { m i n } } _ { x ^ { \prime } , y ^ { \prime } } \sum _ { i = 1 } ^ { d ^ { - } } \| \nabla { \bf W } _ { i } - \nabla { \bf W } _ { i } ^ { \prime } \| ^ { 2 } } & { { } } \end{array}$ to have a unique minimizer? We address this question in Section 4, and subsequently validate our findings empirically.
36
+
37
+ # 3 CLOSED-FORM GRADIENT ATTACKS ON PRIVACY
38
+
39
+ The first attempt of closed-form GAP was proposed in a research of privacy-preserving deep learning by Phong et al. (2018).
40
+
41
+ Theorem 1 (Phong et al. (2018)). Assume a layer of a fully connected network with a bias term, expressed as:
42
+
43
+ $$
44
+ W x + b = z ,
45
+ $$
46
+
47
+ where $W , b$ denote the weight matrix and bias vector, and $x , z$ denote the input vector and output vector of this layer. If the loss function $\ell$ of the network can be expressed as:
48
+
49
+ $$
50
+ \ell = \ell ( f ( \pmb { x } ) , y )
51
+ $$
52
+
53
+ where $f$ indicates a nested function of $\boldsymbol { x }$ including activation function and all subsequent layers, $y$ is the ground-truth label. Then $x$ can be derived from gradients w.r.t. $W$ and gradients w.r.t. $\pmb { b }$ , i.e.:
54
+
55
+ $$
56
+ \begin{array} { l } { \displaystyle { \frac { \partial \ell } { \partial W } = \frac { \partial \ell } { \partial z } \pmb { x } ^ { \top } , \quad \frac { \partial \ell } { \partial \pmb { b } } = \frac { \partial \ell } { \partial z } } } \\ { \displaystyle { \boldsymbol { x } ^ { \top } = \frac { \partial \ell } { \partial W _ { j } } / \frac { \partial \ell } { \partial b _ { j } } } } \end{array}
57
+ $$
58
+
59
+ where $j$ denotes the $j$ -th row, note that in fact from each row we can compute a copy of $\mathbf { \dot { x } } ^ { \top }$ .
60
+
61
+ When this layer is the first layer of a network, it is possible to reconstruct the data, i.e. $\mathbf { X }$ , using this approach. In the case of noisy gradients, we can make use of the redundancy in estimating $\mathbf { X }$ by averaging over noisy estimates: $\begin{array} { r } { \bar { \mathbf { x } } ^ { \top } = \sum _ { j } \frac { \partial \ell } { \partial \mathbf { W } _ { j } } / \frac { \partial \ell } { \partial \mathbf { b } _ { j } } } \end{array}$ \`W / ∂\`∂b . However, simply removing the bias term can disable this attack. Besides, this approach does not work on convolutional neural networks due to a dimension mismatch in Equation 3. Both of these two problems have been resolved in our approach.
62
+
63
+ # 3.1 RECURSIVE GRADIENT ATTACK ON PRIVACY (R-GAP)
64
+
65
+ For simplicity we derive the R-GAP in terms of binary classification with a single image as input. In this setting we can generally describe the network and loss function as:
66
+
67
+ $$
68
+ \begin{array} { r l } & { \mu = y \mathbf { w } _ { d } \sigma _ { d - 1 } \left( \mathbf { W } _ { d - 1 } \underbrace { \sigma _ { d - 1 } ( \mathbf { x } ) } _ { = : f _ { d - 2 } ( \mathbf { x } ) } \right) } \\ & { \ell = \log ( 1 + e ^ { - \mu } ) } \end{array}
69
+ $$
70
+
71
+ where $y \in \{ - 1 , 1 \}$ , $d$ denotes the $d$ -th layer, $\phi$ represents all layers previous to $d - 2$ , and $\sigma$ denotes the activation function. Note that, although our notation omits the bias term in our approach, with an augmented matrix and augmented vector it is able to represent both of the linear map and the translation, e.g. Equation 2, using matrix multiplication as shown in Equation 4. So our formulation also includes the approach proposed by Phong et al. (2018). Moreover, if the $i$ -th layer is a convolutional layer, then $\mathbf { W } _ { i }$ is an extended circulant matrix representing the convolutional kernel (Golub & Van Loan, 1996), and data $\mathbf { X }$ as well as input of each layer are represented by a flattened vector in Equation 4.
72
+
73
+ ![](images/fed99db4e928a8180276c6754c68aeedbb818b5e3b7f27e504ce25596dd8bd9e.jpg)
74
+ \`: Logistic loss
75
+
76
+ ![](images/0f0d36f93676cb1c0d0c785f4bf1bda998a50c3954c1b623c1c4cc58bad256a3.jpg)
77
+ \`: Exponential loss
78
+
79
+ ![](images/a6fcea03c613b3e25dd35857db2aa92f683ba111632438c7c372bd900d5cba23.jpg)
80
+ \`: Hinge loss
81
+
82
+ Figure 1: In consideration of logistic loss, exponential loss and hinge loss, $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ is not monotonic w.r.t. $\mu$ . It is equal to 0 at $\mu = 0$ , after that it either approximates $0 ^ { - }$ , or equals to 0 after decreasing to $\mu = 1$ .
83
+
84
+ # 3.1.1 RECOVERING DATA FROM GRADIENTS
85
+
86
+ From Equation 4 and Equation 5 we can derive following gradients:
87
+
88
+ $$
89
+ \begin{array} { r l } & { \quad \quad \displaystyle \frac { \partial \ell } { \partial \mathbf { w } _ { d } } = y \frac { \partial \ell } { \partial \mu } f _ { d - 1 } ^ { \top } } \\ & { \quad \quad \displaystyle \frac { \partial \ell } { \partial \mathbf { W } _ { d - 1 } } = \left( \left( \mathbf { w } _ { d } ^ { \top } \left( y \frac { \partial \ell } { \partial \mu } \right) \right) \odot \sigma _ { d - 1 } ^ { \prime } \right) f _ { d - 2 } ^ { \top } } \\ & { \quad \quad \displaystyle \frac { \partial \ell } { \partial \mathbf { W } _ { d - 2 } } = \left( \left( \mathbf { W } _ { d - 1 } ^ { \top } \left( \left( \mathbf { w } _ { d } ^ { \top } \left( y \frac { \partial \ell } { \partial \mu } \right) \right) \odot \sigma _ { d - 1 } ^ { \prime } \right) \right) \odot \sigma _ { d - 2 } ^ { \prime } \right) \phi ^ { \top } } \end{array}
90
+ $$
91
+
92
+ where $\sigma ^ { \prime }$ denotes the derivative of $\sigma$ , for more details of deriving the gradients refer to Appendix $_ \mathrm { H }$ The first observation of these gradients is that:
93
+
94
+ $$
95
+ \frac { \partial \ell } { \partial \mathbf { w } _ { d } } \cdot \mathbf { w } _ { d } = \frac { \partial \ell } { \partial \mu } \mu
96
+ $$
97
+
98
+ Additionally, if $\sigma _ { 1 } , \ldots , \sigma _ { d - 1 }$ are ReLU or LeakyRelu, the dot product of the gradients and weights of each layer will be the same, i.e.:
99
+
100
+ $$
101
+ \frac { \partial \ell } { \partial \mathbf { w } _ { d } } \cdot \mathbf { w } _ { d } = \frac { \partial \ell } { \partial \mathbf { W } _ { d - 1 } } \cdot \mathbf { W } _ { d - 1 } = \ldots = \frac { \partial \ell } { \partial \mathbf { W } _ { 1 } } \cdot \mathbf { W } _ { 1 } = \frac { \partial \ell } { \partial \mu } \mu
102
+ $$
103
+
104
+ Since gradients and weights of each layer are known, we can obtain $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ . If loss function $\ell$ is logistic loss (Equation 5), we obtain:
105
+
106
+ $$
107
+ \frac { \partial \ell } { \partial \mu } \mu = \frac { - \mu } { 1 + e ^ { \mu } } .
108
+ $$
109
+
110
+ In order to perform R-GAP, we need to derive $\mu$ from $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ . As we can see, $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ is non-monotonic, which means knowing $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ does not always allow us to uniquely recover $\mu$ . However, even in the case that we cannot uniquely recover $\mu$ , there are only two possible values to consider. Figure 1 illustrates $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ of logistic, exponential, and hinge losses, showing when we can uniquely recover $\mu$ from $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ . The non-uniqueness of $\mu$ inspires us to find a sort of data that can trigger exactly the same gradients as the real data, which we name twin data, denoted by $\tilde { \mathbf { x } }$ . The existence of twin data demonstrates that the objective function of DLG could have more than one global minimum, which explains at least in part why DLG is sensitive to initialization, for more information and experiments about the twin data refer to Appendix B.
111
+
112
+ The second observation on Equations 6-8 is that the gradients of each layer have a repeated format:
113
+
114
+ $$
115
+ \begin{array} { r l r } { { \frac { \partial \ell } { \partial \mathbf { w } _ { d } } = \mathbf { k } _ { d } f _ { d - 1 } ^ { \top } ; \mathbf { k } _ { d } : = y \frac { \partial \ell } { \partial \mu } } } \\ & { } & { \frac { \partial \ell } { \partial \mathbf { W } _ { d - 1 } } = \mathbf { k } _ { d - 1 } f _ { d - 2 } ^ { \top } ; \mathbf { k } _ { d - 1 } : = ( \mathbf { w } _ { d } ^ { \top } \mathbf { k } _ { d } ) \odot \sigma _ { d - 1 } ^ { \prime } } \\ & { } & { \frac { \partial \ell } { \partial \mathbf { W } _ { d - 2 } } = \mathbf { k } _ { d - 2 } \boldsymbol { \phi } ^ { \top } ; \mathbf { k } _ { d - 2 } : = ( \mathbf { W } _ { d - 1 } ^ { \top } \mathbf { k } _ { d - 1 } ) \odot \sigma _ { d - 2 } ^ { \prime } } \end{array}
116
+ $$
117
+
118
+ In Equation 12, the value of $y$ can be derived from the sign of the gradients at this layer if the activation function of previous layer is ReLU or Sigmoid, i.e. $f _ { d - 1 } > 0$ . For multi-class classification, $y$ can always be analytically derived as proved by Zhao et al. (2020). From Equations 12-14 we can see that gradients are actually linear constraints on the output of the previous layer, also the input of the current layer. We name these gradient constraints, which can be generally described as:
119
+
120
+ $$
121
+ \mathbf { K } _ { i } \mathbf { x } _ { i } = \mathrm { f l a t t e n } ( \frac { \partial \ell } { \partial \mathbf { W } _ { i } } ) ,
122
+ $$
123
+
124
+ where $i$ denotes $i$ -th layer, $\mathbf { x } _ { i }$ denotes the input and $\mathbf { K } _ { i }$ is a coefficient matrix containing all gradient constraints at the $i$ -th layer.
125
+
126
+ # 3.1.2 IMPLEMENTATION OF R-GAP
127
+
128
+ To reconstruct the input $\mathbf { x } _ { i }$ from the gradients $\frac { \partial \ell } { \partial \mathbf { W } _ { i } }$ at the $i$ -th layer, we need to determine $\mathbf { K } _ { i }$ or $\mathbf { k } _ { i }$ . The coefficient vector $\mathbf { k } _ { i }$ solely relies on the reconstruction of the subsequent layer. For example in Equation 13, $\mathbf { k } _ { d - 1 }$ consists of $\mathbf { w } _ { d } , \mathbf { k } _ { d } , \sigma _ { d - 1 } ^ { \prime }$ , where ${ \bf w } _ { d }$ is known, and $\mathbf { k } _ { d }$ and $\sigma _ { d - 1 } ^ { \prime }$ are products of the reconstruction at the $d$ -th layer. More specifically, $\mathbf { k } _ { d }$ can be calculated by deriving $y$ and $\mu$ as described in Section 3.1.1, $\sigma _ { d - 1 } ^ { \prime }$ can be derived from the reconstructed $f _ { d - 1 }$ . The condition for recovering $\mathbf { x } _ { i }$ under gradient constraints $\mathbf { k } _ { i }$ is that the rank of the coefficient matrix equals the number of entries of the input, $\mathrm { r a n k } ( \mathbf { K } _ { i } ) = | \mathbf { x } _ { i } |$ . Furthermore, if this rank condition holds for $i = 1 , . . . , d$ , we are able to reconstruct the input at each layer and do this recursively back to the input of the first layer.
129
+
130
+ The number of gradient constraints is the same as the number of weights, i.e. ro $\mathrm { v s } ( \mathbf { K } _ { i } ) = | \mathbf { W } _ { i } |$ ; $i =$ $1 , . . . , d$ . Specifically, in the case of a fully connected layer we always have $\mathrm { r a n k } ( \mathbf { K } _ { i } ) = \lvert \mathbf { x } _ { i } \rvert$ , which implies the reconstruction over FCNs is always feasible. However in the case of a convolutional layer the matrix could possibly be rank-deficient to derive $\mathbf { X }$ . Fortunately, from the view of recursive reconstruction and assuming we know the input of the subsequent layer, i.e. the output of the current layer, there is a new group of linear constraints which we name weight constraints:
131
+
132
+ $$
133
+ \mathbf { W } _ { i } \mathbf { x } _ { i } = \mathbf { z } _ { i } ; \quad \mathbf { z } _ { i } \gets f _ { i }
134
+ $$
135
+
136
+ For a convolution layer, the $\mathbf { W } _ { i }$ we use in this paper is the corresponding circulant matrix representing the convolutional kernel (Golub & Van Loan, 1996), so we can express the convolution in the form of Equation 16. In order to derive $\mathbf { z } _ { i }$ from $f _ { i }$ , the activation function $\sigma _ { i }$ should be monotonic. Commonly used activation functions satisfy this requirement. Note that for the ReLU activation function, a 0 value in $f _ { i }$ will remove a constraint in $\mathbf { W } _ { i }$ . Otherwise, the number of weights constraints is equal to the number of entries in output, i.e. $\mathrm { r o w s } ( \mathbf { W } _ { i } ) = | \mathbf { z } _ { i } | ; ~ i = 1 , . . . , d$ . In CNNs the number of weight constraints $\left| \mathbf { z } _ { i } \right|$ is much larger than the number of gradient constraints $| \mathbf { W } _ { i } |$ in bottom layers, and well compensate for the lack of gradient constraints in those layers. It is worth noting that, due to the transformation from a CNN to a FCN using the circulant matrix, a CNN has been regarded equivalent to a FCN in the parallel work of Fan et al. (2020). However, we would like to point out that in consideration of the gradients w.r.t. the circulant matrix, what we obtain from a CNN are the aggregated gradients. Therefore, the number of valid gradient constraints in a CNN are much smaller than its corresponding FCN. Therefore, the conclusion of a rank analysis derived from a FCN cannot be directly applied to a CNN.
137
+
138
+ Moreover, padding in the $i$ -th convolutional layer increases $\left| { { \bf { x } } _ { i } } \right|$ , but also involves the same number of constraints, so we omit this detail in the subsequent discussion. However, we have incorporated the corresponding constraints in our approach. Based on gradient constraints and weight constraints, we break the gradient attacks down to a recursive process of solving systems of linear equations, which we name R-GAP . The approach is detailed in Algorithm 1.
139
+
140
+ # 4 RANK ANALYSIS
141
+
142
+ For optimization-based gradient attacks such as DLG, it is hard to estimate whether it will converge to a unique solution given a network’s architecture other than performing an empirical test. An intuitive assumption would be that the more parameters in the model, the greater the chance of unique recovery, since there will be more terms in the objective function constraining the solution. We provide here an analytic approach, with which it is easy to estimate the feasibility of performing the recursive gradient attack, which in turn is a good proxy to estimate when DLG converges to a good solution (see Figure 2).
143
+
144
+ Algorithm 1: R-GAP (Notation is consistent with Equation 6 to Equation 15)
145
+
146
+ <table><tr><td colspan="2">Data: i: i-th layer; Wi: weights; VWi: gradients; Result: X1</td></tr><tr><td colspan="2">fori←d to1 do if i=d then</td></tr><tr><td colspan="2">μ = VWi·Wi; al μ↑ al</td></tr><tr><td colspan="2">比:</td></tr><tr><td colspan="2">y</td></tr><tr><td colspan="2">else /* Derive σ&#x27; and zi from fi. Note that Xi+1= fi. */</td></tr><tr><td colspan="2">←Xi+1;Zi←Xi+1;</td></tr><tr><td colspan="2">ki :=(Wi+1 ki+1) ① σ&#x27;;</td></tr><tr><td colspan="2">end</td></tr><tr><td colspan="2">Ki ←ki; Vwi := flatten(VWi);</td></tr><tr><td colspan="2">[Wi] ; bi := Zi A:= K Vw i</td></tr></table>
147
+
148
+ Since R-GAP solves a sequence of linear equations, it is infeasible when the number of unknown parameters is more than the number of constraints at any $i$ -th layer, i.e. $\left| \mathbf { x } _ { i } \right| - \left| \mathbf { W } _ { i } \right| - \left| \mathbf { z } _ { i } \right| > 0 .$ . More precisely, R-GAP requires that the rank of $\mathbf { A } _ { i }$ , which consists of $\mathbf { W } _ { i }$ and $\mathbf { K } _ { i }$ as shown in Algorithm 1, is equal to the number of input entries $\left| { { \bf { x } } _ { i } } \right|$ . However, $\mathbf { A } _ { i } \mathbf { x } _ { i } = \mathbf { z } _ { i }$ does not include all effective constraints over $\mathbf { x } _ { i }$ . Because $\mathbf { x } _ { i }$ is unique to $\mathbf { z } _ { i - 1 }$ or partly unique in terms of the ReLU activation function, any constraint over $\mathbf { z } _ { i - 1 }$ will limit the possible value of $\mathbf { x } _ { i }$ . On that note, suppose $| { \bf x } _ { i - 1 } | =$ $m$ , $| { \bf z } _ { i - 1 } | = n$ and the weight constraints at the $i - 1$ layer is overdetermined, i.e. $\mathbf { W } _ { i - 1 } \mathbf { x } _ { i - 1 } =$ $\mathbf { z } _ { i - 1 }$ ; $m < n$ , $r a n k ( \mathbf { W } _ { i - 1 } ) = m$ . Without the loss of generality, let the first $m$ entries of $\mathbf { z } _ { i - 1 }$ be linearly independent, the $m + 1$ , . . . , $n$ entries of $\mathbf { z } _ { i - 1 }$ can be expressed as linear combination of the first $m$ entries, i.e. $\mathbf { M } \mathbf { z } _ { i - 1 } ^ { 1 , . . . , m } = \mathbf { z } _ { i - 1 } ^ { m + 1 , . . . , n }$ . In other words, if the previous layers are overdetermined by weight constraints, the subsequent layer will have additional constraints, not merely its local weight constraints and gradient constraints. Since this type of additional constraint is not derived from the parameters of the layer that under reconstruction, we name them virtual constraints denoted by $\nu$ . When the activation function is the identity function, the virtual constraints are linear and can be readily derived. For the derivative of the activation function not being a constant, the virtual constraints will become non-linear. For more details about deriving the virtual constraints, refer to Appendix C. Optimization based attacks such as DLG are iterative algorithms based on gradient descent, and are able to implicitly utilize the non-linear virtual constraints. Therefore to provide a comprehensive estimate of the data vulnerability under gradient attacks, we also have to count the number of virtual constraints. It is worth noticing that virtual constraints can be passed along through the linear equation systems chain, but only in one direction that is to the subsequent layers. Next, we will informally use $| \nu _ { i } |$ to denote the number of virtual constraints at the $i$ -th layer, which can be approximated by $\begin{array} { r } { \sum _ { n = 1 } ^ { i - 1 } m a x ( | \mathbf { z } _ { n } | - | \mathbf { x } _ { n } | , 0 ) - m a x ( | \mathbf { x } _ { n } | - | \mathbf { z } _ { n } | - | \mathbf { W } _ { n } | , 0 ) . } \end{array}$ . For more details refer to Appendix C. In practice, the real number of such constraints is dependent on the data, current weights, and choice of activation function.
149
+
150
+ These three types of constraints, gradient, weight and virtual constraints, are effective for predicting the risk of gradient attack. To conclude, we propose that $\left| \mathbf { x } _ { i } \right| - \left| \mathbf { W } _ { i } \right| - \left| \mathbf { z } _ { i } \right| - \left| \mathcal { V } _ { i } \right|$ is a good index to estimate the feasibility of fully recovering the input using gradient attacks at the $i$ -th layer. We denote this value rank analysis index $( R A - i )$ . Particularly, $| \mathbf { \bar { x } } _ { i } | - | \mathbf { W } _ { i } | - | \mathbf { z } _ { i } | - | \mathcal { V } _ { i } | > 0$ indicates it is not possible to perform a complete reconstruction of the input, and the larger this index is, the poorer the quality of reconstruction will be. If the constraints in a particular problem are linearly independent, $| \mathbf { x } _ { i } | - | \mathbf { W } _ { i } | - | \mathbf { z } _ { i } | - | \mathcal { V } _ { i } | < 0$ implies the ability to fully recover the input. The quality of reconstruction of data is well estimated by the maximal RA-i of all layers, as shown in Figure 2. In practice, the layers close to the data usually have smaller RA-i due to fewer virtual constraints.
151
+
152
+ ![](images/3ffeb6beee80a9c7109d68b2d0d0a5b2d77031089ffb317e8ad3dafe0e875d2e.jpg)
153
+ Figure 2: Estimating the privacy leakage of network through rank analysis. The critical layer for reconstruction has been red colored. First three columns show that even though bigger network has much more parameters denoted by $| \mathbf { W } |$ , which means we can collect more gradients to reconstruct the data, but if the layer close to data is rank-deficient, we are not able to fully recover the data. Despite that in the objective function of DLG, distance between all gradients will be reduced at the same time, redundant constraints in subsequent layer certainly cannot compensate the lack of constraints in previous layer. The fourth column shows that if rank-deficiency happens at the intermediate layer, redundant weight constraints in previous layer, i.e. virtual constraints, is able to compensate the deficiency at the intermediate layer. If a layer is rank-deficient after taking virtual constraints into account, fully recovery is again not possible as shown in the fifth column. However, as the rank analysis index of last column is smaller than the one of the second and third column, the reconstruction at the fifth column has a better quality. This figure demonstrates that rank analysis can correctly estimate the feasibility of performing DLG, for statistic result refer to Appendix A.
154
+
155
+ On top of that we analyse the residual block in ResNet, which shows some interesting traits of the skip connection in terms of the rank-deficiency, for more details refer to Appendix D.
156
+
157
+ A valuable observation we obtain through the rank analysis is that the architecture rather than the number of parameters is critical to gradient attacks, as shown in Figure 2. This observation is not obvious from simply specifying the DLG optimization problem(see Equation 1). Furthermore, since the data vulnerability of a network depends on the layer with maximal RA-i, we can design rank-deficiency into the architecture to improve the security of a network (see Figure 4).
158
+
159
+ # 5 RESULTS
160
+
161
+ Our novel approach R-GAP successfully extends the analytic gradient attack (Phong et al., 2018) from attacking a FCN with bias terms to attacking FCNs and $\mathrm { C N N s ^ { 1 } }$ with or without bias terms. To test its performance, we use a CNN6 network as shown in Figure 3, which is full-rank considering gradient constraints and weight constraints. Additionally, we report results using a CNN6-d network, which is rank-deficient without consideration of virtual constraints, in order to to fairly compare the performance of DLG and R-GAP. CNN6-d has a CNN6 backbone and just decreases the output channel of the second convolutional layer to 20. The activation function is a LeakyReLU except the last layer, which is a Sigmoid. We have randomly initialized the network, as DLG is prone to fail if the network is at a late stage of training (Geiping et al., 2020). Furthermore, as the label can be analytically recovered by R-GAP, we always provide DLG the ground-truth label and let it recover the image only. Therefore the experiment actually compares R-GAP with iDLG (Zhao et al., 2020). The experimental results show that, due to an analytic one-shot process, run-time of R-GAP is orders of magnitude shorter than DLG. Moreover, R-GAP can recover the data more accurately, while optimization-based methods like DLG recover the data with artifacts, as shown in Figure 3. The statistical results in Table 1 also show that the reconstruction of R-GAP has a much lower MSE than DLG on the CNN6 network. However, as R-GAP only considers gradient constraints and weight constraints in the current implementation, it does not work well on the CNN6-d network. Nonetheless, we find that it is easy to assess the quality of reconstruction of gradient attack without knowing the original image. As the better reconstruction has less salt-and-pepper type noise. We measure this by the difference of the image and its smoothed version (achieved by a simple $3 \mathrm { x } 3$ averaging) and select the output with the smaller norm. This hybrid approach which we name HGAP combines the strengths of R-GAP and DLG, and obtains the best results.
162
+
163
+ ![](images/e8004e093647378683796cc1a237b9026e1344529d0b43b9c25590ba89d375e9.jpg)
164
+ Figure 3: Performance of our approach and DLG over a CNN6 architecture. The diagram on the left demonstrates the network architecture on which we perform attack. The activation functions are LeakyReLU, except the last one which is Sigmoid.
165
+
166
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>CNN6*</td><td rowspan=1 colspan=1>CNN6-d*</td><td rowspan=1 colspan=1>CNN6**</td><td rowspan=1 colspan=1>CNN6-d**</td></tr><tr><td rowspan=1 colspan=1>R-GAP</td><td rowspan=1 colspan=1>0.010± 0.0017</td><td rowspan=1 colspan=1>1.4 ± 0.073</td><td rowspan=1 colspan=1>1.9×10-4±7.0×10-5</td><td rowspan=1 colspan=1>0.0090±9.3×10-4</td></tr><tr><td rowspan=1 colspan=1>DLG</td><td rowspan=1 colspan=1>0.050±0.0014</td><td rowspan=1 colspan=1>0.053±0.0016</td><td rowspan=1 colspan=1>4.2×10 ±5.9×10-5</td><td rowspan=1 colspan=1>0.0012±1.8×10-4</td></tr><tr><td rowspan=1 colspan=1>H-GAP</td><td rowspan=1 colspan=1>0.0069±0.0012</td><td rowspan=1 colspan=1>0.053± 0.0016</td><td rowspan=1 colspan=1>1.4×10-4±2.3×10-5</td><td rowspan=1 colspan=1>0.0012±1.8×10</td></tr></table>
167
+
168
+ \*:CIFAR10 \*\*:MNIST
169
+
170
+ Table 1: Comparison of the performance of R-GAP, DLG and H-GAP. MSE has been used to measure the quality of the reconstruction.
171
+
172
+ Moreover, we compare R-GAP with DLG on LeNet which has been benchmarked in DLG(Zhu et al., 2019), the statistical results are shown in Table 2. Both DLG and R-GAP perform well on LeNet. Empirically, if the MSE is around or below $1 \times 1 0 ^ { - 4 }$ , the difference of the reconstruction will be visually undetectable. However, we surprisingly find that by replacing the Sigmoid function with the Leaky ReLU, the reconstruction of DLG becomes much poorer. The condition number of matrix A (from Algorithm 1) changes significantly in this case. Since the Sigmoid function leads to a higher condition number at each convolutional layer, reconstruction error in the subsequent layer could be amplified in the previous layer, therefore DLG is forced to converge to a better result. In contrast, R-GAP has an accumulated error and naturally performs much better on LeNet\*. Additionally, we find R-GAP could be a good initialization tool for DLG. As shown in the last column of Table 2, by initializing DLG with the reconstruction of R-GAP, and running $8 \%$ of the previous iterations, we achieve a visually indistinguishable result. However, for LeNet\*, we find that DLG reduces the reconstruction quality obtained by R-GAP, which further shows the instability of DLG.
173
+
174
+ Our rank analysis is a useful offline tool to understand the risk inherent in certain network architectures. More precisely, we can use the rank analysis to find out the critical layer for the success of
175
+
176
+ <table><tr><td rowspan=2 colspan=1></td><td rowspan=1 colspan=3>Condition number</td><td rowspan=1 colspan=3>MSE</td></tr><tr><td rowspan=1 colspan=1>conv1</td><td rowspan=1 colspan=1>conv2</td><td rowspan=1 colspan=1>conv3</td><td rowspan=1 colspan=1>DLG</td><td rowspan=1 colspan=1>R-GAP</td><td rowspan=1 colspan=1>R-GAP→DLG</td></tr><tr><td rowspan=1 colspan=1>LeNet</td><td rowspan=1 colspan=1>1.8×104±2.9</td><td rowspan=1 colspan=1>6.1×10±0.3</td><td rowspan=1 colspan=1>32.4±2.9×10-4</td><td rowspan=1 colspan=1>3.7×10-8±8.6×10-10</td><td rowspan=1 colspan=1>1.1×10-4±7.8× 10-6</td><td rowspan=1 colspan=1>1.1×10-6±1.1 ×10-6</td></tr><tr><td rowspan=1 colspan=1>LeNet*</td><td rowspan=1 colspan=1>1.2×10±19.7</td><td rowspan=1 colspan=1>1.3×10±22.5</td><td rowspan=1 colspan=1>14.2±0.05</td><td rowspan=1 colspan=1>5.2×10-2±2.9 ×10-3</td><td rowspan=1 colspan=1>1.5×10-10±2.5 × 10-11</td><td rowspan=1 colspan=1>4.8×10±9.1 × 10-5</td></tr></table>
177
+
178
+ LeNet\* is identical to LeNet but uses Leaky ReLU activation function instead of Sigmoid
179
+
180
+ Table 2: Comparison of R-GAP and DLG on LeNet benchmarked in DLG(Zhu et al., 2019).
181
+
182
+ gradient attacks and take precision measurements to improve the network’s defendability. We report results on the ResNet-18, where the third residual block is critical since by cutting its skip connection the RA-i increases substantially. To perform the experiments, we use the approach proposed by Geiping et al. (2020), which extends DLG to incorporate image priors and performs better on deep networks. As shown in Figure 4, by cutting the skip connection of the third residual block, reconstructions become significantly poorer and more unstable. As a control test, cutting the skip connection of a non-critical residual block does not increase defendability noticeably. Note that two variants have the same or even slightly better performance on the classification task compared with the backbone. In previous works (Zhu et al., 2019; Wei et al., 2020), trade-off between accuracy and defendability of adding noise to gradients has been discussed. We show that using the rank analysis we are able to increase the defendability of a network with no cost in accuracy.
183
+
184
+ ![](images/5fa0a025688877ce8766998d2f10b77056a94bd7984d7acbbeb45f014d8f1cc6.jpg)
185
+ Figure 4: Left: Architectures of the ResNet18 with base width 16 and two variants. Variant 1 cuts the skip connection of the third residual block. Variant 2 cuts the skip connection of the eighth residual block. Upper right: Reconstruction examples of three networks. Lower right: Accuracy and reconstruction error of three networks. Training 200 epochs on CIFAR10 and saving the model with the best performance on the validation set, three networks achieve a close accuracy. Two variants perform even slightly better. In terms of gradient attacks, MSE of reconstructions from ResNet18 and Variant 2 are similar, since Variant 2 cut the skip connection of a non-critical layer and the RA-i does not change. Whereas, by cuting the skip connection of a critical layer, according to the rank analysis, increases RA-i substantially. MSE of the reconstructions from Variant 1 increases by nearly a factor of three with higher variance.
186
+
187
+ # 6 DISCUSSION AND CONCLUSIONS
188
+
189
+ R-GAP makes the first step towards a general analytic gradient attack and provides a framework to answer questions about the functioning of optimization-based attacks. It also opens new questions, such as how to analytically reconstruct a minibatch of images, especially considering nonuniqueness due to permutation of the image indices. Nonetheless, we believe that by studying these questions, we can gain deeper insights into gradient attacks and privacy secure federated learning.
190
+
191
+ In this paper, we propose a novel approach R-GAP, which has achieved an analytic gradient attack for CNNs for the first time. Through analysing the recursive reconstruction process, we propose a novel rank analysis to estimate the feasibility of performing gradient based privacy attacks given a network architecture. Our rank analysis can be applied to the analysis of both closed-form and optimization-based attacks such as DLG. Using our rank analysis, we are able to determine network modifications that maximally improve the network’s security, empirically without sacrificing its accuracy. Furthermore, we have analyzed the existence of twin data using R-GAP, which can explain at least in part why DLG is sensitive to initialization and what type of initialization is optimal. In summary, our work proposes a novel type of gradient attack, a risk estimation tool and advances the understanding of optimization-based gradient attacks.
192
+
193
+ # ACKNOWLEDGEMENTS
194
+
195
+ This research received funding from the Flemish Government (AI Research Program).
196
+
197
+ # REFERENCES
198
+
199
+ Peter L Bartlett, Michael I Jordan, and Jon D McAuliffe. Convexity, classification, and risk bounds. Journal of the American Statistical Association, 101(473):138–156, 2006.
200
+
201
+ Emiliano De Cristofaro. An overview of privacy in machine learning. arXiv:2005.08679, 2020.
202
+
203
+ Lixin Fan, Kam Woh Ng, Ce Ju, Tianyu Zhang, Chang Liu, Chee Seng Chan, and Qiang Yang. Rethinking privacy preserving deep learning: How to evaluate and thwart privacy attacks. In Qiang Yang, Lixin Fan, and Han Yu (eds.), Federated Learning: Privacy and Incentive, pp. 32– 50. Springer, 2020.
204
+
205
+ Jonas Geiping, Hartmut Bauermeister, Hannah Droge, and Michael Moeller. Inverting gradients: ¨ How easy is it to break privacy in federated learning? In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33, 2020.
206
+
207
+ Gene H. Golub and Charles F. Van Loan. Matrix Computations. Johns Hopkins University Press, 1996.
208
+
209
+ Zecheng He, Tianwei Zhang, and Ruby B. Lee. Model inversion attacks against collaborative inference. In Proceedings of the 35th Annual Computer Security Applications Conference, ACSAC ’19, pp. 148–162, 2019.
210
+
211
+ Arthur Jochems, Timo M. Deist, Johan van Soest, Michael Eble, Paul Bulens, Philippe Coucke, Wim Dries, Philippe Lambin, and Andre Dekker. Distributed learning: Developing a predictive model based on data from multiple hospitals without data leaving the hospital – a real life proof of concept. Radiotherapy and Oncology, 121(3):459 – 467, 2016.
212
+
213
+ Arthur Jochems, Timo Deist, Issam El Naqa, Marc Kessler, Chuck Mayo, Jackson Reeves, Shruti Jolly, Martha Matuszak, Randall Ten Haken, Johan Soest, Cary Oberije, Corinne Faivre-Finn, Gareth Price, Dirk Ruysscher, Philippe Lambin, and Andre Dekker. Developing and validating ´ a survival prediction model for nsclc patients through distributed learning across three countries. International Journal of Radiation Oncology\*Biology\*Physics, 99, 04 2017.
214
+
215
+ 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, 2015.
216
+
217
+ Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, Peter Richtarik, Ananda Theertha Suresh, and´ Dave Bacon. Federated learning: Strategies for improving communication efficiency. In NIPS Workshop on Private Multi-Party Machine Learning, 2016.
218
+
219
+ Dong C. Liu and Jorge Nocedal. On the limited memory BFGS method for large scale optimization. Math. Program., 45(1–3):503–528, August 1989.
220
+
221
+ Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Aarti Singh and Jerry Zhu (eds.), Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pp. 1273–1282, 2017.
222
+
223
+ L. T. Phong, Y. Aono, T. Hayashi, L. Wang, and S. Moriai. Privacy-preserving deep learning via additively homomorphic encryption. IEEE Transactions on Information Forensics and Security, 13(5):1333–1345, 2018.
224
+
225
+ Maria Rigaki and Sebastian Garcia. A survey of privacy attacks in machine learning. CoRR, abs/2007.07646, 2020.
226
+
227
+ Z. Wang, M. Song, Z. Zhang, Y. Song, Q. Wang, and H. Qi. Beyond inferring class representatives: User-level privacy leakage from federated learning. In IEEE INFOCOM 2019 - IEEE Conference on Computer Communications, pp. 2512–2520, 2019.
228
+
229
+ Wenqi Wei, Ling Liu, Margaret Loper, Ka-Ho Chow, Mehmet Emre Gursoy, Stacey Truex, and Yanzhao Wu. A framework for evaluating client privacy leakages in federated learning. In Liqun Chen, Ninghui Li, Kaitai Liang, and Steve Schneider (eds.), Computer Security – ESORICS, pp. 545–566. Springer, 2020.
230
+
231
+ Ziqi Yang, Jiyi Zhang, Ee-Chien Chang, and Zhenkai Liang. Neural network inversion in adversarial setting via background knowledge alignment. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, pp. 225–240, 2019.
232
+
233
+ Yuheng Zhang, Ruoxi Jia, Hengzhi Pei, Wenxiao Wang, Bo Li, and Dawn Song. The secret revealer: Generative model-inversion attacks against deep neural networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 250–258, 2020.
234
+
235
+ Bo Zhao, Konda Reddy Mopuri, and Hakan Bilen. iDLG: Improved deep leakage from gradients. arXiv:2001.02610, 2020.
236
+
237
+ Ligeng Zhu, Zhijian Liu, and Song Han. Deep leakage from gradients. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alche Buc, E. Fox, and R. Garnett (eds.),´ Advances in Neural Information Processing Systems 32, pp. 14774–14784, 2019.
238
+
239
+ # A QUANTITATIVE RESULTS OF RANK ANALYSIS
240
+
241
+ A quantitative analysis of the predictive performance of the rank analysis index for the mean squared error of reconstruction is shown in Table 3.
242
+
243
+ $$
244
+ \frac { \mathrm { R A - i } } { \mathrm { M S E } } \| \begin{array} { c } { 4 8 4 } \\ { 4 . 2 \times 1 0 ^ { - 9 } } \\ { \pm 2 . 2 \times 1 0 ^ { - 9 } } \end{array} | \begin{array} { c } { 4 0 5 } \\ { 0 . 0 5 6 \pm 0 . 0 0 3 5 } \\ { 0 . 0 6 3 \pm 0 . 0 0 4 } \\ { \pm 2 . 0 \times 1 0 ^ { - 5 } } \end{array} \| \begin{array} { c } { 4 0 5 } \\ { 2 . 7 \times 1 0 ^ { - 4 } } \\ { 2 . 2 \times 1 0 ^ { - 5 } } \end{array} \frac { 3 1 6 } { \begin{array} { c } { 0 . 1 8 } \\ { 0 . 0 1 3 } \\ { \pm 7 . 2 \times 1 0 ^ { - 4 } } \end{array} } .
245
+ $$
246
+
247
+ Table 3: Mean square error of the reconstruction over test set of CIFAR10. The corresponding network architecture has been shown in Figure 2 in the same order. Rank analysis index (RA-i) clearly predicts the reconstruction error. We can also regard RA-i as the security level of a network. A negative value indicates that the gradients of the network are able to fully expose the data, i.e. insecure, while a positive value indicates that completely recover the data from gradients is not possible. On top of that, higher RA-i indicate higher reconstruction error, therefore the network is more secure. According to our experiment, if the order of magnitude of MSE is equal to or less than $1 0 ^ { - 4 }$ , we could barely visually distinguish the recovered and real data, as shown in the fourth column of Figure 2. Note that, as the network gets deeper, DLG will become vulnerable, R-GAP will also be effected by numerical error. Besides that, DLG is sensitive to the initialization of dummy data, while R-GAP also needs to confirm the $\mu$ if it is not unique. Therefore, RA-i provides a reasonable upper bound of the privacy risk rather than quality prediction of one reconstruction.
248
+
249
+ # B TWIN DATA
250
+
251
+ As we know $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ is non-monotonic as shown in Figure 1, which means knowing $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ does not always allow us to uniquely recover $\mu$ . It is relatively straightforward to show that for monotonic convex losses (Bartlett et al., 2006), $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu$ is invertible for $\mu \ < \ 0$ , $\textstyle { \frac { \partial \ell } { \partial \mu } } \mu \ \leq \ 0$ for $\mu \geq 0$ , and $\begin{array} { r } { \operatorname* { l i m } _ { \mu \to \infty } \frac { \partial \ell } { \partial \mu } \mu = 0 . } \end{array}$ . Due to the non-uniqueness of $\mu$ w.r.t to ∂\`∂µ µ, we have:
252
+
253
+ $$
254
+ \exists \mathrm { \bf ~ x } , \tilde { \bf x } \mathrm { s } . \mathrm { t } . \mu \neq \tilde { \mu } ; \frac { \partial \ell } { \partial \mu } \mu = \frac { \partial \ell } { \partial \tilde { \mu } } \tilde { \mu }
255
+ $$
256
+
257
+ where $\mathbf { X }$ is the real data.
258
+
259
+ Taking the common setting that activation functions are ReLU or LeakyReLU, we can derive from Eq. 10 that:
260
+
261
+ $$
262
+ \frac { \partial \ell } { \partial \mathbf { W } _ { i } } \cdot \mathbf { W } _ { i } = \frac { \partial \ell } { \partial \tilde { \mathbf { W } } } \cdot \tilde { \mathbf { W } } _ { i } ; \quad i = 1 , \ldots , d
263
+ $$
264
+
265
+ if there is a $\tilde { \mathbf { W } } _ { i }$ is equal to $\mathbf { W } _ { i }$ , whereas the corresponding $\tilde { \mathbf { x } }$ is not same as $\mathbf { X }$ since $\mu \ne \tilde { \mu }$ , we can find a data point that differs from the true data but leads to the same gradients. We name such data twin data, denoted by $\tilde { \mathbf { x } }$ . As we know the gradients and $\mu$ of the twin data $\tilde { \mathbf { x } }$ , by just giving them to R-GAP, we are able to easily find out the twin data. As shown in in Figure 5, twin data is actually proportional to the real data and smaller than it, which can also be straightforwardly derived from Equation 6 to Equation 8. Since the twin data and the real data trigger the same gradients, by decreasing the distance of gradients as Equation 1, DLG is suppose to converge to either of these data. As shown in Figure 5, we initialize DLG with a data close to the twin data $\tilde { \mathbf { x } }$ , DLG converges to the twin data. In the work of Wei et al. (2020), the authors argue that using an image from the same class as the real data would be the optimal initialization and empirically prove that. We want to point out that twin data is one important factor why DLG is so sensitive to the initialization and prone to fail with random initialization of dummy data particularly after some training steps of the network. Since DLG converges either to the twin data or the real data depends on the distance between these two data and the initialization, an image of the same class is usually close to the real data, therefore, DLG works better with that. While, with respect to $\mu$ or the prediction of the network, a random initialization is close to the twin data, so DLG converges to the twin data. However, the twin data has extremely small value, so any noise that comes up with optimization process stands out in the last result as shown in Figure 5.
266
+
267
+ ![](images/9b6fef79d5d81033d374f17967849f22b977cd98f7a428bf99cd94f7cf371a2f.jpg)
268
+ Figure 5: Twin data. The left figure demonstrates a twin data $\tilde { \mathbf { x } }$ , which will trigger exactly the same gradients as the real data $\mathbf { X }$ does. Therefore, from the perspective of DLG, these two data are global minimum for the objective function. The right figure shows that by adding noise to shift the twin data a little and using it as an initialization, DLG will converge to the twin data rather than real data.
269
+
270
+ It is worth noting that the twin data can be fully reconstructed only if $\mathrm { { R A } } \mathrm { { - i } } < 0$ . In other words, if complete reconstruction is feasible and the twin data exits, R-GAP and DLG can recover either the twin data or real data depend on the initialization. But both of them lead to privacy leakage.
271
+
272
+ # C VIRTUAL CONSTRAINTS
273
+
274
+ In this section we investigate the virtual constraints as proposed in the rank analysis. To the beginning, let us derive the explicit virtual constraints from the $i - 1$ layer at the reconstruction of the $i$ layer by assuming the activation function is an identity function. The weight constraints of the $i - 1$ layer can be expressed as:
275
+
276
+ $$
277
+ \mathbf { W } \mathbf { x } _ { i - 1 } = \mathbf { z } ;
278
+ $$
279
+
280
+ Split $\mathbf { W } , \mathbf { z }$ into two parts coherently, i.e.:
281
+
282
+ $$
283
+ \begin{array} { r } { [ \mathbf { W } _ { + } ] _ { \mathbf { W } _ { - } } = [ \mathbf { z } _ { + } ] } \\ { \mathbf { W } _ { - } ] \mathbf { x } _ { i - 1 } = [ \mathbf { z } _ { - } ] } \end{array}
284
+ $$
285
+
286
+ Assume the upper part of the weights ${ \bf W } _ { + }$ is already full rank, therefore:
287
+
288
+ $$
289
+ \begin{array} { c } { \mathbf { z } _ { + } = \mathbf { I } _ { + } \mathbf { z } } \\ { \mathbf { x } _ { i - 1 } = \mathbf { W } _ { + } ^ { - 1 } \mathbf { I } _ { + } \mathbf { z } } \\ { \mathbf { z } _ { - } = \mathbf { I } _ { - } \mathbf { z } } \\ { \mathbf { W } _ { - } \mathbf { x } _ { i - 1 } = \mathbf { I } _ { - } \mathbf { z } } \end{array}
290
+ $$
291
+
292
+ Substituting Equation 21 into Equation 23, we can derive the following constraints over $\mathbf { z }$ after rearranging:
293
+
294
+ $$
295
+ ( \mathbf { W } _ { - } \mathbf { W } _ { + } ^ { - 1 } \mathbf { I } _ { + } - \mathbf { I } _ { - } ) \mathbf { z } = \mathbf { 0 }
296
+ $$
297
+
298
+ Since the activation function is the identity function, i.e. $\mathbf { z } = \mathbf { x } _ { i }$ , the virtual constraints $\nu$ that the $i$ -th layer has inherited from the weight constraints of $i - 1$ layer are:
299
+
300
+ $$
301
+ \mathcal { V } \mathbf { { x } } _ { i } = \mathbf { 0 } ; ~ \mathcal { V } = \mathbf { W } _ { - } \mathbf { W } _ { + } ^ { - 1 } \mathbf { I } _ { + } - \mathbf { I } _ { - }
302
+ $$
303
+
304
+ Virtual constraints as external constraints are able to compensate the local rank-deficiency of an intermediate layer. For other strictly monotonic activation function like Leaky ReLU, Sigmoid, Tanh, the virtual constraints over $\mathbf { x } _ { i }$ can be expressed as:
305
+
306
+ $$
307
+ \gamma \sigma _ { i - 1 } ^ { - 1 } ( \mathbf { x } _ { i } ) = \mathbf { 0 }
308
+ $$
309
+
310
+ This is not a linear equation system w.r.t. $\mathbf { x } _ { i }$ , therefore it is hard to be incorporated in R-GAP. In terms of ReLU the virtual constraints could become further more complicated which will reduce its efficacy. Nevertheless, the reconstruction of the $i$ -th layer must take the virtual constraints into account. Otherwise, it will trigger a non-negligible reconstruction error later on. From this perspective, we can see that iterative algorithms like optimization-based attacks can inherently utilize such virtual constraints, which is a strength of O-GAP.
311
+
312
+ We would like to point out that theoretically the gradient constraints also have the same effect as the weight constraints in the virtual constraints but in a more sophisticated way. Empirical results show that the gradient constraints of previous layers do not have an evident impact on the subsequent layer in the O-GAP, so we have not taken it into account. The number of virtual constraints at $i$ -th layer can therefore be approximated by $\begin{array} { r } { \sum _ { n = 1 } ^ { i - 1 } m a x ( | \mathbf { z } _ { n } | - | \mathbf { x } _ { n } | , 0 ) - m a x ( | \mathbf { x } _ { n } | - | \mathbf { z } _ { n } | - | \mathbf { W } _ { n } | , 0 ) , } \end{array}$ .
313
+
314
+ # D RANK ANALYSIS OF THE SKIP CONNECTION
315
+
316
+ If the skip connection skips one layer, for simplicity assuming the activation function is the identity function, then the layer can be expressed as:
317
+
318
+ $$
319
+ f = \mathbf { W } ^ { * } \mathbf { x } ; \ \mathbf { W } ^ { * } = \mathbf { W } + \mathbf { I }
320
+ $$
321
+
322
+ where $f$ is the output of this layer, the weight matrix $\mathbf { W } ^ { * }$ is clear and the number of weight constraints is equal to $| f |$ . While the expression of gradients are the same as without skip connection, since:
323
+
324
+ $$
325
+ \nabla \mathbf { W } ^ { * } = \nabla \mathbf { W }
326
+ $$
327
+
328
+ Therefore the number of gradient constraints is equal to $| \mathbf { W } |$ . In other words, without consideration of the virtual constraints, if $| f | + | \mathbf { W } | < | x |$ this layer is locally rank-deficient, otherwise it is full rank. This is the same as removing the skip connection.
329
+
330
+ If the skip connection skips over two layers, for simplicity assuming the activation function is identity function, then the residual block can be expressed as:
331
+
332
+ $$
333
+ \mathbf { x } _ { 2 } = \mathbf { W } _ { 1 } \mathbf { x } _ { 1 } ; ~ f = \mathbf { W } _ { 2 } \mathbf { x } _ { 2 } + \mathbf { x } _ { 1 }
334
+ $$
335
+
336
+ Whereas, the residual block has its equivalent fully connected format, i.e.:
337
+
338
+ $$
339
+ \begin{array} { r l } & { \mathbf { W } _ { 1 } ^ { * } = \left[ \begin{array} { l } { \mathbf { W } _ { 1 } } \\ { \mathbf { I } } \end{array} \right] ; ~ \mathbf { W } _ { 2 } ^ { * } = [ \mathbf { W } _ { 2 } \quad \mathbf { I } ] } \\ & { ~ \mathbf { x } _ { 2 } ^ { * } = \mathbf { W } _ { 1 } ^ { * } \mathbf { x } _ { 1 } = \left[ \begin{array} { l } { \mathbf { W } _ { 1 } \mathbf { x } _ { 1 } } \\ { \mathbf { x } _ { 1 } } \end{array} \right] } \\ & { ~ \boldsymbol { f } = \mathbf { W } _ { 2 } ^ { * } \mathbf { W } _ { 1 } ^ { * } \mathbf { x } _ { 1 } } \end{array}
340
+ $$
341
+
342
+ From the perspective of a recursive reconstruction, $f$ is clear, so after the reconstruction of $\mathbf { X } _ { 2 }$ , the input of this block $\mathbf { X } _ { 1 }$ can be directly calculated by subtracting ${ \bf W } _ { \mathrm { 2 } } { \bf x } _ { \mathrm { 2 } }$ from $f$ as shown in Equation 29. Back to the Equation 31 that means only $\mathbf { x } _ { 2 } ^ { * }$ needs to be recovered. Similar to the analysis for one layer, in terms of the reconstruction of $\mathbf { x } _ { 2 } ^ { * }$ , the number of weight constraints is $| f |$ and the number of gradient constraints is $| \mathbf { W } _ { 2 } |$ . On top of that the upper part and lower part of $\mathbf { x } _ { 2 } ^ { * }$ are related, which actually represents the virtual constraints from the first layer. Taking these into account, there are $| \mathbf { W } _ { 2 } | + | f | + | \mathbf { x } _ { 2 } |$ constraints for the reconstruction of $\mathbf { x } _ { 2 } ^ { * }$ . However, $\mathbf { x } _ { 2 } ^ { * }$ is also augmented compared with $\mathbf { X } _ { 2 }$ and the number of entries is $| \mathbf { x } _ { 1 } | + | \mathbf { x } _ { 2 } |$ . To conclude, if $| f | + | \mathbf { \bar { W } } _ { 2 } | < | \mathbf { x } _ { 1 } |$ the residual block is locally rank-deficient, otherwise it is full rank. Seemingly, the constraints of the last layer have been used to reconstruct the input of the residual block due to the skip connection2. This is an interesting trait, because the skip connection is able to make the rank-deficient layers like bottlenecks again full rank, as shown in Figure 6. It is worth noticing that the bottlenecks have been commonly used for residual blocks. Further, downsampling residual blocks also have this characteristic of rank condition, as the gradient constraints in the last layer are much more than the first layer due to the number of channels.
343
+
344
+ ![](images/69865edfc6cf046cf3e4015a94e9b13274313233517281f3c5bdf2292ba16c20.jpg)
345
+ Figure 6: Comparison of optimization-based gradient attacks over architectures with or without the skip connection. The width of blue bars represents the number of features at each layer. The first row shows that there is no impact on the reconstruction if the skip connection skips one layer. The second row shows if the skip connection skips a bottleneck block, which is rank-deficient, the resulting network can still be full rank and enable full recovery of the data. The third row shows the reconstructions of two full-rank architectures. Since the skip connection aids in the optimization process, the quality of its reconstruction is marginally better.
346
+
347
+ # E IMPROVING DEFENDABILITY OF RESNET101
348
+
349
+ We also apply the rank analysis to ResNet101 and try to improve its defendability. However, we find that this network is too redundant. It is not possible to decrease the RA-i by cutting a single skip connection as was done in Figure 4. Nevertheless, we devise two variants, the first of which cuts the skip connection of the third residual block and generates a layer that is locally rank-deficient and requires a large number of virtual constraints. Additionally, we devise a second variant, which cuts the skip connection of the first residual block and reduces the redundancy of two layers. The accuracy and reconstruction error of these networks can be found in Table 4.
350
+
351
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>RA-i</td><td rowspan=1 colspan=1>Accuracy on val.</td><td rowspan=1 colspan=1>MSE of reconstructions</td></tr><tr><td rowspan=1 colspan=1>ResNet101</td><td rowspan=1 colspan=1>-1.4×104</td><td rowspan=1 colspan=1>91.04%</td><td rowspan=1 colspan=1>0.96 ± 0.091</td></tr><tr><td rowspan=1 colspan=1>Variant 1</td><td rowspan=1 colspan=1>-1.4 × 104</td><td rowspan=1 colspan=1>90.36%</td><td rowspan=1 colspan=1>1.8 ± 0.14</td></tr><tr><td rowspan=1 colspan=1>Variant 2</td><td rowspan=1 colspan=1>-1.4×104</td><td rowspan=1 colspan=1>90.16%</td><td rowspan=1 colspan=1>1.3 ± 0.14</td></tr></table>
352
+
353
+ Table 4: Training 200 epochs on CIFAR10 and saving the model with the best performance on the validation set, ResNet101 with base width 16 and its two variants achieve similar accuracy on the classification task. The two modified variants which are designed to introduce rank deficiency perform almost as well as the original, but better protect the training data. We conduct a gradient attack with the state-of-the-art approach proposed by Geiping et al. (2020). MSE of the reconstructions of the two rank-deficient variants is significantly higher, which indicates that for deep networks, we can also improve the defendability by decreasing local redundancy or even making layers locally rank-deficient.
354
+
355
+ # F R-GAP IN THE BATCH SETTING RETURNS A LINEAR COMBINATION OF TRAINING IMAGES
356
+
357
+ It can be verified straightforwardly that R-GAP in the batch setting will return a linear combination of the training data. This is due to the fact that in the batch setting the gradients are simply accumulated. The weighting coefficients of the data in this linear mixture are dependent on the various values of $\mu$ for the different training data (see Figure 1). Figures 7 and 8 illustrate the results vs. batch DLG (Zhu et al., 2019) on examples from MNIST.
358
+
359
+ ![](images/088a93806030b47b5452de42caa498005871111c80b463569c11c7b49f36bf2a.jpg)
360
+ Figure 7: Reconstruction over a FCN3 network with batch-size equal to 2. For FCN network, RGAP is able to reconstruct sort of a linear combination of the input images. DLG will also works perfectly on such architecture.
361
+
362
+ # G ADDING NOISE TO THE GRADIENTS
363
+
364
+ The effect on reconstruction of adding noise to the gradients is illustrated in Figure 9.
365
+
366
+ ![](images/1f289429ba363de7501e6c13d495ba690273da26f4771f8a19774b8db699df6e.jpg)
367
+ Figure 8: Reconstruction over a FCN3 network with batch-size equal to 5. Sometimes DLG will converge to a image similar to the one reconstructed by the R-GAP.
368
+
369
+ ![](images/68ec11a96f955133e7540ed78bb4eac80891244e2fc33ae7357cdd38cef3dde2.jpg)
370
+ Figure 9: In terms of least square as what we have used for R-GAP, overall increasing the width of the network will involve more constraints and hence enhance the denoising ability of the gradient attack. For O-GAP this also means a more stable optimization process and less noise in the reconstructed image, which has been empirically proven by Geiping et al. (2020). Increasing the width of every layer will definitely decrease the RA-i, so the quality of reconstruction has been improved. Whereas, increasing the width of some layers may not change RA-i of a network, since the RA-i of a network is equal to the largest RA-i among all the layers, i,e, the reconstruction will not get better. However, it is widely believed that more parameter means less secure.
371
+
372
+ # H DERIVING GRADIENTS
373
+
374
+ $$
375
+ \begin{array} { r l } & { \quad _ { 1 } - \kappa _ { 4 } \kappa _ { 1 } + \kappa _ { 1 } ^ { 2 } } \\ & { \quad _ { 2 } + \kappa _ { 2 } ^ { 3 } - \kappa _ { 3 } ^ { 3 } } \\ & { \quad _ { 3 } - \kappa _ { 1 } ^ { 3 } - \kappa _ { 2 } ^ { 3 } } \\ & { \quad _ { 4 } - \kappa _ { 3 } ^ { 3 } - \kappa _ { 3 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 2 } ^ { 3 } \kappa _ { 3 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 2 } ^ { 3 } } \\ & { \quad _ { 4 } - \kappa _ { 1 } ^ { 3 } \kappa _ { 2 } ^ { 3 } \kappa _ { 3 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } } \\ & { \quad _ { 4 } - \kappa _ { 2 } ^ { 3 } \kappa _ { 3 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } } \\ & { \quad _ { 4 } - \kappa _ { 4 } ^ { 3 } \kappa _ { 2 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ { 3 } } \\ & \quad \partial _ { t } \kappa _ { 1 } ^ { 3 } - \kappa _ { 1 } ^ { 3 } \kappa _ { 1 } ^ \end{array}
376
+ $$
parse/train/RSU17UoKfJF/RSU17UoKfJF_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/dOcQK-f4byz/dOcQK-f4byz.md ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TEACHING TEMPORAL LOGICS TO NEURAL NETWORKS∗
2
+
3
+ Christopher Hahn CISPA Helmholtz Center for Information Security Saarbrucken, 66123 Saarland, Germany ¨ christopher.hahn@cispa.de
4
+
5
+ Frederik Schmitt CISPA Helmholtz Center for Information Security Saarbrucken, 66123 Saarland, Germany ¨ frederik.schmitt@cispa.de
6
+
7
+ Jens U. Kreber
8
+ Saarland University
9
+ Saarbrucken, 66123 Saarland, Germany ¨ kreber@react.uni-saarland.de
10
+
11
+ Markus N. Rabe Google Research Mountain View, CA, USA mrabe@google.com
12
+
13
+ Bernd Finkbeiner
14
+ CISPA Helmholtz Center for Information Security
15
+ Saarbrucken, 66123 Saarland, Germany ¨
16
+ finkbeiner@cispa.de
17
+
18
+ # ABSTRACT
19
+
20
+ We study two fundamental questions in neuro-symbolic computing: can deep learning tackle challenging problems in logics end-to-end, and can neural networks learn the semantics of logics. In this work we focus on linear-time temporal logic (LTL), as it is widely used in verification. We train a Transformer on the problem to directly predict a solution, i.e. a trace, to a given LTL formula. The training data is generated with classical solvers, which, however, only provide one of many possible solutions to each formula. We demonstrate that it is sufficient to train on those particular solutions to formulas, and that Transformers can predict solutions even to formulas from benchmarks from the literature on which the classical solver timed out. Transformers also generalize to the semantics of the logics: while they often deviate from the solutions found by the classical solvers, they still predict correct solutions to most formulas.
21
+
22
+ # 1 INTRODUCTION
23
+
24
+ Machine learning has revolutionized several areas of computer science, such as image recognition (He et al., 2015), face recognition (Taigman et al., 2014), translation (Wu et al., 2016), and board games (Moravc´ık et al., 2017; Silver et al., 2017). For complex tasks that involve symbolic reasoning, however, deep learning techniques are still considered as insufficient. Applications of deep learning in logical reasoning problems have therefore focused on sub-problems within larger logical frameworks, such as computing heuristics in solvers (Lederman et al., 2020; Balunovic et al., 2018; Selsam & Bjørner, 2019) or predicting individual proof steps (Loos et al., 2017; Gauthier et al., 2018; Bansal et al., 2019; Huang et al., 2018). Recently, however, the assumption that deep learning is not yet ready to tackle hard logical questions was drawn into question. Lample & Charton (2020) demonstrated that Transformer models (Vaswani et al., 2017) perform surprisingly well on symbolic integration, Rabe et al. (2020) demonstrated that self-supervised training leads to mathematical reasoning abilities, and Brown et al. (2020) demonstrated that large-enough language models learn basic arithmetic despite being trained on mostly natural language sources.
25
+
26
+ This poses the question if other problems that are thought to require symbolic reasoning lend themselves to a direct learning approach. We study the application of Transformer models to challenging logical problems in verification. We thus consider linear-time temporal logic (LTL) (Pnueli, 1977), which is widely used in the academic verification community (Dwyer et al., 1998; Li et al., 2013; Duret-Lutz et al., 2016; Rozier & Vardi, 2007; Schuppan & Darmawan, 2011; Li et al., 2013; 2014; Schwendimann, 1998) and is the basis for industrial hardware specification languages like the IEEE standard PSL (IEEE-Commission et al., 2005). LTL specifies infinite sequences and is typically used to describe system behaviors. For example, LTL can specify that some proposition $P$ must hold at every point in time $( \sqsubseteq P )$ or that $P$ must hold at some future point of time $( \diamondsuit P )$ . By combining these operators, one can specify that $P$ must occur infinitely often $( \bigtriangledown \bigcirc P )$ .
27
+
28
+ ![](images/301c79ae99306bb6a4dc1e4abba53793ed59f9631a3c837ea4b8c111578b7338.jpg)
29
+ Figure 1: Performance of our best models trained on practical pattern formulas. The $\mathbf { X }$ -axis shows the formula size. Syntactic accuracy, i.e., where the Transformer agrees with the generator are displayed in dark green. Instances where the Transformer deviates from the generators output but still provides correct output are displayed in light green; incorrect predictions in orange.
30
+
31
+ In this work, we apply a direct learning approach to the fundamental problem of LTL to find a satisfying trace to a formula. In applications, solutions to LTL formulas can represent (counter) examples for a specified system behavior, and over the last decades, generations of advanced algorithms have been developed to solve this question automatically. We start from the standard benchmark distribution of LTL formulas, consisting of conjunctions of patterns typically encountered in practice (Dwyer et al., 1998). We then use classical algorithms, notably spot by Duret-Lutz et al. (2016), that implement a competitive classical algorithm, to generate solutions to formulas from this distribution and train a Transformer model to predict these solutions directly.
32
+
33
+ Relatively small Transformers perform very well on this task and we predict correct solutions to $9 6 . 8 \%$ of the formulas from a held-out test set (see Figure 1). Impressive enough, Transformers hold up pretty well and predict correct solutions in $83 \%$ of the cases, even when we focus on formulas on which spot timed out. This means that, already today, direct machine learning approaches may be useful to augment classical algorithms in logical reasoning tasks.
34
+
35
+ We also study two generalization properties of the Transformer architecture, important to logical problems: We present detailed analyses on the generalization to longer formulas. It turns out that transformers trained with tree-positional encodings (Shiv & Quirk, 2019) generalize to much longer formulas than they were trained on, while Transformers trained with the standard positional encoding (as expected) do not generalize to longer formulas. The second generalization property studied here is the question whether Transformers learn to imitate the generator of the training data, or whether they learn to solve the formulas according to the semantics of the logics. This is possible, as for most formulas there are many possible satisfying traces. In Figure 1 we highlight the fact that our models often predicted traces that satisfy the formulas, but predict different traces than the one found by the classical algorithm with which we generated the data. Especially when testing the models out-of-distribution we observed that almost no predicted trace equals the solution proposed by the classical solver.
36
+
37
+ To demonstrate that these generalization behaviors are not specific to the benchmark set of LTL formulas, we also present experimental results on random LTL formulas. Further, we exclude that spot, the tool with which we generate example traces, is responsible for these behaviors, by repeating the experiments on propositional formulas for which we generate the solutions by SAT solvers.
38
+
39
+ The remainder of this paper is structured as follows. We give an overview over related work in Section 2. We describe the problem definitions and present our data generation in Section 3. Our experimental setup is described in Section 4 and our findings in Section 5, before concluding in Section 6.
40
+
41
+ # 2 RELATED WORK
42
+
43
+ Datasets for mathematical reasoning. While we focus on a classical task from verification, other works have studied datasets derived from automated theorem provers (Blanchette et al., 2016; Loos et al., 2017; Gauthier et al., 2018), interactive theorem provers (Kaliszyk et al., 2017; Bansal et al., 2019; Huang et al., 2018; Yang & Deng, 2019; Polu & Sutskever, 2020; Wu et al., 2020; Li et al., 2020; Lee et al., 2020; Urban & Jakubuv, 2020; Rabe et al., 2020), symbolic mathematics (Lample ˚ & Charton, 2020), and mathematical problems in natural language (Saxton et al., 2019; Schlag et al., 2019). Probably the closest work to this paper are the applications of Transformers to directly solve differential equations (Lample & Charton, 2020) and directly predict missing assumptions and types of formal mathematical statements (Rabe et al., 2020). We focus on a different problem domain, verification, and demonstrate that Transformers are roughly competitive with classical algorithms in that domain on their dataset. Learning has been applied to mathematics long before the rise of deep learning. Earlier works focused on ranking premises or clauses Cairns (2004); Urban (2004; 2007); Urban et al. (2008); Meng & Paulson (2009); Schulz (2013); Kaliszyk & Urban (2014).
44
+
45
+ Neural architectures for logical reasoning. (Paliwal et al., 2020) demonstrate significant improvements in theorem proving through the use of graph neural networks to represent higher-order logic terms. Selsam et al. (2019) presented NeuroSAT, a graph neural network (Scarselli et al., 2008; Li et al., 2017; Gilmer et al., 2017; Wu et al., 2019) for solving the propositional satisfiability problem. In contrast, we apply a generic sequence-to-sequence model to predict the solutions to formulas, not only whether there is a solution. This allows us to apply the approach to a wider set of logics (logics without a CNF). A simplified NeuroSAT architecture was trained for unsat-core predictions (Selsam & Bjørner, 2019). Lederman et al. (2020) have used graph neural networks on CNF to learn better heuristics for a 2QBF solver. Evans et al. (2018) study the problem of logical entailment in propositional logic using tree-RNNs. Entailment is a subproblem of satisfiability and (besides being a classification problem) could be encoded in the same form as our propositional formulas. The formulas considered in their dataset are much smaller than in this work.
46
+
47
+ Language models applied to programs. Transformers have also been applied to programs for tasks such as summarizing code (Fernandes et al., 2018) or variable naming and misuse (Hellendoorn et al., 2020). Other works focused on recurrent neural networks or graph neural networks for code analysis, e.g. (Piech et al., 2015; Gupta et al., 2017; Bhatia et al., 2018; Wang et al., 2018; Allamanis et al., 2017). Another area in the intersection of formal methods and machine learning is the verification of neural networks (Seshia & Sadigh, 2016; Seshia et al., 2018; Singh et al., 2019; Gehr et al., 2018; Huang et al., 2017; Dreossi et al., 2019).
48
+
49
+ # 3 DATASETS
50
+
51
+ To demonstrate the generalization properties of the Transformer on logical tasks, we generated several datasets in three different fashions. We will describe the underlying logical problems and our data generation in the following.
52
+
53
+ # 3.1 TRACE GENERATION FOR LINEAR-TIME TEMPORAL LOGIC
54
+
55
+ Linear-time temporal logic (LTL, Pnueli, 1977) combines propositional connectives with temporal operators such as the Next operator $\bigcirc$ and the Until operator $\mathcal { U }$ . $\bigcirc \varphi$ means that $\varphi$ holds in the next position of a sequence; $\varphi _ { 1 } \mathcal { U } \varphi _ { 2 }$ means that $\varphi _ { 1 }$ holds until $\varphi _ { 2 }$ holds. For example, the LTL formula $\mathsf { \bar { ( } } b \mathsf { \mathcal { U } } a ) \wedge ( c \mathsf { \mathcal { U } } \neg \bar { a } )$ states that $b$ has to hold along the trace until $a$ holds and $c$ has to hold until $a$ does not hold anymore. There also exist derived operators. For example, consider the following specification of an arbiter: $\square ( \mathrm { r e q u e s t } \odot \mathrm { g r a n t } )$ ) states that, at every point in time $\sqsubset$ -operator), if there is a request signal, then a grant signal must follow at some future point in time ( $\bigcirc$ -operator).
56
+
57
+ The full semantics and an explanation of the operators can be found in Appendix A. We consider infinite sequences, that are finitely represented in the form of a “lasso” $u v ^ { \omega }$ , where $u$ , called prefix, and $v$ , called period, are finite sequences of propositional formulas. We call such sequences (symbolic) traces. For example, the symbolic trace $( a \wedge b ) ^ { \omega }$ defines the infinite sequence where $a$ and $b$ evaluate to true on every position. Symbolic traces allow us to underspecify propositions when they do not matter. For example, the LTL formula $\bigcirc \bigcirc \sqsupset a$ is satisfied by the symbolic trace: true true $( a ) ^ { \omega }$ , which allow for any combination of propositions on the first two positions.
58
+
59
+ Our datasets consist of pairs of satisfiable LTL formulas and satisfying symbolic traces generated with tools and automata constructions from the spot framework (Duret-Lutz et al., 2016). We use a compact syntax for ultimately periodic symbolic traces: Each position in the trace is separated by the delimiter “;”. True and False are represented by “1” and $ { ^ { 6 } } 0 ^ { 9 }$ , respectively. The beginning of the period $v$ is signaled by the character “ $\{ \} ^ { , , }$ and analogously its end by $\mathbf { \bar { \Sigma } } ^ { 6 6 } \mathbf { \bar { \Sigma } } ^ { 5 }$ . For example, the ultimately periodic symbolic trace denoted by $a ; a ; a ; \{ b \}$ , describes all infinite traces where on the first 3 positions $a$ must hold followed by an infinite period on which $b$ must hold on every position.
60
+
61
+ Given a satisfiable LTL formula $\varphi$ , our trace generator constructs a Buchi automaton ¨ $A _ { \varphi }$ that accepts exactly the language defined by the LTL formula, i.e., $\mathcal { L } ( A _ { \varphi } ) = \mathcal { L } ( \varphi )$ . From this automaton, we construct an arbitrary accepted symbolic trace, by searching for an accepting run in $A _ { \varphi }$ .
62
+
63
+ # 3.1.1 SPECIFICATION PATTERN
64
+
65
+ Our main dataset is constructed from formulas following $5 5 \mathrm { L T L }$ specification patterns identified by the literature (Dwyer et al., 1998). For example, the arbiter property $( \bigcirc p _ { 0 } ) \ \bar { { } } \ ( p _ { 1 } { \mathcal { U } } p _ { 0 } )$ , stating that if $p _ { 0 }$ is scheduled at some point in time, $p _ { 1 }$ is scheduled until this point. The largest specification pattern is of size 40 consisting of 6 atomic propositions. It has been shown that conjunctions of such patterns are challenging for LTL satisfiability tools that rely on classical methods, such as automata constructions (Li et al., 2013). They start coming to their limits when more than 8 pattern formulas are conjoined. We decided to build our dataset in a similar way from these patterns only to allow for a better comparison.
66
+
67
+ We conjoined random specification patterns with randomly chosen variables (from a supply of 6 variables) until one of the following four conditions are met: 1) the formula size succeeds 126, 2) more than 8 formulas would be conjoined, 3) our automaton-based generator timed out $( > 1 s )$ while computing the solution trace, or 4) the formula would become unsatisfiable. In total, we generated 1664487 formula-trace pairs in 24 hours on 20 CPUs. While generating, approximately $4 \bar { 1 } \%$ of the instances ran into the first termination condition, $2 1 \%$ into the second, $3 7 \%$ into the third and $1 \%$ into the fourth. We split this set into an $8 0 \%$ training set, a $1 0 \%$ validation set, and a $1 0 \%$ test set. The size distribution of the dataset can be found in Appendix B.
68
+
69
+ For studying how the Transformer performs on longer specification patterns, we accumulated pattern formulas where spot timed out $( > 6 0 s )$ while searching for a satisfying trace. We call this dataset LTLUnsolved254 . We capped the maximum length at 254, which is twice as large as the formulas the model saw during training. The size distribution of the generated formulas can be found in Appendix B.
70
+
71
+ In the following table, we illustrate the complexity of our training dataset with two examples from the above described set LTLPattern126, where the subsequent number of the notation of our datasets denotes the maximum size of a formula’s syntax tree. The first line shows the LTL formula and the symbolic trace in mathematical notation. The second line shows the input and output representation of the Transformer (in Polish notation):
72
+
73
+ <table><tr><td rowspan=1 colspan=1>LTL formula</td><td rowspan=1 colspan=1>satisfying symbolic trace</td></tr><tr><td rowspan=1 colspan=1>(a→d)&gt;-fWfw-fWfw-f(c→-cu(c&gt;-bWbW-bWbW□-b))&amp;&amp;G&gt;aFdW!fWfW!fWfG!f&gt;FcU!c&amp;cW!bWbW!bWbG!b</td><td rowspan=1 colspan=1>(-a&gt;-c∧-fV-c△d∧-f){!a&amp;!c&amp;!f|!c&amp;d&amp;!f}</td></tr><tr><td rowspan=1 colspan=1>□b&gt;-a△a→cua)△□a→□c)△(&lt;b→-bu(b&gt;-fWfW-fWfW□-f))^(&lt;a→(c^O(-aue)→O(-au(e△&lt;f)))ua)&gt;△c&gt;□(a□e→-(-e&gt;fO(-eu(-e&gt;d)))u(evc))^(□-av△(a&gt;-fWd))△□(e→□-c)&amp;&amp;&amp;&amp;&amp;&amp;&amp;G&gt;&amp;&amp;b!aFaUcaG&gt;aGc&gt;FbU!b&amp;bW!fWfW!fWfG!f&gt;FaU&gt;&amp;cXU!aeXU!a&amp;eFfaFcG&gt;&amp;aFeU!&amp;&amp;!efXU!e&amp;!edlec|G!aF&amp;aW!fdG&gt;eG!c</td><td rowspan=1 colspan=1>(-a△b∧-c∧-e∧f)(-a△-c△-e&gt;-f)(-a∧-c∧-e△f)(-a△c∧-e△-f)(-a&gt;e∧-f)ω&amp;&amp;&amp;&amp;!ab!c!ef;&amp;&amp;&amp;!a!c!e!f;&amp;&amp;&amp;!a!c!ef;&amp;&amp;&amp;!ac!e!f;{&amp;&amp;!a!e!f}</td></tr></table>
74
+
75
+ # 3.1.2 RANDOM FORMULAS
76
+
77
+ To show that the generalization properties of the Transformer are not specific to our data generation, we also generated a dataset of random formulas. Our dataset of random formulas consist of 1 million generated formulas and their solutions, i.e., a satisfying symbolic trace. The number of different propositions is fixed to 5. Each dataset is split into a training set of $8 0 0 \mathrm { K }$ formulas, a validation set of 100K formulas, and a test set of 100K formulas. All datasets are uniformly distributed in size, apart from the lower-sized end due to the limited number of unique small formulas. The formula and trace distribution of the dataset LTLRandom35, as well as three randomly drawn example instances can be found in Appendix B. Note that we filtered out examples with traces larger than 62 (less than $0 . 0 5 \%$ of the original set).
78
+
79
+ To generate the formulas, we used the randltl tool of the spot framework, which builds unique formulas in a specified size interval, following a supplied node probability distribution. During the building process, the actual distribution occasionally differs from the given distribution in order to meet the size constraints, e.g., by masking out all binary operators. The distribution between all $k$ -ary nodes always remains the same. To furthermore achieve a (quasi) uniform distribution in size, we subsequently filtered the generated formulas. Our node distribution puts equal weight on all operators $\neg , \land , \bigcirc$ and $\mathcal { U }$ . Constants True and False are allowed with 2.5 times less probability than propositions.
80
+
81
+ # 3.2 ASSIGNMENT GENERATION FOR PROPOSITIONAL LOGIC
82
+
83
+ To show that the generalization of the Transformer to the semantics of logics is not a unique attribute of LTL, we also generated a dataset for propositional logic (SAT). A propositional formula consists of Boolean operators $\wedge$ (and), $\vee$ (or), $\neg$ (not), and variables also called literals or propositions. We consider the derived operators $\varphi _ { 1 } \varphi _ { 2 } \equiv \lnot \varphi _ { 1 } \lor \varphi _ { 2 }$ (implication), $\varphi _ { 1 } \varphi _ { 2 } \equiv ( \varphi _ { 1 } \varphi _ { 2 } ) \wedge ( \varphi _ { 2 } $ $\varphi _ { 1 }$ ) (equivalence), and $\varphi _ { 1 } \oplus \varphi _ { 2 } \equiv \lnot ( \varphi _ { 1 } \varphi _ { 2 } )$ (xor). Given a propositional Boolean formula $\varphi$ , the satisfiability problem asks if there exists a Boolean assignment $\Pi : \mathcal { V } \mapsto \mathbb { B }$ for every literal in $\varphi$ such that $\varphi$ evaluates to true. For example, consider the following propositional formula, given in conjunctive normal form (CNF): $( x _ { 1 } \lor x _ { 2 } \lor \neg x _ { 3 } ) \land ( \neg x _ { 1 } \lor x _ { 3 } )$ . A possible satisfying assignment for this formula would be $\{ ( x _ { 1 } , t r u e ) , ( x _ { 2 } , f a l s e ) , ( x _ { 3 } , t r u e ) \} .$ . We allow a satisfying assignment to be partial, i.e., if the truth value of a propositions can be arbitrary, it will be omitted. For example, $\{ ( x _ { 1 } , t r u e ) , ( x _ { 3 } , t r u e ) \}$ would be a satisfying partial assignment for the formula above. We define a minimal unsatisfiable core of an unsatisfiable formula $\varphi$ , given in CNF, as an unsatisfiable subset of clauses $\varphi _ { c o r e }$ of $\varphi$ , such that every proper subset of clauses of $\varphi _ { c o r e }$ is still satisfiable.
84
+
85
+ We, again, generated 1 million random formulas. For the generation of propositional formulas, the specified node distribution puts equal weight on $\wedge , \vee$ , and $\neg$ operators and half as much weight on the derived operators and $\oplus$ individually. In contrast to previous work (Selsam et al., 2019), which is restricted to formulas in CNF, we allow an arbitrary formula structure and derived operators.
86
+
87
+ A satisfying assignment is represented as an alternating sequence of propositions and truth values, given as 0 and 1. The sequence $a 0 b 1 c 0$ , for example, represents the partial assignment $\{ ( a , f a l s e ) , ( b , t r u e ) , ( c , f a l s e ) \}$ , meaning that the truth values of propositions $d$ and $e$ can be chosen arbitrarily (note that we allow five propositions). We used pyaiger (Vazquez-Chanlatte, 2018), which builds on Glucose 4 (Audemard & Simon, 2018) as its underlying SAT solver. We construct the partial assignments with a standard method in SAT solving: We query the SAT solver for a minimal unsatisfiable core of the negation of the formula. To give the interested reader an idea of the level of difficulty of the dataset, the following table shows three random examples from our training set PropRandom35. The first line shows the formula and the assignment in mathematical notation. The second line shows the syntactic representation (in Polish notation):
88
+
89
+ <table><tr><td rowspan=1 colspan=1>propositional formula</td><td rowspan=1 colspan=1>satisfying partial assignment</td></tr><tr><td rowspan=1 colspan=1>((d△-e)∧(-aV-e))←→((-④(-b↔-e))v((e④(b^d))④-(-cv(-a←e))))&lt;-&gt;&amp;&amp;d!e|!a!e|xor!b&lt;-&gt;!b!exorxore&amp;bd!|!c&lt;-&gt;!ae</td><td rowspan=1 colspan=1>{(a,0),(b,0),(c,1),(d,1),(e,0))a0b0cldle0</td></tr><tr><td rowspan=1 colspan=1>(cVe)v(-a&gt;-b)Ilce&lt;-&gt;!a!b</td><td rowspan=1 colspan=1>{c,1)}c1</td></tr><tr><td rowspan=1 colspan=1>-((bve)④((-av(-d&gt;-e))v(-bν(((-a&gt;b)&gt;-b)&gt;d))))!xor!bell!a&lt;-&gt;!d!e!I!b&amp;&amp;&amp;!ab!b!d</td><td rowspan=1 colspan=1>{(d,1),(e,1)}dle1</td></tr></table>
90
+
91
+ ![](images/fdb9dc311abf6b49d3346e87fc32c0b3886ed4d43286bb4853abef7d9b063e0d.jpg)
92
+ Figure 2: Overview of our main experimental results: the performance of our best performing models on our different datasets. The percentage of a dark green bar refers to the syntactic accuracy, the percentage of a light green bar to the semantic accuracy without the syntactic accuracy, and the incorrect predictions are visualized in orange.
93
+
94
+ To test the Transformer on even more challenging formulas, we constructed a dataset of CNF formulas using the generation script of Selsam et al. (2019) from their publicly available implementation. A random CNF formula is built by adding clauses until the addition of a further clause would lead to an unsatisfiable formula. We used the parameters $p _ { g e o } = 0 . 9$ and $p _ { k 2 } = 0 . 7 5$ to generate formulas that contain up to 15 variables and have a maximum size of 250. We call this dataset PropCNF 250.
95
+
96
+ # 4 EXPERIMENTAL SETUP
97
+
98
+ We have implemented the Transformer architecture (Vaswani et al., 2017). Our implementation processes the input and output sequences token-by-token. We trained on a single GPU (NVIDIA P100 or V100). All training has been done with a dropout rate of 0.1 and early stopping on the validation set. Note that the embedding size will automatically be floored to be divisible by the number of attention heads. The training of the best models took up to 50 hours. For the output decoding, we utilized a beam search (Wu et al., 2016), with a beam size of 3 and an $\alpha$ of 1.
99
+
100
+ Since the solution of a logical formula is not necessarily unique, we use two different measures of accuracy to evaluate the generalization to the semantics of the logics: we distinguish between the syntactic accuracy, i.e., the percentage where the Transformers prediction syntactically matches the output of our generator and the semantic accuracy, i.e., the percentage where the Transformer produced a different solution. We also differentiate between incorrect predictions and syntactically invalid outputs which, in fact, happens only in $0 . 1 \%$ of the cases in LTLUnsolved254 .
101
+
102
+ In general, our best performing models used 8 layers, 8 attention heads, and an FC size of 1024. We used a batch size of 400 and trained for $4 5 0 K$ steps (130 epochs) for our specification pattern dataset, and a batch size of 768 and trained for $5 0 K$ steps (48 epochs) for our random formula dataset. A hyperparameter study can be found in Appendix C.
103
+
104
+ # 5 EXPERIMENTAL RESULTS
105
+
106
+ In this section, we describe our experimental results. First, we show that a Transformer can indeed solve the task of providing a solution, i.e., a trace for a linear-time temporal logical (LTL) formula. For this, we describe the results from training on the dataset LTLPattern126 of specification patterns that are commonly used in the context of verification. Secondly, we show two generalization properties that the Transformer evinces on logic reasoning tasks: 1) the generalization to larger formulas (even so large that our data generator timed out) and 2) the generalization to the semantics of the logic. We strengthen this observation by considering a different dataset of random LTL formulas. Thirdly, we provide results for a model trained on a different logic and with a different data generator. We thereby demonstrate that the generalization behaviors of the Transformer are not specific to LTL and the LTL solver implemented with spot that we used to generate the data. An overview of our training results is displayed in Figure 2.
107
+
108
+ ![](images/259e39d68cfc075f12cd17aab8094a0d4b8f12fbb027b4d69c70ab5cd9828641.jpg)
109
+ Figure 3: Predictions of our best performing model, trained on LTLUnsolved254 , on 5704 specification patterns for which spot timed out $( > 6 0 s )$ . Semantic accuracy is displayed in green; incorrect traces in orange; syntactically invalid traces in red.
110
+
111
+ 5.1 SOLVING LINEAR-TIME TEMPORAL LOGICAL FORMULAS
112
+
113
+ We trained a Transformer on our specification on LTLPattern126 . Figure 1 in the introduction displays the performance of our best model on this dataset. We observed a syntactic accuracy of $6 9 . 1 \%$ and a semantic accuracy of $9 6 . 8 \%$ . With this experiment we can already deduce that it seems easier for the Transformer to learn the underlying semantics of LTL than to learn the particularities of the generator. Further we can see that as the formula length grows, the syntactic accuracy begins to drop. However, that drop is much smaller in the semantic accuracy—the model still mostly predicts correct traces for long formulas.
114
+
115
+ As a challenging benchmark, we tested our best performing model on LTLUnsolved254 . It predicted correct solutions in $8 3 \%$ of the cases, taking on average $1 5 s$ on a single CPU. The syntactic accuracy is $0 \%$ as there was no output produced by spot within the timeout. The results of the experiments are visualized in Figure 3. Note that this does not mean that our Transformer models necessariy outperform classical algorithms across the board. However, since verifying solutions to LTL formulas is much easier than finding solutions $( \mathbf { A C } ^ { 1 } ( \log \mathrm { D C F L } )$ vs PSPACE), this experiment shows that the predictions of a deep neural network can be a valuable extension to the verification tool box.
116
+
117
+ # 5.2 GENERALIZATION PROPERTIES
118
+
119
+ To prove that the generalization to the semantics is independent of the data generation, we also trained a model on a dataset of randomly generated formulas. The unshaded part of Figure 4 displays the performance of our best model on the LTLRandom35 dataset. The Transformers were solely trained on formulas of size less or equal to 35. We observe that in this range the exact syntactic accuracy decreases when the formulas grow in size. The semantic accuracy, however, stays, again, high. The model achieves a syntactic accuracy of $8 3 . 8 \%$ and a semantic accuracy of ${ \dot { 9 } } 8 . 5 \%$ on LTLRandom35, i.e., in $1 4 . 7 \%$ of the cases, the Transformer deviates from our automaton-based data generator. The evolution of the syntactic and the semantic accuracy during training can be found in Appendix D.
120
+
121
+ To show that the generalization to larger formulas is independent from the data generation method, we also tested how well the Transformer generalizes to randomly generated LTL formulas of a size it has never seen before. We used our model trained on LTLRandom35 and observed the performance on LTLRandom50. The model preserves the semantic generalization, displayed in the shaded part of Figure 4. It outputs exact syntactic matches in $6 7 . 6 \%$ of the cases and achieves a semantic accuracy of $9 2 . 2 \%$ . For the generalization to larger formulas we utilized a positional encoding based on the tree representation of the formula (Shiv & Quirk, 2019). When using the standard positional encoding instead, the accuracy drops, as expected, significantly. A visualization of this experiments can be found in Appendix E.
122
+
123
+ In a further experiment, we tested the out-of-distribution (OOD) generalization of the Transformer on the trace generation task. We generated a new dataset LTLRandom126 to match the formula sizes and the vocabulary of LTLPattern126. A model trained on LTLRandom126 achieves a semantic accuracy of $2 4 . 7 \%$ (and a syntactic accuracy of only $1 . 0 \%$ ) when tested on LTLPattern126. Vice versa, a model trained on LTLPattern126 achieves a semantic accuracy of $3 8 . 5 \%$ (and a semantic accuracy of only $0 . 5 \%$ ) when tested on LTLRandom126. Testing the models OOD increases the gap between syntactic and semantic correctness dramatically. This underlines that the models learned the nature of the LTL semantics rather than the generator process. Note that the two distributions are very different.
124
+
125
+ Following these observations, we also tested the performance of our models on other patterns from the literature. We observe a higher semantic accuracy for our model trained on random formulas and a higher gap between semantic and syntactic accuracy for our model trained on pattern formulas:
126
+
127
+ <table><tr><td>Patterns</td><td>Number of Patterns</td><td>Trained on</td><td>Syn. Acc.</td><td>Sem. Acc.</td></tr><tr><td>dac (Dwyer et al., 1998) eh (Etessami &amp; Holzmann,2000) hkrss (Holeek et al., 2004)</td><td>55 11 49</td><td>LTLRandom126 LTLRandom126 LTLRandom126</td><td>49.1% 81.8% 71.4%</td><td>81.8% 90.9% 83.7%</td></tr><tr><td>p (Pelanek,2007) eh (Etessami &amp; Holzmann,2000) hkrss (Holecek et al.,2004) p (Pelanek,2007)</td><td>20 11 49 20</td><td>LTLRandom126 LTLPattern126 LTLPattern126 LTLPattern126</td><td>65.0% 0.0% 14.3% 10.0%</td><td>90.0% 36.4% 49.0% 60.0%</td></tr></table>
128
+
129
+ In a last experiment on LTL, we tested the performance of our models on handcrafted formulas. We observed that formulas with multiple until statements that describe overlapping intervals were the most challenging. This is no surprise as these formulas are the source of PSPACE-hardness of LTL.
130
+
131
+ $$
132
+ \begin{array} { c c } { { \begin{array} { r l } { - a \mathcal { U } b \wedge a \mathcal { U } \neg b } \end{array} } } & { { \begin{array} { r l } { ( a \wedge \neg b ) ( b ) ( t r u e ) ^ { \omega } } } & { { } } \\ { \& \mathrm { a : b : b : \left\{ 1 \right\} } } \end{array} } \end{array}
133
+ $$
134
+
135
+ While the above formula can be solved by most models, when scaling this formula to four overlapping until intervals, all of our models fail: For example, a model trained on LTLRandom35 predicted the trace $( a \wedge b \wedge c ) ( a \wedge \neg b \wedge \neg c ) ( b \wedge c ) ( t r u e ) ^ { \omega }$ , which does not satisfy the LTL formula.
136
+
137
+ <table><tr><td>(aub^c) ^ (au-b∧c) ^ (aub^-c) ^ (au-b^ -c) )(a∧b∧c)(a∧-b∧-c)(b∧c)(true)ä</td></tr><tr><td>&amp;&amp;&amp;Ua&amp;bcUa&amp;!bcUa&amp;b!cUa&amp;!b!c &amp;&amp;abc;&amp;&amp;a!b!c;&amp;bc;1</td></tr></table>
138
+
139
+ # 5.3 PREDICTING ASSIGNMENTS FOR PROPOSITIONAL LOGIC
140
+
141
+ To show that the generalization to the semantic is not a specific property of LTL, we trained a Transformer to solve the assignment generation problem for propositional logic, which is a substantially different logical problem.
142
+
143
+ As a baseline for our generalization experiments on propositional logic, we trained and tested a Transformer model with the following hyperparameter on PropRandom35:
144
+
145
+ <table><tr><td>Embedding size</td><td>Layers</td><td>Heads</td><td>FC size</td><td>Batch Size Train Steps</td><td>Syn. Acc. Sem. Acc.</td></tr><tr><td>enc:128, dec:64</td><td>6</td><td>6</td><td>512 1024</td><td>50K</td><td>58.1% 96.5%</td></tr></table>
146
+
147
+ We observe a striking $3 8 . 4 \%$ gap between predictions that were syntactical matches of our DPLLbased generator and correct predictions of the Transformer. Only ${ \dot { 3 } } . 5 \%$ of the time, the Transformer outputs an incorrect assignment. Note that we allow the derived operators $\oplus$ and in these experiments, which succinctly represent complicated logical constructs.
148
+
149
+ The formula $b \lor \neg ( a \land d )$ occurs in our dataset PropRandom35 and its corresponding assignment is $\{ ( a , 0 ) \}$ . The Transformer, however, outputs $\mathtt { d 0 }$ , i.e., it goes with the assignment of setting $d$ to false, which is also a correct solution. A visualization of this example can be found in Appendix F. When the formulas get larger, the solutions where the Transformer differs from the DPLL algorithm accumulate. Consider, for example, the formula $\lnot b \lor ( e b \lor c \lor \lnot d ) \lor ( c \land ( b \oplus ( a \oplus \lnot d ) ) \lnot ( \lnot c $ $d ) \wedge ( a ( b \oplus ( b \oplus e ) ) )$ ), which is also in the dataset PropRandom35. The generator suggests the assignment $\{ ( a , 1 ) , ( c , 1 ) , ( d , 0 ) \}$ . The Transformer, however, outputs $e 0$ , i.e., the singleton assignment of setting $e$ to false, which turns out to be a (very small) solution as well.
150
+
151
+ ![](images/f3c2414b6c96721bb0325493dc03744acf0e638251d4a1f2fa2029c6edf4b63c.jpg)
152
+ Figure 4: Syntactic and semantic accuracy of our best performing model (only trained on LTLRandom35 ) on LTLRandom50 . Dark green is syntactically correct; light green is semantically correct, orange is incorrect.
153
+
154
+ We achieved stable training in this experiment by setting the decoder embedding size to either 64 or even 32. Keeping the decoder embedding size at 128 led to very unstable training.
155
+
156
+ We also tested whether the generalization to the semantics is preserved when the Transformer encounters propositional formulas of a larger size than it ever saw during training. We, again, utilized the tree positional encoding. When challenged with formulas of size 35 to 50, our best performing model trained on PropRandom35 achieves a syntactic accuracy of $3 5 . 8 \%$ and a semantic accuracy of $8 6 . 1 \%$ . In comparison, without the tree positional encoding, the Transformer achieves a syntactic match of only $2 9 . 0 \%$ and an overall accuracy of only $7 5 . 7 \%$ . Note that both positional encodings work equally well when not considering larger formulas.
157
+
158
+ In a last experiment, we tested how the Transformer performs on more challenging propositional formulas in CNF. We thus trained a model on PropCNF 250, where it achieved a semantic accuracy of $6 5 . 1 \%$ and a syntactic accuracy of $5 6 . 6 \%$ . We observe a slightly lower gap compared to our LTL experiments. The Transformer, however, still deviates even on such formulas from the generator.
159
+
160
+ # 6 CONCLUSION
161
+
162
+ We trained a Transformer to predict solutions to linear-time temporal logical (LTL) formulas. We observed that our trained models evince powerful generalization properties, namely, the generalization to the semantics of the logic, and the generalization to larger formulas than seen during training. We showed that these generalizations do not depend on the underlying logical problem nor on the data generator. Regarding the performance of the trained models, we observed that they can compete with classical algorithms for generating solutions to LTL formulas. We built a test set that contained only formulas that were generated out of practical verification patterns, on which even our data generator timed out. Our best performing model, although it was trained on much smaller formulas, predicts correct traces $8 3 \%$ of the time.
163
+
164
+ The results of this paper suggest that deep learning can already augment combinatorial approaches in automatic verification and the broader formal methods community. With the results of this paper, we can, for example, derive novel algorithms for trace generation or satisfiability checking of LTL that first query a Transformer for trace predictions. These predictions can be checked efficiently. Classical methods can serve as a fall back or check partial solutions providing guidance to the Transformer. The potential that arises from the advent of deep learning in logical reasoning is immense. Deep learning holds the promise to empower researchers in the automated reasoning and formal methods communities to make bigger jumps in the development of new automated verification methods, but also brings new challenges, such as the acquisition of large amounts of data.
165
+
166
+ # ACKNOWLEDGEMENTS
167
+
168
+ We thank Christian Szegedy, Jesko Hecking-Harbusch, and Niklas Metzger for their valuable feedback on an earlier version of this paper.
169
+
170
+ # REFERENCES
171
+
172
+ Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. arXiv preprint arXiv:1711.00740, 2017.
173
+
174
+ Gilles Audemard and Laurent Simon. On the glucose SAT solver. Int. J. Artif. Intell. Tools, 27 (1):1840001:1–1840001:25, 2018. doi: 10.1142/S0218213018400018. URL https://doi. org/10.1142/S0218213018400018.
175
+
176
+ Mislav Balunovic, Pavol Bielik, and Martin Vechev. Learning to solve smt formulas. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 10317– 10328. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 8233-learning-to-solve-smt-formulas.pdf.
177
+
178
+ Kshitij Bansal, Sarah M Loos, Markus N Rabe, Christian Szegedy, and Stewart Wilcox. HOList: An environment for machine learning of higher-order theorem proving. In arXiv preprint arXiv:1904.03241, 2019.
179
+
180
+ S. Bhatia, P. Kohli, and R. Singh. Neuro-symbolic program corrector for introductory programming assignments. In 2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE), pp. 60–70, May 2018. doi: 10.1145/3180155.3180219.
181
+
182
+ Jasmin Christian Blanchette, Cezary Kaliszyk, Lawrence C Paulson, and Josef Urban. Hammering towards QED. Journal of Formalized Reasoning, 9(1):101–148, 2016.
183
+
184
+ Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. 2020.
185
+
186
+ Paul Cairns. Informalising formal mathematics: Searching the mizar library with latent semantics. In International Conference on Mathematical Knowledge Management, pp. 58–72. Springer, 2004.
187
+
188
+ Tommaso Dreossi, Alexandre Donze, and Sanjit A Seshia. Compositional falsification of cyber- ´ physical systems with machine learning components. Journal of Automated Reasoning, 63(4): 1031–1053, 2019.
189
+
190
+ Alexandre Duret-Lutz, Alexandre Lewkowicz, Amaury Fauchille, Thibaud Michaud, Etienne Renault, and Laurent Xu. Spot 2.0—a framework for ltl and $\omega$ -automata manipulation. In International Symposium on Automated Technology for Verification and Analysis, pp. 122–129. Springer, 2016.
191
+
192
+ Matthew B. Dwyer, George S. Avrunin, and James C. Corbett. Property specification patterns for finite-state verification. In Mark A. Ardis and Joanne M. Atlee (eds.), Proceedings of the Second Workshop on Formal Methods in Software Practice, March 4-5, 1998, Clearwater Beach, Florida, USA, pp. 7–15. ACM, 1998. doi: 10.1145/298595.298598. URL https://doi.org/10. 1145/298595.298598.
193
+
194
+ Kousha Etessami and Gerard J. Holzmann. Optimizing buchi automata. In Catuscia Palamidessi ¨ (ed.), CONCUR 2000 - Concurrency Theory, 11th International Conference, University Park, PA, USA, August 22-25, 2000, Proceedings, volume 1877 of Lecture Notes in Computer Science, pp. 153–167. Springer, 2000. doi: 10.1007/3-540-44618-4\ 13. URL https://doi.org/10. 1007/3-540-44618-4_13.
195
+
196
+ Richard Evans, David Saxton, David Amos, Pushmeet Kohli, and Edward Grefenstette. Can neural networks understand logical entailment? arXiv preprint arXiv:1802.08535, 2018.
197
+
198
+ Patrick Fernandes, Miltiadis Allamanis, and Marc Brockschmidt. Structured neural summarization. arXiv preprint arXiv:1811.01824, 2018.
199
+
200
+ Thibault Gauthier, Cezary Kaliszyk, and Josef Urban. Tactictoe: Learning to reason with hol4 tactics. arXiv preprint arXiv:1804.00595, 2018.
201
+
202
+ Timon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov, Swarat Chaudhuri, and Martin Vechev. Ai2: Safety and robustness certification of neural networks with abstract interpretation. In 2018 IEEE Symposium on Security and Privacy (SP), pp. 3–18. IEEE, 2018.
203
+
204
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1263–1272. JMLR. org, 2017.
205
+
206
+ Rahul Gupta, Soham Pal, Aditya Kanade, and Shirish Shevade. Deepfix: Fixing common C language errors by deep learning. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
207
+
208
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pp. 1026–1034, 2015. doi: 10.1109/ICCV.2015.123. URL https://doi.org/10.1109/ICCV.2015.123.
209
+
210
+ Vincent J. Hellendoorn, Charles Sutton, Rishabh Singh, and Petros Maniatis. Global relational models of source code. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ B1lnbRNtwr.
211
+
212
+ Jan Holecek, Tom ˇ a´s Kratochv ˇ ´ıla, Vojtech ˇ Reh ˇ ak, David ´ Safr ˇ anek, Pavel ´ Sime ˇ cek, et al. Verification ˇ results in liberouter project, 2004.
213
+
214
+ Daniel Huang, Prafulla Dhariwal, Dawn Song, and Ilya Sutskever. Gamepad: A learning environment for theorem proving. arXiv preprint arXiv:1806.00608, 2018.
215
+
216
+ Xiaowei Huang, Marta Kwiatkowska, Sen Wang, and Min Wu. Safety verification of deep neural networks. In International Conference on Computer Aided Verification, pp. 3–29. Springer, 2017.
217
+
218
+ IEEE-Commission et al. Ieee standard for property specification language (psl). IEEE Std 1850- 2005, 2005.
219
+
220
+ Cezary Kaliszyk and Josef Urban. Learning-assisted automated reasoning with flyspeck. Journal of Automated Reasoning, 53(2):173–213, 2014.
221
+
222
+ Cezary Kaliszyk, Franc¸ois Chollet, and Christian Szegedy. HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Proving. In Proceedings of International Conference on Learning Representations (ICLR), 2017.
223
+
224
+ Guillaume Lample and Franc¸ois Charton. Deep learning for symbolic mathematics. In ICLR, 2020.
225
+
226
+ Gil Lederman, Markus N. Rabe, Edward A. Lee, and Sanjit A. Seshia. Learning heuristics for quantified boolean formulas through deep reinforcement learning. 2020. URL http://arxiv. org/abs/1807.08058.
227
+
228
+ Dennis Lee, Christian Szegedy, Markus N. Rabe, Sarah M. Loos, and Kshitij Bansal. Mathematical reasoning in latent space. 2020.
229
+
230
+ Jianwen Li, Lijun Zhang, Geguang Pu, Moshe Y. Vardi, and Jifeng He. LTL satisfiability checking revisited. In Cesar S ´ anchez, Kristen Brent Venable, and Esteban Zim ´ anyi (eds.), ´ 2013 20th International Symposium on Temporal Representation and Reasoning, Pensacola, FL, USA, September 26-28, 2013, pp. 91–98. IEEE Computer Society, 2013. doi: 10.1109/TIME.2013.19. URL https://doi.org/10.1109/TIME.2013.19.
231
+
232
+ Jianwen Li, Yinbo Yao, Geguang Pu, Lijun Zhang, and Jifeng He. Aalta: an ltl satisfiability checker over infinite/finite traces. In Proceedings of the 22nd ACM SIGSOFT international symposium on foundations of software engineering, pp. 731–734, 2014.
233
+
234
+ Wenda Li, Lei Yu, Yuhuai Wu, and Lawrence C. Paulson. Modelling high-level mathematical reasoning in mechanised declarative proofs. arXiv preprint arXiv:2006.09265, 2020.
235
+
236
+ Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926, 2017.
237
+
238
+ Sarah Loos, Geoffrey Irving, Christian Szegedy, and Cezary Kaliszyk. Deep network guided proof search. In LPAR, 2017.
239
+
240
+ Jia Meng and Lawrence C Paulson. Lightweight relevance filtering for machine-generated resolution problems. Journal of Applied Logic, 7(1):41–57, 2009.
241
+
242
+ Matej Moravc´ık, Martin Schmid, Neil Burch, Viliam Lisy, Dustin Morrill, Nolan Bard, Trevor ´ Davis, Kevin Waugh, Michael Johanson, and Michael H. Bowling. Deepstack: Expert-level artificial intelligence in no-limit poker. CoRR, abs/1701.01724, 2017. URL http://arxiv. org/abs/1701.01724.
243
+
244
+ Aditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal, and Christian Szegedy. Graph representations for higher-order logic and theorem proving. In AAAI, 2020.
245
+
246
+ Radek Pelanek. BEEM: benchmarks for explicit model checkers. In Dragan Bosnacki and Stefan ´ Edelkamp (eds.), Model Checking Software, 14th International SPIN Workshop, Berlin, Germany, July 1-3, 2007, Proceedings, volume 4595 of Lecture Notes in Computer Science, pp. 263–267. Springer, 2007. doi: 10.1007/978-3-540-73370-6\ 17. URL https://doi.org/10.1007/ 978-3-540-73370-6_17.
247
+
248
+ Chris Piech, Jonathan Huang, Andy Nguyen, Mike Phulsuksombati, Mehran Sahami, and Leonidas Guibas. Learning program embeddings to propagate feedback on student code. In International Conference on Machine Learning, pp. 1093–1102, 2015.
249
+
250
+ Amir Pnueli. The temporal logic of programs. In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977, pp. 46–57, 1977. doi: 10.1109/SFCS.1977.32. URL https://doi.org/10.1109/SFCS.1977.32.
251
+
252
+ Stanislas Polu and Ilya Sutskever. Generative language modeling for automated theorem proving, 2020.
253
+
254
+ Markus N. Rabe, Dennis Lee, Kshitij Bansal, and Christian Szegedy. Mathematical reasoning via self-supervised skip-tree training. 2020.
255
+
256
+ Kristin Y Rozier and Moshe Y Vardi. Ltl satisfiability checking. In International SPIN Workshop on Model Checking of Software, pp. 149–167. Springer, 2007.
257
+
258
+ David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. Analysing mathematical reasoning abilities of neural models. CoRR, abs/1904.01557, 2019. URL http://arxiv.org/ abs/1904.01557.
259
+
260
+ Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008.
261
+
262
+ Imanol Schlag, Paul Smolensky, Roland Fernandez, Nebojsa Jojic, Jurgen Schmidhuber, and Jian- ¨ feng Gao. Enhancing the transformer with explicit relational encoding for math problem solving. arXiv preprint arXiv:1910.06611, 2019.
263
+
264
+ Stephan Schulz. System description: E 1.8. In International Conference on Logic for Programming Artificial Intelligence and Reasoning, pp. 735–743. Springer, 2013.
265
+
266
+ Viktor Schuppan and Luthfi Darmawan. Evaluating ltl satisfiability solvers. In International Symposium on Automated Technology for Verification and Analysis, pp. 397–413. Springer, 2011.
267
+
268
+ Stefan Schwendimann. A new one-pass tableau calculus for pltl. In International Conference on Automated Reasoning with Analytic Tableaux and Related Methods, pp. 277–291. Springer, 1998.
269
+
270
+ Daniel Selsam and Nikolaj Bjørner. Guiding high-performance SAT solvers with unsat-core predictions. In Theory and Applications of Satisfiability Testing - SAT 2019 - 22nd International Conference, SAT 2019, Lisbon, Portugal, July 9-12, 2019, Proceedings, pp. 336– 353, 2019. doi: 10.1007/978-3-030-24258-9\ 24. URL https://doi.org/10.1007/ 978-3-030-24258-9_24.
271
+
272
+ Daniel Selsam, Matthew Lamm, Benedikt Bunz, Percy Liang, Leonardo de Moura, and David L. ¨ Dill. Learning a SAT solver from single-bit supervision. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ HJMC_iA5tm.
273
+
274
+ Sanjit A. Seshia and Dorsa Sadigh. Towards verified artificial intelligence. CoRR, abs/1606.08514, 2016. URL http://arxiv.org/abs/1606.08514.
275
+
276
+ Sanjit A Seshia, Ankush Desai, Tommaso Dreossi, Daniel J Fremont, Shromona Ghosh, Edward Kim, Sumukh Shivakumar, Marcell Vazquez-Chanlatte, and Xiangyu Yue. Formal specification for deep neural networks. In International Symposium on Automated Technology for Verification and Analysis, pp. 20–34. Springer, 2018.
277
+
278
+ Vighnesh Leonardo Shiv and Chris Quirk. Novel positional encodings to enable tree-based transformers. In NeurIPS 2019, 2019. URL https://www.microsoft.com/en-us/research/publication/ novel-positional-encodings-to-enable-tree-based-transformers/.
279
+
280
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017.
281
+
282
+ Gagandeep Singh, Timon Gehr, Markus Puschel, and Martin Vechev. An abstract domain for cer- ¨ tifying neural networks. Proceedings of the ACM on Programming Languages, 3(POPL):1–30, 2019.
283
+
284
+ Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2014, Columbus, OH, USA, June 23-28, 2014, pp. 1701–1708, 2014. doi: 10.1109/CVPR.2014.220. URL https://doi.org/10.1109/CVPR.2014.220.
285
+
286
+ Josef Urban. MPTP–motivation, implementation, first experiments. Journal of Automated Reasoning, 33(3-4):319–339, 2004.
287
+
288
+ Josef Urban. Malarea: a metasystem for automated reasoning in large theories. ESARLT, 257, 2007.
289
+
290
+ Josef Urban and Jan Jakubuv. First neural conjecturing datasets and experiments. In ˚ Conference on Intelligent Computer Mathematics, 2020.
291
+
292
+ Josef Urban, Geoff Sutcliffe, Petr Pudlak, and Ji ´ ˇr´ı Vyskocil. Malarea sg1-machine learner for auto- ˇ mated reasoning with semantic guidance. In International Joint Conference on Automated Reasoning, pp. 441–456. Springer, 2008.
293
+
294
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pp. 5998–6008, 2017. URL http: //papers.nips.cc/paper/7181-attention-is-all-you-need.
295
+
296
+ Marcell Vazquez-Chanlatte. mvcisback/py-aiger, August 2018. URL https://doi.org/10. 5281/zenodo.1326224.
297
+
298
+ Ke Wang, Rishabh Singh, and Zhendong Su. Dynamic neural program embedding for program repair. In ICLR, 2018.
299
+
300
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016. URL http://arxiv.org/abs/1609.08144.
301
+
302
+ Yuhuai Wu, Albert Jiang, Jimmy Ba, and Roger Grosse. INT: An Inequality Benchmark for Evaluating Generalization in Theorem Proving. arXiv preprint arXiv:2007.02924, 2020.
303
+
304
+ Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A comprehensive survey on graph neural networks. arXiv preprint arXiv:1901.00596, 2019.
305
+
306
+ Kaiyu Yang and Jia Deng. Learning to prove theorems via interacting with proof assistants. arXiv preprint arXiv:1905.09381, 2019.
307
+
308
+ # APPENDIX
309
+
310
+ # A LINEAR-TIME TEMPORAL LOGIC (LTL)
311
+
312
+ In this section, we provide the formal syntax and semantics of Linear-time Temporal Logic (LTL). The formal syntax of LTL is given by the following grammar:
313
+
314
+ $$
315
+ \varphi : = p \mid \neg \varphi \mid \varphi \land \varphi \mid \bigcirc \varphi \mid \varphi \mathcal { U } \varphi ,
316
+ $$
317
+
318
+ where $p \in A P$ is an atomic proposition. Let $A P$ be a set of atomic propositions. A (explicit) trace $t$ is an infinite sequence over subsets of the atomic propositions. We define the set of traces $T R : = ( 2 ^ { A P } ) ^ { \omega }$ . We use the following notation to manipulate traces: Let $t ~ \in ~ T R$ be a trace and $i \in \mathbb N$ be a natural number. With $t [ i ]$ we denote the set of propositions at $i$ -th position of $t$ . Therefore, $t [ 0 ]$ represents the starting element of the trace. Let $j \in \mathbb N$ and $j \geq i$ . Then $t [ i , j ]$ denotes the sequence $t$ [i] $t [ i + 1 ] \ldots i [ j - 1 ] \ : t [ j ]$ and $t [ i , \infty ]$ denotes the infinite suffix of $t$ starting at position $i$ .
319
+
320
+ Let $p \in A P$ and $t \in T R$ . The semantics of an LTL formula is defined as the smallest relation $\vDash$ that satisfies the following conditions:
321
+
322
+ $\begin{array} { r l r l } & { t = p } & & { \mathrm { i f f } \qquad p \in t [ 0 ] } \\ & { t \mathbin { | = \neg { \varphi } } } & & { \mathrm { i f f } \qquad t \mathbin { | \neq \varphi } } \\ & { t \mathbin { | = \varphi _ { 1 } \wedge \varphi _ { 2 } \qquad } } & & { \mathrm { i f f } \qquad t \mathbin { | = \varphi _ { 1 } \mathrm { ~ a n d ~ } t | } \mathop { | = \varphi _ { 2 } } } \\ & { t \mathbin { | = \bigcirc \varphi } } & & { \mathrm { i f f } \qquad t [ 1 , \infty ] \mathbin { | = \varphi } } \\ & { t \mathbin { | = \varphi _ { 1 } \mathcal { U } \varphi _ { 2 } \qquad } } & & { \mathrm { i f f } \qquad \mathrm { t h e r e ~ e x i s t s ~ } i \ge 0 : t } \end{array}$ $i \geq 0 : t [ i , \infty ] \models \varphi _ { 2 }$ and for all $0 \le j < i$ we have $t [ j , \infty ] \ v = \varphi _ { 1 }$
323
+
324
+ There are several derived operators, such as $\bigcirc \varphi \equiv t r u e l l \varphi$ and $\sqcup \varphi \equiv \lnot \bigcirc \lnot \varphi . \bigotimes \varphi$ states that $\varphi$ will eventually hold in the future and $\sqsubset \varphi$ states that $\varphi$ holds globally. Operators can be nested: $\square \bigcirc \varphi$ , for example, states that $\varphi$ has to occur infinitely often.
325
+
326
+ # B SIZE DISTRIBUTION IN THE DATASETS
327
+
328
+ In this section, we provide insight into the size distribution of our datasets. Figure 5 shows the size distribution of the formulas in our dataset LTLPattern126 .
329
+
330
+ Figure 6 shows the size distribution of our generated formulas and their traces in the dataset LTLRandom35. Table 1 shows three randomly drawn example instances of the dataset LTLRandom35.
331
+
332
+ Lastly, Figure 7 shows the size distribution of formulas in our dataset LTLUnsolved 254.
333
+
334
+ ![](images/0288f3e833153530fb6426c58fd2464f6de66ab52bd5d574aafb829a1fb2cf62.jpg)
335
+ Figure 5: Size distributions in the LTLPattern126 test set: on the $\mathbf { X }$ -axis is the size of the formulas; on the y-axis the number of formulas.
336
+
337
+ ![](images/3eb9ccf964e1fd9bb4b953034e79b6c10fde1a7b82c505e53ef3102135fafce9.jpg)
338
+ Figure 6: Size distributions in the LTLRandom35 training set: on the $\mathbf { X }$ -axis is the size of the formulas/traces; on the y-axis the number of formulas/traces.
339
+
340
+ Table 1: Three random examples from LTLRandom35 training set. The first line shows the LTL formula and the symbolic trace in mathematical notation. The second line shows the syntactic representation (in Polish notation):
341
+
342
+ <table><tr><td rowspan=1 colspan=1>LTL formula</td><td rowspan=1 colspan=1>satisfying symbolic trace</td></tr><tr><td rowspan=1 colspan=1>O((du c)uOOd) ^ O(b^ -(-duc))&amp;XUUdcXXdX&amp;b!U!dc</td><td rowspan=1 colspan=1>true (b^-c^ -d) (-c^d)d(true)ω1;&amp;&amp;b!c!d;&amp;!cd;d;{1}</td></tr><tr><td rowspan=1 colspan=1>-O(Oe ^ (trueub) ^Oc)uc)!XU&amp;&amp;XeU1bXcc</td><td rowspan=1 colspan=1>true(-b^-c)(-b)w1;&amp;!b!c;{!b}</td></tr><tr><td rowspan=1 colspan=1>O-((-c∧d)uOd)X!U&amp;!cdXd</td><td rowspan=1 colspan=1>true (cV-d)(-d) (true)w1;|c!d;!d;{1}</td></tr></table>
343
+
344
+ ![](images/7e4454d31a8f5abd5e8264b1f163e25993d6efc0eb0d5cd785f219dab7972544.jpg)
345
+ Figure 7: Size distributions in the LTLUnsolved254 test set: on the $\mathbf { X }$ -axis is the size of the formulas; on the y-axis the number of formulas.
346
+
347
+ # C HYPERPARAMETER ANALYSIS
348
+
349
+ Table 2 shows the effect of the most significant parameters on the performance of Transformers. The performance largely benefits from an increased number of layers, with 8 yielding the best results. Increasing the number further, even with much more training time, did not result in better or even led to worse results. A slightly less important role plays the number of heads and the dimension of the intermediate fully-connected feed-forward networks (FC). While a certain FC size is important, increasing it alone will not improve results. Changing the number of heads alone has also almost no impact on performance. Increasing both simultaneously, however, will result in a small gain.
350
+
351
+ Table 2: Syntactic accuracy and semantic accuracy of different Transformers, tested on LTLRandom35: Layers refer to the size of the encoder and decoder stacks; Heads refer to the number of attention heads; FC size refers to the size of the fully-connected neural networks inside the encoder and decoders.
352
+
353
+ <table><tr><td>Embedding size</td><td>Layers</td><td>Heads</td><td>FC size</td><td>Batch Size</td><td>Train Steps</td><td>Syn. Acc.</td><td>Sem. Acc.</td></tr><tr><td>128</td><td>3</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>78.0%</td><td>97.1%</td></tr><tr><td>128</td><td>5</td><td>2</td><td>512</td><td>512</td><td>45K</td><td>80.4%</td><td>97.4%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>256</td><td>512</td><td>45K</td><td>81.0%</td><td>97.4%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>82.0%</td><td>97.9%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>1024</td><td>512</td><td>45K</td><td>80.3%</td><td>97.3%</td></tr><tr><td>128</td><td>5</td><td>6</td><td>1024</td><td>512</td><td>45K</td><td>81.8%</td><td>97.7%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>512</td><td>512</td><td>45K</td><td>82.0%</td><td>97.8%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>1024</td><td>512</td><td>45K</td><td>82.5%</td><td>97.9%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>1500</td><td>512</td><td>45K</td><td>82.6%</td><td>97.8%</td></tr><tr><td>128</td><td>5</td><td>12</td><td>1024</td><td>512</td><td>45K</td><td>81.9%</td><td>97.5%</td></tr><tr><td>128</td><td>8</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>83.2%</td><td>98.3%</td></tr><tr><td>128</td><td>8</td><td>8</td><td>1024</td><td>768</td><td>50K</td><td>83.8%</td><td>98.5 %</td></tr><tr><td>128</td><td>10</td><td>4</td><td>512</td><td>512</td><td>75K</td><td>82.9%</td><td>97.6%</td></tr><tr><td>256</td><td>5</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>82.3%</td><td>97.9%</td></tr></table>
354
+
355
+ This seems reasonable, since more heads can provide more distinct information to the subsequent processing by the fully-connected feed-forward network. Increasing the embeddings size from 128 to 256 very slightly improves the syntactic accuracy. But likewise it also degrades the semantic accuracy, so we therefore stuck with the former setting.
356
+
357
+ # D ACCURACY DURING TRAINING
358
+
359
+ In Figure 8 we show the evolution of both the syntactic accuracy and the semantic accuracy during the training process. Note the significant difference right from the beginning. This demonstrates the importance of a suitable performance measure when evaluating machine learning algorithms on logical reasoning tasks.
360
+
361
+ ![](images/abf06e6c3dba60461ef5f14a0da3e90dc543dc516389917e3a2910a39edc3228.jpg)
362
+ Figure 8: Syntactic accuracy (blue) and semantic accuracy (red) of our best performing model, evaluated on a subset of 5K samples of LTLRandom35 per epoch.
363
+
364
+ # E DIFFERENT POSITIONAL ENCODINGS
365
+
366
+ ![](images/ce515aefca784f7918c53561fbbc8f07f8373bc2ed923f3d58f53f7050cf415e.jpg)
367
+ Figure 9: Performance of our best model (only trained on LTLRandom35) on LTLRandom50 with a standard positional encoding (top) and a tree positional encoding (bottom). The syntactic accuracy is displayed in green, the semantic accuracy in light green and the incorrect predictions in orange. The shaded area indicates the formula sizes the model was not trained on.
368
+
369
+ # F HANDCRAFTED EXAMPLES
370
+
371
+ ![](images/ef07a34ff1bb206f4dc99481b68b544352a3ce096aa5580d8af80817cd727bff.jpg)
372
+ Figure 10: Self-attention of the example propositional formula $b \lor \neg ( a \land d )$ in dataset PropRandom35 (left). Encoder-decoder-attention of the example LTL formula $( b \mathcal { U } a ) \wedge ( a \mathcal { U } \neg a )$ in dataset LTLRandom35 (right).
373
+
374
+ The LTL formula $( b \mathcal { U } a ) \wedge ( a \mathcal { U } \neg a )$ states that $b$ has to hold along the trace until $a$ holds and $a$ has to hold until $a$ does not hold anymore. The automaton-based generator suggests the trace $( \neg a \land$ b) $\textit { a } ( t r u e ) ^ { \omega }$ , i.e., to first satisfy the second until by immediately disallowing $a$ . The satisfaction of the first until is then postponed to the second position of trace, which forces $b$ to hold on the first position. The Transformer, however, chooses the following more general trace $a \left( \neg a \right) \left( t r u e \right) ^ { \omega }$ , by satisfying the until operators in order (see Figure 10).
parse/train/dOcQK-f4byz/dOcQK-f4byz_content_list.json ADDED
@@ -0,0 +1,2054 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TEACHING TEMPORAL LOGICS TO NEURAL NETWORKS∗ ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Christopher Hahn CISPA Helmholtz Center for Information Security Saarbrucken, 66123 Saarland, Germany ¨ christopher.hahn@cispa.de ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 513,
21
+ 226
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Frederik Schmitt CISPA Helmholtz Center for Information Security Saarbrucken, 66123 Saarland, Germany ¨ frederik.schmitt@cispa.de ",
28
+ "bbox": [
29
+ 531,
30
+ 170,
31
+ 861,
32
+ 226
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Jens U. Kreber \nSaarland University \nSaarbrucken, 66123 Saarland, Germany ¨ kreber@react.uni-saarland.de ",
39
+ "bbox": [
40
+ 184,
41
+ 247,
42
+ 459,
43
+ 303
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Markus N. Rabe Google Research Mountain View, CA, USA mrabe@google.com ",
50
+ "bbox": [
51
+ 638,
52
+ 247,
53
+ 813,
54
+ 303
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Bernd Finkbeiner \nCISPA Helmholtz Center for Information Security \nSaarbrucken, 66123 Saarland, Germany ¨ \nfinkbeiner@cispa.de ",
61
+ "bbox": [
62
+ 183,
63
+ 324,
64
+ 513,
65
+ 380
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "ABSTRACT ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 454,
75
+ 416,
76
+ 544,
77
+ 431
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "We study two fundamental questions in neuro-symbolic computing: can deep learning tackle challenging problems in logics end-to-end, and can neural networks learn the semantics of logics. In this work we focus on linear-time temporal logic (LTL), as it is widely used in verification. We train a Transformer on the problem to directly predict a solution, i.e. a trace, to a given LTL formula. The training data is generated with classical solvers, which, however, only provide one of many possible solutions to each formula. We demonstrate that it is sufficient to train on those particular solutions to formulas, and that Transformers can predict solutions even to formulas from benchmarks from the literature on which the classical solver timed out. Transformers also generalize to the semantics of the logics: while they often deviate from the solutions found by the classical solvers, they still predict correct solutions to most formulas. ",
84
+ "bbox": [
85
+ 233,
86
+ 448,
87
+ 764,
88
+ 614
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 INTRODUCTION ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 176,
98
+ 641,
99
+ 336,
100
+ 657
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Machine learning has revolutionized several areas of computer science, such as image recognition (He et al., 2015), face recognition (Taigman et al., 2014), translation (Wu et al., 2016), and board games (Moravc´ık et al., 2017; Silver et al., 2017). For complex tasks that involve symbolic reasoning, however, deep learning techniques are still considered as insufficient. Applications of deep learning in logical reasoning problems have therefore focused on sub-problems within larger logical frameworks, such as computing heuristics in solvers (Lederman et al., 2020; Balunovic et al., 2018; Selsam & Bjørner, 2019) or predicting individual proof steps (Loos et al., 2017; Gauthier et al., 2018; Bansal et al., 2019; Huang et al., 2018). Recently, however, the assumption that deep learning is not yet ready to tackle hard logical questions was drawn into question. Lample & Charton (2020) demonstrated that Transformer models (Vaswani et al., 2017) perform surprisingly well on symbolic integration, Rabe et al. (2020) demonstrated that self-supervised training leads to mathematical reasoning abilities, and Brown et al. (2020) demonstrated that large-enough language models learn basic arithmetic despite being trained on mostly natural language sources. ",
107
+ "bbox": [
108
+ 174,
109
+ 672,
110
+ 825,
111
+ 853
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "This poses the question if other problems that are thought to require symbolic reasoning lend themselves to a direct learning approach. We study the application of Transformer models to challenging logical problems in verification. We thus consider linear-time temporal logic (LTL) (Pnueli, 1977), which is widely used in the academic verification community (Dwyer et al., 1998; Li et al., 2013; Duret-Lutz et al., 2016; Rozier & Vardi, 2007; Schuppan & Darmawan, 2011; Li et al., 2013; 2014; Schwendimann, 1998) and is the basis for industrial hardware specification languages like the IEEE standard PSL (IEEE-Commission et al., 2005). LTL specifies infinite sequences and is typically used to describe system behaviors. For example, LTL can specify that some proposition $P$ must hold at every point in time $( \\sqsubseteq P )$ or that $P$ must hold at some future point of time $( \\diamondsuit P )$ . By combining these operators, one can specify that $P$ must occur infinitely often $( \\bigtriangledown \\bigcirc P )$ . ",
118
+ "bbox": [
119
+ 176,
120
+ 861,
121
+ 820,
122
+ 888
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/301c79ae99306bb6a4dc1e4abba53793ed59f9631a3c837ea4b8c111578b7338.jpg",
129
+ "image_caption": [
130
+ "Figure 1: Performance of our best models trained on practical pattern formulas. The $\\mathbf { X }$ -axis shows the formula size. Syntactic accuracy, i.e., where the Transformer agrees with the generator are displayed in dark green. Instances where the Transformer deviates from the generators output but still provides correct output are displayed in light green; incorrect predictions in orange. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 251,
135
+ 117,
136
+ 735,
137
+ 280
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 174,
146
+ 381,
147
+ 825,
148
+ 492
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "In this work, we apply a direct learning approach to the fundamental problem of LTL to find a satisfying trace to a formula. In applications, solutions to LTL formulas can represent (counter) examples for a specified system behavior, and over the last decades, generations of advanced algorithms have been developed to solve this question automatically. We start from the standard benchmark distribution of LTL formulas, consisting of conjunctions of patterns typically encountered in practice (Dwyer et al., 1998). We then use classical algorithms, notably spot by Duret-Lutz et al. (2016), that implement a competitive classical algorithm, to generate solutions to formulas from this distribution and train a Transformer model to predict these solutions directly. ",
155
+ "bbox": [
156
+ 174,
157
+ 498,
158
+ 825,
159
+ 611
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Relatively small Transformers perform very well on this task and we predict correct solutions to $9 6 . 8 \\%$ of the formulas from a held-out test set (see Figure 1). Impressive enough, Transformers hold up pretty well and predict correct solutions in $83 \\%$ of the cases, even when we focus on formulas on which spot timed out. This means that, already today, direct machine learning approaches may be useful to augment classical algorithms in logical reasoning tasks. ",
166
+ "bbox": [
167
+ 174,
168
+ 617,
169
+ 825,
170
+ 688
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "We also study two generalization properties of the Transformer architecture, important to logical problems: We present detailed analyses on the generalization to longer formulas. It turns out that transformers trained with tree-positional encodings (Shiv & Quirk, 2019) generalize to much longer formulas than they were trained on, while Transformers trained with the standard positional encoding (as expected) do not generalize to longer formulas. The second generalization property studied here is the question whether Transformers learn to imitate the generator of the training data, or whether they learn to solve the formulas according to the semantics of the logics. This is possible, as for most formulas there are many possible satisfying traces. In Figure 1 we highlight the fact that our models often predicted traces that satisfy the formulas, but predict different traces than the one found by the classical algorithm with which we generated the data. Especially when testing the models out-of-distribution we observed that almost no predicted trace equals the solution proposed by the classical solver. ",
177
+ "bbox": [
178
+ 174,
179
+ 694,
180
+ 825,
181
+ 861
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "To demonstrate that these generalization behaviors are not specific to the benchmark set of LTL formulas, we also present experimental results on random LTL formulas. Further, we exclude that spot, the tool with which we generate example traces, is responsible for these behaviors, by repeating the experiments on propositional formulas for which we generate the solutions by SAT solvers. ",
188
+ "bbox": [
189
+ 174,
190
+ 867,
191
+ 823,
192
+ 924
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "The remainder of this paper is structured as follows. We give an overview over related work in Section 2. We describe the problem definitions and present our data generation in Section 3. Our experimental setup is described in Section 4 and our findings in Section 5, before concluding in Section 6. ",
199
+ "bbox": [
200
+ 174,
201
+ 103,
202
+ 825,
203
+ 159
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 RELATED WORK ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 176,
213
+ 179,
214
+ 344,
215
+ 196
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Datasets for mathematical reasoning. While we focus on a classical task from verification, other works have studied datasets derived from automated theorem provers (Blanchette et al., 2016; Loos et al., 2017; Gauthier et al., 2018), interactive theorem provers (Kaliszyk et al., 2017; Bansal et al., 2019; Huang et al., 2018; Yang & Deng, 2019; Polu & Sutskever, 2020; Wu et al., 2020; Li et al., 2020; Lee et al., 2020; Urban & Jakubuv, 2020; Rabe et al., 2020), symbolic mathematics (Lample ˚ & Charton, 2020), and mathematical problems in natural language (Saxton et al., 2019; Schlag et al., 2019). Probably the closest work to this paper are the applications of Transformers to directly solve differential equations (Lample & Charton, 2020) and directly predict missing assumptions and types of formal mathematical statements (Rabe et al., 2020). We focus on a different problem domain, verification, and demonstrate that Transformers are roughly competitive with classical algorithms in that domain on their dataset. Learning has been applied to mathematics long before the rise of deep learning. Earlier works focused on ranking premises or clauses Cairns (2004); Urban (2004; 2007); Urban et al. (2008); Meng & Paulson (2009); Schulz (2013); Kaliszyk & Urban (2014). ",
222
+ "bbox": [
223
+ 174,
224
+ 212,
225
+ 825,
226
+ 392
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Neural architectures for logical reasoning. (Paliwal et al., 2020) demonstrate significant improvements in theorem proving through the use of graph neural networks to represent higher-order logic terms. Selsam et al. (2019) presented NeuroSAT, a graph neural network (Scarselli et al., 2008; Li et al., 2017; Gilmer et al., 2017; Wu et al., 2019) for solving the propositional satisfiability problem. In contrast, we apply a generic sequence-to-sequence model to predict the solutions to formulas, not only whether there is a solution. This allows us to apply the approach to a wider set of logics (logics without a CNF). A simplified NeuroSAT architecture was trained for unsat-core predictions (Selsam & Bjørner, 2019). Lederman et al. (2020) have used graph neural networks on CNF to learn better heuristics for a 2QBF solver. Evans et al. (2018) study the problem of logical entailment in propositional logic using tree-RNNs. Entailment is a subproblem of satisfiability and (besides being a classification problem) could be encoded in the same form as our propositional formulas. The formulas considered in their dataset are much smaller than in this work. ",
233
+ "bbox": [
234
+ 174,
235
+ 409,
236
+ 825,
237
+ 574
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Language models applied to programs. Transformers have also been applied to programs for tasks such as summarizing code (Fernandes et al., 2018) or variable naming and misuse (Hellendoorn et al., 2020). Other works focused on recurrent neural networks or graph neural networks for code analysis, e.g. (Piech et al., 2015; Gupta et al., 2017; Bhatia et al., 2018; Wang et al., 2018; Allamanis et al., 2017). Another area in the intersection of formal methods and machine learning is the verification of neural networks (Seshia & Sadigh, 2016; Seshia et al., 2018; Singh et al., 2019; Gehr et al., 2018; Huang et al., 2017; Dreossi et al., 2019). ",
244
+ "bbox": [
245
+ 174,
246
+ 592,
247
+ 825,
248
+ 688
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "3 DATASETS ",
255
+ "text_level": 1,
256
+ "bbox": [
257
+ 174,
258
+ 708,
259
+ 292,
260
+ 724
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "To demonstrate the generalization properties of the Transformer on logical tasks, we generated several datasets in three different fashions. We will describe the underlying logical problems and our data generation in the following. ",
267
+ "bbox": [
268
+ 176,
269
+ 739,
270
+ 821,
271
+ 782
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "3.1 TRACE GENERATION FOR LINEAR-TIME TEMPORAL LOGIC ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 176,
281
+ 799,
282
+ 624,
283
+ 814
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Linear-time temporal logic (LTL, Pnueli, 1977) combines propositional connectives with temporal operators such as the Next operator $\\bigcirc$ and the Until operator $\\mathcal { U }$ . $\\bigcirc \\varphi$ means that $\\varphi$ holds in the next position of a sequence; $\\varphi _ { 1 } \\mathcal { U } \\varphi _ { 2 }$ means that $\\varphi _ { 1 }$ holds until $\\varphi _ { 2 }$ holds. For example, the LTL formula $\\mathsf { \\bar { ( } } b \\mathsf { \\mathcal { U } } a ) \\wedge ( c \\mathsf { \\mathcal { U } } \\neg \\bar { a } )$ states that $b$ has to hold along the trace until $a$ holds and $c$ has to hold until $a$ does not hold anymore. There also exist derived operators. For example, consider the following specification of an arbiter: $\\square ( \\mathrm { r e q u e s t } \\odot \\mathrm { g r a n t } )$ ) states that, at every point in time $\\sqsubset$ -operator), if there is a request signal, then a grant signal must follow at some future point in time ( $\\bigcirc$ -operator). ",
290
+ "bbox": [
291
+ 174,
292
+ 825,
293
+ 825,
294
+ 924
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "The full semantics and an explanation of the operators can be found in Appendix A. We consider infinite sequences, that are finitely represented in the form of a “lasso” $u v ^ { \\omega }$ , where $u$ , called prefix, and $v$ , called period, are finite sequences of propositional formulas. We call such sequences (symbolic) traces. For example, the symbolic trace $( a \\wedge b ) ^ { \\omega }$ defines the infinite sequence where $a$ and $b$ evaluate to true on every position. Symbolic traces allow us to underspecify propositions when they do not matter. For example, the LTL formula $\\bigcirc \\bigcirc \\sqsupset a$ is satisfied by the symbolic trace: true true $( a ) ^ { \\omega }$ , which allow for any combination of propositions on the first two positions. ",
301
+ "bbox": [
302
+ 174,
303
+ 103,
304
+ 825,
305
+ 202
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Our datasets consist of pairs of satisfiable LTL formulas and satisfying symbolic traces generated with tools and automata constructions from the spot framework (Duret-Lutz et al., 2016). We use a compact syntax for ultimately periodic symbolic traces: Each position in the trace is separated by the delimiter “;”. True and False are represented by “1” and $ { ^ { 6 } } 0 ^ { 9 }$ , respectively. The beginning of the period $v$ is signaled by the character “ $\\{ \\} ^ { , , }$ and analogously its end by $\\mathbf { \\bar { \\Sigma } } ^ { 6 6 } \\mathbf { \\bar { \\Sigma } } ^ { 5 }$ . For example, the ultimately periodic symbolic trace denoted by $a ; a ; a ; \\{ b \\}$ , describes all infinite traces where on the first 3 positions $a$ must hold followed by an infinite period on which $b$ must hold on every position. ",
312
+ "bbox": [
313
+ 174,
314
+ 208,
315
+ 825,
316
+ 306
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Given a satisfiable LTL formula $\\varphi$ , our trace generator constructs a Buchi automaton ¨ $A _ { \\varphi }$ that accepts exactly the language defined by the LTL formula, i.e., $\\mathcal { L } ( A _ { \\varphi } ) = \\mathcal { L } ( \\varphi )$ . From this automaton, we construct an arbitrary accepted symbolic trace, by searching for an accepting run in $A _ { \\varphi }$ . ",
323
+ "bbox": [
324
+ 176,
325
+ 313,
326
+ 825,
327
+ 354
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "3.1.1 SPECIFICATION PATTERN ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 176,
337
+ 373,
338
+ 400,
339
+ 387
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Our main dataset is constructed from formulas following $5 5 \\mathrm { L T L }$ specification patterns identified by the literature (Dwyer et al., 1998). For example, the arbiter property $( \\bigcirc p _ { 0 } ) \\ \\bar { { } } \\ ( p _ { 1 } { \\mathcal { U } } p _ { 0 } )$ , stating that if $p _ { 0 }$ is scheduled at some point in time, $p _ { 1 }$ is scheduled until this point. The largest specification pattern is of size 40 consisting of 6 atomic propositions. It has been shown that conjunctions of such patterns are challenging for LTL satisfiability tools that rely on classical methods, such as automata constructions (Li et al., 2013). They start coming to their limits when more than 8 pattern formulas are conjoined. We decided to build our dataset in a similar way from these patterns only to allow for a better comparison. ",
346
+ "bbox": [
347
+ 174,
348
+ 398,
349
+ 825,
350
+ 510
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "We conjoined random specification patterns with randomly chosen variables (from a supply of 6 variables) until one of the following four conditions are met: 1) the formula size succeeds 126, 2) more than 8 formulas would be conjoined, 3) our automaton-based generator timed out $( > 1 s )$ while computing the solution trace, or 4) the formula would become unsatisfiable. In total, we generated 1664487 formula-trace pairs in 24 hours on 20 CPUs. While generating, approximately $4 \\bar { 1 } \\%$ of the instances ran into the first termination condition, $2 1 \\%$ into the second, $3 7 \\%$ into the third and $1 \\%$ into the fourth. We split this set into an $8 0 \\%$ training set, a $1 0 \\%$ validation set, and a $1 0 \\%$ test set. The size distribution of the dataset can be found in Appendix B. ",
357
+ "bbox": [
358
+ 174,
359
+ 517,
360
+ 825,
361
+ 628
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "For studying how the Transformer performs on longer specification patterns, we accumulated pattern formulas where spot timed out $( > 6 0 s )$ while searching for a satisfying trace. We call this dataset LTLUnsolved254 . We capped the maximum length at 254, which is twice as large as the formulas the model saw during training. The size distribution of the generated formulas can be found in Appendix B. ",
368
+ "bbox": [
369
+ 174,
370
+ 636,
371
+ 823,
372
+ 705
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "In the following table, we illustrate the complexity of our training dataset with two examples from the above described set LTLPattern126, where the subsequent number of the notation of our datasets denotes the maximum size of a formula’s syntax tree. The first line shows the LTL formula and the symbolic trace in mathematical notation. The second line shows the input and output representation of the Transformer (in Polish notation): ",
379
+ "bbox": [
380
+ 174,
381
+ 712,
382
+ 823,
383
+ 781
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "table",
389
+ "img_path": "images/47a5813dbbdde8b8fdb2ce89ef382b7685bee46feea3481a6c58502911853e3e.jpg",
390
+ "table_caption": [],
391
+ "table_footnote": [],
392
+ "table_body": "<table><tr><td rowspan=1 colspan=1>LTL formula</td><td rowspan=1 colspan=1>satisfying symbolic trace</td></tr><tr><td rowspan=1 colspan=1>(a→d)&gt;-fWfw-fWfw-f(c→-cu(c&gt;-bWbW-bWbW□-b))&amp;&amp;G&gt;aFdW!fWfW!fWfG!f&gt;FcU!c&amp;cW!bWbW!bWbG!b</td><td rowspan=1 colspan=1>(-a&gt;-c∧-fV-c△d∧-f){!a&amp;!c&amp;!f|!c&amp;d&amp;!f}</td></tr><tr><td rowspan=1 colspan=1>□b&gt;-a△a→cua)△□a→□c)△(&lt;b→-bu(b&gt;-fWfW-fWfW□-f))^(&lt;a→(c^O(-aue)→O(-au(e△&lt;f)))ua)&gt;△c&gt;□(a□e→-(-e&gt;fO(-eu(-e&gt;d)))u(evc))^(□-av△(a&gt;-fWd))△□(e→□-c)&amp;&amp;&amp;&amp;&amp;&amp;&amp;G&gt;&amp;&amp;b!aFaUcaG&gt;aGc&gt;FbU!b&amp;bW!fWfW!fWfG!f&gt;FaU&gt;&amp;cXU!aeXU!a&amp;eFfaFcG&gt;&amp;aFeU!&amp;&amp;!efXU!e&amp;!edlec|G!aF&amp;aW!fdG&gt;eG!c</td><td rowspan=1 colspan=1>(-a△b∧-c∧-e∧f)(-a△-c△-e&gt;-f)(-a∧-c∧-e△f)(-a△c∧-e△-f)(-a&gt;e∧-f)ω&amp;&amp;&amp;&amp;!ab!c!ef;&amp;&amp;&amp;!a!c!e!f;&amp;&amp;&amp;!a!c!ef;&amp;&amp;&amp;!ac!e!f;{&amp;&amp;!a!e!f}</td></tr></table>",
393
+ "bbox": [
394
+ 176,
395
+ 795,
396
+ 823,
397
+ 928
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "3.1.2 RANDOM FORMULAS ",
404
+ "text_level": 1,
405
+ "bbox": [
406
+ 176,
407
+ 103,
408
+ 377,
409
+ 117
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "To show that the generalization properties of the Transformer are not specific to our data generation, we also generated a dataset of random formulas. Our dataset of random formulas consist of 1 million generated formulas and their solutions, i.e., a satisfying symbolic trace. The number of different propositions is fixed to 5. Each dataset is split into a training set of $8 0 0 \\mathrm { K }$ formulas, a validation set of 100K formulas, and a test set of 100K formulas. All datasets are uniformly distributed in size, apart from the lower-sized end due to the limited number of unique small formulas. The formula and trace distribution of the dataset LTLRandom35, as well as three randomly drawn example instances can be found in Appendix B. Note that we filtered out examples with traces larger than 62 (less than $0 . 0 5 \\%$ of the original set). ",
416
+ "bbox": [
417
+ 174,
418
+ 127,
419
+ 825,
420
+ 253
421
+ ],
422
+ "page_idx": 4
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "To generate the formulas, we used the randltl tool of the spot framework, which builds unique formulas in a specified size interval, following a supplied node probability distribution. During the building process, the actual distribution occasionally differs from the given distribution in order to meet the size constraints, e.g., by masking out all binary operators. The distribution between all $k$ -ary nodes always remains the same. To furthermore achieve a (quasi) uniform distribution in size, we subsequently filtered the generated formulas. Our node distribution puts equal weight on all operators $\\neg , \\land , \\bigcirc$ and $\\mathcal { U }$ . Constants True and False are allowed with 2.5 times less probability than propositions. ",
427
+ "bbox": [
428
+ 174,
429
+ 260,
430
+ 825,
431
+ 372
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "3.2 ASSIGNMENT GENERATION FOR PROPOSITIONAL LOGIC ",
438
+ "text_level": 1,
439
+ "bbox": [
440
+ 174,
441
+ 387,
442
+ 606,
443
+ 402
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "To show that the generalization of the Transformer to the semantics of logics is not a unique attribute of LTL, we also generated a dataset for propositional logic (SAT). A propositional formula consists of Boolean operators $\\wedge$ (and), $\\vee$ (or), $\\neg$ (not), and variables also called literals or propositions. We consider the derived operators $\\varphi _ { 1 } \\varphi _ { 2 } \\equiv \\lnot \\varphi _ { 1 } \\lor \\varphi _ { 2 }$ (implication), $\\varphi _ { 1 } \\varphi _ { 2 } \\equiv ( \\varphi _ { 1 } \\varphi _ { 2 } ) \\wedge ( \\varphi _ { 2 } $ $\\varphi _ { 1 }$ ) (equivalence), and $\\varphi _ { 1 } \\oplus \\varphi _ { 2 } \\equiv \\lnot ( \\varphi _ { 1 } \\varphi _ { 2 } )$ (xor). Given a propositional Boolean formula $\\varphi$ , the satisfiability problem asks if there exists a Boolean assignment $\\Pi : \\mathcal { V } \\mapsto \\mathbb { B }$ for every literal in $\\varphi$ such that $\\varphi$ evaluates to true. For example, consider the following propositional formula, given in conjunctive normal form (CNF): $( x _ { 1 } \\lor x _ { 2 } \\lor \\neg x _ { 3 } ) \\land ( \\neg x _ { 1 } \\lor x _ { 3 } )$ . A possible satisfying assignment for this formula would be $\\{ ( x _ { 1 } , t r u e ) , ( x _ { 2 } , f a l s e ) , ( x _ { 3 } , t r u e ) \\} .$ . We allow a satisfying assignment to be partial, i.e., if the truth value of a propositions can be arbitrary, it will be omitted. For example, $\\{ ( x _ { 1 } , t r u e ) , ( x _ { 3 } , t r u e ) \\}$ would be a satisfying partial assignment for the formula above. We define a minimal unsatisfiable core of an unsatisfiable formula $\\varphi$ , given in CNF, as an unsatisfiable subset of clauses $\\varphi _ { c o r e }$ of $\\varphi$ , such that every proper subset of clauses of $\\varphi _ { c o r e }$ is still satisfiable. ",
450
+ "bbox": [
451
+ 173,
452
+ 414,
453
+ 825,
454
+ 594
455
+ ],
456
+ "page_idx": 4
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "We, again, generated 1 million random formulas. For the generation of propositional formulas, the specified node distribution puts equal weight on $\\wedge , \\vee$ , and $\\neg$ operators and half as much weight on the derived operators and $\\oplus$ individually. In contrast to previous work (Selsam et al., 2019), which is restricted to formulas in CNF, we allow an arbitrary formula structure and derived operators. ",
461
+ "bbox": [
462
+ 174,
463
+ 602,
464
+ 825,
465
+ 657
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "A satisfying assignment is represented as an alternating sequence of propositions and truth values, given as 0 and 1. The sequence $a 0 b 1 c 0$ , for example, represents the partial assignment $\\{ ( a , f a l s e ) , ( b , t r u e ) , ( c , f a l s e ) \\}$ , meaning that the truth values of propositions $d$ and $e$ can be chosen arbitrarily (note that we allow five propositions). We used pyaiger (Vazquez-Chanlatte, 2018), which builds on Glucose 4 (Audemard & Simon, 2018) as its underlying SAT solver. We construct the partial assignments with a standard method in SAT solving: We query the SAT solver for a minimal unsatisfiable core of the negation of the formula. To give the interested reader an idea of the level of difficulty of the dataset, the following table shows three random examples from our training set PropRandom35. The first line shows the formula and the assignment in mathematical notation. The second line shows the syntactic representation (in Polish notation): ",
472
+ "bbox": [
473
+ 173,
474
+ 664,
475
+ 825,
476
+ 804
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "table",
482
+ "img_path": "images/072d20b6a106f608f1a178a4eac98451c4f09b99a2a8070fa36168e9e1c0d9b1.jpg",
483
+ "table_caption": [],
484
+ "table_footnote": [],
485
+ "table_body": "<table><tr><td rowspan=1 colspan=1>propositional formula</td><td rowspan=1 colspan=1>satisfying partial assignment</td></tr><tr><td rowspan=1 colspan=1>((d△-e)∧(-aV-e))←→((-④(-b↔-e))v((e④(b^d))④-(-cv(-a←e))))&lt;-&gt;&amp;&amp;d!e|!a!e|xor!b&lt;-&gt;!b!exorxore&amp;bd!|!c&lt;-&gt;!ae</td><td rowspan=1 colspan=1>{(a,0),(b,0),(c,1),(d,1),(e,0))a0b0cldle0</td></tr><tr><td rowspan=1 colspan=1>(cVe)v(-a&gt;-b)Ilce&lt;-&gt;!a!b</td><td rowspan=1 colspan=1>{c,1)}c1</td></tr><tr><td rowspan=1 colspan=1>-((bve)④((-av(-d&gt;-e))v(-bν(((-a&gt;b)&gt;-b)&gt;d))))!xor!bell!a&lt;-&gt;!d!e!I!b&amp;&amp;&amp;!ab!b!d</td><td rowspan=1 colspan=1>{(d,1),(e,1)}dle1</td></tr></table>",
486
+ "bbox": [
487
+ 196,
488
+ 814,
489
+ 805,
490
+ 928
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "image",
496
+ "img_path": "images/fdb9dc311abf6b49d3346e87fc32c0b3886ed4d43286bb4853abef7d9b063e0d.jpg",
497
+ "image_caption": [
498
+ "Figure 2: Overview of our main experimental results: the performance of our best performing models on our different datasets. The percentage of a dark green bar refers to the syntactic accuracy, the percentage of a light green bar to the semantic accuracy without the syntactic accuracy, and the incorrect predictions are visualized in orange. "
499
+ ],
500
+ "image_footnote": [],
501
+ "bbox": [
502
+ 207,
503
+ 106,
504
+ 789,
505
+ 258
506
+ ],
507
+ "page_idx": 5
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "To test the Transformer on even more challenging formulas, we constructed a dataset of CNF formulas using the generation script of Selsam et al. (2019) from their publicly available implementation. A random CNF formula is built by adding clauses until the addition of a further clause would lead to an unsatisfiable formula. We used the parameters $p _ { g e o } = 0 . 9$ and $p _ { k 2 } = 0 . 7 5$ to generate formulas that contain up to 15 variables and have a maximum size of 250. We call this dataset PropCNF 250. ",
512
+ "bbox": [
513
+ 174,
514
+ 361,
515
+ 825,
516
+ 431
517
+ ],
518
+ "page_idx": 5
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "4 EXPERIMENTAL SETUP ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 176,
526
+ 452,
527
+ 398,
528
+ 467
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "We have implemented the Transformer architecture (Vaswani et al., 2017). Our implementation processes the input and output sequences token-by-token. We trained on a single GPU (NVIDIA P100 or V100). All training has been done with a dropout rate of 0.1 and early stopping on the validation set. Note that the embedding size will automatically be floored to be divisible by the number of attention heads. The training of the best models took up to 50 hours. For the output decoding, we utilized a beam search (Wu et al., 2016), with a beam size of 3 and an $\\alpha$ of 1. ",
535
+ "bbox": [
536
+ 174,
537
+ 482,
538
+ 825,
539
+ 565
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Since the solution of a logical formula is not necessarily unique, we use two different measures of accuracy to evaluate the generalization to the semantics of the logics: we distinguish between the syntactic accuracy, i.e., the percentage where the Transformers prediction syntactically matches the output of our generator and the semantic accuracy, i.e., the percentage where the Transformer produced a different solution. We also differentiate between incorrect predictions and syntactically invalid outputs which, in fact, happens only in $0 . 1 \\%$ of the cases in LTLUnsolved254 . ",
546
+ "bbox": [
547
+ 174,
548
+ 573,
549
+ 823,
550
+ 657
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "In general, our best performing models used 8 layers, 8 attention heads, and an FC size of 1024. We used a batch size of 400 and trained for $4 5 0 K$ steps (130 epochs) for our specification pattern dataset, and a batch size of 768 and trained for $5 0 K$ steps (48 epochs) for our random formula dataset. A hyperparameter study can be found in Appendix C. ",
557
+ "bbox": [
558
+ 176,
559
+ 664,
560
+ 823,
561
+ 719
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "5 EXPERIMENTAL RESULTS ",
568
+ "text_level": 1,
569
+ "bbox": [
570
+ 176,
571
+ 739,
572
+ 419,
573
+ 756
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "In this section, we describe our experimental results. First, we show that a Transformer can indeed solve the task of providing a solution, i.e., a trace for a linear-time temporal logical (LTL) formula. For this, we describe the results from training on the dataset LTLPattern126 of specification patterns that are commonly used in the context of verification. Secondly, we show two generalization properties that the Transformer evinces on logic reasoning tasks: 1) the generalization to larger formulas (even so large that our data generator timed out) and 2) the generalization to the semantics of the logic. We strengthen this observation by considering a different dataset of random LTL formulas. Thirdly, we provide results for a model trained on a different logic and with a different data generator. We thereby demonstrate that the generalization behaviors of the Transformer are not specific to LTL and the LTL solver implemented with spot that we used to generate the data. An overview of our training results is displayed in Figure 2. ",
580
+ "bbox": [
581
+ 173,
582
+ 770,
583
+ 825,
584
+ 924
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "image",
590
+ "img_path": "images/259e39d68cfc075f12cd17aab8094a0d4b8f12fbb027b4d69c70ab5cd9828641.jpg",
591
+ "image_caption": [
592
+ "Figure 3: Predictions of our best performing model, trained on LTLUnsolved254 , on 5704 specification patterns for which spot timed out $( > 6 0 s )$ . Semantic accuracy is displayed in green; incorrect traces in orange; syntactically invalid traces in red. "
593
+ ],
594
+ "image_footnote": [],
595
+ "bbox": [
596
+ 223,
597
+ 123,
598
+ 759,
599
+ 306
600
+ ],
601
+ "page_idx": 6
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "5.1 SOLVING LINEAR-TIME TEMPORAL LOGICAL FORMULAS ",
606
+ "bbox": [
607
+ 174,
608
+ 397,
609
+ 612,
610
+ 411
611
+ ],
612
+ "page_idx": 6
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "We trained a Transformer on our specification on LTLPattern126 . Figure 1 in the introduction displays the performance of our best model on this dataset. We observed a syntactic accuracy of $6 9 . 1 \\%$ and a semantic accuracy of $9 6 . 8 \\%$ . With this experiment we can already deduce that it seems easier for the Transformer to learn the underlying semantics of LTL than to learn the particularities of the generator. Further we can see that as the formula length grows, the syntactic accuracy begins to drop. However, that drop is much smaller in the semantic accuracy—the model still mostly predicts correct traces for long formulas. ",
617
+ "bbox": [
618
+ 174,
619
+ 426,
620
+ 825,
621
+ 523
622
+ ],
623
+ "page_idx": 6
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "As a challenging benchmark, we tested our best performing model on LTLUnsolved254 . It predicted correct solutions in $8 3 \\%$ of the cases, taking on average $1 5 s$ on a single CPU. The syntactic accuracy is $0 \\%$ as there was no output produced by spot within the timeout. The results of the experiments are visualized in Figure 3. Note that this does not mean that our Transformer models necessariy outperform classical algorithms across the board. However, since verifying solutions to LTL formulas is much easier than finding solutions $( \\mathbf { A C } ^ { 1 } ( \\log \\mathrm { D C F L } )$ vs PSPACE), this experiment shows that the predictions of a deep neural network can be a valuable extension to the verification tool box. ",
628
+ "bbox": [
629
+ 174,
630
+ 530,
631
+ 825,
632
+ 641
633
+ ],
634
+ "page_idx": 6
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "5.2 GENERALIZATION PROPERTIES",
639
+ "text_level": 1,
640
+ "bbox": [
641
+ 176,
642
+ 665,
643
+ 429,
644
+ 679
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "To prove that the generalization to the semantics is independent of the data generation, we also trained a model on a dataset of randomly generated formulas. The unshaded part of Figure 4 displays the performance of our best model on the LTLRandom35 dataset. The Transformers were solely trained on formulas of size less or equal to 35. We observe that in this range the exact syntactic accuracy decreases when the formulas grow in size. The semantic accuracy, however, stays, again, high. The model achieves a syntactic accuracy of $8 3 . 8 \\%$ and a semantic accuracy of ${ \\dot { 9 } } 8 . 5 \\%$ on LTLRandom35, i.e., in $1 4 . 7 \\%$ of the cases, the Transformer deviates from our automaton-based data generator. The evolution of the syntactic and the semantic accuracy during training can be found in Appendix D. ",
651
+ "bbox": [
652
+ 174,
653
+ 694,
654
+ 825,
655
+ 819
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "To show that the generalization to larger formulas is independent from the data generation method, we also tested how well the Transformer generalizes to randomly generated LTL formulas of a size it has never seen before. We used our model trained on LTLRandom35 and observed the performance on LTLRandom50. The model preserves the semantic generalization, displayed in the shaded part of Figure 4. It outputs exact syntactic matches in $6 7 . 6 \\%$ of the cases and achieves a semantic accuracy of $9 2 . 2 \\%$ . For the generalization to larger formulas we utilized a positional encoding based on the tree representation of the formula (Shiv & Quirk, 2019). When using the standard positional encoding instead, the accuracy drops, as expected, significantly. A visualization of this experiments can be found in Appendix E. ",
662
+ "bbox": [
663
+ 174,
664
+ 827,
665
+ 823,
666
+ 924
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "",
673
+ "bbox": [
674
+ 171,
675
+ 103,
676
+ 823,
677
+ 132
678
+ ],
679
+ "page_idx": 7
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "In a further experiment, we tested the out-of-distribution (OOD) generalization of the Transformer on the trace generation task. We generated a new dataset LTLRandom126 to match the formula sizes and the vocabulary of LTLPattern126. A model trained on LTLRandom126 achieves a semantic accuracy of $2 4 . 7 \\%$ (and a syntactic accuracy of only $1 . 0 \\%$ ) when tested on LTLPattern126. Vice versa, a model trained on LTLPattern126 achieves a semantic accuracy of $3 8 . 5 \\%$ (and a semantic accuracy of only $0 . 5 \\%$ ) when tested on LTLRandom126. Testing the models OOD increases the gap between syntactic and semantic correctness dramatically. This underlines that the models learned the nature of the LTL semantics rather than the generator process. Note that the two distributions are very different. ",
684
+ "bbox": [
685
+ 174,
686
+ 138,
687
+ 825,
688
+ 263
689
+ ],
690
+ "page_idx": 7
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Following these observations, we also tested the performance of our models on other patterns from the literature. We observe a higher semantic accuracy for our model trained on random formulas and a higher gap between semantic and syntactic accuracy for our model trained on pattern formulas: ",
695
+ "bbox": [
696
+ 174,
697
+ 271,
698
+ 825,
699
+ 314
700
+ ],
701
+ "page_idx": 7
702
+ },
703
+ {
704
+ "type": "table",
705
+ "img_path": "images/5aed76bf4abe0424a9630cbec6729d50948d731f16bad15d57066dd2c1df6a75.jpg",
706
+ "table_caption": [],
707
+ "table_footnote": [],
708
+ "table_body": "<table><tr><td>Patterns</td><td>Number of Patterns</td><td>Trained on</td><td>Syn. Acc.</td><td>Sem. Acc.</td></tr><tr><td>dac (Dwyer et al., 1998) eh (Etessami &amp; Holzmann,2000) hkrss (Holeek et al., 2004)</td><td>55 11 49</td><td>LTLRandom126 LTLRandom126 LTLRandom126</td><td>49.1% 81.8% 71.4%</td><td>81.8% 90.9% 83.7%</td></tr><tr><td>p (Pelanek,2007) eh (Etessami &amp; Holzmann,2000) hkrss (Holecek et al.,2004) p (Pelanek,2007)</td><td>20 11 49 20</td><td>LTLRandom126 LTLPattern126 LTLPattern126 LTLPattern126</td><td>65.0% 0.0% 14.3% 10.0%</td><td>90.0% 36.4% 49.0% 60.0%</td></tr></table>",
709
+ "bbox": [
710
+ 176,
711
+ 319,
712
+ 805,
713
+ 424
714
+ ],
715
+ "page_idx": 7
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "In a last experiment on LTL, we tested the performance of our models on handcrafted formulas. We observed that formulas with multiple until statements that describe overlapping intervals were the most challenging. This is no surprise as these formulas are the source of PSPACE-hardness of LTL. ",
720
+ "bbox": [
721
+ 174,
722
+ 429,
723
+ 825,
724
+ 472
725
+ ],
726
+ "page_idx": 7
727
+ },
728
+ {
729
+ "type": "equation",
730
+ "img_path": "images/97b855a68650edd962ce75da8ec2bb6b8abda03ab895019c192bc4de1dd7b9f5.jpg",
731
+ "text": "$$\n\\begin{array} { c c } { { \\begin{array} { r l } { - a \\mathcal { U } b \\wedge a \\mathcal { U } \\neg b } \\end{array} } } & { { \\begin{array} { r l } { ( a \\wedge \\neg b ) ( b ) ( t r u e ) ^ { \\omega } } } & { { } } \\\\ { \\& \\mathrm { a : b : b : \\left\\{ 1 \\right\\} } } \\end{array} } \\end{array}\n$$",
732
+ "text_format": "latex",
733
+ "bbox": [
734
+ 344,
735
+ 479,
736
+ 651,
737
+ 513
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "While the above formula can be solved by most models, when scaling this formula to four overlapping until intervals, all of our models fail: For example, a model trained on LTLRandom35 predicted the trace $( a \\wedge b \\wedge c ) ( a \\wedge \\neg b \\wedge \\neg c ) ( b \\wedge c ) ( t r u e ) ^ { \\omega }$ , which does not satisfy the LTL formula. ",
744
+ "bbox": [
745
+ 174,
746
+ 522,
747
+ 825,
748
+ 565
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "table",
754
+ "img_path": "images/7052a84a551350df7e2bca5adddc4fd1b29b7d56f789f4b7685931eb4852d943.jpg",
755
+ "table_caption": [],
756
+ "table_footnote": [],
757
+ "table_body": "<table><tr><td>(aub^c) ^ (au-b∧c) ^ (aub^-c) ^ (au-b^ -c) )(a∧b∧c)(a∧-b∧-c)(b∧c)(true)ä</td></tr><tr><td>&amp;&amp;&amp;Ua&amp;bcUa&amp;!bcUa&amp;b!cUa&amp;!b!c &amp;&amp;abc;&amp;&amp;a!b!c;&amp;bc;1</td></tr></table>",
758
+ "bbox": [
759
+ 178,
760
+ 585,
761
+ 833,
762
+ 616
763
+ ],
764
+ "page_idx": 7
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "5.3 PREDICTING ASSIGNMENTS FOR PROPOSITIONAL LOGIC ",
769
+ "text_level": 1,
770
+ "bbox": [
771
+ 173,
772
+ 631,
773
+ 607,
774
+ 645
775
+ ],
776
+ "page_idx": 7
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "To show that the generalization to the semantic is not a specific property of LTL, we trained a Transformer to solve the assignment generation problem for propositional logic, which is a substantially different logical problem. ",
781
+ "bbox": [
782
+ 174,
783
+ 656,
784
+ 825,
785
+ 699
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "table",
791
+ "img_path": "images/28f827f34996afeac968e157ae913cd277301e4117d12f6bfff805e8401e7543.jpg",
792
+ "table_caption": [
793
+ "As a baseline for our generalization experiments on propositional logic, we trained and tested a Transformer model with the following hyperparameter on PropRandom35: "
794
+ ],
795
+ "table_footnote": [],
796
+ "table_body": "<table><tr><td>Embedding size</td><td>Layers</td><td>Heads</td><td>FC size</td><td>Batch Size Train Steps</td><td>Syn. Acc. Sem. Acc.</td></tr><tr><td>enc:128, dec:64</td><td>6</td><td>6</td><td>512 1024</td><td>50K</td><td>58.1% 96.5%</td></tr></table>",
797
+ "bbox": [
798
+ 176,
799
+ 741,
800
+ 818,
801
+ 771
802
+ ],
803
+ "page_idx": 7
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "We observe a striking $3 8 . 4 \\%$ gap between predictions that were syntactical matches of our DPLLbased generator and correct predictions of the Transformer. Only ${ \\dot { 3 } } . 5 \\%$ of the time, the Transformer outputs an incorrect assignment. Note that we allow the derived operators $\\oplus$ and in these experiments, which succinctly represent complicated logical constructs. ",
808
+ "bbox": [
809
+ 173,
810
+ 777,
811
+ 823,
812
+ 833
813
+ ],
814
+ "page_idx": 7
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "The formula $b \\lor \\neg ( a \\land d )$ occurs in our dataset PropRandom35 and its corresponding assignment is $\\{ ( a , 0 ) \\}$ . The Transformer, however, outputs $\\mathtt { d 0 }$ , i.e., it goes with the assignment of setting $d$ to false, which is also a correct solution. A visualization of this example can be found in Appendix F. When the formulas get larger, the solutions where the Transformer differs from the DPLL algorithm accumulate. Consider, for example, the formula $\\lnot b \\lor ( e b \\lor c \\lor \\lnot d ) \\lor ( c \\land ( b \\oplus ( a \\oplus \\lnot d ) ) \\lnot ( \\lnot c $ $d ) \\wedge ( a ( b \\oplus ( b \\oplus e ) ) )$ ), which is also in the dataset PropRandom35. The generator suggests the assignment $\\{ ( a , 1 ) , ( c , 1 ) , ( d , 0 ) \\}$ . The Transformer, however, outputs $e 0$ , i.e., the singleton assignment of setting $e$ to false, which turns out to be a (very small) solution as well. ",
819
+ "bbox": [
820
+ 173,
821
+ 839,
822
+ 825,
823
+ 924
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "image",
829
+ "img_path": "images/f3c2414b6c96721bb0325493dc03744acf0e638251d4a1f2fa2029c6edf4b63c.jpg",
830
+ "image_caption": [
831
+ "Figure 4: Syntactic and semantic accuracy of our best performing model (only trained on LTLRandom35 ) on LTLRandom50 . Dark green is syntactically correct; light green is semantically correct, orange is incorrect. "
832
+ ],
833
+ "image_footnote": [],
834
+ "bbox": [
835
+ 204,
836
+ 103,
837
+ 776,
838
+ 228
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "",
845
+ "bbox": [
846
+ 173,
847
+ 305,
848
+ 823,
849
+ 333
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "We achieved stable training in this experiment by setting the decoder embedding size to either 64 or even 32. Keeping the decoder embedding size at 128 led to very unstable training. ",
856
+ "bbox": [
857
+ 173,
858
+ 340,
859
+ 823,
860
+ 369
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "We also tested whether the generalization to the semantics is preserved when the Transformer encounters propositional formulas of a larger size than it ever saw during training. We, again, utilized the tree positional encoding. When challenged with formulas of size 35 to 50, our best performing model trained on PropRandom35 achieves a syntactic accuracy of $3 5 . 8 \\%$ and a semantic accuracy of $8 6 . 1 \\%$ . In comparison, without the tree positional encoding, the Transformer achieves a syntactic match of only $2 9 . 0 \\%$ and an overall accuracy of only $7 5 . 7 \\%$ . Note that both positional encodings work equally well when not considering larger formulas. ",
867
+ "bbox": [
868
+ 174,
869
+ 376,
870
+ 825,
871
+ 473
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "In a last experiment, we tested how the Transformer performs on more challenging propositional formulas in CNF. We thus trained a model on PropCNF 250, where it achieved a semantic accuracy of $6 5 . 1 \\%$ and a syntactic accuracy of $5 6 . 6 \\%$ . We observe a slightly lower gap compared to our LTL experiments. The Transformer, however, still deviates even on such formulas from the generator. ",
878
+ "bbox": [
879
+ 174,
880
+ 481,
881
+ 823,
882
+ 536
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "6 CONCLUSION ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 176,
892
+ 556,
893
+ 318,
894
+ 571
895
+ ],
896
+ "page_idx": 8
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "We trained a Transformer to predict solutions to linear-time temporal logical (LTL) formulas. We observed that our trained models evince powerful generalization properties, namely, the generalization to the semantics of the logic, and the generalization to larger formulas than seen during training. We showed that these generalizations do not depend on the underlying logical problem nor on the data generator. Regarding the performance of the trained models, we observed that they can compete with classical algorithms for generating solutions to LTL formulas. We built a test set that contained only formulas that were generated out of practical verification patterns, on which even our data generator timed out. Our best performing model, although it was trained on much smaller formulas, predicts correct traces $8 3 \\%$ of the time. ",
901
+ "bbox": [
902
+ 174,
903
+ 587,
904
+ 825,
905
+ 712
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "The results of this paper suggest that deep learning can already augment combinatorial approaches in automatic verification and the broader formal methods community. With the results of this paper, we can, for example, derive novel algorithms for trace generation or satisfiability checking of LTL that first query a Transformer for trace predictions. These predictions can be checked efficiently. Classical methods can serve as a fall back or check partial solutions providing guidance to the Transformer. The potential that arises from the advent of deep learning in logical reasoning is immense. Deep learning holds the promise to empower researchers in the automated reasoning and formal methods communities to make bigger jumps in the development of new automated verification methods, but also brings new challenges, such as the acquisition of large amounts of data. ",
912
+ "bbox": [
913
+ 174,
914
+ 719,
915
+ 825,
916
+ 844
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "ACKNOWLEDGEMENTS ",
923
+ "text_level": 1,
924
+ "bbox": [
925
+ 176,
926
+ 866,
927
+ 366,
928
+ 880
929
+ ],
930
+ "page_idx": 8
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "We thank Christian Szegedy, Jesko Hecking-Harbusch, and Niklas Metzger for their valuable feedback on an earlier version of this paper. ",
935
+ "bbox": [
936
+ 174,
937
+ 895,
938
+ 821,
939
+ 924
940
+ ],
941
+ "page_idx": 8
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "REFERENCES ",
946
+ "text_level": 1,
947
+ "bbox": [
948
+ 176,
949
+ 102,
950
+ 287,
951
+ 118
952
+ ],
953
+ "page_idx": 9
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. arXiv preprint arXiv:1711.00740, 2017. ",
958
+ "bbox": [
959
+ 173,
960
+ 126,
961
+ 823,
962
+ 155
963
+ ],
964
+ "page_idx": 9
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Gilles Audemard and Laurent Simon. On the glucose SAT solver. Int. J. Artif. Intell. Tools, 27 (1):1840001:1–1840001:25, 2018. doi: 10.1142/S0218213018400018. URL https://doi. org/10.1142/S0218213018400018. ",
969
+ "bbox": [
970
+ 176,
971
+ 165,
972
+ 823,
973
+ 208
974
+ ],
975
+ "page_idx": 9
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "Mislav Balunovic, Pavol Bielik, and Martin Vechev. Learning to solve smt formulas. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 10317– 10328. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 8233-learning-to-solve-smt-formulas.pdf. ",
980
+ "bbox": [
981
+ 173,
982
+ 218,
983
+ 825,
984
+ 287
985
+ ],
986
+ "page_idx": 9
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Kshitij Bansal, Sarah M Loos, Markus N Rabe, Christian Szegedy, and Stewart Wilcox. HOList: An environment for machine learning of higher-order theorem proving. In arXiv preprint arXiv:1904.03241, 2019. ",
991
+ "bbox": [
992
+ 173,
993
+ 297,
994
+ 826,
995
+ 340
996
+ ],
997
+ "page_idx": 9
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "S. Bhatia, P. Kohli, and R. Singh. Neuro-symbolic program corrector for introductory programming assignments. In 2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE), pp. 60–70, May 2018. doi: 10.1145/3180155.3180219. ",
1002
+ "bbox": [
1003
+ 173,
1004
+ 351,
1005
+ 821,
1006
+ 393
1007
+ ],
1008
+ "page_idx": 9
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Jasmin Christian Blanchette, Cezary Kaliszyk, Lawrence C Paulson, and Josef Urban. Hammering towards QED. Journal of Formalized Reasoning, 9(1):101–148, 2016. ",
1013
+ "bbox": [
1014
+ 168,
1015
+ 404,
1016
+ 823,
1017
+ 433
1018
+ ],
1019
+ "page_idx": 9
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. 2020. ",
1024
+ "bbox": [
1025
+ 173,
1026
+ 443,
1027
+ 825,
1028
+ 526
1029
+ ],
1030
+ "page_idx": 9
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Paul Cairns. Informalising formal mathematics: Searching the mizar library with latent semantics. In International Conference on Mathematical Knowledge Management, pp. 58–72. Springer, 2004. ",
1035
+ "bbox": [
1036
+ 173,
1037
+ 536,
1038
+ 823,
1039
+ 566
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Tommaso Dreossi, Alexandre Donze, and Sanjit A Seshia. Compositional falsification of cyber- ´ physical systems with machine learning components. Journal of Automated Reasoning, 63(4): 1031–1053, 2019. ",
1046
+ "bbox": [
1047
+ 173,
1048
+ 575,
1049
+ 821,
1050
+ 618
1051
+ ],
1052
+ "page_idx": 9
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Alexandre Duret-Lutz, Alexandre Lewkowicz, Amaury Fauchille, Thibaud Michaud, Etienne Renault, and Laurent Xu. Spot 2.0—a framework for ltl and $\\omega$ -automata manipulation. In International Symposium on Automated Technology for Verification and Analysis, pp. 122–129. Springer, 2016. ",
1057
+ "bbox": [
1058
+ 174,
1059
+ 628,
1060
+ 825,
1061
+ 685
1062
+ ],
1063
+ "page_idx": 9
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "Matthew B. Dwyer, George S. Avrunin, and James C. Corbett. Property specification patterns for finite-state verification. In Mark A. Ardis and Joanne M. Atlee (eds.), Proceedings of the Second Workshop on Formal Methods in Software Practice, March 4-5, 1998, Clearwater Beach, Florida, USA, pp. 7–15. ACM, 1998. doi: 10.1145/298595.298598. URL https://doi.org/10. 1145/298595.298598. ",
1068
+ "bbox": [
1069
+ 173,
1070
+ 695,
1071
+ 825,
1072
+ 765
1073
+ ],
1074
+ "page_idx": 9
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Kousha Etessami and Gerard J. Holzmann. Optimizing buchi automata. In Catuscia Palamidessi ¨ (ed.), CONCUR 2000 - Concurrency Theory, 11th International Conference, University Park, PA, USA, August 22-25, 2000, Proceedings, volume 1877 of Lecture Notes in Computer Science, pp. 153–167. Springer, 2000. doi: 10.1007/3-540-44618-4\\ 13. URL https://doi.org/10. 1007/3-540-44618-4_13. ",
1079
+ "bbox": [
1080
+ 173,
1081
+ 775,
1082
+ 825,
1083
+ 847
1084
+ ],
1085
+ "page_idx": 9
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Richard Evans, David Saxton, David Amos, Pushmeet Kohli, and Edward Grefenstette. Can neural networks understand logical entailment? arXiv preprint arXiv:1802.08535, 2018. ",
1090
+ "bbox": [
1091
+ 169,
1092
+ 856,
1093
+ 823,
1094
+ 886
1095
+ ],
1096
+ "page_idx": 9
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Patrick Fernandes, Miltiadis Allamanis, and Marc Brockschmidt. Structured neural summarization. arXiv preprint arXiv:1811.01824, 2018. ",
1101
+ "bbox": [
1102
+ 173,
1103
+ 895,
1104
+ 820,
1105
+ 924
1106
+ ],
1107
+ "page_idx": 9
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Thibault Gauthier, Cezary Kaliszyk, and Josef Urban. Tactictoe: Learning to reason with hol4 tactics. arXiv preprint arXiv:1804.00595, 2018. ",
1112
+ "bbox": [
1113
+ 171,
1114
+ 103,
1115
+ 823,
1116
+ 132
1117
+ ],
1118
+ "page_idx": 10
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Timon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov, Swarat Chaudhuri, and Martin Vechev. Ai2: Safety and robustness certification of neural networks with abstract interpretation. In 2018 IEEE Symposium on Security and Privacy (SP), pp. 3–18. IEEE, 2018. ",
1123
+ "bbox": [
1124
+ 174,
1125
+ 141,
1126
+ 821,
1127
+ 185
1128
+ ],
1129
+ "page_idx": 10
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1263–1272. JMLR. org, 2017. ",
1134
+ "bbox": [
1135
+ 173,
1136
+ 194,
1137
+ 823,
1138
+ 238
1139
+ ],
1140
+ "page_idx": 10
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "Rahul Gupta, Soham Pal, Aditya Kanade, and Shirish Shevade. Deepfix: Fixing common C language errors by deep learning. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. ",
1145
+ "bbox": [
1146
+ 173,
1147
+ 246,
1148
+ 823,
1149
+ 276
1150
+ ],
1151
+ "page_idx": 10
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pp. 1026–1034, 2015. doi: 10.1109/ICCV.2015.123. URL https://doi.org/10.1109/ICCV.2015.123. ",
1156
+ "bbox": [
1157
+ 173,
1158
+ 284,
1159
+ 825,
1160
+ 342
1161
+ ],
1162
+ "page_idx": 10
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Vincent J. Hellendoorn, Charles Sutton, Rishabh Singh, and Petros Maniatis. Global relational models of source code. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ B1lnbRNtwr. ",
1167
+ "bbox": [
1168
+ 176,
1169
+ 351,
1170
+ 823,
1171
+ 393
1172
+ ],
1173
+ "page_idx": 10
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Jan Holecek, Tom ˇ a´s Kratochv ˇ ´ıla, Vojtech ˇ Reh ˇ ak, David ´ Safr ˇ anek, Pavel ´ Sime ˇ cek, et al. Verification ˇ results in liberouter project, 2004. ",
1178
+ "bbox": [
1179
+ 171,
1180
+ 401,
1181
+ 823,
1182
+ 433
1183
+ ],
1184
+ "page_idx": 10
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Daniel Huang, Prafulla Dhariwal, Dawn Song, and Ilya Sutskever. Gamepad: A learning environment for theorem proving. arXiv preprint arXiv:1806.00608, 2018. ",
1189
+ "bbox": [
1190
+ 171,
1191
+ 440,
1192
+ 823,
1193
+ 470
1194
+ ],
1195
+ "page_idx": 10
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Xiaowei Huang, Marta Kwiatkowska, Sen Wang, and Min Wu. Safety verification of deep neural networks. In International Conference on Computer Aided Verification, pp. 3–29. Springer, 2017. ",
1200
+ "bbox": [
1201
+ 171,
1202
+ 479,
1203
+ 823,
1204
+ 510
1205
+ ],
1206
+ "page_idx": 10
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "IEEE-Commission et al. Ieee standard for property specification language (psl). IEEE Std 1850- 2005, 2005. ",
1211
+ "bbox": [
1212
+ 169,
1213
+ 517,
1214
+ 823,
1215
+ 547
1216
+ ],
1217
+ "page_idx": 10
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Cezary Kaliszyk and Josef Urban. Learning-assisted automated reasoning with flyspeck. Journal of Automated Reasoning, 53(2):173–213, 2014. ",
1222
+ "bbox": [
1223
+ 173,
1224
+ 556,
1225
+ 821,
1226
+ 585
1227
+ ],
1228
+ "page_idx": 10
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Cezary Kaliszyk, Franc¸ois Chollet, and Christian Szegedy. HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Proving. In Proceedings of International Conference on Learning Representations (ICLR), 2017. ",
1233
+ "bbox": [
1234
+ 173,
1235
+ 594,
1236
+ 826,
1237
+ 638
1238
+ ],
1239
+ "page_idx": 10
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Guillaume Lample and Franc¸ois Charton. Deep learning for symbolic mathematics. In ICLR, 2020. ",
1244
+ "bbox": [
1245
+ 171,
1246
+ 647,
1247
+ 821,
1248
+ 664
1249
+ ],
1250
+ "page_idx": 10
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Gil Lederman, Markus N. Rabe, Edward A. Lee, and Sanjit A. Seshia. Learning heuristics for quantified boolean formulas through deep reinforcement learning. 2020. URL http://arxiv. org/abs/1807.08058. ",
1255
+ "bbox": [
1256
+ 173,
1257
+ 671,
1258
+ 821,
1259
+ 714
1260
+ ],
1261
+ "page_idx": 10
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Dennis Lee, Christian Szegedy, Markus N. Rabe, Sarah M. Loos, and Kshitij Bansal. Mathematical reasoning in latent space. 2020. ",
1266
+ "bbox": [
1267
+ 171,
1268
+ 724,
1269
+ 823,
1270
+ 753
1271
+ ],
1272
+ "page_idx": 10
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Jianwen Li, Lijun Zhang, Geguang Pu, Moshe Y. Vardi, and Jifeng He. LTL satisfiability checking revisited. In Cesar S ´ anchez, Kristen Brent Venable, and Esteban Zim ´ anyi (eds.), ´ 2013 20th International Symposium on Temporal Representation and Reasoning, Pensacola, FL, USA, September 26-28, 2013, pp. 91–98. IEEE Computer Society, 2013. doi: 10.1109/TIME.2013.19. URL https://doi.org/10.1109/TIME.2013.19. ",
1277
+ "bbox": [
1278
+ 173,
1279
+ 762,
1280
+ 825,
1281
+ 833
1282
+ ],
1283
+ "page_idx": 10
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Jianwen Li, Yinbo Yao, Geguang Pu, Lijun Zhang, and Jifeng He. Aalta: an ltl satisfiability checker over infinite/finite traces. In Proceedings of the 22nd ACM SIGSOFT international symposium on foundations of software engineering, pp. 731–734, 2014. ",
1288
+ "bbox": [
1289
+ 173,
1290
+ 843,
1291
+ 821,
1292
+ 886
1293
+ ],
1294
+ "page_idx": 10
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Wenda Li, Lei Yu, Yuhuai Wu, and Lawrence C. Paulson. Modelling high-level mathematical reasoning in mechanised declarative proofs. arXiv preprint arXiv:2006.09265, 2020. ",
1299
+ "bbox": [
1300
+ 173,
1301
+ 895,
1302
+ 820,
1303
+ 924
1304
+ ],
1305
+ "page_idx": 10
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926, 2017. ",
1310
+ "bbox": [
1311
+ 171,
1312
+ 103,
1313
+ 823,
1314
+ 133
1315
+ ],
1316
+ "page_idx": 11
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "Sarah Loos, Geoffrey Irving, Christian Szegedy, and Cezary Kaliszyk. Deep network guided proof search. In LPAR, 2017. ",
1321
+ "bbox": [
1322
+ 173,
1323
+ 140,
1324
+ 823,
1325
+ 169
1326
+ ],
1327
+ "page_idx": 11
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "Jia Meng and Lawrence C Paulson. Lightweight relevance filtering for machine-generated resolution problems. Journal of Applied Logic, 7(1):41–57, 2009. ",
1332
+ "bbox": [
1333
+ 171,
1334
+ 176,
1335
+ 823,
1336
+ 207
1337
+ ],
1338
+ "page_idx": 11
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "Matej Moravc´ık, Martin Schmid, Neil Burch, Viliam Lisy, Dustin Morrill, Nolan Bard, Trevor ´ Davis, Kevin Waugh, Michael Johanson, and Michael H. Bowling. Deepstack: Expert-level artificial intelligence in no-limit poker. CoRR, abs/1701.01724, 2017. URL http://arxiv. org/abs/1701.01724. ",
1343
+ "bbox": [
1344
+ 173,
1345
+ 213,
1346
+ 825,
1347
+ 270
1348
+ ],
1349
+ "page_idx": 11
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Aditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal, and Christian Szegedy. Graph representations for higher-order logic and theorem proving. In AAAI, 2020. ",
1354
+ "bbox": [
1355
+ 171,
1356
+ 277,
1357
+ 823,
1358
+ 308
1359
+ ],
1360
+ "page_idx": 11
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "Radek Pelanek. BEEM: benchmarks for explicit model checkers. In Dragan Bosnacki and Stefan ´ Edelkamp (eds.), Model Checking Software, 14th International SPIN Workshop, Berlin, Germany, July 1-3, 2007, Proceedings, volume 4595 of Lecture Notes in Computer Science, pp. 263–267. Springer, 2007. doi: 10.1007/978-3-540-73370-6\\ 17. URL https://doi.org/10.1007/ 978-3-540-73370-6_17. ",
1365
+ "bbox": [
1366
+ 173,
1367
+ 315,
1368
+ 825,
1369
+ 386
1370
+ ],
1371
+ "page_idx": 11
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "Chris Piech, Jonathan Huang, Andy Nguyen, Mike Phulsuksombati, Mehran Sahami, and Leonidas Guibas. Learning program embeddings to propagate feedback on student code. In International Conference on Machine Learning, pp. 1093–1102, 2015. ",
1376
+ "bbox": [
1377
+ 176,
1378
+ 393,
1379
+ 821,
1380
+ 436
1381
+ ],
1382
+ "page_idx": 11
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "Amir Pnueli. The temporal logic of programs. In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977, pp. 46–57, 1977. doi: 10.1109/SFCS.1977.32. URL https://doi.org/10.1109/SFCS.1977.32. ",
1387
+ "bbox": [
1388
+ 173,
1389
+ 444,
1390
+ 826,
1391
+ 487
1392
+ ],
1393
+ "page_idx": 11
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "Stanislas Polu and Ilya Sutskever. Generative language modeling for automated theorem proving, 2020. ",
1398
+ "bbox": [
1399
+ 173,
1400
+ 494,
1401
+ 823,
1402
+ 523
1403
+ ],
1404
+ "page_idx": 11
1405
+ },
1406
+ {
1407
+ "type": "text",
1408
+ "text": "Markus N. Rabe, Dennis Lee, Kshitij Bansal, and Christian Szegedy. Mathematical reasoning via self-supervised skip-tree training. 2020. ",
1409
+ "bbox": [
1410
+ 173,
1411
+ 531,
1412
+ 821,
1413
+ 560
1414
+ ],
1415
+ "page_idx": 11
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "Kristin Y Rozier and Moshe Y Vardi. Ltl satisfiability checking. In International SPIN Workshop on Model Checking of Software, pp. 149–167. Springer, 2007. ",
1420
+ "bbox": [
1421
+ 171,
1422
+ 568,
1423
+ 823,
1424
+ 598
1425
+ ],
1426
+ "page_idx": 11
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. Analysing mathematical reasoning abilities of neural models. CoRR, abs/1904.01557, 2019. URL http://arxiv.org/ abs/1904.01557. ",
1431
+ "bbox": [
1432
+ 176,
1433
+ 604,
1434
+ 823,
1435
+ 647
1436
+ ],
1437
+ "page_idx": 11
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008. ",
1442
+ "bbox": [
1443
+ 173,
1444
+ 655,
1445
+ 820,
1446
+ 685
1447
+ ],
1448
+ "page_idx": 11
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "Imanol Schlag, Paul Smolensky, Roland Fernandez, Nebojsa Jojic, Jurgen Schmidhuber, and Jian- ¨ feng Gao. Enhancing the transformer with explicit relational encoding for math problem solving. arXiv preprint arXiv:1910.06611, 2019. ",
1453
+ "bbox": [
1454
+ 173,
1455
+ 691,
1456
+ 823,
1457
+ 736
1458
+ ],
1459
+ "page_idx": 11
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "Stephan Schulz. System description: E 1.8. In International Conference on Logic for Programming Artificial Intelligence and Reasoning, pp. 735–743. Springer, 2013. ",
1464
+ "bbox": [
1465
+ 169,
1466
+ 742,
1467
+ 823,
1468
+ 773
1469
+ ],
1470
+ "page_idx": 11
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "Viktor Schuppan and Luthfi Darmawan. Evaluating ltl satisfiability solvers. In International Symposium on Automated Technology for Verification and Analysis, pp. 397–413. Springer, 2011. ",
1475
+ "bbox": [
1476
+ 173,
1477
+ 780,
1478
+ 823,
1479
+ 809
1480
+ ],
1481
+ "page_idx": 11
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "Stefan Schwendimann. A new one-pass tableau calculus for pltl. In International Conference on Automated Reasoning with Analytic Tableaux and Related Methods, pp. 277–291. Springer, 1998. ",
1486
+ "bbox": [
1487
+ 173,
1488
+ 816,
1489
+ 823,
1490
+ 847
1491
+ ],
1492
+ "page_idx": 11
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "Daniel Selsam and Nikolaj Bjørner. Guiding high-performance SAT solvers with unsat-core predictions. In Theory and Applications of Satisfiability Testing - SAT 2019 - 22nd International Conference, SAT 2019, Lisbon, Portugal, July 9-12, 2019, Proceedings, pp. 336– 353, 2019. doi: 10.1007/978-3-030-24258-9\\ 24. URL https://doi.org/10.1007/ 978-3-030-24258-9_24. ",
1497
+ "bbox": [
1498
+ 174,
1499
+ 854,
1500
+ 825,
1501
+ 924
1502
+ ],
1503
+ "page_idx": 11
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "Daniel Selsam, Matthew Lamm, Benedikt Bunz, Percy Liang, Leonardo de Moura, and David L. ¨ Dill. Learning a SAT solver from single-bit supervision. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ HJMC_iA5tm. ",
1508
+ "bbox": [
1509
+ 174,
1510
+ 103,
1511
+ 825,
1512
+ 160
1513
+ ],
1514
+ "page_idx": 12
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "Sanjit A. Seshia and Dorsa Sadigh. Towards verified artificial intelligence. CoRR, abs/1606.08514, 2016. URL http://arxiv.org/abs/1606.08514. ",
1519
+ "bbox": [
1520
+ 174,
1521
+ 170,
1522
+ 820,
1523
+ 199
1524
+ ],
1525
+ "page_idx": 12
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "Sanjit A Seshia, Ankush Desai, Tommaso Dreossi, Daniel J Fremont, Shromona Ghosh, Edward Kim, Sumukh Shivakumar, Marcell Vazquez-Chanlatte, and Xiangyu Yue. Formal specification for deep neural networks. In International Symposium on Automated Technology for Verification and Analysis, pp. 20–34. Springer, 2018. ",
1530
+ "bbox": [
1531
+ 173,
1532
+ 208,
1533
+ 825,
1534
+ 265
1535
+ ],
1536
+ "page_idx": 12
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "Vighnesh Leonardo Shiv and Chris Quirk. Novel positional encodings to enable tree-based transformers. In NeurIPS 2019, 2019. URL https://www.microsoft.com/en-us/research/publication/ novel-positional-encodings-to-enable-tree-based-transformers/. ",
1541
+ "bbox": [
1542
+ 173,
1543
+ 275,
1544
+ 825,
1545
+ 332
1546
+ ],
1547
+ "page_idx": 12
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017. ",
1552
+ "bbox": [
1553
+ 178,
1554
+ 342,
1555
+ 823,
1556
+ 385
1557
+ ],
1558
+ "page_idx": 12
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Gagandeep Singh, Timon Gehr, Markus Puschel, and Martin Vechev. An abstract domain for cer- ¨ tifying neural networks. Proceedings of the ACM on Programming Languages, 3(POPL):1–30, 2019. ",
1563
+ "bbox": [
1564
+ 176,
1565
+ 393,
1566
+ 823,
1567
+ 435
1568
+ ],
1569
+ "page_idx": 12
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2014, Columbus, OH, USA, June 23-28, 2014, pp. 1701–1708, 2014. doi: 10.1109/CVPR.2014.220. URL https://doi.org/10.1109/CVPR.2014.220. ",
1574
+ "bbox": [
1575
+ 173,
1576
+ 445,
1577
+ 825,
1578
+ 503
1579
+ ],
1580
+ "page_idx": 12
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "Josef Urban. MPTP–motivation, implementation, first experiments. Journal of Automated Reasoning, 33(3-4):319–339, 2004. ",
1585
+ "bbox": [
1586
+ 173,
1587
+ 512,
1588
+ 821,
1589
+ 542
1590
+ ],
1591
+ "page_idx": 12
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "Josef Urban. Malarea: a metasystem for automated reasoning in large theories. ESARLT, 257, 2007. ",
1596
+ "bbox": [
1597
+ 171,
1598
+ 551,
1599
+ 821,
1600
+ 568
1601
+ ],
1602
+ "page_idx": 12
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "text": "Josef Urban and Jan Jakubuv. First neural conjecturing datasets and experiments. In ˚ Conference on Intelligent Computer Mathematics, 2020. ",
1607
+ "bbox": [
1608
+ 169,
1609
+ 577,
1610
+ 823,
1611
+ 606
1612
+ ],
1613
+ "page_idx": 12
1614
+ },
1615
+ {
1616
+ "type": "text",
1617
+ "text": "Josef Urban, Geoff Sutcliffe, Petr Pudlak, and Ji ´ ˇr´ı Vyskocil. Malarea sg1-machine learner for auto- ˇ mated reasoning with semantic guidance. In International Joint Conference on Automated Reasoning, pp. 441–456. Springer, 2008. ",
1618
+ "bbox": [
1619
+ 173,
1620
+ 614,
1621
+ 823,
1622
+ 659
1623
+ ],
1624
+ "page_idx": 12
1625
+ },
1626
+ {
1627
+ "type": "text",
1628
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pp. 5998–6008, 2017. URL http: //papers.nips.cc/paper/7181-attention-is-all-you-need. ",
1629
+ "bbox": [
1630
+ 173,
1631
+ 667,
1632
+ 825,
1633
+ 739
1634
+ ],
1635
+ "page_idx": 12
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "text": "Marcell Vazquez-Chanlatte. mvcisback/py-aiger, August 2018. URL https://doi.org/10. 5281/zenodo.1326224. ",
1640
+ "bbox": [
1641
+ 173,
1642
+ 748,
1643
+ 818,
1644
+ 777
1645
+ ],
1646
+ "page_idx": 12
1647
+ },
1648
+ {
1649
+ "type": "text",
1650
+ "text": "Ke Wang, Rishabh Singh, and Zhendong Su. Dynamic neural program embedding for program repair. In ICLR, 2018. ",
1651
+ "bbox": [
1652
+ 171,
1653
+ 786,
1654
+ 821,
1655
+ 816
1656
+ ],
1657
+ "page_idx": 12
1658
+ },
1659
+ {
1660
+ "type": "text",
1661
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016. URL http://arxiv.org/abs/1609.08144. ",
1662
+ "bbox": [
1663
+ 176,
1664
+ 825,
1665
+ 825,
1666
+ 924
1667
+ ],
1668
+ "page_idx": 12
1669
+ },
1670
+ {
1671
+ "type": "text",
1672
+ "text": "Yuhuai Wu, Albert Jiang, Jimmy Ba, and Roger Grosse. INT: An Inequality Benchmark for Evaluating Generalization in Theorem Proving. arXiv preprint arXiv:2007.02924, 2020. ",
1673
+ "bbox": [
1674
+ 171,
1675
+ 103,
1676
+ 823,
1677
+ 132
1678
+ ],
1679
+ "page_idx": 13
1680
+ },
1681
+ {
1682
+ "type": "text",
1683
+ "text": "Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A comprehensive survey on graph neural networks. arXiv preprint arXiv:1901.00596, 2019. ",
1684
+ "bbox": [
1685
+ 173,
1686
+ 141,
1687
+ 823,
1688
+ 170
1689
+ ],
1690
+ "page_idx": 13
1691
+ },
1692
+ {
1693
+ "type": "text",
1694
+ "text": "Kaiyu Yang and Jia Deng. Learning to prove theorems via interacting with proof assistants. arXiv preprint arXiv:1905.09381, 2019. ",
1695
+ "bbox": [
1696
+ 173,
1697
+ 179,
1698
+ 823,
1699
+ 208
1700
+ ],
1701
+ "page_idx": 13
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "APPENDIX ",
1706
+ "text_level": 1,
1707
+ "bbox": [
1708
+ 176,
1709
+ 102,
1710
+ 264,
1711
+ 118
1712
+ ],
1713
+ "page_idx": 14
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "A LINEAR-TIME TEMPORAL LOGIC (LTL) ",
1718
+ "text_level": 1,
1719
+ "bbox": [
1720
+ 174,
1721
+ 133,
1722
+ 542,
1723
+ 151
1724
+ ],
1725
+ "page_idx": 14
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "In this section, we provide the formal syntax and semantics of Linear-time Temporal Logic (LTL). The formal syntax of LTL is given by the following grammar: ",
1730
+ "bbox": [
1731
+ 171,
1732
+ 165,
1733
+ 821,
1734
+ 194
1735
+ ],
1736
+ "page_idx": 14
1737
+ },
1738
+ {
1739
+ "type": "equation",
1740
+ "img_path": "images/2568c82a2655de566fd922785568b1373d1d9769c75fbe5cbdc1e6a8fbd0824c.jpg",
1741
+ "text": "$$\n\\varphi : = p \\mid \\neg \\varphi \\mid \\varphi \\land \\varphi \\mid \\bigcirc \\varphi \\mid \\varphi \\mathcal { U } \\varphi ,\n$$",
1742
+ "text_format": "latex",
1743
+ "bbox": [
1744
+ 357,
1745
+ 196,
1746
+ 635,
1747
+ 214
1748
+ ],
1749
+ "page_idx": 14
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "where $p \\in A P$ is an atomic proposition. Let $A P$ be a set of atomic propositions. A (explicit) trace $t$ is an infinite sequence over subsets of the atomic propositions. We define the set of traces $T R : = ( 2 ^ { A P } ) ^ { \\omega }$ . We use the following notation to manipulate traces: Let $t ~ \\in ~ T R$ be a trace and $i \\in \\mathbb N$ be a natural number. With $t [ i ]$ we denote the set of propositions at $i$ -th position of $t$ . Therefore, $t [ 0 ]$ represents the starting element of the trace. Let $j \\in \\mathbb N$ and $j \\geq i$ . Then $t [ i , j ]$ denotes the sequence $t$ [i] $t [ i + 1 ] \\ldots i [ j - 1 ] \\ : t [ j ]$ and $t [ i , \\infty ]$ denotes the infinite suffix of $t$ starting at position $i$ . ",
1754
+ "bbox": [
1755
+ 173,
1756
+ 215,
1757
+ 825,
1758
+ 314
1759
+ ],
1760
+ "page_idx": 14
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "Let $p \\in A P$ and $t \\in T R$ . The semantics of an LTL formula is defined as the smallest relation $\\vDash$ that satisfies the following conditions: ",
1765
+ "bbox": [
1766
+ 174,
1767
+ 320,
1768
+ 820,
1769
+ 349
1770
+ ],
1771
+ "page_idx": 14
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "$\\begin{array} { r l r l } & { t = p } & & { \\mathrm { i f f } \\qquad p \\in t [ 0 ] } \\\\ & { t \\mathbin { | = \\neg { \\varphi } } } & & { \\mathrm { i f f } \\qquad t \\mathbin { | \\neq \\varphi } } \\\\ & { t \\mathbin { | = \\varphi _ { 1 } \\wedge \\varphi _ { 2 } \\qquad } } & & { \\mathrm { i f f } \\qquad t \\mathbin { | = \\varphi _ { 1 } \\mathrm { ~ a n d ~ } t | } \\mathop { | = \\varphi _ { 2 } } } \\\\ & { t \\mathbin { | = \\bigcirc \\varphi } } & & { \\mathrm { i f f } \\qquad t [ 1 , \\infty ] \\mathbin { | = \\varphi } } \\\\ & { t \\mathbin { | = \\varphi _ { 1 } \\mathcal { U } \\varphi _ { 2 } \\qquad } } & & { \\mathrm { i f f } \\qquad \\mathrm { t h e r e ~ e x i s t s ~ } i \\ge 0 : t } \\end{array}$ $i \\geq 0 : t [ i , \\infty ] \\models \\varphi _ { 2 }$ and for all $0 \\le j < i$ we have $t [ j , \\infty ] \\ v = \\varphi _ { 1 }$ ",
1776
+ "bbox": [
1777
+ 241,
1778
+ 349,
1779
+ 750,
1780
+ 457
1781
+ ],
1782
+ "page_idx": 14
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "There are several derived operators, such as $\\bigcirc \\varphi \\equiv t r u e l l \\varphi$ and $\\sqcup \\varphi \\equiv \\lnot \\bigcirc \\lnot \\varphi . \\bigotimes \\varphi$ states that $\\varphi$ will eventually hold in the future and $\\sqsubset \\varphi$ states that $\\varphi$ holds globally. Operators can be nested: $\\square \\bigcirc \\varphi$ , for example, states that $\\varphi$ has to occur infinitely often. ",
1787
+ "bbox": [
1788
+ 174,
1789
+ 465,
1790
+ 826,
1791
+ 508
1792
+ ],
1793
+ "page_idx": 14
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "B SIZE DISTRIBUTION IN THE DATASETS ",
1798
+ "text_level": 1,
1799
+ "bbox": [
1800
+ 173,
1801
+ 529,
1802
+ 531,
1803
+ 545
1804
+ ],
1805
+ "page_idx": 14
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "text": "In this section, we provide insight into the size distribution of our datasets. Figure 5 shows the size distribution of the formulas in our dataset LTLPattern126 . ",
1810
+ "bbox": [
1811
+ 174,
1812
+ 559,
1813
+ 823,
1814
+ 587
1815
+ ],
1816
+ "page_idx": 14
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "Figure 6 shows the size distribution of our generated formulas and their traces in the dataset LTLRandom35. Table 1 shows three randomly drawn example instances of the dataset LTLRandom35. ",
1821
+ "bbox": [
1822
+ 173,
1823
+ 593,
1824
+ 825,
1825
+ 636
1826
+ ],
1827
+ "page_idx": 14
1828
+ },
1829
+ {
1830
+ "type": "text",
1831
+ "text": "Lastly, Figure 7 shows the size distribution of formulas in our dataset LTLUnsolved 254. ",
1832
+ "bbox": [
1833
+ 174,
1834
+ 642,
1835
+ 753,
1836
+ 659
1837
+ ],
1838
+ "page_idx": 14
1839
+ },
1840
+ {
1841
+ "type": "image",
1842
+ "img_path": "images/0288f3e833153530fb6426c58fd2464f6de66ab52bd5d574aafb829a1fb2cf62.jpg",
1843
+ "image_caption": [
1844
+ "Figure 5: Size distributions in the LTLPattern126 test set: on the $\\mathbf { X }$ -axis is the size of the formulas; on the y-axis the number of formulas. "
1845
+ ],
1846
+ "image_footnote": [],
1847
+ "bbox": [
1848
+ 223,
1849
+ 693,
1850
+ 761,
1851
+ 876
1852
+ ],
1853
+ "page_idx": 14
1854
+ },
1855
+ {
1856
+ "type": "image",
1857
+ "img_path": "images/3eb9ccf964e1fd9bb4b953034e79b6c10fde1a7b82c505e53ef3102135fafce9.jpg",
1858
+ "image_caption": [
1859
+ "Figure 6: Size distributions in the LTLRandom35 training set: on the $\\mathbf { X }$ -axis is the size of the formulas/traces; on the y-axis the number of formulas/traces. "
1860
+ ],
1861
+ "image_footnote": [],
1862
+ "bbox": [
1863
+ 183,
1864
+ 112,
1865
+ 823,
1866
+ 260
1867
+ ],
1868
+ "page_idx": 15
1869
+ },
1870
+ {
1871
+ "type": "table",
1872
+ "img_path": "images/2bcb080019099cde0279c98d4f649ee89717b47d6befc89978254fe8d9ea6632.jpg",
1873
+ "table_caption": [
1874
+ "Table 1: Three random examples from LTLRandom35 training set. The first line shows the LTL formula and the symbolic trace in mathematical notation. The second line shows the syntactic representation (in Polish notation): "
1875
+ ],
1876
+ "table_footnote": [],
1877
+ "table_body": "<table><tr><td rowspan=1 colspan=1>LTL formula</td><td rowspan=1 colspan=1>satisfying symbolic trace</td></tr><tr><td rowspan=1 colspan=1>O((du c)uOOd) ^ O(b^ -(-duc))&amp;XUUdcXXdX&amp;b!U!dc</td><td rowspan=1 colspan=1>true (b^-c^ -d) (-c^d)d(true)ω1;&amp;&amp;b!c!d;&amp;!cd;d;{1}</td></tr><tr><td rowspan=1 colspan=1>-O(Oe ^ (trueub) ^Oc)uc)!XU&amp;&amp;XeU1bXcc</td><td rowspan=1 colspan=1>true(-b^-c)(-b)w1;&amp;!b!c;{!b}</td></tr><tr><td rowspan=1 colspan=1>O-((-c∧d)uOd)X!U&amp;!cdXd</td><td rowspan=1 colspan=1>true (cV-d)(-d) (true)w1;|c!d;!d;{1}</td></tr></table>",
1878
+ "bbox": [
1879
+ 210,
1880
+ 383,
1881
+ 790,
1882
+ 489
1883
+ ],
1884
+ "page_idx": 15
1885
+ },
1886
+ {
1887
+ "type": "image",
1888
+ "img_path": "images/7e4454d31a8f5abd5e8264b1f163e25993d6efc0eb0d5cd785f219dab7972544.jpg",
1889
+ "image_caption": [
1890
+ "Figure 7: Size distributions in the LTLUnsolved254 test set: on the $\\mathbf { X }$ -axis is the size of the formulas; on the y-axis the number of formulas. "
1891
+ ],
1892
+ "image_footnote": [],
1893
+ "bbox": [
1894
+ 228,
1895
+ 540,
1896
+ 761,
1897
+ 723
1898
+ ],
1899
+ "page_idx": 15
1900
+ },
1901
+ {
1902
+ "type": "text",
1903
+ "text": "C HYPERPARAMETER ANALYSIS ",
1904
+ "text_level": 1,
1905
+ "bbox": [
1906
+ 176,
1907
+ 795,
1908
+ 460,
1909
+ 810
1910
+ ],
1911
+ "page_idx": 15
1912
+ },
1913
+ {
1914
+ "type": "text",
1915
+ "text": "Table 2 shows the effect of the most significant parameters on the performance of Transformers. The performance largely benefits from an increased number of layers, with 8 yielding the best results. Increasing the number further, even with much more training time, did not result in better or even led to worse results. A slightly less important role plays the number of heads and the dimension of the intermediate fully-connected feed-forward networks (FC). While a certain FC size is important, increasing it alone will not improve results. Changing the number of heads alone has also almost no impact on performance. Increasing both simultaneously, however, will result in a small gain. ",
1916
+ "bbox": [
1917
+ 174,
1918
+ 825,
1919
+ 825,
1920
+ 924
1921
+ ],
1922
+ "page_idx": 15
1923
+ },
1924
+ {
1925
+ "type": "table",
1926
+ "img_path": "images/b3d8666eb6fdf6cc268b94574c77ad9835cc5db80f948065eaa79c76ea4632a6.jpg",
1927
+ "table_caption": [
1928
+ "Table 2: Syntactic accuracy and semantic accuracy of different Transformers, tested on LTLRandom35: Layers refer to the size of the encoder and decoder stacks; Heads refer to the number of attention heads; FC size refers to the size of the fully-connected neural networks inside the encoder and decoders. "
1929
+ ],
1930
+ "table_footnote": [],
1931
+ "table_body": "<table><tr><td>Embedding size</td><td>Layers</td><td>Heads</td><td>FC size</td><td>Batch Size</td><td>Train Steps</td><td>Syn. Acc.</td><td>Sem. Acc.</td></tr><tr><td>128</td><td>3</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>78.0%</td><td>97.1%</td></tr><tr><td>128</td><td>5</td><td>2</td><td>512</td><td>512</td><td>45K</td><td>80.4%</td><td>97.4%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>256</td><td>512</td><td>45K</td><td>81.0%</td><td>97.4%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>82.0%</td><td>97.9%</td></tr><tr><td>128</td><td>5</td><td>4</td><td>1024</td><td>512</td><td>45K</td><td>80.3%</td><td>97.3%</td></tr><tr><td>128</td><td>5</td><td>6</td><td>1024</td><td>512</td><td>45K</td><td>81.8%</td><td>97.7%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>512</td><td>512</td><td>45K</td><td>82.0%</td><td>97.8%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>1024</td><td>512</td><td>45K</td><td>82.5%</td><td>97.9%</td></tr><tr><td>128</td><td>5</td><td>8</td><td>1500</td><td>512</td><td>45K</td><td>82.6%</td><td>97.8%</td></tr><tr><td>128</td><td>5</td><td>12</td><td>1024</td><td>512</td><td>45K</td><td>81.9%</td><td>97.5%</td></tr><tr><td>128</td><td>8</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>83.2%</td><td>98.3%</td></tr><tr><td>128</td><td>8</td><td>8</td><td>1024</td><td>768</td><td>50K</td><td>83.8%</td><td>98.5 %</td></tr><tr><td>128</td><td>10</td><td>4</td><td>512</td><td>512</td><td>75K</td><td>82.9%</td><td>97.6%</td></tr><tr><td>256</td><td>5</td><td>4</td><td>512</td><td>512</td><td>45K</td><td>82.3%</td><td>97.9%</td></tr></table>",
1932
+ "bbox": [
1933
+ 178,
1934
+ 167,
1935
+ 821,
1936
+ 369
1937
+ ],
1938
+ "page_idx": 16
1939
+ },
1940
+ {
1941
+ "type": "text",
1942
+ "text": "This seems reasonable, since more heads can provide more distinct information to the subsequent processing by the fully-connected feed-forward network. Increasing the embeddings size from 128 to 256 very slightly improves the syntactic accuracy. But likewise it also degrades the semantic accuracy, so we therefore stuck with the former setting. ",
1943
+ "bbox": [
1944
+ 174,
1945
+ 421,
1946
+ 825,
1947
+ 479
1948
+ ],
1949
+ "page_idx": 16
1950
+ },
1951
+ {
1952
+ "type": "text",
1953
+ "text": "D ACCURACY DURING TRAINING ",
1954
+ "text_level": 1,
1955
+ "bbox": [
1956
+ 174,
1957
+ 529,
1958
+ 470,
1959
+ 545
1960
+ ],
1961
+ "page_idx": 16
1962
+ },
1963
+ {
1964
+ "type": "text",
1965
+ "text": "In Figure 8 we show the evolution of both the syntactic accuracy and the semantic accuracy during the training process. Note the significant difference right from the beginning. This demonstrates the importance of a suitable performance measure when evaluating machine learning algorithms on logical reasoning tasks. ",
1966
+ "bbox": [
1967
+ 173,
1968
+ 579,
1969
+ 825,
1970
+ 635
1971
+ ],
1972
+ "page_idx": 16
1973
+ },
1974
+ {
1975
+ "type": "image",
1976
+ "img_path": "images/abf06e6c3dba60461ef5f14a0da3e90dc543dc516389917e3a2910a39edc3228.jpg",
1977
+ "image_caption": [
1978
+ "Figure 8: Syntactic accuracy (blue) and semantic accuracy (red) of our best performing model, evaluated on a subset of 5K samples of LTLRandom35 per epoch. "
1979
+ ],
1980
+ "image_footnote": [],
1981
+ "bbox": [
1982
+ 292,
1983
+ 678,
1984
+ 702,
1985
+ 876
1986
+ ],
1987
+ "page_idx": 16
1988
+ },
1989
+ {
1990
+ "type": "text",
1991
+ "text": "E DIFFERENT POSITIONAL ENCODINGS ",
1992
+ "text_level": 1,
1993
+ "bbox": [
1994
+ 173,
1995
+ 102,
1996
+ 517,
1997
+ 118
1998
+ ],
1999
+ "page_idx": 17
2000
+ },
2001
+ {
2002
+ "type": "image",
2003
+ "img_path": "images/ce515aefca784f7918c53561fbbc8f07f8373bc2ed923f3d58f53f7050cf415e.jpg",
2004
+ "image_caption": [
2005
+ "Figure 9: Performance of our best model (only trained on LTLRandom35) on LTLRandom50 with a standard positional encoding (top) and a tree positional encoding (bottom). The syntactic accuracy is displayed in green, the semantic accuracy in light green and the incorrect predictions in orange. The shaded area indicates the formula sizes the model was not trained on. "
2006
+ ],
2007
+ "image_footnote": [],
2008
+ "bbox": [
2009
+ 171,
2010
+ 140,
2011
+ 807,
2012
+ 422
2013
+ ],
2014
+ "page_idx": 17
2015
+ },
2016
+ {
2017
+ "type": "text",
2018
+ "text": "F HANDCRAFTED EXAMPLES ",
2019
+ "text_level": 1,
2020
+ "bbox": [
2021
+ 174,
2022
+ 527,
2023
+ 434,
2024
+ 544
2025
+ ],
2026
+ "page_idx": 17
2027
+ },
2028
+ {
2029
+ "type": "image",
2030
+ "img_path": "images/ef07a34ff1bb206f4dc99481b68b544352a3ce096aa5580d8af80817cd727bff.jpg",
2031
+ "image_caption": [
2032
+ "Figure 10: Self-attention of the example propositional formula $b \\lor \\neg ( a \\land d )$ in dataset PropRandom35 (left). Encoder-decoder-attention of the example LTL formula $( b \\mathcal { U } a ) \\wedge ( a \\mathcal { U } \\neg a )$ in dataset LTLRandom35 (right). "
2033
+ ],
2034
+ "image_footnote": [],
2035
+ "bbox": [
2036
+ 243,
2037
+ 565,
2038
+ 751,
2039
+ 707
2040
+ ],
2041
+ "page_idx": 17
2042
+ },
2043
+ {
2044
+ "type": "text",
2045
+ "text": "The LTL formula $( b \\mathcal { U } a ) \\wedge ( a \\mathcal { U } \\neg a )$ states that $b$ has to hold along the trace until $a$ holds and $a$ has to hold until $a$ does not hold anymore. The automaton-based generator suggests the trace $( \\neg a \\land$ b) $\\textit { a } ( t r u e ) ^ { \\omega }$ , i.e., to first satisfy the second until by immediately disallowing $a$ . The satisfaction of the first until is then postponed to the second position of trace, which forces $b$ to hold on the first position. The Transformer, however, chooses the following more general trace $a \\left( \\neg a \\right) \\left( t r u e \\right) ^ { \\omega }$ , by satisfying the until operators in order (see Figure 10). ",
2046
+ "bbox": [
2047
+ 173,
2048
+ 790,
2049
+ 825,
2050
+ 875
2051
+ ],
2052
+ "page_idx": 17
2053
+ }
2054
+ ]
parse/train/dOcQK-f4byz/dOcQK-f4byz_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/dOcQK-f4byz/dOcQK-f4byz_model.json ADDED
The diff for this file is too large to render. See raw diff