ZHANGYUXUAN-zR commited on
Commit
608dee8
·
verified ·
1 Parent(s): b29c255

Add files using upload-large-folder tool

Browse files
parse/train/1ibNKMp8SKc/1ibNKMp8SKc.md ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ON DISENTANGLED REPRESENTATIONSLEARNED FROM CORRELATED DATA
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Despite impressive progress in the last decade, it still remains an open challenge to build models that generalize well across multiple tasks and datasets. One path to achieve this is to learn meaningful and compact representations, in which different semantic aspects of data are structurally disentangled. The focus of disentanglement approaches has been on separating independent factors of variation despite the fact that real-world observations are often not structured into meaningful independent causal variables. In this work, we bridge the gap to real-world scenarios by analyzing the behavior of most prominent methods and disentanglement scores on correlated data in a large scale empirical study (including 4260 models). We show that systematically induced correlations in the dataset are being learned and reflected in the latent representations, while widely used disentanglement scores fall short of capturing these latent correlations. Finally, we demonstrate how to disentangle these latent correlations using weak supervision, even if we constrain this supervision to be causally plausible. Our results thus support the argument to learn independent mechanisms rather than independent factors of variations.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Due to the induced structure, disentangled representations promise generalization to unseen scenarios (Higgins et al., 2017b), increased interpretability (Adel et al., 2018; Higgins et al., 2018) and faster learning on downstream tasks (van Steenkiste et al., 2019; Locatello et al., 2019a). While the advantages of disentangled representations have been well established, they generally assume the existence of natural factors that vary independently within the given dataset, which is rarely the case in real-world settings. As an example, consider a scene with a table and some chairs (see Fig. 1). The higher-level factors of this representation are in fact correlated and what we actually want to infer are independent (causal) mechanisms (Peters et al., 2017; Parascandolo et al., 2018; Suter et al., 2019; Goyal et al., 2019).
12
+
13
+ A complex generative model can be thought of as the composition of independent mechanisms or “causal” modules, which generate highdimensional observations (such as images or videos). In the causality community, this is often considered a prerequisite to achieve representations which are robust to interventions upon variables determined by such models (Peters et al., 2017). One particular instantiation of this idea in the machine learning community is the notion of disentangled representations (Bengio et al., 2013). The goal of disentanglement learning is to find a representation of the data which captures all the ground-truth factors of variation (FoV) independently.
14
+
15
+ ![](images/7cd9c32eb4e5dfbc24deba208b2c328f8872a001b1f886a15b06da7c96872ccb.jpg)
16
+ Figure 1: While in principle we consider the presence of the objects (coffee cup, table, chair) to be independent mechanisms, they tend to appear together in observed data.
17
+
18
+ Despite the recent growth of the field, the performance of state-of-the-art disentanglement learners remains unknown for more realistic settings where FoV are correlated during training. Given the potential societal impact in the medical domain (Chartsias et al., 2018) or fair decision making (Locatello et al., $2 0 1 9 \mathrm { a }$ ; Madras et al., 2018; Creager et al., 2019), the evaluation of the usefulness of disentangled representations trained on correlated data is of high importance.
19
+
20
+ To go beyond the highly idealized settings considered thus far, we conducted a large scale empirical study to systematically assess the effect of induced correlations between pairs of factors of variation in training data on the learned representations. To provide a qualitative and quantitative evaluation, we investigate multiple datasets with access to ground-truth labels. Moreover, we study the generalization abilities of the representations learned on correlated data as well as their performance in particular for the downstream task of fair decision making.
21
+
22
+ Contributions. Our main contributions can be summarized as follows:
23
+
24
+ • We present the first large-scale empirical study (4260 models)1 that examines how modern disentanglement learners perform when ground truth factors of the observational data are correlated.
25
+ • We find that factorization-based inductive biases are insufficient to learn disentangled representations from observational data. Existing methods fail to disentangle correlated factors of variation, resulting in correlated latent space dimensions. Moreover, standard disentanglement metrics do not reveal these persisting correlations.
26
+ • We investigate the usefulness of semi-supervised and weakly-supervised approaches to resolve latent entanglement. For the latter setting, we focus on multiple observational and interventional distributions.
27
+
28
+ # 2 BACKGROUND AND RELATED WORK
29
+
30
+ Disentanglement. Current state-of-the-art disentanglement approaches use the framework of variational auto-encoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014). The (high-dimensional) observations $_ { \textbf { \em x } }$ are modelled as being generated from some latent features $_ { z }$ with chosen prior $p ( z )$ according to the probabilistic model $p _ { \theta } ( \pmb { x } | \pmb { z } ) p ( \pmb { z } )$ . The generative model $p _ { \boldsymbol { \theta } } ( \boldsymbol { x } | \boldsymbol { z } )$ as well as the proxy posterior $q _ { \phi } ( \pmb { z } | \pmb { x } )$ can be parameterized by neural networks, which are optimized by maximizing the variational lower bound (ELBO) of $\log p ( \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { N } )$ .
31
+
32
+ $$
33
+ \mathcal { L } _ { V A E } = \sum _ { i = 1 } ^ { N } \mathbb { E } _ { q _ { \phi } ( z | \mathbf { x } ^ { ( i ) } ) } [ \log p _ { \theta } ( \mathbf { x } ^ { ( i ) } | z ) ] - D _ { K L } \big ( q _ { \phi } ( z | \mathbf { x } ^ { ( i ) } ) \| p ( z ) \big )
34
+ $$
35
+
36
+ The above objective does not enforce any structure on the latent space, except for similarity (in KL-divergence) to the prior $p ( z )$ (typically chosen as an isotropic Gaussian). However, the structure and semantic meaning of latent representations can be relevant to study generation properties. Consequently, various proposals for structure-imposing regularization and commonly used evaluation metrics measuring different notions of disentanglement of the learned representations have been made (Higgins et al., 2017a; Kim & Mnih, 2018; Burgess et al., 2018; Kumar et al., 2018; Chen et al., 2018; Eastwood & Williams, 2018; Mathieu et al., 2018). Recently, it has been shown that unsupervised disentangling by optimising marginal likelihood in a generative model is impossible without further inductive bias (Locatello et al., 2019b). To address this theoretical limitation, methods have been proposed that do not require explicitly labelled data but only some weak labeling information (Locatello et al., 2020; Shu et al., 2019). Ideas related to disentangling the factors of variations date back to the non-linear ICA literature (Bach & Jordan, 2002; Comon, 1994; Jutten & Karhunen, 2003; Hyvärinen & Pajunen, 1999; Hyvarinen et al., 2019; Hyvarinen & Morioka, 2016; Gresele et al., 2019). Recent work combines non-linear ICA with disentanglement (Khemakhem et al., 2020; Sorrenson et al., 2020; Klindt et al., 2020)
37
+
38
+ Correlations. A set of random variables $X _ { i = 1 , \ldots , n }$ is not independent, if and only if their joint distribution does not factorize
39
+
40
+ $$
41
+ P ( X _ { 1 } , X _ { 2 } , \ldots , X _ { n } ) \neq \prod _ { i = 1 } ^ { n } P ( X _ { i } ) .
42
+ $$
43
+
44
+ In this case, we speak of dependence between the random variables, also commonly referred to as correlation.2 Correlation between two variables can either stem from a direct causal relationship (one variable affects the other), but can also be due to different unobserved circumstances (confounders) affecting both. Real-world datasets display many of these (“spurious” and often a priori unknown) correlations (Geirhos et al., 2020). However, most work on learning disentangled representations assumes that there is an underlying set of independent ground truth variables that govern the generative process of observable data. These methods are hence predominantly evaluated on data that obey independence in the true factors of variation, which we then consider to be the correct factorization. In the real world, the observation generating process is likely not always as clearly “disentangled” and we do expect correlations in the collected datasets. It is thus an open question to what degree existing inductive biases from the encoder/decoder architecture, but more importantly the dataset biases, affect the learned representation. In our experiments, we introduce dataset correlations in a controlled manner to understand to what degree state-of-the-art approaches can cope with such correlations. We believe these correlations to reflect a major feature of more realistic environments.
45
+
46
+ ![](images/8434d800ad72d18ee910812aa691bbcbaf1629e87d4199312f4297e9514c68d5.jpg)
47
+ Figure 2: Disentanglement metrics show no clear trend along different correlation strengths (each violin represents 180 models, higher $\sigma$ indicates less correlation).
48
+
49
+ Other Related Work. Most popular datasets in the disentanglement literature exhibit perfect independence in their FoV. At some level this is sensible as it reflects the underlying assumption in the inductive bias being studied. However, this assumption is unlikely to hold in practice as shown by Li et al. (2019), who propose methods based on a pairwise independence assumption instead. The literature so far has not thoroughly measured how popular inductive biases such as factorized priors behave when learning from correlated datasets, although several smaller experiments along these lines can be acknowledged. Chen et al. (2018) studied correlated 3DFaces (Paysan et al., 2009) by fixing all except three factors in which the authors conclude that the $\beta$ -TC-VAE regularizer can help to disentangle imposed correlations. Brekelmans et al. (2019) show that Echo noise results in superior disentanglement compared to standard betaVAE in a small experiment on a downsampled dSprites variant where randomly selected factor pairs are excluded. However, the latent structure was not studied in detail; our findings suggest that global disentanglement metrics are insufficient to diagnose issues when models learn from correlated data. Creager et al. (2019) based some of the evaluations of a proposed new autoencoder architecture in the fairness context on a biased dSprites variant and Yang et al. (2020) study a linear SCM in a VAE architecure on datasets with dependent variables. However, their studies focused on representation learners that require strong supervision via FoV labels at train time.
50
+
51
+ # 3 THE EFFECT OF CORRELATED DATA ON DISENTANGLEMENT LEARNERS
52
+
53
+ In this section, we want to present the key findings from our empirical study of unsupervised disentanglement learning on a particular variant of correlated data. We start by outlining the experimental design of our study in Section 3.1. Based on this, we analyze the latent spaces in Section 3.2 and find that factorization-based inductive biases are insufficient to learn disentangled representations from observational data. Persisting pairwise correlations in the latent space are not sufficiently revealed by standard disentanglement metrics that might be particularly relevant and problematic for fairness applications. Finally, in Section 3.3, we show extrapolation and generalization capabilities of the learned representations towards unseen factor combinations due to the induced correlations.
54
+
55
+ # 3.1 EXPERIMENTAL DESIGN
56
+
57
+ For our first experiments we introduce correlations between single pairs of factors of variation on the following three datasets: Shapes3D with object size and azimuth (denoted “A”), dSprites with orientation and X-position (“B”) and finally the real-world observations dataset MPI-3D with first and second degree of freedom $\left( \ \stackrel { 6 6 } { \ C } \right)$ . We focus on linear correlations with Gaussian noise between the two variables, which we denote by $c 1 , c 2$ . The ground truth factors for $c 1 , c 2$ take values $z _ { c 1 } \in \{ 0 , \dots , z _ { c 1 } ^ { \operatorname* { m a x } } \}$ and $z _ { c 2 } \in \{ 0 , \dots , z _ { c 2 } ^ { \operatorname* { m a x } } \}$ respectively. We then parameterize correlations by sampling the training dataset from the joint $P ( z _ { c 1 } , z _ { c 2 } ) \propto \mathcal { N } ( z _ { c 2 } - \alpha z _ { c 1 } , \sigma )$ where $\alpha = z _ { c 2 } ^ { m a x } / z _ { c 1 } ^ { m a \bar { x } }$ The strength of the correlations can be tuned by $\sigma$ , for which we choose 0.2, 0.4, 0.7 in normalized units with respect to the range of values in $z _ { c 1 , c 2 }$ . Lower $\sigma$ indicates stronger correlation. See Fig. 5 for an example of $P ( z _ { c 1 } , z _ { c 2 } )$ for correlating azimuth and object size in Shapes3D with $\sigma = 0 . 2$ . Additionally, we study the uncorrelated limit $\sigma = \infty$ ), which amounts to the case typically studied in the literature. We train the same six VAE methods as discussed in Locatello et al. (2019b), including $\beta$ -VAE, FactorVAE, AnnealedVAE, DIP-VAE-I, DIP-VAE-II and $\beta$ -TC-VAE, each with six hyperparameter settings. Each method has been trained using five different random seeds. All remaining factors of variation are sampled uniformly at random. This first study sums up to a total of 2160 trained models, or 180 models per dataset and correlation strength3. Appendix A describes additional implementation details.
58
+
59
+ ![](images/c8e59e5dfb217a4b7e563ded39aa232ed4236c8bcac9947b1dbceacc1ab965b7.jpg)
60
+ Figure 3: We show latent traversals (left) of the best DCI score model among all 180 trained models with strongest correlation $\sigma = 0 . 2$ ) on Shapes3D (A). The traversals in latent code dimensions 4 and 8 (highlighted in black), suggest that these dimensions encode a mixture of azimuth and object size, reflecting one major axis along the correlation line of the joint distribution and one smaller, locally orthogonal axis. This is supported by a heat map of the GBT feature importance matrix of this model (right) indicating an entanglement of azimuth and object size encoded into both latent codes.
61
+
62
+ # 3.2 CAN UNSUPERVISED METHODS ACHIEVE DISENTANGLEMENT OF CORRELATED DATA?
63
+
64
+ Shortcomings of existing metrics. Following recent studies, we evaluate the trained models with the help of a broad range of disentanglement metrics that aim at quantifying overall success by a single scalar measure. Perhaps surprisingly, Fig. 2 shows no clear trend among all implemented disentanglement scores w.r.t. correlation strength (see Fig. 9 in the Appendix for the full result across all datasets and metrics). The metrics have been evaluated by sampling from the correlated data distribution although they do not differ substantially when evaluated on the uncorrelated distribution. However, as we will demonstrate along the following analysis, the latent spaces in this setting show some characteristic differences when trained on a strongly correlated pair of FoVs. We thus argue that common disentanglement metrics are limited when correlations are introduced into the training data. To conduct a more careful analysis of the inductive data bias applied on the learned representations we will instead evaluate pairwise metrics. Note that regarding BetaVAE and FactorVAE this observed trend is to some degree expected as they would yield perfect disentanglement scores even if we would take the correlated ground truth factors or a linear transformation in the case of BetaVAE as the representation.
65
+
66
+ Latent structure and pairwise entanglement. We start by analysing latent traversals of some trained models on Shapes3D (A). For strong correlations $\sigma = 0 . 2$ and $\sigma = 0 . 4$ ), we typically observe trained models with two latent codes encoding the two correlated variables simultaneously. In these cases, one of the latent codes corresponds to data along the major axis of the correlation line whereas the other latent code dimension manifests in an orthogonal change of the two variables along the minor axis. Still, a full traversal of the code corresponding to the minor axis often seems to cover only observations within the correlation line. Fig. 3 (left) shows this effect for the latent space of a model trained on Shapes3D (A) with strongest correlation $\sigma = 0 . 2$ ).
67
+
68
+ ![](images/f824ae85040c71c66286db291a42526822f07e8f2335325a9be194b7b8a49246.jpg)
69
+
70
+ Figure 4: Left: Pairwise entanglement scores help to uncover still existent correlations in the latent representation. Left: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs. We see that stronger correlation leads to statistically more entangled latents compared to the baseline score without correlation (blue). Right: The same behavior can be seen for the unfairness score between the correlated pair of factors.
71
+
72
+ <table><tr><td>Correlation strength</td><td></td><td>g=0.2</td><td>g=0.4</td><td>g=0.7</td><td>σ=∞ (uc)</td></tr><tr><td rowspan="2">Shapes3d (A)</td><td>object size - azimuth</td><td>0.38</td><td>0.26</td><td>0.13</td><td>0.08</td></tr><tr><td>median uncorrelated pairs</td><td>0.09</td><td>0.09</td><td>0.09</td><td>0.08</td></tr><tr><td rowspan="2">dSprites (B)</td><td>orientation - position X</td><td>0.17</td><td>0.16</td><td>0.14</td><td>0.11</td></tr><tr><td>median uncorrelated pairs</td><td>0.13</td><td>0.13</td><td>0.13</td><td>0.13</td></tr><tr><td rowspan="2">MPI3D (C)</td><td>First DOF - Second DOF</td><td>0.2</td><td>0.19</td><td>0.17</td><td>0.16</td></tr><tr><td>median uncorrelated pairs</td><td>0.16</td><td>0.16</td><td>0.15</td><td>0.15</td></tr></table>
73
+
74
+ To quantify this observation, we analyze the importance of individual latent codes in predicting the value of a given ground truth FoV. An importance weight for each pair of $\{ \mathrm { F o V } ,$ latent dimension} is computed by training a gradient boosting trees (GBT) classifier to predict the ground truth labels from the latents (10,000 samples). In the right panel of Fig. 3, we compute these importance weights for the model used to generate traversals in the left panel. The corresponding evaluation for a model trained on the same dataset with weak correlation does not reveal this feature visually (see Fig. 10 in the Appendix).
75
+
76
+ To support this claim for a larger set of models, we calculate a pairwise entanglement score that allows us to measure how difficult it is to separate two factors of variation from their latent codes. This computation involves grouping FoV into pairs based on an ordering of their pairwise mutual information or GBT feature importance between latents and FoV; we defer to Appendix A for a detailed description of this procedure. Figure 4 (left) shows that across all datasets the pair of correlated FoV has a higher score than the median of all other pairs, indicating that they are harder to disentangle. This threshold decreases with weaker correlation and the pair becomes easier to disentangle for weaker correlations $( \sigma \ge 0 . 7 )$ . These findings suggest that the models still manage to disentangle correlated factors if the correlation is not too strong.
77
+
78
+ Finally, correlations between variables are of crucial importance in fairness applications motivating an additional investigation on ramifications of these entangled latent spaces. In this setting we are interested in the unfairness of predicting the second correlated variable while the first correlated variable is considered being a protected or sensitive attribute. In the following, we use a variant of demographic parity (Dwork et al., 2012) that computes pairwise mutual information between latents and FoV (Locatello et al., 2019a). In Fig. 4 (right) we evaluate this score when correlations are present within the data in the case of Shapes3D (A). Unfairness tracks correlation strength in this scenario. These results suggest that we cannot expect disentangled representations learned unsupervisedly to help reduce unfairness beyond the benefits discussed in Locatello et al. (2019a). More comprehensive results, that support the finding that the correlated pair is statistically more entangled in the latent representations across all unsupervised experiments and datasets is provided in Appendix B.1.
79
+
80
+ Summary. We find that existing methods fail to learn disentangled representations of correlated factors of variation, and moreover that standard disentanglement metrics are insufficient to reveal these troublesome pairwise entanglements in the latent space.
81
+
82
+ # 3.3 GENERALIZATION PROPERTIES
83
+
84
+ In this Section, we aim to understand how the trained models perform on unseen training data far away from the correlation line; out-of-distribution (OOD) w.r.t. the train distribution. We analyse this capability for the model from Fig. 3. In this model, the remaining factors seem to be disentangled well enough to only focus on the two latent dimensions encoding the entangled variables.
85
+
86
+ As a first test, we sample observations from the FoV then set object size and azimuth to six distinct configurations of zero probability, see Fig. 5 (left). The trained model is capable of reconstructing these observations despite never having encountered these configurations or neighbors thereof during training. This suggests that the encoder maps representations to a meaningful point in the latent space from which the decoder is equally capable of generating expected observations. To test this hypothesis further, we analysed latent traversals originating from these OOD points and observe that changes in the remaining factors reliably yield the expected reconstructions. Traversals with respect to the two entangled latent codes continue to encode object size and azimuth.
87
+
88
+ ![](images/3a4907b6a6815be9ba92ce3f27dba690c6be01f16deae4a661172b14204a1d76.jpg)
89
+ Figure 5: Generalization to out-of-distribution (OOD) test data. Left: Reconstructions of observations the model has never seen during training. Right: Latent space distribution of the two entangled dimensions. Circles without edges indicates encoded data from the (correlated) training distribution, while circles with edges indicate encoded OOD data where the correlation pattern is broken.
90
+
91
+ To fully understand this models’ generalization properties we visualise the occupied latent space spanned by the two identified dimensions encoding both correlated factors in Fig. 5 (right). We are particularly interested in where these points are located with respect to the ground truth value of each correlated variable, depicted via color. The two sets of depicted points are (1) latent codes sampled from the correlated training data and (2) latent codes sampled with a (object size, azimuth) configuration that has zero probability under the correlated training distribution. We observe that contours of equal color (ground truth) are not aligned with the latent axes. This indicates that the two latent dimensions encode both FoV at the same time. Likewise, we can understand the generalization capabilities of this model far away from the trained data. Extreme configurations such as small azimuth and large object size are encoded to space regions corresponding to the intersections of the manifolds with constant value for each correlated variable. This shows that all out-of-distribution points are encoded in this representation space in a way that obeys the natural ordering of each respective factor. This behaviour remains even in cases where the trained latent space does not mirror the default value ordering as stored in our ground truth table. For this we additionally trained 360 models on two additional Shapes3D variants each, where we strongly correlated object color - object size (“D”) and object color - azimuth (“E”) respectively $\sigma = 0 . 2$ and $\sigma = 0 . 4$ ). As the color values do not allow for a unique natural ordering, the trained models do often encode a different color manifold ordering into the latent space. In Appendix B.1, we show some of their characteristic latent space visualizations with similar extrapolation and generalization capabilities. We conclude from these results that disentanglement methods can generalize towards unseen FoV configurations as long as each factor value is contained in the training data within a different configuration.
92
+
93
+ # 4 FINDING THE RIGHT FACTORIZATION
94
+
95
+ The results from Section 3 illustrate the limitations of state-of-the-art unsupervised methods on correlated data (and thus real-world observational data). We now investigate the usefulness of several approaches for mitigating pairwise correlations in the latent code. We begin with a post-hoc procedure in Section 4.1 that uses limited label information on the ground truth factors and show that it achieves a substantial correction of the pairwise latent correlation. We then consider a recently proposed approach leveraging recent advances in weakly supervised disentanglement learning that applies directly at train time. As will be seen in Section 4.2, this method results in substantially more disentangled representations, even when applied on correlated data from different sampling scenarios.
96
+
97
+ Figure 6: Fast adaption with few labels: Pairwise entanglement scores for correlated FoV pair in Shapes3D (A). The correlated pair is highlighted (red). Zero labels reflects the unsupervised baseline without any fast adaptation. Growing number of labels show that fast adaption using linear regression reduces these correlations with as little as 100 labels (blue). Reported pairwise scores are averaged over 180 models per correlation strength.
98
+
99
+ <table><tr><td>#Labels</td><td></td><td>0</td><td>100</td><td>1000</td><td>10000</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td>object size - azimuth</td><td>0.38</td><td>0.17</td><td>0.15</td><td>0.15</td></tr><tr><td>Shapes3D (A) σ= 0.2</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.08</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (A) σ = 0.4</td><td> object size - azimuth</td><td>0.26</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Shapes3D (A) σ = 0.4</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.08</td><td>0.08</td><td>0.08</td></tr></table>
100
+
101
+ # 4.1 POST-HOC ALIGNMENT CORRECTION WITH FEW LABELS
102
+
103
+ When a limited number of FoV labels $\left\{ \mathbf { y } _ { i } \right\}$ can be accessed, a reasonable option for resolving entangled dimensions of the latent code is by fast adaptation. To identify the two entangled dimensions $( z _ { i } , z _ { j } )$ we look at the maximum feature importance for a given FoV from a GBT trained using these labels only. We then train a substitution function using supervised learning to replace these two dimensions with the predicted ground truth label. Crucially, both steps of this procedure rely on the same FoV labels, which should be as few as possible. In Fig. 6 we show the pairwise entanglement score of the correlated FoVs under this fast adaptation with a linear regression as the substitution function, which succeeds with as few as 100 labels, corresponding to less than $0 . 0 2 \%$ of all data points in Shapes3D. However, fast adaptation with linear regression substitution fails in some settings: when no two latent dimensions encode the applied correlation isolated from the other latent codes, or when the correlated variables do not have a unique natural ordering (e.g. color or categorical variables). To address this, a nonlinear substitution function such as a MLP can reduce this pairwise entanglement to a certain degree (see additional results in Appendix B.2).
104
+
105
+ We find that the efficacy of fast adaptation depends on the level of disentanglement of the representations with respect to all the other factors. This implies that if the representation is well disentangled at the start of the fast adaption procedure, it is possible to achieve a perfectly disentangled model (according to our previous visual and quantitative evaluations). However, if all FoV are entangled at the beginning, the fast adaption method will have little effect. Finally, we note that model selection is impossible in a purely unsupervised manner based on any of the used disentanglement metrics, as they all require labeled ground truth data. These shortcomings shall be resolved by the following method capable of disentangling the correlated factors of variation much more reliably.
106
+
107
+ # 4.2 ALIGNMENT DURING TRAINING USING WEAK SUPERVISION
108
+
109
+ Since the unsupervised disentangling by optimising marginal likelihood in a generative model is impossible (Locatello et al., 2019b, Theorem 1), inductive biases like grouping information (Bouchacourt et al., 2018) or access to labels (Locatello et al., 2019c) is required. Changes in natural environments, which typically correspond to changes of only a few underlying factors of variation, provide a weak supervision signal for representation learning algorithms (Goyal et al., 2019; Földiák, 1991; Schmidt et al., 2007; Bengio et al., 2019). Without correlations it has been shown that this weak supervision helps in learning much more disentangled representations (Locatello et al., 2020; Shu et al., 2019). Locatello et al. (2020) showed access to observations which display differences in a known number of factors of variation (without knowing which ones specifically) is sufficient to learn disentangled representation. These additional weak assumptions render the generative model identifiable in contrast to unsupervised disentanglement. This kind of extra knowledge might be available in certain settings 4, e.g., in temporarily close frames from a video of a moving robot arm where some factors remain unchanged. Hence, we want to investigate the usefulness of such a weakly-supervised method applied in various scenarios when training data is correlated. Specifically we implement the Ada-GVAE variant of Locatello et al. (2020) that was shown to allow for model selection via the (unsupervised) reconstruction loss. The method requires a pair of observations that differs in a known number of factors, without knowing which in particular.
110
+
111
+ ![](images/143ef6a989097e83190d62e51d5d5cd9acff40e9f5e8469f5605bbda6b516512.jpg)
112
+ Figure 7: Weak supervision: Left: With weak supervision trained models on Shapes3D correlation object size and azimuth learn consistently improved, often perfect, disentangled representations across all correlation strengths. Middle: Unfairness scores between correlated FoVs are much smaller (see scale). Right: Latent dimensions of a best DCI model with strong correlation $\mathit { \check { \sigma } } = 0 . 2 $ ). Representations are axis-aligned with respect to both of the correlated variables ground truth values (right). Below: Traversals of a model trained with strong correlation $( \sigma = 0 . 2$ )
113
+
114
+ Weak supervision mitigates pairwise latent entanglement. We trained the three correlated Shapes3D variants (A, D, E) with pairwise correlations between object color, object size and azimuth with the same correlation strength settings. Due to the definition of the regularizer we limit this study to the $\beta$ -VAE models with the same 6 hyperparameters and use 5 random seeds, yielding 360 additional models. For the generation of pairs we study the case where the difference in the observation pairs is present in one random FoV. Whenever we sample the difference to be in one of the correlated FoV, its respective value in each pair is drawn from the probability distribution conditioned on the other correlated FoV. This means the difference in this factor is typically very small and depends on the correlation strength. Note that this procedure assures that constructed pairs are consistent with the observational data such that the correlation is never broken. Fig. 7 summarizes the weak supervision results when imposing correlations in object size and azimuth. We consistently observe much better disentangled models, often achieving perfect DCI score irrespective of correlations in the dataset. The latent spaces tend to strongly align their coordinates with the ground truth label axis. Finally, weak-supervision reduces unfairness relative to the unsupervised baseline, and occasionally achieves zero unfairness score.
115
+
116
+ These results suggest that weak supervision can provide a strong inductive bias capable of finding the right factorization and resolving spurious correlations for datasets of unknown degree of correlation. As a prominent example, this is an issue in the fairness context where real-world datasets often display unknown discriminatory correlations. Additional results on the other datasets can be found in Appendix B.2 including two additional scenarios where one has intervening capabilities to generate the pair. We consistently observe the same strong trends regarding disentangled correlations in all of the above studies using weak supervision.
117
+
118
+ # 5 CONCLUSION
119
+
120
+ We have presented the first large-scale empirical study examining how modern disentanglement learners cope with correlated observational data. We find that existing methods fail to learn disentangled representations of correlated factors of variation, and moreover that standard disentanglement metrics are insufficient to reveal these pairwise entanglements. We discussed practical implications for downstream tasks like fair decision making. Finally, we demonstrate how to correct for these latent correlations via various weakly supervised training scenarios. Our results thus support the importance and usefulness of learning independent mechanisms rather than independent factors of variations (Schölkopf, 2019; Parascandolo et al., 2018; Suter et al., 2019; Goyal et al., 2019). Besides the simple correlations studied in this work, future work is needed to address the open question whether these results extend to more complex nonlinear correlations and settings where many more variables are correlated simultaneously.
121
+
122
+ # REFERENCES
123
+
124
+ Tameem Adel, Zoubin Ghahramani, and Adrian Weller. Discovering interpretable representations for both deep generative and discriminative models. In International Conference on Machine Learning, pp. 50–59, 2018.
125
+
126
+ Francis Bach and Michael Jordan. Kernel independent component analysis. Journal of Machine Learning Research, 3(7):1–48, 2002.
127
+
128
+ Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013.
129
+
130
+ Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Rosemary Ke, Sébastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. arXiv preprint arXiv:1901.10912, 2019.
131
+
132
+ Diane Bouchacourt, Ryota Tomioka, and Sebastian Nowozin. Multi-level variational autoencoder: Learning disentangled representations from grouped observations. In AAAI Conference on Artificial Intelligence, 2018.
133
+
134
+ Rob Brekelmans, Daniel Moyer, Aram Galstyan, and Greg Ver Steeg. Exact rate-distortion in autoencoders via echo noise. In Advances in Neural Information Processing Systems, pp. 3889– 3900, 2019.
135
+
136
+ Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in beta-VAE. arXiv preprint arXiv:1804.03599, 2018.
137
+
138
+ Agisilaos Chartsias, Thomas Joyce, Giorgos Papanastasiou, Scott Semple, Michelle Williams, David Newby, Rohan Dharmakumar, and Sotirios A Tsaftaris. Factorised spatial representation learning: Application in semi-supervised myocardial segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 490–498. Springer, 2018.
139
+
140
+ Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, 2018.
141
+
142
+ Pierre Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994.
143
+
144
+ Elliot Creager, David Madras, Jörn-Henrik Jacobsen, Marissa A Weis, Kevin Swersky, Toniann Pitassi, and Richard Zemel. Flexibly fair representation learning by disentanglement. arXiv preprint arXiv:1906.02589, 2019.
145
+
146
+ Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214–226. ACM, 2012.
147
+
148
+ Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. In International Conference on Learning Representations, 2018.
149
+
150
+ Peter Földiák. Learning invariance from transformation sequences. Neural Computation, 3(2): 194–200, 1991.
151
+
152
+ Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020.
153
+
154
+ Anirudh Goyal, Alex Lamb, Jordan Hoffmann, Shagun Sodhani, Sergey Levine, Yoshua Bengio, and Bernhard Schölkopf. Recurrent independent mechanisms. arXiv preprint arXiv:1909.10893, 2019.
155
+
156
+ Luigi Gresele, Paul K. Rubenstein, Arash Mehrjou, Francesco Locatello, and Bernhard Schölkopf. The incomplete rosetta stone problem: Identifiability results for multi-view nonlinear ica. In Conference on Uncertainty in Artificial Intelligence (UAI), 2019.
157
+
158
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a.
159
+
160
+ Irina Higgins, Arka Pal, Andrei Rusu, Loic Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. Darla: Improving zero-shot transfer in reinforcement learning. In International Conference on Machine Learning, 2017b.
161
+
162
+ Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bošnjak, Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018.
163
+
164
+ Aapo Hyvarinen and Hiroshi Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ica. In Advances in Neural Information Processing Systems, 2016.
165
+
166
+ Aapo Hyvärinen and Petteri Pajunen. Nonlinear independent component analysis: Existence and uniqueness results. Neural Networks, 1999.
167
+
168
+ Aapo Hyvarinen, Hiroaki Sasaki, and Richard E Turner. Nonlinear ica using auxiliary variables and generalized contrastive learning. In International Conference on Artificial Intelligence and Statistics, 2019.
169
+
170
+ Christian Jutten and Juha Karhunen. Advances in nonlinear blind source separation. In International Symposium on Independent Component Analysis and Blind Signal Separation, pp. 245–256, 2003.
171
+
172
+ Ilyes Khemakhem, Diederik Kingma, Ricardo Monti, and Aapo Hyvarinen. Variational autoencoders and nonlinear ica: A unifying framework. In International Conference on Artificial Intelligence and Statistics, pp. 2207–2217, 2020.
173
+
174
+ Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In International Conference on Machine Learning, 2018.
175
+
176
+ Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations, 2014.
177
+
178
+ David Klindt, Lukas Schott, Yash Sharma, Ivan Ustyuzhaninov, Wieland Brendel, Matthias Bethge, and Dylan Paiton. Towards nonlinear disentanglement in natural data with temporal sparse coding. arXiv preprint arXiv:2007.10930, 2020.
179
+
180
+ Abhishek Kumar, Prasanna Sattigeri, and Avinash Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. In International Conference on Learning Representations, 2018.
181
+
182
+ Zejian Li, Yongchuan Tang, Wei Li, and Yongxing He. Learning disentangled representation with pairwise independence. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 4245–4252, 2019.
183
+
184
+ Francesco Locatello, Gabriele Abbati, Thomas Rainforth, Stefan Bauer, Bernhard Schölkopf, and Olivier Bachem. On the fairness of disentangled representations. In Advances in Neural Information Processing Systems, pp. 14584–14597, 2019a.
185
+
186
+ Francesco Locatello, Stefan Bauer, Mario Lucic, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In International Conference on Machine Learning, 2019b.
187
+
188
+ Francesco Locatello, Michael Tschannen, Stefan Bauer, Gunnar Rätsch, Bernhard Schölkopf, and Olivier Bachem. Disentangling factors of variation using few labels. The 2nd Learning from Limited Labeled Data (LLD) Workshop at the International Conference on Learning Representations, 2019c.
189
+
190
+ Francesco Locatello, Ben Poole, Gunnar Rätsch, Bernhard Schölkopf, Olivier Bachem, and Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020.
191
+
192
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. arXiv preprint arXiv:1802.06309, 2018.
193
+
194
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Fairness through causal awareness: Learning causal latent-variable models for biased data. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pp. 349–358, 2019.
195
+
196
+ Emile Mathieu, Tom Rainforth, N. Siddharth, and Yee Whye Teh. Disentangling disentanglement in variational auto-encoders. arXiv preprint arXiv:1812.02833, 2018.
197
+
198
+ G. Parascandolo, N. Kilbertus, M. Rojas-Carulla, and B. Schölkopf. Learning independent causal mechanisms. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 4033–4041, 2018.
199
+
200
+ Pascal Paysan, Reinhard Knothe, Brian Amberg, Sami Romdhani, and Thomas Vetter. A 3d face model for pose and illumination invariant face recognition. In 2009 Sixth IEEE International Conference on Advanced Video and Signal Based Surveillance, pp. 296–301. Ieee, 2009.
201
+
202
+ J. Peters, D. Janzing, and B. Schölkopf. Elements of Causal Inference - Foundations and Learning Algorithms. MIT Press, Cambridge, MA, USA, 2017.
203
+
204
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
205
+
206
+ Mark Schmidt, Alexandru Niculescu-Mizil, Kevin Murphy, et al. Learning graphical model structure using l1-regularization paths. In AAAI, volume 7, pp. 1278–1283, 2007.
207
+
208
+ Bernhard Schölkopf. Causality for machine learning. arXiv preprint arXiv:1911.10500, 2019.
209
+
210
+ Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, and Ben Poole. Weakly supervised disentanglement with guarantees. arXiv preprint arXiv:1910.09772, 2019.
211
+
212
+ Peter Sorrenson, Carsten Rother, and Ullrich Köthe. Disentanglement by nonlinear ica with general incompressible-flow networks (gin). arXiv preprint arXiv:2001.04872, 2020.
213
+
214
+ Raphael Suter, Djordje Miladinovic, Stefan Bauer, and Bernhard Schölkopf. Interventional robustness ´ of deep latent variable models. In International Conference on Machine Learning, 2019.
215
+
216
+ Sjoerd van Steenkiste, Francesco Locatello, Jürgen Schmidhuber, and Olivier Bachem. Are disentangled representations helpful for abstract visual reasoning? arXiv preprint arXiv:1905.12506, 2019.
217
+
218
+ Mengyue Yang, Furui Liu, Zhitang Chen, Xinwei Shen, Jianye Hao, and Jun Wang. Causalvae: Structured causal disentanglement in variational autoencoder. arXiv preprint arXiv:2004.08697, 2020.
219
+
220
+ # A IMPLEMENTATION DETAILS
221
+
222
+ Unsupervised Disentanglement methods. For reasons of comparison, the considered disentanglement methods in this work cover the full collection of state-of-the-art approaches in disentanglement_lib from Locatello et al. (2019b) based on representations learned by VAEs. The set contains six different methods that enforce disentanglement of the representation by equipping the loss with different regularizers that aim at enforcing the special structure of the posterior aggregate encoder distribution. A detailed description of the regularizer forms used in this work, specifically $\beta$ -VAE (Higgins et al., 2017a), FactorVAE (Kim & Mnih, 2018), AnnealedVAE (Burgess et al., 2018), DIP-VAE-I, DIP-VAE-II (Kumar et al., 2018) and $\beta$ -TC-VAE (Chen et al., 2018) is provided in (Locatello et al., 2019b). We use the same encoder architecture with 10 latent dimensions for every model.
223
+
224
+ Evaluation metrics. To measure disentanglement of a learned representation, various metrics have been proposed, each requiring access to the ground truth labels. The BetaVAE score is based upon the prediction of a fixed factor from the disentangled representation using a linear classifier (Higgins et al., 2017a). The FactorVAE score is intended to correct for some failures of the former by utilizing majority vote classifiers based on a normalized variance of each latent dimension (Kim & Mnih, 2018). The SAP score represents the mean distance between the classification errors of the two latent dimensions that are most predictable (Kumar et al., 2018). For the MIG score, one computes the mutual information between the latent representation and the ground truth factors and calculates the final score using a normalized gap between the two highest MI entries for each factor. Finally, a disentanglement score proposed by Eastwood & Williams (2018), often referred to as DCI score, is calculated from a dimension-wise entropy reflecting the usefulness of the dimension to predict a single factor of variation.
225
+
226
+ Unfairness between a pair of FoV: The scores reported are based on a notion of demographic parity for predicting a target variable $y$ given a protected and sensitive variable $s$ . Both $y$ and $s$ can be associated with a factor of variation here. Rather than using the global total variation average as defined in Locatello et al. (2019a), we report the individual demographic parities for the correlated factors specifically.
227
+
228
+ Pairwise entanglement metric: In order to further analyze the differences between the GBT feature importance matrices between latent code and encoded factor of variation, we view them as weights on the edges of a bipartite graph encoding the statistical relation between each factor of variation and code. We can now delete all edges with weight smaller than some threshold and count (i) how many factors of variation are connected with at least a latent code and (ii) the number of connected components with size larger than one. We can then compute which factors are merged at which threshold. Factors that are merged at lower threshold are more entangled in the sense that are more statistically related to a shared latent dimension. This computation can be not only based on the GBT feature importances but likewise on weight matrices inferred from the Mutual Information.
229
+
230
+ Joint distributions of correlated factors in datasets: In Fig. 8 we show the joint probability distributions of the correlated pair of FoV for all datasets and correlation strengths considered in this study. Dataset A, B and C were designed with correlated factors of variation that are ordinal for a natural visual interpretation of the traversals. In contrast, datasets D and E contain a correlated factor of variation that has no such natural ordering.
231
+
232
+ # B ADDITIONAL RESULTS
233
+
234
+ # B.1 SECTION 3
235
+
236
+ Shortcomings of existing metrics. Following recent studies, we evaluate the trained models with the help of a broad range of disentanglement metrics that aim at quantifying overall success by the help of a single scalar measure. Perhaps surprisingly, as can be seen in Fig. 9, there is no clear trend among all implemented disentanglement scores w.r.t. correlation strength. The metrics have been evaluated by sampling from the correlated data distribution although they do not differ substantially when evaluated on the uncorrelated distribution. We thus argue that commonly used methods are insufficient to provide insight into the latent space learned.
237
+
238
+ ![](images/f94feea5848132b951f473cf53dfa9d1dc6ef33b49735fc543b46e24ae0ecf97.jpg)
239
+ Figure 8: Probability distributions for sampling training data in the correlated pair of FoVs in the respective datasets (A, B, C, D, E) considering correlation strengths of $\sigma = 0 . 2$ , $\sigma = 0 . 4$ , $\sigma = 0 . 7$ and $\sigma = \infty$ , the uncorrelated limit (from left to right).
240
+
241
+ ![](images/befc523d57a6f4ddbe357b7dbbffc7e45da3efd7984297017b532022ddc94e3f.jpg)
242
+ Figure 9: Standard disentanglement metrics evaluated on the correlated and uncorrelated (uc) training set showing no clear trend for different correlation strengths.
243
+
244
+ ![](images/60b117850a53daf06a30455a78996762a9ba12708937fe8953bef3fc11a32782.jpg)
245
+ Figure 10: We show latent traversals (left) of the best DCI score model among all 180 trained models with weak correlation $\sigma = 0 . 7$ ) in object size and azimuth. The traversals in latent code no 3 and 7/8 (highlighted in black), suggest that these dimensions encode no mixture of azimuth and object size compared to the models with stronger correlation. This is supported by the GBT feature importance matrix of this model (right).
246
+
247
+ <table><tr><td>correlation strength o</td><td></td><td>0.2 0.4</td><td>0.7</td><td>8 (uc)</td></tr><tr><td>Shapes3D (A)</td><td>object size - azimuth median other pairs</td><td>0.38 0.26 0.09 0.09</td><td>0.13 0.09</td><td>0.08 0.08</td></tr><tr><td>dSprites (B)</td><td>orientation - position X median other pairs</td><td>0.17 0.16 0.13 0.13</td><td>0.14 0.13</td><td>0.11 0.13</td></tr><tr><td>MPI3D (C)</td><td>First DOF - Second DOF median other pairs</td><td>0.2 0.19 0.16 0.16</td><td>0.17 0.15</td><td>0.16 0.15</td></tr></table>
248
+
249
+ <table><tr><td>0.2</td><td>0.4</td><td>0.7</td><td>8(uc)</td></tr><tr><td>0.28</td><td>0.25</td><td>0.2</td><td>0.17 0.18</td></tr><tr><td>0.2 0.34</td><td>0.2 0.31</td><td>0.19 0.24</td><td>0.14</td></tr><tr><td>0.16</td><td>0.18</td><td>0.19</td><td>0.15</td></tr><tr><td>0.54</td><td>0.52</td><td>0.5</td><td>0.49</td></tr><tr><td>0.25</td><td>0.25</td><td>0.26</td><td>0.25</td></tr></table>
250
+
251
+ <table><tr><td>0.2</td><td>0.4</td></tr><tr><td>0.38 0.11</td><td>0.31 0.11</td></tr><tr><td>0.43</td><td>0.3</td></tr><tr><td>0.15</td><td>0.15</td></tr></table>
252
+
253
+ Figure 11: Pairwise entanglement scores help to uncover still existent correlations in the latent representation. Left: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs. We see that stronger correlation leads to statistically more entanglement latents across all datasets studied compared to their baseline pairwise entanglement where the data exhibits no correlations (blue). Each pairwise score is the mean across 180 models for each dataset and correlation strength. Scores in the left table are based on GBT feature importance and scores presented in the right table are based on Mutual Information.
254
+
255
+ <table><tr><td>correlation strength o</td><td></td><td>0.2</td><td>0.4</td></tr><tr><td>Shapes3D (D)</td><td>object color - object size</td><td>0.29</td><td>0.28</td></tr><tr><td></td><td>median uncorrelated pairs</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (E)</td><td>object color - azimuth</td><td>0.25</td><td>0.23</td></tr><tr><td></td><td>median uncorrelated pairs</td><td>0.1</td><td>0.09</td></tr></table>
256
+
257
+ Latent structure and pairwise entanglement. Our hypothesis that the latent representations are less correlated if the correlation strength is weaker is shown for a model on Shapes3D (A) with weak correlation in Fig. 10. Here the latent traversals do not mirror the major and minor axis of the correlated joint distribution. This conclusion is being backed by the thresholds of the pairwise entanglement metrics for the correlated pair vs. the median of all other pairs across all datasets, either when computing them using the GBT feature importances or the mutual information. See Fig. 11 for these respective results. Another pairwise metric that tracks the correlation strength in our scenario is the unfairness score between the correlated pair of factors that is being shown for datasets A, B and C in Fig. 12.
258
+
259
+ Generalization Properties In order to support our conclusion from these results that disentanglement methods can generalize towards unseen FoV configurations we show in Fig. 13 latent traversals originating from these OOD point with smallest object size and largest azimuth. We observe that changes in the remaining factors reliably yield the expected reconstructions. Additionally, we are interested in where samples from correlated models are located with respect to the ground truth value of each correlated variable. For this, we are visualizing the latent spaces with similar extrapolation and generalization capabilities of four models from the two strongest correlation dataset variants of Shapes3d (D) and Shapes3d (E) in Fig. 14.
260
+
261
+ ![](images/34e189fd63cfbbe62d7bfd7f7f4115352a98f83edeef49f6dc31182e3a752e6d.jpg)
262
+ Figure 12: Disentangled representations trained on correlated data are anti-correlated with higher fairness properties. The plots show the mean unfairness scores between the correlated factors with decreasing correlation strength for Shapes3D (A), dSprites (B) and MPI3D-real (C).
263
+
264
+ ![](images/317b7f65006673a60895c3b03dc88a1dd36f82a0fe70127354c7c41ae1ed7185.jpg)
265
+ Figure 13: Generalization capabilities towards out-of-distribution test data. Latent traversals from an observations the model has never seen during training. The starting point corresponds to a factor configuration in point 1 from Fig. 5. Shown are the results of the model with highest DCI score among all 180 trained models on Shapes3d (A) with a very restricted correlation strength $\sigma = 0 . 2$ in object size and azimuth
266
+
267
+ # B.2 SECTION 4
268
+
269
+ Post-hoc alignment correction with few labels In Fig. 15, we see the axis alignment of the correlated latent space after fast adaptation using linear regression on a model trained on Shapes3D (A). Fast adaptation with linear regression substitution fails in some settings: when no two latent dimensions encode the applied correlation isolated from the other latent codes, or when the correlated variables do not have a unique natural ordering (e.g. color or categorical variables). Additionally, the functional form of the latent manifolds beyond the training distribution is unknown and in general expected to be nonlinear. We test the possibility of fast adaptation in this case using as substitution function a one-hidden layer MLP classifier of size 100 on the correlated Shapes3D variants. Under this method, we sample the FoV from a uniform independent distribution. A small number of such samples could practically be labeled manually. Using only 1000 labeled data points for our fast adaptation method shows a significant reduction in disentanglement-thresholds for the correlated pair (Fig. 16).
270
+
271
+ Alignment during training using weak supervision Using the studied weakly supervision AdaGVAE method with $k = 1$ from Locatello et al. (2020), we showed that weak supervision can provide a strong inductive bias capable of finding the right factorization and resolving spurious correlations for datasets of unknown degree of correlation. Despite the results shown on Shapes3D (A) in the main paper, results across all three correlation variants in Shapes3D (A, D, E) are shown in Fig. 17 as well as some representative latent space visualizations that show strong axis alignment in Fig. 18. This study contains a total of 360 trained models.
272
+
273
+ In addition to the experiment from the main paper where pairs are constructed solely from the correlated observational data, we want to study two scenarios where we have limited intervention capabilities on the FoV to generate training pairs. The resulting distribution of FoVs (still exhibiting correlations) in these pairs depends on whether the correlation between two pairs is due to a causal link or due to a common confounder.
274
+
275
+ Scenario I-1: We assume there is a confounder causing a spurious correlation between the factors, such that correlation is broken whenever we constraint the change to be in one of the correlations.
276
+
277
+ ![](images/518e9b8bb27e4c53eed05f016e18beadb6eebf81873ce47e059542589bc0fa47.jpg)
278
+ Figure 14: Latent space distribution of the two entangled dimensions of the best DCI model in Shapes3d (E) with $\sigma = 0 . 2$ (first column), in Shapes3d (E) with $\sigma = 0 . 4$ (second column), in Shapes3d (D) with $\sigma = 0 . 2$ (third column) and in Shapes3d (D) with $\sigma = 0 . 4$ (fourth column). Latent codes sampled from correlated observations (circle without edge) and (2) latent codes sampled with an object size-azimuth configuration not encountered during training(squares with black edge). Each column shows the ground truth values of the two correlated factors by color.
279
+
280
+ ![](images/e64e0ebba8a1d2a267f6bda535faa83e124944fb4f84fe0350c180fc7cefabb0.jpg)
281
+ Figure 15: Latent space distribution of the two entangled dimensions of the best DCI model in Shapes3D (A). Latent codes sampled from correlated observations (circle without edge) and (2) latent codes sampled with an object size-azimuth configuration not encountered during training (squares with black edge). Left column shows the ground truth values of the two correlated factors by color. Middle and right column show the fast adapted space using linear regression and 100 or 1000 labels respectively.
282
+
283
+ Figure 16: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs (based on GBT feature importance) for all pairs of variables in Shapes3D (D) (top), Shapes3D (E) (middle) and Shapes3D (A) (bottom) all with correlation strength $\sigma = 0 . 2$ Each pairwise score is the mean across 180 models for each dataset and correlation strength. First column is the unsupervised baseline without any fast adaptation and the second column shows that fast adaption using a one-hidden layer MLP reduces these correlations with as little as 1000 labels when sampled from the uncorrelated dataset.
284
+
285
+ <table><tr><td>dataset</td><td>labels</td><td>0</td><td>1000</td></tr><tr><td>Shapes3D (D) σ = 0.2</td><td>object color - object size</td><td>0.3</td><td>0.16</td></tr><tr><td>Shapes3D (D) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (E)σ = 0.2</td><td>object color - azimuth</td><td>0.25</td><td>0.2</td></tr><tr><td>Shapes3D (E) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.1</td><td>0.11</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td> object size - azimuth</td><td>0.37</td><td>0.26</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.1</td></tr></table>
286
+
287
+ The value of the changing variable is then sampled uniformly in the second observation. Note that this still means that the vast majority of sampled pairs exhibit correlated FoV. This is depicted in the substantially lifted disentanglement scores shown in Fig. 19 as well as some selected latent space visualizations that show strong axis alignment in Fig. 20. We consistently observe much better disentangled models, often achieving perfect DCI score irrespective of correlations in the data set. The latent spaces tend to strongly align their coordinates with the ground truth label axis. We chose 10 random seeds per configuration in this study, yielding 720 models in total.
288
+
289
+ Scenario I-2: Let us assume $C _ { 1 }$ causes $C _ { 2 }$ in our examples, which manifests as the studied linear correlations. Within this setting we cannot sample uniformly in $C _ { 2 }$ if we intervene (or “fix”) all factors except for this causal factor. Intervening on all factors but $C _ { 1 }$ , however, allows us to sample any value in $C _ { 1 }$ as it is not causally affected by $C _ { 2 }$ . To test the hypothesis that this constraint still allows for disentangling the correlation, we trained on Shapes3D (A) and sample pairs consistent with this causal model. Besides observing visually disentangled factors in the latent traversals, we show a summary of our results in Fig. 21 with the same significant improvements regarding disentangling the correlated FoVs. Besides the above correlation strengths, we additionally trained the same models using a very strong correlation of $\sigma = 0 . 1$ , yielding 300 models trained in this study.
290
+
291
+ ![](images/55a02791c8d0b50de5188e3389cffb5031ed780b7e45e63f8426086856db4b98.jpg)
292
+ Figure 17: Standard disentanglement metrics evaluated for the weakly supervised scenario using correlated observational data.
293
+
294
+ ![](images/f997e0d82272cc859cc5242bc563cb88283e962db14a373f621b6f0f37e42519.jpg)
295
+ Figure 18: Left: For the weakly supervised scenario using correlated observational data trained models on Shapes3D (A), (D) and (E) correlating object color and azimuth learn consistently improved, often perfect, disentangled representation across all correlation strengths. Right: Latent dimensions of a best DCI model trained on strongly correlated observational data. Representations are perfectly axis-aligned with respect to both of the correlated variables ground truth values (right).
296
+
297
+ ![](images/a25e94ba9291585646c3768650c399555dbe873fdf0046bcbe0de8f4bd961538.jpg)
298
+ Figure 19: Standard disentanglement metrics evaluated on the correlated training sets for the weakly supervised scenario with intervening capabilities (I-1).
299
+
300
+ ![](images/0a38d07ea4f3e624025b25e402e0f7d956eb38708636435fdc8e5dcdc86b34fd.jpg)
301
+ Figure 20: Left: For the weakly supervised scenario with intervening capabilities (I-1) trained models on Shapes3D (A), (D) and (E) correlating object color and azimuth learn consistently improved, often perfect, disentangled representation across all correlation strengths. Right: Latent dimensions of a best DCI model with strong correlation (0.2). Representations are perfectly axis-aligned with respect to both of the correlated variables ground truth values (right).
302
+
303
+ ![](images/c22f1e0add00466036990823304d24372b6bfc1093ac60cd57568df61d0bf979.jpg)
304
+ Figure 21: Disentanglement metrics (top), unfairness scores (middle) and latent spaces (bottom) show strong disentanglement using weak supervision with intervening capabilities (I-2) - even under the stronger assumption that sampling of observation pairs follow its causal generative model. We show the learnt latent space encoding of the two correlated factors of variation for a model with $\sigma = 0 . 1$ and low reconstruction loss.
parse/train/1ibNKMp8SKc/1ibNKMp8SKc_content_list.json ADDED
@@ -0,0 +1,1684 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ON DISENTANGLED REPRESENTATIONSLEARNED FROM CORRELATED DATA",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 99,
9
+ 650,
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
+ 170,
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": "Despite impressive progress in the last decade, it still remains an open challenge to build models that generalize well across multiple tasks and datasets. One path to achieve this is to learn meaningful and compact representations, in which different semantic aspects of data are structurally disentangled. The focus of disentanglement approaches has been on separating independent factors of variation despite the fact that real-world observations are often not structured into meaningful independent causal variables. In this work, we bridge the gap to real-world scenarios by analyzing the behavior of most prominent methods and disentanglement scores on correlated data in a large scale empirical study (including 4260 models). We show that systematically induced correlations in the dataset are being learned and reflected in the latent representations, while widely used disentanglement scores fall short of capturing these latent correlations. Finally, we demonstrate how to disentangle these latent correlations using weak supervision, even if we constrain this supervision to be causally plausible. Our results thus support the argument to learn independent mechanisms rather than independent factors of variations. ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 764,
44
+ 477
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 513,
55
+ 334,
56
+ 529
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Due to the induced structure, disentangled representations promise generalization to unseen scenarios (Higgins et al., 2017b), increased interpretability (Adel et al., 2018; Higgins et al., 2018) and faster learning on downstream tasks (van Steenkiste et al., 2019; Locatello et al., 2019a). While the advantages of disentangled representations have been well established, they generally assume the existence of natural factors that vary independently within the given dataset, which is rarely the case in real-world settings. As an example, consider a scene with a table and some chairs (see Fig. 1). The higher-level factors of this representation are in fact correlated and what we actually want to infer are independent (causal) mechanisms (Peters et al., 2017; Parascandolo et al., 2018; Suter et al., 2019; Goyal et al., 2019). ",
63
+ "bbox": [
64
+ 174,
65
+ 547,
66
+ 633,
67
+ 714
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "A complex generative model can be thought of as the composition of independent mechanisms or “causal” modules, which generate highdimensional observations (such as images or videos). In the causality community, this is often considered a prerequisite to achieve representations which are robust to interventions upon variables determined by such models (Peters et al., 2017). One particular instantiation of this idea in the machine learning community is the notion of disentangled representations (Bengio et al., 2013). The goal of disentanglement learning is to find a representation of the data which captures all the ground-truth factors of variation (FoV) independently. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 633,
78
+ 791
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/7cd9c32eb4e5dfbc24deba208b2c328f8872a001b1f886a15b06da7c96872ccb.jpg",
85
+ "image_caption": [
86
+ "Figure 1: While in principle we consider the presence of the objects (coffee cup, table, chair) to be independent mechanisms, they tend to appear together in observed data. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 647,
91
+ 565,
92
+ 823,
93
+ 662
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 791,
103
+ 825,
104
+ 847
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Despite the recent growth of the field, the performance of state-of-the-art disentanglement learners remains unknown for more realistic settings where FoV are correlated during training. Given the potential societal impact in the medical domain (Chartsias et al., 2018) or fair decision making (Locatello et al., $2 0 1 9 \\mathrm { a }$ ; Madras et al., 2018; Creager et al., 2019), the evaluation of the usefulness of disentangled representations trained on correlated data is of high importance. ",
111
+ "bbox": [
112
+ 174,
113
+ 854,
114
+ 823,
115
+ 924
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "To go beyond the highly idealized settings considered thus far, we conducted a large scale empirical study to systematically assess the effect of induced correlations between pairs of factors of variation in training data on the learned representations. To provide a qualitative and quantitative evaluation, we investigate multiple datasets with access to ground-truth labels. Moreover, we study the generalization abilities of the representations learned on correlated data as well as their performance in particular for the downstream task of fair decision making. ",
122
+ "bbox": [
123
+ 174,
124
+ 106,
125
+ 825,
126
+ 190
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Contributions. Our main contributions can be summarized as follows: ",
133
+ "bbox": [
134
+ 176,
135
+ 205,
136
+ 650,
137
+ 219
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• We present the first large-scale empirical study (4260 models)1 that examines how modern disentanglement learners perform when ground truth factors of the observational data are correlated. \n• We find that factorization-based inductive biases are insufficient to learn disentangled representations from observational data. Existing methods fail to disentangle correlated factors of variation, resulting in correlated latent space dimensions. Moreover, standard disentanglement metrics do not reveal these persisting correlations. \n• We investigate the usefulness of semi-supervised and weakly-supervised approaches to resolve latent entanglement. For the latter setting, we focus on multiple observational and interventional distributions. ",
144
+ "bbox": [
145
+ 181,
146
+ 228,
147
+ 826,
148
+ 358
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 BACKGROUND AND RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 377,
159
+ 511,
160
+ 393
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Disentanglement. Current state-of-the-art disentanglement approaches use the framework of variational auto-encoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014). The (high-dimensional) observations $_ { \\textbf { \\em x } }$ are modelled as being generated from some latent features $_ { z }$ with chosen prior $p ( z )$ according to the probabilistic model $p _ { \\theta } ( \\pmb { x } | \\pmb { z } ) p ( \\pmb { z } )$ . The generative model $p _ { \\boldsymbol { \\theta } } ( \\boldsymbol { x } | \\boldsymbol { z } )$ as well as the proxy posterior $q _ { \\phi } ( \\pmb { z } | \\pmb { x } )$ can be parameterized by neural networks, which are optimized by maximizing the variational lower bound (ELBO) of $\\log p ( \\pmb { x } _ { 1 } , \\ldots , \\pmb { x } _ { N } )$ . ",
167
+ "bbox": [
168
+ 174,
169
+ 409,
170
+ 826,
171
+ 493
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "equation",
177
+ "img_path": "images/693f1f177d04eee7f59d20593a9c4ed0b62faa512ca5309428478a6b55c667e9.jpg",
178
+ "text": "$$\n\\mathcal { L } _ { V A E } = \\sum _ { i = 1 } ^ { N } \\mathbb { E } _ { q _ { \\phi } ( z | \\mathbf { x } ^ { ( i ) } ) } [ \\log p _ { \\theta } ( \\mathbf { x } ^ { ( i ) } | z ) ] - D _ { K L } \\big ( q _ { \\phi } ( z | \\mathbf { x } ^ { ( i ) } ) \\| p ( z ) \\big )\n$$",
179
+ "text_format": "latex",
180
+ "bbox": [
181
+ 279,
182
+ 508,
183
+ 720,
184
+ 553
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "The above objective does not enforce any structure on the latent space, except for similarity (in KL-divergence) to the prior $p ( z )$ (typically chosen as an isotropic Gaussian). However, the structure and semantic meaning of latent representations can be relevant to study generation properties. Consequently, various proposals for structure-imposing regularization and commonly used evaluation metrics measuring different notions of disentanglement of the learned representations have been made (Higgins et al., 2017a; Kim & Mnih, 2018; Burgess et al., 2018; Kumar et al., 2018; Chen et al., 2018; Eastwood & Williams, 2018; Mathieu et al., 2018). Recently, it has been shown that unsupervised disentangling by optimising marginal likelihood in a generative model is impossible without further inductive bias (Locatello et al., 2019b). To address this theoretical limitation, methods have been proposed that do not require explicitly labelled data but only some weak labeling information (Locatello et al., 2020; Shu et al., 2019). Ideas related to disentangling the factors of variations date back to the non-linear ICA literature (Bach & Jordan, 2002; Comon, 1994; Jutten & Karhunen, 2003; Hyvärinen & Pajunen, 1999; Hyvarinen et al., 2019; Hyvarinen & Morioka, 2016; Gresele et al., 2019). Recent work combines non-linear ICA with disentanglement (Khemakhem et al., 2020; Sorrenson et al., 2020; Klindt et al., 2020) ",
191
+ "bbox": [
192
+ 173,
193
+ 558,
194
+ 825,
195
+ 767
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "Correlations. A set of random variables $X _ { i = 1 , \\ldots , n }$ is not independent, if and only if their joint distribution does not factorize ",
202
+ "bbox": [
203
+ 178,
204
+ 780,
205
+ 821,
206
+ 809
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "equation",
212
+ "img_path": "images/b6d11649553d09abd20da861b0474a065691237af1c5215b62718844fb258aee.jpg",
213
+ "text": "$$\nP ( X _ { 1 } , X _ { 2 } , \\ldots , X _ { n } ) \\neq \\prod _ { i = 1 } ^ { n } P ( X _ { i } ) .\n$$",
214
+ "text_format": "latex",
215
+ "bbox": [
216
+ 383,
217
+ 808,
218
+ 614,
219
+ 849
220
+ ],
221
+ "page_idx": 1
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "In this case, we speak of dependence between the random variables, also commonly referred to as correlation.2 Correlation between two variables can either stem from a direct causal relationship (one variable affects the other), but can also be due to different unobserved circumstances (confounders) affecting both. Real-world datasets display many of these (“spurious” and often a priori unknown) correlations (Geirhos et al., 2020). However, most work on learning disentangled representations assumes that there is an underlying set of independent ground truth variables that govern the generative process of observable data. These methods are hence predominantly evaluated on data that obey independence in the true factors of variation, which we then consider to be the correct factorization. In the real world, the observation generating process is likely not always as clearly “disentangled” and we do expect correlations in the collected datasets. It is thus an open question to what degree existing inductive biases from the encoder/decoder architecture, but more importantly the dataset biases, affect the learned representation. In our experiments, we introduce dataset correlations in a controlled manner to understand to what degree state-of-the-art approaches can cope with such correlations. We believe these correlations to reflect a major feature of more realistic environments. ",
226
+ "bbox": [
227
+ 176,
228
+ 849,
229
+ 825,
230
+ 877
231
+ ],
232
+ "page_idx": 1
233
+ },
234
+ {
235
+ "type": "image",
236
+ "img_path": "images/8434d800ad72d18ee910812aa691bbcbaf1629e87d4199312f4297e9514c68d5.jpg",
237
+ "image_caption": [
238
+ "Figure 2: Disentanglement metrics show no clear trend along different correlation strengths (each violin represents 180 models, higher $\\sigma$ indicates less correlation). "
239
+ ],
240
+ "image_footnote": [],
241
+ "bbox": [
242
+ 174,
243
+ 99,
244
+ 818,
245
+ 199
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "",
252
+ "bbox": [
253
+ 174,
254
+ 258,
255
+ 825,
256
+ 425
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Other Related Work. Most popular datasets in the disentanglement literature exhibit perfect independence in their FoV. At some level this is sensible as it reflects the underlying assumption in the inductive bias being studied. However, this assumption is unlikely to hold in practice as shown by Li et al. (2019), who propose methods based on a pairwise independence assumption instead. The literature so far has not thoroughly measured how popular inductive biases such as factorized priors behave when learning from correlated datasets, although several smaller experiments along these lines can be acknowledged. Chen et al. (2018) studied correlated 3DFaces (Paysan et al., 2009) by fixing all except three factors in which the authors conclude that the $\\beta$ -TC-VAE regularizer can help to disentangle imposed correlations. Brekelmans et al. (2019) show that Echo noise results in superior disentanglement compared to standard betaVAE in a small experiment on a downsampled dSprites variant where randomly selected factor pairs are excluded. However, the latent structure was not studied in detail; our findings suggest that global disentanglement metrics are insufficient to diagnose issues when models learn from correlated data. Creager et al. (2019) based some of the evaluations of a proposed new autoencoder architecture in the fairness context on a biased dSprites variant and Yang et al. (2020) study a linear SCM in a VAE architecure on datasets with dependent variables. However, their studies focused on representation learners that require strong supervision via FoV labels at train time. ",
263
+ "bbox": [
264
+ 174,
265
+ 440,
266
+ 825,
267
+ 676
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "3 THE EFFECT OF CORRELATED DATA ON DISENTANGLEMENT LEARNERS ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 171,
277
+ 699,
278
+ 792,
279
+ 713
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "In this section, we want to present the key findings from our empirical study of unsupervised disentanglement learning on a particular variant of correlated data. We start by outlining the experimental design of our study in Section 3.1. Based on this, we analyze the latent spaces in Section 3.2 and find that factorization-based inductive biases are insufficient to learn disentangled representations from observational data. Persisting pairwise correlations in the latent space are not sufficiently revealed by standard disentanglement metrics that might be particularly relevant and problematic for fairness applications. Finally, in Section 3.3, we show extrapolation and generalization capabilities of the learned representations towards unseen factor combinations due to the induced correlations. ",
286
+ "bbox": [
287
+ 174,
288
+ 729,
289
+ 825,
290
+ 840
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "3.1 EXPERIMENTAL DESIGN ",
297
+ "text_level": 1,
298
+ "bbox": [
299
+ 176,
300
+ 858,
301
+ 382,
302
+ 872
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "For our first experiments we introduce correlations between single pairs of factors of variation on the following three datasets: Shapes3D with object size and azimuth (denoted “A”), dSprites with orientation and X-position (“B”) and finally the real-world observations dataset MPI-3D with first and second degree of freedom $\\left( \\ \\stackrel { 6 6 } { \\ C } \\right)$ . We focus on linear correlations with Gaussian noise between the two variables, which we denote by $c 1 , c 2$ . The ground truth factors for $c 1 , c 2$ take values $z _ { c 1 } \\in \\{ 0 , \\dots , z _ { c 1 } ^ { \\operatorname* { m a x } } \\}$ and $z _ { c 2 } \\in \\{ 0 , \\dots , z _ { c 2 } ^ { \\operatorname* { m a x } } \\}$ respectively. We then parameterize correlations by sampling the training dataset from the joint $P ( z _ { c 1 } , z _ { c 2 } ) \\propto \\mathcal { N } ( z _ { c 2 } - \\alpha z _ { c 1 } , \\sigma )$ where $\\alpha = z _ { c 2 } ^ { m a x } / z _ { c 1 } ^ { m a \\bar { x } }$ The strength of the correlations can be tuned by $\\sigma$ , for which we choose 0.2, 0.4, 0.7 in normalized units with respect to the range of values in $z _ { c 1 , c 2 }$ . Lower $\\sigma$ indicates stronger correlation. See Fig. 5 for an example of $P ( z _ { c 1 } , z _ { c 2 } )$ for correlating azimuth and object size in Shapes3D with $\\sigma = 0 . 2$ . Additionally, we study the uncorrelated limit $\\sigma = \\infty$ ), which amounts to the case typically studied in the literature. We train the same six VAE methods as discussed in Locatello et al. (2019b), including $\\beta$ -VAE, FactorVAE, AnnealedVAE, DIP-VAE-I, DIP-VAE-II and $\\beta$ -TC-VAE, each with six hyperparameter settings. Each method has been trained using five different random seeds. All remaining factors of variation are sampled uniformly at random. This first study sums up to a total of 2160 trained models, or 180 models per dataset and correlation strength3. Appendix A describes additional implementation details. ",
309
+ "bbox": [
310
+ 176,
311
+ 883,
312
+ 823,
313
+ 926
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "image",
319
+ "img_path": "images/c8e59e5dfb217a4b7e563ded39aa232ed4236c8bcac9947b1dbceacc1ab965b7.jpg",
320
+ "image_caption": [
321
+ "Figure 3: We show latent traversals (left) of the best DCI score model among all 180 trained models with strongest correlation $\\sigma = 0 . 2$ ) on Shapes3D (A). The traversals in latent code dimensions 4 and 8 (highlighted in black), suggest that these dimensions encode a mixture of azimuth and object size, reflecting one major axis along the correlation line of the joint distribution and one smaller, locally orthogonal axis. This is supported by a heat map of the GBT feature importance matrix of this model (right) indicating an entanglement of azimuth and object size encoded into both latent codes. "
322
+ ],
323
+ "image_footnote": [],
324
+ "bbox": [
325
+ 173,
326
+ 113,
327
+ 823,
328
+ 227
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "",
335
+ "bbox": [
336
+ 174,
337
+ 344,
338
+ 826,
339
+ 537
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "3.2 CAN UNSUPERVISED METHODS ACHIEVE DISENTANGLEMENT OF CORRELATED DATA? ",
346
+ "text_level": 1,
347
+ "bbox": [
348
+ 176,
349
+ 556,
350
+ 805,
351
+ 569
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "Shortcomings of existing metrics. Following recent studies, we evaluate the trained models with the help of a broad range of disentanglement metrics that aim at quantifying overall success by a single scalar measure. Perhaps surprisingly, Fig. 2 shows no clear trend among all implemented disentanglement scores w.r.t. correlation strength (see Fig. 9 in the Appendix for the full result across all datasets and metrics). The metrics have been evaluated by sampling from the correlated data distribution although they do not differ substantially when evaluated on the uncorrelated distribution. However, as we will demonstrate along the following analysis, the latent spaces in this setting show some characteristic differences when trained on a strongly correlated pair of FoVs. We thus argue that common disentanglement metrics are limited when correlations are introduced into the training data. To conduct a more careful analysis of the inductive data bias applied on the learned representations we will instead evaluate pairwise metrics. Note that regarding BetaVAE and FactorVAE this observed trend is to some degree expected as they would yield perfect disentanglement scores even if we would take the correlated ground truth factors or a linear transformation in the case of BetaVAE as the representation. ",
358
+ "bbox": [
359
+ 173,
360
+ 582,
361
+ 825,
362
+ 775
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Latent structure and pairwise entanglement. We start by analysing latent traversals of some trained models on Shapes3D (A). For strong correlations $\\sigma = 0 . 2$ and $\\sigma = 0 . 4$ ), we typically observe trained models with two latent codes encoding the two correlated variables simultaneously. In these cases, one of the latent codes corresponds to data along the major axis of the correlation line whereas the other latent code dimension manifests in an orthogonal change of the two variables along the minor axis. Still, a full traversal of the code corresponding to the minor axis often seems to cover only observations within the correlation line. Fig. 3 (left) shows this effect for the latent space of a model trained on Shapes3D (A) with strongest correlation $\\sigma = 0 . 2$ ). ",
369
+ "bbox": [
370
+ 174,
371
+ 791,
372
+ 825,
373
+ 902
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "image",
379
+ "img_path": "images/f824ae85040c71c66286db291a42526822f07e8f2335325a9be194b7b8a49246.jpg",
380
+ "image_caption": [],
381
+ "image_footnote": [],
382
+ "bbox": [
383
+ 627,
384
+ 103,
385
+ 813,
386
+ 251
387
+ ],
388
+ "page_idx": 4
389
+ },
390
+ {
391
+ "type": "table",
392
+ "img_path": "images/33d01f4625ee06adc8f2e4ce78138563c6108fa208103008832b78033071b6ad.jpg",
393
+ "table_caption": [
394
+ "Figure 4: Left: Pairwise entanglement scores help to uncover still existent correlations in the latent representation. Left: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs. We see that stronger correlation leads to statistically more entangled latents compared to the baseline score without correlation (blue). Right: The same behavior can be seen for the unfairness score between the correlated pair of factors. "
395
+ ],
396
+ "table_footnote": [],
397
+ "table_body": "<table><tr><td>Correlation strength</td><td></td><td>g=0.2</td><td>g=0.4</td><td>g=0.7</td><td>σ=∞ (uc)</td></tr><tr><td rowspan=\"2\">Shapes3d (A)</td><td>object size - azimuth</td><td>0.38</td><td>0.26</td><td>0.13</td><td>0.08</td></tr><tr><td>median uncorrelated pairs</td><td>0.09</td><td>0.09</td><td>0.09</td><td>0.08</td></tr><tr><td rowspan=\"2\">dSprites (B)</td><td>orientation - position X</td><td>0.17</td><td>0.16</td><td>0.14</td><td>0.11</td></tr><tr><td>median uncorrelated pairs</td><td>0.13</td><td>0.13</td><td>0.13</td><td>0.13</td></tr><tr><td rowspan=\"2\">MPI3D (C)</td><td>First DOF - Second DOF</td><td>0.2</td><td>0.19</td><td>0.17</td><td>0.16</td></tr><tr><td>median uncorrelated pairs</td><td>0.16</td><td>0.16</td><td>0.15</td><td>0.15</td></tr></table>",
398
+ "bbox": [
399
+ 173,
400
+ 136,
401
+ 604,
402
+ 222
403
+ ],
404
+ "page_idx": 4
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "To quantify this observation, we analyze the importance of individual latent codes in predicting the value of a given ground truth FoV. An importance weight for each pair of $\\{ \\mathrm { F o V } ,$ latent dimension} is computed by training a gradient boosting trees (GBT) classifier to predict the ground truth labels from the latents (10,000 samples). In the right panel of Fig. 3, we compute these importance weights for the model used to generate traversals in the left panel. The corresponding evaluation for a model trained on the same dataset with weak correlation does not reveal this feature visually (see Fig. 10 in the Appendix). ",
409
+ "bbox": [
410
+ 173,
411
+ 354,
412
+ 825,
413
+ 452
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "To support this claim for a larger set of models, we calculate a pairwise entanglement score that allows us to measure how difficult it is to separate two factors of variation from their latent codes. This computation involves grouping FoV into pairs based on an ordering of their pairwise mutual information or GBT feature importance between latents and FoV; we defer to Appendix A for a detailed description of this procedure. Figure 4 (left) shows that across all datasets the pair of correlated FoV has a higher score than the median of all other pairs, indicating that they are harder to disentangle. This threshold decreases with weaker correlation and the pair becomes easier to disentangle for weaker correlations $( \\sigma \\ge 0 . 7 )$ . These findings suggest that the models still manage to disentangle correlated factors if the correlation is not too strong. ",
420
+ "bbox": [
421
+ 174,
422
+ 459,
423
+ 825,
424
+ 584
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Finally, correlations between variables are of crucial importance in fairness applications motivating an additional investigation on ramifications of these entangled latent spaces. In this setting we are interested in the unfairness of predicting the second correlated variable while the first correlated variable is considered being a protected or sensitive attribute. In the following, we use a variant of demographic parity (Dwork et al., 2012) that computes pairwise mutual information between latents and FoV (Locatello et al., 2019a). In Fig. 4 (right) we evaluate this score when correlations are present within the data in the case of Shapes3D (A). Unfairness tracks correlation strength in this scenario. These results suggest that we cannot expect disentangled representations learned unsupervisedly to help reduce unfairness beyond the benefits discussed in Locatello et al. (2019a). More comprehensive results, that support the finding that the correlated pair is statistically more entangled in the latent representations across all unsupervised experiments and datasets is provided in Appendix B.1. ",
431
+ "bbox": [
432
+ 174,
433
+ 590,
434
+ 825,
435
+ 743
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Summary. We find that existing methods fail to learn disentangled representations of correlated factors of variation, and moreover that standard disentanglement metrics are insufficient to reveal these troublesome pairwise entanglements in the latent space. ",
442
+ "bbox": [
443
+ 176,
444
+ 744,
445
+ 823,
446
+ 785
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "3.3 GENERALIZATION PROPERTIES",
453
+ "text_level": 1,
454
+ "bbox": [
455
+ 176,
456
+ 803,
457
+ 429,
458
+ 816
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "In this Section, we aim to understand how the trained models perform on unseen training data far away from the correlation line; out-of-distribution (OOD) w.r.t. the train distribution. We analyse this capability for the model from Fig. 3. In this model, the remaining factors seem to be disentangled well enough to only focus on the two latent dimensions encoding the entangled variables. ",
465
+ "bbox": [
466
+ 174,
467
+ 828,
468
+ 825,
469
+ 883
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "As a first test, we sample observations from the FoV then set object size and azimuth to six distinct configurations of zero probability, see Fig. 5 (left). The trained model is capable of reconstructing these observations despite never having encountered these configurations or neighbors thereof during training. This suggests that the encoder maps representations to a meaningful point in the latent space from which the decoder is equally capable of generating expected observations. To test this hypothesis further, we analysed latent traversals originating from these OOD points and observe that changes in the remaining factors reliably yield the expected reconstructions. Traversals with respect to the two entangled latent codes continue to encode object size and azimuth. ",
476
+ "bbox": [
477
+ 176,
478
+ 885,
479
+ 823,
480
+ 926
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "image",
486
+ "img_path": "images/3a4907b6a6815be9ba92ce3f27dba690c6be01f16deae4a661172b14204a1d76.jpg",
487
+ "image_caption": [
488
+ "Figure 5: Generalization to out-of-distribution (OOD) test data. Left: Reconstructions of observations the model has never seen during training. Right: Latent space distribution of the two entangled dimensions. Circles without edges indicates encoded data from the (correlated) training distribution, while circles with edges indicate encoded OOD data where the correlation pattern is broken. "
489
+ ],
490
+ "image_footnote": [],
491
+ "bbox": [
492
+ 181,
493
+ 113,
494
+ 823,
495
+ 257
496
+ ],
497
+ "page_idx": 5
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "",
502
+ "bbox": [
503
+ 174,
504
+ 372,
505
+ 825,
506
+ 441
507
+ ],
508
+ "page_idx": 5
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "To fully understand this models’ generalization properties we visualise the occupied latent space spanned by the two identified dimensions encoding both correlated factors in Fig. 5 (right). We are particularly interested in where these points are located with respect to the ground truth value of each correlated variable, depicted via color. The two sets of depicted points are (1) latent codes sampled from the correlated training data and (2) latent codes sampled with a (object size, azimuth) configuration that has zero probability under the correlated training distribution. We observe that contours of equal color (ground truth) are not aligned with the latent axes. This indicates that the two latent dimensions encode both FoV at the same time. Likewise, we can understand the generalization capabilities of this model far away from the trained data. Extreme configurations such as small azimuth and large object size are encoded to space regions corresponding to the intersections of the manifolds with constant value for each correlated variable. This shows that all out-of-distribution points are encoded in this representation space in a way that obeys the natural ordering of each respective factor. This behaviour remains even in cases where the trained latent space does not mirror the default value ordering as stored in our ground truth table. For this we additionally trained 360 models on two additional Shapes3D variants each, where we strongly correlated object color - object size (“D”) and object color - azimuth (“E”) respectively $\\sigma = 0 . 2$ and $\\sigma = 0 . 4$ ). As the color values do not allow for a unique natural ordering, the trained models do often encode a different color manifold ordering into the latent space. In Appendix B.1, we show some of their characteristic latent space visualizations with similar extrapolation and generalization capabilities. We conclude from these results that disentanglement methods can generalize towards unseen FoV configurations as long as each factor value is contained in the training data within a different configuration. ",
513
+ "bbox": [
514
+ 173,
515
+ 441,
516
+ 825,
517
+ 733
518
+ ],
519
+ "page_idx": 5
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "4 FINDING THE RIGHT FACTORIZATION",
524
+ "text_level": 1,
525
+ "bbox": [
526
+ 174,
527
+ 772,
528
+ 513,
529
+ 787
530
+ ],
531
+ "page_idx": 5
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "The results from Section 3 illustrate the limitations of state-of-the-art unsupervised methods on correlated data (and thus real-world observational data). We now investigate the usefulness of several approaches for mitigating pairwise correlations in the latent code. We begin with a post-hoc procedure in Section 4.1 that uses limited label information on the ground truth factors and show that it achieves a substantial correction of the pairwise latent correlation. We then consider a recently proposed approach leveraging recent advances in weakly supervised disentanglement learning that applies directly at train time. As will be seen in Section 4.2, this method results in substantially more disentangled representations, even when applied on correlated data from different sampling scenarios. ",
536
+ "bbox": [
537
+ 174,
538
+ 814,
539
+ 825,
540
+ 926
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "table",
546
+ "img_path": "images/f65dbd59fd8e99fc5f75f7c34b471caa2596a6b42e1ea9fe5ad6e417196228e7.jpg",
547
+ "table_caption": [
548
+ "Figure 6: Fast adaption with few labels: Pairwise entanglement scores for correlated FoV pair in Shapes3D (A). The correlated pair is highlighted (red). Zero labels reflects the unsupervised baseline without any fast adaptation. Growing number of labels show that fast adaption using linear regression reduces these correlations with as little as 100 labels (blue). Reported pairwise scores are averaged over 180 models per correlation strength. "
549
+ ],
550
+ "table_footnote": [],
551
+ "table_body": "<table><tr><td>#Labels</td><td></td><td>0</td><td>100</td><td>1000</td><td>10000</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td>object size - azimuth</td><td>0.38</td><td>0.17</td><td>0.15</td><td>0.15</td></tr><tr><td>Shapes3D (A) σ= 0.2</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.08</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (A) σ = 0.4</td><td> object size - azimuth</td><td>0.26</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Shapes3D (A) σ = 0.4</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.08</td><td>0.08</td><td>0.08</td></tr></table>",
552
+ "bbox": [
553
+ 267,
554
+ 103,
555
+ 728,
556
+ 179
557
+ ],
558
+ "page_idx": 6
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "4.1 POST-HOC ALIGNMENT CORRECTION WITH FEW LABELS ",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 174,
566
+ 290,
567
+ 604,
568
+ 303
569
+ ],
570
+ "page_idx": 6
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "When a limited number of FoV labels $\\left\\{ \\mathbf { y } _ { i } \\right\\}$ can be accessed, a reasonable option for resolving entangled dimensions of the latent code is by fast adaptation. To identify the two entangled dimensions $( z _ { i } , z _ { j } )$ we look at the maximum feature importance for a given FoV from a GBT trained using these labels only. We then train a substitution function using supervised learning to replace these two dimensions with the predicted ground truth label. Crucially, both steps of this procedure rely on the same FoV labels, which should be as few as possible. In Fig. 6 we show the pairwise entanglement score of the correlated FoVs under this fast adaptation with a linear regression as the substitution function, which succeeds with as few as 100 labels, corresponding to less than $0 . 0 2 \\%$ of all data points in Shapes3D. However, fast adaptation with linear regression substitution fails in some settings: when no two latent dimensions encode the applied correlation isolated from the other latent codes, or when the correlated variables do not have a unique natural ordering (e.g. color or categorical variables). To address this, a nonlinear substitution function such as a MLP can reduce this pairwise entanglement to a certain degree (see additional results in Appendix B.2). ",
575
+ "bbox": [
576
+ 173,
577
+ 315,
578
+ 825,
579
+ 496
580
+ ],
581
+ "page_idx": 6
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "We find that the efficacy of fast adaptation depends on the level of disentanglement of the representations with respect to all the other factors. This implies that if the representation is well disentangled at the start of the fast adaption procedure, it is possible to achieve a perfectly disentangled model (according to our previous visual and quantitative evaluations). However, if all FoV are entangled at the beginning, the fast adaption method will have little effect. Finally, we note that model selection is impossible in a purely unsupervised manner based on any of the used disentanglement metrics, as they all require labeled ground truth data. These shortcomings shall be resolved by the following method capable of disentangling the correlated factors of variation much more reliably. ",
586
+ "bbox": [
587
+ 174,
588
+ 503,
589
+ 825,
590
+ 614
591
+ ],
592
+ "page_idx": 6
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "4.2 ALIGNMENT DURING TRAINING USING WEAK SUPERVISION ",
597
+ "text_level": 1,
598
+ "bbox": [
599
+ 176,
600
+ 636,
601
+ 625,
602
+ 648
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Since the unsupervised disentangling by optimising marginal likelihood in a generative model is impossible (Locatello et al., 2019b, Theorem 1), inductive biases like grouping information (Bouchacourt et al., 2018) or access to labels (Locatello et al., 2019c) is required. Changes in natural environments, which typically correspond to changes of only a few underlying factors of variation, provide a weak supervision signal for representation learning algorithms (Goyal et al., 2019; Földiák, 1991; Schmidt et al., 2007; Bengio et al., 2019). Without correlations it has been shown that this weak supervision helps in learning much more disentangled representations (Locatello et al., 2020; Shu et al., 2019). Locatello et al. (2020) showed access to observations which display differences in a known number of factors of variation (without knowing which ones specifically) is sufficient to learn disentangled representation. These additional weak assumptions render the generative model identifiable in contrast to unsupervised disentanglement. This kind of extra knowledge might be available in certain settings 4, e.g., in temporarily close frames from a video of a moving robot arm where some factors remain unchanged. Hence, we want to investigate the usefulness of such a weakly-supervised method applied in various scenarios when training data is correlated. Specifically we implement the Ada-GVAE variant of Locatello et al. (2020) that was shown to allow for model selection via the (unsupervised) reconstruction loss. The method requires a pair of observations that differs in a known number of factors, without knowing which in particular. ",
609
+ "bbox": [
610
+ 174,
611
+ 662,
612
+ 825,
613
+ 871
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "image",
619
+ "img_path": "images/143ef6a989097e83190d62e51d5d5cd9acff40e9f5e8469f5605bbda6b516512.jpg",
620
+ "image_caption": [
621
+ "Figure 7: Weak supervision: Left: With weak supervision trained models on Shapes3D correlation object size and azimuth learn consistently improved, often perfect, disentangled representations across all correlation strengths. Middle: Unfairness scores between correlated FoVs are much smaller (see scale). Right: Latent dimensions of a best DCI model with strong correlation $\\mathit { \\check { \\sigma } } = 0 . 2 $ ). Representations are axis-aligned with respect to both of the correlated variables ground truth values (right). Below: Traversals of a model trained with strong correlation $( \\sigma = 0 . 2$ ) "
622
+ ],
623
+ "image_footnote": [],
624
+ "bbox": [
625
+ 173,
626
+ 106,
627
+ 825,
628
+ 387
629
+ ],
630
+ "page_idx": 7
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "",
635
+ "bbox": [
636
+ 173,
637
+ 536,
638
+ 825,
639
+ 564
640
+ ],
641
+ "page_idx": 7
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "Weak supervision mitigates pairwise latent entanglement. We trained the three correlated Shapes3D variants (A, D, E) with pairwise correlations between object color, object size and azimuth with the same correlation strength settings. Due to the definition of the regularizer we limit this study to the $\\beta$ -VAE models with the same 6 hyperparameters and use 5 random seeds, yielding 360 additional models. For the generation of pairs we study the case where the difference in the observation pairs is present in one random FoV. Whenever we sample the difference to be in one of the correlated FoV, its respective value in each pair is drawn from the probability distribution conditioned on the other correlated FoV. This means the difference in this factor is typically very small and depends on the correlation strength. Note that this procedure assures that constructed pairs are consistent with the observational data such that the correlation is never broken. Fig. 7 summarizes the weak supervision results when imposing correlations in object size and azimuth. We consistently observe much better disentangled models, often achieving perfect DCI score irrespective of correlations in the dataset. The latent spaces tend to strongly align their coordinates with the ground truth label axis. Finally, weak-supervision reduces unfairness relative to the unsupervised baseline, and occasionally achieves zero unfairness score. ",
646
+ "bbox": [
647
+ 174,
648
+ 617,
649
+ 825,
650
+ 825
651
+ ],
652
+ "page_idx": 7
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "These results suggest that weak supervision can provide a strong inductive bias capable of finding the right factorization and resolving spurious correlations for datasets of unknown degree of correlation. As a prominent example, this is an issue in the fairness context where real-world datasets often display unknown discriminatory correlations. Additional results on the other datasets can be found in Appendix B.2 including two additional scenarios where one has intervening capabilities to generate the pair. We consistently observe the same strong trends regarding disentangled correlations in all of the above studies using weak supervision. ",
657
+ "bbox": [
658
+ 174,
659
+ 833,
660
+ 825,
661
+ 930
662
+ ],
663
+ "page_idx": 7
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "5 CONCLUSION ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 176,
671
+ 104,
672
+ 318,
673
+ 121
674
+ ],
675
+ "page_idx": 8
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "We have presented the first large-scale empirical study examining how modern disentanglement learners cope with correlated observational data. We find that existing methods fail to learn disentangled representations of correlated factors of variation, and moreover that standard disentanglement metrics are insufficient to reveal these pairwise entanglements. We discussed practical implications for downstream tasks like fair decision making. Finally, we demonstrate how to correct for these latent correlations via various weakly supervised training scenarios. Our results thus support the importance and usefulness of learning independent mechanisms rather than independent factors of variations (Schölkopf, 2019; Parascandolo et al., 2018; Suter et al., 2019; Goyal et al., 2019). Besides the simple correlations studied in this work, future work is needed to address the open question whether these results extend to more complex nonlinear correlations and settings where many more variables are correlated simultaneously. ",
680
+ "bbox": [
681
+ 174,
682
+ 137,
683
+ 825,
684
+ 290
685
+ ],
686
+ "page_idx": 8
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "REFERENCES ",
691
+ "text_level": 1,
692
+ "bbox": [
693
+ 176,
694
+ 106,
695
+ 285,
696
+ 121
697
+ ],
698
+ "page_idx": 9
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Tameem Adel, Zoubin Ghahramani, and Adrian Weller. Discovering interpretable representations for both deep generative and discriminative models. In International Conference on Machine Learning, pp. 50–59, 2018. ",
703
+ "bbox": [
704
+ 174,
705
+ 130,
706
+ 823,
707
+ 172
708
+ ],
709
+ "page_idx": 9
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Francis Bach and Michael Jordan. Kernel independent component analysis. Journal of Machine Learning Research, 3(7):1–48, 2002. ",
714
+ "bbox": [
715
+ 173,
716
+ 184,
717
+ 823,
718
+ 213
719
+ ],
720
+ "page_idx": 9
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013. ",
725
+ "bbox": [
726
+ 174,
727
+ 226,
728
+ 826,
729
+ 267
730
+ ],
731
+ "page_idx": 9
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Rosemary Ke, Sébastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. arXiv preprint arXiv:1901.10912, 2019. ",
736
+ "bbox": [
737
+ 176,
738
+ 280,
739
+ 823,
740
+ 323
741
+ ],
742
+ "page_idx": 9
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "Diane Bouchacourt, Ryota Tomioka, and Sebastian Nowozin. Multi-level variational autoencoder: Learning disentangled representations from grouped observations. In AAAI Conference on Artificial Intelligence, 2018. ",
747
+ "bbox": [
748
+ 173,
749
+ 334,
750
+ 826,
751
+ 378
752
+ ],
753
+ "page_idx": 9
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Rob Brekelmans, Daniel Moyer, Aram Galstyan, and Greg Ver Steeg. Exact rate-distortion in autoencoders via echo noise. In Advances in Neural Information Processing Systems, pp. 3889– 3900, 2019. ",
758
+ "bbox": [
759
+ 173,
760
+ 390,
761
+ 826,
762
+ 433
763
+ ],
764
+ "page_idx": 9
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in beta-VAE. arXiv preprint arXiv:1804.03599, 2018. ",
769
+ "bbox": [
770
+ 174,
771
+ 444,
772
+ 826,
773
+ 487
774
+ ],
775
+ "page_idx": 9
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "Agisilaos Chartsias, Thomas Joyce, Giorgos Papanastasiou, Scott Semple, Michelle Williams, David Newby, Rohan Dharmakumar, and Sotirios A Tsaftaris. Factorised spatial representation learning: Application in semi-supervised myocardial segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 490–498. Springer, 2018. ",
780
+ "bbox": [
781
+ 174,
782
+ 500,
783
+ 826,
784
+ 558
785
+ ],
786
+ "page_idx": 9
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, 2018. ",
791
+ "bbox": [
792
+ 171,
793
+ 568,
794
+ 825,
795
+ 598
796
+ ],
797
+ "page_idx": 9
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Pierre Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994. ",
802
+ "bbox": [
803
+ 171,
804
+ 609,
805
+ 825,
806
+ 638
807
+ ],
808
+ "page_idx": 9
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "Elliot Creager, David Madras, Jörn-Henrik Jacobsen, Marissa A Weis, Kevin Swersky, Toniann Pitassi, and Richard Zemel. Flexibly fair representation learning by disentanglement. arXiv preprint arXiv:1906.02589, 2019. ",
813
+ "bbox": [
814
+ 173,
815
+ 650,
816
+ 826,
817
+ 693
818
+ ],
819
+ "page_idx": 9
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214–226. ACM, 2012. ",
824
+ "bbox": [
825
+ 173,
826
+ 705,
827
+ 825,
828
+ 748
829
+ ],
830
+ "page_idx": 9
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. In International Conference on Learning Representations, 2018. ",
835
+ "bbox": [
836
+ 173,
837
+ 760,
838
+ 825,
839
+ 790
840
+ ],
841
+ "page_idx": 9
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Peter Földiák. Learning invariance from transformation sequences. Neural Computation, 3(2): 194–200, 1991. ",
846
+ "bbox": [
847
+ 173,
848
+ 801,
849
+ 825,
850
+ 830
851
+ ],
852
+ "page_idx": 9
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020. ",
857
+ "bbox": [
858
+ 173,
859
+ 842,
860
+ 825,
861
+ 886
862
+ ],
863
+ "page_idx": 9
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Anirudh Goyal, Alex Lamb, Jordan Hoffmann, Shagun Sodhani, Sergey Levine, Yoshua Bengio, and Bernhard Schölkopf. Recurrent independent mechanisms. arXiv preprint arXiv:1909.10893, 2019. ",
868
+ "bbox": [
869
+ 173,
870
+ 897,
871
+ 826,
872
+ 926
873
+ ],
874
+ "page_idx": 9
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Luigi Gresele, Paul K. Rubenstein, Arash Mehrjou, Francesco Locatello, and Bernhard Schölkopf. The incomplete rosetta stone problem: Identifiability results for multi-view nonlinear ica. In Conference on Uncertainty in Artificial Intelligence (UAI), 2019. ",
879
+ "bbox": [
880
+ 174,
881
+ 106,
882
+ 826,
883
+ 148
884
+ ],
885
+ "page_idx": 10
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a. ",
890
+ "bbox": [
891
+ 174,
892
+ 161,
893
+ 826,
894
+ 217
895
+ ],
896
+ "page_idx": 10
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Irina Higgins, Arka Pal, Andrei Rusu, Loic Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. Darla: Improving zero-shot transfer in reinforcement learning. In International Conference on Machine Learning, 2017b. ",
901
+ "bbox": [
902
+ 176,
903
+ 229,
904
+ 823,
905
+ 272
906
+ ],
907
+ "page_idx": 10
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bošnjak, Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018. ",
912
+ "bbox": [
913
+ 173,
914
+ 284,
915
+ 826,
916
+ 340
917
+ ],
918
+ "page_idx": 10
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Aapo Hyvarinen and Hiroshi Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ica. In Advances in Neural Information Processing Systems, 2016. ",
923
+ "bbox": [
924
+ 171,
925
+ 352,
926
+ 823,
927
+ 382
928
+ ],
929
+ "page_idx": 10
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Aapo Hyvärinen and Petteri Pajunen. Nonlinear independent component analysis: Existence and uniqueness results. Neural Networks, 1999. ",
934
+ "bbox": [
935
+ 171,
936
+ 392,
937
+ 823,
938
+ 421
939
+ ],
940
+ "page_idx": 10
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Aapo Hyvarinen, Hiroaki Sasaki, and Richard E Turner. Nonlinear ica using auxiliary variables and generalized contrastive learning. In International Conference on Artificial Intelligence and Statistics, 2019. ",
945
+ "bbox": [
946
+ 174,
947
+ 433,
948
+ 826,
949
+ 477
950
+ ],
951
+ "page_idx": 10
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Christian Jutten and Juha Karhunen. Advances in nonlinear blind source separation. In International Symposium on Independent Component Analysis and Blind Signal Separation, pp. 245–256, 2003. ",
956
+ "bbox": [
957
+ 174,
958
+ 488,
959
+ 826,
960
+ 517
961
+ ],
962
+ "page_idx": 10
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Ilyes Khemakhem, Diederik Kingma, Ricardo Monti, and Aapo Hyvarinen. Variational autoencoders and nonlinear ica: A unifying framework. In International Conference on Artificial Intelligence and Statistics, pp. 2207–2217, 2020. ",
967
+ "bbox": [
968
+ 176,
969
+ 529,
970
+ 825,
971
+ 571
972
+ ],
973
+ "page_idx": 10
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In International Conference on Machine Learning, 2018. ",
978
+ "bbox": [
979
+ 173,
980
+ 583,
981
+ 823,
982
+ 612
983
+ ],
984
+ "page_idx": 10
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations, 2014. ",
989
+ "bbox": [
990
+ 171,
991
+ 625,
992
+ 825,
993
+ 654
994
+ ],
995
+ "page_idx": 10
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "David Klindt, Lukas Schott, Yash Sharma, Ivan Ustyuzhaninov, Wieland Brendel, Matthias Bethge, and Dylan Paiton. Towards nonlinear disentanglement in natural data with temporal sparse coding. arXiv preprint arXiv:2007.10930, 2020. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 665,
1003
+ 826,
1004
+ 708
1005
+ ],
1006
+ "page_idx": 10
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Abhishek Kumar, Prasanna Sattigeri, and Avinash Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. In International Conference on Learning Representations, 2018. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 719,
1014
+ 826,
1015
+ 762
1016
+ ],
1017
+ "page_idx": 10
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Zejian Li, Yongchuan Tang, Wei Li, and Yongxing He. Learning disentangled representation with pairwise independence. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 4245–4252, 2019. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 773,
1025
+ 826,
1026
+ 816
1027
+ ],
1028
+ "page_idx": 10
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Francesco Locatello, Gabriele Abbati, Thomas Rainforth, Stefan Bauer, Bernhard Schölkopf, and Olivier Bachem. On the fairness of disentangled representations. In Advances in Neural Information Processing Systems, pp. 14584–14597, 2019a. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 829,
1036
+ 825,
1037
+ 872
1038
+ ],
1039
+ "page_idx": 10
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Francesco Locatello, Stefan Bauer, Mario Lucic, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In International Conference on Machine Learning, 2019b. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 883,
1047
+ 825,
1048
+ 926
1049
+ ],
1050
+ "page_idx": 10
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Francesco Locatello, Michael Tschannen, Stefan Bauer, Gunnar Rätsch, Bernhard Schölkopf, and Olivier Bachem. Disentangling factors of variation using few labels. The 2nd Learning from Limited Labeled Data (LLD) Workshop at the International Conference on Learning Representations, 2019c. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 106,
1058
+ 826,
1059
+ 162
1060
+ ],
1061
+ "page_idx": 11
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Francesco Locatello, Ben Poole, Gunnar Rätsch, Bernhard Schölkopf, Olivier Bachem, and Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020. ",
1066
+ "bbox": [
1067
+ 173,
1068
+ 172,
1069
+ 826,
1070
+ 215
1071
+ ],
1072
+ "page_idx": 11
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. arXiv preprint arXiv:1802.06309, 2018. ",
1077
+ "bbox": [
1078
+ 173,
1079
+ 226,
1080
+ 825,
1081
+ 256
1082
+ ],
1083
+ "page_idx": 11
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Fairness through causal awareness: Learning causal latent-variable models for biased data. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pp. 349–358, 2019. ",
1088
+ "bbox": [
1089
+ 176,
1090
+ 265,
1091
+ 825,
1092
+ 309
1093
+ ],
1094
+ "page_idx": 11
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Emile Mathieu, Tom Rainforth, N. Siddharth, and Yee Whye Teh. Disentangling disentanglement in variational auto-encoders. arXiv preprint arXiv:1812.02833, 2018. ",
1099
+ "bbox": [
1100
+ 169,
1101
+ 318,
1102
+ 825,
1103
+ 347
1104
+ ],
1105
+ "page_idx": 11
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "G. Parascandolo, N. Kilbertus, M. Rojas-Carulla, and B. Schölkopf. Learning independent causal mechanisms. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 4033–4041, 2018. ",
1110
+ "bbox": [
1111
+ 173,
1112
+ 356,
1113
+ 825,
1114
+ 400
1115
+ ],
1116
+ "page_idx": 11
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Pascal Paysan, Reinhard Knothe, Brian Amberg, Sami Romdhani, and Thomas Vetter. A 3d face model for pose and illumination invariant face recognition. In 2009 Sixth IEEE International Conference on Advanced Video and Signal Based Surveillance, pp. 296–301. Ieee, 2009. ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 410,
1124
+ 826,
1125
+ 453
1126
+ ],
1127
+ "page_idx": 11
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "J. Peters, D. Janzing, and B. Schölkopf. Elements of Causal Inference - Foundations and Learning Algorithms. MIT Press, Cambridge, MA, USA, 2017. ",
1132
+ "bbox": [
1133
+ 176,
1134
+ 462,
1135
+ 823,
1136
+ 492
1137
+ ],
1138
+ "page_idx": 11
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 501,
1146
+ 823,
1147
+ 531
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Mark Schmidt, Alexandru Niculescu-Mizil, Kevin Murphy, et al. Learning graphical model structure using l1-regularization paths. In AAAI, volume 7, pp. 1278–1283, 2007. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 540,
1157
+ 823,
1158
+ 569
1159
+ ],
1160
+ "page_idx": 11
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Bernhard Schölkopf. Causality for machine learning. arXiv preprint arXiv:1911.10500, 2019. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 579,
1168
+ 790,
1169
+ 594
1170
+ ],
1171
+ "page_idx": 11
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, and Ben Poole. Weakly supervised disentanglement with guarantees. arXiv preprint arXiv:1910.09772, 2019. ",
1176
+ "bbox": [
1177
+ 173,
1178
+ 604,
1179
+ 823,
1180
+ 633
1181
+ ],
1182
+ "page_idx": 11
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Peter Sorrenson, Carsten Rother, and Ullrich Köthe. Disentanglement by nonlinear ica with general incompressible-flow networks (gin). arXiv preprint arXiv:2001.04872, 2020. ",
1187
+ "bbox": [
1188
+ 173,
1189
+ 643,
1190
+ 823,
1191
+ 672
1192
+ ],
1193
+ "page_idx": 11
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Raphael Suter, Djordje Miladinovic, Stefan Bauer, and Bernhard Schölkopf. Interventional robustness ´ of deep latent variable models. In International Conference on Machine Learning, 2019. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 683,
1201
+ 823,
1202
+ 712
1203
+ ],
1204
+ "page_idx": 11
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Sjoerd van Steenkiste, Francesco Locatello, Jürgen Schmidhuber, and Olivier Bachem. Are disentangled representations helpful for abstract visual reasoning? arXiv preprint arXiv:1905.12506, 2019. ",
1209
+ "bbox": [
1210
+ 174,
1211
+ 722,
1212
+ 826,
1213
+ 763
1214
+ ],
1215
+ "page_idx": 11
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Mengyue Yang, Furui Liu, Zhitang Chen, Xinwei Shen, Jianye Hao, and Jun Wang. Causalvae: Structured causal disentanglement in variational autoencoder. arXiv preprint arXiv:2004.08697, 2020. ",
1220
+ "bbox": [
1221
+ 174,
1222
+ 775,
1223
+ 826,
1224
+ 816
1225
+ ],
1226
+ "page_idx": 11
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "A IMPLEMENTATION DETAILS ",
1231
+ "text_level": 1,
1232
+ "bbox": [
1233
+ 176,
1234
+ 106,
1235
+ 436,
1236
+ 121
1237
+ ],
1238
+ "page_idx": 12
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Unsupervised Disentanglement methods. For reasons of comparison, the considered disentanglement methods in this work cover the full collection of state-of-the-art approaches in disentanglement_lib from Locatello et al. (2019b) based on representations learned by VAEs. The set contains six different methods that enforce disentanglement of the representation by equipping the loss with different regularizers that aim at enforcing the special structure of the posterior aggregate encoder distribution. A detailed description of the regularizer forms used in this work, specifically $\\beta$ -VAE (Higgins et al., 2017a), FactorVAE (Kim & Mnih, 2018), AnnealedVAE (Burgess et al., 2018), DIP-VAE-I, DIP-VAE-II (Kumar et al., 2018) and $\\beta$ -TC-VAE (Chen et al., 2018) is provided in (Locatello et al., 2019b). We use the same encoder architecture with 10 latent dimensions for every model. ",
1243
+ "bbox": [
1244
+ 174,
1245
+ 136,
1246
+ 825,
1247
+ 275
1248
+ ],
1249
+ "page_idx": 12
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Evaluation metrics. To measure disentanglement of a learned representation, various metrics have been proposed, each requiring access to the ground truth labels. The BetaVAE score is based upon the prediction of a fixed factor from the disentangled representation using a linear classifier (Higgins et al., 2017a). The FactorVAE score is intended to correct for some failures of the former by utilizing majority vote classifiers based on a normalized variance of each latent dimension (Kim & Mnih, 2018). The SAP score represents the mean distance between the classification errors of the two latent dimensions that are most predictable (Kumar et al., 2018). For the MIG score, one computes the mutual information between the latent representation and the ground truth factors and calculates the final score using a normalized gap between the two highest MI entries for each factor. Finally, a disentanglement score proposed by Eastwood & Williams (2018), often referred to as DCI score, is calculated from a dimension-wise entropy reflecting the usefulness of the dimension to predict a single factor of variation. ",
1254
+ "bbox": [
1255
+ 174,
1256
+ 290,
1257
+ 825,
1258
+ 457
1259
+ ],
1260
+ "page_idx": 12
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Unfairness between a pair of FoV: The scores reported are based on a notion of demographic parity for predicting a target variable $y$ given a protected and sensitive variable $s$ . Both $y$ and $s$ can be associated with a factor of variation here. Rather than using the global total variation average as defined in Locatello et al. (2019a), we report the individual demographic parities for the correlated factors specifically. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 464,
1268
+ 825,
1269
+ 534
1270
+ ],
1271
+ "page_idx": 12
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Pairwise entanglement metric: In order to further analyze the differences between the GBT feature importance matrices between latent code and encoded factor of variation, we view them as weights on the edges of a bipartite graph encoding the statistical relation between each factor of variation and code. We can now delete all edges with weight smaller than some threshold and count (i) how many factors of variation are connected with at least a latent code and (ii) the number of connected components with size larger than one. We can then compute which factors are merged at which threshold. Factors that are merged at lower threshold are more entangled in the sense that are more statistically related to a shared latent dimension. This computation can be not only based on the GBT feature importances but likewise on weight matrices inferred from the Mutual Information. ",
1276
+ "bbox": [
1277
+ 174,
1278
+ 541,
1279
+ 825,
1280
+ 666
1281
+ ],
1282
+ "page_idx": 12
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Joint distributions of correlated factors in datasets: In Fig. 8 we show the joint probability distributions of the correlated pair of FoV for all datasets and correlation strengths considered in this study. Dataset A, B and C were designed with correlated factors of variation that are ordinal for a natural visual interpretation of the traversals. In contrast, datasets D and E contain a correlated factor of variation that has no such natural ordering. ",
1287
+ "bbox": [
1288
+ 174,
1289
+ 681,
1290
+ 823,
1291
+ 751
1292
+ ],
1293
+ "page_idx": 12
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "B ADDITIONAL RESULTS ",
1298
+ "text_level": 1,
1299
+ "bbox": [
1300
+ 176,
1301
+ 771,
1302
+ 398,
1303
+ 787
1304
+ ],
1305
+ "page_idx": 12
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "B.1 SECTION 3 ",
1310
+ "text_level": 1,
1311
+ "bbox": [
1312
+ 174,
1313
+ 801,
1314
+ 294,
1315
+ 816
1316
+ ],
1317
+ "page_idx": 12
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Shortcomings of existing metrics. Following recent studies, we evaluate the trained models with the help of a broad range of disentanglement metrics that aim at quantifying overall success by the help of a single scalar measure. Perhaps surprisingly, as can be seen in Fig. 9, there is no clear trend among all implemented disentanglement scores w.r.t. correlation strength. The metrics have been evaluated by sampling from the correlated data distribution although they do not differ substantially when evaluated on the uncorrelated distribution. We thus argue that commonly used methods are insufficient to provide insight into the latent space learned. ",
1322
+ "bbox": [
1323
+ 174,
1324
+ 828,
1325
+ 825,
1326
+ 926
1327
+ ],
1328
+ "page_idx": 12
1329
+ },
1330
+ {
1331
+ "type": "image",
1332
+ "img_path": "images/f94feea5848132b951f473cf53dfa9d1dc6ef33b49735fc543b46e24ae0ecf97.jpg",
1333
+ "image_caption": [
1334
+ "Figure 8: Probability distributions for sampling training data in the correlated pair of FoVs in the respective datasets (A, B, C, D, E) considering correlation strengths of $\\sigma = 0 . 2$ , $\\sigma = 0 . 4$ , $\\sigma = 0 . 7$ and $\\sigma = \\infty$ , the uncorrelated limit (from left to right). "
1335
+ ],
1336
+ "image_footnote": [],
1337
+ "bbox": [
1338
+ 171,
1339
+ 169,
1340
+ 823,
1341
+ 809
1342
+ ],
1343
+ "page_idx": 13
1344
+ },
1345
+ {
1346
+ "type": "image",
1347
+ "img_path": "images/befc523d57a6f4ddbe357b7dbbffc7e45da3efd7984297017b532022ddc94e3f.jpg",
1348
+ "image_caption": [
1349
+ "Figure 9: Standard disentanglement metrics evaluated on the correlated and uncorrelated (uc) training set showing no clear trend for different correlation strengths. "
1350
+ ],
1351
+ "image_footnote": [],
1352
+ "bbox": [
1353
+ 173,
1354
+ 176,
1355
+ 820,
1356
+ 818
1357
+ ],
1358
+ "page_idx": 14
1359
+ },
1360
+ {
1361
+ "type": "image",
1362
+ "img_path": "images/60b117850a53daf06a30455a78996762a9ba12708937fe8953bef3fc11a32782.jpg",
1363
+ "image_caption": [
1364
+ "Figure 10: We show latent traversals (left) of the best DCI score model among all 180 trained models with weak correlation $\\sigma = 0 . 7$ ) in object size and azimuth. The traversals in latent code no 3 and 7/8 (highlighted in black), suggest that these dimensions encode no mixture of azimuth and object size compared to the models with stronger correlation. This is supported by the GBT feature importance matrix of this model (right). "
1365
+ ],
1366
+ "image_footnote": [],
1367
+ "bbox": [
1368
+ 174,
1369
+ 109,
1370
+ 821,
1371
+ 208
1372
+ ],
1373
+ "page_idx": 15
1374
+ },
1375
+ {
1376
+ "type": "table",
1377
+ "img_path": "images/92fb788e2b4ef4bef433d594e9007b2ccdfd2f4923a5d55f801cfb86dd94c508.jpg",
1378
+ "table_caption": [],
1379
+ "table_footnote": [],
1380
+ "table_body": "<table><tr><td>correlation strength o</td><td></td><td>0.2 0.4</td><td>0.7</td><td>8 (uc)</td></tr><tr><td>Shapes3D (A)</td><td>object size - azimuth median other pairs</td><td>0.38 0.26 0.09 0.09</td><td>0.13 0.09</td><td>0.08 0.08</td></tr><tr><td>dSprites (B)</td><td>orientation - position X median other pairs</td><td>0.17 0.16 0.13 0.13</td><td>0.14 0.13</td><td>0.11 0.13</td></tr><tr><td>MPI3D (C)</td><td>First DOF - Second DOF median other pairs</td><td>0.2 0.19 0.16 0.16</td><td>0.17 0.15</td><td>0.16 0.15</td></tr></table>",
1381
+ "bbox": [
1382
+ 173,
1383
+ 313,
1384
+ 629,
1385
+ 419
1386
+ ],
1387
+ "page_idx": 15
1388
+ },
1389
+ {
1390
+ "type": "table",
1391
+ "img_path": "images/f65aa70925e357e2a8cd57ef3b28b2b239a67e235a5ec882aaaef5b256a05e4b.jpg",
1392
+ "table_caption": [],
1393
+ "table_footnote": [],
1394
+ "table_body": "<table><tr><td>0.2</td><td>0.4</td><td>0.7</td><td>8(uc)</td></tr><tr><td>0.28</td><td>0.25</td><td>0.2</td><td>0.17 0.18</td></tr><tr><td>0.2 0.34</td><td>0.2 0.31</td><td>0.19 0.24</td><td>0.14</td></tr><tr><td>0.16</td><td>0.18</td><td>0.19</td><td>0.15</td></tr><tr><td>0.54</td><td>0.52</td><td>0.5</td><td>0.49</td></tr><tr><td>0.25</td><td>0.25</td><td>0.26</td><td>0.25</td></tr></table>",
1395
+ "bbox": [
1396
+ 648,
1397
+ 313,
1398
+ 823,
1399
+ 417
1400
+ ],
1401
+ "page_idx": 15
1402
+ },
1403
+ {
1404
+ "type": "table",
1405
+ "img_path": "images/848bea5784a5a31bf08dca0ec1214457ecf3bdc1b7c3d3e4f6c4759d131b7758.jpg",
1406
+ "table_caption": [],
1407
+ "table_footnote": [],
1408
+ "table_body": "<table><tr><td>0.2</td><td>0.4</td></tr><tr><td>0.38 0.11</td><td>0.31 0.11</td></tr><tr><td>0.43</td><td>0.3</td></tr><tr><td>0.15</td><td>0.15</td></tr></table>",
1409
+ "bbox": [
1410
+ 735,
1411
+ 436,
1412
+ 823,
1413
+ 518
1414
+ ],
1415
+ "page_idx": 15
1416
+ },
1417
+ {
1418
+ "type": "table",
1419
+ "img_path": "images/223fc1196af2fe691974ba8a606eb694152476c0f7eecea5147c866b452e4ea7.jpg",
1420
+ "table_caption": [
1421
+ "Figure 11: Pairwise entanglement scores help to uncover still existent correlations in the latent representation. Left: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs. We see that stronger correlation leads to statistically more entanglement latents across all datasets studied compared to their baseline pairwise entanglement where the data exhibits no correlations (blue). Each pairwise score is the mean across 180 models for each dataset and correlation strength. Scores in the left table are based on GBT feature importance and scores presented in the right table are based on Mutual Information. "
1422
+ ],
1423
+ "table_footnote": [],
1424
+ "table_body": "<table><tr><td>correlation strength o</td><td></td><td>0.2</td><td>0.4</td></tr><tr><td>Shapes3D (D)</td><td>object color - object size</td><td>0.29</td><td>0.28</td></tr><tr><td></td><td>median uncorrelated pairs</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (E)</td><td>object color - azimuth</td><td>0.25</td><td>0.23</td></tr><tr><td></td><td>median uncorrelated pairs</td><td>0.1</td><td>0.09</td></tr></table>",
1425
+ "bbox": [
1426
+ 173,
1427
+ 436,
1428
+ 566,
1429
+ 518
1430
+ ],
1431
+ "page_idx": 15
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "Latent structure and pairwise entanglement. Our hypothesis that the latent representations are less correlated if the correlation strength is weaker is shown for a model on Shapes3D (A) with weak correlation in Fig. 10. Here the latent traversals do not mirror the major and minor axis of the correlated joint distribution. This conclusion is being backed by the thresholds of the pairwise entanglement metrics for the correlated pair vs. the median of all other pairs across all datasets, either when computing them using the GBT feature importances or the mutual information. See Fig. 11 for these respective results. Another pairwise metric that tracks the correlation strength in our scenario is the unfairness score between the correlated pair of factors that is being shown for datasets A, B and C in Fig. 12. ",
1436
+ "bbox": [
1437
+ 173,
1438
+ 660,
1439
+ 825,
1440
+ 785
1441
+ ],
1442
+ "page_idx": 15
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Generalization Properties In order to support our conclusion from these results that disentanglement methods can generalize towards unseen FoV configurations we show in Fig. 13 latent traversals originating from these OOD point with smallest object size and largest azimuth. We observe that changes in the remaining factors reliably yield the expected reconstructions. Additionally, we are interested in where samples from correlated models are located with respect to the ground truth value of each correlated variable. For this, we are visualizing the latent spaces with similar extrapolation and generalization capabilities of four models from the two strongest correlation dataset variants of Shapes3d (D) and Shapes3d (E) in Fig. 14. ",
1447
+ "bbox": [
1448
+ 174,
1449
+ 814,
1450
+ 825,
1451
+ 926
1452
+ ],
1453
+ "page_idx": 15
1454
+ },
1455
+ {
1456
+ "type": "image",
1457
+ "img_path": "images/34e189fd63cfbbe62d7bfd7f7f4115352a98f83edeef49f6dc31182e3a752e6d.jpg",
1458
+ "image_caption": [
1459
+ "Figure 12: Disentangled representations trained on correlated data are anti-correlated with higher fairness properties. The plots show the mean unfairness scores between the correlated factors with decreasing correlation strength for Shapes3D (A), dSprites (B) and MPI3D-real (C). "
1460
+ ],
1461
+ "image_footnote": [],
1462
+ "bbox": [
1463
+ 176,
1464
+ 101,
1465
+ 815,
1466
+ 252
1467
+ ],
1468
+ "page_idx": 16
1469
+ },
1470
+ {
1471
+ "type": "image",
1472
+ "img_path": "images/317b7f65006673a60895c3b03dc88a1dd36f82a0fe70127354c7c41ae1ed7185.jpg",
1473
+ "image_caption": [
1474
+ "Figure 13: Generalization capabilities towards out-of-distribution test data. Latent traversals from an observations the model has never seen during training. The starting point corresponds to a factor configuration in point 1 from Fig. 5. Shown are the results of the model with highest DCI score among all 180 trained models on Shapes3d (A) with a very restricted correlation strength $\\sigma = 0 . 2$ in object size and azimuth "
1475
+ ],
1476
+ "image_footnote": [],
1477
+ "bbox": [
1478
+ 334,
1479
+ 315,
1480
+ 661,
1481
+ 391
1482
+ ],
1483
+ "page_idx": 16
1484
+ },
1485
+ {
1486
+ "type": "text",
1487
+ "text": "B.2 SECTION 4 ",
1488
+ "text_level": 1,
1489
+ "bbox": [
1490
+ 174,
1491
+ 505,
1492
+ 292,
1493
+ 518
1494
+ ],
1495
+ "page_idx": 16
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Post-hoc alignment correction with few labels In Fig. 15, we see the axis alignment of the correlated latent space after fast adaptation using linear regression on a model trained on Shapes3D (A). Fast adaptation with linear regression substitution fails in some settings: when no two latent dimensions encode the applied correlation isolated from the other latent codes, or when the correlated variables do not have a unique natural ordering (e.g. color or categorical variables). Additionally, the functional form of the latent manifolds beyond the training distribution is unknown and in general expected to be nonlinear. We test the possibility of fast adaptation in this case using as substitution function a one-hidden layer MLP classifier of size 100 on the correlated Shapes3D variants. Under this method, we sample the FoV from a uniform independent distribution. A small number of such samples could practically be labeled manually. Using only 1000 labeled data points for our fast adaptation method shows a significant reduction in disentanglement-thresholds for the correlated pair (Fig. 16). ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 531,
1503
+ 825,
1504
+ 699
1505
+ ],
1506
+ "page_idx": 16
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Alignment during training using weak supervision Using the studied weakly supervision AdaGVAE method with $k = 1$ from Locatello et al. (2020), we showed that weak supervision can provide a strong inductive bias capable of finding the right factorization and resolving spurious correlations for datasets of unknown degree of correlation. Despite the results shown on Shapes3D (A) in the main paper, results across all three correlation variants in Shapes3D (A, D, E) are shown in Fig. 17 as well as some representative latent space visualizations that show strong axis alignment in Fig. 18. This study contains a total of 360 trained models. ",
1511
+ "bbox": [
1512
+ 174,
1513
+ 717,
1514
+ 825,
1515
+ 814
1516
+ ],
1517
+ "page_idx": 16
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "In addition to the experiment from the main paper where pairs are constructed solely from the correlated observational data, we want to study two scenarios where we have limited intervention capabilities on the FoV to generate training pairs. The resulting distribution of FoVs (still exhibiting correlations) in these pairs depends on whether the correlation between two pairs is due to a causal link or due to a common confounder. ",
1522
+ "bbox": [
1523
+ 174,
1524
+ 820,
1525
+ 825,
1526
+ 890
1527
+ ],
1528
+ "page_idx": 16
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Scenario I-1: We assume there is a confounder causing a spurious correlation between the factors, such that correlation is broken whenever we constraint the change to be in one of the correlations. ",
1533
+ "bbox": [
1534
+ 173,
1535
+ 897,
1536
+ 826,
1537
+ 926
1538
+ ],
1539
+ "page_idx": 16
1540
+ },
1541
+ {
1542
+ "type": "image",
1543
+ "img_path": "images/518e9b8bb27e4c53eed05f016e18beadb6eebf81873ce47e059542589bc0fa47.jpg",
1544
+ "image_caption": [
1545
+ "Figure 14: Latent space distribution of the two entangled dimensions of the best DCI model in Shapes3d (E) with $\\sigma = 0 . 2$ (first column), in Shapes3d (E) with $\\sigma = 0 . 4$ (second column), in Shapes3d (D) with $\\sigma = 0 . 2$ (third column) and in Shapes3d (D) with $\\sigma = 0 . 4$ (fourth column). Latent codes sampled from correlated observations (circle without edge) and (2) latent codes sampled with an object size-azimuth configuration not encountered during training(squares with black edge). Each column shows the ground truth values of the two correlated factors by color. "
1546
+ ],
1547
+ "image_footnote": [],
1548
+ "bbox": [
1549
+ 173,
1550
+ 117,
1551
+ 825,
1552
+ 366
1553
+ ],
1554
+ "page_idx": 17
1555
+ },
1556
+ {
1557
+ "type": "image",
1558
+ "img_path": "images/e64e0ebba8a1d2a267f6bda535faa83e124944fb4f84fe0350c180fc7cefabb0.jpg",
1559
+ "image_caption": [
1560
+ "Figure 15: Latent space distribution of the two entangled dimensions of the best DCI model in Shapes3D (A). Latent codes sampled from correlated observations (circle without edge) and (2) latent codes sampled with an object size-azimuth configuration not encountered during training (squares with black edge). Left column shows the ground truth values of the two correlated factors by color. Middle and right column show the fast adapted space using linear regression and 100 or 1000 labels respectively. "
1561
+ ],
1562
+ "image_footnote": [],
1563
+ "bbox": [
1564
+ 173,
1565
+ 494,
1566
+ 823,
1567
+ 815
1568
+ ],
1569
+ "page_idx": 17
1570
+ },
1571
+ {
1572
+ "type": "table",
1573
+ "img_path": "images/738969d2d7b5843e87cb113fa4eb91b59ae7d4b2a3eb21149bee77cf127386a8.jpg",
1574
+ "table_caption": [
1575
+ "Figure 16: Mean of the pairwise entanglement scores for the correlated pair (red) and the median of the uncorrelated pairs (based on GBT feature importance) for all pairs of variables in Shapes3D (D) (top), Shapes3D (E) (middle) and Shapes3D (A) (bottom) all with correlation strength $\\sigma = 0 . 2$ Each pairwise score is the mean across 180 models for each dataset and correlation strength. First column is the unsupervised baseline without any fast adaptation and the second column shows that fast adaption using a one-hidden layer MLP reduces these correlations with as little as 1000 labels when sampled from the uncorrelated dataset. "
1576
+ ],
1577
+ "table_footnote": [],
1578
+ "table_body": "<table><tr><td>dataset</td><td>labels</td><td>0</td><td>1000</td></tr><tr><td>Shapes3D (D) σ = 0.2</td><td>object color - object size</td><td>0.3</td><td>0.16</td></tr><tr><td>Shapes3D (D) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.07</td><td>0.07</td></tr><tr><td>Shapes3D (E)σ = 0.2</td><td>object color - azimuth</td><td>0.25</td><td>0.2</td></tr><tr><td>Shapes3D (E) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.1</td><td>0.11</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td> object size - azimuth</td><td>0.37</td><td>0.26</td></tr><tr><td>Shapes3D (A) σ = 0.2</td><td>median uncorrelated pairs</td><td>0.09</td><td>0.1</td></tr></table>",
1579
+ "bbox": [
1580
+ 266,
1581
+ 103,
1582
+ 730,
1583
+ 233
1584
+ ],
1585
+ "page_idx": 18
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "The value of the changing variable is then sampled uniformly in the second observation. Note that this still means that the vast majority of sampled pairs exhibit correlated FoV. This is depicted in the substantially lifted disentanglement scores shown in Fig. 19 as well as some selected latent space visualizations that show strong axis alignment in Fig. 20. We consistently observe much better disentangled models, often achieving perfect DCI score irrespective of correlations in the data set. The latent spaces tend to strongly align their coordinates with the ground truth label axis. We chose 10 random seeds per configuration in this study, yielding 720 models in total. ",
1590
+ "bbox": [
1591
+ 173,
1592
+ 366,
1593
+ 825,
1594
+ 464
1595
+ ],
1596
+ "page_idx": 18
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "Scenario I-2: Let us assume $C _ { 1 }$ causes $C _ { 2 }$ in our examples, which manifests as the studied linear correlations. Within this setting we cannot sample uniformly in $C _ { 2 }$ if we intervene (or “fix”) all factors except for this causal factor. Intervening on all factors but $C _ { 1 }$ , however, allows us to sample any value in $C _ { 1 }$ as it is not causally affected by $C _ { 2 }$ . To test the hypothesis that this constraint still allows for disentangling the correlation, we trained on Shapes3D (A) and sample pairs consistent with this causal model. Besides observing visually disentangled factors in the latent traversals, we show a summary of our results in Fig. 21 with the same significant improvements regarding disentangling the correlated FoVs. Besides the above correlation strengths, we additionally trained the same models using a very strong correlation of $\\sigma = 0 . 1$ , yielding 300 models trained in this study. ",
1601
+ "bbox": [
1602
+ 173,
1603
+ 470,
1604
+ 825,
1605
+ 597
1606
+ ],
1607
+ "page_idx": 18
1608
+ },
1609
+ {
1610
+ "type": "image",
1611
+ "img_path": "images/55a02791c8d0b50de5188e3389cffb5031ed780b7e45e63f8426086856db4b98.jpg",
1612
+ "image_caption": [
1613
+ "Figure 17: Standard disentanglement metrics evaluated for the weakly supervised scenario using correlated observational data. "
1614
+ ],
1615
+ "image_footnote": [],
1616
+ "bbox": [
1617
+ 173,
1618
+ 342,
1619
+ 820,
1620
+ 651
1621
+ ],
1622
+ "page_idx": 19
1623
+ },
1624
+ {
1625
+ "type": "image",
1626
+ "img_path": "images/f997e0d82272cc859cc5242bc563cb88283e962db14a373f621b6f0f37e42519.jpg",
1627
+ "image_caption": [
1628
+ "Figure 18: Left: For the weakly supervised scenario using correlated observational data trained models on Shapes3D (A), (D) and (E) correlating object color and azimuth learn consistently improved, often perfect, disentangled representation across all correlation strengths. Right: Latent dimensions of a best DCI model trained on strongly correlated observational data. Representations are perfectly axis-aligned with respect to both of the correlated variables ground truth values (right). "
1629
+ ],
1630
+ "image_footnote": [],
1631
+ "bbox": [
1632
+ 173,
1633
+ 217,
1634
+ 825,
1635
+ 736
1636
+ ],
1637
+ "page_idx": 20
1638
+ },
1639
+ {
1640
+ "type": "image",
1641
+ "img_path": "images/a25e94ba9291585646c3768650c399555dbe873fdf0046bcbe0de8f4bd961538.jpg",
1642
+ "image_caption": [
1643
+ "Figure 19: Standard disentanglement metrics evaluated on the correlated training sets for the weakly supervised scenario with intervening capabilities (I-1). "
1644
+ ],
1645
+ "image_footnote": [],
1646
+ "bbox": [
1647
+ 173,
1648
+ 289,
1649
+ 820,
1650
+ 704
1651
+ ],
1652
+ "page_idx": 21
1653
+ },
1654
+ {
1655
+ "type": "image",
1656
+ "img_path": "images/0a38d07ea4f3e624025b25e402e0f7d956eb38708636435fdc8e5dcdc86b34fd.jpg",
1657
+ "image_caption": [
1658
+ "Figure 20: Left: For the weakly supervised scenario with intervening capabilities (I-1) trained models on Shapes3D (A), (D) and (E) correlating object color and azimuth learn consistently improved, often perfect, disentangled representation across all correlation strengths. Right: Latent dimensions of a best DCI model with strong correlation (0.2). Representations are perfectly axis-aligned with respect to both of the correlated variables ground truth values (right). "
1659
+ ],
1660
+ "image_footnote": [],
1661
+ "bbox": [
1662
+ 173,
1663
+ 220,
1664
+ 825,
1665
+ 736
1666
+ ],
1667
+ "page_idx": 22
1668
+ },
1669
+ {
1670
+ "type": "image",
1671
+ "img_path": "images/c22f1e0add00466036990823304d24372b6bfc1093ac60cd57568df61d0bf979.jpg",
1672
+ "image_caption": [
1673
+ "Figure 21: Disentanglement metrics (top), unfairness scores (middle) and latent spaces (bottom) show strong disentanglement using weak supervision with intervening capabilities (I-2) - even under the stronger assumption that sampling of observation pairs follow its causal generative model. We show the learnt latent space encoding of the two correlated factors of variation for a model with $\\sigma = 0 . 1$ and low reconstruction loss. "
1674
+ ],
1675
+ "image_footnote": [],
1676
+ "bbox": [
1677
+ 173,
1678
+ 232,
1679
+ 820,
1680
+ 703
1681
+ ],
1682
+ "page_idx": 23
1683
+ }
1684
+ ]
parse/train/1ibNKMp8SKc/1ibNKMp8SKc_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1ibNKMp8SKc/1ibNKMp8SKc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BdKxQp0iBi8/BdKxQp0iBi8.md ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Tests
2
+
3
+ Victor Veitch1,2, Alexander D’Amour1, Steve Yadlowsky1, and Jacob Eisenstein1
4
+
5
+ 1Google Research
6
+ 2University of Chicago
7
+
8
+ # Abstract
9
+
10
+ Informally, a ‘spurious correlation’ is the dependence of a model on some aspect of the input data that an analyst thinks shouldn’t matter. In machine learning, these have a know-it-when-you-see-it character; e.g., changing the gender of a sentence’s subject changes a sentiment predictor’s output. To check for spurious correlations, we can ‘stress test’ models by perturbing irrelevant parts of input data and seeing if model predictions change. In this paper, we study stress testing using the tools of causal inference. We introduce counterfactual invariance as a formalization of the requirement that changing irrelevant parts of the input shouldn’t change model predictions. We connect counterfactual invariance to outof-domain model performance, and provide practical schemes for learning (approximately) counterfactual invariant predictors (without access to counterfactual examples). It turns out that both the means and implications of counterfactual invariance depend fundamentally on the true underlying causal structure of the data—in particular, whether the label causes the features or the features cause the label. Distinct causal structures require distinct regularization schemes to induce counterfactual invariance. Similarly, counterfactual invariance implies different domain shift guarantees depending on the underlying causal structure. This theory is supported by empirical results on text classification.
11
+
12
+ # 1 Introduction
13
+
14
+ Our focus in this paper is the sort of spurious correlations revealed by “poke it and see what happens” testing procedures for machine-learning models. For example, we might test a sentiment analysis tool by changing one proper noun for another (“tasty Mexican food” to “tasty Indian food”), with the expectation that the predicted sentiment should not change. This kind of perturbative stress testing is increasingly popular: it is straightforward to understand and offers a natural way to test the behavior of models against the expectations of practitioners [Rib $+ 2 0$ ; $\mathrm { W u } { + } 1 9$ ; Nai+18].
15
+
16
+ Intuitively, models that pass such stress tests are preferable to those that do not. However, fundamental questions about the use and meaning of perturbative stress tests remain open. For instance, what is the connection between passing stress tests and model performance on prediction? Eliminating predictor dependence on a spurious correlation should help with domain shifts that affect the spurious correlation—but how do we make this precise? And, how should we develop models that pass stress tests when our ability to generate perturbed examples is limited? For example, automatically perturbing the sentiment of a document in a general fashion is difficult.
17
+
18
+ The ad hoc nature of stress testing makes it difficult to give general answers to such questions. In this paper, we will use the tools of causal inference to formalize what it means for models to pass stress tests, and use this formalization to answer the questions above. We will formalize passing stress tests as counterfactual invariance, a condition on how a predictor should behave when given certain (unobserved) counterfactual input data. We will then derive implications of counterfactual invariance that can be measured in the observed data. Regularizing predictors to satisfy these observable implications provides a means for achieving (partial) counterfactual invariance. Then, we will connect counterfactual invariance to robust prediction under certain domain shifts, with the aim of clarifying what counterfactual invariance buys and when it is desirable.
19
+
20
+ An important insight that emerges from the formalization is that the true underlying causal structure of the data has fundamental implications for both model training and guarantees. Methods for handing ‘spurious correlations’ in data with a given causal structure need not perform well when blindly translated to another causal structure.
21
+
22
+ Counterfactual Invariance Consider the problem of learning a predictor $f$ that predicts a label $Y$ from covariates $X$ . In this paper, we’re interested in constructing predictors whose predictions are invariant to certain perturbations on $X$ . Our first task is to formalize the invariance requirement.
23
+
24
+ To that end, assume that there is an additional variable $Z$ that captures information that should not influence predictions. However, $Z$ may causally influence the covariates $X$ . Using the potential outcomes notation, let $X ( z )$ to denote the counterfactual $X$ we would have seen had $Z$ been set to $z$ , leaving all else fixed. Informally, we can understand perturbative stress tests as a way of producing particular realizations of counterfactual pairs $X ( z )$ , $X ( z ^ { \prime } )$ that differ by an intervention on $z$ . Then, we formalize the requirement that an arbitrary change to $z$ does not change predictions:
25
+
26
+ Definition 1.1. A predictor $f$ is counterfactually invariant to $Z$ if $f ( X ( z ) ) \ : = \ : f ( X ( z ^ { \prime } ) )$ almost everywhere, for all $z , z ^ { \prime }$ in the sample space of $Z$ . When $Z$ is clear from context, we’ll just say the predictor is counterfactually invariant.
27
+
28
+ # 2 Causal Structure
29
+
30
+ Counterfactual invariance is a condition on how the predicted label behaves under interventions on parts of the input data. However, intuitions about stress testing are based on how the true label behaves under interventions on parts of the input data. We will see that the true causal structure fundamentally affects both the implications of counterfactual invariance, and the techniques we use to achieve it. To study this phenomenon, we’ll use two causal structures that are commonly encountered in applications; see Figure 1.
31
+
32
+ # 2.1 Prediction in the Causal Direction
33
+
34
+ We begin with the case where $X$ is a cause of $Y$
35
+
36
+ Example 2.1. We want to automatically classify the quality of product reviews. Each review has a number of “helpful” votes $Y$ (from site users). We predict $Y$ using the text of the product review $X$ . However, we find interventions on the sentiment $Z$ of the text change our prediction; changing “Great shoes!” to “Bad shoes!” changes the prediction.
37
+
38
+ In the examples in this paper, the covariate $X$ is text data. Usually, the causal relationship between the text and $Y$ and $Z$ will be complex— e.g., the relationships may depend on abstract, unlabeled, parts of the text such as topic, writing quality, or tone. In principle, we could enumerate all such latent variables, construct a causal graph capturing the relationships between these variables and $Y , Z$ , and use this causal structure to study counterfactual invariance. For instance, if we think that topic causally influences the helpfulness $Y$ , but is not influenced by sen
39
+
40
+ ![](images/db6f289cfcf6978a6de564bcb64d3637aad50130eac9708db787c9ff88ca27f4.jpg)
41
+ Figure 1: Causal models for the data generating process. We decompose the observed covariate $X$ into latent parts defined by their causal relationships with $Z$ and $Y$ . Solid arrows denote causal relationships, while dashed lines denote non-causal associations. The differences between these causal structures will turn out to be key for understanding counterfactual invariance.
42
+
43
+ timent $Z$ , then we could build a counterfactually invariant predictor by extracting the topic and predicting $Y$ using topic alone. However, exhaustively articulating all possible such variables is a herculean task.
44
+
45
+ Instead, notice that the only thing that’s relevant about these latent variables is their causal relationship with $Y$ and $Z$ . Accordingly, we’ll decompose the observed variable $X$ into parts defined by their causal relationships with $Y$ and $Z$ . We remain agnostic to the semantic interpretation of these parts. Namely, we define $X _ { Z } ^ { \perp }$ as the part of $X$ that is not causally influenced by $Z$ (but may influence $Y )$ , $X _ { Y } ^ { \perp }$ as the part that does not causally influence $Y$ (but may be influenced by $Z$ ), and $X _ { Y \wedge Z }$ is the remaining part that is both influenced by $Z$ and that influences $Y$ . The causal structure is shown in Figure 1a.
46
+
47
+ We see there are two paths that lead to $Y$ and $Z$ being associated. The first is when $Z$ affects $X _ { Y \wedge Z }$ which, in turn, affects $Y$ . For example, a very enthusiastic reviewer might write a longer, more detailed review, which will in turn be more helpful. The second is when a common cause or selection effect in the data generating process induces an association between $Z$ and $Y$ , which we denote with a dashed arrow. For example, if books tend to get more positive reviews, and also people who buy books are more likely to flag reviews as helpful, then the product type would be a common cause of sentiment and helpfulness.
48
+
49
+ # 2.2 Prediction in the Anti-Causal Direction
50
+
51
+ We also consider the case where $Y$ causes $X$
52
+
53
+ Example 2.2. We want to predict the star rating $Y$ of movie reviews from the text $X$ . However, we find that predictions are influenced by the movie genre $Z$ ; e.g., changing “Adam Sandler” (a comedy actor) to “Hugh Grant” (a romance actor) changes the predictions.
54
+
55
+ Figure 1b shows the causal structure. Here, the observed $X$ is influenced by both $Y$ and $Z$ . Again, we decompose $X$ into parts defined by their causal relationship with $Z$ and $Y$ . Here, $Z$ (and thus $X _ { Y } ^ { \perp }$ ) can be associated with $Y$ through two paths. First, if $X _ { Y \wedge Z }$ is non-trivial, then conditioning on it causes a dependence between $Z$ and $Y$ (because $X _ { Y \wedge Z }$ is a collider). For example, if Adam Sandler tends to appear in good comedy movies but bad movies of other genres then seeing “Sandler” in the text induces a dependency between sentiment and genre. Second, $Z$ and $Y$ may be associated due to a common cause, or due to selection effects in the data collection protocol—this is represented by the dashed line between $Z$ and $Y$ . For example, fans of romantic comedies may tend to give higher reviews (to all films) than fans of horror movies.
56
+
57
+ # 2.3 Non-Causal Associations
58
+
59
+ Frequently, a predictor trained to predict $Y$ from $X$ will rely on $X _ { Y } ^ { \perp }$ , even though there is no causal connection between $Y$ and $X _ { Y } ^ { \perp }$ , and therefore will fail counterfactual invariance. The reason is that $X _ { Y } ^ { \perp }$ serves as a proxy for $Z$ , and $Z$ is predictive of $Y$ due to the non-causal (dashed line) association.
60
+
61
+ There are two mechanisms that can induce such associations. First, $Y$ and $Z$ may be confounded: they are both influenced by an unobserved common cause $U$ . For example, people who review books may be more upbeat than people who review clothing. This leads to positive sentiments and high helpfulness votes for books, creating an association between sentiment and helpfulness. Second, $Y$ and $Z$ may be subject to selection: there is some condition (event) $S$ that depends on $Y$ and $Z$ , such that a data point from the population is included in the sample only if $S = 1$ holds. For example, our training data might only include movies with at least 100 reviews. If only excellent horror movies have so many reviews (but most rom-coms get that many), then this selection would induce an association between genre and score. Formally, the dashed-line causal graphs mean our sample is distributed according to $\begin{array} { r } { P ( X , Y , Z ) = \int \mathrm { P } ( \dot { X } , Y , Z , u \mid S = 1 ) \mathrm { d } \mathrm { P } ( u ) } \end{array}$ where $Y , Z$ are caused by $U$ and are causes of $S$ , and $( X , Y , Z )$ are causally related according to the graph.
62
+
63
+ In addition to the non-causal dashed-line relationship, there is also dependency induced by between $Y$ and $Z$ by $X _ { Y \wedge Z }$ . Whether or not each of these dependencies is “spurious” is a problem-specific judgement that must be made by each analyst based on their particular use case. E.g., using genre to predict sentiment may or may not be reasonable, depending on the actual application in mind. However, there is a special case that captures a common intuition for purely spurious association.
64
+
65
+ Definition 2.3. We say that the association between $Y$ and $Z$ is purely spurious if $Y \perp X \mid X _ { Z } ^ { \perp } , Z$
66
+
67
+ That is, if the dashed-line association did not exist (removed by conditioning on $Z$ ) then the part of $X$ that is not influenced by $Z$ would suffice to estimate $Y$ .
68
+
69
+ # 3 Observable Signatures of Counterfactually Invariant Predictors
70
+
71
+ We now consider the question of how to achieve counterfactual invariance in practice. The challenge is that counterfactual invariance is defined by the behavior of the predictor on counterfactual data that is never actually observed. This makes checking counterfactual invariance impossible. Instead, we’ll derive a signature of counterfactual invariance that actually can be measured—and enforced— using ordinary datasets where $Z$ (or a proxy) is measured. For example, the star rating of a review as a proxy for sentiment, or genre labels in the movie review case.
72
+
73
+ Intuitively, a predictor $f$ is counterfactually invariant if it depends only on $X _ { Z } ^ { \perp }$ , the part of $X$ that is not affected by $Z$ . To formalize this, we need to show that such a $X _ { Z } ^ { \perp }$ is well defined:
74
+
75
+ Lemma 3.1. Let $X _ { Z } ^ { \perp }$ be a $X$ -measurable random variable such that, for all measurable functions $f$ , we have that $f$ is counterfactually invariant if and only if $f ( X )$ is $X _ { Z } ^ { \perp }$ -measurable. If $Z$ is discrete1 then such a $X _ { Z } ^ { \perp }$ exists.
76
+
77
+ Accordingly, we’d like to construct a predictor that is a function of $X _ { Z } ^ { \perp }$ only (i.e., is $X _ { Z } ^ { \perp }$ measurable). The key insight is that we can use the causal graphs to read off a set of conditional independence relationships that are satisfied by $Z , X _ { Z } ^ { \perp } , Y$ . Critically, these conditional independence relationships are testable from the observed data. Thus, they provide a signature of counterfactual invariance:
78
+
79
+ Theorem 3.2. If $f$ is a counterfactually invariant predictor:
80
+
81
+ 1. Under the anti-causal graph, $f ( X ) \perp Z \mid Y$ .
82
+ 2. Under the causal-direction graph, if $Y$ and $Z$ are not subject to selection (but possibly confounded), $f ( X ) \perp \perp Z$ .
83
+ 3. Under the causal-direction graph, if the association is purely spurious, $Y \perp X \mid X _ { Z } ^ { \perp } , Z$ , and $Y$ and $Z$ are not confounded (but possibly selected), $f ( X ) \perp Z \mid Y$ .
84
+
85
+ Remark 3.3 (Connection to Fairness). This result has an interesting interpretation when $Z$ is a protected attribute (e.g., sex or race) that we’d like to be fair with respect to. There are many ways of formalizing fairness, which are usually mutually incompatible. In the fairness setting, counterfactual invariance is equivalent to counterfactual fairness [Kus+17; Gar+19], the condition $f ( X ) \ \perp \ Z$ is equivalent to demographic parity, and the condition $f ( X ) \perp Z \mid Y$ is equivalent to equalized odds [Meh+19]. Theorem 3.2 then says that counterfactual fairness implies either demographic parity or equalized odds, depending on the true underlying causal structure of the problem. Hence, the relationship between disparate fairness notions is clarified by taking the underlying causal structure into account. This also suggests we can take counterfactual fairness as the fundamental notion, then use demographic parity in the causal-confounding case and equalized odds otherwise. However, we leave the (ethical) question of whether this is a sound strategy to future work.
86
+
87
+ Causal Regularization Without access to counterfactual examples, we cannot directly enforce counterfactual invariance. However, we can require a trained model to satisfy the counterfactual invariance signature of Theorem 3.2. The hope is that enforcing the signature will lead the model to be counterfactually invariant. To do this, we regularize the model to satisfy the appropriate conditional independence condition. For simplicity of exposition, we restrict to binary $Y$ and $Z$ . The (infinite data) regularization terms are
88
+
89
+ $$
90
+ \begin{array} { r l } & { = \mathrm { M M D } ( \mathrm { P } ( f ( X ) \mid Z = 0 ) , \mathrm { P } ( f ( X ) \mid Z = 1 ) ) } \\ & { = \mathrm { M M D } ( \mathrm { P } ( f ( X ) \mid Z = 0 , Y = 0 ) , \mathrm { P } ( f ( X ) \mid Z = 1 , Y = 0 ) ) } \\ & { \quad + \mathrm { M M D } ( \mathrm { P } ( f ( X ) \mid Z = 0 , Y = 1 ) , \mathrm { P } ( f ( X ) \mid Z = 1 , Y = 1 ) ) . } \end{array}
91
+ $$
92
+
93
+ Maximum mean discrepancy (MMD) is a metric on probability measures.2 The marginal independence condition is equivalent to (3.1) equal 0, and the conditional independence is equivalent to (3.2)
94
+
95
+ equal 0. In practice, we can estimate the MMD with finite data samples $[ \mathrm { G r e } { + } 1 2 ]$ . When training with stochastic gradient descent, we compute the penalty on each minibatch.
96
+
97
+ The procedure is then: if the data has causal-direction structure and the $Y Z$ association is due to confounding, add the marginal regularization term to the the training objective. If the data has anti-causal structure, or the association is due to selection, add the conditional regularization term instead. In this way, we regularize towards models that satisfy the counterfactual invariance signature.
98
+
99
+ A key point is that the regularizer we must use depends on the true causal structure. The conditional and marginal independence conditions are generally incompatible. Enforcing the condition that is mismatched to the true underlying causal structure may fail to encourage counterfactual invariance, or may throw away more information than is required.
100
+
101
+ Gap to Counterfactual Invariance The conditional independence signature of Theorem 3.2 is necessary but not sufficient for counterfactual invariance. This is for two reasons. First, counterfactual invariance applies to individual datapoint realizations, but the signature is distributional. In particular, the invariance $\mathrm { P } ( f ( X ) \mid \mathrm { d o } ( Z = z ) ) = \mathrm { P } ( f ( X ) \mid \mathrm { d o } ( Z = \bar { z } ^ { \prime } ) )$ for all $z , z ^ { \prime }$ would also imply the conditional independence signature. But, this invariance is weaker than counterfactual invariance, since it doesn’t require access to counterfactual realizations. Second, $f ( X ) \ \perp \perp Z$ does not imply, in general, that $Z$ is not a cause of $f ( X )$ . This (unusual) behavior can happen if, e.g., there are levels of $Z$ that we do not observe in the training data, or there are variables omitted from the causal graph that are a common cause of $Z$ and $X$ .
102
+
103
+ Unfortunately, the gap between the signature and counterfactual invariance is a fundamental restriction of using observational data. The conditional independence signature is in some sense the closest proxy for counterfactual invariance we can hope for. In section 5, we’ll see that enforcing the signature does a good job of enforcing counterfactual invariance in practice.
104
+
105
+ # 4 Performance Out of Domain
106
+
107
+ Counterfactual invariance is an intuitively desirable property for a predictor to have. However, it’s not immediately clear how it relates to model performance as measured by, e.g., accuracy. Intuitively, eliminating predictor dependence on a spurious $Z$ may help with domain shift, where the data distribution in the target domain differs from the distribution of the training data. We now turn to formalizing this idea.
108
+
109
+ First, we must articulate the set of domain shifts to be considered. In our setting, the natural thing is to hold the causal relationships fixed across domains, but to allow the non-causal (“spurious”) dependence between $Y$ and $Z$ to vary. Demanding that the causal relationships stay fixed reflects the requirement that the causal structure describes the dynamics of an underlying real-world process— e.g., the author’s sentiment is always a cause (not an effect) of the text in all domains. On the other hand, the dependency between $Y$ and $Z$ induced by either confounding or selection can vary without changing the underlying causal structure. For confounding, the distribution of the confounder may differ between domains—e.g., books are rare in training, but common in deployment. For selection, the selection criterion may differ between domains—e.g., we include only frequently reviewed movies in training, but make predictions for all movies in deployment.
110
+
111
+ We want to capture spurious domain shifts by considering domain shifts induced by selection or confounding. However, there is an additional nuance. Changes to the marginal distribution of $Y$ will affect the risk of a predictor, even in the absence of any spurious association between $Y$ and $Z$ . Therefore, we restrict to shifts that preserve the marginal distribution of $Y$ .
112
+
113
+ Definition 4.1. We say that distributions $P , Q$ are causally compatible if both obey the same causal graph, $P ( Y ) = Q ( Y )$ , and there is a confounder $U$ and/or selection conditions $S , { \tilde { S } }$ such that $\begin{array} { r } { P { = } \int \operatorname { P } ( X , Y , Z \mid U , S { = } 1 ) \mathrm { d } \tilde { P } ( U ) } \end{array}$ and $\begin{array} { r } { Q { = } \int \operatorname { P } ( X , Y , Z \mid U , \tilde { S } { = } 1 ) \mathrm { d } \tilde { Q } ( U ) } \end{array}$ for some $\tilde { P } ( U ) , \tilde { Q } ( U )$ .
114
+
115
+ We can now connect counterfactual invariance and robustness to domain shift.
116
+
117
+ Theorem 4.2. Let ${ \mathcal { F } } ^ { \mathrm { i n v a r } }$ be the set of all counterfactually invariant predictors. Let $L$ be either square error or cross entropy loss. And, let $f ^ { * } : = \operatorname { a r g m i n } _ { \underline { { f } } \in \mathcal { F } ^ { \mathrm { i n v a } } }$ r $\mathbb { E } _ { P } [ L ( Y , f ( X ) ) ]$ be the counterfactually invariant risk minimizer. Suppose that the target distribution $Q$ is causally compatible with the training distribution $P$ . Suppose that any of the following conditions hold:
118
+
119
+ 1. the data obeys the anti-causal graph
120
+ 2. the data obeys the causal-direction graph, there is no confounding (but possibly selection), and the association is purely spurious, $Y \perp X \mid X _ { Z } ^ { \perp } , Z$ , or
121
+ 3. the data obeys the causal-direction graph, there is no selection (but possibly confounding), the association is purely spurious and the causal effect of $X _ { Z } ^ { \perp }$ on $Y$ is additive, i.e., the true data generating process is
122
+
123
+ $$
124
+ Y g ( X _ { Z } ^ { \perp } ) + \tilde { g } ( U ) + \xi w h e r e \operatorname { \mathbb { E } } [ \xi \mid X _ { Z } ^ { \perp } ] = 0 ,
125
+ $$
126
+
127
+ for some functions $g , \tilde { g }$
128
+
129
+ Then, the training domain counterfactually invariant risk minimizer is also the target domain counterfactually invariant risk minimizer, $f ^ { * } = \mathrm { a r g m i n } _ { f \in \mathcal { F } ^ { \mathrm { i n } } }$ var $\mathbb { E } _ { Q } [ L ( Y , f ( X ) ) ]$ .
130
+
131
+ Remark 4.3. The causal case with confounding requires an additional assumption (additive structure) because, e.g., an interaction between confounder and $X _ { Z } ^ { \perp }$ can yield a case where $X _ { Z } ^ { \perp }$ and $Y$ have a different relationship in each domain (whence, out-of-domain learning is impossible).
132
+
133
+ This result gives a recipe for finding a good predictor in the target domain even without access to any target domain examples at training time. Namely, find the counterfactually invariant risk minimizer in the training domain. In practice, we can use the regularization scheme of section 3 to (approximately) achieve this. We’ll see in section 5 that this works well in practice.
134
+
135
+ Optimality Theorem 4.2 begs the question: if the only thing we know about the target setting is that it’s causally compatible with the training data, is the best predictor the counterfactually invariant predictor with lowest training risk? A natural way to formalize this question is to study the predictor with the best performance in the worst case target distribution. We define $ \bar { \mathcal { Q } } ~ = ~ \{ \bar { Q } ~ : ~ Q$ causally compatible with $P \}$ and the $\mathcal { Q }$ -minimax predictor $f _ { \mathrm { m i n i m a x } } ^ { * } ~ =$ $\operatorname { \arg m i n } _ { f \in { \mathcal { F } } } \operatorname* { m a x } _ { Q \in { \mathcal { Q } } } \mathbb { E } _ { Q } [ L ( Y , f ( X ) ]$ . The question is then: what’s the relationship between the counterfactually invariant risk minimizer and the minimax predictor?
136
+
137
+ Theorem 4.4. The counterfactually invariant risk minimizer is not $\mathcal { Q }$ -minimax in general. However, under the conditions of Theorem 4.2, if the association is purely spurious, $X _ { Y \wedge Z } \ { \bar { \perp } } \ Y \mid X _ { Z } ^ { \perp } , Z$ , and $\mathrm { P } ( Z , Y )$ satisfies overlap, then the two predictors are the same. By overlap we mean that $\mathrm { P } ( Z , Y )$ is a discrete distribution such that for all $( z , y )$ , $i f \mathrm { P } ( z , y ) > 0$ then there is some $y ^ { \prime } \ne y$ such that also $\mathrm { P } ( z , y ^ { \prime } ) > 0$ .
138
+
139
+ Conceptually, Theorem 4.4 just says that the counterfactually invariant predictor excludes $X _ { Y \wedge Z }$ , even when this information is useful in every domain. In the purely spurious case, $X _ { Y \wedge Z }$ carries no useful information, so counterfactual invariance is optimal.
140
+
141
+ # 5 Experiments
142
+
143
+ The main claims of the paper are:
144
+
145
+ 1. Stress test violations can be reduced by suitable conditional independence regularization.
146
+ 2. This reduction will improve out-of-domain prediction performance.
147
+ 3. To get the full effect, the imposed penalty must match the causal structure of the data.
148
+
149
+ Setup To assess these claims, we’ll examine the behavior of predictors trained with the marginal or conditinal regularization on multiple text datasets that have either causal or anti-causal structure. We expect to see that marginal regularization improves stress test and out-of-domain performance on data with causal-confounded structure, and conditional regularization improves these on data with anti-causal structure.
150
+
151
+ For each experiment, we use BERT [Dev+19] finetuned to predict a label $Y$ from the text as our base model. We train multiple causally-regularized models on the each dataset. The training varies by whether we use the conditional or marginal penalty, and by the strength of the regularization term. That is, we train identical architectures using CrossEntropy $+ \lambda \cdot$ Regularizer as the objective function, where we vary $\lambda$ and take Regularizer as either the marginal penalty, (3.1), or conditional penalty, (3.2). We compare these models’ predictions on data with causal and anti-causal structure.
152
+
153
+ See supplement for experimental details.
154
+
155
+ ![](images/53efb42512085a29a0de7812344b3d241b39e4349e1f4adf7ba004e54ec1e32c.jpg)
156
+ Figure 2: Regularizing conditional MMD improves counterfactual invariance on synthetic anti-causal data. Sufficiently high regularization of marginal MMD also improves invariance, but impairs accuracy. Dashed lines show baseline performance of an unregularized predictor. Left: lower conditional MMD implies that predictive probabilities are invariant to perturbation. Although marginal MMD penalization can result in low conditional MMD and good stress test performance, this comes at the cost of very low in-domain accuracy. Right: MMD regularization reduces the rate of predicted label flips on perturbed data, with little affect on indomain accuracy. Conditional MMD regularization reduces predicted label flips to $1 . 4 \%$ , while the best result for marginal MMD is $2 . 8 \%$ .
157
+
158
+ # 5.1 Robustness to Stress Tests
159
+
160
+ First, we examine whether enforcing the causal regularization actually helps to enforce counterfactual invariance. We create counterfactual (stress test) examples by perturbing the input data and compare the prediction on these. We build the experimental datasets using Amazon reviews from the product category “Clothing, Shoes, and Jewelry” [NLM19].
161
+
162
+ Synthetic To study the relationship between counterfactual invariance and the distributional signature of Theorem 3.2, we construct a synthetic confound. For each review, we draw a Bernoulli random $Z$ , and then perturb the text $X$ so that the common words “the” and “a” carry information about $Z$ : for example, we replace “the” with the token “thexxxxx” when $Z = 1$ . We take $Y$ to be the review score, and subsample so $Y$ is balanced. This data has anti-causal structure: the text $X$ is written to explain the score $Y$ . Further, we expect that the $Y , Z$ association is purely spurious, because “the” and “a” carry little information about the label.
163
+
164
+ We train the models on data where $\operatorname { P } ( Y = Z ) = 0 . 3$ . We then create perturbed stress-test datasets by changing each example $X _ { i } ( z )$ to the counterfactual $X _ { i } ( 1 - z )$ (using the synthetic model). By measuring the performance of each model on the perturbed data, we can test whether the distributional properties enforced by the regularizers result in counterfactual invariance at the instance level. Figure 2 shows that conditional regularization (matching the anti-causal structure) reduces checklist failures, as measured by the frequency that the predicted label changes due to perturbation as well as the mean absolute difference in predictive probabilities that is induced by perturbation.
165
+
166
+ Natural To study the relationship in real data, we use the review data in a different way. We now take $Z$ to be the score, binarized as $Z \in { }$ $\{ 1$ or 2 stars, 4 or 5 stars}. We use this $Z$ as a proxy for sentiment, and consider problems where sentiment should (plausibly) not have a causal effect on $Y$ . For the causal prediction problem, we take $Y$ to be the helpfulness score of the review (binarized as described below). This is causal because readers decide whether the review is helpful based on the text. For the anti-causal prediction problem, we take $Y$ to be whether “Clothing” is included as a category tag for the product under review (e.g., boots typically do not have this tag). This is anti-causal because the product category affects the text.
167
+
168
+ ![](images/25d13abb0d1a94526c03a9edcbbe9537be776b40dc5768ab7b2869bd796e53c3.jpg)
169
+ Figure 3: Penalizing the MMD matching the causal structure improves stress test performance on natural product review data. Note that penalizing the wrong MMD may not help: the marginal MMD hurts on the anticausal dataset. Perturbations are generated by swapping positive and negative sentiment adjectives in examples.
170
+
171
+ We control the strength of the spurious association between $Y$ and $Z$ . In the anti-causal case, this is done by selection: we randomly subset the data to enforce a target level of dependence between $Y$ and $Z$ . The causal-direction case with confounding is more complicated. To manipulate confounding strength, we binarize the number of helpfulness votes $V$ in a manner determined by the target level of association. We take $Y = 1 [ V > T _ { Z } ]$ where $T _ { Z }$ is a $Z$ -dependent threshold, chosen to induce a target association. We choose $\operatorname { P } ( Y = { \bar { 0 } } \mid Z = 0 ) = \operatorname { P } ( Y = { \bar { 1 } } \mid Z = 1 ) = 0 . 3$ . We balance $Z$ by subsampling, which also balances $Y$ .
172
+
173
+ Now, we create stress test perturbations of these datasets by randomly changing adjectives in the examples. Using predefined lists of postive sentiment adjectives and negative sentiment adjectives, we swap any adjective that shows up on a list with a randomly sampled adjective from the other list. This preserves basic sentence structure, and thus creates a limited set of counterfactual pairs that differ on sentiment.
174
+
175
+ Results for differences in predicted probabilities between original and perturbed data are shown in Figure 3. Each point is a trained model, which vary in measured MMD on the test data and on sensitivity to perturbations. Recall that the conditional independence signature of Theorem 3.2 are necessary but not sufficient for counterfactual invariance, so it’s not certain that regularizing to reduce the MMD will reduce perturbation sensitivity. Happily, we see that regularizing to reduce the MMD that matches the causal structure does indeed reduce sensitivity to perturbations.
176
+
177
+ Notice that regularizing the causally mismatched MMD can have strange effects. Regularizing marginal MMD in the anti-causal case actually makes the model more sensitive to perturbations!
178
+
179
+ # 5.2 Domain Shift
180
+
181
+ Next, we study the effect of causal regularization on model performance under domain shift.
182
+
183
+ Natural Product Review We again use the natural Amazon review data described above. For both the causal and anticausal data, we create multiple test sets with variable spurious correlation strength. This is done in the manner described above, varying $\operatorname { P } ( Y = 0 \mid Z =$ $0 ) = \operatorname { P } ( Y = 1 \mid Z = 1 ) =$ $\gamma$ . Here, $\gamma$ is the strength of spurious association. The test sets are out-of-domain samples. By design, $Y$ is balanced in each dataset, so these samples are causally compatible with the training data. For both the causal and anti-causal datasets, the training data has $\begin{array} { r l } { \mathrm { P } ( Y } & { { } = } \end{array}$ $0 \mid Z = 0 \bar { ) } = \mathrm { P } ( Y = 1 \mid Z =$ $1 ) ~ = ~ 0 . 3$ . We train a classifier for each regularization type and regularization strength, and measure the accuracy on each test domain. The results are shown in Figure 4.
184
+
185
+ ![](images/cc50159fcb6943974ab865fe3f6e0e57889243fedb2eb828a12ef8b80e7b30b1.jpg)
186
+ Anti-Causal Data: conditional regularization improves domain-shift robustness.
187
+
188
+ ![](images/1aad0d1d99d5ec2ccf3cc08ff60ebd5e9382fde6d09560b6780ee4953b6c184c.jpg)
189
+ Causal-Direction Data: marginal regularization improves domain-shift robustness.
190
+ Figure 4: The best domain-shift robustness is obtained by using the regularizer that matches the underlying causal structure of the data. The plots show out-of-domain accuracy for models trained on the (natural) review data. In each row, the left figure shows out-of-domain accuracies (lines are models), with the $X$ -axis showing the level of spurious correlation in the test data (0.3 is the training condition); the right figure shows worst out-of-domain accuracy versus in-domain test accuracy (dots are models).
191
+
192
+ First, the unregularized predictors do indeed learn to rely on the spurious association between sentiment and the label. The accuracy of these predictors decays dramatically as the spurious assocation moves from negative (0.3) to positive—in the causal case, the unregularized predictor is worse than chance in the 0.8 domain.
193
+
194
+ Following section 3, the regularization that matches the underlying causal structure should yield a predictor that is (approximately) counterfactually invariant. Following Theorem 4.2, we expect that good performance of a counterfactually-invariant predictor in the training domain should imply good performance in each of the other domains. Indeed, we see that this is so. Models that are regularized to have small values of the appropriate MMD do indeed have better out-of-domain performance.
195
+
196
+ ![](images/a10a5b2248012b6f81c4cccbf8cd45aa1b0e5f41578a88117ad325f1b0dfe2e9.jpg)
197
+ Figure 5: Conditional MMD penalization improves robustness in anti-causal MNLI data. Marginal regularization does not improve over the baseline unregularized model, shown with dashed lines. Left: Conditional regularization improves minimum accuracy across $( Y , Z )$ groups. When overregularized, the predictor returns the same $\hat { Y }$ for all inputs, yielding a worst-group accuracy of 0. Right: Conditional MMD regularization significantly improves worst $( Y , Z )$ group accuracy $y$ -axis) while only mildly reducing overall accuracy ( $x$ -axis).
198
+
199
+ Such models have somewhat worse in-domain performance, because they no longer exploit the spurious correlation.
200
+
201
+ MNLI Data For an additional test on naturally-occurring confounds, we use the multigenre natural language inference (MNLI) dataset [WNB18]. Instances are concatenations of two sentences, and the label describes the semantic relationship between them, $Y \in \mathbf { \Sigma }$ {contradiction, entailment, neutral}. There is a well-known confound in this dataset: examples where the second sentence contain a negation word (e.g., “not”) are much more likely to be labeled as contradictions $[ \mathrm { G u r } { + } 1 8 ]$ . Following Sagawa et al. $[ \mathrm { S a g } + 2 0 ]$ , we set $Z$ to indicate whether one of a small set of negation words is present. Although $Z$ is derived from the text $X$ , it can be viewed as a proxy for a latent variable indicating whether the author intended to use negation in the text. This is an anti-causal prediction problem: the annotators were instructed to write text to reflect the desired label [WNB18].
202
+
203
+ Following Sagawa et al. $[ \mathrm { S a g } + 2 0 ]$ , we divide the MNLI data into groups by $( Y , Z )$ and compute the “worst group accuracy” across all such groups. Because this is an anti-causal problem, we predict that the conditional MMD is a more appropriate penalty than the marginal MMD. As shown in Figure 5, this prediction holds: conditional MMD regularization dramatically improves performance on the worst group, while only lightly impacting the overall accuracy across groups.
204
+
205
+ # 6 Related work
206
+
207
+ Several papers draw a connection between causality and domain shifts [SS18; SCS19; $\mathrm { \bf A r j + } 2 0$ ; Mei18; PBM16; $\mathrm { R C } { + 1 8 }$ ; Zha+13; $\operatorname { S c h } { + 1 2 } ]$ . Typically, this work considers a prediction setting where the covariates $X$ include both causes and effects of $Y$ , and it is unknown which is which. The goal is to learn to predict $Y$ using only its causal parents. Zhang et al. $\left[ Z \mathrm { h a } + 1 3 \right]$ considers anti-causal domain shift induced by changing $P ( Y )$ and proposes a data reweighting scheme. By contrast, counterfactual invariance is an example-wise notion of invariance, not an invariance across environments. In particular, learning a counterfactually invariant predictor only requires access to data from a single environment. Theorem 4.2 establishes that counterfactual invariance does imply a certain domain generalization guarantee over causally-compatible domains. Note though that the notion of causal compatibility is not generally the same as class of domain shifts previously considered. For example, we have invariant performance in the anti-causal setting, but this is ruled out by Arjovsky et al. $[ \mathrm { A r j } { + } 2 0 ]$ .
208
+
209
+ A related body of work focuses on “causal representation learning” [Bes+19; $\mathrm { L o c } { + 2 0 }$ ; $\operatorname { S c h } { + 2 1 }$ ; $\mathrm { A r j } { + } 2 0 ]$ . Our approach follows this tradition, but focuses on splitting $X$ into components defined by their causal relationships with the label $Y$ and an additional covariate $Z$ . Rather than attempting to infer the causal relationship between $X$ and $Y$ , we show that domain knowledge of this relationship is essential for obtaining counterfactually-invariant predictors. The role of causal vs anti-causal data generation in semi-supervised learning and transfer learning has also been studied $[ \mathrm { S c h } \cdot 2 1 $ ; $\operatorname { S c h + } 1 2 ]$ . In this paper we focus on a different implication of the causal vs anti-causal distinction.
210
+
211
+ Another line of work considers the case where either the counterfactuals $X ( z )$ , $X ( z ^ { \prime } )$ are observed for at least some data points, or where it’s assumed that there’s enough structural knowledge to (learn to) generate counterfactual examples [RPH21; $\mathrm { W u } { + } 2 1$ ; Gar+19; $\mathrm { M i t } { + } 2 0$ ; WZ19; KCC20; KHL20; TAH20]. Kusner et al. [Kus+17] and Garg et al. [Gar $^ +$ 19] in particular examine a notion of counterfactual fairness that can be seen as equivalent to counterfactual invariance. In these papers, approximate counterfactuals are produced by direct manipulation of the features (e.g., change male to female names), generative models (e.g., style transfer of images), or crowdsourcing. Then, these counterfactuals can either be used as additional training data or the predictor can be regularized such that it cannot distinguish between $X _ { i } ( z )$ and $X _ { i } ( z ^ { \prime } )$ . This strategy can be viewed as enforcing counterfactual invariance directly; an advantage is that it avoids the necessary-but-not-sufficient nuance of Theorem 3.2. However, counterfactual examples can be difficult to obtain for language data in many realistic problem domains, and it may be difficult to learn to generalize from such examples [HLB20].
212
+
213
+ The marginal and conditional independencies of Theorem 3.2 have appeared in other contexts. As discussed in remark 3.3, if we think of $Z$ as a protected attribute and $f$ as a ‘fair’ classifier, then counterfactual invariance is counterfactual fairness, the marginal independence is demographic parity, and the conditional independence is equalized odds [Meh $^ +$ 19]. In another setting, one approach to domain adaptation is to seek representations $\phi$ such that either $\phi ( X )$ [e.g., MBS13; Bak $+ 1 3$ ; Gan $+ 1 6$ ; Tze+14] or $\phi ( X ) \mid Y$ [e.g., MLM19; $\mathrm { Y a n } { + } 1 7 ]$ have the same distribution in each environment. The connection here is subtler; it is inappropriate to interpret $Z$ as a domain label (we only have access to one domain at train time, and all values of $Z$ are present in each domain). To clarify the connection, consider introducing an extra variable $E$ that labels the domain. For concreteness, consider the anti-causal case where the spurious association between $Y$ and $Z$ is due to an observed confounder $U$ . Now, suppose that $E$ is a cause of $U$ . Then, $E$ labels the distribution of the unobserved confounder, and thus different values of $E$ correspond to different causally compatible domains. Now, if we draw the causal graph we can read off that $X _ { z } ^ { \perp } E | Y$ . That is, we arrive at the same conditional independence criterion. However, it’s essentially a coincidence that this matches the criterion we’d use if we’d observed $Z$ —the two variables have totally different causal meanings and interpretations. For example, in the review data case, we might take $Z$ to be review score and $E$ to be the website the review is collected from. The review quality doesn’t need to be counterfactually invariant to the website, and indeed we wouldn’t expect it to be!
214
+
215
+ Finally, this work can be viewed as part of a recent line of work using counterfactuals to examine the connection between example-wise robustness (stress testing) and distributional-level robustness (domain shift) [e.g., TAH20; RPH21; Kau+21]. Teney et al. [TAH20] use near counterfactuals with different labels in a modified training objective, and show improved performance out-of-domain empirically. Robey et al. [RPH21] use image models to generate counterfactuals, and incorporate the model into training, showing out-of-domain improvement. They assume a somewhat different causal structure—articulating the precise connection is an interesting future direction. Kaushik et al. [Kau+21] study a linear-Gaussian model and argue that out-of-domain performance can be used as a signal to distinguish ‘causal’ and ‘spurious’ features.
216
+
217
+ # 7 Discussion
218
+
219
+ We used the tools of causal inference to formalize and study perturbative stress tests. A main insight of the paper is that counterfactual desiderata can be linked to observationally-testable conditional independence criteria. This requires consideration of the true underlying causal structure of the data. Done correctly, the link yields a simple procedure for enforcing the counterfactual desiderata, and mitigating the effects of domain shift.
220
+
221
+ The main limitation of the paper is the restrictive causal structures we consider. In particular, we require that $X _ { Z } ^ { \perp }$ , the part of $X$ not causally affected by $Z$ , is also statistically independent of $Z$ in the observed data. However, in practice these may be dependent due to a common cause. In this case, the procedure here will be overly conservative, throwing away more information than required. Additionally, it is not obvious how to apply the ideas described here to more complicated causal situations, which can occur in structured prediction (e.g., question answering). Extending the ideas to handle richer causal structures is an important direction for future work. The work described here can provide a template for this research program.
222
+
223
+ # 8 Acknowledgements
224
+
225
+ Thanks to Kevin Murphy, Been Kim, Molly Roberts, Justin Grimmer, and Brandon Stewart for feedback on an earlier version.
226
+
227
+ # 9 Funding Transparency
228
+
229
+ This paper was not supported by any third party funding, and the authors have no competing interests to declare.
230
+
231
+ # References
232
+
233
+ $[ \mathrm { A r j } { + } 2 0 ]$ M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz. Invariant Risk Minimization. 2020. arXiv: 1907.02893 [stat.ML].
234
+ $[ \mathrm { B a k } + 1 3 ]$ M. Baktashmotlagh, M. T. Harandi, B. C. Lovell, and M. Salzmann. “Unsupervised domain adaptation by domain invariant projection”. In: Proceedings of the 2013 IEEE International Conference on Computer Vision. 2013.
235
+ [Bes+19] M. Besserve, A. Mehrjou, R. Sun, and B. Scholkopf. ¨ Counterfactuals uncover the modular structure of deep generative models. 2019. arXiv: 1812.03253 [cs.LG].
236
+ [Dev+19] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. “Bert: pre-training of deep bidirectional transformers for language understanding”. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 2019.
237
+ [Gan+16] Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky. “Domain-adversarial training of neural networks”. In: J. Mach. Learn. Res. 1 (2016).
238
+ [Gar+19] S. Garg, V. Perot, N. Limtiaco, A. Taly, E. H. Chi, and A. Beutel. “Counterfactual fairness in text classification through robustness”. In: Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society. 2019.
239
+ [Gre+12] A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Scholkopf, and A. Smola. “A kernel ¨ two-sample test”. In: The Journal of Machine Learning Research 1 (2012).
240
+ [Gur+18] S. Gururangan, S. Swayamdipta, O. Levy, R. Schwartz, S. Bowman, and N. A. Smith. “Annotation artifacts in natural language inference data”. In: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers). 2018.
241
+ [HLB20] W. Huang, H. Liu, and S. R. Bowman. Counterfactually-Augmented SNLI Training Data Does Not Yield Better Generalization Than Unaugmented Data. 2020. arXiv: 2010.04762 [cs.CL].
242
+ [KHL20] D. Kaushik, E. Hovy, and Z. C. Lipton. Learning the Difference that Makes a Difference with Counterfactually-Augmented Data. 2020. arXiv: 1909.12434 [cs.CL].
243
+ [Kau+21] D. Kaushik, A. Setlur, E. Hovy, and Z. C. Lipton. Explaining The Efficacy of Counterfactually Augmented Data. 2021. arXiv: 2010.02114 [cs.CL].
244
+ [KCC20] V. Kumar, A. Choudhary, and E. Cho. “Data augmentation using pre-trained transformer models”. In: Proceedings of the 2nd Workshop on Life-long Learning for Spoken Language Systems. 2020.
245
+ [Kus+17] M. J. Kusner, J. Loftus, C. Russell, and R. Silva. “Counterfactual fairness”. In: Advances in Neural Information Processing Systems. 2017.
246
+ [Loc+20] F. Locatello, B. Poole, G. Raetsch, B. Scholkopf, O. Bachem, and M. Tschannen. ¨ “Weakly-supervised disentanglement without compromises”. In: Proceedings of the 37th International Conference on Machine Learning. 2020.
247
+ [MLM19] J. Manders, T. van Laarhoven, and E. Marchiori. Adversarial Alignment of Class Prediction Uncertainties for Domain Adaptation. 2019. arXiv: 1804.04448 [stat.ML].
248
+ [Meh+19] N. Mehrabi, F. Morstatter, N. Saxena, K. Lerman, and A. Galstyan. A Survey on Bias and Fairness in Machine Learning. 2019. arXiv: 1908.09635 [cs.LG].
249
+ [Mei18] N. Meinshausen. “Causality from a distributional robustness point of view”. In: 2018 IEEE Data Science Workshop (DSW). 2018.
250
+ $[ \mathrm { M i t } + 2 0 ]$ J. Mitrovic, B. McWilliams, J. Walker, L. Buesing, and C. Blundell. Representation Learning via Invariant Causal Mechanisms. 2020. arXiv: 2010.07922 [cs.LG].
251
+ [MBS13] K. Muandet, D. Balduzzi, and B. Scholkopf. “Domain generalization via invariant fea- ¨ ture representation”. In: Proceedings of the 30th International Conference on Machine Learning. 2013.
252
+ [Nai+18] A. Naik, A. Ravichander, N. Sadeh, C. Rose, and G. Neubig. “Stress test evaluation for natural language inference”. In: Proceedings of the 27th International Conference on Computational Linguistics. 2018.
253
+ [NLM19] J. Ni, J. Li, and J. McAuley. “Justifying recommendations using distantly-labeled reviews and fined-grained aspects”. In: Empirical Methods in Natural Language Processing (EMNLP) (2019).
254
+ [PBM16] J. Peters, P. Buhlmann, and N. Meinshausen. “Causal inference by using invariant pre- ¨ diction: identification and confidence intervals”. In: Journal of the Royal Statistical Society. Series B (Statistical Methodology) 5 (2016).
255
+ $[ \mathrm { R i b } { + } 2 0 ]$ 1 M. T. Ribeiro, T. Wu, C. Guestrin, and S. Singh. “Beyond accuracy: behavioral testing of nlp models with checklist”. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. 2020.
256
+ [RPH21] A. Robey, G. J. Pappas, and H. Hassani. Model-Based Domain Generalization. 2021. arXiv: 2102.11436 [stat.ML].
257
+ $[ \mathrm { R C } \substack { + 1 8 } ]$ 1 M. Rojas-Carulla, B. Scholkopf, R. Turner, and J. Peters. “Invariant models for causal ¨ transfer learning”. In: Journal of Machine Learning Research 36 (2018).
258
+ $[ \mathrm { S a g } + 2 0 ]$ S. Sagawa, P. W. Koh, T. B. Hashimoto, and P. Liang. “Distributionally robust neural networks for group shifts: on the importance of regularization for worst-case generalization”. In: International Conference on Learning Representations. 2020.
259
+ $[ \mathrm { S c h } \cdot 1 2 ]$ B. Scholkopf, D. Janzing, J. Peters, E. Sgouritsa, K. Zhang, and J. Mooij. “On causal ¨ and anticausal learning”. In: Proceedings of the 29th International Coference on International Conference on Machine Learning. 2012.
260
+ $[ \mathrm { S c h } + 2 1 ]$ B. Scholkopf, F. Locatello, S. Bauer, N. R. Ke, N. Kalchbrenner, A. Goyal, and Y. ¨ Bengio. “Toward causal representation learning”. In: Proceedings of the IEEE 5 (2021).
261
+ [SCS19] A. Subbaswamy, B. Chen, and S. Saria. A Universal Hierarchy of Shift-Stable Distributions and the Tradeoff Between Stability and Performance. 2019. arXiv: 1905.11374 [stat.ML].
262
+ [SS18] A. Subbaswamy and S. Saria. “Counterfactual normalization: proactively addressing dataset shift and improving reliability using causal mechanisms”. In: Proceedings of the 34th Conference on Uncertainty in Artificial Intelligence (UAI), 2018. 2018.
263
+ [TAH20] D. Teney, E. Abbasnejad, and A. van den Hengel. “Learning what makes a difference from counterfactual examples and gradient supervision”. In: CoRR (2020). arXiv: 2004.09034.
264
+ [Tze+14] E. Tzeng, J. Hoffman, N. Zhang, K. Saenko, and T. Darrell. Deep Domain Confusion: Maximizing for Domain Invariance. 2014. arXiv: 1412.3474 [cs.CV].
265
+ [WZ19] J. Wei and K. Zou. “EDA: easy data augmentation techniques for boosting performance on text classification tasks”. In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019.
266
+ [WNB18] A. Williams, N. Nangia, and S. Bowman. “A broad-coverage challenge corpus for sentence understanding through inference”. In: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). 2018.
267
+ $[ \mathrm { W u } + 1 9 ]$ 1 T. Wu, M. T. Ribeiro, J. Heer, and D. Weld. “Errudite: scalable, reproducible, and testable error analysis”. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 2019.
268
+ $[ \mathrm { W u } + 2 1 ]$ T. Wu, M. T. Ribeiro, J. Heer, and D. S. Weld. “Polyjuice: generating counterfactuals for explaining, evaluating, and improving models”. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics. 2021.
269
+ [Yan+17] H. Yan, Y. Ding, P. Li, Q. Wang, Y. Xu, and W. Zuo. Mind the Class Weight Bias: Weighted Maximum Mean Discrepancy for Unsupervised Domain Adaptation. 2017. arXiv: 1705.00609 [cs.CV].
270
+ [Zha+13] K. Zhang, B. Scholkopf, K. Muandet, and Z. Wang. “Domain adaptation under target ¨ and conditional shift”. In: Proceedings of the 30th International Conference on Machine Learning. 2013.
parse/train/BdKxQp0iBi8/BdKxQp0iBi8_content_list.json ADDED
@@ -0,0 +1,1313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Tests ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 183,
8
+ 122,
9
+ 815,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Victor Veitch1,2, Alexander D’Amour1, Steve Yadlowsky1, and Jacob Eisenstein1 ",
17
+ "bbox": [
18
+ 233,
19
+ 222,
20
+ 761,
21
+ 238
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Google Research \n2University of Chicago ",
28
+ "bbox": [
29
+ 423,
30
+ 250,
31
+ 575,
32
+ 279
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 319,
43
+ 535,
44
+ 335
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Informally, a ‘spurious correlation’ is the dependence of a model on some aspect of the input data that an analyst thinks shouldn’t matter. In machine learning, these have a know-it-when-you-see-it character; e.g., changing the gender of a sentence’s subject changes a sentiment predictor’s output. To check for spurious correlations, we can ‘stress test’ models by perturbing irrelevant parts of input data and seeing if model predictions change. In this paper, we study stress testing using the tools of causal inference. We introduce counterfactual invariance as a formalization of the requirement that changing irrelevant parts of the input shouldn’t change model predictions. We connect counterfactual invariance to outof-domain model performance, and provide practical schemes for learning (approximately) counterfactual invariant predictors (without access to counterfactual examples). It turns out that both the means and implications of counterfactual invariance depend fundamentally on the true underlying causal structure of the data—in particular, whether the label causes the features or the features cause the label. Distinct causal structures require distinct regularization schemes to induce counterfactual invariance. Similarly, counterfactual invariance implies different domain shift guarantees depending on the underlying causal structure. This theory is supported by empirical results on text classification. ",
51
+ "bbox": [
52
+ 233,
53
+ 351,
54
+ 764,
55
+ 598
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 622,
66
+ 310,
67
+ 640
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Our focus in this paper is the sort of spurious correlations revealed by “poke it and see what happens” testing procedures for machine-learning models. For example, we might test a sentiment analysis tool by changing one proper noun for another (“tasty Mexican food” to “tasty Indian food”), with the expectation that the predicted sentiment should not change. This kind of perturbative stress testing is increasingly popular: it is straightforward to understand and offers a natural way to test the behavior of models against the expectations of practitioners [Rib $+ 2 0$ ; $\\mathrm { W u } { + } 1 9$ ; Nai+18]. ",
74
+ "bbox": [
75
+ 174,
76
+ 654,
77
+ 825,
78
+ 737
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Intuitively, models that pass such stress tests are preferable to those that do not. However, fundamental questions about the use and meaning of perturbative stress tests remain open. For instance, what is the connection between passing stress tests and model performance on prediction? Eliminating predictor dependence on a spurious correlation should help with domain shifts that affect the spurious correlation—but how do we make this precise? And, how should we develop models that pass stress tests when our ability to generate perturbed examples is limited? For example, automatically perturbing the sentiment of a document in a general fashion is difficult. ",
85
+ "bbox": [
86
+ 174,
87
+ 743,
88
+ 823,
89
+ 840
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The ad hoc nature of stress testing makes it difficult to give general answers to such questions. In this paper, we will use the tools of causal inference to formalize what it means for models to pass stress tests, and use this formalization to answer the questions above. We will formalize passing stress tests as counterfactual invariance, a condition on how a predictor should behave when given certain (unobserved) counterfactual input data. We will then derive implications of counterfactual invariance that can be measured in the observed data. Regularizing predictors to satisfy these observable implications provides a means for achieving (partial) counterfactual invariance. Then, we will connect counterfactual invariance to robust prediction under certain domain shifts, with the aim of clarifying what counterfactual invariance buys and when it is desirable. ",
96
+ "bbox": [
97
+ 174,
98
+ 847,
99
+ 823,
100
+ 901
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 90,
110
+ 825,
111
+ 161
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "An important insight that emerges from the formalization is that the true underlying causal structure of the data has fundamental implications for both model training and guarantees. Methods for handing ‘spurious correlations’ in data with a given causal structure need not perform well when blindly translated to another causal structure. ",
118
+ "bbox": [
119
+ 174,
120
+ 166,
121
+ 825,
122
+ 222
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Counterfactual Invariance Consider the problem of learning a predictor $f$ that predicts a label $Y$ from covariates $X$ . In this paper, we’re interested in constructing predictors whose predictions are invariant to certain perturbations on $X$ . Our first task is to formalize the invariance requirement. ",
129
+ "bbox": [
130
+ 174,
131
+ 237,
132
+ 825,
133
+ 280
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "To that end, assume that there is an additional variable $Z$ that captures information that should not influence predictions. However, $Z$ may causally influence the covariates $X$ . Using the potential outcomes notation, let $X ( z )$ to denote the counterfactual $X$ we would have seen had $Z$ been set to $z$ , leaving all else fixed. Informally, we can understand perturbative stress tests as a way of producing particular realizations of counterfactual pairs $X ( z )$ , $X ( z ^ { \\prime } )$ that differ by an intervention on $z$ . Then, we formalize the requirement that an arbitrary change to $z$ does not change predictions: ",
140
+ "bbox": [
141
+ 174,
142
+ 285,
143
+ 825,
144
+ 369
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Definition 1.1. A predictor $f$ is counterfactually invariant to $Z$ if $f ( X ( z ) ) \\ : = \\ : f ( X ( z ^ { \\prime } ) )$ almost everywhere, for all $z , z ^ { \\prime }$ in the sample space of $Z$ . When $Z$ is clear from context, we’ll just say the predictor is counterfactually invariant. ",
151
+ "bbox": [
152
+ 174,
153
+ 372,
154
+ 825,
155
+ 415
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 Causal Structure ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 174,
165
+ 434,
166
+ 348,
167
+ 452
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Counterfactual invariance is a condition on how the predicted label behaves under interventions on parts of the input data. However, intuitions about stress testing are based on how the true label behaves under interventions on parts of the input data. We will see that the true causal structure fundamentally affects both the implications of counterfactual invariance, and the techniques we use to achieve it. To study this phenomenon, we’ll use two causal structures that are commonly encountered in applications; see Figure 1. ",
174
+ "bbox": [
175
+ 173,
176
+ 465,
177
+ 825,
178
+ 549
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "2.1 Prediction in the Causal Direction ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 176,
188
+ 565,
189
+ 450,
190
+ 580
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "We begin with the case where $X$ is a cause of $Y$ ",
197
+ "bbox": [
198
+ 174,
199
+ 590,
200
+ 493,
201
+ 606
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Example 2.1. We want to automatically classify the quality of product reviews. Each review has a number of “helpful” votes $Y$ (from site users). We predict $Y$ using the text of the product review $X$ . However, we find interventions on the sentiment $Z$ of the text change our prediction; changing “Great shoes!” to “Bad shoes!” changes the prediction. ",
208
+ "bbox": [
209
+ 174,
210
+ 609,
211
+ 825,
212
+ 665
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "In the examples in this paper, the covariate $X$ is text data. Usually, the causal relationship between the text and $Y$ and $Z$ will be complex— e.g., the relationships may depend on abstract, unlabeled, parts of the text such as topic, writing quality, or tone. In principle, we could enumerate all such latent variables, construct a causal graph capturing the relationships between these variables and $Y , Z$ , and use this causal structure to study counterfactual invariance. For instance, if we think that topic causally influences the helpfulness $Y$ , but is not influenced by sen",
219
+ "bbox": [
220
+ 173,
221
+ 678,
222
+ 419,
223
+ 900
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "image",
229
+ "img_path": "images/db6f289cfcf6978a6de564bcb64d3637aad50130eac9708db787c9ff88ca27f4.jpg",
230
+ "image_caption": [
231
+ "Figure 1: Causal models for the data generating process. We decompose the observed covariate $X$ into latent parts defined by their causal relationships with $Z$ and $Y$ . Solid arrows denote causal relationships, while dashed lines denote non-causal associations. The differences between these causal structures will turn out to be key for understanding counterfactual invariance. "
232
+ ],
233
+ "image_footnote": [],
234
+ "bbox": [
235
+ 447,
236
+ 674,
237
+ 776,
238
+ 803
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "timent $Z$ , then we could build a counterfactually invariant predictor by extracting the topic and predicting $Y$ using topic alone. However, exhaustively articulating all possible such variables is a herculean task. ",
245
+ "bbox": [
246
+ 174,
247
+ 897,
248
+ 823,
249
+ 911
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "",
256
+ "bbox": [
257
+ 174,
258
+ 92,
259
+ 823,
260
+ 119
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Instead, notice that the only thing that’s relevant about these latent variables is their causal relationship with $Y$ and $Z$ . Accordingly, we’ll decompose the observed variable $X$ into parts defined by their causal relationships with $Y$ and $Z$ . We remain agnostic to the semantic interpretation of these parts. Namely, we define $X _ { Z } ^ { \\perp }$ as the part of $X$ that is not causally influenced by $Z$ (but may influence $Y )$ , $X _ { Y } ^ { \\perp }$ as the part that does not causally influence $Y$ (but may be influenced by $Z$ ), and $X _ { Y \\wedge Z }$ is the remaining part that is both influenced by $Z$ and that influences $Y$ . The causal structure is shown in Figure 1a. ",
267
+ "bbox": [
268
+ 174,
269
+ 126,
270
+ 825,
271
+ 224
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "We see there are two paths that lead to $Y$ and $Z$ being associated. The first is when $Z$ affects $X _ { Y \\wedge Z }$ which, in turn, affects $Y$ . For example, a very enthusiastic reviewer might write a longer, more detailed review, which will in turn be more helpful. The second is when a common cause or selection effect in the data generating process induces an association between $Z$ and $Y$ , which we denote with a dashed arrow. For example, if books tend to get more positive reviews, and also people who buy books are more likely to flag reviews as helpful, then the product type would be a common cause of sentiment and helpfulness. ",
278
+ "bbox": [
279
+ 174,
280
+ 229,
281
+ 825,
282
+ 328
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "2.2 Prediction in the Anti-Causal Direction ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 176,
292
+ 344,
293
+ 486,
294
+ 359
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "We also consider the case where $Y$ causes $X$ ",
301
+ "bbox": [
302
+ 176,
303
+ 371,
304
+ 472,
305
+ 386
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Example 2.2. We want to predict the star rating $Y$ of movie reviews from the text $X$ . However, we find that predictions are influenced by the movie genre $Z$ ; e.g., changing “Adam Sandler” (a comedy actor) to “Hugh Grant” (a romance actor) changes the predictions. ",
312
+ "bbox": [
313
+ 174,
314
+ 390,
315
+ 823,
316
+ 433
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Figure 1b shows the causal structure. Here, the observed $X$ is influenced by both $Y$ and $Z$ . Again, we decompose $X$ into parts defined by their causal relationship with $Z$ and $Y$ . Here, $Z$ (and thus $X _ { Y } ^ { \\perp }$ ) can be associated with $Y$ through two paths. First, if $X _ { Y \\wedge Z }$ is non-trivial, then conditioning on it causes a dependence between $Z$ and $Y$ (because $X _ { Y \\wedge Z }$ is a collider). For example, if Adam Sandler tends to appear in good comedy movies but bad movies of other genres then seeing “Sandler” in the text induces a dependency between sentiment and genre. Second, $Z$ and $Y$ may be associated due to a common cause, or due to selection effects in the data collection protocol—this is represented by the dashed line between $Z$ and $Y$ . For example, fans of romantic comedies may tend to give higher reviews (to all films) than fans of horror movies. ",
323
+ "bbox": [
324
+ 174,
325
+ 444,
326
+ 825,
327
+ 569
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "2.3 Non-Causal Associations ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 174,
337
+ 587,
338
+ 385,
339
+ 602
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Frequently, a predictor trained to predict $Y$ from $X$ will rely on $X _ { Y } ^ { \\perp }$ , even though there is no causal connection between $Y$ and $X _ { Y } ^ { \\perp }$ , and therefore will fail counterfactual invariance. The reason is that $X _ { Y } ^ { \\perp }$ serves as a proxy for $Z$ , and $Z$ is predictive of $Y$ due to the non-causal (dashed line) association. ",
346
+ "bbox": [
347
+ 174,
348
+ 612,
349
+ 825,
350
+ 657
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "There are two mechanisms that can induce such associations. First, $Y$ and $Z$ may be confounded: they are both influenced by an unobserved common cause $U$ . For example, people who review books may be more upbeat than people who review clothing. This leads to positive sentiments and high helpfulness votes for books, creating an association between sentiment and helpfulness. Second, $Y$ and $Z$ may be subject to selection: there is some condition (event) $S$ that depends on $Y$ and $Z$ , such that a data point from the population is included in the sample only if $S = 1$ holds. For example, our training data might only include movies with at least 100 reviews. If only excellent horror movies have so many reviews (but most rom-coms get that many), then this selection would induce an association between genre and score. Formally, the dashed-line causal graphs mean our sample is distributed according to $\\begin{array} { r } { P ( X , Y , Z ) = \\int \\mathrm { P } ( \\dot { X } , Y , Z , u \\mid S = 1 ) \\mathrm { d } \\mathrm { P } ( u ) } \\end{array}$ where $Y , Z$ are caused by $U$ and are causes of $S$ , and $( X , Y , Z )$ are causally related according to the graph. ",
357
+ "bbox": [
358
+ 174,
359
+ 664,
360
+ 825,
361
+ 816
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "In addition to the non-causal dashed-line relationship, there is also dependency induced by between $Y$ and $Z$ by $X _ { Y \\wedge Z }$ . Whether or not each of these dependencies is “spurious” is a problem-specific judgement that must be made by each analyst based on their particular use case. E.g., using genre to predict sentiment may or may not be reasonable, depending on the actual application in mind. However, there is a special case that captures a common intuition for purely spurious association. ",
368
+ "bbox": [
369
+ 174,
370
+ 821,
371
+ 823,
372
+ 892
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Definition 2.3. We say that the association between $Y$ and $Z$ is purely spurious if $Y \\perp X \\mid X _ { Z } ^ { \\perp } , Z$ ",
379
+ "bbox": [
380
+ 174,
381
+ 896,
382
+ 821,
383
+ 911
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "That is, if the dashed-line association did not exist (removed by conditioning on $Z$ ) then the part of $X$ that is not influenced by $Z$ would suffice to estimate $Y$ . ",
390
+ "bbox": [
391
+ 173,
392
+ 92,
393
+ 825,
394
+ 119
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "3 Observable Signatures of Counterfactually Invariant Predictors ",
401
+ "text_level": 1,
402
+ "bbox": [
403
+ 174,
404
+ 137,
405
+ 736,
406
+ 155
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "We now consider the question of how to achieve counterfactual invariance in practice. The challenge is that counterfactual invariance is defined by the behavior of the predictor on counterfactual data that is never actually observed. This makes checking counterfactual invariance impossible. Instead, we’ll derive a signature of counterfactual invariance that actually can be measured—and enforced— using ordinary datasets where $Z$ (or a proxy) is measured. For example, the star rating of a review as a proxy for sentiment, or genre labels in the movie review case. ",
413
+ "bbox": [
414
+ 173,
415
+ 167,
416
+ 825,
417
+ 252
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "Intuitively, a predictor $f$ is counterfactually invariant if it depends only on $X _ { Z } ^ { \\perp }$ , the part of $X$ that is not affected by $Z$ . To formalize this, we need to show that such a $X _ { Z } ^ { \\perp }$ is well defined: ",
424
+ "bbox": [
425
+ 174,
426
+ 257,
427
+ 821,
428
+ 287
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Lemma 3.1. Let $X _ { Z } ^ { \\perp }$ be a $X$ -measurable random variable such that, for all measurable functions $f$ , we have that $f$ is counterfactually invariant if and only if $f ( X )$ is $X _ { Z } ^ { \\perp }$ -measurable. If $Z$ is discrete1 then such a $X _ { Z } ^ { \\perp }$ exists. ",
435
+ "bbox": [
436
+ 173,
437
+ 291,
438
+ 823,
439
+ 337
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Accordingly, we’d like to construct a predictor that is a function of $X _ { Z } ^ { \\perp }$ only (i.e., is $X _ { Z } ^ { \\perp }$ measurable). The key insight is that we can use the causal graphs to read off a set of conditional independence relationships that are satisfied by $Z , X _ { Z } ^ { \\perp } , Y$ . Critically, these conditional independence relationships are testable from the observed data. Thus, they provide a signature of counterfactual invariance: ",
446
+ "bbox": [
447
+ 174,
448
+ 347,
449
+ 825,
450
+ 404
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Theorem 3.2. If $f$ is a counterfactually invariant predictor: ",
457
+ "bbox": [
458
+ 174,
459
+ 406,
460
+ 570,
461
+ 421
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "1. Under the anti-causal graph, $f ( X ) \\perp Z \\mid Y$ . \n2. Under the causal-direction graph, if $Y$ and $Z$ are not subject to selection (but possibly confounded), $f ( X ) \\perp \\perp Z$ . \n3. Under the causal-direction graph, if the association is purely spurious, $Y \\perp X \\mid X _ { Z } ^ { \\perp } , Z$ , and $Y$ and $Z$ are not confounded (but possibly selected), $f ( X ) \\perp Z \\mid Y$ . ",
468
+ "bbox": [
469
+ 210,
470
+ 428,
471
+ 825,
472
+ 500
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "Remark 3.3 (Connection to Fairness). This result has an interesting interpretation when $Z$ is a protected attribute (e.g., sex or race) that we’d like to be fair with respect to. There are many ways of formalizing fairness, which are usually mutually incompatible. In the fairness setting, counterfactual invariance is equivalent to counterfactual fairness [Kus+17; Gar+19], the condition $f ( X ) \\ \\perp \\ Z$ is equivalent to demographic parity, and the condition $f ( X ) \\perp Z \\mid Y$ is equivalent to equalized odds [Meh+19]. Theorem 3.2 then says that counterfactual fairness implies either demographic parity or equalized odds, depending on the true underlying causal structure of the problem. Hence, the relationship between disparate fairness notions is clarified by taking the underlying causal structure into account. This also suggests we can take counterfactual fairness as the fundamental notion, then use demographic parity in the causal-confounding case and equalized odds otherwise. However, we leave the (ethical) question of whether this is a sound strategy to future work. ",
479
+ "bbox": [
480
+ 173,
481
+ 502,
482
+ 825,
483
+ 654
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Causal Regularization Without access to counterfactual examples, we cannot directly enforce counterfactual invariance. However, we can require a trained model to satisfy the counterfactual invariance signature of Theorem 3.2. The hope is that enforcing the signature will lead the model to be counterfactually invariant. To do this, we regularize the model to satisfy the appropriate conditional independence condition. For simplicity of exposition, we restrict to binary $Y$ and $Z$ . The (infinite data) regularization terms are ",
490
+ "bbox": [
491
+ 173,
492
+ 667,
493
+ 825,
494
+ 751
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "equation",
500
+ "img_path": "images/86ce0fc659886f708a5869aef0be03c74b34df0057a1a477df5f58b2916a67d7.jpg",
501
+ "text": "$$\n\\begin{array} { r l } & { = \\mathrm { M M D } ( \\mathrm { P } ( f ( X ) \\mid Z = 0 ) , \\mathrm { P } ( f ( X ) \\mid Z = 1 ) ) } \\\\ & { = \\mathrm { M M D } ( \\mathrm { P } ( f ( X ) \\mid Z = 0 , Y = 0 ) , \\mathrm { P } ( f ( X ) \\mid Z = 1 , Y = 0 ) ) } \\\\ & { \\quad + \\mathrm { M M D } ( \\mathrm { P } ( f ( X ) \\mid Z = 0 , Y = 1 ) , \\mathrm { P } ( f ( X ) \\mid Z = 1 , Y = 1 ) ) . } \\end{array}\n$$",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 357,
505
+ 752,
506
+ 792,
507
+ 808
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Maximum mean discrepancy (MMD) is a metric on probability measures.2 The marginal independence condition is equivalent to (3.1) equal 0, and the conditional independence is equivalent to (3.2) ",
514
+ "bbox": [
515
+ 178,
516
+ 809,
517
+ 820,
518
+ 838
519
+ ],
520
+ "page_idx": 3
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "equal 0. In practice, we can estimate the MMD with finite data samples $[ \\mathrm { G r e } { + } 1 2 ]$ . When training with stochastic gradient descent, we compute the penalty on each minibatch. ",
525
+ "bbox": [
526
+ 171,
527
+ 90,
528
+ 823,
529
+ 119
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "The procedure is then: if the data has causal-direction structure and the $Y Z$ association is due to confounding, add the marginal regularization term to the the training objective. If the data has anti-causal structure, or the association is due to selection, add the conditional regularization term instead. In this way, we regularize towards models that satisfy the counterfactual invariance signature. ",
536
+ "bbox": [
537
+ 174,
538
+ 125,
539
+ 825,
540
+ 195
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "A key point is that the regularizer we must use depends on the true causal structure. The conditional and marginal independence conditions are generally incompatible. Enforcing the condition that is mismatched to the true underlying causal structure may fail to encourage counterfactual invariance, or may throw away more information than is required. ",
547
+ "bbox": [
548
+ 174,
549
+ 200,
550
+ 825,
551
+ 257
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Gap to Counterfactual Invariance The conditional independence signature of Theorem 3.2 is necessary but not sufficient for counterfactual invariance. This is for two reasons. First, counterfactual invariance applies to individual datapoint realizations, but the signature is distributional. In particular, the invariance $\\mathrm { P } ( f ( X ) \\mid \\mathrm { d o } ( Z = z ) ) = \\mathrm { P } ( f ( X ) \\mid \\mathrm { d o } ( Z = \\bar { z } ^ { \\prime } ) )$ for all $z , z ^ { \\prime }$ would also imply the conditional independence signature. But, this invariance is weaker than counterfactual invariance, since it doesn’t require access to counterfactual realizations. Second, $f ( X ) \\ \\perp \\perp Z$ does not imply, in general, that $Z$ is not a cause of $f ( X )$ . This (unusual) behavior can happen if, e.g., there are levels of $Z$ that we do not observe in the training data, or there are variables omitted from the causal graph that are a common cause of $Z$ and $X$ . ",
558
+ "bbox": [
559
+ 173,
560
+ 270,
561
+ 825,
562
+ 395
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Unfortunately, the gap between the signature and counterfactual invariance is a fundamental restriction of using observational data. The conditional independence signature is in some sense the closest proxy for counterfactual invariance we can hope for. In section 5, we’ll see that enforcing the signature does a good job of enforcing counterfactual invariance in practice. ",
569
+ "bbox": [
570
+ 174,
571
+ 401,
572
+ 825,
573
+ 458
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "4 Performance Out of Domain ",
580
+ "text_level": 1,
581
+ "bbox": [
582
+ 176,
583
+ 476,
584
+ 442,
585
+ 492
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Counterfactual invariance is an intuitively desirable property for a predictor to have. However, it’s not immediately clear how it relates to model performance as measured by, e.g., accuracy. Intuitively, eliminating predictor dependence on a spurious $Z$ may help with domain shift, where the data distribution in the target domain differs from the distribution of the training data. We now turn to formalizing this idea. ",
592
+ "bbox": [
593
+ 174,
594
+ 506,
595
+ 825,
596
+ 575
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "First, we must articulate the set of domain shifts to be considered. In our setting, the natural thing is to hold the causal relationships fixed across domains, but to allow the non-causal (“spurious”) dependence between $Y$ and $Z$ to vary. Demanding that the causal relationships stay fixed reflects the requirement that the causal structure describes the dynamics of an underlying real-world process— e.g., the author’s sentiment is always a cause (not an effect) of the text in all domains. On the other hand, the dependency between $Y$ and $Z$ induced by either confounding or selection can vary without changing the underlying causal structure. For confounding, the distribution of the confounder may differ between domains—e.g., books are rare in training, but common in deployment. For selection, the selection criterion may differ between domains—e.g., we include only frequently reviewed movies in training, but make predictions for all movies in deployment. ",
603
+ "bbox": [
604
+ 173,
605
+ 582,
606
+ 825,
607
+ 720
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "We want to capture spurious domain shifts by considering domain shifts induced by selection or confounding. However, there is an additional nuance. Changes to the marginal distribution of $Y$ will affect the risk of a predictor, even in the absence of any spurious association between $Y$ and $Z$ . Therefore, we restrict to shifts that preserve the marginal distribution of $Y$ . ",
614
+ "bbox": [
615
+ 174,
616
+ 726,
617
+ 825,
618
+ 782
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "Definition 4.1. We say that distributions $P , Q$ are causally compatible if both obey the same causal graph, $P ( Y ) = Q ( Y )$ , and there is a confounder $U$ and/or selection conditions $S , { \\tilde { S } }$ such that $\\begin{array} { r } { P { = } \\int \\operatorname { P } ( X , Y , Z \\mid U , S { = } 1 ) \\mathrm { d } \\tilde { P } ( U ) } \\end{array}$ and $\\begin{array} { r } { Q { = } \\int \\operatorname { P } ( X , Y , Z \\mid U , \\tilde { S } { = } 1 ) \\mathrm { d } \\tilde { Q } ( U ) } \\end{array}$ for some $\\tilde { P } ( U ) , \\tilde { Q } ( U )$ . ",
625
+ "bbox": [
626
+ 174,
627
+ 784,
628
+ 825,
629
+ 832
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "We can now connect counterfactual invariance and robustness to domain shift. ",
636
+ "bbox": [
637
+ 176,
638
+ 838,
639
+ 686,
640
+ 853
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Theorem 4.2. Let ${ \\mathcal { F } } ^ { \\mathrm { i n v a r } }$ be the set of all counterfactually invariant predictors. Let $L$ be either square error or cross entropy loss. And, let $f ^ { * } : = \\operatorname { a r g m i n } _ { \\underline { { f } } \\in \\mathcal { F } ^ { \\mathrm { i n v a } } }$ r $\\mathbb { E } _ { P } [ L ( Y , f ( X ) ) ]$ be the counterfactually invariant risk minimizer. Suppose that the target distribution $Q$ is causally compatible with the training distribution $P$ . Suppose that any of the following conditions hold: ",
647
+ "bbox": [
648
+ 174,
649
+ 856,
650
+ 825,
651
+ 911
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "1. the data obeys the anti-causal graph \n2. the data obeys the causal-direction graph, there is no confounding (but possibly selection), and the association is purely spurious, $Y \\perp X \\mid X _ { Z } ^ { \\perp } , Z$ , or \n3. the data obeys the causal-direction graph, there is no selection (but possibly confounding), the association is purely spurious and the causal effect of $X _ { Z } ^ { \\perp }$ on $Y$ is additive, i.e., the true data generating process is ",
658
+ "bbox": [
659
+ 210,
660
+ 92,
661
+ 825,
662
+ 174
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "equation",
668
+ "img_path": "images/8cec76378561abb8947c6c9ec4fdd61d4fcc15bf3f528b3e86048cc86f46e240.jpg",
669
+ "text": "$$\nY g ( X _ { Z } ^ { \\perp } ) + \\tilde { g } ( U ) + \\xi w h e r e \\operatorname { \\mathbb { E } } [ \\xi \\mid X _ { Z } ^ { \\perp } ] = 0 ,\n$$",
670
+ "text_format": "latex",
671
+ "bbox": [
672
+ 367,
673
+ 180,
674
+ 686,
675
+ 199
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "for some functions $g , \\tilde { g }$ ",
682
+ "bbox": [
683
+ 230,
684
+ 204,
685
+ 387,
686
+ 219
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Then, the training domain counterfactually invariant risk minimizer is also the target domain counterfactually invariant risk minimizer, $f ^ { * } = \\mathrm { a r g m i n } _ { f \\in \\mathcal { F } ^ { \\mathrm { i n } } }$ var $\\mathbb { E } _ { Q } [ L ( Y , f ( X ) ) ]$ . ",
693
+ "bbox": [
694
+ 173,
695
+ 227,
696
+ 821,
697
+ 256
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Remark 4.3. The causal case with confounding requires an additional assumption (additive structure) because, e.g., an interaction between confounder and $X _ { Z } ^ { \\perp }$ can yield a case where $X _ { Z } ^ { \\perp }$ and $Y$ have a different relationship in each domain (whence, out-of-domain learning is impossible). ",
704
+ "bbox": [
705
+ 174,
706
+ 258,
707
+ 823,
708
+ 300
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "This result gives a recipe for finding a good predictor in the target domain even without access to any target domain examples at training time. Namely, find the counterfactually invariant risk minimizer in the training domain. In practice, we can use the regularization scheme of section 3 to (approximately) achieve this. We’ll see in section 5 that this works well in practice. ",
715
+ "bbox": [
716
+ 174,
717
+ 309,
718
+ 825,
719
+ 364
720
+ ],
721
+ "page_idx": 5
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "Optimality Theorem 4.2 begs the question: if the only thing we know about the target setting is that it’s causally compatible with the training data, is the best predictor the counterfactually invariant predictor with lowest training risk? A natural way to formalize this question is to study the predictor with the best performance in the worst case target distribution. We define $ \\bar { \\mathcal { Q } } ~ = ~ \\{ \\bar { Q } ~ : ~ Q$ causally compatible with $P \\}$ and the $\\mathcal { Q }$ -minimax predictor $f _ { \\mathrm { m i n i m a x } } ^ { * } ~ =$ $\\operatorname { \\arg m i n } _ { f \\in { \\mathcal { F } } } \\operatorname* { m a x } _ { Q \\in { \\mathcal { Q } } } \\mathbb { E } _ { Q } [ L ( Y , f ( X ) ]$ . The question is then: what’s the relationship between the counterfactually invariant risk minimizer and the minimax predictor? ",
726
+ "bbox": [
727
+ 173,
728
+ 378,
729
+ 825,
730
+ 477
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Theorem 4.4. The counterfactually invariant risk minimizer is not $\\mathcal { Q }$ -minimax in general. However, under the conditions of Theorem 4.2, if the association is purely spurious, $X _ { Y \\wedge Z } \\ { \\bar { \\perp } } \\ Y \\mid X _ { Z } ^ { \\perp } , Z$ , and $\\mathrm { P } ( Z , Y )$ satisfies overlap, then the two predictors are the same. By overlap we mean that $\\mathrm { P } ( Z , Y )$ is a discrete distribution such that for all $( z , y )$ , $i f \\mathrm { P } ( z , y ) > 0$ then there is some $y ^ { \\prime } \\ne y$ such that also $\\mathrm { P } ( z , y ^ { \\prime } ) > 0$ . ",
737
+ "bbox": [
738
+ 174,
739
+ 479,
740
+ 825,
741
+ 551
742
+ ],
743
+ "page_idx": 5
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "Conceptually, Theorem 4.4 just says that the counterfactually invariant predictor excludes $X _ { Y \\wedge Z }$ , even when this information is useful in every domain. In the purely spurious case, $X _ { Y \\wedge Z }$ carries no useful information, so counterfactual invariance is optimal. ",
748
+ "bbox": [
749
+ 174,
750
+ 560,
751
+ 825,
752
+ 603
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "5 Experiments ",
759
+ "text_level": 1,
760
+ "bbox": [
761
+ 173,
762
+ 622,
763
+ 313,
764
+ 638
765
+ ],
766
+ "page_idx": 5
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "The main claims of the paper are: ",
771
+ "bbox": [
772
+ 174,
773
+ 652,
774
+ 395,
775
+ 667
776
+ ],
777
+ "page_idx": 5
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "1. Stress test violations can be reduced by suitable conditional independence regularization. \n2. This reduction will improve out-of-domain prediction performance. \n3. To get the full effect, the imposed penalty must match the causal structure of the data. ",
782
+ "bbox": [
783
+ 212,
784
+ 675,
785
+ 815,
786
+ 717
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Setup To assess these claims, we’ll examine the behavior of predictors trained with the marginal or conditinal regularization on multiple text datasets that have either causal or anti-causal structure. We expect to see that marginal regularization improves stress test and out-of-domain performance on data with causal-confounded structure, and conditional regularization improves these on data with anti-causal structure. ",
793
+ "bbox": [
794
+ 173,
795
+ 731,
796
+ 825,
797
+ 801
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "For each experiment, we use BERT [Dev+19] finetuned to predict a label $Y$ from the text as our base model. We train multiple causally-regularized models on the each dataset. The training varies by whether we use the conditional or marginal penalty, and by the strength of the regularization term. That is, we train identical architectures using CrossEntropy $+ \\lambda \\cdot$ Regularizer as the objective function, where we vary $\\lambda$ and take Regularizer as either the marginal penalty, (3.1), or conditional penalty, (3.2). We compare these models’ predictions on data with causal and anti-causal structure. ",
804
+ "bbox": [
805
+ 174,
806
+ 806,
807
+ 825,
808
+ 891
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "See supplement for experimental details. ",
815
+ "bbox": [
816
+ 176,
817
+ 897,
818
+ 441,
819
+ 911
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "image",
825
+ "img_path": "images/53efb42512085a29a0de7812344b3d241b39e4349e1f4adf7ba004e54ec1e32c.jpg",
826
+ "image_caption": [
827
+ "Figure 2: Regularizing conditional MMD improves counterfactual invariance on synthetic anti-causal data. Sufficiently high regularization of marginal MMD also improves invariance, but impairs accuracy. Dashed lines show baseline performance of an unregularized predictor. Left: lower conditional MMD implies that predictive probabilities are invariant to perturbation. Although marginal MMD penalization can result in low conditional MMD and good stress test performance, this comes at the cost of very low in-domain accuracy. Right: MMD regularization reduces the rate of predicted label flips on perturbed data, with little affect on indomain accuracy. Conditional MMD regularization reduces predicted label flips to $1 . 4 \\%$ , while the best result for marginal MMD is $2 . 8 \\%$ . "
828
+ ],
829
+ "image_footnote": [],
830
+ "bbox": [
831
+ 192,
832
+ 90,
833
+ 802,
834
+ 175
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "5.1 Robustness to Stress Tests ",
841
+ "text_level": 1,
842
+ "bbox": [
843
+ 174,
844
+ 314,
845
+ 393,
846
+ 329
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "First, we examine whether enforcing the causal regularization actually helps to enforce counterfactual invariance. We create counterfactual (stress test) examples by perturbing the input data and compare the prediction on these. We build the experimental datasets using Amazon reviews from the product category “Clothing, Shoes, and Jewelry” [NLM19]. ",
853
+ "bbox": [
854
+ 174,
855
+ 340,
856
+ 825,
857
+ 396
858
+ ],
859
+ "page_idx": 6
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Synthetic To study the relationship between counterfactual invariance and the distributional signature of Theorem 3.2, we construct a synthetic confound. For each review, we draw a Bernoulli random $Z$ , and then perturb the text $X$ so that the common words “the” and “a” carry information about $Z$ : for example, we replace “the” with the token “thexxxxx” when $Z = 1$ . We take $Y$ to be the review score, and subsample so $Y$ is balanced. This data has anti-causal structure: the text $X$ is written to explain the score $Y$ . Further, we expect that the $Y , Z$ association is purely spurious, because “the” and “a” carry little information about the label. ",
864
+ "bbox": [
865
+ 173,
866
+ 411,
867
+ 825,
868
+ 508
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "We train the models on data where $\\operatorname { P } ( Y = Z ) = 0 . 3$ . We then create perturbed stress-test datasets by changing each example $X _ { i } ( z )$ to the counterfactual $X _ { i } ( 1 - z )$ (using the synthetic model). By measuring the performance of each model on the perturbed data, we can test whether the distributional properties enforced by the regularizers result in counterfactual invariance at the instance level. Figure 2 shows that conditional regularization (matching the anti-causal structure) reduces checklist failures, as measured by the frequency that the predicted label changes due to perturbation as well as the mean absolute difference in predictive probabilities that is induced by perturbation. ",
875
+ "bbox": [
876
+ 174,
877
+ 515,
878
+ 825,
879
+ 613
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Natural To study the relationship in real data, we use the review data in a different way. We now take $Z$ to be the score, binarized as $Z \\in { }$ $\\{ 1$ or 2 stars, 4 or 5 stars}. We use this $Z$ as a proxy for sentiment, and consider problems where sentiment should (plausibly) not have a causal effect on $Y$ . For the causal prediction problem, we take $Y$ to be the helpfulness score of the review (binarized as described below). This is causal because readers decide whether the review is helpful based on the text. For the anti-causal prediction problem, we take $Y$ to be whether “Clothing” is included as a category tag for the product under review (e.g., boots typically do not have this tag). This is anti-causal because the product category affects the text. ",
886
+ "bbox": [
887
+ 174,
888
+ 630,
889
+ 483,
890
+ 837
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "image",
896
+ "img_path": "images/25d13abb0d1a94526c03a9edcbbe9537be776b40dc5768ab7b2869bd796e53c3.jpg",
897
+ "image_caption": [
898
+ "Figure 3: Penalizing the MMD matching the causal structure improves stress test performance on natural product review data. Note that penalizing the wrong MMD may not help: the marginal MMD hurts on the anticausal dataset. Perturbations are generated by swapping positive and negative sentiment adjectives in examples. "
899
+ ],
900
+ "image_footnote": [],
901
+ "bbox": [
902
+ 501,
903
+ 635,
904
+ 818,
905
+ 724
906
+ ],
907
+ "page_idx": 6
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "",
912
+ "bbox": [
913
+ 173,
914
+ 835,
915
+ 544,
916
+ 849
917
+ ],
918
+ "page_idx": 6
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "We control the strength of the spurious association between $Y$ and $Z$ . In the anti-causal case, this is done by selection: we randomly subset the data to enforce a target level of dependence between $Y$ and $Z$ . The causal-direction case with confounding is more complicated. To manipulate confounding strength, we binarize the number of helpfulness votes $V$ in a manner determined by the target level of association. We take $Y = 1 [ V > T _ { Z } ]$ where $T _ { Z }$ is a $Z$ -dependent threshold, chosen to induce a target association. We choose $\\operatorname { P } ( Y = { \\bar { 0 } } \\mid Z = 0 ) = \\operatorname { P } ( Y = { \\bar { 1 } } \\mid Z = 1 ) = 0 . 3$ . We balance $Z$ by subsampling, which also balances $Y$ . ",
923
+ "bbox": [
924
+ 174,
925
+ 856,
926
+ 825,
927
+ 911
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "",
934
+ "bbox": [
935
+ 174,
936
+ 90,
937
+ 823,
938
+ 133
939
+ ],
940
+ "page_idx": 7
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Now, we create stress test perturbations of these datasets by randomly changing adjectives in the examples. Using predefined lists of postive sentiment adjectives and negative sentiment adjectives, we swap any adjective that shows up on a list with a randomly sampled adjective from the other list. This preserves basic sentence structure, and thus creates a limited set of counterfactual pairs that differ on sentiment. ",
945
+ "bbox": [
946
+ 174,
947
+ 140,
948
+ 825,
949
+ 208
950
+ ],
951
+ "page_idx": 7
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Results for differences in predicted probabilities between original and perturbed data are shown in Figure 3. Each point is a trained model, which vary in measured MMD on the test data and on sensitivity to perturbations. Recall that the conditional independence signature of Theorem 3.2 are necessary but not sufficient for counterfactual invariance, so it’s not certain that regularizing to reduce the MMD will reduce perturbation sensitivity. Happily, we see that regularizing to reduce the MMD that matches the causal structure does indeed reduce sensitivity to perturbations. ",
956
+ "bbox": [
957
+ 173,
958
+ 215,
959
+ 825,
960
+ 299
961
+ ],
962
+ "page_idx": 7
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Notice that regularizing the causally mismatched MMD can have strange effects. Regularizing marginal MMD in the anti-causal case actually makes the model more sensitive to perturbations! ",
967
+ "bbox": [
968
+ 173,
969
+ 305,
970
+ 823,
971
+ 333
972
+ ],
973
+ "page_idx": 7
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "5.2 Domain Shift ",
978
+ "text_level": 1,
979
+ "bbox": [
980
+ 173,
981
+ 353,
982
+ 305,
983
+ 368
984
+ ],
985
+ "page_idx": 7
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Next, we study the effect of causal regularization on model performance under domain shift. ",
990
+ "bbox": [
991
+ 171,
992
+ 381,
993
+ 777,
994
+ 396
995
+ ],
996
+ "page_idx": 7
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Natural Product Review We again use the natural Amazon review data described above. For both the causal and anticausal data, we create multiple test sets with variable spurious correlation strength. This is done in the manner described above, varying $\\operatorname { P } ( Y = 0 \\mid Z =$ $0 ) = \\operatorname { P } ( Y = 1 \\mid Z = 1 ) =$ $\\gamma$ . Here, $\\gamma$ is the strength of spurious association. The test sets are out-of-domain samples. By design, $Y$ is balanced in each dataset, so these samples are causally compatible with the training data. For both the causal and anti-causal datasets, the training data has $\\begin{array} { r l } { \\mathrm { P } ( Y } & { { } = } \\end{array}$ $0 \\mid Z = 0 \\bar { ) } = \\mathrm { P } ( Y = 1 \\mid Z =$ $1 ) ~ = ~ 0 . 3$ . We train a classifier for each regularization type and regularization strength, and measure the accuracy on each test domain. The results are shown in Figure 4. ",
1001
+ "bbox": [
1002
+ 174,
1003
+ 415,
1004
+ 387,
1005
+ 773
1006
+ ],
1007
+ "page_idx": 7
1008
+ },
1009
+ {
1010
+ "type": "image",
1011
+ "img_path": "images/cc50159fcb6943974ab865fe3f6e0e57889243fedb2eb828a12ef8b80e7b30b1.jpg",
1012
+ "image_caption": [
1013
+ "Anti-Causal Data: conditional regularization improves domain-shift robustness. "
1014
+ ],
1015
+ "image_footnote": [],
1016
+ "bbox": [
1017
+ 406,
1018
+ 420,
1019
+ 820,
1020
+ 520
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "image",
1026
+ "img_path": "images/1aad0d1d99d5ec2ccf3cc08ff60ebd5e9382fde6d09560b6780ee4953b6c184c.jpg",
1027
+ "image_caption": [
1028
+ "Causal-Direction Data: marginal regularization improves domain-shift robustness. ",
1029
+ "Figure 4: The best domain-shift robustness is obtained by using the regularizer that matches the underlying causal structure of the data. The plots show out-of-domain accuracy for models trained on the (natural) review data. In each row, the left figure shows out-of-domain accuracies (lines are models), with the $X$ -axis showing the level of spurious correlation in the test data (0.3 is the training condition); the right figure shows worst out-of-domain accuracy versus in-domain test accuracy (dots are models). "
1030
+ ],
1031
+ "image_footnote": [],
1032
+ "bbox": [
1033
+ 406,
1034
+ 545,
1035
+ 821,
1036
+ 641
1037
+ ],
1038
+ "page_idx": 7
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "First, the unregularized predictors do indeed learn to rely on the spurious association between sentiment and the label. The accuracy of these predictors decays dramatically as the spurious assocation moves from negative (0.3) to positive—in the causal case, the unregularized predictor is worse than chance in the 0.8 domain. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 780,
1046
+ 825,
1047
+ 835
1048
+ ],
1049
+ "page_idx": 7
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Following section 3, the regularization that matches the underlying causal structure should yield a predictor that is (approximately) counterfactually invariant. Following Theorem 4.2, we expect that good performance of a counterfactually-invariant predictor in the training domain should imply good performance in each of the other domains. Indeed, we see that this is so. Models that are regularized to have small values of the appropriate MMD do indeed have better out-of-domain performance. ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 842,
1057
+ 825,
1058
+ 911
1059
+ ],
1060
+ "page_idx": 7
1061
+ },
1062
+ {
1063
+ "type": "image",
1064
+ "img_path": "images/a10a5b2248012b6f81c4cccbf8cd45aa1b0e5f41578a88117ad325f1b0dfe2e9.jpg",
1065
+ "image_caption": [
1066
+ "Figure 5: Conditional MMD penalization improves robustness in anti-causal MNLI data. Marginal regularization does not improve over the baseline unregularized model, shown with dashed lines. Left: Conditional regularization improves minimum accuracy across $( Y , Z )$ groups. When overregularized, the predictor returns the same $\\hat { Y }$ for all inputs, yielding a worst-group accuracy of 0. Right: Conditional MMD regularization significantly improves worst $( Y , Z )$ group accuracy $y$ -axis) while only mildly reducing overall accuracy ( $x$ -axis). "
1067
+ ],
1068
+ "image_footnote": [],
1069
+ "bbox": [
1070
+ 192,
1071
+ 92,
1072
+ 741,
1073
+ 181
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Such models have somewhat worse in-domain performance, because they no longer exploit the spurious correlation. ",
1080
+ "bbox": [
1081
+ 176,
1082
+ 273,
1083
+ 823,
1084
+ 301
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "MNLI Data For an additional test on naturally-occurring confounds, we use the multigenre natural language inference (MNLI) dataset [WNB18]. Instances are concatenations of two sentences, and the label describes the semantic relationship between them, $Y \\in \\mathbf { \\Sigma }$ {contradiction, entailment, neutral}. There is a well-known confound in this dataset: examples where the second sentence contain a negation word (e.g., “not”) are much more likely to be labeled as contradictions $[ \\mathrm { G u r } { + } 1 8 ]$ . Following Sagawa et al. $[ \\mathrm { S a g } + 2 0 ]$ , we set $Z$ to indicate whether one of a small set of negation words is present. Although $Z$ is derived from the text $X$ , it can be viewed as a proxy for a latent variable indicating whether the author intended to use negation in the text. This is an anti-causal prediction problem: the annotators were instructed to write text to reflect the desired label [WNB18]. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 315,
1094
+ 825,
1095
+ 454
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Following Sagawa et al. $[ \\mathrm { S a g } + 2 0 ]$ , we divide the MNLI data into groups by $( Y , Z )$ and compute the “worst group accuracy” across all such groups. Because this is an anti-causal problem, we predict that the conditional MMD is a more appropriate penalty than the marginal MMD. As shown in Figure 5, this prediction holds: conditional MMD regularization dramatically improves performance on the worst group, while only lightly impacting the overall accuracy across groups. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 460,
1105
+ 825,
1106
+ 531
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "6 Related work ",
1113
+ "text_level": 1,
1114
+ "bbox": [
1115
+ 174,
1116
+ 549,
1117
+ 316,
1118
+ 565
1119
+ ],
1120
+ "page_idx": 8
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Several papers draw a connection between causality and domain shifts [SS18; SCS19; $\\mathrm { \\bf A r j + } 2 0$ ; Mei18; PBM16; $\\mathrm { R C } { + 1 8 }$ ; Zha+13; $\\operatorname { S c h } { + 1 2 } ]$ . Typically, this work considers a prediction setting where the covariates $X$ include both causes and effects of $Y$ , and it is unknown which is which. The goal is to learn to predict $Y$ using only its causal parents. Zhang et al. $\\left[ Z \\mathrm { h a } + 1 3 \\right]$ considers anti-causal domain shift induced by changing $P ( Y )$ and proposes a data reweighting scheme. By contrast, counterfactual invariance is an example-wise notion of invariance, not an invariance across environments. In particular, learning a counterfactually invariant predictor only requires access to data from a single environment. Theorem 4.2 establishes that counterfactual invariance does imply a certain domain generalization guarantee over causally-compatible domains. Note though that the notion of causal compatibility is not generally the same as class of domain shifts previously considered. For example, we have invariant performance in the anti-causal setting, but this is ruled out by Arjovsky et al. $[ \\mathrm { A r j } { + } 2 0 ]$ . ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 580,
1128
+ 825,
1129
+ 746
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "A related body of work focuses on “causal representation learning” [Bes+19; $\\mathrm { L o c } { + 2 0 }$ ; $\\operatorname { S c h } { + 2 1 }$ ; $\\mathrm { A r j } { + } 2 0 ]$ . Our approach follows this tradition, but focuses on splitting $X$ into components defined by their causal relationships with the label $Y$ and an additional covariate $Z$ . Rather than attempting to infer the causal relationship between $X$ and $Y$ , we show that domain knowledge of this relationship is essential for obtaining counterfactually-invariant predictors. The role of causal vs anti-causal data generation in semi-supervised learning and transfer learning has also been studied $[ \\mathrm { S c h } \\cdot 2 1 $ ; $\\operatorname { S c h + } 1 2 ]$ . In this paper we focus on a different implication of the causal vs anti-causal distinction. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 752,
1139
+ 825,
1140
+ 849
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Another line of work considers the case where either the counterfactuals $X ( z )$ , $X ( z ^ { \\prime } )$ are observed for at least some data points, or where it’s assumed that there’s enough structural knowledge to (learn to) generate counterfactual examples [RPH21; $\\mathrm { W u } { + } 2 1$ ; Gar+19; $\\mathrm { M i t } { + } 2 0$ ; WZ19; KCC20; KHL20; TAH20]. Kusner et al. [Kus+17] and Garg et al. [Gar $^ +$ 19] in particular examine a notion of counterfactual fairness that can be seen as equivalent to counterfactual invariance. In these papers, approximate counterfactuals are produced by direct manipulation of the features (e.g., change male to female names), generative models (e.g., style transfer of images), or crowdsourcing. Then, these counterfactuals can either be used as additional training data or the predictor can be regularized such that it cannot distinguish between $X _ { i } ( z )$ and $X _ { i } ( z ^ { \\prime } )$ . This strategy can be viewed as enforcing counterfactual invariance directly; an advantage is that it avoids the necessary-but-not-sufficient nuance of Theorem 3.2. However, counterfactual examples can be difficult to obtain for language data in many realistic problem domains, and it may be difficult to learn to generalize from such examples [HLB20]. ",
1147
+ "bbox": [
1148
+ 176,
1149
+ 856,
1150
+ 825,
1151
+ 911
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "",
1158
+ "bbox": [
1159
+ 174,
1160
+ 90,
1161
+ 825,
1162
+ 215
1163
+ ],
1164
+ "page_idx": 9
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "The marginal and conditional independencies of Theorem 3.2 have appeared in other contexts. As discussed in remark 3.3, if we think of $Z$ as a protected attribute and $f$ as a ‘fair’ classifier, then counterfactual invariance is counterfactual fairness, the marginal independence is demographic parity, and the conditional independence is equalized odds [Meh $^ +$ 19]. In another setting, one approach to domain adaptation is to seek representations $\\phi$ such that either $\\phi ( X )$ [e.g., MBS13; Bak $+ 1 3$ ; Gan $+ 1 6$ ; Tze+14] or $\\phi ( X ) \\mid Y$ [e.g., MLM19; $\\mathrm { Y a n } { + } 1 7 ]$ have the same distribution in each environment. The connection here is subtler; it is inappropriate to interpret $Z$ as a domain label (we only have access to one domain at train time, and all values of $Z$ are present in each domain). To clarify the connection, consider introducing an extra variable $E$ that labels the domain. For concreteness, consider the anti-causal case where the spurious association between $Y$ and $Z$ is due to an observed confounder $U$ . Now, suppose that $E$ is a cause of $U$ . Then, $E$ labels the distribution of the unobserved confounder, and thus different values of $E$ correspond to different causally compatible domains. Now, if we draw the causal graph we can read off that $X _ { z } ^ { \\perp } E | Y$ . That is, we arrive at the same conditional independence criterion. However, it’s essentially a coincidence that this matches the criterion we’d use if we’d observed $Z$ —the two variables have totally different causal meanings and interpretations. For example, in the review data case, we might take $Z$ to be review score and $E$ to be the website the review is collected from. The review quality doesn’t need to be counterfactually invariant to the website, and indeed we wouldn’t expect it to be! ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 222,
1172
+ 825,
1173
+ 470
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Finally, this work can be viewed as part of a recent line of work using counterfactuals to examine the connection between example-wise robustness (stress testing) and distributional-level robustness (domain shift) [e.g., TAH20; RPH21; Kau+21]. Teney et al. [TAH20] use near counterfactuals with different labels in a modified training objective, and show improved performance out-of-domain empirically. Robey et al. [RPH21] use image models to generate counterfactuals, and incorporate the model into training, showing out-of-domain improvement. They assume a somewhat different causal structure—articulating the precise connection is an interesting future direction. Kaushik et al. [Kau+21] study a linear-Gaussian model and argue that out-of-domain performance can be used as a signal to distinguish ‘causal’ and ‘spurious’ features. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 477,
1183
+ 825,
1184
+ 602
1185
+ ],
1186
+ "page_idx": 9
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "7 Discussion ",
1191
+ "text_level": 1,
1192
+ "bbox": [
1193
+ 173,
1194
+ 665,
1195
+ 292,
1196
+ 683
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "We used the tools of causal inference to formalize and study perturbative stress tests. A main insight of the paper is that counterfactual desiderata can be linked to observationally-testable conditional independence criteria. This requires consideration of the true underlying causal structure of the data. Done correctly, the link yields a simple procedure for enforcing the counterfactual desiderata, and mitigating the effects of domain shift. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 724,
1206
+ 825,
1207
+ 794
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "The main limitation of the paper is the restrictive causal structures we consider. In particular, we require that $X _ { Z } ^ { \\perp }$ , the part of $X$ not causally affected by $Z$ , is also statistically independent of $Z$ in the observed data. However, in practice these may be dependent due to a common cause. In this case, the procedure here will be overly conservative, throwing away more information than required. Additionally, it is not obvious how to apply the ideas described here to more complicated causal situations, which can occur in structured prediction (e.g., question answering). Extending the ideas to handle richer causal structures is an important direction for future work. The work described here can provide a template for this research program. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 800,
1217
+ 825,
1218
+ 911
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "8 Acknowledgements ",
1225
+ "text_level": 1,
1226
+ "bbox": [
1227
+ 174,
1228
+ 89,
1229
+ 367,
1230
+ 107
1231
+ ],
1232
+ "page_idx": 10
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Thanks to Kevin Murphy, Been Kim, Molly Roberts, Justin Grimmer, and Brandon Stewart for feedback on an earlier version. ",
1237
+ "bbox": [
1238
+ 174,
1239
+ 119,
1240
+ 825,
1241
+ 148
1242
+ ],
1243
+ "page_idx": 10
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "9 Funding Transparency ",
1248
+ "text_level": 1,
1249
+ "bbox": [
1250
+ 174,
1251
+ 167,
1252
+ 397,
1253
+ 185
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "This paper was not supported by any third party funding, and the authors have no competing interests to declare. ",
1260
+ "bbox": [
1261
+ 174,
1262
+ 199,
1263
+ 825,
1264
+ 228
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "References ",
1271
+ "text_level": 1,
1272
+ "bbox": [
1273
+ 174,
1274
+ 247,
1275
+ 266,
1276
+ 263
1277
+ ],
1278
+ "page_idx": 10
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "$[ \\mathrm { A r j } { + } 2 0 ]$ M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz. Invariant Risk Minimization. 2020. arXiv: 1907.02893 [stat.ML]. \n$[ \\mathrm { B a k } + 1 3 ]$ M. Baktashmotlagh, M. T. Harandi, B. C. Lovell, and M. Salzmann. “Unsupervised domain adaptation by domain invariant projection”. In: Proceedings of the 2013 IEEE International Conference on Computer Vision. 2013. \n[Bes+19] M. Besserve, A. Mehrjou, R. Sun, and B. Scholkopf. ¨ Counterfactuals uncover the modular structure of deep generative models. 2019. arXiv: 1812.03253 [cs.LG]. \n[Dev+19] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. “Bert: pre-training of deep bidirectional transformers for language understanding”. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 2019. \n[Gan+16] Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky. “Domain-adversarial training of neural networks”. In: J. Mach. Learn. Res. 1 (2016). \n[Gar+19] S. Garg, V. Perot, N. Limtiaco, A. Taly, E. H. Chi, and A. Beutel. “Counterfactual fairness in text classification through robustness”. In: Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society. 2019. \n[Gre+12] A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Scholkopf, and A. Smola. “A kernel ¨ two-sample test”. In: The Journal of Machine Learning Research 1 (2012). \n[Gur+18] S. Gururangan, S. Swayamdipta, O. Levy, R. Schwartz, S. Bowman, and N. A. Smith. “Annotation artifacts in natural language inference data”. In: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers). 2018. \n[HLB20] W. Huang, H. Liu, and S. R. Bowman. Counterfactually-Augmented SNLI Training Data Does Not Yield Better Generalization Than Unaugmented Data. 2020. arXiv: 2010.04762 [cs.CL]. \n[KHL20] D. Kaushik, E. Hovy, and Z. C. Lipton. Learning the Difference that Makes a Difference with Counterfactually-Augmented Data. 2020. arXiv: 1909.12434 [cs.CL]. \n[Kau+21] D. Kaushik, A. Setlur, E. Hovy, and Z. C. Lipton. Explaining The Efficacy of Counterfactually Augmented Data. 2021. arXiv: 2010.02114 [cs.CL]. \n[KCC20] V. Kumar, A. Choudhary, and E. Cho. “Data augmentation using pre-trained transformer models”. In: Proceedings of the 2nd Workshop on Life-long Learning for Spoken Language Systems. 2020. \n[Kus+17] M. J. Kusner, J. Loftus, C. Russell, and R. Silva. “Counterfactual fairness”. In: Advances in Neural Information Processing Systems. 2017. \n[Loc+20] F. Locatello, B. Poole, G. Raetsch, B. Scholkopf, O. Bachem, and M. Tschannen. ¨ “Weakly-supervised disentanglement without compromises”. In: Proceedings of the 37th International Conference on Machine Learning. 2020. \n[MLM19] J. Manders, T. van Laarhoven, and E. Marchiori. Adversarial Alignment of Class Prediction Uncertainties for Domain Adaptation. 2019. arXiv: 1804.04448 [stat.ML]. \n[Meh+19] N. Mehrabi, F. Morstatter, N. Saxena, K. Lerman, and A. Galstyan. A Survey on Bias and Fairness in Machine Learning. 2019. arXiv: 1908.09635 [cs.LG]. \n[Mei18] N. Meinshausen. “Causality from a distributional robustness point of view”. In: 2018 IEEE Data Science Workshop (DSW). 2018. \n$[ \\mathrm { M i t } + 2 0 ]$ J. Mitrovic, B. McWilliams, J. Walker, L. Buesing, and C. Blundell. Representation Learning via Invariant Causal Mechanisms. 2020. arXiv: 2010.07922 [cs.LG]. \n[MBS13] K. Muandet, D. Balduzzi, and B. Scholkopf. “Domain generalization via invariant fea- ¨ ture representation”. In: Proceedings of the 30th International Conference on Machine Learning. 2013. \n[Nai+18] A. Naik, A. Ravichander, N. Sadeh, C. Rose, and G. Neubig. “Stress test evaluation for natural language inference”. In: Proceedings of the 27th International Conference on Computational Linguistics. 2018. \n[NLM19] J. Ni, J. Li, and J. McAuley. “Justifying recommendations using distantly-labeled reviews and fined-grained aspects”. In: Empirical Methods in Natural Language Processing (EMNLP) (2019). \n[PBM16] J. Peters, P. Buhlmann, and N. Meinshausen. “Causal inference by using invariant pre- ¨ diction: identification and confidence intervals”. In: Journal of the Royal Statistical Society. Series B (Statistical Methodology) 5 (2016). \n$[ \\mathrm { R i b } { + } 2 0 ]$ 1 M. T. Ribeiro, T. Wu, C. Guestrin, and S. Singh. “Beyond accuracy: behavioral testing of nlp models with checklist”. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. 2020. \n[RPH21] A. Robey, G. J. Pappas, and H. Hassani. Model-Based Domain Generalization. 2021. arXiv: 2102.11436 [stat.ML]. \n$[ \\mathrm { R C } \\substack { + 1 8 } ]$ 1 M. Rojas-Carulla, B. Scholkopf, R. Turner, and J. Peters. “Invariant models for causal ¨ transfer learning”. In: Journal of Machine Learning Research 36 (2018). \n$[ \\mathrm { S a g } + 2 0 ]$ S. Sagawa, P. W. Koh, T. B. Hashimoto, and P. Liang. “Distributionally robust neural networks for group shifts: on the importance of regularization for worst-case generalization”. In: International Conference on Learning Representations. 2020. \n$[ \\mathrm { S c h } \\cdot 1 2 ]$ B. Scholkopf, D. Janzing, J. Peters, E. Sgouritsa, K. Zhang, and J. Mooij. “On causal ¨ and anticausal learning”. In: Proceedings of the 29th International Coference on International Conference on Machine Learning. 2012. \n$[ \\mathrm { S c h } + 2 1 ]$ B. Scholkopf, F. Locatello, S. Bauer, N. R. Ke, N. Kalchbrenner, A. Goyal, and Y. ¨ Bengio. “Toward causal representation learning”. In: Proceedings of the IEEE 5 (2021). \n[SCS19] A. Subbaswamy, B. Chen, and S. Saria. A Universal Hierarchy of Shift-Stable Distributions and the Tradeoff Between Stability and Performance. 2019. arXiv: 1905.11374 [stat.ML]. \n[SS18] A. Subbaswamy and S. Saria. “Counterfactual normalization: proactively addressing dataset shift and improving reliability using causal mechanisms”. In: Proceedings of the 34th Conference on Uncertainty in Artificial Intelligence (UAI), 2018. 2018. \n[TAH20] D. Teney, E. Abbasnejad, and A. van den Hengel. “Learning what makes a difference from counterfactual examples and gradient supervision”. In: CoRR (2020). arXiv: 2004.09034. \n[Tze+14] E. Tzeng, J. Hoffman, N. Zhang, K. Saenko, and T. Darrell. Deep Domain Confusion: Maximizing for Domain Invariance. 2014. arXiv: 1412.3474 [cs.CV]. \n[WZ19] J. Wei and K. Zou. “EDA: easy data augmentation techniques for boosting performance on text classification tasks”. In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. \n[WNB18] A. Williams, N. Nangia, and S. Bowman. “A broad-coverage challenge corpus for sentence understanding through inference”. In: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). 2018. \n$[ \\mathrm { W u } + 1 9 ]$ 1 T. Wu, M. T. Ribeiro, J. Heer, and D. Weld. “Errudite: scalable, reproducible, and testable error analysis”. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. 2019. \n$[ \\mathrm { W u } + 2 1 ]$ T. Wu, M. T. Ribeiro, J. Heer, and D. S. Weld. “Polyjuice: generating counterfactuals for explaining, evaluating, and improving models”. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics. 2021. \n[Yan+17] H. Yan, Y. Ding, P. Li, Q. Wang, Y. Xu, and W. Zuo. Mind the Class Weight Bias: Weighted Maximum Mean Discrepancy for Unsupervised Domain Adaptation. 2017. arXiv: 1705.00609 [cs.CV]. \n[Zha+13] K. Zhang, B. Scholkopf, K. Muandet, and Z. Wang. “Domain adaptation under target ¨ and conditional shift”. In: Proceedings of the 30th International Conference on Machine Learning. 2013. ",
1283
+ "bbox": [
1284
+ 171,
1285
+ 266,
1286
+ 826,
1287
+ 898
1288
+ ],
1289
+ "page_idx": 10
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "",
1294
+ "bbox": [
1295
+ 173,
1296
+ 63,
1297
+ 826,
1298
+ 910
1299
+ ],
1300
+ "page_idx": 11
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "",
1305
+ "bbox": [
1306
+ 168,
1307
+ 90,
1308
+ 826,
1309
+ 273
1310
+ ],
1311
+ "page_idx": 12
1312
+ }
1313
+ ]
parse/train/BdKxQp0iBi8/BdKxQp0iBi8_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BdKxQp0iBi8/BdKxQp0iBi8_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByfXe2C5tm/ByfXe2C5tm.md ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NLPROLOG: REASONING WITH WEAK UNIFICATION FOR NATURAL LANGUAGE QUESTION ANSWERING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Symbolic logic allows practitioners to build systems that perform rule-based reasoning which is interpretable and which can easily be augmented with prior knowledge. However, such systems are traditionally difficult to apply to problems involving natural language due to the large linguistic variability of language. Currently, most work in natural language processing focuses on neural networks which learn distributed representations of words and their composition, thereby performing well in the presence of large linguistic variability. We propose to reap the benefits of both approaches by applying a combination of neural networks and logic programming to natural language question answering. We propose to employ an external, nondifferentiable Prolog prover which utilizes a similarity function over pretrained sentence encoders. We fine-tune these representations via Evolution Strategies with the goal of multi-hop reasoning on natural language. This allows us to create a system that can apply rule-based reasoning to natural language and induce domainspecific natural language rules from training data. We evaluate the proposed system on two different question answering tasks, showing that it complements two very strong baselines – BIDAF (Seo et al., 2016a) and FASTQA (Weissenborn et al., 2017) – and outperforms both when used in an ensemble.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ We consider the problem of multi-hop reasoning on natural language input. For instance, consider the statements Socrates was born in Athens and Athens belongs to Greece, together with the question Where was Socrates born? There are two obvious answers following from the given statements: Athens and Greece. While Athens follows directly from the single statement Socrates was born in Athens, deducing Greece requires a reader to combine both provided statements using the knowledge that a person that was born in a city, which is part of a country, was also born in the respective country.
12
+
13
+ Most recent work that addresses such challenges leverages deep learning based methods (Sukhbaatar et al., 2015; Peng et al., 2015; Seo et al., 2016b; Raison et al., 2018; Henaff et al., 2016; Kumar et al., 2016; Graves et al., 2016; Dhingra et al., 2018), capable of dealing with the linguistic variability and ambiguity of natural language text. However, the black-box nature of neural networks makes it hard to interpret the exact reasoning steps leading to a prediction (local interpretation), as well as the induced model (global interpretation).
14
+
15
+ Logic programming languages like Prolog (Wielemaker et al., 2012), on the other hand, are built on the idea of using symbolic rules to reason about entities, which makes them highly interpretable both locally and globally. The capability to use user-defined logic rules allows users to incorporate external knowledge in a straightforward manner. Unfortunately, because of their reliance on symbolic logic, systems built on logic programming need extensive preprocessing to account for the linguistic variability that comes with natural language (Moldovan et al., 2003).
16
+
17
+ We introduce NLPROLOG, a system which combines a symbolic reasoner and a rule-learning method with pretrained sentence representations to perform rule-based multi-hop reasoning on natural language input.1 Like inductive logic programming methods, it facilitates both global as well as local interpretation, and allows for straightforward integration of prior knowledge. Similarly to deep learning based approaches, it can be applied to natural language text without the need to transforming it to formal logic.
18
+
19
+ At the core of the proposed method is an external non-differentiable theorem prover which can take similarities between symbols into account. Specifically, we modify a Prolog interpreter to support weak-unification as proposed by Sessa (2002). To obtain similarities between symbols, we utilize sentence encoders initialized with pretrained sentence embeddings (Pagliardini et al., 2017) and then fine-tune these for a downstream question answering task via gradient-based optimization methods. Since the resulting system contains non-differentiable components, we propose using Evolution Strategies (ES) (Eiben et al., 2003) as a gradient estimator (Williams, 1992) for training the system – enabling us to fine-tune the sentence encoders and to learn domain-specific logic rules (e.g. that the relation is in is transitive) from natural language training data. This results in a system where training can be trivially parallelized, and which allows to change the logic formalism by simply exchanging the external prover without the need for an intricate re-implementation as an end-to-end differentiable function.
20
+
21
+ In summary, our main contributions are: a) we show how Prolog-like reasoning can be applied to natural language input by employing a combination of pretrained sentence embeddings, an external logic prover, and fine-tuning using Evolution Strategies, $b _ { . }$ ) we extend a Prolog interpreter with weak unification based on distributed representations, $c _ { . }$ ) we present Gradual Rule Learning (GRL), a training algorithm that allows the proposed system to learn First-Order Logic (FOL) rules from entailment, and $d$ ) we evaluate the proposed system on two different Question Answering (QA) datasets and demonstrate that its performance is on par with state-of-the-art neural QA models in many cases, while having different failure modes. This allows to build an ensemble of NLPROLOG and a neural QA model that outperforms all individual models.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Our work touches in general on weak-unification based fuzzy logic (Sessa, 2002) and focuses on multi-hop reasoning for QA, the combination of logic and distributed representations, and theorem proving for question answering.
26
+
27
+ Multi-hop Reasoning for QA. One prominent approach for enabling multi-hop reasoning in neural QA models is to iteratively update a query embedding by integrating information from embeddings of context sentences, usually using an attention mechanism and some form of recurrency (Sukhbaatar et al., 2015; Peng et al., 2015; Seo et al., 2016b; Raison et al., 2018). These models have achieved state-of-the-art results in a number of reasoning-focused QA tasks. Henaff et al. (2016) employ a differentiable memory structure that is updated each time a new piece of information (usually a sentence) is processed. The memory slots can be used to track the state of various entities, which can be considered as a form of temporal reasoning. Similarly, the Neural Turing Machine (Graves et al., 2016) and the Dynamic Memory Network (Kumar et al., 2016), which are built on differentiable memory structures, have been used to solve synthetic QA problems requiring multi-hop reasoning. Dhingra et al. (2018) modify an existing neural QA model to additionally incorporate coreference information provided by a coreference resolution model in a preprocessing step, which improves performance on QA problems requiring multi-hop reasoning.
28
+
29
+ All of the methods above perform reasoning more or less implicitly by updating latent vector representations, which makes an unambiguous interpretation of the exact reasoning steps difficult. Additionally, it is not obvious how a strong prior, like user-defined inference rules, could be imposed on the respective reasoning procedures. Besides, many of them have been evaluated only on artificially generated data sets and thus it is unclear how they perform when on data that involves natural linguistic variability.
30
+
31
+ Combination of FOL and Distributed Representations. Investigating the combination of formal logic and distributed representations has a long tradition, which is reviewed by Besold et al. (2017). Strongly related to our approach is the combination of Markov Logic Networks (Richardson & Domingos, 2006), Probabilistic Soft Logic (Bach et al., 2017), and word embeddings, which has been applied to Recognizing Textual Entailment (RTE) and Semantic Textual Similarity (STS) (Garrette et al., 2011; 2014; Beltagy et al., 2013; 2014), and improves upon baselines utilizing either only logic or only distributed representations.
32
+
33
+ An area in which neural multi-hop reasoning models have been thoroughly investigated is Knowledge Base Completion (Das et al., 2016; Cohen, 2016; Neelakantan et al., 2015; Das et al., 2017). While QA could be in principle modeled as a KB-completion task, the construction of a densely connected KB from text is far from trivial, due to the inherent ambiguity of natural language. Without any preprocessing, even the moderately sized QA tasks considered in this work would produce a very large and sparsely connected KB.
34
+
35
+ Closest to our approach is the Natural Theorem Prover (NTP) (Rocktäschel & Riedel, 2017), which obtains the final proof score for a statement by constructing a neural network that represents all possible proofs. The model is trained end-to-end using backward chaining and a differentiable unification operator. Since the number of possible proofs grows exponentially with the number of facts and rules, NTPs cannot scale even to moderately sized knowledge bases, and are thus not applicable to natural language problems in its current form. We circumvent this issue by using a non-differentiable prover and fine-tune the model using Evolution Strategies.
36
+
37
+ Theorem Proving for Question Answering. Our work is not the first to apply theorem proving to QA problems. Angeli et al. (2016) employ a system based on Natural Logic to search a large KB for a single statement that entails the candidate answer. This is somewhat orthogonal to our approach, as we aim to learn rules that combine multiple statements to answer a question.
38
+
39
+ More traditional systems like Watson (Ferrucci et al., 2010) or COGEX (Moldovan et al., 2003) utilize an integrated theorem prover, but require a transformation of the natural language input to logical form. In the case of COGEX, this improves the accuracy of the underlying system by $30 \%$ , and increases its interpretability. While this work is similar in spirit, we greatly simplify the preprocessing step by replacing the transformation of natural language to logic with the simpler approach of taking Open Information Extraction (Open IE) (Etzioni et al., 2008) textual patterns.
40
+
41
+ Fader et al. (2014) propose the OPENQA system that utilizes a mixture of handwritten and automatically obtained operators that are able to parse, paraphrase and rewrite queries, which allows them to perform large-scale QA on KBs that include Open IE triples. While this work shares the same goal – answering questions using facts extracted by Open IE – we choose a completely different approach to address the problem of linguistic variablity and focus on the combination of multiple facts by learning logical rules.
42
+
43
+ # 3 BACKGROUND
44
+
45
+ In the following, we review the background relevant for the custom Prolog engine employed by our method. Specifically, we briefly introduce Prolog’s backward chaining algorithm and unification procedure (Russell & Norvig, 2016). We assume basic knowledge of formal logic and logic programming.
46
+
47
+ In a nutshell, a Prolog program consists of a set of rules in the form of Horn clauses
48
+
49
+ $$
50
+ h ( f _ { 1 } ^ { h } , \ldots , f _ { n } ^ { h } ) \ : \ : p _ { 1 } ( f _ { 1 } ^ { 1 } , \ldots , f _ { m } ^ { 1 } ) \land \ldots \land p _ { B } ( f _ { 1 } ^ { B } , \ldots , f _ { l } ^ { B } ) ,
51
+ $$
52
+
53
+ where $h , p _ { i }$ are predicate symbols and $f _ { j } ^ { i }$ are either function (denoted in lower case) or variable (upper case) symbols. The domain of function symbols is denoted by $\mathcal { F }$ and the domain of predicate symbols by $\mathcal { P }$ . $h ( f _ { 1 } ^ { h } , \ldots , f _ { n } ^ { h } )$ is called the head and $p _ { 1 } \bigl ( f _ { 1 } ^ { 1 } , \ldots , f _ { m } ^ { 1 } \bigr ) \ \wedge \ \ldots \ \wedge \ p _ { B } \bigl ( f _ { 1 } ^ { B } , \ldots , \bar { f } _ { l } ^ { B } \bigr )$ the body of the rule. We call $B$ the body size of the rule and rules with a body size of zero are named atoms (short for atomic formula).2 If an atom does not contain any variable symbols it is termed fact. As in related work (Sessa, 2002; Julián-Iranzo et al., 2009), we disregard negation and disjunction.
54
+
55
+ The central procedure of Prolog is unification. It receives two atoms and attempts to find variable substitutions that make both atoms syntactically equal. For example, the input atoms country(Greece, Socrates) and country $( X , Y )$ result in the following variable substitution after unification: $\{ X / G r e e c e , Y / S o c r a t e s \}$ .
56
+
57
+ The proof algorithm of Prolog is called backward-chaining. It starts from a goal atom $g$ and attempts to prove it by applying suitable rules, thereby generating subgoals that are proved next. To find applicable rules, it attempts to unify $g$ with the heads of all available rules. If this unification succeeds, the resulting variable substitutions are applied to the atoms in the rule body and each of those atoms becomes a new subgoal. For instance, the application of the rule countr $\prime ( X , Y ) \Leftarrow b o r n \_ i n ( Y , X )$ to the goal country(Greece, Socrates) would yield the subgoal born_in(Socrates, Greece). Then the process is repeated for all subgoals until no subgoal is left, i.e., until all subgoals have been unified with a fact. The result of this procedure is a set of rule applications and variable substitutions called proof. Note, that the number of possible proofs is exponential in the number of predicate and entity symbols, as every rule might be used in the proof of each subgoal. Pseudo code for weak unification can be found in Appendix A.1 and we refer the reader to Russell & Norvig (2010) for more details. To apply standard Prolog to a NLP problem like QA, one would have to account for semantic similarities and ambiguities with extensive and error-prone preprocessing, e.g. when transforming the natural language input to logical form.
58
+
59
+ # 4 NLPROLOG
60
+
61
+ Our aim is to apply Prolog to natural language question answering where the same entity or relation can have different natural language surface forms. Thus, we replace the equality-based unification operator with similarity-based weak unification (Sessa, 2002), which allows to unify two symbols $x , y$ if they are sufficiently similar, as judged by a similarity function $\sim \theta$ parameterized by $\theta$ . Then, the result of unification also contains a proof success score $S$ that is the result of the symbols’ similarity and the previous success score $S ^ { \prime }$ : $S = \top ( x \sim y , S ^ { \prime } )$ , where $\top \in \{ \mathrm { m i n } , \cdot \}$ is an aggregation function. The result of backward-chaining with weak unification are (possibly) multiple proofs, each with an associated proof success score. NLPROLOG combines inference based on weak unification and distributed representations to allow reasoning on natural language statements. The natural language statements are first transformed to triples using Open IE (Etzioni et al., 2008). The symbols occurring in these triples and in the rules are then embedded into a vector space, which in turn is used to estimate similarities between symbols. The resulting similarity function is subsequently used to perform a proof and consequently obtain a proof success score $S$ . The proof success score is then utilized as a training signal for ES. An illustration of the process can be found in Fig. 1, where we visualize the interplay of the different components for our running example.
62
+
63
+ # 4.1 SIMILARITY COMPUTATION
64
+
65
+ We embed symbols using an encoder $\mathcal { E } _ { \theta } : \mathcal { F } \cup \mathcal { P } \mapsto \mathbb { R } ^ { d }$ parametrized by $\theta$ for entity and predicate symbols, where $d$ denotes the embedding size. The resulting embeddings are used to induce $\sim \theta$ $( \mathcal { \dot { F } } \cup \mathcal { P } ) ^ { 2 } \mapsto \mathbb { R }$ :
66
+
67
+ $$
68
+ x \sim _ { \theta } y = \frac { 1 + c o s ( \mathcal { E } _ { \theta } ( x ) , \mathcal { E } _ { \theta } ( y ) ) } { 2 }
69
+ $$
70
+
71
+ where cos denotes the cosine similarity between two vectors. There are alternative similarity functions such as Euclidean distance or RBF kernel, but in preliminary experiments we found cosine simlarity to work more robustly.
72
+
73
+ We use an encoder function that uses a embedding lookup table for predicate symbols and a different one for entities. All embeddings representing natural language phrases are populated with sentence vectors that were pretrained with SENT2VEC (Pagliardini et al., 2017). Additionally, we introduce a third lookup table for the predicate symbols of rules and goals, because semantics of goal or rule predicates might differ from the semantics of fact predicates even if they share the same surface form. For instance, the query $( X , p a r e n t , Y )$ could be interpreted either as (X, is the parent of, $Y$ ) or as (X, has the parent, Y) which are fundamentally different things.
74
+
75
+ # 4.2 FINE-TUNING THE ENCODER TO A DOWNSTREAM TASK
76
+
77
+ We propose to fine-tune the similarity function on a downstream task by updating the symbol embeddings. As NLPROLOG involves the non-differentiable proof search step, we cannot apply backpropagation for optimization. Instead, we propose to employ Evolution Strategies in conjunction with Adam (Kingma & Ba, 2014) to estimate the weight updates. ES recently showed good results for Reinforcement Learning problems in Salimans et al. (2017); Mania et al. (2018). More formally, the parameter update is computed as:
78
+
79
+ ![](images/e6c463178bdb0f3faaa5be7c882e363fdc3e665790d2ed68cdbfb26410667e64.jpg)
80
+ Figure 1: Overview of NLPROLOG. The components of NLPROLOG are depicted as ellipses, while inputs and outputs are drawn as squares. Phrases with red background are entities and blue ones are predicates.
81
+
82
+ $$
83
+ \theta _ { t + 1 } = \theta _ { t } + \frac { \alpha _ { t } } { N \sigma _ { J } ^ { t } } \sum _ { \stackrel { k = 1 } { \epsilon _ { k } \sim \mathcal { N } ( 0 , \sigma ) } } ^ { N } \left[ J ( \theta _ { t } + \epsilon _ { k } ) - J ( \theta _ { t } - \epsilon _ { k } ) \right] \epsilon _ { k }
84
+ $$
85
+
86
+ where $J ( \theta )$ is the reward obtained by $\theta$ , $\boldsymbol { \sigma } _ { J } ^ { t }$ is the standard deviation of all rewards obtained at time $t$ as proposed by Mania et al. (2018), and $\alpha _ { t }$ are adaptive learning rates selected by ADAM (Kingma & Ba, 2014). The standard deviation $\sigma$ of the distribution that is generating the perturbations is treated as a hyperparameter.
87
+
88
+ We train NLPROLOG with ES using a learning from entailment setting (Muggleton & Raedt, 1994), in which the model is trained to decide whether a Prolog program $\mathcal { R }$ entails the truth of a candidate triple $c$ . The objective of the model is to assign high probabilities $p ( c | \mathcal { R } ; \theta )$ to true candidate triples and low probabilities to false triples. To achieve this, we model the reward as $J ( \theta ) = y p ( c | \mathcal { R } ; \theta )$ , where $\bar { y \in \{ - 1 , 1 \} }$ is the gold label. To estimate $p ( c | \mathcal { R } ; \theta )$ , we exhaustively search for all proofs for the triple $c$ , up to a given depth $D$ which we treat as a hyperparameter. This search yields a number of proofs each with a success score $S _ { i }$ . We set $p ( c | \mathcal { R } ; \theta )$ to be the maximum of these scores $S _ { \operatorname* { m a x } } = \operatorname* { m a x } _ { i } S _ { i }$ .
89
+
90
+ # 4.3 GRADUAL RULE LEARNING
91
+
92
+ The reasoning process of NLPROLOG crucially depends on rules that describe the relations between predicates. While it is possible to write down rules in natural language, this approach is hardly scalable. Thus, we follow Rocktäschel & Riedel (2017) and use rule templates to perform Inductive Logic Programming (ILP) (Muggleton, 1991) which allows NLPROLOG to learn rules from training data. For this, a user has to define a set of rules with a given structure as input. Then, NLPROLOG randomly initializes the predicates of these rules. For instance, to induce a rule that can model transitivity, one would add a rule template of the form $p _ { 1 } ( X , Z ) p _ { 2 } ( X , Y ) \land p _ { 3 } ( Y , Z )$ , and NLPROLOG would instantiate multiple rules with randomly initialized embeddings for $p _ { 1 } , p _ { 2 }$ , and $p _ { 3 }$ . The exact number and structure of the rule templates is treated as a hyper-parameter. If not explicitly stated otherwise, the experiments were performed with the same set of rule templates containing two rules for each of the forms $p _ { 1 } ( X , { \bar { Y } } ) \Leftarrow p _ { 2 } ( X , Y )$ , $p _ { 1 } ( X , Y ) \Leftarrow p _ { 2 } ( Y , \bar { X _ { \lambda } } )$ and $p _ { 1 } ( X , Z ) { \overset { \vartriangle } { \Leftarrow } } p _ { 2 } ( X , Y ) \land p _ { 3 } ( Y , Z )$ .
93
+
94
+ In preliminary experiments, we observed that unification with such randomly initialized embeddings always leads to a stark drop of the proof success score. This implies in turn that proofs involving rule templates rarely yield the highest score $S _ { \mathrm { m a x } }$ and thus, might have no impact on the value of the reward function. Due to that, the expected gradient estimate for the rule embeddings is zero, and they will remain close to their initialization.
95
+
96
+ The main reason for this behavior is that the monotonicity of the aggregation functions implies that each sub-goal created by an application of a rule will only decrease the success score of the proof. Thus, all other things being equal, rules with a small number of body atoms (and facts in particular) will be preferred over more complex rules with a higher number of body atoms. Note that this problem is particularly severe in our setting where rules are initialized randomly while the remaining predicate symbols are instantiated using pretrained sentence embeddings.
97
+
98
+ We propose a Gradual Rule Learning (GRL) algorithm which counteracts this effect during training. GRL segments the training process into $B _ { \mathrm { m a x } } + 1$ phases, where $B _ { \mathrm { m a x } }$ is the maximum body size of all available rules. In the $k$ -th phase of GRL, only proofs which employ at least one rule with a body size of $B _ { \mathrm { m a x } } + 1 - k$ are considered to estimate $p ( t | F ; \theta )$ . Thus, it is guaranteed that in each training step in phase $k$ at least one rule with a body size of $B _ { \mathrm { m a x } } + 1 - k$ receives a training signal.
99
+
100
+ # 5 EVALUATION
101
+
102
+ We evaluate our method on two different QA data sets: BABI-1K-STATIC (Weston et al., 2015) and different subsets of WIKIHOP (Welbl et al., 2017). The used hyperparameter configurations can be found in Section B.
103
+
104
+ # 5.1 SUBSETS OF WIKIHOP
105
+
106
+ We evaluate on different subsets of WIKIHOP (Welbl et al., 2017), each containing a single query predicate. We consider the predicates publisher, developer, and country, because their semantics ensure that the annotated answer is unique and they contain a relatively high amount of questions that are annotated as requiring true multi-hop reasoning. For publisher, this yields 509 training and 54 validation questions, for developer 267 and 29, and for country 742 and 194. As the test set of WIKIHOP is not publicly available, and splitting the small train set would lead to a far too small validation set, we report scores for the validation set and refrain from hyperparameter optimization and early stopping.
107
+
108
+ Each data point consists of a query $p ( q , X )$ where $q$ is some query entity, $X$ is the entity that has to be predicted, $C$ is a list of candidates entities, $a \in C$ is an answer entity and $p \in$ {publisher, developer, country} is the query predicate. In addition, every query is accompanied by a set of support documents which can be used to decide which candidate is the correct answer. To transform the support documents to natural language triples, we use the Open IE system MINIE (Gashteovski et al., 2017). We use the publicly available version of $\mathbf { M N I E } ^ { 3 }$ in the dictionary mode, and use a list of all WIKIHOP candidate entities as our dictionary of multi-token entities.
109
+
110
+ Following Welbl et al. (2017), we use the two neural QA models BIDAF (Seo et al., 2016a) and FASTQA (Weissenborn et al., 2017) as baselines for the selected predicates of WIKIHOP. We employ the implementation provided by the QA framework $\mathrm { J A C K } ^ { 4 }$ (Weissenborn et al., 2018) with the same hyperparameters as used by Welbl et al. (2017) and train a separate model for each predicate. In order to compensate for the fact that both models are extractive QA models which cannot make use of the candidate entities, we additionally evaluate modified versions which transform both the predicted answer and all candidates to vectors using the wiki-unigrams model5 of SENT2VEC (Pagliardini et al., 2017). Consequently, we return the candidate entity which has the highest cosine similarity to the predicted entity.
111
+
112
+ # 5.2 BABI-1K-STATIC
113
+
114
+ We utilize a subset of BABI-1K to study the behavior of NLPROLOG in a very controlled environment. Note however, that the experiments on WIKIHOP are much more significant, as they involve natural linguistic variability. BABI-1K-STATIC consists of the tasks QA4,QA15,QA17, and QA18 from the BABI suite (Weston et al., 2015), each containing 1,000 training and 1,000 testing questions. These tasks were selected because, unlike the other tasks of BABI, they do not require reasoning about a dynamically changing world state, which is not supported by the current implementation of NLPROLOG. We automatically transform all statements and queries of the respective tasks to triples and use the resulting KB as input to NLPROLOG. We train and evaluate on each problem individually. The tasks QA4 and QA15 require entities as an output, thus we consider every entity that occurs at least once in any problem of the task as a candidate for all problems. Tasks QA17 and QA18 are binary classification tasks, and thus we determine the optimal threshold on the training set, after the training of NLPROLOG has finished.
115
+
116
+ We refrain from systematically comparing results on the individual BABI tasks to competing methods like Seo et al. (2016b); Peng et al. (2015); Dhingra et al. (2018); Henaff et al. (2016); Sukhbaatar et al. (2015), since our non-negligible preprocessing and evaluation on only four out of 20 tasks does not allow us to match the relevant evaluation protocols. We therefore utilize BABI-1K-STATIC only for ablation experiments, but note that NLPROLOG achieves similar or better accuracy values than the mentioned methods in all instances we studied, except on $Q A 4$ .
117
+
118
+ # 5.3 DEALING WITH CANDIDATES
119
+
120
+ All questions of WIKIHOP and some of BABI-1K-STATIC include a set of answer candidates $C$ . For those cases, we modify our reward function to leverage this information, taking inspiration from Bayesian Personalized Ranking (Rendle et al., 2009):
121
+
122
+ $$
123
+ J ( \theta ) = p ( a | \mathcal { R } ; \theta ) - \operatorname* { m a x } _ { c \in C \setminus \{ a \} } p ( c | \mathcal { R } ; \theta ) ,
124
+ $$
125
+
126
+ where $a \in C$ is the true answer.
127
+
128
+ We observed that this reward function does not work well with the minimum aggregation function. Therefore, we employ this modified reward only when using the product aggregation and utilize the reward described in Section 4.2 with the minimum aggregation.
129
+
130
+ # 5.4 RESULTS
131
+
132
+ The results for the selected predicates of WIKIHOP can be found in Table 1. While there is no single best performing model, NLPROLOG is outperformed by at least one neural QA model on every predicate. For country, this only holds true when considering the versions of the neural models that have been augmented to consider candidate entities. For all three predicates, only a single transitive rule is utilized across all validation questions. Since we observe a more diverse set of induced rules on BABI-1K, we partly attributed this lack of diverse rules to the multi-hop characteristic of the WIKIHOP data. It seems that NLPROLOG struggles to find meaningful rules for the predicates developer and publisher, which leads to very few proofs involving rules on the development set: 1 out of 54 for publisher and 2 out of 29 for developer, compared with 159 out of 194 for country. We partially attribute this to the fact, that the semantics of country suggest a straightforward rule (transitivity of location), which is not true for developer or publisher. Additionally, the annotations regarding the neccessity of multi-hop reasoning provided for the validation set (Welbl et al., 2017) suggest that publisher and developer contain significantly fewer training examples involving multi-hop reasoning.
133
+
134
+ Exemplary proofs generated by NLPROLOG on the predicates developer and country can be found in Fig. 3. As we are especially interested in assessing the capability for multi-hop reasoning, we additionally evaluate on a subset of problems which have been unanimously labelled as requiring multi-hop reasoning. On this subset of the development data, which is denoted as Countryhop (mh) in Table 1, NLPROLOG outperforms all other single models.
135
+
136
+ # 5.5 NEURAL QA AND NLPROLOG ENSEMBLE
137
+
138
+ If the proof of NLPROLOG producing the prediction does not employ any rules, the prediction is essentially the result of performing a simple nearest neighbor search among the embeddings of all fact triples. We hypothesize that the neural QA models FASTQA and BIDAF are better suited for finding the most predictive single support statement, which motivates an ensemble of a neural QA model and NLPROLOG. We built a system which predicts the output of NLPROLOG when it used at least one rule and the output of the neural QA model otherwise. This allows to employ the multihop reasoning of NLPROLOG when possible and to utilize the pattern matching capabilities of the neural QA models in the remaining cases. The results for these ensembles are given in the bottom part of Table 1. In all instances, ensembling a neural QA model with NLPROLOG improved upon all single models, indicating that they complement each other well. We analyze reasons for the success of this ensembling strategy in Section 5.6.
139
+
140
+ Table 1: Accuracy scores in percent for different predicates on the development set of WIKIHOP. country (mh) only considers the problems that have been unanimously judged to require multi-hop reasoning. The upper part lists single models and the bottom part ensembles.
141
+
142
+ <table><tr><td>Model</td><td>publisher</td><td>developer</td><td>country</td><td>country (mh)</td></tr><tr><td>BIDAF</td><td>66.67</td><td>65.52</td><td>53.09</td><td>53.19</td></tr><tr><td>FastQA</td><td>62.96</td><td>62.07</td><td>57.21</td><td>57.44</td></tr><tr><td>BIDAF-Sent2Vec</td><td>75.93</td><td>68.97</td><td>61.86</td><td>65.96</td></tr><tr><td>FastQA-Sent2Vec</td><td>75.93</td><td>58.62</td><td>64.95</td><td>65.96</td></tr><tr><td>NLProlog (ours)</td><td>51.85</td><td>48.28</td><td>63.92</td><td>68.09</td></tr><tr><td>BIDAF-Sent2Vec + NLProlog</td><td>77.78</td><td>72.41</td><td>65.46</td><td>70.21</td></tr><tr><td>FastQA-Sent2Vec + NLProlog</td><td>77.78</td><td>62.07</td><td>69.07</td><td>70.21</td></tr></table>
143
+
144
+ # 5.6 ERROR ANALYSIS
145
+
146
+ We conducted an extensive error analysis, in which we manually classified all errors of NLPROLOG on the selected WIKIHOP predicates into predefined categories. The results are depicted in Figure 2.
147
+
148
+ For the developer predicate, in the majority of cases, errors were caused by OPENIE during the fact extraction step: in all but one case, OPENIE did not produce the necessary facts, or a necessary facts was not stated in the support text, or there were multiple correct candidates and NLPROLOG selected the wrong one. As a consequence, for both the publisher and developer predicates, the majority of queries would not answerable, even when the necessary rules were correctly induced. The predictive accuracy was significantly higher for the country predicate, where errors were mostly due to entitities not having SENT2VEC embeddings and a few missing rules.
149
+
150
+ Fig. 2 indicates that FASTQA can produce the correct answer, even if crucial information is missing from the supporting documents. To analyze this further, we evaluated FASTQA and NLPROLOG on a test set of the country predicate in which all documents mentioning the query entity were removed. Remarkably, the accuracy of FASTQA increased by approximately $1 \%$ , while the accuracy of NLPROLOG decreased by approx. $1 1 \%$ .
151
+
152
+ Furthermore, we evaluated both FASTQA and NLPROLOG on the hard subset of country as defined by Sugawara et al. (2018): on these 62 problems which cannot be solved with a simple heuristic, NLPROLOG achieved an accuracy of $5 1 . { \bar { 6 } } 1 \%$ , as opposed to $4 6 . 7 7 \%$ by FASTQA.
153
+
154
+ We conjecture that – besides NLPROLOG’s multi-hop reasoning capability – this is one reason why the neural models and NLPROLOG complement each other nicely: neural models can compensate for missing information, while NLPROLOG is less susceptible for spurious correlations between the query and supporting texts. The complementary nature of both approaches is further supported by the error analysis, described in Fig. 4.
155
+
156
+ # 5.7 ABLATION EXPERIMENTS
157
+
158
+ We perform experiments on BABI-1K-STATIC to investigate the effect of the GRL training procedure. Specifically, we perform experiments on BABI-1K-STATIC with only the last phase of GRL (i.e. training without GRL), with the last and the penultimate phase, and with all three phases, corresponding to full GRL as we limit the rule complexity to two body atoms in rule templates. To maintain comparability between runs, we keep the number of SGD steps constant across all experiments.
159
+
160
+ ![](images/84a090321be673203bf5af7c84917979a70a09bb28ca2bb215b164e77262c9b5.jpg)
161
+ Figure 2: Results of the error analysis. The y-axis shows the number of errors per category: O(penIE) refers to a crucial information missing due to an error of the OpenIE tool, A(mbiguous) means that multiple candidates were correct and NLProlog chose one which was not labeled as the correct one, while I(nfo) refers to problems that are not answerable with the provided support texts. $R ( u l e )$ means that a required rule was not induced, and E(mbedding) implies that the answer was correctly deduced but received a lower score than an erroneous deduction of another candidate.
162
+
163
+ <table><tr><td></td><td>QA4</td><td>QA15</td><td>QA17</td><td>QA18</td></tr><tr><td>GRL phase 3 (no)</td><td>56.4</td><td>37.1</td><td>62.8</td><td>90.9</td></tr><tr><td>GRL phase 2+3</td><td>88.8</td><td>33.5</td><td>66.7</td><td>94.7</td></tr><tr><td>GRL phase 1+2+3 (full)</td><td>88.0</td><td>100.0</td><td>67.6</td><td>97.6</td></tr><tr><td>Gold Rules (Untrained)</td><td>100.0</td><td>100.0</td><td>73.2</td><td>92.0</td></tr><tr><td>Gold Rules (Trained)</td><td>100.0</td><td>100.0</td><td>84.8</td><td>98.1</td></tr><tr><td>No Rules (Trained)</td><td>60.0</td><td>32.8</td><td>63.0</td><td>90.4</td></tr><tr><td>Ten Templates</td><td>88.1</td><td>100.0</td><td>61.9</td><td>89.4</td></tr></table>
164
+
165
+ Table 2: Accuracies in percent of ablation experiments on BABI-1K-STATIC. The upper half examines the effectiveness of GRL, while the bottom results concern the effect of training and different choices of rules.
166
+
167
+ Additionally, we experiment with manually defined rules, which we deem sufficient for solving each of the four tasks. For these, we report results before and after training, as well as for a run without any rule templates. The accuracy scores for all experiments on BABI are provided in Table 2.
168
+
169
+ To assess the impact of the choice of rule templates, we evaluate NLPROLOG on bAbI-1k-static with a different set of rule templates containing two rules of the form $p _ { 1 } ( X , Y ) \Leftarrow p _ { 2 } ( X , Y )$ , four with the form $p _ { 1 } ( X , Y ) \Leftarrow p _ { 2 } ( Y , X )$ and another four for $p _ { 1 } ( X , Z ) \in p _ { 2 } ( X , Y ) \land p _ { 3 } ( Y , Z )$ .
170
+
171
+ Clearly, the full GRL is necessary to obtain acceptable results in any of the problems. Interestingly, phase 1 of GRL does not contribute anything for QA4, which is perfectly solvable using only rules of body size 1. On the other hand, QA15 and QA18 both require a rule of body size 2, which makes phase 1 strongly improve the results. Only for $Q A 1 7$ the results are inconclusive. Nevertheless, this indicates that GRL works as intended, with the earlier phases encouraging the induction of rules with a higher number of conjuncts in the body.
172
+
173
+ The results using manually defined rules suggest that even when sufficient rules are provided, training with ES is helpful nevertheless. Interestingly, the model using no rules is able to solve over $9 0 \%$ of the problems in $Q A I \&$ , indicating that this problem is not well suited for evaluating reasoning capabilities of QA models.
174
+
175
+ Using ten instead of six templates leads to worse performance on all BABI problems but QA15, which is solved perfectly with a much faster convergence rate. This result indicates that the choice of rule templates might be an important hyperparameter which should be optimized for a given problem.
176
+
177
+ # 6 DISCUSSION AND FUTURE WORK
178
+
179
+ We have developed NLPROLOG, a system that is able to perform rule-based reasoning on natural language input, and can learn domain-specific natural language rules from training data. To this end, we have proposed to combine a symbolic prover with pretrained sentence embeddings and to train the resulting system with Evolution Strategies. We have evaluated NLPROLOG on two different QA tasks, showing that it can learn domain-specific rules and produce predictions which complement those of the two strong baselines BIDAF and FASTQA. This allows to build an ensemble of a baseline and NLPROLOG which outperforms all single models.
180
+
181
+ ![](images/7723a7462c403a1c25c15c96c367976e9d871a3b0467a3e7ebbd6acdeb635581.jpg)
182
+ Figure 3: Example proof trees generated by NLPROLOG. Each of the two trees shows an application of a transitive rule, the first for the predicate developer and the second for the predicate country. The rule templates are displayed with the most similar predicate. Note the noise introduced by the Open IE process, e.g. QUANT_0_1 and that entities and predicates do not need to match exactly.
183
+
184
+ While we have focused on a subset of First Order Logic in this work, the expressiveness of NLPROLOG could be extended by incorporating a different symbolic prover. For instance, a prover for temporal logic (Orgun & Ma, 1994) would allow to model temporal dynamics in natural language and enable us to evaluate NLPROLOG on the full set of BABI tasks. We are also interested in incorporating future improvements of symbolic provers, Open IE systems and pretrained sentence representations to further enhance the performance of NLPROLOG. To study the performance of the proposed method without the noise introduced by the Open IE step, it would be useful to evaluate it on tasks like knowledge graph reasoning. Additionally, it would be interesting to study the behavior of NLPROLOG in the presence of multiple WIKIHOP query predicates.
185
+
186
+ # REFERENCES
187
+
188
+ Gabor Angeli, Neha Nayak, and Christopher D Manning. Combining natural logic and shallow reasoning for question answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 442–452, 2016.
189
+
190
+ Stephen H. Bach, Matthias Broecheler, Bert Huang, and Lise Getoor. Hinge-loss markov random fields and probabilistic soft logic. Journal of Machine Learning Research, 18:109:1–109:67, 2017.
191
+
192
+ Islam Beltagy, Cuong Chau, Gemma Boleda, Dan Garrette, Katrin Erk, and Raymond Mooney. Montague meets markov: Deep semantics with probabilistic logical form. In Second Joint Conference on Lexical and Computational Semantics $( ^ { * } S E M )$ , Volume 1: Proceedings of the Main Conference and the Shared Task: Semantic Textual Similarity, volume 1, pp. 11–21, 2013.
193
+
194
+ Islam Beltagy, Katrin Erk, and Raymond Mooney. Probabilistic soft logic for semantic textual similarity. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1210–1219, 2014.
195
+
196
+ Tarek R Besold, Artur d’Avila Garcez, Sebastian Bader, Howard Bowman, Pedro Domingos, Pascal Hitzler, Kai-Uwe Kühnberger, Luis C Lamb, Daniel Lowd, Priscila Machado Vieira Lima, et al. Neural-symbolic learning and reasoning: A survey and interpretation. arXiv preprint arXiv:1711.03902, 2017.
197
+
198
+ William W Cohen. Tensorlog: A differentiable deductive database. arXiv preprint arXiv:1605.06523, 2016.
199
+
200
+ Rajarshi Das, Arvind Neelakantan, David Belanger, and Andrew McCallum. Chains of reasoning over entities, relations, and text using recurrent neural networks. arXiv preprint arXiv:1607.01426, 2016.
201
+
202
+ Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. arXiv preprint arXiv:1711.05851, 2017.
203
+
204
+ Bhuwan Dhingra, Qiao Jin, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Neural models for reasoning over multiple mentions using coreference. arXiv preprint arXiv:1804.05922, 2018.
205
+
206
+ Agoston E Eiben, James E Smith, et al. Introduction to evolutionary computing, volume 53. Springer, 2003.
207
+
208
+ Oren Etzioni, Michele Banko, Stephen Soderland, and Daniel S. Weld. Open information extraction from the web. Commun. ACM, 51(12):68–74, 2008. doi: 10.1145/1409360.1409378.
209
+
210
+ Anthony Fader, Luke Zettlemoyer, and Oren Etzioni. Open question answering over curated and extracted knowledge bases. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’14, pp. 1156–1165, New York, NY, USA, 2014. ACM.
211
+
212
+ David Ferrucci, Eric Brown, Jennifer Chu-Carroll, James Fan, David Gondek, Aditya A Kalyanpur, Adam Lally, J William Murdock, Eric Nyberg, John Prager, and Others. Building watson: An overview of the DeepQA project. AI magazine, 31(3):59–79, 2010.
213
+
214
+ Hervé Gallaire and Jack Minker (eds.). Logic and Data Bases, Symposium on Logic and Data Bases, Centre d’études et de recherches de Toulouse, 1977, Advances in Data Base Theory, New York, 1978. Plemum Press. ISBN 0-306-40060-X.
215
+
216
+ Dan Garrette, Katrin Erk, and Raymond Mooney. Integrating logical representations with probabilistic information using markov logic. In Proceedings of the Ninth International Conference on Computational Semantics, pp. 105–114. Association for Computational Linguistics, 2011.
217
+
218
+ Dan Garrette, Katrin Erk, and Raymond Mooney. A formal approach to linking logical form and vector-space lexical semantics. In Computing meaning, pp. 27–48. Springer, 2014.
219
+
220
+ Kiril Gashteovski, Rainer Gemulla, and Luciano Del Corro. Minie: minimizing facts in open information extraction. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 2630–2640, 2017.
221
+
222
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. ´ Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016.
223
+
224
+ Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016.
225
+
226
+ Pascual Julián-Iranzo, Clemente Rubio-Manzano, and Juan Gallardo-Casero. Bousi prolog: a prolog extension language for flexible query answering. Electron. Notes Theor. Comput. Sci., 248 (Supplement C):131–147, August 2009.
227
+
228
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
229
+
230
+ Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In International Conference on Machine Learning, pp. 1378–1387, 2016.
231
+
232
+ Horia Mania, Aurelia Guy, and Benjamin Recht. Simple random search provides a competitive approach to reinforcement learning. arXiv preprint arXiv:1803.07055, 2018.
233
+
234
+ Dan Moldovan, Christine Clark, Sanda Harabagiu, and Steve Maiorano. COGEX: A logic prover for question answering. In Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology - Volume 1, NAACL ’03, pp. 87–93, Stroudsburg, PA, USA, 2003. Association for Computational Linguistics.
235
+
236
+ Stephen Muggleton. Inductive logic programming. New generation computing, 8(4):295–318, 1991.
237
+
238
+ Stephen Muggleton and Luc De Raedt. Inductive logic programming: Theory and methods. J. Log. Program., 19/20:629–679, 1994. doi: 10.1016/0743-1066(94)90035-3.
239
+
240
+ Arvind Neelakantan, Benjamin Roth, and Andrew McCallum. Compositional vector space models for knowledge base completion. arXiv preprint arXiv:1504.06662, 2015.
241
+
242
+ Mehmet A Orgun and Wanli Ma. An overview of temporal and modal logic programming. In Temporal logic, pp. 445–479. Springer, 1994.
243
+
244
+ Matteo Pagliardini, Prakhar Gupta, and Martin Jaggi. Unsupervised learning of sentence embeddings using compositional n-gram features. arXiv preprint arXiv:1703.02507, 2017.
245
+
246
+ Baolin Peng, Zhengdong Lu, Hang Li, and Kam-Fai Wong. Towards neural network-based reasoning. arXiv preprint arXiv:1508.05508, 2015.
247
+
248
+ Martin Raison, Pierre-Emmanuel Mazaré, Rajarshi Das, and Antoine Bordes. Weaver: Deep coencoding of questions and documents for machine reading. arXiv preprint arXiv:1804.10490, 2018.
249
+
250
+ Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, and Lars Schmidt-Thieme. BPR: bayesian personalized ranking from implicit feedback. In UAI 2009, Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, Montreal, QC, Canada, June 18-21, 2009, pp. 452–461, 2009.
251
+
252
+ Matthew Richardson and Pedro M. Domingos. Markov logic networks. Machine Learning, 62(1-2): 107–136, 2006.
253
+
254
+ Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, pp. 3788–3800, 2017.
255
+
256
+ Stuart J. Russell and Peter Norvig. Artificial Intelligence - A Modern Approach (3. internat. ed.). Pearson Education, 2010. ISBN 978-0-13-207148-2.
257
+
258
+ Stuart J Russell and Peter Norvig. Artificial intelligence: a modern approach. Malaysia; Pearson Education Limited„ 2016.
259
+
260
+ Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, March 2017.
261
+
262
+ Minjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. arXiv preprint arXiv:1611.01603, 2016a.
263
+
264
+ Minjoon Seo, Sewon Min, Ali Farhadi, and Hannaneh Hajishirzi. Query-reduction networks for question answering. arXiv preprint arXiv:1606.04582, 2016b.
265
+
266
+ Maria I Sessa. Approximate reasoning by similarity-based sld resolution. Theoretical computer science, 275(1-2):389–426, 2002.
267
+
268
+ Saku Sugawara, Kentaro Inui, Satoshi Sekine, and Akiko Aizawa. What makes reading comprehension questions easier? August 2018.
269
+
270
+ Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In Advances in neural information processing systems, pp. 2440–2448, 2015.
271
+
272
+ Dirk Weissenborn, Georg Wiese, and Laura Seiffe. Fastqa: A simple and efficient neural architecture for question answering. arxiv preprint. arXiv preprint arXiv:1703.04816, 2017.
273
+
274
+ Dirk Weissenborn, Pasquale Minervini, Isabelle Augenstein, Johannes Welbl, Tim Rocktäschel, Matko Bosnjak, Jeff Mitchell, Thomas Demeester, Tim Dettmers, Pontus Stenetorp, and Sebastian Riedel. Jack the reader - A machine reading framework. In Proceedings of ACL 2018, Melbourne, Australia, July 15-20, 2018, System Demonstrations, pp. 25–30, 2018.
275
+
276
+ Johannes Welbl, Pontus Stenetorp, and Sebastian Riedel. Constructing datasets for multi-hop reading comprehension across documents. arXiv preprint arXiv:1710.06481, 2017.
277
+
278
+ Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015.
279
+
280
+ Jan Wielemaker, Tom Schrijvers, Markus Triska, and Torbjörn Lager. SWI-Prolog. Theory and Practice of Logic Programming, 12(1-2):67–96, 2012. ISSN 1471-0684.
281
+
282
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
283
+
284
+ A ALGORITHMS
285
+
286
+ # A.1 WEAK UNIFICATION
287
+
288
+ fun unify $( x , y , \theta , S )$
289
+
290
+ #
291
+
292
+ $x$ : function $f ( \dots ) \mid$ atom $p ( \dots ) \mid$ variable $\mid$ list $x _ { 1 } : : x _ { 2 } : : \ldots : : x _ { n }$ $y$ : function $f ^ { \prime } ( \dots ) \mid$ atom $p ^ { \prime } ( \ldots ) \mid$ variable $|$ list $y _ { 1 } : : y _ { 2 } : : \dots : : y _ { m }$ $\theta$ : current substitutions, default $= \{ \}$
293
+ $S$ : current success score, default $= 1 . 0$
294
+
295
+ Output: (Unifying substitution $\theta ^ { \prime }$ or failure, Updated success score $S ^ { \prime }$ ) if $\theta =$ failure then return (failure, 0) else if $S < \lambda$ then return (failure, 0) else if $x = y$ then return $( \theta , S )$ else if $x$ is Var then return unify $_ - \nu a r ( x , y , \theta , S )$ else if $y$ is Var then return unify_ $\nu a r ( y , x , \theta , S )$ else if $x$ is $f ( x _ { 1 } , \ldots , x _ { n } )$ , y is $f ^ { \prime } ( y _ { 1 } , \ldots , y _ { n } )$ , and $f \sim f ^ { \prime } \geq \lambda$ then $S ^ { \prime } : = S \wedge f \sim f ^ { \prime }$ return uni $\mathfrak { f } ( x _ { 1 } : : \dots : : x _ { n } , y _ { 1 } : : \dots : : y _ { n } , \theta , S ^ { \prime } )$ end else if $x$ is $p ( x _ { 1 } , \ldots , x _ { n } )$ , y is $p ^ { \prime } ( y _ { 1 } , \ldots , y _ { n } )$ , and $p \sim p ^ { \prime } \ge \lambda$ then $S ^ { \prime } : = S \wedge f \sim f ^ { \prime }$ return unif $\nu ( x _ { 1 } : : \ldots : : x _ { n } , y _ { 1 } : : \ldots : : y _ { n } , \theta , S ^ { \prime } )$ end else if $x$ is $x _ { 1 } : : \ldots : : x _ { n }$ and $y$ is $y _ { 1 } : : \ldots : : y _ { n }$ then $( \theta ^ { \prime } , S ^ { \prime } ) : = u n i f y ( x _ { 1 } , y _ { 1 } , \theta , S )$ $\mathbf { r e t u r n } u n i f y ( x _ { 2 } : : \dots : : x _ { n } , y _ { 2 } : : \dots : : y _ { n } , \theta ^ { \prime } , S ^ { \prime } )$ end else if $x$ is empty list and $y$ is empty list then return $( \theta , S )$ else return (failure, 0) un unify_va $r ( v , o , \theta , S )$ if $\{ \nu / \nu a l \} \in \theta$ then return unify $( \nu a l , o , \theta , S )$ else if $\{ o / \nu a l \} \in \theta$ then return unif $\dot { y } ( \nu a r , \nu a l , \theta , S )$ else return $( \bar { \{ } v / o \} + \theta , S )$
296
+
297
+ Algorithm 1: The weak unification algorithm in Spyrolog without occurs check
298
+
299
+ # A.2 RUNTIME OF PROOF SEARCH
300
+
301
+ The worst case complexity vanilla logic programming is exponential in the depth of the proof (Russell & Norvig, 2010). However, in our case this is a particular problem because weak unification requires the prover to attempt unification between all entity/predicate symbols.
302
+
303
+ To keep things tractable, NLPROLOG only attempts to unify symbols with a similarity greater than some user-defined threshold $\lambda$ . Furthermore, in the search step for one statement $q$ , for the rest of the search, $\lambda$ is set to $\lambda : = \operatorname* { m a x } ( \lambda , S )$ whenever a proof for $q$ with success score $S$ is found. Due to the monotonicity of the employed aggregation functions, this allows to prune the search tree without losing the guarantee to find the proof yielding the maximum success score. We found this optimization to be crucial to make the proof search scale for the studied wikihop predicates.
304
+
305
+ # B HYPERPARAMETER CONFIGURATION
306
+
307
+ On BABI-1K we optimize the embeddings of predicate symbols of rules and query triples, as well as of entities. WIKIHOP has a large number of unique entity symbols and thus, optimizing their embeddings is prohibitive. Thus, we only train the predicate symbols of rules and query triples on this data set. The embeddings for entities and predicate symbols of fact and query triples are initialized using the WIKI-UNIGRAMS model of SENT2VEC, while the embeddings of rule predicates are intialized by uniformly sampling from the interval $[ - \frac { 1 } { \sqrt { 6 0 0 } } , \frac { 1 } { \sqrt { 6 0 0 } } ]$ . All experiments were performed with the same set of rule templates containing two rules for each of the forms $p ( X , Y ) \Leftarrow q ( X , Y )$ , $p ( X , Y ) \Leftarrow q ( Y , X )$ and $p ( X , Z ) \Leftarrow q ( X , Y ) \wedge r ( Y , Z )$ and set the similarity threshold $\lambda$ to 0.3. At each optimization step, we evaluate 100 perturbations sampled from $\mathcal { N } ( 0 , 0 . 0 4 )$ on a mini-batch of 16 training problems and use all of the directions in the generation of the next weight vector. If not stated otherwise, we use GRL with three phases training for 500 mini-batches in each phase. For the predicates publisher and developer, we used 1,000 mini-batches in the final phase of GRL. To further encourage rule usage, we use the minimum aggregation function in all but the last phases of GRL, in which we switch to product.
308
+
309
+ # C ERROR SETS
310
+
311
+ ![](images/8ed0a056d6d6697c5278a4b2b4a83f050042fb18571dfeb6c97d3c56fb6ab74a.jpg)
312
+ Figure 4: Venn diagram of the error sets per predicate.
parse/train/ByfXe2C5tm/ByfXe2C5tm_content_list.json ADDED
@@ -0,0 +1,1796 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "NLPROLOG: REASONING WITH WEAK UNIFICATION FOR NATURAL LANGUAGE QUESTION ANSWERING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 174,
20
+ 398,
21
+ 202
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 238,
32
+ 544,
33
+ 253
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Symbolic logic allows practitioners to build systems that perform rule-based reasoning which is interpretable and which can easily be augmented with prior knowledge. However, such systems are traditionally difficult to apply to problems involving natural language due to the large linguistic variability of language. Currently, most work in natural language processing focuses on neural networks which learn distributed representations of words and their composition, thereby performing well in the presence of large linguistic variability. We propose to reap the benefits of both approaches by applying a combination of neural networks and logic programming to natural language question answering. We propose to employ an external, nondifferentiable Prolog prover which utilizes a similarity function over pretrained sentence encoders. We fine-tune these representations via Evolution Strategies with the goal of multi-hop reasoning on natural language. This allows us to create a system that can apply rule-based reasoning to natural language and induce domainspecific natural language rules from training data. We evaluate the proposed system on two different question answering tasks, showing that it complements two very strong baselines – BIDAF (Seo et al., 2016a) and FASTQA (Weissenborn et al., 2017) – and outperforms both when used in an ensemble. ",
40
+ "bbox": [
41
+ 233,
42
+ 271,
43
+ 766,
44
+ 506
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 536,
55
+ 334,
56
+ 553
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "We consider the problem of multi-hop reasoning on natural language input. For instance, consider the statements Socrates was born in Athens and Athens belongs to Greece, together with the question Where was Socrates born? There are two obvious answers following from the given statements: Athens and Greece. While Athens follows directly from the single statement Socrates was born in Athens, deducing Greece requires a reader to combine both provided statements using the knowledge that a person that was born in a city, which is part of a country, was also born in the respective country. ",
63
+ "bbox": [
64
+ 173,
65
+ 569,
66
+ 825,
67
+ 666
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Most recent work that addresses such challenges leverages deep learning based methods (Sukhbaatar et al., 2015; Peng et al., 2015; Seo et al., 2016b; Raison et al., 2018; Henaff et al., 2016; Kumar et al., 2016; Graves et al., 2016; Dhingra et al., 2018), capable of dealing with the linguistic variability and ambiguity of natural language text. However, the black-box nature of neural networks makes it hard to interpret the exact reasoning steps leading to a prediction (local interpretation), as well as the induced model (global interpretation). ",
74
+ "bbox": [
75
+ 174,
76
+ 674,
77
+ 825,
78
+ 757
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Logic programming languages like Prolog (Wielemaker et al., 2012), on the other hand, are built on the idea of using symbolic rules to reason about entities, which makes them highly interpretable both locally and globally. The capability to use user-defined logic rules allows users to incorporate external knowledge in a straightforward manner. Unfortunately, because of their reliance on symbolic logic, systems built on logic programming need extensive preprocessing to account for the linguistic variability that comes with natural language (Moldovan et al., 2003). ",
85
+ "bbox": [
86
+ 174,
87
+ 763,
88
+ 825,
89
+ 847
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We introduce NLPROLOG, a system which combines a symbolic reasoner and a rule-learning method with pretrained sentence representations to perform rule-based multi-hop reasoning on natural language input.1 Like inductive logic programming methods, it facilitates both global as well as local interpretation, and allows for straightforward integration of prior knowledge. Similarly to deep learning based approaches, it can be applied to natural language text without the need to transforming it to formal logic. ",
96
+ "bbox": [
97
+ 178,
98
+ 854,
99
+ 823,
100
+ 897
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 178,
109
+ 103,
110
+ 821,
111
+ 145
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "At the core of the proposed method is an external non-differentiable theorem prover which can take similarities between symbols into account. Specifically, we modify a Prolog interpreter to support weak-unification as proposed by Sessa (2002). To obtain similarities between symbols, we utilize sentence encoders initialized with pretrained sentence embeddings (Pagliardini et al., 2017) and then fine-tune these for a downstream question answering task via gradient-based optimization methods. Since the resulting system contains non-differentiable components, we propose using Evolution Strategies (ES) (Eiben et al., 2003) as a gradient estimator (Williams, 1992) for training the system – enabling us to fine-tune the sentence encoders and to learn domain-specific logic rules (e.g. that the relation is in is transitive) from natural language training data. This results in a system where training can be trivially parallelized, and which allows to change the logic formalism by simply exchanging the external prover without the need for an intricate re-implementation as an end-to-end differentiable function. ",
118
+ "bbox": [
119
+ 174,
120
+ 154,
121
+ 826,
122
+ 318
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In summary, our main contributions are: a) we show how Prolog-like reasoning can be applied to natural language input by employing a combination of pretrained sentence embeddings, an external logic prover, and fine-tuning using Evolution Strategies, $b _ { . }$ ) we extend a Prolog interpreter with weak unification based on distributed representations, $c _ { . }$ ) we present Gradual Rule Learning (GRL), a training algorithm that allows the proposed system to learn First-Order Logic (FOL) rules from entailment, and $d$ ) we evaluate the proposed system on two different Question Answering (QA) datasets and demonstrate that its performance is on par with state-of-the-art neural QA models in many cases, while having different failure modes. This allows to build an ensemble of NLPROLOG and a neural QA model that outperforms all individual models. ",
129
+ "bbox": [
130
+ 174,
131
+ 325,
132
+ 825,
133
+ 450
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 473,
144
+ 344,
145
+ 489
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Our work touches in general on weak-unification based fuzzy logic (Sessa, 2002) and focuses on multi-hop reasoning for QA, the combination of logic and distributed representations, and theorem proving for question answering. ",
152
+ "bbox": [
153
+ 174,
154
+ 506,
155
+ 823,
156
+ 549
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Multi-hop Reasoning for QA. One prominent approach for enabling multi-hop reasoning in neural QA models is to iteratively update a query embedding by integrating information from embeddings of context sentences, usually using an attention mechanism and some form of recurrency (Sukhbaatar et al., 2015; Peng et al., 2015; Seo et al., 2016b; Raison et al., 2018). These models have achieved state-of-the-art results in a number of reasoning-focused QA tasks. Henaff et al. (2016) employ a differentiable memory structure that is updated each time a new piece of information (usually a sentence) is processed. The memory slots can be used to track the state of various entities, which can be considered as a form of temporal reasoning. Similarly, the Neural Turing Machine (Graves et al., 2016) and the Dynamic Memory Network (Kumar et al., 2016), which are built on differentiable memory structures, have been used to solve synthetic QA problems requiring multi-hop reasoning. Dhingra et al. (2018) modify an existing neural QA model to additionally incorporate coreference information provided by a coreference resolution model in a preprocessing step, which improves performance on QA problems requiring multi-hop reasoning. ",
163
+ "bbox": [
164
+ 174,
165
+ 565,
166
+ 825,
167
+ 746
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "All of the methods above perform reasoning more or less implicitly by updating latent vector representations, which makes an unambiguous interpretation of the exact reasoning steps difficult. Additionally, it is not obvious how a strong prior, like user-defined inference rules, could be imposed on the respective reasoning procedures. Besides, many of them have been evaluated only on artificially generated data sets and thus it is unclear how they perform when on data that involves natural linguistic variability. ",
174
+ "bbox": [
175
+ 174,
176
+ 753,
177
+ 825,
178
+ 837
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Combination of FOL and Distributed Representations. Investigating the combination of formal logic and distributed representations has a long tradition, which is reviewed by Besold et al. (2017). Strongly related to our approach is the combination of Markov Logic Networks (Richardson & Domingos, 2006), Probabilistic Soft Logic (Bach et al., 2017), and word embeddings, which has been applied to Recognizing Textual Entailment (RTE) and Semantic Textual Similarity (STS) (Garrette et al., 2011; 2014; Beltagy et al., 2013; 2014), and improves upon baselines utilizing either only logic or only distributed representations. ",
185
+ "bbox": [
186
+ 176,
187
+ 854,
188
+ 825,
189
+ 924
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "",
196
+ "bbox": [
197
+ 171,
198
+ 103,
199
+ 823,
200
+ 132
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "An area in which neural multi-hop reasoning models have been thoroughly investigated is Knowledge Base Completion (Das et al., 2016; Cohen, 2016; Neelakantan et al., 2015; Das et al., 2017). While QA could be in principle modeled as a KB-completion task, the construction of a densely connected KB from text is far from trivial, due to the inherent ambiguity of natural language. Without any preprocessing, even the moderately sized QA tasks considered in this work would produce a very large and sparsely connected KB. ",
207
+ "bbox": [
208
+ 174,
209
+ 138,
210
+ 825,
211
+ 222
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Closest to our approach is the Natural Theorem Prover (NTP) (Rocktäschel & Riedel, 2017), which obtains the final proof score for a statement by constructing a neural network that represents all possible proofs. The model is trained end-to-end using backward chaining and a differentiable unification operator. Since the number of possible proofs grows exponentially with the number of facts and rules, NTPs cannot scale even to moderately sized knowledge bases, and are thus not applicable to natural language problems in its current form. We circumvent this issue by using a non-differentiable prover and fine-tune the model using Evolution Strategies. ",
218
+ "bbox": [
219
+ 174,
220
+ 229,
221
+ 825,
222
+ 327
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Theorem Proving for Question Answering. Our work is not the first to apply theorem proving to QA problems. Angeli et al. (2016) employ a system based on Natural Logic to search a large KB for a single statement that entails the candidate answer. This is somewhat orthogonal to our approach, as we aim to learn rules that combine multiple statements to answer a question. ",
229
+ "bbox": [
230
+ 174,
231
+ 342,
232
+ 825,
233
+ 397
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "More traditional systems like Watson (Ferrucci et al., 2010) or COGEX (Moldovan et al., 2003) utilize an integrated theorem prover, but require a transformation of the natural language input to logical form. In the case of COGEX, this improves the accuracy of the underlying system by $30 \\%$ , and increases its interpretability. While this work is similar in spirit, we greatly simplify the preprocessing step by replacing the transformation of natural language to logic with the simpler approach of taking Open Information Extraction (Open IE) (Etzioni et al., 2008) textual patterns. ",
240
+ "bbox": [
241
+ 174,
242
+ 404,
243
+ 825,
244
+ 488
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "Fader et al. (2014) propose the OPENQA system that utilizes a mixture of handwritten and automatically obtained operators that are able to parse, paraphrase and rewrite queries, which allows them to perform large-scale QA on KBs that include Open IE triples. While this work shares the same goal – answering questions using facts extracted by Open IE – we choose a completely different approach to address the problem of linguistic variablity and focus on the combination of multiple facts by learning logical rules. ",
251
+ "bbox": [
252
+ 174,
253
+ 494,
254
+ 825,
255
+ 579
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "3 BACKGROUND ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 598,
266
+ 326,
267
+ 614
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "In the following, we review the background relevant for the custom Prolog engine employed by our method. Specifically, we briefly introduce Prolog’s backward chaining algorithm and unification procedure (Russell & Norvig, 2016). We assume basic knowledge of formal logic and logic programming. ",
274
+ "bbox": [
275
+ 174,
276
+ 628,
277
+ 825,
278
+ 685
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "In a nutshell, a Prolog program consists of a set of rules in the form of Horn clauses ",
285
+ "bbox": [
286
+ 176,
287
+ 690,
288
+ 723,
289
+ 705
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "equation",
295
+ "img_path": "images/2dbc1195efbe3cf60b35af4c611d68b6163a8b03b70740af25f7298006d262ba.jpg",
296
+ "text": "$$\nh ( f _ { 1 } ^ { h } , \\ldots , f _ { n } ^ { h } ) \\ : \\ : p _ { 1 } ( f _ { 1 } ^ { 1 } , \\ldots , f _ { m } ^ { 1 } ) \\land \\ldots \\land p _ { B } ( f _ { 1 } ^ { B } , \\ldots , f _ { l } ^ { B } ) ,\n$$",
297
+ "text_format": "latex",
298
+ "bbox": [
299
+ 289,
300
+ 709,
301
+ 705,
302
+ 728
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "where $h , p _ { i }$ are predicate symbols and $f _ { j } ^ { i }$ are either function (denoted in lower case) or variable (upper case) symbols. The domain of function symbols is denoted by $\\mathcal { F }$ and the domain of predicate symbols by $\\mathcal { P }$ . $h ( f _ { 1 } ^ { h } , \\ldots , f _ { n } ^ { h } )$ is called the head and $p _ { 1 } \\bigl ( f _ { 1 } ^ { 1 } , \\ldots , f _ { m } ^ { 1 } \\bigr ) \\ \\wedge \\ \\ldots \\ \\wedge \\ p _ { B } \\bigl ( f _ { 1 } ^ { B } , \\ldots , \\bar { f } _ { l } ^ { B } \\bigr )$ the body of the rule. We call $B$ the body size of the rule and rules with a body size of zero are named atoms (short for atomic formula).2 If an atom does not contain any variable symbols it is termed fact. As in related work (Sessa, 2002; Julián-Iranzo et al., 2009), we disregard negation and disjunction. ",
309
+ "bbox": [
310
+ 174,
311
+ 729,
312
+ 825,
313
+ 814
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "The central procedure of Prolog is unification. It receives two atoms and attempts to find variable substitutions that make both atoms syntactically equal. For example, the input atoms country(Greece, Socrates) and country $( X , Y )$ result in the following variable substitution after unification: $\\{ X / G r e e c e , Y / S o c r a t e s \\}$ . ",
320
+ "bbox": [
321
+ 174,
322
+ 819,
323
+ 825,
324
+ 877
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "The proof algorithm of Prolog is called backward-chaining. It starts from a goal atom $g$ and attempts to prove it by applying suitable rules, thereby generating subgoals that are proved next. To find applicable rules, it attempts to unify $g$ with the heads of all available rules. If this unification succeeds, the resulting variable substitutions are applied to the atoms in the rule body and each of those atoms becomes a new subgoal. For instance, the application of the rule countr $\\prime ( X , Y ) \\Leftarrow b o r n \\_ i n ( Y , X )$ to the goal country(Greece, Socrates) would yield the subgoal born_in(Socrates, Greece). Then the process is repeated for all subgoals until no subgoal is left, i.e., until all subgoals have been unified with a fact. The result of this procedure is a set of rule applications and variable substitutions called proof. Note, that the number of possible proofs is exponential in the number of predicate and entity symbols, as every rule might be used in the proof of each subgoal. Pseudo code for weak unification can be found in Appendix A.1 and we refer the reader to Russell & Norvig (2010) for more details. To apply standard Prolog to a NLP problem like QA, one would have to account for semantic similarities and ambiguities with extensive and error-prone preprocessing, e.g. when transforming the natural language input to logical form. ",
331
+ "bbox": [
332
+ 174,
333
+ 103,
334
+ 825,
335
+ 299
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "4 NLPROLOG ",
342
+ "text_level": 1,
343
+ "bbox": [
344
+ 174,
345
+ 319,
346
+ 303,
347
+ 334
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Our aim is to apply Prolog to natural language question answering where the same entity or relation can have different natural language surface forms. Thus, we replace the equality-based unification operator with similarity-based weak unification (Sessa, 2002), which allows to unify two symbols $x , y$ if they are sufficiently similar, as judged by a similarity function $\\sim \\theta$ parameterized by $\\theta$ . Then, the result of unification also contains a proof success score $S$ that is the result of the symbols’ similarity and the previous success score $S ^ { \\prime }$ : $S = \\top ( x \\sim y , S ^ { \\prime } )$ , where $\\top \\in \\{ \\mathrm { m i n } , \\cdot \\}$ is an aggregation function. The result of backward-chaining with weak unification are (possibly) multiple proofs, each with an associated proof success score. NLPROLOG combines inference based on weak unification and distributed representations to allow reasoning on natural language statements. The natural language statements are first transformed to triples using Open IE (Etzioni et al., 2008). The symbols occurring in these triples and in the rules are then embedded into a vector space, which in turn is used to estimate similarities between symbols. The resulting similarity function is subsequently used to perform a proof and consequently obtain a proof success score $S$ . The proof success score is then utilized as a training signal for ES. An illustration of the process can be found in Fig. 1, where we visualize the interplay of the different components for our running example. ",
354
+ "bbox": [
355
+ 174,
356
+ 351,
357
+ 825,
358
+ 559
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "4.1 SIMILARITY COMPUTATION ",
365
+ "text_level": 1,
366
+ "bbox": [
367
+ 176,
368
+ 577,
369
+ 406,
370
+ 590
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "We embed symbols using an encoder $\\mathcal { E } _ { \\theta } : \\mathcal { F } \\cup \\mathcal { P } \\mapsto \\mathbb { R } ^ { d }$ parametrized by $\\theta$ for entity and predicate symbols, where $d$ denotes the embedding size. The resulting embeddings are used to induce $\\sim \\theta$ $( \\mathcal { \\dot { F } } \\cup \\mathcal { P } ) ^ { 2 } \\mapsto \\mathbb { R }$ : ",
377
+ "bbox": [
378
+ 176,
379
+ 602,
380
+ 823,
381
+ 643
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "equation",
387
+ "img_path": "images/4cfde273aac8112af1ac6fcf5b0bf2b506871a8cb3d9ee7cbbf94d5a9168e57a.jpg",
388
+ "text": "$$\nx \\sim _ { \\theta } y = \\frac { 1 + c o s ( \\mathcal { E } _ { \\theta } ( x ) , \\mathcal { E } _ { \\theta } ( y ) ) } { 2 }\n$$",
389
+ "text_format": "latex",
390
+ "bbox": [
391
+ 387,
392
+ 643,
393
+ 609,
394
+ 674
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "where cos denotes the cosine similarity between two vectors. There are alternative similarity functions such as Euclidean distance or RBF kernel, but in preliminary experiments we found cosine simlarity to work more robustly. ",
401
+ "bbox": [
402
+ 178,
403
+ 678,
404
+ 821,
405
+ 719
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "We use an encoder function that uses a embedding lookup table for predicate symbols and a different one for entities. All embeddings representing natural language phrases are populated with sentence vectors that were pretrained with SENT2VEC (Pagliardini et al., 2017). Additionally, we introduce a third lookup table for the predicate symbols of rules and goals, because semantics of goal or rule predicates might differ from the semantics of fact predicates even if they share the same surface form. For instance, the query $( X , p a r e n t , Y )$ could be interpreted either as (X, is the parent of, $Y$ ) or as (X, has the parent, Y) which are fundamentally different things. ",
412
+ "bbox": [
413
+ 173,
414
+ 726,
415
+ 825,
416
+ 824
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "4.2 FINE-TUNING THE ENCODER TO A DOWNSTREAM TASK ",
423
+ "text_level": 1,
424
+ "bbox": [
425
+ 181,
426
+ 842,
427
+ 598,
428
+ 856
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "We propose to fine-tune the similarity function on a downstream task by updating the symbol embeddings. As NLPROLOG involves the non-differentiable proof search step, we cannot apply backpropagation for optimization. Instead, we propose to employ Evolution Strategies in conjunction with Adam (Kingma & Ba, 2014) to estimate the weight updates. ES recently showed good results for Reinforcement Learning problems in Salimans et al. (2017); Mania et al. (2018). More formally, the parameter update is computed as: ",
435
+ "bbox": [
436
+ 174,
437
+ 867,
438
+ 823,
439
+ 924
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "image",
445
+ "img_path": "images/e6c463178bdb0f3faaa5be7c882e363fdc3e665790d2ed68cdbfb26410667e64.jpg",
446
+ "image_caption": [
447
+ "Figure 1: Overview of NLPROLOG. The components of NLPROLOG are depicted as ellipses, while inputs and outputs are drawn as squares. Phrases with red background are entities and blue ones are predicates. "
448
+ ],
449
+ "image_footnote": [],
450
+ "bbox": [
451
+ 303,
452
+ 98,
453
+ 696,
454
+ 316
455
+ ],
456
+ "page_idx": 4
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "",
461
+ "bbox": [
462
+ 173,
463
+ 396,
464
+ 823,
465
+ 426
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "img_path": "images/de7c68a78589c9e992fffed698621e45aed7364dbc693853a9b53a7872f23c86.jpg",
472
+ "text": "$$\n\\theta _ { t + 1 } = \\theta _ { t } + \\frac { \\alpha _ { t } } { N \\sigma _ { J } ^ { t } } \\sum _ { \\stackrel { k = 1 } { \\epsilon _ { k } \\sim \\mathcal { N } ( 0 , \\sigma ) } } ^ { N } \\left[ J ( \\theta _ { t } + \\epsilon _ { k } ) - J ( \\theta _ { t } - \\epsilon _ { k } ) \\right] \\epsilon _ { k }\n$$",
473
+ "text_format": "latex",
474
+ "bbox": [
475
+ 305,
476
+ 431,
477
+ 691,
478
+ 484
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "where $J ( \\theta )$ is the reward obtained by $\\theta$ , $\\boldsymbol { \\sigma } _ { J } ^ { t }$ is the standard deviation of all rewards obtained at time $t$ as proposed by Mania et al. (2018), and $\\alpha _ { t }$ are adaptive learning rates selected by ADAM (Kingma & Ba, 2014). The standard deviation $\\sigma$ of the distribution that is generating the perturbations is treated as a hyperparameter. ",
485
+ "bbox": [
486
+ 173,
487
+ 489,
488
+ 826,
489
+ 546
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "We train NLPROLOG with ES using a learning from entailment setting (Muggleton & Raedt, 1994), in which the model is trained to decide whether a Prolog program $\\mathcal { R }$ entails the truth of a candidate triple $c$ . The objective of the model is to assign high probabilities $p ( c | \\mathcal { R } ; \\theta )$ to true candidate triples and low probabilities to false triples. To achieve this, we model the reward as $J ( \\theta ) = y p ( c | \\mathcal { R } ; \\theta )$ , where $\\bar { y \\in \\{ - 1 , 1 \\} }$ is the gold label. To estimate $p ( c | \\mathcal { R } ; \\theta )$ , we exhaustively search for all proofs for the triple $c$ , up to a given depth $D$ which we treat as a hyperparameter. This search yields a number of proofs each with a success score $S _ { i }$ . We set $p ( c | \\mathcal { R } ; \\theta )$ to be the maximum of these scores $S _ { \\operatorname* { m a x } } = \\operatorname* { m a x } _ { i } S _ { i }$ . ",
496
+ "bbox": [
497
+ 173,
498
+ 553,
499
+ 826,
500
+ 665
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "4.3 GRADUAL RULE LEARNING ",
507
+ "text_level": 1,
508
+ "bbox": [
509
+ 176,
510
+ 683,
511
+ 406,
512
+ 696
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "The reasoning process of NLPROLOG crucially depends on rules that describe the relations between predicates. While it is possible to write down rules in natural language, this approach is hardly scalable. Thus, we follow Rocktäschel & Riedel (2017) and use rule templates to perform Inductive Logic Programming (ILP) (Muggleton, 1991) which allows NLPROLOG to learn rules from training data. For this, a user has to define a set of rules with a given structure as input. Then, NLPROLOG randomly initializes the predicates of these rules. For instance, to induce a rule that can model transitivity, one would add a rule template of the form $p _ { 1 } ( X , Z ) p _ { 2 } ( X , Y ) \\land p _ { 3 } ( Y , Z )$ , and NLPROLOG would instantiate multiple rules with randomly initialized embeddings for $p _ { 1 } , p _ { 2 }$ , and $p _ { 3 }$ . The exact number and structure of the rule templates is treated as a hyper-parameter. If not explicitly stated otherwise, the experiments were performed with the same set of rule templates containing two rules for each of the forms $p _ { 1 } ( X , { \\bar { Y } } ) \\Leftarrow p _ { 2 } ( X , Y )$ , $p _ { 1 } ( X , Y ) \\Leftarrow p _ { 2 } ( Y , \\bar { X _ { \\lambda } } )$ and $p _ { 1 } ( X , Z ) { \\overset { \\vartriangle } { \\Leftarrow } } p _ { 2 } ( X , Y ) \\land p _ { 3 } ( Y , Z )$ . ",
519
+ "bbox": [
520
+ 173,
521
+ 708,
522
+ 825,
523
+ 876
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "In preliminary experiments, we observed that unification with such randomly initialized embeddings always leads to a stark drop of the proof success score. This implies in turn that proofs involving rule templates rarely yield the highest score $S _ { \\mathrm { m a x } }$ and thus, might have no impact on the value of the reward function. Due to that, the expected gradient estimate for the rule embeddings is zero, and they will remain close to their initialization. ",
530
+ "bbox": [
531
+ 174,
532
+ 882,
533
+ 823,
534
+ 924
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "",
541
+ "bbox": [
542
+ 174,
543
+ 103,
544
+ 823,
545
+ 132
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "The main reason for this behavior is that the monotonicity of the aggregation functions implies that each sub-goal created by an application of a rule will only decrease the success score of the proof. Thus, all other things being equal, rules with a small number of body atoms (and facts in particular) will be preferred over more complex rules with a higher number of body atoms. Note that this problem is particularly severe in our setting where rules are initialized randomly while the remaining predicate symbols are instantiated using pretrained sentence embeddings. ",
552
+ "bbox": [
553
+ 174,
554
+ 138,
555
+ 825,
556
+ 223
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "We propose a Gradual Rule Learning (GRL) algorithm which counteracts this effect during training. GRL segments the training process into $B _ { \\mathrm { m a x } } + 1$ phases, where $B _ { \\mathrm { m a x } }$ is the maximum body size of all available rules. In the $k$ -th phase of GRL, only proofs which employ at least one rule with a body size of $B _ { \\mathrm { m a x } } + 1 - k$ are considered to estimate $p ( t | F ; \\theta )$ . Thus, it is guaranteed that in each training step in phase $k$ at least one rule with a body size of $B _ { \\mathrm { m a x } } + 1 - k$ receives a training signal. ",
563
+ "bbox": [
564
+ 174,
565
+ 229,
566
+ 825,
567
+ 299
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "5 EVALUATION ",
574
+ "text_level": 1,
575
+ "bbox": [
576
+ 176,
577
+ 320,
578
+ 315,
579
+ 335
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "We evaluate our method on two different QA data sets: BABI-1K-STATIC (Weston et al., 2015) and different subsets of WIKIHOP (Welbl et al., 2017). The used hyperparameter configurations can be found in Section B. ",
586
+ "bbox": [
587
+ 174,
588
+ 352,
589
+ 825,
590
+ 393
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "5.1 SUBSETS OF WIKIHOP ",
597
+ "text_level": 1,
598
+ "bbox": [
599
+ 176,
600
+ 411,
601
+ 369,
602
+ 426
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "We evaluate on different subsets of WIKIHOP (Welbl et al., 2017), each containing a single query predicate. We consider the predicates publisher, developer, and country, because their semantics ensure that the annotated answer is unique and they contain a relatively high amount of questions that are annotated as requiring true multi-hop reasoning. For publisher, this yields 509 training and 54 validation questions, for developer 267 and 29, and for country 742 and 194. As the test set of WIKIHOP is not publicly available, and splitting the small train set would lead to a far too small validation set, we report scores for the validation set and refrain from hyperparameter optimization and early stopping. ",
609
+ "bbox": [
610
+ 174,
611
+ 438,
612
+ 825,
613
+ 549
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Each data point consists of a query $p ( q , X )$ where $q$ is some query entity, $X$ is the entity that has to be predicted, $C$ is a list of candidates entities, $a \\in C$ is an answer entity and $p \\in$ {publisher, developer, country} is the query predicate. In addition, every query is accompanied by a set of support documents which can be used to decide which candidate is the correct answer. To transform the support documents to natural language triples, we use the Open IE system MINIE (Gashteovski et al., 2017). We use the publicly available version of $\\mathbf { M N I E } ^ { 3 }$ in the dictionary mode, and use a list of all WIKIHOP candidate entities as our dictionary of multi-token entities. ",
620
+ "bbox": [
621
+ 174,
622
+ 555,
623
+ 825,
624
+ 654
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "Following Welbl et al. (2017), we use the two neural QA models BIDAF (Seo et al., 2016a) and FASTQA (Weissenborn et al., 2017) as baselines for the selected predicates of WIKIHOP. We employ the implementation provided by the QA framework $\\mathrm { J A C K } ^ { 4 }$ (Weissenborn et al., 2018) with the same hyperparameters as used by Welbl et al. (2017) and train a separate model for each predicate. In order to compensate for the fact that both models are extractive QA models which cannot make use of the candidate entities, we additionally evaluate modified versions which transform both the predicted answer and all candidates to vectors using the wiki-unigrams model5 of SENT2VEC (Pagliardini et al., 2017). Consequently, we return the candidate entity which has the highest cosine similarity to the predicted entity. ",
631
+ "bbox": [
632
+ 174,
633
+ 660,
634
+ 825,
635
+ 786
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "5.2 BABI-1K-STATIC ",
642
+ "text_level": 1,
643
+ "bbox": [
644
+ 176,
645
+ 803,
646
+ 331,
647
+ 818
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "We utilize a subset of BABI-1K to study the behavior of NLPROLOG in a very controlled environment. Note however, that the experiments on WIKIHOP are much more significant, as they involve natural linguistic variability. BABI-1K-STATIC consists of the tasks QA4,QA15,QA17, and QA18 from the BABI suite (Weston et al., 2015), each containing 1,000 training and 1,000 testing questions. These tasks were selected because, unlike the other tasks of BABI, they do not require reasoning about a dynamically changing world state, which is not supported by the current implementation of NLPROLOG. We automatically transform all statements and queries of the respective tasks to triples and use the resulting KB as input to NLPROLOG. We train and evaluate on each problem individually. The tasks QA4 and QA15 require entities as an output, thus we consider every entity that occurs at least once in any problem of the task as a candidate for all problems. Tasks QA17 and QA18 are binary classification tasks, and thus we determine the optimal threshold on the training set, after the training of NLPROLOG has finished. ",
654
+ "bbox": [
655
+ 176,
656
+ 829,
657
+ 823,
658
+ 871
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "",
665
+ "bbox": [
666
+ 173,
667
+ 103,
668
+ 825,
669
+ 229
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "We refrain from systematically comparing results on the individual BABI tasks to competing methods like Seo et al. (2016b); Peng et al. (2015); Dhingra et al. (2018); Henaff et al. (2016); Sukhbaatar et al. (2015), since our non-negligible preprocessing and evaluation on only four out of 20 tasks does not allow us to match the relevant evaluation protocols. We therefore utilize BABI-1K-STATIC only for ablation experiments, but note that NLPROLOG achieves similar or better accuracy values than the mentioned methods in all instances we studied, except on $Q A 4$ . ",
676
+ "bbox": [
677
+ 174,
678
+ 236,
679
+ 825,
680
+ 319
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "5.3 DEALING WITH CANDIDATES ",
687
+ "text_level": 1,
688
+ "bbox": [
689
+ 176,
690
+ 337,
691
+ 416,
692
+ 352
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "All questions of WIKIHOP and some of BABI-1K-STATIC include a set of answer candidates $C$ . For those cases, we modify our reward function to leverage this information, taking inspiration from Bayesian Personalized Ranking (Rendle et al., 2009): ",
699
+ "bbox": [
700
+ 174,
701
+ 363,
702
+ 825,
703
+ 405
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "equation",
709
+ "img_path": "images/aae7d9eef0aeca3a01c80e08850c0e37471cfa8a1d2fbe3f4f0b5ff958708944.jpg",
710
+ "text": "$$\nJ ( \\theta ) = p ( a | \\mathcal { R } ; \\theta ) - \\operatorname* { m a x } _ { c \\in C \\setminus \\{ a \\} } p ( c | \\mathcal { R } ; \\theta ) ,\n$$",
711
+ "text_format": "latex",
712
+ "bbox": [
713
+ 369,
714
+ 412,
715
+ 627,
716
+ 438
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "where $a \\in C$ is the true answer. ",
723
+ "bbox": [
724
+ 174,
725
+ 445,
726
+ 382,
727
+ 460
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "We observed that this reward function does not work well with the minimum aggregation function. Therefore, we employ this modified reward only when using the product aggregation and utilize the reward described in Section 4.2 with the minimum aggregation. ",
734
+ "bbox": [
735
+ 176,
736
+ 467,
737
+ 825,
738
+ 508
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "5.4 RESULTS ",
745
+ "text_level": 1,
746
+ "bbox": [
747
+ 174,
748
+ 526,
749
+ 279,
750
+ 540
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "The results for the selected predicates of WIKIHOP can be found in Table 1. While there is no single best performing model, NLPROLOG is outperformed by at least one neural QA model on every predicate. For country, this only holds true when considering the versions of the neural models that have been augmented to consider candidate entities. For all three predicates, only a single transitive rule is utilized across all validation questions. Since we observe a more diverse set of induced rules on BABI-1K, we partly attributed this lack of diverse rules to the multi-hop characteristic of the WIKIHOP data. It seems that NLPROLOG struggles to find meaningful rules for the predicates developer and publisher, which leads to very few proofs involving rules on the development set: 1 out of 54 for publisher and 2 out of 29 for developer, compared with 159 out of 194 for country. We partially attribute this to the fact, that the semantics of country suggest a straightforward rule (transitivity of location), which is not true for developer or publisher. Additionally, the annotations regarding the neccessity of multi-hop reasoning provided for the validation set (Welbl et al., 2017) suggest that publisher and developer contain significantly fewer training examples involving multi-hop reasoning. ",
757
+ "bbox": [
758
+ 174,
759
+ 553,
760
+ 825,
761
+ 733
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Exemplary proofs generated by NLPROLOG on the predicates developer and country can be found in Fig. 3. As we are especially interested in assessing the capability for multi-hop reasoning, we additionally evaluate on a subset of problems which have been unanimously labelled as requiring multi-hop reasoning. On this subset of the development data, which is denoted as Countryhop (mh) in Table 1, NLPROLOG outperforms all other single models. ",
768
+ "bbox": [
769
+ 174,
770
+ 739,
771
+ 825,
772
+ 810
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "5.5 NEURAL QA AND NLPROLOG ENSEMBLE ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 174,
782
+ 827,
783
+ 506,
784
+ 842
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "If the proof of NLPROLOG producing the prediction does not employ any rules, the prediction is essentially the result of performing a simple nearest neighbor search among the embeddings of all fact triples. We hypothesize that the neural QA models FASTQA and BIDAF are better suited for finding the most predictive single support statement, which motivates an ensemble of a neural QA model and NLPROLOG. We built a system which predicts the output of NLPROLOG when it used at least one rule and the output of the neural QA model otherwise. This allows to employ the multihop reasoning of NLPROLOG when possible and to utilize the pattern matching capabilities of the neural QA models in the remaining cases. The results for these ensembles are given in the bottom part of Table 1. In all instances, ensembling a neural QA model with NLPROLOG improved upon all single models, indicating that they complement each other well. We analyze reasons for the success of this ensembling strategy in Section 5.6. ",
791
+ "bbox": [
792
+ 174,
793
+ 853,
794
+ 825,
795
+ 924
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "table",
801
+ "img_path": "images/6497a2f63674cf98513f7a65c3f56eacc893d2104276da38efeef707ec4c7c25.jpg",
802
+ "table_caption": [
803
+ "Table 1: Accuracy scores in percent for different predicates on the development set of WIKIHOP. country (mh) only considers the problems that have been unanimously judged to require multi-hop reasoning. The upper part lists single models and the bottom part ensembles. "
804
+ ],
805
+ "table_footnote": [],
806
+ "table_body": "<table><tr><td>Model</td><td>publisher</td><td>developer</td><td>country</td><td>country (mh)</td></tr><tr><td>BIDAF</td><td>66.67</td><td>65.52</td><td>53.09</td><td>53.19</td></tr><tr><td>FastQA</td><td>62.96</td><td>62.07</td><td>57.21</td><td>57.44</td></tr><tr><td>BIDAF-Sent2Vec</td><td>75.93</td><td>68.97</td><td>61.86</td><td>65.96</td></tr><tr><td>FastQA-Sent2Vec</td><td>75.93</td><td>58.62</td><td>64.95</td><td>65.96</td></tr><tr><td>NLProlog (ours)</td><td>51.85</td><td>48.28</td><td>63.92</td><td>68.09</td></tr><tr><td>BIDAF-Sent2Vec + NLProlog</td><td>77.78</td><td>72.41</td><td>65.46</td><td>70.21</td></tr><tr><td>FastQA-Sent2Vec + NLProlog</td><td>77.78</td><td>62.07</td><td>69.07</td><td>70.21</td></tr></table>",
807
+ "bbox": [
808
+ 217,
809
+ 101,
810
+ 777,
811
+ 234
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "",
818
+ "bbox": [
819
+ 174,
820
+ 320,
821
+ 825,
822
+ 405
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "5.6 ERROR ANALYSIS ",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 176,
832
+ 431,
833
+ 339,
834
+ 445
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "We conducted an extensive error analysis, in which we manually classified all errors of NLPROLOG on the selected WIKIHOP predicates into predefined categories. The results are depicted in Figure 2. ",
841
+ "bbox": [
842
+ 176,
843
+ 462,
844
+ 823,
845
+ 489
846
+ ],
847
+ "page_idx": 7
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "For the developer predicate, in the majority of cases, errors were caused by OPENIE during the fact extraction step: in all but one case, OPENIE did not produce the necessary facts, or a necessary facts was not stated in the support text, or there were multiple correct candidates and NLPROLOG selected the wrong one. As a consequence, for both the publisher and developer predicates, the majority of queries would not answerable, even when the necessary rules were correctly induced. The predictive accuracy was significantly higher for the country predicate, where errors were mostly due to entitities not having SENT2VEC embeddings and a few missing rules. ",
852
+ "bbox": [
853
+ 174,
854
+ 497,
855
+ 825,
856
+ 594
857
+ ],
858
+ "page_idx": 7
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "Fig. 2 indicates that FASTQA can produce the correct answer, even if crucial information is missing from the supporting documents. To analyze this further, we evaluated FASTQA and NLPROLOG on a test set of the country predicate in which all documents mentioning the query entity were removed. Remarkably, the accuracy of FASTQA increased by approximately $1 \\%$ , while the accuracy of NLPROLOG decreased by approx. $1 1 \\%$ . ",
863
+ "bbox": [
864
+ 174,
865
+ 602,
866
+ 825,
867
+ 671
868
+ ],
869
+ "page_idx": 7
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "Furthermore, we evaluated both FASTQA and NLPROLOG on the hard subset of country as defined by Sugawara et al. (2018): on these 62 problems which cannot be solved with a simple heuristic, NLPROLOG achieved an accuracy of $5 1 . { \\bar { 6 } } 1 \\%$ , as opposed to $4 6 . 7 7 \\%$ by FASTQA. ",
874
+ "bbox": [
875
+ 174,
876
+ 678,
877
+ 823,
878
+ 720
879
+ ],
880
+ "page_idx": 7
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "We conjecture that – besides NLPROLOG’s multi-hop reasoning capability – this is one reason why the neural models and NLPROLOG complement each other nicely: neural models can compensate for missing information, while NLPROLOG is less susceptible for spurious correlations between the query and supporting texts. The complementary nature of both approaches is further supported by the error analysis, described in Fig. 4. ",
885
+ "bbox": [
886
+ 174,
887
+ 727,
888
+ 825,
889
+ 797
890
+ ],
891
+ "page_idx": 7
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "5.7 ABLATION EXPERIMENTS ",
896
+ "text_level": 1,
897
+ "bbox": [
898
+ 176,
899
+ 824,
900
+ 393,
901
+ 838
902
+ ],
903
+ "page_idx": 7
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "We perform experiments on BABI-1K-STATIC to investigate the effect of the GRL training procedure. Specifically, we perform experiments on BABI-1K-STATIC with only the last phase of GRL (i.e. training without GRL), with the last and the penultimate phase, and with all three phases, corresponding to full GRL as we limit the rule complexity to two body atoms in rule templates. To maintain comparability between runs, we keep the number of SGD steps constant across all experiments. ",
908
+ "bbox": [
909
+ 174,
910
+ 853,
911
+ 826,
912
+ 924
913
+ ],
914
+ "page_idx": 7
915
+ },
916
+ {
917
+ "type": "image",
918
+ "img_path": "images/84a090321be673203bf5af7c84917979a70a09bb28ca2bb215b164e77262c9b5.jpg",
919
+ "image_caption": [
920
+ "Figure 2: Results of the error analysis. The y-axis shows the number of errors per category: O(penIE) refers to a crucial information missing due to an error of the OpenIE tool, A(mbiguous) means that multiple candidates were correct and NLProlog chose one which was not labeled as the correct one, while I(nfo) refers to problems that are not answerable with the provided support texts. $R ( u l e )$ means that a required rule was not induced, and E(mbedding) implies that the answer was correctly deduced but received a lower score than an erroneous deduction of another candidate. "
921
+ ],
922
+ "image_footnote": [],
923
+ "bbox": [
924
+ 205,
925
+ 99,
926
+ 790,
927
+ 229
928
+ ],
929
+ "page_idx": 8
930
+ },
931
+ {
932
+ "type": "table",
933
+ "img_path": "images/fc806b26f3b425e539cfbc4cd0786e585248dc3a1f8d62bd86caa650c4cbb87d.jpg",
934
+ "table_caption": [],
935
+ "table_footnote": [],
936
+ "table_body": "<table><tr><td></td><td>QA4</td><td>QA15</td><td>QA17</td><td>QA18</td></tr><tr><td>GRL phase 3 (no)</td><td>56.4</td><td>37.1</td><td>62.8</td><td>90.9</td></tr><tr><td>GRL phase 2+3</td><td>88.8</td><td>33.5</td><td>66.7</td><td>94.7</td></tr><tr><td>GRL phase 1+2+3 (full)</td><td>88.0</td><td>100.0</td><td>67.6</td><td>97.6</td></tr><tr><td>Gold Rules (Untrained)</td><td>100.0</td><td>100.0</td><td>73.2</td><td>92.0</td></tr><tr><td>Gold Rules (Trained)</td><td>100.0</td><td>100.0</td><td>84.8</td><td>98.1</td></tr><tr><td>No Rules (Trained)</td><td>60.0</td><td>32.8</td><td>63.0</td><td>90.4</td></tr><tr><td>Ten Templates</td><td>88.1</td><td>100.0</td><td>61.9</td><td>89.4</td></tr></table>",
937
+ "bbox": [
938
+ 289,
939
+ 338,
940
+ 705,
941
+ 473
942
+ ],
943
+ "page_idx": 8
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Table 2: Accuracies in percent of ablation experiments on BABI-1K-STATIC. The upper half examines the effectiveness of GRL, while the bottom results concern the effect of training and different choices of rules. ",
948
+ "bbox": [
949
+ 174,
950
+ 483,
951
+ 823,
952
+ 523
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Additionally, we experiment with manually defined rules, which we deem sufficient for solving each of the four tasks. For these, we report results before and after training, as well as for a run without any rule templates. The accuracy scores for all experiments on BABI are provided in Table 2. ",
959
+ "bbox": [
960
+ 173,
961
+ 549,
962
+ 825,
963
+ 590
964
+ ],
965
+ "page_idx": 8
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "To assess the impact of the choice of rule templates, we evaluate NLPROLOG on bAbI-1k-static with a different set of rule templates containing two rules of the form $p _ { 1 } ( X , Y ) \\Leftarrow p _ { 2 } ( X , Y )$ , four with the form $p _ { 1 } ( X , Y ) \\Leftarrow p _ { 2 } ( Y , X )$ and another four for $p _ { 1 } ( X , Z ) \\in p _ { 2 } ( X , Y ) \\land p _ { 3 } ( Y , Z )$ . ",
970
+ "bbox": [
971
+ 174,
972
+ 598,
973
+ 825,
974
+ 641
975
+ ],
976
+ "page_idx": 8
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Clearly, the full GRL is necessary to obtain acceptable results in any of the problems. Interestingly, phase 1 of GRL does not contribute anything for QA4, which is perfectly solvable using only rules of body size 1. On the other hand, QA15 and QA18 both require a rule of body size 2, which makes phase 1 strongly improve the results. Only for $Q A 1 7$ the results are inconclusive. Nevertheless, this indicates that GRL works as intended, with the earlier phases encouraging the induction of rules with a higher number of conjuncts in the body. ",
981
+ "bbox": [
982
+ 174,
983
+ 647,
984
+ 825,
985
+ 731
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "The results using manually defined rules suggest that even when sufficient rules are provided, training with ES is helpful nevertheless. Interestingly, the model using no rules is able to solve over $9 0 \\%$ of the problems in $Q A I \\&$ , indicating that this problem is not well suited for evaluating reasoning capabilities of QA models. ",
992
+ "bbox": [
993
+ 174,
994
+ 738,
995
+ 825,
996
+ 794
997
+ ],
998
+ "page_idx": 8
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Using ten instead of six templates leads to worse performance on all BABI problems but QA15, which is solved perfectly with a much faster convergence rate. This result indicates that the choice of rule templates might be an important hyperparameter which should be optimized for a given problem. ",
1003
+ "bbox": [
1004
+ 174,
1005
+ 800,
1006
+ 825,
1007
+ 843
1008
+ ],
1009
+ "page_idx": 8
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "6 DISCUSSION AND FUTURE WORK ",
1014
+ "text_level": 1,
1015
+ "bbox": [
1016
+ 176,
1017
+ 863,
1018
+ 485,
1019
+ 880
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "We have developed NLPROLOG, a system that is able to perform rule-based reasoning on natural language input, and can learn domain-specific natural language rules from training data. To this end, we have proposed to combine a symbolic prover with pretrained sentence embeddings and to train the resulting system with Evolution Strategies. We have evaluated NLPROLOG on two different QA tasks, showing that it can learn domain-specific rules and produce predictions which complement those of the two strong baselines BIDAF and FASTQA. This allows to build an ensemble of a baseline and NLPROLOG which outperforms all single models. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 895,
1029
+ 825,
1030
+ 924
1031
+ ],
1032
+ "page_idx": 8
1033
+ },
1034
+ {
1035
+ "type": "image",
1036
+ "img_path": "images/7723a7462c403a1c25c15c96c367976e9d871a3b0467a3e7ebbd6acdeb635581.jpg",
1037
+ "image_caption": [
1038
+ "Figure 3: Example proof trees generated by NLPROLOG. Each of the two trees shows an application of a transitive rule, the first for the predicate developer and the second for the predicate country. The rule templates are displayed with the most similar predicate. Note the noise introduced by the Open IE process, e.g. QUANT_0_1 and that entities and predicates do not need to match exactly. "
1039
+ ],
1040
+ "image_footnote": [],
1041
+ "bbox": [
1042
+ 236,
1043
+ 98,
1044
+ 759,
1045
+ 190
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "",
1052
+ "bbox": [
1053
+ 174,
1054
+ 285,
1055
+ 825,
1056
+ 356
1057
+ ],
1058
+ "page_idx": 9
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "While we have focused on a subset of First Order Logic in this work, the expressiveness of NLPROLOG could be extended by incorporating a different symbolic prover. For instance, a prover for temporal logic (Orgun & Ma, 1994) would allow to model temporal dynamics in natural language and enable us to evaluate NLPROLOG on the full set of BABI tasks. We are also interested in incorporating future improvements of symbolic provers, Open IE systems and pretrained sentence representations to further enhance the performance of NLPROLOG. To study the performance of the proposed method without the noise introduced by the Open IE step, it would be useful to evaluate it on tasks like knowledge graph reasoning. Additionally, it would be interesting to study the behavior of NLPROLOG in the presence of multiple WIKIHOP query predicates. ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 363,
1066
+ 825,
1067
+ 488
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "REFERENCES ",
1074
+ "text_level": 1,
1075
+ "bbox": [
1076
+ 176,
1077
+ 510,
1078
+ 285,
1079
+ 523
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Gabor Angeli, Neha Nayak, and Christopher D Manning. Combining natural logic and shallow reasoning for question answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 442–452, 2016. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 532,
1089
+ 825,
1090
+ 574
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Stephen H. Bach, Matthias Broecheler, Bert Huang, and Lise Getoor. Hinge-loss markov random fields and probabilistic soft logic. Journal of Machine Learning Research, 18:109:1–109:67, 2017. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 583,
1100
+ 821,
1101
+ 613
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Islam Beltagy, Cuong Chau, Gemma Boleda, Dan Garrette, Katrin Erk, and Raymond Mooney. Montague meets markov: Deep semantics with probabilistic logical form. In Second Joint Conference on Lexical and Computational Semantics $( ^ { * } S E M )$ , Volume 1: Proceedings of the Main Conference and the Shared Task: Semantic Textual Similarity, volume 1, pp. 11–21, 2013. ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 621,
1111
+ 825,
1112
+ 678
1113
+ ],
1114
+ "page_idx": 9
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Islam Beltagy, Katrin Erk, and Raymond Mooney. Probabilistic soft logic for semantic textual similarity. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1210–1219, 2014. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 688,
1122
+ 823,
1123
+ 731
1124
+ ],
1125
+ "page_idx": 9
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Tarek R Besold, Artur d’Avila Garcez, Sebastian Bader, Howard Bowman, Pedro Domingos, Pascal Hitzler, Kai-Uwe Kühnberger, Luis C Lamb, Daniel Lowd, Priscila Machado Vieira Lima, et al. Neural-symbolic learning and reasoning: A survey and interpretation. arXiv preprint arXiv:1711.03902, 2017. ",
1130
+ "bbox": [
1131
+ 174,
1132
+ 739,
1133
+ 826,
1134
+ 795
1135
+ ],
1136
+ "page_idx": 9
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "William W Cohen. Tensorlog: A differentiable deductive database. arXiv preprint arXiv:1605.06523, 2016. ",
1141
+ "bbox": [
1142
+ 171,
1143
+ 805,
1144
+ 825,
1145
+ 833
1146
+ ],
1147
+ "page_idx": 9
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Rajarshi Das, Arvind Neelakantan, David Belanger, and Andrew McCallum. Chains of reasoning over entities, relations, and text using recurrent neural networks. arXiv preprint arXiv:1607.01426, 2016. ",
1152
+ "bbox": [
1153
+ 173,
1154
+ 843,
1155
+ 825,
1156
+ 885
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. arXiv preprint arXiv:1711.05851, 2017. ",
1163
+ "bbox": [
1164
+ 174,
1165
+ 895,
1166
+ 823,
1167
+ 922
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "",
1174
+ "bbox": [
1175
+ 179,
1176
+ 103,
1177
+ 825,
1178
+ 132
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Bhuwan Dhingra, Qiao Jin, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Neural models for reasoning over multiple mentions using coreference. arXiv preprint arXiv:1804.05922, 2018. ",
1185
+ "bbox": [
1186
+ 176,
1187
+ 140,
1188
+ 825,
1189
+ 183
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Agoston E Eiben, James E Smith, et al. Introduction to evolutionary computing, volume 53. Springer, 2003. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 191,
1199
+ 825,
1200
+ 220
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Oren Etzioni, Michele Banko, Stephen Soderland, and Daniel S. Weld. Open information extraction from the web. Commun. ACM, 51(12):68–74, 2008. doi: 10.1145/1409360.1409378. ",
1207
+ "bbox": [
1208
+ 176,
1209
+ 228,
1210
+ 825,
1211
+ 258
1212
+ ],
1213
+ "page_idx": 10
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Anthony Fader, Luke Zettlemoyer, and Oren Etzioni. Open question answering over curated and extracted knowledge bases. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’14, pp. 1156–1165, New York, NY, USA, 2014. ACM. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 266,
1221
+ 826,
1222
+ 323
1223
+ ],
1224
+ "page_idx": 10
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "David Ferrucci, Eric Brown, Jennifer Chu-Carroll, James Fan, David Gondek, Aditya A Kalyanpur, Adam Lally, J William Murdock, Eric Nyberg, John Prager, and Others. Building watson: An overview of the DeepQA project. AI magazine, 31(3):59–79, 2010. ",
1229
+ "bbox": [
1230
+ 174,
1231
+ 332,
1232
+ 826,
1233
+ 375
1234
+ ],
1235
+ "page_idx": 10
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Hervé Gallaire and Jack Minker (eds.). Logic and Data Bases, Symposium on Logic and Data Bases, Centre d’études et de recherches de Toulouse, 1977, Advances in Data Base Theory, New York, 1978. Plemum Press. ISBN 0-306-40060-X. ",
1240
+ "bbox": [
1241
+ 174,
1242
+ 382,
1243
+ 826,
1244
+ 426
1245
+ ],
1246
+ "page_idx": 10
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Dan Garrette, Katrin Erk, and Raymond Mooney. Integrating logical representations with probabilistic information using markov logic. In Proceedings of the Ninth International Conference on Computational Semantics, pp. 105–114. Association for Computational Linguistics, 2011. ",
1251
+ "bbox": [
1252
+ 174,
1253
+ 434,
1254
+ 826,
1255
+ 477
1256
+ ],
1257
+ "page_idx": 10
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Dan Garrette, Katrin Erk, and Raymond Mooney. A formal approach to linking logical form and vector-space lexical semantics. In Computing meaning, pp. 27–48. Springer, 2014. ",
1262
+ "bbox": [
1263
+ 173,
1264
+ 484,
1265
+ 823,
1266
+ 515
1267
+ ],
1268
+ "page_idx": 10
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Kiril Gashteovski, Rainer Gemulla, and Luciano Del Corro. Minie: minimizing facts in open information extraction. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 2630–2640, 2017. ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 522,
1276
+ 825,
1277
+ 565
1278
+ ],
1279
+ "page_idx": 10
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. ´ Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016. ",
1284
+ "bbox": [
1285
+ 173,
1286
+ 573,
1287
+ 826,
1288
+ 630
1289
+ ],
1290
+ "page_idx": 10
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016. ",
1295
+ "bbox": [
1296
+ 171,
1297
+ 638,
1298
+ 823,
1299
+ 669
1300
+ ],
1301
+ "page_idx": 10
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Pascual Julián-Iranzo, Clemente Rubio-Manzano, and Juan Gallardo-Casero. Bousi prolog: a prolog extension language for flexible query answering. Electron. Notes Theor. Comput. Sci., 248 (Supplement C):131–147, August 2009. ",
1306
+ "bbox": [
1307
+ 174,
1308
+ 676,
1309
+ 823,
1310
+ 719
1311
+ ],
1312
+ "page_idx": 10
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1317
+ "bbox": [
1318
+ 171,
1319
+ 727,
1320
+ 823,
1321
+ 756
1322
+ ],
1323
+ "page_idx": 10
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In International Conference on Machine Learning, pp. 1378–1387, 2016. ",
1328
+ "bbox": [
1329
+ 174,
1330
+ 765,
1331
+ 825,
1332
+ 820
1333
+ ],
1334
+ "page_idx": 10
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Horia Mania, Aurelia Guy, and Benjamin Recht. Simple random search provides a competitive approach to reinforcement learning. arXiv preprint arXiv:1803.07055, 2018. ",
1339
+ "bbox": [
1340
+ 169,
1341
+ 830,
1342
+ 823,
1343
+ 859
1344
+ ],
1345
+ "page_idx": 10
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Dan Moldovan, Christine Clark, Sanda Harabagiu, and Steve Maiorano. COGEX: A logic prover for question answering. In Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology - Volume 1, NAACL ’03, pp. 87–93, Stroudsburg, PA, USA, 2003. Association for Computational Linguistics. ",
1350
+ "bbox": [
1351
+ 174,
1352
+ 867,
1353
+ 825,
1354
+ 924
1355
+ ],
1356
+ "page_idx": 10
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Stephen Muggleton. Inductive logic programming. New generation computing, 8(4):295–318, 1991. ",
1361
+ "bbox": [
1362
+ 171,
1363
+ 103,
1364
+ 826,
1365
+ 119
1366
+ ],
1367
+ "page_idx": 11
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Stephen Muggleton and Luc De Raedt. Inductive logic programming: Theory and methods. J. Log. Program., 19/20:629–679, 1994. doi: 10.1016/0743-1066(94)90035-3. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 127,
1375
+ 823,
1376
+ 157
1377
+ ],
1378
+ "page_idx": 11
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Arvind Neelakantan, Benjamin Roth, and Andrew McCallum. Compositional vector space models for knowledge base completion. arXiv preprint arXiv:1504.06662, 2015. ",
1383
+ "bbox": [
1384
+ 171,
1385
+ 166,
1386
+ 823,
1387
+ 196
1388
+ ],
1389
+ "page_idx": 11
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Mehmet A Orgun and Wanli Ma. An overview of temporal and modal logic programming. In Temporal logic, pp. 445–479. Springer, 1994. ",
1394
+ "bbox": [
1395
+ 171,
1396
+ 205,
1397
+ 823,
1398
+ 234
1399
+ ],
1400
+ "page_idx": 11
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Matteo Pagliardini, Prakhar Gupta, and Martin Jaggi. Unsupervised learning of sentence embeddings using compositional n-gram features. arXiv preprint arXiv:1703.02507, 2017. ",
1405
+ "bbox": [
1406
+ 173,
1407
+ 244,
1408
+ 823,
1409
+ 273
1410
+ ],
1411
+ "page_idx": 11
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Baolin Peng, Zhengdong Lu, Hang Li, and Kam-Fai Wong. Towards neural network-based reasoning. arXiv preprint arXiv:1508.05508, 2015. ",
1416
+ "bbox": [
1417
+ 174,
1418
+ 282,
1419
+ 821,
1420
+ 313
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Martin Raison, Pierre-Emmanuel Mazaré, Rajarshi Das, and Antoine Bordes. Weaver: Deep coencoding of questions and documents for machine reading. arXiv preprint arXiv:1804.10490, 2018. ",
1427
+ "bbox": [
1428
+ 173,
1429
+ 321,
1430
+ 828,
1431
+ 364
1432
+ ],
1433
+ "page_idx": 11
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, and Lars Schmidt-Thieme. BPR: bayesian personalized ranking from implicit feedback. In UAI 2009, Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, Montreal, QC, Canada, June 18-21, 2009, pp. 452–461, 2009. ",
1438
+ "bbox": [
1439
+ 173,
1440
+ 375,
1441
+ 826,
1442
+ 431
1443
+ ],
1444
+ "page_idx": 11
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Matthew Richardson and Pedro M. Domingos. Markov logic networks. Machine Learning, 62(1-2): 107–136, 2006. ",
1449
+ "bbox": [
1450
+ 171,
1451
+ 440,
1452
+ 825,
1453
+ 470
1454
+ ],
1455
+ "page_idx": 11
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, pp. 3788–3800, 2017. ",
1460
+ "bbox": [
1461
+ 171,
1462
+ 479,
1463
+ 825,
1464
+ 510
1465
+ ],
1466
+ "page_idx": 11
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Stuart J. Russell and Peter Norvig. Artificial Intelligence - A Modern Approach (3. internat. ed.). Pearson Education, 2010. ISBN 978-0-13-207148-2. ",
1471
+ "bbox": [
1472
+ 171,
1473
+ 518,
1474
+ 825,
1475
+ 547
1476
+ ],
1477
+ "page_idx": 11
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Stuart J Russell and Peter Norvig. Artificial intelligence: a modern approach. Malaysia; Pearson Education Limited„ 2016. ",
1482
+ "bbox": [
1483
+ 174,
1484
+ 556,
1485
+ 823,
1486
+ 587
1487
+ ],
1488
+ "page_idx": 11
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, March 2017. ",
1493
+ "bbox": [
1494
+ 174,
1495
+ 595,
1496
+ 823,
1497
+ 626
1498
+ ],
1499
+ "page_idx": 11
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "Minjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. arXiv preprint arXiv:1611.01603, 2016a. ",
1504
+ "bbox": [
1505
+ 173,
1506
+ 633,
1507
+ 823,
1508
+ 665
1509
+ ],
1510
+ "page_idx": 11
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "Minjoon Seo, Sewon Min, Ali Farhadi, and Hannaneh Hajishirzi. Query-reduction networks for question answering. arXiv preprint arXiv:1606.04582, 2016b. ",
1515
+ "bbox": [
1516
+ 173,
1517
+ 674,
1518
+ 823,
1519
+ 703
1520
+ ],
1521
+ "page_idx": 11
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "Maria I Sessa. Approximate reasoning by similarity-based sld resolution. Theoretical computer science, 275(1-2):389–426, 2002. ",
1526
+ "bbox": [
1527
+ 173,
1528
+ 712,
1529
+ 825,
1530
+ 741
1531
+ ],
1532
+ "page_idx": 11
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "Saku Sugawara, Kentaro Inui, Satoshi Sekine, and Akiko Aizawa. What makes reading comprehension questions easier? August 2018. ",
1537
+ "bbox": [
1538
+ 171,
1539
+ 751,
1540
+ 826,
1541
+ 780
1542
+ ],
1543
+ "page_idx": 11
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In Advances in neural information processing systems, pp. 2440–2448, 2015. ",
1548
+ "bbox": [
1549
+ 169,
1550
+ 790,
1551
+ 825,
1552
+ 819
1553
+ ],
1554
+ "page_idx": 11
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "Dirk Weissenborn, Georg Wiese, and Laura Seiffe. Fastqa: A simple and efficient neural architecture for question answering. arxiv preprint. arXiv preprint arXiv:1703.04816, 2017. ",
1559
+ "bbox": [
1560
+ 171,
1561
+ 828,
1562
+ 825,
1563
+ 858
1564
+ ],
1565
+ "page_idx": 11
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Dirk Weissenborn, Pasquale Minervini, Isabelle Augenstein, Johannes Welbl, Tim Rocktäschel, Matko Bosnjak, Jeff Mitchell, Thomas Demeester, Tim Dettmers, Pontus Stenetorp, and Sebastian Riedel. Jack the reader - A machine reading framework. In Proceedings of ACL 2018, Melbourne, Australia, July 15-20, 2018, System Demonstrations, pp. 25–30, 2018. ",
1570
+ "bbox": [
1571
+ 174,
1572
+ 867,
1573
+ 826,
1574
+ 924
1575
+ ],
1576
+ "page_idx": 11
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "Johannes Welbl, Pontus Stenetorp, and Sebastian Riedel. Constructing datasets for multi-hop reading comprehension across documents. arXiv preprint arXiv:1710.06481, 2017. ",
1581
+ "bbox": [
1582
+ 169,
1583
+ 103,
1584
+ 823,
1585
+ 132
1586
+ ],
1587
+ "page_idx": 12
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "text": "Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. ",
1592
+ "bbox": [
1593
+ 174,
1594
+ 140,
1595
+ 823,
1596
+ 184
1597
+ ],
1598
+ "page_idx": 12
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "Jan Wielemaker, Tom Schrijvers, Markus Triska, and Torbjörn Lager. SWI-Prolog. Theory and Practice of Logic Programming, 12(1-2):67–96, 2012. ISSN 1471-0684. ",
1603
+ "bbox": [
1604
+ 169,
1605
+ 193,
1606
+ 823,
1607
+ 222
1608
+ ],
1609
+ "page_idx": 12
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992. ",
1614
+ "bbox": [
1615
+ 173,
1616
+ 231,
1617
+ 823,
1618
+ 258
1619
+ ],
1620
+ "page_idx": 12
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "A ALGORITHMS ",
1625
+ "bbox": [
1626
+ 176,
1627
+ 102,
1628
+ 326,
1629
+ 117
1630
+ ],
1631
+ "page_idx": 13
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "A.1 WEAK UNIFICATION ",
1636
+ "text_level": 1,
1637
+ "bbox": [
1638
+ 176,
1639
+ 133,
1640
+ 361,
1641
+ 147
1642
+ ],
1643
+ "page_idx": 13
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "fun unify $( x , y , \\theta , S )$ ",
1648
+ "bbox": [
1649
+ 173,
1650
+ 167,
1651
+ 310,
1652
+ 181
1653
+ ],
1654
+ "page_idx": 13
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "",
1659
+ "text_level": 1,
1660
+ "bbox": [
1661
+ 199,
1662
+ 183,
1663
+ 245,
1664
+ 194
1665
+ ],
1666
+ "page_idx": 13
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "$x$ : function $f ( \\dots ) \\mid$ atom $p ( \\dots ) \\mid$ variable $\\mid$ list $x _ { 1 } : : x _ { 2 } : : \\ldots : : x _ { n }$ $y$ : function $f ^ { \\prime } ( \\dots ) \\mid$ atom $p ^ { \\prime } ( \\ldots ) \\mid$ variable $|$ list $y _ { 1 } : : y _ { 2 } : : \\dots : : y _ { m }$ $\\theta$ : current substitutions, default $= \\{ \\}$ \n$S$ : current success score, default $= 1 . 0$ ",
1671
+ "bbox": [
1672
+ 199,
1673
+ 194,
1674
+ 645,
1675
+ 250
1676
+ ],
1677
+ "page_idx": 13
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "Output: (Unifying substitution $\\theta ^ { \\prime }$ or failure, Updated success score $S ^ { \\prime }$ ) if $\\theta =$ failure then return (failure, 0) else if $S < \\lambda$ then return (failure, 0) else if $x = y$ then return $( \\theta , S )$ else if $x$ is Var then return unify $_ - \\nu a r ( x , y , \\theta , S )$ else if $y$ is Var then return unify_ $\\nu a r ( y , x , \\theta , S )$ else if $x$ is $f ( x _ { 1 } , \\ldots , x _ { n } )$ , y is $f ^ { \\prime } ( y _ { 1 } , \\ldots , y _ { n } )$ , and $f \\sim f ^ { \\prime } \\geq \\lambda$ then $S ^ { \\prime } : = S \\wedge f \\sim f ^ { \\prime }$ return uni $\\mathfrak { f } ( x _ { 1 } : : \\dots : : x _ { n } , y _ { 1 } : : \\dots : : y _ { n } , \\theta , S ^ { \\prime } )$ end else if $x$ is $p ( x _ { 1 } , \\ldots , x _ { n } )$ , y is $p ^ { \\prime } ( y _ { 1 } , \\ldots , y _ { n } )$ , and $p \\sim p ^ { \\prime } \\ge \\lambda$ then $S ^ { \\prime } : = S \\wedge f \\sim f ^ { \\prime }$ return unif $\\nu ( x _ { 1 } : : \\ldots : : x _ { n } , y _ { 1 } : : \\ldots : : y _ { n } , \\theta , S ^ { \\prime } )$ end else if $x$ is $x _ { 1 } : : \\ldots : : x _ { n }$ and $y$ is $y _ { 1 } : : \\ldots : : y _ { n }$ then $( \\theta ^ { \\prime } , S ^ { \\prime } ) : = u n i f y ( x _ { 1 } , y _ { 1 } , \\theta , S )$ $\\mathbf { r e t u r n } u n i f y ( x _ { 2 } : : \\dots : : x _ { n } , y _ { 2 } : : \\dots : : y _ { n } , \\theta ^ { \\prime } , S ^ { \\prime } )$ end else if $x$ is empty list and $y$ is empty list then return $( \\theta , S )$ else return (failure, 0) un unify_va $r ( v , o , \\theta , S )$ if $\\{ \\nu / \\nu a l \\} \\in \\theta$ then return unify $( \\nu a l , o , \\theta , S )$ else if $\\{ o / \\nu a l \\} \\in \\theta$ then return unif $\\dot { y } ( \\nu a r , \\nu a l , \\theta , S )$ else return $( \\bar { \\{ } v / o \\} + \\theta , S )$ ",
1682
+ "bbox": [
1683
+ 186,
1684
+ 243,
1685
+ 678,
1686
+ 584
1687
+ ],
1688
+ "page_idx": 13
1689
+ },
1690
+ {
1691
+ "type": "text",
1692
+ "text": "Algorithm 1: The weak unification algorithm in Spyrolog without occurs check ",
1693
+ "bbox": [
1694
+ 236,
1695
+ 583,
1696
+ 761,
1697
+ 598
1698
+ ],
1699
+ "page_idx": 13
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "text": "A.2 RUNTIME OF PROOF SEARCH ",
1704
+ "text_level": 1,
1705
+ "bbox": [
1706
+ 176,
1707
+ 628,
1708
+ 421,
1709
+ 642
1710
+ ],
1711
+ "page_idx": 13
1712
+ },
1713
+ {
1714
+ "type": "text",
1715
+ "text": "The worst case complexity vanilla logic programming is exponential in the depth of the proof (Russell & Norvig, 2010). However, in our case this is a particular problem because weak unification requires the prover to attempt unification between all entity/predicate symbols. ",
1716
+ "bbox": [
1717
+ 174,
1718
+ 654,
1719
+ 821,
1720
+ 696
1721
+ ],
1722
+ "page_idx": 13
1723
+ },
1724
+ {
1725
+ "type": "text",
1726
+ "text": "To keep things tractable, NLPROLOG only attempts to unify symbols with a similarity greater than some user-defined threshold $\\lambda$ . Furthermore, in the search step for one statement $q$ , for the rest of the search, $\\lambda$ is set to $\\lambda : = \\operatorname* { m a x } ( \\lambda , S )$ whenever a proof for $q$ with success score $S$ is found. Due to the monotonicity of the employed aggregation functions, this allows to prune the search tree without losing the guarantee to find the proof yielding the maximum success score. We found this optimization to be crucial to make the proof search scale for the studied wikihop predicates. ",
1727
+ "bbox": [
1728
+ 174,
1729
+ 703,
1730
+ 825,
1731
+ 787
1732
+ ],
1733
+ "page_idx": 13
1734
+ },
1735
+ {
1736
+ "type": "text",
1737
+ "text": "B HYPERPARAMETER CONFIGURATION ",
1738
+ "text_level": 1,
1739
+ "bbox": [
1740
+ 174,
1741
+ 808,
1742
+ 516,
1743
+ 824
1744
+ ],
1745
+ "page_idx": 13
1746
+ },
1747
+ {
1748
+ "type": "text",
1749
+ "text": "On BABI-1K we optimize the embeddings of predicate symbols of rules and query triples, as well as of entities. WIKIHOP has a large number of unique entity symbols and thus, optimizing their embeddings is prohibitive. Thus, we only train the predicate symbols of rules and query triples on this data set. The embeddings for entities and predicate symbols of fact and query triples are initialized using the WIKI-UNIGRAMS model of SENT2VEC, while the embeddings of rule predicates are intialized by uniformly sampling from the interval $[ - \\frac { 1 } { \\sqrt { 6 0 0 } } , \\frac { 1 } { \\sqrt { 6 0 0 } } ]$ . All experiments were performed with the same set of rule templates containing two rules for each of the forms $p ( X , Y ) \\Leftarrow q ( X , Y )$ , $p ( X , Y ) \\Leftarrow q ( Y , X )$ and $p ( X , Z ) \\Leftarrow q ( X , Y ) \\wedge r ( Y , Z )$ and set the similarity threshold $\\lambda$ to 0.3. At each optimization step, we evaluate 100 perturbations sampled from $\\mathcal { N } ( 0 , 0 . 0 4 )$ on a mini-batch of 16 training problems and use all of the directions in the generation of the next weight vector. If not stated otherwise, we use GRL with three phases training for 500 mini-batches in each phase. For the predicates publisher and developer, we used 1,000 mini-batches in the final phase of GRL. To further encourage rule usage, we use the minimum aggregation function in all but the last phases of GRL, in which we switch to product. ",
1750
+ "bbox": [
1751
+ 174,
1752
+ 839,
1753
+ 825,
1754
+ 928
1755
+ ],
1756
+ "page_idx": 13
1757
+ },
1758
+ {
1759
+ "type": "text",
1760
+ "text": "",
1761
+ "bbox": [
1762
+ 173,
1763
+ 103,
1764
+ 826,
1765
+ 215
1766
+ ],
1767
+ "page_idx": 14
1768
+ },
1769
+ {
1770
+ "type": "text",
1771
+ "text": "C ERROR SETS ",
1772
+ "text_level": 1,
1773
+ "bbox": [
1774
+ 174,
1775
+ 234,
1776
+ 315,
1777
+ 251
1778
+ ],
1779
+ "page_idx": 14
1780
+ },
1781
+ {
1782
+ "type": "image",
1783
+ "img_path": "images/8ed0a056d6d6697c5278a4b2b4a83f050042fb18571dfeb6c97d3c56fb6ab74a.jpg",
1784
+ "image_caption": [
1785
+ "Figure 4: Venn diagram of the error sets per predicate. "
1786
+ ],
1787
+ "image_footnote": [],
1788
+ "bbox": [
1789
+ 191,
1790
+ 270,
1791
+ 808,
1792
+ 405
1793
+ ],
1794
+ "page_idx": 14
1795
+ }
1796
+ ]
parse/train/ByfXe2C5tm/ByfXe2C5tm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByfXe2C5tm/ByfXe2C5tm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UoaQUQREMOs/UoaQUQREMOs.md ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CT-NET: CHANNEL TENSORIZATION NETWORK FOR VIDEO CLASSIFICATION
2
+
3
+ Kunchang $\mathbf { L i } ^ { 1 2 }$ ∗, Xianhang $\mathbf { L i ^ { \alpha } }$ ∗, Yali Wang13∗, Jun Wang 4& Yu Qiao13†
4
+
5
+ 1Guangdong-Hong Kong-Macao Joint Laboratory of Human-Machine
6
+ Intelligence-Synergy Systems, Shenzhen Institutes of Advanced Technology,
7
+ Chinese Academy of Sciences, Shenzhen, 518055, China
8
+ 2University of Chinese Academy of Sciences
9
+ 3SIAT Branch, Shenzhen Institute of Artificial Intelligence and Robotics for Society
10
+ 4University of Central Florida
11
+ {kc.li, yl.wang, yu.qiao}@siat.ac.cn
12
+ xianhangli@knights.ucf.edu, Jun.Wang@ucf.edu
13
+
14
+ # ABSTRACT
15
+
16
+ 3D convolution is powerful for video classification but often computationally expensive, recent studies mainly focus on decomposing it on spatial-temporal and/or channel dimensions. Unfortunately, most approaches fail to achieve a preferable balance between convolutional efficiency and feature-interaction sufficiency. For this reason, we propose a concise and novel Channel Tensorization Network (CTNet), by treating the channel dimension of input feature as a multiplication of $K$ sub-dimensions. On one hand, it naturally factorizes convolution in a multiple dimension way, leading to a light computation burden. On the other hand, it can effectively enhance feature interaction from different channels, and progressively enlarge the 3D receptive field of such interaction to boost classification accuracy. Furthermore, we equip our CT-Module with a Tensor Excitation (TE) mechanism. It can learn to exploit spatial, temporal and channel attention in a high-dimensional manner, to improve the cooperative power of all the feature dimensions in our CT-Module. Finally, we flexibly adapt ResNet as our CT-Net. Extensive experiments are conducted on several challenging video benchmarks, e.g., Kinetics-400, Something-Something V1 and V2. Our CT-Net outperforms a number of recent SOTA approaches, in terms of accuracy and/or efficiency.
17
+
18
+ # 1 INTRODUCTION
19
+
20
+ 3D convolution has been widely used to learn spatial-temporal representation for video classification (Tran et al., 2015; Carreira & Zisserman, 2017). However, over parameterization often makes it computationally expensive and hard to train. To alleviate such difficulty, recent studies mainly focus on decomposing 3D convolution (Tran et al., 2018; 2019). One popular approach is spatial-temporal factorization (Qiu et al., 2017; Tran et al., 2018; Xie et al., 2018), which can reduce overfitting by replacing 3D convolution with 2D spatial convolution and 1D temporal convolution. But it still introduces unnecessary computation burden, since both spatial convolution and temporal convolution are performed over all the feature channels. To further decrease such computation cost, channel separation has been recently developed via operating 3D convolution in the depth-wise manner (Tran et al., 2019). However, it inevitably loses accuracy due to the lack of feature interaction between different channels. For compensation, it has to introduce point-wise convolution to preserve interaction with extra computation. So there is a natural question: How to construct effective 3D convolution to achieve a preferable trade-off between efficiency and accuracy for video classification?
21
+
22
+ ![](images/33180bbaf52b7732efb27fed5479943b88d9cbd561ea5a770ea36421515293a0.jpg)
23
+ Interaction (no.of channels,size of receptive field): $( C _ { 1 }$ channels $3 \times 3 \times 3 )$ $( C _ { 1 } \times C _ { 2 } = C$ channels,5 × 5 × 5)
24
+
25
+ Figure 1: Simple illustration of channel tensorization $K = 2$ ). We tensorize the channel dimension of input feature as a multiplication of $K$ sub-dimensions. Via performing spatial/temporal tensor separable convolution along each sub-dimension, we can achieve a preferable balance between convolutional efficiency and feature-interaction sufficiency. Introduction shows more explanations.
26
+
27
+ <table><tr><td rowspan=2 colspan=1>Method</td><td rowspan=2 colspan=1>3D Convolution(t ×hxw)</td><td rowspan=1 colspan=2>Convolutional Efficiency</td><td rowspan=1 colspan=1>Feature-Interact</td><td rowspan=1 colspan=1>onSufficiency</td></tr><tr><td rowspan=1 colspan=1>Spatial-temporal</td><td rowspan=1 colspan=1>Channel</td><td rowspan=1 colspan=1>Interact Manner</td><td rowspan=1 colspan=1>InteractField1</td></tr><tr><td rowspan=1 colspan=1>C3D(Tran et al., 2015)</td><td rowspan=1 colspan=1>Full:3×3×3</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>STC</td><td rowspan=1 colspan=1>33</td></tr><tr><td rowspan=1 colspan=1>R(2+1)D(Tran et al., 2018)</td><td rowspan=1 colspan=1>Full:1×3×3Full:3×1×1</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>SCTC</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>CSN(Tran et al., 2019)</td><td rowspan=1 colspan=1>Full:1×1×1DW:3×3×3</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>CST</td><td rowspan=1 colspan=1>33</td></tr><tr><td rowspan=1 colspan=1>Our CT-Net(C=C1x..xCK)</td><td rowspan=1 colspan=1>C1:C1×.x1x(1x3×3+3×1×1)Ck:1xxCkx(1x3×3+3×1×1)</td><td rowspan=1 colspan=1>&lt;</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>STC1STCK</td><td rowspan=1 colspan=1>(2K + 1)3</td></tr></table>
28
+
29
+ 1 Interact Field means the receptive field for feature interaction.
30
+
31
+ Table 1: Two design principles to build effective video representation and efficient convolution.
32
+
33
+ This paper attempts to address this question by investigating two design principles. (1) Convolutional Efficiency. As shown in Table 1, current designs of spatial-temporal convolution mainly focus on decomposition from either spatial-temporal (Tran et al., 2018) or channel dimension (Tran et al., 2019). To enhance convolutional efficiency, we consider decomposing convolution in a higher dimension with a novel representation of feature tensor. (2) Feature-Interaction Sufficiency. Table 1 clearly shows that, for current decomposition approaches (Tran et al., 2018; 2019), feature interaction only contains one or two of spatial, temporal and channel dimensions at each sub-operation. Such a partial interaction manner would reduce classification accuracy. On one hand, it decreases the discriminative power of video representation, due to the lack of joint learning on all the dimensions. On the other hand, it restricts feature interaction in a limited receptive field, which ignores rich context from a larger 3D region. Hence, to boost classification accuracy, each sub-operation should achieve feature interaction on all the dimensions, and the receptive field of such interaction should be progressively enlarged as the number of sub-operations increases.
34
+
35
+ Based on these desirable principles, we design a novel and concise Channel Tensorization Module (CT-Module). Specifically, we propose to tensorize the channel dimension of input feature as a multiplication of $K$ sub-dimensions, i.e., $C = C _ { 1 } \times C _ { 2 } \times \cdot \cdot \cdot \times C _ { K }$ . Via performing spatial/temporal separable convolution along each sub-dimension, we can effectively achieve convolutional efficiency and feature-interaction sufficiency. For better understanding, we use the case of $K = 2$ as a simple illustration in Figure 1. First, we tensorize the input channel into $C = C _ { 1 } \times C _ { 2 }$ . Naturally, we separate the convolution into distinct ones along each sub-dimension, e.g., for the $1 ^ { s t }$ sub-dimension, we apply our spatial-temporal tensor separable convolution with the size $C _ { 1 } \times 1 \times t \times h \times w$ , which allows us to achieve convolutional efficiency on all the spatial, temporal and channel dimensions. After that, we sequentially perform the tensor separable convolution sub-dimension by sub-dimension. As a result, we can progressively achieve feature interaction on all the channels, and enlarge the spatialtemporal receptive field. For example, after operating $1 ^ { s t }$ tensor separable convolution on the $1 ^ { s t }$ sub-dimension, $C _ { 1 }$ channels interact, and 3D receptive field of such interaction is $3 \times 3 \times 3$ . Via further operating $2 ^ { n d }$ tensor separable convolution on the $2 ^ { n d }$ sub-dimension, all $C _ { 1 } \times C _ { 2 } = C$ channels have feature interaction, and 3D receptive field of such interaction becomes $5 \times 5 \times 5$ . This clearly satisfies our principle of feature-interaction sufficiency.
36
+
37
+ We summarize our contributions in the following. First, we design a novel Channel Tensorized Module (CT-Module), which can achieve convolutional efficiency and feature-interaction sufficiency, via progressively performing spatial/temporal tensor separable convolution along each sub-dimension of the tensorized channel. Second, we equip CT-Module with a distinct Tensor Excitation (TE) mechanism, which can further activate the video features of each sub-operation by spatial, temporal and channel attention in a tensor-wise manner. Subsequently, we apply this full module in a residual block, and flexibly adopt 2D ResNet as our Channel Tensorized Network (CT-Net). In this case, we can gradually enhance feature interaction from a broader 3D receptive field, and learn the key spatial-temporal representation with light computation. Finally, we conduct extensive experiments on a number of popular and challenging benchmarks, e.g., Kinetics (Carreira & Zisserman, 2017), Something-Something V1 and V2 (Goyal et al., 2017b). Our CT-Net outperforms the state-of-the-art methods in terms of classification accuracy and/or computation cost.
38
+
39
+ # 2 RELATED WORKS
40
+
41
+ 2D CNN for video classification. 2D CNN is a straightforward but useful method for video classification (Karpathy et al., 2014; Simonyan & Zisserman, 2014; Wang et al., 2016; Liu et al., 2020; Jiang et al., 2019). For example, Two-stream methods (Simonyan & Zisserman, 2014) learn video representations by fusing the features from RGB and optical flow respectively. Instead of sampling a single RGB frame, TSN (Wang et al., 2016) proposes a sparse temporal sampling strategy to learn video representations. To further improve accuracy, TSM (Lin et al., 2019) proposes a zeroparameter temporal shift module to exchange information with adjacent frames. However, these methods may lack the capacity of learning spatial-temporal interaction comprehensively, which often reduces their discriminative power to recognize complex human actions.
42
+
43
+ 3D CNN for video classification. 3D CNN has been widely used to learn a rich spatial-temporal context better (Tran et al., 2015; Carreira & Zisserman, 2017; Feichtenhofer et al., 2019; Sudhakaran et al., 2020; Feichtenhofer, 2020). However, it introduces a lot of parameters, which leads to a difficult optimization problem and large computational load. To resolve this issue, I3D (Carreira & Zisserman, 2017) inflates all the 2D convolution kernels pre-trained on ImageNet, which is helpful for optimizing. Other works also try to factorize 3D convolution kernel to reduce complexity, such as P3D (Qiu et al., 2017) and $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ (Tran et al., 2018). Recently, CSN (Tran et al., 2019) operates 3D convolution in the depth-wise manner. Nevertheless, all these methods still do not achieve a good trade-off between accuracy and efficiency. To tackle this challenge, we propose CT-Net which learns on spatial-temporal and channel dimensions jointly with lower computation than previous methods.
44
+
45
+ # 3 METHODS
46
+
47
+ In this section, we describe our Channel Tensorization Network (CT-Net) in detail. First, we formally introduce our CT-Module in a generic manner. Second, we design a Tensor Excitation (TE) mechanism to enhance CT-Module. Finally, we flexibly adapt ResNet as our CT-Net to achieve a preferable trade-off between accuracy and efficiency for video classification.
48
+
49
+ # 3.1 CHANNEL TENSORIZATION MODULE
50
+
51
+ As discussed in the introduction, the previous approaches have problems in convolutional efficiency or feature-interaction sufficiency. To tackle such a problem, we introduce a generic Channel Tensorization Module (CT-Module), by treating the channel dimension of input feature as a multiplication of $K$ sub-dimensions, i.e., $C = C _ { 1 } \times C _ { 2 } \times \cdot \cdot \cdot \times C _ { K }$ . Naturally, this tensor representation allows to tensorize the kernel size of convolution TConv() as a multiplication of $K$ sub-dimensions, too. To simplify the notation, the channel dimension of the output is omitted by default. The output $X _ { o u t }$ can be calculated as follows:
52
+
53
+ $$
54
+ { \bf X } _ { o u t } = T C o n v \left( { \bf X } _ { i n } , { \cal W } ^ { C _ { 1 } \times C _ { 2 } \times \dots \times C _ { K } \times t \times h \times w } \right)
55
+ $$
56
+
57
+ where ${ \bf X } _ { i n }$ and $W$ denote the tensorized input and kernel respectively. However, such an operation requires large computation, so we introduce the tensor separable convolution to alleviate the issue.
58
+
59
+ Tensor Separable Convolution. We propose to factorize TConv() along $K$ channel sub-dimensions. Specifically, we decompose $T C o n \nu ( )$ as $K$ tensor separable convolutions $T S C o n \nu ( )$ , and apply TSConv() sub-dimension by sub-dimension as follows:
60
+
61
+ $$
62
+ { { \bf { X } } _ { k } } = T S C o n \nu \left( { { \bf { X } } _ { k - 1 } } , { W ^ { 1 \times \cdots \times { C _ { k } } \times \cdots \times 1 \times t \times h \times w } } \right)
63
+ $$
64
+
65
+ where ${ \bf X } _ { 0 } ~ = ~ { \bf X } _ { i n }$ and ${ \bf { X } } _ { o u t } ~ = { \bf { X } } _ { K }$ . On one hand, the kernel size of the $k ^ { t h }$ TSConv() is $( 1 \times \cdot \cdot \cdot \times C _ { k } \times \cdot \cdot \cdot \times 1 \times t \times h \times w )$ ). It illustrates that only $C _ { k }$ channels interact in the $k ^ { t h }$ suboperation, which leads to convolution efficiency. On the other hand, as we stack the TSConv(), each convolution performs on the output features of the previous convolution. Therefore, the spatialtemporal receptive field is enlarged. Besides, interactions first occur in $C _ { 1 }$ channels, second in $C _ { 1 } \times C _ { 2 }$ channels and so on. Finally, $C _ { 1 } \times C _ { 2 } \times \cdot \cdot \cdot \times C _ { K } = C$ channels can progressively interact. This clearly satisfies our principle of feature-interaction sufficiency.
66
+
67
+ Spatial-Temporal Tensor Separable Convolution. To further improve convolution efficiency, we factorize the 3D TSConv() into 2D spatial TSConv() and 1D temporal TSConv(). Thus, we can obtain the output features $\mathbf { X } _ { k } ^ { S }$ and $\mathbf { X } _ { k } ^ { T }$ as follows:
68
+
69
+ $$
70
+ \begin{array} { r l } & { \mathbf { X } _ { k } ^ { S } = { S } { - } T { S } C o n \nu \left( \mathbf { X } _ { k - 1 } , W ^ { 1 \times \cdots \times C _ { k } \times \cdots \times 1 \times 1 \times h \times w } \right) } \\ & { } \\ & { \mathbf { X } _ { k } ^ { T } = { T } { - } T { S } C o n \nu \left( \mathbf { X } _ { k - 1 } , W ^ { 1 \times \cdots \times C _ { k } \times \cdots \times 1 \times t \times 1 \times 1 } \right) } \end{array}
71
+ $$
72
+
73
+ where $S _ { - } T S C o n \nu ( \ j$ and T-TSConv() represent spatial and temporal tensor separable convolution respectively. Finally, we attempt to aggregate spatial and temporal convolution. There are various connection types of spatial and temporal tensor separable convolution, e.g., parallel and serial types. According to the results of the experiments in Section 4, we utilize the parallel method, which illustrates that we sum the spatial feature $\mathbf { X } _ { k } ^ { S }$ and temporal feature $\mathbf { X } _ { k } ^ { T }$ :
74
+
75
+ $$
76
+ \mathbf { X } _ { k } = \mathbf { X } _ { k } ^ { S } + \mathbf { X } _ { k } ^ { T }
77
+ $$
78
+
79
+ # 3.2 TENSOR EXCITATION
80
+
81
+ Our CT-Module separates feature along spatial, temporal and channel dimensions. To make full use of their cooperative power to learn distinct video features, we design a concise Tensor Excitation (TE) mechanism for each dimension. First of all, we attempt to utilize the TE mechanism to enhance spatial and temporal features respectively. For the spatial feature $\mathbf { X } _ { k } ^ { S }$ obtained by Equation 5, our corresponding spatial TE mechanism can be formulated as:
82
+
83
+ $$
84
+ \mathbf { U } _ { k } = \mathbf { X } _ { k } ^ { S } \otimes S i g m o d ( S \mathbf { - } T S C o n \nu ( T \mathbf { - } P o o l ( \mathbf { X } _ { k } ^ { S } ) ) )
85
+ $$
86
+
87
+ where T-Pool() represents global temporal pooling, i.e., $T \times 1 \times 1$ average pooling. By performing it on $\mathbf { X } _ { k } ^ { S }$ , we obtain the feature with the size $\left( C _ { 1 } \times C _ { 2 } \times \cdots \times C _ { K } \times 1 \times H \times W \right)$ , which gathers spatial contexts along temporal dimension. Subsequently, the spatial tensor separable convolution $s$ - TSConv() and the activate function Sigmod() are performed to generate the spatial attention heatmap. Finally, the element-wise multiplication $\otimes$ broadcasts the spatial attention along the temporal dimension. Similarly, we perform the temporal TE mechanism for the temporal feature $\mathbf { X } _ { k } ^ { T }$ :
88
+
89
+ $$
90
+ \mathbf { V } _ { k } = \mathbf { X } _ { k } ^ { T } \otimes S i g m o d ( T \mathbf { \cdot } T S C o n \nu ( S \mathbf { \cdot } P o o l ( \mathbf { X } _ { k } ^ { T } ) ) )
91
+ $$
92
+
93
+ where S-Pool() and $T – T S C o n \nu ( )$ are global spatial pooling and temporal tensor separable convolution correspondingly. At last, after aggregating the spatial and temporal features by addition, i.e., ${ \bf R } _ { k } = { \bf \Phi }$ $\mathbf { U } _ { k } + \mathbf { V } _ { k }$ , we perform a channel-wise TE mechanism as follows:
94
+
95
+ $$
96
+ \mathbf { X } _ { k } = \mathbf { R } _ { k } \otimes S i g m o d ( P W \mathbf { - } T S C o n \nu ( S \mathbf { - } P o o l ( \mathbf { R } _ { k } ) ) )
97
+ $$
98
+
99
+ We adopt point-wise tensor separable convolution $P W – T S C o n \nu ( )$ to learn the weights for aggregating distinctive channels. The rest follows the previous design. Note that all tensor separable convolutions are performed on the same sub-dimension as the previous convolution, which is essentially different from the SE mechanism (Hu et al., 2020). Through the cooperation of the TE mechanism along three different dimensions, the spatial-temporal features can be significantly enhanced.
100
+
101
+ ![](images/3123f128bfea1d046977bc9497a4d16414806dba1459d1342333046e084a8d08.jpg)
102
+ Figure 2: The pipelines of CT-Blocks and the overall architecture of CT-Net. We replace one of every two ResBlocks in ResNet with our CT-Block and the extra point-wise convolution in the last sub-dimension $k = K$ ) is ignored. More details can be found in Section3.3.
103
+
104
+ # 3.3 CHANNEL TENSORIZATIONN NETWORK
105
+
106
+ We regard ResNet as an exemplar and build up our CT-Net from ResNet50 (or ResNet101). First, we design a simple CT-Block in Figure 2(a), which adapts the $3 \times 3$ convolutional layer in Residual Block (ResBlock) into our CT-Module. It can achieve both convolutional efficiency and featureinteraction sufficiency. Second, we equip our simple CT-Block with the TE mechanism in Figure 2(b), forming a full CT-Block that can improve the cooperative power of all the feature dimensions. Besides, extra point-wise convolutions are added between different sub-operations, which are beneficial for more sufficient feature interaction. At last, we build up a novel CT-Net with CT-Block. As shown in Figure 2(c), we replace one of every two ResBlocks with our CT-Block in every stage. Such a method guarantees a better balance between efficiency and accuracy in our experiments.
107
+
108
+ Discussion. In fact, the popular methods in video classification like C3D, $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ and CSN (Tran et al., 2015; 2018; 2019) can be viewed as special cases of our CT-Net. We can generate different forms by adjusting three hyper-parameters: the number of sub-dimensions $\mathbf { \eta } ^ { ( K ) }$ , the corresponding dimension size $( C _ { k } )$ and the spatial-temporal kernel size $( K e r n e l _ { k } )$ . To degenerate into C3D, we can set $K = 1$ and $K e r n e l _ { 1 } = 3 \times 3 \times 3$ . When $K = 2$ , $K e r n e l _ { 1 } = 1 \times 3 \times 3$ , $K e r n e l _ { 2 } = 3 \times 1 \times 1$ and $C _ { 1 } = C _ { 2 } = C$ without channel tensorization, it becomes $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ . Unfortunately, because of lacking the decomposition of channels, C3D and $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ still have a large computational load. When $\bar { K ^ { { \prime } } } = 2 , C = \bar { C } _ { 1 } \times C _ { 2 } = C \times 1 , K e r n e l _ { 1 } = 1 \times 1 \times 1 , K e r n e l _ { 2 } = \bar { 3 } \times 3 \times \bar { 3 }$ , obviously it is equivalent to CSN. However, CSN has a limited receptive field of spatial-temporal interaction. In our CT-Net, we utilize channel tensorization and perform tensor separable convolution along each sub-dimension in turn. Such design can not only preserve interaction among spatial, temporal and channel dimensions but also enlarge the receptive field of feature interaction progressively.
109
+
110
+ # 4 EXPERIMENTS AND RESULTS
111
+
112
+ Datasets and implementation details. We conduct experiments on three large video benchmarks: Kinetics-400 (Carreira & Zisserman, 2017), Something-Something V1 and V2 (Goyal et al., 2017b). We choose ResNet50 and ResNet101 (He et al., 2016) pre-trained on ImageNet as the backbone and the parameters of CT-Module are randomly initialized. For training, we utilize the dense sampling strategy (Wang et al., 2018) for Kinetics and sparse sampling strategy (Wang et al., 2016) for Something-Something. Random scaling and cropping are applied for data argumentation. Finally, we resize the cropped regions to $2 5 6 \times 2 5 6$ . For testing, we sample multiple clips per video (4 for Kinetics, 2 for others) for pursuing high accuracy, and average all scores for the final prediction.
113
+
114
+ (a) Effectiveness of CT-Module. CT-Module outperforms the recent modules for video modeling.
115
+
116
+ <table><tr><td>Method</td><td>3D Convolution (t × h × w)</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C3D-Module (Tran et al.,2015)</td><td>Full:3×3×3</td><td>59.9</td><td>46.1</td><td>75.0</td></tr><tr><td>R(2+1)D-Module (Tran et al., 2018)</td><td>Full:1×3×3+Full:3×1×1</td><td>45.8</td><td>47.0</td><td>76.1</td></tr><tr><td>CSN-Module (Tran et al., 2019)</td><td>Full:1×1×1+DW:3×3×3</td><td>35.6</td><td>46.8</td><td>75.7</td></tr><tr><td>Our CT-Module</td><td>C,…,Cκ:1×3×3+3×1×1</td><td>36.3</td><td>47.3</td><td>76.2</td></tr></table>
117
+
118
+ <table><tr><td>Number</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>1D</td><td>45.8</td><td>46.5</td><td>75.6</td></tr><tr><td>2D</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>3D</td><td>35.7</td><td>47.1</td><td>75.8</td></tr><tr><td>4D</td><td>35.6</td><td>46.5</td><td>75.3</td></tr></table>
119
+
120
+ <table><tr><td>Type</td><td>Top-1</td><td>Top-5</td></tr><tr><td>coupling</td><td>47.1</td><td>76.0</td></tr><tr><td>serial</td><td>47.2</td><td>76.1</td></tr><tr><td>parallel</td><td>47.3</td><td>76.2</td></tr></table>
121
+
122
+ <table><tr><td>C</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>1</td><td>45.9</td><td>47.0</td><td>76.1</td></tr><tr><td>4</td><td>37.6</td><td>46.8</td><td>76.0</td></tr><tr><td>16</td><td>36.4</td><td>47.2</td><td>76.0</td></tr><tr><td>[√C]</td><td>36.3</td><td>47.3</td><td>76.2</td></tr></table>
123
+
124
+ (b) Number of sub-dimensions. The higher the dimension, the smaller the GFLOPs. 2D channel tensorization achieves the best trade-off.
125
+
126
+ (c) Connection type of spatiotemporal convolution. The parallel connection between spatial and temporal convolution is the best choice.
127
+
128
+ (d) Dimension size. $C = C _ { 1 } \times C _ { 2 }$ and the best trade-off is achieved when adopting the rounded middle size $\lfloor { \sqrt { C } } \rfloor$ .
129
+
130
+ <table><tr><td>Number</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>+0 (TSN)</td><td>43.0</td><td>16.9</td><td>42.0</td></tr><tr><td>+1 stage5</td><td>41.9</td><td>42.3</td><td>71.1</td></tr><tr><td>+4 stage4-5</td><td>38.9</td><td>46.9</td><td>75.7</td></tr><tr><td>+6 stage3-5</td><td>37.1</td><td>47.2</td><td>76.1</td></tr><tr><td>+7 stage2-5</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>+12 stage2-5</td><td>31.5</td><td>45.9</td><td>76.1</td></tr></table>
131
+
132
+ (e) Number and location of CT-Blocks. Simply replacing 1 block in stage5 can bring significant performance improvement. As we replace more blocks from the bottom up, the GFLOPs continues to decrease. Replacing 7 blocks achieves the best trade-off between accuracy and GFLOPs.
133
+
134
+ (f) Kernel sizes along different dimensions. The larger kernel size brings improvement with more calculation.
135
+
136
+ <table><tr><td>Kernel size</td><td></td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C1 1 ×1× 1 C 1 1x3×3</td><td>1×1×1 3×1×1</td><td>35.5</td><td>46.1</td><td>75.1</td></tr><tr><td>C1 1×1×1 C2 1×5×5</td><td>1×1×1 5×1×1</td><td>36.6</td><td>47.2</td><td>76.2</td></tr><tr><td>C1 1 1x3×3 C 1×3×3</td><td>3×1×1 3×1×1</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>C 1×3×3</td><td>3×1×1</td><td>37.4</td><td>47.5</td><td>76.4</td></tr><tr><td>C2 1×5×5 C1 1 ×5×5</td><td>5×1×1 5×1×1</td><td>38.9</td><td>47.6</td><td>76.5</td></tr></table>
137
+
138
+ <table><tr><td>Model</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Baseline (TSN)</td><td>43.0</td><td>16.9</td><td>42.0</td></tr><tr><td>+CT-Module</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>+CT-Module+PWConv</td><td>37.2</td><td>48.0</td><td>76.7</td></tr><tr><td>+CT-Module+PWConv+SE</td><td>37.2</td><td>48.8</td><td>77.4</td></tr><tr><td>+CT-Module+PWConv+TE</td><td>37.3</td><td>50.1</td><td>78.8</td></tr></table>
139
+
140
+ (g) Impact of different modules. CT-Module is essential for temporal modeling and TE mechanism is also beneficial.
141
+
142
+ <table><tr><td></td><td>Input</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Train: Test:</td><td>224×224 224× 224</td><td>28.6</td><td>49.1</td><td>77.4</td></tr><tr><td>Train: Test:</td><td>224×224 256×256</td><td>37.3</td><td>49.7</td><td>77.7</td></tr><tr><td>Train:</td><td>256×256</td><td>37.3</td><td></td><td>78.8</td></tr><tr><td>Test:</td><td>256×256</td><td></td><td>50.1</td><td></td></tr></table>
143
+
144
+ (h) Impact of different spatial resolution.
145
+
146
+ Table 2: Ablation studies on Something-Something V1. All models use ResNet50 as the backbone
147
+
148
+ We follow the same strategy in Non-local (Wang et al., 2018) to pre-process the frames and take 3 crops of $2 5 6 \times 2 5 6$ as input. Because some multi-clip models in Table 3 and Table 4 sample crops of $2 5 6 \times 2 5 6$ , we simply multiply the GFLOPs reported in the corresponding papers by (256/224)2 for a fair comparison. When considering efficiency, we use just 1 clip per video and the final crop is scaled to $2 5 6 \times 2 5 6$ to ensure comparable GFLOPs.
149
+
150
+ # 4.1 ABLATION STUDIES
151
+
152
+ Table 2 shows our ablation studies on Something-Something V1, which is a challenging dataset that requires video architecture to have a robust spatial-temporal representation ability and is suitable to verify the effectiveness of our method. All models use ResNet50 as the backbone.
153
+
154
+ Effectiveness of CT-Module. In Table 2a, we replace the $3 \times 3$ convolutional layer in ResNet50 with different modules in recent methods (Tran et al., 2015; 2018; 2019). Compared with CSN-Module, our module achieves a better result with similar computation, which reflects the importance of sufficient feature interaction. Besides, it is slightly better than $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ -Module with much lower calculation, showing the necessity of efficient convolution. Such results demonstrate the effectiveness of our CT-Module. It illustrates our two design principles give preferable guidance for designing an efficient module for temporal modeling.
155
+
156
+ Table 3: Comparison with the state-of-the-art on Something-Something V1&V2. Our CT$\mathrm { N e t } _ { 1 6 f }$ outperforms all the single-clip models in Something-Something and even better than most of the multi-clip models. And our $\mathrm { C T - N e t } _ { E N }$ outperforms all methods with very lower computation.
157
+
158
+ <table><tr><td>Method</td><td>Backbone</td><td>#Frame</td><td>GFLOPs</td><td colspan="2">SomethingV1 Top-1 Top-5</td><td colspan="2">SomethingV2 Top-1 Top-5</td></tr><tr><td rowspan="2">ECOENLite (Zolfaghari et al.,2018) NL I3D + GCN (Wang &amp; Gupta,2018)</td><td>Incep+3D R18</td><td>92 32×3×2</td><td rowspan="2">267</td><td>46.4</td><td>=</td><td>■</td><td>=</td></tr><tr><td>3D R50</td><td>1818</td><td>46.1</td><td>76.8</td><td>■</td><td></td></tr><tr><td rowspan="2">ir-CSN (Tran et al.,2019) ir-CSN (Tran et al., 2019) CorrNet (Wang et al.,2020)</td><td>3D R101</td><td>32×1×10</td><td>738</td><td>48.4</td><td>-</td><td>■</td><td>■</td></tr><tr><td>3D R152</td><td>32×1×10</td><td>967 1150</td><td>49.3</td><td>-</td><td>-</td><td>■</td></tr><tr><td rowspan="4">TSN (Wang et al.,2016) TSM (Lin et al., 2019)</td><td>3D R50 2DR50</td><td>32×1×10</td><td></td><td>49.3</td><td>-</td><td>-</td><td>-</td></tr><tr><td></td><td>8</td><td>33</td><td>19.7</td><td>46.6</td><td>27.8</td><td>57.6</td></tr><tr><td>2D R50</td><td>8</td><td>33</td><td>45.6</td><td>74.2</td><td>59.1</td><td>85.6</td></tr><tr><td>bLR50 2D R50</td><td>8×2 8</td><td>24 33</td><td>46.4 47.4</td><td>76.6</td><td>59.1 61.3</td><td>86.0</td></tr><tr><td rowspan="4">TEINet (Liu et al.,2020) TEA (Li et al.,2020b)</td><td>2D Res2Net50</td><td>8</td><td>35</td><td></td><td>■ 78.1</td><td></td><td>-</td></tr><tr><td></td><td></td><td>33</td><td>48.9</td><td></td><td>-</td><td>-</td></tr><tr><td>2D R50+TIM 2D R50+TIM</td><td>8 8×3×2</td><td>259</td><td>49.8 50.4</td><td>- -</td><td>62.6 63.5</td><td>-</td></tr><tr><td>2DR50</td><td>8</td><td>37</td><td>50.1</td><td>78.8</td><td>62.5</td><td>- 87.7</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td>8×3×2</td><td>224</td><td>51.7</td><td>80.1</td><td>63.9</td><td>88.8</td></tr><tr><td>TSN (Wang et al.,2016) TSM (Lin et al.,2019)</td><td>2D R50</td><td>16</td><td>66</td><td>19.9</td><td>47.3</td><td>30.0</td><td>60.5</td></tr><tr><td rowspan="9">bLVNet-TAM (Fan et al.,2019) TEINet (Liu et al., 2020)</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>2D R50</td><td>16</td><td>66</td><td>47.2</td><td>77.1</td><td>63.4</td><td>88.5</td></tr><tr><td>bLR50</td><td>16×2</td><td>48</td><td>48.4</td><td>78.8</td><td>61.7</td><td>88.1</td></tr><tr><td>2D R50</td><td>16</td><td>66</td><td>49.9</td><td>-</td><td>62.1</td><td>-</td></tr><tr><td>TEA (Li et al.,2020b) 2D Res2Net50</td><td>16</td><td>70</td><td>51.9</td><td>80.3</td><td>-</td><td>-</td></tr><tr><td>PEM+TDLoss (Weng et al.,2020) 2D R50+TIM</td><td>16</td><td>66</td><td>50.9</td><td>-</td><td>63.8</td><td>-</td></tr><tr><td>2D R50+TIM</td><td>16×3×2</td><td>517</td><td>52.0</td><td>1</td><td>65.0</td><td>-</td></tr><tr><td>2D R50</td><td>16</td><td>75</td><td>52.5</td><td>80.9</td><td>64.5</td><td></td></tr><tr><td></td><td>16×3×2</td><td>447</td><td>53.4</td><td>81.7</td><td>65.9</td><td>89.3</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td></td><td></td><td></td><td></td><td></td><td>90.1</td></tr><tr><td>Our CT-NetEN</td><td>2D (R50)×4</td><td>8+12+16+24</td><td>280</td><td>56.6</td><td>83.9</td><td>67.8</td><td>91.1</td></tr></table>
159
+
160
+ Number of sub-dimensions. Increasing the number of sub-dimensions saves a lot of computation, but the corresponding accuracy first increases and then decreases as shown in Table 2b. Compared with the 1D method, the 4D method significantly reduces GFLOPs, achieving comparable accuracy. As for the decrease of accuracy when $K$ is too large, we argue that the number of channel in the shallow layer is small (64/128), thus there are too few channels in a single dimension, leading to insufficient feature-interaction. Since the 2D method obtains the best trade-off, we set $K = 2$ in all the following experiments.
161
+
162
+ Connection type of spatiotemporal convolution. The coupling $3 \times 3 \times 3$ convolution can be decomposed into serial or parallel spatial/temporal convolution. Table 2c reveals that factorizing the 3D kernel can boost results as expected. Besides, the parallel connection is better, thus we adopt parallel connection as the default.
163
+
164
+ Dimension size. As we set $K = 2$ , it is essential to explore the impact of changing the dimension size $C _ { 2 }$ . We can demonstrate that the computation is the lowest when $C _ { 1 } = C _ { 2 } = { \sqrt { C } }$ . Since $C$ is not always a perfect square number, we adopt the rounded middle size √ $\lfloor { \sqrt { C } } \rfloor$ . Table 2d shows that when $\dot { C _ { 2 } } = \dot { [ \sqrt { C } ] }$ , the model not only requires the fewest computation cost but also achieves the best performance. Hence, we set $C _ { 2 } = \lfloor { \sqrt { C } } \rfloor$ naturally.
165
+
166
+ Number and location of CT-Blocks. Table 2e illustrates that simply replacing 1 block in stage5 can bring significant performance improvement ( $1 6 . 9 \%$ vs. $4 2 . 3 \%$ ). As we replace more blocks from the bottom up, the GFLOPs continues to decrease. Moreover, the bottom blocks seem to be more beneficial to temporal modeling, since replacing the extra 3 blocks in stage2 and stage3 only improve the accuracy by $0 . 4 \%$ $4 6 . 9 \%$ vs. $4 7 . 3 \%$ ). Since replacing 7 blocks achieves the highest accuracy, we replace 7 blocks by default.
167
+
168
+ Kernel sizes along different dimensions. In Table 2f, we can observe that two concatenated $3 ^ { 3 }$ convolution kernels are slightly better than those with the same receptive field $( 1 ^ { 3 } + 5 ^ { 3 } )$ . Furthermore, the larger kernel size can bring performance improvement but more calculation. It reveals that our CT-Module avoids the limited receptive field of feature interaction, and it can progressively enlarge the receptive field of such interaction on all the dimensions. Considering a better trade-off between accuracy and computation, we choose two concatenated $3 ^ { 3 }$ convolution kernels.
169
+
170
+ Table 4: Comparison with the state-of-the-art on Kinetics-400. It shows that CT-Net- $R 5 0 _ { 1 6 f }$ can surpass all existing lightweight models and even SlowFast- $R 5 0 _ { 4 0 f }$ . When fusing different models, our model is $\mathbf { 2 . 4 } \times$ faster than SlowFast- $\operatorname { R } 1 0 1 _ { 8 0 f }$ and shows an $0 . { \dot { 9 } } \%$ performance gain.
171
+
172
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Backbone</td><td rowspan=1 colspan=1>#Frame</td><td rowspan=1 colspan=1>GFLOPs</td><td rowspan=1 colspan=1>Top-1 Top-5</td></tr><tr><td rowspan=1 colspan=1>R(2+1)D (Tran et al.,2018)TSN (Wang et al., 2016)I3D (Carreira &amp; Zisserman,2017)</td><td rowspan=1 colspan=1>2DR34InceptionInception</td><td rowspan=1 colspan=1>32×1×1025×10×164×N/A×N/A</td><td rowspan=1 colspan=1>1520=152×10800=80×10108×N/A</td><td rowspan=1 colspan=1>72.0 91.472.5 90.271.1 89.3</td></tr><tr><td rowspan=2 colspan=1>TSM (Lin et al.,2019)TEINet (Liu et al., 2020)bLVNet-TAM (Fan et al., 2019)TEA (Li et al., 2020b)PEM+TDLoss (Weng et al., 2020)CorrNet (Wang et al., 2020)SlowFast (Feichtenhofer et al.,2019)SlowFast (Feichtenhofer et al., 2019)</td><td rowspan=2 colspan=1>2DR502D R50bLR502DRes2Net502D R50+TIM3D R503D R50+R503D R50+R50</td><td rowspan=2 colspan=1>16×3��1016×3×10(16×2)×3×316×3×1016×3×1032×1×1036=(4+32)×3×1040=(8+32)×3×10</td><td rowspan=1 colspan=1>2580=86×302580=86×30</td><td rowspan=1 colspan=1>74.7 -76.2 92.5</td></tr><tr><td rowspan=1 colspan=1>561=62.3×92730=91×302580=86×301150=115×101083=36.1×301971=65.7×30</td><td rowspan=1 colspan=1>72.0 90.676.1 92.576.9 93.077.2 -75.2 91.576.4 92.2</td></tr><tr><td rowspan=1 colspan=1>Our CT-Net</td><td rowspan=1 colspan=1>2D R50</td><td rowspan=1 colspan=1>16×3×4</td><td rowspan=1 colspan=1>895=74.6×12</td><td rowspan=1 colspan=1>77.3 92.7</td></tr><tr><td rowspan=4 colspan=1>X3D-XL (Feichtenhofer,2020)SmallBigNet (Li et al.,2020a)ip-CSN (Tran et al., 2019)ip-CSN (Tran et al.,2019)CorrNet (Wang et al.,2020)SlowFast (Feichtenhofer et al.,2019)SlowFast (Feichtenhofer et al.,2019)NL I3D (Wang &amp; Gupta,2018)</td><td rowspan=1 colspan=1>-2D R101</td><td rowspan=1 colspan=1>16×3×1032×3×4</td><td rowspan=1 colspan=1>1452=48.4×306552=546×12</td><td rowspan=4 colspan=1>79.1 93.977.4 93.376.8 92.577.8 92.879.277.9 93.278.9 93.577.7 93.3</td></tr><tr><td rowspan=1 colspan=1>3D R1013D R1523D R101</td><td rowspan=3 colspan=1>32×3×1032×3×1032×3×1040=(8+32)×3×1080=(16+64)×3×10128×3×10</td><td rowspan=2 colspan=1>2490=83.0×303264=108.8×306720=224×303180=106×306390=213×30</td></tr><tr><td rowspan=2 colspan=1>3D R101+R1013D R101+R1013D R101</td></tr><tr><td rowspan=1 colspan=1>10770=359×30</td></tr><tr><td rowspan=1 colspan=1>Our CT-NetOur CT-NetEN</td><td rowspan=1 colspan=1>2D R1012D R50+R101</td><td rowspan=1 colspan=1>16×3×4(16+16)×3×4</td><td rowspan=1 colspan=1>1746=145.5×122641=220.1×12</td><td rowspan=1 colspan=1>78.8 93.779.8 94.2</td></tr></table>
173
+
174
+ Impact of different modules and different spatial resolution. In Table $2 \mathrm { g }$ , our CT-Module can significantly boost its baseline ( $1 6 . 9 \%$ vs. $4 7 . 3 \%$ ) and the TE mechanism can further improve the accuracy by $2 . 1 \%$ $4 8 . 0 \%$ vs. $5 0 . 1 \%$ ). The extra point-wise convolution also boosts performance, which demonstrates that it is beneficial for sufficient feature interaction. Compared with the SE mechanisms, our TE mechanism focuses more on features in different sub-dimensions individually, thus effectively enhancing spatial-temporal features. In our experiments, to ensure GFLOPs is comparable with other methods, we crop the input to $2 5 6 \times 2 5 6$ during testing. Table 2h shows both training and testing with a larger spatial resolution of input bring clear performance improvement.
175
+
176
+ # 4.2 COMPARISONS WITH THE STATE-OF-THE-ARTS
177
+
178
+ Something-Something V1&V2. We make a comprehensive comparison in Table 3. Compared with NL $\mathrm { I } 3 \mathrm { D } { + } \mathrm { G C N } _ { 3 2 f }$ , our $\mathrm { C T - N e t } _ { 8 f }$ gains $4 . 0 \%$ top-1 accuracy improvement with ${ \bf 4 9 . 1 \times }$ fewer GFLOPs in Something-Something V1. Besides, our ${ \mathrm { C T - N e t } } _ { 8 f }$ $( 5 1 . 7 \% )$ is better than the ir- $\mathrm { C S N _ { 3 2 f } }$ $( 4 9 . 3 \% )$ which adopts ResNet-152 as the backbone. Moreover, our $\mathrm { C T - N e t } _ { 1 6 f }$ outperforms all the single-clip models in Something-Something V1&V2 and even better than most of the multiclip models. It illustrates that our CT-Net is preferable to capture temporal contextual information efficiently. Surprisingly, with only 280 GFLOPs, our ensemble model $\mathrm { C T - N e t } _ { E N }$ achieves $5 6 . 6 \% ( 6 7 . 8 \% )$ top-1 accuracy in Something-Something V1(V2), which outperforms all methods.
179
+
180
+ Kinetics-400. Kinetics-400 is a large-scale sence-related dataset, and the lightweight 2D models are usually inferior to the 3D models on it. Table 4 shows our CT-Net- $R 5 0 _ { 1 6 f }$ can surpass all existing lightweight models based on 2D backbone. Even compared with SlowFast- $R 5 0 _ { 4 0 f }$ , our CT-Net$\mathsf { R } 5 0 _ { 1 6 f }$ also achieves higher accuracy $7 7 . 3 \%$ vs. $7 6 . 4 \%$ ). Note that our reproduced SlowFastR50 performs worse than that in the paper (Feichtenhofer et al., 2019), which may result from the missing videos in Kinetics-400. As for the deeper model, compared with SlowFast- $\mathbf { R } 1 0 1 _ { 8 0 f }$ , our CT-Net- $\mathbf { R } 1 0 1 _ { 1 6 f }$ requires $\mathbf { 3 . 7 \times }$ fewer GFLOPs but gains comparable results $7 8 . 8 \%$ vs. $7 8 . 9 \%$ . Besides, it achieves comparable top-1 accuracy with X3D-XL $7 8 . 8 \%$ vs. $7 9 . 1 \%$ ) under a similar GFLOPs. However, X3D requires extensive model searching with an expensive GPU setting, while our CT-Net can be trained traditionally with feasible computation. We perform score fusion over CT-Net- $\mathsf { R } 5 0 _ { 1 6 f }$ and ${ \mathrm { C T - N e t - R } } 1 0 1 _ { 1 6 f }$ , which mimics two-steam fusion with two temporal rates. In this setting, our model is $\mathbf { 2 . 4 } \times$ faster than SlowFast- $\operatorname { R } 1 0 1 _ { 8 0 f }$ and shows an $0 . 9 \%$ performance gain $7 9 . 8 \%$ vs. $7 8 . 9 \%$ ) but only uses 32 frames.
181
+
182
+ ![](images/e9e0e87428692253ba228bd386f54e25af6ab14d47236004693285bf8da2671f.jpg)
183
+ Figure 3: Comparison of visualization. Videos are sampled from Something-Something V1. Compared with $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ and CSN, our CT-Net can localize the action and object better both in space and time thanks to the larger spatial-temporal receptive field.
184
+
185
+ # 4.3 VISUALIZATION
186
+
187
+ We use Saliency Tubes (Stergiou et al., 2019) to generate the visualization, for it can show the most discriminative features that the network locates. In Figure 3, we sample two videos from SomethingSomething V1 which requires complex temporal modeling. In the left example, our CT-Net focuses on a larger area around the towel, especially in the fourth and fifth frames, thus predicting that someone is twisting it. In contrast, $\mathrm { R } ( 2 { + } 1 ) \mathrm { D }$ only concentrates on one side of the towel and gives the wrong judgment. The same situation can be seen in the right example. We argue that CT-Net can localize the action and object accurately thanks to the larger spatial-temporal receptive field. As for CSN, the regions of interest seem to be scattered, because it lacks sufficient spatial-temporal interaction, thus ignoring the rich context both in space and time.
188
+
189
+ # 5 CONCLUSIONS
190
+
191
+ In this paper, we construct an efficient tensor separable convolution to learn the discriminative video representation. We view the channel dimension of the input feature as a multiplication of K subdimensions and stack spatial/temporal tensor separable convolution along each of K sub-dimensions. Moreover, CT-Module is cooperated with the Tensor Excitation mechanism to further improve performance. All experiments demonstrate that our concise and novel CT-Net obtains a preferable balance between accuracy and efficiency on large-scale video datasets. Our proposed principles are preferable guidance for designing an efficient module for temporal modeling.
192
+
193
+ # 6 ACKNOWLEDGEMENT
194
+
195
+ This work is partially supported by National Natural Science Foundation of China (6187617, U1713208), the National Key Research and Development Program of China (No. 2020YFC2004800), Science and Technology Service Network Initiative of Chinese Academy of Sciences (KFJ-STS-QYZX-092), Shenzhen Institute of Artificial Intelligence and Robotics for Society.
196
+
197
+ # REFERENCES
198
+
199
+ Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics ˜ dataset. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4724– 4733, 2017.
200
+
201
+ Quanfu Fan, Chun-Fu Chen, Hilde Kuehne, Marco Pistoia, and D. Cox. More is less: Learning efficient video representations by temporal aggregation module. In NeurIPS 2019, 2019.
202
+
203
+ Christoph Feichtenhofer. X3d: Expanding architectures for efficient video recognition. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 200–210, 2020.
204
+
205
+ Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6201– 6210, 2019.
206
+
207
+ Priya Goyal, P. Dollar, Ross B. Girshick, P. Noordhuis, L. Wesolowski, Aapo Kyrola, Andrew Tul- ´ loch, Y. Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. ArXiv, abs/1706.02677, 2017a.
208
+
209
+ Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Frund, Peter Yianilos, Moritz Mueller-Freitag, Florian ¨ Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The “something something” video database for learning and evaluating visual common sense. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 5843–5851, 2017b.
210
+
211
+ Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.
212
+
213
+ Jie Hu, Li Shen, Samuel Albanie, Gang Sun, and Enhua Wu. Squeeze-and-excitation networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 42:2011–2023, 2020.
214
+
215
+ Boyuan Jiang, Mengmeng Wang, Weihao Gan, Wei Wu, and Junjie Yan. Stm: Spatiotemporal and motion encoding for action recognition. 2019 IEEE International Conference on Computer Vision (ICCV), pp. 2000–2009, 2019.
216
+
217
+ A. Karpathy, G. Toderici, Sanketh Shetty, T. Leung, R. Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. 2014 IEEE Conference on Computer Vision and Pattern Recognition, pp. 1725–1732, 2014.
218
+
219
+ Hilde Kuehne, Hueihan Jhuang, E. Garrote, T. Poggio, and Thomas Serre. Hmdb: A large video database for human motion recognition. 2011 International Conference on Computer Vision, pp. 2556–2563, 2011.
220
+
221
+ X. Li, Yali Wang, Zhipeng Zhou, and Yu Qiao. Smallbignet: Integrating core and contextual views for video classification. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1089–1098, 2020a.
222
+
223
+ Yinong Li, Bin Ji, Xintian Shi, Jianguo Zhang, Bin Kang, and Limin Wang. Tea: Temporal excitation and aggregation for action recognition. ArXiv, abs/2004.01398, 2020b.
224
+
225
+ Ji Lin, Chuang Gan, and Song Han. Tsm: Temporal shift module for efficient video understanding. 2019 IEEE International Conference on Computer Vision (ICCV), pp. 7082–7092, 2019.
226
+
227
+ Zhaoyang Liu, D. Luo, Yabiao Wang, L. Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Tong Lu. Teinet: Towards an efficient architecture for video recognition. ArXiv, abs/1911.09435, 2020.
228
+
229
+ I. Loshchilov and F. Hutter. Sgdr: Stochastic gradient descent with warm restarts. In ICLR, 2017.
230
+
231
+ Zhaofan Qiu, Ting Yao, and Tao Mei. Learning spatio-temporal representation with pseudo-3d residual networks. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 5534– 5542, 2017.
232
+
233
+ K. Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NIPS, 2014.
234
+
235
+ K. Soomro, A. Zamir, and M. Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. ArXiv, abs/1212.0402, 2012.
236
+
237
+ Alexandros Stergiou, G. Kapidis, Grigorios Kalliatakis, C. Chrysoulas, R. Veltkamp, and R. Poppe. Saliency tubes: Visual explanations for spatio-temporal convolutions. 2019 IEEE International Conference on Image Processing (ICIP), pp. 1830–1834, 2019.
238
+
239
+ Swathikiran Sudhakaran, S. Escalera, and O. Lanz. Gate-shift networks for video action recognition. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1099–1108, 2020.
240
+
241
+ Du Tran, Lubomir D. Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. 2015 IEEE International Conference on Computer Vision (ICCV), pp. 4489–4497, 2015.
242
+
243
+ Du Tran, Hong xiu Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018.
244
+
245
+ Du Tran, Heng Wang, Lorenzo Torresani, and Matt Feiszli. Video classification with channelseparated convolutional networks. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 5551–5560, 2019.
246
+
247
+ Heng Wang, Du Tran, L. Torresani, and Matt Feiszli. Video modeling with correlation networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 349–358, 2020.
248
+
249
+ L. Wang, Yuanjun Xiong, Zhe Wang, Y. Qiao, D. Lin, X. Tang, and L. Gool. Temporal segment networks: Towards good practices for deep action recognition. In ECCV, 2016.
250
+
251
+ X. Wang and A. Gupta. Videos as space-time region graphs. In ECCV, 2018.
252
+
253
+ Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7794–7803, 2018.
254
+
255
+ Junwu Weng, D. Luo, Yabiao Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, Xudong Jiang, and J. Yuan. Temporal distinct representation learning for action recognition. ArXiv, abs/2007.07626, 2020.
256
+
257
+ Saining Xie, C. Sun, J. Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In ECCV, 2018.
258
+
259
+ Mohammadreza Zolfaghari, K. Singh, and T. Brox. Eco: Efficient convolutional network for online video understanding. ArXiv, abs/1804.09066, 2018.
260
+
261
+ # A APPENDIX
262
+
263
+ # A.1 MORE TRAINING DETAILS
264
+
265
+ We use SGD with momentum 0.9 and cosine learning rate schedule (Loshchilov & Hutter, 2017) to train the entire network. The first 10 epochs are used for warm-up (Goyal et al., 2017a) to overcome early optimization difficulty. For kinetics, the batch, total epochs, initial learning rate, dropout and weight decay are set to 64, 110, 0.01, 0.5 and 1e-4 respectively. All these hyper-parameters are set to 64, 45, 0.02, 0.3 and 5e-4 respectively for Something-Something.
266
+
267
+ # A.2 TENSOR EXCITATION MECHANISM
268
+
269
+ The implementation of our Tensor Excitation is shown in Figure 4. Different from the SE module, we use tensor separable convolution in the TE mechanism. Moreover, when obtaining the spatial attention, we squeeze the temporal dimension and perform spatial tensor separable convolution, because temporal information is insignificant for spatial attention and vice versa. We add the Batch Normalization (BN) layer for better optimization.
270
+
271
+ # A.3 RESULTS ON UCF101 AND HMDB51
272
+
273
+ To verify the generation ability of our CT-Net on smaller datasets, we conduct transfer learning experiments from Kinetics400 to UCF101 (Soomro et al., 2012) and HMDB-51 (Kuehne et al., 2011). We test CT-Net with 16 input frames and evaluate it over three splits and report the averaged results. As shown in Table 5, our $\mathrm { C T - N e t } _ { 1 6 f }$ achieves competitive performance when compared with the recent methods, which demonstrates the generation ability of our CT-Net.
274
+
275
+ ![](images/1d22d1e7f98cf1eda2d2109a7687480c59fdd392ebb5fd9b50f5dcead5888ea9.jpg)
276
+
277
+ Figure 4: The implementation of our Tensor Excitation (TE) mechanism.
278
+ Table 5: Comparison results on UCF101 and HMDB51.
279
+
280
+ <table><tr><td>Method</td><td>Backbone</td><td>Pretrain</td><td>UCF101</td><td>HMDB51</td></tr><tr><td>C3D(Tran et al.,2015)</td><td>3D VGG-11</td><td>Sports-1M</td><td>82.3</td><td>51.6</td></tr><tr><td>I3D(Carreira &amp; Zisserman, 2017)</td><td>3D Inception</td><td>ImageNet+Kinetics</td><td>95.1</td><td>74.3</td></tr><tr><td>ECO(Zolfaghari et al.,2018)</td><td>Inception+3D R18</td><td>ImageNet+Kinetics</td><td>94.8</td><td>72.4</td></tr><tr><td>TSN(Wang et al., 2016)</td><td>Inception</td><td>ImageNet+Kinetics</td><td>91.1</td><td>=</td></tr><tr><td>TSM(Lin et al., 2019)</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>94.5</td><td>70.7</td></tr><tr><td>STM(Jiang et al., 2019)</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>96.2</td><td>72.2</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>96.2</td><td>73.2</td></tr></table>
281
+
282
+ # A.4 MORE RESULTS ON SOMETHING-SOMETHING V1&V2
283
+
284
+ Table 6 shows more results on Something-Something V1&V2. We train CT-Net with a different number of input frames and then test these models with different sampling strategies. We average the prediction scores obtained from the previous models to evaluate the ensemble models. With more input frames, the corresponding accuracy becomes higher. As for the reason that $\mathrm { C T - N e t } _ { 2 4 f }$ is worse than $\mathrm { C T - N e t } _ { 1 6 f }$ , we argue that is because the model is hard to optimize with too many input frames. Sampling more clips or more crops also boosts performance. Moreover, our ensemble models gain the state-of-the-art top-1 accuracy of $5 6 . 6 \% ( 6 8 . 3 \% )$ on Something-Something V1(V2).
285
+
286
+ # A.5 MORE ABLATION STUDIES ON MINI-KINETICS AND SOMETHING-SOMETHING V2
287
+
288
+ To verify the effectiveness of our module comprehensively, we also conduct experiments in MiniKinetics and Something-Something V2 and report the multi-clip accuracy and single-clip accuracy respectively. Mini-Kinetics covers 200 action classes and is a subset of Kinetics-400, while Something-Something V2 covers the same action classes as Something-Something V1 but contains more videos. As shown in Table 7, the performance trend of different modules is similar to that shown in Table 2a. Since Mini-Kinetics does not highly depend on temporal modeling, the gap becomes smaller but still demonstrates the effectiveness of our CT-Module.
289
+
290
+ # A.6 ADAPTING DIFFERENT PRE-TRAINED IMAGENET ARCHITECTURES AS CT-NET
291
+
292
+ In fact, by directly replacing the $3 \times 3$ convolution with our CT-Module, we can easily adapt different pre-trained ImageNet architectures as CT-Net. Table 8 shows that it is also sensible to use InceptionV3 as the backbone. We believe that through more elaborate design, our CT-Net based on different backbones can achieve comparable performance.
293
+
294
+ # A.7 VALIDATION PLOT
295
+
296
+ In Figure 5, we plot the accuracy vs per-clip GFLOPs on Kinetics-400. It reveals that our CT-Net achieves a better trade-off than most of the existing methods on Kinetics-400.
297
+
298
+ Table 6: More results on Something-Something V1&V2.
299
+
300
+ <table><tr><td>Method</td><td>#Frame</td><td>GFLOPs</td><td>#Param</td><td colspan="2">SomethingV1 Top-1 Top-5</td><td colspan="2">SomethingV2 Top-1 Top-5</td></tr><tr><td rowspan="9">Our CT-Net</td><td>8 12</td><td>37 56</td><td rowspan="3">21.0M</td><td>50.1</td><td>78.8</td><td>62.5</td><td>87.7</td></tr><tr><td></td><td></td><td>52.1</td><td>80.0</td><td>63.9</td><td>88.7</td></tr><tr><td></td><td></td><td>52.5</td><td>80.9</td><td>64.5</td><td>89.3</td></tr><tr><td>16 24</td><td>75 112</td><td rowspan="4"></td><td>52.5</td><td>80.9</td><td>64.6</td><td>89.1</td></tr><tr><td>8x1x2</td><td>75</td><td>51.6</td><td>79.7</td><td>63.5</td><td>88.5</td></tr><tr><td>12×1×2</td><td>112</td><td>52.8</td><td>80.6</td><td>64.6</td><td>89.3</td></tr><tr><td>16×1×2</td><td>151</td><td>53.2</td><td>81.3</td><td>65.2</td><td>89.7</td></tr><tr><td>24×1×2</td><td>224</td><td>52.9</td><td>81.3</td><td>65.0</td><td>89.3</td></tr><tr><td>8×3×2</td><td>224</td><td rowspan="4">21.0M</td><td>51.7</td><td>80.1</td><td>63.9</td><td>88.8</td></tr><tr><td>12×3×2</td><td>336</td><td>53.0</td><td>81.1</td><td>65.3</td><td>89.6</td></tr><tr><td>16×3×2</td><td>447</td><td>53.4</td><td>81.7</td><td>65.9</td><td>90.1</td></tr><tr><td>24×3×2</td><td></td><td>53.6</td><td>81.6</td><td>65.5</td><td>89.8</td></tr><tr><td rowspan="3">Our CT-NetEN</td><td rowspan="3">8+16 (8+12+16+24)×1× 2</td><td>672 112</td><td rowspan="3">83.8M</td><td>54.4</td><td>82.0</td><td>66.2</td><td>90.4</td></tr><tr><td>280</td><td>56.6</td><td>83.9</td><td>67.8</td><td>91.1</td></tr><tr><td>560</td><td>56.6</td><td>84.0</td><td>67.8</td><td>91.3</td></tr><tr><td></td><td>(8+12+16+24)×1 × 2 (8+12+16+24)×3×2</td><td>1679</td><td></td><td>56.6</td><td>83.9</td><td>68.3</td><td>91.3</td></tr></table>
301
+
302
+ Table 7: More ablation studies on Mini-Kinetics and Something-Something V2.
303
+
304
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Backbone</td><td rowspan="2">GFLOPs</td><td colspan="2">Mini-Kinetics</td><td colspan="2">SomethingV2</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C3D-Module (Tran et al., 2015)</td><td>2D R50</td><td>59.9</td><td>77.5</td><td>93.0</td><td>59.1</td><td>85.5</td></tr><tr><td>R(2+1)D-Module (Tran et al., 2018)</td><td>2D R50</td><td>45.8</td><td>77.8</td><td>93.2</td><td>60.0</td><td>86.0</td></tr><tr><td>CSN-Module (Tran et al.,2019)</td><td>2D R50</td><td>35.6</td><td>77.6</td><td>93.2</td><td>59.5</td><td>86.0</td></tr><tr><td>Our CT-Module</td><td>2D R50</td><td>36.3</td><td>78.0</td><td>93.6</td><td>60.3</td><td>86.4</td></tr></table>
305
+
306
+ Table 8: Adapting different pre-trained ImageNet architectures as CT-Net.
307
+
308
+ <table><tr><td>Method</td><td>Backbone</td><td>GFLOPs</td><td>#Param.(M)</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Baseline (TSN)</td><td>2D ResNet-50</td><td>43.0</td><td>23.9</td><td>16.9</td><td>42.0</td></tr><tr><td>Our CT-Net</td><td>2D ResNet-50</td><td>37.3</td><td>21.0</td><td>50.1</td><td>78.8</td></tr><tr><td>Baseline (TSN)</td><td>InceptionV3</td><td>45.8</td><td>22.1</td><td>18.3</td><td>43.9</td></tr><tr><td>Our CT-Net</td><td>InceptionV3</td><td>43.9</td><td>20.9</td><td>47.2</td><td>76.1</td></tr></table>
309
+
310
+ ![](images/b2f3ea6a4dccbaf4e10643bebf839cb1adecc4f29e2196a615abde7b18fdf557.jpg)
311
+ Figure 5: Accuracy vs per-clip GFLOPs on Kinetics-400.
parse/train/UoaQUQREMOs/UoaQUQREMOs_content_list.json ADDED
@@ -0,0 +1,1588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "CT-NET: CHANNEL TENSORIZATION NETWORK FOR VIDEO CLASSIFICATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Kunchang $\\mathbf { L i } ^ { 1 2 }$ ∗, Xianhang $\\mathbf { L i ^ { \\alpha } }$ ∗, Yali Wang13∗, Jun Wang 4& Yu Qiao13† ",
17
+ "bbox": [
18
+ 187,
19
+ 167,
20
+ 678,
21
+ 185
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Guangdong-Hong Kong-Macao Joint Laboratory of Human-Machine \nIntelligence-Synergy Systems, Shenzhen Institutes of Advanced Technology, \nChinese Academy of Sciences, Shenzhen, 518055, China \n2University of Chinese Academy of Sciences \n3SIAT Branch, Shenzhen Institute of Artificial Intelligence and Robotics for Society \n4University of Central Florida \n{kc.li, yl.wang, yu.qiao}@siat.ac.cn \nxianhangli@knights.ucf.edu, Jun.Wang@ucf.edu ",
28
+ "bbox": [
29
+ 184,
30
+ 198,
31
+ 735,
32
+ 313
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 349,
43
+ 544,
44
+ 364
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "3D convolution is powerful for video classification but often computationally expensive, recent studies mainly focus on decomposing it on spatial-temporal and/or channel dimensions. Unfortunately, most approaches fail to achieve a preferable balance between convolutional efficiency and feature-interaction sufficiency. For this reason, we propose a concise and novel Channel Tensorization Network (CTNet), by treating the channel dimension of input feature as a multiplication of $K$ sub-dimensions. On one hand, it naturally factorizes convolution in a multiple dimension way, leading to a light computation burden. On the other hand, it can effectively enhance feature interaction from different channels, and progressively enlarge the 3D receptive field of such interaction to boost classification accuracy. Furthermore, we equip our CT-Module with a Tensor Excitation (TE) mechanism. It can learn to exploit spatial, temporal and channel attention in a high-dimensional manner, to improve the cooperative power of all the feature dimensions in our CT-Module. Finally, we flexibly adapt ResNet as our CT-Net. Extensive experiments are conducted on several challenging video benchmarks, e.g., Kinetics-400, Something-Something V1 and V2. Our CT-Net outperforms a number of recent SOTA approaches, in terms of accuracy and/or efficiency. ",
51
+ "bbox": [
52
+ 233,
53
+ 383,
54
+ 764,
55
+ 619
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 178,
65
+ 652,
66
+ 364,
67
+ 669
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "3D convolution has been widely used to learn spatial-temporal representation for video classification (Tran et al., 2015; Carreira & Zisserman, 2017). However, over parameterization often makes it computationally expensive and hard to train. To alleviate such difficulty, recent studies mainly focus on decomposing 3D convolution (Tran et al., 2018; 2019). One popular approach is spatial-temporal factorization (Qiu et al., 2017; Tran et al., 2018; Xie et al., 2018), which can reduce overfitting by replacing 3D convolution with 2D spatial convolution and 1D temporal convolution. But it still introduces unnecessary computation burden, since both spatial convolution and temporal convolution are performed over all the feature channels. To further decrease such computation cost, channel separation has been recently developed via operating 3D convolution in the depth-wise manner (Tran et al., 2019). However, it inevitably loses accuracy due to the lack of feature interaction between different channels. For compensation, it has to introduce point-wise convolution to preserve interaction with extra computation. So there is a natural question: How to construct effective 3D convolution to achieve a preferable trade-off between efficiency and accuracy for video classification? ",
74
+ "bbox": [
75
+ 174,
76
+ 688,
77
+ 825,
78
+ 867
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/33180bbaf52b7732efb27fed5479943b88d9cbd561ea5a770ea36421515293a0.jpg",
85
+ "image_caption": [
86
+ "Interaction (no.of channels,size of receptive field): $( C _ { 1 }$ channels $3 \\times 3 \\times 3 )$ $( C _ { 1 } \\times C _ { 2 } = C$ channels,5 × 5 × 5) "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 178,
91
+ 98,
92
+ 818,
93
+ 292
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "table",
99
+ "img_path": "images/c701281a1c1bb1a9e6263575045da60c09d80d7d9e2e91b3423f600b5ba37874.jpg",
100
+ "table_caption": [
101
+ "Figure 1: Simple illustration of channel tensorization $K = 2$ ). We tensorize the channel dimension of input feature as a multiplication of $K$ sub-dimensions. Via performing spatial/temporal tensor separable convolution along each sub-dimension, we can achieve a preferable balance between convolutional efficiency and feature-interaction sufficiency. Introduction shows more explanations. "
102
+ ],
103
+ "table_footnote": [
104
+ "1 Interact Field means the receptive field for feature interaction. "
105
+ ],
106
+ "table_body": "<table><tr><td rowspan=2 colspan=1>Method</td><td rowspan=2 colspan=1>3D Convolution(t ×hxw)</td><td rowspan=1 colspan=2>Convolutional Efficiency</td><td rowspan=1 colspan=1>Feature-Interact</td><td rowspan=1 colspan=1>onSufficiency</td></tr><tr><td rowspan=1 colspan=1>Spatial-temporal</td><td rowspan=1 colspan=1>Channel</td><td rowspan=1 colspan=1>Interact Manner</td><td rowspan=1 colspan=1>InteractField1</td></tr><tr><td rowspan=1 colspan=1>C3D(Tran et al., 2015)</td><td rowspan=1 colspan=1>Full:3×3×3</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>STC</td><td rowspan=1 colspan=1>33</td></tr><tr><td rowspan=1 colspan=1>R(2+1)D(Tran et al., 2018)</td><td rowspan=1 colspan=1>Full:1×3×3Full:3×1×1</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>SCTC</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>CSN(Tran et al., 2019)</td><td rowspan=1 colspan=1>Full:1×1×1DW:3×3×3</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>CST</td><td rowspan=1 colspan=1>33</td></tr><tr><td rowspan=1 colspan=1>Our CT-Net(C=C1x..xCK)</td><td rowspan=1 colspan=1>C1:C1×.x1x(1x3×3+3×1×1)Ck:1xxCkx(1x3×3+3×1×1)</td><td rowspan=1 colspan=1>&lt;</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>STC1STCK</td><td rowspan=1 colspan=1>(2K + 1)3</td></tr></table>",
107
+ "bbox": [
108
+ 173,
109
+ 382,
110
+ 825,
111
+ 482
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Table 1: Two design principles to build effective video representation and efficient convolution. ",
118
+ "bbox": [
119
+ 186,
120
+ 507,
121
+ 810,
122
+ 522
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "This paper attempts to address this question by investigating two design principles. (1) Convolutional Efficiency. As shown in Table 1, current designs of spatial-temporal convolution mainly focus on decomposition from either spatial-temporal (Tran et al., 2018) or channel dimension (Tran et al., 2019). To enhance convolutional efficiency, we consider decomposing convolution in a higher dimension with a novel representation of feature tensor. (2) Feature-Interaction Sufficiency. Table 1 clearly shows that, for current decomposition approaches (Tran et al., 2018; 2019), feature interaction only contains one or two of spatial, temporal and channel dimensions at each sub-operation. Such a partial interaction manner would reduce classification accuracy. On one hand, it decreases the discriminative power of video representation, due to the lack of joint learning on all the dimensions. On the other hand, it restricts feature interaction in a limited receptive field, which ignores rich context from a larger 3D region. Hence, to boost classification accuracy, each sub-operation should achieve feature interaction on all the dimensions, and the receptive field of such interaction should be progressively enlarged as the number of sub-operations increases. ",
129
+ "bbox": [
130
+ 173,
131
+ 541,
132
+ 825,
133
+ 723
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Based on these desirable principles, we design a novel and concise Channel Tensorization Module (CT-Module). Specifically, we propose to tensorize the channel dimension of input feature as a multiplication of $K$ sub-dimensions, i.e., $C = C _ { 1 } \\times C _ { 2 } \\times \\cdot \\cdot \\cdot \\times C _ { K }$ . Via performing spatial/temporal separable convolution along each sub-dimension, we can effectively achieve convolutional efficiency and feature-interaction sufficiency. For better understanding, we use the case of $K = 2$ as a simple illustration in Figure 1. First, we tensorize the input channel into $C = C _ { 1 } \\times C _ { 2 }$ . Naturally, we separate the convolution into distinct ones along each sub-dimension, e.g., for the $1 ^ { s t }$ sub-dimension, we apply our spatial-temporal tensor separable convolution with the size $C _ { 1 } \\times 1 \\times t \\times h \\times w$ , which allows us to achieve convolutional efficiency on all the spatial, temporal and channel dimensions. After that, we sequentially perform the tensor separable convolution sub-dimension by sub-dimension. As a result, we can progressively achieve feature interaction on all the channels, and enlarge the spatialtemporal receptive field. For example, after operating $1 ^ { s t }$ tensor separable convolution on the $1 ^ { s t }$ sub-dimension, $C _ { 1 }$ channels interact, and 3D receptive field of such interaction is $3 \\times 3 \\times 3$ . Via further operating $2 ^ { n d }$ tensor separable convolution on the $2 ^ { n d }$ sub-dimension, all $C _ { 1 } \\times C _ { 2 } = C$ channels have feature interaction, and 3D receptive field of such interaction becomes $5 \\times 5 \\times 5$ . This clearly satisfies our principle of feature-interaction sufficiency. ",
140
+ "bbox": [
141
+ 173,
142
+ 729,
143
+ 825,
144
+ 924
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "",
151
+ "bbox": [
152
+ 171,
153
+ 103,
154
+ 823,
155
+ 132
156
+ ],
157
+ "page_idx": 2
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We summarize our contributions in the following. First, we design a novel Channel Tensorized Module (CT-Module), which can achieve convolutional efficiency and feature-interaction sufficiency, via progressively performing spatial/temporal tensor separable convolution along each sub-dimension of the tensorized channel. Second, we equip CT-Module with a distinct Tensor Excitation (TE) mechanism, which can further activate the video features of each sub-operation by spatial, temporal and channel attention in a tensor-wise manner. Subsequently, we apply this full module in a residual block, and flexibly adopt 2D ResNet as our Channel Tensorized Network (CT-Net). In this case, we can gradually enhance feature interaction from a broader 3D receptive field, and learn the key spatial-temporal representation with light computation. Finally, we conduct extensive experiments on a number of popular and challenging benchmarks, e.g., Kinetics (Carreira & Zisserman, 2017), Something-Something V1 and V2 (Goyal et al., 2017b). Our CT-Net outperforms the state-of-the-art methods in terms of classification accuracy and/or computation cost. ",
162
+ "bbox": [
163
+ 174,
164
+ 138,
165
+ 825,
166
+ 305
167
+ ],
168
+ "page_idx": 2
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 RELATED WORKS ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 176,
176
+ 324,
177
+ 354,
178
+ 340
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "2D CNN for video classification. 2D CNN is a straightforward but useful method for video classification (Karpathy et al., 2014; Simonyan & Zisserman, 2014; Wang et al., 2016; Liu et al., 2020; Jiang et al., 2019). For example, Two-stream methods (Simonyan & Zisserman, 2014) learn video representations by fusing the features from RGB and optical flow respectively. Instead of sampling a single RGB frame, TSN (Wang et al., 2016) proposes a sparse temporal sampling strategy to learn video representations. To further improve accuracy, TSM (Lin et al., 2019) proposes a zeroparameter temporal shift module to exchange information with adjacent frames. However, these methods may lack the capacity of learning spatial-temporal interaction comprehensively, which often reduces their discriminative power to recognize complex human actions. ",
185
+ "bbox": [
186
+ 173,
187
+ 356,
188
+ 825,
189
+ 481
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "3D CNN for video classification. 3D CNN has been widely used to learn a rich spatial-temporal context better (Tran et al., 2015; Carreira & Zisserman, 2017; Feichtenhofer et al., 2019; Sudhakaran et al., 2020; Feichtenhofer, 2020). However, it introduces a lot of parameters, which leads to a difficult optimization problem and large computational load. To resolve this issue, I3D (Carreira & Zisserman, 2017) inflates all the 2D convolution kernels pre-trained on ImageNet, which is helpful for optimizing. Other works also try to factorize 3D convolution kernel to reduce complexity, such as P3D (Qiu et al., 2017) and $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ (Tran et al., 2018). Recently, CSN (Tran et al., 2019) operates 3D convolution in the depth-wise manner. Nevertheless, all these methods still do not achieve a good trade-off between accuracy and efficiency. To tackle this challenge, we propose CT-Net which learns on spatial-temporal and channel dimensions jointly with lower computation than previous methods. ",
196
+ "bbox": [
197
+ 173,
198
+ 488,
199
+ 825,
200
+ 627
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "3 METHODS ",
207
+ "text_level": 1,
208
+ "bbox": [
209
+ 174,
210
+ 646,
211
+ 290,
212
+ 662
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "In this section, we describe our Channel Tensorization Network (CT-Net) in detail. First, we formally introduce our CT-Module in a generic manner. Second, we design a Tensor Excitation (TE) mechanism to enhance CT-Module. Finally, we flexibly adapt ResNet as our CT-Net to achieve a preferable trade-off between accuracy and efficiency for video classification. ",
219
+ "bbox": [
220
+ 174,
221
+ 676,
222
+ 825,
223
+ 733
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "3.1 CHANNEL TENSORIZATION MODULE ",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 174,
233
+ 748,
234
+ 519,
235
+ 763
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "As discussed in the introduction, the previous approaches have problems in convolutional efficiency or feature-interaction sufficiency. To tackle such a problem, we introduce a generic Channel Tensorization Module (CT-Module), by treating the channel dimension of input feature as a multiplication of $K$ sub-dimensions, i.e., $C = C _ { 1 } \\times C _ { 2 } \\times \\cdot \\cdot \\cdot \\times C _ { K }$ . Naturally, this tensor representation allows to tensorize the kernel size of convolution TConv() as a multiplication of $K$ sub-dimensions, too. To simplify the notation, the channel dimension of the output is omitted by default. The output $X _ { o u t }$ can be calculated as follows: ",
242
+ "bbox": [
243
+ 173,
244
+ 775,
245
+ 825,
246
+ 872
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "equation",
252
+ "img_path": "images/ad48e1fe8d63dd8b18c5b1bb1009bb05b521c848b9b6bb628e61bd252b63d46d.jpg",
253
+ "text": "$$\n{ \\bf X } _ { o u t } = T C o n v \\left( { \\bf X } _ { i n } , { \\cal W } ^ { C _ { 1 } \\times C _ { 2 } \\times \\dots \\times C _ { K } \\times t \\times h \\times w } \\right)\n$$",
254
+ "text_format": "latex",
255
+ "bbox": [
256
+ 338,
257
+ 875,
258
+ 656,
259
+ 893
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "where ${ \\bf X } _ { i n }$ and $W$ denote the tensorized input and kernel respectively. However, such an operation requires large computation, so we introduce the tensor separable convolution to alleviate the issue. ",
266
+ "bbox": [
267
+ 174,
268
+ 896,
269
+ 828,
270
+ 924
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Tensor Separable Convolution. We propose to factorize TConv() along $K$ channel sub-dimensions. Specifically, we decompose $T C o n \\nu ( )$ as $K$ tensor separable convolutions $T S C o n \\nu ( )$ , and apply TSConv() sub-dimension by sub-dimension as follows: ",
277
+ "bbox": [
278
+ 173,
279
+ 103,
280
+ 823,
281
+ 146
282
+ ],
283
+ "page_idx": 3
284
+ },
285
+ {
286
+ "type": "equation",
287
+ "img_path": "images/9ab43a75bd5e722443115b35d4a7731a8cc1bbdfc1d2ee6227978552b5d4ea90.jpg",
288
+ "text": "$$\n{ { \\bf { X } } _ { k } } = T S C o n \\nu \\left( { { \\bf { X } } _ { k - 1 } } , { W ^ { 1 \\times \\cdots \\times { C _ { k } } \\times \\cdots \\times 1 \\times t \\times h \\times w } } \\right)\n$$",
289
+ "text_format": "latex",
290
+ "bbox": [
291
+ 334,
292
+ 155,
293
+ 661,
294
+ 175
295
+ ],
296
+ "page_idx": 3
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "where ${ \\bf X } _ { 0 } ~ = ~ { \\bf X } _ { i n }$ and ${ \\bf { X } } _ { o u t } ~ = { \\bf { X } } _ { K }$ . On one hand, the kernel size of the $k ^ { t h }$ TSConv() is $( 1 \\times \\cdot \\cdot \\cdot \\times C _ { k } \\times \\cdot \\cdot \\cdot \\times 1 \\times t \\times h \\times w )$ ). It illustrates that only $C _ { k }$ channels interact in the $k ^ { t h }$ suboperation, which leads to convolution efficiency. On the other hand, as we stack the TSConv(), each convolution performs on the output features of the previous convolution. Therefore, the spatialtemporal receptive field is enlarged. Besides, interactions first occur in $C _ { 1 }$ channels, second in $C _ { 1 } \\times C _ { 2 }$ channels and so on. Finally, $C _ { 1 } \\times C _ { 2 } \\times \\cdot \\cdot \\cdot \\times C _ { K } = C$ channels can progressively interact. This clearly satisfies our principle of feature-interaction sufficiency. ",
301
+ "bbox": [
302
+ 173,
303
+ 184,
304
+ 825,
305
+ 285
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Spatial-Temporal Tensor Separable Convolution. To further improve convolution efficiency, we factorize the 3D TSConv() into 2D spatial TSConv() and 1D temporal TSConv(). Thus, we can obtain the output features $\\mathbf { X } _ { k } ^ { S }$ and $\\mathbf { X } _ { k } ^ { T }$ as follows: ",
312
+ "bbox": [
313
+ 174,
314
+ 290,
315
+ 823,
316
+ 333
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "equation",
322
+ "img_path": "images/ef59c8605018237139c876f95061ed1a6aed6afaba181a956b5ad7b8b3fa465e.jpg",
323
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { X } _ { k } ^ { S } = { S } { - } T { S } C o n \\nu \\left( \\mathbf { X } _ { k - 1 } , W ^ { 1 \\times \\cdots \\times C _ { k } \\times \\cdots \\times 1 \\times 1 \\times h \\times w } \\right) } \\\\ & { } \\\\ & { \\mathbf { X } _ { k } ^ { T } = { T } { - } T { S } C o n \\nu \\left( \\mathbf { X } _ { k - 1 } , W ^ { 1 \\times \\cdots \\times C _ { k } \\times \\cdots \\times 1 \\times t \\times 1 \\times 1 } \\right) } \\end{array}\n$$",
324
+ "text_format": "latex",
325
+ "bbox": [
326
+ 325,
327
+ 342,
328
+ 669,
329
+ 397
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "where $S _ { - } T S C o n \\nu ( \\ j$ and T-TSConv() represent spatial and temporal tensor separable convolution respectively. Finally, we attempt to aggregate spatial and temporal convolution. There are various connection types of spatial and temporal tensor separable convolution, e.g., parallel and serial types. According to the results of the experiments in Section 4, we utilize the parallel method, which illustrates that we sum the spatial feature $\\mathbf { X } _ { k } ^ { S }$ and temporal feature $\\mathbf { X } _ { k } ^ { T }$ : ",
336
+ "bbox": [
337
+ 173,
338
+ 401,
339
+ 825,
340
+ 472
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/6a32a68d3611c5bee8ae6f01d311d55d1e4c2709b378e2cf817a0de23c1ae0a8.jpg",
347
+ "text": "$$\n\\mathbf { X } _ { k } = \\mathbf { X } _ { k } ^ { S } + \\mathbf { X } _ { k } ^ { T }\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 441,
351
+ 481,
352
+ 557,
353
+ 500
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "3.2 TENSOR EXCITATION ",
360
+ "text_level": 1,
361
+ "bbox": [
362
+ 174,
363
+ 517,
364
+ 390,
365
+ 534
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Our CT-Module separates feature along spatial, temporal and channel dimensions. To make full use of their cooperative power to learn distinct video features, we design a concise Tensor Excitation (TE) mechanism for each dimension. First of all, we attempt to utilize the TE mechanism to enhance spatial and temporal features respectively. For the spatial feature $\\mathbf { X } _ { k } ^ { S }$ obtained by Equation 5, our corresponding spatial TE mechanism can be formulated as: ",
372
+ "bbox": [
373
+ 173,
374
+ 545,
375
+ 825,
376
+ 616
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/c724de8a9d38021636bfffc78002efebeace25a20334c37f24638942bdb70cf6.jpg",
383
+ "text": "$$\n\\mathbf { U } _ { k } = \\mathbf { X } _ { k } ^ { S } \\otimes S i g m o d ( S \\mathbf { - } T S C o n \\nu ( T \\mathbf { - } P o o l ( \\mathbf { X } _ { k } ^ { S } ) ) )\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 344,
387
+ 625,
388
+ 651,
389
+ 643
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "where T-Pool() represents global temporal pooling, i.e., $T \\times 1 \\times 1$ average pooling. By performing it on $\\mathbf { X } _ { k } ^ { S }$ , we obtain the feature with the size $\\left( C _ { 1 } \\times C _ { 2 } \\times \\cdots \\times C _ { K } \\times 1 \\times H \\times W \\right)$ , which gathers spatial contexts along temporal dimension. Subsequently, the spatial tensor separable convolution $s$ - TSConv() and the activate function Sigmod() are performed to generate the spatial attention heatmap. Finally, the element-wise multiplication $\\otimes$ broadcasts the spatial attention along the temporal dimension. Similarly, we perform the temporal TE mechanism for the temporal feature $\\mathbf { X } _ { k } ^ { T }$ : ",
396
+ "bbox": [
397
+ 173,
398
+ 652,
399
+ 825,
400
+ 738
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "equation",
406
+ "img_path": "images/24e291726fba1651d65421f270e5f6067be389fea0a6de47ad9aed6b9acb6b72.jpg",
407
+ "text": "$$\n\\mathbf { V } _ { k } = \\mathbf { X } _ { k } ^ { T } \\otimes S i g m o d ( T \\mathbf { \\cdot } T S C o n \\nu ( S \\mathbf { \\cdot } P o o l ( \\mathbf { X } _ { k } ^ { T } ) ) )\n$$",
408
+ "text_format": "latex",
409
+ "bbox": [
410
+ 343,
411
+ 747,
412
+ 653,
413
+ 766
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "where S-Pool() and $T – T S C o n \\nu ( )$ are global spatial pooling and temporal tensor separable convolution correspondingly. At last, after aggregating the spatial and temporal features by addition, i.e., ${ \\bf R } _ { k } = { \\bf \\Phi }$ $\\mathbf { U } _ { k } + \\mathbf { V } _ { k }$ , we perform a channel-wise TE mechanism as follows: ",
420
+ "bbox": [
421
+ 174,
422
+ 775,
423
+ 825,
424
+ 818
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "equation",
430
+ "img_path": "images/c8f05a57834289d010919d570a9b3d53138ad31a31e98a1876d7898d5a4d2a99.jpg",
431
+ "text": "$$\n\\mathbf { X } _ { k } = \\mathbf { R } _ { k } \\otimes S i g m o d ( P W \\mathbf { - } T S C o n \\nu ( S \\mathbf { - } P o o l ( \\mathbf { R } _ { k } ) ) )\n$$",
432
+ "text_format": "latex",
433
+ "bbox": [
434
+ 338,
435
+ 828,
436
+ 658,
437
+ 844
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "We adopt point-wise tensor separable convolution $P W – T S C o n \\nu ( )$ to learn the weights for aggregating distinctive channels. The rest follows the previous design. Note that all tensor separable convolutions are performed on the same sub-dimension as the previous convolution, which is essentially different from the SE mechanism (Hu et al., 2020). Through the cooperation of the TE mechanism along three different dimensions, the spatial-temporal features can be significantly enhanced. ",
444
+ "bbox": [
445
+ 173,
446
+ 853,
447
+ 825,
448
+ 924
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "image",
454
+ "img_path": "images/3123f128bfea1d046977bc9497a4d16414806dba1459d1342333046e084a8d08.jpg",
455
+ "image_caption": [
456
+ "Figure 2: The pipelines of CT-Blocks and the overall architecture of CT-Net. We replace one of every two ResBlocks in ResNet with our CT-Block and the extra point-wise convolution in the last sub-dimension $k = K$ ) is ignored. More details can be found in Section3.3. "
457
+ ],
458
+ "image_footnote": [],
459
+ "bbox": [
460
+ 183,
461
+ 99,
462
+ 816,
463
+ 357
464
+ ],
465
+ "page_idx": 4
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "3.3 CHANNEL TENSORIZATIONN NETWORK ",
470
+ "text_level": 1,
471
+ "bbox": [
472
+ 178,
473
+ 429,
474
+ 544,
475
+ 443
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "We regard ResNet as an exemplar and build up our CT-Net from ResNet50 (or ResNet101). First, we design a simple CT-Block in Figure 2(a), which adapts the $3 \\times 3$ convolutional layer in Residual Block (ResBlock) into our CT-Module. It can achieve both convolutional efficiency and featureinteraction sufficiency. Second, we equip our simple CT-Block with the TE mechanism in Figure 2(b), forming a full CT-Block that can improve the cooperative power of all the feature dimensions. Besides, extra point-wise convolutions are added between different sub-operations, which are beneficial for more sufficient feature interaction. At last, we build up a novel CT-Net with CT-Block. As shown in Figure 2(c), we replace one of every two ResBlocks with our CT-Block in every stage. Such a method guarantees a better balance between efficiency and accuracy in our experiments. ",
482
+ "bbox": [
483
+ 174,
484
+ 455,
485
+ 825,
486
+ 582
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "Discussion. In fact, the popular methods in video classification like C3D, $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ and CSN (Tran et al., 2015; 2018; 2019) can be viewed as special cases of our CT-Net. We can generate different forms by adjusting three hyper-parameters: the number of sub-dimensions $\\mathbf { \\eta } ^ { ( K ) }$ , the corresponding dimension size $( C _ { k } )$ and the spatial-temporal kernel size $( K e r n e l _ { k } )$ . To degenerate into C3D, we can set $K = 1$ and $K e r n e l _ { 1 } = 3 \\times 3 \\times 3$ . When $K = 2$ , $K e r n e l _ { 1 } = 1 \\times 3 \\times 3$ , $K e r n e l _ { 2 } = 3 \\times 1 \\times 1$ and $C _ { 1 } = C _ { 2 } = C$ without channel tensorization, it becomes $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ . Unfortunately, because of lacking the decomposition of channels, C3D and $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ still have a large computational load. When $\\bar { K ^ { { \\prime } } } = 2 , C = \\bar { C } _ { 1 } \\times C _ { 2 } = C \\times 1 , K e r n e l _ { 1 } = 1 \\times 1 \\times 1 , K e r n e l _ { 2 } = \\bar { 3 } \\times 3 \\times \\bar { 3 }$ , obviously it is equivalent to CSN. However, CSN has a limited receptive field of spatial-temporal interaction. In our CT-Net, we utilize channel tensorization and perform tensor separable convolution along each sub-dimension in turn. Such design can not only preserve interaction among spatial, temporal and channel dimensions but also enlarge the receptive field of feature interaction progressively. ",
493
+ "bbox": [
494
+ 173,
495
+ 588,
496
+ 825,
497
+ 755
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "4 EXPERIMENTS AND RESULTS ",
504
+ "text_level": 1,
505
+ "bbox": [
506
+ 176,
507
+ 779,
508
+ 447,
509
+ 795
510
+ ],
511
+ "page_idx": 4
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "Datasets and implementation details. We conduct experiments on three large video benchmarks: Kinetics-400 (Carreira & Zisserman, 2017), Something-Something V1 and V2 (Goyal et al., 2017b). We choose ResNet50 and ResNet101 (He et al., 2016) pre-trained on ImageNet as the backbone and the parameters of CT-Module are randomly initialized. For training, we utilize the dense sampling strategy (Wang et al., 2018) for Kinetics and sparse sampling strategy (Wang et al., 2016) for Something-Something. Random scaling and cropping are applied for data argumentation. Finally, we resize the cropped regions to $2 5 6 \\times 2 5 6$ . For testing, we sample multiple clips per video (4 for Kinetics, 2 for others) for pursuing high accuracy, and average all scores for the final prediction. ",
516
+ "bbox": [
517
+ 174,
518
+ 811,
519
+ 825,
520
+ 924
521
+ ],
522
+ "page_idx": 4
523
+ },
524
+ {
525
+ "type": "table",
526
+ "img_path": "images/5ad6960e615e38cf3a0e185b9b3397f5f71846b9ac8b0d705b55eaad46a514c8.jpg",
527
+ "table_caption": [
528
+ "(a) Effectiveness of CT-Module. CT-Module outperforms the recent modules for video modeling. "
529
+ ],
530
+ "table_footnote": [],
531
+ "table_body": "<table><tr><td>Method</td><td>3D Convolution (t × h × w)</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C3D-Module (Tran et al.,2015)</td><td>Full:3×3×3</td><td>59.9</td><td>46.1</td><td>75.0</td></tr><tr><td>R(2+1)D-Module (Tran et al., 2018)</td><td>Full:1×3×3+Full:3×1×1</td><td>45.8</td><td>47.0</td><td>76.1</td></tr><tr><td>CSN-Module (Tran et al., 2019)</td><td>Full:1×1×1+DW:3×3×3</td><td>35.6</td><td>46.8</td><td>75.7</td></tr><tr><td>Our CT-Module</td><td>C,…,Cκ:1×3×3+3×1×1</td><td>36.3</td><td>47.3</td><td>76.2</td></tr></table>",
532
+ "bbox": [
533
+ 178,
534
+ 99,
535
+ 820,
536
+ 164
537
+ ],
538
+ "page_idx": 5
539
+ },
540
+ {
541
+ "type": "table",
542
+ "img_path": "images/f5794a8615d5799763c2ef3c719186c22d2fe3f5e8f6dcf66aeebed29add648f.jpg",
543
+ "table_caption": [],
544
+ "table_footnote": [],
545
+ "table_body": "<table><tr><td>Number</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>1D</td><td>45.8</td><td>46.5</td><td>75.6</td></tr><tr><td>2D</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>3D</td><td>35.7</td><td>47.1</td><td>75.8</td></tr><tr><td>4D</td><td>35.6</td><td>46.5</td><td>75.3</td></tr></table>",
546
+ "bbox": [
547
+ 176,
548
+ 189,
549
+ 408,
550
+ 251
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "table",
556
+ "img_path": "images/972d54fe7cec7fdb84fef47203ba381f459584242564e96f7eeed6b96c7a7085.jpg",
557
+ "table_caption": [],
558
+ "table_footnote": [],
559
+ "table_body": "<table><tr><td>Type</td><td>Top-1</td><td>Top-5</td></tr><tr><td>coupling</td><td>47.1</td><td>76.0</td></tr><tr><td>serial</td><td>47.2</td><td>76.1</td></tr><tr><td>parallel</td><td>47.3</td><td>76.2</td></tr></table>",
560
+ "bbox": [
561
+ 419,
562
+ 189,
563
+ 596,
564
+ 242
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "table",
570
+ "img_path": "images/a28d5033c0b29bf16bb79f42c9ca79415141c623ea6bcfcab3c125278cb1fa9b.jpg",
571
+ "table_caption": [],
572
+ "table_footnote": [],
573
+ "table_body": "<table><tr><td>C</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>1</td><td>45.9</td><td>47.0</td><td>76.1</td></tr><tr><td>4</td><td>37.6</td><td>46.8</td><td>76.0</td></tr><tr><td>16</td><td>36.4</td><td>47.2</td><td>76.0</td></tr><tr><td>[√C]</td><td>36.3</td><td>47.3</td><td>76.2</td></tr></table>",
574
+ "bbox": [
575
+ 611,
576
+ 188,
577
+ 820,
578
+ 251
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "(b) Number of sub-dimensions. The higher the dimension, the smaller the GFLOPs. 2D channel tensorization achieves the best trade-off. ",
585
+ "bbox": [
586
+ 173,
587
+ 257,
588
+ 410,
589
+ 308
590
+ ],
591
+ "page_idx": 5
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "(c) Connection type of spatiotemporal convolution. The parallel connection between spatial and temporal convolution is the best choice. ",
596
+ "bbox": [
597
+ 416,
598
+ 247,
599
+ 599,
600
+ 309
601
+ ],
602
+ "page_idx": 5
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "(d) Dimension size. $C = C _ { 1 } \\times C _ { 2 }$ and the best trade-off is achieved when adopting the rounded middle size $\\lfloor { \\sqrt { C } } \\rfloor$ . ",
607
+ "bbox": [
608
+ 607,
609
+ 256,
610
+ 823,
611
+ 309
612
+ ],
613
+ "page_idx": 5
614
+ },
615
+ {
616
+ "type": "table",
617
+ "img_path": "images/17ee9482ac937a85407467e39ae8c32a61b3b45f3f67e76c638e1db3d2fbb022.jpg",
618
+ "table_caption": [],
619
+ "table_footnote": [],
620
+ "table_body": "<table><tr><td>Number</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>+0 (TSN)</td><td>43.0</td><td>16.9</td><td>42.0</td></tr><tr><td>+1 stage5</td><td>41.9</td><td>42.3</td><td>71.1</td></tr><tr><td>+4 stage4-5</td><td>38.9</td><td>46.9</td><td>75.7</td></tr><tr><td>+6 stage3-5</td><td>37.1</td><td>47.2</td><td>76.1</td></tr><tr><td>+7 stage2-5</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>+12 stage2-5</td><td>31.5</td><td>45.9</td><td>76.1</td></tr></table>",
621
+ "bbox": [
622
+ 176,
623
+ 314,
624
+ 457,
625
+ 407
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "(e) Number and location of CT-Blocks. Simply replacing 1 block in stage5 can bring significant performance improvement. As we replace more blocks from the bottom up, the GFLOPs continues to decrease. Replacing 7 blocks achieves the best trade-off between accuracy and GFLOPs. ",
632
+ "bbox": [
633
+ 173,
634
+ 414,
635
+ 460,
636
+ 489
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "table",
642
+ "img_path": "images/414e865843fc5f6d49463702f399147eb8cd4e48dc3425d604f12a24e14aa76e.jpg",
643
+ "table_caption": [
644
+ "(f) Kernel sizes along different dimensions. The larger kernel size brings improvement with more calculation. "
645
+ ],
646
+ "table_footnote": [],
647
+ "table_body": "<table><tr><td>Kernel size</td><td></td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C1 1 ×1× 1 C 1 1x3×3</td><td>1×1×1 3×1×1</td><td>35.5</td><td>46.1</td><td>75.1</td></tr><tr><td>C1 1×1×1 C2 1×5×5</td><td>1×1×1 5×1×1</td><td>36.6</td><td>47.2</td><td>76.2</td></tr><tr><td>C1 1 1x3×3 C 1×3×3</td><td>3×1×1 3×1×1</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>C 1×3×3</td><td>3×1×1</td><td>37.4</td><td>47.5</td><td>76.4</td></tr><tr><td>C2 1×5×5 C1 1 ×5×5</td><td>5×1×1 5×1×1</td><td>38.9</td><td>47.6</td><td>76.5</td></tr></table>",
648
+ "bbox": [
649
+ 467,
650
+ 314,
651
+ 820,
652
+ 457
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "table",
658
+ "img_path": "images/d9a12e8a633fcae92a449106c7ffe8fc65a392cfc89428e035af96c7eca5a754.jpg",
659
+ "table_caption": [],
660
+ "table_footnote": [],
661
+ "table_body": "<table><tr><td>Model</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Baseline (TSN)</td><td>43.0</td><td>16.9</td><td>42.0</td></tr><tr><td>+CT-Module</td><td>36.3</td><td>47.3</td><td>76.2</td></tr><tr><td>+CT-Module+PWConv</td><td>37.2</td><td>48.0</td><td>76.7</td></tr><tr><td>+CT-Module+PWConv+SE</td><td>37.2</td><td>48.8</td><td>77.4</td></tr><tr><td>+CT-Module+PWConv+TE</td><td>37.3</td><td>50.1</td><td>78.8</td></tr></table>",
662
+ "bbox": [
663
+ 176,
664
+ 493,
665
+ 529,
666
+ 571
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "(g) Impact of different modules. CT-Module is essential for temporal modeling and TE mechanism is also beneficial. ",
673
+ "bbox": [
674
+ 174,
675
+ 577,
676
+ 532,
677
+ 602
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "table",
683
+ "img_path": "images/18b0a7cdf7649851b520257ad87b760a70c216699da56efd4da74e0aa36399b7.jpg",
684
+ "table_caption": [],
685
+ "table_footnote": [
686
+ "(h) Impact of different spatial resolution. "
687
+ ],
688
+ "table_body": "<table><tr><td></td><td>Input</td><td>GFLOPs</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Train: Test:</td><td>224×224 224× 224</td><td>28.6</td><td>49.1</td><td>77.4</td></tr><tr><td>Train: Test:</td><td>224×224 256×256</td><td>37.3</td><td>49.7</td><td>77.7</td></tr><tr><td>Train:</td><td>256×256</td><td>37.3</td><td></td><td>78.8</td></tr><tr><td>Test:</td><td>256×256</td><td></td><td>50.1</td><td></td></tr></table>",
689
+ "bbox": [
690
+ 540,
691
+ 493,
692
+ 823,
693
+ 578
694
+ ],
695
+ "page_idx": 5
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Table 2: Ablation studies on Something-Something V1. All models use ResNet50 as the backbone ",
700
+ "bbox": [
701
+ 176,
702
+ 614,
703
+ 820,
704
+ 628
705
+ ],
706
+ "page_idx": 5
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "We follow the same strategy in Non-local (Wang et al., 2018) to pre-process the frames and take 3 crops of $2 5 6 \\times 2 5 6$ as input. Because some multi-clip models in Table 3 and Table 4 sample crops of $2 5 6 \\times 2 5 6$ , we simply multiply the GFLOPs reported in the corresponding papers by (256/224)2 for a fair comparison. When considering efficiency, we use just 1 clip per video and the final crop is scaled to $2 5 6 \\times 2 5 6$ to ensure comparable GFLOPs. ",
711
+ "bbox": [
712
+ 174,
713
+ 652,
714
+ 825,
715
+ 722
716
+ ],
717
+ "page_idx": 5
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "4.1 ABLATION STUDIES ",
722
+ "text_level": 1,
723
+ "bbox": [
724
+ 176,
725
+ 747,
726
+ 352,
727
+ 762
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Table 2 shows our ablation studies on Something-Something V1, which is a challenging dataset that requires video architecture to have a robust spatial-temporal representation ability and is suitable to verify the effectiveness of our method. All models use ResNet50 as the backbone. ",
734
+ "bbox": [
735
+ 176,
736
+ 776,
737
+ 823,
738
+ 819
739
+ ],
740
+ "page_idx": 5
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "Effectiveness of CT-Module. In Table 2a, we replace the $3 \\times 3$ convolutional layer in ResNet50 with different modules in recent methods (Tran et al., 2015; 2018; 2019). Compared with CSN-Module, our module achieves a better result with similar computation, which reflects the importance of sufficient feature interaction. Besides, it is slightly better than $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ -Module with much lower calculation, showing the necessity of efficient convolution. Such results demonstrate the effectiveness of our CT-Module. It illustrates our two design principles give preferable guidance for designing an efficient module for temporal modeling. ",
745
+ "bbox": [
746
+ 174,
747
+ 825,
748
+ 825,
749
+ 924
750
+ ],
751
+ "page_idx": 5
752
+ },
753
+ {
754
+ "type": "table",
755
+ "img_path": "images/05d8fe8a09352c42551e141acec047619f9507ed4825d7d55ce1e05dfa20bfcb.jpg",
756
+ "table_caption": [
757
+ "Table 3: Comparison with the state-of-the-art on Something-Something V1&V2. Our CT$\\mathrm { N e t } _ { 1 6 f }$ outperforms all the single-clip models in Something-Something and even better than most of the multi-clip models. And our $\\mathrm { C T - N e t } _ { E N }$ outperforms all methods with very lower computation. "
758
+ ],
759
+ "table_footnote": [],
760
+ "table_body": "<table><tr><td>Method</td><td>Backbone</td><td>#Frame</td><td>GFLOPs</td><td colspan=\"2\">SomethingV1 Top-1 Top-5</td><td colspan=\"2\">SomethingV2 Top-1 Top-5</td></tr><tr><td rowspan=\"2\">ECOENLite (Zolfaghari et al.,2018) NL I3D + GCN (Wang &amp; Gupta,2018)</td><td>Incep+3D R18</td><td>92 32×3×2</td><td rowspan=\"2\">267</td><td>46.4</td><td>=</td><td>■</td><td>=</td></tr><tr><td>3D R50</td><td>1818</td><td>46.1</td><td>76.8</td><td>■</td><td></td></tr><tr><td rowspan=\"2\">ir-CSN (Tran et al.,2019) ir-CSN (Tran et al., 2019) CorrNet (Wang et al.,2020)</td><td>3D R101</td><td>32×1×10</td><td>738</td><td>48.4</td><td>-</td><td>■</td><td>■</td></tr><tr><td>3D R152</td><td>32×1×10</td><td>967 1150</td><td>49.3</td><td>-</td><td>-</td><td>■</td></tr><tr><td rowspan=\"4\">TSN (Wang et al.,2016) TSM (Lin et al., 2019)</td><td>3D R50 2DR50</td><td>32×1×10</td><td></td><td>49.3</td><td>-</td><td>-</td><td>-</td></tr><tr><td></td><td>8</td><td>33</td><td>19.7</td><td>46.6</td><td>27.8</td><td>57.6</td></tr><tr><td>2D R50</td><td>8</td><td>33</td><td>45.6</td><td>74.2</td><td>59.1</td><td>85.6</td></tr><tr><td>bLR50 2D R50</td><td>8×2 8</td><td>24 33</td><td>46.4 47.4</td><td>76.6</td><td>59.1 61.3</td><td>86.0</td></tr><tr><td rowspan=\"4\">TEINet (Liu et al.,2020) TEA (Li et al.,2020b)</td><td>2D Res2Net50</td><td>8</td><td>35</td><td></td><td>■ 78.1</td><td></td><td>-</td></tr><tr><td></td><td></td><td>33</td><td>48.9</td><td></td><td>-</td><td>-</td></tr><tr><td>2D R50+TIM 2D R50+TIM</td><td>8 8×3×2</td><td>259</td><td>49.8 50.4</td><td>- -</td><td>62.6 63.5</td><td>-</td></tr><tr><td>2DR50</td><td>8</td><td>37</td><td>50.1</td><td>78.8</td><td>62.5</td><td>- 87.7</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td>8×3×2</td><td>224</td><td>51.7</td><td>80.1</td><td>63.9</td><td>88.8</td></tr><tr><td>TSN (Wang et al.,2016) TSM (Lin et al.,2019)</td><td>2D R50</td><td>16</td><td>66</td><td>19.9</td><td>47.3</td><td>30.0</td><td>60.5</td></tr><tr><td rowspan=\"9\">bLVNet-TAM (Fan et al.,2019) TEINet (Liu et al., 2020)</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>2D R50</td><td>16</td><td>66</td><td>47.2</td><td>77.1</td><td>63.4</td><td>88.5</td></tr><tr><td>bLR50</td><td>16×2</td><td>48</td><td>48.4</td><td>78.8</td><td>61.7</td><td>88.1</td></tr><tr><td>2D R50</td><td>16</td><td>66</td><td>49.9</td><td>-</td><td>62.1</td><td>-</td></tr><tr><td>TEA (Li et al.,2020b) 2D Res2Net50</td><td>16</td><td>70</td><td>51.9</td><td>80.3</td><td>-</td><td>-</td></tr><tr><td>PEM+TDLoss (Weng et al.,2020) 2D R50+TIM</td><td>16</td><td>66</td><td>50.9</td><td>-</td><td>63.8</td><td>-</td></tr><tr><td>2D R50+TIM</td><td>16×3×2</td><td>517</td><td>52.0</td><td>1</td><td>65.0</td><td>-</td></tr><tr><td>2D R50</td><td>16</td><td>75</td><td>52.5</td><td>80.9</td><td>64.5</td><td></td></tr><tr><td></td><td>16×3×2</td><td>447</td><td>53.4</td><td>81.7</td><td>65.9</td><td>89.3</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td></td><td></td><td></td><td></td><td></td><td>90.1</td></tr><tr><td>Our CT-NetEN</td><td>2D (R50)×4</td><td>8+12+16+24</td><td>280</td><td>56.6</td><td>83.9</td><td>67.8</td><td>91.1</td></tr></table>",
761
+ "bbox": [
762
+ 174,
763
+ 103,
764
+ 823,
765
+ 402
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Number of sub-dimensions. Increasing the number of sub-dimensions saves a lot of computation, but the corresponding accuracy first increases and then decreases as shown in Table 2b. Compared with the 1D method, the 4D method significantly reduces GFLOPs, achieving comparable accuracy. As for the decrease of accuracy when $K$ is too large, we argue that the number of channel in the shallow layer is small (64/128), thus there are too few channels in a single dimension, leading to insufficient feature-interaction. Since the 2D method obtains the best trade-off, we set $K = 2$ in all the following experiments. ",
772
+ "bbox": [
773
+ 173,
774
+ 505,
775
+ 825,
776
+ 603
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Connection type of spatiotemporal convolution. The coupling $3 \\times 3 \\times 3$ convolution can be decomposed into serial or parallel spatial/temporal convolution. Table 2c reveals that factorizing the 3D kernel can boost results as expected. Besides, the parallel connection is better, thus we adopt parallel connection as the default. ",
783
+ "bbox": [
784
+ 174,
785
+ 609,
786
+ 825,
787
+ 665
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "Dimension size. As we set $K = 2$ , it is essential to explore the impact of changing the dimension size $C _ { 2 }$ . We can demonstrate that the computation is the lowest when $C _ { 1 } = C _ { 2 } = { \\sqrt { C } }$ . Since $C$ is not always a perfect square number, we adopt the rounded middle size √ $\\lfloor { \\sqrt { C } } \\rfloor$ . Table 2d shows that when $\\dot { C _ { 2 } } = \\dot { [ \\sqrt { C } ] }$ , the model not only requires the fewest computation cost but also achieves the best performance. Hence, we set $C _ { 2 } = \\lfloor { \\sqrt { C } } \\rfloor$ naturally. ",
794
+ "bbox": [
795
+ 174,
796
+ 672,
797
+ 825,
798
+ 743
799
+ ],
800
+ "page_idx": 6
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Number and location of CT-Blocks. Table 2e illustrates that simply replacing 1 block in stage5 can bring significant performance improvement ( $1 6 . 9 \\%$ vs. $4 2 . 3 \\%$ ). As we replace more blocks from the bottom up, the GFLOPs continues to decrease. Moreover, the bottom blocks seem to be more beneficial to temporal modeling, since replacing the extra 3 blocks in stage2 and stage3 only improve the accuracy by $0 . 4 \\%$ $4 6 . 9 \\%$ vs. $4 7 . 3 \\%$ ). Since replacing 7 blocks achieves the highest accuracy, we replace 7 blocks by default. ",
805
+ "bbox": [
806
+ 173,
807
+ 750,
808
+ 825,
809
+ 833
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Kernel sizes along different dimensions. In Table 2f, we can observe that two concatenated $3 ^ { 3 }$ convolution kernels are slightly better than those with the same receptive field $( 1 ^ { 3 } + 5 ^ { 3 } )$ . Furthermore, the larger kernel size can bring performance improvement but more calculation. It reveals that our CT-Module avoids the limited receptive field of feature interaction, and it can progressively enlarge the receptive field of such interaction on all the dimensions. Considering a better trade-off between accuracy and computation, we choose two concatenated $3 ^ { 3 }$ convolution kernels. ",
816
+ "bbox": [
817
+ 173,
818
+ 840,
819
+ 825,
820
+ 922
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "table",
826
+ "img_path": "images/8d802c4b38c91662b8574e070515a9fa0eebad44b6b34cc7406ca37e7101f2ef.jpg",
827
+ "table_caption": [
828
+ "Table 4: Comparison with the state-of-the-art on Kinetics-400. It shows that CT-Net- $R 5 0 _ { 1 6 f }$ can surpass all existing lightweight models and even SlowFast- $R 5 0 _ { 4 0 f }$ . When fusing different models, our model is $\\mathbf { 2 . 4 } \\times$ faster than SlowFast- $\\operatorname { R } 1 0 1 _ { 8 0 f }$ and shows an $0 . { \\dot { 9 } } \\%$ performance gain. "
829
+ ],
830
+ "table_footnote": [],
831
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Backbone</td><td rowspan=1 colspan=1>#Frame</td><td rowspan=1 colspan=1>GFLOPs</td><td rowspan=1 colspan=1>Top-1 Top-5</td></tr><tr><td rowspan=1 colspan=1>R(2+1)D (Tran et al.,2018)TSN (Wang et al., 2016)I3D (Carreira &amp; Zisserman,2017)</td><td rowspan=1 colspan=1>2DR34InceptionInception</td><td rowspan=1 colspan=1>32×1×1025×10×164×N/A×N/A</td><td rowspan=1 colspan=1>1520=152×10800=80×10108×N/A</td><td rowspan=1 colspan=1>72.0 91.472.5 90.271.1 89.3</td></tr><tr><td rowspan=2 colspan=1>TSM (Lin et al.,2019)TEINet (Liu et al., 2020)bLVNet-TAM (Fan et al., 2019)TEA (Li et al., 2020b)PEM+TDLoss (Weng et al., 2020)CorrNet (Wang et al., 2020)SlowFast (Feichtenhofer et al.,2019)SlowFast (Feichtenhofer et al., 2019)</td><td rowspan=2 colspan=1>2DR502D R50bLR502DRes2Net502D R50+TIM3D R503D R50+R503D R50+R50</td><td rowspan=2 colspan=1>16×3×1016×3×10(16×2)×3×316×3×1016×3×1032×1×1036=(4+32)×3×1040=(8+32)×3×10</td><td rowspan=1 colspan=1>2580=86×302580=86×30</td><td rowspan=1 colspan=1>74.7 -76.2 92.5</td></tr><tr><td rowspan=1 colspan=1>561=62.3×92730=91×302580=86×301150=115×101083=36.1×301971=65.7×30</td><td rowspan=1 colspan=1>72.0 90.676.1 92.576.9 93.077.2 -75.2 91.576.4 92.2</td></tr><tr><td rowspan=1 colspan=1>Our CT-Net</td><td rowspan=1 colspan=1>2D R50</td><td rowspan=1 colspan=1>16×3×4</td><td rowspan=1 colspan=1>895=74.6×12</td><td rowspan=1 colspan=1>77.3 92.7</td></tr><tr><td rowspan=4 colspan=1>X3D-XL (Feichtenhofer,2020)SmallBigNet (Li et al.,2020a)ip-CSN (Tran et al., 2019)ip-CSN (Tran et al.,2019)CorrNet (Wang et al.,2020)SlowFast (Feichtenhofer et al.,2019)SlowFast (Feichtenhofer et al.,2019)NL I3D (Wang &amp; Gupta,2018)</td><td rowspan=1 colspan=1>-2D R101</td><td rowspan=1 colspan=1>16×3×1032×3×4</td><td rowspan=1 colspan=1>1452=48.4×306552=546×12</td><td rowspan=4 colspan=1>79.1 93.977.4 93.376.8 92.577.8 92.879.277.9 93.278.9 93.577.7 93.3</td></tr><tr><td rowspan=1 colspan=1>3D R1013D R1523D R101</td><td rowspan=3 colspan=1>32×3×1032×3×1032×3×1040=(8+32)×3×1080=(16+64)×3×10128×3×10</td><td rowspan=2 colspan=1>2490=83.0×303264=108.8×306720=224×303180=106×306390=213×30</td></tr><tr><td rowspan=2 colspan=1>3D R101+R1013D R101+R1013D R101</td></tr><tr><td rowspan=1 colspan=1>10770=359×30</td></tr><tr><td rowspan=1 colspan=1>Our CT-NetOur CT-NetEN</td><td rowspan=1 colspan=1>2D R1012D R50+R101</td><td rowspan=1 colspan=1>16×3×4(16+16)×3×4</td><td rowspan=1 colspan=1>1746=145.5×122641=220.1×12</td><td rowspan=1 colspan=1>78.8 93.779.8 94.2</td></tr></table>",
832
+ "bbox": [
833
+ 174,
834
+ 102,
835
+ 823,
836
+ 378
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Impact of different modules and different spatial resolution. In Table $2 \\mathrm { g }$ , our CT-Module can significantly boost its baseline ( $1 6 . 9 \\%$ vs. $4 7 . 3 \\%$ ) and the TE mechanism can further improve the accuracy by $2 . 1 \\%$ $4 8 . 0 \\%$ vs. $5 0 . 1 \\%$ ). The extra point-wise convolution also boosts performance, which demonstrates that it is beneficial for sufficient feature interaction. Compared with the SE mechanisms, our TE mechanism focuses more on features in different sub-dimensions individually, thus effectively enhancing spatial-temporal features. In our experiments, to ensure GFLOPs is comparable with other methods, we crop the input to $2 5 6 \\times 2 5 6$ during testing. Table 2h shows both training and testing with a larger spatial resolution of input bring clear performance improvement. ",
843
+ "bbox": [
844
+ 174,
845
+ 457,
846
+ 825,
847
+ 569
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "4.2 COMPARISONS WITH THE STATE-OF-THE-ARTS ",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 174,
857
+ 595,
858
+ 539,
859
+ 609
860
+ ],
861
+ "page_idx": 7
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Something-Something V1&V2. We make a comprehensive comparison in Table 3. Compared with NL $\\mathrm { I } 3 \\mathrm { D } { + } \\mathrm { G C N } _ { 3 2 f }$ , our $\\mathrm { C T - N e t } _ { 8 f }$ gains $4 . 0 \\%$ top-1 accuracy improvement with ${ \\bf 4 9 . 1 \\times }$ fewer GFLOPs in Something-Something V1. Besides, our ${ \\mathrm { C T - N e t } } _ { 8 f }$ $( 5 1 . 7 \\% )$ is better than the ir- $\\mathrm { C S N _ { 3 2 f } }$ $( 4 9 . 3 \\% )$ which adopts ResNet-152 as the backbone. Moreover, our $\\mathrm { C T - N e t } _ { 1 6 f }$ outperforms all the single-clip models in Something-Something V1&V2 and even better than most of the multiclip models. It illustrates that our CT-Net is preferable to capture temporal contextual information efficiently. Surprisingly, with only 280 GFLOPs, our ensemble model $\\mathrm { C T - N e t } _ { E N }$ achieves $5 6 . 6 \\% ( 6 7 . 8 \\% )$ top-1 accuracy in Something-Something V1(V2), which outperforms all methods. ",
866
+ "bbox": [
867
+ 173,
868
+ 625,
869
+ 825,
870
+ 736
871
+ ],
872
+ "page_idx": 7
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Kinetics-400. Kinetics-400 is a large-scale sence-related dataset, and the lightweight 2D models are usually inferior to the 3D models on it. Table 4 shows our CT-Net- $R 5 0 _ { 1 6 f }$ can surpass all existing lightweight models based on 2D backbone. Even compared with SlowFast- $R 5 0 _ { 4 0 f }$ , our CT-Net$\\mathsf { R } 5 0 _ { 1 6 f }$ also achieves higher accuracy $7 7 . 3 \\%$ vs. $7 6 . 4 \\%$ ). Note that our reproduced SlowFastR50 performs worse than that in the paper (Feichtenhofer et al., 2019), which may result from the missing videos in Kinetics-400. As for the deeper model, compared with SlowFast- $\\mathbf { R } 1 0 1 _ { 8 0 f }$ , our CT-Net- $\\mathbf { R } 1 0 1 _ { 1 6 f }$ requires $\\mathbf { 3 . 7 \\times }$ fewer GFLOPs but gains comparable results $7 8 . 8 \\%$ vs. $7 8 . 9 \\%$ . Besides, it achieves comparable top-1 accuracy with X3D-XL $7 8 . 8 \\%$ vs. $7 9 . 1 \\%$ ) under a similar GFLOPs. However, X3D requires extensive model searching with an expensive GPU setting, while our CT-Net can be trained traditionally with feasible computation. We perform score fusion over CT-Net- $\\mathsf { R } 5 0 _ { 1 6 f }$ and ${ \\mathrm { C T - N e t - R } } 1 0 1 _ { 1 6 f }$ , which mimics two-steam fusion with two temporal rates. In this setting, our model is $\\mathbf { 2 . 4 } \\times$ faster than SlowFast- $\\operatorname { R } 1 0 1 _ { 8 0 f }$ and shows an $0 . 9 \\%$ performance gain $7 9 . 8 \\%$ vs. $7 8 . 9 \\%$ ) but only uses 32 frames. ",
877
+ "bbox": [
878
+ 173,
879
+ 743,
880
+ 825,
881
+ 922
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "image",
887
+ "img_path": "images/e9e0e87428692253ba228bd386f54e25af6ab14d47236004693285bf8da2671f.jpg",
888
+ "image_caption": [
889
+ "Figure 3: Comparison of visualization. Videos are sampled from Something-Something V1. Compared with $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ and CSN, our CT-Net can localize the action and object better both in space and time thanks to the larger spatial-temporal receptive field. "
890
+ ],
891
+ "image_footnote": [],
892
+ "bbox": [
893
+ 179,
894
+ 99,
895
+ 813,
896
+ 268
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "4.3 VISUALIZATION ",
903
+ "text_level": 1,
904
+ "bbox": [
905
+ 176,
906
+ 338,
907
+ 326,
908
+ 352
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "We use Saliency Tubes (Stergiou et al., 2019) to generate the visualization, for it can show the most discriminative features that the network locates. In Figure 3, we sample two videos from SomethingSomething V1 which requires complex temporal modeling. In the left example, our CT-Net focuses on a larger area around the towel, especially in the fourth and fifth frames, thus predicting that someone is twisting it. In contrast, $\\mathrm { R } ( 2 { + } 1 ) \\mathrm { D }$ only concentrates on one side of the towel and gives the wrong judgment. The same situation can be seen in the right example. We argue that CT-Net can localize the action and object accurately thanks to the larger spatial-temporal receptive field. As for CSN, the regions of interest seem to be scattered, because it lacks sufficient spatial-temporal interaction, thus ignoring the rich context both in space and time. ",
915
+ "bbox": [
916
+ 174,
917
+ 364,
918
+ 825,
919
+ 489
920
+ ],
921
+ "page_idx": 8
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "5 CONCLUSIONS ",
926
+ "text_level": 1,
927
+ "bbox": [
928
+ 176,
929
+ 510,
930
+ 352,
931
+ 526
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "In this paper, we construct an efficient tensor separable convolution to learn the discriminative video representation. We view the channel dimension of the input feature as a multiplication of K subdimensions and stack spatial/temporal tensor separable convolution along each of K sub-dimensions. Moreover, CT-Module is cooperated with the Tensor Excitation mechanism to further improve performance. All experiments demonstrate that our concise and novel CT-Net obtains a preferable balance between accuracy and efficiency on large-scale video datasets. Our proposed principles are preferable guidance for designing an efficient module for temporal modeling. ",
938
+ "bbox": [
939
+ 174,
940
+ 541,
941
+ 825,
942
+ 640
943
+ ],
944
+ "page_idx": 8
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "6 ACKNOWLEDGEMENT ",
949
+ "text_level": 1,
950
+ "bbox": [
951
+ 176,
952
+ 659,
953
+ 426,
954
+ 675
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "This work is partially supported by National Natural Science Foundation of China (6187617, U1713208), the National Key Research and Development Program of China (No. 2020YFC2004800), Science and Technology Service Network Initiative of Chinese Academy of Sciences (KFJ-STS-QYZX-092), Shenzhen Institute of Artificial Intelligence and Robotics for Society. ",
961
+ "bbox": [
962
+ 174,
963
+ 691,
964
+ 825,
965
+ 761
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "REFERENCES ",
972
+ "text_level": 1,
973
+ "bbox": [
974
+ 174,
975
+ 781,
976
+ 285,
977
+ 797
978
+ ],
979
+ "page_idx": 8
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics ˜ dataset. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4724– 4733, 2017. ",
984
+ "bbox": [
985
+ 174,
986
+ 806,
987
+ 823,
988
+ 847
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Quanfu Fan, Chun-Fu Chen, Hilde Kuehne, Marco Pistoia, and D. Cox. More is less: Learning efficient video representations by temporal aggregation module. In NeurIPS 2019, 2019. ",
995
+ "bbox": [
996
+ 173,
997
+ 857,
998
+ 821,
999
+ 886
1000
+ ],
1001
+ "page_idx": 8
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Christoph Feichtenhofer. X3d: Expanding architectures for efficient video recognition. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 200–210, 2020. ",
1006
+ "bbox": [
1007
+ 176,
1008
+ 895,
1009
+ 823,
1010
+ 924
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6201– 6210, 2019. ",
1017
+ "bbox": [
1018
+ 173,
1019
+ 103,
1020
+ 823,
1021
+ 146
1022
+ ],
1023
+ "page_idx": 9
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Priya Goyal, P. Dollar, Ross B. Girshick, P. Noordhuis, L. Wesolowski, Aapo Kyrola, Andrew Tul- ´ loch, Y. Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. ArXiv, abs/1706.02677, 2017a. ",
1028
+ "bbox": [
1029
+ 174,
1030
+ 154,
1031
+ 820,
1032
+ 196
1033
+ ],
1034
+ "page_idx": 9
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Frund, Peter Yianilos, Moritz Mueller-Freitag, Florian ¨ Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The “something something” video database for learning and evaluating visual common sense. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 5843–5851, 2017b. ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 204,
1042
+ 825,
1043
+ 275
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 282,
1053
+ 821,
1054
+ 313
1055
+ ],
1056
+ "page_idx": 9
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Jie Hu, Li Shen, Samuel Albanie, Gang Sun, and Enhua Wu. Squeeze-and-excitation networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 42:2011–2023, 2020. ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 319,
1064
+ 821,
1065
+ 349
1066
+ ],
1067
+ "page_idx": 9
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Boyuan Jiang, Mengmeng Wang, Weihao Gan, Wei Wu, and Junjie Yan. Stm: Spatiotemporal and motion encoding for action recognition. 2019 IEEE International Conference on Computer Vision (ICCV), pp. 2000–2009, 2019. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 356,
1075
+ 825,
1076
+ 398
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "A. Karpathy, G. Toderici, Sanketh Shetty, T. Leung, R. Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. 2014 IEEE Conference on Computer Vision and Pattern Recognition, pp. 1725–1732, 2014. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 406,
1086
+ 825,
1087
+ 450
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Hilde Kuehne, Hueihan Jhuang, E. Garrote, T. Poggio, and Thomas Serre. Hmdb: A large video database for human motion recognition. 2011 International Conference on Computer Vision, pp. 2556–2563, 2011. ",
1094
+ "bbox": [
1095
+ 174,
1096
+ 458,
1097
+ 825,
1098
+ 501
1099
+ ],
1100
+ "page_idx": 9
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "X. Li, Yali Wang, Zhipeng Zhou, and Yu Qiao. Smallbignet: Integrating core and contextual views for video classification. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1089–1098, 2020a. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 508,
1108
+ 825,
1109
+ 551
1110
+ ],
1111
+ "page_idx": 9
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Yinong Li, Bin Ji, Xintian Shi, Jianguo Zhang, Bin Kang, and Limin Wang. Tea: Temporal excitation and aggregation for action recognition. ArXiv, abs/2004.01398, 2020b. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 559,
1119
+ 823,
1120
+ 588
1121
+ ],
1122
+ "page_idx": 9
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Ji Lin, Chuang Gan, and Song Han. Tsm: Temporal shift module for efficient video understanding. 2019 IEEE International Conference on Computer Vision (ICCV), pp. 7082–7092, 2019. ",
1127
+ "bbox": [
1128
+ 173,
1129
+ 595,
1130
+ 821,
1131
+ 625
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Zhaoyang Liu, D. Luo, Yabiao Wang, L. Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Tong Lu. Teinet: Towards an efficient architecture for video recognition. ArXiv, abs/1911.09435, 2020. ",
1138
+ "bbox": [
1139
+ 174,
1140
+ 632,
1141
+ 825,
1142
+ 675
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "I. Loshchilov and F. Hutter. Sgdr: Stochastic gradient descent with warm restarts. In ICLR, 2017. ",
1149
+ "bbox": [
1150
+ 171,
1151
+ 683,
1152
+ 810,
1153
+ 699
1154
+ ],
1155
+ "page_idx": 9
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Zhaofan Qiu, Ting Yao, and Tao Mei. Learning spatio-temporal representation with pseudo-3d residual networks. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 5534– 5542, 2017. ",
1160
+ "bbox": [
1161
+ 173,
1162
+ 707,
1163
+ 825,
1164
+ 750
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "K. Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NIPS, 2014. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 757,
1174
+ 821,
1175
+ 786
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "K. Soomro, A. Zamir, and M. Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. ArXiv, abs/1212.0402, 2012. ",
1182
+ "bbox": [
1183
+ 174,
1184
+ 792,
1185
+ 821,
1186
+ 823
1187
+ ],
1188
+ "page_idx": 9
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Alexandros Stergiou, G. Kapidis, Grigorios Kalliatakis, C. Chrysoulas, R. Veltkamp, and R. Poppe. Saliency tubes: Visual explanations for spatio-temporal convolutions. 2019 IEEE International Conference on Image Processing (ICIP), pp. 1830–1834, 2019. ",
1193
+ "bbox": [
1194
+ 176,
1195
+ 830,
1196
+ 823,
1197
+ 875
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Swathikiran Sudhakaran, S. Escalera, and O. Lanz. Gate-shift networks for video action recognition. 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1099–1108, 2020. ",
1204
+ "bbox": [
1205
+ 174,
1206
+ 882,
1207
+ 825,
1208
+ 922
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Du Tran, Lubomir D. Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. 2015 IEEE International Conference on Computer Vision (ICCV), pp. 4489–4497, 2015. ",
1215
+ "bbox": [
1216
+ 176,
1217
+ 103,
1218
+ 821,
1219
+ 146
1220
+ ],
1221
+ "page_idx": 10
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Du Tran, Hong xiu Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018. ",
1226
+ "bbox": [
1227
+ 178,
1228
+ 155,
1229
+ 821,
1230
+ 198
1231
+ ],
1232
+ "page_idx": 10
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Du Tran, Heng Wang, Lorenzo Torresani, and Matt Feiszli. Video classification with channelseparated convolutional networks. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 5551–5560, 2019. ",
1237
+ "bbox": [
1238
+ 176,
1239
+ 207,
1240
+ 823,
1241
+ 250
1242
+ ],
1243
+ "page_idx": 10
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Heng Wang, Du Tran, L. Torresani, and Matt Feiszli. Video modeling with correlation networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 349–358, 2020. ",
1248
+ "bbox": [
1249
+ 174,
1250
+ 258,
1251
+ 825,
1252
+ 301
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "L. Wang, Yuanjun Xiong, Zhe Wang, Y. Qiao, D. Lin, X. Tang, and L. Gool. Temporal segment networks: Towards good practices for deep action recognition. In ECCV, 2016. ",
1259
+ "bbox": [
1260
+ 174,
1261
+ 310,
1262
+ 821,
1263
+ 340
1264
+ ],
1265
+ "page_idx": 10
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "X. Wang and A. Gupta. Videos as space-time region graphs. In ECCV, 2018. ",
1270
+ "bbox": [
1271
+ 173,
1272
+ 348,
1273
+ 681,
1274
+ 364
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7794–7803, 2018. ",
1281
+ "bbox": [
1282
+ 176,
1283
+ 372,
1284
+ 825,
1285
+ 415
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Junwu Weng, D. Luo, Yabiao Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, Xudong Jiang, and J. Yuan. Temporal distinct representation learning for action recognition. ArXiv, abs/2007.07626, 2020. ",
1292
+ "bbox": [
1293
+ 171,
1294
+ 424,
1295
+ 823,
1296
+ 467
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Saining Xie, C. Sun, J. Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In ECCV, 2018. ",
1303
+ "bbox": [
1304
+ 173,
1305
+ 476,
1306
+ 823,
1307
+ 506
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Mohammadreza Zolfaghari, K. Singh, and T. Brox. Eco: Efficient convolutional network for online video understanding. ArXiv, abs/1804.09066, 2018. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 515,
1317
+ 823,
1318
+ 542
1319
+ ],
1320
+ "page_idx": 10
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "A APPENDIX ",
1325
+ "text_level": 1,
1326
+ "bbox": [
1327
+ 176,
1328
+ 570,
1329
+ 297,
1330
+ 585
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "A.1 MORE TRAINING DETAILS ",
1337
+ "text_level": 1,
1338
+ "bbox": [
1339
+ 176,
1340
+ 602,
1341
+ 398,
1342
+ 616
1343
+ ],
1344
+ "page_idx": 10
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "We use SGD with momentum 0.9 and cosine learning rate schedule (Loshchilov & Hutter, 2017) to train the entire network. The first 10 epochs are used for warm-up (Goyal et al., 2017a) to overcome early optimization difficulty. For kinetics, the batch, total epochs, initial learning rate, dropout and weight decay are set to 64, 110, 0.01, 0.5 and 1e-4 respectively. All these hyper-parameters are set to 64, 45, 0.02, 0.3 and 5e-4 respectively for Something-Something. ",
1349
+ "bbox": [
1350
+ 174,
1351
+ 627,
1352
+ 825,
1353
+ 698
1354
+ ],
1355
+ "page_idx": 10
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "A.2 TENSOR EXCITATION MECHANISM ",
1360
+ "text_level": 1,
1361
+ "bbox": [
1362
+ 178,
1363
+ 715,
1364
+ 460,
1365
+ 729
1366
+ ],
1367
+ "page_idx": 10
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "The implementation of our Tensor Excitation is shown in Figure 4. Different from the SE module, we use tensor separable convolution in the TE mechanism. Moreover, when obtaining the spatial attention, we squeeze the temporal dimension and perform spatial tensor separable convolution, because temporal information is insignificant for spatial attention and vice versa. We add the Batch Normalization (BN) layer for better optimization. ",
1372
+ "bbox": [
1373
+ 174,
1374
+ 741,
1375
+ 825,
1376
+ 810
1377
+ ],
1378
+ "page_idx": 10
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "A.3 RESULTS ON UCF101 AND HMDB51 ",
1383
+ "text_level": 1,
1384
+ "bbox": [
1385
+ 176,
1386
+ 827,
1387
+ 477,
1388
+ 842
1389
+ ],
1390
+ "page_idx": 10
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "To verify the generation ability of our CT-Net on smaller datasets, we conduct transfer learning experiments from Kinetics400 to UCF101 (Soomro et al., 2012) and HMDB-51 (Kuehne et al., 2011). We test CT-Net with 16 input frames and evaluate it over three splits and report the averaged results. As shown in Table 5, our $\\mathrm { C T - N e t } _ { 1 6 f }$ achieves competitive performance when compared with the recent methods, which demonstrates the generation ability of our CT-Net. ",
1395
+ "bbox": [
1396
+ 174,
1397
+ 853,
1398
+ 823,
1399
+ 924
1400
+ ],
1401
+ "page_idx": 10
1402
+ },
1403
+ {
1404
+ "type": "image",
1405
+ "img_path": "images/1d22d1e7f98cf1eda2d2109a7687480c59fdd392ebb5fd9b50f5dcead5888ea9.jpg",
1406
+ "image_caption": [],
1407
+ "image_footnote": [],
1408
+ "bbox": [
1409
+ 183,
1410
+ 102,
1411
+ 810,
1412
+ 277
1413
+ ],
1414
+ "page_idx": 11
1415
+ },
1416
+ {
1417
+ "type": "table",
1418
+ "img_path": "images/79800b513eef8dc669dae27966d7102e9ac088d87ebb420af3a70b75c7a1dc08.jpg",
1419
+ "table_caption": [
1420
+ "Figure 4: The implementation of our Tensor Excitation (TE) mechanism. ",
1421
+ "Table 5: Comparison results on UCF101 and HMDB51. "
1422
+ ],
1423
+ "table_footnote": [],
1424
+ "table_body": "<table><tr><td>Method</td><td>Backbone</td><td>Pretrain</td><td>UCF101</td><td>HMDB51</td></tr><tr><td>C3D(Tran et al.,2015)</td><td>3D VGG-11</td><td>Sports-1M</td><td>82.3</td><td>51.6</td></tr><tr><td>I3D(Carreira &amp; Zisserman, 2017)</td><td>3D Inception</td><td>ImageNet+Kinetics</td><td>95.1</td><td>74.3</td></tr><tr><td>ECO(Zolfaghari et al.,2018)</td><td>Inception+3D R18</td><td>ImageNet+Kinetics</td><td>94.8</td><td>72.4</td></tr><tr><td>TSN(Wang et al., 2016)</td><td>Inception</td><td>ImageNet+Kinetics</td><td>91.1</td><td>=</td></tr><tr><td>TSM(Lin et al., 2019)</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>94.5</td><td>70.7</td></tr><tr><td>STM(Jiang et al., 2019)</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>96.2</td><td>72.2</td></tr><tr><td>Our CT-Net</td><td>2D R50</td><td>ImageNet+Kinetics</td><td>96.2</td><td>73.2</td></tr></table>",
1425
+ "bbox": [
1426
+ 178,
1427
+ 309,
1428
+ 820,
1429
+ 422
1430
+ ],
1431
+ "page_idx": 11
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "A.4 MORE RESULTS ON SOMETHING-SOMETHING V1&V2 ",
1436
+ "text_level": 1,
1437
+ "bbox": [
1438
+ 173,
1439
+ 464,
1440
+ 593,
1441
+ 479
1442
+ ],
1443
+ "page_idx": 11
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Table 6 shows more results on Something-Something V1&V2. We train CT-Net with a different number of input frames and then test these models with different sampling strategies. We average the prediction scores obtained from the previous models to evaluate the ensemble models. With more input frames, the corresponding accuracy becomes higher. As for the reason that $\\mathrm { C T - N e t } _ { 2 4 f }$ is worse than $\\mathrm { C T - N e t } _ { 1 6 f }$ , we argue that is because the model is hard to optimize with too many input frames. Sampling more clips or more crops also boosts performance. Moreover, our ensemble models gain the state-of-the-art top-1 accuracy of $5 6 . 6 \\% ( 6 8 . 3 \\% )$ on Something-Something V1(V2). ",
1448
+ "bbox": [
1449
+ 174,
1450
+ 491,
1451
+ 825,
1452
+ 588
1453
+ ],
1454
+ "page_idx": 11
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "A.5 MORE ABLATION STUDIES ON MINI-KINETICS AND SOMETHING-SOMETHING V2 ",
1459
+ "text_level": 1,
1460
+ "bbox": [
1461
+ 178,
1462
+ 604,
1463
+ 782,
1464
+ 619
1465
+ ],
1466
+ "page_idx": 11
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "To verify the effectiveness of our module comprehensively, we also conduct experiments in MiniKinetics and Something-Something V2 and report the multi-clip accuracy and single-clip accuracy respectively. Mini-Kinetics covers 200 action classes and is a subset of Kinetics-400, while Something-Something V2 covers the same action classes as Something-Something V1 but contains more videos. As shown in Table 7, the performance trend of different modules is similar to that shown in Table 2a. Since Mini-Kinetics does not highly depend on temporal modeling, the gap becomes smaller but still demonstrates the effectiveness of our CT-Module. ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 631,
1474
+ 825,
1475
+ 728
1476
+ ],
1477
+ "page_idx": 11
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "A.6 ADAPTING DIFFERENT PRE-TRAINED IMAGENET ARCHITECTURES AS CT-NET ",
1482
+ "text_level": 1,
1483
+ "bbox": [
1484
+ 174,
1485
+ 746,
1486
+ 758,
1487
+ 760
1488
+ ],
1489
+ "page_idx": 11
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "In fact, by directly replacing the $3 \\times 3$ convolution with our CT-Module, we can easily adapt different pre-trained ImageNet architectures as CT-Net. Table 8 shows that it is also sensible to use InceptionV3 as the backbone. We believe that through more elaborate design, our CT-Net based on different backbones can achieve comparable performance. ",
1494
+ "bbox": [
1495
+ 174,
1496
+ 772,
1497
+ 823,
1498
+ 828
1499
+ ],
1500
+ "page_idx": 11
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "A.7 VALIDATION PLOT ",
1505
+ "text_level": 1,
1506
+ "bbox": [
1507
+ 176,
1508
+ 844,
1509
+ 346,
1510
+ 858
1511
+ ],
1512
+ "page_idx": 11
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "In Figure 5, we plot the accuracy vs per-clip GFLOPs on Kinetics-400. It reveals that our CT-Net achieves a better trade-off than most of the existing methods on Kinetics-400. ",
1517
+ "bbox": [
1518
+ 173,
1519
+ 871,
1520
+ 823,
1521
+ 900
1522
+ ],
1523
+ "page_idx": 11
1524
+ },
1525
+ {
1526
+ "type": "table",
1527
+ "img_path": "images/61a4e296e7e6abe360f83e736c2d693b2aebf55da7504d345a68277b70cd5006.jpg",
1528
+ "table_caption": [
1529
+ "Table 6: More results on Something-Something V1&V2. "
1530
+ ],
1531
+ "table_footnote": [],
1532
+ "table_body": "<table><tr><td>Method</td><td>#Frame</td><td>GFLOPs</td><td>#Param</td><td colspan=\"2\">SomethingV1 Top-1 Top-5</td><td colspan=\"2\">SomethingV2 Top-1 Top-5</td></tr><tr><td rowspan=\"9\">Our CT-Net</td><td>8 12</td><td>37 56</td><td rowspan=\"3\">21.0M</td><td>50.1</td><td>78.8</td><td>62.5</td><td>87.7</td></tr><tr><td></td><td></td><td>52.1</td><td>80.0</td><td>63.9</td><td>88.7</td></tr><tr><td></td><td></td><td>52.5</td><td>80.9</td><td>64.5</td><td>89.3</td></tr><tr><td>16 24</td><td>75 112</td><td rowspan=\"4\"></td><td>52.5</td><td>80.9</td><td>64.6</td><td>89.1</td></tr><tr><td>8x1x2</td><td>75</td><td>51.6</td><td>79.7</td><td>63.5</td><td>88.5</td></tr><tr><td>12×1×2</td><td>112</td><td>52.8</td><td>80.6</td><td>64.6</td><td>89.3</td></tr><tr><td>16×1×2</td><td>151</td><td>53.2</td><td>81.3</td><td>65.2</td><td>89.7</td></tr><tr><td>24×1×2</td><td>224</td><td>52.9</td><td>81.3</td><td>65.0</td><td>89.3</td></tr><tr><td>8×3×2</td><td>224</td><td rowspan=\"4\">21.0M</td><td>51.7</td><td>80.1</td><td>63.9</td><td>88.8</td></tr><tr><td>12×3×2</td><td>336</td><td>53.0</td><td>81.1</td><td>65.3</td><td>89.6</td></tr><tr><td>16×3×2</td><td>447</td><td>53.4</td><td>81.7</td><td>65.9</td><td>90.1</td></tr><tr><td>24×3×2</td><td></td><td>53.6</td><td>81.6</td><td>65.5</td><td>89.8</td></tr><tr><td rowspan=\"3\">Our CT-NetEN</td><td rowspan=\"3\">8+16 (8+12+16+24)×1× 2</td><td>672 112</td><td rowspan=\"3\">83.8M</td><td>54.4</td><td>82.0</td><td>66.2</td><td>90.4</td></tr><tr><td>280</td><td>56.6</td><td>83.9</td><td>67.8</td><td>91.1</td></tr><tr><td>560</td><td>56.6</td><td>84.0</td><td>67.8</td><td>91.3</td></tr><tr><td></td><td>(8+12+16+24)×1 × 2 (8+12+16+24)×3×2</td><td>1679</td><td></td><td>56.6</td><td>83.9</td><td>68.3</td><td>91.3</td></tr></table>",
1533
+ "bbox": [
1534
+ 178,
1535
+ 107,
1536
+ 823,
1537
+ 342
1538
+ ],
1539
+ "page_idx": 12
1540
+ },
1541
+ {
1542
+ "type": "table",
1543
+ "img_path": "images/e06fabb5822b341ee6c403318776daf757b68d4b002ffeee5800bbe7af5ca5cf.jpg",
1544
+ "table_caption": [
1545
+ "Table 7: More ablation studies on Mini-Kinetics and Something-Something V2. "
1546
+ ],
1547
+ "table_footnote": [],
1548
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Backbone</td><td rowspan=\"2\">GFLOPs</td><td colspan=\"2\">Mini-Kinetics</td><td colspan=\"2\">SomethingV2</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>C3D-Module (Tran et al., 2015)</td><td>2D R50</td><td>59.9</td><td>77.5</td><td>93.0</td><td>59.1</td><td>85.5</td></tr><tr><td>R(2+1)D-Module (Tran et al., 2018)</td><td>2D R50</td><td>45.8</td><td>77.8</td><td>93.2</td><td>60.0</td><td>86.0</td></tr><tr><td>CSN-Module (Tran et al.,2019)</td><td>2D R50</td><td>35.6</td><td>77.6</td><td>93.2</td><td>59.5</td><td>86.0</td></tr><tr><td>Our CT-Module</td><td>2D R50</td><td>36.3</td><td>78.0</td><td>93.6</td><td>60.3</td><td>86.4</td></tr></table>",
1549
+ "bbox": [
1550
+ 178,
1551
+ 376,
1552
+ 820,
1553
+ 468
1554
+ ],
1555
+ "page_idx": 12
1556
+ },
1557
+ {
1558
+ "type": "table",
1559
+ "img_path": "images/e12f2f68577c4ee75ebf9e0316bc14fa7b502b36d631278bf2767ce6c1be76f3.jpg",
1560
+ "table_caption": [
1561
+ "Table 8: Adapting different pre-trained ImageNet architectures as CT-Net. "
1562
+ ],
1563
+ "table_footnote": [],
1564
+ "table_body": "<table><tr><td>Method</td><td>Backbone</td><td>GFLOPs</td><td>#Param.(M)</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Baseline (TSN)</td><td>2D ResNet-50</td><td>43.0</td><td>23.9</td><td>16.9</td><td>42.0</td></tr><tr><td>Our CT-Net</td><td>2D ResNet-50</td><td>37.3</td><td>21.0</td><td>50.1</td><td>78.8</td></tr><tr><td>Baseline (TSN)</td><td>InceptionV3</td><td>45.8</td><td>22.1</td><td>18.3</td><td>43.9</td></tr><tr><td>Our CT-Net</td><td>InceptionV3</td><td>43.9</td><td>20.9</td><td>47.2</td><td>76.1</td></tr></table>",
1565
+ "bbox": [
1566
+ 179,
1567
+ 502,
1568
+ 820,
1569
+ 597
1570
+ ],
1571
+ "page_idx": 12
1572
+ },
1573
+ {
1574
+ "type": "image",
1575
+ "img_path": "images/b2f3ea6a4dccbaf4e10643bebf839cb1adecc4f29e2196a615abde7b18fdf557.jpg",
1576
+ "image_caption": [
1577
+ "Figure 5: Accuracy vs per-clip GFLOPs on Kinetics-400. "
1578
+ ],
1579
+ "image_footnote": [],
1580
+ "bbox": [
1581
+ 174,
1582
+ 633,
1583
+ 816,
1584
+ 901
1585
+ ],
1586
+ "page_idx": 12
1587
+ }
1588
+ ]
parse/train/UoaQUQREMOs/UoaQUQREMOs_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UoaQUQREMOs/UoaQUQREMOs_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkr1UDeC-/rkr1UDeC-.md ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LARGE SCALE DISTRIBUTED NEURAL NETWORKTRAINING THROUGH ONLINE DISTILLATION
2
+
3
+ Rohan Anil
4
+ Google
5
+ rohananil@google.com
6
+
7
+ Gabriel Pereyra ∗ Google DeepMind pereyra@google.com
8
+
9
+ Alexandre Passos Google Brain apassos@google.com
10
+
11
+ Robert Ormandi Google ormandi@google.com
12
+
13
+ George E. Dahl Google Brain gdahl@google.com
14
+
15
+ Geoffrey E. Hinton
16
+ Google Brain
17
+ geoffhinton@google.com
18
+
19
+ # ABSTRACT
20
+
21
+ Techniques such as ensembling and distillation promise model quality improvements when paired with almost any base model. However, due to increased testtime cost (for ensembles) and increased complexity of the training pipeline (for distillation), these techniques are challenging to use in industrial settings. In this paper we explore a variant of distillation which is relatively straightforward to use as it does not require a complicated multi-stage setup or many new hyperparameters. Our first claim is that online distillation enables us to use extra parallelism to fit very large datasets about twice as fast. Crucially, we can still speed up training even after we have already reached the point at which additional parallelism provides no benefit for synchronous or asynchronous stochastic gradient descent. Two neural networks trained on disjoint subsets of the data can share knowledge by encouraging each model to agree with the predictions the other model would have made. These predictions can come from a stale version of the other model so they can be safely computed using weights that only rarely get transmitted. Our second claim is that online distillation is a cost-effective way to make the exact predictions of a model dramatically more reproducible. We support our claims using experiments on the Criteo Display Ad Challenge dataset, ImageNet, and the largest to-date dataset used for neural language modeling, containing $6 \times 1 0 ^ { 1 1 }$ tokens and based on the Common Crawl repository of web data.
22
+
23
+ # 1 INTRODUCTION
24
+
25
+ For large-scale, commercially valuable neural net training problems, practitioners would be willing to devote many more machines to training if it sped up training time dramatically or improved the quality of the final model. Currently, distributed stochastic gradient descent (SGD), in both its synchronous and asynchronous forms (Chen et al., 2016), is the dominant algorithm for large-scale neural network training across multiple interconnected machines. Unfortunately, as the number of machines increases, there are diminishing improvements to the time needed to train a high quality model, to a point where adding workers does not further improve training time. A combination of infrastructure limitations and optimization barriers constrain the scalability of distributed minibatch SGD. The overhead of communicating weight updates and the long tail of the machine and network latency distributions slow down execution and produce thorny engineering challenges. For the synchronous algorithm, there are rapidly diminishing returns from increasing the effective batch size (LeCun et al., 2012; Keskar et al., 2017). For the asynchronous algorithm, gradient interference from inconsistent weights can cause updates to thrash and even, in some cases, result in worse final accuracy or completely stall learning progress. The precise scalability limit for distributed SGD will depend on implementation details of the algorithm, specifics of the infrastructure, and the capabilities of the hardware, but in our experience it can be very difficult to scale effectively much beyond a hundred GPU workers in realistic setups. No algorithm for training neural nets will be infinitely scalable, but even scaling a bit beyond the limits of distributed SGD would be extremely valuable.
26
+
27
+ Once we have reached the limits of adding workers to distributed SGD, we could instead use extra machines to train another copy of the model and create an ensemble to improve accuracy (or trade this accuracy for training time by training the members of the ensemble for fewer steps). As an added benefit, the ensemble will make more stable and reproducible predictions, which can be useful in practical applications. However, ensembling increases the cost at test time, potentially violating latency or other cost constraints. Alternatively, to get nearly the same benefits of the ensemble without increasing test time costs, we can distill (Hinton et al., 2015; Bucila et al., 2006) an $n$ -way ensemble of models into a single still-servable model using a two-phase process: first we use $n M$ machines to train an n-way ensemble with distributed SGD and then use $M$ machines to train the servable student network to mimic the $n$ -way ensemble. By adding another phase to the training process and using more machines, distillation in general increases training time and complexity in return for a quality improvement close to the larger teacher ensemble model.
28
+
29
+ We believe that the additional training costs, in terms of both time and pipeline complexity, discourage practitioners from using ensemble distillation, even though it almost always would improve results. In this work, we describe a simpler online variant of distillation we call codistillation. Codistillation trains $n$ copies of a model in parallel by adding a term to the loss function of the ith model to match the average prediction of the other models.
30
+
31
+ Through large-scale experiments we show that, compared to distributed SGD, codistillation improves accuracy and speeds up training by allowing the productive use of more computational resources even beyond the point where adding more workers provides no additional speedup for SGD. Specifically, codistillation provides the benefits of distilling an ensemble of models without increasing training time. Codistillation is also quite simple to use in practice compared to a multi-phase distillation training procedure. Multi-phase distillation tends to encourage human intervention between the training phases to decide when to stop training the ensemble and start distilling it into a single model. We also show that codistillation does not lose the reproducibility benefits of ensembles of neural networks, reducing churn in the predictions of different retrains of the same model. Reducing prediction churn can be essential when testing and launching new versions of a model in a non-disruptive way in an existing service, although it is not as well-studied in the academic machine learning community.
32
+
33
+ Given the obvious relationship to distillation, very similar algorithms to codistillation have been independently described by multiple researchers. For example, Zhang et al. (2017) describes another simultaneous distillation algorithm but does not investigate the benefits in the distributed training case and only presents it as a potential quality improvement over regular distillation. We view the experimental validation of codistillation at scale as the primary contribution of our work. Another contribution of this work is our exploration of different design choices and implementation considerations for codistillation which we believe has produced recommendations of substantial practical utility.
34
+
35
+ In general, we believe the quality gains of codistillation over well-tuned offline distillation will be minor in practice and the more interesting research direction is exploring codistillation as a distributed training algorithm that uses an additional form of communication that is far more delay tolerant.
36
+
37
+ # 1.1 RELATED WORK
38
+
39
+ In addition to the closely related work in Hinton et al. (2015) and Zhang et al. (2017) mentioned above, there are many different tactics for scaling up neural network training. Early work in training large distributed neural networks focused on schemes for partitioning networks over multiple cores, often referred to as model parallelism (Dean et al., 2012). As memory has increased on graphic processing units (GPUs), the majority of distributed training has shifted towards data parallelism, where the model is replicated across multiple machines and data are distributed to the different replicas, with updates being merged by parameter servers or a single allreduce step as in Goyal et al. (2017). Even without a high quality allreduce primitive, variants of centralized synchronous SGD with backup workers can scale to a large number of machines (Chen et al., 2016).
40
+
41
+ Methods like ensembling and distillation are mostly orthogonal to lower level distributed training infrastructure. However, mixture of experts models have particularly natural model parallelism that can be integrated with data parallelism and a synchronous training scheme. Gross et al. (2017) and Shazeer et al. (2017) are notable examples of recent work in this area.
42
+
43
+ As researchers try to scale neural network training to ever larger datasets and models, the optimization algorithm itself can be altered. For synchronous SGD there are rapidly diminishing returns (LeCun et al., 2012; Keskar et al., 2017) as the number of workers, and thus the effective batch size, increases and we might hope that algorithms like KFAC (Ba et al., 2017) would make better use of large batches. Although a promising direction for research, in this work we focus on what should hopefully be an optimization algorithm agnostic way to improve scalability and reproducibility.
44
+
45
+ # 2 CODISTILLATION
46
+
47
+ Distillation is a meta-algorithm which allows any algorithm to incorporate some of the model quality benefits of ensembles. The idea of distillation is to first train a teacher model, which traditionally is an ensemble or another high-capacity model, and then, once this teacher model is trained, train a student model with an additional term in the loss function which encourages its predictions to be similar to the predictions of the teacher model.
48
+
49
+ There are many variants of distillation, for different types of teacher model, different types of loss function, and different choices for what dataset the student model trains on. For example, the student model could be trained on a large unlabeled dataset, on a held-out data set, or even on the original training set.
50
+
51
+ Perhaps surprisingly, distillation has benefits even if the teacher model and the student model are two instances of the same neural network (see section 3 for empirical evidence), as long as they are sufficiently different (say, by having different initializations and seeing the examples in a different order). Furthermore, the teacher model predictions are still beneficial to the student model even before convergence. Finally, the distinction between teacher and student is unnecessary and two or more models all distilling from each other can also be useful.
52
+
53
+ In this paper, we use codistillation to refer to distillation performed:
54
+
55
+ 1. using the same architecture for all the models;
56
+ 2. using the same dataset to train all the models; and
57
+ 3. using the distillation loss during training before any model has fully converged.
58
+
59
+ For simplicity, we usually consider the case where all models have a distillation term in their loss function, but the key characteristic of codistillation is the simultaneous training of a model and its teacher.
60
+
61
+ Algorithm 1 presents the codistillation algorithm. The distillation loss term $\psi$ can be the squared error between the logits of the models, the KL divergence between the predictive distributions, or some other measure of agreement between the model predictions. In this work we use the cross entropy error treating the teacher predictive distribution as soft targets. In the beginning of training, the distillation term in the loss is not very useful or may even be counterproductive, so to maintain model diversity longer and to avoid a complicated loss function schedule we only enable the distillation term in the loss function once training has gotten off the ground.
62
+
63
+ # 2.1 CODISTILLATION AS A DISTRIBUTED NEURAL NETWORK TRAINING ALGORITHM
64
+
65
+ In order to scale beyond the limits of distributed stochastic gradient descent we will need an algorithm that is far more communication efficient. As seen in Algorithm 1, to update the parameters of one network using codistillation one only needs the predictions of the other networks, which can be computed locally from copies of the other networks weights.
66
+
67
+ There are several reasons to believe that stale predictions might be much less of a problem than stale gradients for training:
68
+
69
+ # Algorithm 1 Codistillation
70
+
71
+ Input loss function $\phi ( 1 \mathsf { a b e 1 }$ , prediction)
72
+ Input distillation loss function $\psi$ (aggregated label, prediction)
73
+ Input prediction function F (θ, input)
74
+ Input learning rate $\eta$
75
+ for n burn in steps do for $\theta _ { i }$ in model set do y, f $=$ get train example() $\theta _ { i } = \theta _ { i } - \eta \nabla _ { \theta _ { i } } \{ \phi ( y , F ( \theta _ { i } , f ) ) \}$ end for
76
+ end for
77
+ while not converged do for $\theta _ { i }$ in model set do y, f $=$ get train example() $\begin{array} { r } { \dot { \theta _ { i } } = \theta _ { i } - \eta \nabla _ { \theta _ { i } } \{ \phi ( \mathrm { y } , F ( \theta _ { i } , f ) ) + \psi ( \{ \frac { 1 } { N - 1 } \sum _ { j \neq i } F ( \theta _ { j } , f ) \} , F ( \theta _ { i } , f ) ) \} } \end{array}$ end for
78
+ end while
79
+ 1. every change in weights leads to a change in gradients, but as training progresses towards convergence, weight updates should substantially change only the predictions on a small subset of the training data;
80
+ 2. weights (and gradients) are not statistically identifiable as different copies of the weights might have arbitrary scaling differences, permuted hidden units, or otherwise rotated or transformed hidden layer feature space so that averaging gradients does not make sense unless models are extremely similar;
81
+ 3. sufficiently out-of-sync copies of the weights will have completely arbitrary differences that change the meaning of individual directions in feature space that are not distinguishable by measuring the loss on the training set;
82
+ 4. in contrast, output units have a clear and consistent meaning enforced by the loss function and the training data.
83
+
84
+ Furthermore, the predictive distribution of radically different models can still provide very useful information about the relationship between inputs and outputs. Empirically we’ve found that using stale predictions instead of up-to-date predictions for the other neural networks has little to no adverse effect on the quality of the final trained model produced by codistillation. We have been able to use predictions tens of thousands of updates old in the asynchronous case or $8 0 0 \mathrm { k }$ examples (i.e. 50 updates) old in the large-batch synchronous case.
85
+
86
+ The tolerance of distillation for stale teacher predictions suggests a distributed training strategy which is far less communication-intensive than synchronous or asynchronous SGD.
87
+
88
+ 1. Each worker trains an independent version of the model on a locally available subset of the training data.
89
+ 2. Occasionally, workers checkpoint their parameters.
90
+ 3. Once this happens, other workers can load the freshest available checkpoints into memory and perform codistillation.
91
+
92
+ Of course there is no reason not to combine this strategy with standard distributed SGD, resulting in a procedure that employs independent groups of workers that exchange checkpoints between groups and exchange gradient information within a group.
93
+
94
+ In each iteration of synchronous/asynchronous distributed SGD, each worker needs to send and receive an amount of information proportional to the entire model size. When using codistillation to distribute training each worker only needs to very rarely read parameter checkpoints from the other models.1 When combining distributed SGD and codistillation, we can add workers to a group up until the point where we see diminishing returns from distributed SGD and then deploy additional workers in another group, occasionally exchanging checkpoints between the otherwise independent groups of workers.
95
+
96
+ Moreover, there is no need to use high-precision floating point numbers to store the parameters used to compute the predictions for the distillation loss term as distillation is not very sensitive to the exact values of the predictions. Therefore the additional computational cost of distributed codistillation will not be much higher than the cost of independent training.
97
+
98
+ Since the parameters of a model trained on a data set can be viewed as a very compressed representation of the aspects of that data set which are relevant to the learning problem at hand, it makes intuitive sense that leveraging these parameters might be more communication-efficient than sending all the data points or gradients.
99
+
100
+ # 3 EXPERIMENTS AND RESULTS
101
+
102
+ In order to study the scalability of distributed training using codistillation, we need a task that is representative of important large-scale neural network training problems. Neural language modeling is an ideal test bed because vast quantities of text are available on the web and because neural language models can be very expensive to train. Neural language models are representative of important problems that make common use of distributed SGD like machine translation and speech recognition, but language modeling is simpler to evaluate and uses a simpler pipeline. In order to make any potential scalability improvements as clear as possible, we selected a data set large enough that it is completely infeasible to train an expressive model to convergence on it with existing SGD parallelization strategies. In order to confirm that our results were not specific to some peculiarity of language modeling, we also validated some of our large scale codistillation results on ImageNet (Russakovsky et al., 2015) as well.
103
+
104
+ To demonstrate the benefits of codistillation in reducing prediction churn and to study other properties of the algorithm we can use smaller experiments that are cheaper to perform, but it is important to actually reach the limits of distributed SGD when studying scalability.
105
+
106
+ # 3.1 DATA SETS AND MODELS
107
+
108
+ Common Crawl is an open repository of web crawl data. We downloaded the WET files2 and filtered them to only include English language documents that contained long paragraphs because we wanted data that allowed modeling of slightly longer range dependencies than data sets that randomize sentence order like LM1B (Chelba et al., 2013). After preprocessing, roughly 915 million documents (20TB of text) remained. We plan to release the list of document ids that remained after filtering as well as code for our invertible tokenizer for others to use this data set. The language model we trained in all of our Common Crawl experiments was an RNN language model with two LSTM layers of 1024 units each with layer normalization (Ba et al., 2016). We used 256 dimensional input embeddings and a vocabulary of 24006 word pieces (Schuster & Nakajima, 2012), including sentence and paragraph start and end tokens, out of vocabulary (generally non-English characters), and end of document. After converting to word pieces there were 673 billion tokens, which is much larger than any previous neural language modeling data set we are aware of.3 During training we constructed batches 32 word pieces long drawing tokens from $B$ different documents at a time, saving hidden state across batches. Since the hidden state never gets reset, the model has to learn to use the end of document token to reset itself. We use the ADAM optimizer Kingma & Ba (2014) for all experiments on Common Crawl.
109
+
110
+ ImageNet is the most popular image classification benchmark of recent years. All of our experiments on ImageNet followed the setup of Goyal et al. (2017) as closely as possible and also used fully-synchronous SGD. We used the same learning rate scaling and schedule and used a configuration with batch size 16384 that achieves $7 5 \%$ accuracy as our primary baseline. Goyal et al. (2017) reports that increasing the batch size beyond 8192 provides rapidly diminishing returns.
111
+
112
+ Criteo Display Ad Challenge dataset4 (Criteo) is a benchmark dataset for predicting click through rate for online advertising. The data contain roughly 43 million examples, each with 13 integer and 26 categorical input features. The task is formulated as binary classification and we train a feedforward fully connected neural network using ReLU activations with hidden layer sizes of 2560, 1024, 256 and a logistic output. We use the Adagrad optimizer with learning rate of 0.001 for training for all experiments on this dataset.
113
+
114
+ 3.2 REACHING THE LIMITS OF DISTRIBUTED SGD FOR TRAINING RNNS ON COMMON CRAWL
115
+
116
+ In our first set of experiments, our goal was to approximately determine the maximum number of GPU workers that can be productively employed for SGD in our Common Crawl neural language model setup. Since our dataset is two orders of magnitude larger than English Wikipedia, there is no concern about revisiting data, which would make independent replicas more similar, even in relatively large scale experiments.
117
+
118
+ We tried asynchronous SGD with 32 and 128 workers, sharding the weights across increasing numbers of parameter servers as necessary to ensure that training speed was bottlenecked by GPU computation time. We found it very difficult to keep training stable and prevent the RNNs from diverging for asynchronous SGD with large numbers of workers. We experimented with a few worker ramp up schemes and different learning rates, but ultimately decided to focus on the synchronous algorithm to make our results less dependent on the specific characteristics of our infrastructure and implementation. Gradient staleness is hard to analyze independent of the specific conditions whereas differences in implementation and infrastructure are far easier to abstract away for synchronous SGD. Although it may have been possible to make async work well with more effort, the debilitating effect of stale gradients on learning progress is a well known issue, for instance Chen et al. (2016) demonstrated that synchronous SGD can often converge to a better final accuracy than asynchronous SGD. Mitliagkas et al. (2016) argues that asynchrony can effectively increase the momentum which is part of why it tends to diverge so easily. For these and other reasons, practitioners (e.g. Goyal et al. (2017)) seem to be moving away from asynchronous SGD towards synchronous training as the default. In preliminary experiments the gains from codistillation seemed independent of the choice of asynchronous or synchronous SGD as the base algorithm.
119
+
120
+ The maximum number of GPU workers that can be productively employed for synchronous SGD will depend on infrastructure limits, tail latency, and batch size effects. Fully synchronous SGD is equivalent to the single machine algorithm with a much larger batch size. Increasing the effective batch size reduces noise in the gradient estimates which allows larger step sizes with hopefully higher quality updates that result in faster convergence. Given effectively infinite training data (even with 256 GPUs we do not visit all of the Common Crawl training data) we intuitively would expect increasing the effective batch size to at worst increase the step time. We trained language models on Common Crawl with fully synchronous SGD using a per-worker batch size of 128 and 32, 64, 128, and 256 workers. Thus the effective batch size ranged from 4096 to 32768. Generally we should expect to need to increase the learning rate as we increase the effective batch size, so for each number of workers we tried learning rates of 0.1, 0.2, and 0.4. For 32 and 64 workers, 0.1 performed best and since none of the original three learning rates performed well for 256 workers, we also tried an additional intermediate learning rate of 0.3 which was the best performing learning rate for 256 workers.
121
+
122
+ Figure 1a plots the validation error as a function of global steps for the different numbers of workers we tried, using the best learning rate for each number of workers. Increasing the number of workers (and thus the effective batch size) reduced the number of steps required to reach the best validation error until 128 workers, at which point there was no additional improvement. Even with idealized perfect infrastructure, 256 workers would at best result in the same end to end training time on this problem. However, because steps can take so much longer with 256 workers, going from 128 to 256 workers is highly counterproductive in practice. Figure 1b plots validation error against wall time for the same varying numbers of synchronous workers. There is a large degradation in step time, and thus learning progress, at 256 workers. Although it might be possible to improve the step time at 256 workers by using a more sophisticated scheme with backup workers (Chen et al., 2016), the operative limit to scalability on this task is the diminishing return from increasing the effective batch size, not the degradation in step times.
123
+
124
+ ![](images/52bb17f20408a8288b8c469d430282f12c5884bc1bf5b32f5dd8ae70d590ec1c.jpg)
125
+ Figure 1: Synchronous training on Common Crawl dataset.
126
+
127
+ In these particular experiments, synchronous SGD with 128 workers is the strongest baseline in terms of training time and final accuracy. Therefore we focus the rest of our experiments on comparisons with 128 worker synchronous SGD and study codistillation that uses synchronous SGD as a subroutine, although it also works well with the asynchronous algorithm.
128
+
129
+ # 3.3 CODISTILLATION WITH SYNCHRONOUS SGD
130
+
131
+ For language modeling on Common Crawl, synchronous SGD with 128 GPUs achieved the best results for standard distributed training, at least of the configurations we tried, and we were unable to improve training time with 256 GPUs. Although the extra GPUs do not seem to help basic synchronous SGD, our hypothesis is that the extra 128 GPUs will improve training time if we use two-way codistillation with two groups of 128 GPUs using synchronous SGD that exchange checkpoints periodically.
132
+
133
+ One concern would be that codistillation is merely a way of penalizing confident output distributions (Pereyra et al., 2017) or smoothing the labels, so we also compared to two label smoothing baselines. The first baseline replaces the distillation loss term with a term that matches the uniform distribution and the second uses a term that matches the unigram distribution. Trade-off hyperparameters were tuned by hand in preliminary experiments.
134
+
135
+ Another important comparison is to an ensemble of two neural networks, each trained with 128 GPUs and synchronous SGD. Although we are in general interested in the regime where such an ensemble would not be practical because of the increased test time costs, given our understanding of distillation we would expect codistillation, if it achieves all of the benefits of traditional distillation, to have a training curve close to—but slightly worse than—a two-way ensemble. In the case of twoway codistillation, this would provide evidence that the gains are really coming from an ensemblinglike effect despite never explicitly averaging the predictions of multiple models as would happen when distilling an ensemble model.
136
+
137
+ Figure 2a plots validation cross entropy versus step of synchronous training for codistillation using two groups of 128 GPUs along with training curves for the synchronous SGD and label smoothing baselines (each using 128 GPUs) and an ensemble of two instances of the 128 GPU baseline. All experiments in figure 2a used the learning rate found to be the best for the 128 GPU synchronous SGD baseline. Two-way codistillation successfully reduces training time substantially compared to the 128 worker baselines and almost achieves the training curve of the two-way ensemble. Measuring at the best validation error achieved by the baseline, codistillation reaches the same error in 2X fewer steps. Perhaps more importantly, codistillation reaches a lower final error so a 2X reduction in steps is likely an underestimate of the gains. In our implementation, for the model we trained, codistillation is free in terms of step time as the GPU is not fully utilized and our implementation automatically overlaps the computation of the teacher and student models. In the worst case, for a model that saturates the hardware that is implemented without quantization, prefetching predictions using the CPU, or other optimizations to compute the predictions, the extra forward pass might increase compute costs by nearly $50 \%$ . However, even with these worst case assumptions, network costs will be a substantial contributor to the total step time, easily $50 \% - 8 0 \%$ , resulting in a modest increase in time per step.
138
+
139
+ ![](images/974945ffbc8380f2d69a00cfae8fe969812d6a87a8fdea9e0930975268993c09.jpg)
140
+ Figure 2: Codistillation (abbreviated as “Cod” in the legend) results with Common Crawl.
141
+
142
+ ![](images/a455fe81ba4b5b80251f86c8e4d5f511b2ac2e94aeb7717e648e8f811511ba37.jpg)
143
+ Figure 3: Codistillation on ImageNet
144
+
145
+ ![](images/e6db93fc59573000cf34cce4583fd34b8eb2e9a81daebdb1c370f768ca6642e7.jpg)
146
+ Figure 4: Reload intervals on Common Crawl
147
+
148
+ # 3.3.1 CODISTILLATION REQUIRES FEWER STEPS ON IMAGENET
149
+
150
+ In order to confirm our results are not due to the vicissitudes of language modeling or the particulars of our setup, we tried two-way codistillation on ImageNet as well. As can be seen from figure 3, codistillation (enabled after 3000 steps) achieves the same $7 5 \%$ accuracy after a total of 5250 steps as the baseline does after 7250 steps. Eventually, two-way codistillation achieves a slightly better accuracy of $7 5 . 6 \%$ at 7250 steps, confirming the utility of codistillation on ImageNet in addition to language modeling.
151
+
152
+ # 3.3.2 PARTITIONING THE DATASET
153
+
154
+ The gains from codistillation have a variety of potential causes that we would like to tease apart. From the experiments above, we have evidence against label smoothing effects as a cause. Another potential source of the training time and quality gains from codistillation over basic SGD would be that the different codistilling models see different training data. To test this hypothesis, we ran another codistillation experiment using two groups of 128 workers, but forced the two groups to use the same training data instead of using different random subsets.5 Figure 2b compares codistillation using different subsets of the training data to codistillation using the same data. Codistillation with the same data seems to be slightly better than the baseline, but codistillation using different data gets much better results. These results show that the codistilling models are indeed successfully transmitting useful information about different parts of the training data to each other.
155
+
156
+ # 3.4 PREDICTION STALENESS SENSITIVITY
157
+
158
+ In general, codistillation can handle relatively stale predictions. SGD generally cannot tolerate gradients nearly as stale. The contrast is most stark with the asynchronous algorithm. We trained our two-way synchronous codistillation setup on Common Crawl with several different checkpoint exchange frequencies. We tried exchange delays of 50, 100, and 250 steps. As can be seen from figure 4, increasing the checkpoint reload interval beyond 819,200 examples or 50 steps slightly degrades the learning curve. With an interval of 50 steps, communicating checkpoints with a shared file system is still quite feasible on most problems.
159
+
160
+ # 3.4.1 CODISTILLATION VS MULTI-PHASE DISTILLATION VARIANTS
161
+
162
+ In our experiments and experience, the choice between multi-phase distillation and codistillation makes very little difference in terms of the quality improvements achieved by distillation, although it does affect training time. On Common Crawl, we trained an ensemble of two models for 18K steps and then trained an identical model distilling from the ensemble to reach a cross entropy error of 4.0 after 9K steps for a total of 27K steps. However, two-way codistillation reached roughly the same validation error after only 10k steps. Zhang et al. (2017) reported a benefit in quality over basic distillation, but they compare distilling model $M _ { 1 }$ into model $M _ { 2 }$ with training model $M _ { 1 }$ and model $M _ { 2 }$ using codistillation; they do not compare to distilling an ensemble of models $M _ { 1 }$ and $M _ { 2 }$ into model $M _ { 3 }$ . Furthermore, Zhang et al. (2017) only reports final validation error using a large number of training steps on two small image datasets. Overfitting in the teacher model can explain the worse performance of offline distillation Zhang et al. (2017) report on CIFAR-100. We reproduced their experiments with WideResnet-28-10 teaching Resnet-32 on CIFAR-100. When we select a checkpoint with nearly $100 \%$ training accuracy, we reproduce the $6 9 . 5 \%$ they report in table 4. However, when we select a different checkpoint, we can achieve the $7 0 . 7 \%$ they report for online distillation using traditional offline distillation. For distillation to provide value, the teacher must provide information beyond the training label. Thus a teacher network that overfits the training set will not be useful.
163
+
164
+ The gains in training time of codistillation over multi-phase distillation variants are obvious, but the reduction in training pipeline complexity codistillation provides can be equally important. Using the same architecture and dataset for all the models avoids squaring the tuning problem. The codistillation protocol simplifies the choice of teacher model and restores symmetry between the various models. With traditional multi-phase distillation one must decide which teacher model or models to use and how long to train them, encouraging human intervention between the phases. If teacher models occasionally get reused across versions of the student model in an effort to save computation, rollbacks of models to deal with bugs or data corruption can be dramatically more painful. To reproduce a given final model, one needs the entire history of teacher models and everything required to reproduce them which can easily result in what Sculley et al. (2014) refers to as “pipeline jungle” and unnecessary, undesirable data dependencies.
165
+
166
+ Table 1: Prediction Churn
167
+
168
+ <table><tr><td>Model</td><td>Validation Log Loss</td><td>Mean Absolute Difference6 Between Retrains</td></tr><tr><td></td><td></td><td></td></tr><tr><td>DNN</td><td>0.4480 ± 0.001</td><td>0.029 ± 0.001</td></tr><tr><td>Ensemble of Two DNNs</td><td>0.4461 ± 0.0002</td><td>0.022 ± 0.002</td></tr><tr><td>Two-way codistilled DNN</td><td>0.4458 ± 0.002</td><td>0.019 ± 0.002</td></tr></table>
169
+
170
+ # 3.5 REDUCING PREDICTION CHURN WITH CODISTILLATION
171
+
172
+ Unlike linear models with convex loss functions, two neural networks with the same architecture that are trained on the same data can achieve similar validation and test performance while making very different predictions, and mistakes. On large datasets with a stable training pipeline aggregate metrics can be relatively consistent, but minor changes to the model architecture or even simple retrains can cause comparatively dramatic changes in the predictions made by the network. The network will in general get different examples correct and the differences might be especially severe on atypical examples with rare features. The weights learned by stochastic gradient descent in the non-convex setting will depend on the initialization, data presentation order, and the general vicissitudes of the infrastructure, especially when parallelization is involved. It is not practical to control all these nuisance variables and, even if it was, we would still see different solutions after making slight changes to the input representation or model architecture. We will refer to the general reproducibility problem where retraining a neural network after a minor (or even no) change causes a change to the predictions as prediction churn. Prediction churn can be a serious problem when testing and launching new versions of a neural network in a non-disruptive way inside an existing service.
173
+
174
+ Model averaging is a very natural solution to prediction churn. By directly averaging away the variations in the training procedure the predictions will tend to be more consistent across retrains of the ensemble and from minor modifications to the base models.
175
+
176
+ Given that codistillation achieves many of the benefits of model averaging, our hypothesis is that it should similarly help reduce prediction churn. To test this hypothesis, we trained a deep neural network (DNN) on the Criteo dataset and measured the mean absolute difference between the predictions of two retrains of the same model (prediction difference, for short). The prediction differences between different versions of a model should be at least as large as the prediction differences between two retrains of the same model and serve as a way of estimating the prediction churn. We also trained an ensemble of two copies of the initial DNN and then measured the prediction difference between retrains of the ensemble. Finally, we trained the same DNN using two-way codistillation, picking one of the copies arbitrarily to make predictions and measured the reproducibility of codistillation as well. As shown in table 1, codistillation reduces prediction churn by $3 5 \%$ , achieving similar results to ensembling, but does not increase serving costs.
177
+
178
+ # 4 DISCUSSION AND FUTURE WORK
179
+
180
+ Distillation is a surprisingly flexible tool, especially when performed during model training instead of after. It can be used to accelerate training, improve quality, distribute training in new, more communication efficient ways, and reduce prediction churn. However, there are still many questions we would like to explore. For example, we mostly focused on pairs of models codistilling from each other. It stands to reason that if pairs are useful then so are other topologies. Fully connected graphs might make the models too similar, too quickly so ring structures might also be interesting. We also did not explore the limits of how accurate the predictions from the teacher models have to be. It might be possible to aggressively quantize the teacher model to make codistillation almost as cheap as normal training even for very large models.
181
+
182
+ It is somewhat paradoxical that bad models codistilling from each other can learn faster than models training independently. Somehow the mistakes made by the teacher model carry enough information to help the student model do better than the teacher, and better than just seeing the actual label in the data. Characterizing the ideal properties of a teacher model is an exciting avenue for future work.
183
+
184
+ In this work we only extract predictions from the checkpoints, as predictions are identifiable and, unlike the internal structure of the networks, have no spurious symmetries. That said, it might be possible to extract more information from a checkpoint than just predictions without hitting the same issues faced by workers communicating gradients, allowing the use of the teacher models as a stronger regularizer. Perhaps distillation-based methods could be used to augment federated learning McMahan et al. (2017) in particularly bandwidth-constrained settings.
185
+
186
+ # ACKNOWLEDGMENTS
187
+
188
+ We would like to thank Avital Oliver for feedback on a draft and Oriol Vinyals for many helpful discussions. We would also like to thank Mohammad Norouzi for emotional support and Dan Hurt for essential help resolving last-minute computational resources issues.
189
+
190
+ # REFERENCES
191
+
192
+ Jimmy Ba, Roger Grosse, and James Martens. Distributed Second-Order Optimization using Kronecker-Factored Approximations. In International Conference on Learning Respresentations (ICLR), 2017.
193
+ Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. URL https://arxiv.org/abs/1607.06450.
194
+ Cristian Bucila, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the Twelfth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, August 20-23, 2006, pp. 535–541, 2006. doi: 10.1145/1150402. 1150464. URL http://doi.acm.org/10.1145/1150402.1150464.
195
+ Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. Technical report, Google, 2013. URL http://arxiv.org/abs/1312.3005.
196
+ Jianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed syn- ´ chronous SGD. CoRR, abs/1604.00981, 2016. URL http://arxiv.org/abs/1604. 00981.
197
+ Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Andrew Senior, Paul Tucker, Ke Yang, Quoc V Le, et al. Large scale distributed deep networks. In Advances in neural information processing systems, pp. 1223–1231, 2012.
198
+ Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An- ´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training ImageNet in 1 hour. CoRR, abs/1706.02677, 2017. URL https://arxiv.org/abs/1706.02677.
199
+ Sam Gross, Marc’Aurelio Ranzato, and Arthur Szlam. Hard mixtures of experts for large scale weakly supervised vision. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5085–5093, 2017.
200
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. CoRR, abs/1503.02531, 2015. URL https://arxiv.org/abs/1503.02531.
201
+ Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Respresentations (ICLR), 2017.
202
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. URL https://arxiv.org/abs/1412.6980.
203
+
204
+ Yann A LeCun, Leon Bottou, Genevieve B Orr, and Klaus-Robert M ´ uller. Efficient backprop. In ¨ Neural networks: Tricks of the trade, pp. 9–48. Springer, 2012.
205
+
206
+ H. Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Ar- ¨ cas. Communication-efficient learning of deep networks from decentralized data. In Aarti Singh and Xiaojin (Jerry) Zhu (eds.), Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, AISTATS 2017, 20-22 April 2017, Fort Lauderdale, FL, USA, volume 54 of Proceedings of Machine Learning Research, pp. 1273–1282. PMLR, 2017. URL http://proceedings.mlr.press/v54/mcmahan17a.html.
207
+
208
+ Ioannis Mitliagkas, Ce Zhang, Stefan Hadjis, and Christopher Re. Asynchrony begets momentum, ´ with an application to deep learning. In 54th Annual Allerton Conference on Communication, Control, and Computing, Allerton 2016, Monticello, IL, USA, September 27-30, 2016, pp. 997– 1004, 2016. doi: 10.1109/ALLERTON.2016.7852343. URL https://doi.org/10.1109/ ALLERTON.2016.7852343.
209
+
210
+ Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. CoRR, abs/1701.06548, 2017. URL https://arxiv.org/abs/1701.06548.
211
+
212
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
213
+
214
+ Mike Schuster and Kaisuke Nakajima. Japanese and korean voice search. In Acoustics, Speech and Signal Processing (ICASSP), 2012 IEEE International Conference on, pp. 5149–5152. IEEE, 2012.
215
+
216
+ D. Sculley, Gary Holt, Daniel Golovin, Eugene Davydov, Todd Phillips, Dietmar Ebner, Vinay Chaudhary, and Michael Young. Machine learning: The high interest credit card of technical debt. In SE4ML: Software Engineering for Machine Learning (NIPS 2014 Workshop), 2014.
217
+
218
+ Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Respresentations (ICLR), 2017.
219
+
220
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016. URL https://arxiv.org/abs/1609.08144.
221
+
222
+ Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. CoRR, abs/1706.00384, 2017. URL https://arxiv.org/abs/1706.00384.
parse/train/rkr1UDeC-/rkr1UDeC-_content_list.json ADDED
@@ -0,0 +1,1130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LARGE SCALE DISTRIBUTED NEURAL NETWORKTRAINING THROUGH ONLINE DISTILLATION",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 101,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Rohan Anil \nGoogle \nrohananil@google.com ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 383,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Gabriel Pereyra ∗ Google DeepMind pereyra@google.com ",
28
+ "bbox": [
29
+ 418,
30
+ 170,
31
+ 598,
32
+ 213
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Alexandre Passos Google Brain apassos@google.com ",
39
+ "bbox": [
40
+ 635,
41
+ 170,
42
+ 815,
43
+ 213
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Robert Ormandi Google ormandi@google.com ",
50
+ "bbox": [
51
+ 183,
52
+ 233,
53
+ 362,
54
+ 275
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "George E. Dahl Google Brain gdahl@google.com ",
61
+ "bbox": [
62
+ 392,
63
+ 233,
64
+ 552,
65
+ 275
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Geoffrey E. Hinton \nGoogle Brain \ngeoffhinton@google.com ",
72
+ "bbox": [
73
+ 581,
74
+ 233,
75
+ 800,
76
+ 276
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "ABSTRACT ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 454,
86
+ 313,
87
+ 544,
88
+ 327
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Techniques such as ensembling and distillation promise model quality improvements when paired with almost any base model. However, due to increased testtime cost (for ensembles) and increased complexity of the training pipeline (for distillation), these techniques are challenging to use in industrial settings. In this paper we explore a variant of distillation which is relatively straightforward to use as it does not require a complicated multi-stage setup or many new hyperparameters. Our first claim is that online distillation enables us to use extra parallelism to fit very large datasets about twice as fast. Crucially, we can still speed up training even after we have already reached the point at which additional parallelism provides no benefit for synchronous or asynchronous stochastic gradient descent. Two neural networks trained on disjoint subsets of the data can share knowledge by encouraging each model to agree with the predictions the other model would have made. These predictions can come from a stale version of the other model so they can be safely computed using weights that only rarely get transmitted. Our second claim is that online distillation is a cost-effective way to make the exact predictions of a model dramatically more reproducible. We support our claims using experiments on the Criteo Display Ad Challenge dataset, ImageNet, and the largest to-date dataset used for neural language modeling, containing $6 \\times 1 0 ^ { 1 1 }$ tokens and based on the Common Crawl repository of web data. ",
95
+ "bbox": [
96
+ 232,
97
+ 345,
98
+ 764,
99
+ 608
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 INTRODUCTION ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 176,
109
+ 640,
110
+ 336,
111
+ 656
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "For large-scale, commercially valuable neural net training problems, practitioners would be willing to devote many more machines to training if it sped up training time dramatically or improved the quality of the final model. Currently, distributed stochastic gradient descent (SGD), in both its synchronous and asynchronous forms (Chen et al., 2016), is the dominant algorithm for large-scale neural network training across multiple interconnected machines. Unfortunately, as the number of machines increases, there are diminishing improvements to the time needed to train a high quality model, to a point where adding workers does not further improve training time. A combination of infrastructure limitations and optimization barriers constrain the scalability of distributed minibatch SGD. The overhead of communicating weight updates and the long tail of the machine and network latency distributions slow down execution and produce thorny engineering challenges. For the synchronous algorithm, there are rapidly diminishing returns from increasing the effective batch size (LeCun et al., 2012; Keskar et al., 2017). For the asynchronous algorithm, gradient interference from inconsistent weights can cause updates to thrash and even, in some cases, result in worse final accuracy or completely stall learning progress. The precise scalability limit for distributed SGD will depend on implementation details of the algorithm, specifics of the infrastructure, and the capabilities of the hardware, but in our experience it can be very difficult to scale effectively much beyond a hundred GPU workers in realistic setups. No algorithm for training neural nets will be infinitely scalable, but even scaling a bit beyond the limits of distributed SGD would be extremely valuable. ",
118
+ "bbox": [
119
+ 174,
120
+ 674,
121
+ 825,
122
+ 895
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 173,
131
+ 103,
132
+ 821,
133
+ 132
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Once we have reached the limits of adding workers to distributed SGD, we could instead use extra machines to train another copy of the model and create an ensemble to improve accuracy (or trade this accuracy for training time by training the members of the ensemble for fewer steps). As an added benefit, the ensemble will make more stable and reproducible predictions, which can be useful in practical applications. However, ensembling increases the cost at test time, potentially violating latency or other cost constraints. Alternatively, to get nearly the same benefits of the ensemble without increasing test time costs, we can distill (Hinton et al., 2015; Bucila et al., 2006) an $n$ -way ensemble of models into a single still-servable model using a two-phase process: first we use $n M$ machines to train an n-way ensemble with distributed SGD and then use $M$ machines to train the servable student network to mimic the $n$ -way ensemble. By adding another phase to the training process and using more machines, distillation in general increases training time and complexity in return for a quality improvement close to the larger teacher ensemble model. ",
140
+ "bbox": [
141
+ 174,
142
+ 138,
143
+ 825,
144
+ 304
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "We believe that the additional training costs, in terms of both time and pipeline complexity, discourage practitioners from using ensemble distillation, even though it almost always would improve results. In this work, we describe a simpler online variant of distillation we call codistillation. Codistillation trains $n$ copies of a model in parallel by adding a term to the loss function of the ith model to match the average prediction of the other models. ",
151
+ "bbox": [
152
+ 174,
153
+ 313,
154
+ 823,
155
+ 382
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Through large-scale experiments we show that, compared to distributed SGD, codistillation improves accuracy and speeds up training by allowing the productive use of more computational resources even beyond the point where adding more workers provides no additional speedup for SGD. Specifically, codistillation provides the benefits of distilling an ensemble of models without increasing training time. Codistillation is also quite simple to use in practice compared to a multi-phase distillation training procedure. Multi-phase distillation tends to encourage human intervention between the training phases to decide when to stop training the ensemble and start distilling it into a single model. We also show that codistillation does not lose the reproducibility benefits of ensembles of neural networks, reducing churn in the predictions of different retrains of the same model. Reducing prediction churn can be essential when testing and launching new versions of a model in a non-disruptive way in an existing service, although it is not as well-studied in the academic machine learning community. ",
162
+ "bbox": [
163
+ 174,
164
+ 388,
165
+ 825,
166
+ 555
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Given the obvious relationship to distillation, very similar algorithms to codistillation have been independently described by multiple researchers. For example, Zhang et al. (2017) describes another simultaneous distillation algorithm but does not investigate the benefits in the distributed training case and only presents it as a potential quality improvement over regular distillation. We view the experimental validation of codistillation at scale as the primary contribution of our work. Another contribution of this work is our exploration of different design choices and implementation considerations for codistillation which we believe has produced recommendations of substantial practical utility. ",
173
+ "bbox": [
174
+ 174,
175
+ 563,
176
+ 825,
177
+ 674
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "In general, we believe the quality gains of codistillation over well-tuned offline distillation will be minor in practice and the more interesting research direction is exploring codistillation as a distributed training algorithm that uses an additional form of communication that is far more delay tolerant. ",
184
+ "bbox": [
185
+ 176,
186
+ 681,
187
+ 823,
188
+ 737
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "1.1 RELATED WORK ",
195
+ "text_level": 1,
196
+ "bbox": [
197
+ 176,
198
+ 767,
199
+ 330,
200
+ 781
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "In addition to the closely related work in Hinton et al. (2015) and Zhang et al. (2017) mentioned above, there are many different tactics for scaling up neural network training. Early work in training large distributed neural networks focused on schemes for partitioning networks over multiple cores, often referred to as model parallelism (Dean et al., 2012). As memory has increased on graphic processing units (GPUs), the majority of distributed training has shifted towards data parallelism, where the model is replicated across multiple machines and data are distributed to the different replicas, with updates being merged by parameter servers or a single allreduce step as in Goyal et al. (2017). Even without a high quality allreduce primitive, variants of centralized synchronous SGD with backup workers can scale to a large number of machines (Chen et al., 2016). ",
207
+ "bbox": [
208
+ 174,
209
+ 797,
210
+ 825,
211
+ 924
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Methods like ensembling and distillation are mostly orthogonal to lower level distributed training infrastructure. However, mixture of experts models have particularly natural model parallelism that can be integrated with data parallelism and a synchronous training scheme. Gross et al. (2017) and Shazeer et al. (2017) are notable examples of recent work in this area. ",
218
+ "bbox": [
219
+ 174,
220
+ 103,
221
+ 823,
222
+ 159
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "As researchers try to scale neural network training to ever larger datasets and models, the optimization algorithm itself can be altered. For synchronous SGD there are rapidly diminishing returns (LeCun et al., 2012; Keskar et al., 2017) as the number of workers, and thus the effective batch size, increases and we might hope that algorithms like KFAC (Ba et al., 2017) would make better use of large batches. Although a promising direction for research, in this work we focus on what should hopefully be an optimization algorithm agnostic way to improve scalability and reproducibility. ",
229
+ "bbox": [
230
+ 174,
231
+ 166,
232
+ 825,
233
+ 251
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "2 CODISTILLATION ",
240
+ "text_level": 1,
241
+ "bbox": [
242
+ 176,
243
+ 273,
244
+ 349,
245
+ 290
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Distillation is a meta-algorithm which allows any algorithm to incorporate some of the model quality benefits of ensembles. The idea of distillation is to first train a teacher model, which traditionally is an ensemble or another high-capacity model, and then, once this teacher model is trained, train a student model with an additional term in the loss function which encourages its predictions to be similar to the predictions of the teacher model. ",
252
+ "bbox": [
253
+ 174,
254
+ 308,
255
+ 823,
256
+ 377
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "There are many variants of distillation, for different types of teacher model, different types of loss function, and different choices for what dataset the student model trains on. For example, the student model could be trained on a large unlabeled dataset, on a held-out data set, or even on the original training set. ",
263
+ "bbox": [
264
+ 174,
265
+ 383,
266
+ 825,
267
+ 440
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Perhaps surprisingly, distillation has benefits even if the teacher model and the student model are two instances of the same neural network (see section 3 for empirical evidence), as long as they are sufficiently different (say, by having different initializations and seeing the examples in a different order). Furthermore, the teacher model predictions are still beneficial to the student model even before convergence. Finally, the distinction between teacher and student is unnecessary and two or more models all distilling from each other can also be useful. ",
274
+ "bbox": [
275
+ 174,
276
+ 446,
277
+ 825,
278
+ 530
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "In this paper, we use codistillation to refer to distillation performed: ",
285
+ "bbox": [
286
+ 173,
287
+ 537,
288
+ 619,
289
+ 553
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "1. using the same architecture for all the models; \n2. using the same dataset to train all the models; and \n3. using the distillation loss during training before any model has fully converged. ",
296
+ "bbox": [
297
+ 210,
298
+ 565,
299
+ 753,
300
+ 626
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "For simplicity, we usually consider the case where all models have a distillation term in their loss function, but the key characteristic of codistillation is the simultaneous training of a model and its teacher. ",
307
+ "bbox": [
308
+ 178,
309
+ 638,
310
+ 820,
311
+ 679
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Algorithm 1 presents the codistillation algorithm. The distillation loss term $\\psi$ can be the squared error between the logits of the models, the KL divergence between the predictive distributions, or some other measure of agreement between the model predictions. In this work we use the cross entropy error treating the teacher predictive distribution as soft targets. In the beginning of training, the distillation term in the loss is not very useful or may even be counterproductive, so to maintain model diversity longer and to avoid a complicated loss function schedule we only enable the distillation term in the loss function once training has gotten off the ground. ",
318
+ "bbox": [
319
+ 174,
320
+ 686,
321
+ 825,
322
+ 785
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "2.1 CODISTILLATION AS A DISTRIBUTED NEURAL NETWORK TRAINING ALGORITHM ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 174,
332
+ 806,
333
+ 769,
334
+ 819
335
+ ],
336
+ "page_idx": 2
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "In order to scale beyond the limits of distributed stochastic gradient descent we will need an algorithm that is far more communication efficient. As seen in Algorithm 1, to update the parameters of one network using codistillation one only needs the predictions of the other networks, which can be computed locally from copies of the other networks weights. ",
341
+ "bbox": [
342
+ 174,
343
+ 832,
344
+ 823,
345
+ 888
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "There are several reasons to believe that stale predictions might be much less of a problem than stale gradients for training: ",
352
+ "bbox": [
353
+ 174,
354
+ 895,
355
+ 823,
356
+ 924
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "Algorithm 1 Codistillation ",
363
+ "text_level": 1,
364
+ "bbox": [
365
+ 174,
366
+ 103,
367
+ 354,
368
+ 117
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Input loss function $\\phi ( 1 \\mathsf { a b e 1 }$ , prediction) \nInput distillation loss function $\\psi$ (aggregated label, prediction) \nInput prediction function F (θ, input) \nInput learning rate $\\eta$ \nfor n burn in steps do for $\\theta _ { i }$ in model set do y, f $=$ get train example() $\\theta _ { i } = \\theta _ { i } - \\eta \\nabla _ { \\theta _ { i } } \\{ \\phi ( y , F ( \\theta _ { i } , f ) ) \\}$ end for \nend for \nwhile not converged do for $\\theta _ { i }$ in model set do y, f $=$ get train example() $\\begin{array} { r } { \\dot { \\theta _ { i } } = \\theta _ { i } - \\eta \\nabla _ { \\theta _ { i } } \\{ \\phi ( \\mathrm { y } , F ( \\theta _ { i } , f ) ) + \\psi ( \\{ \\frac { 1 } { N - 1 } \\sum _ { j \\neq i } F ( \\theta _ { j } , f ) \\} , F ( \\theta _ { i } , f ) ) \\} } \\end{array}$ end for \nend while \n1. every change in weights leads to a change in gradients, but as training progresses towards convergence, weight updates should substantially change only the predictions on a small subset of the training data; \n2. weights (and gradients) are not statistically identifiable as different copies of the weights might have arbitrary scaling differences, permuted hidden units, or otherwise rotated or transformed hidden layer feature space so that averaging gradients does not make sense unless models are extremely similar; \n3. sufficiently out-of-sync copies of the weights will have completely arbitrary differences that change the meaning of individual directions in feature space that are not distinguishable by measuring the loss on the training set; \n4. in contrast, output units have a clear and consistent meaning enforced by the loss function and the training data. ",
375
+ "bbox": [
376
+ 186,
377
+ 119,
378
+ 712,
379
+ 347
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "",
386
+ "bbox": [
387
+ 209,
388
+ 371,
389
+ 825,
390
+ 553
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Furthermore, the predictive distribution of radically different models can still provide very useful information about the relationship between inputs and outputs. Empirically we’ve found that using stale predictions instead of up-to-date predictions for the other neural networks has little to no adverse effect on the quality of the final trained model produced by codistillation. We have been able to use predictions tens of thousands of updates old in the asynchronous case or $8 0 0 \\mathrm { k }$ examples (i.e. 50 updates) old in the large-batch synchronous case. ",
397
+ "bbox": [
398
+ 174,
399
+ 563,
400
+ 825,
401
+ 647
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "The tolerance of distillation for stale teacher predictions suggests a distributed training strategy which is far less communication-intensive than synchronous or asynchronous SGD. ",
408
+ "bbox": [
409
+ 173,
410
+ 654,
411
+ 821,
412
+ 683
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "1. Each worker trains an independent version of the model on a locally available subset of the training data. \n2. Occasionally, workers checkpoint their parameters. \n3. Once this happens, other workers can load the freshest available checkpoints into memory and perform codistillation. ",
419
+ "bbox": [
420
+ 212,
421
+ 693,
422
+ 825,
423
+ 772
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "Of course there is no reason not to combine this strategy with standard distributed SGD, resulting in a procedure that employs independent groups of workers that exchange checkpoints between groups and exchange gradient information within a group. ",
430
+ "bbox": [
431
+ 176,
432
+ 784,
433
+ 825,
434
+ 825
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "In each iteration of synchronous/asynchronous distributed SGD, each worker needs to send and receive an amount of information proportional to the entire model size. When using codistillation to distribute training each worker only needs to very rarely read parameter checkpoints from the other models.1 When combining distributed SGD and codistillation, we can add workers to a group up until the point where we see diminishing returns from distributed SGD and then deploy additional workers in another group, occasionally exchanging checkpoints between the otherwise independent groups of workers. ",
441
+ "bbox": [
442
+ 174,
443
+ 832,
444
+ 825,
445
+ 888
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "",
452
+ "bbox": [
453
+ 178,
454
+ 103,
455
+ 821,
456
+ 145
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Moreover, there is no need to use high-precision floating point numbers to store the parameters used to compute the predictions for the distillation loss term as distillation is not very sensitive to the exact values of the predictions. Therefore the additional computational cost of distributed codistillation will not be much higher than the cost of independent training. ",
463
+ "bbox": [
464
+ 174,
465
+ 152,
466
+ 825,
467
+ 208
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Since the parameters of a model trained on a data set can be viewed as a very compressed representation of the aspects of that data set which are relevant to the learning problem at hand, it makes intuitive sense that leveraging these parameters might be more communication-efficient than sending all the data points or gradients. ",
474
+ "bbox": [
475
+ 174,
476
+ 215,
477
+ 825,
478
+ 271
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "3 EXPERIMENTS AND RESULTS ",
485
+ "text_level": 1,
486
+ "bbox": [
487
+ 178,
488
+ 291,
489
+ 447,
490
+ 306
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "In order to study the scalability of distributed training using codistillation, we need a task that is representative of important large-scale neural network training problems. Neural language modeling is an ideal test bed because vast quantities of text are available on the web and because neural language models can be very expensive to train. Neural language models are representative of important problems that make common use of distributed SGD like machine translation and speech recognition, but language modeling is simpler to evaluate and uses a simpler pipeline. In order to make any potential scalability improvements as clear as possible, we selected a data set large enough that it is completely infeasible to train an expressive model to convergence on it with existing SGD parallelization strategies. In order to confirm that our results were not specific to some peculiarity of language modeling, we also validated some of our large scale codistillation results on ImageNet (Russakovsky et al., 2015) as well. ",
497
+ "bbox": [
498
+ 174,
499
+ 321,
500
+ 825,
501
+ 474
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "To demonstrate the benefits of codistillation in reducing prediction churn and to study other properties of the algorithm we can use smaller experiments that are cheaper to perform, but it is important to actually reach the limits of distributed SGD when studying scalability. ",
508
+ "bbox": [
509
+ 176,
510
+ 481,
511
+ 825,
512
+ 523
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "3.1 DATA SETS AND MODELS ",
519
+ "text_level": 1,
520
+ "bbox": [
521
+ 176,
522
+ 540,
523
+ 390,
524
+ 554
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Common Crawl is an open repository of web crawl data. We downloaded the WET files2 and filtered them to only include English language documents that contained long paragraphs because we wanted data that allowed modeling of slightly longer range dependencies than data sets that randomize sentence order like LM1B (Chelba et al., 2013). After preprocessing, roughly 915 million documents (20TB of text) remained. We plan to release the list of document ids that remained after filtering as well as code for our invertible tokenizer for others to use this data set. The language model we trained in all of our Common Crawl experiments was an RNN language model with two LSTM layers of 1024 units each with layer normalization (Ba et al., 2016). We used 256 dimensional input embeddings and a vocabulary of 24006 word pieces (Schuster & Nakajima, 2012), including sentence and paragraph start and end tokens, out of vocabulary (generally non-English characters), and end of document. After converting to word pieces there were 673 billion tokens, which is much larger than any previous neural language modeling data set we are aware of.3 During training we constructed batches 32 word pieces long drawing tokens from $B$ different documents at a time, saving hidden state across batches. Since the hidden state never gets reset, the model has to learn to use the end of document token to reset itself. We use the ADAM optimizer Kingma & Ba (2014) for all experiments on Common Crawl. ",
531
+ "bbox": [
532
+ 174,
533
+ 565,
534
+ 825,
535
+ 787
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "ImageNet is the most popular image classification benchmark of recent years. All of our experiments on ImageNet followed the setup of Goyal et al. (2017) as closely as possible and also used fully-synchronous SGD. We used the same learning rate scaling and schedule and used a configuration with batch size 16384 that achieves $7 5 \\%$ accuracy as our primary baseline. Goyal et al. (2017) reports that increasing the batch size beyond 8192 provides rapidly diminishing returns. ",
542
+ "bbox": [
543
+ 174,
544
+ 103,
545
+ 823,
546
+ 174
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Criteo Display Ad Challenge dataset4 (Criteo) is a benchmark dataset for predicting click through rate for online advertising. The data contain roughly 43 million examples, each with 13 integer and 26 categorical input features. The task is formulated as binary classification and we train a feedforward fully connected neural network using ReLU activations with hidden layer sizes of 2560, 1024, 256 and a logistic output. We use the Adagrad optimizer with learning rate of 0.001 for training for all experiments on this dataset. ",
553
+ "bbox": [
554
+ 174,
555
+ 180,
556
+ 825,
557
+ 263
558
+ ],
559
+ "page_idx": 5
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "3.2 REACHING THE LIMITS OF DISTRIBUTED SGD FOR TRAINING RNNS ON COMMON CRAWL ",
564
+ "bbox": [
565
+ 173,
566
+ 281,
567
+ 784,
568
+ 309
569
+ ],
570
+ "page_idx": 5
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "In our first set of experiments, our goal was to approximately determine the maximum number of GPU workers that can be productively employed for SGD in our Common Crawl neural language model setup. Since our dataset is two orders of magnitude larger than English Wikipedia, there is no concern about revisiting data, which would make independent replicas more similar, even in relatively large scale experiments. ",
575
+ "bbox": [
576
+ 174,
577
+ 321,
578
+ 825,
579
+ 391
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "We tried asynchronous SGD with 32 and 128 workers, sharding the weights across increasing numbers of parameter servers as necessary to ensure that training speed was bottlenecked by GPU computation time. We found it very difficult to keep training stable and prevent the RNNs from diverging for asynchronous SGD with large numbers of workers. We experimented with a few worker ramp up schemes and different learning rates, but ultimately decided to focus on the synchronous algorithm to make our results less dependent on the specific characteristics of our infrastructure and implementation. Gradient staleness is hard to analyze independent of the specific conditions whereas differences in implementation and infrastructure are far easier to abstract away for synchronous SGD. Although it may have been possible to make async work well with more effort, the debilitating effect of stale gradients on learning progress is a well known issue, for instance Chen et al. (2016) demonstrated that synchronous SGD can often converge to a better final accuracy than asynchronous SGD. Mitliagkas et al. (2016) argues that asynchrony can effectively increase the momentum which is part of why it tends to diverge so easily. For these and other reasons, practitioners (e.g. Goyal et al. (2017)) seem to be moving away from asynchronous SGD towards synchronous training as the default. In preliminary experiments the gains from codistillation seemed independent of the choice of asynchronous or synchronous SGD as the base algorithm. ",
586
+ "bbox": [
587
+ 174,
588
+ 398,
589
+ 825,
590
+ 619
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "The maximum number of GPU workers that can be productively employed for synchronous SGD will depend on infrastructure limits, tail latency, and batch size effects. Fully synchronous SGD is equivalent to the single machine algorithm with a much larger batch size. Increasing the effective batch size reduces noise in the gradient estimates which allows larger step sizes with hopefully higher quality updates that result in faster convergence. Given effectively infinite training data (even with 256 GPUs we do not visit all of the Common Crawl training data) we intuitively would expect increasing the effective batch size to at worst increase the step time. We trained language models on Common Crawl with fully synchronous SGD using a per-worker batch size of 128 and 32, 64, 128, and 256 workers. Thus the effective batch size ranged from 4096 to 32768. Generally we should expect to need to increase the learning rate as we increase the effective batch size, so for each number of workers we tried learning rates of 0.1, 0.2, and 0.4. For 32 and 64 workers, 0.1 performed best and since none of the original three learning rates performed well for 256 workers, we also tried an additional intermediate learning rate of 0.3 which was the best performing learning rate for 256 workers. ",
597
+ "bbox": [
598
+ 174,
599
+ 627,
600
+ 825,
601
+ 821
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "Figure 1a plots the validation error as a function of global steps for the different numbers of workers we tried, using the best learning rate for each number of workers. Increasing the number of workers (and thus the effective batch size) reduced the number of steps required to reach the best validation error until 128 workers, at which point there was no additional improvement. Even with idealized perfect infrastructure, 256 workers would at best result in the same end to end training time on this problem. However, because steps can take so much longer with 256 workers, going from 128 to 256 workers is highly counterproductive in practice. Figure 1b plots validation error against wall time for the same varying numbers of synchronous workers. There is a large degradation in step time, and thus learning progress, at 256 workers. Although it might be possible to improve the step time at 256 workers by using a more sophisticated scheme with backup workers (Chen et al., 2016), the operative limit to scalability on this task is the diminishing return from increasing the effective batch size, not the degradation in step times. ",
608
+ "bbox": [
609
+ 174,
610
+ 828,
611
+ 823,
612
+ 898
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "image",
618
+ "img_path": "images/52bb17f20408a8288b8c469d430282f12c5884bc1bf5b32f5dd8ae70d590ec1c.jpg",
619
+ "image_caption": [
620
+ "Figure 1: Synchronous training on Common Crawl dataset. "
621
+ ],
622
+ "image_footnote": [],
623
+ "bbox": [
624
+ 191,
625
+ 116,
626
+ 794,
627
+ 310
628
+ ],
629
+ "page_idx": 6
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "",
634
+ "bbox": [
635
+ 173,
636
+ 363,
637
+ 825,
638
+ 462
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "In these particular experiments, synchronous SGD with 128 workers is the strongest baseline in terms of training time and final accuracy. Therefore we focus the rest of our experiments on comparisons with 128 worker synchronous SGD and study codistillation that uses synchronous SGD as a subroutine, although it also works well with the asynchronous algorithm. ",
645
+ "bbox": [
646
+ 174,
647
+ 468,
648
+ 825,
649
+ 523
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "3.3 CODISTILLATION WITH SYNCHRONOUS SGD ",
656
+ "text_level": 1,
657
+ "bbox": [
658
+ 178,
659
+ 542,
660
+ 524,
661
+ 556
662
+ ],
663
+ "page_idx": 6
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "For language modeling on Common Crawl, synchronous SGD with 128 GPUs achieved the best results for standard distributed training, at least of the configurations we tried, and we were unable to improve training time with 256 GPUs. Although the extra GPUs do not seem to help basic synchronous SGD, our hypothesis is that the extra 128 GPUs will improve training time if we use two-way codistillation with two groups of 128 GPUs using synchronous SGD that exchange checkpoints periodically. ",
668
+ "bbox": [
669
+ 174,
670
+ 568,
671
+ 825,
672
+ 652
673
+ ],
674
+ "page_idx": 6
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "One concern would be that codistillation is merely a way of penalizing confident output distributions (Pereyra et al., 2017) or smoothing the labels, so we also compared to two label smoothing baselines. The first baseline replaces the distillation loss term with a term that matches the uniform distribution and the second uses a term that matches the unigram distribution. Trade-off hyperparameters were tuned by hand in preliminary experiments. ",
679
+ "bbox": [
680
+ 174,
681
+ 659,
682
+ 825,
683
+ 728
684
+ ],
685
+ "page_idx": 6
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "Another important comparison is to an ensemble of two neural networks, each trained with 128 GPUs and synchronous SGD. Although we are in general interested in the regime where such an ensemble would not be practical because of the increased test time costs, given our understanding of distillation we would expect codistillation, if it achieves all of the benefits of traditional distillation, to have a training curve close to—but slightly worse than—a two-way ensemble. In the case of twoway codistillation, this would provide evidence that the gains are really coming from an ensemblinglike effect despite never explicitly averaging the predictions of multiple models as would happen when distilling an ensemble model. ",
690
+ "bbox": [
691
+ 173,
692
+ 736,
693
+ 825,
694
+ 847
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "Figure 2a plots validation cross entropy versus step of synchronous training for codistillation using two groups of 128 GPUs along with training curves for the synchronous SGD and label smoothing baselines (each using 128 GPUs) and an ensemble of two instances of the 128 GPU baseline. All experiments in figure 2a used the learning rate found to be the best for the 128 GPU synchronous SGD baseline. Two-way codistillation successfully reduces training time substantially compared to the 128 worker baselines and almost achieves the training curve of the two-way ensemble. Measuring at the best validation error achieved by the baseline, codistillation reaches the same error in 2X fewer steps. Perhaps more importantly, codistillation reaches a lower final error so a 2X reduction in steps is likely an underestimate of the gains. In our implementation, for the model we trained, codistillation is free in terms of step time as the GPU is not fully utilized and our implementation automatically overlaps the computation of the teacher and student models. In the worst case, for a model that saturates the hardware that is implemented without quantization, prefetching predictions using the CPU, or other optimizations to compute the predictions, the extra forward pass might increase compute costs by nearly $50 \\%$ . However, even with these worst case assumptions, network costs will be a substantial contributor to the total step time, easily $50 \\% - 8 0 \\%$ , resulting in a modest increase in time per step. ",
701
+ "bbox": [
702
+ 174,
703
+ 854,
704
+ 823,
705
+ 924
706
+ ],
707
+ "page_idx": 6
708
+ },
709
+ {
710
+ "type": "image",
711
+ "img_path": "images/974945ffbc8380f2d69a00cfae8fe969812d6a87a8fdea9e0930975268993c09.jpg",
712
+ "image_caption": [
713
+ "Figure 2: Codistillation (abbreviated as “Cod” in the legend) results with Common Crawl. "
714
+ ],
715
+ "image_footnote": [],
716
+ "bbox": [
717
+ 191,
718
+ 116,
719
+ 818,
720
+ 310
721
+ ],
722
+ "page_idx": 7
723
+ },
724
+ {
725
+ "type": "image",
726
+ "img_path": "images/a455fe81ba4b5b80251f86c8e4d5f511b2ac2e94aeb7717e648e8f811511ba37.jpg",
727
+ "image_caption": [
728
+ "Figure 3: Codistillation on ImageNet "
729
+ ],
730
+ "image_footnote": [],
731
+ "bbox": [
732
+ 194,
733
+ 381,
734
+ 475,
735
+ 550
736
+ ],
737
+ "page_idx": 7
738
+ },
739
+ {
740
+ "type": "image",
741
+ "img_path": "images/e6db93fc59573000cf34cce4583fd34b8eb2e9a81daebdb1c370f768ca6642e7.jpg",
742
+ "image_caption": [
743
+ "Figure 4: Reload intervals on Common Crawl "
744
+ ],
745
+ "image_footnote": [],
746
+ "bbox": [
747
+ 514,
748
+ 382,
749
+ 792,
750
+ 550
751
+ ],
752
+ "page_idx": 7
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "",
757
+ "bbox": [
758
+ 174,
759
+ 623,
760
+ 825,
761
+ 776
762
+ ],
763
+ "page_idx": 7
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "3.3.1 CODISTILLATION REQUIRES FEWER STEPS ON IMAGENET ",
768
+ "text_level": 1,
769
+ "bbox": [
770
+ 176,
771
+ 809,
772
+ 625,
773
+ 823
774
+ ],
775
+ "page_idx": 7
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "In order to confirm our results are not due to the vicissitudes of language modeling or the particulars of our setup, we tried two-way codistillation on ImageNet as well. As can be seen from figure 3, codistillation (enabled after 3000 steps) achieves the same $7 5 \\%$ accuracy after a total of 5250 steps as the baseline does after 7250 steps. Eventually, two-way codistillation achieves a slightly better accuracy of $7 5 . 6 \\%$ at 7250 steps, confirming the utility of codistillation on ImageNet in addition to language modeling. ",
780
+ "bbox": [
781
+ 174,
782
+ 840,
783
+ 825,
784
+ 924
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "3.3.2 PARTITIONING THE DATASET ",
791
+ "text_level": 1,
792
+ "bbox": [
793
+ 176,
794
+ 103,
795
+ 428,
796
+ 117
797
+ ],
798
+ "page_idx": 8
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "The gains from codistillation have a variety of potential causes that we would like to tease apart. From the experiments above, we have evidence against label smoothing effects as a cause. Another potential source of the training time and quality gains from codistillation over basic SGD would be that the different codistilling models see different training data. To test this hypothesis, we ran another codistillation experiment using two groups of 128 workers, but forced the two groups to use the same training data instead of using different random subsets.5 Figure 2b compares codistillation using different subsets of the training data to codistillation using the same data. Codistillation with the same data seems to be slightly better than the baseline, but codistillation using different data gets much better results. These results show that the codistilling models are indeed successfully transmitting useful information about different parts of the training data to each other. ",
803
+ "bbox": [
804
+ 174,
805
+ 130,
806
+ 825,
807
+ 268
808
+ ],
809
+ "page_idx": 8
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "3.4 PREDICTION STALENESS SENSITIVITY ",
814
+ "text_level": 1,
815
+ "bbox": [
816
+ 178,
817
+ 290,
818
+ 475,
819
+ 303
820
+ ],
821
+ "page_idx": 8
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "In general, codistillation can handle relatively stale predictions. SGD generally cannot tolerate gradients nearly as stale. The contrast is most stark with the asynchronous algorithm. We trained our two-way synchronous codistillation setup on Common Crawl with several different checkpoint exchange frequencies. We tried exchange delays of 50, 100, and 250 steps. As can be seen from figure 4, increasing the checkpoint reload interval beyond 819,200 examples or 50 steps slightly degrades the learning curve. With an interval of 50 steps, communicating checkpoints with a shared file system is still quite feasible on most problems. ",
826
+ "bbox": [
827
+ 174,
828
+ 316,
829
+ 825,
830
+ 415
831
+ ],
832
+ "page_idx": 8
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "3.4.1 CODISTILLATION VS MULTI-PHASE DISTILLATION VARIANTS ",
837
+ "text_level": 1,
838
+ "bbox": [
839
+ 178,
840
+ 434,
841
+ 655,
842
+ 448
843
+ ],
844
+ "page_idx": 8
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "In our experiments and experience, the choice between multi-phase distillation and codistillation makes very little difference in terms of the quality improvements achieved by distillation, although it does affect training time. On Common Crawl, we trained an ensemble of two models for 18K steps and then trained an identical model distilling from the ensemble to reach a cross entropy error of 4.0 after 9K steps for a total of 27K steps. However, two-way codistillation reached roughly the same validation error after only 10k steps. Zhang et al. (2017) reported a benefit in quality over basic distillation, but they compare distilling model $M _ { 1 }$ into model $M _ { 2 }$ with training model $M _ { 1 }$ and model $M _ { 2 }$ using codistillation; they do not compare to distilling an ensemble of models $M _ { 1 }$ and $M _ { 2 }$ into model $M _ { 3 }$ . Furthermore, Zhang et al. (2017) only reports final validation error using a large number of training steps on two small image datasets. Overfitting in the teacher model can explain the worse performance of offline distillation Zhang et al. (2017) report on CIFAR-100. We reproduced their experiments with WideResnet-28-10 teaching Resnet-32 on CIFAR-100. When we select a checkpoint with nearly $100 \\%$ training accuracy, we reproduce the $6 9 . 5 \\%$ they report in table 4. However, when we select a different checkpoint, we can achieve the $7 0 . 7 \\%$ they report for online distillation using traditional offline distillation. For distillation to provide value, the teacher must provide information beyond the training label. Thus a teacher network that overfits the training set will not be useful. ",
849
+ "bbox": [
850
+ 174,
851
+ 460,
852
+ 825,
853
+ 694
854
+ ],
855
+ "page_idx": 8
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "The gains in training time of codistillation over multi-phase distillation variants are obvious, but the reduction in training pipeline complexity codistillation provides can be equally important. Using the same architecture and dataset for all the models avoids squaring the tuning problem. The codistillation protocol simplifies the choice of teacher model and restores symmetry between the various models. With traditional multi-phase distillation one must decide which teacher model or models to use and how long to train them, encouraging human intervention between the phases. If teacher models occasionally get reused across versions of the student model in an effort to save computation, rollbacks of models to deal with bugs or data corruption can be dramatically more painful. To reproduce a given final model, one needs the entire history of teacher models and everything required to reproduce them which can easily result in what Sculley et al. (2014) refers to as “pipeline jungle” and unnecessary, undesirable data dependencies. ",
860
+ "bbox": [
861
+ 174,
862
+ 702,
863
+ 825,
864
+ 854
865
+ ],
866
+ "page_idx": 8
867
+ },
868
+ {
869
+ "type": "table",
870
+ "img_path": "images/c1b0d6c14b4110caf054bc68f9098953609fde6878aeeb274cd732ed80c5b92b.jpg",
871
+ "table_caption": [
872
+ "Table 1: Prediction Churn "
873
+ ],
874
+ "table_footnote": [],
875
+ "table_body": "<table><tr><td>Model</td><td>Validation Log Loss</td><td>Mean Absolute Difference6 Between Retrains</td></tr><tr><td></td><td></td><td></td></tr><tr><td>DNN</td><td>0.4480 ± 0.001</td><td>0.029 ± 0.001</td></tr><tr><td>Ensemble of Two DNNs</td><td>0.4461 ± 0.0002</td><td>0.022 ± 0.002</td></tr><tr><td>Two-way codistilled DNN</td><td>0.4458 ± 0.002</td><td>0.019 ± 0.002</td></tr></table>",
876
+ "bbox": [
877
+ 218,
878
+ 132,
879
+ 779,
880
+ 222
881
+ ],
882
+ "page_idx": 9
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "3.5 REDUCING PREDICTION CHURN WITH CODISTILLATION ",
887
+ "text_level": 1,
888
+ "bbox": [
889
+ 174,
890
+ 258,
891
+ 598,
892
+ 271
893
+ ],
894
+ "page_idx": 9
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Unlike linear models with convex loss functions, two neural networks with the same architecture that are trained on the same data can achieve similar validation and test performance while making very different predictions, and mistakes. On large datasets with a stable training pipeline aggregate metrics can be relatively consistent, but minor changes to the model architecture or even simple retrains can cause comparatively dramatic changes in the predictions made by the network. The network will in general get different examples correct and the differences might be especially severe on atypical examples with rare features. The weights learned by stochastic gradient descent in the non-convex setting will depend on the initialization, data presentation order, and the general vicissitudes of the infrastructure, especially when parallelization is involved. It is not practical to control all these nuisance variables and, even if it was, we would still see different solutions after making slight changes to the input representation or model architecture. We will refer to the general reproducibility problem where retraining a neural network after a minor (or even no) change causes a change to the predictions as prediction churn. Prediction churn can be a serious problem when testing and launching new versions of a neural network in a non-disruptive way inside an existing service. ",
899
+ "bbox": [
900
+ 174,
901
+ 286,
902
+ 825,
903
+ 493
904
+ ],
905
+ "page_idx": 9
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Model averaging is a very natural solution to prediction churn. By directly averaging away the variations in the training procedure the predictions will tend to be more consistent across retrains of the ensemble and from minor modifications to the base models. ",
910
+ "bbox": [
911
+ 178,
912
+ 501,
913
+ 820,
914
+ 542
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Given that codistillation achieves many of the benefits of model averaging, our hypothesis is that it should similarly help reduce prediction churn. To test this hypothesis, we trained a deep neural network (DNN) on the Criteo dataset and measured the mean absolute difference between the predictions of two retrains of the same model (prediction difference, for short). The prediction differences between different versions of a model should be at least as large as the prediction differences between two retrains of the same model and serve as a way of estimating the prediction churn. We also trained an ensemble of two copies of the initial DNN and then measured the prediction difference between retrains of the ensemble. Finally, we trained the same DNN using two-way codistillation, picking one of the copies arbitrarily to make predictions and measured the reproducibility of codistillation as well. As shown in table 1, codistillation reduces prediction churn by $3 5 \\%$ , achieving similar results to ensembling, but does not increase serving costs. ",
921
+ "bbox": [
922
+ 173,
923
+ 549,
924
+ 825,
925
+ 702
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "4 DISCUSSION AND FUTURE WORK ",
932
+ "text_level": 1,
933
+ "bbox": [
934
+ 176,
935
+ 729,
936
+ 478,
937
+ 744
938
+ ],
939
+ "page_idx": 9
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Distillation is a surprisingly flexible tool, especially when performed during model training instead of after. It can be used to accelerate training, improve quality, distribute training in new, more communication efficient ways, and reduce prediction churn. However, there are still many questions we would like to explore. For example, we mostly focused on pairs of models codistilling from each other. It stands to reason that if pairs are useful then so are other topologies. Fully connected graphs might make the models too similar, too quickly so ring structures might also be interesting. We also did not explore the limits of how accurate the predictions from the teacher models have to be. It might be possible to aggressively quantize the teacher model to make codistillation almost as cheap as normal training even for very large models. ",
944
+ "bbox": [
945
+ 174,
946
+ 763,
947
+ 825,
948
+ 890
949
+ ],
950
+ "page_idx": 9
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "It is somewhat paradoxical that bad models codistilling from each other can learn faster than models training independently. Somehow the mistakes made by the teacher model carry enough information to help the student model do better than the teacher, and better than just seeing the actual label in the data. Characterizing the ideal properties of a teacher model is an exciting avenue for future work. ",
955
+ "bbox": [
956
+ 174,
957
+ 103,
958
+ 823,
959
+ 159
960
+ ],
961
+ "page_idx": 10
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "In this work we only extract predictions from the checkpoints, as predictions are identifiable and, unlike the internal structure of the networks, have no spurious symmetries. That said, it might be possible to extract more information from a checkpoint than just predictions without hitting the same issues faced by workers communicating gradients, allowing the use of the teacher models as a stronger regularizer. Perhaps distillation-based methods could be used to augment federated learning McMahan et al. (2017) in particularly bandwidth-constrained settings. ",
966
+ "bbox": [
967
+ 174,
968
+ 166,
969
+ 825,
970
+ 250
971
+ ],
972
+ "page_idx": 10
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "ACKNOWLEDGMENTS ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 176,
980
+ 267,
981
+ 326,
982
+ 280
983
+ ],
984
+ "page_idx": 10
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "We would like to thank Avital Oliver for feedback on a draft and Oriol Vinyals for many helpful discussions. We would also like to thank Mohammad Norouzi for emotional support and Dan Hurt for essential help resolving last-minute computational resources issues. ",
989
+ "bbox": [
990
+ 174,
991
+ 290,
992
+ 823,
993
+ 333
994
+ ],
995
+ "page_idx": 10
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "REFERENCES ",
1000
+ "text_level": 1,
1001
+ "bbox": [
1002
+ 176,
1003
+ 354,
1004
+ 285,
1005
+ 369
1006
+ ],
1007
+ "page_idx": 10
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Jimmy Ba, Roger Grosse, and James Martens. Distributed Second-Order Optimization using Kronecker-Factored Approximations. In International Conference on Learning Respresentations (ICLR), 2017. \nJimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. URL https://arxiv.org/abs/1607.06450. \nCristian Bucila, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the Twelfth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, August 20-23, 2006, pp. 535–541, 2006. doi: 10.1145/1150402. 1150464. URL http://doi.acm.org/10.1145/1150402.1150464. \nCiprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. Technical report, Google, 2013. URL http://arxiv.org/abs/1312.3005. \nJianmin Chen, Rajat Monga, Samy Bengio, and Rafal Jozefowicz. Revisiting distributed syn- ´ chronous SGD. CoRR, abs/1604.00981, 2016. URL http://arxiv.org/abs/1604. 00981. \nJeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Andrew Senior, Paul Tucker, Ke Yang, Quoc V Le, et al. Large scale distributed deep networks. In Advances in neural information processing systems, pp. 1223–1231, 2012. \nPriya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An- ´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training ImageNet in 1 hour. CoRR, abs/1706.02677, 2017. URL https://arxiv.org/abs/1706.02677. \nSam Gross, Marc’Aurelio Ranzato, and Arthur Szlam. Hard mixtures of experts for large scale weakly supervised vision. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5085–5093, 2017. \nGeoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. CoRR, abs/1503.02531, 2015. URL https://arxiv.org/abs/1503.02531. \nNitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Respresentations (ICLR), 2017. \nDiederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. URL https://arxiv.org/abs/1412.6980. ",
1012
+ "bbox": [
1013
+ 171,
1014
+ 372,
1015
+ 825,
1016
+ 926
1017
+ ],
1018
+ "page_idx": 10
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Yann A LeCun, Leon Bottou, Genevieve B Orr, and Klaus-Robert M ´ uller. Efficient backprop. In ¨ Neural networks: Tricks of the trade, pp. 9–48. Springer, 2012. ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 103,
1026
+ 823,
1027
+ 132
1028
+ ],
1029
+ "page_idx": 11
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "H. Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Ar- ¨ cas. Communication-efficient learning of deep networks from decentralized data. In Aarti Singh and Xiaojin (Jerry) Zhu (eds.), Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, AISTATS 2017, 20-22 April 2017, Fort Lauderdale, FL, USA, volume 54 of Proceedings of Machine Learning Research, pp. 1273–1282. PMLR, 2017. URL http://proceedings.mlr.press/v54/mcmahan17a.html. ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 141,
1037
+ 825,
1038
+ 224
1039
+ ],
1040
+ "page_idx": 11
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Ioannis Mitliagkas, Ce Zhang, Stefan Hadjis, and Christopher Re. Asynchrony begets momentum, ´ with an application to deep learning. In 54th Annual Allerton Conference on Communication, Control, and Computing, Allerton 2016, Monticello, IL, USA, September 27-30, 2016, pp. 997– 1004, 2016. doi: 10.1109/ALLERTON.2016.7852343. URL https://doi.org/10.1109/ ALLERTON.2016.7852343. ",
1045
+ "bbox": [
1046
+ 173,
1047
+ 234,
1048
+ 825,
1049
+ 304
1050
+ ],
1051
+ "page_idx": 11
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. CoRR, abs/1701.06548, 2017. URL https://arxiv.org/abs/1701.06548. ",
1056
+ "bbox": [
1057
+ 174,
1058
+ 313,
1059
+ 825,
1060
+ 356
1061
+ ],
1062
+ "page_idx": 11
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y. ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 364,
1070
+ 825,
1071
+ 421
1072
+ ],
1073
+ "page_idx": 11
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Mike Schuster and Kaisuke Nakajima. Japanese and korean voice search. In Acoustics, Speech and Signal Processing (ICASSP), 2012 IEEE International Conference on, pp. 5149–5152. IEEE, 2012. ",
1078
+ "bbox": [
1079
+ 173,
1080
+ 430,
1081
+ 825,
1082
+ 473
1083
+ ],
1084
+ "page_idx": 11
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "D. Sculley, Gary Holt, Daniel Golovin, Eugene Davydov, Todd Phillips, Dietmar Ebner, Vinay Chaudhary, and Michael Young. Machine learning: The high interest credit card of technical debt. In SE4ML: Software Engineering for Machine Learning (NIPS 2014 Workshop), 2014. ",
1089
+ "bbox": [
1090
+ 173,
1091
+ 481,
1092
+ 825,
1093
+ 525
1094
+ ],
1095
+ "page_idx": 11
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Respresentations (ICLR), 2017. ",
1100
+ "bbox": [
1101
+ 174,
1102
+ 534,
1103
+ 825,
1104
+ 577
1105
+ ],
1106
+ "page_idx": 11
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016. URL https://arxiv.org/abs/1609.08144. ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 585,
1114
+ 825,
1115
+ 641
1116
+ ],
1117
+ "page_idx": 11
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. CoRR, abs/1706.00384, 2017. URL https://arxiv.org/abs/1706.00384. ",
1122
+ "bbox": [
1123
+ 171,
1124
+ 651,
1125
+ 823,
1126
+ 679
1127
+ ],
1128
+ "page_idx": 11
1129
+ }
1130
+ ]
parse/train/rkr1UDeC-/rkr1UDeC-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkr1UDeC-/rkr1UDeC-_model.json ADDED
The diff for this file is too large to render. See raw diff