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

Add files using upload-large-folder tool

Browse files
parse/train/HkepKG-Rb/HkepKG-Rb.md ADDED
@@ -0,0 +1,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A SEMANTIC LOSS FUNCTION FOR DEEP LEARNING WITH SYMBOLIC KNOWLEDGE
2
+
3
+ # ABSTRACT
4
+
5
+ This paper develops a novel methodology for using symbolic knowledge in deep learning. From first principles, we derive a semantic loss function that bridges between neural output vectors and logical constraints. This loss function captures how close the neural network is to satisfying the constraints on its output. An experimental evaluation shows that our semantic loss function effectively guides the learner to achieve (near-)state-of-the-art results on semi-supervised multi-class classification. Moreover, it significantly increases the ability of the neural network to predict structured objects, such as rankings and paths. These discrete concepts are tremendously difficult to learn, and benefit from a tight integration of deep learning and symbolic reasoning methods.
6
+
7
+ # 1 INTRODUCTION
8
+
9
+ The widespread success of representation learning raises the question of which AI tasks are amenable to deep learning, which require classical model-based symbolic reasoning, and whether we can benefit from an integration of both. In recent years, significant effort has gone towards various ways of using representation learning to solve tasks that were previously tackled by symbolic methods. Such efforts include neural computers, Turing machines, and differentiable programming (e.g., Weston et al. (2014); Reed & De Freitas (2015); Graves et al. (2016); Riedel et al. (2016)), relational embeddings, deep learning for graph data, and neural theorem proving (e.g., Bordes et al. (2013); Neelakantan et al. (2015); Duvenaud et al. (2015); Niepert et al. (2016)), and many more. Other work has sought to augment deep learning with (symbolic) knowledge (e.g., Hu et al. (2016); Stewart & Ermon (2017); Marquez-Neila et al. (2017); Minervini et al. (2017); Wang et al. (2017)). ´
10
+
11
+ This paper considers learning tasks where we have symbolic knowledge connecting the different outputs of a neural network. This knowledge takes the form of a constraint (or sentence) in Boolean logic. It can be as simple as an exactly-one constraint for one-hot output encodings, or as complex as a structured output prediction constraint for intricate combinatorial objects such as rankings, subgraphs, and paths. Our goal is to augment neural networks with the ability to learn how to make predictions subject to these constraints, and use the symbolic knowledge to improve its performance.
12
+
13
+ Most neuro-symbolic approaches aim to simulate or learn symbolic reasoning in an end-to-end deep neural network, or capture symbolic knowledge in a vector-space embedding. This choice is partly motivated by the need for smooth differentiable models; adding symbolic reasoning code (e.g., SAT solvers) to a deep learning pipeline destroys this property. Unfortunately, while making reasoning differentiable, the precise logical meaning of the knowledge is often lost. In this paper, we take a distinctly different approach, and tackle the problem of differentiable but sound logical reasoning from first principles. Starting from a set of intuitive axioms, we derive a differentiable semantic loss function that captures how well the outputs of a neural network match a given constraint. This function precisely captures the meaning of the constraint, and is independent of its syntax.
14
+
15
+ Next, we show how this semantic loss gives significant practical improvements in semi-supervised classification. The semantic loss defined over the exactly-one constraint in this setting permits us to obtain a learning signal from vast amounts of unlabeled data. The key idea is that the semantic loss helps us improve how consistently we are able to classify the unlabeled data. This simple addition to the loss function of standard deep learning architectures yields (near-)state-of-the-art performance in semi-supervised classification on MNIST, FASHION and CIFAR-10 datasets.
16
+
17
+ ![](images/908b06431175243b10447e79ffaca6771156931dd43e1b26edd7a157a8c2ba04.jpg)
18
+ Figure 1: Outputs of a neural network feed into semantic loss functions for constraints representing a one-hot encoding, a total ranking of preferences, and paths in a grid graph.
19
+
20
+ Our final set of experiments study the benefits of the semantic loss function for complex structured output learning tasks, such as preference learning and path prediction in a graph (Daume et al., 2009; ´ Chang et al., 2013; Choi et al., 2015; Graves et al., 2016). In these scenarios, the task is two-fold: learn both the structure of the output space, and the actual classification function within that space. By capturing the structure of the output space with logical constraints, and minimizing the semantic loss for this constraint during learning, we are able to learn networks that are much more likely to correctly predict structured objects.
21
+
22
+ # 2 BACKGROUND AND NOTATION
23
+
24
+ To formally define semantic loss, we make use of concepts in propositional logic. We write uppercase letters $( X , Y )$ for Boolean variables and lowercase letters $( x , y )$ for their instantiation $X = 0$ or $X = 1$ ). Sets of variables are written in bold uppercase $( \mathbf { X } , \mathbf { Y } )$ , and their joint instantiation in bold lowercase $\mathbf { \Gamma } ( \mathbf { x } , \mathbf { y } )$ . A literal is a variable $( x )$ or its negation $( \neg x )$ . A logical sentence ( $\alpha$ or $\beta$ ) is constructed in the usual way, from variables and logical connectives $( \wedge , \vee$ , etc.), and is also called a formula or constraint. A state or world $\mathbf { x }$ is an instantiation to all variables $\mathbf { X }$ . A state $\mathbf { x }$ satisfies a sentence $\alpha$ , denoted $\mathbf { x } \Vdash \alpha$ , if the sentence evaluates to be true in that world, as defined in the usual way. A sentence $\alpha$ entails another sentence $\beta$ , denoted $\alpha \models \beta$ if all worlds that satisfy $\alpha$ also satisfy $\beta$ . A sentence $\alpha$ is logically equivalent to sentence $\beta$ , denoted $\alpha \equiv \beta$ , if both $\alpha \models \beta$ and $\beta \models \alpha$ .
25
+
26
+ The output row vector of a neural net is denoted $\mathsf { p }$ . Each value in $\mathsf { p }$ represents the probability of an output and falls in $[ 0 , 1 ]$ . We use both softmax and sigmoid units for our output activation functions. The notation for states $\mathbf { x }$ is used to refer the an assignment, the logical sentence enforcing the assignment, or the binary vector capturing that same assignment, as these are all equivalent notions.
27
+
28
+ Figure 1 illustrates the three different concrete output constraints of varying difficulty that are studied in our experiments. First, we examine the exactly-one or one-hot constraint capturing the encoding used in multi-class classification. It states that for a set of indicators $\mathbf { X } = \{ X _ { 1 } , \ldots , X _ { n } \}$ , one and exactly one of those indicators must be true, with the rest being false. This is enforced through a logical constraint $\alpha$ by conjoining sentences of the form $\neg X _ { 1 } \lor \neg X _ { 2 }$ for all pairs of variables (at most one variable is true), and a single sentence $X _ { 1 } \lor \cdots \lor X _ { n }$ (at least one variable is true). Our experiments further examine the valid simple path constraint. It states for a given source-destination pair and edge indicators, that the edge indicators which are set to true must form a valid simple path from source to destination. Finally, we explore the ordering constraint, which requires that a set of $n ^ { 2 }$ indicator variables represent a total ordering over $n$ variables, effectively encoding a permutation matrix. For a full description of the path and ordering constraints, we refer to Section 5.
29
+
30
+ # 3 SEMANTIC LOSS
31
+
32
+ Our goal in this section is to find a semantic loss function that bridges the gap between the continuous world of neural networks, and the symbolic world of propositional logic. We do so by first postulating intuitive high-level properties that we seek in such a function, and that illustrate its desired behavior. A second set of postulates establish a correspondence between constraints and data. Finally, we uniquely define the semantic loss function used throughout this paper.
33
+
34
+ The semantic loss $\mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathsf { p } )$ is a function of a sentence $\alpha$ in propositional logic, defined over variables $\mathbf { X } = \{ X _ { 1 } , \ldots , X _ { n } \}$ , and a vector of probabilities $\mathsf { p }$ for the same variables X. Element ${ \mathsf p } _ { i }$ denotes the predicted probability of variable $X _ { i }$ , and corresponds to a single output of the neural net. For example, the semantic loss between the one-hot constraint from the previous section, and a neural net output vector $\mathsf { p }$ , is intended to capture how close the prediction p is to having exactly one output set to true (that is, 1), and all others set to false (that is, 0), regardless of which output is correct.
35
+
36
+ # 3.1 HIGH-LEVEL PROPERTIES
37
+
38
+ The first axiom says that there is no loss when the logical constraint $\alpha$ is always true (it is a logical tautology), independent of the predicted probabilities p.
39
+
40
+ Axiom 1 (Truth). The semantic loss of a true sentence is zero: $\forall \mathsf { p } , \mathrm { L } ^ { \mathrm { s } } ( t r u e , \mathsf { p } ) = 0 .$ .
41
+
42
+ Next, when enforcing two constraints on disjoint sets of variables, we want the ability to compute the semantic loss of the two constraints separately, and sum the results for their joint semantic loss.
43
+
44
+ Axiom 2 (Additive Independence). Let $\alpha$ be a sentence over $\mathbf { X }$ with probabilities $\mathsf { p }$ . Let $\beta$ be a sentence over $\mathbf { Y }$ disjoint from $\mathbf { X }$ with probabilities $\mathsf { q }$ . The semantic loss between sentence $\alpha \wedge \beta$ and the joint probability vector [p q] decomposes additively: $\operatorname { L } ^ { \mathrm { s } } ( \alpha \wedge \beta , [ { \mathsf { p q } } ] ) = \operatorname { L } ^ { \mathrm { s } } ( \alpha , { \mathsf { p } } ) + \operatorname { L } ^ { \mathrm { s } } ( \beta , { \mathsf { q } } )$ .
45
+
46
+ It directly follows from Axioms 1 and 2 that the probabilities of variables that are not used on the constraint do not affect the semantic loss. Proposition 6 in Appendix A formalizes this intuition.
47
+
48
+ To maintain logical meaning, we postulate that semantic loss is monotone in the order of implication.
49
+
50
+ Axiom 3 (Monotonicity). If $\alpha \models \beta$ , then the semantic loss $\mathrm { L } ^ { \mathrm { s } } ( \alpha , { \mathfrak { p } } ) \geq \mathrm { L } ^ { \mathrm { s } } ( \beta , { \mathfrak { p } } )$ for any vector $\mathsf { p }$ .
51
+
52
+ Intuitively, as we add stricter requirements to the logical constraint, going from $\beta$ to $\alpha$ and making it harder to satisfy, the semantic loss cannot decrease. For example, when $\beta$ enforces the output of an neural network to encode a subtree of a graph, and we tighten that requirement in $\alpha$ to be a path, the semantic loss cannot decrease. Every path is also a tree and any solution to $\alpha$ is a solution to $\beta$ .
53
+
54
+ A first consequence following the monotonicity axiom is that logically equivalent sentences must incur an identical semantic loss for the same probability vector p. Hence, the semantic loss is indeed a semantic property of the logical sentence, and does not depend on the syntax of the sentence.
55
+
56
+ Proposition 1. If $\alpha \equiv \beta$ , then the semantic loss $\mathrm { L } ^ { \mathrm { s } } ( \alpha , { \mathfrak { p } } ) = \mathrm { L } ^ { \mathrm { s } } ( \beta , { \mathfrak { p } } )$ for any vector p.
57
+
58
+ A second consequence is that semantic loss must be non-negative (see Proposition 5 in Appendix A).
59
+
60
+ # 3.2 DATA-SENTENCE CORRESPONDENCE
61
+
62
+ A state $\mathbf { x }$ is equivalently represented as a data vector, as well as a logical constraint that enforces a value for every variable in $\mathbf { X }$ . When both the constraint and the predicted vector represent the same state (for example, $X _ { 1 } \wedge { \neg { X _ { 2 } } } \wedge X _ { 3 }$ vs. [1 0 1]), there should be no semantic loss.
63
+
64
+ Axiom 4 (Identity). For any state $\mathbf { x }$ , there is zero semantic loss between its representation as a sentence, and its representation as a deterministic vector: $\forall \mathbf { x } , \mathrm { L } ^ { \mathrm { s } } ( \mathbf { x } , \mathbf { x } ) = 0$ .
65
+
66
+ The axioms above together imply that any vector satisfying the constraint must incur zero loss. For example, when our constraint $\alpha$ requires that the output vector encodes an arbitrary total ranking, and the vector $\mathbf { x }$ correctly represents a single specific total ranking, there is no semantic loss.
67
+
68
+ Proposition 2 (Satisfaction). If $\mathbf { \dot { x } } \Vdash \alpha$ , then the semantic loss $\mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathbf { x } ) = 0$ .
69
+
70
+ As a special case, logical literals $\scriptstyle { \dot { x } }$ or $\neg x$ ) constrain a single variable to take on a single value, and thus play a role similar to the labels used in supervised learning. Such constraints require an even tighter correspondence: the semantic loss must act like a classical loss function (i.e., cross entropy).
71
+
72
+ Axiom 5 (Label-Literal Correspondence). The semantic loss of a single literal is proportionate to the cross-entropy loss for the equivalent data label: $\mathrm { L } ^ { \mathrm { s } } ( x , p ) \propto - \log ( p )$ and $\mathrm { L } ^ { \mathrm { s } } ( \neg { x } , \bar { p } ) \overset { \cdot } { \propto } - \log ( 1 - p )$ .
73
+
74
+ Appendix A states Axioms 7 and 8, on the symmetry between values and the symmetry between variables, as well as a Lemma 7 that ties together the multiplicative constants mentioned in Axiom 5. Finally, this allows us to prove the following form of the semantic loss for a state $\mathbf { x }$ .
75
+
76
+ Lemma 3. For state x and vector p, we have $\begin{array} { r } { \mathrm { L } ^ { \mathrm { s } } ( \mathbf { x } , \mathsf { p } ) \propto - \sum _ { i : \mathbf { x } | = X _ { i } } \log \mathsf { p } _ { i } - \sum _ { i : \mathbf { x } | = \lnot X _ { i } } \log ( 1 - \mathsf { p } _ { i } ) . } \end{array}$
77
+
78
+ ![](images/5fcbfe708dc5ef9963d1119ec14ca3d17f5eace11a8e49df2a20fcaf583e6a6f.jpg)
79
+ Figure 2: Binary classification toy example: a linear classifier without and with semantic loss.
80
+
81
+ # 3.3 A GENERAL DEFINITION
82
+
83
+ Lemma 3 falls short as a full definition of semantic loss for arbitrary sentences. One can define additional axioms to pin down $\mathrm { L } ^ { \mathrm { s } }$ . For example, the following axiom is highly desirable.
84
+
85
+ Axiom 6 (Differentiability). For any fixed $\alpha$ , the semantic loss $\mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathsf { p } )$ is monotone in each probability in p, continuous and differentiable.
86
+
87
+ Appendix A makes the notion of semantic loss precise by stating one additional axiom. It is based on the observation that the state loss of Lemma 3 is proportionate to a log-probability. In particular, it corresponds to the probability of obtaining state $\mathbf { x }$ after independently sampling each $X _ { i }$ with probability ${ \mathsf { p } } _ { i }$ . We have now derived the semantic loss function from first principles as follows.
88
+
89
+ Definition 1 (Semantic Loss). Let $\mathsf { p }$ be a vector of probabilities, one for each variable in $\mathbf { X }$ , and let $\alpha$ be a sentence over $\mathbf { X }$ . The semantic loss between $\alpha$ and $\mathsf { p }$ is
90
+
91
+ $$
92
+ \mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathfrak { p } ) \propto - \log \sum _ { \mathbf { x } \in \alpha } \ \prod _ { i : \mathbf { x } | = X _ { i } } \mathfrak { p } _ { i } \prod _ { i : \mathbf { x } | = \ l - X _ { i } } ( 1 - \mathfrak { p } _ { i } ) .
93
+ $$
94
+
95
+ Theorem 4 (Uniqueness). The semantic loss function in Definition 1 satisfies Axioms 1–9 and is the only function that does so, up to a multiplicative constant.
96
+
97
+ Intuitively, the semantic loss is proportionate to a negative logarithm of the probability of generating a state that satisfies the constraint, when sampling values according to p. Hence, it is the selfinformation (or “surprise”) of obtaining an assignment that satisfies the constraint (Jones, 1979).
98
+
99
+ # 4 SEMI-SUPERVISED CLASSIFICATION
100
+
101
+ The most straightforward constraint that is ubiquitous in multi-class classification is mutual exclusion over one-hot-encoded outputs. That is, for a given example, exactly one class and therefore exactly one binary indicator must be true. The machine learning community has made great strides in this machine learning task, due to the invention of assorted deep learning representations and their associated regularization terms (Krizhevsky et al., 2012; He et al., 2016). Many of these models take large amounts of fully labeled data for granted, and big data is indispensable for discovering accurate representations (Hastie et al., 2009). To sustain this progress, and alleviate the need for more labeled data, there is a growing interest into utilizing unlabeled data to augment the predictive power of classifiers (Stewart & Ermon, 2017; Bilenko et al., 2004). This section shows why semantic loss naturally qualifies for this task.
102
+
103
+ Illustrative Example To illustrate the benefit of semantic loss in the semi-supervised setting, we begin our discussion with a small toy example. Consider a binary classification task as depicted in Figure 2. Ignoring the unlabeled examples, a simple linear classifier learns to distinguish the two classes by separating the labeled examples in Figure 2a. However, the unlabeled examples are also informative, as they must carry some properties that give them a particular label. This is the crux of semantic loss: a model must confidently assign a consistent class even to unlabeled data. Encouraging the model to do so results in a more accurate decision boundary, as illustrated in Figure 2b. Next, we further explore this idea and apply it to real-world image classification tasks.
104
+
105
+ Table 1: MNIST. Previously reported test accuracies followed by semantic loss results $\pm$ stddev)
106
+
107
+ <table><tr><td>Accuracy % with # of used labels</td><td>100</td><td>1000</td><td>ALL</td></tr><tr><td>AtlasRBF (Pitelis et al., 2014) Deep Generative (Kingma et al., 2014) Virtual Adversarial (Miyato et al., 2016) Ladder Net (Rasmus et al., 2015)</td><td>91.9 (± 0.95) 96.67(± 0.14) 97.67 98.94(±0.37)</td><td>96.32 (± 0.12) 97.60(± 0.02) 98.64 99.16 (±0.08)</td><td>98.69 99.04 99.36 99.43 (± 0.02)</td></tr><tr><td>Baseline: MLP, Gaussian Noise Baseline: Self-Training MLP with Semantic Loss (our)</td><td>78.46 (±1.94) 72.55 (±4.21) 98.38 (±0.51)</td><td>94.26 (±0.31) 87.43 (±3.07) 98.78 (±0.17)</td><td>99.34(±0.08) 99.34 (±0.08) 99.36 (±0.02)</td></tr></table>
108
+
109
+ # 4.1 METHOD
110
+
111
+ Our proposed method intends to be generally applicable and compatible with any feedforward neural network. The semantic loss is simply another regularization term that can directly be plugged into an existing loss function. More specifically, for some weight $w$ , the new overall loss becomes
112
+
113
+ When the constraint over the output space is simple (for example, there is a small number of solutions ${ \textbf { x } } | = \alpha )$ ), the semantic loss can be directly computed from Definition 1. Concretely, for the exactly-one constraint used in $n$ -class classification, the semantic loss reduces to
114
+
115
+ $$
116
+ \mathrm { L } ^ { \mathrm { s } } ( \mathrm { e x a c t l y - o n e } , \mathsf { p } ) \propto - \log \sum _ { i = 0 } ^ { n - 1 } \mathsf { p } _ { i } \prod _ { j = 0 , j \neq i } ^ { n - 1 } ( 1 - \mathsf { p } _ { j } ) ,
117
+ $$
118
+
119
+ where he values ${ \mathsf { p } } _ { i }$ denote the probability of class $i$ as predicted by the neural net. The semantic loss for the exactly-one constraint is efficient and causes no noticeable overhead in our experiments.
120
+
121
+ In general, for arbitrary constraints $\alpha$ , the semantic loss is not efficient to compute using Definition 1, and more advanced automated reasoning is required. Section 5 discusses this issue in more detail.
122
+
123
+ # 4.2 EXPERIMENTAL EVALUATION
124
+
125
+ In this section, we evaluate semantic loss in the semi-supervised setting by comparing it with several competitive models. As most semi-supervised learners build on a supervised learner, changing the underlying model significantly affects the semi-supervised learner’s performance. For comparison, we add semantic loss to the same base models used in ladder nets (Rasmus et al., 2015), which currently achieve state-of-the-art results on semi-supervised MNIST and CIFAR-10 (Krizhevsky & Hinton, 2009). Specifically, the MNIST base model is a fully-connected multilayer perceptron (MLP), with layers of size 784-1000-500-250-250-250-10. On CIFAR-10, it is a 10-layer convolutional neural network (CNN) with 3-by-3 padded filters. After every 3 layers, features are subject to a 2-by-2 max-pool layer with strides of 2. Furthermore, we use ReLu (Nair & Hinton, 2010), batch normalization (Ioffe & Szegedy, 2015), and Adam optimization (Kingma & Ba, 2015) with a learning rate of 0.002. We refer to Appendix B and C for a specification of the CNN model and additional details about hyper-parameter tuning.
126
+
127
+ For all semi-supervised experiments, we use the standard 10,000 held-out test examples provided in the original datasets and randomly pick 10,000 from the standard 60,000 training examples (50,000 for CIFAR-10) as validation set. For values of $N$ that depend on the experiment, we retain $N$ randomly chosen labeled examples from the training set, and remove labels from the rest. We balance classes in the labeled samples to ensure no particular class is over-represented. Images are preprocessed for standardization and Gaussian noise (standard deviation 0.3) is added to every pixel.
128
+
129
+ MNIST The permutation invariant MNIST classification task is commonly used as a test-bed for general semi-supervised learning algorithms. This setting does not use any prior information about the spatial arrangement of the input pixels. Therefore, it excludes many data augmentation techniques that involve geometric distortion of images, as well as convolutional neural networks.
130
+
131
+ When evaluating on MNIST, we run experiments for 10 epochs, with a batch size of 10 labeled and 10 unlabeled examples. Experiments are repeated 10 times with different random seeds. Table 1 compares semantic loss to two baselines and state-of-the-art results from the literature. The first baseline is a purely supervised MLP, which makes no use of unlabeled data. The second is the classic self-training method for semi-supervised learning, which operates as follows. After every 1000 iterations, the unlabeled examples that are predicted by the MLP to have more than $9 5 \%$ probability of belonging to a single class, are assigned a psuedo-label and become labeled data.
132
+
133
+ Table 2: FASHION. Test accuracy comparison between MLP with semantic loss and ladder nets.
134
+
135
+ <table><tr><td>Accuracy % with # of used labels</td><td>100</td><td>500</td><td>1000</td><td>ALL</td></tr><tr><td>Ladder Net (Rasmus et al., 2015)</td><td>81.46(±0.64)</td><td>85.18 (±0.27)</td><td>86.48 (± 0.15)</td><td>90.46</td></tr><tr><td>Baseline:MLP,GaussianNoise</td><td>69.45 (±2.03)</td><td>78.12 (±1.41)</td><td>80.94(±0.84)</td><td>89.87</td></tr><tr><td>MLP with Semantic Loss (our)</td><td>86.74 (±0.71)</td><td>89.49 (±0.24)</td><td>89.67 (±0.09)</td><td>89.81</td></tr></table>
136
+
137
+ Table 3: CIFAR. Test accuracy comparison between CNN with semantic loss and ladder nets.
138
+
139
+ <table><tr><td rowspan=1 colspan=1>Accuracy % with # of used labels</td><td rowspan=1 colspan=1>4000</td><td rowspan=1 colspan=1>ALL</td></tr><tr><td rowspan=2 colspan=1>CNNBaselineinLadderNetLadder Net (Rasmus et al., 2015)Baseline: CNN,Whitening, CroppingCNN with Semantic Loss (our)</td><td rowspan=1 colspan=1>76.67 (± 0.61)79.60 (±0.47)</td><td rowspan=1 colspan=1>90.73</td></tr><tr><td rowspan=1 colspan=1>77.1381.79</td><td rowspan=1 colspan=1>90.9690.92</td></tr></table>
140
+
141
+ When given 100 labeled examples ( $N = 1 0 0 \mathrm { \ : }$ ), MLP with semantic loss gains around $2 0 \%$ improvement over the purely supervised baseline. The improvement is even larger $( 2 5 \% )$ compared to self-training. Considering the only change is an additional loss term, this result is very encouraging. Compared to the state of the art, ladder nets slightly outperform semantic loss by $0 . 5 \%$ accuracy. This difference may be an artifact of the excessive tuning of architectures, hyper-parameters and learning rates that the MNIST dataset has been subject to. In the coming experiments, we extend our work to more challenging datasets, in order to provide a clearer comparison with ladder nets.
142
+
143
+ First, we want to share a few more thoughts on how semantic loss works. A classical softmax layer interprets its output as representing a categorical distribution. Hence, by normalizing its outputs, softmax enforces the same mutual exclusion constraint enforced in our semantic loss function. However, there does not exist a natural way to extend softmax loss to unlabeled samples. In contrast, semantic loss does provide a learning signal on unlabeled samples, by forcing the underlying classifier to make an decision and construct a confident hypothesis for all data. However, for the fully supervised case $N = \mathrm { a l l }$ ), the semantic loss does not significantly affect accuracy. Because the MLP has enough capacity to almost perfectly fit the training data, where the constraint is always satisfied, the semantic loss is almost always zero. This is a direct consequence of Proposition 2.
144
+
145
+ FASHION The FASHION (Xiao et al., 2017) dataset consists of Zalando’s article images, aiming to serve as a more challenging drop-in replacement for MNIST. Arguably, it has not been overused and requires more advanced techniques to achieve good performance. As in the previous experiment, we run our method for 10 epochs, whereas ladder nets need 100 epochs to converge. Again, experiments are repeated 10 times and Table 2 reports the classification accuracy and its standard deviation (except for $N =$ all where it is close to 0 and omitted for space).
146
+
147
+ Experiments show that utilizing semantic loss results in a very large $1 7 \%$ improvement over the baseline when only 100 labels are provided. Moreover, our method compares favorably to ladder nets, except when the setting degrades to be fully supervised. Note that our method already nearly reaches its maximum accuracy with 500 labeled examples, which is only $1 \%$ of the training dataset.
148
+
149
+ CIFAR-10 To show the general applicability of semantic loss, we evaluate it on CIFAR-10. This dataset consisting of 32-by-32 RGB images in 10 classes. A simple MLP would not have enough representation power to capture the huge variance across objects within the same class. To cope with this spike in difficulty, we switch our underlying model to a 10-layer CNN as described earlier. We use a batch size of 100 samples of which half are unlabeled. Experiments are run for 100 epochs. However, due to our limited computational resources, we report on a single trial. Note that we make slight modifications to the underlying model used in ladder nets to reproduce similar baseline performance. Please refer to Appendix B for the details of this experimental setup.
150
+
151
+ As shown in Table 3, our method compares favorably to ladder nets. However, due to the slight difference in performance between the supervised base models, a direct comparison would be methodologically flawed. Instead, we compare the net improvements over baselines. In terms of this measure, our method scores a gain of $4 . { \bar { 6 } } 6 \%$ whereas ladder nets gain $2 . 9 3 \%$ .
152
+
153
+ # 4.3 DISCUSSION
154
+
155
+ Overall, the experiments so far have demonstrated the competitiveness and general applicability of our proposed method on semi-supervised learning tasks. It surpassed the previous state of the art (i.e. ladder nets ) on FASHION and CIFAR-10, while being close on MNIST. Considering the simplicity of our method, such results are encouraging. Indeed, a key advantage of semantic loss is that it only requires a simple additional loss term. Without changing the network architecture itself, we incur almost no computational overhead. Conversely, this property makes our method sensitive to the underlying model’s performance. Without the underlying predictive power of a strong supervised learning model, we do not expect to see the same benefits we observe here. Recently, we became aware that Miyato et al. (2016) extended their work to CIFAR-10 and achieved state-of-the-art results (Miyato et al., 2017), surpassing our performance by $5 \%$ . In future work, we plan to investigate whether applying semantic loss on their architecture would yield an even stronger performance.
156
+
157
+ ![](images/684ff625c16715167670292375e1562c7bf4528618063e9e1026bc8e042c3a58.jpg)
158
+ Figure 3: FASHION pictures grouped by how confidently the supervised base model classifies them correctly. With semantic loss, the final semi-supervised model predicts all correctly and confidently.
159
+
160
+ Figure 3 illustrates the effect of semantic loss on FASHION pictures whose correct label was hidden from the learner. Pictures 3a and 3b are correctly classified by the supervised base model, and on the first set it is confident about this prediction $( { \mathsf p } _ { i } > 0 . 8 )$ . The semantic loss rarely diverts the model from these initially correct labels. However, it bootstraps these unlabeled examples to achieve higher confidence in the learned concepts. With this additional learning signal, the model changes its beliefs about Pictures 3c, which it was previously uncertain about. Finally, even on confidently misclassified Pictures 3d, the semantic loss is able to fully correct the mistakes of the base model.
161
+
162
+ # 5 LEARNING WITH COMPLEX CONSTRAINTS
163
+
164
+ While much of current machine learning research is focused on problems such as multi-class classification, there remain a multitude of difficult problems involving highly constrained output domains. As mentioned in the previous section, semantic loss has little effect on the fully-supervised exactly-one classification problem. This leads us to seek out more difficult problems to illustrate that semantic loss can also be highly informative in the supervised case, provided the output domain is a sufficiently complex space. Because semantic loss is defined by a Boolean formula, it can be used on any output domain that can be fully described in this manner. Here, we develop a framework for tractable semantic loss on highly complex constraints, and evaluate it on some difficult examples.
165
+
166
+ # 5.1 A TRACTABLE SEMANTIC LOSS
167
+
168
+ Our goal here is to develop a method for computing both the semantic loss and its gradient in a tractable manner. Examining Definition 1 of semantic loss, we see that the right-hand side is a wellknown automated reasoning task called weighted model counting (WMC) (Chavira & Darwiche, 2008; Sang et al., 2005). A key property of WMC is that its partial derivatives can be computed in terms of other, slightly modified WMCs. Furthermore, we know of circuit languages that compute WMCs, and that are amenable to backpropagation (Darwiche, 2003). We use the language and circuit compilation techniques described in Darwiche (2011) to build a Boolean circuit representing our semantic loss. We refer to the literature for details of this compilation approach. Due to certain properties of this circuit form, we can use it to compute both the values and the gradients of the semantic loss in time linear in the size of the circuit (Darwiche & Marquis, 2002). Once we have constructed this function, we can add it to our standard loss function as described in Section 4.1.
169
+
170
+ Table 4: Grid shortest path test results: coherent, incoherent and constraint accuracy.
171
+
172
+ <table><tr><td rowspan=1 colspan=1>Test accuracy %</td><td rowspan=1 colspan=1>Coherent</td><td rowspan=1 colspan=1>Incoherent</td><td rowspan=1 colspan=1>Constraint</td></tr><tr><td rowspan=1 colspan=1>5-layer MLP</td><td rowspan=1 colspan=1>5.62</td><td rowspan=1 colspan=1>85.91</td><td rowspan=1 colspan=1>6.99</td></tr><tr><td rowspan=1 colspan=1>With semantic loss (our)</td><td rowspan=1 colspan=1>28.51</td><td rowspan=1 colspan=1>83.14</td><td rowspan=1 colspan=1>69.89</td></tr></table>
173
+
174
+ Table 5: Preference prediction test results: coherent, incoherent and constraint accuracy.
175
+
176
+ <table><tr><td rowspan=1 colspan=1>Test accuracy %</td><td rowspan=1 colspan=1>Coherent</td><td rowspan=1 colspan=1>Incoherent</td><td rowspan=1 colspan=1>Constraint</td></tr><tr><td rowspan=1 colspan=1>3-layer MLP</td><td rowspan=1 colspan=1>1.01</td><td rowspan=1 colspan=1>75.78</td><td rowspan=1 colspan=1>2.72</td></tr><tr><td rowspan=1 colspan=1>With semantic loss (our)</td><td rowspan=1 colspan=1>13.59</td><td rowspan=1 colspan=1>72.43</td><td rowspan=1 colspan=1>55.28</td></tr></table>
177
+
178
+ # 5.2 EXPERIMENTAL EVALUATION
179
+
180
+ Our ambition when evaluating semantic loss’ performance on complex constraints is not to achieve state-of-the-art performance on any particular problem, but rather to highlight its effect. To this end, we evaluate our method on problems with a difficult output space, where the model could no longer be fit directly from data, and purposefully use simple MLPs for evaluation. The details of hyper-parameter tuning are again given in Appendix C.
181
+
182
+ # 5.2.1 GRIDS
183
+
184
+ We begin with a classic algorithmic problem, finding the shortest path in a graph. Specifically, we use a 4-by-4 grid $G = ( V , E )$ with uniform edge weights. We randomly remove edges for each example to increase difficulty. Formally, our input is a binary vector of length $\vert V \vert + \vert E \vert$ , with the first $| V |$ variables indicating sources and destinations, and the next $| E |$ which edges are removed. Similarly, each label is a binary vector of length $| E |$ indicating which edges are in the shortest path. Finally, we require through our constraint $\alpha$ that the output form a valid simple path between the desired source and destination. To compile this constraint, we use the method of Nishino et al. (2017) to encode pairwise simple paths, and logically merge them to enforce the correct source and destination. For more details on the constraint and data generation process, see Appendix D.
185
+
186
+ To evaluate, we use our generated dataset of 1600 examples, with a 60/20/20 train/validation/test split. Table 4 compares test accuracy between a 5-layer MLP baseline, and the same model augmented with semantic loss. We report three different accuracies that illustrate the effect of semantic loss: “Coherent” indicates the percentage of examples for which the classifier gets the entire configuration right, while “Incoherent” measures the percentage of individually correct binary labels, which as a whole may not constitute a valid path at all. Finally, “Constraint” describes the percentage of predictions given by the model that satisfy the constraint associated with the problem. In the case of incoherent accuracy, semantic loss has little effect, and in fact slightly reduces the accuracy as it combats the standard sigmoid cross entropy. In regard to coherent accuracy, however, the semantic loss has a very large effect in guiding the network to jointly learn true paths, rather than optimizing each binary output individually. We further see this by observing the large increase in the percentage of predictions which really are paths between the desired nodes in the graph.
187
+
188
+ # 5.2.2 PREFERENCE LEARNING
189
+
190
+ The next problem we examine is that of predicting a complete order of preferences. That is, for a given set of user features, we would like to predict how the user would rank their preference over a fixed set of items. We encode a preference ordering over $n$ items as a flattened binary matrix $\{ X _ { i j } \}$ , where for each $i , j \in \{ 1 , \ldots , n \}$ , $X _ { i j }$ denotes that item $i$ is at position $j$ (Choi et al., 2015). Clearly, not all configurations of outputs correspond to a valid ordering.
191
+
192
+ For data, we use preference rankings over 10 types of sushi for 5000 individuals, taken from PREFLIB (Mattei & Walsh, 2013). We take the ordering over 6 types of sushi as input features to predict the ordering over the remaining 4 types, with splits identical to those in Shen et al. (2017). We again split the data 60/20/20 into train/test/split, and employ a 3 layer MLP as our baseline. Table 5 compares the baseline to the same MLP augmented with semantic loss for valid total orderings. Again, we see that semantic loss has a marginal effect on incoherent accuracy, but massively improves the network’s ability to predict valid, correct orderings. Remarkably, without semantic loss, the network is only able to output a valid ordering on $0 . 0 1 \%$ of the test examples.
193
+
194
+ # 6 RELATED WORK
195
+
196
+ Incorporating symbolic background knowledge into machine learning is a long-standing challenge (Srinivasan et al., 1995). It has received considerable attention for structured prediction in natural language processing, in both supervised and semi-supervised settings. For example, constrained conditional models extend linear models with constraints that are enforced through integer linear programming (Chang et al., 2008; 2013). Constraints have also been studied in the context of probabilistic graphical models (Mateescu & Dechter, 2008; Ganchev et al., 2010). Kisa et al. (2014) utilize a circuit language called the probabilistic sentential decision diagram to induce distributions over arbitrary logical formulas. They learn generative models that satisfy preference and path constraints (Choi et al., 2015; 2016), which we both study in a discriminative setting.
197
+
198
+ Various deep learning techniques have been proposed to enforce either arithmetic constraints (Pathak et al., 2015; Marquez-Neila et al., 2017) or logical constraints (Rockt ´ aschel et al., 2015; Hu et al., ¨ 2016; Demeester et al., 2016; Stewart & Ermon, 2017; Minervini et al., 2017; Diligenti et al., 2017; Donadello et al., 2017) on the output of a neural network. The common approach is to reduce logical constraints into differentiable arithmetic objectives by replacing logical operators with their fuzzy t-norms and logical implications with simple inequalities. A downside of this fuzzy relaxation is that the logical sentences lose their precise meaning. The learning objective becomes a function of the syntax rather than the semantics. Moreover, these relaxations are often only applied to Horn clauses. One alternative is to encode the logic into a factor graph and perform loopy belief propagation to compute a loss function (Naradowsky & Riedel, 2017), which is known to have issues in the presence of complex logical constraints (Smith & Gogate, 2014).
199
+
200
+ Several specialized techniques have been proposed to exploit the rich structure of real world labels. Deng et al. (2014) propose hierarchy and exclusion graphs that allow a flexible joint modeling of hierarchical categories. It is a method invented to address examples whose labels are not provided at the most specific level. Finally, the objective of semantic loss to increase the confidence of predictions on unlabeled data is in common with information-theoretic approaches to semi-supervised learning (Grandvalet & Bengio, 2005; Erkan & Altun, 2010), and approaches that increase robustness to output perturbation (Miyato et al., 2016). A key difference between semantic loss and these information-theoretic losses is that semantic loss generalizes to arbitrary output constraints.
201
+
202
+ # 7 CONCLUSIONS
203
+
204
+ Both reasoning and semi-supervised learning are often identified as key challenges for deep learning going forward. In this paper, we developed a principled way of combining automated reasoning for propositional logic with existing deep learning architectures. Moreover, we showed that our semantic loss function provides significant benefits during semi-supervised classification, as well as deep structured prediction for highly complex output spaces.
205
+
206
+ # REFERENCES
207
+
208
+ Mikhail Bilenko, Sugato Basu, and Raymond J Mooney. Integrating constraints and metric learning in semi-supervised clustering. In Proceedings of the International Conference on Machine learning, pp. 11. ACM, 2004.
209
+
210
+ Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In Advances in neural information processing systems, pp. 2787–2795, 2013.
211
+
212
+ Kai-Wei Chang, Rajhans Samdani, and Dan Roth. A constrained latent variable model for coreference resolution. 2013.
213
+
214
+ Ming-Wei Chang, Lev-Arie Ratinov, Nicholas Rizzolo, and Dan Roth. Learning and inference with constraints. In AAAI, pp. 1513–1518, 2008.
215
+
216
+ Mark Chavira and Adnan Darwiche. On probabilistic inference by weighted model counting. Artificial Intelligence, 172(6):772 – 799, 2008.
217
+
218
+ Arthur Choi, Guy Van den Broeck, and Adnan Darwiche. Tractable learning for structured probability spaces: A case study in learning preference distributions. In Proceedings of 24th International Joint Conference on Artificial Intelligence (IJCAI), 2015.
219
+
220
+ Arthur Choi, Nazgol Tavabi, and Adnan Darwiche. Structured features in naive Bayes classification. In Proceedings of AAAI, pp. 3233–3240, 2016.
221
+
222
+ Adnan Darwiche. A differential approach to inference in bayesian networks. J. ACM, 50(3):280– 305, May 2003. ISSN 0004-5411. doi: 10.1145/765568.765570.
223
+
224
+ Adnan Darwiche. SDD: A new canonical representation of propositional knowledge bases. In IJCAI Proceedings-International Joint Conference on Artificial Intelligence, volume 22, pp. 819, 2011.
225
+
226
+ Adnan Darwiche and Pierre Marquis. A knowledge compilation map. Journal of Artificial Intelligence Research, 17:229–264, 2002.
227
+
228
+ Hal Daume, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine learning, 75(3):297–325, 2009.
229
+
230
+ Thomas Demeester, Tim Rocktaschel, and Sebastian Riedel. Lifted rule injection for relation em- ¨ beddings. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016, pp. 1389–1399, 2016.
231
+
232
+ Deng, Nan Ding, Yangqing Jia, Andrea Frome, Kevin Murphy, Samy Bengio, Yuan Li, Hartmut Neven, and Hartwig Adam. Large-scale object classification using label relation graphs. In ECCV, volume 8689, 2014.
233
+
234
+ Michelangelo Diligenti, Marco Gori, and Claudio Sacca. Semantic-based regularization for learning and inference. Artificial Intelligence, 244:143–165, 2017.
235
+
236
+ Ivan Donadello, Luciano Serafini, and Artur d’Avila Garcez. Logic tensor networks for semantic image interpretation. In International Joint Conference on Artificial Intelligence, pp. 1596–1602, 2017.
237
+
238
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015.
239
+
240
+ Ayse Erkan and Yasemin Altun. Semi-supervised learning via generalized maximum entropy. In Thirteenth International Conference on Artificial Intelligence and Statistics, volume PMLR, pp. 209–216, 2010.
241
+
242
+ Kuzman Ganchev, Jennifer Gillenwater, Ben Taskar, et al. Posterior regularization for structured latent variable models. Journal of Machine Learning Research, 11(Jul):2001–2049, 2010.
243
+
244
+ Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005.
245
+
246
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016.
247
+
248
+ Trevor Hastie, Robert Tibshirani, and Jerome Friedman. Overview of supervised learning. In The elements of statistical learning, pp. 9–41. Springer, 2009.
249
+
250
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
251
+
252
+ Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural networks with logic rules. In ACL, 2016.
253
+
254
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
255
+
256
+ Douglas Samuel Jones. Elementary information theory. Clarendon Press, 1979.
257
+
258
+ Diederik P Kingma and Jimmy Lei Ba. Adam: A method for stochastic optimization. 2015.
259
+
260
+ Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3581– 3589. Curran Associates, Inc., 2014.
261
+
262
+ Doga Kisa, Guy Van den Broeck, Arthur Choi, and Adnan Darwiche. Probabilistic sentential decision diagrams. In Proceedings of KR, 2014.
263
+
264
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
265
+
266
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classifcation with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 25, pp. 1097–1105, 2012.
267
+
268
+ Pablo Marquez-Neila, Mathieu Salzmann, and Pascal Fua. Imposing hard constraints on deep net-´ works: Promises and limitations. arXiv preprint arXiv:1706.02025, 2017.
269
+
270
+ Robert Mateescu and Rina Dechter. Mixed deterministic and probabilistic networks. Annals of mathematics and artificial intelligence, 54(1-3):3, 2008.
271
+
272
+ Nicholas Mattei and Toby Walsh. Preflib: A library of preference data HTTP://PREFLIB.ORG. In Proceedings of ADT, 2013.
273
+
274
+ Pasquale Minervini, Thomas Demeester, Tim Rocktaschel, and Sebastian Riedel. Adversarial sets ¨ for regularising neural link predictors. arXiv preprint arXiv:1707.07596, 2017.
275
+
276
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. In ICLR, 2016.
277
+
278
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. ArXiv e-prints, 2017.
279
+
280
+ Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, pp. 807–814. Omnipress, 2010.
281
+
282
+ Jason Naradowsky and Sebastian Riedel. Modeling exclusion with a differentiable factor graph constraint. In International Conference on Machine Learning (Workshop Track), 2017.
283
+
284
+ Arvind Neelakantan, Benjamin Roth, and Andrew McCallum. Compositional vector space models for knowledge base inference. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, pp. 156–166, 2015.
285
+
286
+ Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In International Conference on Machine Learning, pp. 2014–2023, 2016.
287
+
288
+ Masaaki Nishino, Norihito Yasuda, Shin-ichi Minato, and Masaaki Nagata. Compiling graph substructures into sentential decision diagrams. In Proceedings of the Thirty-First Conference on Artificial Intelligence (AAAI), 2017.
289
+
290
+ Deepak Pathak, Philipp Krahenbuhl, and Trevor Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1796–1804, 2015.
291
+ Nikolaos Pitelis, Chris Russell, and Lourdes Agapito. Semi-supervised learning using an unsupervised atlas. In Proceedings of ECML-PKDD, pp. 565–580. Springer, 2014.
292
+ Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in Neural Information Processing Systems, pp. 3546–3554, 2015.
293
+ Scott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015.
294
+ Sebastian Riedel, Matko Bosnjak, and Tim Rocktaschel. Programming with a differentiable forth ¨ interpreter. CoRR, abs/1605.06640, 2016.
295
+ Tim Rocktaschel, Sameer Singh, and Sebastian Riedel. Injecting logical background knowledge ¨ into embeddings for relation extraction. In HLT-NAACL, pp. 1119–1129, 2015.
296
+ Tian Sang, Paul Beame, and Henry A Kautz. Performing bayesian inference by weighted model counting. In AAAI, volume 5, pp. 475–481, 2005.
297
+ Yujia Shen, Arthur Choi, and Adnan Darwiche. A tractable probabilistic model for subset selection. In Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence (UAI), 2017.
298
+ David Smith and Vibhav Gogate. Loopy belief propagation in the presence of determinism. In Artificial Intelligence and Statistics, pp. 895–903, 2014.
299
+ Ashwin Srinivasan, S Muggleton, and RD King. Comparing the use of background knowledge by inductive logic programming systems. In Proceedings of ILP, pp. 199–230, 1995.
300
+ Russell Stewart and Stefano Ermon. Label-free supervision of neural networks with physics and domain knowledge. In AAAI, pp. 2576–2582, 2017.
301
+ Mingzhe Wang, Yihe Tang, Jian Wang, and Jia Deng. Premise selection for theorem proving by deep graph embedding. arXiv preprint arXiv:1709.09994, 2017.
302
+ Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014.
303
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017.
304
+
305
+ A AXIOMATIZATION OF SEMANTIC LOSS: DETAILS
306
+
307
+ This appendix provides further details on our axiomatization of the semantic loss.
308
+ Proposition 5 (Non-Negativity). Semantic loss is non-negative.
309
+
310
+ Proof. Because $\alpha \models$ true for all $\alpha$ , the monotonicity axiom implies that $\forall \mathsf { p } , \mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathsf { p } ) \geq \mathrm { L } ^ { \mathrm { s } } ( t r u e , \mathsf { p } )$ . By the truth axiom, $\mathrm { L } ^ { \mathrm { s } } ( t r u e , \mathsf { p } ) = 0$ , and therefore $\mathrm { L } ^ { \mathrm { s } } ( \alpha , { \mathsf { p } } ) \geq 0$ for all choices of $\alpha$ and $\mathsf { p }$ . □
311
+
312
+ Proposition 6 (Locality). Let α be a sentence over $\mathbf { X }$ with probabilities p. For any $\mathbf { Y }$ disjoint from $\mathbf { X }$ with probabilities q, the semantic loss $\operatorname { L } ^ { \mathrm { s } } ( \alpha , [ \mathsf { p q } ] ) = \operatorname { L } ^ { \mathrm { s } } ( \alpha , \mathsf { p } )$ .
313
+
314
+ Proof. Follows from the additive independence and truth axioms. Set $\beta \ = \ t r u e$ in the additive independence axiom, and observe that this sets $\mathrm { L } ^ { \mathrm { s } } ( \beta , { \mathsf { q } } ) = 0$ because of the truth axiom. □
315
+
316
+ Proof of Proposition 2. The monotonicity axiom specializes to say that if ${ \textbf { x } } | = \alpha$ , we have that $\forall \mathsf { p } , \mathrm { L } ^ { \mathrm { s } } ( \mathbf { x } , \mathsf { p } ) \ \geq \ \mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathsf { p } )$ . By choosing $\mathsf { p }$ to be $\mathbf { x }$ , this implies $\mathrm { L } ^ { \mathrm { s } } ( \mathbf { x } , \mathbf { x } ) \ \geq \ \mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathbf { x } )$ . From the identity axiom, $\mathrm { L } ^ { \mathrm { s } } ( { \bf x } , { \bf x } ) = 0$ , and therefore $0 \geq \operatorname { L } ^ { \mathrm { s } } ( \alpha , \mathbf { x } )$ . Proposition 5 bounds the loss from below as $\mathrm { L } ^ { \mathrm { s } } ( \alpha , \mathbf { x } ) \geq 0$ . □
317
+
318
+ Axiom 7 (Value Symmetry). For all $\mathsf { p }$ and $\alpha$ , we have that $\mathrm { L } ^ { \mathrm { s } } ( \alpha , { \mathfrak { p } } ) = \mathrm { L } ^ { \mathrm { s } } ( { \bar { \alpha } } , 1 - { \mathfrak { p } } )$ where $\bar { \alpha }$ replaces every variable in $\alpha$ by its negation.
319
+
320
+ Axiom 8 (Variable Symmetry). Let $\alpha$ be a sentence over $\mathbf { X }$ with probabilities $\mathsf { p }$ . Let $\pi$ be a permutation of the variables $\mathbf { X }$ , let $\pi ( \alpha )$ be the sentence obtained by replacing variables $x$ by $\pi ( x )$ , and let $\pi ( { \mathfrak { p } } )$ be the corresponding permuted vector of probabilities. Then, $\operatorname { L } ^ { \mathrm { s } } ( \alpha , { \mathsf { p } } ) = \operatorname { L } ^ { \mathrm { s } } ( \pi ( \alpha ) , \pi ( { \mathsf { p } } ) )$ .
321
+
322
+ The value and variable symmetry axioms together imply the equality of the multiplicative constants in the label-literal duality axiom for all literals.
323
+
324
+ Lemma 7. There exists a single constant $K$ such that $\operatorname { L } ^ { \mathrm { s } } ( X , p ) = - K \log ( p )$ and $\operatorname { L } ^ { s } ( \lnot X , p ) =$ $- K \log ( 1 - p )$ for any literal $x$ .
325
+
326
+ Proof. Value symmetry implies that $\operatorname { L } ^ { \mathrm { s } } ( X _ { i } , \mathfrak { p } ) = \operatorname { L } ^ { \mathrm { s } } ( \lnot X _ { i } , 1 - \mathfrak { p } )$ . Using label-literal correspondence, this implies $K _ { 1 } \log ( p _ { i } ) = K _ { 2 } \log ( 1 - ( 1 - p _ { i } ) )$ for the multiplicative constants $K _ { 1 }$ and $K _ { 2 }$ that are left unspecified by that axiom. This implies that the constants are identical. A similar argument based on variable symmetry proves equality between the multiplicative constants for different $i$ .
327
+
328
+ Proof of Lemma 3. A state $\mathbf { x }$ is a conjunction of independent literals, and therefore subject to the additive independence axiom. Each literal’s loss in this sum is defined by Lemma 7. □
329
+
330
+ The following and final axiom requires that the semantic loss is proportionate to the logarithm of a function that is additive for mutually exclusive sentences.
331
+
332
+ Axiom 9 (Exponential Additivity). Let $\alpha$ and $\beta$ be mutually exclusive sentences (i.e., $\alpha \wedge \beta$ is unsatisfiable), and let $f ^ { s } ( K , \alpha , { \mathsf { p } } ) = K ^ { - \mathtt { L } ^ { \mathtt { s } } ( \alpha , { \mathsf { p } } ) }$ . Then, there exists a positive constant $K$ such that $f ^ { s } ( K , \alpha \vee \beta , \mathsf { p } ) = f ^ { s } ( K , \alpha , \mathsf { p } ) + f ^ { s } ( K , \beta , \mathsf { p } )$ .
333
+
334
+ Proof of Theorem 4. The truth axiom states that $\forall \mathsf { p }$ $, f ^ { s } ( K , t r u e , \mathfrak { p } ) = 1$ for all positive constants $K$ . This is the first Kolmogorov axiom of probability. The second Kolmogorov axiom for $f ^ { s } ( K , . , { \mathsf { p } } )$ follows from the additive independence axiom of semantic loss. The third Kolmogorov axiom (for the finite discrete case) is given by the exponential additivity axiom of semantic loss. Hence, $f ^ { s } ( K , . , { \mathsf { p } } )$ is a probability distribution for some choice of $K$ , which implies the definition up to a multiplicative constant. □
335
+
336
+ # B SPECIFICATION OF THE CONVOLUTIONAL NEURAL NETWORK MODEL
337
+
338
+ Table 6 shows the slight architectural difference between the CNN used in ladder nets and ours. The major difference lies in the choice of ReLu. Note we add standard padded cropping to preprocess images and an additional fully connected layer at the end of the model, neither is used in ladder nets. We only make those slight modification so that the baseline performance reported by Rasmus et al. (2015) can be reproduced.
339
+
340
+ # C HYPER-PARAMETER TUNING DETAILS
341
+
342
+ Validation sets are used for tuning the weight associated with semantic loss, the only hyperparameter that causes noticeable difference in performance for our method. For our semi-supervised classification experiments, we perform a grid search over $\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ to find the optimal value. Empirically, 0.005 always gives the best or nearly the best results and we report its results on all experiments.
343
+
344
+ For the FASHION dataset specifically, because MNIST and FASHION share the same image size and structure, methods developed in MNIST should be able to directly perform on FASHION without heavy modifications. Because of this, we use the same hyper-parameters when evaluating our method. However, for the sake of fairness, we subject ladder nets to a small-scale parameter tuning in case its performance is more volatile.
345
+
346
+ For the grids experiment, the only hyper parameter that needed to be tuned was again the weight given to semantic loss, which after trying $\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 , 1 \}$ was selected to be
347
+
348
+ Table 6: Specifications of CNNs in Ladder Net and our proposed method.
349
+
350
+ <table><tr><td>CNNinLadderNet</td><td>CNN in this paper</td></tr><tr><td colspan="2">Input 32×32 RGB image</td></tr><tr><td></td><td>Resizing to 36 × 36 with padding Cropping Back</td></tr><tr><td colspan="2">Whitening Contrast Normalization</td></tr><tr><td colspan="2">Gaussian Noise with std.of 0.3</td></tr><tr><td>3 ×3 conv. 96 BNLeakyReLU</td><td>3×3 conv. 96 BN ReLU</td></tr><tr><td>3×3 conv. 96 BNLeakyReLU</td><td>3 ×3 conv. 96 BN ReLU</td></tr><tr><td>3 ×3 conv. 96 BNLeakyReLU</td><td>3×3 conv. 96 BN ReLU</td></tr><tr><td colspan="2">2×2 max-pooling stride 2 BN</td></tr><tr><td>3×3 conv.192BNLeakyReLU</td><td>3×3 conv.192 BN ReLU</td></tr><tr><td>3×3 conv.192 BNLeakyReLU</td><td>3×3 conv. 192 BN ReLU</td></tr><tr><td>3×3 conv.192 BN LeakyReLU</td><td>3×3 conv.192 BN ReLU</td></tr><tr><td colspan="2">2×2 max-pooling stride 2 BN</td></tr><tr><td>3×3conv.192BNLeakyReLU</td><td>3×3conv.192 BNReLU</td></tr><tr><td>1×1 conv.192 BN LeakyReLU</td><td>3×3 conv. 192 BN ReLU</td></tr><tr><td>1×1conv.10 BNLeakyReLU</td><td>1×1 conv. 10 BN ReLu</td></tr><tr><td colspan="2">global meanpool BN</td></tr><tr><td></td><td>fully connected BN</td></tr><tr><td colspan="2">10-way softmax</td></tr></table>
351
+
352
+ 0.5 based on validation results. For the preference learning experiment, we initially chose the semantic loss weight from $\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 , 1 \}$ to be 0.1 based on validation, and then further tuned the weight to 0.25.
353
+
354
+ # D SPECIFICATION OF COMPLEX CONSTRAINT MODELS
355
+
356
+ Grids To compile our grid constraint, we first use Nishino et al. (2017) to generate a constraint for each source destination pair. Then, we conjoin each of these with indicators specifying which source and destination pair must be used, and finally we disjoin all of these together to form our constraint.
357
+
358
+ To generate the data, we begin by randomly removing one third of edges. We then filter out connected components with fewer than 5 nodes to reduce degenerate cases, and proceed with randomly selecting pairs of point to create data points.
359
+
360
+ The predictive model we employ as our baseline is a 5 layer MLP with 50 hidden sigmoid units per layer. It is trained using Adam Optimizer, with full data batches (Kingma & Ba, 2015). Early stopping with respect to validation loss is used as a regularizer.
361
+
362
+ Preference Learning We split each user’s ordering into their ordering over sushis 1,2,3,5,7,8, which we use as the features, and their ordering over 4,6,9,10 which are the labels we predict. The constraint is compiled directly from logic, as this can be done in a straightforward manner for an n-item ordering.
363
+
364
+ The predictive model we use here is a 3 layer MLP with 25 hidden sigmoid units per layer. It is trained using Adam Optimizer with full data batches (Kingma & Ba, 2015). Early stopping with respect to validation loss is used as a regularizer.
parse/train/HkepKG-Rb/HkepKG-Rb_content_list.json ADDED
@@ -0,0 +1,1919 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A SEMANTIC LOSS FUNCTION FOR DEEP LEARNING WITH SYMBOLIC KNOWLEDGE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 754,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "ABSTRACT ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 454,
20
+ 220,
21
+ 544,
22
+ 236
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "This paper develops a novel methodology for using symbolic knowledge in deep learning. From first principles, we derive a semantic loss function that bridges between neural output vectors and logical constraints. This loss function captures how close the neural network is to satisfying the constraints on its output. An experimental evaluation shows that our semantic loss function effectively guides the learner to achieve (near-)state-of-the-art results on semi-supervised multi-class classification. Moreover, it significantly increases the ability of the neural network to predict structured objects, such as rankings and paths. These discrete concepts are tremendously difficult to learn, and benefit from a tight integration of deep learning and symbolic reasoning methods. ",
29
+ "bbox": [
30
+ 233,
31
+ 257,
32
+ 764,
33
+ 397
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 INTRODUCTION ",
40
+ "text_level": 1,
41
+ "bbox": [
42
+ 176,
43
+ 435,
44
+ 336,
45
+ 452
46
+ ],
47
+ "page_idx": 0
48
+ },
49
+ {
50
+ "type": "text",
51
+ "text": "The widespread success of representation learning raises the question of which AI tasks are amenable to deep learning, which require classical model-based symbolic reasoning, and whether we can benefit from an integration of both. In recent years, significant effort has gone towards various ways of using representation learning to solve tasks that were previously tackled by symbolic methods. Such efforts include neural computers, Turing machines, and differentiable programming (e.g., Weston et al. (2014); Reed & De Freitas (2015); Graves et al. (2016); Riedel et al. (2016)), relational embeddings, deep learning for graph data, and neural theorem proving (e.g., Bordes et al. (2013); Neelakantan et al. (2015); Duvenaud et al. (2015); Niepert et al. (2016)), and many more. Other work has sought to augment deep learning with (symbolic) knowledge (e.g., Hu et al. (2016); Stewart & Ermon (2017); Marquez-Neila et al. (2017); Minervini et al. (2017); Wang et al. (2017)). ´ ",
52
+ "bbox": [
53
+ 174,
54
+ 470,
55
+ 825,
56
+ 611
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "This paper considers learning tasks where we have symbolic knowledge connecting the different outputs of a neural network. This knowledge takes the form of a constraint (or sentence) in Boolean logic. It can be as simple as an exactly-one constraint for one-hot output encodings, or as complex as a structured output prediction constraint for intricate combinatorial objects such as rankings, subgraphs, and paths. Our goal is to augment neural networks with the ability to learn how to make predictions subject to these constraints, and use the symbolic knowledge to improve its performance. ",
63
+ "bbox": [
64
+ 174,
65
+ 617,
66
+ 825,
67
+ 700
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Most neuro-symbolic approaches aim to simulate or learn symbolic reasoning in an end-to-end deep neural network, or capture symbolic knowledge in a vector-space embedding. This choice is partly motivated by the need for smooth differentiable models; adding symbolic reasoning code (e.g., SAT solvers) to a deep learning pipeline destroys this property. Unfortunately, while making reasoning differentiable, the precise logical meaning of the knowledge is often lost. In this paper, we take a distinctly different approach, and tackle the problem of differentiable but sound logical reasoning from first principles. Starting from a set of intuitive axioms, we derive a differentiable semantic loss function that captures how well the outputs of a neural network match a given constraint. This function precisely captures the meaning of the constraint, and is independent of its syntax. ",
74
+ "bbox": [
75
+ 174,
76
+ 708,
77
+ 825,
78
+ 833
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Next, we show how this semantic loss gives significant practical improvements in semi-supervised classification. The semantic loss defined over the exactly-one constraint in this setting permits us to obtain a learning signal from vast amounts of unlabeled data. The key idea is that the semantic loss helps us improve how consistently we are able to classify the unlabeled data. This simple addition to the loss function of standard deep learning architectures yields (near-)state-of-the-art performance in semi-supervised classification on MNIST, FASHION and CIFAR-10 datasets. ",
85
+ "bbox": [
86
+ 174,
87
+ 840,
88
+ 823,
89
+ 922
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/908b06431175243b10447e79ffaca6771156931dd43e1b26edd7a157a8c2ba04.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Outputs of a neural network feed into semantic loss functions for constraints representing a one-hot encoding, a total ranking of preferences, and paths in a grid graph. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 261,
102
+ 102,
103
+ 733,
104
+ 231
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Our final set of experiments study the benefits of the semantic loss function for complex structured output learning tasks, such as preference learning and path prediction in a graph (Daume et al., 2009; ´ Chang et al., 2013; Choi et al., 2015; Graves et al., 2016). In these scenarios, the task is two-fold: learn both the structure of the output space, and the actual classification function within that space. By capturing the structure of the output space with logical constraints, and minimizing the semantic loss for this constraint during learning, we are able to learn networks that are much more likely to correctly predict structured objects. ",
111
+ "bbox": [
112
+ 173,
113
+ 300,
114
+ 825,
115
+ 397
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "2 BACKGROUND AND NOTATION",
122
+ "text_level": 1,
123
+ "bbox": [
124
+ 176,
125
+ 420,
126
+ 460,
127
+ 435
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "To formally define semantic loss, we make use of concepts in propositional logic. We write uppercase letters $( X , Y )$ for Boolean variables and lowercase letters $( x , y )$ for their instantiation $X = 0$ or $X = 1$ ). Sets of variables are written in bold uppercase $( \\mathbf { X } , \\mathbf { Y } )$ , and their joint instantiation in bold lowercase $\\mathbf { \\Gamma } ( \\mathbf { x } , \\mathbf { y } )$ . A literal is a variable $( x )$ or its negation $( \\neg x )$ . A logical sentence ( $\\alpha$ or $\\beta$ ) is constructed in the usual way, from variables and logical connectives $( \\wedge , \\vee$ , etc.), and is also called a formula or constraint. A state or world $\\mathbf { x }$ is an instantiation to all variables $\\mathbf { X }$ . A state $\\mathbf { x }$ satisfies a sentence $\\alpha$ , denoted $\\mathbf { x } \\Vdash \\alpha$ , if the sentence evaluates to be true in that world, as defined in the usual way. A sentence $\\alpha$ entails another sentence $\\beta$ , denoted $\\alpha \\models \\beta$ if all worlds that satisfy $\\alpha$ also satisfy $\\beta$ . A sentence $\\alpha$ is logically equivalent to sentence $\\beta$ , denoted $\\alpha \\equiv \\beta$ , if both $\\alpha \\models \\beta$ and $\\beta \\models \\alpha$ . ",
134
+ "bbox": [
135
+ 173,
136
+ 452,
137
+ 825,
138
+ 578
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "The output row vector of a neural net is denoted $\\mathsf { p }$ . Each value in $\\mathsf { p }$ represents the probability of an output and falls in $[ 0 , 1 ]$ . We use both softmax and sigmoid units for our output activation functions. The notation for states $\\mathbf { x }$ is used to refer the an assignment, the logical sentence enforcing the assignment, or the binary vector capturing that same assignment, as these are all equivalent notions. ",
145
+ "bbox": [
146
+ 174,
147
+ 584,
148
+ 825,
149
+ 640
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Figure 1 illustrates the three different concrete output constraints of varying difficulty that are studied in our experiments. First, we examine the exactly-one or one-hot constraint capturing the encoding used in multi-class classification. It states that for a set of indicators $\\mathbf { X } = \\{ X _ { 1 } , \\ldots , X _ { n } \\}$ , one and exactly one of those indicators must be true, with the rest being false. This is enforced through a logical constraint $\\alpha$ by conjoining sentences of the form $\\neg X _ { 1 } \\lor \\neg X _ { 2 }$ for all pairs of variables (at most one variable is true), and a single sentence $X _ { 1 } \\lor \\cdots \\lor X _ { n }$ (at least one variable is true). Our experiments further examine the valid simple path constraint. It states for a given source-destination pair and edge indicators, that the edge indicators which are set to true must form a valid simple path from source to destination. Finally, we explore the ordering constraint, which requires that a set of $n ^ { 2 }$ indicator variables represent a total ordering over $n$ variables, effectively encoding a permutation matrix. For a full description of the path and ordering constraints, we refer to Section 5. ",
156
+ "bbox": [
157
+ 173,
158
+ 646,
159
+ 825,
160
+ 800
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "3 SEMANTIC LOSS ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 176,
170
+ 820,
171
+ 344,
172
+ 838
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "Our goal in this section is to find a semantic loss function that bridges the gap between the continuous world of neural networks, and the symbolic world of propositional logic. We do so by first postulating intuitive high-level properties that we seek in such a function, and that illustrate its desired behavior. A second set of postulates establish a correspondence between constraints and data. Finally, we uniquely define the semantic loss function used throughout this paper. ",
179
+ "bbox": [
180
+ 174,
181
+ 853,
182
+ 823,
183
+ 924
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "The semantic loss $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathsf { p } )$ is a function of a sentence $\\alpha$ in propositional logic, defined over variables $\\mathbf { X } = \\{ X _ { 1 } , \\ldots , X _ { n } \\}$ , and a vector of probabilities $\\mathsf { p }$ for the same variables X. Element ${ \\mathsf p } _ { i }$ denotes the predicted probability of variable $X _ { i }$ , and corresponds to a single output of the neural net. For example, the semantic loss between the one-hot constraint from the previous section, and a neural net output vector $\\mathsf { p }$ , is intended to capture how close the prediction p is to having exactly one output set to true (that is, 1), and all others set to false (that is, 0), regardless of which output is correct. ",
190
+ "bbox": [
191
+ 174,
192
+ 103,
193
+ 825,
194
+ 188
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "3.1 HIGH-LEVEL PROPERTIES",
201
+ "text_level": 1,
202
+ "bbox": [
203
+ 174,
204
+ 204,
205
+ 397,
206
+ 218
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "The first axiom says that there is no loss when the logical constraint $\\alpha$ is always true (it is a logical tautology), independent of the predicted probabilities p. ",
213
+ "bbox": [
214
+ 173,
215
+ 229,
216
+ 823,
217
+ 258
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "Axiom 1 (Truth). The semantic loss of a true sentence is zero: $\\forall \\mathsf { p } , \\mathrm { L } ^ { \\mathrm { s } } ( t r u e , \\mathsf { p } ) = 0 .$ . ",
224
+ "bbox": [
225
+ 178,
226
+ 262,
227
+ 725,
228
+ 277
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Next, when enforcing two constraints on disjoint sets of variables, we want the ability to compute the semantic loss of the two constraints separately, and sum the results for their joint semantic loss. ",
235
+ "bbox": [
236
+ 173,
237
+ 285,
238
+ 825,
239
+ 313
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Axiom 2 (Additive Independence). Let $\\alpha$ be a sentence over $\\mathbf { X }$ with probabilities $\\mathsf { p }$ . Let $\\beta$ be a sentence over $\\mathbf { Y }$ disjoint from $\\mathbf { X }$ with probabilities $\\mathsf { q }$ . The semantic loss between sentence $\\alpha \\wedge \\beta$ and the joint probability vector [p q] decomposes additively: $\\operatorname { L } ^ { \\mathrm { s } } ( \\alpha \\wedge \\beta , [ { \\mathsf { p q } } ] ) = \\operatorname { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathsf { p } } ) + \\operatorname { L } ^ { \\mathrm { s } } ( \\beta , { \\mathsf { q } } )$ . ",
246
+ "bbox": [
247
+ 174,
248
+ 316,
249
+ 825,
250
+ 359
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "It directly follows from Axioms 1 and 2 that the probabilities of variables that are not used on the constraint do not affect the semantic loss. Proposition 6 in Appendix A formalizes this intuition. ",
257
+ "bbox": [
258
+ 171,
259
+ 366,
260
+ 823,
261
+ 395
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "To maintain logical meaning, we postulate that semantic loss is monotone in the order of implication. ",
268
+ "bbox": [
269
+ 174,
270
+ 401,
271
+ 820,
272
+ 416
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Axiom 3 (Monotonicity). If $\\alpha \\models \\beta$ , then the semantic loss $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathfrak { p } } ) \\geq \\mathrm { L } ^ { \\mathrm { s } } ( \\beta , { \\mathfrak { p } } )$ for any vector $\\mathsf { p }$ . ",
279
+ "bbox": [
280
+ 173,
281
+ 420,
282
+ 810,
283
+ 435
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Intuitively, as we add stricter requirements to the logical constraint, going from $\\beta$ to $\\alpha$ and making it harder to satisfy, the semantic loss cannot decrease. For example, when $\\beta$ enforces the output of an neural network to encode a subtree of a graph, and we tighten that requirement in $\\alpha$ to be a path, the semantic loss cannot decrease. Every path is also a tree and any solution to $\\alpha$ is a solution to $\\beta$ . ",
290
+ "bbox": [
291
+ 173,
292
+ 441,
293
+ 825,
294
+ 498
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "A first consequence following the monotonicity axiom is that logically equivalent sentences must incur an identical semantic loss for the same probability vector p. Hence, the semantic loss is indeed a semantic property of the logical sentence, and does not depend on the syntax of the sentence. ",
301
+ "bbox": [
302
+ 174,
303
+ 505,
304
+ 823,
305
+ 547
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Proposition 1. If $\\alpha \\equiv \\beta$ , then the semantic loss $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathfrak { p } } ) = \\mathrm { L } ^ { \\mathrm { s } } ( \\beta , { \\mathfrak { p } } )$ for any vector p. ",
312
+ "bbox": [
313
+ 176,
314
+ 550,
315
+ 735,
316
+ 566
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "A second consequence is that semantic loss must be non-negative (see Proposition 5 in Appendix A). ",
323
+ "bbox": [
324
+ 173,
325
+ 573,
326
+ 821,
327
+ 588
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "3.2 DATA-SENTENCE CORRESPONDENCE ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 176,
337
+ 604,
338
+ 472,
339
+ 619
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "A state $\\mathbf { x }$ is equivalently represented as a data vector, as well as a logical constraint that enforces a value for every variable in $\\mathbf { X }$ . When both the constraint and the predicted vector represent the same state (for example, $X _ { 1 } \\wedge { \\neg { X _ { 2 } } } \\wedge X _ { 3 }$ vs. [1 0 1]), there should be no semantic loss. ",
346
+ "bbox": [
347
+ 174,
348
+ 631,
349
+ 825,
350
+ 674
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Axiom 4 (Identity). For any state $\\mathbf { x }$ , there is zero semantic loss between its representation as a sentence, and its representation as a deterministic vector: $\\forall \\mathbf { x } , \\mathrm { L } ^ { \\mathrm { s } } ( \\mathbf { x } , \\mathbf { x } ) = 0$ . ",
357
+ "bbox": [
358
+ 169,
359
+ 678,
360
+ 823,
361
+ 705
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "The axioms above together imply that any vector satisfying the constraint must incur zero loss. For example, when our constraint $\\alpha$ requires that the output vector encodes an arbitrary total ranking, and the vector $\\mathbf { x }$ correctly represents a single specific total ranking, there is no semantic loss. ",
368
+ "bbox": [
369
+ 174,
370
+ 713,
371
+ 825,
372
+ 755
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Proposition 2 (Satisfaction). If $\\mathbf { \\dot { x } } \\Vdash \\alpha$ , then the semantic loss $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathbf { x } ) = 0$ . ",
379
+ "bbox": [
380
+ 176,
381
+ 758,
382
+ 676,
383
+ 773
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "As a special case, logical literals $\\scriptstyle { \\dot { x } }$ or $\\neg x$ ) constrain a single variable to take on a single value, and thus play a role similar to the labels used in supervised learning. Such constraints require an even tighter correspondence: the semantic loss must act like a classical loss function (i.e., cross entropy). ",
390
+ "bbox": [
391
+ 176,
392
+ 781,
393
+ 828,
394
+ 823
395
+ ],
396
+ "page_idx": 2
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Axiom 5 (Label-Literal Correspondence). The semantic loss of a single literal is proportionate to the cross-entropy loss for the equivalent data label: $\\mathrm { L } ^ { \\mathrm { s } } ( x , p ) \\propto - \\log ( p )$ and $\\mathrm { L } ^ { \\mathrm { s } } ( \\neg { x } , \\bar { p } ) \\overset { \\cdot } { \\propto } - \\log ( 1 - p )$ . ",
401
+ "bbox": [
402
+ 171,
403
+ 827,
404
+ 823,
405
+ 856
406
+ ],
407
+ "page_idx": 2
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "Appendix A states Axioms 7 and 8, on the symmetry between values and the symmetry between variables, as well as a Lemma 7 that ties together the multiplicative constants mentioned in Axiom 5. Finally, this allows us to prove the following form of the semantic loss for a state $\\mathbf { x }$ . ",
412
+ "bbox": [
413
+ 176,
414
+ 863,
415
+ 821,
416
+ 905
417
+ ],
418
+ "page_idx": 2
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Lemma 3. For state x and vector p, we have $\\begin{array} { r } { \\mathrm { L } ^ { \\mathrm { s } } ( \\mathbf { x } , \\mathsf { p } ) \\propto - \\sum _ { i : \\mathbf { x } | = X _ { i } } \\log \\mathsf { p } _ { i } - \\sum _ { i : \\mathbf { x } | = \\lnot X _ { i } } \\log ( 1 - \\mathsf { p } _ { i } ) . } \\end{array}$ ",
423
+ "bbox": [
424
+ 171,
425
+ 909,
426
+ 820,
427
+ 926
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "image",
433
+ "img_path": "images/5fcbfe708dc5ef9963d1119ec14ca3d17f5eace11a8e49df2a20fcaf583e6a6f.jpg",
434
+ "image_caption": [
435
+ "Figure 2: Binary classification toy example: a linear classifier without and with semantic loss. "
436
+ ],
437
+ "image_footnote": [],
438
+ "bbox": [
439
+ 245,
440
+ 112,
441
+ 738,
442
+ 231
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "3.3 A GENERAL DEFINITION ",
449
+ "text_level": 1,
450
+ "bbox": [
451
+ 174,
452
+ 285,
453
+ 387,
454
+ 299
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "Lemma 3 falls short as a full definition of semantic loss for arbitrary sentences. One can define additional axioms to pin down $\\mathrm { L } ^ { \\mathrm { s } }$ . For example, the following axiom is highly desirable. ",
461
+ "bbox": [
462
+ 173,
463
+ 311,
464
+ 823,
465
+ 340
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Axiom 6 (Differentiability). For any fixed $\\alpha$ , the semantic loss $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathsf { p } )$ is monotone in each probability in p, continuous and differentiable. ",
472
+ "bbox": [
473
+ 174,
474
+ 344,
475
+ 820,
476
+ 373
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "Appendix A makes the notion of semantic loss precise by stating one additional axiom. It is based on the observation that the state loss of Lemma 3 is proportionate to a log-probability. In particular, it corresponds to the probability of obtaining state $\\mathbf { x }$ after independently sampling each $X _ { i }$ with probability ${ \\mathsf { p } } _ { i }$ . We have now derived the semantic loss function from first principles as follows. ",
483
+ "bbox": [
484
+ 174,
485
+ 381,
486
+ 825,
487
+ 438
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "Definition 1 (Semantic Loss). Let $\\mathsf { p }$ be a vector of probabilities, one for each variable in $\\mathbf { X }$ , and let $\\alpha$ be a sentence over $\\mathbf { X }$ . The semantic loss between $\\alpha$ and $\\mathsf { p }$ is ",
494
+ "bbox": [
495
+ 169,
496
+ 441,
497
+ 823,
498
+ 472
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "equation",
504
+ "img_path": "images/5cdaa907f91cf65ce0836950e29b48878daf757f6c8fdd7e1bf203317f92f496.jpg",
505
+ "text": "$$\n\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathfrak { p } ) \\propto - \\log \\sum _ { \\mathbf { x } \\in \\alpha } \\ \\prod _ { i : \\mathbf { x } | = X _ { i } } \\mathfrak { p } _ { i } \\prod _ { i : \\mathbf { x } | = \\ l - X _ { i } } ( 1 - \\mathfrak { p } _ { i } ) .\n$$",
506
+ "text_format": "latex",
507
+ "bbox": [
508
+ 325,
509
+ 478,
510
+ 671,
511
+ 515
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Theorem 4 (Uniqueness). The semantic loss function in Definition 1 satisfies Axioms 1–9 and is the only function that does so, up to a multiplicative constant. ",
518
+ "bbox": [
519
+ 173,
520
+ 523,
521
+ 825,
522
+ 551
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Intuitively, the semantic loss is proportionate to a negative logarithm of the probability of generating a state that satisfies the constraint, when sampling values according to p. Hence, it is the selfinformation (or “surprise”) of obtaining an assignment that satisfies the constraint (Jones, 1979). ",
529
+ "bbox": [
530
+ 174,
531
+ 559,
532
+ 825,
533
+ 601
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "4 SEMI-SUPERVISED CLASSIFICATION ",
540
+ "text_level": 1,
541
+ "bbox": [
542
+ 174,
543
+ 623,
544
+ 508,
545
+ 640
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "The most straightforward constraint that is ubiquitous in multi-class classification is mutual exclusion over one-hot-encoded outputs. That is, for a given example, exactly one class and therefore exactly one binary indicator must be true. The machine learning community has made great strides in this machine learning task, due to the invention of assorted deep learning representations and their associated regularization terms (Krizhevsky et al., 2012; He et al., 2016). Many of these models take large amounts of fully labeled data for granted, and big data is indispensable for discovering accurate representations (Hastie et al., 2009). To sustain this progress, and alleviate the need for more labeled data, there is a growing interest into utilizing unlabeled data to augment the predictive power of classifiers (Stewart & Ermon, 2017; Bilenko et al., 2004). This section shows why semantic loss naturally qualifies for this task. ",
552
+ "bbox": [
553
+ 174,
554
+ 655,
555
+ 825,
556
+ 795
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Illustrative Example To illustrate the benefit of semantic loss in the semi-supervised setting, we begin our discussion with a small toy example. Consider a binary classification task as depicted in Figure 2. Ignoring the unlabeled examples, a simple linear classifier learns to distinguish the two classes by separating the labeled examples in Figure 2a. However, the unlabeled examples are also informative, as they must carry some properties that give them a particular label. This is the crux of semantic loss: a model must confidently assign a consistent class even to unlabeled data. Encouraging the model to do so results in a more accurate decision boundary, as illustrated in Figure 2b. Next, we further explore this idea and apply it to real-world image classification tasks. ",
563
+ "bbox": [
564
+ 174,
565
+ 811,
566
+ 825,
567
+ 924
568
+ ],
569
+ "page_idx": 3
570
+ },
571
+ {
572
+ "type": "table",
573
+ "img_path": "images/382d2a4abe15b2139dd29370c328c0091c8c8c4c4c01dfa3666c36f7e07b0f84.jpg",
574
+ "table_caption": [
575
+ "Table 1: MNIST. Previously reported test accuracies followed by semantic loss results $\\pm$ stddev) "
576
+ ],
577
+ "table_footnote": [],
578
+ "table_body": "<table><tr><td>Accuracy % with # of used labels</td><td>100</td><td>1000</td><td>ALL</td></tr><tr><td>AtlasRBF (Pitelis et al., 2014) Deep Generative (Kingma et al., 2014) Virtual Adversarial (Miyato et al., 2016) Ladder Net (Rasmus et al., 2015)</td><td>91.9 (± 0.95) 96.67(± 0.14) 97.67 98.94(±0.37)</td><td>96.32 (± 0.12) 97.60(± 0.02) 98.64 99.16 (±0.08)</td><td>98.69 99.04 99.36 99.43 (± 0.02)</td></tr><tr><td>Baseline: MLP, Gaussian Noise Baseline: Self-Training MLP with Semantic Loss (our)</td><td>78.46 (±1.94) 72.55 (±4.21) 98.38 (±0.51)</td><td>94.26 (±0.31) 87.43 (±3.07) 98.78 (±0.17)</td><td>99.34(±0.08) 99.34 (±0.08) 99.36 (±0.02)</td></tr></table>",
579
+ "bbox": [
580
+ 181,
581
+ 126,
582
+ 818,
583
+ 246
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "4.1 METHOD ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 174,
593
+ 267,
594
+ 279,
595
+ 281
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "Our proposed method intends to be generally applicable and compatible with any feedforward neural network. The semantic loss is simply another regularization term that can directly be plugged into an existing loss function. More specifically, for some weight $w$ , the new overall loss becomes ",
602
+ "bbox": [
603
+ 174,
604
+ 292,
605
+ 825,
606
+ 335
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "When the constraint over the output space is simple (for example, there is a small number of solutions ${ \\textbf { x } } | = \\alpha )$ ), the semantic loss can be directly computed from Definition 1. Concretely, for the exactly-one constraint used in $n$ -class classification, the semantic loss reduces to ",
613
+ "bbox": [
614
+ 174,
615
+ 361,
616
+ 825,
617
+ 402
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "equation",
623
+ "img_path": "images/353f7d32bbc0b6553e939f45db8e9abcc0faed8d6e0a32bd8bee3c093b1cac7f.jpg",
624
+ "text": "$$\n\\mathrm { L } ^ { \\mathrm { s } } ( \\mathrm { e x a c t l y - o n e } , \\mathsf { p } ) \\propto - \\log \\sum _ { i = 0 } ^ { n - 1 } \\mathsf { p } _ { i } \\prod _ { j = 0 , j \\neq i } ^ { n - 1 } ( 1 - \\mathsf { p } _ { j } ) ,\n$$",
625
+ "text_format": "latex",
626
+ "bbox": [
627
+ 325,
628
+ 406,
629
+ 669,
630
+ 452
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "where he values ${ \\mathsf { p } } _ { i }$ denote the probability of class $i$ as predicted by the neural net. The semantic loss for the exactly-one constraint is efficient and causes no noticeable overhead in our experiments. ",
637
+ "bbox": [
638
+ 174,
639
+ 454,
640
+ 823,
641
+ 483
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "In general, for arbitrary constraints $\\alpha$ , the semantic loss is not efficient to compute using Definition 1, and more advanced automated reasoning is required. Section 5 discusses this issue in more detail. ",
648
+ "bbox": [
649
+ 171,
650
+ 489,
651
+ 823,
652
+ 518
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "4.2 EXPERIMENTAL EVALUATION ",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 176,
662
+ 534,
663
+ 419,
664
+ 549
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "In this section, we evaluate semantic loss in the semi-supervised setting by comparing it with several competitive models. As most semi-supervised learners build on a supervised learner, changing the underlying model significantly affects the semi-supervised learner’s performance. For comparison, we add semantic loss to the same base models used in ladder nets (Rasmus et al., 2015), which currently achieve state-of-the-art results on semi-supervised MNIST and CIFAR-10 (Krizhevsky & Hinton, 2009). Specifically, the MNIST base model is a fully-connected multilayer perceptron (MLP), with layers of size 784-1000-500-250-250-250-10. On CIFAR-10, it is a 10-layer convolutional neural network (CNN) with 3-by-3 padded filters. After every 3 layers, features are subject to a 2-by-2 max-pool layer with strides of 2. Furthermore, we use ReLu (Nair & Hinton, 2010), batch normalization (Ioffe & Szegedy, 2015), and Adam optimization (Kingma & Ba, 2015) with a learning rate of 0.002. We refer to Appendix B and C for a specification of the CNN model and additional details about hyper-parameter tuning. ",
671
+ "bbox": [
672
+ 174,
673
+ 560,
674
+ 825,
675
+ 727
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "For all semi-supervised experiments, we use the standard 10,000 held-out test examples provided in the original datasets and randomly pick 10,000 from the standard 60,000 training examples (50,000 for CIFAR-10) as validation set. For values of $N$ that depend on the experiment, we retain $N$ randomly chosen labeled examples from the training set, and remove labels from the rest. We balance classes in the labeled samples to ensure no particular class is over-represented. Images are preprocessed for standardization and Gaussian noise (standard deviation 0.3) is added to every pixel. ",
682
+ "bbox": [
683
+ 174,
684
+ 734,
685
+ 825,
686
+ 818
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "MNIST The permutation invariant MNIST classification task is commonly used as a test-bed for general semi-supervised learning algorithms. This setting does not use any prior information about the spatial arrangement of the input pixels. Therefore, it excludes many data augmentation techniques that involve geometric distortion of images, as well as convolutional neural networks. ",
693
+ "bbox": [
694
+ 174,
695
+ 832,
696
+ 823,
697
+ 888
698
+ ],
699
+ "page_idx": 4
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "When evaluating on MNIST, we run experiments for 10 epochs, with a batch size of 10 labeled and 10 unlabeled examples. Experiments are repeated 10 times with different random seeds. Table 1 compares semantic loss to two baselines and state-of-the-art results from the literature. The first baseline is a purely supervised MLP, which makes no use of unlabeled data. The second is the classic self-training method for semi-supervised learning, which operates as follows. After every 1000 iterations, the unlabeled examples that are predicted by the MLP to have more than $9 5 \\%$ probability of belonging to a single class, are assigned a psuedo-label and become labeled data. ",
704
+ "bbox": [
705
+ 176,
706
+ 895,
707
+ 823,
708
+ 924
709
+ ],
710
+ "page_idx": 4
711
+ },
712
+ {
713
+ "type": "table",
714
+ "img_path": "images/ff89704f644f3e6593c3c8d83828a360887e7d0e6cd80810cac0c10c4a2f074a.jpg",
715
+ "table_caption": [
716
+ "Table 2: FASHION. Test accuracy comparison between MLP with semantic loss and ladder nets. "
717
+ ],
718
+ "table_footnote": [],
719
+ "table_body": "<table><tr><td>Accuracy % with # of used labels</td><td>100</td><td>500</td><td>1000</td><td>ALL</td></tr><tr><td>Ladder Net (Rasmus et al., 2015)</td><td>81.46(±0.64)</td><td>85.18 (±0.27)</td><td>86.48 (± 0.15)</td><td>90.46</td></tr><tr><td>Baseline:MLP,GaussianNoise</td><td>69.45 (±2.03)</td><td>78.12 (±1.41)</td><td>80.94(±0.84)</td><td>89.87</td></tr><tr><td>MLP with Semantic Loss (our)</td><td>86.74 (±0.71)</td><td>89.49 (±0.24)</td><td>89.67 (±0.09)</td><td>89.81</td></tr></table>",
720
+ "bbox": [
721
+ 178,
722
+ 126,
723
+ 820,
724
+ 189
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "table",
730
+ "img_path": "images/b7d62a35b32a503a67f361db1b27aa8cf0b87fac738baa883106d21dc7e09056.jpg",
731
+ "table_caption": [
732
+ "Table 3: CIFAR. Test accuracy comparison between CNN with semantic loss and ladder nets. "
733
+ ],
734
+ "table_footnote": [],
735
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Accuracy % with # of used labels</td><td rowspan=1 colspan=1>4000</td><td rowspan=1 colspan=1>ALL</td></tr><tr><td rowspan=2 colspan=1>CNNBaselineinLadderNetLadder Net (Rasmus et al., 2015)Baseline: CNN,Whitening, CroppingCNN with Semantic Loss (our)</td><td rowspan=1 colspan=1>76.67 (± 0.61)79.60 (±0.47)</td><td rowspan=1 colspan=1>90.73</td></tr><tr><td rowspan=1 colspan=1>77.1381.79</td><td rowspan=1 colspan=1>90.9690.92</td></tr></table>",
736
+ "bbox": [
737
+ 276,
738
+ 227,
739
+ 720,
740
+ 303
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "",
747
+ "bbox": [
748
+ 174,
749
+ 328,
750
+ 825,
751
+ 398
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "When given 100 labeled examples ( $N = 1 0 0 \\mathrm { \\ : }$ ), MLP with semantic loss gains around $2 0 \\%$ improvement over the purely supervised baseline. The improvement is even larger $( 2 5 \\% )$ compared to self-training. Considering the only change is an additional loss term, this result is very encouraging. Compared to the state of the art, ladder nets slightly outperform semantic loss by $0 . 5 \\%$ accuracy. This difference may be an artifact of the excessive tuning of architectures, hyper-parameters and learning rates that the MNIST dataset has been subject to. In the coming experiments, we extend our work to more challenging datasets, in order to provide a clearer comparison with ladder nets. ",
758
+ "bbox": [
759
+ 173,
760
+ 405,
761
+ 825,
762
+ 502
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "First, we want to share a few more thoughts on how semantic loss works. A classical softmax layer interprets its output as representing a categorical distribution. Hence, by normalizing its outputs, softmax enforces the same mutual exclusion constraint enforced in our semantic loss function. However, there does not exist a natural way to extend softmax loss to unlabeled samples. In contrast, semantic loss does provide a learning signal on unlabeled samples, by forcing the underlying classifier to make an decision and construct a confident hypothesis for all data. However, for the fully supervised case $N = \\mathrm { a l l }$ ), the semantic loss does not significantly affect accuracy. Because the MLP has enough capacity to almost perfectly fit the training data, where the constraint is always satisfied, the semantic loss is almost always zero. This is a direct consequence of Proposition 2. ",
769
+ "bbox": [
770
+ 174,
771
+ 510,
772
+ 825,
773
+ 635
774
+ ],
775
+ "page_idx": 5
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "FASHION The FASHION (Xiao et al., 2017) dataset consists of Zalando’s article images, aiming to serve as a more challenging drop-in replacement for MNIST. Arguably, it has not been overused and requires more advanced techniques to achieve good performance. As in the previous experiment, we run our method for 10 epochs, whereas ladder nets need 100 epochs to converge. Again, experiments are repeated 10 times and Table 2 reports the classification accuracy and its standard deviation (except for $N =$ all where it is close to 0 and omitted for space). ",
780
+ "bbox": [
781
+ 173,
782
+ 650,
783
+ 825,
784
+ 734
785
+ ],
786
+ "page_idx": 5
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Experiments show that utilizing semantic loss results in a very large $1 7 \\%$ improvement over the baseline when only 100 labels are provided. Moreover, our method compares favorably to ladder nets, except when the setting degrades to be fully supervised. Note that our method already nearly reaches its maximum accuracy with 500 labeled examples, which is only $1 \\%$ of the training dataset. ",
791
+ "bbox": [
792
+ 174,
793
+ 741,
794
+ 823,
795
+ 796
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "CIFAR-10 To show the general applicability of semantic loss, we evaluate it on CIFAR-10. This dataset consisting of 32-by-32 RGB images in 10 classes. A simple MLP would not have enough representation power to capture the huge variance across objects within the same class. To cope with this spike in difficulty, we switch our underlying model to a 10-layer CNN as described earlier. We use a batch size of 100 samples of which half are unlabeled. Experiments are run for 100 epochs. However, due to our limited computational resources, we report on a single trial. Note that we make slight modifications to the underlying model used in ladder nets to reproduce similar baseline performance. Please refer to Appendix B for the details of this experimental setup. ",
802
+ "bbox": [
803
+ 173,
804
+ 811,
805
+ 825,
806
+ 924
807
+ ],
808
+ "page_idx": 5
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "As shown in Table 3, our method compares favorably to ladder nets. However, due to the slight difference in performance between the supervised base models, a direct comparison would be methodologically flawed. Instead, we compare the net improvements over baselines. In terms of this measure, our method scores a gain of $4 . { \\bar { 6 } } 6 \\%$ whereas ladder nets gain $2 . 9 3 \\%$ . ",
813
+ "bbox": [
814
+ 176,
815
+ 103,
816
+ 823,
817
+ 160
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "4.3 DISCUSSION ",
824
+ "text_level": 1,
825
+ "bbox": [
826
+ 176,
827
+ 176,
828
+ 302,
829
+ 190
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "Overall, the experiments so far have demonstrated the competitiveness and general applicability of our proposed method on semi-supervised learning tasks. It surpassed the previous state of the art (i.e. ladder nets ) on FASHION and CIFAR-10, while being close on MNIST. Considering the simplicity of our method, such results are encouraging. Indeed, a key advantage of semantic loss is that it only requires a simple additional loss term. Without changing the network architecture itself, we incur almost no computational overhead. Conversely, this property makes our method sensitive to the underlying model’s performance. Without the underlying predictive power of a strong supervised learning model, we do not expect to see the same benefits we observe here. Recently, we became aware that Miyato et al. (2016) extended their work to CIFAR-10 and achieved state-of-the-art results (Miyato et al., 2017), surpassing our performance by $5 \\%$ . In future work, we plan to investigate whether applying semantic loss on their architecture would yield an even stronger performance. ",
836
+ "bbox": [
837
+ 174,
838
+ 202,
839
+ 825,
840
+ 356
841
+ ],
842
+ "page_idx": 6
843
+ },
844
+ {
845
+ "type": "image",
846
+ "img_path": "images/684ff625c16715167670292375e1562c7bf4528618063e9e1026bc8e042c3a58.jpg",
847
+ "image_caption": [
848
+ "Figure 3: FASHION pictures grouped by how confidently the supervised base model classifies them correctly. With semantic loss, the final semi-supervised model predicts all correctly and confidently. "
849
+ ],
850
+ "image_footnote": [],
851
+ "bbox": [
852
+ 187,
853
+ 369,
854
+ 803,
855
+ 469
856
+ ],
857
+ "page_idx": 6
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "Figure 3 illustrates the effect of semantic loss on FASHION pictures whose correct label was hidden from the learner. Pictures 3a and 3b are correctly classified by the supervised base model, and on the first set it is confident about this prediction $( { \\mathsf p } _ { i } > 0 . 8 )$ . The semantic loss rarely diverts the model from these initially correct labels. However, it bootstraps these unlabeled examples to achieve higher confidence in the learned concepts. With this additional learning signal, the model changes its beliefs about Pictures 3c, which it was previously uncertain about. Finally, even on confidently misclassified Pictures 3d, the semantic loss is able to fully correct the mistakes of the base model. ",
862
+ "bbox": [
863
+ 173,
864
+ 522,
865
+ 825,
866
+ 621
867
+ ],
868
+ "page_idx": 6
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "5 LEARNING WITH COMPLEX CONSTRAINTS ",
873
+ "text_level": 1,
874
+ "bbox": [
875
+ 174,
876
+ 640,
877
+ 562,
878
+ 657
879
+ ],
880
+ "page_idx": 6
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "While much of current machine learning research is focused on problems such as multi-class classification, there remain a multitude of difficult problems involving highly constrained output domains. As mentioned in the previous section, semantic loss has little effect on the fully-supervised exactly-one classification problem. This leads us to seek out more difficult problems to illustrate that semantic loss can also be highly informative in the supervised case, provided the output domain is a sufficiently complex space. Because semantic loss is defined by a Boolean formula, it can be used on any output domain that can be fully described in this manner. Here, we develop a framework for tractable semantic loss on highly complex constraints, and evaluate it on some difficult examples. ",
885
+ "bbox": [
886
+ 174,
887
+ 671,
888
+ 825,
889
+ 784
890
+ ],
891
+ "page_idx": 6
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "5.1 A TRACTABLE SEMANTIC LOSS ",
896
+ "text_level": 1,
897
+ "bbox": [
898
+ 176,
899
+ 800,
900
+ 434,
901
+ 814
902
+ ],
903
+ "page_idx": 6
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Our goal here is to develop a method for computing both the semantic loss and its gradient in a tractable manner. Examining Definition 1 of semantic loss, we see that the right-hand side is a wellknown automated reasoning task called weighted model counting (WMC) (Chavira & Darwiche, 2008; Sang et al., 2005). A key property of WMC is that its partial derivatives can be computed in terms of other, slightly modified WMCs. Furthermore, we know of circuit languages that compute WMCs, and that are amenable to backpropagation (Darwiche, 2003). We use the language and circuit compilation techniques described in Darwiche (2011) to build a Boolean circuit representing our semantic loss. We refer to the literature for details of this compilation approach. Due to certain properties of this circuit form, we can use it to compute both the values and the gradients of the semantic loss in time linear in the size of the circuit (Darwiche & Marquis, 2002). Once we have constructed this function, we can add it to our standard loss function as described in Section 4.1. ",
908
+ "bbox": [
909
+ 174,
910
+ 825,
911
+ 825,
912
+ 924
913
+ ],
914
+ "page_idx": 6
915
+ },
916
+ {
917
+ "type": "table",
918
+ "img_path": "images/ba42d7903b36e4520dcf1d5821e29357a1cf1180cc8d69b4a291aa60a57545f5.jpg",
919
+ "table_caption": [
920
+ "Table 4: Grid shortest path test results: coherent, incoherent and constraint accuracy. "
921
+ ],
922
+ "table_footnote": [],
923
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Test accuracy %</td><td rowspan=1 colspan=1>Coherent</td><td rowspan=1 colspan=1>Incoherent</td><td rowspan=1 colspan=1>Constraint</td></tr><tr><td rowspan=1 colspan=1>5-layer MLP</td><td rowspan=1 colspan=1>5.62</td><td rowspan=1 colspan=1>85.91</td><td rowspan=1 colspan=1>6.99</td></tr><tr><td rowspan=1 colspan=1>With semantic loss (our)</td><td rowspan=1 colspan=1>28.51</td><td rowspan=1 colspan=1>83.14</td><td rowspan=1 colspan=1>69.89</td></tr></table>",
924
+ "bbox": [
925
+ 279,
926
+ 126,
927
+ 718,
928
+ 172
929
+ ],
930
+ "page_idx": 7
931
+ },
932
+ {
933
+ "type": "table",
934
+ "img_path": "images/fc01d806839dcd7d00573563b65a339ed59db17e31ff3c1aafedf315b18dc1ca.jpg",
935
+ "table_caption": [
936
+ "Table 5: Preference prediction test results: coherent, incoherent and constraint accuracy. "
937
+ ],
938
+ "table_footnote": [],
939
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Test accuracy %</td><td rowspan=1 colspan=1>Coherent</td><td rowspan=1 colspan=1>Incoherent</td><td rowspan=1 colspan=1>Constraint</td></tr><tr><td rowspan=1 colspan=1>3-layer MLP</td><td rowspan=1 colspan=1>1.01</td><td rowspan=1 colspan=1>75.78</td><td rowspan=1 colspan=1>2.72</td></tr><tr><td rowspan=1 colspan=1>With semantic loss (our)</td><td rowspan=1 colspan=1>13.59</td><td rowspan=1 colspan=1>72.43</td><td rowspan=1 colspan=1>55.28</td></tr></table>",
940
+ "bbox": [
941
+ 279,
942
+ 214,
943
+ 717,
944
+ 261
945
+ ],
946
+ "page_idx": 7
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "",
951
+ "bbox": [
952
+ 176,
953
+ 289,
954
+ 825,
955
+ 344
956
+ ],
957
+ "page_idx": 7
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "5.2 EXPERIMENTAL EVALUATION ",
962
+ "text_level": 1,
963
+ "bbox": [
964
+ 176,
965
+ 366,
966
+ 419,
967
+ 381
968
+ ],
969
+ "page_idx": 7
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Our ambition when evaluating semantic loss’ performance on complex constraints is not to achieve state-of-the-art performance on any particular problem, but rather to highlight its effect. To this end, we evaluate our method on problems with a difficult output space, where the model could no longer be fit directly from data, and purposefully use simple MLPs for evaluation. The details of hyper-parameter tuning are again given in Appendix C. ",
974
+ "bbox": [
975
+ 174,
976
+ 393,
977
+ 825,
978
+ 464
979
+ ],
980
+ "page_idx": 7
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "5.2.1 GRIDS ",
985
+ "text_level": 1,
986
+ "bbox": [
987
+ 174,
988
+ 483,
989
+ 274,
990
+ 497
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "We begin with a classic algorithmic problem, finding the shortest path in a graph. Specifically, we use a 4-by-4 grid $G = ( V , E )$ with uniform edge weights. We randomly remove edges for each example to increase difficulty. Formally, our input is a binary vector of length $\\vert V \\vert + \\vert E \\vert$ , with the first $| V |$ variables indicating sources and destinations, and the next $| E |$ which edges are removed. Similarly, each label is a binary vector of length $| E |$ indicating which edges are in the shortest path. Finally, we require through our constraint $\\alpha$ that the output form a valid simple path between the desired source and destination. To compile this constraint, we use the method of Nishino et al. (2017) to encode pairwise simple paths, and logically merge them to enforce the correct source and destination. For more details on the constraint and data generation process, see Appendix D. ",
997
+ "bbox": [
998
+ 174,
999
+ 510,
1000
+ 825,
1001
+ 635
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "To evaluate, we use our generated dataset of 1600 examples, with a 60/20/20 train/validation/test split. Table 4 compares test accuracy between a 5-layer MLP baseline, and the same model augmented with semantic loss. We report three different accuracies that illustrate the effect of semantic loss: “Coherent” indicates the percentage of examples for which the classifier gets the entire configuration right, while “Incoherent” measures the percentage of individually correct binary labels, which as a whole may not constitute a valid path at all. Finally, “Constraint” describes the percentage of predictions given by the model that satisfy the constraint associated with the problem. In the case of incoherent accuracy, semantic loss has little effect, and in fact slightly reduces the accuracy as it combats the standard sigmoid cross entropy. In regard to coherent accuracy, however, the semantic loss has a very large effect in guiding the network to jointly learn true paths, rather than optimizing each binary output individually. We further see this by observing the large increase in the percentage of predictions which really are paths between the desired nodes in the graph. ",
1008
+ "bbox": [
1009
+ 173,
1010
+ 642,
1011
+ 825,
1012
+ 809
1013
+ ],
1014
+ "page_idx": 7
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "5.2.2 PREFERENCE LEARNING ",
1019
+ "text_level": 1,
1020
+ "bbox": [
1021
+ 176,
1022
+ 828,
1023
+ 400,
1024
+ 842
1025
+ ],
1026
+ "page_idx": 7
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "The next problem we examine is that of predicting a complete order of preferences. That is, for a given set of user features, we would like to predict how the user would rank their preference over a fixed set of items. We encode a preference ordering over $n$ items as a flattened binary matrix $\\{ X _ { i j } \\}$ , where for each $i , j \\in \\{ 1 , \\ldots , n \\}$ , $X _ { i j }$ denotes that item $i$ is at position $j$ (Choi et al., 2015). Clearly, not all configurations of outputs correspond to a valid ordering. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 853,
1034
+ 825,
1035
+ 924
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "For data, we use preference rankings over 10 types of sushi for 5000 individuals, taken from PREFLIB (Mattei & Walsh, 2013). We take the ordering over 6 types of sushi as input features to predict the ordering over the remaining 4 types, with splits identical to those in Shen et al. (2017). We again split the data 60/20/20 into train/test/split, and employ a 3 layer MLP as our baseline. Table 5 compares the baseline to the same MLP augmented with semantic loss for valid total orderings. Again, we see that semantic loss has a marginal effect on incoherent accuracy, but massively improves the network’s ability to predict valid, correct orderings. Remarkably, without semantic loss, the network is only able to output a valid ordering on $0 . 0 1 \\%$ of the test examples. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 103,
1045
+ 825,
1046
+ 215
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "6 RELATED WORK ",
1053
+ "text_level": 1,
1054
+ "bbox": [
1055
+ 176,
1056
+ 234,
1057
+ 343,
1058
+ 251
1059
+ ],
1060
+ "page_idx": 8
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Incorporating symbolic background knowledge into machine learning is a long-standing challenge (Srinivasan et al., 1995). It has received considerable attention for structured prediction in natural language processing, in both supervised and semi-supervised settings. For example, constrained conditional models extend linear models with constraints that are enforced through integer linear programming (Chang et al., 2008; 2013). Constraints have also been studied in the context of probabilistic graphical models (Mateescu & Dechter, 2008; Ganchev et al., 2010). Kisa et al. (2014) utilize a circuit language called the probabilistic sentential decision diagram to induce distributions over arbitrary logical formulas. They learn generative models that satisfy preference and path constraints (Choi et al., 2015; 2016), which we both study in a discriminative setting. ",
1065
+ "bbox": [
1066
+ 174,
1067
+ 265,
1068
+ 825,
1069
+ 390
1070
+ ],
1071
+ "page_idx": 8
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Various deep learning techniques have been proposed to enforce either arithmetic constraints (Pathak et al., 2015; Marquez-Neila et al., 2017) or logical constraints (Rockt ´ aschel et al., 2015; Hu et al., ¨ 2016; Demeester et al., 2016; Stewart & Ermon, 2017; Minervini et al., 2017; Diligenti et al., 2017; Donadello et al., 2017) on the output of a neural network. The common approach is to reduce logical constraints into differentiable arithmetic objectives by replacing logical operators with their fuzzy t-norms and logical implications with simple inequalities. A downside of this fuzzy relaxation is that the logical sentences lose their precise meaning. The learning objective becomes a function of the syntax rather than the semantics. Moreover, these relaxations are often only applied to Horn clauses. One alternative is to encode the logic into a factor graph and perform loopy belief propagation to compute a loss function (Naradowsky & Riedel, 2017), which is known to have issues in the presence of complex logical constraints (Smith & Gogate, 2014). ",
1076
+ "bbox": [
1077
+ 174,
1078
+ 397,
1079
+ 825,
1080
+ 550
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Several specialized techniques have been proposed to exploit the rich structure of real world labels. Deng et al. (2014) propose hierarchy and exclusion graphs that allow a flexible joint modeling of hierarchical categories. It is a method invented to address examples whose labels are not provided at the most specific level. Finally, the objective of semantic loss to increase the confidence of predictions on unlabeled data is in common with information-theoretic approaches to semi-supervised learning (Grandvalet & Bengio, 2005; Erkan & Altun, 2010), and approaches that increase robustness to output perturbation (Miyato et al., 2016). A key difference between semantic loss and these information-theoretic losses is that semantic loss generalizes to arbitrary output constraints. ",
1087
+ "bbox": [
1088
+ 174,
1089
+ 558,
1090
+ 825,
1091
+ 669
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "7 CONCLUSIONS ",
1098
+ "text_level": 1,
1099
+ "bbox": [
1100
+ 176,
1101
+ 688,
1102
+ 328,
1103
+ 704
1104
+ ],
1105
+ "page_idx": 8
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Both reasoning and semi-supervised learning are often identified as key challenges for deep learning going forward. In this paper, we developed a principled way of combining automated reasoning for propositional logic with existing deep learning architectures. Moreover, we showed that our semantic loss function provides significant benefits during semi-supervised classification, as well as deep structured prediction for highly complex output spaces. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 719,
1113
+ 825,
1114
+ 789
1115
+ ],
1116
+ "page_idx": 8
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "REFERENCES ",
1121
+ "text_level": 1,
1122
+ "bbox": [
1123
+ 176,
1124
+ 809,
1125
+ 285,
1126
+ 824
1127
+ ],
1128
+ "page_idx": 8
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Mikhail Bilenko, Sugato Basu, and Raymond J Mooney. Integrating constraints and metric learning in semi-supervised clustering. In Proceedings of the International Conference on Machine learning, pp. 11. ACM, 2004. ",
1133
+ "bbox": [
1134
+ 176,
1135
+ 832,
1136
+ 821,
1137
+ 875
1138
+ ],
1139
+ "page_idx": 8
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In Advances in neural information processing systems, pp. 2787–2795, 2013. ",
1144
+ "bbox": [
1145
+ 176,
1146
+ 881,
1147
+ 823,
1148
+ 924
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Kai-Wei Chang, Rajhans Samdani, and Dan Roth. A constrained latent variable model for coreference resolution. 2013. ",
1155
+ "bbox": [
1156
+ 171,
1157
+ 103,
1158
+ 823,
1159
+ 132
1160
+ ],
1161
+ "page_idx": 9
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Ming-Wei Chang, Lev-Arie Ratinov, Nicholas Rizzolo, and Dan Roth. Learning and inference with constraints. In AAAI, pp. 1513–1518, 2008. ",
1166
+ "bbox": [
1167
+ 171,
1168
+ 140,
1169
+ 823,
1170
+ 170
1171
+ ],
1172
+ "page_idx": 9
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Mark Chavira and Adnan Darwiche. On probabilistic inference by weighted model counting. Artificial Intelligence, 172(6):772 – 799, 2008. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 179,
1180
+ 823,
1181
+ 208
1182
+ ],
1183
+ "page_idx": 9
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Arthur Choi, Guy Van den Broeck, and Adnan Darwiche. Tractable learning for structured probability spaces: A case study in learning preference distributions. In Proceedings of 24th International Joint Conference on Artificial Intelligence (IJCAI), 2015. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 217,
1191
+ 823,
1192
+ 261
1193
+ ],
1194
+ "page_idx": 9
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Arthur Choi, Nazgol Tavabi, and Adnan Darwiche. Structured features in naive Bayes classification. In Proceedings of AAAI, pp. 3233–3240, 2016. ",
1199
+ "bbox": [
1200
+ 168,
1201
+ 267,
1202
+ 823,
1203
+ 297
1204
+ ],
1205
+ "page_idx": 9
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Adnan Darwiche. A differential approach to inference in bayesian networks. J. ACM, 50(3):280– 305, May 2003. ISSN 0004-5411. doi: 10.1145/765568.765570. ",
1210
+ "bbox": [
1211
+ 169,
1212
+ 306,
1213
+ 823,
1214
+ 335
1215
+ ],
1216
+ "page_idx": 9
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Adnan Darwiche. SDD: A new canonical representation of propositional knowledge bases. In IJCAI Proceedings-International Joint Conference on Artificial Intelligence, volume 22, pp. 819, 2011. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 344,
1224
+ 821,
1225
+ 373
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Adnan Darwiche and Pierre Marquis. A knowledge compilation map. Journal of Artificial Intelligence Research, 17:229–264, 2002. ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 381,
1235
+ 821,
1236
+ 411
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Hal Daume, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine learning, 75(3):297–325, 2009. ",
1243
+ "bbox": [
1244
+ 174,
1245
+ 419,
1246
+ 821,
1247
+ 449
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Thomas Demeester, Tim Rocktaschel, and Sebastian Riedel. Lifted rule injection for relation em- ¨ beddings. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016, pp. 1389–1399, 2016. ",
1254
+ "bbox": [
1255
+ 174,
1256
+ 457,
1257
+ 823,
1258
+ 501
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Deng, Nan Ding, Yangqing Jia, Andrea Frome, Kevin Murphy, Samy Bengio, Yuan Li, Hartmut Neven, and Hartwig Adam. Large-scale object classification using label relation graphs. In ECCV, volume 8689, 2014. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 508,
1268
+ 823,
1269
+ 553
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Michelangelo Diligenti, Marco Gori, and Claudio Sacca. Semantic-based regularization for learning and inference. Artificial Intelligence, 244:143–165, 2017. ",
1276
+ "bbox": [
1277
+ 173,
1278
+ 560,
1279
+ 823,
1280
+ 590
1281
+ ],
1282
+ "page_idx": 9
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Ivan Donadello, Luciano Serafini, and Artur d’Avila Garcez. Logic tensor networks for semantic image interpretation. In International Joint Conference on Artificial Intelligence, pp. 1596–1602, 2017. ",
1287
+ "bbox": [
1288
+ 174,
1289
+ 598,
1290
+ 825,
1291
+ 641
1292
+ ],
1293
+ "page_idx": 9
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015. ",
1298
+ "bbox": [
1299
+ 176,
1300
+ 650,
1301
+ 823,
1302
+ 694
1303
+ ],
1304
+ "page_idx": 9
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Ayse Erkan and Yasemin Altun. Semi-supervised learning via generalized maximum entropy. In Thirteenth International Conference on Artificial Intelligence and Statistics, volume PMLR, pp. 209–216, 2010. ",
1309
+ "bbox": [
1310
+ 174,
1311
+ 702,
1312
+ 823,
1313
+ 746
1314
+ ],
1315
+ "page_idx": 9
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Kuzman Ganchev, Jennifer Gillenwater, Ben Taskar, et al. Posterior regularization for structured latent variable models. Journal of Machine Learning Research, 11(Jul):2001–2049, 2010. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 753,
1323
+ 823,
1324
+ 784
1325
+ ],
1326
+ "page_idx": 9
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005. ",
1331
+ "bbox": [
1332
+ 171,
1333
+ 791,
1334
+ 823,
1335
+ 821
1336
+ ],
1337
+ "page_idx": 9
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016. ",
1342
+ "bbox": [
1343
+ 174,
1344
+ 829,
1345
+ 825,
1346
+ 886
1347
+ ],
1348
+ "page_idx": 9
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Trevor Hastie, Robert Tibshirani, and Jerome Friedman. Overview of supervised learning. In The elements of statistical learning, pp. 9–41. Springer, 2009. ",
1353
+ "bbox": [
1354
+ 173,
1355
+ 895,
1356
+ 820,
1357
+ 924
1358
+ ],
1359
+ "page_idx": 9
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. ",
1364
+ "bbox": [
1365
+ 173,
1366
+ 103,
1367
+ 823,
1368
+ 132
1369
+ ],
1370
+ "page_idx": 10
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural networks with logic rules. In ACL, 2016. ",
1375
+ "bbox": [
1376
+ 173,
1377
+ 140,
1378
+ 823,
1379
+ 170
1380
+ ],
1381
+ "page_idx": 10
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
1386
+ "bbox": [
1387
+ 178,
1388
+ 178,
1389
+ 823,
1390
+ 220
1391
+ ],
1392
+ "page_idx": 10
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Douglas Samuel Jones. Elementary information theory. Clarendon Press, 1979. ",
1397
+ "bbox": [
1398
+ 173,
1399
+ 228,
1400
+ 702,
1401
+ 244
1402
+ ],
1403
+ "page_idx": 10
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Diederik P Kingma and Jimmy Lei Ba. Adam: A method for stochastic optimization. 2015. ",
1408
+ "bbox": [
1409
+ 171,
1410
+ 252,
1411
+ 772,
1412
+ 267
1413
+ ],
1414
+ "page_idx": 10
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3581– 3589. Curran Associates, Inc., 2014. ",
1419
+ "bbox": [
1420
+ 174,
1421
+ 276,
1422
+ 826,
1423
+ 332
1424
+ ],
1425
+ "page_idx": 10
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Doga Kisa, Guy Van den Broeck, Arthur Choi, and Adnan Darwiche. Probabilistic sentential decision diagrams. In Proceedings of KR, 2014. ",
1430
+ "bbox": [
1431
+ 173,
1432
+ 340,
1433
+ 823,
1434
+ 369
1435
+ ],
1436
+ "page_idx": 10
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
1441
+ "bbox": [
1442
+ 174,
1443
+ 377,
1444
+ 823,
1445
+ 393
1446
+ ],
1447
+ "page_idx": 10
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classifcation with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 25, pp. 1097–1105, 2012. ",
1452
+ "bbox": [
1453
+ 174,
1454
+ 401,
1455
+ 821,
1456
+ 445
1457
+ ],
1458
+ "page_idx": 10
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "Pablo Marquez-Neila, Mathieu Salzmann, and Pascal Fua. Imposing hard constraints on deep net-´ works: Promises and limitations. arXiv preprint arXiv:1706.02025, 2017. ",
1463
+ "bbox": [
1464
+ 171,
1465
+ 453,
1466
+ 823,
1467
+ 483
1468
+ ],
1469
+ "page_idx": 10
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "Robert Mateescu and Rina Dechter. Mixed deterministic and probabilistic networks. Annals of mathematics and artificial intelligence, 54(1-3):3, 2008. ",
1474
+ "bbox": [
1475
+ 171,
1476
+ 489,
1477
+ 825,
1478
+ 520
1479
+ ],
1480
+ "page_idx": 10
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Nicholas Mattei and Toby Walsh. Preflib: A library of preference data HTTP://PREFLIB.ORG. In Proceedings of ADT, 2013. ",
1485
+ "bbox": [
1486
+ 171,
1487
+ 527,
1488
+ 825,
1489
+ 556
1490
+ ],
1491
+ "page_idx": 10
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Pasquale Minervini, Thomas Demeester, Tim Rocktaschel, and Sebastian Riedel. Adversarial sets ¨ for regularising neural link predictors. arXiv preprint arXiv:1707.07596, 2017. ",
1496
+ "bbox": [
1497
+ 171,
1498
+ 564,
1499
+ 823,
1500
+ 594
1501
+ ],
1502
+ "page_idx": 10
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. In ICLR, 2016. ",
1507
+ "bbox": [
1508
+ 171,
1509
+ 602,
1510
+ 823,
1511
+ 631
1512
+ ],
1513
+ "page_idx": 10
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. ArXiv e-prints, 2017. ",
1518
+ "bbox": [
1519
+ 176,
1520
+ 638,
1521
+ 823,
1522
+ 681
1523
+ ],
1524
+ "page_idx": 10
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, pp. 807–814. Omnipress, 2010. ",
1529
+ "bbox": [
1530
+ 178,
1531
+ 690,
1532
+ 823,
1533
+ 733
1534
+ ],
1535
+ "page_idx": 10
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "Jason Naradowsky and Sebastian Riedel. Modeling exclusion with a differentiable factor graph constraint. In International Conference on Machine Learning (Workshop Track), 2017. ",
1540
+ "bbox": [
1541
+ 169,
1542
+ 741,
1543
+ 823,
1544
+ 771
1545
+ ],
1546
+ "page_idx": 10
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "Arvind Neelakantan, Benjamin Roth, and Andrew McCallum. Compositional vector space models for knowledge base inference. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, pp. 156–166, 2015. ",
1551
+ "bbox": [
1552
+ 174,
1553
+ 779,
1554
+ 825,
1555
+ 835
1556
+ ],
1557
+ "page_idx": 10
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In International Conference on Machine Learning, pp. 2014–2023, 2016. ",
1562
+ "bbox": [
1563
+ 173,
1564
+ 843,
1565
+ 821,
1566
+ 873
1567
+ ],
1568
+ "page_idx": 10
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "Masaaki Nishino, Norihito Yasuda, Shin-ichi Minato, and Masaaki Nagata. Compiling graph substructures into sentential decision diagrams. In Proceedings of the Thirty-First Conference on Artificial Intelligence (AAAI), 2017. ",
1573
+ "bbox": [
1574
+ 174,
1575
+ 881,
1576
+ 823,
1577
+ 924
1578
+ ],
1579
+ "page_idx": 10
1580
+ },
1581
+ {
1582
+ "type": "text",
1583
+ "text": "Deepak Pathak, Philipp Krahenbuhl, and Trevor Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1796–1804, 2015. \nNikolaos Pitelis, Chris Russell, and Lourdes Agapito. Semi-supervised learning using an unsupervised atlas. In Proceedings of ECML-PKDD, pp. 565–580. Springer, 2014. \nAntti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in Neural Information Processing Systems, pp. 3546–3554, 2015. \nScott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015. \nSebastian Riedel, Matko Bosnjak, and Tim Rocktaschel. Programming with a differentiable forth ¨ interpreter. CoRR, abs/1605.06640, 2016. \nTim Rocktaschel, Sameer Singh, and Sebastian Riedel. Injecting logical background knowledge ¨ into embeddings for relation extraction. In HLT-NAACL, pp. 1119–1129, 2015. \nTian Sang, Paul Beame, and Henry A Kautz. Performing bayesian inference by weighted model counting. In AAAI, volume 5, pp. 475–481, 2005. \nYujia Shen, Arthur Choi, and Adnan Darwiche. A tractable probabilistic model for subset selection. In Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence (UAI), 2017. \nDavid Smith and Vibhav Gogate. Loopy belief propagation in the presence of determinism. In Artificial Intelligence and Statistics, pp. 895–903, 2014. \nAshwin Srinivasan, S Muggleton, and RD King. Comparing the use of background knowledge by inductive logic programming systems. In Proceedings of ILP, pp. 199–230, 1995. \nRussell Stewart and Stefano Ermon. Label-free supervision of neural networks with physics and domain knowledge. In AAAI, pp. 2576–2582, 2017. \nMingzhe Wang, Yihe Tang, Jian Wang, and Jia Deng. Premise selection for theorem proving by deep graph embedding. arXiv preprint arXiv:1709.09994, 2017. \nJason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014. \nHan Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017. ",
1584
+ "bbox": [
1585
+ 171,
1586
+ 97,
1587
+ 826,
1588
+ 646
1589
+ ],
1590
+ "page_idx": 11
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "text": "A AXIOMATIZATION OF SEMANTIC LOSS: DETAILS ",
1595
+ "bbox": [
1596
+ 173,
1597
+ 664,
1598
+ 617,
1599
+ 681
1600
+ ],
1601
+ "page_idx": 11
1602
+ },
1603
+ {
1604
+ "type": "text",
1605
+ "text": "This appendix provides further details on our axiomatization of the semantic loss. \nProposition 5 (Non-Negativity). Semantic loss is non-negative. ",
1606
+ "bbox": [
1607
+ 173,
1608
+ 695,
1609
+ 709,
1610
+ 729
1611
+ ],
1612
+ "page_idx": 11
1613
+ },
1614
+ {
1615
+ "type": "text",
1616
+ "text": "Proof. Because $\\alpha \\models$ true for all $\\alpha$ , the monotonicity axiom implies that $\\forall \\mathsf { p } , \\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathsf { p } ) \\geq \\mathrm { L } ^ { \\mathrm { s } } ( t r u e , \\mathsf { p } )$ . By the truth axiom, $\\mathrm { L } ^ { \\mathrm { s } } ( t r u e , \\mathsf { p } ) = 0$ , and therefore $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathsf { p } } ) \\geq 0$ for all choices of $\\alpha$ and $\\mathsf { p }$ . □ ",
1617
+ "bbox": [
1618
+ 173,
1619
+ 743,
1620
+ 823,
1621
+ 773
1622
+ ],
1623
+ "page_idx": 11
1624
+ },
1625
+ {
1626
+ "type": "text",
1627
+ "text": "Proposition 6 (Locality). Let α be a sentence over $\\mathbf { X }$ with probabilities p. For any $\\mathbf { Y }$ disjoint from $\\mathbf { X }$ with probabilities q, the semantic loss $\\operatorname { L } ^ { \\mathrm { s } } ( \\alpha , [ \\mathsf { p q } ] ) = \\operatorname { L } ^ { \\mathrm { s } } ( \\alpha , \\mathsf { p } )$ . ",
1628
+ "bbox": [
1629
+ 171,
1630
+ 780,
1631
+ 823,
1632
+ 809
1633
+ ],
1634
+ "page_idx": 11
1635
+ },
1636
+ {
1637
+ "type": "text",
1638
+ "text": "Proof. Follows from the additive independence and truth axioms. Set $\\beta \\ = \\ t r u e$ in the additive independence axiom, and observe that this sets $\\mathrm { L } ^ { \\mathrm { s } } ( \\beta , { \\mathsf { q } } ) = 0$ because of the truth axiom. □ ",
1639
+ "bbox": [
1640
+ 173,
1641
+ 824,
1642
+ 825,
1643
+ 853
1644
+ ],
1645
+ "page_idx": 11
1646
+ },
1647
+ {
1648
+ "type": "text",
1649
+ "text": "Proof of Proposition 2. The monotonicity axiom specializes to say that if ${ \\textbf { x } } | = \\alpha$ , we have that $\\forall \\mathsf { p } , \\mathrm { L } ^ { \\mathrm { s } } ( \\mathbf { x } , \\mathsf { p } ) \\ \\geq \\ \\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathsf { p } )$ . By choosing $\\mathsf { p }$ to be $\\mathbf { x }$ , this implies $\\mathrm { L } ^ { \\mathrm { s } } ( \\mathbf { x } , \\mathbf { x } ) \\ \\geq \\ \\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathbf { x } )$ . From the identity axiom, $\\mathrm { L } ^ { \\mathrm { s } } ( { \\bf x } , { \\bf x } ) = 0$ , and therefore $0 \\geq \\operatorname { L } ^ { \\mathrm { s } } ( \\alpha , \\mathbf { x } )$ . Proposition 5 bounds the loss from below as $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , \\mathbf { x } ) \\geq 0$ . □ ",
1650
+ "bbox": [
1651
+ 174,
1652
+ 867,
1653
+ 825,
1654
+ 924
1655
+ ],
1656
+ "page_idx": 11
1657
+ },
1658
+ {
1659
+ "type": "text",
1660
+ "text": "Axiom 7 (Value Symmetry). For all $\\mathsf { p }$ and $\\alpha$ , we have that $\\mathrm { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathfrak { p } } ) = \\mathrm { L } ^ { \\mathrm { s } } ( { \\bar { \\alpha } } , 1 - { \\mathfrak { p } } )$ where $\\bar { \\alpha }$ replaces every variable in $\\alpha$ by its negation. ",
1661
+ "bbox": [
1662
+ 171,
1663
+ 103,
1664
+ 823,
1665
+ 132
1666
+ ],
1667
+ "page_idx": 12
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "Axiom 8 (Variable Symmetry). Let $\\alpha$ be a sentence over $\\mathbf { X }$ with probabilities $\\mathsf { p }$ . Let $\\pi$ be a permutation of the variables $\\mathbf { X }$ , let $\\pi ( \\alpha )$ be the sentence obtained by replacing variables $x$ by $\\pi ( x )$ , and let $\\pi ( { \\mathfrak { p } } )$ be the corresponding permuted vector of probabilities. Then, $\\operatorname { L } ^ { \\mathrm { s } } ( \\alpha , { \\mathsf { p } } ) = \\operatorname { L } ^ { \\mathrm { s } } ( \\pi ( \\alpha ) , \\pi ( { \\mathsf { p } } ) )$ . ",
1672
+ "bbox": [
1673
+ 174,
1674
+ 137,
1675
+ 825,
1676
+ 179
1677
+ ],
1678
+ "page_idx": 12
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "text": "The value and variable symmetry axioms together imply the equality of the multiplicative constants in the label-literal duality axiom for all literals. ",
1683
+ "bbox": [
1684
+ 174,
1685
+ 185,
1686
+ 823,
1687
+ 214
1688
+ ],
1689
+ "page_idx": 12
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "Lemma 7. There exists a single constant $K$ such that $\\operatorname { L } ^ { \\mathrm { s } } ( X , p ) = - K \\log ( p )$ and $\\operatorname { L } ^ { s } ( \\lnot X , p ) =$ $- K \\log ( 1 - p )$ for any literal $x$ . ",
1694
+ "bbox": [
1695
+ 171,
1696
+ 218,
1697
+ 823,
1698
+ 247
1699
+ ],
1700
+ "page_idx": 12
1701
+ },
1702
+ {
1703
+ "type": "text",
1704
+ "text": "Proof. Value symmetry implies that $\\operatorname { L } ^ { \\mathrm { s } } ( X _ { i } , \\mathfrak { p } ) = \\operatorname { L } ^ { \\mathrm { s } } ( \\lnot X _ { i } , 1 - \\mathfrak { p } )$ . Using label-literal correspondence, this implies $K _ { 1 } \\log ( p _ { i } ) = K _ { 2 } \\log ( 1 - ( 1 - p _ { i } ) )$ for the multiplicative constants $K _ { 1 }$ and $K _ { 2 }$ that are left unspecified by that axiom. This implies that the constants are identical. A similar argument based on variable symmetry proves equality between the multiplicative constants for different $i$ . ",
1705
+ "bbox": [
1706
+ 174,
1707
+ 265,
1708
+ 825,
1709
+ 321
1710
+ ],
1711
+ "page_idx": 12
1712
+ },
1713
+ {
1714
+ "type": "text",
1715
+ "text": "Proof of Lemma 3. A state $\\mathbf { x }$ is a conjunction of independent literals, and therefore subject to the additive independence axiom. Each literal’s loss in this sum is defined by Lemma 7. □ ",
1716
+ "bbox": [
1717
+ 173,
1718
+ 340,
1719
+ 823,
1720
+ 368
1721
+ ],
1722
+ "page_idx": 12
1723
+ },
1724
+ {
1725
+ "type": "text",
1726
+ "text": "The following and final axiom requires that the semantic loss is proportionate to the logarithm of a function that is additive for mutually exclusive sentences. ",
1727
+ "bbox": [
1728
+ 174,
1729
+ 387,
1730
+ 823,
1731
+ 415
1732
+ ],
1733
+ "page_idx": 12
1734
+ },
1735
+ {
1736
+ "type": "text",
1737
+ "text": "Axiom 9 (Exponential Additivity). Let $\\alpha$ and $\\beta$ be mutually exclusive sentences (i.e., $\\alpha \\wedge \\beta$ is unsatisfiable), and let $f ^ { s } ( K , \\alpha , { \\mathsf { p } } ) = K ^ { - \\mathtt { L } ^ { \\mathtt { s } } ( \\alpha , { \\mathsf { p } } ) }$ . Then, there exists a positive constant $K$ such that $f ^ { s } ( K , \\alpha \\vee \\beta , \\mathsf { p } ) = f ^ { s } ( K , \\alpha , \\mathsf { p } ) + f ^ { s } ( K , \\beta , \\mathsf { p } )$ . ",
1738
+ "bbox": [
1739
+ 174,
1740
+ 420,
1741
+ 825,
1742
+ 464
1743
+ ],
1744
+ "page_idx": 12
1745
+ },
1746
+ {
1747
+ "type": "text",
1748
+ "text": "Proof of Theorem 4. The truth axiom states that $\\forall \\mathsf { p }$ $, f ^ { s } ( K , t r u e , \\mathfrak { p } ) = 1$ for all positive constants $K$ . This is the first Kolmogorov axiom of probability. The second Kolmogorov axiom for $f ^ { s } ( K , . , { \\mathsf { p } } )$ follows from the additive independence axiom of semantic loss. The third Kolmogorov axiom (for the finite discrete case) is given by the exponential additivity axiom of semantic loss. Hence, $f ^ { s } ( K , . , { \\mathsf { p } } )$ is a probability distribution for some choice of $K$ , which implies the definition up to a multiplicative constant. □ ",
1749
+ "bbox": [
1750
+ 174,
1751
+ 481,
1752
+ 825,
1753
+ 565
1754
+ ],
1755
+ "page_idx": 12
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "B SPECIFICATION OF THE CONVOLUTIONAL NEURAL NETWORK MODEL ",
1760
+ "text_level": 1,
1761
+ "bbox": [
1762
+ 173,
1763
+ 587,
1764
+ 792,
1765
+ 603
1766
+ ],
1767
+ "page_idx": 12
1768
+ },
1769
+ {
1770
+ "type": "text",
1771
+ "text": "Table 6 shows the slight architectural difference between the CNN used in ladder nets and ours. The major difference lies in the choice of ReLu. Note we add standard padded cropping to preprocess images and an additional fully connected layer at the end of the model, neither is used in ladder nets. We only make those slight modification so that the baseline performance reported by Rasmus et al. (2015) can be reproduced. ",
1772
+ "bbox": [
1773
+ 174,
1774
+ 618,
1775
+ 825,
1776
+ 689
1777
+ ],
1778
+ "page_idx": 12
1779
+ },
1780
+ {
1781
+ "type": "text",
1782
+ "text": "C HYPER-PARAMETER TUNING DETAILS ",
1783
+ "text_level": 1,
1784
+ "bbox": [
1785
+ 174,
1786
+ 709,
1787
+ 529,
1788
+ 726
1789
+ ],
1790
+ "page_idx": 12
1791
+ },
1792
+ {
1793
+ "type": "text",
1794
+ "text": "Validation sets are used for tuning the weight associated with semantic loss, the only hyperparameter that causes noticeable difference in performance for our method. For our semi-supervised classification experiments, we perform a grid search over $\\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 \\}$ to find the optimal value. Empirically, 0.005 always gives the best or nearly the best results and we report its results on all experiments. ",
1795
+ "bbox": [
1796
+ 174,
1797
+ 741,
1798
+ 825,
1799
+ 811
1800
+ ],
1801
+ "page_idx": 12
1802
+ },
1803
+ {
1804
+ "type": "text",
1805
+ "text": "For the FASHION dataset specifically, because MNIST and FASHION share the same image size and structure, methods developed in MNIST should be able to directly perform on FASHION without heavy modifications. Because of this, we use the same hyper-parameters when evaluating our method. However, for the sake of fairness, we subject ladder nets to a small-scale parameter tuning in case its performance is more volatile. ",
1806
+ "bbox": [
1807
+ 174,
1808
+ 818,
1809
+ 825,
1810
+ 888
1811
+ ],
1812
+ "page_idx": 12
1813
+ },
1814
+ {
1815
+ "type": "text",
1816
+ "text": "For the grids experiment, the only hyper parameter that needed to be tuned was again the weight given to semantic loss, which after trying $\\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 , 1 \\}$ was selected to be ",
1817
+ "bbox": [
1818
+ 174,
1819
+ 895,
1820
+ 823,
1821
+ 924
1822
+ ],
1823
+ "page_idx": 12
1824
+ },
1825
+ {
1826
+ "type": "table",
1827
+ "img_path": "images/358350f5d93ca940af966331f2a65fafdad421d46e88d1ecac1a9dcd0bdc9a55.jpg",
1828
+ "table_caption": [
1829
+ "Table 6: Specifications of CNNs in Ladder Net and our proposed method. "
1830
+ ],
1831
+ "table_footnote": [],
1832
+ "table_body": "<table><tr><td>CNNinLadderNet</td><td>CNN in this paper</td></tr><tr><td colspan=\"2\">Input 32×32 RGB image</td></tr><tr><td></td><td>Resizing to 36 × 36 with padding Cropping Back</td></tr><tr><td colspan=\"2\">Whitening Contrast Normalization</td></tr><tr><td colspan=\"2\">Gaussian Noise with std.of 0.3</td></tr><tr><td>3 ×3 conv. 96 BNLeakyReLU</td><td>3×3 conv. 96 BN ReLU</td></tr><tr><td>3×3 conv. 96 BNLeakyReLU</td><td>3 ×3 conv. 96 BN ReLU</td></tr><tr><td>3 ×3 conv. 96 BNLeakyReLU</td><td>3×3 conv. 96 BN ReLU</td></tr><tr><td colspan=\"2\">2×2 max-pooling stride 2 BN</td></tr><tr><td>3×3 conv.192BNLeakyReLU</td><td>3×3 conv.192 BN ReLU</td></tr><tr><td>3×3 conv.192 BNLeakyReLU</td><td>3×3 conv. 192 BN ReLU</td></tr><tr><td>3×3 conv.192 BN LeakyReLU</td><td>3×3 conv.192 BN ReLU</td></tr><tr><td colspan=\"2\">2×2 max-pooling stride 2 BN</td></tr><tr><td>3×3conv.192BNLeakyReLU</td><td>3×3conv.192 BNReLU</td></tr><tr><td>1×1 conv.192 BN LeakyReLU</td><td>3×3 conv. 192 BN ReLU</td></tr><tr><td>1×1conv.10 BNLeakyReLU</td><td>1×1 conv. 10 BN ReLu</td></tr><tr><td colspan=\"2\">global meanpool BN</td></tr><tr><td></td><td>fully connected BN</td></tr><tr><td colspan=\"2\">10-way softmax</td></tr></table>",
1833
+ "bbox": [
1834
+ 282,
1835
+ 126,
1836
+ 714,
1837
+ 401
1838
+ ],
1839
+ "page_idx": 13
1840
+ },
1841
+ {
1842
+ "type": "text",
1843
+ "text": "0.5 based on validation results. For the preference learning experiment, we initially chose the semantic loss weight from $\\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 5 , 1 \\}$ to be 0.1 based on validation, and then further tuned the weight to 0.25. ",
1844
+ "bbox": [
1845
+ 176,
1846
+ 428,
1847
+ 821,
1848
+ 469
1849
+ ],
1850
+ "page_idx": 13
1851
+ },
1852
+ {
1853
+ "type": "text",
1854
+ "text": "D SPECIFICATION OF COMPLEX CONSTRAINT MODELS",
1855
+ "text_level": 1,
1856
+ "bbox": [
1857
+ 174,
1858
+ 489,
1859
+ 648,
1860
+ 506
1861
+ ],
1862
+ "page_idx": 13
1863
+ },
1864
+ {
1865
+ "type": "text",
1866
+ "text": "Grids To compile our grid constraint, we first use Nishino et al. (2017) to generate a constraint for each source destination pair. Then, we conjoin each of these with indicators specifying which source and destination pair must be used, and finally we disjoin all of these together to form our constraint. ",
1867
+ "bbox": [
1868
+ 174,
1869
+ 521,
1870
+ 825,
1871
+ 577
1872
+ ],
1873
+ "page_idx": 13
1874
+ },
1875
+ {
1876
+ "type": "text",
1877
+ "text": "To generate the data, we begin by randomly removing one third of edges. We then filter out connected components with fewer than 5 nodes to reduce degenerate cases, and proceed with randomly selecting pairs of point to create data points. ",
1878
+ "bbox": [
1879
+ 174,
1880
+ 584,
1881
+ 825,
1882
+ 627
1883
+ ],
1884
+ "page_idx": 13
1885
+ },
1886
+ {
1887
+ "type": "text",
1888
+ "text": "The predictive model we employ as our baseline is a 5 layer MLP with 50 hidden sigmoid units per layer. It is trained using Adam Optimizer, with full data batches (Kingma & Ba, 2015). Early stopping with respect to validation loss is used as a regularizer. ",
1889
+ "bbox": [
1890
+ 174,
1891
+ 633,
1892
+ 823,
1893
+ 675
1894
+ ],
1895
+ "page_idx": 13
1896
+ },
1897
+ {
1898
+ "type": "text",
1899
+ "text": "Preference Learning We split each user’s ordering into their ordering over sushis 1,2,3,5,7,8, which we use as the features, and their ordering over 4,6,9,10 which are the labels we predict. The constraint is compiled directly from logic, as this can be done in a straightforward manner for an n-item ordering. ",
1900
+ "bbox": [
1901
+ 174,
1902
+ 690,
1903
+ 825,
1904
+ 747
1905
+ ],
1906
+ "page_idx": 13
1907
+ },
1908
+ {
1909
+ "type": "text",
1910
+ "text": "The predictive model we use here is a 3 layer MLP with 25 hidden sigmoid units per layer. It is trained using Adam Optimizer with full data batches (Kingma & Ba, 2015). Early stopping with respect to validation loss is used as a regularizer. ",
1911
+ "bbox": [
1912
+ 176,
1913
+ 753,
1914
+ 823,
1915
+ 796
1916
+ ],
1917
+ "page_idx": 13
1918
+ }
1919
+ ]
parse/train/HkepKG-Rb/HkepKG-Rb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkepKG-Rb/HkepKG-Rb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JHcqXGaqiGn/JHcqXGaqiGn.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JHcqXGaqiGn/JHcqXGaqiGn_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JHcqXGaqiGn/JHcqXGaqiGn_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JHcqXGaqiGn/JHcqXGaqiGn_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/K9uApq7iyyI/K9uApq7iyyI.md ADDED
@@ -0,0 +1,500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ResMLP: Feedforward networks for image classification with data-efficient training
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ We present ResMLP, an architecture built entirely upon multi-layer perceptrons for image classification. It is a simple residual network that alternates (i) a linear layer in which image patches interact, independently and identically across channels, and (ii) a two-layer feed-forward network in which channels interact independently per patch. When trained with a modern training strategy using heavy data-augmentation and optionally distillation, it attains surprisingly good accuracy/complexity tradeoffs on ImageNet. We also train ResMLP models in a self-supervised setup, to further remove priors from employing a labelled dataset. Finally, by adapting our model to machine translation we achieve surprisingly good results.
11
+
12
+ We will share our code based on the Timm library and pre-trained models.
13
+
14
+ # 11 1 Introduction
15
+
16
+ 12 Recently, the transformer architecture [60], adapted from its original use in natural language pro
17
+ 13 cessing with only minor changes, has achieved performance competitive with the state of the art on
18
+ 14 ImageNet-1k [50] when pre-trained with a sufficiently large amount of data [16]. Retrospectively,
19
+ 15 this achievement is yet another step towards less priors: convolutional neural networks had removed
20
+ 16 a lot of hand-made choices compared to hand-designed pre-CNN approaches, moving the paradigm
21
+ 17 of hard-wired features to hand-designed architectural choices. Vision transformers avoid making
22
+ 18 assumptions inherent to convolutional architectures and noticeably the translation invariance.
23
+ 19 What these recent transformer-based works suggest is that longer training schedules, more parameters,
24
+ 20 more data [16] and/or more regularization [56], are sufficient to recover the important priors for tasks
25
+ 21 as complex as ImageNet classification. See also our discussion of related work in Section 4. This
26
+ 22 concurs with recent studies [2, 15] that better disentangle the benefits from the architectures from
27
+ 23 those of the training scheme.
28
+ 24 In this paper, we push this trend further, and propose Residual Multi-Layer Perceptrons (ResMLP):
29
+ 25 a purely multi-layer perceptron (MLP) based architecture for image classification. We outline our
30
+ 26 architecture in Figure 1 and detail it further in Section 2. It is intended to be simple: it takes image
31
+ 27 patches as input, projects them with a linear layer, and sequentially updates them in turn with two
32
+ 28 residual operations: (i) a simple linear layer that provides interaction between the patches, which
33
+ 29 is applied to all channels independently; and (ii) an MLP with a single hidden layer, which is
34
+ 30 independently applied to all patches. At the end of the network, the patches are average pooled, and
35
+ 31 fed to a linear classifier.
36
+ 32 This architecture is strongly inspired by the vision transformers (ViT) [16], yet it is much simpler
37
+ 33 in several ways: we do not use any form of attention, only linear layers along with the GELU
38
+ 34 non-linearity [25]. Since our architecture is much more stable to train than transformers, we do not
39
+ 35 need batch-specific or cross-channel normalizations such as BatchNorm, GroupNorm or LayerNorm.
40
+ 36 Our training procedure mostly follows the one initially introduced for DeiT [56] and CaiT [57].
41
+ 37 Due to its linear nature, the patch interactions in our model can be easily visualised and interpreted.
42
+ 38 While the interaction pattern learned in the first layer is very similar to a small convolutional filter,
43
+ 39 we observe more subtle interactions across patches in deeper layers. These include some form of
44
+ 40 axial filters, and long-range interactions early in the network.
45
+
46
+ ![](images/abb017542f27a5fed6ae93c2da8dd9eea31072f0baaa1cd9b7e27ffed8ccf434.jpg)
47
+ Figure 1: The ResMLP architecture: After linearly projecting the image patches, our network alternately processes them by (1) a communication layer between vectors implemented as a linear layer; (2) a two-layer residual perceptron. We denote by A the Affine element-wise transformation, and by T the transposition.
48
+
49
+ 41 In summary, in this paper, we show that
50
+
51
+ • despite their simplicity, Residual Multi-Layer Perceptrons reach surprisingly good accuracy/complexity trade-offs with ImageNet-1k training only1, without requiring normalization based on batch or channel statistics;
52
+
53
+ • these models benefit significantly from distillation methods [56]; they are also compatible with modern self-supervised learning methods based on data augmentation, such as DINO [6];
54
+
55
+ • thank to its design where patch embeddings simply “communicate” through a linear layer, we can make observations on the spatial interaction that the network learns across layers;
56
+
57
+ • we adapt ResMLP to machine translation, and again obtain surprisingly good results.
58
+
59
+ # 50 2 Method
60
+
61
+ 51 Our model, depicted in Figure 1, is inspired by the ViT model, from which we adopt the columnar
62
+ 52 structure with fixed-resolution feature maps. We proceed two drastic simplifications. We refer the
63
+ 53 reader to Dosovitskiy et al. [16] for more details about the ViT architecture.
64
+ 54 The overall ResMLP architecture. Our model, denoted by ResMLP, takes a grid of $N \times N$ non
65
+ 55 overlapping patches as input, where the patch size is typically equal to $1 6 \times 1 6$ . The patches are then
66
+ 56 independently passed through a linear layer to form a set of $\overline { { N ^ { 2 } d } }$ -dimensional embeddings.
67
+ 57 The resulting set of $N ^ { 2 }$ embeddings are fed to a sequence of Residual Multi-Layer Perceptron layers
68
+ 58 to produce a set of $N ^ { 2 } d .$ -dimensional output embeddings. These output embeddings are then averaged
69
+ 59 as a $d$ -dimension vector to represent the image, which is fed to a linear classifier to predict the label
70
+ 60 associated with the image. Training uses the cross-entropy loss.
71
+ 61 The Residual Multi-Perceptron Layer. Our network is a sequence of layers that all have the same
72
+ 62 structure: a linear sublayer followed by a feedforward sublayer. Similar to the Transformer layer,
73
+ 63 each sublayer is paralleled with a skip-connection [23]. We do not apply Layer Normalization [1]
74
+ 64 because training is stable without it when using the following Affine transformation:
75
+
76
+ $$
77
+ \begin{array} { r } { \mathbb { A } \mathbb { f } \mathbb { f } _ { \alpha , \beta } ( \mathbf { x } ) = \mathbb { D } \mathrm { i } \mathtt { a } \mathbb { g } ( \pmb { \alpha } ) \mathbf { x } + \beta , } \end{array}
78
+ $$
79
+
80
+ 65 where $_ { \pmb { \alpha } }$ and $\beta$ are learnable weight vectors. This operation simply rescales and shifts the input
81
+ 66 element-wise. Moreover, it has no cost at inference time, as it can absorbed in the adjacent linear
82
+ 67 layer. Note, when writing $\operatorname { \mathbb { A } f f } ( \mathbf { X } )$ the operation is applied independently to each column of $\mathbf { X }$ .
83
+ 68 While similar to BatchNorm [30] and Layer Normalization [1], the Aff operator does not depend on
84
+ 69 any batch statistics. Therefore, it is closer to the recent LayerScale method [57], which improves the
85
+ 70 optimization of deep transformers when initializing $_ { \pmb { \alpha } }$ to a small value. Note, LayerScale does not
86
+ 71 have a bias term.
87
+ 72 We apply this transformation twice for each residual block. As as a pre-normalization Aff replaces
88
+ 73 the LayerNormalization, and avoids using channel-wise statistics. Here, we initialize $\alpha = 1$ , and
89
+ 74 $\beta = { \bf 0 }$ . As a post-processing of the residual block, Aff implements LayerScale and therefore we
90
+ 75 follow the same small value initialization for $_ { \pmb { \alpha } }$ as in [57] for the post-normalization.
91
+ 76 Finally, we follow the same structure for the feedforward sublayer as in the Transformer; we only
92
+ 77 replace the ReLU non-linearity by a GELU function [25].
93
+ 78 Overall, our Multi-layer perceptron takes a set of $N ^ { 2 } \ d .$ -dimensional input features stacked in a
94
+ 79 $d \times N ^ { 2 }$ matrix $\mathbf { X }$ , and outputs a set of $N ^ { 2 }$ $d$ -dimension output features, stacked in a matrix $\mathbf { Y }$ with
95
+ 80 the following set of transformations:
96
+
97
+ $$
98
+ \begin{array} { r c l } { \mathbf { Z } } & { = } & { \mathbf { X } + \mathbb { A } \mathbb { f } \mathbb { f } \left( \left( \mathbf { A } \mathbb { A } \mathbb { f } \mathbb { f } \left( \mathbf { X } \right) ^ { \top } \right) ^ { \top } \right) , } \\ { \mathbf { Y } } & { = } & { \mathbf { Z } + \mathbb { A } \mathbb { f } \mathbb { f } \left( \mathbf { C } \mathbb { G } \mathbb { E } \mathbb { L } \mathbb { U } \left( \mathbf { B } \mathbb { A } \mathbb { f } \mathbb { f } \left( \mathbf { Z } \right) \right) \right) , } \end{array}
99
+ $$
100
+
101
+ 81 where A, $\mathbf { B }$ and $\mathbf { C }$ are the main learnable weight matrices of the layer. The dimensions of the
102
+ 82 parameter matrix $\mathbf { A }$ are $N ^ { 2 } \times N ^ { 2 }$ , i.e., this sublayer exchanges information across all the locations,
103
+ 83 while the feedforward sublayer works per location. As a consequence, the intermediate activation
104
+ 84 matrix $\mathbf { Z }$ has the same dimensions as the matrices $\mathbf { X }$ and $\mathbf { Y }$ . Finally, the weight matrices $\mathbf { B }$ and $\mathbf { C }$
105
+ 85 have the same dimensions as in a Transformer layer, which are $4 d { \times } d$ and $d \times 4 d$ , respectively.
106
+ 86 The main difference compared to a Transformer layer is that we replace the self-attention by the
107
+ 87 linear interaction defined in Eq. (2). While self-attention computes a convex combination of other
108
+ 88 features with coefficients that are data dependent, the linear interaction layer in Eq. (2) computes
109
+ 89 a general linear combination using learned coefficients that are not data dependent. As compared
110
+ 90 to a convolutional layers which have local support and share weights across space, our linear
111
+ 91 patch interaction layer offers a global support and does not share weights, moreover it is applied
112
+ 92 independently across channels.
113
+ 93 Relationship to the Vision Transformer. Our model can be regarded as a drastic simplification of
114
+ 94 the ViT model by Dosovitskiy et al. [16]. We depart from this model as follows:
115
+
116
+ • We do not include any self-attention block. Instead we have a linear patch interaction layer without any non-linearity.
117
+
118
+ • We do not have the extra “class” token that is typically used in these models to aggregate information via attention. Instead, we simply use average pooling. We do, however, also consider a specific aggregation layer as a variant, which we describe in the next paragraph.
119
+
120
+ • We do not include any form of positional embedding: the linear communication module between patches implicitly takes into account the patch position.
121
+
122
+ • Instead of pre-LayerNormalization, we use a simple learnable affine transform, thus avoiding any form of batch and channel-wise statistics.
123
+
124
+ 104 Class-MLP. As an alternative to average pooling, we also experimented with an adaptation of the
125
+ 105 class-attention introduced in CaiT [57]. In CaiT, this consists of two layers that have the same
126
+ 106 structure as the transformer, but in which only the class token is updated based on the frozen patch
127
+ 107 embeddings. We translate this method to our architecture, except that, after aggregating the patches
128
+ 108 with a linear layer, we replace the attention-based interaction between the class and patch embeddings
129
+ 109 by simple linear layers, still keeping the patch embeddings frozen. This increases the performance, at
130
+ 110 the expense of adding some parameters and computational cost. We refer to this pooling variant as
131
+ 111 “class-MLP”, since the purpose of these few layers is to replace average pooling.
132
+
133
+ # 112 3 Experiments
134
+
135
+ 113 In this section, we present experimental results for our ResMLP architecture for image classification.
136
+ 114 We also study the impact of the different components in a series of ablations. We consider three
137
+ 115 training paradigms in our experiments:
138
+ 6 • Supervised learning: We train ResMLP from labeled images with a softmax classifier and cross
139
+ 7 entropy loss. This paradigm is the main focus of our work.
140
+
141
+ Table 1: Comparison between architectures on ImageNet classification. We compare different architectures based on convolutional networks, Transformers and feedforward networks with comparable FLOPs and number of parameters. We report Top-1 accuracy on the validation set of ImageNet-1k with different measure of complexity: throughput, FLOPs, number of parameters and peak memory usage. All the models use $2 2 4 \times 2 2 4$ images as input. By default the Transformers and feedforward networks uses $1 4 \times 1 4$ patches of size $1 6 \times 1 6$ , see Table 3 for the detailed specification of our main models. The throughput is measured on a single V100-32GB GPU with batch size fixed to 32. For reference, we include the state of the art with ImageNet training only.
142
+
143
+ <table><tr><td></td><td>Arch.</td><td>#params (x106)</td><td>throughput (im/s)</td><td>FLOPS (x109)</td><td>Peak Mem (MB)</td><td>Top-1 Acc.</td></tr><tr><td rowspan="2">State of the art</td><td>CaiT-M48↑448Y [57]</td><td>356</td><td>5.4</td><td>329.6</td><td>5477.8</td><td>86.5</td></tr><tr><td>NfNet-F6 SAM [5]</td><td>438</td><td>16.0</td><td>377.3</td><td>5519.3</td><td>86.5</td></tr><tr><td rowspan="6">Convolutional networks</td><td>EfficientNet-B3 [53]</td><td>12</td><td>661.8</td><td>1.8</td><td>1174.0</td><td>81.1</td></tr><tr><td>EfficientNet-B4 [53]</td><td>19</td><td>349.4</td><td>4.2</td><td>1898.9</td><td>82.6</td></tr><tr><td>EfficientNet-B5 [53]</td><td>30</td><td>169.1</td><td>9.9</td><td>2734.9</td><td>83.3</td></tr><tr><td>RegNetY-4GF[47]</td><td>21</td><td>861.0</td><td>4.0</td><td>568.4</td><td>80.0</td></tr><tr><td>RegNetY-8GF[47]</td><td>39</td><td>534.4</td><td>8.0</td><td>841.6</td><td>81.7</td></tr><tr><td>RegNetY-16GF[47]</td><td>84</td><td>334.7</td><td>16.0</td><td>1329.6</td><td>82.9</td></tr><tr><td rowspan="3">Transformer networks</td><td>DeiT-S [56]</td><td>22</td><td>940.4</td><td>4.6</td><td>217.2</td><td>79.8</td></tr><tr><td>DeiT-B [56]</td><td>86</td><td>292.3</td><td>17.5</td><td>573.7</td><td>81.8</td></tr><tr><td>CaiT-XS24 [57]</td><td>27</td><td>447.6</td><td>5.4</td><td>245.5</td><td>81.8</td></tr><tr><td rowspan="3">Feedforward networks</td><td>ResMLP-S12</td><td>15</td><td>1415.1</td><td>3.0</td><td>179.5</td><td>76.6</td></tr><tr><td>ResMLP-S24</td><td>30</td><td>715.4</td><td>6.0</td><td>235.3</td><td>79.4</td></tr><tr><td>ResMLP-B24</td><td>116</td><td>231.3</td><td>23.0</td><td>663.0</td><td>81.0</td></tr></table>
144
+
145
+ • Self-supervised learning: We train the ResMLP architecture without labels. We consider the DINO method of Caron et al. [6] that trains a network by distilling knowledge from previous instances of the same network, leading to a form of self-distillation without labels.
146
+
147
+ • Knowledge distillation: We employ the knowledge distillation procedure proposed by Touvron et al. [56] to guide the supervised training of ResMLP with a convnet.
148
+
149
+ # 123 3.1 Experimental setting
150
+
151
+ Datasets. We train our models on the ImageNet-1k dataset [50], that contains 1.2M images evenly spread over 1,000 object categories. In the absence of an available test set for this benchmark, we follow the standard practice in the community by reporting performance on the validation set. This is not ideal since the validation set was originally designed to select hyper-parameters. Comparing methods on this set may not be conclusive enough because an improvement in performance may not be caused by better modeling, but by a better selection of hyper-parameters. To mitigate this risk, we report additional results in transfer learning and on two alternative versions of ImageNet that have been built to have distinct validation and test sets, namely the ImageNet-real [3] and ImageNet-v2 [49] datasets. We also report a few data-points when training on ImageNet-21k. Our hyper-parameters are mostly adopted from Touvron et al. [56, 57].
152
+
153
+ 134 Hyper-parameter settings. In the case of supervised learning, we train our network with the Lamb
154
+ 135 optimizer [63] with a learning rate of $5 \times 1 0 ^ { - 3 }$ and weight decay 0.2. We initialize the LayerScale
155
+ 136 parameters as a function of the depth by following CaiT [57]. The rest of the hyper-parameters follow
156
+ 137 the default setting used in DeiT [56]. For the knowledge distillation paradigm, we use the same
157
+ 138 RegNety-16GF [48] as in DeiT with the same training schedule. The majority of our models take two
158
+ 139 days to train on eight V100-32GB GPUs.
159
+
160
+ # 3.2 Main Results
161
+
162
+ In this section, we compare our architecture to models with more conventional network architectures of comparable size and throughput on ImageNet.
163
+
164
+ 43 Comparison with Transformers and convnets in a supervised setting. In Table 1, we compare
165
+ 44 ResMLP with different convolutional and Transformer architectures. For completeness, we report
166
+ 145 the best-published numbers obtained with a model trained on ImageNet alone. As expected, in
167
+ 146 terms of the trade-off between accuracy, FLOPs, and throughput, ResMLP is not as efficient as
168
+ 147 convolutional networks or Transformers. However, their accuracy is encouraging: we compare them
169
+ 148 with architectures that have benefited from years of research and careful optimization towards these
170
+ 149 trade-offs. Overall, our results suggest that the structural constraints imposed by the layer design do
171
+ 150 not have a drastic influence on performance, especially when training models with enough data and
172
+ 151 recent advances in training and regularization.
173
+ 152 Self-supervised pre-training of ResMLP. We explore the possibility of training ResMLP using
174
+ 153 DINO, a recent self-supervised learning approach [6]. We pre-train ResMLP-S12 models with this
175
+ 154 approach during 300 epochs. We report our results in Table 2. As expected given the supervised
176
+ 155 classification results, the accuracies obtained with ResMLP are less good than with ViT. Nevertheless,
177
+ 156 the performance is surprisingly high for a pure MLP architecture and competitive with Convnet in
178
+ 157 knn evaluation. We hope that these result will serve as a baseline for future work.
179
+ 158 After self-supervised pre-training, we also fine-tune the network on ImageNet using ground truth
180
+ 159 labels. This pre-training substantially improves the accuracy, when comparing with the same model
181
+ 160 ResMLP-S24 solely trained with labels (top-1 acc. of $7 9 . 9 \%$ on ImageNet-val instead of $7 9 . 4 \%$ for
182
+ 161 ResMLP-S24, with the same total number of epochs). Results on ImageNet-v2 suggest that it reduces
183
+ 162 overfitting $6 8 . 6 \%$ on ImageNet-v2, vs $6 7 . 9 \%$ with supervised training only).
184
+ 163 Improving models with knowledge distillation. We study our model when training following the
185
+ 164 knowledge distillation approach of Touvron et al. [56]. In their work, the authors show the impact of
186
+ 165 training a ViT model by distilling it from a RegNet. In this experiment, we explore if ResMLP also
187
+ 166 benefits from this procedure and summarize our results in Table 3 (Blocks “Baseline models” and
188
+ 167 “Training”). We observe that similar to DeiT models, ResMLP greatly benefits from distilling from a
189
+ 168 convnet. This result concurs with the observations made by d’Ascoli et al. [13], who used convnets
190
+ 169 to initialize feedforward networks. Even though our setting differs from theirs in scale, the problem
191
+ 170 of overfitting for feedforward networks is still present on ImageNet. The additional regularization
192
+ 171 obtained from the distillation is a possible explanation for this improvement.
193
+ 172 Visualisation. Because they are linear, our patch interaction layers from Eq. (2) are easily inter
194
+ 173 pretable. In Figure 2 we visualise the rows of the interaction matrices A as $N \times N$ images, for our
195
+ 174 ResMLP-S24 model. The early layers show convolution-like patterns: the learned weights resemble
196
+ 175 shifted versions of each other and have local support. Interestingly, in many layers, the support also
197
+ 176 extends along both axes, most prominently seen in layer seven. The last seven layers of the network
198
+ 177 are different: they consist of a spike for the patch itself and a diffuse response across other patches
199
+ 178 with larger or smaller magnitude; see layer 20.
200
+
201
+ Table 2: Self-supervised learning with DINO [6]. Classification accuracy on ImageNet-1k val. ResMLPs evaluated with linear and $k$ -NN evaluation on ImageNet are comparable to convnets but inferior to ViT.
202
+
203
+ <table><tr><td>Models</td><td>ResNet-50</td><td>ViT-S/16</td><td>ViT-S/8</td><td>ViT-B/16</td><td>ResMLP-S12</td><td>ResMLP-S24</td></tr><tr><td>Params. (×106)</td><td>25</td><td>22</td><td>22</td><td>87</td><td>15</td><td>30</td></tr><tr><td>FLOPS (×109)</td><td>4.1</td><td>4.6</td><td>22.4</td><td>17.5</td><td>3.0</td><td>6.0</td></tr><tr><td>Linear</td><td>75.3</td><td>77.0</td><td>79.7</td><td>78.2</td><td>67.5</td><td>72.8</td></tr><tr><td>k-NN</td><td>67.5</td><td>74.5</td><td>78.3</td><td>76.1</td><td>62.6</td><td>69.4</td></tr></table>
204
+
205
+ # 179 3.3 Visualization & analysis of the linear interaction between patches
206
+
207
+ 180 Measuring sparsity of the weights. The visualizations described above suggest that the linear
208
+ 181 communication layers are sparse. We analyze this quantitatively in more detail in Figure 3. We
209
+ 182 measure the sparsity of the matrix A, and compare it to the sparsity of $\mathbf { B }$ and $\mathbf { C }$ from the per-patch
210
+ 183 MLP. Since there are no exact zeros, we measure the rate of components whose absolute value is
211
+ 184 lower than $5 \%$ of the maximum value. Note, discarding the small values is analogous to the case
212
+ 185 where we normalize the matrix by its maximum and use a finite-precision representation of weights.
213
+ 186 For instance, with a 4-bits representation of weight, one would typically round to zero all weights
214
+ 187 whose absolute value is below $6 . 2 5 \%$ of the maximum value.
215
+ 188 The measurements in Figure 3 show that all three matrices are sparse, with the layers implementing
216
+ 189 the patch communication being significantly more so. This suggests that they may be compatible with
217
+ 190 parameter pruning, or better, with modern quantization techniques that induce sparsity at training
218
+ 191 time, such as Quant-Noise [20] and DiffQ [19]. The sparsity structure, in particular in earlier layers,
219
+ 192 see Figure. 2, hints that we could implement the patch interaction linear layer with a convolution. We
220
+ 193 provide some results for convolutional variants in our ablation study. Further research on network
221
+ 194 compression is beyond the scope of this paper, yet we believe it worth investigating in the future.
222
+ 195 Communication across patches if we remove the linear interaction layer (linear none), we
223
+ 196 obtain substantially lower accuracy ( $- 2 0 \%$ top-1 acc.) for a “bag-of-patches” approach. We have tried
224
+ 197 several alternatives for the linear patch interaction layer, which are presented in Table 3 (block “patch
225
+ 198 communication”). Amongst them, using the same MLP structure as for patch processing (linear
226
+ 199 MLP), which we analyze in more details in the supplementary material. The simpler choice of a
227
+ 200 single linear square layer led to a better accuracy/performance trade-off – considering that the MLP
228
+ 201 variant requires compute halfway between ResMLP-S12 and ResMLP-S24 – and requires fewer
229
+ 202 parameters than a residual MLP block.
230
+ 203 The visualization in Figure 2 indicates that many linear interaction layers look like convolutions. In
231
+ 204 our ablation, we replaced the linear layer with different types of $3 \times 3$ convolutions. The depth-wise
232
+ 205 convolution does not implement interaction across channels – as our linear patch communication
233
+ 206 layer – and yields similar performance at a comparable number of parameters and FLOPs. While
234
+ 207 full $3 \times 3$ convolutions yield best results, they come with roughly double the number of parameters
235
+
236
+ ![](images/1a5c45d9a0efc551807e3e5b32b664add8eacee830756aaeaa0f33c734b6d1d1.jpg)
237
+ Figure 2: Visualisation of the linear layers in ResMLP-S24. For each layer we visualise the rows of the matrix A as a set of $1 4 \times 1 4$ pixel images, for sake of space we only show the rows corresponding to the $6 \times 6$ central patches. We observe patterns in the linear layers that share similarities with convolutions. In appendix B we provide comparable visualizations for all layers of a ResMLP-S12 model.
238
+
239
+ ![](images/b5f35749759ac14eaf9aeb24d25e43c14d1a40bfe0b0669024fbc8482b3a3fe3.jpg)
240
+ Figure 3: Sparsity of linear interaction layers. For each layer (linear and MLP), we show the rate of components whose absolute value is lower than $5 \%$ of the maximum. Linear interaction layers are sparser than the matrices involved in the per-patch MLP.
241
+
242
+ ![](images/60d9f8bbf12c5cd094917c6d04868c6e5af73178211cc8057c5716ff70c22b03.jpg)
243
+ Figure 4: Top-1 accuracy on ImageNet-V2 vs. ImageNet-val. ResMLPs tend to overfit slightly more under identical training method. This is partially alleviated with by introducing more regularization (more data or distillation, see e.g., ResMLP-B24/8-distil).
244
+
245
+ Table 3: Ablation. Our default configurations are presented in the three first rows. By default we train during 400 epochs. The “old-fashioned” is similar to what was employed for ResNet [23]: SGD, 90-epochs waterfall schedule, same augmentations up to variations due to library used.
246
+
247
+ <table><tr><td rowspan="2">Ablation</td><td rowspan="2">Model</td><td rowspan="2">Patch size</td><td rowspan="2">Params ×106</td><td rowspan="2">FLOPs ×109</td><td rowspan="2">Variant</td><td colspan="3">top-1 acc.on ImageNet</td></tr><tr><td>val</td><td>real[3]</td><td>v2 [49]</td></tr><tr><td rowspan="3">Baseline models</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>12 layers, working dimension 384</td><td>76.6</td><td>83.3</td><td>64.4</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td>24 layers, working dimension 384</td><td>79.4</td><td>85.3</td><td>67.9</td></tr><tr><td>ResMLP-B24</td><td>16</td><td>115.7</td><td>23.0</td><td>24 layers, working dimension 768</td><td>81.0</td><td>86.1</td><td>69.0</td></tr><tr><td>Normalization</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>Aff →Layernorm</td><td>77.7</td><td>84.1</td><td>65.7</td></tr><tr><td>Pooling</td><td>ResMLP-S12</td><td>16</td><td>17.7</td><td>3.0</td><td>average pooling →Class-MLP</td><td>77.5</td><td>84.0</td><td>66.1</td></tr><tr><td rowspan="5">Patch communication</td><td>ResMLP-S12</td><td>16</td><td>14.9</td><td>2.8</td><td>linear→ none</td><td>56.5</td><td>63.4</td><td>43.1</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>18.6</td><td>4.3</td><td>linear→MLP</td><td>77.3</td><td>84.0</td><td>65.7</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>30.8</td><td>6.0</td><td>linear → conv 3x3</td><td>77.3</td><td>84.4</td><td>65.7</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>14.9</td><td>2.8</td><td>linear →conv 3x3 depth-wise</td><td>76.3</td><td>83.4</td><td>64.6</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>16.7</td><td>3.2</td><td>linear→conv 3x3 depth-separable</td><td>77.0</td><td>84.0</td><td>65.5</td></tr><tr><td rowspan="3">Patch size</td><td>ResMLP-S12/14</td><td>14</td><td>15.6</td><td>4.0</td><td>patch size 16×16-→14×14</td><td>76.9</td><td>83.7</td><td>65.0</td></tr><tr><td>ResMLP-S12/8</td><td>8</td><td>22.1</td><td>14.0</td><td>patch size 16×16-8×8</td><td>79.1</td><td>85.2</td><td>67.2</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td> patch size 16×16-&gt;8 ×8</td><td>81.0</td><td>85.7</td><td>68.6</td></tr><tr><td rowspan="7">Training</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>old-fashioned (90 epochs)</td><td>69.2</td><td>76.0</td><td>56.1</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>pre-trained SSL (DINO)</td><td>76.5</td><td>83.6</td><td>64.5</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>distillation</td><td>77.8</td><td>84.6</td><td>66.0</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td> pre-trained SSL (DINO)</td><td>79.9</td><td>85.9</td><td>68.6</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td>distillation</td><td>80.8</td><td>86.6</td><td>69.8</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td>distillation</td><td>83.6</td><td>88.4</td><td>73.4</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td>pre-trained ImageNet-21k (60 epochs)</td><td>84.4</td><td>88.9</td><td>74.2</td></tr></table>
248
+
249
+ and FLOPs. Interestingly, the depth-separable convolutions combine accuracy close to that of full $3 \times 3$ convolutions with a number of parameters and FLOPs comparable to our linear layer. This suggests that convolutions on low-resolution feature maps at all layers is an interesting alternative to the common pyramidal design of convnets, where early layers operate at higher resolution and smaller feature dimension.
250
+
251
+ # 3.4 Ablation studies
252
+
253
+ Table 3 reports the ablation study of our base network and a summary of our preliminary exploratory studies. We discuss the ablation below and give more detail about early experiments in Appendix A.
254
+
255
+ Control of overfitting. Since MLPs are subject to overfitting, we show in Fig. 4 a control experiment to probe for problems with generalization. We explicitly analyze the differential of performance between the ImageNet-val and the distinct ImageNet-V2 test set. The relative offsets between curves reflect to which extent models are overfitted to ImageNet-val w.r.t. hyper-parameter selection. The degree of overfitting of our MLP-based model is overall neutral or slightly higher to that of other transformer-based architectures or convnets with same training procedure.
256
+
257
+ Normalization & activation. Our network configuration does not contain any batch normalizations. Instead, we use the affine per-channel transform Aff. This is akin to Layer Normalization [1], typically used in transformers, except that we avoid to collect any sort of statistics, since we do no need it it for convergence. In preliminary experiments with pre-norm and post-norm [24], we observed that both choices converged. Pre-normalization in conjunction with Batch Normalization could provide an accuracy gain in some cases, see Appendix A.
258
+
259
+ We choose to use a GELU [25] function. In Appendix A we also analyze the activation function: ReLU [22] also gives a good performance, but it was a bit more unstable in some settings. We did not manage to get good results with SiLU [25] and HardSwish [28].
260
+
261
+ Pooling. Replacing average pooling with Class-MLP, see Section 2, brings a significant gain for a negligible computational cost. We do not include it by default to keep our models more simple.
262
+
263
+ Patch size. Smaller patches significantly increase the performance, but also increase the number of flops (see Block "Patch size" in Table 3). Smaller patches benefit more to larger models, but only with an improved optimization scheme involving more regularization (distillation) or more data.
264
+
265
+ 6 Training. Consider the Block “Training’ in Table 3. ResMLP significantly benefits from modern training procedures such as those used in DeiT. For instance, the DeiT training procedure improves
266
+
267
+ <table><tr><td>Architecture</td><td>FLOPs</td><td>Res.</td><td>CIFAR10</td><td>CIFAR100</td><td>Flowers102</td><td>Cars</td><td>iNat18</td><td>iNat19</td></tr><tr><td>EfficientNet-B7 [53]</td><td>37.0B</td><td>600</td><td>98.9</td><td>91.7</td><td>98.8</td><td>94.7</td><td>1</td><td>1</td></tr><tr><td>ViT-B/16 [16]</td><td>55.5B</td><td>384</td><td>98.1</td><td>87.1</td><td>89.5</td><td>1</td><td>1</td><td>1</td></tr><tr><td>ViT-L/16 [16]</td><td>190.7B</td><td>384</td><td>97.9</td><td>86.4</td><td>89.7</td><td></td><td></td><td></td></tr><tr><td>Deit-B/16 [56]</td><td>17.5B</td><td>224</td><td>99.1</td><td>90.8</td><td>98.4</td><td>92.1</td><td>73.2</td><td>77.7</td></tr><tr><td>ResNet50 [58]</td><td>4.1B</td><td>224</td><td>1</td><td>1</td><td>96.2</td><td>90.0</td><td>68.4</td><td>73.7</td></tr><tr><td>Grafit/ResNet50 [58]</td><td>4.1B</td><td>224</td><td>1</td><td>1</td><td>97.6</td><td>92.7</td><td>68.5</td><td>74.6</td></tr><tr><td>ResMLP-S12</td><td>3.0B</td><td>224</td><td>98.1</td><td>87.0</td><td>97.4</td><td>84.6</td><td>60.2</td><td>71.0</td></tr><tr><td>ResMLP-S24</td><td>6.0B</td><td>224</td><td>98.7</td><td>89.5</td><td>97.9</td><td>89.5</td><td>64.3</td><td>72.5</td></tr></table>
268
+
269
+ Table 4: Evaluation on transfer learning. Classification accuracy (top-1) of models trained on ImageNet-1k for transfer to datasets covering different domains. The ResMLP architecture takes $2 2 4 \times 2 2 4$ images during training and transfer, while ViTs and EfficientNet-B7 work with higher resolutions, see “Res.” column.
270
+
271
+ 238 the performance of ResMLP-S12 by $7 . 4 \%$ compared to the training employed for ResNet $[ 2 3 ]$ .
272
+ 239 This is in line with recent work pointing out the importance of the training strategy over the model
273
+ 240 choice [2, 48]. Pre-training on more data and distillation also improve the performance of ResMLP,
274
+ 241 especially for the bigger models, e.g., distillation improves the accuracy of ResMLP-B24/8 by $2 . 6 \%$ .
275
+
276
+ Other analysis. In our early exploration, we evaluated several alternative design choices. As in transformers, we could use positional embeddings mixed with the input patches. In our experiments we did not see any benefit from using these features, see Appendix A. This observation suggests that our linear patch interaction layer provides sufficient spatial communication, and referencing absolute positions obviates the need for any form of positional encoding.
277
+
278
+ # 3.5 Transfer learning
279
+
280
+ We evaluate the quality of features obtained from a ResMLP architecture when transferring them to other domains. The goal is to assess if the features generated from a feedforward network are more prone to overfitting on the training data distribution. We adopt the typical setting where we pre-train a model on ImageNet-1k and fine-tune it on the training set associated with a specific domain. We report the performance with different architectures on various image benchmarks in Table 4, namely CIFAR-10 and CIFAR-100 [34], Flowers-102 [42], Stanford Cars [33] and iNaturalist [27]. We refer the reader to the corresponding references for a more detailed description of the datasets. We observe that the performance of our ResMLP is competitive with the existing architectures, showing that pretraining feedforward models with enough data and regularization via data augmentation greatly reduces their tendency to overfit on the original distribution. Interestingly, this regularization also prevents them from overfitting on the training set of smaller dataset during the fine-tuning stage.
281
+
282
+ # 3.6 Machine translation
283
+
284
+ We also evaluate the ResMLP transpose-mechanism to replace the self-attention in the encoder and decoder of a neural machine translation system. We train models on the WMT 2014 English-German and English-French tasks, following the setup from Ott et al. [45]. We consider models of dimension 512, with a hidden MLP size of 2048, and with 6 or 12 layers. Note that the current state of the art employs much larger models: our 6 layers model is more comparable to the base transformer model from Vaswani et al. [60], which serves as a baseline, along with pre-transformer architectures such as Recurrent and convolutional neural networks. We use Adagrad with learning rate 0.2, $3 2 \mathrm { k }$ steps of linear warmup, label smoothing 0.1, dropout rate 0.15 for en-de and 0.1 for en-fr. We initialize the LayerScale parameter to 0.2. We generate translations with the beam search algorithm, with a beam of size 4. As shown in Table 5, the results are at least on par with other architectures:
285
+
286
+ Table 5: Machine translation on WMT 2014 translation tasks. We report tokenized BLEU on newstest2014.
287
+
288
+ <table><tr><td>Models</td><td>GNMT[61]</td><td></td><td>ConvS2S [21]Transf. (base)[60]</td><td>ResMLP-6</td><td>ResMLP-12</td></tr><tr><td>EN-DE</td><td>24.6</td><td>25.2</td><td>27.3</td><td>26.4</td><td>26.8</td></tr><tr><td>EN-FR</td><td>39.9</td><td>40.5</td><td>38.1</td><td>40.3</td><td>40.6</td></tr></table>
289
+
290
+ 2Interestingly, if trained with this “old-fashion” setting, ResMLP-S12 outperforms AlexNet [35] by a margin.
291
+
292
+ We review the research on applying Fully Connected Network (FCN) for computer vision problems as well as other architectures that shares common modules with our model.
293
+
294
+ Fully-connected network for images. Many studies have shown that FCNs are competitive with convnets for the tasks of digit recognition [11, 51], keyword spotting [7] and handwritting recognition [4]. Several works [37, 40, 59] have questioned if FCNs are also competitive on natural image datasets, such as CIFAR-10 [34]. More recently, d’Ascoli et al. [13] have shown that a FCN initialized with the weights of a pretrained convnet achieves performance that are superior than the original convnet. Neyshabur [41] further extend this line of work by achieving competitive performance by training an FCN from scratch but with a regularizer that constrains the models to be close to a convnet. These studies have been conducted on small scale datasets with the purpose of studying the impact of architectures on generalization in terms of sample complexity [18] and energy landscape [31]. In our work, we show that, in the larger scale setting of ImageNet, FCNs can attain surprising accuracy without any constraint or initialization inspired by convnets.
295
+
296
+ Finally, the application of FCN networks in computer vision have also emerged in the study of the properties of networks with infinite width [43], or for inverse scattering problems [32]. More interestingly, the Tensorizing Network [44] is an approximation of very large FCN that shares similarity with our model, in that they intend to remove prior by approximating even more general tensor operations, i.e., not arbitrarily marginalized along some pre-defined sharing dimensions. However, their method is designed to compress the MLP layers of a standard convnets.
297
+
298
+ Other architectures with similar components. Our FCN architecture shares several components with other architectures, such as convnets [35, 36] or transformers [60]. A fully connected layer is equivalent to a convolution layer with a $1 \times 1$ receptive field, and several work have explored convnet architectures with small receptive fields. For instance, the VGG model [52] uses $3 \times 3$ convolutions, and later, other architectures such as the ResNext [62] or the Xception [10] mix $1 \times 1$ and $3 \times 3$ convolutions. In contrast to convnets, in our model interaction between patches is obtained via a linear layer that is shared across channels, and that relies on absolute rather than relative positions.
299
+
300
+ More recently, transformers have emerged as a promising architecture for computer vision [9, 17, 46, 56, 66]. In particular, our architecture takes inspiration from the structure used in the Vision Transformer (ViT) [17], and as consequence, shares many components. Our model takes a set of non-overlapping patches as input and passes them through a series of MLP layers that share the same structure as ViT, replacing the self-attention layer with a linear patch interaction layer. Both layers have a global field-of-view, unlike convolutional layers. Whereas in self-attention the weights to aggregate information from other patches are data dependent through queries and keys, in ResMLP the weights are not data dependent and only based on absolute positions of patches. In our implementation we follow the improvements of DeiT [56] to train vision transformers, use the skip-connections from ResNets [23] with pre-normalization of the layers [8, 24].
301
+
302
+ 307 Finally, our work questions the importance of self-attention in existing architectures. Similar ob
303
+ 308 servations have been made in natural language processing. Notably, Synthesizer [54] shows that
304
+ 309 dot-product self-attention can be replaced by a feedforward network, with competitive performance
305
+ 310 on sentence representation benchmarks. As opposed to our work, Synthesizer does use data dependent
306
+ 311 weights, but in contrast to transformers the weights are determined from the queries only.
307
+
308
+ # 312 5 Conclusion
309
+
310
+ In this paper we have shown that a simple residual architecture, whose residual blocks consist of a one-hidden layer feed-forward network and a linear patch interaction layer, achieves an unexpectedly high performance on ImageNet classification benchmarks, provided that we adopt a modern training strategy such as those recently introduced for transformer-based architectures. Thanks to their simple structure, with linear layers as the main mean of communication between patches, we can vizualize the filters learned by this simple MLP. While some of the layers are similar to convolutional filters, we also observe sparse long-range interactions as early as the second layer of the network. We hope that our model free of spatial priors will contribute to further understanding of what networks with less priors learn, and potentially guide the design choices of future networks without the pyramidal design prior adopted by most convolutional neural networks.
311
+
312
+ 324 [1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint
313
+ 325 arXiv:1607.06450, 2016. 2, 7
314
+ 326 [2] Irwan Bello, W. Fedus, Xianzhi Du, E. D. Cubuk, A. Srinivas, Tsung-Yi Lin, Jonathon Shlens, and Barret
315
+ 327 Zoph. Revisiting ResNets: Improved training and scaling strategies. arXiv preprint arXiv:2103.07579,
316
+ 328 2021. 1, 8
317
+ 329 [3] Lucas Beyer, Olivier J. Hénaff, Alexander Kolesnikov, Xiaohua Zhai, and Aaron van den Oord. Are we
318
+ 330 done with ImageNet? arXiv preprint arXiv:2006.07159, 2020. 4, 7
319
+ 331 [4] Théodore Bluche. Deep neural networks for large vocabulary handwritten text recognition. PhD thesis,
320
+ 332 Université Paris-Sud, 2015. 9
321
+ 333 [5] A. Brock, Soham De, S. L. Smith, and K. Simonyan. High-performance large-scale image recognition
322
+ 334 without normalization. arXiv preprint arXiv:2102.06171, 2021. 4
323
+ 335 [6] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand
324
+ 336 Joulin. Emerging properties in self-supervised vision transformers. arXiv preprint arXiv:2104.14294,
325
+ 337 2021. 2, 4, 5
326
+ 338 [7] Clément Chatelain. Extraction de séquences numériques dans des documents manuscrits quelconques.
327
+ 339 PhD thesis, Université de Rouen, 2006. 9
328
+ 340 [8] Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones,
329
+ 341 Niki Parmar, Mike Schuster, Zhifeng Chen, et al. The best of both worlds: Combining recent advances in
330
+ 342 neural machine translation. In Annual Meeting of the Association for Computational Linguistics, 2018. 9
331
+ 343 [9] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse
332
+ 344 transformers. arXiv preprint arXiv:1904.10509, 2019. 9
333
+ 345 [10] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Conference on
334
+ 346 Computer Vision and Pattern Recognition, 2017. 9
335
+ 347 [11] Dan Claudiu Cire¸san, Ueli Meier, Luca Maria Gambardella, and Jürgen Schmidhuber. Deep big multilayer
336
+ 348 perceptrons for digit recognition. In Neural networks: tricks of the trade, pages 581–598. Springer, 2012. 9
337
+ 349 [12] Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. RandAugment: Practical automated data
338
+ 350 augmentation with a reduced search space. arXiv preprint arXiv:1909.13719, 2019. VI
339
+ 351 [13] Stéphane d’Ascoli, Levent Sagun, Joan Bruna, and Giulio Biroli. Finding the needle in the haystack with
340
+ 352 convolutions: on the benefits of architectural bias. In NeurIPS, 2019. 5, 9
341
+ 353 [14] Xiaohan Ding, Xiangyu Zhang, Jungong Han, and Guiguang Ding. RepMLP: Re-parameterizing con
342
+ 354 volutions into fully-connected layers for image recognition. arXiv preprint arXiv:2105.01883, 2021.
343
+ 355 2
344
+ 356 [15] Piotr Dollár, Mannat Singh, and Ross Girshick. Fast and accurate model scaling. arXiv preprint
345
+ 357 arXiv:2103.06877, 2021. 1
346
+ 358 [16] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas
347
+ 359 Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is
348
+ 360 worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning
349
+ 361 Representations, 2021. 1, 2, 3, 8
350
+ 362 [17] Alexey Dosovitskiy, Jost Tobias Springenberg, Martin A. Riedmiller, and Thomas Brox. Discriminative
351
+ 363 unsupervised feature learning with convolutional neural networks. In NeurIPS, 2014. 9
352
+ 364 [18] Simon S Du, Yining Wang, Xiyu Zhai, Sivaraman Balakrishnan, Ruslan Salakhutdinov, and Aarti Singh.
353
+ 365 How many samples are needed to estimate a convolutional neural network? In NeurIPS, 2018. 9
354
+ 366 [19] Alexandre Défossez, Yossi Adi, and Gabriel Synnaeve. Differentiable model compression via pseudo
355
+ 367 quantization noise. arXiv preprint arXiv:2104.09987, 2021. 6
356
+ 368 [20] Angela Fan, Pierre Stock, Benjamin Graham, Edouard Grave, Rémi Gribonval, Hervé Jégou, and Armand
357
+ 369 Joulin. Training with quantization noise for extreme model compression. In International Conference on
358
+ 370 Learning Representations, 2021. 6
359
+ 371 [21] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence
360
+ 372 to sequence learning. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International
361
+ 373 Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages
362
+ 374 1243–1252. PMLR, 06–11 Aug 2017. 8
363
+ 375 [22] Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In International
364
+ 376 Conference on Machine Learning, 2011. 7
365
+ 377 [23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition.
366
+ 378 In Conference on Computer Vision and Pattern Recognition, 2016. 2, 7, 8, 9, V
367
+ 379 [24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks.
368
+ 380 arXiv preprint arXiv:1603.05027, 2016. 7, 9
369
+ 381 [25] Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (GELUs). arXiv preprint arXiv:1606.08415,
370
+ 382 2016. 1, 3, 7
371
+ 383 [26] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your
372
+ 384 batch: Improving generalization through instance repetition. In Conference on Computer Vision and
373
+ 385 Pattern Recognition, 2020. VI
374
+ 386 [27] Grant Van Horn, Oisin Mac Aodha, Yang Song, Alexander Shepard, Hartwig Adam, Pietro Perona,
375
+ 387 and Serge J. Belongie. The iNaturalist species classification and detection dataset. arXiv preprint
376
+ 388 arXiv:1707.06642, 2017. 8
377
+ 389 [28] A. Howard, Mark Sandler, G. Chu, Liang-Chieh Chen, B. Chen, M. Tan, W. Wang, Y. Zhu, R. Pang, V.
378
+ 390 Vasudevan, Quoc V. Le, and H. Adam. Searching for MobileNetV3. International Conference on Computer
379
+ 391 Vision, 2019. 7
380
+ 392 [29] Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic
381
+ 393 depth. In European Conference on Computer Vision, 2016. VI
382
+ 394 [30] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal
383
+ 395 covariate shift. In International Conference on Machine Learning, 2015. 2
384
+ 396 [31] Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter
385
+ 397 Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International
386
+ 398 Conference on Learning Representations, 2017. 9
387
+ 399 [32] Yuehaw Khoo and Lexing Ying. Switchnet: a neural network model for forward and inverse scattering
388
+ 400 problems. SIAM Journal on Scientific Computing, 41(5):A3182–A3201, 2019. 9
389
+ 401 [33] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained
390
+ 402 categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13),
391
+ 403 2013. 8
392
+ 404 [34] A. Krizhevsky. Learning multiple layers of features from tiny images. Master’s thesis, University of
393
+ 405 Toronto, 2009. 8, 9
394
+ 406 [35] A. Krizhevsky, I. Sutskever, and G. Hinton. ImageNet classification with deep convolutional neural
395
+ 407 networks. In NeurIPS, 2012. 8, 9
396
+ 408 [36] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to
397
+ 409 document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. 9
398
+ 410 [37] Zhouhan Lin, Roland Memisevic, and Kishore Konda. How far can we go without convolution: Improving
399
+ 411 fully-connected networks. arXiv preprint arXiv:1511.02580, 2015. 9
400
+ 412 [38] Hanxiao Liu, Zihang Dai, David R. So, and Quoc V. Le. Pay attention to MLPs. arXiv preprint
401
+ 413 arXiv:2105.08050, 2021. 2
402
+ 414 [39] Luke Melas-Kyriazi. Do you even need attention? A stack of feed-forward layers does surprisingly well
403
+ 415 on ImageNet. arXiv preprint arXiv:2105.02723, 2021. 2
404
+ 416 [40] Decebal Constantin Mocanu, Elena Mocanu, Peter Stone, Phuong H Nguyen, Madeleine Gibescu, and
405
+ 417 Antonio Liotta. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by
406
+ 418 network science. Nature communications, 9(1):1–12, 2018. 9
407
+ 419 [41] Behnam Neyshabur. Towards learning convolutions from scratch. In NeurIPS, 2020. 9
408
+ 420 [42] M-E. Nilsback and A. Zisserman. Automated flower classification over a large number of classes. In
409
+ 421 Proceedings of the Indian Conference on Computer Vision, Graphics and Image Processing, 2008. 8
410
+ 422 [43] Roman Novak, Lechao Xiao, Jaehoon Lee, Yasaman Bahri, Greg Yang, Jiri Hron, Daniel A Abolafia,
411
+ 423 Jeffrey Pennington, and Jascha Sohl-Dickstein. Bayesian deep convolutional networks with many channels
412
+ 424 are Gaussian processes. In International Conference on Learning Representations, 2019. 9
413
+ 425 [44] Alexander Novikov, Dmitrii Podoprikhin, Anton Osokin, and Dmitry P Vetrov. Tensorizing neural networks.
414
+ 426 In Neurips, 2015. 9
415
+ 427 [45] Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In ACL,
416
+ 428 pages 1–9. Association for Computational Linguistics, 2018. 8
417
+ 429 [46] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin
418
+ 430 Tran. Image transformer. In International Conference on Machine Learning, 2018. 9
419
+ 431 [47] Filip Radenovic, Giorgos Tolias, and Ondrej Chum. Fine-tuning CNN image retrieval with no human ´
420
+ 432 annotation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(7):1655 – 1668, 2018. 4
421
+ 433 [48] Ilija Radosavovic, Raj Prateek Kosaraju, Ross B. Girshick, Kaiming He, and Piotr Dollár. Designing
422
+ 434 network design spaces. Conference on Computer Vision and Pattern Recognition, 2020. 4, 8
423
+ 435 [49] B. Recht, Rebecca Roelofs, L. Schmidt, and V. Shankar. Do ImageNet classifiers generalize to ImageNet?
424
+ 436 In International Conference on Machine Learning, 2019. 4, 7
425
+ 437 [50] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang,
426
+ 438 Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large
427
+ 439 scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. 1, 4
428
+ 440 [51] Patrice Y Simard, David Steinkraus, John C Platt, et al. Best practices for convolutional neural networks
429
+ 441 applied to visual document analysis. In ICDAR, 2003. 9
430
+ 442 [52] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In
431
+ 443 International Conference on Learning Representations, 2015. 9
432
+ 444 [53] Mingxing Tan and Quoc V. Le. EfficientNet: Rethinking model scaling for convolutional neural networks.
433
+ 445 arXiv preprint arXiv:1905.11946, 2019. 4, 8
434
+ 446 [54] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking
435
+ 447 self-attention in transformer models. arXiv preprint arXiv:2005.00743, 2020. 9
436
+ 448 [55] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner,
437
+ 449 Jessica Yung, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. MLP-Mixer: An
438
+ 450 all-MLP architecture for vision. arXiv preprint arXiv:2105.01601, 2021. 2
439
+ 451 [56] Hugo Touvron, M. Cord, M. Douze, F. Massa, Alexandre Sablayrolles, and H. Jégou. Training data-efficient
440
+ 452 image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. 1, 2, 4, 5, 8,
441
+ 453 9, I, V
442
+ 454 [57] Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper
443
+ 455 with image transformers. arXiv preprint arXiv:2103.17239, 2021. 2, 3, 4, I
444
+ 456 [58] Hugo Touvron, Alexandre Sablayrolles, M. Douze, M. Cord, and H. Jégou. Grafit: Learning fine-grained
445
+ 457 image representations with coarse labels. arXiv preprint arXiv:2011.12982, 2020. 8
446
+ 458 [59] Gregor Urban, Krzysztof J Geras, Samira Ebrahimi Kahou, Ozlem Aslan, Shengjie Wang, Rich Caruana,
447
+ 459 Abdelrahman Mohamed, Matthai Philipose, and Matt Richardson. Do deep convolutional nets really need
448
+ 460 to be deep and convolutional? In International Conference on Learning Representations, 2017. 9
449
+ 461 [60] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz
450
+ 462 Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. 1, 8, 9
451
+ 463 [61] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim
452
+ 464 Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging
453
+ 465 the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. 8
454
+ 466 [62] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transfor
455
+ 467 mations for deep neural networks. In Conference on Computer Vision and Pattern Recognition, 2017.
456
+ 468 9
457
+ 469 [63] Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song,
458
+ 470 James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. Large batch optimization for deep learning: Training
459
+ 471 BERT in 76 minutes. In International Conference on Learning Representations, 2020. 4
460
+ 472 [64] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo.
461
+ 473 CutMix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint
462
+ 474 arXiv:1905.04899, 2019. VI
463
+ 475 [65] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk
464
+ 476 minimization. arXiv preprint arXiv:1710.09412, 2017. VI
465
+ 477 [66] Hengshuang Zhao, Jiaya Jia, and Vladlen Koltun. Exploring self-attention for image recognition. In
466
+ 478 Conference on Computer Vision and Pattern Recognition, 2020. 9
467
+ 479 [67] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation.
468
+ 480 In AAAI, 2020. VI
469
+
470
+ 1. For all authors...
471
+
472
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
473
+ (b) Did you describe the limitations of your work? [Yes]
474
+ (c) Did you discuss any potential negative societal impacts of your work? [No] We only use MLPs for image classification. There is already other system much more powerful therefore the impact is negligible
475
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
476
+
477
+ 2. If you are including theoretical results...
478
+
479
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
480
+
481
+ 3. If you ran experiments...
482
+
483
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We provide code in appendix
484
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
485
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Because it’s too expensive in computational resources. But for some experiments we run multiple times and we have $\sim 0 . 1$ as standard deviation
486
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] The majority of our experiments take 2 days on 8 GPUs V100-32GB
487
+
488
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
489
+
490
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
491
+ (b) Did you mention the license of the assets? [No] But license can be found with the references we mention
492
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No]
493
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] We only use datasets that are widely used in computer vision such as ImageNet or CIFAR
494
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We only use datasets that are widely used in computer vision such as ImageNet or CIFAR
495
+
496
+ 5. If you used crowdsourcing or conducted research with human subjects...
497
+
498
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
499
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
500
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/K9uApq7iyyI/K9uApq7iyyI_content_list.json ADDED
@@ -0,0 +1,1194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ResMLP: Feedforward networks for image classification with data-efficient training ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 238,
8
+ 122,
9
+ 758,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We present ResMLP, an architecture built entirely upon multi-layer perceptrons for image classification. It is a simple residual network that alternates (i) a linear layer in which image patches interact, independently and identically across channels, and (ii) a two-layer feed-forward network in which channels interact independently per patch. When trained with a modern training strategy using heavy data-augmentation and optionally distillation, it attains surprisingly good accuracy/complexity tradeoffs on ImageNet. We also train ResMLP models in a self-supervised setup, to further remove priors from employing a labelled dataset. Finally, by adapting our model to machine translation we achieve surprisingly good results. ",
40
+ "bbox": [
41
+ 150,
42
+ 352,
43
+ 766,
44
+ 477
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We will share our code based on the Timm library and pre-trained models. ",
51
+ "bbox": [
52
+ 232,
53
+ 479,
54
+ 717,
55
+ 494
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "11 1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 148,
65
+ 525,
66
+ 312,
67
+ 542
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "12 Recently, the transformer architecture [60], adapted from its original use in natural language pro \n13 cessing with only minor changes, has achieved performance competitive with the state of the art on \n14 ImageNet-1k [50] when pre-trained with a sufficiently large amount of data [16]. Retrospectively, \n15 this achievement is yet another step towards less priors: convolutional neural networks had removed \n16 a lot of hand-made choices compared to hand-designed pre-CNN approaches, moving the paradigm \n17 of hard-wired features to hand-designed architectural choices. Vision transformers avoid making \n18 assumptions inherent to convolutional architectures and noticeably the translation invariance. \n19 What these recent transformer-based works suggest is that longer training schedules, more parameters, \n20 more data [16] and/or more regularization [56], are sufficient to recover the important priors for tasks \n21 as complex as ImageNet classification. See also our discussion of related work in Section 4. This \n22 concurs with recent studies [2, 15] that better disentangle the benefits from the architectures from \n23 those of the training scheme. \n24 In this paper, we push this trend further, and propose Residual Multi-Layer Perceptrons (ResMLP): \n25 a purely multi-layer perceptron (MLP) based architecture for image classification. We outline our \n26 architecture in Figure 1 and detail it further in Section 2. It is intended to be simple: it takes image \n27 patches as input, projects them with a linear layer, and sequentially updates them in turn with two \n28 residual operations: (i) a simple linear layer that provides interaction between the patches, which \n29 is applied to all channels independently; and (ii) an MLP with a single hidden layer, which is \n30 independently applied to all patches. At the end of the network, the patches are average pooled, and \n31 fed to a linear classifier. \n32 This architecture is strongly inspired by the vision transformers (ViT) [16], yet it is much simpler \n33 in several ways: we do not use any form of attention, only linear layers along with the GELU \n34 non-linearity [25]. Since our architecture is much more stable to train than transformers, we do not \n35 need batch-specific or cross-channel normalizations such as BatchNorm, GroupNorm or LayerNorm. \n36 Our training procedure mostly follows the one initially introduced for DeiT [56] and CaiT [57]. \n37 Due to its linear nature, the patch interactions in our model can be easily visualised and interpreted. \n38 While the interaction pattern learned in the first layer is very similar to a small convolutional filter, \n39 we observe more subtle interactions across patches in deeper layers. These include some form of \n40 axial filters, and long-range interactions early in the network. ",
74
+ "bbox": [
75
+ 147,
76
+ 559,
77
+ 825,
78
+ 656
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 662,
88
+ 825,
89
+ 732
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 147,
98
+ 738,
99
+ 825,
100
+ 849
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 148,
109
+ 856,
110
+ 823,
111
+ 897
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/abb017542f27a5fed6ae93c2da8dd9eea31072f0baaa1cd9b7e27ffed8ccf434.jpg",
118
+ "image_caption": [
119
+ "Figure 1: The ResMLP architecture: After linearly projecting the image patches, our network alternately processes them by (1) a communication layer between vectors implemented as a linear layer; (2) a two-layer residual perceptron. We denote by A the Affine element-wise transformation, and by T the transposition. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 173,
124
+ 92,
125
+ 825,
126
+ 167
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 151,
135
+ 239,
136
+ 826,
137
+ 267
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 147,
146
+ 273,
147
+ 826,
148
+ 329
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "41 In summary, in this paper, we show that ",
155
+ "bbox": [
156
+ 150,
157
+ 335,
158
+ 436,
159
+ 351
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "• despite their simplicity, Residual Multi-Layer Perceptrons reach surprisingly good accuracy/complexity trade-offs with ImageNet-1k training only1, without requiring normalization based on batch or channel statistics; ",
166
+ "bbox": [
167
+ 158,
168
+ 361,
169
+ 826,
170
+ 402
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "• these models benefit significantly from distillation methods [56]; they are also compatible with modern self-supervised learning methods based on data augmentation, such as DINO [6]; ",
177
+ "bbox": [
178
+ 161,
179
+ 407,
180
+ 825,
181
+ 435
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "• thank to its design where patch embeddings simply “communicate” through a linear layer, we can make observations on the spatial interaction that the network learns across layers; ",
188
+ "bbox": [
189
+ 158,
190
+ 439,
191
+ 823,
192
+ 468
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "• we adapt ResMLP to machine translation, and again obtain surprisingly good results. ",
199
+ "bbox": [
200
+ 163,
201
+ 472,
202
+ 745,
203
+ 487
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "50 2 Method ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 151,
213
+ 506,
214
+ 271,
215
+ 522
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "51 Our model, depicted in Figure 1, is inspired by the ViT model, from which we adopt the columnar \n52 structure with fixed-resolution feature maps. We proceed two drastic simplifications. We refer the \n53 reader to Dosovitskiy et al. [16] for more details about the ViT architecture. \n54 The overall ResMLP architecture. Our model, denoted by ResMLP, takes a grid of $N \\times N$ non \n55 overlapping patches as input, where the patch size is typically equal to $1 6 \\times 1 6$ . The patches are then \n56 independently passed through a linear layer to form a set of $\\overline { { N ^ { 2 } d } }$ -dimensional embeddings. \n57 The resulting set of $N ^ { 2 }$ embeddings are fed to a sequence of Residual Multi-Layer Perceptron layers \n58 to produce a set of $N ^ { 2 } d .$ -dimensional output embeddings. These output embeddings are then averaged \n59 as a $d$ -dimension vector to represent the image, which is fed to a linear classifier to predict the label \n60 associated with the image. Training uses the cross-entropy loss. \n61 The Residual Multi-Perceptron Layer. Our network is a sequence of layers that all have the same \n62 structure: a linear sublayer followed by a feedforward sublayer. Similar to the Transformer layer, \n63 each sublayer is paralleled with a skip-connection [23]. We do not apply Layer Normalization [1] \n64 because training is stable without it when using the following Affine transformation: ",
222
+ "bbox": [
223
+ 147,
224
+ 536,
225
+ 825,
226
+ 579
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "",
233
+ "bbox": [
234
+ 148,
235
+ 585,
236
+ 826,
237
+ 627
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "",
244
+ "bbox": [
245
+ 147,
246
+ 632,
247
+ 825,
248
+ 689
249
+ ],
250
+ "page_idx": 1
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "",
255
+ "bbox": [
256
+ 147,
257
+ 695,
258
+ 825,
259
+ 752
260
+ ],
261
+ "page_idx": 1
262
+ },
263
+ {
264
+ "type": "equation",
265
+ "img_path": "images/0d8eb299d4c1dc3f0f859fc04d6e15564fb3478c1e1f4e780b9e4bb59ba562ea.jpg",
266
+ "text": "$$\n\\begin{array} { r } { \\mathbb { A } \\mathbb { f } \\mathbb { f } _ { \\alpha , \\beta } ( \\mathbf { x } ) = \\mathbb { D } \\mathrm { i } \\mathtt { a } \\mathbb { g } ( \\pmb { \\alpha } ) \\mathbf { x } + \\beta , } \\end{array}\n$$",
267
+ "text_format": "latex",
268
+ "bbox": [
269
+ 392,
270
+ 757,
271
+ 602,
272
+ 775
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "65 where $_ { \\pmb { \\alpha } }$ and $\\beta$ are learnable weight vectors. This operation simply rescales and shifts the input \n66 element-wise. Moreover, it has no cost at inference time, as it can absorbed in the adjacent linear \n67 layer. Note, when writing $\\operatorname { \\mathbb { A } f f } ( \\mathbf { X } )$ the operation is applied independently to each column of $\\mathbf { X }$ . \n68 While similar to BatchNorm [30] and Layer Normalization [1], the Aff operator does not depend on \n69 any batch statistics. Therefore, it is closer to the recent LayerScale method [57], which improves the \n70 optimization of deep transformers when initializing $_ { \\pmb { \\alpha } }$ to a small value. Note, LayerScale does not \n71 have a bias term. \n72 We apply this transformation twice for each residual block. As as a pre-normalization Aff replaces \n73 the LayerNormalization, and avoids using channel-wise statistics. Here, we initialize $\\alpha = 1$ , and \n74 $\\beta = { \\bf 0 }$ . As a post-processing of the residual block, Aff implements LayerScale and therefore we \n75 follow the same small value initialization for $_ { \\pmb { \\alpha } }$ as in [57] for the post-normalization. \n76 Finally, we follow the same structure for the feedforward sublayer as in the Transformer; we only \n77 replace the ReLU non-linearity by a GELU function [25]. \n78 Overall, our Multi-layer perceptron takes a set of $N ^ { 2 } \\ d .$ -dimensional input features stacked in a \n79 $d \\times N ^ { 2 }$ matrix $\\mathbf { X }$ , and outputs a set of $N ^ { 2 }$ $d$ -dimension output features, stacked in a matrix $\\mathbf { Y }$ with \n80 the following set of transformations: ",
279
+ "bbox": [
280
+ 148,
281
+ 780,
282
+ 825,
283
+ 851
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "",
290
+ "bbox": [
291
+ 151,
292
+ 92,
293
+ 823,
294
+ 119
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "",
301
+ "bbox": [
302
+ 147,
303
+ 126,
304
+ 825,
305
+ 181
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "",
312
+ "bbox": [
313
+ 148,
314
+ 188,
315
+ 826,
316
+ 217
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "",
323
+ "bbox": [
324
+ 147,
325
+ 222,
326
+ 825,
327
+ 263
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "equation",
333
+ "img_path": "images/3bb8126dbe6fa8de7bb60afbeefcc95ccf937b4a134e03428af43b1fcde8c946.jpg",
334
+ "text": "$$\n\\begin{array} { r c l } { \\mathbf { Z } } & { = } & { \\mathbf { X } + \\mathbb { A } \\mathbb { f } \\mathbb { f } \\left( \\left( \\mathbf { A } \\mathbb { A } \\mathbb { f } \\mathbb { f } \\left( \\mathbf { X } \\right) ^ { \\top } \\right) ^ { \\top } \\right) , } \\\\ { \\mathbf { Y } } & { = } & { \\mathbf { Z } + \\mathbb { A } \\mathbb { f } \\mathbb { f } \\left( \\mathbf { C } \\mathbb { G } \\mathbb { E } \\mathbb { L } \\mathbb { U } \\left( \\mathbf { B } \\mathbb { A } \\mathbb { f } \\mathbb { f } \\left( \\mathbf { Z } \\right) \\right) \\right) , } \\end{array}\n$$",
335
+ "text_format": "latex",
336
+ "bbox": [
337
+ 354,
338
+ 272,
339
+ 642,
340
+ 320
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "81 where A, $\\mathbf { B }$ and $\\mathbf { C }$ are the main learnable weight matrices of the layer. The dimensions of the \n82 parameter matrix $\\mathbf { A }$ are $N ^ { 2 } \\times N ^ { 2 }$ , i.e., this sublayer exchanges information across all the locations, \n83 while the feedforward sublayer works per location. As a consequence, the intermediate activation \n84 matrix $\\mathbf { Z }$ has the same dimensions as the matrices $\\mathbf { X }$ and $\\mathbf { Y }$ . Finally, the weight matrices $\\mathbf { B }$ and $\\mathbf { C }$ \n85 have the same dimensions as in a Transformer layer, which are $4 d { \\times } d$ and $d \\times 4 d$ , respectively. \n86 The main difference compared to a Transformer layer is that we replace the self-attention by the \n87 linear interaction defined in Eq. (2). While self-attention computes a convex combination of other \n88 features with coefficients that are data dependent, the linear interaction layer in Eq. (2) computes \n89 a general linear combination using learned coefficients that are not data dependent. As compared \n90 to a convolutional layers which have local support and share weights across space, our linear \n91 patch interaction layer offers a global support and does not share weights, moreover it is applied \n92 independently across channels. \n93 Relationship to the Vision Transformer. Our model can be regarded as a drastic simplification of \n94 the ViT model by Dosovitskiy et al. [16]. We depart from this model as follows: ",
347
+ "bbox": [
348
+ 145,
349
+ 325,
350
+ 825,
351
+ 396
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "",
358
+ "bbox": [
359
+ 145,
360
+ 401,
361
+ 825,
362
+ 500
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "",
369
+ "bbox": [
370
+ 156,
371
+ 506,
372
+ 823,
373
+ 534
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "• We do not include any self-attention block. Instead we have a linear patch interaction layer without any non-linearity. ",
380
+ "bbox": [
381
+ 165,
382
+ 545,
383
+ 821,
384
+ 574
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "• We do not have the extra “class” token that is typically used in these models to aggregate information via attention. Instead, we simply use average pooling. We do, however, also consider a specific aggregation layer as a variant, which we describe in the next paragraph. ",
391
+ "bbox": [
392
+ 161,
393
+ 580,
394
+ 823,
395
+ 623
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "• We do not include any form of positional embedding: the linear communication module between patches implicitly takes into account the patch position. ",
402
+ "bbox": [
403
+ 156,
404
+ 628,
405
+ 823,
406
+ 659
407
+ ],
408
+ "page_idx": 2
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "• Instead of pre-LayerNormalization, we use a simple learnable affine transform, thus avoiding any form of batch and channel-wise statistics. ",
413
+ "bbox": [
414
+ 160,
415
+ 664,
416
+ 823,
417
+ 691
418
+ ],
419
+ "page_idx": 2
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "104 Class-MLP. As an alternative to average pooling, we also experimented with an adaptation of the \n105 class-attention introduced in CaiT [57]. In CaiT, this consists of two layers that have the same \n106 structure as the transformer, but in which only the class token is updated based on the frozen patch \n107 embeddings. We translate this method to our architecture, except that, after aggregating the patches \n108 with a linear layer, we replace the attention-based interaction between the class and patch embeddings \n109 by simple linear layers, still keeping the patch embeddings frozen. This increases the performance, at \n110 the expense of adding some parameters and computational cost. We refer to this pooling variant as \n111 “class-MLP”, since the purpose of these few layers is to replace average pooling. ",
424
+ "bbox": [
425
+ 140,
426
+ 704,
427
+ 825,
428
+ 815
429
+ ],
430
+ "page_idx": 2
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "112 3 Experiments ",
435
+ "text_level": 1,
436
+ "bbox": [
437
+ 142,
438
+ 837,
439
+ 312,
440
+ 853
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "113 In this section, we present experimental results for our ResMLP architecture for image classification. \n114 We also study the impact of the different components in a series of ablations. We consider three \n115 training paradigms in our experiments: \n6 • Supervised learning: We train ResMLP from labeled images with a softmax classifier and cross \n7 entropy loss. This paradigm is the main focus of our work. ",
447
+ "bbox": [
448
+ 142,
449
+ 869,
450
+ 825,
451
+ 911
452
+ ],
453
+ "page_idx": 2
454
+ },
455
+ {
456
+ "type": "table",
457
+ "img_path": "images/5547c4961eb7459328dd7f1323c02706b14e376c1aeb1e75d21fca9fa9ba5a2c.jpg",
458
+ "table_caption": [
459
+ "Table 1: Comparison between architectures on ImageNet classification. We compare different architectures based on convolutional networks, Transformers and feedforward networks with comparable FLOPs and number of parameters. We report Top-1 accuracy on the validation set of ImageNet-1k with different measure of complexity: throughput, FLOPs, number of parameters and peak memory usage. All the models use $2 2 4 \\times 2 2 4$ images as input. By default the Transformers and feedforward networks uses $1 4 \\times 1 4$ patches of size $1 6 \\times 1 6$ , see Table 3 for the detailed specification of our main models. The throughput is measured on a single V100-32GB GPU with batch size fixed to 32. For reference, we include the state of the art with ImageNet training only. "
460
+ ],
461
+ "table_footnote": [],
462
+ "table_body": "<table><tr><td></td><td>Arch.</td><td>#params (x106)</td><td>throughput (im/s)</td><td>FLOPS (x109)</td><td>Peak Mem (MB)</td><td>Top-1 Acc.</td></tr><tr><td rowspan=\"2\">State of the art</td><td>CaiT-M48↑448Y [57]</td><td>356</td><td>5.4</td><td>329.6</td><td>5477.8</td><td>86.5</td></tr><tr><td>NfNet-F6 SAM [5]</td><td>438</td><td>16.0</td><td>377.3</td><td>5519.3</td><td>86.5</td></tr><tr><td rowspan=\"6\">Convolutional networks</td><td>EfficientNet-B3 [53]</td><td>12</td><td>661.8</td><td>1.8</td><td>1174.0</td><td>81.1</td></tr><tr><td>EfficientNet-B4 [53]</td><td>19</td><td>349.4</td><td>4.2</td><td>1898.9</td><td>82.6</td></tr><tr><td>EfficientNet-B5 [53]</td><td>30</td><td>169.1</td><td>9.9</td><td>2734.9</td><td>83.3</td></tr><tr><td>RegNetY-4GF[47]</td><td>21</td><td>861.0</td><td>4.0</td><td>568.4</td><td>80.0</td></tr><tr><td>RegNetY-8GF[47]</td><td>39</td><td>534.4</td><td>8.0</td><td>841.6</td><td>81.7</td></tr><tr><td>RegNetY-16GF[47]</td><td>84</td><td>334.7</td><td>16.0</td><td>1329.6</td><td>82.9</td></tr><tr><td rowspan=\"3\">Transformer networks</td><td>DeiT-S [56]</td><td>22</td><td>940.4</td><td>4.6</td><td>217.2</td><td>79.8</td></tr><tr><td>DeiT-B [56]</td><td>86</td><td>292.3</td><td>17.5</td><td>573.7</td><td>81.8</td></tr><tr><td>CaiT-XS24 [57]</td><td>27</td><td>447.6</td><td>5.4</td><td>245.5</td><td>81.8</td></tr><tr><td rowspan=\"3\">Feedforward networks</td><td>ResMLP-S12</td><td>15</td><td>1415.1</td><td>3.0</td><td>179.5</td><td>76.6</td></tr><tr><td>ResMLP-S24</td><td>30</td><td>715.4</td><td>6.0</td><td>235.3</td><td>79.4</td></tr><tr><td>ResMLP-B24</td><td>116</td><td>231.3</td><td>23.0</td><td>663.0</td><td>81.0</td></tr></table>",
463
+ "bbox": [
464
+ 191,
465
+ 189,
466
+ 810,
467
+ 409
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "",
474
+ "bbox": [
475
+ 151,
476
+ 431,
477
+ 825,
478
+ 460
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "• Self-supervised learning: We train the ResMLP architecture without labels. We consider the DINO method of Caron et al. [6] that trains a network by distilling knowledge from previous instances of the same network, leading to a form of self-distillation without labels. ",
485
+ "bbox": [
486
+ 169,
487
+ 464,
488
+ 823,
489
+ 506
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "• Knowledge distillation: We employ the knowledge distillation procedure proposed by Touvron et al. [56] to guide the supervised training of ResMLP with a convnet. ",
496
+ "bbox": [
497
+ 169,
498
+ 510,
499
+ 825,
500
+ 539
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "123 3.1 Experimental setting ",
507
+ "text_level": 1,
508
+ "bbox": [
509
+ 147,
510
+ 554,
511
+ 359,
512
+ 569
513
+ ],
514
+ "page_idx": 3
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Datasets. We train our models on the ImageNet-1k dataset [50], that contains 1.2M images evenly spread over 1,000 object categories. In the absence of an available test set for this benchmark, we follow the standard practice in the community by reporting performance on the validation set. This is not ideal since the validation set was originally designed to select hyper-parameters. Comparing methods on this set may not be conclusive enough because an improvement in performance may not be caused by better modeling, but by a better selection of hyper-parameters. To mitigate this risk, we report additional results in transfer learning and on two alternative versions of ImageNet that have been built to have distinct validation and test sets, namely the ImageNet-real [3] and ImageNet-v2 [49] datasets. We also report a few data-points when training on ImageNet-21k. Our hyper-parameters are mostly adopted from Touvron et al. [56, 57]. ",
519
+ "bbox": [
520
+ 171,
521
+ 580,
522
+ 825,
523
+ 718
524
+ ],
525
+ "page_idx": 3
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "134 Hyper-parameter settings. In the case of supervised learning, we train our network with the Lamb \n135 optimizer [63] with a learning rate of $5 \\times 1 0 ^ { - 3 }$ and weight decay 0.2. We initialize the LayerScale \n136 parameters as a function of the depth by following CaiT [57]. The rest of the hyper-parameters follow \n137 the default setting used in DeiT [56]. For the knowledge distillation paradigm, we use the same \n138 RegNety-16GF [48] as in DeiT with the same training schedule. The majority of our models take two \n139 days to train on eight V100-32GB GPUs. ",
530
+ "bbox": [
531
+ 143,
532
+ 724,
533
+ 825,
534
+ 808
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "3.2 Main Results ",
541
+ "text_level": 1,
542
+ "bbox": [
543
+ 174,
544
+ 823,
545
+ 305,
546
+ 838
547
+ ],
548
+ "page_idx": 3
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "In this section, we compare our architecture to models with more conventional network architectures of comparable size and throughput on ImageNet. ",
553
+ "bbox": [
554
+ 173,
555
+ 849,
556
+ 821,
557
+ 877
558
+ ],
559
+ "page_idx": 3
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "43 Comparison with Transformers and convnets in a supervised setting. In Table 1, we compare \n44 ResMLP with different convolutional and Transformer architectures. For completeness, we report \n145 the best-published numbers obtained with a model trained on ImageNet alone. As expected, in \n146 terms of the trade-off between accuracy, FLOPs, and throughput, ResMLP is not as efficient as \n147 convolutional networks or Transformers. However, their accuracy is encouraging: we compare them \n148 with architectures that have benefited from years of research and careful optimization towards these \n149 trade-offs. Overall, our results suggest that the structural constraints imposed by the layer design do \n150 not have a drastic influence on performance, especially when training models with enough data and \n151 recent advances in training and regularization. \n152 Self-supervised pre-training of ResMLP. We explore the possibility of training ResMLP using \n153 DINO, a recent self-supervised learning approach [6]. We pre-train ResMLP-S12 models with this \n154 approach during 300 epochs. We report our results in Table 2. As expected given the supervised \n155 classification results, the accuracies obtained with ResMLP are less good than with ViT. Nevertheless, \n156 the performance is surprisingly high for a pure MLP architecture and competitive with Convnet in \n157 knn evaluation. We hope that these result will serve as a baseline for future work. \n158 After self-supervised pre-training, we also fine-tune the network on ImageNet using ground truth \n159 labels. This pre-training substantially improves the accuracy, when comparing with the same model \n160 ResMLP-S24 solely trained with labels (top-1 acc. of $7 9 . 9 \\%$ on ImageNet-val instead of $7 9 . 4 \\%$ for \n161 ResMLP-S24, with the same total number of epochs). Results on ImageNet-v2 suggest that it reduces \n162 overfitting $6 8 . 6 \\%$ on ImageNet-v2, vs $6 7 . 9 \\%$ with supervised training only). \n163 Improving models with knowledge distillation. We study our model when training following the \n164 knowledge distillation approach of Touvron et al. [56]. In their work, the authors show the impact of \n165 training a ViT model by distilling it from a RegNet. In this experiment, we explore if ResMLP also \n166 benefits from this procedure and summarize our results in Table 3 (Blocks “Baseline models” and \n167 “Training”). We observe that similar to DeiT models, ResMLP greatly benefits from distilling from a \n168 convnet. This result concurs with the observations made by d’Ascoli et al. [13], who used convnets \n169 to initialize feedforward networks. Even though our setting differs from theirs in scale, the problem \n170 of overfitting for feedforward networks is still present on ImageNet. The additional regularization \n171 obtained from the distillation is a possible explanation for this improvement. \n172 Visualisation. Because they are linear, our patch interaction layers from Eq. (2) are easily inter \n173 pretable. In Figure 2 we visualise the rows of the interaction matrices A as $N \\times N$ images, for our \n174 ResMLP-S24 model. The early layers show convolution-like patterns: the learned weights resemble \n175 shifted versions of each other and have local support. Interestingly, in many layers, the support also \n176 extends along both axes, most prominently seen in layer seven. The last seven layers of the network \n177 are different: they consist of a spike for the patch itself and a diffuse response across other patches \n178 with larger or smaller magnitude; see layer 20. ",
564
+ "bbox": [
565
+ 151,
566
+ 883,
567
+ 821,
568
+ 911
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "table",
574
+ "img_path": "images/f657376183d67abd0c53ac14f61adaeda2e5f5bb76b29b9409547907c7902b20.jpg",
575
+ "table_caption": [
576
+ "Table 2: Self-supervised learning with DINO [6]. Classification accuracy on ImageNet-1k val. ResMLPs evaluated with linear and $k$ -NN evaluation on ImageNet are comparable to convnets but inferior to ViT. "
577
+ ],
578
+ "table_footnote": [],
579
+ "table_body": "<table><tr><td>Models</td><td>ResNet-50</td><td>ViT-S/16</td><td>ViT-S/8</td><td>ViT-B/16</td><td>ResMLP-S12</td><td>ResMLP-S24</td></tr><tr><td>Params. (×106)</td><td>25</td><td>22</td><td>22</td><td>87</td><td>15</td><td>30</td></tr><tr><td>FLOPS (×109)</td><td>4.1</td><td>4.6</td><td>22.4</td><td>17.5</td><td>3.0</td><td>6.0</td></tr><tr><td>Linear</td><td>75.3</td><td>77.0</td><td>79.7</td><td>78.2</td><td>67.5</td><td>72.8</td></tr><tr><td>k-NN</td><td>67.5</td><td>74.5</td><td>78.3</td><td>76.1</td><td>62.6</td><td>69.4</td></tr></table>",
580
+ "bbox": [
581
+ 215,
582
+ 126,
583
+ 779,
584
+ 207
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "",
591
+ "bbox": [
592
+ 140,
593
+ 243,
594
+ 825,
595
+ 340
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "",
602
+ "bbox": [
603
+ 142,
604
+ 347,
605
+ 825,
606
+ 429
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "",
613
+ "bbox": [
614
+ 142,
615
+ 436,
616
+ 825,
617
+ 506
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "",
624
+ "bbox": [
625
+ 140,
626
+ 512,
627
+ 825,
628
+ 637
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "",
635
+ "bbox": [
636
+ 142,
637
+ 643,
638
+ 825,
639
+ 741
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "179 3.3 Visualization & analysis of the linear interaction between patches ",
646
+ "text_level": 1,
647
+ "bbox": [
648
+ 145,
649
+ 770,
650
+ 665,
651
+ 785
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "180 Measuring sparsity of the weights. The visualizations described above suggest that the linear \n181 communication layers are sparse. We analyze this quantitatively in more detail in Figure 3. We \n182 measure the sparsity of the matrix A, and compare it to the sparsity of $\\mathbf { B }$ and $\\mathbf { C }$ from the per-patch \n183 MLP. Since there are no exact zeros, we measure the rate of components whose absolute value is \n184 lower than $5 \\%$ of the maximum value. Note, discarding the small values is analogous to the case \n185 where we normalize the matrix by its maximum and use a finite-precision representation of weights. \n186 For instance, with a 4-bits representation of weight, one would typically round to zero all weights \n187 whose absolute value is below $6 . 2 5 \\%$ of the maximum value. \n188 The measurements in Figure 3 show that all three matrices are sparse, with the layers implementing \n189 the patch communication being significantly more so. This suggests that they may be compatible with \n190 parameter pruning, or better, with modern quantization techniques that induce sparsity at training \n191 time, such as Quant-Noise [20] and DiffQ [19]. The sparsity structure, in particular in earlier layers, \n192 see Figure. 2, hints that we could implement the patch interaction linear layer with a convolution. We \n193 provide some results for convolutional variants in our ablation study. Further research on network \n194 compression is beyond the scope of this paper, yet we believe it worth investigating in the future. \n195 Communication across patches if we remove the linear interaction layer (linear none), we \n196 obtain substantially lower accuracy ( $- 2 0 \\%$ top-1 acc.) for a “bag-of-patches” approach. We have tried \n197 several alternatives for the linear patch interaction layer, which are presented in Table 3 (block “patch \n198 communication”). Amongst them, using the same MLP structure as for patch processing (linear \n199 MLP), which we analyze in more details in the supplementary material. The simpler choice of a \n200 single linear square layer led to a better accuracy/performance trade-off – considering that the MLP \n201 variant requires compute halfway between ResMLP-S12 and ResMLP-S24 – and requires fewer \n202 parameters than a residual MLP block. \n203 The visualization in Figure 2 indicates that many linear interaction layers look like convolutions. In \n204 our ablation, we replaced the linear layer with different types of $3 \\times 3$ convolutions. The depth-wise \n205 convolution does not implement interaction across channels – as our linear patch communication \n206 layer – and yields similar performance at a comparable number of parameters and FLOPs. While \n207 full $3 \\times 3$ convolutions yield best results, they come with roughly double the number of parameters ",
658
+ "bbox": [
659
+ 140,
660
+ 800,
661
+ 825,
662
+ 911
663
+ ],
664
+ "page_idx": 4
665
+ },
666
+ {
667
+ "type": "image",
668
+ "img_path": "images/1a5c45d9a0efc551807e3e5b32b664add8eacee830756aaeaa0f33c734b6d1d1.jpg",
669
+ "image_caption": [
670
+ "Figure 2: Visualisation of the linear layers in ResMLP-S24. For each layer we visualise the rows of the matrix A as a set of $1 4 \\times 1 4$ pixel images, for sake of space we only show the rows corresponding to the $6 \\times 6$ central patches. We observe patterns in the linear layers that share similarities with convolutions. In appendix B we provide comparable visualizations for all layers of a ResMLP-S12 model. "
671
+ ],
672
+ "image_footnote": [],
673
+ "bbox": [
674
+ 178,
675
+ 87,
676
+ 828,
677
+ 222
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "image",
683
+ "img_path": "images/b5f35749759ac14eaf9aeb24d25e43c14d1a40bfe0b0669024fbc8482b3a3fe3.jpg",
684
+ "image_caption": [
685
+ "Figure 3: Sparsity of linear interaction layers. For each layer (linear and MLP), we show the rate of components whose absolute value is lower than $5 \\%$ of the maximum. Linear interaction layers are sparser than the matrices involved in the per-patch MLP. "
686
+ ],
687
+ "image_footnote": [],
688
+ "bbox": [
689
+ 174,
690
+ 295,
691
+ 482,
692
+ 522
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "image",
698
+ "img_path": "images/60d9f8bbf12c5cd094917c6d04868c6e5af73178211cc8057c5716ff70c22b03.jpg",
699
+ "image_caption": [
700
+ "Figure 4: Top-1 accuracy on ImageNet-V2 vs. ImageNet-val. ResMLPs tend to overfit slightly more under identical training method. This is partially alleviated with by introducing more regularization (more data or distillation, see e.g., ResMLP-B24/8-distil). "
701
+ ],
702
+ "image_footnote": [],
703
+ "bbox": [
704
+ 509,
705
+ 296,
706
+ 818,
707
+ 522
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "",
714
+ "bbox": [
715
+ 140,
716
+ 621,
717
+ 825,
718
+ 719
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "",
725
+ "bbox": [
726
+ 140,
727
+ 724,
728
+ 825,
729
+ 835
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "",
736
+ "bbox": [
737
+ 140,
738
+ 842,
739
+ 825,
740
+ 911
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "table",
746
+ "img_path": "images/3e8eacebc0759fdcfac5bca381db4e6c1b9dc1801a92d9aa4d2397887575e3b4.jpg",
747
+ "table_caption": [
748
+ "Table 3: Ablation. Our default configurations are presented in the three first rows. By default we train during 400 epochs. The “old-fashioned” is similar to what was employed for ResNet [23]: SGD, 90-epochs waterfall schedule, same augmentations up to variations due to library used. "
749
+ ],
750
+ "table_footnote": [],
751
+ "table_body": "<table><tr><td rowspan=\"2\">Ablation</td><td rowspan=\"2\">Model</td><td rowspan=\"2\">Patch size</td><td rowspan=\"2\">Params ×106</td><td rowspan=\"2\">FLOPs ×109</td><td rowspan=\"2\">Variant</td><td colspan=\"3\">top-1 acc.on ImageNet</td></tr><tr><td>val</td><td>real[3]</td><td>v2 [49]</td></tr><tr><td rowspan=\"3\">Baseline models</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>12 layers, working dimension 384</td><td>76.6</td><td>83.3</td><td>64.4</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td>24 layers, working dimension 384</td><td>79.4</td><td>85.3</td><td>67.9</td></tr><tr><td>ResMLP-B24</td><td>16</td><td>115.7</td><td>23.0</td><td>24 layers, working dimension 768</td><td>81.0</td><td>86.1</td><td>69.0</td></tr><tr><td>Normalization</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>Aff →Layernorm</td><td>77.7</td><td>84.1</td><td>65.7</td></tr><tr><td>Pooling</td><td>ResMLP-S12</td><td>16</td><td>17.7</td><td>3.0</td><td>average pooling →Class-MLP</td><td>77.5</td><td>84.0</td><td>66.1</td></tr><tr><td rowspan=\"5\">Patch communication</td><td>ResMLP-S12</td><td>16</td><td>14.9</td><td>2.8</td><td>linear→ none</td><td>56.5</td><td>63.4</td><td>43.1</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>18.6</td><td>4.3</td><td>linear→MLP</td><td>77.3</td><td>84.0</td><td>65.7</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>30.8</td><td>6.0</td><td>linear → conv 3x3</td><td>77.3</td><td>84.4</td><td>65.7</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>14.9</td><td>2.8</td><td>linear →conv 3x3 depth-wise</td><td>76.3</td><td>83.4</td><td>64.6</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>16.7</td><td>3.2</td><td>linear→conv 3x3 depth-separable</td><td>77.0</td><td>84.0</td><td>65.5</td></tr><tr><td rowspan=\"3\">Patch size</td><td>ResMLP-S12/14</td><td>14</td><td>15.6</td><td>4.0</td><td>patch size 16×16-→14×14</td><td>76.9</td><td>83.7</td><td>65.0</td></tr><tr><td>ResMLP-S12/8</td><td>8</td><td>22.1</td><td>14.0</td><td>patch size 16×16-8×8</td><td>79.1</td><td>85.2</td><td>67.2</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td> patch size 16×16-&gt;8 ×8</td><td>81.0</td><td>85.7</td><td>68.6</td></tr><tr><td rowspan=\"7\">Training</td><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>old-fashioned (90 epochs)</td><td>69.2</td><td>76.0</td><td>56.1</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>pre-trained SSL (DINO)</td><td>76.5</td><td>83.6</td><td>64.5</td></tr><tr><td>ResMLP-S12</td><td>16</td><td>15.4</td><td>3.0</td><td>distillation</td><td>77.8</td><td>84.6</td><td>66.0</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td> pre-trained SSL (DINO)</td><td>79.9</td><td>85.9</td><td>68.6</td></tr><tr><td>ResMLP-S24</td><td>16</td><td>30.0</td><td>6.0</td><td>distillation</td><td>80.8</td><td>86.6</td><td>69.8</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td>distillation</td><td>83.6</td><td>88.4</td><td>73.4</td></tr><tr><td>ResMLP-B24/8</td><td>8</td><td>129.1</td><td>100.2</td><td>pre-trained ImageNet-21k (60 epochs)</td><td>84.4</td><td>88.9</td><td>74.2</td></tr></table>",
752
+ "bbox": [
753
+ 174,
754
+ 88,
755
+ 830,
756
+ 347
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "and FLOPs. Interestingly, the depth-separable convolutions combine accuracy close to that of full $3 \\times 3$ convolutions with a number of parameters and FLOPs comparable to our linear layer. This suggests that convolutions on low-resolution feature maps at all layers is an interesting alternative to the common pyramidal design of convnets, where early layers operate at higher resolution and smaller feature dimension. ",
763
+ "bbox": [
764
+ 150,
765
+ 425,
766
+ 825,
767
+ 494
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "3.4 Ablation studies ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 174,
777
+ 512,
778
+ 325,
779
+ 526
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Table 3 reports the ablation study of our base network and a summary of our preliminary exploratory studies. We discuss the ablation below and give more detail about early experiments in Appendix A. ",
786
+ "bbox": [
787
+ 163,
788
+ 539,
789
+ 825,
790
+ 566
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Control of overfitting. Since MLPs are subject to overfitting, we show in Fig. 4 a control experiment to probe for problems with generalization. We explicitly analyze the differential of performance between the ImageNet-val and the distinct ImageNet-V2 test set. The relative offsets between curves reflect to which extent models are overfitted to ImageNet-val w.r.t. hyper-parameter selection. The degree of overfitting of our MLP-based model is overall neutral or slightly higher to that of other transformer-based architectures or convnets with same training procedure. ",
797
+ "bbox": [
798
+ 173,
799
+ 573,
800
+ 825,
801
+ 656
802
+ ],
803
+ "page_idx": 6
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Normalization & activation. Our network configuration does not contain any batch normalizations. Instead, we use the affine per-channel transform Aff. This is akin to Layer Normalization [1], typically used in transformers, except that we avoid to collect any sort of statistics, since we do no need it it for convergence. In preliminary experiments with pre-norm and post-norm [24], we observed that both choices converged. Pre-normalization in conjunction with Batch Normalization could provide an accuracy gain in some cases, see Appendix A. ",
808
+ "bbox": [
809
+ 173,
810
+ 662,
811
+ 825,
812
+ 746
813
+ ],
814
+ "page_idx": 6
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "We choose to use a GELU [25] function. In Appendix A we also analyze the activation function: ReLU [22] also gives a good performance, but it was a bit more unstable in some settings. We did not manage to get good results with SiLU [25] and HardSwish [28]. ",
819
+ "bbox": [
820
+ 166,
821
+ 752,
822
+ 820,
823
+ 795
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Pooling. Replacing average pooling with Class-MLP, see Section 2, brings a significant gain for a negligible computational cost. We do not include it by default to keep our models more simple. ",
830
+ "bbox": [
831
+ 171,
832
+ 800,
833
+ 823,
834
+ 829
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Patch size. Smaller patches significantly increase the performance, but also increase the number of flops (see Block \"Patch size\" in Table 3). Smaller patches benefit more to larger models, but only with an improved optimization scheme involving more regularization (distillation) or more data. ",
841
+ "bbox": [
842
+ 174,
843
+ 835,
844
+ 825,
845
+ 877
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "6 Training. Consider the Block “Training’ in Table 3. ResMLP significantly benefits from modern training procedures such as those used in DeiT. For instance, the DeiT training procedure improves ",
852
+ "bbox": [
853
+ 156,
854
+ 882,
855
+ 823,
856
+ 911
857
+ ],
858
+ "page_idx": 6
859
+ },
860
+ {
861
+ "type": "table",
862
+ "img_path": "images/e675f82c78136c96b1fa1ac4c5b282ce65306d46ad9fd6f971192f3261d0cacb.jpg",
863
+ "table_caption": [],
864
+ "table_footnote": [
865
+ "Table 4: Evaluation on transfer learning. Classification accuracy (top-1) of models trained on ImageNet-1k for transfer to datasets covering different domains. The ResMLP architecture takes $2 2 4 \\times 2 2 4$ images during training and transfer, while ViTs and EfficientNet-B7 work with higher resolutions, see “Res.” column. "
866
+ ],
867
+ "table_body": "<table><tr><td>Architecture</td><td>FLOPs</td><td>Res.</td><td>CIFAR10</td><td>CIFAR100</td><td>Flowers102</td><td>Cars</td><td>iNat18</td><td>iNat19</td></tr><tr><td>EfficientNet-B7 [53]</td><td>37.0B</td><td>600</td><td>98.9</td><td>91.7</td><td>98.8</td><td>94.7</td><td>1</td><td>1</td></tr><tr><td>ViT-B/16 [16]</td><td>55.5B</td><td>384</td><td>98.1</td><td>87.1</td><td>89.5</td><td>1</td><td>1</td><td>1</td></tr><tr><td>ViT-L/16 [16]</td><td>190.7B</td><td>384</td><td>97.9</td><td>86.4</td><td>89.7</td><td></td><td></td><td></td></tr><tr><td>Deit-B/16 [56]</td><td>17.5B</td><td>224</td><td>99.1</td><td>90.8</td><td>98.4</td><td>92.1</td><td>73.2</td><td>77.7</td></tr><tr><td>ResNet50 [58]</td><td>4.1B</td><td>224</td><td>1</td><td>1</td><td>96.2</td><td>90.0</td><td>68.4</td><td>73.7</td></tr><tr><td>Grafit/ResNet50 [58]</td><td>4.1B</td><td>224</td><td>1</td><td>1</td><td>97.6</td><td>92.7</td><td>68.5</td><td>74.6</td></tr><tr><td>ResMLP-S12</td><td>3.0B</td><td>224</td><td>98.1</td><td>87.0</td><td>97.4</td><td>84.6</td><td>60.2</td><td>71.0</td></tr><tr><td>ResMLP-S24</td><td>6.0B</td><td>224</td><td>98.7</td><td>89.5</td><td>97.9</td><td>89.5</td><td>64.3</td><td>72.5</td></tr></table>",
868
+ "bbox": [
869
+ 174,
870
+ 88,
871
+ 821,
872
+ 213
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "238 the performance of ResMLP-S12 by $7 . 4 \\%$ compared to the training employed for ResNet $[ 2 3 ]$ . \n239 This is in line with recent work pointing out the importance of the training strategy over the model \n240 choice [2, 48]. Pre-training on more data and distillation also improve the performance of ResMLP, \n241 especially for the bigger models, e.g., distillation improves the accuracy of ResMLP-B24/8 by $2 . 6 \\%$ . ",
879
+ "bbox": [
880
+ 143,
881
+ 287,
882
+ 825,
883
+ 343
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "Other analysis. In our early exploration, we evaluated several alternative design choices. As in transformers, we could use positional embeddings mixed with the input patches. In our experiments we did not see any benefit from using these features, see Appendix A. This observation suggests that our linear patch interaction layer provides sufficient spatial communication, and referencing absolute positions obviates the need for any form of positional encoding. ",
890
+ "bbox": [
891
+ 173,
892
+ 349,
893
+ 825,
894
+ 420
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "3.5 Transfer learning ",
901
+ "text_level": 1,
902
+ "bbox": [
903
+ 168,
904
+ 435,
905
+ 334,
906
+ 450
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "We evaluate the quality of features obtained from a ResMLP architecture when transferring them to other domains. The goal is to assess if the features generated from a feedforward network are more prone to overfitting on the training data distribution. We adopt the typical setting where we pre-train a model on ImageNet-1k and fine-tune it on the training set associated with a specific domain. We report the performance with different architectures on various image benchmarks in Table 4, namely CIFAR-10 and CIFAR-100 [34], Flowers-102 [42], Stanford Cars [33] and iNaturalist [27]. We refer the reader to the corresponding references for a more detailed description of the datasets. We observe that the performance of our ResMLP is competitive with the existing architectures, showing that pretraining feedforward models with enough data and regularization via data augmentation greatly reduces their tendency to overfit on the original distribution. Interestingly, this regularization also prevents them from overfitting on the training set of smaller dataset during the fine-tuning stage. ",
913
+ "bbox": [
914
+ 173,
915
+ 460,
916
+ 825,
917
+ 613
918
+ ],
919
+ "page_idx": 7
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "3.6 Machine translation ",
924
+ "text_level": 1,
925
+ "bbox": [
926
+ 166,
927
+ 630,
928
+ 352,
929
+ 643
930
+ ],
931
+ "page_idx": 7
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "We also evaluate the ResMLP transpose-mechanism to replace the self-attention in the encoder and decoder of a neural machine translation system. We train models on the WMT 2014 English-German and English-French tasks, following the setup from Ott et al. [45]. We consider models of dimension 512, with a hidden MLP size of 2048, and with 6 or 12 layers. Note that the current state of the art employs much larger models: our 6 layers model is more comparable to the base transformer model from Vaswani et al. [60], which serves as a baseline, along with pre-transformer architectures such as Recurrent and convolutional neural networks. We use Adagrad with learning rate 0.2, $3 2 \\mathrm { k }$ steps of linear warmup, label smoothing 0.1, dropout rate 0.15 for en-de and 0.1 for en-fr. We initialize the LayerScale parameter to 0.2. We generate translations with the beam search algorithm, with a beam of size 4. As shown in Table 5, the results are at least on par with other architectures: ",
936
+ "bbox": [
937
+ 173,
938
+ 655,
939
+ 825,
940
+ 792
941
+ ],
942
+ "page_idx": 7
943
+ },
944
+ {
945
+ "type": "table",
946
+ "img_path": "images/7c33884cad304759188150131d5a467acbad94c727a430b91de45bcf9cec553f.jpg",
947
+ "table_caption": [
948
+ "Table 5: Machine translation on WMT 2014 translation tasks. We report tokenized BLEU on newstest2014. "
949
+ ],
950
+ "table_footnote": [
951
+ "2Interestingly, if trained with this “old-fashion” setting, ResMLP-S12 outperforms AlexNet [35] by a margin. "
952
+ ],
953
+ "table_body": "<table><tr><td>Models</td><td>GNMT[61]</td><td></td><td>ConvS2S [21]Transf. (base)[60]</td><td>ResMLP-6</td><td>ResMLP-12</td></tr><tr><td>EN-DE</td><td>24.6</td><td>25.2</td><td>27.3</td><td>26.4</td><td>26.8</td></tr><tr><td>EN-FR</td><td>39.9</td><td>40.5</td><td>38.1</td><td>40.3</td><td>40.6</td></tr></table>",
954
+ "bbox": [
955
+ 215,
956
+ 829,
957
+ 787,
958
+ 881
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "We review the research on applying Fully Connected Network (FCN) for computer vision problems as well as other architectures that shares common modules with our model. ",
965
+ "bbox": [
966
+ 165,
967
+ 121,
968
+ 821,
969
+ 148
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Fully-connected network for images. Many studies have shown that FCNs are competitive with convnets for the tasks of digit recognition [11, 51], keyword spotting [7] and handwritting recognition [4]. Several works [37, 40, 59] have questioned if FCNs are also competitive on natural image datasets, such as CIFAR-10 [34]. More recently, d’Ascoli et al. [13] have shown that a FCN initialized with the weights of a pretrained convnet achieves performance that are superior than the original convnet. Neyshabur [41] further extend this line of work by achieving competitive performance by training an FCN from scratch but with a regularizer that constrains the models to be close to a convnet. These studies have been conducted on small scale datasets with the purpose of studying the impact of architectures on generalization in terms of sample complexity [18] and energy landscape [31]. In our work, we show that, in the larger scale setting of ImageNet, FCNs can attain surprising accuracy without any constraint or initialization inspired by convnets. ",
976
+ "bbox": [
977
+ 173,
978
+ 155,
979
+ 825,
980
+ 308
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Finally, the application of FCN networks in computer vision have also emerged in the study of the properties of networks with infinite width [43], or for inverse scattering problems [32]. More interestingly, the Tensorizing Network [44] is an approximation of very large FCN that shares similarity with our model, in that they intend to remove prior by approximating even more general tensor operations, i.e., not arbitrarily marginalized along some pre-defined sharing dimensions. However, their method is designed to compress the MLP layers of a standard convnets. ",
987
+ "bbox": [
988
+ 173,
989
+ 314,
990
+ 825,
991
+ 397
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Other architectures with similar components. Our FCN architecture shares several components with other architectures, such as convnets [35, 36] or transformers [60]. A fully connected layer is equivalent to a convolution layer with a $1 \\times 1$ receptive field, and several work have explored convnet architectures with small receptive fields. For instance, the VGG model [52] uses $3 \\times 3$ convolutions, and later, other architectures such as the ResNext [62] or the Xception [10] mix $1 \\times 1$ and $3 \\times 3$ convolutions. In contrast to convnets, in our model interaction between patches is obtained via a linear layer that is shared across channels, and that relies on absolute rather than relative positions. ",
998
+ "bbox": [
999
+ 173,
1000
+ 404,
1001
+ 825,
1002
+ 500
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "More recently, transformers have emerged as a promising architecture for computer vision [9, 17, 46, 56, 66]. In particular, our architecture takes inspiration from the structure used in the Vision Transformer (ViT) [17], and as consequence, shares many components. Our model takes a set of non-overlapping patches as input and passes them through a series of MLP layers that share the same structure as ViT, replacing the self-attention layer with a linear patch interaction layer. Both layers have a global field-of-view, unlike convolutional layers. Whereas in self-attention the weights to aggregate information from other patches are data dependent through queries and keys, in ResMLP the weights are not data dependent and only based on absolute positions of patches. In our implementation we follow the improvements of DeiT [56] to train vision transformers, use the skip-connections from ResNets [23] with pre-normalization of the layers [8, 24]. ",
1009
+ "bbox": [
1010
+ 169,
1011
+ 507,
1012
+ 825,
1013
+ 645
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "307 Finally, our work questions the importance of self-attention in existing architectures. Similar ob \n308 servations have been made in natural language processing. Notably, Synthesizer [54] shows that \n309 dot-product self-attention can be replaced by a feedforward network, with competitive performance \n310 on sentence representation benchmarks. As opposed to our work, Synthesizer does use data dependent \n311 weights, but in contrast to transformers the weights are determined from the queries only. ",
1020
+ "bbox": [
1021
+ 140,
1022
+ 651,
1023
+ 825,
1024
+ 720
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "312 5 Conclusion ",
1031
+ "text_level": 1,
1032
+ "bbox": [
1033
+ 150,
1034
+ 741,
1035
+ 299,
1036
+ 757
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "In this paper we have shown that a simple residual architecture, whose residual blocks consist of a one-hidden layer feed-forward network and a linear patch interaction layer, achieves an unexpectedly high performance on ImageNet classification benchmarks, provided that we adopt a modern training strategy such as those recently introduced for transformer-based architectures. Thanks to their simple structure, with linear layers as the main mean of communication between patches, we can vizualize the filters learned by this simple MLP. While some of the layers are similar to convolutional filters, we also observe sparse long-range interactions as early as the second layer of the network. We hope that our model free of spatial priors will contribute to further understanding of what networks with less priors learn, and potentially guide the design choices of future networks without the pyramidal design prior adopted by most convolutional neural networks. ",
1043
+ "bbox": [
1044
+ 171,
1045
+ 772,
1046
+ 825,
1047
+ 911
1048
+ ],
1049
+ "page_idx": 8
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "324 [1] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint \n325 arXiv:1607.06450, 2016. 2, 7 \n326 [2] Irwan Bello, W. Fedus, Xianzhi Du, E. D. Cubuk, A. Srinivas, Tsung-Yi Lin, Jonathon Shlens, and Barret \n327 Zoph. Revisiting ResNets: Improved training and scaling strategies. arXiv preprint arXiv:2103.07579, \n328 2021. 1, 8 \n329 [3] Lucas Beyer, Olivier J. Hénaff, Alexander Kolesnikov, Xiaohua Zhai, and Aaron van den Oord. Are we \n330 done with ImageNet? arXiv preprint arXiv:2006.07159, 2020. 4, 7 \n331 [4] Théodore Bluche. Deep neural networks for large vocabulary handwritten text recognition. PhD thesis, \n332 Université Paris-Sud, 2015. 9 \n333 [5] A. Brock, Soham De, S. L. Smith, and K. Simonyan. High-performance large-scale image recognition \n334 without normalization. arXiv preprint arXiv:2102.06171, 2021. 4 \n335 [6] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand \n336 Joulin. Emerging properties in self-supervised vision transformers. arXiv preprint arXiv:2104.14294, \n337 2021. 2, 4, 5 \n338 [7] Clément Chatelain. Extraction de séquences numériques dans des documents manuscrits quelconques. \n339 PhD thesis, Université de Rouen, 2006. 9 \n340 [8] Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones, \n341 Niki Parmar, Mike Schuster, Zhifeng Chen, et al. The best of both worlds: Combining recent advances in \n342 neural machine translation. In Annual Meeting of the Association for Computational Linguistics, 2018. 9 \n343 [9] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse \n344 transformers. arXiv preprint arXiv:1904.10509, 2019. 9 \n345 [10] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Conference on \n346 Computer Vision and Pattern Recognition, 2017. 9 \n347 [11] Dan Claudiu Cire¸san, Ueli Meier, Luca Maria Gambardella, and Jürgen Schmidhuber. Deep big multilayer \n348 perceptrons for digit recognition. In Neural networks: tricks of the trade, pages 581–598. Springer, 2012. 9 \n349 [12] Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. RandAugment: Practical automated data \n350 augmentation with a reduced search space. arXiv preprint arXiv:1909.13719, 2019. VI \n351 [13] Stéphane d’Ascoli, Levent Sagun, Joan Bruna, and Giulio Biroli. Finding the needle in the haystack with \n352 convolutions: on the benefits of architectural bias. In NeurIPS, 2019. 5, 9 \n353 [14] Xiaohan Ding, Xiangyu Zhang, Jungong Han, and Guiguang Ding. RepMLP: Re-parameterizing con \n354 volutions into fully-connected layers for image recognition. arXiv preprint arXiv:2105.01883, 2021. \n355 2 \n356 [15] Piotr Dollár, Mannat Singh, and Ross Girshick. Fast and accurate model scaling. arXiv preprint \n357 arXiv:2103.06877, 2021. 1 \n358 [16] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas \n359 Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is \n360 worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning \n361 Representations, 2021. 1, 2, 3, 8 \n362 [17] Alexey Dosovitskiy, Jost Tobias Springenberg, Martin A. Riedmiller, and Thomas Brox. Discriminative \n363 unsupervised feature learning with convolutional neural networks. In NeurIPS, 2014. 9 \n364 [18] Simon S Du, Yining Wang, Xiyu Zhai, Sivaraman Balakrishnan, Ruslan Salakhutdinov, and Aarti Singh. \n365 How many samples are needed to estimate a convolutional neural network? In NeurIPS, 2018. 9 \n366 [19] Alexandre Défossez, Yossi Adi, and Gabriel Synnaeve. Differentiable model compression via pseudo \n367 quantization noise. arXiv preprint arXiv:2104.09987, 2021. 6 \n368 [20] Angela Fan, Pierre Stock, Benjamin Graham, Edouard Grave, Rémi Gribonval, Hervé Jégou, and Armand \n369 Joulin. Training with quantization noise for extreme model compression. In International Conference on \n370 Learning Representations, 2021. 6 \n371 [21] Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence \n372 to sequence learning. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International \n373 Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages \n374 1243–1252. PMLR, 06–11 Aug 2017. 8 \n375 [22] Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In International \n376 Conference on Machine Learning, 2011. 7 \n377 [23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. \n378 In Conference on Computer Vision and Pattern Recognition, 2016. 2, 7, 8, 9, V \n379 [24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. \n380 arXiv preprint arXiv:1603.05027, 2016. 7, 9 \n381 [25] Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (GELUs). arXiv preprint arXiv:1606.08415, \n382 2016. 1, 3, 7 \n383 [26] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your \n384 batch: Improving generalization through instance repetition. In Conference on Computer Vision and \n385 Pattern Recognition, 2020. VI \n386 [27] Grant Van Horn, Oisin Mac Aodha, Yang Song, Alexander Shepard, Hartwig Adam, Pietro Perona, \n387 and Serge J. Belongie. The iNaturalist species classification and detection dataset. arXiv preprint \n388 arXiv:1707.06642, 2017. 8 \n389 [28] A. Howard, Mark Sandler, G. Chu, Liang-Chieh Chen, B. Chen, M. Tan, W. Wang, Y. Zhu, R. Pang, V. \n390 Vasudevan, Quoc V. Le, and H. Adam. Searching for MobileNetV3. International Conference on Computer \n391 Vision, 2019. 7 \n392 [29] Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic \n393 depth. In European Conference on Computer Vision, 2016. VI \n394 [30] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal \n395 covariate shift. In International Conference on Machine Learning, 2015. 2 \n396 [31] Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter \n397 Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International \n398 Conference on Learning Representations, 2017. 9 \n399 [32] Yuehaw Khoo and Lexing Ying. Switchnet: a neural network model for forward and inverse scattering \n400 problems. SIAM Journal on Scientific Computing, 41(5):A3182–A3201, 2019. 9 \n401 [33] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained \n402 categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), \n403 2013. 8 \n404 [34] A. Krizhevsky. Learning multiple layers of features from tiny images. Master’s thesis, University of \n405 Toronto, 2009. 8, 9 \n406 [35] A. Krizhevsky, I. Sutskever, and G. Hinton. ImageNet classification with deep convolutional neural \n407 networks. In NeurIPS, 2012. 8, 9 \n408 [36] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to \n409 document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. 9 \n410 [37] Zhouhan Lin, Roland Memisevic, and Kishore Konda. How far can we go without convolution: Improving \n411 fully-connected networks. arXiv preprint arXiv:1511.02580, 2015. 9 \n412 [38] Hanxiao Liu, Zihang Dai, David R. So, and Quoc V. Le. Pay attention to MLPs. arXiv preprint \n413 arXiv:2105.08050, 2021. 2 \n414 [39] Luke Melas-Kyriazi. Do you even need attention? A stack of feed-forward layers does surprisingly well \n415 on ImageNet. arXiv preprint arXiv:2105.02723, 2021. 2 \n416 [40] Decebal Constantin Mocanu, Elena Mocanu, Peter Stone, Phuong H Nguyen, Madeleine Gibescu, and \n417 Antonio Liotta. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by \n418 network science. Nature communications, 9(1):1–12, 2018. 9 \n419 [41] Behnam Neyshabur. Towards learning convolutions from scratch. In NeurIPS, 2020. 9 \n420 [42] M-E. Nilsback and A. Zisserman. Automated flower classification over a large number of classes. In \n421 Proceedings of the Indian Conference on Computer Vision, Graphics and Image Processing, 2008. 8 \n422 [43] Roman Novak, Lechao Xiao, Jaehoon Lee, Yasaman Bahri, Greg Yang, Jiri Hron, Daniel A Abolafia, \n423 Jeffrey Pennington, and Jascha Sohl-Dickstein. Bayesian deep convolutional networks with many channels \n424 are Gaussian processes. In International Conference on Learning Representations, 2019. 9 \n425 [44] Alexander Novikov, Dmitrii Podoprikhin, Anton Osokin, and Dmitry P Vetrov. Tensorizing neural networks. \n426 In Neurips, 2015. 9 \n427 [45] Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In ACL, \n428 pages 1–9. Association for Computational Linguistics, 2018. 8 \n429 [46] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin \n430 Tran. Image transformer. In International Conference on Machine Learning, 2018. 9 \n431 [47] Filip Radenovic, Giorgos Tolias, and Ondrej Chum. Fine-tuning CNN image retrieval with no human ´ \n432 annotation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(7):1655 – 1668, 2018. 4 \n433 [48] Ilija Radosavovic, Raj Prateek Kosaraju, Ross B. Girshick, Kaiming He, and Piotr Dollár. Designing \n434 network design spaces. Conference on Computer Vision and Pattern Recognition, 2020. 4, 8 \n435 [49] B. Recht, Rebecca Roelofs, L. Schmidt, and V. Shankar. Do ImageNet classifiers generalize to ImageNet? \n436 In International Conference on Machine Learning, 2019. 4, 7 \n437 [50] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, \n438 Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large \n439 scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. 1, 4 \n440 [51] Patrice Y Simard, David Steinkraus, John C Platt, et al. Best practices for convolutional neural networks \n441 applied to visual document analysis. In ICDAR, 2003. 9 \n442 [52] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In \n443 International Conference on Learning Representations, 2015. 9 \n444 [53] Mingxing Tan and Quoc V. Le. EfficientNet: Rethinking model scaling for convolutional neural networks. \n445 arXiv preprint arXiv:1905.11946, 2019. 4, 8 \n446 [54] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking \n447 self-attention in transformer models. arXiv preprint arXiv:2005.00743, 2020. 9 \n448 [55] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, \n449 Jessica Yung, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. MLP-Mixer: An \n450 all-MLP architecture for vision. arXiv preprint arXiv:2105.01601, 2021. 2 \n451 [56] Hugo Touvron, M. Cord, M. Douze, F. Massa, Alexandre Sablayrolles, and H. Jégou. Training data-efficient \n452 image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. 1, 2, 4, 5, 8, \n453 9, I, V \n454 [57] Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper \n455 with image transformers. arXiv preprint arXiv:2103.17239, 2021. 2, 3, 4, I \n456 [58] Hugo Touvron, Alexandre Sablayrolles, M. Douze, M. Cord, and H. Jégou. Grafit: Learning fine-grained \n457 image representations with coarse labels. arXiv preprint arXiv:2011.12982, 2020. 8 \n458 [59] Gregor Urban, Krzysztof J Geras, Samira Ebrahimi Kahou, Ozlem Aslan, Shengjie Wang, Rich Caruana, \n459 Abdelrahman Mohamed, Matthai Philipose, and Matt Richardson. Do deep convolutional nets really need \n460 to be deep and convolutional? In International Conference on Learning Representations, 2017. 9 \n461 [60] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz \n462 Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. 1, 8, 9 \n463 [61] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim \n464 Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging \n465 the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. 8 \n466 [62] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transfor \n467 mations for deep neural networks. In Conference on Computer Vision and Pattern Recognition, 2017. \n468 9 \n469 [63] Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, \n470 James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. Large batch optimization for deep learning: Training \n471 BERT in 76 minutes. In International Conference on Learning Representations, 2020. 4 \n472 [64] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. \n473 CutMix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint \n474 arXiv:1905.04899, 2019. VI \n475 [65] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk \n476 minimization. arXiv preprint arXiv:1710.09412, 2017. VI \n477 [66] Hengshuang Zhao, Jiaya Jia, and Vladlen Koltun. Exploring self-attention for image recognition. In \n478 Conference on Computer Vision and Pattern Recognition, 2020. 9 \n479 [67] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. \n480 In AAAI, 2020. VI ",
1054
+ "bbox": [
1055
+ 137,
1056
+ 117,
1057
+ 826,
1058
+ 912
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "",
1065
+ "bbox": [
1066
+ 137,
1067
+ 98,
1068
+ 826,
1069
+ 914
1070
+ ],
1071
+ "page_idx": 10
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "",
1076
+ "bbox": [
1077
+ 137,
1078
+ 89,
1079
+ 826,
1080
+ 551
1081
+ ],
1082
+ "page_idx": 11
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "1. For all authors... ",
1087
+ "bbox": [
1088
+ 214,
1089
+ 116,
1090
+ 339,
1091
+ 131
1092
+ ],
1093
+ "page_idx": 12
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [No] We only use MLPs for image classification. There is already other system much more powerful therefore the impact is negligible \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1098
+ "bbox": [
1099
+ 238,
1100
+ 135,
1101
+ 825,
1102
+ 253
1103
+ ],
1104
+ "page_idx": 12
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "2. If you are including theoretical results... ",
1109
+ "bbox": [
1110
+ 214,
1111
+ 257,
1112
+ 493,
1113
+ 272
1114
+ ],
1115
+ "page_idx": 12
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1120
+ "bbox": [
1121
+ 236,
1122
+ 276,
1123
+ 736,
1124
+ 308
1125
+ ],
1126
+ "page_idx": 12
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "3. If you ran experiments... ",
1131
+ "bbox": [
1132
+ 214,
1133
+ 311,
1134
+ 393,
1135
+ 327
1136
+ ],
1137
+ "page_idx": 12
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We provide code in appendix \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Because it’s too expensive in computational resources. But for some experiments we run multiple times and we have $\\sim 0 . 1$ as standard deviation \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] The majority of our experiments take 2 days on 8 GPUs V100-32GB ",
1142
+ "bbox": [
1143
+ 238,
1144
+ 330,
1145
+ 825,
1146
+ 489
1147
+ ],
1148
+ "page_idx": 12
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1153
+ "bbox": [
1154
+ 215,
1155
+ 494,
1156
+ 823,
1157
+ 510
1158
+ ],
1159
+ "page_idx": 12
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [No] But license can be found with the references we mention \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] We only use datasets that are widely used in computer vision such as ImageNet or CIFAR \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We only use datasets that are widely used in computer vision such as ImageNet or CIFAR ",
1164
+ "bbox": [
1165
+ 238,
1166
+ 513,
1167
+ 825,
1168
+ 662
1169
+ ],
1170
+ "page_idx": 12
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1175
+ "bbox": [
1176
+ 214,
1177
+ 666,
1178
+ 705,
1179
+ 681
1180
+ ],
1181
+ "page_idx": 12
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1186
+ "bbox": [
1187
+ 238,
1188
+ 685,
1189
+ 825,
1190
+ 773
1191
+ ],
1192
+ "page_idx": 12
1193
+ }
1194
+ ]
parse/train/K9uApq7iyyI/K9uApq7iyyI_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/K9uApq7iyyI/K9uApq7iyyI_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UVH3Ucewd-IXZ/UVH3Ucewd-IXZ.md ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Deep learning for neuroimaging: a validation study
2
+
3
+ Sergey M. Plis The Mind Research Network Albuquerque, NM 87106 s.m.plis@gmail.com
4
+
5
+ Devon R. Hjelm
6
+ University of New Mexico
7
+ Albuquerque, NM 87131
8
+ dhjelm@mrn.org
9
+
10
+ Ruslan Salakhutdinov University of Toronto Toronto, Ontario M5S 2E4 rsalakhu@cs.toronto.edu
11
+
12
+ Vince D. Calhoun The Mind Research Network Albuquerque, NM 87106 vcalhoun@mrn.org
13
+
14
+ # Abstract
15
+
16
+ Deep learning methods have recently made notable advances in the tasks of classification and representation learning. These tasks are important for brain imaging and neuroscience discovery, making the methods attractive for porting to a neuroimager’s toolbox. Success of these methods is, in part, explained by the flexibility of deep learning models. However, this flexibility makes the process of porting to new areas a difficult parameter optimization problem. In this work we demonstrate our results (and feasible parameter ranges) in application of deep learning methods to structural and functional brain imaging data. We also describe a novel constraint-based approach to visualizing high dimensional data. We use it to ana- lyze the effect of parameter choices on data transformations. Our results show that deep learning methods are able to learn physiologically important representations and detect latent relations in neuroimaging data.
17
+
18
+ # 1 Introduction
19
+
20
+ One of the main goals of brain imaging and neuroscience—and, possibly, of most natural sciences— is to improve understanding of the investigated system based on data. In our case, this amounts to inference of descriptive features of brain structure and function from non-invasive measurements. Brain imaging field has come a long way from anatomical maps and atlases towards data driven feature learning methods, such as seed-based correlation [2], canonical correlation analysis [33], and independent component analysis (ICA) [1, 24]. These methods are highly successful in revealing known brain features with new details [3] (supporting their credibility), in recovering features that differentiate patients and controls [28] (assisting diagnosis and disease understanding), and starting a “resting state” revolution after revealing consistent patters in data from uncontrolled resting experiments [29, 35]. Classification is often used merely as a correctness checking tool, as the main emphasis is on learning about the brain. A perfect oracle that does not explain its conclusions would be useful, but mainly to facilitate the inference of the ways the oracle draws these conclusions.
21
+
22
+ As an oracle, deep learning methods are breaking records taken over the areas of speech, signal, image, video and text mining and recognition by improving state of the art classification accuracy by, sometimes, more than $30 \%$ where the prior decade struggled to obtain a $1 \%$ improvements [19, 21]. What differentiates them from other classifiers, however, is the automatic feature learning from data which largely contributes to improvements in accuracy. Presently, this seems to be the closest solution to an oracle that reveals its methods — a desirable tool for brain imaging.
23
+
24
+ Another distinguishing feature of deep learning is the depth of the models. Based on already acceptable feature learning results obtained by shallow models—currently dominating neuroimaging field—it is not immediately clear what benefits would depth have. Considering the state of multimodal learning, where models are either assumed to be the same for analyzed modalities [26] or cross-modal relations are sought at the (shallow) level of mixture coefficients [23], deeper models better fit the intuitive notion of cross-modality relations, as, for example, relations between genetics and phenotypes should be indirect, happening at a deeper conceptual level.
25
+
26
+ In this work we present our recent advances in application of deep learning methods to functional and structural magnetic resonance imaging (fMRI and sMRI). Each consists of brain volumes but for sMRI these are static volumes—one per subject/session,—while for fMRI a single subject dataset is comprised of multiple volumes capturing the changes during an experimental session. Our goal is to validate feasibility of this application by $a$ ) investigating if a building block of deep generative models—a restricted Boltzmann machine (RBM) [17]—is competitive with ICA (a representative model of its class) (Section 2); $b$ ) examining the effect of the depth in deep learning analysis of structural MRI data (Section 3.3); and $c$ ) determining the value of the methods for discovery of latent structure of a large-scale (by neuroimaging standards) dataset (Section 3.4). The measure of feature learning performance in a shallow model (a) is comparable with existing methods and known brain physiology. However, this measure cannot be used when deeper models are investigated. As we further demonstrate, classification accuracy does not provide the complete picture either. To be able to visualize the effect of depth and gain an insight into the learning process, we introduce a flexible constraint satisfaction embedding method that allows us to control the complexity of the constraints (Section 3.2). Deliberately choosing local constraints we are able to reflect the transformations that the deep belief network (DBN) [15] learns and applies to the data and gain additional insight.
27
+
28
+ # 2 A shallow belief network for feature learning
29
+
30
+ Prior to investigating the benefits of depth of a DBN in learning representations from fMRI and sMRI data, we would like to find out if a shallow (single hidden layer) model–which is the RBM— from this family meets the field’s expectations. As mentioned in the introduction, a number of methods are used for feature learning from neuroimaging data: most of them belong to the single matrix factorization (SMF) class. We do a quick comparison to a small subset of SMF methods on simulated data; and continue with a more extensive comparison against ICA as an approach trusted in the neuroimaging field. Similarly to RBM, ICA relies on the bipartite graph structure, or even is an artificial neural network with sigmoid hidden units as is in the case of Infomax ICA [1] that we compare against. Note the difference with RBM: ICA applies its weight matrix to the (shorter) temporal dimension of the data imposing independence on the spatial dimension while RBM applies its weight matrix (hidden units “receptive fields”) to the high dimensional spatial dimension instead (Figure 2).
31
+
32
+ # 2.1 A restricted Boltzmann machine
33
+
34
+ A restricted Boltzmann machine (RBM) is a Markov random field that models data distribution parameterizing it with the Gibbs distribution over a bipartite graph between visible $\pmb { v }$ and hidden variables $^ { h }$ [10]: $\begin{array} { r } { p ( \pmb { v } ) = \sum _ { \pmb { h } } p ( \pmb { v } , \pmb { h } ) = \sum _ { \pmb { h } } 1 / Z \exp ( - E ( \pmb { v } , \pmb { h } ) ) } \end{array}$ , where $\begin{array} { r } { Z = \sum v \sum _ { h } e ^ { - E ( { \pmb v } , { \pmb h } ) } } \end{array}$ is the normalization term (the partition function) and $E ( v , h )$ is the energy of the system. Each visible variable in the case of fMRI data represents a voxel of an fMRI scan with a real-valued and approximately Gaussian distribution. In this case, the energy is defined as:
35
+
36
+ $$
37
+ E ( v , h ) = - \sum _ { i j } \frac { v _ { j } } { \sigma _ { j } } W _ { j i } h _ { i } - \sum _ { j } \frac { ( a _ { j } - v _ { j } ) ^ { 2 } } { \sigma _ { j } ^ { 2 } } - \sum _ { i } b _ { i } h _ { i } ,
38
+ $$
39
+
40
+ where $a _ { j }$ and $b _ { j }$ are biases and $\sigma _ { j }$ is the standard deviation of a parabolic containment function for each visible variable $v _ { j }$ centered on the bias $a _ { j }$ . In general, the parameters $\sigma _ { i }$ need to be learned along with the other parameters. However, in practice normalizing the distribution of each voxel to have zero mean and unit variance is faster and yet effective [27]. A number of choices affect the quality of interpretation of the representations learned from fMRI by an RBM. Encouraging sparse features via the $L _ { 1 }$ -regularization: $\lambda \| W \| _ { 1 }$ ( $\lambda = 0 . 1$ gave best results) and using hyperbolic tangent for hidden units non-linearity are essential settings that respectively facilitate spatial and temporal interpretation of the result. The weights were updated using the truncated Gibbs sampling method called contrastive divergence (CD) with a single sampling step (CD-1). Further information on RBM model can be found in [16, 17].
41
+
42
+ # 2.2 Synthetic data
43
+
44
+ ![](images/03e5dc7c4b4fc13894498eac8e135ded37c71d1069aa60fab7dab98ab2c17ad8.jpg)
45
+
46
+ a: Average spatial map (SM) and time course (TC) correlations to ground truth for RBM and SMF models (gray box).
47
+
48
+ b: Ground truth (GT) SMs and estimates obtained by RBM and ICA (thresholded at 0.4 height). Colors are consistent across the methods. Grey indicates background or areas without SMs above threshold.
49
+
50
+ c: Spatial, temporal, and cross correlation (FNC) accuracy for ICA (red) and RBM (blue), as a function of spatial overlap of the true sources from 1b. Lines indicate the average correlation to GT, and the color-fill indicates $\pm 2$ standard errors around the mean.
51
+
52
+ Figure 1: Comparison of RBM estimation accuracy of features and their time courses with SMFs.
53
+
54
+ In this section we summarize our comparisons of RBM with SMF models—including Infomax ICA [1], PCA [14], sparse PCA (sPCA) [37], and sparse NMF (sNMF) [18]—on synthetic data with known spatial maps generated to simulate fMRI.
55
+
56
+ Figure 1a shows the correlation of spatial maps (SM) and time course (TC) estimates to the ground truth for RBM, ICA, PCA, sPCA, and sNMF. Correlations are averaged across all sources and datasets. RBM and ICA showed the best overall performance. While sNMF also estimated SMs well, it showed inferior performance on TC estimation, likely due to the non-negativity constraint. Based on these results and the broad adoption of ICA in the field, we focus on comparing Infomax ICA and RBM.
57
+
58
+ Figure 1b shows the full set of ground truth sources along with RBM and ICA estimates for a single representative dataset. SMs are thresholded and represented as contours for visualization. Results over all synthetic datasets showed similar performance for RBM and ICA (Figure 1c), with a slight advantage for ICA with regard to SM estimation, and a slight advantage for RBM with regards to TC estimation. RBM and ICA also showed comparable performance estimating cross correlations also called functional network connectivity (FNC).
59
+
60
+ # 2.3 An fMRI data application
61
+
62
+ ![](images/a669dc66ad09d2234094b6f0a2361707082acab0f3b05effb83465e7d44334c7.jpg)
63
+ Figure 2: The processes of feature learning and time course computation from fMRI data by an RBM. The visible units are voxels and a hidden unit receptive field covers an fMRI volume.
64
+
65
+ Data used in this work comprised of task-related scans from 28 (five females) healthy participants, all of whom gave written, informed, IRB-approved consent at Hartford Hospital and were compensated for participation1. All participants were scanned during an auditory oddball task (AOD) involving the detection of an infrequent target sound within a series of standard and novel sounds2.
66
+
67
+ Scans were acquired at the Olin Neuropsychiatry Research Center at the Institute of Living/Hartford Hospital on a Siemens Allegra 3T dedicated head scanner equipped with $4 0 \mathrm { m T } / \mathrm { m }$ gradients and a standard quadrature head coil [4, 9]. The AOD consisted of two 8-min runs, and 249 scans (volumes) at 2 second TR $0 . 5 \ \mathrm { H z }$ sampling rate) were used for the final dataset. Data were post-processed using the SPM5 software package [12], motion corrected using INRIalign [11], and subsampled to $5 3 \times 6 3 \times 4 6$ voxels. The complete fMRI dataset was masked below mean and the mean image across the dataset was removed, giving a complete dataset of size 70969 voxels by 6972 volumes. Each voxel was then normalized to have zero mean and unit variance.
68
+
69
+ The RBM was constructed using 70969 Gaussian visible units and 64 hyperbolic tangent hidden units. The hyper parameters $\epsilon$ (0.08 from the searched $[ 1 \times 1 0 ^ { - 4 } , 1 \times 1 \dot { 0 } ^ { - 1 } ]$ range) for learning rate and $\lambda$ (0.1 from the searched range $[ 1 \times \mathrm { { 1 0 ^ { - 2 } , 1 \times 1 0 ^ { - 1 } } } ] )$ for $L _ { 1 }$ weight decay were selected as those that showed a reduction of reconstruction error over training and a significant reduction in span of the receptive fields respectively. Parameter value outside the ranges either resulted in unstable or slow learning () or uninterpretable features $( \lambda )$ . The RBM was then trained with a batch size of 5 for approximately 100 epochs to allow for full convergence of the parameters.
70
+
71
+ ![](images/70ccc1f25a64c86a603394c7ffb5b0be3ebecdbb876b304f5e099240f7dd66be.jpg)
72
+ Figure 3: Intrinsic brain networks estimated by ICA and RBM.
73
+
74
+ After flipping the sign of negative receptive fields, we then identified and labeled spatially distinct features as corresponding to brain regions with the aid of AFNI [5] excluding features which had a high probability of corresponding to white matter, ventricles, or artifacts (eg. motion, edges).
75
+
76
+ We normalized the fMRI volume time series to mean zero and used the trained RBM in feed-forward mode to compute time series for each fMRI feature. This was done to better compare to ICA, where the mean is removed in PCA preprocessing.
77
+
78
+ The work-flow is outlined in Figure 2, while Figure 3 shows comparison of resulting features with those obtained by Infomax ICA. In general, RBM performs competitively with ICA, while providing–perhaps, not surprisingly due to the used $L _ { 1 }$ regularization—sharper and more localized features. While we recognize that this is a subjective measure we list more features in Figure S2 of Section 5 and note that RBM features lack negative parts for corresponding features. Note, that in the case of $L _ { 1 }$ regularized weights RBM algorithms starts to resemble some of the ICA approaches (such as the recent RICA by Le at al. [20]), which may explain the similar performance. However, the differences and possible advantages are the generative nature of the RBM and no enforcement of component orthogonality (not explicit at the least). Moreover, the block structure of the correlation matrix (see below the Supplementary material section) of feature time courses provide a grouping that is more physiologically supported than that provided by ICA. For example, see Figure S1 in the supplementary material section below. Perhaps, because ICA working hard to enforce spatial independence subtly affects the time courses and their cross-correlations in turn. We have observed comparable running times of the (non GPU) ICA (http://www.nitrc.org/projects/gift) and a GPU implementation of the RBM (https://github.com/nitishsrivastava/deepnet).
79
+
80
+ # 3 Validating the depth effect
81
+
82
+ Since the RBM results demonstrate a feature-learning performance competitive with the state of the art (or better), we proceed to investigating the effects of the model depth. To do that we turn from fMRI to sMRI data. As it is commonly assumed in the deep learning literature [22] the depth is often improving classification accuracy. We investigate if that is indeed true in the sMRI case. Structural data is convenient for the purpose as each subject/session is represented only by a single volume that has a label: control or patient in our case. Compare to 4D data where hundreds of volumes belong to the same subject with the same disease state.
83
+
84
+ # 3.1 A deep belief network
85
+
86
+ A DBN is a sigmoidal belief network (although other activation functions may be used) with an RBM as the top level prior. The joint probability distribution of its visible and hidden units is
87
+
88
+ parametrized as follows:
89
+
90
+ $$
91
+ P ( v , h ^ { 1 } , h ^ { 2 } , \dots , h ^ { l } ) = P ( v | h ^ { 1 } ) P ( h ^ { 1 } | h ^ { 2 } ) \cdots P ( h ^ { l - 2 } , h ^ { l - 1 } ) P ( h ^ { l - 1 } , h ^ { l } ) ,
92
+ $$
93
+
94
+ where $l$ is the number of hidden layers, $P ( h ^ { l - 1 } , h ^ { l } )$ is an RBM, and $P ( h ^ { i } | h ^ { i + 1 } )$ factor into individual conditionals:
95
+
96
+ $$
97
+ P ( h ^ { i } | h ^ { i + 1 } ) = \prod _ { j = 1 } ^ { n _ { i } } P ( h _ { j } ^ { i } | h ^ { i + 1 } )
98
+ $$
99
+
100
+ The important property of DBN for our goals of feature learning to facilitate discovery is its ability to operate in generative mode with fixed values on chosen hidden units thus allowing one to investigate the features that the model have learned and/or weighs as important in discriminative decisions. We, however, not going to use this property in this section, focusing instead on validating the claim that a network’s depth provides benefits for neuroimaging data analysis. And we will do this using discriminative mode of DBN’s operation as it provides an objective measure of the depth effect.
101
+
102
+ DBN training splits into two stages: pre-training and discriminative fine tuning. A DBN can be pre-trained by treating each of its layers as an RBM—trained in an unsupervised way on inputs from the previous layer—and later fine-tuned by treating it as a feed-forward neural network. The latter allows supervised training via the error back propagation algorithm. We use this schema in the following by augmenting each DBN with a soft-max layer at the fine-tuning stage.
103
+
104
+ # 3.2 Nonlinear embedding as a constraint satisfaction problem
105
+
106
+ A DBN and an RBM operate on data samples, which are brain volumes in the fMRI and sMRI case. A five-minute fMRI experiment with 2 seconds sampling rate yields 150 of these volumes per subject. For sMRI studies number of participating subjects varies but in this paper we operate with a 300 and a 3500 subject-volumes datasets. Transformations learned by deep learning methods do not look intuitive in the hidden node space and generative sampling of the trained model does not provide a sense if a model have learned anything useful in the case of MRI data: in contrast to natural images, fMRI and sMRI images do not look very intuitive. Instead, we use a nonlinear embedding method to control whether a model learned useful information and to assist in investigation of what have it, in fact, learned.
107
+
108
+ One of the purposes of an embedding is to display a complex high dimensional dataset in a way that is $i$ ) intuitive, and $\Ddot { u }$ ) representative of the data sample. The first requirement usually leads to displaying data samples as points in a 2-dimensional map, while the second is more elusive and each approach addresses it differently. Embedding approaches include relatively simple random linear projections—provably preserving some neighbor relations [6]—and a more complex class of nonlinear embedding approaches [30, 32, 34, 36]. In an attempt to organize the properties of this diverse family we have aimed at representing nonlinear embedding methods under a single constraint satisfaction problem (CSP) framework (see below). We hypothesize that each method places the samples in a map to satisfy a specific set of constraints. Although this work is not yet complete, it proven useful in our current study. We briefly outline the ideas in this section to provide enough intuition of the method that we further use in Section 3.
109
+
110
+ Since we can control the constraints in the CSP framework, to study the effect of deep learning we choose them to do the least amount of work—while still being useful—letting the DBN do (or not) the hard part. A more complicated method such as t-SNE [36] already does complex processing to preserve the structure of a dataset in a 2D map – it is hard to infer if the quality of the map is determined by a deep learning method or the embedding. While some of the existing method may have provided the “least amount of work” solutions as well we chose to go with the CSP framework. It explicitly states the constraints that are being satisfied and thus lets us reason about deep learning effects within the constraints, while with other methods—where the constraints are implicit—this would have been harder.
111
+
112
+ A constraint satisfaction problem (CSP) is one requiring a solution that satisfies a set of constraints. One of the well known examples is the boolean satisfiability problem (SAT). There are multiple other important CSPs such as the packing, molecular conformations, and, recently, error correcting codes [7]. Freedom to setup per point constraints without controlling for their global interactions makes a CSP formulation an attractive representation of the nonlinear embedding problem. Pursuing this property we use the iterative “divide and concur” (DC) algorithm [13] as the solver for our representation. In DC algorithm we treat each point on the solution map as a variable and assign a set of constraints that this variable needs to satisfy (more on these later). Then each points gets a “replica” for each constraint it is involved into. Then DC algorithm alternates the divide and concur projections. The divide projection moves each “replica” points to the nearest locations in the 2D map that satisfy the constraint they participate in. The concur projection concurs locations of all “replicas” of a point by placing them at the average location on the map. The key idea is to avoid local traps by combining the divide and concur steps within the difference map [8]. A single location update is represented by:
113
+
114
+ $$
115
+ \begin{array} { r l } & { x _ { c } = P _ { c } ( ( 1 + 1 / \beta ) * P _ { d } ( x ) - 1 / \beta * x ) } \\ & { x _ { d } = P _ { d } ( ( 1 - 1 / \beta ) * P _ { c } ( x ) + 1 / \beta * x ) } \\ & { x = x + \beta * ( x _ { c } - x _ { d } ) , } \end{array}
116
+ $$
117
+
118
+ where $P _ { d } ( \cdot )$ and $P _ { c } ( \cdot )$ denote the divide and concur projections and $\beta$ is a user-defined parameter.
119
+
120
+ While the concur projection will only differ by subsets of “replicas” across different methods representable in DC framework, the divide projection is unique and defines the algorithm behavior. In this paper, we choose a divide projection that keeps $k$ nearest neighbors of each point in the higher dimensional space also its neighbors in the 2D map. This is a simple local neighborhood constraint that allows us to assess effects of deep learning transformation leaving most of the mapping decisions to the deep learning.
121
+
122
+ Note, that for a general dataset we may not be able to satisfy this constraint: each point has exactly the same neighbors in 2D as in the original space (and this is what we indeed observe). The DC algorithm, however, is only guaranteed to find the solution if it exists and oscillates otherwise. Oscillating behavior is detectable and may be used to stop the algorithm. We found informative watching the 2D map in dynamics, as the points that keep oscillating provide additional information into the structure of the data. Another practically important feature of the algorithm: it is deterministic. Given the same parameters ( $\beta$ and the parameters of $P _ { d } ( \cdot )$ ) it converges to the same solution regardless of the initial point. If each of the points participates in each constraint then complexity of the algorithm is quadratic. With our simple $k$ neighborhood constraints it is $O ( k n )$ , for $n$ samples/points.
123
+
124
+ # 3.3 A schizophrenia structural MRI dataset
125
+
126
+ We use a combined data from four separate schizophrenia studies conducted at Johns Hopkins University (JHU), the Maryland Psychiatric Research Center (MPRC), the Institute of Psychiatry, London, UK (IOP), and the Western Psychiatric Institute and Clinic at the University of Pittsburgh (WPIC) (the data used in Meda et al. [25]). The combined sample comprised 198 schizophrenia patients and 191 matched healthy controls and contained both first episode and chronic patients [25]. At all sites, whole brain MRIs were obtained on a $1 . 5 \mathrm { T }$ Signa GE scanner using identical parameters and software. Original structural MRI images were segmented in native space and the resulting gray and white matter images then spatially normalized to gray and white matter templates respectively to derive the optimized normalization parameters. These parameters were then applied to the whole brain structural images in native space prior to a new segmentation. The obtained 60465 voxel gray matter images were used in this study. Figure 4 shows example orthogonal slice views of the gray matter data samples of a patient and a healthy control.
127
+
128
+ ![](images/c4b5a343fc1e4cb85c20d34f23973aa6ac9d95e1c2b63880dbf4b1bc1bf866da.jpg)
129
+ Figure 4: A smoothed gray matter segmentation of a patient and a healthy control: each is a training sample.
130
+
131
+ The main question of this Section is to evaluate the effect of the depth of a DBN on sMRI. To answer this question, we investigate if classification rates improve with the depth. For that we sequentially investigate DBNs of 3 depth. From RBM experiments we have learned that even with a larger number of hidden units (72, 128 and 512) RBM tends to only keep around 50 features driving the rest to zero. Classification rate and reconstruction error still slightly improves, however, when the number of hidden units increases. These observations affected our choice of 50 hidden units of the first two layers and 100 for the third. Each hidden unit is connected to all units in the previous layer which results in an all to all connectivity structure between the layers, which is a more common and conventional approach to constructing these models. Note, larger networks (up to double the umber of units) lead to similar results. We pre-train each layer via an unsupervised RBM and discriminatively fine-tune models of depth 1 (50 hidden units in the top layer), 2 (50-50 hidden units in the first and the top layer respectively), and 3 (50-50-100 hidden units in the first, second and the top layer respectively) by adding a softmax layer on top of each of these models and training via the back propagation.
132
+
133
+ We estimate the accuracy of classification via 10-fold cross validation on fine-tuned models splitting the 389 subject dataset into 10 approximately class-balanced folds. We train the rbf-kernel SVM, logistic regression and a k-nearest neighbors (knn) classifier using activations of the top-most hidden layers in fine-tuned models to the training data of each fold as their input. The testing is performed likewise but on the test data. We also perform the same 10-fold cross validation on the raw data. Table 1 summarizes the precision and recall values in the F-scores and their standard deviations.
134
+
135
+ All models demonstrate a similar trend when the accuracy only slightly increases from depth-1 to depth-2 DBN and then improves signifi
136
+
137
+ <table><tr><td>depth</td><td>raw</td><td>1</td><td>2</td><td>3</td></tr><tr><td>SVMF-score</td><td>0.68 ±0.01</td><td>0.66 ±0.09</td><td>0.62 ±0.12</td><td>0.90±0.14</td></tr><tr><td>LRF-score</td><td>0.63 ± 0.09</td><td>0.65 ±0.11</td><td>0.61±0.12</td><td>0.91±0.14</td></tr><tr><td>KNNF-score</td><td>0.61 ± 0.11</td><td>0.55 ± 0.15</td><td>0.58 ± 0.16</td><td>0.90±0.16</td></tr></table>
138
+
139
+ Table 1: Classification on fine-tuned models (test data)
140
+
141
+ cantly. Table 1 supports the general claim of deep learning community about improvement of classification rate with the depth even for sMRI data. Improvement in classification even for the simple knn classifier indicates the character of the transformation that the DBN learns and applies to the data: it may be changing the data manifold to organize classes by neighborhoods. Ideally, to make general conclusion about this transformation we need to analyze several representative datasets. However, even working with the same data we can have a closer view of the depth effect using the method introduced in Section 3.2. Although it may seem that the DBN does not provide significant improvements in sMRI classification from depth-1 to depth-2 in this model, it keeps on learning potentially useful transformaions of the data. We can see that using our simple local neighborhoodbased embedding. Figure 5 displays 2D maps of the raw data, as well as the depth 1, 2, and 3 activations (of a network trained on 335 subjects): the deeper networks place patients and control groups further apart. Additionally, Figure 5 displays the 54 subjects that the DBN was not train on. These hold out subjects are also getting increased separation with depth. This DBN’s behavior is potentially useful for generalization, when larger and more diverse data become available.
142
+
143
+ ![](images/476d7f9ec0679dcbfd04d1eaf746d79f5ea4d2c6d16e5a4e64ca1d42cdbab586.jpg)
144
+ Figure 5: Effect of a DBN’s depth on neighborhood relations. Each map is shown at the same iteration of the algorithm with the same $k = 5 0$ . The color differentiates the classes (patients and controls) and the training (335 subjects) from validation (54 subjects) data. Although the data becomes separable at depth 1 and more so at depth 2, the DBN continues distilling details that pull the classes further apart.
145
+
146
+ Our new mapping method has two essential properties to facilitate the conclusion and provide confidence in the result: its already mentioned local properties and the deterministic nature of the algorithm. The latter leads to independence of the resulting maps from the starting point. The map only depends on the models parameter $k$ —the size of the neighborhood—and the data.
147
+
148
+ # 3.4 A large-scale Huntington disease data
149
+
150
+ In this section we focus on sMRI data collected from healthy controls and Huntington disease (HD) patients as part of the PREDICT-HD project (www.predict-hd. net). Huntington disease is a genetic neurodegenerative disease that results in degeneration of neurons in certain areas of the brain. The project is focused on identifying the earliest detectable changes in thinking skills, emotions and brain structure as a person begins the transition from health to being diagnosed with Huntington disease. We would like to know if deep learning methods can assist in answering that question.
151
+
152
+ For this study T1-weighted scans were collected at multiple sites (32 international sites), representing multiple field strengths (1.5T and 3.0T) and multiple manufactures (Siemens, Phillips, and GE). The 1.5T T1 weighted scans were an axial 3D volumetric spoiled-gradient echo series $( \approx 1 \times 1 \times 1 . 5 ~ \mathrm { m m }$ voxels), and the 3.0T T1 weighted scans were a 3D Volumetric MPRAGE series $( \approx 1 \times 1 \times 1 \ : \mathrm { m n }$ m voxels).
153
+
154
+ ![](images/73650e39fcfeef56626cab5dffbf6d664648d47ea362e5822a60fc11d81800a5.jpg)
155
+ Figure 6: A gray matter of MRI scans of an HD patient and a healthy control.
156
+
157
+ The images were segmented in the native space and the normalized to a common template. After correlating
158
+
159
+ $$
160
+ \begin{array}{c} \begin{array} { r l } { \mathsf { d e p t h } } & { { } \parallel \mathsf { r a w } } \\ { S V M F ^ { - s c o r e } } \\ { L R F ^ { - s c o r e } } \end{array} \left\| \begin{array} { l l } { \mathrm { \Delta ~ n w ~ } } & { { } 0 . 6 5 \pm 0 . 0 1 } \\ { 0 . 7 5 } & { { } 0 . 6 5 \pm 0 . 0 1 } \end{array} \right. & { 0 . 6 5 \pm 0 . 0 1 \quad 1 . 0 0 \pm 0 . 0 0 } \\ { 0 . 6 5 \pm 0 . 0 1 } & { { } 0 . 6 5 \pm 0 . 0 1 } \end{array}
161
+ $$
162
+
163
+ Table 2: Classification on fine-tuned models (HD data)
164
+
165
+ the normalized gray matter segmentation with the template and eliminating poorly correlating scans we obtain a dataset of 3500 scans, where 2641 were from patients and 859 from healthy controls. We have used all of the scans in this imbalanced sample to pre-train and fine tune the same model architecture (50-50-100) as in Section 3.3 for all three depths3.
166
+
167
+ Table 2 lists the average F-score values for both classes at the raw data and all depth levels. Note the drop from the raw data and then a recovery at depth 3. The limited capacity of levels 1 and 2 has reduced the network ability to differentiate the groups but representational capacity of depth 3 network compensates for the initial bottleneck. This, confirms our previous observation on the depth effect, however, does not yet help the main question of the PREDICT-HD study. Note, however, while Table 1 in the previous section evaluates generalization ability of the DBN, Table 2 here only demonstrates changes in DBN’s representational capacity with the depth as we use no testing data. To further investigate utility of the deep learning approach for scientific discovery we again augment it with the embedding method of Section 3.2. Figure 7 shows the map of 3500 scans of HD patients and healthy controls. Each point on the map is an sMRI volume, shown in Figures 6 and 7. Although we have used the complete data to train the DBN, discriminative fine-tuning had access only to binary label: control or patient. In addition to that, we have information about severity of the disease from low to high. We have color coded this information in Figure 7 from bright yellow (low) through orange (medium) to red (high). The network4 discriminates the patients by disease severity which results in a spectrum on the map. Note, that neither t-SNE (not shown), nor our new embedding see the spectrum or even the patient groups in the raw data. This is a important property of the method that may help support its future use in discovery of new information about the disease.
168
+
169
+ ![](images/eeeb39731b80a20709ab71582b9bc533ca1ffc2bcf1813556881823eb58f2849.jpg)
170
+ Figure 7: Patients and controls group separation map with additional unsupervised spectral decomposition of sMRI scans by disease severity. The map represents 3500 scans.
171
+
172
+ # 4 Conclusions
173
+
174
+ Our investigations show that deep learning has a high potential in neuroimaging applications. Even the shallow RBM is already competitive with the model routinely used in the field: it produces physiologically meaningful features which are (desirably) highly focal and have time course cross correlations that connect them into meaningful functional groups (Section 5). The depth of the DBN does indeed help classification and increases group separation. This is apparent on two sMRI datasets collected under varying conditions, at multiple sites each, from different disease groups, and pre-processed differently. This is a strong evidence of DBNs robustness. Furthermore, our study shows a high potential of DBNs for exploratory analysis. As Figure 7 demonstrates, DBN in conjunction with our new mapping method can reveal hidden relations in data. We did find it difficult initially to find workable parameter regions, but we hope that other researchers won’t have this difficulty starting from the baseline that we provide in this paper.
175
+
176
+ # References
177
+
178
+ [1] A. J. Bell and T. J. Sejnowski. An information-maximization approach to blind separation and blind deconvolution. Neural Computation, 7(6):1129–1159, November 1995. [2] Bharat Biswal, F Zerrin Yetkin, Victor M Haughton, and James S Hyde. Functional connectivity in the motor cortex of resting human brain using echo-planar mri. Magnetic resonance in medicine, 34(4):537–541, 1995.
179
+ [3] M.J. Brookes, M. Woolrich, H. Luckhoo, D. Price, J.R. Hale, M.C. Stephenson, G.R. Barnes, S.M. Smith, and P.G. Morris. Investigating the electrophysiological basis of resting state networks using magnetoencephalography. Proceedings of the National Academy of Sciences, 108(40):16783–16788, 2011. [4] V. D. Calhoun, K. A. Kiehl, and G. D. Pearlson. Modulation of temporally coherent brain networks estimated using ICA at rest and during cognitive tasks. Human Brain Mapping, 29(7):828–838, 2008.
180
+ [5] R. W. Cox et al. AFNI: software for analysis and visualization of functional magnetic resonance neuroimages. Computers and Biomedical Research, 29(3):162–173, 1996. [6] T. de Vries, S. Chawla, and M. E. Houle. Finding local anomalies in very high dimensional space. In Proceedings of the 10th $\{ I E E E \}$ international conference on data mining, pages 128–137. IEEE, IEEE Computer Society, 2010. [7] Nate Derbinsky, Jose Bento, Veit Elser, and Jonathan S Yedidia. An improved three-weight ´ message-passing algorithm. arXiv preprint arXiv:1305.1961, 2013. [8] V. Elser, I. Rankenburg, and P. Thibault. Searching with iterated maps. Proceedings of the National Academy of Sciences, 104(2):418, 2007. [9] Nathan Swanson et. al. Lateral differences in the default mode network in healthy controls and patients with schizophrenia. Human Brain Mapping, 32:654–664, 2011.
181
+ [10] Asja Fischer and Christian Igel. An introduction to restricted boltzmann machines. In Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications, pages 14–36. Springer, 2012.
182
+ [11] L. Freire, A. Roche, and J. F. Mangin. What is the best similarity measure for motion correction in fMRI. IEEE Transactions in Medical Imaging, 21:470–484, 2002.
183
+ [12] Karl J Friston, Andrew P Holmes, Keith J Worsley, J-P Poline, Chris D Frith, and Richard SJ Frackowiak. Statistical parametric maps in functional imaging: a general linear approach. Human brain mapping, 2(4):189–210, 1994.
184
+ [13] S. Gravel and V. Elser. Divide and concur: A general approach to constraint satisfaction. Physical Review E, 78(3):36706, 2008.
185
+ [14] Trevor. Hastie, Robert. Tibshirani, and JH (Jerome H.) Friedman. The elements of statistical learning. Springer, 2009.
186
+ [15] G. Hinton and R. Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786):504–507, 2006.
187
+ [16] G. E. Hinton, S. Osindero, and Y. W. Teh. A fast learning algorithm for deep belief nets. Neural computation, 18(7):1527–1554, 2006.
188
+ [17] Geoffrey Hinton. Training products of experts by minimizing contrastive divergence. Neural Computation, 14:2002, 2000.
189
+ [18] P. O. Hoyer. Non-negative sparse coding. In Neural Networks for Signal Processing, 2002. Proceedings of the 2002 12th IEEE Workshop on, pages 557–565, 2002.
190
+ [19] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Neural Information Processing Systems, 2012.
191
+ [20] Quoc V Le, Alexandre Karpenko, Jiquan Ngiam, and Andrew Y Ng. Ica with reconstruction cost for efficient overcomplete feature learning. In NIPS, pages 1017–1025, 2011.
192
+ [21] Quoc V. Le, Rajat Monga, Matthieu Devin, Kai Chen, Greg S. Corrado, Jeff Dean, and Andrew Y. Ng. Building high-level features using large scale unsupervised learning. In International Conference on Machine Learning. 103, 2012.
193
+ [22] N. Le Roux and Y. Bengio. Deep belief networks are compact universal approximators. Neural computation, 22(8):2192–2207, 2010.
194
+ [23] Jingyu Liu and Vince Calhoun. Parallel independent component analysis for multimodal analysis: Application to fmri and eeg data. In Biomedical Imaging: From Nano to Macro, 2007. ISBI 2007. 4th IEEE International Symposium on, pages 1028–1031. IEEE, 2007.
195
+ [24] M. J. McKeown, S. Makeig, G. G. Brown, T. P. Jung, S. S. Kindermann, A. J. Bell, and T. J. Sejnowski. Analysis of fMRI data by blind separation into independent spatial components. Human Brain Mapping, 6(3):160–188, 1998.
196
+ [25] Shashwath A Meda, Nicole R Giuliani, Vince D Calhoun, Kanchana Jagannathan, David J Schretlen, Anne Pulver, Nicola Cascella, Matcheri Keshavan, Wendy Kates, Robert Buchanan, et al. A large scale $\mathit { n } { } = 4 0 0 { }$ ) investigation of gray matter differences in schizophrenia using optimized voxel-based morphometry. Schizophrenia research, 101(1):95–105, 2008.
197
+ [26] M. Moosmann, T. Eichele, H. Nordby, K. Hugdahl, and V. D. Calhoun. Joint independent component analysis for simultaneous EEG-fMRI: principle and simulation. International Journal of Psychophysiology, 67(3):212–221, 2008.
198
+ [27] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pages 807–814, 2010.
199
+ [28] V. K. Potluru and V. D. Calhoun. Group learning using contrast NMF : Application to functional and structural MRI of schizophrenia. Circuits and Systems, 2008. ISCAS 2008. IEEE International Symposium on, pages 1336–1339, May 2008.
200
+ [29] Marcus E. Raichle, Ann Mary MacLeod, Abraham Z. Snyder, William J. Powers, Debra A. Gusnard, and Gordon L. Shulman. A default mode of brain function. Proceedings of the National Academy of Sciences, 98(2):676–682, 2001.
201
+ [30] Sam T Roweis and Lawrence K Saul. Nonlinear dimensionality reduction by locally linear embedding. Science, (5500):2323–2326, 2000.
202
+ [31] Mikail Rubinov and Olaf Sporns. Weight-conserving characterization of complex functional brain networks. Neuroimage, 56(4):2068–2079, 2011.
203
+ [32] John W Sammon Jr. A nonlinear mapping for data structure analysis. Computers, IEEE Transactions on, 100(5):401–409, 1969.
204
+ [33] Jing Sui, Tulay Adali, Qingbao Yu, Jiayu Chen, and Vince D. Calhoun. A review of multivariate methods for multimodal fusion of brain imaging data. Journal of Neuroscience Methods, 204(1):68–81, 2012.
205
+ [34] Joshua B Tenenbaum, Vin De Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000.
206
+ [35] M.P. van den Heuvel and H.E. Hulshoff Pol. Exploring the brain network: A review on restingstate fMRI functional connectivity. European Neuropsychopharmacology, 2010.
207
+ [36] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(2579-2605):85, 2008.
208
+ [37] Hui Zou, Trevor Hastie, and Robert Tibshirani. Sparse principal component analysis. Journal of computational and graphical statistics, 15(2):265–286, 2006.
209
+
210
+ # 5 Supplementary material
211
+
212
+ The correlation matrices for both RBM and ICA results on the fMRI dataset of Section 2.3 are provided in Figure S1, where the ordering of components is performed separately for each method. Each network is named by their physiological function but we do not go in depth explaining these in the current paper. For RBM, modularity is more apparent, both visually and quantitatively. Modularity, as defined in [31], averages $0 . 4 0 \pm 0 . 0 6 0$ across subjects for RBM, and $0 . 3 5 \pm 0 . 0 5 6$ for ICA. These values are significantly greater for RBM $( t = 7 . 1 5 , p < 1 e - 6$ per the paired t-test). Also note that the scale of correlation values for RBM and ICA is different, which highlights that RBM overestimated strong FNC values.
213
+
214
+ ![](images/ae7cce6d19fbb9d82bd5b077ad3a04815fb6c12d2a5a349b52cb5037cccb90d4.jpg)
215
+ Figure S1: Correlation matrices determined from RBM (left) and ICA (right), averaged over subjects. Note that the color scales for RBM and ICA are different (RBM shows a larger range in correlations). The correlation matrix for ICA on the same scale as RBM is also provided as an inset (upper right). Feature groupings for RBM and ICA were determined separately using the FNC matrices and known anatomical and functional properties.
216
+
217
+ ![](images/f9a151bf4c870b7e24e5b9860efde560866c036587adf63bded04a361b7f39fd.jpg)
218
+ Figure S2: Sample pairs consisting of RBM (top) and ICA (bottom) SMs thresholded at 2 standard deviations. Pairing was done with the aid of spatial correlations, temporal properties, and visual inspection. Values indicate the spatial correlation between RBM and ICA SMs.
parse/train/UVH3Ucewd-IXZ/UVH3Ucewd-IXZ_content_list.json ADDED
@@ -0,0 +1,1076 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Deep learning for neuroimaging: a validation study ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 187,
8
+ 135,
9
+ 808,
10
+ 160
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Sergey M. Plis The Mind Research Network Albuquerque, NM 87106 s.m.plis@gmail.com ",
17
+ "bbox": [
18
+ 266,
19
+ 213,
20
+ 457,
21
+ 270
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Devon R. Hjelm \nUniversity of New Mexico \nAlbuquerque, NM 87131 \ndhjelm@mrn.org ",
28
+ "bbox": [
29
+ 555,
30
+ 213,
31
+ 733,
32
+ 270
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Ruslan Salakhutdinov University of Toronto Toronto, Ontario M5S 2E4 rsalakhu@cs.toronto.edu ",
39
+ "bbox": [
40
+ 250,
41
+ 290,
42
+ 475,
43
+ 345
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Vince D. Calhoun The Mind Research Network Albuquerque, NM 87106 vcalhoun@mrn.org ",
50
+ "bbox": [
51
+ 558,
52
+ 290,
53
+ 750,
54
+ 347
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 382,
65
+ 535,
66
+ 398
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Deep learning methods have recently made notable advances in the tasks of classification and representation learning. These tasks are important for brain imaging and neuroscience discovery, making the methods attractive for porting to a neuroimager’s toolbox. Success of these methods is, in part, explained by the flexibility of deep learning models. However, this flexibility makes the process of porting to new areas a difficult parameter optimization problem. In this work we demonstrate our results (and feasible parameter ranges) in application of deep learning methods to structural and functional brain imaging data. We also describe a novel constraint-based approach to visualizing high dimensional data. We use it to ana- lyze the effect of parameter choices on data transformations. Our results show that deep learning methods are able to learn physiologically important representations and detect latent relations in neuroimaging data. ",
73
+ "bbox": [
74
+ 233,
75
+ 411,
76
+ 764,
77
+ 578
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 599,
88
+ 310,
89
+ 617
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "One of the main goals of brain imaging and neuroscience—and, possibly, of most natural sciences— is to improve understanding of the investigated system based on data. In our case, this amounts to inference of descriptive features of brain structure and function from non-invasive measurements. Brain imaging field has come a long way from anatomical maps and atlases towards data driven feature learning methods, such as seed-based correlation [2], canonical correlation analysis [33], and independent component analysis (ICA) [1, 24]. These methods are highly successful in revealing known brain features with new details [3] (supporting their credibility), in recovering features that differentiate patients and controls [28] (assisting diagnosis and disease understanding), and starting a “resting state” revolution after revealing consistent patters in data from uncontrolled resting experiments [29, 35]. Classification is often used merely as a correctness checking tool, as the main emphasis is on learning about the brain. A perfect oracle that does not explain its conclusions would be useful, but mainly to facilitate the inference of the ways the oracle draws these conclusions. ",
96
+ "bbox": [
97
+ 174,
98
+ 631,
99
+ 825,
100
+ 797
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "As an oracle, deep learning methods are breaking records taken over the areas of speech, signal, image, video and text mining and recognition by improving state of the art classification accuracy by, sometimes, more than $30 \\%$ where the prior decade struggled to obtain a $1 \\%$ improvements [19, 21]. What differentiates them from other classifiers, however, is the automatic feature learning from data which largely contributes to improvements in accuracy. Presently, this seems to be the closest solution to an oracle that reveals its methods — a desirable tool for brain imaging. ",
107
+ "bbox": [
108
+ 174,
109
+ 805,
110
+ 823,
111
+ 888
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Another distinguishing feature of deep learning is the depth of the models. Based on already acceptable feature learning results obtained by shallow models—currently dominating neuroimaging field—it is not immediately clear what benefits would depth have. Considering the state of multimodal learning, where models are either assumed to be the same for analyzed modalities [26] or cross-modal relations are sought at the (shallow) level of mixture coefficients [23], deeper models better fit the intuitive notion of cross-modality relations, as, for example, relations between genetics and phenotypes should be indirect, happening at a deeper conceptual level. ",
118
+ "bbox": [
119
+ 174,
120
+ 895,
121
+ 820,
122
+ 924
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 174,
131
+ 103,
132
+ 825,
133
+ 174
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In this work we present our recent advances in application of deep learning methods to functional and structural magnetic resonance imaging (fMRI and sMRI). Each consists of brain volumes but for sMRI these are static volumes—one per subject/session,—while for fMRI a single subject dataset is comprised of multiple volumes capturing the changes during an experimental session. Our goal is to validate feasibility of this application by $a$ ) investigating if a building block of deep generative models—a restricted Boltzmann machine (RBM) [17]—is competitive with ICA (a representative model of its class) (Section 2); $b$ ) examining the effect of the depth in deep learning analysis of structural MRI data (Section 3.3); and $c$ ) determining the value of the methods for discovery of latent structure of a large-scale (by neuroimaging standards) dataset (Section 3.4). The measure of feature learning performance in a shallow model (a) is comparable with existing methods and known brain physiology. However, this measure cannot be used when deeper models are investigated. As we further demonstrate, classification accuracy does not provide the complete picture either. To be able to visualize the effect of depth and gain an insight into the learning process, we introduce a flexible constraint satisfaction embedding method that allows us to control the complexity of the constraints (Section 3.2). Deliberately choosing local constraints we are able to reflect the transformations that the deep belief network (DBN) [15] learns and applies to the data and gain additional insight. ",
140
+ "bbox": [
141
+ 174,
142
+ 181,
143
+ 825,
144
+ 402
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 A shallow belief network for feature learning ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 173,
154
+ 422,
155
+ 580,
156
+ 440
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Prior to investigating the benefits of depth of a DBN in learning representations from fMRI and sMRI data, we would like to find out if a shallow (single hidden layer) model–which is the RBM— from this family meets the field’s expectations. As mentioned in the introduction, a number of methods are used for feature learning from neuroimaging data: most of them belong to the single matrix factorization (SMF) class. We do a quick comparison to a small subset of SMF methods on simulated data; and continue with a more extensive comparison against ICA as an approach trusted in the neuroimaging field. Similarly to RBM, ICA relies on the bipartite graph structure, or even is an artificial neural network with sigmoid hidden units as is in the case of Infomax ICA [1] that we compare against. Note the difference with RBM: ICA applies its weight matrix to the (shorter) temporal dimension of the data imposing independence on the spatial dimension while RBM applies its weight matrix (hidden units “receptive fields”) to the high dimensional spatial dimension instead (Figure 2). ",
163
+ "bbox": [
164
+ 173,
165
+ 455,
166
+ 825,
167
+ 623
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "2.1 A restricted Boltzmann machine ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 174,
177
+ 641,
178
+ 439,
179
+ 656
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "A restricted Boltzmann machine (RBM) is a Markov random field that models data distribution parameterizing it with the Gibbs distribution over a bipartite graph between visible $\\pmb { v }$ and hidden variables $^ { h }$ [10]: $\\begin{array} { r } { p ( \\pmb { v } ) = \\sum _ { \\pmb { h } } p ( \\pmb { v } , \\pmb { h } ) = \\sum _ { \\pmb { h } } 1 / Z \\exp ( - E ( \\pmb { v } , \\pmb { h } ) ) } \\end{array}$ , where $\\begin{array} { r } { Z = \\sum v \\sum _ { h } e ^ { - E ( { \\pmb v } , { \\pmb h } ) } } \\end{array}$ is the normalization term (the partition function) and $E ( v , h )$ is the energy of the system. Each visible variable in the case of fMRI data represents a voxel of an fMRI scan with a real-valued and approximately Gaussian distribution. In this case, the energy is defined as: ",
186
+ "bbox": [
187
+ 173,
188
+ 667,
189
+ 825,
190
+ 757
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "equation",
196
+ "img_path": "images/87cc444cf97cd9ccbd6b314dd81aef36eb2d1c11c788843f32f8d9f175ccb686.jpg",
197
+ "text": "$$\nE ( v , h ) = - \\sum _ { i j } \\frac { v _ { j } } { \\sigma _ { j } } W _ { j i } h _ { i } - \\sum _ { j } \\frac { ( a _ { j } - v _ { j } ) ^ { 2 } } { \\sigma _ { j } ^ { 2 } } - \\sum _ { i } b _ { i } h _ { i } ,\n$$",
198
+ "text_format": "latex",
199
+ "bbox": [
200
+ 307,
201
+ 763,
202
+ 689,
203
+ 805
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "where $a _ { j }$ and $b _ { j }$ are biases and $\\sigma _ { j }$ is the standard deviation of a parabolic containment function for each visible variable $v _ { j }$ centered on the bias $a _ { j }$ . In general, the parameters $\\sigma _ { i }$ need to be learned along with the other parameters. However, in practice normalizing the distribution of each voxel to have zero mean and unit variance is faster and yet effective [27]. A number of choices affect the quality of interpretation of the representations learned from fMRI by an RBM. Encouraging sparse features via the $L _ { 1 }$ -regularization: $\\lambda \\| W \\| _ { 1 }$ ( $\\lambda = 0 . 1$ gave best results) and using hyperbolic tangent for hidden units non-linearity are essential settings that respectively facilitate spatial and temporal interpretation of the result. The weights were updated using the truncated Gibbs sampling method called contrastive divergence (CD) with a single sampling step (CD-1). Further information on RBM model can be found in [16, 17]. ",
210
+ "bbox": [
211
+ 174,
212
+ 811,
213
+ 825,
214
+ 924
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "",
221
+ "bbox": [
222
+ 169,
223
+ 103,
224
+ 825,
225
+ 132
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "2.2 Synthetic data ",
232
+ "text_level": 1,
233
+ "bbox": [
234
+ 174,
235
+ 150,
236
+ 312,
237
+ 165
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "image",
243
+ "img_path": "images/03e5dc7c4b4fc13894498eac8e135ded37c71d1069aa60fab7dab98ab2c17ad8.jpg",
244
+ "image_caption": [],
245
+ "image_footnote": [],
246
+ "bbox": [
247
+ 179,
248
+ 183,
249
+ 816,
250
+ 282
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "a: Average spatial map (SM) and time course (TC) correlations to ground truth for RBM and SMF models (gray box). ",
257
+ "bbox": [
258
+ 179,
259
+ 294,
260
+ 377,
261
+ 344
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "b: Ground truth (GT) SMs and estimates obtained by RBM and ICA (thresholded at 0.4 height). Colors are consistent across the methods. Grey indicates background or areas without SMs above threshold. ",
268
+ "bbox": [
269
+ 387,
270
+ 294,
271
+ 580,
272
+ 381
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "c: Spatial, temporal, and cross correlation (FNC) accuracy for ICA (red) and RBM (blue), as a function of spatial overlap of the true sources from 1b. Lines indicate the average correlation to GT, and the color-fill indicates $\\pm 2$ standard errors around the mean. ",
279
+ "bbox": [
280
+ 589,
281
+ 294,
282
+ 816,
283
+ 382
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Figure 1: Comparison of RBM estimation accuracy of features and their time courses with SMFs. ",
290
+ "bbox": [
291
+ 178,
292
+ 393,
293
+ 816,
294
+ 409
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "In this section we summarize our comparisons of RBM with SMF models—including Infomax ICA [1], PCA [14], sparse PCA (sPCA) [37], and sparse NMF (sNMF) [18]—on synthetic data with known spatial maps generated to simulate fMRI. ",
301
+ "bbox": [
302
+ 176,
303
+ 425,
304
+ 825,
305
+ 467
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Figure 1a shows the correlation of spatial maps (SM) and time course (TC) estimates to the ground truth for RBM, ICA, PCA, sPCA, and sNMF. Correlations are averaged across all sources and datasets. RBM and ICA showed the best overall performance. While sNMF also estimated SMs well, it showed inferior performance on TC estimation, likely due to the non-negativity constraint. Based on these results and the broad adoption of ICA in the field, we focus on comparing Infomax ICA and RBM. ",
312
+ "bbox": [
313
+ 173,
314
+ 474,
315
+ 825,
316
+ 558
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Figure 1b shows the full set of ground truth sources along with RBM and ICA estimates for a single representative dataset. SMs are thresholded and represented as contours for visualization. Results over all synthetic datasets showed similar performance for RBM and ICA (Figure 1c), with a slight advantage for ICA with regard to SM estimation, and a slight advantage for RBM with regards to TC estimation. RBM and ICA also showed comparable performance estimating cross correlations also called functional network connectivity (FNC). ",
323
+ "bbox": [
324
+ 173,
325
+ 565,
326
+ 825,
327
+ 648
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "2.3 An fMRI data application ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 173,
337
+ 667,
338
+ 393,
339
+ 681
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "image",
345
+ "img_path": "images/a669dc66ad09d2234094b6f0a2361707082acab0f3b05effb83465e7d44334c7.jpg",
346
+ "image_caption": [
347
+ "Figure 2: The processes of feature learning and time course computation from fMRI data by an RBM. The visible units are voxels and a hidden unit receptive field covers an fMRI volume. "
348
+ ],
349
+ "image_footnote": [],
350
+ "bbox": [
351
+ 181,
352
+ 702,
353
+ 820,
354
+ 768
355
+ ],
356
+ "page_idx": 2
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "Data used in this work comprised of task-related scans from 28 (five females) healthy participants, all of whom gave written, informed, IRB-approved consent at Hartford Hospital and were compensated for participation1. All participants were scanned during an auditory oddball task (AOD) involving the detection of an infrequent target sound within a series of standard and novel sounds2. ",
361
+ "bbox": [
362
+ 174,
363
+ 827,
364
+ 825,
365
+ 883
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Scans were acquired at the Olin Neuropsychiatry Research Center at the Institute of Living/Hartford Hospital on a Siemens Allegra 3T dedicated head scanner equipped with $4 0 \\mathrm { m T } / \\mathrm { m }$ gradients and a standard quadrature head coil [4, 9]. The AOD consisted of two 8-min runs, and 249 scans (volumes) at 2 second TR $0 . 5 \\ \\mathrm { H z }$ sampling rate) were used for the final dataset. Data were post-processed using the SPM5 software package [12], motion corrected using INRIalign [11], and subsampled to $5 3 \\times 6 3 \\times 4 6$ voxels. The complete fMRI dataset was masked below mean and the mean image across the dataset was removed, giving a complete dataset of size 70969 voxels by 6972 volumes. Each voxel was then normalized to have zero mean and unit variance. ",
372
+ "bbox": [
373
+ 173,
374
+ 103,
375
+ 825,
376
+ 214
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "The RBM was constructed using 70969 Gaussian visible units and 64 hyperbolic tangent hidden units. The hyper parameters $\\epsilon$ (0.08 from the searched $[ 1 \\times 1 0 ^ { - 4 } , 1 \\times 1 \\dot { 0 } ^ { - 1 } ]$ range) for learning rate and $\\lambda$ (0.1 from the searched range $[ 1 \\times \\mathrm { { 1 0 ^ { - 2 } , 1 \\times 1 0 ^ { - 1 } } } ] )$ for $L _ { 1 }$ weight decay were selected as those that showed a reduction of reconstruction error over training and a significant reduction in span of the receptive fields respectively. Parameter value outside the ranges either resulted in unstable or slow learning (\u000f) or uninterpretable features $( \\lambda )$ . The RBM was then trained with a batch size of 5 for approximately 100 epochs to allow for full convergence of the parameters. ",
383
+ "bbox": [
384
+ 176,
385
+ 222,
386
+ 576,
387
+ 388
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "image",
393
+ "img_path": "images/70ccc1f25a64c86a603394c7ffb5b0be3ebecdbb876b304f5e099240f7dd66be.jpg",
394
+ "image_caption": [
395
+ "Figure 3: Intrinsic brain networks estimated by ICA and RBM. "
396
+ ],
397
+ "image_footnote": [],
398
+ "bbox": [
399
+ 589,
400
+ 227,
401
+ 823,
402
+ 356
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "After flipping the sign of negative receptive fields, we then identified and labeled spatially distinct features as corresponding to brain regions with the aid of AFNI [5] excluding features which had a high probability of corresponding to white matter, ventricles, or artifacts (eg. motion, edges). ",
409
+ "bbox": [
410
+ 174,
411
+ 396,
412
+ 823,
413
+ 438
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "We normalized the fMRI volume time series to mean zero and used the trained RBM in feed-forward mode to compute time series for each fMRI feature. This was done to better compare to ICA, where the mean is removed in PCA preprocessing. ",
420
+ "bbox": [
421
+ 176,
422
+ 444,
423
+ 825,
424
+ 487
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "The work-flow is outlined in Figure 2, while Figure 3 shows comparison of resulting features with those obtained by Infomax ICA. In general, RBM performs competitively with ICA, while providing–perhaps, not surprisingly due to the used $L _ { 1 }$ regularization—sharper and more localized features. While we recognize that this is a subjective measure we list more features in Figure S2 of Section 5 and note that RBM features lack negative parts for corresponding features. Note, that in the case of $L _ { 1 }$ regularized weights RBM algorithms starts to resemble some of the ICA approaches (such as the recent RICA by Le at al. [20]), which may explain the similar performance. However, the differences and possible advantages are the generative nature of the RBM and no enforcement of component orthogonality (not explicit at the least). Moreover, the block structure of the correlation matrix (see below the Supplementary material section) of feature time courses provide a grouping that is more physiologically supported than that provided by ICA. For example, see Figure S1 in the supplementary material section below. Perhaps, because ICA working hard to enforce spatial independence subtly affects the time courses and their cross-correlations in turn. We have observed comparable running times of the (non GPU) ICA (http://www.nitrc.org/projects/gift) and a GPU implementation of the RBM (https://github.com/nitishsrivastava/deepnet). ",
431
+ "bbox": [
432
+ 174,
433
+ 493,
434
+ 825,
435
+ 715
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "3 Validating the depth effect ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 176,
445
+ 724,
446
+ 424,
447
+ 742
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Since the RBM results demonstrate a feature-learning performance competitive with the state of the art (or better), we proceed to investigating the effects of the model depth. To do that we turn from fMRI to sMRI data. As it is commonly assumed in the deep learning literature [22] the depth is often improving classification accuracy. We investigate if that is indeed true in the sMRI case. Structural data is convenient for the purpose as each subject/session is represented only by a single volume that has a label: control or patient in our case. Compare to 4D data where hundreds of volumes belong to the same subject with the same disease state. ",
454
+ "bbox": [
455
+ 174,
456
+ 756,
457
+ 825,
458
+ 853
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "3.1 A deep belief network ",
465
+ "text_level": 1,
466
+ "bbox": [
467
+ 174,
468
+ 869,
469
+ 364,
470
+ 883
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "A DBN is a sigmoidal belief network (although other activation functions may be used) with an RBM as the top level prior. The joint probability distribution of its visible and hidden units is ",
477
+ "bbox": [
478
+ 174,
479
+ 895,
480
+ 823,
481
+ 924
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "parametrized as follows: ",
488
+ "bbox": [
489
+ 173,
490
+ 103,
491
+ 334,
492
+ 117
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "equation",
498
+ "img_path": "images/034a9bca17b958ad18fe6b11458de31a470237beea190c0545436adf9c327f3f.jpg",
499
+ "text": "$$\nP ( v , h ^ { 1 } , h ^ { 2 } , \\dots , h ^ { l } ) = P ( v | h ^ { 1 } ) P ( h ^ { 1 } | h ^ { 2 } ) \\cdots P ( h ^ { l - 2 } , h ^ { l - 1 } ) P ( h ^ { l - 1 } , h ^ { l } ) ,\n$$",
500
+ "text_format": "latex",
501
+ "bbox": [
502
+ 251,
503
+ 122,
504
+ 746,
505
+ 142
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "where $l$ is the number of hidden layers, $P ( h ^ { l - 1 } , h ^ { l } )$ is an RBM, and $P ( h ^ { i } | h ^ { i + 1 } )$ factor into individual conditionals: ",
512
+ "bbox": [
513
+ 173,
514
+ 147,
515
+ 826,
516
+ 178
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "equation",
522
+ "img_path": "images/f7e23afd4a3a2375e6ceab64af3e58232e4c6435f54c1aebb4fe04c87c5e0e05.jpg",
523
+ "text": "$$\nP ( h ^ { i } | h ^ { i + 1 } ) = \\prod _ { j = 1 } ^ { n _ { i } } P ( h _ { j } ^ { i } | h ^ { i + 1 } )\n$$",
524
+ "text_format": "latex",
525
+ "bbox": [
526
+ 393,
527
+ 180,
528
+ 604,
529
+ 223
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "The important property of DBN for our goals of feature learning to facilitate discovery is its ability to operate in generative mode with fixed values on chosen hidden units thus allowing one to investigate the features that the model have learned and/or weighs as important in discriminative decisions. We, however, not going to use this property in this section, focusing instead on validating the claim that a network’s depth provides benefits for neuroimaging data analysis. And we will do this using discriminative mode of DBN’s operation as it provides an objective measure of the depth effect. ",
536
+ "bbox": [
537
+ 173,
538
+ 227,
539
+ 825,
540
+ 311
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "DBN training splits into two stages: pre-training and discriminative fine tuning. A DBN can be pre-trained by treating each of its layers as an RBM—trained in an unsupervised way on inputs from the previous layer—and later fine-tuned by treating it as a feed-forward neural network. The latter allows supervised training via the error back propagation algorithm. We use this schema in the following by augmenting each DBN with a soft-max layer at the fine-tuning stage. ",
547
+ "bbox": [
548
+ 174,
549
+ 318,
550
+ 825,
551
+ 387
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "3.2 Nonlinear embedding as a constraint satisfaction problem ",
558
+ "text_level": 1,
559
+ "bbox": [
560
+ 181,
561
+ 404,
562
+ 612,
563
+ 419
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "A DBN and an RBM operate on data samples, which are brain volumes in the fMRI and sMRI case. A five-minute fMRI experiment with 2 seconds sampling rate yields 150 of these volumes per subject. For sMRI studies number of participating subjects varies but in this paper we operate with a 300 and a 3500 subject-volumes datasets. Transformations learned by deep learning methods do not look intuitive in the hidden node space and generative sampling of the trained model does not provide a sense if a model have learned anything useful in the case of MRI data: in contrast to natural images, fMRI and sMRI images do not look very intuitive. Instead, we use a nonlinear embedding method to control whether a model learned useful information and to assist in investigation of what have it, in fact, learned. ",
570
+ "bbox": [
571
+ 173,
572
+ 430,
573
+ 825,
574
+ 555
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "One of the purposes of an embedding is to display a complex high dimensional dataset in a way that is $i$ ) intuitive, and $\\Ddot { u }$ ) representative of the data sample. The first requirement usually leads to displaying data samples as points in a 2-dimensional map, while the second is more elusive and each approach addresses it differently. Embedding approaches include relatively simple random linear projections—provably preserving some neighbor relations [6]—and a more complex class of nonlinear embedding approaches [30, 32, 34, 36]. In an attempt to organize the properties of this diverse family we have aimed at representing nonlinear embedding methods under a single constraint satisfaction problem (CSP) framework (see below). We hypothesize that each method places the samples in a map to satisfy a specific set of constraints. Although this work is not yet complete, it proven useful in our current study. We briefly outline the ideas in this section to provide enough intuition of the method that we further use in Section 3. ",
581
+ "bbox": [
582
+ 173,
583
+ 561,
584
+ 825,
585
+ 714
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Since we can control the constraints in the CSP framework, to study the effect of deep learning we choose them to do the least amount of work—while still being useful—letting the DBN do (or not) the hard part. A more complicated method such as t-SNE [36] already does complex processing to preserve the structure of a dataset in a 2D map – it is hard to infer if the quality of the map is determined by a deep learning method or the embedding. While some of the existing method may have provided the “least amount of work” solutions as well we chose to go with the CSP framework. It explicitly states the constraints that are being satisfied and thus lets us reason about deep learning effects within the constraints, while with other methods—where the constraints are implicit—this would have been harder. ",
592
+ "bbox": [
593
+ 173,
594
+ 722,
595
+ 825,
596
+ 847
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "A constraint satisfaction problem (CSP) is one requiring a solution that satisfies a set of constraints. One of the well known examples is the boolean satisfiability problem (SAT). There are multiple other important CSPs such as the packing, molecular conformations, and, recently, error correcting codes [7]. Freedom to setup per point constraints without controlling for their global interactions makes a CSP formulation an attractive representation of the nonlinear embedding problem. Pursuing this property we use the iterative “divide and concur” (DC) algorithm [13] as the solver for our representation. In DC algorithm we treat each point on the solution map as a variable and assign a set of constraints that this variable needs to satisfy (more on these later). Then each points gets a “replica” for each constraint it is involved into. Then DC algorithm alternates the divide and concur projections. The divide projection moves each “replica” points to the nearest locations in the 2D map that satisfy the constraint they participate in. The concur projection concurs locations of all “replicas” of a point by placing them at the average location on the map. The key idea is to avoid local traps by combining the divide and concur steps within the difference map [8]. A single location update is represented by: ",
603
+ "bbox": [
604
+ 174,
605
+ 854,
606
+ 823,
607
+ 924
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "",
614
+ "bbox": [
615
+ 174,
616
+ 103,
617
+ 825,
618
+ 229
619
+ ],
620
+ "page_idx": 5
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "img_path": "images/fa7ce1be22ae91ee20dbb025907340bc7b601263a1731f9b7344daa68d84c58c.jpg",
625
+ "text": "$$\n\\begin{array} { r l } & { x _ { c } = P _ { c } ( ( 1 + 1 / \\beta ) * P _ { d } ( x ) - 1 / \\beta * x ) } \\\\ & { x _ { d } = P _ { d } ( ( 1 - 1 / \\beta ) * P _ { c } ( x ) + 1 / \\beta * x ) } \\\\ & { x = x + \\beta * ( x _ { c } - x _ { d } ) , } \\end{array}\n$$",
626
+ "text_format": "latex",
627
+ "bbox": [
628
+ 364,
629
+ 232,
630
+ 632,
631
+ 287
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "where $P _ { d } ( \\cdot )$ and $P _ { c } ( \\cdot )$ denote the divide and concur projections and $\\beta$ is a user-defined parameter. ",
638
+ "bbox": [
639
+ 169,
640
+ 290,
641
+ 810,
642
+ 305
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "While the concur projection will only differ by subsets of “replicas” across different methods representable in DC framework, the divide projection is unique and defines the algorithm behavior. In this paper, we choose a divide projection that keeps $k$ nearest neighbors of each point in the higher dimensional space also its neighbors in the 2D map. This is a simple local neighborhood constraint that allows us to assess effects of deep learning transformation leaving most of the mapping decisions to the deep learning. ",
649
+ "bbox": [
650
+ 174,
651
+ 310,
652
+ 825,
653
+ 395
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "Note, that for a general dataset we may not be able to satisfy this constraint: each point has exactly the same neighbors in 2D as in the original space (and this is what we indeed observe). The DC algorithm, however, is only guaranteed to find the solution if it exists and oscillates otherwise. Oscillating behavior is detectable and may be used to stop the algorithm. We found informative watching the 2D map in dynamics, as the points that keep oscillating provide additional information into the structure of the data. Another practically important feature of the algorithm: it is deterministic. Given the same parameters ( $\\beta$ and the parameters of $P _ { d } ( \\cdot )$ ) it converges to the same solution regardless of the initial point. If each of the points participates in each constraint then complexity of the algorithm is quadratic. With our simple $k$ neighborhood constraints it is $O ( k n )$ , for $n$ samples/points. ",
660
+ "bbox": [
661
+ 173,
662
+ 401,
663
+ 825,
664
+ 541
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "3.3 A schizophrenia structural MRI dataset ",
671
+ "text_level": 1,
672
+ "bbox": [
673
+ 174,
674
+ 558,
675
+ 490,
676
+ 571
677
+ ],
678
+ "page_idx": 5
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "We use a combined data from four separate schizophrenia studies conducted at Johns Hopkins University (JHU), the Maryland Psychiatric Research Center (MPRC), the Institute of Psychiatry, London, UK (IOP), and the Western Psychiatric Institute and Clinic at the University of Pittsburgh (WPIC) (the data used in Meda et al. [25]). The combined sample comprised 198 schizophrenia patients and 191 matched healthy controls and contained both first episode and chronic patients [25]. At all sites, whole brain MRIs were obtained on a $1 . 5 \\mathrm { T }$ Signa GE scanner using identical parameters and software. Original structural MRI images were segmented in native space and the resulting gray and white matter images then spatially normalized to gray and white matter templates respectively to derive the optimized normalization parameters. These parameters were then applied to the whole brain structural images in native space prior to a new segmentation. The obtained 60465 voxel gray matter images were used in this study. Figure 4 shows example orthogonal slice views of the gray matter data samples of a patient and a healthy control. ",
683
+ "bbox": [
684
+ 174,
685
+ 584,
686
+ 552,
687
+ 776
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "image",
693
+ "img_path": "images/c4b5a343fc1e4cb85c20d34f23973aa6ac9d95e1c2b63880dbf4b1bc1bf866da.jpg",
694
+ "image_caption": [
695
+ "Figure 4: A smoothed gray matter segmentation of a patient and a healthy control: each is a training sample. "
696
+ ],
697
+ "image_footnote": [],
698
+ "bbox": [
699
+ 568,
700
+ 585,
701
+ 812,
702
+ 710
703
+ ],
704
+ "page_idx": 5
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "",
709
+ "bbox": [
710
+ 174,
711
+ 779,
712
+ 823,
713
+ 833
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "The main question of this Section is to evaluate the effect of the depth of a DBN on sMRI. To answer this question, we investigate if classification rates improve with the depth. For that we sequentially investigate DBNs of 3 depth. From RBM experiments we have learned that even with a larger number of hidden units (72, 128 and 512) RBM tends to only keep around 50 features driving the rest to zero. Classification rate and reconstruction error still slightly improves, however, when the number of hidden units increases. These observations affected our choice of 50 hidden units of the first two layers and 100 for the third. Each hidden unit is connected to all units in the previous layer which results in an all to all connectivity structure between the layers, which is a more common and conventional approach to constructing these models. Note, larger networks (up to double the umber of units) lead to similar results. We pre-train each layer via an unsupervised RBM and discriminatively fine-tune models of depth 1 (50 hidden units in the top layer), 2 (50-50 hidden units in the first and the top layer respectively), and 3 (50-50-100 hidden units in the first, second and the top layer respectively) by adding a softmax layer on top of each of these models and training via the back propagation. ",
720
+ "bbox": [
721
+ 174,
722
+ 840,
723
+ 825,
724
+ 922
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "",
731
+ "bbox": [
732
+ 174,
733
+ 103,
734
+ 825,
735
+ 215
736
+ ],
737
+ "page_idx": 6
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "We estimate the accuracy of classification via 10-fold cross validation on fine-tuned models splitting the 389 subject dataset into 10 approximately class-balanced folds. We train the rbf-kernel SVM, logistic regression and a k-nearest neighbors (knn) classifier using activations of the top-most hidden layers in fine-tuned models to the training data of each fold as their input. The testing is performed likewise but on the test data. We also perform the same 10-fold cross validation on the raw data. Table 1 summarizes the precision and recall values in the F-scores and their standard deviations. ",
742
+ "bbox": [
743
+ 173,
744
+ 222,
745
+ 825,
746
+ 305
747
+ ],
748
+ "page_idx": 6
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "All models demonstrate a similar trend when the accuracy only slightly increases from depth-1 to depth-2 DBN and then improves signifi",
753
+ "bbox": [
754
+ 173,
755
+ 313,
756
+ 367,
757
+ 382
758
+ ],
759
+ "page_idx": 6
760
+ },
761
+ {
762
+ "type": "table",
763
+ "img_path": "images/71826a1323965eacee17296b26cfae624bba80bfc88d30afbee3b448e1c6071b.jpg",
764
+ "table_caption": [],
765
+ "table_footnote": [
766
+ "Table 1: Classification on fine-tuned models (test data) "
767
+ ],
768
+ "table_body": "<table><tr><td>depth</td><td>raw</td><td>1</td><td>2</td><td>3</td></tr><tr><td>SVMF-score</td><td>0.68 ±0.01</td><td>0.66 ±0.09</td><td>0.62 ±0.12</td><td>0.90±0.14</td></tr><tr><td>LRF-score</td><td>0.63 ± 0.09</td><td>0.65 ±0.11</td><td>0.61±0.12</td><td>0.91±0.14</td></tr><tr><td>KNNF-score</td><td>0.61 ± 0.11</td><td>0.55 ± 0.15</td><td>0.58 ± 0.16</td><td>0.90±0.16</td></tr></table>",
769
+ "bbox": [
770
+ 390,
771
+ 318,
772
+ 823,
773
+ 361
774
+ ],
775
+ "page_idx": 6
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "cantly. Table 1 supports the general claim of deep learning community about improvement of classification rate with the depth even for sMRI data. Improvement in classification even for the simple knn classifier indicates the character of the transformation that the DBN learns and applies to the data: it may be changing the data manifold to organize classes by neighborhoods. Ideally, to make general conclusion about this transformation we need to analyze several representative datasets. However, even working with the same data we can have a closer view of the depth effect using the method introduced in Section 3.2. Although it may seem that the DBN does not provide significant improvements in sMRI classification from depth-1 to depth-2 in this model, it keeps on learning potentially useful transformaions of the data. We can see that using our simple local neighborhoodbased embedding. Figure 5 displays 2D maps of the raw data, as well as the depth 1, 2, and 3 activations (of a network trained on 335 subjects): the deeper networks place patients and control groups further apart. Additionally, Figure 5 displays the 54 subjects that the DBN was not train on. These hold out subjects are also getting increased separation with depth. This DBN’s behavior is potentially useful for generalization, when larger and more diverse data become available. ",
780
+ "bbox": [
781
+ 173,
782
+ 382,
783
+ 825,
784
+ 479
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "image",
790
+ "img_path": "images/476d7f9ec0679dcbfd04d1eaf746d79f5ea4d2c6d16e5a4e64ca1d42cdbab586.jpg",
791
+ "image_caption": [
792
+ "Figure 5: Effect of a DBN’s depth on neighborhood relations. Each map is shown at the same iteration of the algorithm with the same $k = 5 0$ . The color differentiates the classes (patients and controls) and the training (335 subjects) from validation (54 subjects) data. Although the data becomes separable at depth 1 and more so at depth 2, the DBN continues distilling details that pull the classes further apart. "
793
+ ],
794
+ "image_footnote": [],
795
+ "bbox": [
796
+ 176,
797
+ 486,
798
+ 825,
799
+ 633
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "",
806
+ "bbox": [
807
+ 173,
808
+ 724,
809
+ 825,
810
+ 821
811
+ ],
812
+ "page_idx": 6
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Our new mapping method has two essential properties to facilitate the conclusion and provide confidence in the result: its already mentioned local properties and the deterministic nature of the algorithm. The latter leads to independence of the resulting maps from the starting point. The map only depends on the models parameter $k$ —the size of the neighborhood—and the data. ",
817
+ "bbox": [
818
+ 174,
819
+ 829,
820
+ 823,
821
+ 886
822
+ ],
823
+ "page_idx": 6
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "3.4 A large-scale Huntington disease data ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 174,
831
+ 901,
832
+ 475,
833
+ 916
834
+ ],
835
+ "page_idx": 6
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "In this section we focus on sMRI data collected from healthy controls and Huntington disease (HD) patients as part of the PREDICT-HD project (www.predict-hd. net). Huntington disease is a genetic neurodegenerative disease that results in degeneration of neurons in certain areas of the brain. The project is focused on identifying the earliest detectable changes in thinking skills, emotions and brain structure as a person begins the transition from health to being diagnosed with Huntington disease. We would like to know if deep learning methods can assist in answering that question. ",
840
+ "bbox": [
841
+ 174,
842
+ 103,
843
+ 552,
844
+ 256
845
+ ],
846
+ "page_idx": 7
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "For this study T1-weighted scans were collected at multiple sites (32 international sites), representing multiple field strengths (1.5T and 3.0T) and multiple manufactures (Siemens, Phillips, and GE). The 1.5T T1 weighted scans were an axial 3D volumetric spoiled-gradient echo series $( \\approx 1 \\times 1 \\times 1 . 5 ~ \\mathrm { m m }$ voxels), and the 3.0T T1 weighted scans were a 3D Volumetric MPRAGE series $( \\approx 1 \\times 1 \\times 1 \\ : \\mathrm { m n }$ m voxels). ",
851
+ "bbox": [
852
+ 173,
853
+ 263,
854
+ 552,
855
+ 291
856
+ ],
857
+ "page_idx": 7
858
+ },
859
+ {
860
+ "type": "image",
861
+ "img_path": "images/73650e39fcfeef56626cab5dffbf6d664648d47ea362e5822a60fc11d81800a5.jpg",
862
+ "image_caption": [
863
+ "Figure 6: A gray matter of MRI scans of an HD patient and a healthy control. "
864
+ ],
865
+ "image_footnote": [],
866
+ "bbox": [
867
+ 568,
868
+ 108,
869
+ 812,
870
+ 234
871
+ ],
872
+ "page_idx": 7
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "",
877
+ "bbox": [
878
+ 174,
879
+ 292,
880
+ 825,
881
+ 347
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "The images were segmented in the native space and the normalized to a common template. After correlating ",
888
+ "bbox": [
889
+ 173,
890
+ 354,
891
+ 367,
892
+ 410
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "equation",
898
+ "img_path": "images/d5ccecaa66e79a2cca10e59f1c48307e58dfd75fc8bcad9ea8e5f17377a989ec.jpg",
899
+ "text": "$$\n\\begin{array}{c} \\begin{array} { r l } { \\mathsf { d e p t h } } & { { } \\parallel \\mathsf { r a w } } \\\\ { S V M F ^ { - s c o r e } } \\\\ { L R F ^ { - s c o r e } } \\end{array} \\left\\| \\begin{array} { l l } { \\mathrm { \\Delta ~ n w ~ } } & { { } 0 . 6 5 \\pm 0 . 0 1 } \\\\ { 0 . 7 5 } & { { } 0 . 6 5 \\pm 0 . 0 1 } \\end{array} \\right. & { 0 . 6 5 \\pm 0 . 0 1 \\quad 1 . 0 0 \\pm 0 . 0 0 } \\\\ { 0 . 6 5 \\pm 0 . 0 1 } & { { } 0 . 6 5 \\pm 0 . 0 1 } \\end{array}\n$$",
900
+ "text_format": "latex",
901
+ "bbox": [
902
+ 403,
903
+ 356,
904
+ 802,
905
+ 392
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "table",
911
+ "img_path": "",
912
+ "table_caption": [
913
+ "Table 2: Classification on fine-tuned models (HD data) "
914
+ ],
915
+ "table_footnote": [],
916
+ "page_idx": 7
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "the normalized gray matter segmentation with the template and eliminating poorly correlating scans we obtain a dataset of 3500 scans, where 2641 were from patients and 859 from healthy controls. We have used all of the scans in this imbalanced sample to pre-train and fine tune the same model architecture (50-50-100) as in Section 3.3 for all three depths3. ",
921
+ "bbox": [
922
+ 174,
923
+ 411,
924
+ 826,
925
+ 465
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Table 2 lists the average F-score values for both classes at the raw data and all depth levels. Note the drop from the raw data and then a recovery at depth 3. The limited capacity of levels 1 and 2 has reduced the network ability to differentiate the groups but representational capacity of depth 3 network compensates for the initial bottleneck. This, confirms our previous observation on the depth effect, however, does not yet help the main question of the PREDICT-HD study. Note, however, while Table 1 in the previous section evaluates generalization ability of the DBN, Table 2 here only demonstrates changes in DBN’s representational capacity with the depth as we use no testing data. To further investigate utility of the deep learning approach for scientific discovery we again augment it with the embedding method of Section 3.2. Figure 7 shows the map of 3500 scans of HD patients and healthy controls. Each point on the map is an sMRI volume, shown in Figures 6 and 7. Although we have used the complete data to train the DBN, discriminative fine-tuning had access only to binary label: control or patient. In addition to that, we have information about severity of the disease from low to high. We have color coded this information in Figure 7 from bright yellow (low) through orange (medium) to red (high). The network4 discriminates the patients by disease severity which results in a spectrum on the map. Note, that neither t-SNE (not shown), nor our new embedding see the spectrum or even the patient groups in the raw data. This is a important property of the method that may help support its future use in discovery of new information about the disease. ",
932
+ "bbox": [
933
+ 174,
934
+ 473,
935
+ 529,
936
+ 819
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "image",
942
+ "img_path": "images/eeeb39731b80a20709ab71582b9bc533ca1ffc2bcf1813556881823eb58f2849.jpg",
943
+ "image_caption": [
944
+ "Figure 7: Patients and controls group separation map with additional unsupervised spectral decomposition of sMRI scans by disease severity. The map represents 3500 scans. "
945
+ ],
946
+ "image_footnote": [],
947
+ "bbox": [
948
+ 544,
949
+ 470,
950
+ 816,
951
+ 739
952
+ ],
953
+ "page_idx": 7
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "",
958
+ "bbox": [
959
+ 174,
960
+ 819,
961
+ 825,
962
+ 875
963
+ ],
964
+ "page_idx": 7
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "4 Conclusions ",
969
+ "text_level": 1,
970
+ "bbox": [
971
+ 174,
972
+ 102,
973
+ 307,
974
+ 118
975
+ ],
976
+ "page_idx": 8
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Our investigations show that deep learning has a high potential in neuroimaging applications. Even the shallow RBM is already competitive with the model routinely used in the field: it produces physiologically meaningful features which are (desirably) highly focal and have time course cross correlations that connect them into meaningful functional groups (Section 5). The depth of the DBN does indeed help classification and increases group separation. This is apparent on two sMRI datasets collected under varying conditions, at multiple sites each, from different disease groups, and pre-processed differently. This is a strong evidence of DBNs robustness. Furthermore, our study shows a high potential of DBNs for exploratory analysis. As Figure 7 demonstrates, DBN in conjunction with our new mapping method can reveal hidden relations in data. We did find it difficult initially to find workable parameter regions, but we hope that other researchers won’t have this difficulty starting from the baseline that we provide in this paper. ",
981
+ "bbox": [
982
+ 173,
983
+ 121,
984
+ 825,
985
+ 273
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "References ",
992
+ "text_level": 1,
993
+ "bbox": [
994
+ 174,
995
+ 294,
996
+ 266,
997
+ 309
998
+ ],
999
+ "page_idx": 8
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "[1] A. J. Bell and T. J. Sejnowski. An information-maximization approach to blind separation and blind deconvolution. Neural Computation, 7(6):1129–1159, November 1995. [2] Bharat Biswal, F Zerrin Yetkin, Victor M Haughton, and James S Hyde. Functional connectivity in the motor cortex of resting human brain using echo-planar mri. Magnetic resonance in medicine, 34(4):537–541, 1995. \n[3] M.J. Brookes, M. Woolrich, H. Luckhoo, D. Price, J.R. Hale, M.C. Stephenson, G.R. Barnes, S.M. Smith, and P.G. Morris. Investigating the electrophysiological basis of resting state networks using magnetoencephalography. Proceedings of the National Academy of Sciences, 108(40):16783–16788, 2011. [4] V. D. Calhoun, K. A. Kiehl, and G. D. Pearlson. Modulation of temporally coherent brain networks estimated using ICA at rest and during cognitive tasks. Human Brain Mapping, 29(7):828–838, 2008. \n[5] R. W. Cox et al. AFNI: software for analysis and visualization of functional magnetic resonance neuroimages. Computers and Biomedical Research, 29(3):162–173, 1996. [6] T. de Vries, S. Chawla, and M. E. Houle. Finding local anomalies in very high dimensional space. In Proceedings of the 10th $\\{ I E E E \\}$ international conference on data mining, pages 128–137. IEEE, IEEE Computer Society, 2010. [7] Nate Derbinsky, Jose Bento, Veit Elser, and Jonathan S Yedidia. An improved three-weight ´ message-passing algorithm. arXiv preprint arXiv:1305.1961, 2013. [8] V. Elser, I. Rankenburg, and P. Thibault. Searching with iterated maps. Proceedings of the National Academy of Sciences, 104(2):418, 2007. [9] Nathan Swanson et. al. Lateral differences in the default mode network in healthy controls and patients with schizophrenia. Human Brain Mapping, 32:654–664, 2011. \n[10] Asja Fischer and Christian Igel. An introduction to restricted boltzmann machines. In Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications, pages 14–36. Springer, 2012. \n[11] L. Freire, A. Roche, and J. F. Mangin. What is the best similarity measure for motion correction in fMRI. IEEE Transactions in Medical Imaging, 21:470–484, 2002. \n[12] Karl J Friston, Andrew P Holmes, Keith J Worsley, J-P Poline, Chris D Frith, and Richard SJ Frackowiak. Statistical parametric maps in functional imaging: a general linear approach. Human brain mapping, 2(4):189–210, 1994. \n[13] S. Gravel and V. Elser. Divide and concur: A general approach to constraint satisfaction. Physical Review E, 78(3):36706, 2008. \n[14] Trevor. Hastie, Robert. Tibshirani, and JH (Jerome H.) Friedman. The elements of statistical learning. Springer, 2009. \n[15] G. Hinton and R. Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786):504–507, 2006. \n[16] G. E. Hinton, S. Osindero, and Y. W. Teh. A fast learning algorithm for deep belief nets. Neural computation, 18(7):1527–1554, 2006. \n[17] Geoffrey Hinton. Training products of experts by minimizing contrastive divergence. Neural Computation, 14:2002, 2000. \n[18] P. O. Hoyer. Non-negative sparse coding. In Neural Networks for Signal Processing, 2002. Proceedings of the 2002 12th IEEE Workshop on, pages 557–565, 2002. \n[19] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Neural Information Processing Systems, 2012. \n[20] Quoc V Le, Alexandre Karpenko, Jiquan Ngiam, and Andrew Y Ng. Ica with reconstruction cost for efficient overcomplete feature learning. In NIPS, pages 1017–1025, 2011. \n[21] Quoc V. Le, Rajat Monga, Matthieu Devin, Kai Chen, Greg S. Corrado, Jeff Dean, and Andrew Y. Ng. Building high-level features using large scale unsupervised learning. In International Conference on Machine Learning. 103, 2012. \n[22] N. Le Roux and Y. Bengio. Deep belief networks are compact universal approximators. Neural computation, 22(8):2192–2207, 2010. \n[23] Jingyu Liu and Vince Calhoun. Parallel independent component analysis for multimodal analysis: Application to fmri and eeg data. In Biomedical Imaging: From Nano to Macro, 2007. ISBI 2007. 4th IEEE International Symposium on, pages 1028–1031. IEEE, 2007. \n[24] M. J. McKeown, S. Makeig, G. G. Brown, T. P. Jung, S. S. Kindermann, A. J. Bell, and T. J. Sejnowski. Analysis of fMRI data by blind separation into independent spatial components. Human Brain Mapping, 6(3):160–188, 1998. \n[25] Shashwath A Meda, Nicole R Giuliani, Vince D Calhoun, Kanchana Jagannathan, David J Schretlen, Anne Pulver, Nicola Cascella, Matcheri Keshavan, Wendy Kates, Robert Buchanan, et al. A large scale $\\mathit { n } { } = 4 0 0 { }$ ) investigation of gray matter differences in schizophrenia using optimized voxel-based morphometry. Schizophrenia research, 101(1):95–105, 2008. \n[26] M. Moosmann, T. Eichele, H. Nordby, K. Hugdahl, and V. D. Calhoun. Joint independent component analysis for simultaneous EEG-fMRI: principle and simulation. International Journal of Psychophysiology, 67(3):212–221, 2008. \n[27] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pages 807–814, 2010. \n[28] V. K. Potluru and V. D. Calhoun. Group learning using contrast NMF : Application to functional and structural MRI of schizophrenia. Circuits and Systems, 2008. ISCAS 2008. IEEE International Symposium on, pages 1336–1339, May 2008. \n[29] Marcus E. Raichle, Ann Mary MacLeod, Abraham Z. Snyder, William J. Powers, Debra A. Gusnard, and Gordon L. Shulman. A default mode of brain function. Proceedings of the National Academy of Sciences, 98(2):676–682, 2001. \n[30] Sam T Roweis and Lawrence K Saul. Nonlinear dimensionality reduction by locally linear embedding. Science, (5500):2323–2326, 2000. \n[31] Mikail Rubinov and Olaf Sporns. Weight-conserving characterization of complex functional brain networks. Neuroimage, 56(4):2068–2079, 2011. \n[32] John W Sammon Jr. A nonlinear mapping for data structure analysis. Computers, IEEE Transactions on, 100(5):401–409, 1969. \n[33] Jing Sui, Tulay Adali, Qingbao Yu, Jiayu Chen, and Vince D. Calhoun. A review of multivariate methods for multimodal fusion of brain imaging data. Journal of Neuroscience Methods, 204(1):68–81, 2012. \n[34] Joshua B Tenenbaum, Vin De Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000. \n[35] M.P. van den Heuvel and H.E. Hulshoff Pol. Exploring the brain network: A review on restingstate fMRI functional connectivity. European Neuropsychopharmacology, 2010. \n[36] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(2579-2605):85, 2008. \n[37] Hui Zou, Trevor Hastie, and Robert Tibshirani. Sparse principal component analysis. Journal of computational and graphical statistics, 15(2):265–286, 2006. ",
1004
+ "bbox": [
1005
+ 176,
1006
+ 315,
1007
+ 826,
1008
+ 929
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "",
1015
+ "bbox": [
1016
+ 171,
1017
+ 74,
1018
+ 828,
1019
+ 926
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "5 Supplementary material ",
1026
+ "text_level": 1,
1027
+ "bbox": [
1028
+ 174,
1029
+ 102,
1030
+ 410,
1031
+ 119
1032
+ ],
1033
+ "page_idx": 10
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "The correlation matrices for both RBM and ICA results on the fMRI dataset of Section 2.3 are provided in Figure S1, where the ordering of components is performed separately for each method. Each network is named by their physiological function but we do not go in depth explaining these in the current paper. For RBM, modularity is more apparent, both visually and quantitatively. Modularity, as defined in [31], averages $0 . 4 0 \\pm 0 . 0 6 0$ across subjects for RBM, and $0 . 3 5 \\pm 0 . 0 5 6$ for ICA. These values are significantly greater for RBM $( t = 7 . 1 5 , p < 1 e - 6$ per the paired t-test). Also note that the scale of correlation values for RBM and ICA is different, which highlights that RBM overestimated strong FNC values. ",
1038
+ "bbox": [
1039
+ 173,
1040
+ 132,
1041
+ 825,
1042
+ 244
1043
+ ],
1044
+ "page_idx": 10
1045
+ },
1046
+ {
1047
+ "type": "image",
1048
+ "img_path": "images/ae7cce6d19fbb9d82bd5b077ad3a04815fb6c12d2a5a349b52cb5037cccb90d4.jpg",
1049
+ "image_caption": [
1050
+ "Figure S1: Correlation matrices determined from RBM (left) and ICA (right), averaged over subjects. Note that the color scales for RBM and ICA are different (RBM shows a larger range in correlations). The correlation matrix for ICA on the same scale as RBM is also provided as an inset (upper right). Feature groupings for RBM and ICA were determined separately using the FNC matrices and known anatomical and functional properties. "
1051
+ ],
1052
+ "image_footnote": [],
1053
+ "bbox": [
1054
+ 176,
1055
+ 262,
1056
+ 816,
1057
+ 525
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "image",
1063
+ "img_path": "images/f9a151bf4c870b7e24e5b9860efde560866c036587adf63bded04a361b7f39fd.jpg",
1064
+ "image_caption": [
1065
+ "Figure S2: Sample pairs consisting of RBM (top) and ICA (bottom) SMs thresholded at 2 standard deviations. Pairing was done with the aid of spatial correlations, temporal properties, and visual inspection. Values indicate the spatial correlation between RBM and ICA SMs. "
1066
+ ],
1067
+ "image_footnote": [],
1068
+ "bbox": [
1069
+ 173,
1070
+ 632,
1071
+ 825,
1072
+ 781
1073
+ ],
1074
+ "page_idx": 10
1075
+ }
1076
+ ]
parse/train/UVH3Ucewd-IXZ/UVH3Ucewd-IXZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/hbHkvGBZB9/hbHkvGBZB9_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1gzoaNtvr/r1gzoaNtvr.md ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EMERGENCE OF COMPOSITIONAL LANGUAGE WITH DEEP GENERATIONAL TRANSMISSION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Recent work has studied the emergence of language among deep reinforcement learning agents that must collaborate to solve a task. Of particular interest are the factors that cause language to be compositional—i.e. express meaning by combining words which themselves have meaning. Evolutionary linguists have found that in addition to structural priors like those already studied in deep learning, the dynamics of transmitting language from generation to generation contribute significantly to the emergence of compositionality. In this paper, we introduce these cultural evolutionary dynamics into language emergence by periodically replacing agents in a population to create a knowledge gap, implicitly inducing cultural transmission of language. We show that this implicit cultural transmission encourages the resulting languages to exhibit better compositional generalization.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Compositionality is an important structure of language that reflects a disentangled understanding of the world – enabling the expression of infinitely many concepts using finitely many elements. Agents that have compositional understandings of the world generalize in obviously correct ways even in the face of limited training examples (Lake & Baroni, 2018). For example, an agent with a compositional understanding of blue squares and purple triangles should also understand purple squares without directly observing any of them. Developing artificial agents that can ground, understand, and produce compositional (and therefore more interpretable) language could greatly improve generalization to new instances and ease human-AI interactions.
12
+
13
+ In building theories of how compositionality emerges in human languages, work in evolutionary linguistics looks to the process of cultural transmission (Kirby, 2001; Kirby et al., 2008). Cultural transmission of language occurs when a group of agents pass their language on to a new group of agents, e.g. parents who teach their children to speak as they do. Because this education is incomplete and biased, it allows the language itself to change over time via a process known as cultural evolution. This paradigm (Kirby et al., 2014) explains the emergence of compositionality as a result of expressivity and compressibility – i.e. to be most effective, a language should be expressive enough to differentiate between all possible meanings (e.g., objects) and compressible enough to be learned easily. Work in the evolutionary linguistics community has shown that over multiple ‘generations’ these competing pressures result in the emergence of compositional languages both in simulation (Kirby, 2001) and with human subjects (Kirby et al., 2008). These studies aim to understand humans whereas we want to understand and design artificial neural networks.
14
+
15
+ Approaching the problem from another direction, recent work in AI has studied language emergence in such multi-agent, goal-driven tasks. These works have demonstrated that agent languages will emerge to enable coordination-centric tasks to be solved without direct or even indirect language supervision (Foerster et al., 2016; Sukhbaatar et al., 2016; Lazaridou et al., 2017; Das et al., 2017). However, the resulting languages are usually not compositional (Kottur et al., 2017) and are difficult to interpret, even by other machines (Andreas et al., 2017). Some existing work has studied means to encourage compositional language formation (Mordatch & Abbeel, 2018; Kottur et al., 2017), but these settings study fixed populations of agents – i.e. examining language within a single generation.
16
+
17
+ In this work we bridge these two areas – examining the effect of generational cultural transmission on the compositionality of emergent languages in a multi-agent, goal-driven setting.
18
+
19
+ ![](images/d64c3dc18b10c42f786b8344e8cfe36b77969264468818f9ca45bddd10bb08bf.jpg)
20
+ (b) Implicit cultural transmission
21
+ Figure 1: We introduce cultural transmission into language emergence between neural agents. The starting point of our study is a goal-oriented dialog task (similar to that of Kottur et al. (2017)), summarized in Fig. 1a. During learning we periodically replace some agents with new ones (gray agents). These new agents do not know any language, but instead of creating one they learn it from older agents. This creates generations of language that become more compositional over time.
22
+
23
+ We study this in the context of a cooperative dialog-based reference game involving two agents communicating in discrete symbols (Kottur et al., 2017); an example dialog is shown in Fig. 1a. To examine cultural transmission, we extend this setting to a population of agents (Fig. 1b) and introduce a simple mechanism to induce the expressivity and compressibility pressures inherent in cultural transmission. Specifically, we periodically re-initialize some subset of the agents in the population. In order to perform well at the task, the population’s emergent language must be sufficiently expressive to reference all the objects (expressivity) and must be easily learnable by these ‘new’ agents (compressibility). The new agents have a randomized language whereas the surviving agents already know a grounded language. This “knowledge gap” creates an implicit ‘teaching’ setting that is analogous to the explicit transmission stage in models of iterative learning (Kirby, 2001).
24
+
25
+ Through our experiments and analysis, we show that periodic agent replacement is an effective way to induce cultural transmission and yields more compositionally generalizable language in our setting. To summarize, our contributions are:
26
+
27
+ – We propose a method for inducing implicit cultural transmission in neural language models. – We introduce new metrics to measure the similarity between agent languages and verify cultural transmission has occurred as a result of our periodic agent replacement protocol. We show our cultural transmission procedure induces compositionality in neural language models, going from $13 \%$ accuracy on a compositionally novel test set to $46 \%$ in the best configuration. Further, we show this is complementary with previous priors which encourage compositionality.
28
+
29
+ # 2 TASK & TALK: A TESTBED FOR COMPOSITIONAL LANGUAGE EMERGENCE
30
+
31
+ We consider the cooperative Task & Talk reference game introduced in Kottur et al. (2017). Shown in Fig. 1a, the game is played by two agents – one who observes an attributed object – e.g. (purple, solid, square) – and another who is given a task to retrieve a subset of these attributes over the course of the dialog – e.g. (color,shape). The dialog itself consists of two rounds of agents exchanging single-token utterances from fixed vocabularies. At the end of the dialog, the task-aware agent must report the requested attributes and both agents are rewarded for correct predictions. This causes a language grounded in the objects to emerge because there is no other way to solve the task.
32
+
33
+ A compositional solution to this task can look like a question-answer style dialog where the taskaware agent queries the other for specific attributes (Fig. 1a) – e.g. uttering “X” requesting the color to which the other agent replies “1” indicating purple. Importantly, this pattern would persist regardless of the other attribute values of the object (e.g. for all $( \mathtt { p u r p l e } , \star , \star )$ objects). However, as there is no grounding supervision provided, agents must learn to associate specific meanings to specific words and it is unlikely for compositional languages to emerge purely by chance. Given a color task, an agent might use “1” for (purple, solid, square) and then “2” for (purple, solid, circle). It is impossible for other agents to know that “2” means purple without having seen (purple, solid, circle), so compositional language is essential for generalization to compositionally novel instances.
34
+
35
+ Models. To formalize this setting, let Q-bot and A-bot be agent policies parameterized by neural networks $Q$ and $A$ respectively. At each round $t$ , Q-bot observes the task $x _ { Q }$ and it’s memory of the dialog so far $h _ { Q } ^ { t - 1 }$ and produces a single-token utterance $m _ { Q } ^ { t } \in \mathcal { V }$ from the vocabulary $\nu$ . Functionally, $m _ { Q } ^ { t } , h _ { Q } ^ { t } \stackrel { \cdot } { = } Q ( m _ { A } ^ { t - 1 } , x _ { Q } , h _ { Q } ^ { t - 1 } )$ where $m _ { A } ^ { t - 1 }$ is A-bot’s reply in the previous round. Likewise, A-bot responds by computing $\quad \quad m _ { A ; } ^ { t } , h _ { A _ { . } } ^ { t } = A ( m _ { Q } ^ { t } , x _ { A } , h _ { A } ^ { t - 1 } )$ where $x _ { A }$ is the object instance represented symbolically by concatenating 3 one-hot vectors, one per attribute. After two rounds, Q-bot must respond to the task, predicting the requested attribute pair $\hat { u } = U ( x _ { Q } , h _ { Q } ^ { T } )$ as a function of the task and Q-bot’s final memory state. Both agents are rewarded if both attributes are correct (no partial credit). We follow the neural network architectures of $Q , A$ , and $U$ from Kottur et al. (2017).
36
+
37
+ Measuring Compositional Generalization. Kottur et al. (2017) generated a synthetic dataset consisting of three attribute types (color, shape, style) each with four values (e.g. red, blue, square, star, dotted, solid, ...) and six tasks, one task for each ordered pair of different attribute types. In total, this results in 64 unique instances and 384 task-instance pairs. To evaluate compositionality, Kottur et al. (2017) held out 12 random instances for testing. Given the closed-world set of instances, these 12 are guaranteed to be never-before-seen triplets of attribute values; however, each individual value has been seen in training in other triplets. As such, accuracy on this set is a measure of compositional generalization.
38
+
39
+ Shortcomings of Kottur et al. (2017) Evaluation. In our investigations, we found some shortcomings in the evaluation protocol of Kottur et al. (2017). First, the authors do not report variance over multiple runs or different random test-sets which we found to be significant. Second, the strategy of randomly selecting the test set can still reward some only partially compositional strategies. For instance, suppose agents develop a language that uses single words to refer to attribute pairs like (red, $\star$ , triangle) and (red, filled, $\star$ ). Such agents might generalize to an unseen instance (red, filled, triangle) by composing the ‘paired’ words above instead of disentangling individual attributes.
40
+
41
+ We make two modifications to address these issues. Our results are reported as means and variances estimated from multiple training runs with different random seeds evaluated with 4-way crossvalidation. We also introduce a harder dataset where instead of withholding random individual instances (e.g., (green,dotted,triangle),. . . ) as in Kottur et al. (2017), we withhold all instances for a set of attribute pairs (e.g., (green,dotted, $\star$ ), $( \mathtt { r e d } , \mathtt { s o l i d } , \star ) , \dots )$ . We will refer to datasets generated in this fashion as novel pair and the original dataset as novel instance. We report on both settings for comparison, but find our new setting to be significantly more challenging in practice – requiring a stricter notion of compositionality that is more closely aligned with human intuitions about these attributes.
42
+
43
+ # 3 COMPOSITIONAL LANGUAGE EMERGENCE WITH CULTURAL TRANSMISSION
44
+
45
+ In iterative learning models of cultural transmission from evolutionary linguistics, competing pressures towards expressivity and compressibility have been shown to induce compositionality over multiple ‘generations’ of language transfer (Kirby, 2001; Kirby et al., 2008). The goal-driven nature of our reference game already encourages expressivity – agents must be able to refer to the objects in order to succeed. To introduce compressibility pressure and parallel literature in evolutionary linguistics, we introduce a population of agents which regularly has members replaced by new agents that lack any understanding of the remaining population’s language. As this paradigm lacks explicit teaching steps where new agents are trained to ground existing words, we consider this approach as a means of implicit cultural transmission.
46
+
47
+ Populations of Agents. We consider a population of Q-bots $\{ Q ^ { 1 } , \ldots , Q ^ { N _ { Q } } \}$ and a population of Abots $\{ A ^ { 1 } , \ldots , A ^ { \tilde { N _ { A } } } \}$ with each agent having a different set of parameters. At each iteration during learning, we sample a random Q-bot-A-bot pair to interact and receive updates $\mathrm { ~ - ~ } i . e .$ . the red line (2) in Alg. 1. As any Q-bot may be made to communicate with any A-bot, there is pressure for the population to adopt a unified language. Likewise, when an agent is reinitialized it will receive positive reward much more quickly when it happens to use language that its conversational partners understand. Furthermore, ‘compressible’ languages that are easier to learn will result in greater reward for the population in the face of periodic re-initialization of agents.
48
+
49
+ # Algorithm 1: Training with Replacement and Multiple Agents
50
+
51
+ ![](images/d9fb159b8995993138efdc0355babbc22213c082cff6da9b1e4522e7205d2628.jpg)
52
+
53
+ 11 return all Q-bots and A-bots.
54
+
55
+ Introducing multiple agents may in itself add compressibility pressure and improve generalizations even without replacement (Raviv et al., 2018). Agents in a population have to model minor linguistic differences between conversational partners given the same memory capacity. Further, each agent provides another potential language variation that can be mimicked and perpetuated–increasing language diversity early in training. We examine these effects through no-replacement baselines, but find that generational pressure where some agents know less than others can also be important for compositionality in our setting.
56
+
57
+ Replacement. In order to create a notion of ‘generations’ we replace agents periodically. Let $\pi$ be some replacement strategy that returns a subset of the population. Every $E$ epochs, we call $\pi$ and reinitialize the parameters and optimizers for the corresponding agents (blue lines 9-10 in Alg. 1). We investigate three settings of $\pi$ (appendix A.2 for more details):
58
+
59
+ Uniform Random. Sample an A-bot and Q-bot from uniform random distributions. – Epsilon Greedy. With probability $1 - \varepsilon$ replace the A-bot and Q-bot with the lowest validation accuracy. We use $\varepsilon = 0 . 2$ in our experiments. – Oldest. Replace the oldest A-bot and Q-bot, breaking ties with uniform random sampling.
60
+
61
+ # 4 EXPERIMENTAL SETTING
62
+
63
+ Experimental Setting. We evaluate on both our modified Task & Talk dataset and the original from Kottur et al. (2017), as described in Section 2. All results are reported as means and variances computed from a total of 16 trials (four random seeds each with 4-way cross-validation). We report accuracy based on Q-bot getting both elements of the task correct – corresponding to the more restrictive “Both” setting from Kottur et al. (2017).
64
+
65
+ Kottur et al. (2017) examined a series of increasingly restrictive settings in order to study conditions under which compositionality emerges. The primary variables are whether A-bot has memory (ablated by setting ${ h _ { A } ^ { \bar { t } } } { = } 0$ ) and the vocabulary sizes $\gamma _ { Q }$ and $\nu _ { A }$ for Q-bot and A-bot respectively. For comparison we also evaluate in these settings: Minimal Vocab ( $V _ { Q } { = } 3$ , $V _ { A } { = } 4$ ). Memoryless $^ +$ Minimal Vocab $V _ { Q } { = } 3$ , $V _ { A } { = } 4$ , ${ h _ { A } ^ { t } } \mathrm { { = } } 0 $ ), Overcomplete $V _ { Q } = V _ { A } = 6 \dot { 4 }$ ). We also introduce Memoryless $^ +$ Overcomplete $V _ { Q } = V _ { A } = 6 4$ , $h _ { A } ^ { t } { = } 0$ ) to complete the cross product of settings and examine the role of memory restriction in overcomplete vocabularies.
66
+
67
+ The Memoryless $^ +$ Minimal Vocabulary setting results in the best compositional generalization; however, this is an extreme setting – requiring not only that the minimum number of groundable symbols be known but also that A-bot not be able to remember it’s previous utterance. While we do report these settings and see quite large performance gains due to cultural transmission, we are mainly interested in the more realistic Overcomplete setting where a large pool of possible tokens is provided and both dialog agents remember the conversation.
68
+
69
+ Model and Training Details. Our A-bots and Q-bots have the same architectur as in Kottur et al. (2017). All agents are trained with $E = 2 5 0 0 0$ , a batch size of 1000, 1 and the Adam (Kingma & Ba, 2015) optimizer (one per bot) with learning rate 0.01. In the Multi Agent setting we use
70
+
71
+ ![](images/ca67aa287b00528c7c8e3eefeb9c5020788b825d6be972a2216a637b8e32a2a7.jpg)
72
+ Figure 2: Test set accuracies (with standard deviations) are reported against our new harder dataset using models similar to those in Kottur et al. (2017). Our variations on cultural transmission (darker blue bars) outperform the baselines where language does not change over generations.
73
+
74
+ $N _ { A } = N _ { Q } = 5$ . We stop training after 8 generations (199000 epochs Multi Agent; 39000 epochs Single Agent). This differs from Kottur et al. (2017), which stopped once train accuracy reached $100 \%$ . Further, we do not perform negative mining.
75
+
76
+ Baselines. We consider a set of baseline setting to isolate the effect of our approach.
77
+
78
+ – Single Agent Populations. We ablate the effect of multi-agent populations by training individual A-bot-Q-bot pairs (i.e. populations with $N _ { A } = N _ { Q } = 1 _ { , }$ ). We apply the uniform random (either A-bot or Q-bot at random) and oldest (alternating between A-bot and Q-bot) replacement strategies to these agents; however, the epsilon greedy strategy is not well-defined here. In this setting we decrease $E$ from 25000 to 5000 to keep the average number of gradient updates for each agent constant with respect to the multi-agent experiments.
79
+
80
+ – No Replacement. We also consider the effect of replacing no agents at all, but still allowing the agents to train for the full 199,000 (39,000) epochs. Improvement over this baseline shows the gains from our replacement strategy under identical computational budgets.
81
+
82
+ # 5 RESULTS AND ANALYSIS
83
+
84
+ # 5.1 IMPACT OF CULTURAL TRANSMISSION ON COMPOSITIONAL GENERALIZATION
85
+
86
+ Results with standard deviations against our harder dataset are reported in Fig. 2. We compared methods and models using dependent paired t-tests and reported the resulting p-values in Section A.3. Result on the original Task & Talk dataset are in Section A.1.
87
+
88
+ Cultural transmission induces compositionality. Our main result is that cultural transmission approaches outperform baselines without cultural transmission. This can be seen by noting that for each model type in Fig. 2, the 3 darker blue bars (Multi Agent Replacement approaches) are largest. After running a dependent paired t-test against all pairs of baselines and cultural transmission approaches we find a meaningful difference in all cases $( p \leq 0 . 0 5 )$ . This is strong support for our claim that our version of cultural transmission encourages compositional language because it causes better generalization to novel compositions of attributes.
89
+
90
+ Next we go on to discuss some additional trends we hope the community will find useful.
91
+
92
+ Population dynamics without replacement usually lead to some compositionality. The Multi Agent No Replacement policies usually outperform than the Single Agent No Replacement policies, though the difference isn’t very significant in the except in the Overcomplete and Minimal Vocab settings. This agrees with recent work from evolutionary linguistics, where multiple agents can lead to compositionality without generational transmission Raviv et al. (2018).
93
+
94
+ Variations in replacement strategy tend to not affect performance. The Multi Agent Uniform Random/Epsilon Greedy/Oldest replacement strategies are not largely or consistently different from one another across model variations. This suggests that while some agent replacement needs to occur, it is not critical whether agents with worse language are replaced or whether there is a pool of similarly typed agents to remember knowledge lost from older generations. The main factor is that new agents learn in the presence of others who already know a language.
95
+
96
+ Cultural transmission is complementary with other factors that encourage compositionality. As in Kottur et al. (2017), we find the Memoryless $^ +$ Small Vocab model is clearly the best. This agrees with factors noted elsewhere Kottur et al. (2017); Mordatch & Abbeel (2018); Nowak et al. (2000) and shows how many different factors can affect the emergence of compositionality.
97
+
98
+ Removing memory makes only minor differences. Removing memory makes no difference (negative or positive) in Single Agent settings, but it can have a relatively small effect in Multi Agent settings, helping Small Vocab models and hurting Overcomplete models. While our approach is complementary with minimizing vocab size to increase compositionality, its makes memory removal less useful. As the Memoryless $^ +$ Overcomplete setting has not been reported before, these results suggest that the relationship between inter-round memory and compositionality is not clear.
99
+
100
+ Overall, these results show that adding cultural transmission to neural dialog agents improves the compositional generalization of the languages learned by those agents in a way complementary to other priors. It thereby shows how to transfer the cultural transmission principle from evolutionary linguistics to deep learning.
101
+
102
+ # 5.2 IS GENERATIONAL TRANSMISSION OCCURRING?
103
+
104
+ Because it is implicit, cultural transmission may not actually be occurring; improvements may be from other sources. How can we measure cultural transmission? We focus on A-bots and take a simple approach. We assume that if two A-bots ‘speak the same language’ then that language was culturally transmitted. There is a combinatorial explosion of possible languages that could refer to all the objects of interest, so if the words that refer to the same object for two agents are the same then they were very likely transmitted from the other agents, rather than similar languages emerging from scratch just by chance. This leads to a simple approach: consider pairs of bots and see if they say similar things in the same context. If they do, then their language was likely transmitted.
105
+
106
+ More formally, consider the distribution of tokens A-bot $A ^ { i }$ might use to describe its object $x _ { A }$ when talking to Q-bot $Q ^ { k }$ : $p _ { k , i } ( m _ { A } ^ { t } | x _ { A } )$ or $p _ { k , i }$ for short. We want to know how similar $\bar { A } ^ { i }$ ’s language is to that of another A-bot $A ^ { j }$ . We’ll start by comparing those two distributions by computing the KL divergence between them and then taking an average over context (objects, Q-bots, and dialog rounds) to get our pairwise agent language similarity metric $D _ { i j }$ :
107
+
108
+ $$
109
+ D _ { i j } = \hat { E } _ { x _ { A } , k , t } \left[ D _ { K L } \left( p _ { k , i } ( m _ { A } ^ { t } | x _ { A } ) , p _ { k , j } ( m _ { A } ^ { t } | x _ { A } ) \right) \right]
110
+ $$
111
+
112
+ Taking another average, this time over all pairs of bots (and also random seeds and cross-val folds), gives our final measure of language similarity reported in Fig. 3.
113
+
114
+ $$
115
+ D = \hat { E } _ { i , j \mathrm { ~ s . t . ~ } i \neq j } \left[ D _ { i j } \right]
116
+ $$
117
+
118
+ $D$ is smaller the more similar language is between bots. Note that even though $D _ { i j }$ is not symmetric (because KL divergence is not), $D$ is symmetric because it averages over both directions of pairs.
119
+
120
+ We compute $D$ by sampling an empirical distribution over all messages and observations, taking 10 sample dialogues in each possible test state $( x _ { A } , x _ { Q } )$ of the world using the final populations of agents as in Fig. 2. Note that this metric applies to a group of agents, so we measure it for only the Multi Agent settings, including two new baselines colored red in Fig. 3. The Single Agents Combined baseline trains 4 Single Agent No Replacement models independently then puts them together and computes $D$ for that group. These agents only speak similar languages by chance, so $D$ is high. The Random Initialization baseline evaluates language similarity using newly initialized models. These agents have about a uniform distribution over words at every utterance, so their languages are both very similar and useless. For each model these baselines act like practical (not strict) upper and lower bounds on $D$ , respectively.
121
+
122
+ Fig. 3 shows this language dissimilarity metric for all our settings. As we expect, the paired Single Agents are highly dissimilar compared to agents from Multi Agent populations. Further, all the replacement strategies result in increased language similarity—although the degree of this effect seems dependent on vocabulary setting. This provides some evidence that cultural transmission is occurring in Multi Agent settings and is encouraged by the replacement strategy in our approach. While all Multi Agent settings resulted in language transmission, our replacement strategies results in more compositional languages due to repeated teaching of new generations of agents.
123
+
124
+ # 5.3 VISUALIZING EMERGENT LANGUAGES
125
+
126
+ In this section we visualize the language learned by agents at various stages of training to reinforce our previous conclusions and build intuition. Each of the three sub-figures in Fig. 4 summarizes all of the conversations between a particular pair of bots for the (shape, color) task. To see how these summaries work, consider Fig. 4a. That sub-figure is divided into a $4 \times 4$ grid with 4 elements in each cell, so there is one element for each of the 64 possible objects. For this task, objects in each row of the $4 \times 4$ grid have the same shape and objects in each column have the same color. To the right of each object are the two tokens A-bot used to respond to Q-bot in the two dialog rounds. Ideally they should indicate the color and shape of the object. Finally, the check-marks or Xs to the right of A-bot’s utterances indicate whether Q-bot guessed correctly.
127
+
128
+ ![](images/e68419c7891d177e2ae37f512fe3dc70e24b66bef8877d8103b4dc83fed0b9e0.jpg)
129
+ Model Figure 3: Do bots in a population learn similar languages? On the y-axis (eq. (2)) lower values indicate similar language. Populations evolved with our method speak similar languages, but independently evolved agents do not. Thus our implicit procedure induces cultural transmission.
130
+
131
+ ![](images/383e1a2eec5bbbd3805c1ab8f39b1a203f63370349f09eb5189cc2d11b8bb83f.jpg)
132
+ Figure 4: Each sub-figure summarizes an A-bot’s language, as described in Section 5.3. By comparing the baseline of Fig. 4a to a similar pair of bots from our approach Section 4b we can see that our approach encourages compositional language to emerge. Furthermore, the similarity between Fig. 4b and Fig. 4c suggests language is indeed transmitted in our approach.
133
+
134
+ From left to right: Fig. 4a summarizes the single pair from a Single Agent No Replacement run (3000 iterations old); Fig. 4b summarizes dialogs between an old Q-bot (about 23000 iterations) and a recently re-initialized A-bot (about 3000 iterations) at the 8th and final generation of a Multi Oldest run; Fig. 4c summarizes dialogs between the same old Q-bot as in Fig. 4b and an old A-bot (13000 iterations) from the same Multi Oldest experiment. Even though the A-bots in Fig. 4a and Fig. 4b have trained for about2 the same number of iterations, the A-bot trained in the presence of other bots which already know a functional language has already learned a somewhat compositional language whereas the Single Agent A-bot has not. Furthermore, by comparing the old A-bot’s language Fig. 4c with the new one Fig. 4b we can see that they are extremely similar. They even lead to the same mistakes. This again suggests that language is transmitted between bots, in agreement with our previous experiments.
135
+
136
+ # 6 RELATED WORK
137
+
138
+ Language Evolution Causes Structure. Researchers have spent decades studying how unique properties of human language like compositionality could have emerged. There is general agreement that people acquire language using a combination of innate cognitive capacity and learning from other language speakers (cultural transmission), with the degree of each being widely disputed Perfors (2002); Pinker & Bloom (1990). Both innate cognitive capacity and specific modern human languages like English co-evolved Briscoe (2000) via biological Pinker & Bloom (1990) and cultural Tomasello (1999); Smith (2006) evolution, respectively.
139
+
140
+ In particular, explanations of how the cultural evolution of languages could cause structure like compositionality are in abundance Nowak & Krakauer (1999); Nowak et al. (2000); Smith et al. (2003); Brighton (2002); Vogt (2005); Kirby et al. (2014); Spike et al. (2017). An important piece of the explanation of linguistic structure is the iterated learning model Kirby et al. (2014); Kirby (2001); Kirby et al. (2008) used to motivate our approach. Indeed it shows that cultural transmission causes structure in computational Kirby (2001; 2002); Christiansen & Kirby (2003); Smith et al. (2003) and human Kirby et al. (2008); Cornish et al. (2009); Scott-Phillips & Kirby (2010) experiments. Even though cultural transmission may aid the emergence of compositionality, recent results in evolutionary linguistics Raviv et al. (2018) and deep learning Kottur et al. (2017); Mordatch & Abbeel (2018) also emphasize other factors.
141
+
142
+ While existing work in deep learning has focused on biases that encourage compositionality, it has not considered settings where language is permitted to evolve over generations of agents. We have shown such an approach is viable and even complementary with other approaches.
143
+
144
+ Language Emergence in Deep Learning. Recent work in deep learning has increasingly focused on multi-agent environments where deep agents learn to accomplish goals (possibly cooperative or competitive) by interacting appropriately with the environment and each other. Some of this work has shown that deep agents will develop their own language where none exists initially if driven by a task which requires communication Foerster et al. (2016); Sukhbaatar et al. (2016); Lazaridou et al. (2017). Most relevant is work which focuses on conditions under which compositional language emerges as deep agents learn to cooperate Mordatch & Abbeel (2018); Kottur et al. (2017). Both Mordatch & Abbeel (2018) and Kottur et al. (2017) find that limiting the vocabulary size so that there aren’t too many more words than there are objects to refer to encourages compositionality, which follows earlier results in evolutionary linguistics Nowak et al. (2000). Follow up work has continued to investigate the emergence of compositional language among neural agents, mainly focusing on perceptual as opposed to symbolic input and how the structure of the input relates to the tendency for compositional language to emerge Choi et al. (2018); Havrylov & Titov (2017); Lazaridou et al. (2018). Other work has shown that Multi Agent interaction leads to better emergent translation Lee et al. (2018), but it does not measure compositionality.
145
+
146
+ Cultural Evolution and Neural Nets. Somewhat recently, Bengio (2012) suggested that culturally transmitted ideas may help in escaping from local minima. Experiments in Gulc¸ehre & Bengio ¨ (2016) support this idea by showing that supervision of intermediate representations allows a more complex toy task to be learned. Unlike our work, these experiments use direct supervision provided by the designed environment rather than indirect and implicit supervision provided by other agents.
147
+
148
+ Two concurrent works examine the role of periodic agent replacement on language emergence – albeit in different environments. In Li & Bowling (2019) replacement is used to encourage languages to be easy to teach, and this in turn causes compositionality. In Dagan et al. (2019) neural language is transmitted through a bottleneck caused by replacement. The resulting language has increased efficiency and effectiveness, with further results showing that co-evolving the agents themselves with the language amplifies the effect. Both of these works support our central observations.
149
+
150
+ # 7 CONCLUSION
151
+
152
+ In this work we investigated cultural transmission in deep neural dialog agents, applying it to language emergence. The evolutionary linguistics community has long used cultural transmission to explain how compositional languages could have emerged. The deep learning community, having recently become interested in language emergence, has not investigated that link until now. Instead of explicit models of cultural transmission familiar in evolutionary linguistics, we favor an implicit model where language is transmitted from generation to generation only because it helps agents achieve their goals. We show that this does indeed cause cultural transmission and compositionality.
153
+
154
+ Future work. While our work used an implicit version of cultural transmission, we are interested in investigating the effect of explicit versions of cultural transmission on language structure. In another direction, cultural transmission may also provide an appropriate prior for neural representations of non-language information.
155
+
156
+ # REFERENCES
157
+
158
+ Jacob Andreas, Anca D. Dragan, and Dan Klein. Translating neuralese. In ACL, 2017.
159
+
160
+ Yoshua Bengio. Evolving culture vs local minima. CoRR, abs/1203.2990, 2012.
161
+
162
+ Henry Brighton. Compositional syntax from cultural transmission. Artificial Life, 8:25–54, 2002.
163
+
164
+ Ted Briscoe. Grammatical acquisition: Inductive bias and coevolution of language and the language acquisition device. In Language, volume 76. Linguistic Society of America, 2000.
165
+
166
+ Edward Choi, Angeliki Lazaridou, and Nando de Freitas. Compositional obverter communication learning from raw visual input. In International Conference on Learning Representations (ICLR), 2018.
167
+
168
+ Morten H. Christiansen and Simon Kirby. Language evolution: consensus and controversies. Trends in cognitive sciences, 7 7:300–307, 2003.
169
+
170
+ Hannah Cornish, Monica Tamariz, and Simon Kirby. Complex adaptive systems and the origins of adaptive structure: What experiments can tell us. Language Learning, 59(s1):187–205, 2009. doi: 10.1111/j.1467-9922.2009.00540.x. URL https://onlinelibrary.wiley.com/doi/ abs/10.1111/j.1467-9922.2009.00540.x.
171
+
172
+ Gautier Dagan, Dieuwke Hupkes, and Elia Bruni. Co-evolution of language and agents in referential games. pre-print, 2019. URL https://eliabruni.github.io/publications/ dagan2019coevolution.pdf.
173
+
174
+ Abhishek Das, Satwik Kottur, Jose M.F. Moura, Stefan Lee, and Dhruv Batra. Learning cooperative ´ visual dialog agents with deep reinforcement learning. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017.
175
+
176
+ 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.
177
+
178
+ C¸ aglar G ˘ ulc¸ehre and Yoshua Bengio. Knowledge matters: Importance of prior information for ¨ optimization. Journal of Machine Learning Research, 17:8:1–8:32, 2016.
179
+
180
+ Serhii Havrylov and Ivan Titov. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. In NIPS, 2017.
181
+
182
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
183
+
184
+ Simon Kirby. Spontaneous evolution of linguistic structure-an iterated learning model of the emergence of regularity and irregularity. IEEE Trans. Evolutionary Computation, 5:102–110, 2001.
185
+
186
+ Simon Kirby. Natural language from artificial life. In Artificial Life, 2002.
187
+
188
+ Simon Kirby, Hannah Cornish, and Kenny Smith. Cumulative cultural evolution in the laboratory: An experimental approach to the origins of structure in human language. Proceedings of the National Academy of Sciences, 2008. ISSN 0027-8424. doi: 10.1073/pnas.0707835105. URL https://www.pnas.org/content/early/2008/07/29/0707835105.
189
+
190
+ Simon Kirby, Tom Griffiths, and Kenny Smith. Iterated learning and the evolution of language. Current Opinion in Neurobiology, 28:108–114, 2014.
191
+
192
+ Satwik Kottur, Jose M. F. Moura, Stefan Lee, and Dhruv Batra. Natural language does not emerge ´ ’naturally’ in multi-agent dialog. In EMNLP, 2017.
193
+
194
+ Brenden M. Lake and Marco Baroni. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In ICML, 2018.
195
+
196
+ Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. Multi-agent cooperation and the emergence of (natural) language. In International Conference on Learning Representations (ICLR), 2017.
197
+
198
+ Angeliki Lazaridou, Karl Moritz Hermann, Karl Tuyls, and Stephen Clark. Emergence of linguistic communication from referential games with symbolic and pixel input. In International Conference on Learning Representations (ICLR), 2018.
199
+
200
+ Jason D. Lee, Kyunghyun Cho, Jason Weston, and Douwe Kiela. Emergent translation in multiagent communication. CoRR, abs/1710.06922, 2018.
201
+
202
+ Fushan Li and Michael Bowling. Ease-of-teaching and language structure from emergent communication. CoRR, abs/1906.02403, 2019. URL http://arxiv.org/abs/1906.02403.
203
+
204
+ Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. In AAAI, 2018.
205
+
206
+ Martin A. Nowak and David C. Krakauer. The evolution of language. Proceedings of the National Academy of Sciences of the United States of America, 96 14:8028–33, 1999.
207
+
208
+ Martin A. Nowak, Joshua B. Plotkin, and Vincent A A Jansen. The evolution of syntactic communication. Nature, 404:495–498, 2000.
209
+
210
+ Amy Perfors. Simulated evolution of language: a review of the field. J. Artificial Societies and Social Simulation, 5, 2002.
211
+
212
+ Steven Pinker and Paul Bloom. Natural language and natural selection. Behavioral and brain sciences, 13(4):707–727, 1990.
213
+
214
+ Limor Raviv, Antje Meyer, and Shiri Lev-Ari. Compositional structure can emerge without generational transmission. Cognition, 182:151–164, 2018.
215
+
216
+ Thomas C. Scott-Phillips and Simon Kirby. Language evolution in the laboratory. Trends in cognitive sciences, 14 9:411–7, 2010.
217
+
218
+ Kenny Smith. Cultural evolution of language. Encyclopedia of Language and Linguistics 2 Edition, 2:315–322, 2006.
219
+
220
+ Kenny Smith, Simon Kirby, and Henry Brighton. Iterated learning: A framework for the emergence of language. Artificial Life, 9:371–386, 2003.
221
+
222
+ Matthew Spike, Kevin Stadler, Simon Kirby, and Kenny Smith. Minimal requirements for the emergence of learned signaling. In Cognitive Science, 2017.
223
+
224
+ Sainbayar Sukhbaatar, Arthur Szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In NIPS, 2016.
225
+
226
+ Michael Tomasello. The cultural origins of human cognition. Harvard university press, 1999.
227
+
228
+ Paul Vogt. The emergence of compositional structures in perceptually grounded language games. Artificial intelligence, 167(1-2):206–242, 2005.
229
+
230
+ # A APPENDIX
231
+
232
+ # A.1 RESULTS ON SINGLE HELD OUT ATTRIBUTE DATASET OF KOTTUR ET AL. (2017)
233
+
234
+ In Section 4 we proposed a new harder compositional dataset different from the one in Kottur et al. (2017). For comparison, in this section we train and evaluate our models on the original dataset from Kottur et al. (2017) to show that our approach also improves still improves compositionality in this setting and to show that our new dataset is indeed harder.
235
+
236
+ ![](images/3c1f5868d98f9e916b1c8cf1e9e36eb91faa16b49dcc985ae245616a9c280394.jpg)
237
+ Figure 5: Test set accuracies (with standard deviations) are reported by training and evaluating the same models as in our main results Fig. 2 against the dataset from Kottur et al. (2017). These results do not perform cross-validation, following Kottur et al. (2017). They only vary across 4 different random seeds. This dataset is significantly easier than our new dataset, as indicated by the Our proposed approach still outperforms models without replacement or multiple agents.
238
+
239
+ # A.2 REPLACEMENT STRATEGIES
240
+
241
+ Our approach to cultural transmission periodically replaces agents by re-initializing them. The approach section outlines various replacement strategies (policy $\pi$ ), but does not detail their implementation. We do so here.
242
+
243
+ These strategies depend on a number of possible inputs:
244
+
245
+ • $e$ the current epoch
246
+ • $E$ the period of agent replacement
247
+ • $v _ { i } ^ { Q } / v _ { i } ^ { A }$ the validation accuracy of agent $i$ for Q-bots/A-bots. For Q-bots this is averaged over all potential A-bot partners, and vice-versa for A-bots.
248
+ • $a _ { i } ^ { Q } / a _ { i } ^ { A }$ the age in epochs of agent $i$ for Q-bots/A-bots
249
+
250
+ Single Agent strategies are given in Alg. 2 and Alg. 3. Multi Agent strategies are given in Alg. 4, Alg. 5, and Alg. 6. Note that Single Agent strategies always replace one agent while Multi Agent strategies always replace one Q-bot and one A-bot. An additional Replace All baseline strategy is given in Alg. ?? and generalizes to both Single and Multi Agent cases.
251
+
252
+ # Algorithm 2: Single Agent - Random Replacement
253
+
254
+ <table><tr><td>1 d~U{0,1}</td></tr><tr><td></td></tr><tr><td>2 if d=O then return {A-bot }</td></tr><tr><td></td></tr><tr><td>4 else return {Q-bot}</td></tr></table>
255
+
256
+ # A.3 DETAILED RESULTS
257
+
258
+ In our experiments we compare models and we compare replacement strategies. We ran dependent paired t-tests across random seeds, cross-val folds, and replacement strategies to compare models. We ran dependent paired t-tests across random seeds, cross-val folds, and models to compare replacement strategies. The p-values for all of these t-tests are reported here.
259
+
260
+ Replacement strategy comparisons are in Fig. 7 (Single Agent) and Fig. 8 (Multi Agent). Model comparisons are in Fig. 6.
261
+
262
+ ![](images/fc000857cd1616211d7de8541016d7cbd9c818d97401baf12896a1033c618806.jpg)
263
+ Figure 6: Replacement strategy comparison p-values.
264
+
265
+ ![](images/3765b7e01ed3a5a0cfbba49a0af8fadc84510f5b295801cd24b995b74c104a2a.jpg)
266
+ Figure 7: Single Agent model comparison p-values.
267
+
268
+ ![](images/7ef9b3e377968b1755836c0ed298545d627e2ebf38fcd55e8c7a107744b84db2.jpg)
269
+ Figure 8: Multi Agent model comparison p-values.
270
+
271
+ # Algorithm 3: Single Agent - Alternate Replacement
272
+
273
+ 1 Input: e
274
+ 2 if $\lfloor e / E \rfloor = 0$ then
275
+ 3 return { A-bot }
276
+ 4 else
277
+ 5 return { Q-bot }
278
+
279
+ # Algorithm 4: Multi Agent - Uniform Random Replacement
280
+
281
+ 1 iA ∼ U{1, NA}
282
+ 2 iQ ∼ U{1, NQ}
283
+ 3 return { A-bot $i _ { A }$ , Q-bot iQ }
284
+
285
+ # Algorithm 5: Multi Agent - Epsilon Greedy Replacement
286
+
287
+ 1 Input: $v _ { i } ^ { Q } \forall i$ , $v _ { i } ^ { A } \forall i$ , ε ∈ [0, 1) (usually 0.2)
288
+ 2 $d \sim \mathcal { U } [ 0 , \overset { \cdot } { 1 } )$
289
+ 3 if $d < \varepsilon$ then
290
+ 4 $i _ { A } \sim \mathcal { U } \{ 1 , N _ { A } \}$
291
+ 5 $i _ { Q } \sim \mathcal { U } \{ 1 , N _ { Q } \}$
292
+ $\mathbf { 6 }$ else
293
+ 7 $i _ { A } = \mathrm { a r g m i n } _ { i } v _ { i } ^ { A }$ (unique in our experiments)
294
+ 8 $i _ { Q } = \mathrm { a r g m i n } _ { i } v _ { i } ^ { Q }$ (unique in our experiments)
295
+ 9 return { A-bot iA, Q-bot iQ }
296
+
297
+ # Algorithm 6: Multi Agent - Oldest Replacement
298
+
299
+ 1 Input: $a _ { i } ^ { Q } \forall i$ , $a _ { i } ^ { V } \forall i$
300
+ 2 $i _ { A } = \mathcal { U } \{ \mathrm { a r g m a x } _ { i } a _ { i } ^ { A } \}$
301
+ 3 $i _ { Q } = \mathcal { U } \{ \mathrm { a r g m a x } _ { i } a _ { i } ^ { Q } \}$
302
+ 4 return { A-bot $i _ { A }$ , Q-bot iQ }
parse/train/r1gzoaNtvr/r1gzoaNtvr_content_list.json ADDED
@@ -0,0 +1,1574 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EMERGENCE OF COMPOSITIONAL LANGUAGE WITH DEEP GENERATIONAL TRANSMISSION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 725,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Recent work has studied the emergence of language among deep reinforcement learning agents that must collaborate to solve a task. Of particular interest are the factors that cause language to be compositional—i.e. express meaning by combining words which themselves have meaning. Evolutionary linguists have found that in addition to structural priors like those already studied in deep learning, the dynamics of transmitting language from generation to generation contribute significantly to the emergence of compositionality. In this paper, we introduce these cultural evolutionary dynamics into language emergence by periodically replacing agents in a population to create a knowledge gap, implicitly inducing cultural transmission of language. We show that this implicit cultural transmission encourages the resulting languages to exhibit better compositional generalization. ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 764,
44
+ 424
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 458,
55
+ 336,
56
+ 474
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Compositionality is an important structure of language that reflects a disentangled understanding of the world – enabling the expression of infinitely many concepts using finitely many elements. Agents that have compositional understandings of the world generalize in obviously correct ways even in the face of limited training examples (Lake & Baroni, 2018). For example, an agent with a compositional understanding of blue squares and purple triangles should also understand purple squares without directly observing any of them. Developing artificial agents that can ground, understand, and produce compositional (and therefore more interpretable) language could greatly improve generalization to new instances and ease human-AI interactions. ",
63
+ "bbox": [
64
+ 174,
65
+ 486,
66
+ 825,
67
+ 597
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In building theories of how compositionality emerges in human languages, work in evolutionary linguistics looks to the process of cultural transmission (Kirby, 2001; Kirby et al., 2008). Cultural transmission of language occurs when a group of agents pass their language on to a new group of agents, e.g. parents who teach their children to speak as they do. Because this education is incomplete and biased, it allows the language itself to change over time via a process known as cultural evolution. This paradigm (Kirby et al., 2014) explains the emergence of compositionality as a result of expressivity and compressibility – i.e. to be most effective, a language should be expressive enough to differentiate between all possible meanings (e.g., objects) and compressible enough to be learned easily. Work in the evolutionary linguistics community has shown that over multiple ‘generations’ these competing pressures result in the emergence of compositional languages both in simulation (Kirby, 2001) and with human subjects (Kirby et al., 2008). These studies aim to understand humans whereas we want to understand and design artificial neural networks. ",
74
+ "bbox": [
75
+ 174,
76
+ 603,
77
+ 825,
78
+ 770
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Approaching the problem from another direction, recent work in AI has studied language emergence in such multi-agent, goal-driven tasks. These works have demonstrated that agent languages will emerge to enable coordination-centric tasks to be solved without direct or even indirect language supervision (Foerster et al., 2016; Sukhbaatar et al., 2016; Lazaridou et al., 2017; Das et al., 2017). However, the resulting languages are usually not compositional (Kottur et al., 2017) and are difficult to interpret, even by other machines (Andreas et al., 2017). Some existing work has studied means to encourage compositional language formation (Mordatch & Abbeel, 2018; Kottur et al., 2017), but these settings study fixed populations of agents – i.e. examining language within a single generation. ",
85
+ "bbox": [
86
+ 174,
87
+ 777,
88
+ 825,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work we bridge these two areas – examining the effect of generational cultural transmission on the compositionality of emergent languages in a multi-agent, goal-driven setting. ",
96
+ "bbox": [
97
+ 173,
98
+ 895,
99
+ 821,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/d64c3dc18b10c42f786b8344e8cfe36b77969264468818f9ca45bddd10bb08bf.jpg",
107
+ "image_caption": [
108
+ "(b) Implicit cultural transmission ",
109
+ "Figure 1: We introduce cultural transmission into language emergence between neural agents. The starting point of our study is a goal-oriented dialog task (similar to that of Kottur et al. (2017)), summarized in Fig. 1a. During learning we periodically replace some agents with new ones (gray agents). These new agents do not know any language, but instead of creating one they learn it from older agents. This creates generations of language that become more compositional over time. "
110
+ ],
111
+ "image_footnote": [],
112
+ "bbox": [
113
+ 196,
114
+ 92,
115
+ 799,
116
+ 223
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "We study this in the context of a cooperative dialog-based reference game involving two agents communicating in discrete symbols (Kottur et al., 2017); an example dialog is shown in Fig. 1a. To examine cultural transmission, we extend this setting to a population of agents (Fig. 1b) and introduce a simple mechanism to induce the expressivity and compressibility pressures inherent in cultural transmission. Specifically, we periodically re-initialize some subset of the agents in the population. In order to perform well at the task, the population’s emergent language must be sufficiently expressive to reference all the objects (expressivity) and must be easily learnable by these ‘new’ agents (compressibility). The new agents have a randomized language whereas the surviving agents already know a grounded language. This “knowledge gap” creates an implicit ‘teaching’ setting that is analogous to the explicit transmission stage in models of iterative learning (Kirby, 2001). ",
123
+ "bbox": [
124
+ 174,
125
+ 334,
126
+ 825,
127
+ 487
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Through our experiments and analysis, we show that periodic agent replacement is an effective way to induce cultural transmission and yields more compositionally generalizable language in our setting. To summarize, our contributions are: ",
134
+ "bbox": [
135
+ 174,
136
+ 494,
137
+ 825,
138
+ 535
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "– We propose a method for inducing implicit cultural transmission in neural language models. – We introduce new metrics to measure the similarity between agent languages and verify cultural transmission has occurred as a result of our periodic agent replacement protocol. We show our cultural transmission procedure induces compositionality in neural language models, going from $13 \\%$ accuracy on a compositionally novel test set to $46 \\%$ in the best configuration. Further, we show this is complementary with previous priors which encourage compositionality. ",
145
+ "bbox": [
146
+ 173,
147
+ 542,
148
+ 825,
149
+ 627
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "2 TASK & TALK: A TESTBED FOR COMPOSITIONAL LANGUAGE EMERGENCE ",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 174,
159
+ 638,
160
+ 805,
161
+ 655
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "We consider the cooperative Task & Talk reference game introduced in Kottur et al. (2017). Shown in Fig. 1a, the game is played by two agents – one who observes an attributed object – e.g. (purple, solid, square) – and another who is given a task to retrieve a subset of these attributes over the course of the dialog – e.g. (color,shape). The dialog itself consists of two rounds of agents exchanging single-token utterances from fixed vocabularies. At the end of the dialog, the task-aware agent must report the requested attributes and both agents are rewarded for correct predictions. This causes a language grounded in the objects to emerge because there is no other way to solve the task. ",
168
+ "bbox": [
169
+ 173,
170
+ 666,
171
+ 825,
172
+ 763
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "A compositional solution to this task can look like a question-answer style dialog where the taskaware agent queries the other for specific attributes (Fig. 1a) – e.g. uttering “X” requesting the color to which the other agent replies “1” indicating purple. Importantly, this pattern would persist regardless of the other attribute values of the object (e.g. for all $( \\mathtt { p u r p l e } , \\star , \\star )$ objects). However, as there is no grounding supervision provided, agents must learn to associate specific meanings to specific words and it is unlikely for compositional languages to emerge purely by chance. Given a color task, an agent might use “1” for (purple, solid, square) and then “2” for (purple, solid, circle). It is impossible for other agents to know that “2” means purple without having seen (purple, solid, circle), so compositional language is essential for generalization to compositionally novel instances. ",
179
+ "bbox": [
180
+ 173,
181
+ 770,
182
+ 825,
183
+ 910
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Models. To formalize this setting, let Q-bot and A-bot be agent policies parameterized by neural networks $Q$ and $A$ respectively. At each round $t$ , Q-bot observes the task $x _ { Q }$ and it’s memory of the dialog so far $h _ { Q } ^ { t - 1 }$ and produces a single-token utterance $m _ { Q } ^ { t } \\in \\mathcal { V }$ from the vocabulary $\\nu$ . Functionally, $m _ { Q } ^ { t } , h _ { Q } ^ { t } \\stackrel { \\cdot } { = } Q ( m _ { A } ^ { t - 1 } , x _ { Q } , h _ { Q } ^ { t - 1 } )$ where $m _ { A } ^ { t - 1 }$ is A-bot’s reply in the previous round. Likewise, A-bot responds by computing $\\quad \\quad m _ { A ; } ^ { t } , h _ { A _ { . } } ^ { t } = A ( m _ { Q } ^ { t } , x _ { A } , h _ { A } ^ { t - 1 } )$ where $x _ { A }$ is the object instance represented symbolically by concatenating 3 one-hot vectors, one per attribute. After two rounds, Q-bot must respond to the task, predicting the requested attribute pair $\\hat { u } = U ( x _ { Q } , h _ { Q } ^ { T } )$ as a function of the task and Q-bot’s final memory state. Both agents are rewarded if both attributes are correct (no partial credit). We follow the neural network architectures of $Q , A$ , and $U$ from Kottur et al. (2017). ",
190
+ "bbox": [
191
+ 173,
192
+ 103,
193
+ 825,
194
+ 238
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Measuring Compositional Generalization. Kottur et al. (2017) generated a synthetic dataset consisting of three attribute types (color, shape, style) each with four values (e.g. red, blue, square, star, dotted, solid, ...) and six tasks, one task for each ordered pair of different attribute types. In total, this results in 64 unique instances and 384 task-instance pairs. To evaluate compositionality, Kottur et al. (2017) held out 12 random instances for testing. Given the closed-world set of instances, these 12 are guaranteed to be never-before-seen triplets of attribute values; however, each individual value has been seen in training in other triplets. As such, accuracy on this set is a measure of compositional generalization. ",
201
+ "bbox": [
202
+ 174,
203
+ 250,
204
+ 825,
205
+ 361
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Shortcomings of Kottur et al. (2017) Evaluation. In our investigations, we found some shortcomings in the evaluation protocol of Kottur et al. (2017). First, the authors do not report variance over multiple runs or different random test-sets which we found to be significant. Second, the strategy of randomly selecting the test set can still reward some only partially compositional strategies. For instance, suppose agents develop a language that uses single words to refer to attribute pairs like (red, $\\star$ , triangle) and (red, filled, $\\star$ ). Such agents might generalize to an unseen instance (red, filled, triangle) by composing the ‘paired’ words above instead of disentangling individual attributes. ",
212
+ "bbox": [
213
+ 174,
214
+ 371,
215
+ 825,
216
+ 483
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "We make two modifications to address these issues. Our results are reported as means and variances estimated from multiple training runs with different random seeds evaluated with 4-way crossvalidation. We also introduce a harder dataset where instead of withholding random individual instances (e.g., (green,dotted,triangle),. . . ) as in Kottur et al. (2017), we withhold all instances for a set of attribute pairs (e.g., (green,dotted, $\\star$ ), $( \\mathtt { r e d } , \\mathtt { s o l i d } , \\star ) , \\dots )$ . We will refer to datasets generated in this fashion as novel pair and the original dataset as novel instance. We report on both settings for comparison, but find our new setting to be significantly more challenging in practice – requiring a stricter notion of compositionality that is more closely aligned with human intuitions about these attributes. ",
223
+ "bbox": [
224
+ 174,
225
+ 489,
226
+ 825,
227
+ 614
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "3 COMPOSITIONAL LANGUAGE EMERGENCE WITH CULTURAL TRANSMISSION ",
234
+ "text_level": 1,
235
+ "bbox": [
236
+ 174,
237
+ 627,
238
+ 813,
239
+ 643
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "In iterative learning models of cultural transmission from evolutionary linguistics, competing pressures towards expressivity and compressibility have been shown to induce compositionality over multiple ‘generations’ of language transfer (Kirby, 2001; Kirby et al., 2008). The goal-driven nature of our reference game already encourages expressivity – agents must be able to refer to the objects in order to succeed. To introduce compressibility pressure and parallel literature in evolutionary linguistics, we introduce a population of agents which regularly has members replaced by new agents that lack any understanding of the remaining population’s language. As this paradigm lacks explicit teaching steps where new agents are trained to ground existing words, we consider this approach as a means of implicit cultural transmission. ",
246
+ "bbox": [
247
+ 173,
248
+ 654,
249
+ 825,
250
+ 780
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Populations of Agents. We consider a population of Q-bots $\\{ Q ^ { 1 } , \\ldots , Q ^ { N _ { Q } } \\}$ and a population of Abots $\\{ A ^ { 1 } , \\ldots , A ^ { \\tilde { N _ { A } } } \\}$ with each agent having a different set of parameters. At each iteration during learning, we sample a random Q-bot-A-bot pair to interact and receive updates $\\mathrm { ~ - ~ } i . e .$ . the red line (2) in Alg. 1. As any Q-bot may be made to communicate with any A-bot, there is pressure for the population to adopt a unified language. Likewise, when an agent is reinitialized it will receive positive reward much more quickly when it happens to use language that its conversational partners understand. Furthermore, ‘compressible’ languages that are easier to learn will result in greater reward for the population in the face of periodic re-initialization of agents. ",
257
+ "bbox": [
258
+ 173,
259
+ 789,
260
+ 825,
261
+ 901
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Algorithm 1: Training with Replacement and Multiple Agents ",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 228,
271
+ 80,
272
+ 571,
273
+ 94
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "image",
279
+ "img_path": "images/d9fb159b8995993138efdc0355babbc22213c082cff6da9b1e4522e7205d2628.jpg",
280
+ "image_caption": [],
281
+ "image_footnote": [],
282
+ "bbox": [
283
+ 209,
284
+ 97,
285
+ 771,
286
+ 267
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "11 return all Q-bots and A-bots. ",
293
+ "bbox": [
294
+ 207,
295
+ 268,
296
+ 421,
297
+ 282
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Introducing multiple agents may in itself add compressibility pressure and improve generalizations even without replacement (Raviv et al., 2018). Agents in a population have to model minor linguistic differences between conversational partners given the same memory capacity. Further, each agent provides another potential language variation that can be mimicked and perpetuated–increasing language diversity early in training. We examine these effects through no-replacement baselines, but find that generational pressure where some agents know less than others can also be important for compositionality in our setting. ",
304
+ "bbox": [
305
+ 173,
306
+ 306,
307
+ 825,
308
+ 405
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Replacement. In order to create a notion of ‘generations’ we replace agents periodically. Let $\\pi$ be some replacement strategy that returns a subset of the population. Every $E$ epochs, we call $\\pi$ and reinitialize the parameters and optimizers for the corresponding agents (blue lines 9-10 in Alg. 1). We investigate three settings of $\\pi$ (appendix A.2 for more details): ",
315
+ "bbox": [
316
+ 174,
317
+ 415,
318
+ 825,
319
+ 470
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "Uniform Random. Sample an A-bot and Q-bot from uniform random distributions. – Epsilon Greedy. With probability $1 - \\varepsilon$ replace the A-bot and Q-bot with the lowest validation accuracy. We use $\\varepsilon = 0 . 2$ in our experiments. – Oldest. Replace the oldest A-bot and Q-bot, breaking ties with uniform random sampling. ",
326
+ "bbox": [
327
+ 178,
328
+ 477,
329
+ 825,
330
+ 534
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "4 EXPERIMENTAL SETTING ",
337
+ "text_level": 1,
338
+ "bbox": [
339
+ 176,
340
+ 549,
341
+ 416,
342
+ 564
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "Experimental Setting. We evaluate on both our modified Task & Talk dataset and the original from Kottur et al. (2017), as described in Section 2. All results are reported as means and variances computed from a total of 16 trials (four random seeds each with 4-way cross-validation). We report accuracy based on Q-bot getting both elements of the task correct – corresponding to the more restrictive “Both” setting from Kottur et al. (2017). ",
349
+ "bbox": [
350
+ 173,
351
+ 575,
352
+ 825,
353
+ 645
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Kottur et al. (2017) examined a series of increasingly restrictive settings in order to study conditions under which compositionality emerges. The primary variables are whether A-bot has memory (ablated by setting ${ h _ { A } ^ { \\bar { t } } } { = } 0$ ) and the vocabulary sizes $\\gamma _ { Q }$ and $\\nu _ { A }$ for Q-bot and A-bot respectively. For comparison we also evaluate in these settings: Minimal Vocab ( $V _ { Q } { = } 3$ , $V _ { A } { = } 4$ ). Memoryless $^ +$ Minimal Vocab $V _ { Q } { = } 3$ , $V _ { A } { = } 4$ , ${ h _ { A } ^ { t } } \\mathrm { { = } } 0 $ ), Overcomplete $V _ { Q } = V _ { A } = 6 \\dot { 4 }$ ). We also introduce Memoryless $^ +$ Overcomplete $V _ { Q } = V _ { A } = 6 4$ , $h _ { A } ^ { t } { = } 0$ ) to complete the cross product of settings and examine the role of memory restriction in overcomplete vocabularies. ",
360
+ "bbox": [
361
+ 173,
362
+ 652,
363
+ 825,
364
+ 750
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "The Memoryless $^ +$ Minimal Vocabulary setting results in the best compositional generalization; however, this is an extreme setting – requiring not only that the minimum number of groundable symbols be known but also that A-bot not be able to remember it’s previous utterance. While we do report these settings and see quite large performance gains due to cultural transmission, we are mainly interested in the more realistic Overcomplete setting where a large pool of possible tokens is provided and both dialog agents remember the conversation. ",
371
+ "bbox": [
372
+ 173,
373
+ 756,
374
+ 825,
375
+ 840
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "Model and Training Details. Our A-bots and Q-bots have the same architectur as in Kottur et al. (2017). All agents are trained with $E = 2 5 0 0 0$ , a batch size of 1000, 1 and the Adam (Kingma & Ba, 2015) optimizer (one per bot) with learning rate 0.01. In the Multi Agent setting we use ",
382
+ "bbox": [
383
+ 173,
384
+ 852,
385
+ 825,
386
+ 893
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "image",
392
+ "img_path": "images/ca67aa287b00528c7c8e3eefeb9c5020788b825d6be972a2216a637b8e32a2a7.jpg",
393
+ "image_caption": [
394
+ "Figure 2: Test set accuracies (with standard deviations) are reported against our new harder dataset using models similar to those in Kottur et al. (2017). Our variations on cultural transmission (darker blue bars) outperform the baselines where language does not change over generations. "
395
+ ],
396
+ "image_footnote": [],
397
+ "bbox": [
398
+ 176,
399
+ 78,
400
+ 820,
401
+ 194
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "$N _ { A } = N _ { Q } = 5$ . We stop training after 8 generations (199000 epochs Multi Agent; 39000 epochs Single Agent). This differs from Kottur et al. (2017), which stopped once train accuracy reached $100 \\%$ . Further, we do not perform negative mining. ",
408
+ "bbox": [
409
+ 174,
410
+ 242,
411
+ 823,
412
+ 285
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Baselines. We consider a set of baseline setting to isolate the effect of our approach. ",
419
+ "bbox": [
420
+ 176,
421
+ 295,
422
+ 735,
423
+ 310
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "– Single Agent Populations. We ablate the effect of multi-agent populations by training individual A-bot-Q-bot pairs (i.e. populations with $N _ { A } = N _ { Q } = 1 _ { , }$ ). We apply the uniform random (either A-bot or Q-bot at random) and oldest (alternating between A-bot and Q-bot) replacement strategies to these agents; however, the epsilon greedy strategy is not well-defined here. In this setting we decrease $E$ from 25000 to 5000 to keep the average number of gradient updates for each agent constant with respect to the multi-agent experiments. ",
430
+ "bbox": [
431
+ 178,
432
+ 316,
433
+ 825,
434
+ 400
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "– No Replacement. We also consider the effect of replacing no agents at all, but still allowing the agents to train for the full 199,000 (39,000) epochs. Improvement over this baseline shows the gains from our replacement strategy under identical computational budgets. ",
441
+ "bbox": [
442
+ 179,
443
+ 400,
444
+ 823,
445
+ 441
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "5 RESULTS AND ANALYSIS ",
452
+ "text_level": 1,
453
+ "bbox": [
454
+ 176,
455
+ 457,
456
+ 413,
457
+ 472
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "5.1 IMPACT OF CULTURAL TRANSMISSION ON COMPOSITIONAL GENERALIZATION ",
464
+ "text_level": 1,
465
+ "bbox": [
466
+ 174,
467
+ 484,
468
+ 761,
469
+ 498
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Results with standard deviations against our harder dataset are reported in Fig. 2. We compared methods and models using dependent paired t-tests and reported the resulting p-values in Section A.3. Result on the original Task & Talk dataset are in Section A.1. ",
476
+ "bbox": [
477
+ 174,
478
+ 508,
479
+ 823,
480
+ 550
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Cultural transmission induces compositionality. Our main result is that cultural transmission approaches outperform baselines without cultural transmission. This can be seen by noting that for each model type in Fig. 2, the 3 darker blue bars (Multi Agent Replacement approaches) are largest. After running a dependent paired t-test against all pairs of baselines and cultural transmission approaches we find a meaningful difference in all cases $( p \\leq 0 . 0 5 )$ . This is strong support for our claim that our version of cultural transmission encourages compositional language because it causes better generalization to novel compositions of attributes. ",
487
+ "bbox": [
488
+ 174,
489
+ 560,
490
+ 825,
491
+ 659
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "Next we go on to discuss some additional trends we hope the community will find useful. ",
498
+ "bbox": [
499
+ 174,
500
+ 666,
501
+ 758,
502
+ 680
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Population dynamics without replacement usually lead to some compositionality. The Multi Agent No Replacement policies usually outperform than the Single Agent No Replacement policies, though the difference isn’t very significant in the except in the Overcomplete and Minimal Vocab settings. This agrees with recent work from evolutionary linguistics, where multiple agents can lead to compositionality without generational transmission Raviv et al. (2018). ",
509
+ "bbox": [
510
+ 174,
511
+ 691,
512
+ 825,
513
+ 761
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Variations in replacement strategy tend to not affect performance. The Multi Agent Uniform Random/Epsilon Greedy/Oldest replacement strategies are not largely or consistently different from one another across model variations. This suggests that while some agent replacement needs to occur, it is not critical whether agents with worse language are replaced or whether there is a pool of similarly typed agents to remember knowledge lost from older generations. The main factor is that new agents learn in the presence of others who already know a language. ",
520
+ "bbox": [
521
+ 174,
522
+ 772,
523
+ 825,
524
+ 856
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Cultural transmission is complementary with other factors that encourage compositionality. As in Kottur et al. (2017), we find the Memoryless $^ +$ Small Vocab model is clearly the best. This agrees with factors noted elsewhere Kottur et al. (2017); Mordatch & Abbeel (2018); Nowak et al. (2000) and shows how many different factors can affect the emergence of compositionality. ",
531
+ "bbox": [
532
+ 174,
533
+ 866,
534
+ 823,
535
+ 921
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Removing memory makes only minor differences. Removing memory makes no difference (negative or positive) in Single Agent settings, but it can have a relatively small effect in Multi Agent settings, helping Small Vocab models and hurting Overcomplete models. While our approach is complementary with minimizing vocab size to increase compositionality, its makes memory removal less useful. As the Memoryless $^ +$ Overcomplete setting has not been reported before, these results suggest that the relationship between inter-round memory and compositionality is not clear. ",
542
+ "bbox": [
543
+ 174,
544
+ 103,
545
+ 823,
546
+ 188
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Overall, these results show that adding cultural transmission to neural dialog agents improves the compositional generalization of the languages learned by those agents in a way complementary to other priors. It thereby shows how to transfer the cultural transmission principle from evolutionary linguistics to deep learning. ",
553
+ "bbox": [
554
+ 174,
555
+ 194,
556
+ 825,
557
+ 251
558
+ ],
559
+ "page_idx": 5
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "5.2 IS GENERATIONAL TRANSMISSION OCCURRING? ",
564
+ "text_level": 1,
565
+ "bbox": [
566
+ 174,
567
+ 262,
568
+ 555,
569
+ 276
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Because it is implicit, cultural transmission may not actually be occurring; improvements may be from other sources. How can we measure cultural transmission? We focus on A-bots and take a simple approach. We assume that if two A-bots ‘speak the same language’ then that language was culturally transmitted. There is a combinatorial explosion of possible languages that could refer to all the objects of interest, so if the words that refer to the same object for two agents are the same then they were very likely transmitted from the other agents, rather than similar languages emerging from scratch just by chance. This leads to a simple approach: consider pairs of bots and see if they say similar things in the same context. If they do, then their language was likely transmitted. ",
576
+ "bbox": [
577
+ 174,
578
+ 286,
579
+ 825,
580
+ 398
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "More formally, consider the distribution of tokens A-bot $A ^ { i }$ might use to describe its object $x _ { A }$ when talking to Q-bot $Q ^ { k }$ : $p _ { k , i } ( m _ { A } ^ { t } | x _ { A } )$ or $p _ { k , i }$ for short. We want to know how similar $\\bar { A } ^ { i }$ ’s language is to that of another A-bot $A ^ { j }$ . We’ll start by comparing those two distributions by computing the KL divergence between them and then taking an average over context (objects, Q-bots, and dialog rounds) to get our pairwise agent language similarity metric $D _ { i j }$ : ",
587
+ "bbox": [
588
+ 173,
589
+ 405,
590
+ 825,
591
+ 477
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "equation",
597
+ "img_path": "images/953f3fe7c772cfca959ec44bc6081602d889917e668b9222ba8bfb790e0b2393.jpg",
598
+ "text": "$$\nD _ { i j } = \\hat { E } _ { x _ { A } , k , t } \\left[ D _ { K L } \\left( p _ { k , i } ( m _ { A } ^ { t } | x _ { A } ) , p _ { k , j } ( m _ { A } ^ { t } | x _ { A } ) \\right) \\right]\n$$",
599
+ "text_format": "latex",
600
+ "bbox": [
601
+ 323,
602
+ 479,
603
+ 673,
604
+ 500
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "Taking another average, this time over all pairs of bots (and also random seeds and cross-val folds), gives our final measure of language similarity reported in Fig. 3. ",
611
+ "bbox": [
612
+ 176,
613
+ 501,
614
+ 820,
615
+ 529
616
+ ],
617
+ "page_idx": 5
618
+ },
619
+ {
620
+ "type": "equation",
621
+ "img_path": "images/42bc401801a10de79ae22e329037a041d500e111000d534966c069ed7e00ea2d.jpg",
622
+ "text": "$$\nD = \\hat { E } _ { i , j \\mathrm { ~ s . t . ~ } i \\neq j } \\left[ D _ { i j } \\right]\n$$",
623
+ "text_format": "latex",
624
+ "bbox": [
625
+ 426,
626
+ 531,
627
+ 573,
628
+ 551
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "$D$ is smaller the more similar language is between bots. Note that even though $D _ { i j }$ is not symmetric (because KL divergence is not), $D$ is symmetric because it averages over both directions of pairs. ",
635
+ "bbox": [
636
+ 173,
637
+ 553,
638
+ 823,
639
+ 580
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "We compute $D$ by sampling an empirical distribution over all messages and observations, taking 10 sample dialogues in each possible test state $( x _ { A } , x _ { Q } )$ of the world using the final populations of agents as in Fig. 2. Note that this metric applies to a group of agents, so we measure it for only the Multi Agent settings, including two new baselines colored red in Fig. 3. The Single Agents Combined baseline trains 4 Single Agent No Replacement models independently then puts them together and computes $D$ for that group. These agents only speak similar languages by chance, so $D$ is high. The Random Initialization baseline evaluates language similarity using newly initialized models. These agents have about a uniform distribution over words at every utterance, so their languages are both very similar and useless. For each model these baselines act like practical (not strict) upper and lower bounds on $D$ , respectively. ",
646
+ "bbox": [
647
+ 174,
648
+ 587,
649
+ 825,
650
+ 727
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Fig. 3 shows this language dissimilarity metric for all our settings. As we expect, the paired Single Agents are highly dissimilar compared to agents from Multi Agent populations. Further, all the replacement strategies result in increased language similarity—although the degree of this effect seems dependent on vocabulary setting. This provides some evidence that cultural transmission is occurring in Multi Agent settings and is encouraged by the replacement strategy in our approach. While all Multi Agent settings resulted in language transmission, our replacement strategies results in more compositional languages due to repeated teaching of new generations of agents. ",
657
+ "bbox": [
658
+ 174,
659
+ 733,
660
+ 825,
661
+ 832
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "5.3 VISUALIZING EMERGENT LANGUAGES ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 176,
671
+ 843,
672
+ 483,
673
+ 858
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "In this section we visualize the language learned by agents at various stages of training to reinforce our previous conclusions and build intuition. Each of the three sub-figures in Fig. 4 summarizes all of the conversations between a particular pair of bots for the (shape, color) task. To see how these summaries work, consider Fig. 4a. That sub-figure is divided into a $4 \\times 4$ grid with 4 elements in each cell, so there is one element for each of the 64 possible objects. For this task, objects in each row of the $4 \\times 4$ grid have the same shape and objects in each column have the same color. To the right of each object are the two tokens A-bot used to respond to Q-bot in the two dialog rounds. Ideally they should indicate the color and shape of the object. Finally, the check-marks or Xs to the right of A-bot’s utterances indicate whether Q-bot guessed correctly. ",
680
+ "bbox": [
681
+ 174,
682
+ 867,
683
+ 823,
684
+ 924
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "image",
690
+ "img_path": "images/e68419c7891d177e2ae37f512fe3dc70e24b66bef8877d8103b4dc83fed0b9e0.jpg",
691
+ "image_caption": [
692
+ "Model Figure 3: Do bots in a population learn similar languages? On the y-axis (eq. (2)) lower values indicate similar language. Populations evolved with our method speak similar languages, but independently evolved agents do not. Thus our implicit procedure induces cultural transmission. "
693
+ ],
694
+ "image_footnote": [],
695
+ "bbox": [
696
+ 176,
697
+ 74,
698
+ 820,
699
+ 186
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "",
706
+ "bbox": [
707
+ 174,
708
+ 248,
709
+ 825,
710
+ 319
711
+ ],
712
+ "page_idx": 6
713
+ },
714
+ {
715
+ "type": "image",
716
+ "img_path": "images/383e1a2eec5bbbd3805c1ab8f39b1a203f63370349f09eb5189cc2d11b8bb83f.jpg",
717
+ "image_caption": [
718
+ "Figure 4: Each sub-figure summarizes an A-bot’s language, as described in Section 5.3. By comparing the baseline of Fig. 4a to a similar pair of bots from our approach Section 4b we can see that our approach encourages compositional language to emerge. Furthermore, the similarity between Fig. 4b and Fig. 4c suggests language is indeed transmitted in our approach. "
719
+ ],
720
+ "image_footnote": [],
721
+ "bbox": [
722
+ 205,
723
+ 324,
724
+ 794,
725
+ 551
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "From left to right: Fig. 4a summarizes the single pair from a Single Agent No Replacement run (3000 iterations old); Fig. 4b summarizes dialogs between an old Q-bot (about 23000 iterations) and a recently re-initialized A-bot (about 3000 iterations) at the 8th and final generation of a Multi Oldest run; Fig. 4c summarizes dialogs between the same old Q-bot as in Fig. 4b and an old A-bot (13000 iterations) from the same Multi Oldest experiment. Even though the A-bots in Fig. 4a and Fig. 4b have trained for about2 the same number of iterations, the A-bot trained in the presence of other bots which already know a functional language has already learned a somewhat compositional language whereas the Single Agent A-bot has not. Furthermore, by comparing the old A-bot’s language Fig. 4c with the new one Fig. 4b we can see that they are extremely similar. They even lead to the same mistakes. This again suggests that language is transmitted between bots, in agreement with our previous experiments. ",
732
+ "bbox": [
733
+ 173,
734
+ 632,
735
+ 825,
736
+ 784
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "6 RELATED WORK ",
743
+ "text_level": 1,
744
+ "bbox": [
745
+ 176,
746
+ 799,
747
+ 341,
748
+ 815
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Language Evolution Causes Structure. Researchers have spent decades studying how unique properties of human language like compositionality could have emerged. There is general agreement that people acquire language using a combination of innate cognitive capacity and learning from other language speakers (cultural transmission), with the degree of each being widely disputed Perfors (2002); Pinker & Bloom (1990). Both innate cognitive capacity and specific modern human languages like English co-evolved Briscoe (2000) via biological Pinker & Bloom (1990) and cultural Tomasello (1999); Smith (2006) evolution, respectively. ",
755
+ "bbox": [
756
+ 174,
757
+ 827,
758
+ 825,
759
+ 896
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "",
766
+ "bbox": [
767
+ 173,
768
+ 103,
769
+ 823,
770
+ 132
771
+ ],
772
+ "page_idx": 7
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "In particular, explanations of how the cultural evolution of languages could cause structure like compositionality are in abundance Nowak & Krakauer (1999); Nowak et al. (2000); Smith et al. (2003); Brighton (2002); Vogt (2005); Kirby et al. (2014); Spike et al. (2017). An important piece of the explanation of linguistic structure is the iterated learning model Kirby et al. (2014); Kirby (2001); Kirby et al. (2008) used to motivate our approach. Indeed it shows that cultural transmission causes structure in computational Kirby (2001; 2002); Christiansen & Kirby (2003); Smith et al. (2003) and human Kirby et al. (2008); Cornish et al. (2009); Scott-Phillips & Kirby (2010) experiments. Even though cultural transmission may aid the emergence of compositionality, recent results in evolutionary linguistics Raviv et al. (2018) and deep learning Kottur et al. (2017); Mordatch & Abbeel (2018) also emphasize other factors. ",
777
+ "bbox": [
778
+ 174,
779
+ 138,
780
+ 825,
781
+ 277
782
+ ],
783
+ "page_idx": 7
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "While existing work in deep learning has focused on biases that encourage compositionality, it has not considered settings where language is permitted to evolve over generations of agents. We have shown such an approach is viable and even complementary with other approaches. ",
788
+ "bbox": [
789
+ 176,
790
+ 285,
791
+ 825,
792
+ 327
793
+ ],
794
+ "page_idx": 7
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Language Emergence in Deep Learning. Recent work in deep learning has increasingly focused on multi-agent environments where deep agents learn to accomplish goals (possibly cooperative or competitive) by interacting appropriately with the environment and each other. Some of this work has shown that deep agents will develop their own language where none exists initially if driven by a task which requires communication Foerster et al. (2016); Sukhbaatar et al. (2016); Lazaridou et al. (2017). Most relevant is work which focuses on conditions under which compositional language emerges as deep agents learn to cooperate Mordatch & Abbeel (2018); Kottur et al. (2017). Both Mordatch & Abbeel (2018) and Kottur et al. (2017) find that limiting the vocabulary size so that there aren’t too many more words than there are objects to refer to encourages compositionality, which follows earlier results in evolutionary linguistics Nowak et al. (2000). Follow up work has continued to investigate the emergence of compositional language among neural agents, mainly focusing on perceptual as opposed to symbolic input and how the structure of the input relates to the tendency for compositional language to emerge Choi et al. (2018); Havrylov & Titov (2017); Lazaridou et al. (2018). Other work has shown that Multi Agent interaction leads to better emergent translation Lee et al. (2018), but it does not measure compositionality. ",
799
+ "bbox": [
800
+ 174,
801
+ 338,
802
+ 825,
803
+ 546
804
+ ],
805
+ "page_idx": 7
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "Cultural Evolution and Neural Nets. Somewhat recently, Bengio (2012) suggested that culturally transmitted ideas may help in escaping from local minima. Experiments in Gulc¸ehre & Bengio ¨ (2016) support this idea by showing that supervision of intermediate representations allows a more complex toy task to be learned. Unlike our work, these experiments use direct supervision provided by the designed environment rather than indirect and implicit supervision provided by other agents. ",
810
+ "bbox": [
811
+ 174,
812
+ 558,
813
+ 823,
814
+ 627
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Two concurrent works examine the role of periodic agent replacement on language emergence – albeit in different environments. In Li & Bowling (2019) replacement is used to encourage languages to be easy to teach, and this in turn causes compositionality. In Dagan et al. (2019) neural language is transmitted through a bottleneck caused by replacement. The resulting language has increased efficiency and effectiveness, with further results showing that co-evolving the agents themselves with the language amplifies the effect. Both of these works support our central observations. ",
821
+ "bbox": [
822
+ 174,
823
+ 633,
824
+ 825,
825
+ 718
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "7 CONCLUSION ",
832
+ "text_level": 1,
833
+ "bbox": [
834
+ 176,
835
+ 732,
836
+ 318,
837
+ 748
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "In this work we investigated cultural transmission in deep neural dialog agents, applying it to language emergence. The evolutionary linguistics community has long used cultural transmission to explain how compositional languages could have emerged. The deep learning community, having recently become interested in language emergence, has not investigated that link until now. Instead of explicit models of cultural transmission familiar in evolutionary linguistics, we favor an implicit model where language is transmitted from generation to generation only because it helps agents achieve their goals. We show that this does indeed cause cultural transmission and compositionality. ",
844
+ "bbox": [
845
+ 174,
846
+ 758,
847
+ 825,
848
+ 857
849
+ ],
850
+ "page_idx": 7
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Future work. While our work used an implicit version of cultural transmission, we are interested in investigating the effect of explicit versions of cultural transmission on language structure. In another direction, cultural transmission may also provide an appropriate prior for neural representations of non-language information. ",
855
+ "bbox": [
856
+ 174,
857
+ 867,
858
+ 823,
859
+ 924
860
+ ],
861
+ "page_idx": 7
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "REFERENCES ",
866
+ "text_level": 1,
867
+ "bbox": [
868
+ 176,
869
+ 102,
870
+ 287,
871
+ 118
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Jacob Andreas, Anca D. Dragan, and Dan Klein. Translating neuralese. In ACL, 2017. ",
878
+ "bbox": [
879
+ 173,
880
+ 128,
881
+ 740,
882
+ 143
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "Yoshua Bengio. Evolving culture vs local minima. CoRR, abs/1203.2990, 2012. ",
889
+ "bbox": [
890
+ 174,
891
+ 155,
892
+ 700,
893
+ 170
894
+ ],
895
+ "page_idx": 8
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Henry Brighton. Compositional syntax from cultural transmission. Artificial Life, 8:25–54, 2002. ",
900
+ "bbox": [
901
+ 178,
902
+ 180,
903
+ 808,
904
+ 195
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Ted Briscoe. Grammatical acquisition: Inductive bias and coevolution of language and the language acquisition device. In Language, volume 76. Linguistic Society of America, 2000. ",
911
+ "bbox": [
912
+ 171,
913
+ 205,
914
+ 823,
915
+ 234
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Edward Choi, Angeliki Lazaridou, and Nando de Freitas. Compositional obverter communication learning from raw visual input. In International Conference on Learning Representations (ICLR), 2018. ",
922
+ "bbox": [
923
+ 174,
924
+ 244,
925
+ 825,
926
+ 287
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Morten H. Christiansen and Simon Kirby. Language evolution: consensus and controversies. Trends in cognitive sciences, 7 7:300–307, 2003. ",
933
+ "bbox": [
934
+ 173,
935
+ 299,
936
+ 823,
937
+ 327
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Hannah Cornish, Monica Tamariz, and Simon Kirby. Complex adaptive systems and the origins of adaptive structure: What experiments can tell us. Language Learning, 59(s1):187–205, 2009. doi: 10.1111/j.1467-9922.2009.00540.x. URL https://onlinelibrary.wiley.com/doi/ abs/10.1111/j.1467-9922.2009.00540.x. ",
944
+ "bbox": [
945
+ 173,
946
+ 338,
947
+ 825,
948
+ 395
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Gautier Dagan, Dieuwke Hupkes, and Elia Bruni. Co-evolution of language and agents in referential games. pre-print, 2019. URL https://eliabruni.github.io/publications/ dagan2019coevolution.pdf. ",
955
+ "bbox": [
956
+ 176,
957
+ 405,
958
+ 823,
959
+ 448
960
+ ],
961
+ "page_idx": 8
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Abhishek Das, Satwik Kottur, Jose M.F. Moura, Stefan Lee, and Dhruv Batra. Learning cooperative ´ visual dialog agents with deep reinforcement learning. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. ",
966
+ "bbox": [
967
+ 174,
968
+ 458,
969
+ 825,
970
+ 502
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "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. ",
977
+ "bbox": [
978
+ 173,
979
+ 511,
980
+ 825,
981
+ 555
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "C¸ aglar G ˘ ulc¸ehre and Yoshua Bengio. Knowledge matters: Importance of prior information for ¨ optimization. Journal of Machine Learning Research, 17:8:1–8:32, 2016. ",
988
+ "bbox": [
989
+ 169,
990
+ 564,
991
+ 823,
992
+ 594
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Serhii Havrylov and Ivan Titov. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. In NIPS, 2017. ",
999
+ "bbox": [
1000
+ 173,
1001
+ 604,
1002
+ 823,
1003
+ 633
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. ",
1010
+ "bbox": [
1011
+ 174,
1012
+ 643,
1013
+ 823,
1014
+ 674
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Simon Kirby. Spontaneous evolution of linguistic structure-an iterated learning model of the emergence of regularity and irregularity. IEEE Trans. Evolutionary Computation, 5:102–110, 2001. ",
1021
+ "bbox": [
1022
+ 174,
1023
+ 684,
1024
+ 823,
1025
+ 713
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Simon Kirby. Natural language from artificial life. In Artificial Life, 2002. ",
1032
+ "bbox": [
1033
+ 176,
1034
+ 723,
1035
+ 661,
1036
+ 738
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Simon Kirby, Hannah Cornish, and Kenny Smith. Cumulative cultural evolution in the laboratory: An experimental approach to the origins of structure in human language. Proceedings of the National Academy of Sciences, 2008. ISSN 0027-8424. doi: 10.1073/pnas.0707835105. URL https://www.pnas.org/content/early/2008/07/29/0707835105. ",
1043
+ "bbox": [
1044
+ 173,
1045
+ 748,
1046
+ 825,
1047
+ 806
1048
+ ],
1049
+ "page_idx": 8
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Simon Kirby, Tom Griffiths, and Kenny Smith. Iterated learning and the evolution of language. Current Opinion in Neurobiology, 28:108–114, 2014. ",
1054
+ "bbox": [
1055
+ 171,
1056
+ 815,
1057
+ 823,
1058
+ 845
1059
+ ],
1060
+ "page_idx": 8
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Satwik Kottur, Jose M. F. Moura, Stefan Lee, and Dhruv Batra. Natural language does not emerge ´ ’naturally’ in multi-agent dialog. In EMNLP, 2017. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 856,
1068
+ 823,
1069
+ 886
1070
+ ],
1071
+ "page_idx": 8
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Brenden M. Lake and Marco Baroni. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In ICML, 2018. ",
1076
+ "bbox": [
1077
+ 173,
1078
+ 895,
1079
+ 823,
1080
+ 924
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. Multi-agent cooperation and the emergence of (natural) language. In International Conference on Learning Representations (ICLR), 2017. ",
1087
+ "bbox": [
1088
+ 173,
1089
+ 103,
1090
+ 823,
1091
+ 146
1092
+ ],
1093
+ "page_idx": 9
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Angeliki Lazaridou, Karl Moritz Hermann, Karl Tuyls, and Stephen Clark. Emergence of linguistic communication from referential games with symbolic and pixel input. In International Conference on Learning Representations (ICLR), 2018. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 155,
1101
+ 821,
1102
+ 198
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Jason D. Lee, Kyunghyun Cho, Jason Weston, and Douwe Kiela. Emergent translation in multiagent communication. CoRR, abs/1710.06922, 2018. ",
1109
+ "bbox": [
1110
+ 171,
1111
+ 205,
1112
+ 821,
1113
+ 234
1114
+ ],
1115
+ "page_idx": 9
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Fushan Li and Michael Bowling. Ease-of-teaching and language structure from emergent communication. CoRR, abs/1906.02403, 2019. URL http://arxiv.org/abs/1906.02403. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 244,
1123
+ 821,
1124
+ 273
1125
+ ],
1126
+ "page_idx": 9
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. In AAAI, 2018. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 281,
1134
+ 820,
1135
+ 310
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Martin A. Nowak and David C. Krakauer. The evolution of language. Proceedings of the National Academy of Sciences of the United States of America, 96 14:8028–33, 1999. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 319,
1145
+ 820,
1146
+ 349
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Martin A. Nowak, Joshua B. Plotkin, and Vincent A A Jansen. The evolution of syntactic communication. Nature, 404:495–498, 2000. ",
1153
+ "bbox": [
1154
+ 174,
1155
+ 357,
1156
+ 820,
1157
+ 387
1158
+ ],
1159
+ "page_idx": 9
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Amy Perfors. Simulated evolution of language: a review of the field. J. Artificial Societies and Social Simulation, 5, 2002. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 395,
1167
+ 823,
1168
+ 424
1169
+ ],
1170
+ "page_idx": 9
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Steven Pinker and Paul Bloom. Natural language and natural selection. Behavioral and brain sciences, 13(4):707–727, 1990. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 433,
1178
+ 823,
1179
+ 462
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Limor Raviv, Antje Meyer, and Shiri Lev-Ari. Compositional structure can emerge without generational transmission. Cognition, 182:151–164, 2018. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 469,
1189
+ 821,
1190
+ 500
1191
+ ],
1192
+ "page_idx": 9
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Thomas C. Scott-Phillips and Simon Kirby. Language evolution in the laboratory. Trends in cognitive sciences, 14 9:411–7, 2010. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 507,
1200
+ 823,
1201
+ 537
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Kenny Smith. Cultural evolution of language. Encyclopedia of Language and Linguistics 2 Edition, 2:315–322, 2006. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 545,
1211
+ 823,
1212
+ 575
1213
+ ],
1214
+ "page_idx": 9
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Kenny Smith, Simon Kirby, and Henry Brighton. Iterated learning: A framework for the emergence of language. Artificial Life, 9:371–386, 2003. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 583,
1222
+ 823,
1223
+ 613
1224
+ ],
1225
+ "page_idx": 9
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Matthew Spike, Kevin Stadler, Simon Kirby, and Kenny Smith. Minimal requirements for the emergence of learned signaling. In Cognitive Science, 2017. ",
1230
+ "bbox": [
1231
+ 171,
1232
+ 621,
1233
+ 823,
1234
+ 651
1235
+ ],
1236
+ "page_idx": 9
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Sainbayar Sukhbaatar, Arthur Szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In NIPS, 2016. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 659,
1244
+ 823,
1245
+ 689
1246
+ ],
1247
+ "page_idx": 9
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Michael Tomasello. The cultural origins of human cognition. Harvard university press, 1999. ",
1252
+ "bbox": [
1253
+ 171,
1254
+ 696,
1255
+ 789,
1256
+ 713
1257
+ ],
1258
+ "page_idx": 9
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Paul Vogt. The emergence of compositional structures in perceptually grounded language games. Artificial intelligence, 167(1-2):206–242, 2005. ",
1263
+ "bbox": [
1264
+ 171,
1265
+ 720,
1266
+ 826,
1267
+ 750
1268
+ ],
1269
+ "page_idx": 9
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "A APPENDIX ",
1274
+ "text_level": 1,
1275
+ "bbox": [
1276
+ 176,
1277
+ 102,
1278
+ 299,
1279
+ 117
1280
+ ],
1281
+ "page_idx": 10
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "A.1 RESULTS ON SINGLE HELD OUT ATTRIBUTE DATASET OF KOTTUR ET AL. (2017) ",
1286
+ "text_level": 1,
1287
+ "bbox": [
1288
+ 174,
1289
+ 127,
1290
+ 784,
1291
+ 143
1292
+ ],
1293
+ "page_idx": 10
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "In Section 4 we proposed a new harder compositional dataset different from the one in Kottur et al. (2017). For comparison, in this section we train and evaluate our models on the original dataset from Kottur et al. (2017) to show that our approach also improves still improves compositionality in this setting and to show that our new dataset is indeed harder. ",
1298
+ "bbox": [
1299
+ 174,
1300
+ 151,
1301
+ 825,
1302
+ 208
1303
+ ],
1304
+ "page_idx": 10
1305
+ },
1306
+ {
1307
+ "type": "image",
1308
+ "img_path": "images/3c1f5868d98f9e916b1c8cf1e9e36eb91faa16b49dcc985ae245616a9c280394.jpg",
1309
+ "image_caption": [
1310
+ "Figure 5: Test set accuracies (with standard deviations) are reported by training and evaluating the same models as in our main results Fig. 2 against the dataset from Kottur et al. (2017). These results do not perform cross-validation, following Kottur et al. (2017). They only vary across 4 different random seeds. This dataset is significantly easier than our new dataset, as indicated by the Our proposed approach still outperforms models without replacement or multiple agents. "
1311
+ ],
1312
+ "image_footnote": [],
1313
+ "bbox": [
1314
+ 176,
1315
+ 220,
1316
+ 820,
1317
+ 339
1318
+ ],
1319
+ "page_idx": 10
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "A.2 REPLACEMENT STRATEGIES ",
1324
+ "text_level": 1,
1325
+ "bbox": [
1326
+ 176,
1327
+ 417,
1328
+ 415,
1329
+ 431
1330
+ ],
1331
+ "page_idx": 10
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Our approach to cultural transmission periodically replaces agents by re-initializing them. The approach section outlines various replacement strategies (policy $\\pi$ ), but does not detail their implementation. We do so here. ",
1336
+ "bbox": [
1337
+ 176,
1338
+ 440,
1339
+ 821,
1340
+ 481
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "These strategies depend on a number of possible inputs: ",
1347
+ "bbox": [
1348
+ 174,
1349
+ 488,
1350
+ 540,
1351
+ 503
1352
+ ],
1353
+ "page_idx": 10
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "• $e$ the current epoch \n• $E$ the period of agent replacement \n• $v _ { i } ^ { Q } / v _ { i } ^ { A }$ the validation accuracy of agent $i$ for Q-bots/A-bots. For Q-bots this is averaged over all potential A-bot partners, and vice-versa for A-bots. \n• $a _ { i } ^ { Q } / a _ { i } ^ { A }$ the age in epochs of agent $i$ for Q-bots/A-bots ",
1358
+ "bbox": [
1359
+ 215,
1360
+ 513,
1361
+ 825,
1362
+ 602
1363
+ ],
1364
+ "page_idx": 10
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Single Agent strategies are given in Alg. 2 and Alg. 3. Multi Agent strategies are given in Alg. 4, Alg. 5, and Alg. 6. Note that Single Agent strategies always replace one agent while Multi Agent strategies always replace one Q-bot and one A-bot. An additional Replace All baseline strategy is given in Alg. ?? and generalizes to both Single and Multi Agent cases. ",
1369
+ "bbox": [
1370
+ 176,
1371
+ 612,
1372
+ 825,
1373
+ 669
1374
+ ],
1375
+ "page_idx": 10
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Algorithm 2: Single Agent - Random Replacement ",
1380
+ "text_level": 1,
1381
+ "bbox": [
1382
+ 173,
1383
+ 685,
1384
+ 514,
1385
+ 702
1386
+ ],
1387
+ "page_idx": 10
1388
+ },
1389
+ {
1390
+ "type": "table",
1391
+ "img_path": "images/ed91e29c2a138102a978b310760c77a94d968d29ef44b5a4f4271c450d890ece.jpg",
1392
+ "table_caption": [],
1393
+ "table_footnote": [],
1394
+ "table_body": "<table><tr><td>1 d~U{0,1}</td></tr><tr><td></td></tr><tr><td>2 if d=O then return {A-bot }</td></tr><tr><td></td></tr><tr><td>4 else return {Q-bot}</td></tr></table>",
1395
+ "bbox": [
1396
+ 160,
1397
+ 704,
1398
+ 823,
1399
+ 789
1400
+ ],
1401
+ "page_idx": 10
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "A.3 DETAILED RESULTS ",
1406
+ "text_level": 1,
1407
+ "bbox": [
1408
+ 174,
1409
+ 809,
1410
+ 357,
1411
+ 824
1412
+ ],
1413
+ "page_idx": 10
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "In our experiments we compare models and we compare replacement strategies. We ran dependent paired t-tests across random seeds, cross-val folds, and replacement strategies to compare models. We ran dependent paired t-tests across random seeds, cross-val folds, and models to compare replacement strategies. The p-values for all of these t-tests are reported here. ",
1418
+ "bbox": [
1419
+ 174,
1420
+ 833,
1421
+ 825,
1422
+ 888
1423
+ ],
1424
+ "page_idx": 10
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Replacement strategy comparisons are in Fig. 7 (Single Agent) and Fig. 8 (Multi Agent). Model comparisons are in Fig. 6. ",
1429
+ "bbox": [
1430
+ 173,
1431
+ 895,
1432
+ 823,
1433
+ 924
1434
+ ],
1435
+ "page_idx": 10
1436
+ },
1437
+ {
1438
+ "type": "image",
1439
+ "img_path": "images/fc000857cd1616211d7de8541016d7cbd9c818d97401baf12896a1033c618806.jpg",
1440
+ "image_caption": [
1441
+ "Figure 6: Replacement strategy comparison p-values. "
1442
+ ],
1443
+ "image_footnote": [],
1444
+ "bbox": [
1445
+ 235,
1446
+ 251,
1447
+ 766,
1448
+ 746
1449
+ ],
1450
+ "page_idx": 11
1451
+ },
1452
+ {
1453
+ "type": "image",
1454
+ "img_path": "images/3765b7e01ed3a5a0cfbba49a0af8fadc84510f5b295801cd24b995b74c104a2a.jpg",
1455
+ "image_caption": [
1456
+ "Figure 7: Single Agent model comparison p-values. "
1457
+ ],
1458
+ "image_footnote": [],
1459
+ "bbox": [
1460
+ 269,
1461
+ 142,
1462
+ 694,
1463
+ 849
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "image",
1469
+ "img_path": "images/7ef9b3e377968b1755836c0ed298545d627e2ebf38fcd55e8c7a107744b84db2.jpg",
1470
+ "image_caption": [
1471
+ "Figure 8: Multi Agent model comparison p-values. "
1472
+ ],
1473
+ "image_footnote": [],
1474
+ "bbox": [
1475
+ 240,
1476
+ 180,
1477
+ 759,
1478
+ 819
1479
+ ],
1480
+ "page_idx": 13
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Algorithm 3: Single Agent - Alternate Replacement ",
1485
+ "text_level": 1,
1486
+ "bbox": [
1487
+ 173,
1488
+ 148,
1489
+ 519,
1490
+ 165
1491
+ ],
1492
+ "page_idx": 14
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "1 Input: e \n2 if $\\lfloor e / E \\rfloor = 0$ then \n3 return { A-bot } \n4 else \n5 return { Q-bot } ",
1497
+ "bbox": [
1498
+ 160,
1499
+ 169,
1500
+ 313,
1501
+ 250
1502
+ ],
1503
+ "page_idx": 14
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "Algorithm 4: Multi Agent - Uniform Random Replacement ",
1508
+ "text_level": 1,
1509
+ "bbox": [
1510
+ 173,
1511
+ 353,
1512
+ 570,
1513
+ 369
1514
+ ],
1515
+ "page_idx": 14
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "text": "1 iA ∼ U{1, NA} \n2 iQ ∼ U{1, NQ} \n3 return { A-bot $i _ { A }$ , Q-bot iQ } ",
1520
+ "bbox": [
1521
+ 160,
1522
+ 371,
1523
+ 375,
1524
+ 416
1525
+ ],
1526
+ "page_idx": 14
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "Algorithm 5: Multi Agent - Epsilon Greedy Replacement ",
1531
+ "text_level": 1,
1532
+ "bbox": [
1533
+ 173,
1534
+ 521,
1535
+ 555,
1536
+ 536
1537
+ ],
1538
+ "page_idx": 14
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "text": "1 Input: $v _ { i } ^ { Q } \\forall i$ , $v _ { i } ^ { A } \\forall i$ , ε ∈ [0, 1) (usually 0.2) \n2 $d \\sim \\mathcal { U } [ 0 , \\overset { \\cdot } { 1 } )$ \n3 if $d < \\varepsilon$ then \n4 $i _ { A } \\sim \\mathcal { U } \\{ 1 , N _ { A } \\}$ \n5 $i _ { Q } \\sim \\mathcal { U } \\{ 1 , N _ { Q } \\}$ \n$\\mathbf { 6 }$ else \n7 $i _ { A } = \\mathrm { a r g m i n } _ { i } v _ { i } ^ { A }$ (unique in our experiments) \n8 $i _ { Q } = \\mathrm { a r g m i n } _ { i } v _ { i } ^ { Q }$ (unique in our experiments) \n9 return { A-bot iA, Q-bot iQ } ",
1543
+ "bbox": [
1544
+ 158,
1545
+ 540,
1546
+ 504,
1547
+ 685
1548
+ ],
1549
+ "page_idx": 14
1550
+ },
1551
+ {
1552
+ "type": "text",
1553
+ "text": "Algorithm 6: Multi Agent - Oldest Replacement ",
1554
+ "text_level": 1,
1555
+ "bbox": [
1556
+ 176,
1557
+ 787,
1558
+ 495,
1559
+ 803
1560
+ ],
1561
+ "page_idx": 14
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "1 Input: $a _ { i } ^ { Q } \\forall i$ , $a _ { i } ^ { V } \\forall i$ \n2 $i _ { A } = \\mathcal { U } \\{ \\mathrm { a r g m a x } _ { i } a _ { i } ^ { A } \\}$ \n3 $i _ { Q } = \\mathcal { U } \\{ \\mathrm { a r g m a x } _ { i } a _ { i } ^ { Q } \\}$ \n4 return { A-bot $i _ { A }$ , Q-bot iQ }",
1566
+ "bbox": [
1567
+ 160,
1568
+ 806,
1569
+ 375,
1570
+ 873
1571
+ ],
1572
+ "page_idx": 14
1573
+ }
1574
+ ]
parse/train/r1gzoaNtvr/r1gzoaNtvr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1gzoaNtvr/r1gzoaNtvr_model.json ADDED
The diff for this file is too large to render. See raw diff