ZHANGYUXUAN-zR commited on
Commit
fea83f9
·
verified ·
1 Parent(s): 5e73f87

Add files using upload-large-folder tool

Browse files
parse/train/BysvGP5ee/BysvGP5ee.md ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VARIATIONAL LOSSY AUTOENCODER
2
+
3
+ Xi Chen†‡, Diederik P. Kingma‡, Tim Salimans‡, Yan Duan†‡, Prafulla Dhariwal‡,
4
+ John Schulman†‡, Ilya Sutskever‡, Pieter Abbeel†‡
5
+ † UC Berkeley, Department of Electrical Engineering and Computer Science
6
+ ‡ OpenAI
7
+ {peter,dpkingma,tim,rocky,prafulla,joschu,ilyasu,pieter}@openai.com
8
+
9
+ # ABSTRACT
10
+
11
+ Representation learning seeks to expose certain aspects of observed data in a learned representation that’s amenable to downstream tasks like classification. For instance, a good representation for 2D images might be one that describes only global structure and discards information about detailed texture. In this paper, we present a simple but principled method to learn such global representations by combining Variational Autoencoder (VAE) with neural autoregressive models such as RNN, MADE and PixelRNN/CNN. Our proposed VAE model allows us to have control over what the global latent code can learn and by designing the architecture accordingly, we can force the global latent code to discard irrelevant information such as texture in 2D images, and hence the VAE only “autoencodes” data in a lossy fashion. In addition, by leveraging autoregressive models as both prior distribution $p ( z )$ and decoding distribution $p ( x | z )$ , we can greatly improve generative modeling performance of VAEs, achieving new state-of-the-art results on MNIST, OMNIGLOT and Caltech-101 Silhouettes density estimation tasks as well as competitive results on CIFAR10.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ A key goal of representation learning is to identify and disentangle the underlying causal factors of the data, so that it becomes easier to understand the data, to classify it, or to perform other tasks (Bengio et al., 2013). For image data this often means that we are interested in uncovering the “global structure” that captures the content of an image (for example, the identity of objects present in the image) and its “style”, but that we are typically less interested in the local and high frequency sources of variation such as the specific textures or white noise patterns.
16
+
17
+ A popular approach for learning representations is to fit a probabilistic latent variable model, an approach also known as analysis-by-synthesis (Yuille & Kersten, 2006; Nair et al., 2008). By learning a generative model of the data with the appropriate hierarchical structure of latent variables, it is hoped that the model will somehow uncover and untangle those causal sources of variations that we happen to be interested in. However, without further assumptions, representation learning via generative modeling is ill-posed: there are many different possible generative models with different (or no) kinds of latent variables that all encode the same probability density function on our observed data. Thus, the results we empirically get using this approach are highly dependent on the specific architectural and modeling choices that are made. Moreover, the objective that we optimize is often completely disconnected from the goal of learning a good representation: An autoregressive model of the data may achieve the same log-likelihood as a variational autoencoder (VAE) (Kingma & Welling, 2013), but the structure learned by the two models is completely different: the latter typically has a clear hierarchy of latent variables, while the autoregressive model has no stochastic latent variables at all (although it is conceivable that the deterministic hidden units of the autoregressive models will have meaningful and useful representations). For this reason, autoregressive models have thus far not been popular for the purpose of learning representations, even though they are extremely powerful as generative models (see e.g. van den Oord et al., 2016a).
18
+
19
+ A natural question becomes: is it possible to have a model that is a powerful density estimator and at the same time has the right hierarchical structure for representation learning? A potential solution would be to use a hybrid model that has both the latent variable structure of a VAE, as well as the powerful recurrence of an autoregressive model. However, earlier attempts at combining these two kinds of models have run into the problem that the autoregressive part of the model ends up explaining all structure in the data, while the latent variables are not used (Fabius & van Amersfoort, 2014; Chung et al., 2015; Bowman et al., 2015; Serban et al., 2016; Fraccaro et al., 2016; Xu & Sun, 2016). Bowman et al. (2015) noted that weakening the autoregressive part of the model by, for example, dropout can encourage the latent variables to be used. We analyze why weakening is necessary, and we propose a principled solution that takes advantage of this property to control what kind of information goes into latent variables. The model we propose performs well as a density estimator, as evidenced by state-of-the-art log-likelihood results on MNIST, OMNIGLOT and Caltech-101, and also has a structure that is uniquely suited for learning interesting global representations of data.
20
+
21
+ # 2 VAES DO NOT AUTOENCODE IN GENERAL
22
+
23
+ A VAE is frequently interpreted as a regularized autoencoder (Kingma & Welling, 2013; Zhang et al., 2016), but the conditions under which it is guaranteed to autoencode (reconstruction being close to original datapoint) are not discussed. In this section, we discuss the often-neglected fact that VAEs do not always autoencode and give explicit reasons why previous attempts to apply VAE in sequence modeling found that the latent code is generally not used unless the decoder is weakened (Bowman et al., 2015; Serban et al., 2016; Fraccaro et al., 2016). The understanding of when VAE does autoencode will be an essential building piece for VLAE.
24
+
25
+ # 2.1 TECHNICAL BACKGROUND
26
+
27
+ Let $\mathbf { x }$ be observed variables, $\mathbf { z }$ latent variables and let $p ( \mathbf { x } , \mathbf { z } )$ be the parametric model of their joint distribution, called the generative model defined over the variables. Given a dataset ${ \bf X } =$ $\mathbf { \bar { \{ x } } ^ { 1 } , . . . , x ^ { N } \}$ we wish to perform maximum likelihood learning of its parameters:
28
+
29
+ $$
30
+ \log p ( \mathbf { X } ) = \sum _ { i = 1 } ^ { N } \log p ( \mathbf { x } ^ { ( i ) } ) ,
31
+ $$
32
+
33
+ but in general this marginal likelihood is intractable to compute or differentiate directly for flexible generative models that have high-dimensional latent variables and flexible priors and likelihoods. A solution is to introduce $q ( \mathbf { z } | \mathbf { x } )$ , a parametric inference model defined over the latent variables, and optimize the variational lower bound on the marginal log-likelihood of each observation $\mathbf { x }$ :
34
+
35
+ $$
36
+ \log p ( \mathbf { x } ) \geq \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } , \mathbf { z } ) - \log q ( \mathbf { z } | \mathbf { x } ) \right] = \mathcal { L } ( \mathbf { x } ; \boldsymbol { \theta } )
37
+ $$
38
+
39
+ where $\theta$ indicates the parameters of $p$ and $q$ models.
40
+
41
+ There are various ways to optimize the lower bound $\mathcal { L } ( \mathbf { x } ; \theta )$ ; for continuous $\mathbf { z }$ it can be done efficiently through a re-parameterization of $q ( \mathbf { z } | \mathbf { x } )$ (Kingma & Welling, 2013; Rezende et al., 2014).
42
+
43
+ This way of optimizing the variational lower bound with a parametric inference network and reparameterization of continuous latent variables is usually called VAE. The “autoencoding” terminology comes from the fact that the lower bound $\mathcal { L } ( \mathbf { x } ; \theta )$ can be re-arranged:
44
+
45
+ $$
46
+ \begin{array} { r l } & { \mathcal { L } ( \mathbf { x } ; \theta ) = \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } , \mathbf { z } ) - \log q ( \mathbf { z } | \mathbf { x } ) \right] } \\ & { \qquad = \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } | \mathbf { z } ) \right] - D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) ) } \end{array}
47
+ $$
48
+
49
+ where the first term can be seen as the expectation of negative reconstruction error and the KL divergence term can be seen as a regularizer, which as a whole could be seen as a regularized autoencoder loss with $q ( \mathbf { z } | \mathbf { x } )$ being the encoder and $p ( \mathbf { x } | \mathbf { z } )$ being the decoder. In the context of 2D images modeling, the decoding distribution $p ( \mathbf { x } | \mathbf { z } )$ is usually chosen to be a simple factorized distribution, i.e. $\begin{array} { r } { p ( \mathbf { \bar { x } } | \mathbf { z } ) = \prod _ { i } p ( \mathbf { \bar { x } } _ { i } | \mathbf { z } ) } \end{array}$ , and this setup often yields a sharp decoding distribution $p ( \mathbf { x } | \mathbf { z } )$ that tends to reconstruct original datapoint $\mathbf { x }$ exactly.
50
+
51
+ # 2.2 BITS-BACK CODING AND INFORMATION PREFERENCE
52
+
53
+ It’s straightforward to see that having a more powerful $p ( \mathbf { x } | \mathbf { z } )$ will make VAE’s marginal generative distribution $\begin{array} { r } { p ( { \bf x } ) = \int _ { \bf z } p ( { \bf z } ) p ( { \bf x } | { \bf z } ) \bar { d } { \bf z } } \end{array}$ more expressive. This idea has been explored extensively in previous work applying VAE to sequence modeling (Fabius & van Amersfoort, 2014; Chung et al., 2015; Bowman et al., 2015; Serban et al., 2016; Fraccaro et al., 2016; Xu & Sun, 2016), where the decoding distribution is a powerful RNN with autoregressive dependency, i.e., $p ( \mathbf { x } | \mathbf { z } ) =$ $\begin{array} { r } { \prod _ { i } p ( \mathbf { x } _ { i } | \mathbf { z } , \mathbf { x } _ { < i } ) } \end{array}$ . Since RNNs are universal function approximators and any joint distribution over $\mathbf { x }$ admits an autoregressive factorization, the RNN autoregressive decoding distribution can in theory represent any probability distribution even without dependence on $\mathbf { z }$ .
54
+
55
+ However, previous attempts have found it hard to benefit from VAE when using an expressive decoding distribution $p ( \mathbf { x } | \mathbf { z } )$ . Indeed it’s documented in detail by Bowman et al. (2015) that in most cases when an RNN autoregressive decoding distribution is used, the latent code $\mathbf { z }$ is completely ignored and the model regresses to be a standard unconditional RNN autoregressive distribution that doesn’t depend on the latent code. This phenomenon is commonly attributed to “optimization challenges” of VAE in the literature (Bowman et al., 2015; Serban et al., 2016; Kaae Sønderby et al., 2016) because early in the training the approximate posterior $q ( \mathbf { z } | \mathbf { x } )$ carries little information about datapoint $\mathbf { x }$ and hence it’s easy for the model to just set the approximate posterior to be the prior to avoid paying any regularization cost $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) )$ .
56
+
57
+ Here we present a simple but often-neglected observation that this phenomenon arises not just due to optimization challenges and instead even if we can solve the optimization problems exactly, the latent code should still be ignored at optimum for most practical instances of VAE that have intractable true posterior distributions and sufficiently powerful decoders. It is easiest to understand this observation from a Bits-Back Coding perspective of VAE.
58
+
59
+ It is well-known that Bits-Back Coding is an information-theoretic view of Variational Inference (Hinton & Van Camp, 1993; Honkela & Valpola, 2004) and specific links have been established between Bits-Back Coding and the Helmholtz Machine/VAE (Hinton & Zemel, 1994; Gregor et al., 2013). Here we briefly relate VAE to Bits-Back Coding for self-containedness:
60
+
61
+ First recall that the goal of designing an efficient coding protocol is to minimize the expected code length of communicating x. To explain Bits-Back Coding, let’s first consider a more naive coding scheme. VAE can be seen as a way to encode data in a two-part code: $p ( \mathbf { z } )$ and $p ( \mathbf { x } | \mathbf { z } )$ , where $\mathbf { z }$ can be seen as the essence/structure of a datum and is encoded first and then the modeling error (deviation from $\mathbf { z }$ ’s structure) is encoded next. The expected code length under this naive coding scheme for a given data distribution is hence:
62
+
63
+ $$
64
+ \mathcal { C } _ { \mathrm { n a i v e } } ( \mathbf { x } ) = \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } , \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) } \left[ - \log p ( \mathbf { z } ) - \log p ( \mathbf { x } | \mathbf { z } ) \right]
65
+ $$
66
+
67
+ This coding scheme is, however, inefficient. Bits-Back Coding improves on it by noticing that the encoder distribution $q ( \mathbf { z } | \mathbf { x } )$ can be used to transmit additional information, up to $H ( q ( \mathbf { z } | \mathbf { x } ) )$ expected nats, as long as the receiver also has access to $q ( \mathbf { z } | \mathbf { x } )$ . The decoding scheme works as follows: a receiver first decodes $\mathbf { z }$ from $p ( \mathbf { z } )$ , then decodes $\mathbf { x }$ from $p ( \mathbf { x } | \mathbf { z } )$ and, by running the same approximate posterior that the sender is using, decodes a secondary message from $q ( \mathbf { z } | \mathbf { x } )$ . Hence, to properly measure the code length of VAE’s two-part code, we need to subtract the extra information from $\mathbf { \bar { \rho } } _ { \mathbf { q } } ( \mathbf { z } | \mathbf { x } )$ . Using Bit-Back Coding, the expected code length equates to the negative variational lower bound or the so-called Helmholtz variational free energy, which means minimizing code length is equivalent to maximizing the variational lower bound:
68
+
69
+ $$
70
+ \begin{array} { r l } & { { \mathcal { C } } _ { \mathrm { B i t s B a c k } } ( \mathbf { x } ) = \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } , \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) } \left[ \log q ( \mathbf { z } | \mathbf { x } ) - \log p ( \mathbf { z } ) - \log p ( \mathbf { x } | \mathbf { z } ) \right] } \\ & { \qquad = \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } } \left[ - { \mathcal { L } } ( \mathbf { x } ) \right] } \end{array}
71
+ $$
72
+
73
+ Casting the problem of optimizing VAE into designing an efficient coding scheme easily allows us to reason when the latent code $\mathbf { z }$ will be used: the latent code z will be used when the two-part code is an efficient code. Recalling that the lower-bound of expected code length for data is given by the Shannon entropy of data generation distribution: $\mathcal { H } ( \mathrm { d a t a } ) = \mathbb { E } _ { \boldsymbol { x } \sim \mathrm { d } }$ ata $[ - \log p \mathrm { d a t a } ( x ) ]$ , we can analyze VAE’s coding efficiency:
74
+
75
+ $$
76
+ \begin{array} { r l } & { \mathcal { C } _ { \mathrm { B i t s B a c k } } ( \mathbf { x } ) = \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } , \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) } \left[ \log q ( \mathbf { z } | \mathbf { x } ) - \log p ( \mathbf { z } ) - \log p ( \mathbf { x } | \mathbf { z } ) \right] } \\ & { \qquad = \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } } \left[ - \log p ( \mathbf { x } ) + D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } | \mathbf { x } ) ) \right] } \\ & { \qquad \geq \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } } \left[ - \log p _ { \mathrm { d a t a } } ( \mathbf { x } ) + D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } | \mathbf { x } ) ) \right] } \\ & { \qquad = \mathcal { H } ( \mathrm { d a t a } ) + \mathbb { E } _ { \mathbf { x } \sim \mathrm { d a t a } } \left[ D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } | \mathbf { x } ) ) \right] } \end{array}
77
+ $$
78
+
79
+ Since Kullback Leibler divergence is always non-negative, we know that using the two-part code derived from VAE suffers at least an extra code length of $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } | \mathbf { x } ) )$ nats for using a posterior that’s not precise. Many previous works in Variational Inference have designed flexible approximate posteriors to better approximate true posterior (Salimans et al., 2014; Rezende & Mohamed, 2015; Tran et al., 2015; Kingma et al., 2016). Improved posterior approximations have shown to be effective in improving variational inference but none of the existing methods are able to completely close the gap between approximate posterior and true posterior. This leads us to believe that for most practical models, at least in the near future, the extra coding cost $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } | \mathbf { x } ) )$ will exist and will not be negligible.
80
+
81
+ Once we understand the inefficiency of the Bits-Back Coding mechanism, it’s simple to realize why sometimes the latent code $z$ is not used: if the $p ( \mathbf { x } | \mathbf { z } )$ could model $p _ { \mathrm { d a t a } } ( \mathbf { x } )$ without using information from $\mathbf { z }$ , then it will not use $\mathbf { z }$ , in which case the true posterior $p ( \mathbf { z } | \mathbf { x } )$ is simply the prior $p ( \mathbf { z } )$ and it’s usually easy to set $q ( \mathbf { z } | \mathbf { x } )$ to be $p ( \mathbf { z } )$ to avoid incurring an extra cost $D _ { K L } \bar { ( { q } ( { \bf { z } } | { \bf { x } } ) ) } | | p ( { \bf { z } } | { \bf { x } } ) ) \bar { }$ . And it’s exactly the case when a powerful decoding distribution is used like an RNN autoregressive distribution, which given enough capacity is able to model arbitrarily complex distributions. Hence there exists a preference of information when a VAE is optimized: information that can be modeled locally by decoding distribution $p ( \mathbf { x } | \mathbf { z } )$ without access to z will be encoded locally and only the remainder will be encoded in $\mathbf { z }$ .
82
+
83
+ We note that one common way to encourage putting information into the code is to use a factorized decoder $\begin{array} { r } { p ( \mathbf { x } | \mathbf { z } ) = \prod _ { i } p ( \mathbf { x } _ { i } | \mathbf { z } ) } \end{array}$ but so long as there is one dimension $\mathbf { x } _ { j }$ that’s independent of all other dimensions for true data distribution, $p _ { \mathrm { d a t a } } ( \mathbf { x } ) = p _ { \mathrm { d a t a } } ( \mathbf { x } _ { j } ) p _ { \mathrm { d a t a } } ( \mathbf { \check { x } } _ { \neq j } )$ , then the latent code doesn’t contain all the information about $\mathbf { x }$ since at least $\mathbf { x } _ { j }$ will be modeled locally by factorized $p ( \mathbf { x } | \mathbf { z } )$ . This kind of independence structure rarely exists in images so common VAEs that have factorized decoder autoencode almost exactly. Other techniques to encourage the usage of the latent code include annealing the relative weight of of $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) )$ in the variational lower bound (Bowman et al., 2015; Kaae Sønderby et al., 2016) or the use of free bits (Kingma et al., 2016), which can serve the dual purpose of smoothing the optimization landscape and canceling out part of the Bits-Back Code inefficiency $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) \bar { | } | p ( \mathbf { z } | \mathbf { x } ) )$ .
84
+
85
+ # 3 VARIATIONAL LOSSY AUTOENCODER
86
+
87
+ The discussion in Section 2.2 suggests that autoregressive models cannot be combined with VAE since information will be preferred to be modeled by autoregressive models. Nevertheless, in this section, we present two complementary classes of improvements to VAE that utilize autoregressive models fruitfully to explicitly control representation learning and improve density estimation.
88
+
89
+ # 3.1 LOSSY CODE VIA EXPLICIT INFORMATION PLACEMENT
90
+
91
+ Even though the information preference property of VAE might suggest that one should always use the full autoregressive models to achieve a better code length/log-likelihood, especially when slow data generation is not a concern, we argue that this information preference property can be exploited to turn the VAE into a powerful representation learning method that gives us fine-grained control over the kind of information that gets included in the learned representation.
92
+
93
+ When we try to learn a lossy compression/representation of data, we can simply construct a decoding distribution that’s capable of modeling the part of information that we don’t want the lossy representation to capture, but, critically, that’s incapable of modelling the information that we do want the lossy representation to capture.
94
+
95
+ For instance, if we are interested in learning a global representation for 2D images that doesn’t encode information about detailed texture, we can construct a specific factorization of the autoregressive distribution such that it has a small local receptive field as decoding distribution, e.g., $\begin{array} { r } { \bar { p } _ { \mathrm { l o c a l } } ( \mathbf { x } | \mathbf { z } ) = \prod _ { i } p ( \mathbf { x } _ { i } | \mathbf { z } , \mathbf { x } _ { \mathrm { W i n d o w A r o u n d } ( i ) } ) } \end{array}$ . Notice that, as long as xWindowAround(i) is smaller than $\mathbf { x } _ { < i }$ , $p _ { \mathrm { l o c a l } } ( \mathbf { x } | \mathbf { z } )$ won’t be able to represent arbitrarily complex distribution over $\mathbf { x }$ without dependence on $\mathbf { z }$ since the receptive field is limited such that not all distributions over $\mathbf { x }$ admit such factorizations. In particular, the receptive field window can be a small rectangle adjacent to a pixel $\mathbf { x } _ { i }$ and in this case long-range dependency will be encoded in the latent code $\mathbf { z }$ . On the other hand, if the true data distribution admits such factorization for a given datum $\mathbf { x }$ and dimension $i$ , i.e.
96
+
97
+ $p _ { \mathrm { d a t a } } \bigl ( \mathbf { x } _ { i } | \mathbf { x } _ { \mathrm { W i n d o w A r o u n d } ( i ) } \bigr ) = p _ { \mathrm { d a t a } } \bigl ( \mathbf { x } _ { i } | \mathbf { x } _ { < i } \bigr )$ , then the information preference property discussed in Section 2.2 will apply here, which means that all the information will be encoded in local autoregressive distribution for $\mathbf { x } _ { i }$ . Local statistics of 2D images like texture will likely be modeled completely by a small local window, whereas global structural information of an images like shapes of objects is long-range dependency that can only be communicated through latent code $\mathbf { z }$ . Therefore we have given an example VAE that will produce a lossy compression of 2D images carrying exclusively global information that can’t be modeled locally.
98
+
99
+ Notice that a global representation is only one of many possible lossy representations that we can construct using this information preference property. For instance, the conditional of an autoregressive distribution might depend on a heavily down-sampled receptive field so that it can only model long-range pattern whereas local high-frequency statistics need to be encoded into the latent code. Hence we have demonstrated that we can achieve explicit placement of information by constraining the receptive field/factorization of an autoregressive distribution that’s used as decoding distribution.
100
+
101
+ We want to additionally emphasize the information preference property is an asymptotic view in a sense that it only holds when the variational lowerbound can be optimized well. Thus, we are not proposing an alternative to techniques like free bits Kingma et al. (2016) or KL annealing, and indeed they are still useful methods to smooth the optimization problem and used in this paper’s experiments.
102
+
103
+ # 3.2 LEARNED PRIOR WITH AUTOREGRESSIVE FLOW
104
+
105
+ Inefficiency in Bits-Back Coding, i.e., the mismatch between approximate posterior and true posterior, can be exploited to construct a lossy code but it’s still important to minimize such inefficiency to improve overall modeling performance/coding efficiency. We propose to parametrize the prior distribution $p ( \mathbf { z } ; \theta )$ with an autoregressive model and show that a type of autoregressive latent code can in theory reduce inefficiency in Bits-Back coding.
106
+
107
+ It is well-known that limited approximate posteriors impede learning and therefore various expressive posterior approximations have been proposed to improve VAE’s density estimation performance (Turner et al., 2008; Mnih & Gregor, 2014; Salimans et al., 2014; Rezende & Mohamed, 2015; Kingma et al., 2016). One such class of approximate posteriors that has been shown to attain good empirical performance is based on the idea of Normalizing Flow, which is to apply an invertible mapping to a simple random variable, for example a factorized Gaussian as commonly used for $q ( \mathbf { z } | \mathbf { x } )$ , in order to obtain a complicated random variable. For an invertible transformation between a simple distribution $\mathbf { y }$ and a more flexible $\mathbf { z }$ , we know from the change-of-variable technique that $\begin{array} { r } { \log q ( \mathbf { z } | \mathbf { x } ) = \log q ( \mathbf { y } | \mathbf { x } ) - \log \operatorname* { d e t } \frac { d \mathbf { z } } { d \mathbf { v } } } \end{array}$ and using $q ( \mathbf { z } | \mathbf { x } )$ as approximate posterior will decrease the coding efficiency gap $D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | \dot { p } ( \mathbf { z } | \mathbf { x } ) )$ provided the transformation is sufficiently expressive.
108
+
109
+ Kingma et al. (2016) introduced Inverse Autoregressive Flow, which is a powerful class of such invertible mappings that have simple determinant: $\begin{array} { r } { z _ { i } = \frac { y _ { i } - \mu _ { i } \left( y _ { 1 : i - 1 } \right) } { \sigma _ { i } \left( y _ { 1 : i - 1 } \right) } } \end{array}$ , where $\mu _ { i } ( . ) \in \mathcal { R } , \sigma _ { i } ( . ) \in \mathcal { R } ^ { + }$ are general functions that can be parametrized by expressive neural networks, such as MADE and PixelCNN variants (Germain et al., 2015; van den Oord et al., 2016a). Inverse autoregressive flow is the inverse/whitening of autoregressive flow: $y _ { i } = z _ { i } \sigma _ { i } ( y _ { 1 : i - 1 } ) + \mu _ { i } ( y _ { 1 : i - 1 } )$ . We refer interested readers to (Rezende & Mohamed, 2015; Kingma et al., 2016) for in-depth discussions on related topics.
110
+
111
+ In this paper, we propose to parametrize our learnable prior as an autoregressive flow from some simple noise source like spherical Gaussian. Next, we show that using latent code transformed by autoregressive flow (AF) is equivalent to using inverse autoregressive flow (IAF) approximate posterior, which explains why it can similarly improve Bits-Back Coding efficiency. Moreover, compared with an IAF posterior, an AF prior has a more expressive generative model that essentially “comes for free”.
112
+
113
+ For an autoregressive flow $f$ , some continuous noise source $\epsilon$ is transformed into latent code $\mathbf { z }$ : $\mathbf { z } = f ( \epsilon )$ . Assuming the density function for noise source is $u ( \epsilon )$ , we similarly know that $\log p ( \mathbf { z } ) =$ $\begin{array} { r } { \log u ( \epsilon ) + \log \operatorname* { d e t } \frac { d \epsilon } { d \mathbf { z } } } \end{array}$
114
+
115
+ Simply re-arranging the variational lowerbound for using AF prior reveals that having an AF latent code $\mathbf { z }$ is equivalent to using an IAF posterior for $\epsilon$ that we can interpret as the new latent code:
116
+
117
+ $$
118
+ \begin{array} { r l } & { \mathcal { L } ( \mathbf { x } ; \theta ) = \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } | \mathbf { z } ) + \log p ( \mathbf { z } ) - \log q ( \mathbf { z } | \mathbf { x } ) \right] } \\ & { \quad \quad \quad = \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) , \epsilon = f ^ { - 1 } ( \mathbf { z } ) } \left[ \log p ( \mathbf { x } | f ( \epsilon ) ) + \log u ( \epsilon ) + \log \operatorname* { d e t } \frac { d \epsilon } { d \mathbf { z } } - \log q ( \mathbf { z } | \mathbf { x } ) \right] } \\ & { \quad \quad \quad = \mathbb { E } _ { \mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } ) , \epsilon = f ^ { - 1 } ( \mathbf { z } ) } \left[ \log p ( \mathbf { x } | f ( \epsilon ) ) + \log u ( \epsilon ) - \underbrace { ( \log q ( \mathbf { z } | \mathbf { x } ) - \log \operatorname* { d e t } \frac { d \epsilon } { d \mathbf { z } } ) } _ { \mathrm { L A F P o s t e r i o r } } \right] } \end{array}
119
+ $$
120
+
121
+ AF prior is the same as IAF posterior along the encoder path, $f ^ { - 1 } ( q ( \mathbf { z } | \mathbf { x } ) )$ , but differs along the decoder/generator path: IAF posterior has a shorter decoder path $p ( \mathbf { x } | \mathbf { z } )$ whereas AF prior has a deeper decoder path $p ( \mathbf { x } | f ( \epsilon ) )$ . The crucial observation is that AF prior and IAF posterior have the same computation cost under the expectation of $\mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } )$ , so using AF prior makes the model more expressive at no training time cost.
122
+
123
+ # 4 EXPERIMENTS
124
+
125
+ In this paper, we evaluate VLAE on 2D images and leave extensions to other forms of data to future work. For the rest of the section, we define a VLAE model as a VAE that uses AF prior and autoregressive decoder. We choose to implement conditional distribution $p ( \mathbf { x } | \mathbf { z } )$ with a smallreceptive-field PixelCNN (van den Oord et al., 2016a), which has been proved to be a scalable autoregressive model.
126
+
127
+ For evaluation, we use binary image datasets that are commonly used for density estimation tasks: MNIST (LeCun et al., 1998) (both statically binarized 1 and dynamically binarized version (Burda et al., 2015a)), OMNIGLOT (Lake et al., 2013; Burda et al., 2015a) and Caltech-101 Silhouettes (Marlin et al., 2010). All datasets uniformly consist of $2 8 \mathrm { { x } 2 8 }$ binary images, which allow us to use a unified architecture. VAE networks used in binary image datasets are simple variants of ResNet VAEs described in (Salimans et al., 2014; Kingma et al., 2016). For the decoder, we use a variant of PixelCNN that has 6 layers of masked convolution with filter size 3, which means the window of dependency, xWindowAround(i), is limited to a small local patch. During training, ”free bits” (Kingma et al., 2016) is used improve optimization stability. Experimental setup and hyperparameters are detailed in the appendix. Reported marginal NLL is estimated using Importance Sampling with 4096 samples.
128
+
129
+ We designed experiments to answer the following questions:
130
+
131
+ • Can VLAE learn lossy codes that encode global statistics? • Does using AF priors improves upon using IAF posteriors as predicted by theory? • Does using autoregressive decoding distributions improve density estimation performance?
132
+
133
+ # 4.1 LOSSY COMPRESSION
134
+
135
+ First we are interested in whether VLAE can learn a lossy representation/compression of data by using the PixelCNN decoder to model local statistics. We trained VLAE model on Statically Binarized MNIST and the converged model has $\mathbb { E } [ D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) ) ] = 1 3 . 3$ nats = 19.2 bits, which is the number of bits it uses on average to encode/compress one MNIST image. By comparison, an identical VAE model with factorized decoding distribution will uses on average 37.3 bits in latent code, and this thus indicates that VLAE can learn a lossier compression than a VAE with regular factorized conditional distribution.
136
+
137
+ The next question is whether VLAE’s lossy compression encodes global statistics and discards local statistics. In Fig 1a, we visualize original images $\mathbf { x } _ { \mathrm { d a t a } }$ and one random “decompression” xdecompressed from VLAE: $\mathbf { z } \sim q ( \mathbf { z } | \mathbf { x } _ { \mathrm { d a t a } } )$ , xdecompressed $\sim p ( \mathbf { x } | \mathbf { z } )$ . We observe that none of the decompressions is an exact reconstruction of the original image but instead the global structure of the image was encoded in the lossy code $\mathbf { z }$ and regenerated. Also worth noting is that local statistics are not preserved but a new set of likely local statistics are generated in the decompressed images: the binary masks are usually different and local styles like stroke width are sometimes slightly different.
138
+
139
+ ![](images/581a9d551d664aabdf904e8791f6618ada526a3da8745712ac099b9b89b79b11.jpg)
140
+ Figure 1: Statically Binarized MNIST
141
+
142
+ However, we remark that the lossy code z doesn’t always capture the kind of global information that we care about and it’s dependent on the type of constraint we put on the decoder. For instance, in Fig 4b, we show decompressions for OMNIGLOT dataset, which has more meaningful variations in small patches than MNIST, and we can observe that semantics are not preserved in some cases. This highlights the need to specify the type of statistics we care about in a representation, which will be different across tasks and datasets, and design decoding distribution accordingly.
143
+
144
+ ![](images/506353593b6cf7e2101d467217f2fb78982898e2c374034a9412bb6d1d364e90.jpg)
145
+ Figure 2: OMNIGLOT
146
+
147
+ # 4.2 DENSITY ESTIMATION
148
+
149
+ Next we investigate whether leveraging autoregressive models as latent distribution $p ( \mathbf { z } )$ and as decoding distribution $p ( \mathbf { x } | \mathbf { z } )$ would improve density estimation performance.
150
+
151
+ To verify whether AF prior is able to improve upon IAF posterior alone, it’s desirable to test this model without using autoregressive decoder but instead using the conventional independent Bernoulli distribution for $p ( \mathbf { x } | \mathbf { z } )$ . Hence we use the best performing model from Kingma et al.
152
+
153
+ Table 1: Statically Binarized MNIST
154
+
155
+ <table><tr><td>Model</td><td>NLL Test</td></tr><tr><td>Normalizing flows (Rezende &amp;Mohamed,2015)</td><td>85.10</td></tr><tr><td>DRAW (Gregor et al., 2015)</td><td>&lt;80.97</td></tr><tr><td>Discrete VAE (Rolfe,2016)</td><td>81.01</td></tr><tr><td>PixelRNN (van den Oord et al., 2016a)</td><td>79.20</td></tr><tr><td>IAF VAE (Kingma et al., 2016)</td><td>79.88</td></tr><tr><td>AFVAE</td><td>79.30</td></tr><tr><td>VLAE</td><td>79.03</td></tr></table>
156
+
157
+ (2016) on statically binarized MNIST and make the single modification of replacing the original IAF posterior with an equivalent AF prior, removing the context. As seen in Table 1, VAE with AF prior is outperforming VAE with an equivalent IAF posterior, indicating that the deeper generative model from AF prior is beneficial. A similar gain carries over when an autoregressive decoder is used: on statically binarized MNIST, using AF prior instead of IAF posterior reduces train NLL by 0.8 nat and test NLL by 0.6 nat.
158
+
159
+ Next we evaluate whether using autoregressive decoding distribution can improve performance and we show in Table 1 that a VLAE model, with AF prior and PixelCNN conditional, is able to outperform a VAE with just AF prior and achieves new state-of-the-art results on statically binarized MNIST.
160
+
161
+ In addition, we hypothesize that the separation of different types of information, the modeling global structure in latent code and local statistics in PixelCNN, likely has some form of good inductive biases for 2D images. In order to evaluate if VLAE is an expressive density estimator with good inductive biases, we will test a single VLAE model, with the same network architecture, on all binary datasets. We choose hyperparameters manually on statically binarized MNIST and use the same hyperparameters to evaluate on dynamically binarized MNIST, OMNIGLOT and Caltech-101 Silhouettes. We also note that better performance can be obtained if we individually tune hyperparameters for each dataset. As a concrete demonstration, we report the performance of a fine-tuned VLAE on OMNIGLOT dataset in Table 3.
162
+
163
+ Table 2: Dynamically binarized MNIST
164
+
165
+ <table><tr><td>Model</td><td>NLL Test</td></tr><tr><td>Convolutional VAE +HVI (Salimans etal., 2014)</td><td>81.94</td></tr><tr><td>DLGM 2hl + IWAE (Burda et al., 2015a)</td><td>82.90</td></tr><tr><td>Discrete VAE (Rolfe, 2016)</td><td>80.04</td></tr><tr><td>LVAE (Kaae Sonderby et al., 2016)</td><td>81.74</td></tr><tr><td>DRAW + VGP (Tran et al., 2015)</td><td>&lt; 79.88</td></tr><tr><td>IAF VAE (Kingma et al., 2016)</td><td>79.10</td></tr><tr><td>Unconditional Decoder</td><td>87.55</td></tr><tr><td>VLAE</td><td>78.53</td></tr></table>
166
+
167
+ Table 3: OMNIGLOT. [1] (Burda et al., 2015a), [2] (Burda et al., 2015b), [3] (Gregor et al., 2015), [4] (Gregor et al., 2016),
168
+
169
+ <table><tr><td>Model</td><td>NLL Test</td></tr><tr><td>VAE [1]</td><td>106.31</td></tr><tr><td>IWAE [1]</td><td>103.38</td></tr><tr><td>RBM(500 hidden) [2]</td><td>100.46</td></tr><tr><td>DRAW[3]</td><td>&lt;96.50</td></tr><tr><td>Conv DRAW [4]</td><td>&lt;91.00</td></tr><tr><td>Unconditional Decoder</td><td>95.02</td></tr><tr><td>VLAE</td><td>90.98</td></tr><tr><td>VLAE (fine-tuned)</td><td>89.83</td></tr></table>
170
+
171
+ Table 4: Caltech-101 Silhouettes. [1] (Bornschein & Bengio, 2014), [2] (Cho et al., 2011), [3] (Du et al., 2015), [4] (Rolfe, 2016), [5] (Goessling & Amit, 2015),
172
+
173
+ <table><tr><td>Model</td><td>NLL Test</td></tr><tr><td>RWS SBN[1]</td><td>113.3</td></tr><tr><td>RBM[2] NAIS NADE [3]</td><td>107.8 100.0</td></tr><tr><td>Discrete VAE [4]</td><td>97.6</td></tr><tr><td>SpARN[5]</td><td>88.48</td></tr><tr><td>Unconditional Decoder VLAE</td><td>89.26</td></tr></table>
174
+
175
+ As seen in Table 2,3,4, with the same set of hyperparameters tuned on statically binarized MNIST, VLAE is able to perform well on the rest of datasets, significantly exceeding previous state-ofthe-art results on dynamically binarized MNIST and Caltech-101 Silhouettes and tying statistically with best previous result on OMNIGLOT. In order to isolate the effect of expressive PixelCNN as decoder, we also report performance of the same PixelCNN trained without VAE part under the name “Unconditional Decoder”.
176
+
177
+ # 4.3 NATURAL IMAGES: CIFAR10
178
+
179
+ In addition to binary image datasets, we have applied VLAE to the CIFAR10 dataset of natural images. Density estimation of CIFAR10 images has been a challenging benchmark problem used by many recent generative models and hence is great task to position VLAE among existing methods.
180
+
181
+ We investigated using ResNet (He et al., 2016) and DenseNet (Huang et al., 2016) as building blocks for VAE networks and observed that DenseNet reduces overfitting. We also propose a new optimization technique that blends the advantages of KL annealing (Serban et al., 2016) and ”free bits” (Kingma et al., 2016) to stabilize learning on this challenging dataset. Detailed experimental setup is described in Appendix.
182
+
183
+ VLAE is compared to other methods on CIFAR10 in Table 5. We show that VLAE models attain new state-of-the-art performance among other variationally trained latent-variable models. DenseNet VLAE model also outperforms most other tractable likelihood models including Gated PixelCNN and PixelRNN and has results only slightly worse than currently unarchived state-of-the-art Pixel$\mathrm { C N N + + }$ .
184
+
185
+ Table 5: CIFAR10. Likelihood for VLAE is approximated with 512 importance samples. [1] (van den Oord et al., 2016a), [2] (Dinh et al., 2014), [3] (van den Oord & Schrauwen, 2014), [4] (Dinh et al., 2016), [5] (van den Oord et al., 2016b), [6] (Salimans et al., 2017), [7] (Sohl-Dickstein et al., 2015), [8] (Gregor et al., 2016), [9] (Kingma et al., 2016)
186
+
187
+ <table><tr><td>Method</td><td>bits/dim ≤</td></tr><tr><td>Resultswith tractable likelihood models: Uniform distribution [1]</td><td>8.00</td></tr><tr><td>Multivariate Gaussian [1]</td><td>4.70</td></tr><tr><td>NICE [2] Deep GMMs [3]</td><td>4.48 4.00</td></tr><tr><td>Real NVP [4]</td><td>3.49</td></tr><tr><td>PixelCNN[1]</td><td>3.14</td></tr><tr><td>Gated PixelCNN [5]</td><td>3.03</td></tr><tr><td>PixelRNN[1] PixelCNN++ [6]</td><td>3.00</td></tr><tr><td>Resultswith variationallytrained latent-variablemodels:</td><td>2.92</td></tr><tr><td>Deep Diffusion [7]</td><td></td></tr><tr><td>Convolutional DRAW[8]</td><td>5.40</td></tr><tr><td>ResNetVAE with IAF[9]</td><td>3.58</td></tr><tr><td>ResNetVLAE</td><td>3.11</td></tr><tr><td>DenseNetVLAE</td><td>3.04</td></tr></table>
188
+
189
+ We also investigate learning lossy codes on CIFAR10 images. To illustrate how does the receptive field size of PixelCNN decoder influence properties of learned latent codes, we show visualizations of similar VLAE models with receptive fields of different sizes. Specifically we say a receptive field, xWindowAround(i), has size $A \mathbf { x } B$ when a pixel $x _ { i }$ can depend on the rectangle block of size $A \mathbf { x } B$ immediately on top of $x _ { i }$ as well as the $\textstyle \left\lceil { \frac { A - 1 } { 2 } } \right\rceil$ pixels immediately to the left of $x _ { i }$ . We use this notation to refer to different types of PixelCNN decoders in Figure 3.
190
+
191
+ From (a)-(c) in Figure 3, we can see that larger receptive fields progressively make autoregressive decoders capture more structural information. In (a), a smaller receptive field tends to preserve rather detailed shape information in the lossy code whereas the latent code only retains rough shape in (c) with a larger receptive field.
192
+
193
+ ![](images/03d275bd9dc480d78267d9b3390b7ede544ee5236bf055cc58ba8f7b4da7bc86.jpg)
194
+ Figure 3: CIFAR10: Original test-set images (left) and “decompressioned” versions from VLAE’s lossy code (right) with different types of receptive fields
195
+
196
+ It’s interesting to also note that in (a)-(c), oftentimes color information is partially omitted from latent codes and one explanation can be that color is very predictable locally. However, color information can be important to preserve if our task is, for example, object classification. To demonstrate how we can encode color information in the lossy code, we can choose to make PixelCNN decoder depend only on images’ grayscale versions. In other words, instead of choosing the decoder to be $\begin{array} { r } { \dot { p } _ { \mathrm { l o c a l } } ( \mathbf { x } | \mathbf { \bar { z } } ) = \prod _ { i } ^ { } p ( \mathbf { x } _ { i } | \mathbf { z } } \end{array}$ , xWindowAround(i)), we use a decoder of the form $\begin{array} { r } { p _ { \mathrm { l o c a l } } ( \mathbf { x } | \mathbf { z } ) ~ { = } ~ \prod _ { i } p ( \mathbf { x } _ { i } | \mathbf { z } , \mathrm { G r a y s c a l e } ( \mathbf { x } _ { \mathrm { W i n d o w A r o u n d } ( i ) } ) ) , } \end{array}$ ). In (d) of Figure 3, we visualize lossy codes for a VLAE that has the same receptive field size as (c) but uses a “grayscale receptive field”. We note that the lossy codes in (d) encode roughly the same structural information as those in (c) but generally generate objects that are more recognizable due to the preservation of color information. This serves as one example of how we can design the lossy latent code carefully to encode what’s important and what’s not.
197
+
198
+ # 5 RELATED WORK
199
+
200
+ We investigate a fusion between variational autoencoders with continuous latent variables (Kingma & Welling, 2013; Rezende et al., 2014) and neural autoregressive models. For autoregression, we specifically apply a novel type of architecture where autoregression is realised through a carefully constructed deep convolutional network, introduced in the PixelCNN model for images (van den Oord et al., 2016a,b). These family of convolutional autoregressive models was further explored, and extended, for audio in WaveNet (Oord et al., 2016), video in Video Pixel Networks (Kalchbrenner et al., 2016b) and language in ByteNet (Kalchbrenner et al., 2016a).
201
+
202
+ The combination of latent variables with expressive decoder was previously explored using recurrent networks mainly in the context of language modeling (Chung et al., 2015; Bowman et al., 2015; Serban et al., 2016; Fraccaro et al., 2016; Xu & Sun, 2016). Bowman et al. (2015) has also proposed to weaken an otherwise too expressive decoder by dropout to force some information into latent codes.
203
+
204
+ Concurrent with our work, PixelVAE (Gulrajani et al., 2016) also explored using conditional PixelCNN as a VAE’s decoder and has obtained impressive density modeling results through the use of multiple levels of stochastic units.
205
+
206
+ Using autoregressive model on latent code was explored in the context of discrete latent variables in DARN (Gregor et al., 2013). Kingma et al. (2016), Kaae Sønderby et al. (2016), Gregor et al. (2016) and Salimans (2016) explored VAE architecture with an explicitly deep autoregressive prior for continuous latent variables, but the autoregressive data likelihood is intractable in those architectures and needs to inferred variationally. In contrast, we use multiple steps of autoregressive flows that has exact likelihood and analyze the effect of using expressive latent code.
207
+
208
+ Optimization challenges for using (all levels of) continuous latent code were discussed before and practical solutions were proposed (Bowman et al., 2015; Kaae Sønderby et al., 2016; Kingma et al., 2016). In this paper, we present a complementary perspective on when/how should the latent code be used by appealing to a Bits-Back interpretation of VAE.
209
+
210
+ Learning a lossy compressor with latent variable model has been investigated with ConvDRAW (Gregor et al., 2016). It learns a hierarchy of latent variables and just using high-level latent variables will result in a lossy compression that performs similarly to JPEG. Our model similarly learns a lossy compressor but it uses an autoregressive model to explicitly control what kind of information should be lost in compression.
211
+
212
+ # 6 CONCLUSION
213
+
214
+ In this paper, we analyze the condition under which the latent code in VAE should be used, i.e. when does VAE autoencode, and use this observation to design a VAE model that’s a lossy compressor of observed data. At modeling level, we propose two complementary improvements to VAE that are shown to have good empirical performance.
215
+
216
+ VLAE has the appealing properties of controllable representation learning and improved density estimation performance but these properties come at a cost: compared with VAE models that have simple prior and decoder, VLAE is slower at generation due to the sequential nature of autoregressive model.
217
+
218
+ Moving forward, we believe it’s exciting to extend this principle of learning lossy codes to other forms of data, in particular those that have a temporal aspect like audio and video. Another promising direction is to design representations that contain only information for downstream tasks and utilize those representations to improve semi-supervised learning.
219
+
220
+ # REFERENCES
221
+
222
+ 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.
223
+
224
+ Jorg Bornschein and Yoshua Bengio. Reweighted wake-sleep. ¨ arXiv preprint arXiv:1406.2751, 2014.
225
+
226
+ Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015.
227
+
228
+ Yuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. arXiv preprint arXiv:1509.00519, 2015a.
229
+
230
+ Yuri Burda, Roger B Grosse, and Ruslan Salakhutdinov. Accurate and conservative estimates of mrf log-likelihood using reverse annealing. In AISTATS, 2015b.
231
+
232
+ KyungHyun Cho, Tapani Raiko, and Alexander T Ihler. Enhanced gradient and adaptive learning rate for training restricted boltzmann machines. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 105–112, 2011.
233
+
234
+ Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015.
235
+
236
+ Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014.
237
+
238
+ Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using Real NVP. arXiv preprint arXiv:1605.08803, 2016.
239
+
240
+ Chao Du, Jun Zhu, and Bo Zhang. Learning deep generative models with doubly stochastic mcmc. arXiv preprint arXiv:1506.04557, 2015.
241
+
242
+ Otto Fabius and Joost R van Amersfoort. Variational recurrent auto-encoders. arXiv preprint arXiv:1412.6581, 2014.
243
+
244
+ Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. arXiv preprint arXiv:1605.07571, 2016.
245
+
246
+ Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. arXiv preprint arXiv:1502.03509, 2015.
247
+
248
+ Marc Goessling and Yali Amit. Sparse autoregressive networks. arXiv preprint arXiv:1511.04776, 2015.
249
+
250
+ Karol Gregor, Andriy Mnih, and Daan Wierstra. Deep AutoRegressive Networks. arXiv preprint arXiv:1310.8499, 2013.
251
+
252
+ Karol Gregor, Ivo Danihelka, Alex Graves, and Daan Wierstra. DRAW: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015.
253
+
254
+ Karol Gregor, Frederic Besse, Danilo Jimenez Rezende, Ivo Danihelka, and Daan Wierstra. Towards conceptual compression. arXiv preprint arXiv:1604.08772, 2016.
255
+
256
+ Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016.
257
+
258
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016.
259
+
260
+ Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993.
261
+
262
+ Geoffrey E Hinton and Richard S Zemel. Autoencoders, minimum description length, and Helmholtz free energy. Advances in neural information processing systems, pp. 3–3, 1994.
263
+
264
+ Antti Honkela and Harri Valpola. Variational learning and bits-back coding: an informationtheoretic view to bayesian learning. IEEE Transactions on Neural Networks, 15(4):800–810, 2004.
265
+
266
+ Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016.
267
+
268
+ Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. How to train deep variational autoencoders and probabilistic ladder networks. arXiv preprint arXiv:1602.02282, 2016.
269
+
270
+ Nal Kalchbrenner, Lasse Espheholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. eural machine translation in linear time. arXiv preprint arXiv:1610.00527, 2016a.
271
+
272
+ Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Graves, and Koray Kavukcuoglu. Video pixel networks. arXiv preprint arXiv:1610.00527, 2016b.
273
+
274
+ Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. Proceedings of the 2nd International Conference on Learning Representations, 2013.
275
+
276
+ Diederik P Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. arXiv preprint arXiv:1606.04934, 2016.
277
+
278
+ Brenden M Lake, Ruslan R Salakhutdinov, and Josh Tenenbaum. One-shot learning by inverting a compositional causal process. In Advances in neural information processing systems, pp. 2526– 2534, 2013.
279
+
280
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
281
+
282
+ Benjamin M Marlin, Kevin Swersky, Bo Chen, and Nando de Freitas. Inductive principles for restricted boltzmann machine learning. In AISTATS, pp. 509–516, 2010.
283
+
284
+ Andriy Mnih and Karol Gregor. Neural variational inference and learning in belief networks. arXiv preprint arXiv:1402.0030, 2014.
285
+
286
+ Vinod Nair, Josh Susskind, and Geoffrey E Hinton. Analysis-by-synthesis by learning to invert generative black boxes. In International Conference on Artificial Neural Networks, pp. 971–981. Springer, 2008.
287
+
288
+ Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
289
+
290
+ Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of The 32nd International Conference on Machine Learning, pp. 1530–1538, 2015.
291
+
292
+ Danilo J Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 1278–1286, 2014.
293
+
294
+ Jason Tyler Rolfe. Discrete variational autoencoders. arXiv preprint arXiv:1609.02200, 2016.
295
+
296
+ Tim Salimans. A structured variational auto-encoder for learning deep hierarchies of sparse features. arXiv preprint arXiv:1602.08734, 2016.
297
+
298
+ Tim Salimans, Diederip P. Kingma, and Max Welling. Markov chain Monte Carlo and variational inference: Bridging the gap. arXiv preprint arXiv:1410.6460, 2014.
299
+
300
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017.
301
+
302
+ Iulian Vlad Serban, Alessandro Sordoni, Ryan Lowe, Laurent Charlin, Joelle Pineau, Aaron Courville, and Yoshua Bengio. A hierarchical latent variable encoder-decoder model for generating dialogues. arXiv preprint arXiv:1605.06069, 2016.
303
+
304
+ Jascha Sohl-Dickstein, Eric A Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. arXiv preprint arXiv:1503.03585, 2015.
305
+
306
+ Dustin Tran, Rajesh Ranganath, and David M Blei. Variational gaussian process. arXiv preprint arXiv:1511.06499, 2015.
307
+
308
+ Richard E Turner, Pietro Berkes, and Maneesh Sahani. Two problems with variational expectation maximisation for time-series models. In Proceedings of the Workshop on Inference and Estimation in Probabilistic Time-Series Models, pp. 107–115, 2008.
309
+
310
+ Aaron van den Oord and Benjamin Schrauwen. Factoring variations in natural images with deep gaussian mixture models. In Advances in Neural Information Processing Systems, pp. 3518– 3526, 2014.
311
+
312
+ Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016a.
313
+
314
+ Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray Kavukcuoglu. Conditional image generation with pixelcnn decoders. arXiv preprint arXiv:1606.05328, 2016b.
315
+
316
+ Weidi Xu and Haoze Sun. Semi-supervised variational autoencoders for sequence classification. arXiv preprint arXiv:1603.02514, 2016.
317
+
318
+ Alan Yuille and Daniel Kersten. Vision as bayesian inference: analysis by synthesis? Trends in cognitive sciences, 10(7):301–308, 2006.
319
+
320
+ Biao Zhang, Deyi Xiong, and Jinsong Su. Variational neural machine translation. arXiv preprint arXiv:1605.07869, 2016.
321
+
322
+ # APPENDIX
323
+
324
+ # A DETAILED EXPERIMENT SETUP FOR BINARY IMAGES
325
+
326
+ For VAE’s encoder and decoder, we use the same ResNet (He et al., 2015) VAE architecture as the one used in IAF MNIST experiment (Kingma et al., 2016). The only difference is that the decoder network now, instead of outputing a $2 8 x 2 8 \mathrm { x } 1$ spatial feature map to specify the mean of a factorized bernoulli distribution, outputs a $2 8 \mathbf { x } 2 8 \mathbf { x } 4$ spatial feature map that’s concatenated with the original binary image channel-wise, forming a $2 8 \mathrm { x } 2 8 \mathrm { x } 5$ feature map that’s then fed through a typical masked PixelCNN (van den Oord et al., 2016a). As such even though the PixelCNN conditions on the latent code, we don’t call it a Conditional PixelCNN because it doesn’t use the specific architecture that was proposed in van den Oord et al. (2016b). For the PixelCNN, it has 6 masked convolution layers with $1 2 3 \mathrm { x } 3 $ filters organized in ResNet blocks, and it has 4 additional 1x1 convolution ResNet block between every other masked convolution layer to increase processing capacity since it employs fewer masked convolutions than usual. All the masked convolution layer have their weights tied to reduce overfitting on statically binarized MNIST, and untying the weights will increase performance for other datasets. Experiments are tuned on the validation set and then final experiment was run with train and validation set, with performance evaluated with test set. Exponential Linear Units (Clevert et al., 2015) are used as activation functions in both VAE network and PixelCNN network. Weight normalization is everywhere with data-dependent initialization (Salimans & Kingma, 2016).
327
+
328
+ A latent code of dimension 64 was used. For AF prior, it’s implemented with MADE (Germain et al., 2015) as detailed in Kingma et al. (2016). We used 4 steps of autoregressive flow and each flow is implemented by a 3-layer MADE that has 640 hidden units and uses Relu (Nair & Hinton, 2010) as activation functions. Differing from the practice of Kingma et al. (2016), we use mean-only autoregressive flow, which we found to be more numerically stable.
329
+
330
+ In terms of training, Adamax (Kingma & Ba, 2014) was used with a learning rate of 0.002. 0.01 nats/data-dim free bits (Kingma et al., 2016) was found to be effective in dealing with the problem of all the latent code being ignored early in training. Polyak averaging (Polyak & Juditsky, 1992) was used to compute the final parameters, with $\alpha = 0 . 9 9 8$ .
331
+
332
+ All experiments are implemented using TensorFlow (Abadi et al., 2016).
333
+
334
+ # B ADDITIONAL EXPERIMENT SETUP FOR CIFAR10
335
+
336
+ Latent codes are represented by 16 feature maps of size 8x8, and this choice of spatial stochastic units are inspired by ResNet IAF VAE (Kingma et al., 2016). Prior distribution is factorized Gaussian noise transformed by 6 autoregressive flows, each of which is implemented by a PixelCNN (van den Oord et al., 2016a) with 2 hidden layers and 128 feature maps. Between every other autoregressive flow, the ordering of stochastic units is reversed.
337
+
338
+ ResNet VLAE has the following structure for encoder: 2 ResNet blocks, Conv w/ stride $^ { = 2 }$ , 2 ResNet blocks, Conv w/ stride $^ { = 2 }$ , 3 ResNet blocks, 1x1 convolution and has a symmetric decoder. Channel size $= 4 8$ for $3 2 \mathrm { x } 3 2 $ feature maps and 96 for other feature maps. DenseNet VLAE follows a similar structure: replacing 2 ResNet blocks with one DenseNet block of 3 steps and each step produces a certain number of feature maps such that at the end of a block, the concatenated feature maps is slightly more than the ResNet VLAE at the same stage.
339
+
340
+ Conditional $\mathrm { P i x e l C N N + + }$ (Salimans et al., 2017) is used as the decoder. Specifically the channelautoregressive variant is used to ensure there is sufficient capacity even when the receptive field is small. Specifically, the decoder PixelCNN has 4 blocks of 64 feature maps where each block is conditioned on previous blocks with Gated ResNet connections and hence the PixelCNN decoders we use are shallow but very wide. For $4 \mathbf { x } 2$ receptive field experiment, we use 1 layer of vertical stack convolutions and 2 layers of horizontal stack convolutions; for 5x3 receptive field experiment, we use 2 layers of vertical stack convolutions and 2 layers of horizontal stack convolutions; For 5x3 receptive field experiment, we use 2 layers of vertical stack convolutions and 2 layers of horizontal stack convolutions; For $7 \mathrm { x 4 }$ receptive field experiment, we use 3 layers of vertical stack convolutions and 3 layers of horizontal stack convolutions; for $7 \mathrm { x } 4$ Grayscale experiment, we transform RGB
341
+
342
+ images into gray-scale images via this specific transformation: $( 0 . 2 9 9 * R ) + ( 0 . 5 8 7 G ) + ( 0 . 1 1 4 B )$ .
343
+ Best density estimation result is obtained with $7 \mathrm { x } 4$ receptive field experiments.
344
+
345
+ # C SOFT FREE BITS
346
+
347
+ ”Free bits” was a technique proposed in (Kingma et al., 2016) where $K$ groups of stochastic units are encouraged to be used through the following surrogate objective:
348
+
349
+ $$
350
+ \widetilde { \mathcal { L } } _ { \lambda } = \mathbb { E } _ { \mathbf { x } \sim \mathcal { M } } \left[ \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } | \mathbf { z } ) \right] \right] - \sum _ { j = 1 } ^ { K } \operatorname* { m a x i m u m } ( \lambda , \mathbb { E } _ { \mathbf { x } \sim \mathcal { M } } \left[ D _ { K L } ( q ( \mathbf { z } _ { j } | \mathbf { x } ) | | p ( \mathbf { z } _ { j } ) ) \right] )
351
+ $$
352
+
353
+ This technique is easy to use since it’s usually easy to determine the minimum number of bits/nats, $\lambda$ , stochastic units need to encode. Choosing $\lambda$ is hence easier than setting a fixed KL annealing schedule (Serban et al., 2016).
354
+
355
+ On the other hand, Kl annealing has the benefit of the surrogate objective will smoothly become the true objective, the variational lower bound where as ”free bits” has a sharp transition at the boundary. Therefore, we propose to still use $\lambda$ as hyperparameter to specify at least $\lambda$ nats should be used but try to change the optimization objective as slowly as possible:
356
+
357
+ $$
358
+ \mathcal { L } _ { \mathrm { S o f t F r e e B i t s } } ( \mathbf { x } ; \theta ) = \mathbb { E } _ { q ( \mathbf { z } | \mathbf { x } ) } \left[ \log p ( \mathbf { x } | \mathbf { z } ) \right] - \gamma D _ { K L } ( q ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) )
359
+ $$
360
+
361
+ where $0 < \gamma \leq 1$
362
+
363
+ And we make the optimization smoother by changing $\gamma$ slowly online to make sure at least $\lambda$ nats are used: when Kl is too much higher than $\lambda$ (we experimented wide range of thresholds from $3 \%$ to $3 0 \%$ , all of which yield improved results, and we tend to use $5 \%$ us a threshold), $\gamma$ is increased, and when Kl lower than $\lambda$ , $\gamma$ is decreased to encourage information flow.
364
+
365
+ We found it sufficient to increase/decrease at $1 0 \%$ increment and didn’t further tune this parameter.
366
+
367
+ # D AUTOREGRESSIVE DECODER WITHOUT AUTOREGRESSIVE PRIOR
368
+
369
+ In this section, we investigate the scenario of just using an autoregressive decoder without using an autoregressive prior. We compare the exact same model in three configurations: 1) using smallreceptive-field PixelCNN as an unconditional density estimator; 2) using small-receptive-field as a decoder in a VAE with Gaussian latent variables; 3) replacing Gaussian latent variables with autoregressive flow latent variables in 2).
370
+
371
+ Table 1: Ablation on Dynamically binarized MNIST
372
+
373
+ <table><tr><td>Model</td><td>NLL Test</td><td>KL</td></tr><tr><td>Unconditional PixelCNN</td><td>87.55</td><td>0</td></tr><tr><td>PixelCNNDecoder+Gaussian Prior</td><td>79.48</td><td>10.60</td></tr><tr><td>PixelCNN Decoder+ AF Prior</td><td>78.94</td><td>11.73</td></tr></table>
374
+
375
+ In Table 1, we can observe that each step of modification improves density estimation performance. In addition, using an autoregressive latent code makes the latent code transmit more information as shown in the difference of $\mathbb { E } [ D _ { K L } ( q ( { \mathbf { z } } | { \mathbf { x } } ) | | p ( { \mathbf { z } } ) ) ]$ .
376
+
377
+ # E CIFAR10 GENERATED SAMPLES
378
+
379
+ # REFERENCES
380
+
381
+ Martın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
382
+
383
+ ![](images/f291dbad13edec3ff9c63635bcb14588a89abd0d94e339a44b41b6c41a847df8.jpg)
384
+ Figure 4: CIFAR10: Generated samples for different models
385
+
386
+ Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by Exponential Linear Units (ELUs). arXiv preprint arXiv:1511.07289, 2015.
387
+
388
+ Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. arXiv preprint arXiv:1502.03509, 2015.
389
+
390
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015.
391
+
392
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
393
+
394
+ Diederik P Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. arXiv preprint arXiv:1606.04934, 2016.
395
+
396
+ Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010.
397
+
398
+ Boris T Polyak and Anatoli B Juditsky. Acceleration of stochastic approximation by averaging. SIAM Journal on Control and Optimization, 30(4):838–855, 1992.
399
+
400
+ Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. arXiv preprint arXiv:1602.07868, 2016.
401
+
402
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017.
403
+
404
+ Iulian Vlad Serban, Alessandro Sordoni, Ryan Lowe, Laurent Charlin, Joelle Pineau, Aaron Courville, and Yoshua Bengio. A hierarchical latent variable encoder-decoder model for generating dialogues. arXiv preprint arXiv:1605.06069, 2016.
405
+
406
+ Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016a.
407
+
408
+ Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray Kavukcuoglu. Conditional image generation with pixelcnn decoders. arXiv preprint arXiv:1606.05328, 2016b.
parse/train/BysvGP5ee/BysvGP5ee_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BysvGP5ee/BysvGP5ee_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BysvGP5ee/BysvGP5ee_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxTwkrKDB/HkxTwkrKDB.md ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ON UNIVERSAL EQUIVARIANT SET NETWORKS
2
+
3
+ Nimrod Segol & Yaron Lipman
4
+ Department of Computer Science and Applied Mathematics
5
+ Weizmann Institute of Science
6
+ Rehovot, Israel
7
+ {nimrod.segol,yaron.lipman}@weizmann.ac.il
8
+
9
+ # ABSTRACT
10
+
11
+ Using deep neural networks that are either invariant or equivariant to permutations in order to learn functions on unordered sets has become prevalent. The most popular, basic models are DeepSets (Zaheer et al., 2017) and PointNet (Qi et al., 2017). While known to be universal for approximating invariant functions, DeepSets and PointNet are not known to be universal when approximating equivariant set functions. On the other hand, several recent equivariant set architectures have been proven equivariant universal (Sannai et al., 2019; Keriven & Peyre, 2019), however ´ these models either use layers that are not permutation equivariant (in the standard sense) and/or use higher order tensor variables which are less practical. There is, therefore, a gap in understanding the universality of popular equivariant set models versus theoretical ones.
12
+
13
+ In this paper we close this gap by proving that: (i) PointNet is not equivariant universal; and (ii) adding a single linear transmission layer makes PointNet universal. We call this architecture PointNetST and argue it is the simplest permutation equivariant universal model known to date. Another consequence is that DeepSets is universal, and also PointNetSeg, a popular point cloud segmentation network (used e.g., in (Qi et al., 2017)) is universal.
14
+
15
+ The key theoretical tool used to prove the above results is an explicit characterization of all permutation equivariant polynomial layers. Lastly, we provide numerical experiments validating the theoretical results and comparing different permutation equivariant models.
16
+
17
+ # 1 INTRODUCTION
18
+
19
+ Many interesting tasks in machine learning can be described by functions $\pmb { F }$ that take as input a set, $\textbf { \textit { X } } = \mathbf { \beta } ( \pmb { x } _ { 1 } , \dots , \pmb { x } _ { n } )$ , and output some per-element features or values, $F ( X ) \ =$ $\bar { ( } F ( X ) _ { 1 } , \ldots , F ( X ) _ { n } )$ . Permutation equivariance is the property required of $\pmb { F }$ so it is welldefined. Namely, it assures that reshuffling the elements in $\boldsymbol { X }$ and applying $\pmb { F }$ results in the same output, reshuffled in the same manner. For example, if $\tilde { \textbf { \textit { X } } } = \mathbf { \Gamma } ( { \bf x } _ { 2 } , { \bf x } _ { 1 } , { \bf x } _ { 3 } , \ldots , { \bf x } _ { n } )$ then $\pmb { F } ( \tilde { \pmb { X } } ) = ( \pmb { F } ( \pmb { X } ) _ { 2 } , \pmb { F } ( \pmb { X } ) _ { 1 } , \pmb { F } ( \pmb { X } ) _ { 3 } , \dots , \pmb { F } ( \pmb { X } ) _ { n } ) .$ .
20
+
21
+ Building neural networks that are permutation equivariant by construction proved extremely useful in practice. Arguably the most popular models are DeepSets Zaheer et al. (2017) and PointNet Qi et al. (2017). These models enjoy small number of parameters, low memory footprint and computational efficiency along with high empirical expressiveness. Although both DeepSets and PointNet are known to be invariant universal (i.e., can approximate arbitrary invariant continuous functions) they are not known to be equivariant universal (i.e., can approximate arbitrary equivariant continuous functions).
22
+
23
+ On the other hand, several researchers have suggested theoretical permutation equivariant models and proved they are equivariant universal. Sannai et al. (2019) builds a universal equivariant network by taking $n$ copies of $( n - 1 )$ -invariant networks and combines them with a layer that is not permutation invariant in the standard (above mentioned) sense. Keriven & Peyre (2019) solves a more general ´ problem of building networks that are equivariant universal over arbitrary high order input tensors $\mathbb { R } ^ { n ^ { d } }$ (including graphs); their construction, however, uses higher order tensors as hidden variables which is of less practical value. Yarotsky (2018) proves that neural networks constructed using a finite set of invariant and equivariant polynomial layers are also equivariant universal, however his network is not explicit (i.e., the polynomials are not characterized for the equivariant case) and also of less practical interest due to the high degree polynomial layers.
24
+
25
+ In this paper we close the gap between the practical and theoretical permutation equivariant constructions and prove:
26
+
27
+ # Theorem 1.
28
+
29
+ (i) PointNet is not equivariant universal.
30
+ (ii) Adding a single linear transmission layer (i.e., $X \mapsto \mathbf { 1 1 } ^ { T } X ,$ ) to PointNet makes it equivariant universal.
31
+ (iii) Using ReLU activation the minimal width required for universal permutation equivariant network satisfies $\begin{array} { r } { \omega \le k _ { o u t } + k _ { i n } + \binom { n + k _ { i n } } { k _ { i n } } } \end{array}$ .
32
+
33
+ This theorem suggests that, arguably, PointNet with an addition of a single linear layer is the simplest universal equivariant network, able to learn arbitrary continuous equivariant functions of sets. An immediate corollary of this theorem is
34
+
35
+ Corollary 1. DeepSets and PointNetSeg are universal.
36
+
37
+ PointNetSeg is a network used often for point cloud segmentation (e.g., in Qi et al. (2017)). One of the benefit of our result is that it provides a simple characterization of universal equivariant architectures that can be used in the network design process to guarantee universality.
38
+
39
+ The theoretical tool used for the proof of Theorem 1 is an explicit characterization of the permutation equivariant polynomials over sets of vectors in $\mathbb { R } ^ { k }$ using power-sum multi-symmetric polynomials. We prove:
40
+
41
+ Theorem 2. Let $P : \mathbb { R } ^ { n \times k } \mathbb { R } ^ { n \times l }$ be a permutation equivariant polynomial map. Then,
42
+
43
+ $$
44
+ P ( X ) = \sum _ { | \alpha | \leq n } b _ { \alpha } q _ { \alpha } ^ { T } ,
45
+ $$
46
+
47
+ where $\pmb { b } _ { \alpha } = ( \pmb { x } _ { 1 } ^ { \alpha } , \dots , \pmb { x } _ { n } ^ { \alpha } ) ^ { T }$ , $\pmb { q } _ { \alpha } = ( q _ { \alpha , 1 } , \dots , q _ { \alpha , l } ) ^ { T }$ , where $q _ { \alpha , j } = q _ { \alpha , j } ( s _ { 1 } , \ldots , s _ { t } )$ , $t = \binom { n + k } { k }$ , are polynomials; $\begin{array} { r } { s _ { j } ( \pmb { X } ) = \sum _ { i = 1 } ^ { n } \pmb { x } _ { i } ^ { \alpha _ { j } } } \end{array}$ k are the power-sum multi-symmetric polynomials. On the other hand every polynomial map $_ { P }$ satisfying Equation is equivariant.
48
+
49
+ This theorem, which extends Proposition 2.27 in Golubitsky & Stewart (2002) to sets of vectors using multivariate polynomials, lends itself to expressing arbitrary equivariant polynomials as a composition of entry-wise continuous functions and a single linear transmission, which in turn facilitates the proof of Theorem 1.
50
+
51
+ We conclude the paper by numerical experiments validating the theoretical results and testing several permutation equivariant networks for the tasks of set classification and regression.
52
+
53
+ # 2 PRELIMINARIES
54
+
55
+ Equivariant maps. Vectors $\pmb { x } \in \mathbb { R } ^ { k }$ are by default column vectors; $\mathbf { 0 } , \mathbf { 1 }$ are the all zero and all one vectors/tensors; $e _ { i }$ is the $i$ -th standard basis vector; $\pmb { I }$ is the identity matrix; all dimensions are inferred from context or mentioned explicitly. We represent a set of $n$ vectors in $\mathbb { R } ^ { k }$ as a matrix $\ b { X } \in \mathbb { R } ^ { n \times k }$ and denote $\pmb { X } = ( \pmb { x } _ { 1 } , \pmb { x } _ { 2 } , \dots , \pmb { x } _ { n } ) ^ { T }$ , where $\mathbf { { \boldsymbol { x } } } _ { i } \in \mathbb { R } ^ { k }$ , $i \in [ n ]$ , are the columns of $\boldsymbol { X }$ . We denote by $S _ { n }$ the permutation group of $[ n ]$ ; its action on $\boldsymbol { X }$ is defined by $\boldsymbol { \sigma } \cdot \pmb { X } = ( \pmb { x } _ { \sigma ^ { - 1 } ( 1 ) } , \pmb { x } _ { \sigma ^ { - 1 } ( 2 ) } , \dots , \pmb { x } _ { \sigma ^ { - 1 } ( n ) } ) ^ { T }$ $\sigma \in S _ { n }$ . That is, $\sigma$ is reshuffling the rows of $\boldsymbol { X }$ . The natural class of maps assigning a value or feature vector to every element in an input set is permutation equivariant maps:
56
+
57
+ Definition 1. A map $F : \mathbb { R } ^ { n \times k } \mathbb { R } ^ { n \times l }$ satisfying $\pmb { F } ( \sigma \cdot \pmb { X } ) = \sigma \cdot \pmb { F } ( \pmb { X } )$ for all $\sigma \in S _ { n }$ and $\ b { X } \in \mathbb { R } ^ { n \times d }$ is called permutation equivariant.
58
+
59
+ Power-sum multi-symmetric polynomials. Given a vector $z = ( z _ { 1 } , \ldots , z _ { n } ) \in \mathbb { R } ^ { n }$ the powersum symmetric polynomials $\begin{array} { r } { s _ { j } ( z ) = \sum _ { i = 1 } ^ { n } z _ { i } ^ { j } } \end{array}$ , with $j \in [ n ]$ , uniquely characterize $_ { z }$ up to permuting its entries. In other words, for $z , y \in \mathbb { R } ^ { n }$ we have $\pmb { y } = \sigma \cdot \pmb { z }$ for some $\sigma \in S _ { n }$ if and only if $s _ { j } ( \pmb { y } ) =$ $s _ { j } ( z )$ for all $j \in [ n ]$ . An equivalent property is that every $S _ { n }$ invariant polynomial $p$ can be expressed as a polynomial in the power-sum symmetric polynomials, i.e., $p ( z ) = q ( s _ { 1 } ( z ) , \ldots , s _ { n } ( z ) )$ , see Rydh (2007) Corollary 8.4, Briand (2004) Theorem 3. This fact was previously used in Zaheer et al. (2017) to prove that DeepSets is universal for invariant functions. We extend this result to equivariant functions and the multi-feature (sets of vectors) case.
60
+
61
+ For a vector $\pmb { x } \in \mathbb { R } ^ { k }$ and a multi-index vector $\alpha = ( \alpha _ { 1 } , \ldots , \alpha _ { k } ) \in \mathbb { N } ^ { k }$ we define $\pmb { x } ^ { \alpha } = x _ { 1 } ^ { \alpha _ { 1 } } \cdot \cdot \cdot x _ { k } ^ { \alpha _ { k } }$ and $\begin{array} { r } { | \alpha | = \sum _ { i \in [ k ] } \alpha _ { i } } \end{array}$ . A generalization of the power-sum symmetric polynomials to matrices exists and is called power-sum multi-symmetric polynomials, defined with a bit of notation abuse: $\begin{array} { r } { s _ { \alpha } ( { \pmb X } ) = \sum _ { i = 1 } ^ { n } { \pmb x } _ { i } ^ { \alpha } } \end{array}$ , where $\alpha \in \mathbb { N } ^ { k }$ is a multi-index satisfying $| { \boldsymbol { \alpha } } | \leq n$ . Note that the number of power-sum multi-symmetric polynomials acting on $\ b { X } \in \mathbb { R } ^ { n \times k }$ is $t = \binom { n + k } { k }$ . For notation simplicity let $\alpha _ { 1 } , \ldots , \alpha _ { t }$ be a list of all $\alpha \in \mathbb { N } ^ { k }$ with $| \alpha | \le n$ . Then we index the collection of power-sum multi-symmetric polynomials as $s _ { 1 } , \ldots , s _ { t }$ .
62
+
63
+ Similarly to the vector case the numbers $s _ { j } ( X )$ , $j \in [ t ]$ characterize $\boldsymbol { X }$ up to permutation of its rows. That is $Y = \sigma \cdot X$ for some $\sigma \in S _ { n }$ iff $s _ { j } ( \dot { Y } ) = s _ { j } ( Y )$ for all $j \in [ t ]$ . Furthermore, every $S _ { n }$ invariant polynomial $p : \mathbb { R } ^ { n \times k } \mathbb { R }$ can be expressed as a polynomial in the power-sum multi-symmetric polynomials (see (Rydh, 2007) corollary 8.4), i.e.,
64
+
65
+ $$
66
+ p ( { \pmb X } ) = q ( s _ { 1 } ( { \pmb X } ) , \ldots , s _ { t } ( { \pmb X } ) ) ,
67
+ $$
68
+
69
+ These polynomials were recently used to encode multi-sets in Maron et al. (2019).
70
+
71
+ # 3 EQUIVARIANT MULTI-SYMMETRIC POLYNOMIAL LAYERS
72
+
73
+ In this section we develop the main theoretical tool of this paper, namely, a characterization of all permutation equivariant polynomial layers. As far as we know, these layers were not fully characterized before.
74
+
75
+ Theorem 2 provides an explicit representation of arbitrary permutation equivariant polynomial maps $P : \mathbb { R } ^ { n \times k ^ { \ast } } \mathbb { R } ^ { n \times l }$ using the basis of power-sum multi-symmetric polynomials, $s _ { i } ( X )$ . The particular use of power-sum polynomials $s _ { i } ( X )$ has the advantage it can be encoded efficiently using a neural network: as we will show $s _ { i } ( X )$ can be approximated using a PointNet with a single linear transmission layer. This allows approximating an arbitrary equivariant polynomial map using PointNet with a single linear transmission layer.
76
+
77
+ A version of this theorem for vectors instead of matrices (i.e., the case of $k = 1$ ) appears as Proposition 2.27 in Golubitsky & Stewart (2002); we extend their proof to matrices, which is the relevant scenario for ML applications as it allows working with sets of vectors. For $k = 1$ Theorem 2 reduces to the following form: $\begin{array} { r } { \pmb { p } ( \pmb { x } ) _ { i } = \sum _ { a \leq n } p _ { a } \big ( s _ { 1 } ( \pmb { x } ) , \ldots , s _ { n } ( \pmb { x } ) \big ) x _ { i } ^ { a } } \end{array}$ with $\begin{array} { r } { s _ { j } ( \pmb { x } ) = \sum _ { i } x _ { i } ^ { j } } \end{array}$ . For matrices the monomial $x _ { i } ^ { k }$ is replaced by $\mathbf { \mathscr { x } } _ { i } ^ { \alpha }$ for a multi-index $\alpha$ and the power-sum symmetric polynomials are replaced by the power-sum multi-symmetric polynomials.
78
+
79
+ First, note that it is enough to prove Theorem 1 for $l = 1$ and apply it to every column of $_ { r }$ . Hence, we deal with a vector of polynomials $p : \mathbb { R } ^ { n \times k } \mathbb { R } ^ { n }$ and need to prove it can be expressed as $\begin{array} { r } { p = \sum _ { | \alpha | \leq n } { b _ { \alpha } q _ { \alpha } } } \end{array}$ , for $S _ { n }$ invariant polynomial $q _ { \alpha }$ .
80
+
81
+ Given a polynomial $p ( X )$ and the cyclic permutation $\sigma ^ { - 1 } = ( 1 2 3 \cdot \cdot \cdot n )$ the following operation, taking a polynomial to a vector of polynomials, is useful in characterizing equivariant polynomial maps:
82
+
83
+ $$
84
+ \lceil p \rceil ( \boldsymbol { X } ) = \left( \begin{array} { c } { p ( \boldsymbol { X } ) } \\ { p ( \sigma \cdot \boldsymbol { X } ) } \\ { p ( \sigma ^ { 2 } \cdot \boldsymbol { X } ) } \\ { \vdots } \\ { p ( \sigma ^ { n - 1 } \cdot \boldsymbol { X } ) } \end{array} \right)
85
+ $$
86
+
87
+ Theorem 2 will be proved using the following two lemmas:
88
+
89
+ Lemma 1. Let $p : \mathbb { R } ^ { n \times k } \mathbb { R } ^ { n }$ be an equivariant polynomial map. Then, there exists a polynomial $p : \mathbb { R } ^ { n \times k } \mathbb { R } ,$ , invariant to $S _ { n - 1 }$ (permuting the last $n - 1$ rows of $\boldsymbol { X }$ ) so that $p = \lceil p \rceil$ .
90
+
91
+ Proof. Equivariance of $\pmb { p }$ means that for all $\sigma \in S _ { n }$ it holds that ${ \boldsymbol { \sigma } } \cdot { \boldsymbol { p } } ( { \boldsymbol { X } } ) = { \boldsymbol { p } } ( { \boldsymbol { \sigma } } \cdot { \boldsymbol { X } } )$
92
+
93
+ $$
94
+ \sigma \cdot p ( X ) = p ( \sigma \cdot X ) .
95
+ $$
96
+
97
+ Choosing an arbitrary permutation $\sigma \in \operatorname { s t a b } ( 1 ) < S _ { n }$ , namely a permutation satisfying $\sigma ( 1 ) = 1$ , and observing the first row in Equation 4 we get $p _ { 1 } ( { \pmb X } ) = p _ { 1 } ( { \sigma } \cdot { \pmb X } ) = p _ { 1 } ( { \pmb x } _ { 1 } , { \pmb x } _ { \sigma ^ { - 1 } ( 2 ) } , \dots , { \pmb x } _ { \sigma ^ { - 1 } ( n ) } )$ . Since this is true for all $\sigma \in \mathrm { s t a b } ( 1 ) p _ { 1 }$ is $S _ { n - 1 }$ invariant. Next, applying $\sigma = ( 1 i )$ to Equation 4 and observing the first row again we get $p _ { i } ( { \cal X } ) = p _ { 1 } ( \pmb { x } _ { i } , . . . , \pmb { x } _ { 1 } , . . . )$ . Using the invariance of $p _ { 1 }$ to $S _ { n - 1 }$ we get $\bar { \boldsymbol { p } } = \lceil p _ { 1 } \rceil$ . □
98
+
99
+ Lemma 2. Let $p : \mathbb { R } ^ { n \times k } \mathbb { R }$ be a polynomial invariant to $S _ { n - 1 }$ (permuting the last $n - 1$ rows of $X$ ) then
100
+
101
+ $$
102
+ p ( { \pmb X } ) = \sum _ { | \alpha | \leq n } { \pmb x } _ { 1 } ^ { \alpha } q _ { \alpha } ( { \pmb X } ) ,
103
+ $$
104
+
105
+ where $q _ { \alpha }$ are $S _ { n }$ invariant.
106
+
107
+ Proof. Expanding $p$ with respect to $\scriptstyle { \mathbf { \mathscr { x } } } _ { 1 }$ we get
108
+
109
+ $$
110
+ p ( \pmb { X } ) = \sum _ { | \alpha | \leq m } \pmb { x } _ { 1 } ^ { \alpha } p _ { \alpha } ( \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } ) ,
111
+ $$
112
+
113
+ for some $\textit { m } \in { \mathbb { N } }$ . We first claim $p _ { \alpha }$ are $S _ { n - 1 }$ invariant. Indeed, note that if $p ( \boldsymbol { X } ) \ =$ $p ( \pmb { x } _ { 1 } , \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } )$ is $S _ { n - 1 }$ invariant, i.e., invariant to permutations of $\pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n }$ , then also its derivative s ∂|β|∂xβ p(X) are Sn−1 permutation invariant, for all β ∈ Nk. Taking the derivative ∂|β|/∂xβ1 on both sides of Equation 6 we get that $p _ { \beta }$ is $S _ { n - 1 }$ equivariant.
114
+
115
+ For brevity denote $p = p _ { \alpha }$ . Since $p$ is $S _ { n - 1 }$ invariant it can be expressed as a polynomial in the powersum multi-symmetric polynomials, i.e., $p ( \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } ) = r ( s _ { 1 } ( \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } ) , \ldots , s _ { t } ( \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } ) )$ . Note that $s _ { i } ( { \pmb x } _ { 2 } , \ldots , { \pmb x } _ { n } ) = s _ { i } ( { \pmb X } ) - { \pmb x } _ { 1 } ^ { \alpha _ { i } }$ and therefore
116
+
117
+ $$
118
+ p ( \pmb { x } _ { 2 } , \ldots , \pmb { x } _ { n } ) = r ( s _ { 1 } ( \pmb { X } ) - \pmb { x } _ { 1 } ^ { \alpha _ { 1 } } , \ldots , s _ { t } ( \pmb { X } ) - \pmb { x } _ { 1 } ^ { \alpha _ { t } } ) .
119
+ $$
120
+
121
+ Since $r$ is a polynomial, expanding its monomials in $s _ { i } ( X )$ and $\pmb { x } _ { 1 } ^ { \alpha }$ shows $p$ can be expressed as $\begin{array} { r } { p = \sum _ { | \alpha | \leq m ^ { \prime } } \bar { \pmb { x } } _ { 1 } ^ { \alpha } \tilde { p } _ { \alpha } } \end{array}$ , where $m ^ { \prime } \in \mathbb { N }$ , and $\tilde { p } _ { \alpha }$ are $S _ { n }$ invariant (as multiplication of invariant $S _ { n }$ polynomials $s _ { i } ( X ) \rangle$ . Plugging this in Equation 6 we get Equation 5, possibly with the sum over some $n ^ { \prime } > n$ . It remains to show $n ^ { \prime }$ can be taken to be at-most $n$ . This is proved in Corollary 5 in Briand (2004) □
122
+
123
+ Proof. (Theorem 2) Given an equivariant $\pmb { p }$ as above, use Lemma 1 to write $p = \lceil p \rceil$ where $p ( X )$ is invariant to permuting the last $n - 1$ rows of $\boldsymbol { X }$ . Use Lemma 2 to write $\begin{array} { r } { p ( \pmb { X } ) = \sum _ { | \alpha | \leq n } \pmb { x } _ { 1 } ^ { \alpha } q _ { \alpha } ( \pmb { X } ) } \end{array}$ , where $q _ { \alpha }$ are $S _ { n }$ invariant. We get,
124
+
125
+ $$
126
+ p = \lceil p \rceil = \sum _ { | \alpha | \leq n } b _ { \alpha } q _ { \alpha } .
127
+ $$
128
+
129
+ The converse direction is immediate after noting that $b _ { \alpha }$ are equivariant and $q _ { \alpha }$ are invariant.
130
+
131
+ # 4 UNIVERSALITY OF SET EQUIVARIANT NEURAL NETWORKS
132
+
133
+ We consider equivariant deep neural networks $f : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times k _ { o u t } } ,$ ,
134
+
135
+ $$
136
+ { \pmb F } ( { \pmb X } ) = { \pmb L } _ { m } \circ \nu \circ \cdots \circ \nu \circ { \pmb L } _ { 1 } ( { \pmb X } ) ,
137
+ $$
138
+
139
+ where $L _ { i } : \mathbb { R } ^ { n \times k _ { i } } \mathbb { R } ^ { n \times k _ { i + 1 } }$ are affine equivariant transformations, and $\nu$ is an entry-wise nonlinearity (e.g., ReLU). We define the width of the network to be $\omega = \mathrm { m a x } _ { i } k _ { i }$ ; note that this definition is different from the one used for standard MLP where the width would be $n \omega$ , see e.g., Hanin & Sellke (2017). Zaheer et al. (2017) proved that affine equivariant $\mathbf { { L } } _ { i }$ are of the form
140
+
141
+ $$
142
+ L _ { i } ( X ) = X A + \frac { 1 } { n } \mathbf { 1 1 } ^ { T } X B + \mathbf { 1 } c ^ { T } ,
143
+ $$
144
+
145
+ where $A , B \in \mathbb { R } ^ { k _ { i } \times k _ { i + 1 } }$ , and $\boldsymbol { c } \in \mathbb { R } ^ { k _ { i + 1 } }$ are the layer’s trainable parameters; we call the linear transformation $\textstyle X \mapsto { \frac { 1 } { n } } \mathbf { 1 } \mathbf { 1 } ^ { T } X B$ a linear transmission layer.
146
+
147
+ We now define the equivariant models considered in this paper: The DeepSets (Zaheer et al., 2017) architecture is Equation 7 with the choice of layers as in Equation 8. Taking $B = 0$ in all layers is the PointNet architecture (Qi et al., 2017). PointNetST is an equivariant model of the form Equation 7 with layers as in Equation 8 where only a single layer $\mathbf { { { L } } } _ { i }$ has a non-zero $\textbf { { B } }$ . The PointNetSeg (Qi et al., 2017) architecture is PointNet composed with an invariant max layer, namely $\begin{array} { r } { \operatorname* { m a x } ( \boldsymbol { F } ( \boldsymbol { X } ) ) _ { j } = \operatorname* { m a x } _ { i \in [ n ] } \boldsymbol { F } ( \boldsymbol { X } ) _ { i , j } } \end{array}$ and then concatenating it with the input $\boldsymbol { X }$ , i.e., $[ X , \mathbf { 1 } \mathbf { m a x } ( F ( X ) ) ]$ , and feeding is as input to another PointNet $G$ , that is $G ( [ X , \mathbf { 1 } \operatorname* { m a x } ( F ( X ) ) ] )$ .
148
+
149
+ We will prove PointNetST is permutation equivariant universal and therefore arguably the simplest permutation equivariant universal model known to date.
150
+
151
+ Universality of equivariant deep networks is defined next.
152
+
153
+ Definition 2. Permutation equivariant universality1 of a model $F : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times k _ { o u t } }$ means that for every permutation equivariant continuous function $H : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times k _ { o u t } }$ defined over the cube $\overset { \cdot } { K } \overset { \cdot } { = } [ 0 , 1 ] ^ { n \times k _ { i n } } \subset \overset { \cdot } { \mathbb { R } } ^ { n \times k _ { i n } }$ , and $\epsilon > 0$ there exists a choice of m (i.e., network depth), $k _ { i }$ (i.e., network width) and the trainable parameters of $\pmb { F }$ so that $\| H ( X ) - F ( X ) \| _ { \infty } < \epsilon$ for all $X \in K$ .
154
+
155
+ Proof. (Theorem $^ { l }$ ) Fact $( i )$ , namely that PointNet is not equivariant universal is a consequence of the following simple lemma:
156
+
157
+ Lemma 3. Let $\pmb { h } = ( h _ { 1 } , \ldots , h _ { n } ) ^ { T } : \mathbb { R } ^ { n } \mathbb { R } ^ { n }$ be the equivariant linear function defined by $h ( \pmb { x } ) = \mathbf { 1 } \mathbf { 1 } ^ { T } \pmb { x }$ . There is no $f : \mathbb { R } \to \mathbb { R }$ so that $\begin{array} { r } { | h _ { i } ( { \pmb x } ) - f ( x _ { i } ) | < \frac { 1 } { 2 } } \end{array}$ for all $i \in [ n ]$ and $\pmb { x } \in [ 0 , 1 ] ^ { n }$ .
158
+
159
+ Proof. Assume such $f$ exists. Let $\pmb { e } _ { 1 } = ( 1 , 0 , \ldots , 0 ) ^ { T } \in \mathbb { R } ^ { n }$ . Then,
160
+
161
+ $$
162
+ 1 = | h _ { 2 } ( e _ { 1 } ) - h _ { 2 } ( { \bf 0 } ) | \leq | h _ { 2 } ( e _ { 1 } ) - f ( 0 ) | + | f ( 0 ) - h _ { 2 } ( { \bf 0 } ) | < 1
163
+ $$
164
+
165
+ reaching a contradiction.
166
+
167
+ To prove $( i i )$ we first reduce the problem from the class of all continuous equivariant functions to the class of equivariant polynomials. This is justified by the following lemma.
168
+
169
+ Lemma 4. Equivariant polynomials $P : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times k _ { o u t } }$ are dense in the space of continuous equivariant functions $F : \dot { \mathbb { R } ^ { n \times k _ { i n } } } \mathbb { R } ^ { n \times k _ { o u t } }$ over the cube $K$ .
170
+
171
+ Proof. Take an arbitrary $\epsilon > 0$ . Consider the function $f _ { i j } : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R }$ , which denotes the $( i , j )$ -th output entry of $\pmb { F }$ . By the Stone-Weierstrass Theorem there exists a polynomial $p _ { i j } : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R }$ such that $\left\| f _ { i j } ( X ) - p _ { i j } ( X ) \right\| _ { \infty } \leq \epsilon$ for all $X \in K$ . Consider the polynomial map $P : \mathbb { R } ^ { n \times k _ { i n } } $ $\mathbb { R } ^ { n \times k _ { o u t } }$ defined by $( P ) _ { i j } = p _ { i j }$ . $_ { P }$ is in general not equivariant. To finish the proof we will symmetrize $_ { r }$ :
172
+
173
+ $$
174
+ \begin{array} { r l } { \bigg | F ( \pmb X ) - \displaystyle \frac { 1 } { n ! } \sum _ { \sigma \in S _ { n } } \sigma \cdot \pmb P ( \sigma ^ { - 1 } \cdot \pmb X ) \bigg | \Bigg | _ { \infty } = \bigg | \bigg | \frac { 1 } { n ! } \displaystyle \sum _ { \sigma \in S _ { n } } \sigma \cdot \pmb F ( \sigma ^ { - 1 } \cdot \pmb X ) - \frac { 1 } { n ! } \displaystyle \sum _ { \sigma \in S _ { n } } \sigma \cdot \pmb P ( \sigma ^ { - 1 } \cdot \pmb X ) \bigg | \bigg | _ { \infty } } & { } \\ { = \bigg | \bigg | \frac { 1 } { n ! } \displaystyle \sum _ { \sigma \in S _ { n } } \sigma \cdot \big ( F ( \sigma ^ { - 1 } \cdot \pmb X ) - \pmb P ( \sigma ^ { - 1 } \cdot \pmb X ) \big ) \bigg | \bigg | _ { \infty } } & { } \\ { \leq \frac { 1 } { n ! } \displaystyle \sum _ { \sigma \in S _ { n } } \epsilon = \epsilon , } \end{array}
175
+ $$
176
+
177
+ where in the first equality we used the fact that $\pmb { F }$ is equivariant. This concludes the proof since $\begin{array} { r l } { \sum _ { \sigma \in S _ { n } } \sigma \cdot P ( \sigma ^ { - 1 } \cdot \overline { { X } } ) } & { { } } \end{array}$ is an equivariant polynomial map. □
178
+
179
+ Now, according to Theorem 2 an arbitrary equivariant polynomial $P : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times k _ { o u t } }$ can be written as $\begin{array} { r } { P \ = \ \sum _ { | \alpha | \leq n } { b } _ { \alpha } ( X ) \dot { q _ { \alpha } } ( \dot { X } ) ^ { T } } \end{array}$ , where $\bar { b _ { \alpha } } ( \mathbf { X } ) \ = \ \left\lceil \mathbf { x } _ { 1 } ^ { \alpha } \right\rceil \ \in \ \mathbb { R } ^ { n }$ and $\begin{array} { r l } { q _ { \alpha } } & { { } = } \end{array}$ $( q _ { \alpha , 1 } , \dots , q _ { \alpha , k _ { o u t } } ) \in \mathbb { R } ^ { k _ { o u t } }$ are invariant polynomials. Remember that every $S _ { n }$ invariant polynomial can be expressed as a polynomial in the $t = \binom { n + k _ { i n } } { k _ { i n } }$ power-sum multi-symmetric polynomials $\begin{array} { r } { s _ { j } ( { \pmb X } ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } { \pmb x } _ { i } ^ { \alpha _ { j } } , j \in [ t ] } \end{array}$ (we use the $1 / n$ normalized version for a bit more simplicity later on). We can therefore write $_ { r }$ as composition of three maps:
180
+
181
+ $$
182
+ P = Q \circ L \circ B ,
183
+ $$
184
+
185
+ where $\pmb { B } : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times t }$ is defined by
186
+
187
+ $$
188
+ B ( X ) = ( b ( x _ { 1 } ) , \dots , b ( x _ { n } ) ) ^ { T } ,
189
+ $$
190
+
191
+ ${ \pmb b } ( { \pmb x } ) = ( { \pmb x } ^ { \alpha _ { 1 } } , \ldots , { \pmb x } ^ { \alpha _ { t } } ) ; L$ is defined as in Equation 8 with $\boldsymbol { B } = [ \mathbf { 0 } , I ]$ and $\pmb { A } = [ e _ { 1 } , \ldots , e _ { k _ { i n } } , \pmb { 0 } ]$ , where $\ b { I } \in \mathbb { R } ^ { t \times t }$ the identity matrix and $\boldsymbol { e } _ { i } \in \mathbb { R } ^ { t }$ represents the standard basis (as-usual). We assume $\boldsymbol { \alpha } _ { j } = \boldsymbol { e } _ { j } \in \mathbb { R } ^ { k _ { i n } }$ , for $j \in [ \bar { k } _ { i n } ]$ . Note that the output of $\pmb { L }$ is of the form
192
+
193
+ $$
194
+ \pmb { L } ( \pmb { B } ( \pmb { X } ) ) = ( \pmb { X } , \pmb { 1 } s _ { 1 } ( \pmb { X } ) , \pmb { 1 } s _ { 2 } ( \pmb { X } ) , \dots , \pmb { 1 } s _ { t } ( \pmb { X } ) ) .
195
+ $$
196
+
197
+ Finally, $Q : \mathbb { R } ^ { n \times ( k _ { i n } + t ) } \mathbb { R } ^ { n \times k _ { o u t } }$ is defined by
198
+
199
+ $$
200
+ Q ( X , \mathbf { 1 } s _ { 1 } , \ldots , \mathbf { 1 } s _ { t } ) = ( q ( x _ { 1 } , s _ { 1 } , \ldots , s _ { t } ) , \ldots , q ( x _ { n } , s _ { 1 } , \ldots , s _ { t } ) ) ^ { T } ,
201
+ $$
202
+
203
+ The decomposition in Equation 9 of $_ { r }$ suggests that replacing $Q , B$ with Multi-Layer Perceptrons (MLPs) would lead to a universal permutation equivariant network consisting of PointNet with a single linear transmission layer, namely PointNetST.
204
+
205
+ The $\pmb { F }$ approximating $_ { P }$ will be defined as
206
+
207
+ $$
208
+ \pmb { F } = \pmb { \Psi } \circ \pmb { L } \circ \pmb { \Phi } ,
209
+ $$
210
+
211
+ ![](images/796c0b9d0b7cceb714674120d0a995bcd66e93c12cd3a844d159a94be243f91d.jpg)
212
+ Figure 1: The construction of the universal network (PointNetST).
213
+
214
+ where $\Phi : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { n \times t }$ and $\Psi : \mathbb { R } ^ { n \times ( t + k _ { i n } ) } $ $\mathbb { R } ^ { n \times k _ { o u t } }$ are both of PointNet architecture, namely there exist MLPs $\phi : \mathbb { R } ^ { k _ { i n } } \mathbb { R } ^ { t }$ and $\psi : \mathbb { R } ^ { t + k _ { i n } } \stackrel { \cdot } { }$ $\mathbb { R } ^ { k _ { o u t } }$ so that $\Phi ( X ) = ( \phi ( { \pmb x } _ { 1 } ) , \dots , \phi ( { \pmb x } _ { n } ) ) ^ { T }$ and $\pmb { \Psi } ( \pmb { X } ) = ( \pmb { \psi } ( \pmb { x } _ { 1 } ) , \dots , \pmb { \psi } ( \pmb { x } _ { n } ) ) ^ { T }$ . See Figure 1 for an illustration of ${ \pmb F } .$
215
+
216
+ To build the MLPs $\phi , \psi$ we will first construct $\psi$ to approximate $\pmb q$ , that is, we use the universality of MLPS (see (Hornik, 1991; Sonoda & Murata, 2017; Hanin & Sellke, 2017)) to construct $\psi$ so that $\begin{array} { r } { \| \psi ( \pmb { x } , s _ { 1 } , . . . , s _ { t } ) - \pmb { q } ( \pmb { x } , s _ { 1 } , . . . , s _ { t } ) \| _ { \infty } < \frac { \epsilon } { 2 } } \end{array}$ for all $( \pmb { x } , s _ { 1 } , \dots , s _ { t } ) \in [ 0 , 1 ] ^ { k _ { i n } + t }$ . Furthermore, as $\psi$ over $[ 0 , 1 ] ^ { k _ { i n } + t }$ is uniformly continuous, let $\delta$ be such that if $z , z ^ { \prime } \in [ 0 , 1 ] ^ { k _ { i n } + t } , \| z - z ^ { \prime } \| _ { \infty } < \delta$ then $\| \dot { \psi ( z ) } - \psi ( z ^ { \prime } ) \| _ { \infty } < \frac { \epsilon } { 2 }$ . Now, we use universality again to construct $\phi$ approximating $^ { b }$ , that is we take $\phi$ so that $\| \phi ( \pmb { x } ) - \pmb { b } ( \pmb { x } ) \| _ { \infty } < \delta$ for all $\pmb { x } \in [ 0 , 1 ] ^ { k _ { i n } }$ .
217
+
218
+ $$
219
+ { \begin{array} { r l } & { F ( { \boldsymbol { X } } ) - P ( { \boldsymbol { X } } ) \| _ { \infty } \leq \| \Psi ( { \boldsymbol { L } } ( \Phi ( { \boldsymbol { X } } ) ) ) - \Psi ( { \boldsymbol { L } } ( B ( { \boldsymbol { X } } ) ) ) \| _ { \infty } + \| \Psi ( { \boldsymbol { L } } ( B ( { \boldsymbol { X } } ) ) ) - Q ( { \boldsymbol { L } } ( B ( { \boldsymbol { X } } ) ) ) \| _ { \infty } } \\ & { \qquad = \operatorname { e r r } _ { 1 } + \operatorname { e r r } _ { 2 } } \end{array} }
220
+ $$
221
+
222
+ First, $\left\| L ( \Phi ( X ) ) - L ( B ( X ) ) \right\| _ { \infty } < \delta$ for all $X \in K$ and therefore $\mathrm { e r r } _ { 1 } < \frac { \epsilon } { 2 }$ . Second, note that if $X \in K$ then $B ( X ) \in [ 0 , 1 ] ^ { n \times t }$ and $L ( B ( X ) ) \in [ 0 , 1 ] ^ { n \times ( k _ { i n } + t ) }$ . Therefore by construction of $\psi$ we have $\mathrm { e r r } _ { 2 } < \frac { \epsilon } { 2 }$ .
223
+
224
+ To prove $( i i i )$ we use the result in Hanin & Sellke (2017) (see Theorem 1) bounding the width of an MLP approximating a function $f : [ 0 , 1 ] ^ { d _ { i n } } \to \mathbb { R } ^ { d _ { o u t } }$ by $d _ { i n } + d _ { o u t }$ . Therefore, the width of the MLP $\phi$ is bounded by $k _ { i n } + t$ , where the width of the MLP $\psi$ is bounded by $t + k _ { i n } + k _ { o u t }$ , proving the bound. □
225
+
226
+ We can now prove Cororllary 1.
227
+
228
+ # Proof. (Corollary 1)
229
+
230
+ The fact that the DeepSets model is equivariant universal is immediate. Indeed, The PointNetST model can be obtained from the DeepSets model by setting $B = 0$ in all but one layer, with $\textbf { { B } }$ as in Equation 8.
231
+
232
+ For the PointNetSeg model note that by Theorem 1 in $\mathrm { Q i }$ et al. (2017) every invariant function $f : \mathbb { R } ^ { n \times k _ { i n } } \mathbb { R } ^ { t }$ can be approximated by a network of the form $\Psi ( \operatorname* { m a x } ( F ( X ) ) )$ , where $( F ( X )$ is a PointNet model and $\Psi$ is an MLP. In particular, for every $\varepsilon > 0$ there exists such $\mathbfcal { F } , \Phi$ for which $\| \Psi ( \operatorname* { m a x } ( F ( X ) ) ) - ( s _ { 1 } ( X ) , \ldots , s _ { t } ( X ) ) \| _ { \infty } < \varepsilon$ for every $\boldsymbol { X } \in [ 0 , 1 ] ^ { n \times k _ { i n } }$ where $s _ { 1 } ( X ) , \ldots , s _ { t } ( X )$ are the power-sum multi-symmetric polynomials. It follows that we can use PointNetSeg to approximate ${ \bf 1 } ( s _ { 1 } ( X ) , \dots , s _ { t } ( \dot { X } ) )$ . The rest of the proof closely resembles the proof of Theorem 1.
233
+
234
+ Graph neural networks with constructed adjacency. One approach sometimes applied to learning from sets of vectors is to define an adjacency matrix (e.g., by thresholding distances of node feature vectors) and apply a graph neural network to the resulting graph (e.g., Wang et al. (2019), Li et al. (2019)). Using the common message passing paradigm (Gilmer et al., 2017) in this case boils to layers of the form: $\begin{array} { r } { \pmb { L } ( \pmb { X } ) _ { i } = \psi ( \pmb { x } _ { i } , \sum _ { j \in N _ { i } } \tilde { \phi } ( \pmb { x } _ { i } , \pmb { x } _ { j } ) ) = \psi ( \pmb { x } _ { i } , \sum _ { j \in [ n ] } N ( \pmb { x } _ { i } , \pmb { x } _ { j } ) \phi ( \pmb { x } _ { i } , \pmb { x } _ { j } ) ) } \end{array}$ , where $\phi , \psi$ are MLPs, $N _ { i }$ is the index set of neighbors of node $i$ , and $N ( \pmb { x } _ { i } , \pmb { x } _ { j } )$ is the indicator function for the edge $( i , j )$ . If $N$ can be approximated by a continuous function, which is the case at least in the $L _ { 2 }$ sense for a finite set of vectors, then since $\pmb { L }$ is also equivariant it follows from Theorem 1 that such a network can be approximated (again, at least in $L _ { 2 }$ norm) arbitrarily well by any universal equivariant network such as PointNetST or DeepSets.
235
+
236
+ We tested the ability of a DeepSets model with varying depth and width to approximate a single graph convolution layer. We found that a DeepSets model with a small number of layers can approximate a graph convolution layer reasonably well. For details see Appendix A.
237
+
238
+ # 5 EXPERIMENTS
239
+
240
+ We conducted experiments in order to validate our theoretical observations. We compared the results of several equivariant models, as well as baseline (full) MLP, on three equivariant learning tasks: a classification task (knapsack) and two regression tasks (squared norm and Fiedler eigen vector). For all tasks we compare results of 7 different models: DeepSets, PointNet, PointNetSeg, PointNetST, PointNetQT and GraphNet. PointNetQT is PointNet with a single quadratic equivariant transmission layer as defined in Appendix B. GraphNet is similar to the graph convolution network in Kipf & Welling (2016) and is defined explicitly in Appendix B. We generated the adjacency matrices for GraphNet by taking 10 nearest neighbors of each set element. In all experiments we used a network of the form Equation 7 with $m = 6$ depth and varying width, fixed across all layers. 2
241
+
242
+ Equivariant classification. For classification, we chose to learn the multidimensional knapsack problem, which is known to be NP-hard. We are given a set of 4-vectors, represented by $\pmb { X } \in \bar { \mathbb { R } } ^ { n \times 4 }$ and our goal is to learn the equivariant classification function $f : \mathbb { R } ^ { n \times 4 } \stackrel { \cdot } { \to } \left\{ 0 , 1 \right\} ^ { n }$ defined by the following optimization problem:
243
+
244
+ $$
245
+ \begin{array} { r l } { f ( \pmb { X } ) = \arg \underset { z } { \operatorname* { m a x } } } & { \displaystyle \sum _ { i = 1 } ^ { n } x _ { i 1 } z _ { i } } \\ { \mathrm { s . t . } } & { \displaystyle \sum _ { i = 1 } ^ { n } x _ { i j } z _ { i } \leq w _ { j } , \qquad j = 2 , 3 , 4 } \\ & { z _ { i } \in \{ 0 , 1 \} , \qquad i \in [ n ] } \end{array}
246
+ $$
247
+
248
+ Intuitively, given a set of vectors $\ b { X } \in \mathbb { R } ^ { n \times 4 }$ , $( \boldsymbol { X } ) _ { i j } = x _ { i j }$ , where each row represents an element in a set, our goal is to find a subset maximizing the value while satisfying budget constraints. The first column of $\boldsymbol { X }$ defines the value of each element, and the three other columns the costs.
249
+
250
+ To evaluate the success of a trained model we record the percentage of sets for which the predicted subset is such that all the budget constrains are satisfied and the value is within $1 0 \%$ of the optimal value. In Appendix C we detail how we generated this dataset.
251
+
252
+ Equivariant regression. The first equivariant function we considered for regression is the function $\begin{array} { r } { f ( \mathbf { X } ) = \mathbf { 1 } \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { k } ( X _ { i , j } - \frac { 1 } { 2 } ) ^ { 2 } } \end{array}$ . Hanin & Sellke (2017) showed this function cannot be approximated by MLPs of small width. We drew $1 0 k$ training examples and $1 k$ test examples i.i.d. from a $\begin{array} { r } { \mathcal { N } \big ( \frac { 1 } { 2 } , 1 \big ) } \end{array}$ distribution (per entry of $\boldsymbol { X }$ ).
253
+
254
+ ![](images/6904d861b888584598cf9bb58d2ad82b12289646750b069e73dd4fd09ba854b8.jpg)
255
+ Figure 2: Classification and regression tasks with permutation equivariant models. All the universal permutation equivariant models perform similarly, while the equivariant non-universal PointNet demonstrates reduced performace consistently; MLP baseline (with the same number of parameters as the equivariant models) performs poorly.
256
+
257
+ The second equivariant function we considered is defined on point clouds $\boldsymbol { X } \in \mathbb { R } ^ { n \times 3 }$ . For each point cloud we computed a graph by connecting every point to its 10 nearest neighbors. We then computed the absolute value of the first non trivial eigenvector of the graph Laplacian. We used the ModelNet dataset ( $\mathrm { W u }$ et al., 2015) which contains $\sim 9 k$ training meshes and $\sim 2 k$ test meshes. The point clouds are generated by randomly sampling 512 points from each mesh.
258
+
259
+ Result summary. Figure 2 summarizes train and test accuracy of the 6 models after training (training details in Appendix C) as a function of the network width $\omega$ . We have tested $1 5 \omega$ values equidistant in [5, $\textstyle { \frac { n k _ { i n } } { 2 } } \int$ .
260
+
261
+ As can be seen in the graphs, in all three datasets the equivariant universal models (PointNetST, PointNetQT , DeepSets, PointNetSeg) achieved comparable accuracy. PointNet, which is not equivariant universal, consistently achieved inferior performance compared to the universal models, as expected by the theory developed in this paper. The non-equivariant MLP, although universal, used the same width (i.e., same number of parameters) as the equivariant models and was able to over-fit only on one train set (the quadratic function); its performance on the test sets was inferior by a large margin to the equivariant models. We also note that in general the GraphNet model achieved comparable results to the equivariant universal models but was still outperformed by the DeepSets model.
262
+
263
+ An interesting point is that although the width used in the experiments in much smaller than the bound $k _ { o u t } + \bar { k _ { i n } } + \binom { n + k _ { i n } } { k _ { i n } }$ established by Theorem 1, the universal models are still able to learn well the functions we tested on. This raises the question of the tightness of this bound, which we leave to future work.
264
+
265
+ # 6 CONCLUSIONS
266
+
267
+ In this paper we analyze several set equivariant neural networks and compare their approximation power. We show that while vanilla PointNet (Qi et al., 2017) is not equivariant universal, adding a single linear transmission layer makes it equivariant universal. Our proof strategy is based on a characterization of polynomial equivariant functions. As a corollary we show that the DeepSets model (Zaheer et al., 2017) and PointNetSeg (Qi et al., 2017) are equivariant universal. Experimentally, we tested the different models on several classification and regression tasks finding that adding a single linear transmitting layer to PointNet makes a significant positive impact on performance.
268
+
269
+ # 7 ACKNOWLEDGEMENTS
270
+
271
+ This research was supported in part by the European Research Council (ERC Consolidator Grant, LiftMatch 771136) and the Israel Science Foundation (Grant No. 1830/17).
272
+
273
+ # REFERENCES
274
+
275
+ Emmanuel Briand. When is the algebra of multisymmetric polynomials generated by the elementary multisymmetric polynomials. Beitrge zur Algebra und Geometrie, 45, 01 2004.
276
+
277
+ Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. CoRR, 2017.
278
+
279
+ Martin Golubitsky and Ian Stewart. The symmetry perspective. 2002.
280
+
281
+ Boris Hanin and Mark Sellke. Approximating continuous functions by relu nets of minimal width. CoRR, abs/1710.11278, 2017. URL http://arxiv.org/abs/1710.11278.
282
+
283
+ Kurt Hornik. Approximation capabilities of multilayer feedforward networks. Neural networks, 4(2): 251–257, 1991.
284
+
285
+ Nicolas Keriven and Gabriel Peyre. Universal invariant and equivariant graph neural networks. ´ arXiv preprint arXiv:1905.04943, 2019.
286
+
287
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
288
+
289
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
290
+
291
+ Guohao Li, Matthias Mller, Ali Thabet, and Bernard Ghanem. Deepgcns: Can gcns go as deep as cnns? In The IEEE International Conference on Computer Vision (ICCV), 2019.
292
+
293
+ Haggai Maron, Heli Ben-Hamu, Hadar Serviansky, and Yaron Lipman. Provably powerful graph networks. CoRR, abs/1905.11136, 2019. URL http://arxiv.org/abs/1905.11136.
294
+
295
+ Silvano Martello and Paolo Toth. Knapsack Problems: Algorithms and Computer Implementations. John Wiley & Sons, Inc., New York, NY, USA, 1990. ISBN 0-471-92420-2.
296
+
297
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017.
298
+
299
+ Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017.
300
+
301
+ David Rydh. A minimal set of generators for the ring of multisymmetric functions. In Annales de l’institut Fourier, volume 57, pp. 1741–1769, 2007.
302
+
303
+ Akiyoshi Sannai, Yuuki Takai, and Matthieu Cordonnier. Universal approximations of permutation invariant/equivariant functions by deep neural networks. arXiv preprint arXiv:1903.01939, 2019.
304
+
305
+ Sho Sonoda and Noboru Murata. Neural network with unbounded activation functions is universal approximator. Applied and Computational Harmonic Analysis, 43(2):233–268, 2017.
306
+
307
+ Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 2019.
308
+
309
+ Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015.
310
+
311
+ Dmitry Yarotsky. Universal approximations of invariant maps by neural networks. arXiv preprint arXiv:1804.10306, 2018.
312
+
313
+ Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in neural information processing systems, pp. 3391–3401, 2017.
314
+
315
+ # A APPROXIMATING GRAPH CONVOLUTION LAYER WITH DEEPSETS
316
+
317
+ To test the ability of an equivariant universal model to approximate a graph convolution layer, we conducted an experiment where we applied a single graph convolution layer (see Appendix B for a full description of the graph convolution layers used in this paper) with 3 in features and 10 out features. We constructed a knn graph by taking 10 neighbors. We sampled 1000 examples in $\mathbb { R } ^ { 1 0 0 \times 3 }$ i.i.d from a $\begin{array} { r } { \mathcal { N } ( \frac { 1 } { 2 } , 1 ) } \end{array}$ distribution (per entry of $\boldsymbol { X }$ ). The results are summarized in Figure 3. We regressed to the output of a graph convolution layer using the smooth $L _ { 1 }$ loss.
318
+
319
+ ![](images/4977f9c73f73c91a611a3996fb5c3ae4b489ae9271643b0516748e47e4b99792.jpg)
320
+ Figure 3: Using DeepSets to regress to a single graph convolution layer. In the left image we varied the depth and took a constant width of 200. In the right we varied the width and took a fixed depth of 6 layers. The $y$ axes are in log scale. Note that even a 2 layer DeepSets can approximate a graph convolution layer up to an error of $\sim 0 . 0 1$ .
321
+
322
+ # B DESCRIPTION OF LAYERS
323
+
324
+ # B.1 QUADRATIC LAYER
325
+
326
+ One potential application of Theorem 2 is augmenting an equivariant neural network (Equation 7) with equivariant polynomial layers $P : \mathbb { R } ^ { n \times k } \mathbb { R } ^ { n \times l }$ of some maximal degree $d$ . This can be done in the following way: look for all solutions to $\alpha , \beta _ { 1 } , \beta _ { 2 } , \ldots \in \mathbb { N } ^ { k }$ so that $\begin{array} { r } { \left| \alpha \right| + \sum _ { i } \left| \beta _ { i } \right| \leq d } \end{array}$ . Any solution to this equation will give a basis element of the form $\begin{array} { r } { \pmb { p } ( \pmb { X } ) = \lceil \pmb { x } _ { 1 } ^ { \alpha } \rceil \prod _ { j } \left( \sum _ { i = 1 } ^ { n } \pmb { x } _ { i } ^ { \beta _ { j } } \right) } \end{array}$ .
327
+
328
+ In the paper we tested PointNetQT, an architecture that adds to PointNet a single quadratic equivariant layer. We opted to use only the quadratic transmission operators: For a matrix $\bar { \boldsymbol { X } } \in \mathbb { R } ^ { n \times k }$ we define $\boldsymbol { L } ( \boldsymbol { X } ) \in \mathbb { R } ^ { \tilde { n } \times k }$ as follows:
329
+
330
+ $$
331
+ \begin{array} { r } { L ( X ) = X W _ { 1 } + 1 \mathbf { 1 } ^ { T } X W _ { 2 } + ( \mathbf { 1 } \mathbf { 1 } ^ { T } X ) \odot ( \mathbf { 1 } \mathbf { 1 } ^ { T } X ) W _ { 3 } + ( X \odot X ) W _ { 4 } + ( \mathbf { 1 } \mathbf { 1 } ^ { T } X ) \odot X W _ { 5 } , } \end{array}
332
+ $$
333
+
334
+ where $\odot$ is a point-wise multiplication and $W _ { i } \in \mathbb { R } ^ { n \times k } , i \in [ 5 ]$ are the learnable parameters.
335
+
336
+ # B.2 GRAPH CONVOLUTION LAYER
337
+
338
+ We implement a graph convolution layers as follows
339
+
340
+ $$
341
+ L ( X ) = B X W _ { 2 } + X W _ { 1 } + \mathbf { 1 } c ^ { T }
342
+ $$
343
+
344
+ with $W _ { 1 } , W _ { 2 } , c$ learnable parameters. The matrix $\textbf { { B } }$ is defined as in Kipf & Welling (2016) from the knn graph of the set. $\stackrel { \cdot } { B } = D ^ { - \frac { 1 } { 2 } } A D ^ { - \frac { 1 } { 2 } }$ where $_ { D }$ is the degree matrix of the graph and $\pmb { A }$ is the adjacency matrix of the graph with added self-connections.
345
+
346
+ # C IMPLEMENTATION DETAILS
347
+
348
+ Knapsack data generation. We constructed a dataset of $1 0 k$ training examples and $1 k$ test examples consisting of $5 0 \times 4$ matrices. We took $w _ { 1 } = 1 0 0$ , $w _ { 2 } = 8 0$ , $w _ { 3 } = 5 0$ . To generate $\pmb { X } \in \mathbb { R } ^ { 5 0 \times 4 }$ , we draw an integer uniformly at random between 1 and 100 and randomly choose 50 integers between 1 as the first column of $\boldsymbol { X }$ . We also randomly chose an integer between 1 and 25 and then randomly chose 150 integers in that range as the three last columns of $\boldsymbol { X }$ . The labels for each input $\boldsymbol { X }$ were computed by a standard dynamic programming approach, see Martello & Toth (1990).
349
+
350
+ Optimization. We implemented the experiments in Pytorch Paszke et al. (2017) with the Adam Kingma & Ba (2014) optimizer for learning. For the classification we used the cross entropy loss and trained for 150 epochs with learning rate 0.001, learning rate decay of 0.5 every 100 epochs and batch size 32. For the quadratic function regression we trained for 150 epochs with leaning rate of 0.001, learning rate decay 0.1 every 50 epochs and batch size 64; for the regression to the leading eigen vector we trained for 50 epochs with leaning rate of 0.001 and batch size 32. To regress to the output of a single graph convolution layer we trained for 200 epochs with leaning rate of 0.001 and batch size 32.
parse/train/HkxTwkrKDB/HkxTwkrKDB_content_list.json ADDED
@@ -0,0 +1,1789 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ON UNIVERSAL EQUIVARIANT SET NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 178,
8
+ 98,
9
+ 743,
10
+ 122
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Nimrod Segol & Yaron Lipman \nDepartment of Computer Science and Applied Mathematics \nWeizmann Institute of Science \nRehovot, Israel \n{nimrod.segol,yaron.lipman}@weizmann.ac.il ",
17
+ "bbox": [
18
+ 184,
19
+ 147,
20
+ 589,
21
+ 218
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 255,
32
+ 544,
33
+ 270
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Using deep neural networks that are either invariant or equivariant to permutations in order to learn functions on unordered sets has become prevalent. The most popular, basic models are DeepSets (Zaheer et al., 2017) and PointNet (Qi et al., 2017). While known to be universal for approximating invariant functions, DeepSets and PointNet are not known to be universal when approximating equivariant set functions. On the other hand, several recent equivariant set architectures have been proven equivariant universal (Sannai et al., 2019; Keriven & Peyre, 2019), however ´ these models either use layers that are not permutation equivariant (in the standard sense) and/or use higher order tensor variables which are less practical. There is, therefore, a gap in understanding the universality of popular equivariant set models versus theoretical ones. ",
40
+ "bbox": [
41
+ 232,
42
+ 286,
43
+ 766,
44
+ 439
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In this paper we close this gap by proving that: (i) PointNet is not equivariant universal; and (ii) adding a single linear transmission layer makes PointNet universal. We call this architecture PointNetST and argue it is the simplest permutation equivariant universal model known to date. Another consequence is that DeepSets is universal, and also PointNetSeg, a popular point cloud segmentation network (used e.g., in (Qi et al., 2017)) is universal. ",
51
+ "bbox": [
52
+ 232,
53
+ 443,
54
+ 766,
55
+ 526
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "The key theoretical tool used to prove the above results is an explicit characterization of all permutation equivariant polynomial layers. Lastly, we provide numerical experiments validating the theoretical results and comparing different permutation equivariant models. ",
62
+ "bbox": [
63
+ 233,
64
+ 529,
65
+ 766,
66
+ 583
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 606,
77
+ 336,
78
+ 622
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Many interesting tasks in machine learning can be described by functions $\\pmb { F }$ that take as input a set, $\\textbf { \\textit { X } } = \\mathbf { \\beta } ( \\pmb { x } _ { 1 } , \\dots , \\pmb { x } _ { n } )$ , and output some per-element features or values, $F ( X ) \\ =$ $\\bar { ( } F ( X ) _ { 1 } , \\ldots , F ( X ) _ { n } )$ . Permutation equivariance is the property required of $\\pmb { F }$ so it is welldefined. Namely, it assures that reshuffling the elements in $\\boldsymbol { X }$ and applying $\\pmb { F }$ results in the same output, reshuffled in the same manner. For example, if $\\tilde { \\textbf { \\textit { X } } } = \\mathbf { \\Gamma } ( { \\bf x } _ { 2 } , { \\bf x } _ { 1 } , { \\bf x } _ { 3 } , \\ldots , { \\bf x } _ { n } )$ then $\\pmb { F } ( \\tilde { \\pmb { X } } ) = ( \\pmb { F } ( \\pmb { X } ) _ { 2 } , \\pmb { F } ( \\pmb { X } ) _ { 1 } , \\pmb { F } ( \\pmb { X } ) _ { 3 } , \\dots , \\pmb { F } ( \\pmb { X } ) _ { n } ) .$ . ",
85
+ "bbox": [
86
+ 173,
87
+ 637,
88
+ 825,
89
+ 727
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Building neural networks that are permutation equivariant by construction proved extremely useful in practice. Arguably the most popular models are DeepSets Zaheer et al. (2017) and PointNet Qi et al. (2017). These models enjoy small number of parameters, low memory footprint and computational efficiency along with high empirical expressiveness. Although both DeepSets and PointNet are known to be invariant universal (i.e., can approximate arbitrary invariant continuous functions) they are not known to be equivariant universal (i.e., can approximate arbitrary equivariant continuous functions). ",
96
+ "bbox": [
97
+ 174,
98
+ 732,
99
+ 825,
100
+ 830
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "On the other hand, several researchers have suggested theoretical permutation equivariant models and proved they are equivariant universal. Sannai et al. (2019) builds a universal equivariant network by taking $n$ copies of $( n - 1 )$ -invariant networks and combines them with a layer that is not permutation invariant in the standard (above mentioned) sense. Keriven & Peyre (2019) solves a more general ´ problem of building networks that are equivariant universal over arbitrary high order input tensors $\\mathbb { R } ^ { n ^ { d } }$ (including graphs); their construction, however, uses higher order tensors as hidden variables which is of less practical value. Yarotsky (2018) proves that neural networks constructed using a finite set of invariant and equivariant polynomial layers are also equivariant universal, however his network is not explicit (i.e., the polynomials are not characterized for the equivariant case) and also of less practical interest due to the high degree polynomial layers. ",
107
+ "bbox": [
108
+ 174,
109
+ 837,
110
+ 825,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 825,
122
+ 160
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this paper we close the gap between the practical and theoretical permutation equivariant constructions and prove: ",
129
+ "bbox": [
130
+ 173,
131
+ 166,
132
+ 825,
133
+ 195
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Theorem 1. ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 199,
144
+ 254,
145
+ 213
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "(i) PointNet is not equivariant universal. \n(ii) Adding a single linear transmission layer (i.e., $X \\mapsto \\mathbf { 1 1 } ^ { T } X ,$ ) to PointNet makes it equivariant universal. \n(iii) Using ReLU activation the minimal width required for universal permutation equivariant network satisfies $\\begin{array} { r } { \\omega \\le k _ { o u t } + k _ { i n } + \\binom { n + k _ { i n } } { k _ { i n } } } \\end{array}$ . ",
152
+ "bbox": [
153
+ 176,
154
+ 223,
155
+ 826,
156
+ 320
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "This theorem suggests that, arguably, PointNet with an addition of a single linear layer is the simplest universal equivariant network, able to learn arbitrary continuous equivariant functions of sets. An immediate corollary of this theorem is ",
163
+ "bbox": [
164
+ 176,
165
+ 328,
166
+ 823,
167
+ 369
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Corollary 1. DeepSets and PointNetSeg are universal. ",
174
+ "bbox": [
175
+ 173,
176
+ 373,
177
+ 534,
178
+ 388
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "PointNetSeg is a network used often for point cloud segmentation (e.g., in Qi et al. (2017)). One of the benefit of our result is that it provides a simple characterization of universal equivariant architectures that can be used in the network design process to guarantee universality. ",
185
+ "bbox": [
186
+ 174,
187
+ 398,
188
+ 826,
189
+ 443
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "The theoretical tool used for the proof of Theorem 1 is an explicit characterization of the permutation equivariant polynomials over sets of vectors in $\\mathbb { R } ^ { k }$ using power-sum multi-symmetric polynomials. We prove: ",
196
+ "bbox": [
197
+ 174,
198
+ 448,
199
+ 826,
200
+ 491
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Theorem 2. Let $P : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ^ { n \\times l }$ be a permutation equivariant polynomial map. Then, ",
207
+ "bbox": [
208
+ 171,
209
+ 493,
210
+ 764,
211
+ 510
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "equation",
217
+ "img_path": "images/408ed6cba4bf59ec14e87f1699f44517f0ca3807ae5cbae65c6b789a1ab112d3.jpg",
218
+ "text": "$$\nP ( X ) = \\sum _ { | \\alpha | \\leq n } b _ { \\alpha } q _ { \\alpha } ^ { T } ,\n$$",
219
+ "text_format": "latex",
220
+ "bbox": [
221
+ 424,
222
+ 513,
223
+ 573,
224
+ 550
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "where $\\pmb { b } _ { \\alpha } = ( \\pmb { x } _ { 1 } ^ { \\alpha } , \\dots , \\pmb { x } _ { n } ^ { \\alpha } ) ^ { T }$ , $\\pmb { q } _ { \\alpha } = ( q _ { \\alpha , 1 } , \\dots , q _ { \\alpha , l } ) ^ { T }$ , where $q _ { \\alpha , j } = q _ { \\alpha , j } ( s _ { 1 } , \\ldots , s _ { t } )$ , $t = \\binom { n + k } { k }$ , are polynomials; $\\begin{array} { r } { s _ { j } ( \\pmb { X } ) = \\sum _ { i = 1 } ^ { n } \\pmb { x } _ { i } ^ { \\alpha _ { j } } } \\end{array}$ k are the power-sum multi-symmetric polynomials. On the other hand every polynomial map $_ { P }$ satisfying Equation is equivariant. ",
231
+ "bbox": [
232
+ 173,
233
+ 563,
234
+ 825,
235
+ 609
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "This theorem, which extends Proposition 2.27 in Golubitsky & Stewart (2002) to sets of vectors using multivariate polynomials, lends itself to expressing arbitrary equivariant polynomials as a composition of entry-wise continuous functions and a single linear transmission, which in turn facilitates the proof of Theorem 1. ",
242
+ "bbox": [
243
+ 173,
244
+ 619,
245
+ 825,
246
+ 676
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "We conclude the paper by numerical experiments validating the theoretical results and testing several permutation equivariant networks for the tasks of set classification and regression. ",
253
+ "bbox": [
254
+ 174,
255
+ 683,
256
+ 820,
257
+ 712
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "2 PRELIMINARIES ",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 174,
267
+ 717,
268
+ 339,
269
+ 733
270
+ ],
271
+ "page_idx": 1
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "Equivariant maps. Vectors $\\pmb { x } \\in \\mathbb { R } ^ { k }$ are by default column vectors; $\\mathbf { 0 } , \\mathbf { 1 }$ are the all zero and all one vectors/tensors; $e _ { i }$ is the $i$ -th standard basis vector; $\\pmb { I }$ is the identity matrix; all dimensions are inferred from context or mentioned explicitly. We represent a set of $n$ vectors in $\\mathbb { R } ^ { k }$ as a matrix $\\ b { X } \\in \\mathbb { R } ^ { n \\times k }$ and denote $\\pmb { X } = ( \\pmb { x } _ { 1 } , \\pmb { x } _ { 2 } , \\dots , \\pmb { x } _ { n } ) ^ { T }$ , where $\\mathbf { { \\boldsymbol { x } } } _ { i } \\in \\mathbb { R } ^ { k }$ , $i \\in [ n ]$ , are the columns of $\\boldsymbol { X }$ . We denote by $S _ { n }$ the permutation group of $[ n ]$ ; its action on $\\boldsymbol { X }$ is defined by $\\boldsymbol { \\sigma } \\cdot \\pmb { X } = ( \\pmb { x } _ { \\sigma ^ { - 1 } ( 1 ) } , \\pmb { x } _ { \\sigma ^ { - 1 } ( 2 ) } , \\dots , \\pmb { x } _ { \\sigma ^ { - 1 } ( n ) } ) ^ { T }$ $\\sigma \\in S _ { n }$ . That is, $\\sigma$ is reshuffling the rows of $\\boldsymbol { X }$ . The natural class of maps assigning a value or feature vector to every element in an input set is permutation equivariant maps: ",
276
+ "bbox": [
277
+ 173,
278
+ 747,
279
+ 825,
280
+ 847
281
+ ],
282
+ "page_idx": 1
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Definition 1. A map $F : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ^ { n \\times l }$ satisfying $\\pmb { F } ( \\sigma \\cdot \\pmb { X } ) = \\sigma \\cdot \\pmb { F } ( \\pmb { X } )$ for all $\\sigma \\in S _ { n }$ and $\\ b { X } \\in \\mathbb { R } ^ { n \\times d }$ is called permutation equivariant. ",
287
+ "bbox": [
288
+ 174,
289
+ 848,
290
+ 823,
291
+ 878
292
+ ],
293
+ "page_idx": 1
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Power-sum multi-symmetric polynomials. Given a vector $z = ( z _ { 1 } , \\ldots , z _ { n } ) \\in \\mathbb { R } ^ { n }$ the powersum symmetric polynomials $\\begin{array} { r } { s _ { j } ( z ) = \\sum _ { i = 1 } ^ { n } z _ { i } ^ { j } } \\end{array}$ , with $j \\in [ n ]$ , uniquely characterize $_ { z }$ up to permuting its entries. In other words, for $z , y \\in \\mathbb { R } ^ { n }$ we have $\\pmb { y } = \\sigma \\cdot \\pmb { z }$ for some $\\sigma \\in S _ { n }$ if and only if $s _ { j } ( \\pmb { y } ) =$ $s _ { j } ( z )$ for all $j \\in [ n ]$ . An equivalent property is that every $S _ { n }$ invariant polynomial $p$ can be expressed as a polynomial in the power-sum symmetric polynomials, i.e., $p ( z ) = q ( s _ { 1 } ( z ) , \\ldots , s _ { n } ( z ) )$ , see Rydh (2007) Corollary 8.4, Briand (2004) Theorem 3. This fact was previously used in Zaheer et al. (2017) to prove that DeepSets is universal for invariant functions. We extend this result to equivariant functions and the multi-feature (sets of vectors) case. ",
298
+ "bbox": [
299
+ 173,
300
+ 892,
301
+ 823,
302
+ 926
303
+ ],
304
+ "page_idx": 1
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "",
309
+ "bbox": [
310
+ 173,
311
+ 102,
312
+ 825,
313
+ 188
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "For a vector $\\pmb { x } \\in \\mathbb { R } ^ { k }$ and a multi-index vector $\\alpha = ( \\alpha _ { 1 } , \\ldots , \\alpha _ { k } ) \\in \\mathbb { N } ^ { k }$ we define $\\pmb { x } ^ { \\alpha } = x _ { 1 } ^ { \\alpha _ { 1 } } \\cdot \\cdot \\cdot x _ { k } ^ { \\alpha _ { k } }$ and $\\begin{array} { r } { | \\alpha | = \\sum _ { i \\in [ k ] } \\alpha _ { i } } \\end{array}$ . A generalization of the power-sum symmetric polynomials to matrices exists and is called power-sum multi-symmetric polynomials, defined with a bit of notation abuse: $\\begin{array} { r } { s _ { \\alpha } ( { \\pmb X } ) = \\sum _ { i = 1 } ^ { n } { \\pmb x } _ { i } ^ { \\alpha } } \\end{array}$ , where $\\alpha \\in \\mathbb { N } ^ { k }$ is a multi-index satisfying $| { \\boldsymbol { \\alpha } } | \\leq n$ . Note that the number of power-sum multi-symmetric polynomials acting on $\\ b { X } \\in \\mathbb { R } ^ { n \\times k }$ is $t = \\binom { n + k } { k }$ . For notation simplicity let $\\alpha _ { 1 } , \\ldots , \\alpha _ { t }$ be a list of all $\\alpha \\in \\mathbb { N } ^ { k }$ with $| \\alpha | \\le n$ . Then we index the collection of power-sum multi-symmetric polynomials as $s _ { 1 } , \\ldots , s _ { t }$ . ",
320
+ "bbox": [
321
+ 173,
322
+ 193,
323
+ 826,
324
+ 300
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "Similarly to the vector case the numbers $s _ { j } ( X )$ , $j \\in [ t ]$ characterize $\\boldsymbol { X }$ up to permutation of its rows. That is $Y = \\sigma \\cdot X$ for some $\\sigma \\in S _ { n }$ iff $s _ { j } ( \\dot { Y } ) = s _ { j } ( Y )$ for all $j \\in [ t ]$ . Furthermore, every $S _ { n }$ invariant polynomial $p : \\mathbb { R } ^ { n \\times k } \\mathbb { R }$ can be expressed as a polynomial in the power-sum multi-symmetric polynomials (see (Rydh, 2007) corollary 8.4), i.e., ",
331
+ "bbox": [
332
+ 174,
333
+ 305,
334
+ 826,
335
+ 364
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "equation",
341
+ "img_path": "images/8e87796432ee8b2ca8d6dc360ba47ecb8ce152ef6c426f799513bc01d93bc76b.jpg",
342
+ "text": "$$\np ( { \\pmb X } ) = q ( s _ { 1 } ( { \\pmb X } ) , \\ldots , s _ { t } ( { \\pmb X } ) ) ,\n$$",
343
+ "text_format": "latex",
344
+ "bbox": [
345
+ 392,
346
+ 371,
347
+ 604,
348
+ 388
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "These polynomials were recently used to encode multi-sets in Maron et al. (2019). ",
355
+ "bbox": [
356
+ 174,
357
+ 395,
358
+ 710,
359
+ 411
360
+ ],
361
+ "page_idx": 2
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "3 EQUIVARIANT MULTI-SYMMETRIC POLYNOMIAL LAYERS ",
366
+ "text_level": 1,
367
+ "bbox": [
368
+ 176,
369
+ 421,
370
+ 679,
371
+ 436
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "In this section we develop the main theoretical tool of this paper, namely, a characterization of all permutation equivariant polynomial layers. As far as we know, these layers were not fully characterized before. ",
378
+ "bbox": [
379
+ 173,
380
+ 452,
381
+ 826,
382
+ 494
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "Theorem 2 provides an explicit representation of arbitrary permutation equivariant polynomial maps $P : \\mathbb { R } ^ { n \\times k ^ { \\ast } } \\mathbb { R } ^ { n \\times l }$ using the basis of power-sum multi-symmetric polynomials, $s _ { i } ( X )$ . The particular use of power-sum polynomials $s _ { i } ( X )$ has the advantage it can be encoded efficiently using a neural network: as we will show $s _ { i } ( X )$ can be approximated using a PointNet with a single linear transmission layer. This allows approximating an arbitrary equivariant polynomial map using PointNet with a single linear transmission layer. ",
389
+ "bbox": [
390
+ 173,
391
+ 501,
392
+ 825,
393
+ 585
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "A version of this theorem for vectors instead of matrices (i.e., the case of $k = 1$ ) appears as Proposition 2.27 in Golubitsky & Stewart (2002); we extend their proof to matrices, which is the relevant scenario for ML applications as it allows working with sets of vectors. For $k = 1$ Theorem 2 reduces to the following form: $\\begin{array} { r } { \\pmb { p } ( \\pmb { x } ) _ { i } = \\sum _ { a \\leq n } p _ { a } \\big ( s _ { 1 } ( \\pmb { x } ) , \\ldots , s _ { n } ( \\pmb { x } ) \\big ) x _ { i } ^ { a } } \\end{array}$ with $\\begin{array} { r } { s _ { j } ( \\pmb { x } ) = \\sum _ { i } x _ { i } ^ { j } } \\end{array}$ . For matrices the monomial $x _ { i } ^ { k }$ is replaced by $\\mathbf { \\mathscr { x } } _ { i } ^ { \\alpha }$ for a multi-index $\\alpha$ and the power-sum symmetric polynomials are replaced by the power-sum multi-symmetric polynomials. ",
400
+ "bbox": [
401
+ 173,
402
+ 592,
403
+ 825,
404
+ 683
405
+ ],
406
+ "page_idx": 2
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "First, note that it is enough to prove Theorem 1 for $l = 1$ and apply it to every column of $_ { r }$ . Hence, we deal with a vector of polynomials $p : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ^ { n }$ and need to prove it can be expressed as $\\begin{array} { r } { p = \\sum _ { | \\alpha | \\leq n } { b _ { \\alpha } q _ { \\alpha } } } \\end{array}$ , for $S _ { n }$ invariant polynomial $q _ { \\alpha }$ . ",
411
+ "bbox": [
412
+ 173,
413
+ 688,
414
+ 825,
415
+ 732
416
+ ],
417
+ "page_idx": 2
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Given a polynomial $p ( X )$ and the cyclic permutation $\\sigma ^ { - 1 } = ( 1 2 3 \\cdot \\cdot \\cdot n )$ the following operation, taking a polynomial to a vector of polynomials, is useful in characterizing equivariant polynomial maps: ",
422
+ "bbox": [
423
+ 176,
424
+ 739,
425
+ 823,
426
+ 782
427
+ ],
428
+ "page_idx": 2
429
+ },
430
+ {
431
+ "type": "equation",
432
+ "img_path": "images/7a28d7a3d8a8a81d2f62000e7d18b0d111c24e0ee3d19db234f204bd8598b566.jpg",
433
+ "text": "$$\n\\lceil p \\rceil ( \\boldsymbol { X } ) = \\left( \\begin{array} { c } { p ( \\boldsymbol { X } ) } \\\\ { p ( \\sigma \\cdot \\boldsymbol { X } ) } \\\\ { p ( \\sigma ^ { 2 } \\cdot \\boldsymbol { X } ) } \\\\ { \\vdots } \\\\ { p ( \\sigma ^ { n - 1 } \\cdot \\boldsymbol { X } ) } \\end{array} \\right)\n$$",
434
+ "text_format": "latex",
435
+ "bbox": [
436
+ 403,
437
+ 781,
438
+ 594,
439
+ 866
440
+ ],
441
+ "page_idx": 2
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Theorem 2 will be proved using the following two lemmas: ",
446
+ "bbox": [
447
+ 173,
448
+ 876,
449
+ 562,
450
+ 891
451
+ ],
452
+ "page_idx": 2
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Lemma 1. Let $p : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ^ { n }$ be an equivariant polynomial map. Then, there exists a polynomial $p : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ,$ , invariant to $S _ { n - 1 }$ (permuting the last $n - 1$ rows of $\\boldsymbol { X }$ ) so that $p = \\lceil p \\rceil$ . ",
457
+ "bbox": [
458
+ 169,
459
+ 895,
460
+ 828,
461
+ 924
462
+ ],
463
+ "page_idx": 2
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "Proof. Equivariance of $\\pmb { p }$ means that for all $\\sigma \\in S _ { n }$ it holds that ${ \\boldsymbol { \\sigma } } \\cdot { \\boldsymbol { p } } ( { \\boldsymbol { X } } ) = { \\boldsymbol { p } } ( { \\boldsymbol { \\sigma } } \\cdot { \\boldsymbol { X } } )$ ",
468
+ "bbox": [
469
+ 173,
470
+ 102,
471
+ 740,
472
+ 118
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "equation",
478
+ "img_path": "images/87784881a93b079290cfd355984632f75ff04c0c9151adc9d3bcbfcd30fe0259.jpg",
479
+ "text": "$$\n\\sigma \\cdot p ( X ) = p ( \\sigma \\cdot X ) .\n$$",
480
+ "text_format": "latex",
481
+ "bbox": [
482
+ 423,
483
+ 125,
484
+ 573,
485
+ 142
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Choosing an arbitrary permutation $\\sigma \\in \\operatorname { s t a b } ( 1 ) < S _ { n }$ , namely a permutation satisfying $\\sigma ( 1 ) = 1$ , and observing the first row in Equation 4 we get $p _ { 1 } ( { \\pmb X } ) = p _ { 1 } ( { \\sigma } \\cdot { \\pmb X } ) = p _ { 1 } ( { \\pmb x } _ { 1 } , { \\pmb x } _ { \\sigma ^ { - 1 } ( 2 ) } , \\dots , { \\pmb x } _ { \\sigma ^ { - 1 } ( n ) } )$ . Since this is true for all $\\sigma \\in \\mathrm { s t a b } ( 1 ) p _ { 1 }$ is $S _ { n - 1 }$ invariant. Next, applying $\\sigma = ( 1 i )$ to Equation 4 and observing the first row again we get $p _ { i } ( { \\cal X } ) = p _ { 1 } ( \\pmb { x } _ { i } , . . . , \\pmb { x } _ { 1 } , . . . )$ . Using the invariance of $p _ { 1 }$ to $S _ { n - 1 }$ we get $\\bar { \\boldsymbol { p } } = \\lceil p _ { 1 } \\rceil$ . □ ",
492
+ "bbox": [
493
+ 173,
494
+ 148,
495
+ 826,
496
+ 222
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Lemma 2. Let $p : \\mathbb { R } ^ { n \\times k } \\mathbb { R }$ be a polynomial invariant to $S _ { n - 1 }$ (permuting the last $n - 1$ rows of $X$ ) then ",
503
+ "bbox": [
504
+ 169,
505
+ 227,
506
+ 828,
507
+ 256
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "equation",
513
+ "img_path": "images/f9a01434984bffbfbe09f3a2a1f59bc357edbac62119fe596066a2e76f5f9899.jpg",
514
+ "text": "$$\np ( { \\pmb X } ) = \\sum _ { | \\alpha | \\leq n } { \\pmb x } _ { 1 } ^ { \\alpha } q _ { \\alpha } ( { \\pmb X } ) ,\n$$",
515
+ "text_format": "latex",
516
+ "bbox": [
517
+ 413,
518
+ 255,
519
+ 583,
520
+ 291
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "where $q _ { \\alpha }$ are $S _ { n }$ invariant. ",
527
+ "bbox": [
528
+ 174,
529
+ 294,
530
+ 351,
531
+ 309
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "Proof. Expanding $p$ with respect to $\\scriptstyle { \\mathbf { \\mathscr { x } } } _ { 1 }$ we get ",
538
+ "bbox": [
539
+ 174,
540
+ 324,
541
+ 477,
542
+ 339
543
+ ],
544
+ "page_idx": 3
545
+ },
546
+ {
547
+ "type": "equation",
548
+ "img_path": "images/921182b337f1ae158d32ddc815b4b2ce31e7477cdd8961d872f63572473fa7e4.jpg",
549
+ "text": "$$\np ( \\pmb { X } ) = \\sum _ { | \\alpha | \\leq m } \\pmb { x } _ { 1 } ^ { \\alpha } p _ { \\alpha } ( \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } ) ,\n$$",
550
+ "text_format": "latex",
551
+ "bbox": [
552
+ 382,
553
+ 344,
554
+ 614,
555
+ 382
556
+ ],
557
+ "page_idx": 3
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "for some $\\textit { m } \\in { \\mathbb { N } }$ . We first claim $p _ { \\alpha }$ are $S _ { n - 1 }$ invariant. Indeed, note that if $p ( \\boldsymbol { X } ) \\ =$ $p ( \\pmb { x } _ { 1 } , \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } )$ is $S _ { n - 1 }$ invariant, i.e., invariant to permutations of $\\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n }$ , then also its derivative s ∂|β|∂xβ p(X) are Sn−1 permutation invariant, for all β ∈ Nk. Taking the derivative ∂|β|/∂xβ1 on both sides of Equation 6 we get that $p _ { \\beta }$ is $S _ { n - 1 }$ equivariant. ",
562
+ "bbox": [
563
+ 173,
564
+ 388,
565
+ 826,
566
+ 455
567
+ ],
568
+ "page_idx": 3
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "For brevity denote $p = p _ { \\alpha }$ . Since $p$ is $S _ { n - 1 }$ invariant it can be expressed as a polynomial in the powersum multi-symmetric polynomials, i.e., $p ( \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } ) = r ( s _ { 1 } ( \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } ) , \\ldots , s _ { t } ( \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } ) )$ . Note that $s _ { i } ( { \\pmb x } _ { 2 } , \\ldots , { \\pmb x } _ { n } ) = s _ { i } ( { \\pmb X } ) - { \\pmb x } _ { 1 } ^ { \\alpha _ { i } }$ and therefore ",
573
+ "bbox": [
574
+ 173,
575
+ 460,
576
+ 826,
577
+ 503
578
+ ],
579
+ "page_idx": 3
580
+ },
581
+ {
582
+ "type": "equation",
583
+ "img_path": "images/92afd39b333491b84f91ea1b8c08a8a5449b2572600f23ef19f95a4b91046c7b.jpg",
584
+ "text": "$$\np ( \\pmb { x } _ { 2 } , \\ldots , \\pmb { x } _ { n } ) = r ( s _ { 1 } ( \\pmb { X } ) - \\pmb { x } _ { 1 } ^ { \\alpha _ { 1 } } , \\ldots , s _ { t } ( \\pmb { X } ) - \\pmb { x } _ { 1 } ^ { \\alpha _ { t } } ) .\n$$",
585
+ "text_format": "latex",
586
+ "bbox": [
587
+ 318,
588
+ 510,
589
+ 678,
590
+ 527
591
+ ],
592
+ "page_idx": 3
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Since $r$ is a polynomial, expanding its monomials in $s _ { i } ( X )$ and $\\pmb { x } _ { 1 } ^ { \\alpha }$ shows $p$ can be expressed as $\\begin{array} { r } { p = \\sum _ { | \\alpha | \\leq m ^ { \\prime } } \\bar { \\pmb { x } } _ { 1 } ^ { \\alpha } \\tilde { p } _ { \\alpha } } \\end{array}$ , where $m ^ { \\prime } \\in \\mathbb { N }$ , and $\\tilde { p } _ { \\alpha }$ are $S _ { n }$ invariant (as multiplication of invariant $S _ { n }$ polynomials $s _ { i } ( X ) \\rangle$ . Plugging this in Equation 6 we get Equation 5, possibly with the sum over some $n ^ { \\prime } > n$ . It remains to show $n ^ { \\prime }$ can be taken to be at-most $n$ . This is proved in Corollary 5 in Briand (2004) □ ",
597
+ "bbox": [
598
+ 173,
599
+ 534,
600
+ 825,
601
+ 607
602
+ ],
603
+ "page_idx": 3
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "Proof. (Theorem 2) Given an equivariant $\\pmb { p }$ as above, use Lemma 1 to write $p = \\lceil p \\rceil$ where $p ( X )$ is invariant to permuting the last $n - 1$ rows of $\\boldsymbol { X }$ . Use Lemma 2 to write $\\begin{array} { r } { p ( \\pmb { X } ) = \\sum _ { | \\alpha | \\leq n } \\pmb { x } _ { 1 } ^ { \\alpha } q _ { \\alpha } ( \\pmb { X } ) } \\end{array}$ , where $q _ { \\alpha }$ are $S _ { n }$ invariant. We get, ",
608
+ "bbox": [
609
+ 173,
610
+ 622,
611
+ 826,
612
+ 667
613
+ ],
614
+ "page_idx": 3
615
+ },
616
+ {
617
+ "type": "equation",
618
+ "img_path": "images/b270621a4ff571131dfd95048cfba2d3583b19b7d378eedda0e7cb405128c335.jpg",
619
+ "text": "$$\np = \\lceil p \\rceil = \\sum _ { | \\alpha | \\leq n } b _ { \\alpha } q _ { \\alpha } .\n$$",
620
+ "text_format": "latex",
621
+ "bbox": [
622
+ 419,
623
+ 672,
624
+ 576,
625
+ 710
626
+ ],
627
+ "page_idx": 3
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "The converse direction is immediate after noting that $b _ { \\alpha }$ are equivariant and $q _ { \\alpha }$ are invariant. ",
632
+ "bbox": [
633
+ 169,
634
+ 723,
635
+ 781,
636
+ 739
637
+ ],
638
+ "page_idx": 3
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "4 UNIVERSALITY OF SET EQUIVARIANT NEURAL NETWORKS ",
643
+ "text_level": 1,
644
+ "bbox": [
645
+ 174,
646
+ 758,
647
+ 691,
648
+ 775
649
+ ],
650
+ "page_idx": 3
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "We consider equivariant deep neural networks $f : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times k _ { o u t } } ,$ , ",
655
+ "bbox": [
656
+ 173,
657
+ 789,
658
+ 640,
659
+ 805
660
+ ],
661
+ "page_idx": 3
662
+ },
663
+ {
664
+ "type": "equation",
665
+ "img_path": "images/1293ce23c9bb3c9772d7a1ac5aade50df0506822efe083b2aa4459ae5d24a398.jpg",
666
+ "text": "$$\n{ \\pmb F } ( { \\pmb X } ) = { \\pmb L } _ { m } \\circ \\nu \\circ \\cdots \\circ \\nu \\circ { \\pmb L } _ { 1 } ( { \\pmb X } ) ,\n$$",
667
+ "text_format": "latex",
668
+ "bbox": [
669
+ 375,
670
+ 811,
671
+ 620,
672
+ 829
673
+ ],
674
+ "page_idx": 3
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "where $L _ { i } : \\mathbb { R } ^ { n \\times k _ { i } } \\mathbb { R } ^ { n \\times k _ { i + 1 } }$ are affine equivariant transformations, and $\\nu$ is an entry-wise nonlinearity (e.g., ReLU). We define the width of the network to be $\\omega = \\mathrm { m a x } _ { i } k _ { i }$ ; note that this definition is different from the one used for standard MLP where the width would be $n \\omega$ , see e.g., Hanin & Sellke (2017). Zaheer et al. (2017) proved that affine equivariant $\\mathbf { { L } } _ { i }$ are of the form ",
679
+ "bbox": [
680
+ 173,
681
+ 835,
682
+ 826,
683
+ 892
684
+ ],
685
+ "page_idx": 3
686
+ },
687
+ {
688
+ "type": "equation",
689
+ "img_path": "images/c6dd17f4f12c883d16a561b7311e994dd3c8460a4ac6a192ecf696d9b6db4215.jpg",
690
+ "text": "$$\nL _ { i } ( X ) = X A + \\frac { 1 } { n } \\mathbf { 1 1 } ^ { T } X B + \\mathbf { 1 } c ^ { T } ,\n$$",
691
+ "text_format": "latex",
692
+ "bbox": [
693
+ 374,
694
+ 898,
695
+ 622,
696
+ 929
697
+ ],
698
+ "page_idx": 3
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "where $A , B \\in \\mathbb { R } ^ { k _ { i } \\times k _ { i + 1 } }$ , and $\\boldsymbol { c } \\in \\mathbb { R } ^ { k _ { i + 1 } }$ are the layer’s trainable parameters; we call the linear transformation $\\textstyle X \\mapsto { \\frac { 1 } { n } } \\mathbf { 1 } \\mathbf { 1 } ^ { T } X B$ a linear transmission layer. ",
703
+ "bbox": [
704
+ 171,
705
+ 102,
706
+ 823,
707
+ 132
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "We now define the equivariant models considered in this paper: The DeepSets (Zaheer et al., 2017) architecture is Equation 7 with the choice of layers as in Equation 8. Taking $B = 0$ in all layers is the PointNet architecture (Qi et al., 2017). PointNetST is an equivariant model of the form Equation 7 with layers as in Equation 8 where only a single layer $\\mathbf { { { L } } } _ { i }$ has a non-zero $\\textbf { { B } }$ . The PointNetSeg (Qi et al., 2017) architecture is PointNet composed with an invariant max layer, namely $\\begin{array} { r } { \\operatorname* { m a x } ( \\boldsymbol { F } ( \\boldsymbol { X } ) ) _ { j } = \\operatorname* { m a x } _ { i \\in [ n ] } \\boldsymbol { F } ( \\boldsymbol { X } ) _ { i , j } } \\end{array}$ and then concatenating it with the input $\\boldsymbol { X }$ , i.e., $[ X , \\mathbf { 1 } \\mathbf { m a x } ( F ( X ) ) ]$ , and feeding is as input to another PointNet $G$ , that is $G ( [ X , \\mathbf { 1 } \\operatorname* { m a x } ( F ( X ) ) ] )$ . ",
714
+ "bbox": [
715
+ 173,
716
+ 138,
717
+ 826,
718
+ 239
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "We will prove PointNetST is permutation equivariant universal and therefore arguably the simplest permutation equivariant universal model known to date. ",
725
+ "bbox": [
726
+ 174,
727
+ 244,
728
+ 823,
729
+ 273
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "Universality of equivariant deep networks is defined next. ",
736
+ "bbox": [
737
+ 174,
738
+ 280,
739
+ 552,
740
+ 295
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "Definition 2. Permutation equivariant universality1 of a model $F : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times k _ { o u t } }$ means that for every permutation equivariant continuous function $H : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times k _ { o u t } }$ defined over the cube $\\overset { \\cdot } { K } \\overset { \\cdot } { = } [ 0 , 1 ] ^ { n \\times k _ { i n } } \\subset \\overset { \\cdot } { \\mathbb { R } } ^ { n \\times k _ { i n } }$ , and $\\epsilon > 0$ there exists a choice of m (i.e., network depth), $k _ { i }$ (i.e., network width) and the trainable parameters of $\\pmb { F }$ so that $\\| H ( X ) - F ( X ) \\| _ { \\infty } < \\epsilon$ for all $X \\in K$ . ",
747
+ "bbox": [
748
+ 173,
749
+ 297,
750
+ 826,
751
+ 356
752
+ ],
753
+ "page_idx": 4
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Proof. (Theorem $^ { l }$ ) Fact $( i )$ , namely that PointNet is not equivariant universal is a consequence of the following simple lemma: ",
758
+ "bbox": [
759
+ 173,
760
+ 366,
761
+ 823,
762
+ 396
763
+ ],
764
+ "page_idx": 4
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "Lemma 3. Let $\\pmb { h } = ( h _ { 1 } , \\ldots , h _ { n } ) ^ { T } : \\mathbb { R } ^ { n } \\mathbb { R } ^ { n }$ be the equivariant linear function defined by $h ( \\pmb { x } ) = \\mathbf { 1 } \\mathbf { 1 } ^ { T } \\pmb { x }$ . There is no $f : \\mathbb { R } \\to \\mathbb { R }$ so that $\\begin{array} { r } { | h _ { i } ( { \\pmb x } ) - f ( x _ { i } ) | < \\frac { 1 } { 2 } } \\end{array}$ for all $i \\in [ n ]$ and $\\pmb { x } \\in [ 0 , 1 ] ^ { n }$ . ",
769
+ "bbox": [
770
+ 173,
771
+ 398,
772
+ 825,
773
+ 430
774
+ ],
775
+ "page_idx": 4
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "Proof. Assume such $f$ exists. Let $\\pmb { e } _ { 1 } = ( 1 , 0 , \\ldots , 0 ) ^ { T } \\in \\mathbb { R } ^ { n }$ . Then, ",
780
+ "bbox": [
781
+ 173,
782
+ 445,
783
+ 617,
784
+ 463
785
+ ],
786
+ "page_idx": 4
787
+ },
788
+ {
789
+ "type": "equation",
790
+ "img_path": "images/f1d4f26a55ce5167f85c41a52485e8f57594cbf9bce6b8fcb9b103bca67975b5.jpg",
791
+ "text": "$$\n1 = | h _ { 2 } ( e _ { 1 } ) - h _ { 2 } ( { \\bf 0 } ) | \\leq | h _ { 2 } ( e _ { 1 } ) - f ( 0 ) | + | f ( 0 ) - h _ { 2 } ( { \\bf 0 } ) | < 1\n$$",
792
+ "text_format": "latex",
793
+ "bbox": [
794
+ 287,
795
+ 468,
796
+ 710,
797
+ 486
798
+ ],
799
+ "page_idx": 4
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "reaching a contradiction. ",
804
+ "bbox": [
805
+ 174,
806
+ 492,
807
+ 338,
808
+ 507
809
+ ],
810
+ "page_idx": 4
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "To prove $( i i )$ we first reduce the problem from the class of all continuous equivariant functions to the class of equivariant polynomials. This is justified by the following lemma. ",
815
+ "bbox": [
816
+ 173,
817
+ 523,
818
+ 823,
819
+ 553
820
+ ],
821
+ "page_idx": 4
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Lemma 4. Equivariant polynomials $P : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times k _ { o u t } }$ are dense in the space of continuous equivariant functions $F : \\dot { \\mathbb { R } ^ { n \\times k _ { i n } } } \\mathbb { R } ^ { n \\times k _ { o u t } }$ over the cube $K$ . ",
826
+ "bbox": [
827
+ 173,
828
+ 555,
829
+ 820,
830
+ 585
831
+ ],
832
+ "page_idx": 4
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "Proof. Take an arbitrary $\\epsilon > 0$ . Consider the function $f _ { i j } : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R }$ , which denotes the $( i , j )$ -th output entry of $\\pmb { F }$ . By the Stone-Weierstrass Theorem there exists a polynomial $p _ { i j } : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R }$ such that $\\left\\| f _ { i j } ( X ) - p _ { i j } ( X ) \\right\\| _ { \\infty } \\leq \\epsilon$ for all $X \\in K$ . Consider the polynomial map $P : \\mathbb { R } ^ { n \\times k _ { i n } } $ $\\mathbb { R } ^ { n \\times k _ { o u t } }$ defined by $( P ) _ { i j } = p _ { i j }$ . $_ { P }$ is in general not equivariant. To finish the proof we will symmetrize $_ { r }$ : ",
837
+ "bbox": [
838
+ 173,
839
+ 599,
840
+ 825,
841
+ 678
842
+ ],
843
+ "page_idx": 4
844
+ },
845
+ {
846
+ "type": "equation",
847
+ "img_path": "images/6db409ab68aa117b4810fc98c3f7408cfcbb21e299a298494d683ad4e5cc9afe.jpg",
848
+ "text": "$$\n\\begin{array} { r l } { \\bigg | F ( \\pmb X ) - \\displaystyle \\frac { 1 } { n ! } \\sum _ { \\sigma \\in S _ { n } } \\sigma \\cdot \\pmb P ( \\sigma ^ { - 1 } \\cdot \\pmb X ) \\bigg | \\Bigg | _ { \\infty } = \\bigg | \\bigg | \\frac { 1 } { n ! } \\displaystyle \\sum _ { \\sigma \\in S _ { n } } \\sigma \\cdot \\pmb F ( \\sigma ^ { - 1 } \\cdot \\pmb X ) - \\frac { 1 } { n ! } \\displaystyle \\sum _ { \\sigma \\in S _ { n } } \\sigma \\cdot \\pmb P ( \\sigma ^ { - 1 } \\cdot \\pmb X ) \\bigg | \\bigg | _ { \\infty } } & { } \\\\ { = \\bigg | \\bigg | \\frac { 1 } { n ! } \\displaystyle \\sum _ { \\sigma \\in S _ { n } } \\sigma \\cdot \\big ( F ( \\sigma ^ { - 1 } \\cdot \\pmb X ) - \\pmb P ( \\sigma ^ { - 1 } \\cdot \\pmb X ) \\big ) \\bigg | \\bigg | _ { \\infty } } & { } \\\\ { \\leq \\frac { 1 } { n ! } \\displaystyle \\sum _ { \\sigma \\in S _ { n } } \\epsilon = \\epsilon , } \\end{array}\n$$",
849
+ "text_format": "latex",
850
+ "bbox": [
851
+ 181,
852
+ 683,
853
+ 830,
854
+ 814
855
+ ],
856
+ "page_idx": 4
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "where in the first equality we used the fact that $\\pmb { F }$ is equivariant. This concludes the proof since $\\begin{array} { r l } { \\sum _ { \\sigma \\in S _ { n } } \\sigma \\cdot P ( \\sigma ^ { - 1 } \\cdot \\overline { { X } } ) } & { { } } \\end{array}$ is an equivariant polynomial map. □ ",
861
+ "bbox": [
862
+ 173,
863
+ 819,
864
+ 823,
865
+ 848
866
+ ],
867
+ "page_idx": 4
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Now, according to Theorem 2 an arbitrary equivariant polynomial $P : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times k _ { o u t } }$ can be written as $\\begin{array} { r } { P \\ = \\ \\sum _ { | \\alpha | \\leq n } { b } _ { \\alpha } ( X ) \\dot { q _ { \\alpha } } ( \\dot { X } ) ^ { T } } \\end{array}$ , where $\\bar { b _ { \\alpha } } ( \\mathbf { X } ) \\ = \\ \\left\\lceil \\mathbf { x } _ { 1 } ^ { \\alpha } \\right\\rceil \\ \\in \\ \\mathbb { R } ^ { n }$ and $\\begin{array} { r l } { q _ { \\alpha } } & { { } = } \\end{array}$ $( q _ { \\alpha , 1 } , \\dots , q _ { \\alpha , k _ { o u t } } ) \\in \\mathbb { R } ^ { k _ { o u t } }$ are invariant polynomials. Remember that every $S _ { n }$ invariant polynomial can be expressed as a polynomial in the $t = \\binom { n + k _ { i n } } { k _ { i n } }$ power-sum multi-symmetric polynomials $\\begin{array} { r } { s _ { j } ( { \\pmb X } ) = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } { \\pmb x } _ { i } ^ { \\alpha _ { j } } , j \\in [ t ] } \\end{array}$ (we use the $1 / n$ normalized version for a bit more simplicity later on). We can therefore write $_ { r }$ as composition of three maps: ",
872
+ "bbox": [
873
+ 174,
874
+ 867,
875
+ 825,
876
+ 898
877
+ ],
878
+ "page_idx": 4
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "",
883
+ "bbox": [
884
+ 173,
885
+ 102,
886
+ 825,
887
+ 166
888
+ ],
889
+ "page_idx": 5
890
+ },
891
+ {
892
+ "type": "equation",
893
+ "img_path": "images/9d40de6d1ee37ec97892d0e5784aee987ccf174355a366b5ff1d95ca47fd7139.jpg",
894
+ "text": "$$\nP = Q \\circ L \\circ B ,\n$$",
895
+ "text_format": "latex",
896
+ "bbox": [
897
+ 441,
898
+ 172,
899
+ 555,
900
+ 189
901
+ ],
902
+ "page_idx": 5
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "where $\\pmb { B } : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times t }$ is defined by ",
907
+ "bbox": [
908
+ 174,
909
+ 194,
910
+ 447,
911
+ 210
912
+ ],
913
+ "page_idx": 5
914
+ },
915
+ {
916
+ "type": "equation",
917
+ "img_path": "images/ff639040e5756e14326d0e01bd17d481938c2bef2190735d97c6d555b734b705.jpg",
918
+ "text": "$$\nB ( X ) = ( b ( x _ { 1 } ) , \\dots , b ( x _ { n } ) ) ^ { T } ,\n$$",
919
+ "text_format": "latex",
920
+ "bbox": [
921
+ 392,
922
+ 215,
923
+ 604,
924
+ 234
925
+ ],
926
+ "page_idx": 5
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "${ \\pmb b } ( { \\pmb x } ) = ( { \\pmb x } ^ { \\alpha _ { 1 } } , \\ldots , { \\pmb x } ^ { \\alpha _ { t } } ) ; L$ is defined as in Equation 8 with $\\boldsymbol { B } = [ \\mathbf { 0 } , I ]$ and $\\pmb { A } = [ e _ { 1 } , \\ldots , e _ { k _ { i n } } , \\pmb { 0 } ]$ , where $\\ b { I } \\in \\mathbb { R } ^ { t \\times t }$ the identity matrix and $\\boldsymbol { e } _ { i } \\in \\mathbb { R } ^ { t }$ represents the standard basis (as-usual). We assume $\\boldsymbol { \\alpha } _ { j } = \\boldsymbol { e } _ { j } \\in \\mathbb { R } ^ { k _ { i n } }$ , for $j \\in [ \\bar { k } _ { i n } ]$ . Note that the output of $\\pmb { L }$ is of the form ",
931
+ "bbox": [
932
+ 173,
933
+ 239,
934
+ 826,
935
+ 284
936
+ ],
937
+ "page_idx": 5
938
+ },
939
+ {
940
+ "type": "equation",
941
+ "img_path": "images/a1665dbcb95601a2d302ffacd03f4da8e91eab260b6d07452d27144ab4ee6dc0.jpg",
942
+ "text": "$$\n\\pmb { L } ( \\pmb { B } ( \\pmb { X } ) ) = ( \\pmb { X } , \\pmb { 1 } s _ { 1 } ( \\pmb { X } ) , \\pmb { 1 } s _ { 2 } ( \\pmb { X } ) , \\dots , \\pmb { 1 } s _ { t } ( \\pmb { X } ) ) .\n$$",
943
+ "text_format": "latex",
944
+ "bbox": [
945
+ 328,
946
+ 289,
947
+ 668,
948
+ 306
949
+ ],
950
+ "page_idx": 5
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Finally, $Q : \\mathbb { R } ^ { n \\times ( k _ { i n } + t ) } \\mathbb { R } ^ { n \\times k _ { o u t } }$ is defined by ",
955
+ "bbox": [
956
+ 173,
957
+ 311,
958
+ 503,
959
+ 328
960
+ ],
961
+ "page_idx": 5
962
+ },
963
+ {
964
+ "type": "equation",
965
+ "img_path": "images/7c3753fb1b29f6b4957ee71fadbfb31d115711a74edf8e423c3e96076bd9b1d6.jpg",
966
+ "text": "$$\nQ ( X , \\mathbf { 1 } s _ { 1 } , \\ldots , \\mathbf { 1 } s _ { t } ) = ( q ( x _ { 1 } , s _ { 1 } , \\ldots , s _ { t } ) , \\ldots , q ( x _ { n } , s _ { 1 } , \\ldots , s _ { t } ) ) ^ { T } ,\n$$",
967
+ "text_format": "latex",
968
+ "bbox": [
969
+ 272,
970
+ 334,
971
+ 722,
972
+ 353
973
+ ],
974
+ "page_idx": 5
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "The decomposition in Equation 9 of $_ { r }$ suggests that replacing $Q , B$ with Multi-Layer Perceptrons (MLPs) would lead to a universal permutation equivariant network consisting of PointNet with a single linear transmission layer, namely PointNetST. ",
979
+ "bbox": [
980
+ 173,
981
+ 382,
982
+ 517,
983
+ 452
984
+ ],
985
+ "page_idx": 5
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "The $\\pmb { F }$ approximating $_ { P }$ will be defined as ",
990
+ "bbox": [
991
+ 176,
992
+ 459,
993
+ 455,
994
+ 473
995
+ ],
996
+ "page_idx": 5
997
+ },
998
+ {
999
+ "type": "equation",
1000
+ "img_path": "images/a03151f232b06cdcdbd6e44992b42ea0437edcc36a83abcaae4173d71c55798e.jpg",
1001
+ "text": "$$\n\\pmb { F } = \\pmb { \\Psi } \\circ \\pmb { L } \\circ \\pmb { \\Phi } ,\n$$",
1002
+ "text_format": "latex",
1003
+ "bbox": [
1004
+ 287,
1005
+ 481,
1006
+ 401,
1007
+ 496
1008
+ ],
1009
+ "page_idx": 5
1010
+ },
1011
+ {
1012
+ "type": "image",
1013
+ "img_path": "images/796c0b9d0b7cceb714674120d0a995bcd66e93c12cd3a844d159a94be243f91d.jpg",
1014
+ "image_caption": [
1015
+ "Figure 1: The construction of the universal network (PointNetST). "
1016
+ ],
1017
+ "image_footnote": [],
1018
+ "bbox": [
1019
+ 531,
1020
+ 381,
1021
+ 818,
1022
+ 494
1023
+ ],
1024
+ "page_idx": 5
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "where $\\Phi : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { n \\times t }$ and $\\Psi : \\mathbb { R } ^ { n \\times ( t + k _ { i n } ) } $ $\\mathbb { R } ^ { n \\times k _ { o u t } }$ are both of PointNet architecture, namely there exist MLPs $\\phi : \\mathbb { R } ^ { k _ { i n } } \\mathbb { R } ^ { t }$ and $\\psi : \\mathbb { R } ^ { t + k _ { i n } } \\stackrel { \\cdot } { }$ $\\mathbb { R } ^ { k _ { o u t } }$ so that $\\Phi ( X ) = ( \\phi ( { \\pmb x } _ { 1 } ) , \\dots , \\phi ( { \\pmb x } _ { n } ) ) ^ { T }$ and $\\pmb { \\Psi } ( \\pmb { X } ) = ( \\pmb { \\psi } ( \\pmb { x } _ { 1 } ) , \\dots , \\pmb { \\psi } ( \\pmb { x } _ { n } ) ) ^ { T }$ . See Figure 1 for an illustration of ${ \\pmb F } .$ ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 501,
1032
+ 517,
1033
+ 544
1034
+ ],
1035
+ "page_idx": 5
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "",
1040
+ "bbox": [
1041
+ 174,
1042
+ 544,
1043
+ 821,
1044
+ 571
1045
+ ],
1046
+ "page_idx": 5
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "To build the MLPs $\\phi , \\psi$ we will first construct $\\psi$ to approximate $\\pmb q$ , that is, we use the universality of MLPS (see (Hornik, 1991; Sonoda & Murata, 2017; Hanin & Sellke, 2017)) to construct $\\psi$ so that $\\begin{array} { r } { \\| \\psi ( \\pmb { x } , s _ { 1 } , . . . , s _ { t } ) - \\pmb { q } ( \\pmb { x } , s _ { 1 } , . . . , s _ { t } ) \\| _ { \\infty } < \\frac { \\epsilon } { 2 } } \\end{array}$ for all $( \\pmb { x } , s _ { 1 } , \\dots , s _ { t } ) \\in [ 0 , 1 ] ^ { k _ { i n } + t }$ . Furthermore, as $\\psi$ over $[ 0 , 1 ] ^ { k _ { i n } + t }$ is uniformly continuous, let $\\delta$ be such that if $z , z ^ { \\prime } \\in [ 0 , 1 ] ^ { k _ { i n } + t } , \\| z - z ^ { \\prime } \\| _ { \\infty } < \\delta$ then $\\| \\dot { \\psi ( z ) } - \\psi ( z ^ { \\prime } ) \\| _ { \\infty } < \\frac { \\epsilon } { 2 }$ . Now, we use universality again to construct $\\phi$ approximating $^ { b }$ , that is we take $\\phi$ so that $\\| \\phi ( \\pmb { x } ) - \\pmb { b } ( \\pmb { x } ) \\| _ { \\infty } < \\delta$ for all $\\pmb { x } \\in [ 0 , 1 ] ^ { k _ { i n } }$ . ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 579,
1054
+ 826,
1055
+ 670
1056
+ ],
1057
+ "page_idx": 5
1058
+ },
1059
+ {
1060
+ "type": "equation",
1061
+ "img_path": "images/a92de332d8fe41ad3b1499709a7400e7f57adef21c8a6dde891531b78eebacaf.jpg",
1062
+ "text": "$$\n{ \\begin{array} { r l } & { F ( { \\boldsymbol { X } } ) - P ( { \\boldsymbol { X } } ) \\| _ { \\infty } \\leq \\| \\Psi ( { \\boldsymbol { L } } ( \\Phi ( { \\boldsymbol { X } } ) ) ) - \\Psi ( { \\boldsymbol { L } } ( B ( { \\boldsymbol { X } } ) ) ) \\| _ { \\infty } + \\| \\Psi ( { \\boldsymbol { L } } ( B ( { \\boldsymbol { X } } ) ) ) - Q ( { \\boldsymbol { L } } ( B ( { \\boldsymbol { X } } ) ) ) \\| _ { \\infty } } \\\\ & { \\qquad = \\operatorname { e r r } _ { 1 } + \\operatorname { e r r } _ { 2 } } \\end{array} }\n$$",
1063
+ "text_format": "latex",
1064
+ "bbox": [
1065
+ 181,
1066
+ 674,
1067
+ 838,
1068
+ 710
1069
+ ],
1070
+ "page_idx": 5
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "First, $\\left\\| L ( \\Phi ( X ) ) - L ( B ( X ) ) \\right\\| _ { \\infty } < \\delta$ for all $X \\in K$ and therefore $\\mathrm { e r r } _ { 1 } < \\frac { \\epsilon } { 2 }$ . Second, note that if $X \\in K$ then $B ( X ) \\in [ 0 , 1 ] ^ { n \\times t }$ and $L ( B ( X ) ) \\in [ 0 , 1 ] ^ { n \\times ( k _ { i n } + t ) }$ . Therefore by construction of $\\psi$ we have $\\mathrm { e r r } _ { 2 } < \\frac { \\epsilon } { 2 }$ . ",
1075
+ "bbox": [
1076
+ 173,
1077
+ 714,
1078
+ 826,
1079
+ 762
1080
+ ],
1081
+ "page_idx": 5
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "To prove $( i i i )$ we use the result in Hanin & Sellke (2017) (see Theorem 1) bounding the width of an MLP approximating a function $f : [ 0 , 1 ] ^ { d _ { i n } } \\to \\mathbb { R } ^ { d _ { o u t } }$ by $d _ { i n } + d _ { o u t }$ . Therefore, the width of the MLP $\\phi$ is bounded by $k _ { i n } + t$ , where the width of the MLP $\\psi$ is bounded by $t + k _ { i n } + k _ { o u t }$ , proving the bound. □ ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 767,
1089
+ 825,
1090
+ 823
1091
+ ],
1092
+ "page_idx": 5
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "We can now prove Cororllary 1. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 829,
1100
+ 383,
1101
+ 844
1102
+ ],
1103
+ "page_idx": 5
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Proof. (Corollary 1) ",
1108
+ "text_level": 1,
1109
+ "bbox": [
1110
+ 174,
1111
+ 859,
1112
+ 312,
1113
+ 875
1114
+ ],
1115
+ "page_idx": 5
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "The fact that the DeepSets model is equivariant universal is immediate. Indeed, The PointNetST model can be obtained from the DeepSets model by setting $B = 0$ in all but one layer, with $\\textbf { { B } }$ as in Equation 8. ",
1120
+ "bbox": [
1121
+ 174,
1122
+ 882,
1123
+ 823,
1124
+ 924
1125
+ ],
1126
+ "page_idx": 5
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "For the PointNetSeg model note that by Theorem 1 in $\\mathrm { Q i }$ et al. (2017) every invariant function $f : \\mathbb { R } ^ { n \\times k _ { i n } } \\mathbb { R } ^ { t }$ can be approximated by a network of the form $\\Psi ( \\operatorname* { m a x } ( F ( X ) ) )$ , where $( F ( X )$ is a PointNet model and $\\Psi$ is an MLP. In particular, for every $\\varepsilon > 0$ there exists such $\\mathbfcal { F } , \\Phi$ for which $\\| \\Psi ( \\operatorname* { m a x } ( F ( X ) ) ) - ( s _ { 1 } ( X ) , \\ldots , s _ { t } ( X ) ) \\| _ { \\infty } < \\varepsilon$ for every $\\boldsymbol { X } \\in [ 0 , 1 ] ^ { n \\times k _ { i n } }$ where $s _ { 1 } ( X ) , \\ldots , s _ { t } ( X )$ are the power-sum multi-symmetric polynomials. It follows that we can use PointNetSeg to approximate ${ \\bf 1 } ( s _ { 1 } ( X ) , \\dots , s _ { t } ( \\dot { X } ) )$ . The rest of the proof closely resembles the proof of Theorem 1. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 102,
1134
+ 825,
1135
+ 202
1136
+ ],
1137
+ "page_idx": 6
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Graph neural networks with constructed adjacency. One approach sometimes applied to learning from sets of vectors is to define an adjacency matrix (e.g., by thresholding distances of node feature vectors) and apply a graph neural network to the resulting graph (e.g., Wang et al. (2019), Li et al. (2019)). Using the common message passing paradigm (Gilmer et al., 2017) in this case boils to layers of the form: $\\begin{array} { r } { \\pmb { L } ( \\pmb { X } ) _ { i } = \\psi ( \\pmb { x } _ { i } , \\sum _ { j \\in N _ { i } } \\tilde { \\phi } ( \\pmb { x } _ { i } , \\pmb { x } _ { j } ) ) = \\psi ( \\pmb { x } _ { i } , \\sum _ { j \\in [ n ] } N ( \\pmb { x } _ { i } , \\pmb { x } _ { j } ) \\phi ( \\pmb { x } _ { i } , \\pmb { x } _ { j } ) ) } \\end{array}$ , where $\\phi , \\psi$ are MLPs, $N _ { i }$ is the index set of neighbors of node $i$ , and $N ( \\pmb { x } _ { i } , \\pmb { x } _ { j } )$ is the indicator function for the edge $( i , j )$ . If $N$ can be approximated by a continuous function, which is the case at least in the $L _ { 2 }$ sense for a finite set of vectors, then since $\\pmb { L }$ is also equivariant it follows from Theorem 1 that such a network can be approximated (again, at least in $L _ { 2 }$ norm) arbitrarily well by any universal equivariant network such as PointNetST or DeepSets. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 237,
1145
+ 826,
1146
+ 381
1147
+ ],
1148
+ "page_idx": 6
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "We tested the ability of a DeepSets model with varying depth and width to approximate a single graph convolution layer. We found that a DeepSets model with a small number of layers can approximate a graph convolution layer reasonably well. For details see Appendix A. ",
1153
+ "bbox": [
1154
+ 174,
1155
+ 386,
1156
+ 825,
1157
+ 429
1158
+ ],
1159
+ "page_idx": 6
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "5 EXPERIMENTS ",
1164
+ "text_level": 1,
1165
+ "bbox": [
1166
+ 176,
1167
+ 443,
1168
+ 328,
1169
+ 458
1170
+ ],
1171
+ "page_idx": 6
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "We conducted experiments in order to validate our theoretical observations. We compared the results of several equivariant models, as well as baseline (full) MLP, on three equivariant learning tasks: a classification task (knapsack) and two regression tasks (squared norm and Fiedler eigen vector). For all tasks we compare results of 7 different models: DeepSets, PointNet, PointNetSeg, PointNetST, PointNetQT and GraphNet. PointNetQT is PointNet with a single quadratic equivariant transmission layer as defined in Appendix B. GraphNet is similar to the graph convolution network in Kipf & Welling (2016) and is defined explicitly in Appendix B. We generated the adjacency matrices for GraphNet by taking 10 nearest neighbors of each set element. In all experiments we used a network of the form Equation 7 with $m = 6$ depth and varying width, fixed across all layers. 2 ",
1176
+ "bbox": [
1177
+ 173,
1178
+ 462,
1179
+ 826,
1180
+ 588
1181
+ ],
1182
+ "page_idx": 6
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Equivariant classification. For classification, we chose to learn the multidimensional knapsack problem, which is known to be NP-hard. We are given a set of 4-vectors, represented by $\\pmb { X } \\in \\bar { \\mathbb { R } } ^ { n \\times 4 }$ and our goal is to learn the equivariant classification function $f : \\mathbb { R } ^ { n \\times 4 } \\stackrel { \\cdot } { \\to } \\left\\{ 0 , 1 \\right\\} ^ { n }$ defined by the following optimization problem: ",
1187
+ "bbox": [
1188
+ 176,
1189
+ 595,
1190
+ 823,
1191
+ 652
1192
+ ],
1193
+ "page_idx": 6
1194
+ },
1195
+ {
1196
+ "type": "equation",
1197
+ "img_path": "images/f16f00ee8a4cbd99cb7d8488d95a59a6e1db9f5c80f8855b25e2339935df53bb.jpg",
1198
+ "text": "$$\n\\begin{array} { r l } { f ( \\pmb { X } ) = \\arg \\underset { z } { \\operatorname* { m a x } } } & { \\displaystyle \\sum _ { i = 1 } ^ { n } x _ { i 1 } z _ { i } } \\\\ { \\mathrm { s . t . } } & { \\displaystyle \\sum _ { i = 1 } ^ { n } x _ { i j } z _ { i } \\leq w _ { j } , \\qquad j = 2 , 3 , 4 } \\\\ & { z _ { i } \\in \\{ 0 , 1 \\} , \\qquad i \\in [ n ] } \\end{array}\n$$",
1199
+ "text_format": "latex",
1200
+ "bbox": [
1201
+ 323,
1202
+ 657,
1203
+ 674,
1204
+ 761
1205
+ ],
1206
+ "page_idx": 6
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Intuitively, given a set of vectors $\\ b { X } \\in \\mathbb { R } ^ { n \\times 4 }$ , $( \\boldsymbol { X } ) _ { i j } = x _ { i j }$ , where each row represents an element in a set, our goal is to find a subset maximizing the value while satisfying budget constraints. The first column of $\\boldsymbol { X }$ defines the value of each element, and the three other columns the costs. ",
1211
+ "bbox": [
1212
+ 173,
1213
+ 765,
1214
+ 825,
1215
+ 809
1216
+ ],
1217
+ "page_idx": 6
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "To evaluate the success of a trained model we record the percentage of sets for which the predicted subset is such that all the budget constrains are satisfied and the value is within $1 0 \\%$ of the optimal value. In Appendix C we detail how we generated this dataset. ",
1222
+ "bbox": [
1223
+ 174,
1224
+ 815,
1225
+ 823,
1226
+ 858
1227
+ ],
1228
+ "page_idx": 6
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Equivariant regression. The first equivariant function we considered for regression is the function $\\begin{array} { r } { f ( \\mathbf { X } ) = \\mathbf { 1 } \\sum _ { i = 1 } ^ { n } \\sum _ { j = 1 } ^ { k } ( X _ { i , j } - \\frac { 1 } { 2 } ) ^ { 2 } } \\end{array}$ . Hanin & Sellke (2017) showed this function cannot be approximated by MLPs of small width. We drew $1 0 k$ training examples and $1 k$ test examples i.i.d. from a $\\begin{array} { r } { \\mathcal { N } \\big ( \\frac { 1 } { 2 } , 1 \\big ) } \\end{array}$ distribution (per entry of $\\boldsymbol { X }$ ). ",
1233
+ "bbox": [
1234
+ 176,
1235
+ 866,
1236
+ 825,
1237
+ 900
1238
+ ],
1239
+ "page_idx": 6
1240
+ },
1241
+ {
1242
+ "type": "image",
1243
+ "img_path": "images/6904d861b888584598cf9bb58d2ad82b12289646750b069e73dd4fd09ba854b8.jpg",
1244
+ "image_caption": [
1245
+ "Figure 2: Classification and regression tasks with permutation equivariant models. All the universal permutation equivariant models perform similarly, while the equivariant non-universal PointNet demonstrates reduced performace consistently; MLP baseline (with the same number of parameters as the equivariant models) performs poorly. "
1246
+ ],
1247
+ "image_footnote": [],
1248
+ "bbox": [
1249
+ 199,
1250
+ 101,
1251
+ 810,
1252
+ 369
1253
+ ],
1254
+ "page_idx": 7
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "",
1259
+ "bbox": [
1260
+ 173,
1261
+ 477,
1262
+ 823,
1263
+ 506
1264
+ ],
1265
+ "page_idx": 7
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "The second equivariant function we considered is defined on point clouds $\\boldsymbol { X } \\in \\mathbb { R } ^ { n \\times 3 }$ . For each point cloud we computed a graph by connecting every point to its 10 nearest neighbors. We then computed the absolute value of the first non trivial eigenvector of the graph Laplacian. We used the ModelNet dataset ( $\\mathrm { W u }$ et al., 2015) which contains $\\sim 9 k$ training meshes and $\\sim 2 k$ test meshes. The point clouds are generated by randomly sampling 512 points from each mesh. ",
1270
+ "bbox": [
1271
+ 174,
1272
+ 513,
1273
+ 825,
1274
+ 584
1275
+ ],
1276
+ "page_idx": 7
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Result summary. Figure 2 summarizes train and test accuracy of the 6 models after training (training details in Appendix C) as a function of the network width $\\omega$ . We have tested $1 5 \\omega$ values equidistant in [5, $\\textstyle { \\frac { n k _ { i n } } { 2 } } \\int$ . ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 598,
1284
+ 825,
1285
+ 643
1286
+ ],
1287
+ "page_idx": 7
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "As can be seen in the graphs, in all three datasets the equivariant universal models (PointNetST, PointNetQT , DeepSets, PointNetSeg) achieved comparable accuracy. PointNet, which is not equivariant universal, consistently achieved inferior performance compared to the universal models, as expected by the theory developed in this paper. The non-equivariant MLP, although universal, used the same width (i.e., same number of parameters) as the equivariant models and was able to over-fit only on one train set (the quadratic function); its performance on the test sets was inferior by a large margin to the equivariant models. We also note that in general the GraphNet model achieved comparable results to the equivariant universal models but was still outperformed by the DeepSets model. ",
1292
+ "bbox": [
1293
+ 173,
1294
+ 650,
1295
+ 825,
1296
+ 775
1297
+ ],
1298
+ "page_idx": 7
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "An interesting point is that although the width used in the experiments in much smaller than the bound $k _ { o u t } + \\bar { k _ { i n } } + \\binom { n + k _ { i n } } { k _ { i n } }$ established by Theorem 1, the universal models are still able to learn well the functions we tested on. This raises the question of the tightness of this bound, which we leave to future work. ",
1303
+ "bbox": [
1304
+ 174,
1305
+ 781,
1306
+ 825,
1307
+ 840
1308
+ ],
1309
+ "page_idx": 7
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "6 CONCLUSIONS ",
1314
+ "text_level": 1,
1315
+ "bbox": [
1316
+ 174,
1317
+ 847,
1318
+ 330,
1319
+ 863
1320
+ ],
1321
+ "page_idx": 7
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "In this paper we analyze several set equivariant neural networks and compare their approximation power. We show that while vanilla PointNet (Qi et al., 2017) is not equivariant universal, adding a single linear transmission layer makes it equivariant universal. Our proof strategy is based on a characterization of polynomial equivariant functions. As a corollary we show that the DeepSets model (Zaheer et al., 2017) and PointNetSeg (Qi et al., 2017) are equivariant universal. Experimentally, we tested the different models on several classification and regression tasks finding that adding a single linear transmitting layer to PointNet makes a significant positive impact on performance. ",
1326
+ "bbox": [
1327
+ 174,
1328
+ 868,
1329
+ 823,
1330
+ 924
1331
+ ],
1332
+ "page_idx": 7
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "",
1337
+ "bbox": [
1338
+ 173,
1339
+ 103,
1340
+ 823,
1341
+ 146
1342
+ ],
1343
+ "page_idx": 8
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "7 ACKNOWLEDGEMENTS ",
1348
+ "text_level": 1,
1349
+ "bbox": [
1350
+ 176,
1351
+ 157,
1352
+ 398,
1353
+ 172
1354
+ ],
1355
+ "page_idx": 8
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "This research was supported in part by the European Research Council (ERC Consolidator Grant, LiftMatch 771136) and the Israel Science Foundation (Grant No. 1830/17). ",
1360
+ "bbox": [
1361
+ 174,
1362
+ 183,
1363
+ 825,
1364
+ 210
1365
+ ],
1366
+ "page_idx": 8
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "REFERENCES ",
1371
+ "text_level": 1,
1372
+ "bbox": [
1373
+ 174,
1374
+ 233,
1375
+ 287,
1376
+ 248
1377
+ ],
1378
+ "page_idx": 8
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Emmanuel Briand. When is the algebra of multisymmetric polynomials generated by the elementary multisymmetric polynomials. Beitrge zur Algebra und Geometrie, 45, 01 2004. ",
1383
+ "bbox": [
1384
+ 176,
1385
+ 256,
1386
+ 825,
1387
+ 285
1388
+ ],
1389
+ "page_idx": 8
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. CoRR, 2017. ",
1394
+ "bbox": [
1395
+ 174,
1396
+ 295,
1397
+ 821,
1398
+ 324
1399
+ ],
1400
+ "page_idx": 8
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Martin Golubitsky and Ian Stewart. The symmetry perspective. 2002. ",
1405
+ "bbox": [
1406
+ 173,
1407
+ 334,
1408
+ 630,
1409
+ 349
1410
+ ],
1411
+ "page_idx": 8
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Boris Hanin and Mark Sellke. Approximating continuous functions by relu nets of minimal width. CoRR, abs/1710.11278, 2017. URL http://arxiv.org/abs/1710.11278. ",
1416
+ "bbox": [
1417
+ 178,
1418
+ 359,
1419
+ 825,
1420
+ 388
1421
+ ],
1422
+ "page_idx": 8
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Kurt Hornik. Approximation capabilities of multilayer feedforward networks. Neural networks, 4(2): 251–257, 1991. ",
1427
+ "bbox": [
1428
+ 174,
1429
+ 398,
1430
+ 823,
1431
+ 428
1432
+ ],
1433
+ "page_idx": 8
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Nicolas Keriven and Gabriel Peyre. Universal invariant and equivariant graph neural networks. ´ arXiv preprint arXiv:1905.04943, 2019. ",
1438
+ "bbox": [
1439
+ 173,
1440
+ 436,
1441
+ 825,
1442
+ 467
1443
+ ],
1444
+ "page_idx": 8
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1449
+ "bbox": [
1450
+ 171,
1451
+ 476,
1452
+ 825,
1453
+ 506
1454
+ ],
1455
+ "page_idx": 8
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1460
+ "bbox": [
1461
+ 169,
1462
+ 515,
1463
+ 825,
1464
+ 545
1465
+ ],
1466
+ "page_idx": 8
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Guohao Li, Matthias Mller, Ali Thabet, and Bernard Ghanem. Deepgcns: Can gcns go as deep as cnns? In The IEEE International Conference on Computer Vision (ICCV), 2019. ",
1471
+ "bbox": [
1472
+ 171,
1473
+ 554,
1474
+ 823,
1475
+ 584
1476
+ ],
1477
+ "page_idx": 8
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Haggai Maron, Heli Ben-Hamu, Hadar Serviansky, and Yaron Lipman. Provably powerful graph networks. CoRR, abs/1905.11136, 2019. URL http://arxiv.org/abs/1905.11136. ",
1482
+ "bbox": [
1483
+ 174,
1484
+ 593,
1485
+ 823,
1486
+ 623
1487
+ ],
1488
+ "page_idx": 8
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Silvano Martello and Paolo Toth. Knapsack Problems: Algorithms and Computer Implementations. John Wiley & Sons, Inc., New York, NY, USA, 1990. ISBN 0-471-92420-2. ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 632,
1496
+ 823,
1497
+ 662
1498
+ ],
1499
+ "page_idx": 8
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017. ",
1504
+ "bbox": [
1505
+ 174,
1506
+ 671,
1507
+ 823,
1508
+ 715
1509
+ ],
1510
+ "page_idx": 8
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017. ",
1515
+ "bbox": [
1516
+ 173,
1517
+ 724,
1518
+ 823,
1519
+ 768
1520
+ ],
1521
+ "page_idx": 8
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "David Rydh. A minimal set of generators for the ring of multisymmetric functions. In Annales de l’institut Fourier, volume 57, pp. 1741–1769, 2007. ",
1526
+ "bbox": [
1527
+ 169,
1528
+ 777,
1529
+ 825,
1530
+ 808
1531
+ ],
1532
+ "page_idx": 8
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "Akiyoshi Sannai, Yuuki Takai, and Matthieu Cordonnier. Universal approximations of permutation invariant/equivariant functions by deep neural networks. arXiv preprint arXiv:1903.01939, 2019. ",
1537
+ "bbox": [
1538
+ 171,
1539
+ 816,
1540
+ 825,
1541
+ 847
1542
+ ],
1543
+ "page_idx": 8
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "Sho Sonoda and Noboru Murata. Neural network with unbounded activation functions is universal approximator. Applied and Computational Harmonic Analysis, 43(2):233–268, 2017. ",
1548
+ "bbox": [
1549
+ 171,
1550
+ 856,
1551
+ 823,
1552
+ 885
1553
+ ],
1554
+ "page_idx": 8
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 2019. ",
1559
+ "bbox": [
1560
+ 178,
1561
+ 895,
1562
+ 823,
1563
+ 924
1564
+ ],
1565
+ "page_idx": 8
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. ",
1570
+ "bbox": [
1571
+ 178,
1572
+ 103,
1573
+ 823,
1574
+ 146
1575
+ ],
1576
+ "page_idx": 9
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "Dmitry Yarotsky. Universal approximations of invariant maps by neural networks. arXiv preprint arXiv:1804.10306, 2018. ",
1581
+ "bbox": [
1582
+ 173,
1583
+ 161,
1584
+ 823,
1585
+ 190
1586
+ ],
1587
+ "page_idx": 9
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "text": "Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in neural information processing systems, pp. 3391–3401, 2017. ",
1592
+ "bbox": [
1593
+ 174,
1594
+ 205,
1595
+ 826,
1596
+ 248
1597
+ ],
1598
+ "page_idx": 9
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "A APPROXIMATING GRAPH CONVOLUTION LAYER WITH DEEPSETS",
1603
+ "text_level": 1,
1604
+ "bbox": [
1605
+ 176,
1606
+ 281,
1607
+ 745,
1608
+ 297
1609
+ ],
1610
+ "page_idx": 9
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "To test the ability of an equivariant universal model to approximate a graph convolution layer, we conducted an experiment where we applied a single graph convolution layer (see Appendix B for a full description of the graph convolution layers used in this paper) with 3 in features and 10 out features. We constructed a knn graph by taking 10 neighbors. We sampled 1000 examples in $\\mathbb { R } ^ { 1 0 0 \\times 3 }$ i.i.d from a $\\begin{array} { r } { \\mathcal { N } ( \\frac { 1 } { 2 } , 1 ) } \\end{array}$ distribution (per entry of $\\boldsymbol { X }$ ). The results are summarized in Figure 3. We regressed to the output of a graph convolution layer using the smooth $L _ { 1 }$ loss. ",
1615
+ "bbox": [
1616
+ 173,
1617
+ 314,
1618
+ 826,
1619
+ 398
1620
+ ],
1621
+ "page_idx": 9
1622
+ },
1623
+ {
1624
+ "type": "image",
1625
+ "img_path": "images/4977f9c73f73c91a611a3996fb5c3ae4b489ae9271643b0516748e47e4b99792.jpg",
1626
+ "image_caption": [
1627
+ "Figure 3: Using DeepSets to regress to a single graph convolution layer. In the left image we varied the depth and took a constant width of 200. In the right we varied the width and took a fixed depth of 6 layers. The $y$ axes are in log scale. Note that even a 2 layer DeepSets can approximate a graph convolution layer up to an error of $\\sim 0 . 0 1$ . "
1628
+ ],
1629
+ "image_footnote": [],
1630
+ "bbox": [
1631
+ 189,
1632
+ 434,
1633
+ 761,
1634
+ 585
1635
+ ],
1636
+ "page_idx": 9
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "B DESCRIPTION OF LAYERS ",
1641
+ "text_level": 1,
1642
+ "bbox": [
1643
+ 176,
1644
+ 691,
1645
+ 421,
1646
+ 707
1647
+ ],
1648
+ "page_idx": 9
1649
+ },
1650
+ {
1651
+ "type": "text",
1652
+ "text": "B.1 QUADRATIC LAYER ",
1653
+ "text_level": 1,
1654
+ "bbox": [
1655
+ 174,
1656
+ 724,
1657
+ 352,
1658
+ 739
1659
+ ],
1660
+ "page_idx": 9
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "One potential application of Theorem 2 is augmenting an equivariant neural network (Equation 7) with equivariant polynomial layers $P : \\mathbb { R } ^ { n \\times k } \\mathbb { R } ^ { n \\times l }$ of some maximal degree $d$ . This can be done in the following way: look for all solutions to $\\alpha , \\beta _ { 1 } , \\beta _ { 2 } , \\ldots \\in \\mathbb { N } ^ { k }$ so that $\\begin{array} { r } { \\left| \\alpha \\right| + \\sum _ { i } \\left| \\beta _ { i } \\right| \\leq d } \\end{array}$ . Any solution to this equation will give a basis element of the form $\\begin{array} { r } { \\pmb { p } ( \\pmb { X } ) = \\lceil \\pmb { x } _ { 1 } ^ { \\alpha } \\rceil \\prod _ { j } \\left( \\sum _ { i = 1 } ^ { n } \\pmb { x } _ { i } ^ { \\beta _ { j } } \\right) } \\end{array}$ . ",
1665
+ "bbox": [
1666
+ 173,
1667
+ 752,
1668
+ 825,
1669
+ 819
1670
+ ],
1671
+ "page_idx": 9
1672
+ },
1673
+ {
1674
+ "type": "text",
1675
+ "text": "In the paper we tested PointNetQT, an architecture that adds to PointNet a single quadratic equivariant layer. We opted to use only the quadratic transmission operators: For a matrix $\\bar { \\boldsymbol { X } } \\in \\mathbb { R } ^ { n \\times k }$ we define $\\boldsymbol { L } ( \\boldsymbol { X } ) \\in \\mathbb { R } ^ { \\tilde { n } \\times k }$ as follows: ",
1676
+ "bbox": [
1677
+ 174,
1678
+ 825,
1679
+ 825,
1680
+ 867
1681
+ ],
1682
+ "page_idx": 9
1683
+ },
1684
+ {
1685
+ "type": "equation",
1686
+ "img_path": "images/84b57d5672b1ba8a81212a3a3269ba0483fbeaec8308d9330a34a7a67f43c3bd.jpg",
1687
+ "text": "$$\n\\begin{array} { r } { L ( X ) = X W _ { 1 } + 1 \\mathbf { 1 } ^ { T } X W _ { 2 } + ( \\mathbf { 1 } \\mathbf { 1 } ^ { T } X ) \\odot ( \\mathbf { 1 } \\mathbf { 1 } ^ { T } X ) W _ { 3 } + ( X \\odot X ) W _ { 4 } + ( \\mathbf { 1 } \\mathbf { 1 } ^ { T } X ) \\odot X W _ { 5 } , } \\end{array}\n$$",
1688
+ "text_format": "latex",
1689
+ "bbox": [
1690
+ 179,
1691
+ 878,
1692
+ 813,
1693
+ 897
1694
+ ],
1695
+ "page_idx": 9
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "where $\\odot$ is a point-wise multiplication and $W _ { i } \\in \\mathbb { R } ^ { n \\times k } , i \\in [ 5 ]$ are the learnable parameters. ",
1700
+ "bbox": [
1701
+ 176,
1702
+ 907,
1703
+ 787,
1704
+ 925
1705
+ ],
1706
+ "page_idx": 9
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "B.2 GRAPH CONVOLUTION LAYER ",
1711
+ "text_level": 1,
1712
+ "bbox": [
1713
+ 176,
1714
+ 103,
1715
+ 426,
1716
+ 117
1717
+ ],
1718
+ "page_idx": 10
1719
+ },
1720
+ {
1721
+ "type": "text",
1722
+ "text": "We implement a graph convolution layers as follows ",
1723
+ "bbox": [
1724
+ 173,
1725
+ 128,
1726
+ 517,
1727
+ 145
1728
+ ],
1729
+ "page_idx": 10
1730
+ },
1731
+ {
1732
+ "type": "equation",
1733
+ "img_path": "images/be69056d3c81cf894ef8d8b957fdd85f5e2293a2bb55a3844bb220e1c03c0a3b.jpg",
1734
+ "text": "$$\nL ( X ) = B X W _ { 2 } + X W _ { 1 } + \\mathbf { 1 } c ^ { T }\n$$",
1735
+ "text_format": "latex",
1736
+ "bbox": [
1737
+ 382,
1738
+ 150,
1739
+ 616,
1740
+ 170
1741
+ ],
1742
+ "page_idx": 10
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "with $W _ { 1 } , W _ { 2 } , c$ learnable parameters. The matrix $\\textbf { { B } }$ is defined as in Kipf & Welling (2016) from the knn graph of the set. $\\stackrel { \\cdot } { B } = D ^ { - \\frac { 1 } { 2 } } A D ^ { - \\frac { 1 } { 2 } }$ where $_ { D }$ is the degree matrix of the graph and $\\pmb { A }$ is the adjacency matrix of the graph with added self-connections. ",
1747
+ "bbox": [
1748
+ 173,
1749
+ 176,
1750
+ 826,
1751
+ 220
1752
+ ],
1753
+ "page_idx": 10
1754
+ },
1755
+ {
1756
+ "type": "text",
1757
+ "text": "C IMPLEMENTATION DETAILS ",
1758
+ "text_level": 1,
1759
+ "bbox": [
1760
+ 176,
1761
+ 241,
1762
+ 436,
1763
+ 257
1764
+ ],
1765
+ "page_idx": 10
1766
+ },
1767
+ {
1768
+ "type": "text",
1769
+ "text": "Knapsack data generation. We constructed a dataset of $1 0 k$ training examples and $1 k$ test examples consisting of $5 0 \\times 4$ matrices. We took $w _ { 1 } = 1 0 0$ , $w _ { 2 } = 8 0$ , $w _ { 3 } = 5 0$ . To generate $\\pmb { X } \\in \\mathbb { R } ^ { 5 0 \\times 4 }$ , we draw an integer uniformly at random between 1 and 100 and randomly choose 50 integers between 1 as the first column of $\\boldsymbol { X }$ . We also randomly chose an integer between 1 and 25 and then randomly chose 150 integers in that range as the three last columns of $\\boldsymbol { X }$ . The labels for each input $\\boldsymbol { X }$ were computed by a standard dynamic programming approach, see Martello & Toth (1990). ",
1770
+ "bbox": [
1771
+ 173,
1772
+ 271,
1773
+ 826,
1774
+ 356
1775
+ ],
1776
+ "page_idx": 10
1777
+ },
1778
+ {
1779
+ "type": "text",
1780
+ "text": "Optimization. We implemented the experiments in Pytorch Paszke et al. (2017) with the Adam Kingma & Ba (2014) optimizer for learning. For the classification we used the cross entropy loss and trained for 150 epochs with learning rate 0.001, learning rate decay of 0.5 every 100 epochs and batch size 32. For the quadratic function regression we trained for 150 epochs with leaning rate of 0.001, learning rate decay 0.1 every 50 epochs and batch size 64; for the regression to the leading eigen vector we trained for 50 epochs with leaning rate of 0.001 and batch size 32. To regress to the output of a single graph convolution layer we trained for 200 epochs with leaning rate of 0.001 and batch size 32. ",
1781
+ "bbox": [
1782
+ 173,
1783
+ 371,
1784
+ 825,
1785
+ 483
1786
+ ],
1787
+ "page_idx": 10
1788
+ }
1789
+ ]
parse/train/HkxTwkrKDB/HkxTwkrKDB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxTwkrKDB/HkxTwkrKDB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyXBcYg0b/HyXBcYg0b.md ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RESIDUAL GATED GRAPH CONVNETS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Graph-structured data such as social networks, functional brain networks, gene regulatory networks, communications networks have brought the interest in generalizing deep learning techniques to graph domains. In this paper, we are interested to design neural networks for graphs with variable length in order to solve learning problems such as vertex classification, graph classification, graph regression, and graph generative tasks. Most existing works have focused on recurrent neural networks (RNNs) to learn meaningful representations of graphs, and more recently new convolutional neural networks (ConvNets) have been introduced. In this work, we want to compare rigorously these two fundamental families of architectures to solve graph learning tasks. We review existing graph RNN and ConvNet architectures, and propose natural extension of LSTM and ConvNet to graphs with arbitrary size. Then, we design a set of analytically controlled experiments on two basic graph problems, i.e. subgraph matching and graph clustering, to test the different architectures. Numerical results show that the proposed graph ConvNets are $3 . 1 7 \%$ more accurate and $1 . 5 – 4 \mathrm { x }$ faster than graph RNNs. Graph ConvNets are also $36 \%$ more accurate than variational (non-learning) techniques. Finally, the most effective graph ConvNet architecture uses gated edges and residuality. Residuality plays an essential role to learn multi-layer architectures as they provide a $10 \%$ gain of performance.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Convolutional neural networks of LeCun et al. (1998) and recurrent neural networks of Hochreiter & Schmidhuber (1997) are deep learning architectures that have been applied with great success to computer vision (CV) and natural language processing (NLP) tasks. Such models require the data domain to be regular, such as 2D or 3D Euclidean grids for CV and 1D line for NLP. Beyond CV and NLP, data does not usually lie on regular domains but on heterogeneous graph domains. Users on social networks, functional time series on brain structures, gene DNA on regulatory networks, IP packets on telecommunication networks are a a few examples to motivate the development of new neural network techniques that can be applied to graphs. One possible classification of these techniques is to consider neural network architectures with fixed length graphs and variable length graphs.
12
+
13
+ In the case of graphs with fixed length, a family of convolutional neural networks has been developed on spectral graph theory by Chung (1997). The early work of Bruna et al. (2013) proposed to formulate graph convolutional operations in the spectral domain with the graph Laplacian, as an analogy of the Euclidean Fourier transform as proposed by Hammond et al. (2011). This work was extended by Henaff et al. (2015) to smooth spectral filters for spatial localization. Defferrard et al. (2016) used Chebyshev polynomials to achieve linear complexity for sparse graphs, Levie et al. (2017) applied Cayley polynomials to focus on narrow-band frequencies, and Monti et al. (2017b) dealt with multiple (fixed) graphs. Finally, Kipf & Welling (2017) simplified the spectral convnets architecture using 1-hop filters to solve the semi-supervised clustering task. For related works, see also the works of Bronstein et al. (2017b), Bronstein et al. (2017a) and references therein.
14
+
15
+ For graphs with variable length, a generic formulation was proposed by Gori et al. (2005); Scarselli et al. (2009) based on recurrent neural networks. The authors defined a multilayer perceptron of a vanilla RNN. This work was extended by Li et al. (2016) using a GRU architecture and a hidden state that captures the average information in local neighborhoods of the graph. The work of Sukhbaatar et al. (2016) introduced a vanilla graph ConvNet and used this new architecture to solve learning communication tasks. Marcheggiani & Titov (2017) introduced an edge gating mechanism in graph ConvNets for semantic role labeling. Finally, Bruna & Li (2017) designed a network to learn nonlinear approximations of the power of graph Laplacian operators, and applied it to the unsupervised graph clustering problem. Other works for drugs design, computer graphics and vision are presented by Duvenaud et al. (2015); Boscaini et al. (2016); Monti et al. (2017a).
16
+
17
+ In this work, we study the two fundamental classes of neural networks, RNNs and ConvNets, in the context of graphs with arbitrary length. Section 2 reviews the existing techniques. Section 3 presents the new graph NN models. Section 4 reports the numerical experiments.
18
+
19
+ # 2 NEURAL NETWORKS FOR GRAPHS WITH ARBITRARY LENGTH
20
+
21
+ # 2.1 RECURRENT NEURAL NETWORKS
22
+
23
+ Generic formulation. Consider a standard RNN for word prediction in natural language processing. Let $h _ { i }$ be the feature vector associated with word $i$ in the sequence. In a regular vanilla RNN, $h _ { i }$ is computed with the feature vector $h _ { j }$ from the previous step and the current word $x _ { i }$ , so we have:
24
+
25
+ $$
26
+ h _ { i } = f _ { \mathrm { V R N N } } \left( \begin{array} { l } { x _ { i } \ , \ \{ h _ { j } : j = i - 1 \} } \end{array} \right)
27
+ $$
28
+
29
+ The notion of neighborhood for regular RNNs is the previous step in the sequence. For graphs, the notion of neighborhood is given by the graph structure. If $h _ { i }$ stands for the feature vector of vertex $i$ , then the most generic version of a feature vector for a graph RNN is
30
+
31
+ $$
32
+ h _ { i } = f _ { \mathrm { G - R N N } } ( \begin{array} { l } { x _ { i } } \end{array} , \begin{array} { l } { \{ h _ { j } : j i \} } \end{array} )
33
+ $$
34
+
35
+ where $x _ { i }$ refers to a data vector and $\{ h _ { j } : j i \}$ denotes the set of feature vectors of the neighboring vertices. Observe that the set $\{ h _ { j } \}$ is unordered, meaning that $h _ { i }$ is intrinsic, i.e. invariant by vertex re-indexing (no vertex matching between graphs is required). Other properties of $f _ { \mathrm { G - R N N } }$ are locality as only neighbors of vertex $i$ are considered, weight sharing, and such vector is independent of the graph length. In summary, to define a feature vector in a graph RNN, one needs a mapping $f$ that takes as input an unordered set of vectors $\{ h _ { j } \}$ , i.e. the feature vectors of all neighboring vertices, and a data vector $x _ { i }$ , Figure 1(a).
36
+
37
+ We refer to the mapping $f _ { \mathrm { G - R N N } }$ as the neighborhood transfer function in graph RNNs. In a regular RNN, each neighbor as a distinct position relatively to the current word (1 position left from the center). In a graph, if the edges are not weighted or annotated, neighbors are not distinguishable. The only vertex which is special is the center vertex around which the neighborhood is built. This explains the generic formulation of Eq. (1). This type of formalism for deep learning for graphs with variable length is described by Scarselli et al. (2009); Gilmer et al. (2017); Bronstein et al. (2017a) with slightly different terminology and notations.
38
+
39
+ Graph Neural Networks of Scarselli et al. (2009). The earliest work of graph RNNs for arbitrary graphs was introduced by Gori et al. (2005); Scarselli et al. (2009). The authors proposed to use a vanilla RNN with a multilayer perceptron to define the feature vector $h _ { i }$ :
40
+
41
+ $$
42
+ h _ { i } = f _ { \mathrm { G \cdot V R N } } ( x _ { i } , \{ h _ { j } : j i \} ) = \sum _ { j i } \mathcal { C } _ { \mathrm { G \cdot V R N } } ( x _ { i } , h _ { j } )
43
+ $$
44
+
45
+ with
46
+
47
+ $$
48
+ \mathcal { C } _ { \mathrm { G - V R N N } } ( x _ { i } , h _ { j } ) = A \sigma ( B \sigma ( U x _ { i } + V h _ { j } ) ) ,
49
+ $$
50
+
51
+ and $\sigma$ is the sigmoid function, $A , B , U , V$ are the weight parameters to learn.
52
+
53
+ Minimization of Eq. (2) does not hold a closed-form solution as the dependence computational graph of the model is not a directed acyclic graph (DAG). Scarselli et al. (2009) proposed a fixed-point iterative scheme: for $t = 0 , 1 , 2 , \ldots$ .
54
+
55
+ $$
56
+ h _ { i } ^ { t + 1 } = \sum _ { j i } { \mathcal { C } } ( x _ { i } , h _ { j } ^ { t } ) , \quad h _ { i } ^ { t = 0 } = 0 \ \forall i .
57
+ $$
58
+
59
+ The iterative scheme is guaranteed to converge as long as the mapping is contractive, which can be a strong assumption. Besides, a large number of iterations can be computational expensive.
60
+
61
+ ![](images/ae08cb64e7e1f123a452ccae4f2f714f7c91898685153b01f5b0bf6018a27c4c.jpg)
62
+ Figure 1: Generic feature representation $h _ { i }$ of vertex $i$ on a graph RNN (a) and a graph convNet (b).
63
+
64
+ Gated Graph Neural Networks of Li et al. (2016). In this work, the authors use the gated recurrent units (GRU) of Chung et al. (2014):
65
+
66
+ $$
67
+ h _ { i } = f _ { \mathrm { G - G R U } } ( x _ { i } , \{ h _ { j } : j i \} ) = \mathcal { C } _ { \mathrm { G - G R U } } ( x _ { i } , \sum _ { j i } h _ { j } )
68
+ $$
69
+
70
+ As the minimization of Eq. (4) does not have an analytical solution, Li et al. (2016) designed the following iterative scheme:
71
+
72
+ $$
73
+ \begin{array} { r c l l } { { { h } _ { i } ^ { t + 1 } } } & { { = } } & { { \displaystyle { \mathcal C } _ { \mathrm { G - G R U } } ( h _ { i } ^ { t } , \bar { h } _ { i } ^ { t } ) , } } & { { \displaystyle h _ { i } ^ { t = 0 } = x _ { i } \forall i , } } \\ { { \mathrm { w h e r e } \quad \bar { h } _ { i } ^ { t } } } & { { = } } & { { \displaystyle \sum _ { j \to i } h _ { j } ^ { t } , } } \end{array}
74
+ $$
75
+
76
+ and $\mathcal { C } _ { \mathrm { G - G R U } } ( h _ { i } ^ { t } , \bar { h } _ { i } ^ { t } )$ is equal to
77
+
78
+ $$
79
+ \begin{array} { r c l } { { z _ { i } ^ { t + 1 } } } & { { = } } & { { \sigma ( U _ { z } h _ { i } ^ { t } + V _ { z } \bar { h } _ { i } ^ { t } ) } } \\ { { r _ { i } ^ { t + 1 } } } & { { = } } & { { \sigma ( U _ { r } h _ { i } ^ { t } + V _ { r } \bar { h } _ { i } ^ { t } ) } } \\ { { \tilde { h } _ { i } ^ { t + 1 } } } & { { = } } & { { \operatorname { t a n h } \bigl ( U _ { h } ( h _ { i } ^ { t } \odot r _ { i } ^ { t + 1 } ) + V _ { h } \bar { h } _ { i } ^ { t } \bigr ) } } \\ { { h _ { i } ^ { t + 1 } } } & { { = } } & { { ( 1 - z _ { i } ^ { t + 1 } ) \odot h _ { i } ^ { t } + z _ { i } ^ { t + 1 } \odot \tilde { h } _ { i } ^ { t + 1 } , } } \end{array}
80
+ $$
81
+
82
+ where $\odot$ is the Hadamard point-wise multiplication operator. This model was used for NLP tasks by Li et al. (2016) and also in quantum chemistry by Gilmer et al. (2017) for fast organic molecule properties estimation, for which standard techniques (DFT) require expensive computational time.
83
+
84
+ Tree-Structured LSTM of Tai et al. (2015). The authors extended the original LSTM model of Hochreiter $\&$ Schmidhuber (1997) to a tree-graph structure:
85
+
86
+ $$
87
+ h _ { i } = f _ { \mathrm { T L S T M } } \left( x _ { i } , \left\{ h _ { j } : j \in C ( i ) \right\} \right) = \mathcal { C } _ { \mathrm { T L S T M } } ( x _ { i } , h _ { i } , \sum _ { j \in C ( i ) } h _ { j } ) ,
88
+ $$
89
+
90
+ where $C ( i )$ refers the set of children of node $i$ . $\begin{array} { r } { \mathcal { C } _ { \mathrm { T - L S T M } } ( x _ { i } , h _ { i } , \sum _ { j \in C ( i ) } h _ { j } ) } \end{array}$ is equal to
91
+
92
+ $$
93
+ \begin{array} { r c l } { \displaystyle \bar { h } _ { i } } & { = } & { \displaystyle \sum _ { j \in { \cal C } ( i ) } h _ { j } } \\ { \displaystyle i _ { i } } & { = } & { \sigma ( U _ { i } x _ { i } + V _ { i } \bar { h } _ { i } ) } \\ { \displaystyle o _ { i } } & { = } & { \sigma ( U _ { o } x _ { i } + V _ { o } \bar { h } _ { i } ) } \\ { \displaystyle \tilde { c } _ { i } } & { = } & { \mathrm { t a n h } \big ( U _ { c } x _ { i } + V _ { c } \bar { h } _ { i } \big ) } \\ { \displaystyle f _ { i j } } & { = } & { \sigma \big ( U _ { f } x _ { i } + V _ { f } h _ { j } \big ) } \\ { \displaystyle c _ { i } } & { = } & { i _ { i } \odot \tilde { c } _ { i } + { \displaystyle \sum _ { i \in { \cal C } ( i ) } f _ { i j } } \odot c _ { j } } \\ { \displaystyle h _ { i } } & { = } & { o _ { i } \odot \mathrm { t a n h } \big ( c _ { i } \big ) } \end{array}
94
+ $$
95
+
96
+ Unlike the works of Scarselli et al. (2009); Li et al. (2016), Tree-LSTM does not require an iterative process to update its feature vector $h _ { i }$ as the tree structure is also a DAG as original LSTM. Consequently, the feature representation (5) can be updated with a recurrent formula. Nevertheless, a tree is a special case of graphs, and such recurrence formula cannot be directly applied to arbitrary graph structure. A key property of this model is the function $f _ { i j }$ which acts as a gate on the edge from neighbor $j$ to vertex $i$ . Given the task, the gate will close to let the information flow from neighbor $j$ to vertex $i$ , or it will open to stop it. It seems to be an essential property for learning systems on graphs as some neighbors can be irrelevant. For example, for the community detection task, the graph neural network should learn which neighbors to communicate (same community) and which neighbors to ignore (different community). In different contexts, Dauphin et al. (2017) added a gated mechanism inside the regular ConvNets in order to improve language modeling for translation tasks, and van den Oord et al. (2016) considered a gated unit with the convolutional layers after activation, and used it for image generation.
97
+
98
+ # 2.2 CONVOLUTIONAL NEURAL NETWORKS
99
+
100
+ Generic formulation. Consider now a classical ConvNet for computer vision. Let $h _ { i j } ^ { \ell }$ denote the feature vector at layer $\ell$ associated with pixel $( i , j )$ . In a regular ConvNet, $h _ { i j } ^ { \ell + 1 }$ is obtained by applying a non linear transformation to the feature vectors $h _ { i ^ { \prime } j ^ { \prime } } ^ { \ell }$ for all pixels $( i ^ { \prime } , j ^ { \prime } )$ in a neighborhood of pixel $( i , j )$ . For example, with $3 \times 3$ filters, we would have:
101
+
102
+ $$
103
+ h _ { i j } ^ { \ell + 1 } = f _ { \mathrm { C N N } } ^ { \ell } \left( \left\{ h _ { i ^ { \prime } j ^ { \prime } } ^ { \ell } : | i - i ^ { \prime } | \leq 1 \mathrm { ~ a n d ~ } | j - j ^ { \prime } | \leq 1 \right\} \right)
104
+ $$
105
+
106
+ In the above, the notation $\{ h _ { i ^ { \prime } j ^ { \prime } } ^ { \ell } : | i - i ^ { \prime } | \le 1$ and $| j - j ^ { \prime } | \leq 1 \}$ denote the concatenation of all feature vectors $h _ { i ^ { \prime } j ^ { \prime } } ^ { \ell }$ belonging to the $3 \times 3$ neighborhood of vertex $( i , j )$ . In ConvNets, the notion of neighborhood is given by the euclidian distance. As previously noticed, for graphs, the notion of neighborhood is given by the graph structure. Thus, the most generic version of a feature vector $h _ { i }$ at vertex $i$ for a graph ConvNet is
107
+
108
+ $$
109
+ h _ { i } ^ { \ell + 1 } = f _ { \scriptscriptstyle \mathrm { G - C N N } } ( h _ { i } ^ { \ell } , \{ h _ { j } ^ { \ell } : j i \} )
110
+ $$
111
+
112
+ where $\{ h _ { j } ^ { \ell } : j i \}$ denotes the set of feature vectors of the neighboring vertices. In other words, to define a graph ConvNet, one needs a mapping $f _ { \mathrm { G - C N N } }$ taking as input a vector $h _ { i } ^ { \ell }$ (the feature vector of the center vertex) as well as an unordered set of vectors $\{ h _ { j } ^ { \ell } \}$ (the feature vectors of all neighboring vertices), see Figure 1(b). We also refer to the mapping $f _ { \mathrm { G - C N N } }$ as the neighborhood transfer function. In a regular ConvNet, each neighbor as a distinct position relatively to the center pixel (for example 1 pixel up and 1 pixel left from the center). As for graph RNNs, the only vertex which is special for graph ConvNets is the center vertex around which the neighborhood is built.
113
+
114
+ CommNets of Sukhbaatar et al. (2016). The authors introduced one of the simplest instantiations of a graph ConvNet with the following neighborhood transfer function:
115
+
116
+ $$
117
+ h _ { i } ^ { \ell + 1 } = f _ { \mathrm { G \cdot v C N N } } ^ { \ell } \left( h _ { i } ^ { \ell } , \frac { } { } \{ h _ { j } ^ { \ell } : j \to i \} \right) = \mathrm { R e L U } \left( U ^ { \ell } h _ { i } ^ { \ell } + V ^ { \ell } \sum _ { j \to i } h _ { j } ^ { \ell } \right) ,
118
+ $$
119
+
120
+ where $\ell$ denotes the layer level, and ReLU is the rectified linear unit. We will refer to this architecture as the vanilla graph ConvNet. Sukhbaatar et al. (2016) used this graph neural network to learn the communication between multiple agents to solve multiple tasks like traffic control.
121
+
122
+ Syntactic Graph Convolutional Networks of Marcheggiani $\pmb { \& }$ Titov (2017). The authors proposed the following transfer function:
123
+
124
+ $$
125
+ h _ { i } ^ { \ell + 1 } = f _ { \mathrm { s - G C N } } ^ { \ell } \left( \frac { } { } \{ h _ { j } ^ { \ell } : j \to i \} \ \right) = \mathrm { R e L U } \left( \sum _ { j \to i } \eta _ { i j } \odot V ^ { \ell } h _ { j } ^ { \ell } \right)
126
+ $$
127
+
128
+ where $\eta _ { i j }$ act as edge gates, and are computed by:
129
+
130
+ $$
131
+ \eta _ { i j } = \sigma \left( A ^ { \ell } h _ { i } ^ { \ell } + B ^ { \ell } h _ { j } ^ { \ell } \right) .
132
+ $$
133
+
134
+ These gated edges are very similar in spirit to the Tree-LSTM proposed in Tai et al. (2015). We believe this mechanism to be important for graphs, as they will be able to learn what edges are important for the graph learning task to be solved.
135
+
136
+ # 3 MODELS
137
+
138
+ Proposed Graph LSTM. First, we propose to extend the Tree-LSTM of Tai et al. (2015) to arbitrary graphs and multiple layers:
139
+
140
+ $$
141
+ { h } _ { i } ^ { \ell + 1 } = f _ { \mathrm { G \mathrm { \tiny { L S T M } } } } ^ { \ell } ( x _ { i } ^ { \ell } , \{ h _ { j } ^ { \ell } : j i \} ) = \mathcal { C } _ { \mathrm { G \mathrm { \tiny { L S T M } } } } ( x _ { i } ^ { \ell } , h _ { i } ^ { \ell } , \sum _ { j i } h _ { j } ^ { \ell } , c _ { i } ^ { \ell } )
142
+ $$
143
+
144
+ As there is no recurrent formula is the general case of graphs, we proceed as Scarselli et al. (2009) and use an iterative process to solve Eq. (10): At layer $\ell$ , for $t = 0 , 1 , . . . , T$
145
+
146
+ $$
147
+ \begin{array} { r l } { \bar { h } _ { \dot { i } } ^ { \ell , t } } & { = \displaystyle \sum _ { j i } h _ { j } ^ { \ell , t } , } \\ { { \dot { a } _ { i } ^ { \ell , t + 1 } } } & { = \sigma ( U _ { i } ^ { \ell } x _ { i } ^ { \ell } + V _ { i } ^ { \ell } { \bar { h } _ { i } ^ { \ell , t } } ) } \\ { { \dot { o } _ { i } ^ { \ell , t + 1 } } } & { = \sigma ( U _ { i } ^ { \ell } x _ { i } ^ { \ell } + V _ { i } ^ { \ell } { \bar { h } _ { i } ^ { \ell , t } } ) } \\ { { \dot { c } _ { i } ^ { \ell , t + 1 } } } & { = \mathrm { t a n h } ( { \bar { c } _ { i } ^ { \ell } x _ { i } ^ { \ell } + \bar { h } _ { i } ^ { \ell } \bar { h } _ { i } ^ { \ell , t } } ) } \\ { { \dot { f } _ { i } ^ { \ell , t + 1 } } } & { = \sigma ( U _ { i } ^ { \ell } x _ { i } ^ { \ell } + V _ { i } ^ { \ell } { \bar { h } _ { i } ^ { \ell , t } } ) } \\ { { \dot { c } _ { i } ^ { \ell , t + 1 } } } & { = { \dot { \iota } _ { i } ^ { \ell , t + 1 } } \odot { \bar { c } _ { i } ^ { \ell } } ^ { t + 1 } + \displaystyle \sum _ { j i } f _ { i j } ^ { \ell , t + 1 } \odot { c _ { j } ^ { \ell , t + 1 } } } \\ { { \dot { h } _ { \dot { i } } ^ { \ell , t + 1 } } } & { = { \dot { \sigma } _ { i } ^ { \ell , t + 1 } } \odot \mathrm { t a n h } ( { c } _ { i } ^ { \ell } t ^ { + 1 } ) } \end{array}
148
+ $$
149
+
150
+ and initial conditions: $\begin{array} { r c l } { { h _ { i } ^ { \ell , t = 0 } } } & { { = } } & { { c _ { i } ^ { \ell , t = 0 } = 0 , \forall i , \ell } } \\ { { x _ { i } ^ { \ell } } } & { { = } } & { { h _ { i } ^ { \ell - 1 , T } , x _ { i } ^ { \ell = 0 } = x _ { i } , \forall i , \ell } } \end{array}$
151
+
152
+ In other words, the vector $h _ { i } ^ { \ell + 1 }$ is computed by running the model from $t = 0 , . . , T$ at layer $\ell$ . It produces the vector $h _ { i } ^ { \ell , t = T }$ which becomes $h _ { i } ^ { \ell + 1 }$ and also the input $x _ { i } ^ { \ell + 1 }$ for the next layer. The proposed Graph LSTM model differs from Liang et al. (2016); Peng et al. (2017) mostly because the cell $\mathcal { C } _ { \mathrm { G - L S T M } }$ in these previous models is not iterated over multiple times $T$ , which reduces the performance of Graph LSTM (see numerical experiments on Figure 4).
153
+
154
+ Proposed Gated Graph ConvNets. We leverage the vanilla graph ConvNet architecture of Sukhbaatar et al. (2016), Eq.(7), and the edge gating mechanism of Marcheggiani $\&$ Titov (2017), Eq.(8), by considering the following model:
155
+
156
+ $$
157
+ h _ { i } ^ { \ell + 1 } = f _ { \mathrm { G \ell { \mathrm { G C N N } } } } ^ { \ell } ( h _ { i } ^ { \ell } , \{ h _ { j } ^ { \ell } : j i \} ) = \mathrm { R e L U } ( U ^ { \ell } h _ { i } ^ { \ell } + \sum _ { j i } \eta _ { i j } \odot V ^ { \ell } h _ { j } ^ { \ell } )
158
+ $$
159
+
160
+ where $h _ { i } ^ { \ell = 0 } = x _ { i } , \forall i$ , and the edge gates $\eta _ { i j }$ are defined in Eq. (9). This model is the most generic formulation of a graph ConvNet (because it uses both the feature vector $h _ { i } ^ { \ell }$ of the center vertex and the feature vectors $h _ { j } ^ { \ell }$ of neighboring vertices) with the edge gating property.
161
+
162
+ Residual Gated Graph ConvNets. In addition, we formulate a multi-layer gated graph ConvNet using residual networks (ResNets) introduced by He et al. (2016). This boils down to add the identity operator between successive convolutional layers:
163
+
164
+ $$
165
+ \begin{array} { r l r } { h _ { i } ^ { \ell + 1 } } & { = } & { f ^ { \ell } \left( \ h _ { i } ^ { \ell } , \ \{ h _ { j } ^ { \ell } : j \to i \} \ \right) + h _ { i } ^ { \ell } . } \end{array}
166
+ $$
167
+
168
+ As we will see, such multi-layer strategy work very well for graph neural networks.
169
+
170
+ # 4 EXPERIMENTS
171
+
172
+ # 4.1 SUBGRAPH MATCHING
173
+
174
+ We consider the subgraph matching problem presented by Scarselli et al. (2009), see Figure 2(a).
175
+ The goal is to find the vertices of a given subgraph $P$ in larger graphs $G _ { k }$ with variable sizes.
176
+
177
+ ![](images/fe9266c226259a8fd9f2ac74589691f443597b836426fd524d2758931935a96a.jpg)
178
+ Figure 2: Graph learning tasks.
179
+
180
+ Identifying similar localized patterns in different graphs is one of the most basic tasks for graph neural networks. The subgraph $P$ and larger graph $G _ { k }$ are generated with the stochastic block model (SBM), see for example Abbe (2017). A SBM is a random graph which assigns communities to each node as follows: any two vertices are connected with the probability $p$ if they belong to the same community, or they are connected with the probability $q$ if they belong to different communities. For all experiments, we generate a subgraph $P$ of 20 nodes with a SBM $q = 0 . 5$ , and the signal on $P$ is generated with a uniform random distribution with a vocabulary of size 3, i.e. $\{ 0 , 1 , 2 \}$ . Larger graphs $G _ { k }$ are composed of 10 communities with sizes randomly generated between 15 and 25. The SBM of each community is $p = 0 . 5$ . The value of $q$ , which acts as the noise level, is 0.1, unless otherwise specified. Besides, the signal on $G _ { k }$ is also randomly generated between $\{ 0 , 1 , 2 \}$ . Inputs of all neural networks are the graphs with variable size, and outputs are vertex classification vectors of input graphs. Finally, the output of neural networks are simple fully connected layers from the hidden states.
181
+
182
+ All reported results are averaged over 5 trails. We run 5 algorithms; Gated Graph Neural Networks of Li et al. (2016), CommNets of Sukhbaatar et al. (2016), SyntacticNets of Marcheggiani & Titov (2017), and the proposed Graph LSTM and Gated ConvNets from Section 3. We upgrade the existing models of Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) with a multilayer version for Li et al. (2016) and using ResNets for all three architectures. We also use the batch normalization technique of Ioffe & Szegedy (2015) to speed up learning convergence for our algorithms, and also for Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017). The learning schedule is as follows: the maximum number of iterations, or equivalently the number of randomly generated graphs with the attached subgraph is 5,000 and the learning rate is decreased by a factor 1.25 if the loss averaged over 100 iterations does not decrease. The loss is the cross-entropy with 2 classes (the subgraph $P$ class and the class of the larger graph $G _ { k }$ ) respectively weighted by their sizes. The accuracy is the average of the diagonal of the normalized confusion matrix w.r.t. the cluster sizes (the confusion matrix measures the number of nodes correctly and badly classified for each class). We also report the time for a batch of 100 generated graphs. The choice of the architectures will be given for each experiment. All algorithms are optimized as follow. We fix a budget of parameters of $B = 1 0 0 K$ and a number of layers $L = 6$ . The number of hidden neurons $H$ for each layer is automatically computed. Then we manually select the optimizer and learning rate for each architecture that best minimize the loss. For this task, Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) and our gated ConvNets work well with Adam and learning rate 0.00075. Graph LSTM uses SGD with learning rate 0.075. Besides, the value of inner iterative steps $T$ for graph LSTM and Li et al. (2016) is 3.
183
+
184
+ The first experiment focuses on shallow graph neural networks, i.e. with a single layer $L = 1$ . We also vary the level of noise, that is the probability $q$ in the SBM that connects two vertices in two different communities (the higher $q$ the more mixed are the communities). The hyper-parameters are selected as follows. Besides $L = 1$ , the budget is $B = 1 0 0 K$ and the number of hidden neurons $H$ is automatically computed for each architecture to satisfy the budget. First row of Figure 3 reports the accuracy and time for the five algorithms and for different levels of noise $q = \{ 0 . \bar { 1 } , 0 . 2 , 0 . \bar { 3 } 5 , 0 . 5 \}$ . RNN architectures are plotted in dashed lines and ConvNet architectures in solid lines. For shallow networks, all RNN architectures (graph LSTM and Li et al. (2016)) performs much better, but they also take more time than the graph ConvNets architectures we propose, as well as Sukhbaatar et al.
185
+
186
+ (2016); Marcheggiani & Titov (2017). As expected, all algorithms performances decrease when the noise increases.
187
+
188
+ The second experiment demonstrates the importance of having multiple layers compared to shallow networks. We vary the number of layers $\bar { L } = \{ 1 , 2 , 4 , 6 , 1 \bar { 0 } \}$ and we fix the number of hidden neurons to $H \ : = \ : 5 0$ . Notice that the budget is not the same for all architectures. Second row of Figure 3 reports the accuracy and time w.r.t. $L$ (middle figure is a zoom in the left figure). All models clearly benefit with more layers, but RNN-based architectures see their performances decrease for a large number of layers. The ConvNet architectures benefit from large $L$ values, with the proposed graph ConvNet performing slightly better than Sukhbaatar et al. (2016); Marcheggiani & Titov (2017). Besides, all ConvNet models are faster than RNN models.
189
+
190
+ In the third experiment, we evaluate the algorithms for different budgets of parameters $B \ =$ $\{ 2 5 K , 5 0 K , 7 5 K , 1 0 0 K , 1 5 0 K \}$ . For this experiment, we fix the number of layers $L \ = \ 6$ and the number of neurons $H$ is automatically computed given the budget $B$ . The results are reported in the third row of Figure 3. For this task, the proposed graph ConvNet best performs for a large budget, while being faster than RNNs.
191
+
192
+ ![](images/dcde2c4f276a50992f1d845a91368215338f8db5149ca1d2eb732f34dd415995.jpg)
193
+ Figure 3: Subgraph matching: First row studies shallow networks w.r.t. noise. Second row investigates multilayer graph networks. Third row reports graph architectures w.r.t. budget.
194
+
195
+ We also show the influence of hyper-parameter $T$ for Li et al. (2016) and the proposed graph LSTM. We fix $H = 5 0$ , $L = 3$ and $B = 1 0 0 K$ . Figure 4 reports the results for $T = \{ 1 , 2 , 3 , 4 , 6 \}$ . The $T$ value has an undesirable impact on the performance of graph LSTM. Multi-layer Li et al. (2016) is not really influenced by $T$ . Finally, the computational time naturally increases with larger $T$ values.
196
+
197
+ # 4.2 SEMI-SUPERVISED CLUSTERING
198
+
199
+ In this section, we consider the semi-supervised clustering problem, see Figure 2(b). This is also a standard task in network science. For this work, it consists in finding 10 communities on a graph given 1 single label for each community. This problem is more discriminative w.r.t. to the architectures than the previous single pattern matching problem where there were only 2 clusters to find (i.e. $50 \%$ random chance). For clustering, we have 10 clusters (around $10 \%$ random chance). As in the previous section, we use SBM to generate graphs of communities with variable length. The size for each community is randomly generated between 5 and 25, and the label is randomly selected in each community. Probability $p$ is 0.5, and $q$ depends on the experiment. For this task, Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) and the proposed gated ConvNets work well with Adam and learning rate 0.00075. Graph LSTM uses SGD with learning rate 0.0075. The value of $T$ for graph LSTM and Li et al. (2016) is 3.
200
+
201
+ ![](images/29fc1a6ccd0fa8c50620d388786c8fec23357cf50224fe7466b1f70c4f0ff43f.jpg)
202
+ Figure 4: Influence of hyper-parameter $T$ on RNN architectures. Left figure is for graph matching, middle figure for semi-supervised clustering, and right figure are the batch time for the clustering task (same trend for matching).
203
+
204
+ The same set of experiments as in the previous task are reported in Figure 5. ConvNet architectures get clearly better than RNNs when the number of layers increase (middle row), with the proposed Gated ConvNet outperforming the other architectures. For a fixed number of layers $L = 6$ , our graph ConvNets and Marcheggiani & Titov (2017) best perform for all budgets, while paying a reasonable computational cost.
205
+
206
+ ![](images/ff4244af7cedb9a88d147a5dea9aab32820c1913899132c1e396441ff789676f.jpg)
207
+ Figure 5: Semi-supervised clustering: First row reports shallow networks w.r.t. noise $q$ . Second row shows multilayer graph networks w.r.t. $L$ . Third row is about graph architectures w.r.t. budget $B$ .
208
+
209
+ Next, we report the learning speed of the models. We fix $L \ = \ 6$ , $B \ = \ 1 0 0 K$ with $H$ being automatically computed to satisfy the budget. Figure 6 reports the accuracy w.r.t. time. The ConvNet architectures converge faster than RNNs, in particular for the semi-supervised task.
210
+
211
+ ![](images/c2aa29c01817800597511abc623b80c55cc6ca7fb741d397a4b0118a11a0e63b.jpg)
212
+ Figure 6: Learning speed of RNN and ConvNet architectures. Left figure is for graph matching and right figure semi-supervised clustering.
213
+
214
+ To close this study, we are interested in comparing learning based approaches to non-learning variational ones. To this aim, we solve the variational Dirichlet problem with labeled and unlabelled data as proposed by Grady (2006). We run 100 experiments and report an average accuracy of $4 5 . 3 7 \%$ using the same setting as the learning techniques (one label per class). The performance of the best learning model is $82 \%$ . Learning techniques produce better performances with a different paradigm as they use training data with ground truth, while variational techniques do not use such information. The downside is the need to see 2000 training graphs to get to $82 \%$ . However, when the training is done, the test complexity of these learning techniques is $O ( E )$ , where $E$ is the number of edges in the graph. This is an advantage over the variational Dirichlet model that solves a sparse linear system of equations with complexity ${ \cal O } ( E ^ { 3 / 2 } )$ , see Lipton et al. (1979).
215
+
216
+ # 5 CONCLUSION
217
+
218
+ This work explores the choice of graph neural network architectures for solving learning tasks with graphs of variable length. We developed analytically controlled experiments for two fundamental graph learning problems, that are subgraph matching and graph clustering. Numerical experiments showed that graph ConvNets had a monotonous increase of accuracy when the network gets deeper, unlike graph RNNs for which performance decreases for a large number of layers. This led us to consider the most generic formulation of gated graph ConvNets, Eq. (11). We also explored the benefit of residuality for graphs, Eq. (12). Without residuality, existing graph neural networks are not able to stack more than a few layers. This makes this property essential for graph neural networks, which receive a $10 \%$ boost of accuracy when more than 6 layers were stacked. Future work will focus on solving domain-specific problems in chemistry, physics, and neuroscience.
219
+
220
+ # REFERENCES
221
+
222
+ E. Abbe. Community Detection and Stochastic Block Models: Recent Developments. arXiv preprint arXiv:1703.10146, 2017.
223
+ D. Boscaini, J. Masci, E. Rodola, and M. M. Bronstein. Learning shape correspondence with \` anisotropic convolutional neural networks. In Proc. NIPS, 2016.
224
+ M. Bronstein, X. Bresson, A. Szlam, J. Bruna, and Y. LeCun. Tutorial on Geometric Deep Learning on Graphs and Manifolds. Conference on Computer Vision and Pattern Recognition (CVPR), 2017a.
225
+ M. M. Bronstein, J. Bruna, Y. LeCun, A. Szlam, and P. Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 2017b.
226
+ J. Bruna and X. Li. Community Detection with Graph Neural Networks. arXiv preprint arXiv:1705.08415, 2017.
227
+ J. Bruna, W. Zaremba, A. Szlam, and Y. LeCun. Spectral Networks and Deep Locally Connected Networks on Graphs. arXiv:1312.6203, 2013.
228
+ F. R. K. Chung. Spectral Graph Theory, volume 92. American Mathematical Society, 1997.
229
+ J. Chung, C. Gulcehre, K. Cho, and Y. Bengio. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv preprint arXiv:1412.3555, 2014.
230
+ Y. Dauphin, A. Fan, M. Auli, and D. Grangier. Language Modeling with Gated Convolutional Networks. International Conference on Machine Learning (ICML), 2017.
231
+ M. Defferrard, X. Bresson, and P. Vandergheynst. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. Advances in Neural Information Processing Systems (NIPS), pp. 3844–3852, 2016.
232
+ D. K. Duvenaud, D. Maclaurin, J. Iparraguirre, R. Bombarell, T. Hirzel, A. Aspuru-Guzik, and R. P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Proc. NIPS, 2015.
233
+ J. Gilmer, S. Schoenholz, P. Riley, O. Vinyals, and G. Dahl. Neural Message Passing for Quantum Chemistry. arXiv preprint arXiv:1704.01212, 2017.
234
+ M. Gori, G. Monfardini, and F. Scarselli. A New Model for Learning in Graph Domains. IEEE Transactions on Neural Networks, 2:729–734, 2005.
235
+ L. Grady. Random Walks for Image Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 28(11):1768–1783, 2006.
236
+ D. Hammond, P. Vandergheynst, and R. Gribonval. Wavelets on Graphs via Spectral Graph Theory. Applied and Computational Harmonic Analysis, 30(2):129–150, 2011.
237
+ K. He, X. Zhang, S. Ren, and J. Sun. Deep Residual Learning for Image Recognition. Computer Vision and Pattern Recognition, pp. 770–778, 2016.
238
+ M. Henaff, J. Bruna, and Y. LeCun. Deep Convolutional Networks on Graph-Structured Data. arXiv:1506.05163, 2015.
239
+ S. Hochreiter and J. Schmidhuber. Long Short-Term Memory. Neural Computation, 9(8):1735– 1780, 1997.
240
+ S. Ioffe and C. Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. International Conference on Machine Learning (ICML), pp. 448–456, 2015.
241
+ T. Kipf and M. Welling. Semi-Supervised Classification with Graph Convolutional Networks. International Conference on Learning Representations (ICLR), 2017.
242
+ Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-Based Learning Applied to Document Recognition. In Proceedings of the IEEE, 86(11), pp. 2278–2324, 1998.
243
+ R. Levie, F. Monti, X. Bresson, and M.M. Bronstein. CayleyNets: Graph Convolutional Neural Networks with Complex Rational Spectral Filters. arXiv preprint arXiv:1705.07664, 2017.
244
+ Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel. Gated Graph Sequence Neural Networks. International Conference on Learning Representations (ICLR), 2016.
245
+ X. Liang, X. Shen, J. Feng, L. Lin, and S. Yan. Semantic Object Parsing with graph LSTM. In European Conference on Computer Vision (ECCV), pp. 125–143, 2016.
246
+ R. Lipton, D. Rose, and R. Tarjan. Generalized Nested Dissection. SIAM Journal on Numerical Analysis, 16(2):346–358, 1979.
247
+ D. Marcheggiani and I. Titov. Encoding Sentences with Graph Convolutional Networks for Semantic Role Labeling. arXiv preprint arXiv:1703.04826, 2017.
248
+ F. Monti, D. Boscaini, J. Masci, E. Rodola, J. Svoboda, and M. M. Bronstein. Geometric deep \` learning on graphs and manifolds using mixture model CNNs. In Proc. CVPR, 2017a.
249
+ F. Monti, M.M. Bronstein, and X. Bresson. Geometric Matrix Completion with Recurrent MultiGraph Neural Networks. Advances in Neural Information Processing Systems (NIPS), 2017b.
250
+ N. Peng, H. Poon, C. Quirk, K. Toutanova, and W.T. Yih. Cross-Sentence N-ary Relation Extraction with Graph LSTMs. Transactions of the Association for Computational Linguistics, 5:101–115, 2017.
251
+ F. Scarselli, M. Gori, A. Tsoi, M. Hagenbuchner, and G. Monfardini. The Graph Neural Network Model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009.
252
+ S. Sukhbaatar, A Szlam, and R. Fergus. Learning Multiagent Communication with Backpropagation. Advances in Neural Information Processing Systems (NIPS), pp. 2244–2252, 2016.
253
+ K. Tai, R. Socher, and C. Manning. Improved Semantic Representations from Tree-Structured Long Short-Term Memory Networks. Association for Computational Linguistics (ACL), pp. 1556– 1566, 2015.
254
+ van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, and K. Kavukcuoglu. Conditional Image Generation with PixelCNN Decoders. In Advances in Neural Information Processing Systems (NIPS), pp. 4790–4798, 2016.
parse/train/HyXBcYg0b/HyXBcYg0b_content_list.json ADDED
@@ -0,0 +1,1099 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "RESIDUAL GATED GRAPH CONVNETS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 632,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 398,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Graph-structured data such as social networks, functional brain networks, gene regulatory networks, communications networks have brought the interest in generalizing deep learning techniques to graph domains. In this paper, we are interested to design neural networks for graphs with variable length in order to solve learning problems such as vertex classification, graph classification, graph regression, and graph generative tasks. Most existing works have focused on recurrent neural networks (RNNs) to learn meaningful representations of graphs, and more recently new convolutional neural networks (ConvNets) have been introduced. In this work, we want to compare rigorously these two fundamental families of architectures to solve graph learning tasks. We review existing graph RNN and ConvNet architectures, and propose natural extension of LSTM and ConvNet to graphs with arbitrary size. Then, we design a set of analytically controlled experiments on two basic graph problems, i.e. subgraph matching and graph clustering, to test the different architectures. Numerical results show that the proposed graph ConvNets are $3 . 1 7 \\%$ more accurate and $1 . 5 – 4 \\mathrm { x }$ faster than graph RNNs. Graph ConvNets are also $36 \\%$ more accurate than variational (non-learning) techniques. Finally, the most effective graph ConvNet architecture uses gated edges and residuality. Residuality plays an essential role to learn multi-layer architectures as they provide a $10 \\%$ gain of performance. ",
40
+ "bbox": [
41
+ 233,
42
+ 239,
43
+ 764,
44
+ 503
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 530,
55
+ 334,
56
+ 546
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Convolutional neural networks of LeCun et al. (1998) and recurrent neural networks of Hochreiter & Schmidhuber (1997) are deep learning architectures that have been applied with great success to computer vision (CV) and natural language processing (NLP) tasks. Such models require the data domain to be regular, such as 2D or 3D Euclidean grids for CV and 1D line for NLP. Beyond CV and NLP, data does not usually lie on regular domains but on heterogeneous graph domains. Users on social networks, functional time series on brain structures, gene DNA on regulatory networks, IP packets on telecommunication networks are a a few examples to motivate the development of new neural network techniques that can be applied to graphs. One possible classification of these techniques is to consider neural network architectures with fixed length graphs and variable length graphs. ",
63
+ "bbox": [
64
+ 174,
65
+ 561,
66
+ 825,
67
+ 700
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In the case of graphs with fixed length, a family of convolutional neural networks has been developed on spectral graph theory by Chung (1997). The early work of Bruna et al. (2013) proposed to formulate graph convolutional operations in the spectral domain with the graph Laplacian, as an analogy of the Euclidean Fourier transform as proposed by Hammond et al. (2011). This work was extended by Henaff et al. (2015) to smooth spectral filters for spatial localization. Defferrard et al. (2016) used Chebyshev polynomials to achieve linear complexity for sparse graphs, Levie et al. (2017) applied Cayley polynomials to focus on narrow-band frequencies, and Monti et al. (2017b) dealt with multiple (fixed) graphs. Finally, Kipf & Welling (2017) simplified the spectral convnets architecture using 1-hop filters to solve the semi-supervised clustering task. For related works, see also the works of Bronstein et al. (2017b), Bronstein et al. (2017a) and references therein. ",
74
+ "bbox": [
75
+ 174,
76
+ 708,
77
+ 825,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "For graphs with variable length, a generic formulation was proposed by Gori et al. (2005); Scarselli et al. (2009) based on recurrent neural networks. The authors defined a multilayer perceptron of a vanilla RNN. This work was extended by Li et al. (2016) using a GRU architecture and a hidden state that captures the average information in local neighborhoods of the graph. The work of Sukhbaatar et al. (2016) introduced a vanilla graph ConvNet and used this new architecture to solve learning communication tasks. Marcheggiani & Titov (2017) introduced an edge gating mechanism in graph ConvNets for semantic role labeling. Finally, Bruna & Li (2017) designed a network to learn nonlinear approximations of the power of graph Laplacian operators, and applied it to the unsupervised graph clustering problem. Other works for drugs design, computer graphics and vision are presented by Duvenaud et al. (2015); Boscaini et al. (2016); Monti et al. (2017a). ",
85
+ "bbox": [
86
+ 174,
87
+ 854,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 174
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this work, we study the two fundamental classes of neural networks, RNNs and ConvNets, in the context of graphs with arbitrary length. Section 2 reviews the existing techniques. Section 3 presents the new graph NN models. Section 4 reports the numerical experiments. ",
107
+ "bbox": [
108
+ 174,
109
+ 180,
110
+ 823,
111
+ 223
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 NEURAL NETWORKS FOR GRAPHS WITH ARBITRARY LENGTH ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 243,
122
+ 714,
123
+ 258
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "2.1 RECURRENT NEURAL NETWORKS",
130
+ "text_level": 1,
131
+ "bbox": [
132
+ 176,
133
+ 273,
134
+ 446,
135
+ 289
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "Generic formulation. Consider a standard RNN for word prediction in natural language processing. Let $h _ { i }$ be the feature vector associated with word $i$ in the sequence. In a regular vanilla RNN, $h _ { i }$ is computed with the feature vector $h _ { j }$ from the previous step and the current word $x _ { i }$ , so we have: ",
142
+ "bbox": [
143
+ 173,
144
+ 299,
145
+ 825,
146
+ 342
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "equation",
152
+ "img_path": "images/958918586b03fa654db319fb2b44b1df37b3b4047ac21ca115a6ecd81ff933fc.jpg",
153
+ "text": "$$\nh _ { i } = f _ { \\mathrm { V R N N } } \\left( \\begin{array} { l } { x _ { i } \\ , \\ \\{ h _ { j } : j = i - 1 \\} } \\end{array} \\right)\n$$",
154
+ "text_format": "latex",
155
+ "bbox": [
156
+ 377,
157
+ 348,
158
+ 619,
159
+ 366
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "The notion of neighborhood for regular RNNs is the previous step in the sequence. For graphs, the notion of neighborhood is given by the graph structure. If $h _ { i }$ stands for the feature vector of vertex $i$ , then the most generic version of a feature vector for a graph RNN is ",
166
+ "bbox": [
167
+ 174,
168
+ 371,
169
+ 825,
170
+ 414
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "equation",
176
+ "img_path": "images/16794c50f835dc7fc203041f303fe1dc374da25c09ca89e9f35f7afc39bd4b48.jpg",
177
+ "text": "$$\nh _ { i } = f _ { \\mathrm { G - R N N } } ( \\begin{array} { l } { x _ { i } } \\end{array} , \\begin{array} { l } { \\{ h _ { j } : j i \\} } \\end{array} )\n$$",
178
+ "text_format": "latex",
179
+ "bbox": [
180
+ 388,
181
+ 420,
182
+ 609,
183
+ 438
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "where $x _ { i }$ refers to a data vector and $\\{ h _ { j } : j i \\}$ denotes the set of feature vectors of the neighboring vertices. Observe that the set $\\{ h _ { j } \\}$ is unordered, meaning that $h _ { i }$ is intrinsic, i.e. invariant by vertex re-indexing (no vertex matching between graphs is required). Other properties of $f _ { \\mathrm { G - R N N } }$ are locality as only neighbors of vertex $i$ are considered, weight sharing, and such vector is independent of the graph length. In summary, to define a feature vector in a graph RNN, one needs a mapping $f$ that takes as input an unordered set of vectors $\\{ h _ { j } \\}$ , i.e. the feature vectors of all neighboring vertices, and a data vector $x _ { i }$ , Figure 1(a). ",
190
+ "bbox": [
191
+ 173,
192
+ 443,
193
+ 825,
194
+ 541
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "We refer to the mapping $f _ { \\mathrm { G - R N N } }$ as the neighborhood transfer function in graph RNNs. In a regular RNN, each neighbor as a distinct position relatively to the current word (1 position left from the center). In a graph, if the edges are not weighted or annotated, neighbors are not distinguishable. The only vertex which is special is the center vertex around which the neighborhood is built. This explains the generic formulation of Eq. (1). This type of formalism for deep learning for graphs with variable length is described by Scarselli et al. (2009); Gilmer et al. (2017); Bronstein et al. (2017a) with slightly different terminology and notations. ",
201
+ "bbox": [
202
+ 173,
203
+ 547,
204
+ 825,
205
+ 646
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Graph Neural Networks of Scarselli et al. (2009). The earliest work of graph RNNs for arbitrary graphs was introduced by Gori et al. (2005); Scarselli et al. (2009). The authors proposed to use a vanilla RNN with a multilayer perceptron to define the feature vector $h _ { i }$ : ",
212
+ "bbox": [
213
+ 176,
214
+ 651,
215
+ 823,
216
+ 694
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "equation",
222
+ "img_path": "images/b649bebc96924662e3b0bd5ac207347a6d42b4332133a35af723139942a6aabb.jpg",
223
+ "text": "$$\nh _ { i } = f _ { \\mathrm { G \\cdot V R N } } ( x _ { i } , \\{ h _ { j } : j i \\} ) = \\sum _ { j i } \\mathcal { C } _ { \\mathrm { G \\cdot V R N } } ( x _ { i } , h _ { j } )\n$$",
224
+ "text_format": "latex",
225
+ "bbox": [
226
+ 303,
227
+ 700,
228
+ 661,
229
+ 736
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "with ",
236
+ "bbox": [
237
+ 173,
238
+ 742,
239
+ 205,
240
+ 756
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "equation",
246
+ "img_path": "images/d109cfb8d178f93c16927e0e85e024c9aeacb88c0aa147e3427896981516e96b.jpg",
247
+ "text": "$$\n\\mathcal { C } _ { \\mathrm { G - V R N N } } ( x _ { i } , h _ { j } ) = A \\sigma ( B \\sigma ( U x _ { i } + V h _ { j } ) ) ,\n$$",
248
+ "text_format": "latex",
249
+ "bbox": [
250
+ 343,
251
+ 762,
252
+ 619,
253
+ 780
254
+ ],
255
+ "page_idx": 1
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "and $\\sigma$ is the sigmoid function, $A , B , U , V$ are the weight parameters to learn. ",
260
+ "bbox": [
261
+ 174,
262
+ 785,
263
+ 676,
264
+ 801
265
+ ],
266
+ "page_idx": 1
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Minimization of Eq. (2) does not hold a closed-form solution as the dependence computational graph of the model is not a directed acyclic graph (DAG). Scarselli et al. (2009) proposed a fixed-point iterative scheme: for $t = 0 , 1 , 2 , \\ldots$ . ",
271
+ "bbox": [
272
+ 174,
273
+ 806,
274
+ 825,
275
+ 849
276
+ ],
277
+ "page_idx": 1
278
+ },
279
+ {
280
+ "type": "equation",
281
+ "img_path": "images/b489c08f6aa03d3388437662fb12832c60d41c5c1416881e265ab1d43c4348bf.jpg",
282
+ "text": "$$\nh _ { i } ^ { t + 1 } = \\sum _ { j i } { \\mathcal { C } } ( x _ { i } , h _ { j } ^ { t } ) , \\quad h _ { i } ^ { t = 0 } = 0 \\ \\forall i .\n$$",
283
+ "text_format": "latex",
284
+ "bbox": [
285
+ 354,
286
+ 854,
287
+ 611,
288
+ 890
289
+ ],
290
+ "page_idx": 1
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "The iterative scheme is guaranteed to converge as long as the mapping is contractive, which can be a strong assumption. Besides, a large number of iterations can be computational expensive. ",
295
+ "bbox": [
296
+ 173,
297
+ 895,
298
+ 823,
299
+ 924
300
+ ],
301
+ "page_idx": 1
302
+ },
303
+ {
304
+ "type": "image",
305
+ "img_path": "images/ae08cb64e7e1f123a452ccae4f2f714f7c91898685153b01f5b0bf6018a27c4c.jpg",
306
+ "image_caption": [
307
+ "Figure 1: Generic feature representation $h _ { i }$ of vertex $i$ on a graph RNN (a) and a graph convNet (b). "
308
+ ],
309
+ "image_footnote": [],
310
+ "bbox": [
311
+ 204,
312
+ 114,
313
+ 794,
314
+ 306
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "Gated Graph Neural Networks of Li et al. (2016). In this work, the authors use the gated recurrent units (GRU) of Chung et al. (2014): ",
321
+ "bbox": [
322
+ 173,
323
+ 358,
324
+ 823,
325
+ 387
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/06eec6349d9d46888e94f499833a59eac1aa985e768f2cfc2eec67202ce578f3.jpg",
332
+ "text": "$$\nh _ { i } = f _ { \\mathrm { G - G R U } } ( x _ { i } , \\{ h _ { j } : j i \\} ) = \\mathcal { C } _ { \\mathrm { G - G R U } } ( x _ { i } , \\sum _ { j i } h _ { j } )\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 312,
336
+ 390,
337
+ 653,
338
+ 425
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "As the minimization of Eq. (4) does not have an analytical solution, Li et al. (2016) designed the following iterative scheme: ",
345
+ "bbox": [
346
+ 176,
347
+ 428,
348
+ 823,
349
+ 455
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "equation",
355
+ "img_path": "images/27c4086e8ab2da494e096402bc85eefd9c0b600b046ffc8ac6d9504a97c2e380.jpg",
356
+ "text": "$$\n\\begin{array} { r c l l } { { { h } _ { i } ^ { t + 1 } } } & { { = } } & { { \\displaystyle { \\mathcal C } _ { \\mathrm { G - G R U } } ( h _ { i } ^ { t } , \\bar { h } _ { i } ^ { t } ) , } } & { { \\displaystyle h _ { i } ^ { t = 0 } = x _ { i } \\forall i , } } \\\\ { { \\mathrm { w h e r e } \\quad \\bar { h } _ { i } ^ { t } } } & { { = } } & { { \\displaystyle \\sum _ { j \\to i } h _ { j } ^ { t } , } } \\end{array}\n$$",
357
+ "text_format": "latex",
358
+ "bbox": [
359
+ 333,
360
+ 457,
361
+ 658,
362
+ 513
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "and $\\mathcal { C } _ { \\mathrm { G - G R U } } ( h _ { i } ^ { t } , \\bar { h } _ { i } ^ { t } )$ is equal to ",
369
+ "bbox": [
370
+ 174,
371
+ 516,
372
+ 367,
373
+ 534
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "equation",
379
+ "img_path": "images/9b3a0e4fa2dd28c57e6a22258f137fb8d6921f5c3baf90aeb8be5c6ba75645d4.jpg",
380
+ "text": "$$\n\\begin{array} { r c l } { { z _ { i } ^ { t + 1 } } } & { { = } } & { { \\sigma ( U _ { z } h _ { i } ^ { t } + V _ { z } \\bar { h } _ { i } ^ { t } ) } } \\\\ { { r _ { i } ^ { t + 1 } } } & { { = } } & { { \\sigma ( U _ { r } h _ { i } ^ { t } + V _ { r } \\bar { h } _ { i } ^ { t } ) } } \\\\ { { \\tilde { h } _ { i } ^ { t + 1 } } } & { { = } } & { { \\operatorname { t a n h } \\bigl ( U _ { h } ( h _ { i } ^ { t } \\odot r _ { i } ^ { t + 1 } ) + V _ { h } \\bar { h } _ { i } ^ { t } \\bigr ) } } \\\\ { { h _ { i } ^ { t + 1 } } } & { { = } } & { { ( 1 - z _ { i } ^ { t + 1 } ) \\odot h _ { i } ^ { t } + z _ { i } ^ { t + 1 } \\odot \\tilde { h } _ { i } ^ { t + 1 } , } } \\end{array}\n$$",
381
+ "text_format": "latex",
382
+ "bbox": [
383
+ 351,
384
+ 535,
385
+ 643,
386
+ 617
387
+ ],
388
+ "page_idx": 2
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "where $\\odot$ is the Hadamard point-wise multiplication operator. This model was used for NLP tasks by Li et al. (2016) and also in quantum chemistry by Gilmer et al. (2017) for fast organic molecule properties estimation, for which standard techniques (DFT) require expensive computational time. ",
393
+ "bbox": [
394
+ 181,
395
+ 618,
396
+ 820,
397
+ 661
398
+ ],
399
+ "page_idx": 2
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Tree-Structured LSTM of Tai et al. (2015). The authors extended the original LSTM model of Hochreiter $\\&$ Schmidhuber (1997) to a tree-graph structure: ",
404
+ "bbox": [
405
+ 169,
406
+ 666,
407
+ 823,
408
+ 695
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/83184bc10330b916590da43a12e108a85233aea92617bd6390e8d5b5e61a66e3.jpg",
415
+ "text": "$$\nh _ { i } = f _ { \\mathrm { T L S T M } } \\left( x _ { i } , \\left\\{ h _ { j } : j \\in C ( i ) \\right\\} \\right) = \\mathcal { C } _ { \\mathrm { T L S T M } } ( x _ { i } , h _ { i } , \\sum _ { j \\in C ( i ) } h _ { j } ) ,\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 276,
419
+ 699,
420
+ 687,
421
+ 734
422
+ ],
423
+ "page_idx": 2
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "where $C ( i )$ refers the set of children of node $i$ . $\\begin{array} { r } { \\mathcal { C } _ { \\mathrm { T - L S T M } } ( x _ { i } , h _ { i } , \\sum _ { j \\in C ( i ) } h _ { j } ) } \\end{array}$ is equal to ",
428
+ "bbox": [
429
+ 174,
430
+ 737,
431
+ 735,
432
+ 756
433
+ ],
434
+ "page_idx": 2
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "img_path": "images/3edba823aeef57583d6143e984e8fcac162789bb85bba448eede530cc2a28f2e.jpg",
439
+ "text": "$$\n\\begin{array} { r c l } { \\displaystyle \\bar { h } _ { i } } & { = } & { \\displaystyle \\sum _ { j \\in { \\cal C } ( i ) } h _ { j } } \\\\ { \\displaystyle i _ { i } } & { = } & { \\sigma ( U _ { i } x _ { i } + V _ { i } \\bar { h } _ { i } ) } \\\\ { \\displaystyle o _ { i } } & { = } & { \\sigma ( U _ { o } x _ { i } + V _ { o } \\bar { h } _ { i } ) } \\\\ { \\displaystyle \\tilde { c } _ { i } } & { = } & { \\mathrm { t a n h } \\big ( U _ { c } x _ { i } + V _ { c } \\bar { h } _ { i } \\big ) } \\\\ { \\displaystyle f _ { i j } } & { = } & { \\sigma \\big ( U _ { f } x _ { i } + V _ { f } h _ { j } \\big ) } \\\\ { \\displaystyle c _ { i } } & { = } & { i _ { i } \\odot \\tilde { c } _ { i } + { \\displaystyle \\sum _ { i \\in { \\cal C } ( i ) } f _ { i j } } \\odot c _ { j } } \\\\ { \\displaystyle h _ { i } } & { = } & { o _ { i } \\odot \\mathrm { t a n h } \\big ( c _ { i } \\big ) } \\end{array}\n$$",
440
+ "text_format": "latex",
441
+ "bbox": [
442
+ 383,
443
+ 760,
444
+ 611,
445
+ 926
446
+ ],
447
+ "page_idx": 2
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "Unlike the works of Scarselli et al. (2009); Li et al. (2016), Tree-LSTM does not require an iterative process to update its feature vector $h _ { i }$ as the tree structure is also a DAG as original LSTM. Consequently, the feature representation (5) can be updated with a recurrent formula. Nevertheless, a tree is a special case of graphs, and such recurrence formula cannot be directly applied to arbitrary graph structure. A key property of this model is the function $f _ { i j }$ which acts as a gate on the edge from neighbor $j$ to vertex $i$ . Given the task, the gate will close to let the information flow from neighbor $j$ to vertex $i$ , or it will open to stop it. It seems to be an essential property for learning systems on graphs as some neighbors can be irrelevant. For example, for the community detection task, the graph neural network should learn which neighbors to communicate (same community) and which neighbors to ignore (different community). In different contexts, Dauphin et al. (2017) added a gated mechanism inside the regular ConvNets in order to improve language modeling for translation tasks, and van den Oord et al. (2016) considered a gated unit with the convolutional layers after activation, and used it for image generation. ",
452
+ "bbox": [
453
+ 173,
454
+ 103,
455
+ 825,
456
+ 285
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "2.2 CONVOLUTIONAL NEURAL NETWORKS ",
463
+ "text_level": 1,
464
+ "bbox": [
465
+ 176,
466
+ 300,
467
+ 483,
468
+ 314
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Generic formulation. Consider now a classical ConvNet for computer vision. Let $h _ { i j } ^ { \\ell }$ denote the feature vector at layer $\\ell$ associated with pixel $( i , j )$ . In a regular ConvNet, $h _ { i j } ^ { \\ell + 1 }$ is obtained by applying a non linear transformation to the feature vectors $h _ { i ^ { \\prime } j ^ { \\prime } } ^ { \\ell }$ for all pixels $( i ^ { \\prime } , j ^ { \\prime } )$ in a neighborhood of pixel $( i , j )$ . For example, with $3 \\times 3$ filters, we would have: ",
475
+ "bbox": [
476
+ 173,
477
+ 325,
478
+ 825,
479
+ 392
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "equation",
485
+ "img_path": "images/2ad4690e46e078896abcd26979e22b6cbb52ecd5a52651d473ea380dd57a5ba3.jpg",
486
+ "text": "$$\nh _ { i j } ^ { \\ell + 1 } = f _ { \\mathrm { C N N } } ^ { \\ell } \\left( \\left\\{ h _ { i ^ { \\prime } j ^ { \\prime } } ^ { \\ell } : | i - i ^ { \\prime } | \\leq 1 \\mathrm { ~ a n d ~ } | j - j ^ { \\prime } | \\leq 1 \\right\\} \\right)\n$$",
487
+ "text_format": "latex",
488
+ "bbox": [
489
+ 318,
490
+ 395,
491
+ 673,
492
+ 415
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "In the above, the notation $\\{ h _ { i ^ { \\prime } j ^ { \\prime } } ^ { \\ell } : | i - i ^ { \\prime } | \\le 1$ and $| j - j ^ { \\prime } | \\leq 1 \\}$ denote the concatenation of all feature vectors $h _ { i ^ { \\prime } j ^ { \\prime } } ^ { \\ell }$ belonging to the $3 \\times 3$ neighborhood of vertex $( i , j )$ . In ConvNets, the notion of neighborhood is given by the euclidian distance. As previously noticed, for graphs, the notion of neighborhood is given by the graph structure. Thus, the most generic version of a feature vector $h _ { i }$ at vertex $i$ for a graph ConvNet is ",
499
+ "bbox": [
500
+ 173,
501
+ 417,
502
+ 825,
503
+ 492
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/dfb7333e56efaaa43214936d88dfea5300b3115e708aa7ead5bb7f64478b32c7.jpg",
510
+ "text": "$$\nh _ { i } ^ { \\ell + 1 } = f _ { \\scriptscriptstyle \\mathrm { G - C N N } } ( h _ { i } ^ { \\ell } , \\{ h _ { j } ^ { \\ell } : j i \\} )\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 377,
514
+ 494,
515
+ 619,
516
+ 515
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "where $\\{ h _ { j } ^ { \\ell } : j i \\}$ denotes the set of feature vectors of the neighboring vertices. In other words, to define a graph ConvNet, one needs a mapping $f _ { \\mathrm { G - C N N } }$ taking as input a vector $h _ { i } ^ { \\ell }$ (the feature vector of the center vertex) as well as an unordered set of vectors $\\{ h _ { j } ^ { \\ell } \\}$ (the feature vectors of all neighboring vertices), see Figure 1(b). We also refer to the mapping $f _ { \\mathrm { G - C N N } }$ as the neighborhood transfer function. In a regular ConvNet, each neighbor as a distinct position relatively to the center pixel (for example 1 pixel up and 1 pixel left from the center). As for graph RNNs, the only vertex which is special for graph ConvNets is the center vertex around which the neighborhood is built. ",
523
+ "bbox": [
524
+ 173,
525
+ 518,
526
+ 825,
527
+ 622
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "CommNets of Sukhbaatar et al. (2016). The authors introduced one of the simplest instantiations of a graph ConvNet with the following neighborhood transfer function: ",
534
+ "bbox": [
535
+ 171,
536
+ 628,
537
+ 823,
538
+ 657
539
+ ],
540
+ "page_idx": 3
541
+ },
542
+ {
543
+ "type": "equation",
544
+ "img_path": "images/488a58ca0282db0cd449863cdea620d7d8a496103a7e3929ebc176b25c7a7115.jpg",
545
+ "text": "$$\nh _ { i } ^ { \\ell + 1 } = f _ { \\mathrm { G \\cdot v C N N } } ^ { \\ell } \\left( h _ { i } ^ { \\ell } , \\frac { } { } \\{ h _ { j } ^ { \\ell } : j \\to i \\} \\right) = \\mathrm { R e L U } \\left( U ^ { \\ell } h _ { i } ^ { \\ell } + V ^ { \\ell } \\sum _ { j \\to i } h _ { j } ^ { \\ell } \\right) ,\n$$",
546
+ "text_format": "latex",
547
+ "bbox": [
548
+ 248,
549
+ 659,
550
+ 715,
551
+ 709
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "where $\\ell$ denotes the layer level, and ReLU is the rectified linear unit. We will refer to this architecture as the vanilla graph ConvNet. Sukhbaatar et al. (2016) used this graph neural network to learn the communication between multiple agents to solve multiple tasks like traffic control. ",
558
+ "bbox": [
559
+ 174,
560
+ 710,
561
+ 825,
562
+ 753
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Syntactic Graph Convolutional Networks of Marcheggiani $\\pmb { \\& }$ Titov (2017). The authors proposed the following transfer function: ",
569
+ "bbox": [
570
+ 173,
571
+ 760,
572
+ 823,
573
+ 789
574
+ ],
575
+ "page_idx": 3
576
+ },
577
+ {
578
+ "type": "equation",
579
+ "img_path": "images/9d26bfa224d95620ce441fc620e2d95c4c5f580176c8687f9823d3b85f6a7f25.jpg",
580
+ "text": "$$\nh _ { i } ^ { \\ell + 1 } = f _ { \\mathrm { s - G C N } } ^ { \\ell } \\left( \\frac { } { } \\{ h _ { j } ^ { \\ell } : j \\to i \\} \\ \\right) = \\mathrm { R e L U } \\left( \\sum _ { j \\to i } \\eta _ { i j } \\odot V ^ { \\ell } h _ { j } ^ { \\ell } \\right)\n$$",
581
+ "text_format": "latex",
582
+ "bbox": [
583
+ 284,
584
+ 790,
585
+ 710,
586
+ 842
587
+ ],
588
+ "page_idx": 3
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "where $\\eta _ { i j }$ act as edge gates, and are computed by: ",
593
+ "bbox": [
594
+ 176,
595
+ 843,
596
+ 501,
597
+ 858
598
+ ],
599
+ "page_idx": 3
600
+ },
601
+ {
602
+ "type": "equation",
603
+ "img_path": "images/a3f228339b043e592099203b4789ce5d36522e69cf4205f89cfd7e11855644da.jpg",
604
+ "text": "$$\n\\eta _ { i j } = \\sigma \\left( A ^ { \\ell } h _ { i } ^ { \\ell } + B ^ { \\ell } h _ { j } ^ { \\ell } \\right) .\n$$",
605
+ "text_format": "latex",
606
+ "bbox": [
607
+ 397,
608
+ 859,
609
+ 566,
610
+ 881
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "These gated edges are very similar in spirit to the Tree-LSTM proposed in Tai et al. (2015). We believe this mechanism to be important for graphs, as they will be able to learn what edges are important for the graph learning task to be solved. ",
617
+ "bbox": [
618
+ 174,
619
+ 882,
620
+ 825,
621
+ 924
622
+ ],
623
+ "page_idx": 3
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "3 MODELS ",
628
+ "text_level": 1,
629
+ "bbox": [
630
+ 174,
631
+ 102,
632
+ 281,
633
+ 118
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "Proposed Graph LSTM. First, we propose to extend the Tree-LSTM of Tai et al. (2015) to arbitrary graphs and multiple layers: ",
640
+ "bbox": [
641
+ 173,
642
+ 132,
643
+ 823,
644
+ 162
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "equation",
650
+ "img_path": "images/ba4ade9bbb845014b88538d241daca3e26e8b37fd92139bb2582e84a38b55082.jpg",
651
+ "text": "$$\n{ h } _ { i } ^ { \\ell + 1 } = f _ { \\mathrm { G \\mathrm { \\tiny { L S T M } } } } ^ { \\ell } ( x _ { i } ^ { \\ell } , \\{ h _ { j } ^ { \\ell } : j i \\} ) = \\mathcal { C } _ { \\mathrm { G \\mathrm { \\tiny { L S T M } } } } ( x _ { i } ^ { \\ell } , h _ { i } ^ { \\ell } , \\sum _ { j i } h _ { j } ^ { \\ell } , c _ { i } ^ { \\ell } )\n$$",
652
+ "text_format": "latex",
653
+ "bbox": [
654
+ 274,
655
+ 167,
656
+ 691,
657
+ 203
658
+ ],
659
+ "page_idx": 4
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "As there is no recurrent formula is the general case of graphs, we proceed as Scarselli et al. (2009) and use an iterative process to solve Eq. (10): At layer $\\ell$ , for $t = 0 , 1 , . . . , T$ ",
664
+ "bbox": [
665
+ 173,
666
+ 215,
667
+ 823,
668
+ 246
669
+ ],
670
+ "page_idx": 4
671
+ },
672
+ {
673
+ "type": "equation",
674
+ "img_path": "images/8785d7d6ee4df39fcb3fadf8d2592dbf9c9e0bdc0f8a7baa6769175ad1092485.jpg",
675
+ "text": "$$\n\\begin{array} { r l } { \\bar { h } _ { \\dot { i } } ^ { \\ell , t } } & { = \\displaystyle \\sum _ { j i } h _ { j } ^ { \\ell , t } , } \\\\ { { \\dot { a } _ { i } ^ { \\ell , t + 1 } } } & { = \\sigma ( U _ { i } ^ { \\ell } x _ { i } ^ { \\ell } + V _ { i } ^ { \\ell } { \\bar { h } _ { i } ^ { \\ell , t } } ) } \\\\ { { \\dot { o } _ { i } ^ { \\ell , t + 1 } } } & { = \\sigma ( U _ { i } ^ { \\ell } x _ { i } ^ { \\ell } + V _ { i } ^ { \\ell } { \\bar { h } _ { i } ^ { \\ell , t } } ) } \\\\ { { \\dot { c } _ { i } ^ { \\ell , t + 1 } } } & { = \\mathrm { t a n h } ( { \\bar { c } _ { i } ^ { \\ell } x _ { i } ^ { \\ell } + \\bar { h } _ { i } ^ { \\ell } \\bar { h } _ { i } ^ { \\ell , t } } ) } \\\\ { { \\dot { f } _ { i } ^ { \\ell , t + 1 } } } & { = \\sigma ( U _ { i } ^ { \\ell } x _ { i } ^ { \\ell } + V _ { i } ^ { \\ell } { \\bar { h } _ { i } ^ { \\ell , t } } ) } \\\\ { { \\dot { c } _ { i } ^ { \\ell , t + 1 } } } & { = { \\dot { \\iota } _ { i } ^ { \\ell , t + 1 } } \\odot { \\bar { c } _ { i } ^ { \\ell } } ^ { t + 1 } + \\displaystyle \\sum _ { j i } f _ { i j } ^ { \\ell , t + 1 } \\odot { c _ { j } ^ { \\ell , t + 1 } } } \\\\ { { \\dot { h } _ { \\dot { i } } ^ { \\ell , t + 1 } } } & { = { \\dot { \\sigma } _ { i } ^ { \\ell , t + 1 } } \\odot \\mathrm { t a n h } ( { c } _ { i } ^ { \\ell } t ^ { + 1 } ) } \\end{array}\n$$",
676
+ "text_format": "latex",
677
+ "bbox": [
678
+ 331,
679
+ 252,
680
+ 665,
681
+ 433
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "and initial conditions: $\\begin{array} { r c l } { { h _ { i } ^ { \\ell , t = 0 } } } & { { = } } & { { c _ { i } ^ { \\ell , t = 0 } = 0 , \\forall i , \\ell } } \\\\ { { x _ { i } ^ { \\ell } } } & { { = } } & { { h _ { i } ^ { \\ell - 1 , T } , x _ { i } ^ { \\ell = 0 } = x _ { i } , \\forall i , \\ell } } \\end{array}$ ",
688
+ "bbox": [
689
+ 289,
690
+ 443,
691
+ 707,
692
+ 486
693
+ ],
694
+ "page_idx": 4
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "In other words, the vector $h _ { i } ^ { \\ell + 1 }$ is computed by running the model from $t = 0 , . . , T$ at layer $\\ell$ . It produces the vector $h _ { i } ^ { \\ell , t = T }$ which becomes $h _ { i } ^ { \\ell + 1 }$ and also the input $x _ { i } ^ { \\ell + 1 }$ for the next layer. The proposed Graph LSTM model differs from Liang et al. (2016); Peng et al. (2017) mostly because the cell $\\mathcal { C } _ { \\mathrm { G - L S T M } }$ in these previous models is not iterated over multiple times $T$ , which reduces the performance of Graph LSTM (see numerical experiments on Figure 4). ",
699
+ "bbox": [
700
+ 173,
701
+ 489,
702
+ 826,
703
+ 565
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Proposed Gated Graph ConvNets. We leverage the vanilla graph ConvNet architecture of Sukhbaatar et al. (2016), Eq.(7), and the edge gating mechanism of Marcheggiani $\\&$ Titov (2017), Eq.(8), by considering the following model: ",
710
+ "bbox": [
711
+ 174,
712
+ 570,
713
+ 825,
714
+ 614
715
+ ],
716
+ "page_idx": 4
717
+ },
718
+ {
719
+ "type": "equation",
720
+ "img_path": "images/5f79613cca2a80c1389b870eb5624a2756a588ca0e80d033b67e6188bc6a7a5b.jpg",
721
+ "text": "$$\nh _ { i } ^ { \\ell + 1 } = f _ { \\mathrm { G \\ell { \\mathrm { G C N N } } } } ^ { \\ell } ( h _ { i } ^ { \\ell } , \\{ h _ { j } ^ { \\ell } : j i \\} ) = \\mathrm { R e L U } ( U ^ { \\ell } h _ { i } ^ { \\ell } + \\sum _ { j i } \\eta _ { i j } \\odot V ^ { \\ell } h _ { j } ^ { \\ell } )\n$$",
722
+ "text_format": "latex",
723
+ "bbox": [
724
+ 238,
725
+ 619,
726
+ 758,
727
+ 670
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "where $h _ { i } ^ { \\ell = 0 } = x _ { i } , \\forall i$ , and the edge gates $\\eta _ { i j }$ are defined in Eq. (9). This model is the most generic formulation of a graph ConvNet (because it uses both the feature vector $h _ { i } ^ { \\ell }$ of the center vertex and the feature vectors $h _ { j } ^ { \\ell }$ of neighboring vertices) with the edge gating property. ",
734
+ "bbox": [
735
+ 173,
736
+ 676,
737
+ 825,
738
+ 724
739
+ ],
740
+ "page_idx": 4
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "Residual Gated Graph ConvNets. In addition, we formulate a multi-layer gated graph ConvNet using residual networks (ResNets) introduced by He et al. (2016). This boils down to add the identity operator between successive convolutional layers: ",
745
+ "bbox": [
746
+ 173,
747
+ 728,
748
+ 823,
749
+ 772
750
+ ],
751
+ "page_idx": 4
752
+ },
753
+ {
754
+ "type": "equation",
755
+ "img_path": "images/a40c6d54fbf0c1d113b044dec32a0843947c7ada32433aaada15586c0eb45c30.jpg",
756
+ "text": "$$\n\\begin{array} { r l r } { h _ { i } ^ { \\ell + 1 } } & { = } & { f ^ { \\ell } \\left( \\ h _ { i } ^ { \\ell } , \\ \\{ h _ { j } ^ { \\ell } : j \\to i \\} \\ \\right) + h _ { i } ^ { \\ell } . } \\end{array}\n$$",
757
+ "text_format": "latex",
758
+ "bbox": [
759
+ 357,
760
+ 777,
761
+ 640,
762
+ 799
763
+ ],
764
+ "page_idx": 4
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "As we will see, such multi-layer strategy work very well for graph neural networks. ",
769
+ "bbox": [
770
+ 174,
771
+ 803,
772
+ 722,
773
+ 819
774
+ ],
775
+ "page_idx": 4
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "4 EXPERIMENTS ",
780
+ "text_level": 1,
781
+ "bbox": [
782
+ 174,
783
+ 837,
784
+ 328,
785
+ 854
786
+ ],
787
+ "page_idx": 4
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "4.1 SUBGRAPH MATCHING ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 174,
795
+ 869,
796
+ 372,
797
+ 883
798
+ ],
799
+ "page_idx": 4
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "We consider the subgraph matching problem presented by Scarselli et al. (2009), see Figure 2(a). \nThe goal is to find the vertices of a given subgraph $P$ in larger graphs $G _ { k }$ with variable sizes. ",
804
+ "bbox": [
805
+ 173,
806
+ 895,
807
+ 825,
808
+ 925
809
+ ],
810
+ "page_idx": 4
811
+ },
812
+ {
813
+ "type": "image",
814
+ "img_path": "images/fe9266c226259a8fd9f2ac74589691f443597b836426fd524d2758931935a96a.jpg",
815
+ "image_caption": [
816
+ "Figure 2: Graph learning tasks. "
817
+ ],
818
+ "image_footnote": [],
819
+ "bbox": [
820
+ 205,
821
+ 108,
822
+ 790,
823
+ 252
824
+ ],
825
+ "page_idx": 5
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Identifying similar localized patterns in different graphs is one of the most basic tasks for graph neural networks. The subgraph $P$ and larger graph $G _ { k }$ are generated with the stochastic block model (SBM), see for example Abbe (2017). A SBM is a random graph which assigns communities to each node as follows: any two vertices are connected with the probability $p$ if they belong to the same community, or they are connected with the probability $q$ if they belong to different communities. For all experiments, we generate a subgraph $P$ of 20 nodes with a SBM $q = 0 . 5$ , and the signal on $P$ is generated with a uniform random distribution with a vocabulary of size 3, i.e. $\\{ 0 , 1 , 2 \\}$ . Larger graphs $G _ { k }$ are composed of 10 communities with sizes randomly generated between 15 and 25. The SBM of each community is $p = 0 . 5$ . The value of $q$ , which acts as the noise level, is 0.1, unless otherwise specified. Besides, the signal on $G _ { k }$ is also randomly generated between $\\{ 0 , 1 , 2 \\}$ . Inputs of all neural networks are the graphs with variable size, and outputs are vertex classification vectors of input graphs. Finally, the output of neural networks are simple fully connected layers from the hidden states. ",
830
+ "bbox": [
831
+ 173,
832
+ 313,
833
+ 825,
834
+ 493
835
+ ],
836
+ "page_idx": 5
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "All reported results are averaged over 5 trails. We run 5 algorithms; Gated Graph Neural Networks of Li et al. (2016), CommNets of Sukhbaatar et al. (2016), SyntacticNets of Marcheggiani & Titov (2017), and the proposed Graph LSTM and Gated ConvNets from Section 3. We upgrade the existing models of Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) with a multilayer version for Li et al. (2016) and using ResNets for all three architectures. We also use the batch normalization technique of Ioffe & Szegedy (2015) to speed up learning convergence for our algorithms, and also for Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017). The learning schedule is as follows: the maximum number of iterations, or equivalently the number of randomly generated graphs with the attached subgraph is 5,000 and the learning rate is decreased by a factor 1.25 if the loss averaged over 100 iterations does not decrease. The loss is the cross-entropy with 2 classes (the subgraph $P$ class and the class of the larger graph $G _ { k }$ ) respectively weighted by their sizes. The accuracy is the average of the diagonal of the normalized confusion matrix w.r.t. the cluster sizes (the confusion matrix measures the number of nodes correctly and badly classified for each class). We also report the time for a batch of 100 generated graphs. The choice of the architectures will be given for each experiment. All algorithms are optimized as follow. We fix a budget of parameters of $B = 1 0 0 K$ and a number of layers $L = 6$ . The number of hidden neurons $H$ for each layer is automatically computed. Then we manually select the optimizer and learning rate for each architecture that best minimize the loss. For this task, Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) and our gated ConvNets work well with Adam and learning rate 0.00075. Graph LSTM uses SGD with learning rate 0.075. Besides, the value of inner iterative steps $T$ for graph LSTM and Li et al. (2016) is 3. ",
841
+ "bbox": [
842
+ 173,
843
+ 501,
844
+ 825,
845
+ 791
846
+ ],
847
+ "page_idx": 5
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "The first experiment focuses on shallow graph neural networks, i.e. with a single layer $L = 1$ . We also vary the level of noise, that is the probability $q$ in the SBM that connects two vertices in two different communities (the higher $q$ the more mixed are the communities). The hyper-parameters are selected as follows. Besides $L = 1$ , the budget is $B = 1 0 0 K$ and the number of hidden neurons $H$ is automatically computed for each architecture to satisfy the budget. First row of Figure 3 reports the accuracy and time for the five algorithms and for different levels of noise $q = \\{ 0 . \\bar { 1 } , 0 . 2 , 0 . \\bar { 3 } 5 , 0 . 5 \\}$ . RNN architectures are plotted in dashed lines and ConvNet architectures in solid lines. For shallow networks, all RNN architectures (graph LSTM and Li et al. (2016)) performs much better, but they also take more time than the graph ConvNets architectures we propose, as well as Sukhbaatar et al. ",
852
+ "bbox": [
853
+ 173,
854
+ 799,
855
+ 825,
856
+ 924
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "(2016); Marcheggiani & Titov (2017). As expected, all algorithms performances decrease when the noise increases. ",
863
+ "bbox": [
864
+ 173,
865
+ 103,
866
+ 823,
867
+ 132
868
+ ],
869
+ "page_idx": 6
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "The second experiment demonstrates the importance of having multiple layers compared to shallow networks. We vary the number of layers $\\bar { L } = \\{ 1 , 2 , 4 , 6 , 1 \\bar { 0 } \\}$ and we fix the number of hidden neurons to $H \\ : = \\ : 5 0$ . Notice that the budget is not the same for all architectures. Second row of Figure 3 reports the accuracy and time w.r.t. $L$ (middle figure is a zoom in the left figure). All models clearly benefit with more layers, but RNN-based architectures see their performances decrease for a large number of layers. The ConvNet architectures benefit from large $L$ values, with the proposed graph ConvNet performing slightly better than Sukhbaatar et al. (2016); Marcheggiani & Titov (2017). Besides, all ConvNet models are faster than RNN models. ",
874
+ "bbox": [
875
+ 173,
876
+ 138,
877
+ 825,
878
+ 251
879
+ ],
880
+ "page_idx": 6
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "In the third experiment, we evaluate the algorithms for different budgets of parameters $B \\ =$ $\\{ 2 5 K , 5 0 K , 7 5 K , 1 0 0 K , 1 5 0 K \\}$ . For this experiment, we fix the number of layers $L \\ = \\ 6$ and the number of neurons $H$ is automatically computed given the budget $B$ . The results are reported in the third row of Figure 3. For this task, the proposed graph ConvNet best performs for a large budget, while being faster than RNNs. ",
885
+ "bbox": [
886
+ 173,
887
+ 257,
888
+ 825,
889
+ 327
890
+ ],
891
+ "page_idx": 6
892
+ },
893
+ {
894
+ "type": "image",
895
+ "img_path": "images/dcde2c4f276a50992f1d845a91368215338f8db5149ca1d2eb732f34dd415995.jpg",
896
+ "image_caption": [
897
+ "Figure 3: Subgraph matching: First row studies shallow networks w.r.t. noise. Second row investigates multilayer graph networks. Third row reports graph architectures w.r.t. budget. "
898
+ ],
899
+ "image_footnote": [],
900
+ "bbox": [
901
+ 189,
902
+ 349,
903
+ 799,
904
+ 685
905
+ ],
906
+ "page_idx": 6
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "We also show the influence of hyper-parameter $T$ for Li et al. (2016) and the proposed graph LSTM. We fix $H = 5 0$ , $L = 3$ and $B = 1 0 0 K$ . Figure 4 reports the results for $T = \\{ 1 , 2 , 3 , 4 , 6 \\}$ . The $T$ value has an undesirable impact on the performance of graph LSTM. Multi-layer Li et al. (2016) is not really influenced by $T$ . Finally, the computational time naturally increases with larger $T$ values. ",
911
+ "bbox": [
912
+ 174,
913
+ 741,
914
+ 825,
915
+ 797
916
+ ],
917
+ "page_idx": 6
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "4.2 SEMI-SUPERVISED CLUSTERING ",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 176,
925
+ 828,
926
+ 436,
927
+ 842
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "In this section, we consider the semi-supervised clustering problem, see Figure 2(b). This is also a standard task in network science. For this work, it consists in finding 10 communities on a graph given 1 single label for each community. This problem is more discriminative w.r.t. to the architectures than the previous single pattern matching problem where there were only 2 clusters to find (i.e. $50 \\%$ random chance). For clustering, we have 10 clusters (around $10 \\%$ random chance). As in the previous section, we use SBM to generate graphs of communities with variable length. The size for each community is randomly generated between 5 and 25, and the label is randomly selected in each community. Probability $p$ is 0.5, and $q$ depends on the experiment. For this task, Li et al. (2016); Sukhbaatar et al. (2016); Marcheggiani & Titov (2017) and the proposed gated ConvNets work well with Adam and learning rate 0.00075. Graph LSTM uses SGD with learning rate 0.0075. The value of $T$ for graph LSTM and Li et al. (2016) is 3. ",
934
+ "bbox": [
935
+ 174,
936
+ 853,
937
+ 823,
938
+ 924
939
+ ],
940
+ "page_idx": 6
941
+ },
942
+ {
943
+ "type": "image",
944
+ "img_path": "images/29fc1a6ccd0fa8c50620d388786c8fec23357cf50224fe7466b1f70c4f0ff43f.jpg",
945
+ "image_caption": [
946
+ "Figure 4: Influence of hyper-parameter $T$ on RNN architectures. Left figure is for graph matching, middle figure for semi-supervised clustering, and right figure are the batch time for the clustering task (same trend for matching). "
947
+ ],
948
+ "image_footnote": [],
949
+ "bbox": [
950
+ 189,
951
+ 111,
952
+ 797,
953
+ 217
954
+ ],
955
+ "page_idx": 7
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "",
960
+ "bbox": [
961
+ 174,
962
+ 327,
963
+ 825,
964
+ 411
965
+ ],
966
+ "page_idx": 7
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "The same set of experiments as in the previous task are reported in Figure 5. ConvNet architectures get clearly better than RNNs when the number of layers increase (middle row), with the proposed Gated ConvNet outperforming the other architectures. For a fixed number of layers $L = 6$ , our graph ConvNets and Marcheggiani & Titov (2017) best perform for all budgets, while paying a reasonable computational cost. ",
971
+ "bbox": [
972
+ 173,
973
+ 419,
974
+ 825,
975
+ 488
976
+ ],
977
+ "page_idx": 7
978
+ },
979
+ {
980
+ "type": "image",
981
+ "img_path": "images/ff4244af7cedb9a88d147a5dea9aab32820c1913899132c1e396441ff789676f.jpg",
982
+ "image_caption": [
983
+ "Figure 5: Semi-supervised clustering: First row reports shallow networks w.r.t. noise $q$ . Second row shows multilayer graph networks w.r.t. $L$ . Third row is about graph architectures w.r.t. budget $B$ . "
984
+ ],
985
+ "image_footnote": [],
986
+ "bbox": [
987
+ 189,
988
+ 541,
989
+ 800,
990
+ 877
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Next, we report the learning speed of the models. We fix $L \\ = \\ 6$ , $B \\ = \\ 1 0 0 K$ with $H$ being automatically computed to satisfy the budget. Figure 6 reports the accuracy w.r.t. time. The ConvNet architectures converge faster than RNNs, in particular for the semi-supervised task. ",
997
+ "bbox": [
998
+ 174,
999
+ 103,
1000
+ 825,
1001
+ 146
1002
+ ],
1003
+ "page_idx": 8
1004
+ },
1005
+ {
1006
+ "type": "image",
1007
+ "img_path": "images/c2aa29c01817800597511abc623b80c55cc6ca7fb741d397a4b0118a11a0e63b.jpg",
1008
+ "image_caption": [
1009
+ "Figure 6: Learning speed of RNN and ConvNet architectures. Left figure is for graph matching and right figure semi-supervised clustering. "
1010
+ ],
1011
+ "image_footnote": [],
1012
+ "bbox": [
1013
+ 272,
1014
+ 172,
1015
+ 715,
1016
+ 279
1017
+ ],
1018
+ "page_idx": 8
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "To close this study, we are interested in comparing learning based approaches to non-learning variational ones. To this aim, we solve the variational Dirichlet problem with labeled and unlabelled data as proposed by Grady (2006). We run 100 experiments and report an average accuracy of $4 5 . 3 7 \\%$ using the same setting as the learning techniques (one label per class). The performance of the best learning model is $82 \\%$ . Learning techniques produce better performances with a different paradigm as they use training data with ground truth, while variational techniques do not use such information. The downside is the need to see 2000 training graphs to get to $82 \\%$ . However, when the training is done, the test complexity of these learning techniques is $O ( E )$ , where $E$ is the number of edges in the graph. This is an advantage over the variational Dirichlet model that solves a sparse linear system of equations with complexity ${ \\cal O } ( E ^ { 3 / 2 } )$ , see Lipton et al. (1979). ",
1023
+ "bbox": [
1024
+ 174,
1025
+ 344,
1026
+ 825,
1027
+ 486
1028
+ ],
1029
+ "page_idx": 8
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "5 CONCLUSION ",
1034
+ "text_level": 1,
1035
+ "bbox": [
1036
+ 176,
1037
+ 507,
1038
+ 318,
1039
+ 523
1040
+ ],
1041
+ "page_idx": 8
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "This work explores the choice of graph neural network architectures for solving learning tasks with graphs of variable length. We developed analytically controlled experiments for two fundamental graph learning problems, that are subgraph matching and graph clustering. Numerical experiments showed that graph ConvNets had a monotonous increase of accuracy when the network gets deeper, unlike graph RNNs for which performance decreases for a large number of layers. This led us to consider the most generic formulation of gated graph ConvNets, Eq. (11). We also explored the benefit of residuality for graphs, Eq. (12). Without residuality, existing graph neural networks are not able to stack more than a few layers. This makes this property essential for graph neural networks, which receive a $10 \\%$ boost of accuracy when more than 6 layers were stacked. Future work will focus on solving domain-specific problems in chemistry, physics, and neuroscience. ",
1046
+ "bbox": [
1047
+ 173,
1048
+ 539,
1049
+ 825,
1050
+ 678
1051
+ ],
1052
+ "page_idx": 8
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "REFERENCES ",
1057
+ "text_level": 1,
1058
+ "bbox": [
1059
+ 174,
1060
+ 700,
1061
+ 285,
1062
+ 715
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "E. Abbe. Community Detection and Stochastic Block Models: Recent Developments. arXiv preprint arXiv:1703.10146, 2017. \nD. Boscaini, J. Masci, E. Rodola, and M. M. Bronstein. Learning shape correspondence with \\` anisotropic convolutional neural networks. In Proc. NIPS, 2016. \nM. Bronstein, X. Bresson, A. Szlam, J. Bruna, and Y. LeCun. Tutorial on Geometric Deep Learning on Graphs and Manifolds. Conference on Computer Vision and Pattern Recognition (CVPR), 2017a. \nM. M. Bronstein, J. Bruna, Y. LeCun, A. Szlam, and P. Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 2017b. \nJ. Bruna and X. Li. Community Detection with Graph Neural Networks. arXiv preprint arXiv:1705.08415, 2017. \nJ. Bruna, W. Zaremba, A. Szlam, and Y. LeCun. Spectral Networks and Deep Locally Connected Networks on Graphs. arXiv:1312.6203, 2013. \nF. R. K. Chung. Spectral Graph Theory, volume 92. American Mathematical Society, 1997. \nJ. Chung, C. Gulcehre, K. Cho, and Y. Bengio. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv preprint arXiv:1412.3555, 2014. \nY. Dauphin, A. Fan, M. Auli, and D. Grangier. Language Modeling with Gated Convolutional Networks. International Conference on Machine Learning (ICML), 2017. \nM. Defferrard, X. Bresson, and P. Vandergheynst. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. Advances in Neural Information Processing Systems (NIPS), pp. 3844–3852, 2016. \nD. K. Duvenaud, D. Maclaurin, J. Iparraguirre, R. Bombarell, T. Hirzel, A. Aspuru-Guzik, and R. P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Proc. NIPS, 2015. \nJ. Gilmer, S. Schoenholz, P. Riley, O. Vinyals, and G. Dahl. Neural Message Passing for Quantum Chemistry. arXiv preprint arXiv:1704.01212, 2017. \nM. Gori, G. Monfardini, and F. Scarselli. A New Model for Learning in Graph Domains. IEEE Transactions on Neural Networks, 2:729–734, 2005. \nL. Grady. Random Walks for Image Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 28(11):1768–1783, 2006. \nD. Hammond, P. Vandergheynst, and R. Gribonval. Wavelets on Graphs via Spectral Graph Theory. Applied and Computational Harmonic Analysis, 30(2):129–150, 2011. \nK. He, X. Zhang, S. Ren, and J. Sun. Deep Residual Learning for Image Recognition. Computer Vision and Pattern Recognition, pp. 770–778, 2016. \nM. Henaff, J. Bruna, and Y. LeCun. Deep Convolutional Networks on Graph-Structured Data. arXiv:1506.05163, 2015. \nS. Hochreiter and J. Schmidhuber. Long Short-Term Memory. Neural Computation, 9(8):1735– 1780, 1997. \nS. Ioffe and C. Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. International Conference on Machine Learning (ICML), pp. 448–456, 2015. \nT. Kipf and M. Welling. Semi-Supervised Classification with Graph Convolutional Networks. International Conference on Learning Representations (ICLR), 2017. \nY. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-Based Learning Applied to Document Recognition. In Proceedings of the IEEE, 86(11), pp. 2278–2324, 1998. \nR. Levie, F. Monti, X. Bresson, and M.M. Bronstein. CayleyNets: Graph Convolutional Neural Networks with Complex Rational Spectral Filters. arXiv preprint arXiv:1705.07664, 2017. \nY. Li, D. Tarlow, M. Brockschmidt, and R. Zemel. Gated Graph Sequence Neural Networks. International Conference on Learning Representations (ICLR), 2016. \nX. Liang, X. Shen, J. Feng, L. Lin, and S. Yan. Semantic Object Parsing with graph LSTM. In European Conference on Computer Vision (ECCV), pp. 125–143, 2016. \nR. Lipton, D. Rose, and R. Tarjan. Generalized Nested Dissection. SIAM Journal on Numerical Analysis, 16(2):346–358, 1979. \nD. Marcheggiani and I. Titov. Encoding Sentences with Graph Convolutional Networks for Semantic Role Labeling. arXiv preprint arXiv:1703.04826, 2017. \nF. Monti, D. Boscaini, J. Masci, E. Rodola, J. Svoboda, and M. M. Bronstein. Geometric deep \\` learning on graphs and manifolds using mixture model CNNs. In Proc. CVPR, 2017a. \nF. Monti, M.M. Bronstein, and X. Bresson. Geometric Matrix Completion with Recurrent MultiGraph Neural Networks. Advances in Neural Information Processing Systems (NIPS), 2017b. \nN. Peng, H. Poon, C. Quirk, K. Toutanova, and W.T. Yih. Cross-Sentence N-ary Relation Extraction with Graph LSTMs. Transactions of the Association for Computational Linguistics, 5:101–115, 2017. \nF. Scarselli, M. Gori, A. Tsoi, M. Hagenbuchner, and G. Monfardini. The Graph Neural Network Model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009. \nS. Sukhbaatar, A Szlam, and R. Fergus. Learning Multiagent Communication with Backpropagation. Advances in Neural Information Processing Systems (NIPS), pp. 2244–2252, 2016. \nK. Tai, R. Socher, and C. Manning. Improved Semantic Representations from Tree-Structured Long Short-Term Memory Networks. Association for Computational Linguistics (ACL), pp. 1556– 1566, 2015. \nvan den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, and K. Kavukcuoglu. Conditional Image Generation with PixelCNN Decoders. In Advances in Neural Information Processing Systems (NIPS), pp. 4790–4798, 2016. ",
1069
+ "bbox": [
1070
+ 166,
1071
+ 724,
1072
+ 826,
1073
+ 924
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "",
1080
+ "bbox": [
1081
+ 169,
1082
+ 68,
1083
+ 828,
1084
+ 926
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "",
1091
+ "bbox": [
1092
+ 171,
1093
+ 102,
1094
+ 826,
1095
+ 402
1096
+ ],
1097
+ "page_idx": 10
1098
+ }
1099
+ ]
parse/train/HyXBcYg0b/HyXBcYg0b_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyXBcYg0b/HyXBcYg0b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/_4VxORHq-0g/_4VxORHq-0g.md ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dynamic Distillation Network for Cross-Domain Few-Shot Recognition with Unlabeled Data
2
+
3
+ Ashraful Islam Rensselaer Polytechnic Institute islama6@rpi.edu
4
+
5
+ Chun-Fu Chen MIT-IBM Watson AI Lab chenrich@us.ibm.com
6
+
7
+ Rameswar Panda MIT-IBM Watson AI Lab rpanda@ibm.com
8
+
9
+ Leonid KarlinskyIBM Researchleonidka@il.ibm.com
10
+
11
+ Rogerio FerisIBM Researchrsferis@us.ibm.com
12
+
13
+ Richard J. Radke Rensselaer Polytechnic Institute rjradke@ecse.rpi.edu
14
+
15
+ # Abstract
16
+
17
+ Most existing works in few-shot learning rely on meta-learning the network on a large base dataset which is typically from the same domain as the target dataset. We tackle the problem of cross-domain few-shot learning where there is a large shift between the base and target domain. The problem of cross-domain few-shot recognition with unlabeled target data is largely unaddressed in the literature. STARTUP was the first method that tackles this problem using self-training. However, it uses a fixed teacher pretrained on a labeled base dataset to create soft labels for the unlabeled target samples. As the base dataset and unlabeled dataset are from different domains, projecting the target images in the class-domain of the base dataset with a fixed pretrained model might be sub-optimal. We propose a simple dynamic distillation-based approach to facilitate unlabeled images from the novel/base dataset. We impose consistency regularization by calculating predictions from the weakly-augmented versions of the unlabeled images from a teacher network and matching it with the strongly augmented versions of the same images from a student network. The parameters of the teacher network are updated as exponential moving average of the parameters of the student network. We show that the proposed network learns representation that can be easily adapted to the target domain even though it has not been trained with target-specific classes during the pretraining phase. Our model outperforms the current state-of-the art method by $\bar { 4 . 4 \% }$ for 1-shot and $3 . 6 \%$ for 5-shot classification in the BSCD-FSL benchmark, and also shows competitive performance on traditional in-domain few-shot learning task. Our code is available at: https://git.io/Jilgs.
18
+
19
+ # 1 Introduction
20
+
21
+ The tremendous success of deep learning in visual recognition tasks is, to a great extent, attributed to the availability of large scale labeled datasets. While humans can recognize an object by looking only at a few examples, modern deep neural networks require hundreds or thousands of images for each category to achieve human-level visual recognition capability. This has led to the research on few-shot learning which aims at learning from a much smaller dataset. In a typical few-shot learning setting, there are two stages: meta-training and meta-testing. In the meta-training stage, a base dataset with labeled images is provided to train the model. In the meta-testing stage, the learned model is quickly adapted to a set of novel classes with only a few examples per class (the support set) and evaluated on a set of test images from the same novel classes (the query set). The base classes and novel classes are typically disjoint, but the images are obtained from the same domain. However, in many real world settings, training the model on a base dataset from the same domain as the target dataset is difficult and infeasible. Guo et al. [7] proposed a cross-domain few-shot benchmark, BSCD-FSL, which contains datasets from extremely different domains. In this benchmark, the meta-training is done on a labeled source dataset, and the few-shot evaluation is performed on a target dataset which is from different domain than the source dataset. The benchmark shows that traditional pretraining and finetuning outperforms more complicated meta-learning based few-shot learning methods by a significant margin.
22
+
23
+ ![](images/dbee5802125f4bfd45fbd04dea03e627fa4cb3b948e5122506897507063753e4.jpg)
24
+ Figure 1: Problem setup. (Left) In typical few-shot learning task, a model is trained on a base dataset first during meta-training stage. In meta-testing stage, a few examples from novel classes, referred to as support set, are provided, and the network predicts the categories of different samples from the same classes as support set. The base dataset and the target dataset generally come from the same domain with disjoint categories. (Middle) In cross-domain few-shot learning, there is a domain gap between the base dataset and the target dataset. For example, in the figure, the base dataset contains natural images from miniImageNet [29], and the target dataset consists of satellite images from EuroSAT dataset [8]. (Right) Our setting is similar to cross-domain few-shot learning setup. However, additional unlabeled images are also available during meta-training stage. Although the unlabeled dataset comes from the same domain as the target dataset, it does not contain any images either from the support set or query set.
25
+
26
+ In the real-world scenarios, the target domain should have many unlabeled images, and it might be beneficial to use the unlabeled data to learn more target domain specific representations. We hypothesize that using both labeled base data and unlabeled target data during training provides a common embedding for both base and target domain. Then the natural question could be - why not use the unlabeled target data only, it might provide more target-specific representation. One issue with this approach is that self-supervised learning generally requires a large amount of unlabeled data to work, and, as pointed out by Phoo and Hariharan [18], plain self-supervised learning struggles to outperform the naive transfer learning baseline in few-shot learning setup. Secondly, it has been shown that combining supervised and unsupervised learning during training provides more transferable representation [9]. We argue that similar conclusion holds for cross-domain few-shot learning, i.e., combining supervised and unsupervised loss provides better representation for the downstream task. Figure 1 illustrates our experimental setup in contrast to traditional few-shot learning or cross-domain few-shot learning setup. We show that labeled images from the base dataset are still important to learn generic image features, and images from the target domain, even if unlabeled, can help developing more target domain specific representations.
27
+
28
+ Figure 2 illustrates our approach. Our goal is to train a feature extractor which will be used to evaluate few-shot learning performance on the target dataset. We propose a dynamic distillationbased approach to this end. The student network consists of an encoder $f _ { s }$ and classifier $g _ { s }$ , and the teacher network shares similar architecture as the student network (denoted as $f _ { t }$ and $g _ { t }$ ). The classifier $g _ { s }$ is a linear layer that predicts the class-logits of the samples from the base dataset. We calculate a supervised cross-entropy loss between the student’s predictions and ground-truth labels on the base dataset. For the unlabeled target data, we compute the teacher’s prediction for a weaklyaugmented version of an image and the student’s prediction for a strongly augmented version of the same image, and optimize a distillation loss to match the predictions. We also apply sharpening in the teacher prediction to encourage low-entropy prediction from the student. Both the supervised loss and distillation loss are used to learn the student’s weights. The teacher network is updated as a moving average of the student network. During few-shot evaluation, we only use the student encoder $f _ { s }$ as a feature extractor, learn a classifier head on the labeled support images consisting of few examples per category, and calculate the class predictions of the query images.
29
+
30
+ Our main contributions are:
31
+
32
+ • We propose a simple method for few-shot learning across extreme domain difference. • We use dynamic distillation based approach that uses both labeled source data and unlabeled target data to learn a better representation for the few-shot evaluation on the target domain. • Our method significantly outperforms the current state of the art in the BSCD-FSL benchmark with unlabeled images by $4 . 4 \%$ for 1-shot and $3 . 6 \%$ for 5-shot classification in terms of average top-1 accuracy. It even shows superior performance for in-domain few-shot classification on miniImageNet and tieredImageNet datasets.
33
+
34
+ # 2 Related Work
35
+
36
+ Few-shot classification Few-shot learning methods can be divided into three broad categories - generative [36], metric-base [21, 28, 23] and adaptation-based [10, 14]. Early work on few-shot learning was based on meta-learning [29, 23, 10, 13]. Matching Networks [29] uses cosine similarities on feature vectors produced by independently learned feature extractors, while Relation Networks [23] learn its own similarity metric. MAML [10] learns good initialization parameters that can be quickly adapted to a new task. Prototypical Networks [21] learn a feature extractor that is used to calculate distances between features of test images and the mean features of support images. MetaOptNet [14] uses a discriminatively trained linear predictor to learn representations for few-shot learning.
37
+
38
+ Self-training Self-training trains a student model that mimicks the predictions of a teacher model. Self-training can improves ImageNet classification [33]. It is also a dominant approach in semisupervised learning, where the teacher network is used to create pseudo [35, 34] or soft labels [33] for a huge set of unlabeled images, and the student network is trained to mimic the teacher.
39
+
40
+ Semi-supervised Learning Our method is inspired from recent developments in semi-supervised learning. Both [16] and [27] uses supervised cross-entropy loss with unsupervised regularization loss. Pseudo-labeling based approaches first train a model on a labeled dataset, use the trained model to create pseudo-labels of the unlabeled samples, and retrain the model with both labeled and pseudo-labeled samples [12, 1]. FixMatch [22] proposes a simplified model which simultaneously optimizes cross-entropy loss on the labeled samples and generates pseudo labels using the model’s prediction on weakly-augmented unlabeled images. If the pseudo labels are confident enough, the model is trained to predict the pseudo labels with a strongly augmented version of the same images. We adopt a similar approach by imposing consistency regularization. However, while FixMatch is a semi-supervised technique where the unlabeled data is assumed to be from the same domain, our approach is applicable to the cross-domain few-shot learning problem. We also calculates the prediction from a mean teacher network instead of using the same network as FixMatch.
41
+
42
+ Cross-domain few-shot learning Guo et al. [7] proposed a cross-domain few-shot learning benchmark, and noted that existing state-of-the-art approaches fail to achieve good accuracy on this benchmark. One potential solution could be to use an unlabeled dataset from the target to learn representations that are adaptable to a completely different domain. Many approaches also explored few-shot learning with unlabeled data [11, 15, 19]; however, most of these works still assume a smaller gap between the base and target domains. Our method shares some similarity with the recently developed STARTUP [18] method for cross-domain few-shot learning. STARTUP also uses unlabeled data for learning a better representation. However, STARTUP uses a fixed pretrained model to produce pseudo labels for the unlabeled samples, and then train the network with the labeled base dataset and pseudo-labeled target dataset. Additionally, STARTUP also incorporates a self-supervised contrastive loss on the unlabeled images to improve accuracy, where our method does not require additional contrastive loss. Actually, we argue that our distillation loss works like a self-supervised non-contrastive loss, similar to BYOL [6], for which we might not need to add any extra self-supervised loss. We propose a dynamic distillation approach, where the parameters of the teacher network are updated during training. We obtain the prediction for the weakly-augmented version of an unlabeled image from the teacher network, and optimizes the model such that the prediction of the strongly augmented version of the same image obtained from the student network matches that of teacher network. Note that FixMatch [22] also uses similar consistency regularization loss for semi-supervised learning. To our knowledge, we are the first to use consistency regularization and dynamic distillation for cross-domain few-shot learning.
43
+
44
+ ![](images/ed07d4f711cf566e714bb944dc36fee82b96495882cb354e92aa82e147cd71b2.jpg)
45
+ Figure 2: Diagram of our approach. Given labeled base data and unlabeled target data, our goal is to train a feature extractor which will be used to evaluate few-shot learning performance on the target dataset. The student network consists of an encoder $f _ { s }$ and classifier $g _ { s }$ , and the teacher network share similar architecture as the student network. We use the labeled base dataset to optimize the supervised cross-entropy loss. For a target image, we compute the teacher’s prediction for a weakly-augmented and student’s prediction for a strongly augmented version of the image, and optimize the distillation loss to match the predictions. We also apply sharpening in the teacher prediction to encourage low-entropy prediction from the student. Both the supervised loss and distillation loss are used to learn student’s weights. The teacher network is updated as a moving average of the student network. During few-shot evaluation, we simply learn a new classifier header on the few-shot support images, and evaluate on the query images.
46
+
47
+ # 3 Methodology
48
+
49
+ # 3.1 Preliminary
50
+
51
+ Few-shot Learning Formulation A few-shot learning task consists of a support set $S$ , which containing $K$ data points from $N$ classes for $N$ -way $K$ -shot task, and a query $Q = \bar { \{ x _ { i } \} } _ { i = 1 } ^ { m }$ consisting of data points only from the $N$ classes of the support set. The goal is to classify the query points with the help of the labeled support set. In the typical few-shot learning setting, (1) an embedding is learned from the base/source dataset $\mathcal { D } _ { S }$ , (2) a linear classifier is learned on top of the fixed embedding on the support set, and (3) the classifications of the query data points are determined.
52
+
53
+ Cross-domain Few-shot Learning The difference between the typical few-shot learning setup and cross-domain few-shot learning is that the base/source dataset is drawn from a very different domain than the target domain. Additionally, in our setting, we are provided unlabeled data points $\mathcal { D } _ { U } = \{ x _ { i } \} _ { i = 1 } ^ { N _ { U } }$ from the tarbase dataset domain. The unlabeled, and an unlabeled set aset contains more classes than the support, we need to learn an embedding that can $\mathcal { D } _ { S }$ $\mathcal { D } _ { U }$ extract a representation that can be used for few-shot learning evaluation in the target-domain.
54
+
55
+ # 3.2 Proposed Method
56
+
57
+ Encoder We facilitate knowledge distillation to train our base encoder on both source datatset and target dataset. Denote the embedding network as $f _ { s }$ that embeds an input image $x$ to a ${ \mathrm { d } } \cdot$ -dimensional vector $f _ { s } ( x )$ . We add a classifier header $g _ { s }$ on top of $f _ { s }$ , which predicts $n _ { c }$ logits from the embeddings, where $n _ { c }$ is the total number of classes in the base dataset. Since the labels of the data points of the base dataset are provided, we calculate the supervised cross-entropy loss:
58
+
59
+ $$
60
+ l _ { \mathrm { C E } } ( y , p ) = H ( y , p )
61
+ $$
62
+
63
+ where $p = \mathsf { S o f t m a x } ( g _ { s } ( f _ { s } ( x ) ) )$ , and $H ( a , b ) = - a \log b$ .
64
+
65
+ Dynamic distillation Additionally, we also have a teacher encoder $f _ { t }$ and teacher classifier $g _ { t }$ . The task of the teacher network is to produce pseudo labels for the unlabeled images. Given an image $x _ { i }$ from the unlabeled set $\mathcal { D } _ { U }$ , we compute the model’s prediction $p _ { i } ^ { w }$ from a weakly-augmented version (denoted as $x _ { i } ^ { w }$ ) and $p _ { i } ^ { s }$ from a strongly-augmented version (denoted as $\boldsymbol { x } _ { i } ^ { s }$ ) of the unlabeled image. The prediction of the weakly-augmented version is produced from the teacher network, which serves as a soft-target for the strongly-augmented images. We use the student network to get the prediction $p _ { i } ^ { s }$ for the strongly-augmented images. Specifically,
66
+
67
+ $$
68
+ p _ { i } ^ { s } = \mathsf { S o f t m a x } \big ( g _ { s } \big ( f _ { s } ( x _ { i } ^ { s } ) \big ) \big ) ; \quad p _ { i } ^ { w } = \mathsf { S o f t m a x } \big ( g _ { t } \big ( f _ { t } ( x _ { i } ^ { w } ) \big ) / \tau \big )
69
+ $$
70
+
71
+ where $\tau$ is a sharpening parameter. Note that we do not let gradient pass through the teacher network. We calculate the distillation loss by the cross-entropy function
72
+
73
+ $$
74
+ l _ { U } ( p _ { i } ^ { w } , p _ { i } ^ { s } ) = H ( p _ { i } ^ { w } , p _ { i } ^ { s } )
75
+ $$
76
+
77
+ Eq. 3 works like a consistency regularizer so that the network predicts similar scores for different augmented versions of the image. We can also consider Eq. 3 as self-supervised loss, similar to BYOL [6] or DINO [2]. However, one major difference is that - in BYOL or DINO the projection head is a random linear layer, where, we are using the supervised classification head as the projection head.
78
+
79
+ The total loss function is:
80
+
81
+ $$
82
+ \mathcal { L } = \frac { 1 } { { { N _ { S } } } } \sum _ { ( { x _ { i } } , { y _ { i } } ) \in { \mathcal { D } _ { S } } } { l _ { \mathrm { { C E } } } } ( y , p ) + \lambda \frac { 1 } { { { N _ { U } } } } \sum _ { { x _ { i } } \in { \mathcal { D } _ { U } } } { l _ { U } } ( p _ { i } ^ { w } , p _ { i } ^ { s } )
83
+ $$
84
+
85
+ where $\lambda$ is a hyper-parameter. The loss function is used to update the parameters of the student network. For the teacher network, we use mean teacher approach [24], i.e., we update the teacher weights $\theta _ { t }$ from the student weights $\theta _ { s }$ by: $\theta _ { t } = m \theta _ { t } + ( 1 - m ) \theta _ { s }$ , where $m$ is the momentum parameter. Note that when $m = 1$ , we are essentially using fixed teacher, and when $m = 0$ , the teacher and student share the same model. When $m > 0$ , the teacher network is a moving average of the student network denoting the distillation process as dynamic. Please refer to the Appendix for PyTorch-like pseudo-code of our method.
86
+
87
+ # 4 Experiments
88
+
89
+ # 4.1 Experimental Setup
90
+
91
+ Dataset We follow the evaluation protocol of the BSCD-FSL benchmark [7], which contains novel data from CropDisease [17], EuroSAT [8], ISIC [4], and ChestX [32]. The base dataset is miniImageNet [29], which contains 100 classes from ImageNet dataset [5] where each class has 600 images. The novel datasets are chosen based on increasing dissimilarity from the miniImageNet dataset. More details about the datasets are provided in the Appendix. Following [18], we randomly sample $20 \%$ of the data from each novel dataset to construct the unlabeled set $\mathcal { D } _ { U }$ , and the remaining images are used for evaluation, where we perform 5-way 1-shot and 5-way 5-shot classification. For evaluation metric, we report top-1 accuracy and $9 5 \%$ confidence interval over 600 runs. We also report evaluation results on the larger tieredImageNet dataset [19].
92
+
93
+ Implementation details We use ResNet-10 as the backbone network [7, 18]. Our pretraining has two steps. In the first step, we train our network only on the miniImageNet dataset for 200 epochs. We use SGD with momentum 0.9, weight decay 1e-4, learning rate 0.01, batch size 32, and the cosine learning rate scheduler. In the next step, we use the miniImageNet-pretrained network, and use both the base dataset and the unlabeled dataset to optimize the loss function in Eq. 4 for 60 epochs. During training, we increase the weight of distillation loss $\lambda$ from 0 to 1 until 40 epochs using cosine scheduling. The sharpening temperature and teacher momentum parameter are set to 0.1 and 0.99 respectively. For the base images and weakly-augmented unlabeled images, we use the random-resize-crop, horizontal flip and normalization augmentations. For strong augmentation, we additionally use the color jitter, Gaussian blur, and random gray scale transformations. The other hyperparameters are kept the same. Refer to the supplementary for more details about hyper-parameter selection. For few-shot evaluation, we learn a logistic regression classifier on the support set, and evaluate on the query set.
94
+
95
+ Table 1: 5-way 1-shot and 5-shot scores on the BSCD-FSL benchmark datasets. The mean and $9 5 \%$ confidence interval of 600 runs are reported. The ∗ indicates that the numbers are reported from [7] where no unlabeled data is used. The † are the numbers reported from [18], which uses $20 \%$ of the original set as the unlabeled dataset. We also use similar number of unlabeled images as [18]; however, the splits might be different for random sampling.
96
+
97
+ <table><tr><td rowspan="2">Model</td><td colspan="4">1-shot</td><td colspan="4">5-shot</td></tr><tr><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>MAML*</td><td></td><td></td><td></td><td></td><td>71.70±.72</td><td>78.05±.70</td><td>40.13±.58</td><td>23.48±.48</td></tr><tr><td>ProtoNet*</td><td></td><td></td><td></td><td></td><td>73.29±.71</td><td>79.72±.79</td><td>39.57±.57</td><td>24.05±1.01</td></tr><tr><td>MetaOpt*</td><td></td><td></td><td></td><td></td><td>64.44±.73</td><td>68.41±.73</td><td>36.28±.50</td><td>22.53±.91</td></tr><tr><td>STARTUPt</td><td>63.88±.84</td><td>75.93±.80</td><td>32.66±.60</td><td>23.09±.43</td><td>82.29±.60</td><td>93.02±.45</td><td>47.22±.61</td><td>26.94±.45</td></tr><tr><td>ProtoNet</td><td>55.32±.88</td><td>52.94±.81</td><td>29.58±.57</td><td>21.32±.37</td><td>76.92±.67</td><td>81.84±.68</td><td>42.49±.58</td><td>24.72±.43</td></tr><tr><td>MatchingNet</td><td>54.88±.90</td><td>46.86±.88</td><td>27.37±.51</td><td>20.65±.29</td><td>68.00±.68</td><td>63.94±.84</td><td>33.96±.54</td><td>22.62±.36</td></tr><tr><td>Transfer</td><td>58.14±.83</td><td>68.78±.84</td><td>32.12±.59</td><td>22.60±.39</td><td>80.09±.61</td><td>89.79±.52</td><td>43.88±.57</td><td>26.51±.43</td></tr><tr><td>SimCLR(Base)</td><td>58.28±.90</td><td>61.58±.88</td><td>32.43±.56</td><td>22.37±.42</td><td>80.83±.64</td><td>83.44±.61</td><td>44.04±.55</td><td>26.63±.46</td></tr><tr><td>SimCLR</td><td>62.63±.87</td><td>69.22±.93</td><td>31.45±.59</td><td>23.59±.44</td><td>82.76±.59</td><td>89.31±.53</td><td>42.18±.54</td><td>29.56±.49</td></tr><tr><td>STARTUP</td><td>64.32±.88</td><td>74.45±.86</td><td>31.73±.57</td><td>22.27±.41</td><td>83.58±.60</td><td>92.41±.47</td><td>45.73±.62</td><td>26.21±.46</td></tr><tr><td>Transfer+SimCLR</td><td>63.91±.83</td><td>70.35±.85</td><td>31.67±.55</td><td>23.72±.44</td><td>85.78±.51</td><td>91.10±.49</td><td>45.97±.54</td><td>29.45±.10</td></tr><tr><td> Ours</td><td>73.14±.84</td><td>82.14±.78</td><td>34.66±.58</td><td>23.38±.43</td><td>89.07±.47</td><td>95.54±.38</td><td>49.36±.59</td><td>28.31±.46</td></tr></table>
98
+
99
+ # 4.2 Main Results
100
+
101
+ Comparison to State-of-the-arts Table 1 shows the performance comparison of our approach with other methods on the BSCD-FSL benchmark. All models are trained on the miniImageNet dataset. “Transfer” denotes the baseline trained by cross-entropy loss on the base dataset. “SimCLR” is trained only on the unlabeled images. As noted by [9], self-supervised contrastive learning learns better transferable representation for a different downstream domain. Hence, we also create a “SimCLR(Base)” baseline that trains the encoder by optimizing self-supervised contrastive loss on the base dataset. “Transfer+SimCLR” refers to the model which is trained with supervised cross-entropy loss from the base dataset and self-supervised contrastive loss from the unlabeled target dataset, which has been reported to show superior transferability across domain [9]. STARTUP [18] is trained with three losses: cross-entropy loss on the base dataset, KL-divergence loss on the unlabeled dataset similar, and self-supervised contrastive loss on unlabeled images. STARTUP, Transfer+SimCLR and our approach use both the base dataset and additional unlabeled dataset during the representation learning phase.
102
+
103
+ Our method outperforms all meta-learning-based approaches by a significant margin at all settings. Moreover, compared to Transfer, we achieve more than ${ \sim } 5 . 5 \%$ improvement for 5-shot classification on average. The performance improvement on 1-shot is more significant; we achieve $7 . 9 \%$ improvement on average.
104
+
105
+ We outperform STARTUP by $5 . 5 \%$ on EuroSAT, $3 . 1 \%$ on CropDisease, $2 . 1 \%$ on ChestX, and $3 . 6 \%$ on ISIC for 5-way 5-shot classification. The performance improvement is also quite significant for 1-shot classification; specifically, our method achieves $8 . 8 \%$ improvement on EuroSAT and $7 . 7 \%$ improvement on CropDisease dataset over STARTUP. We only perform slightly worse on the ChestX dataset. For ChestX, it seems that pure unsupervised learning performs pretty well. Considering that our method does not use any self-supervised training or distillation, the performance improvement is impressive. Note that STARTUP uses a fixed teacher to extract pseudo-labels for the unlabeled images, whereas we extract pseudo labels from the weakly-augmented images from the same network that is being trained. In that sense, our model works like a dynamic teacher, where the pseudo labels get more refined as training progress. We hypothesize that the superior performance might be attributed to the dynamic approach of our model over STARTUP.
106
+
107
+ Table 2: 5-way 1-shot and 5-shot scores on the BSCD-FSL benchmark datasets when tieredImageNet is used as base dataset. All models use ResNet-18 for backbone [25]. The mean and $9 5 \%$ confidence interval of 600 runs are reported. For EuroSAT and CropDisease dataset, our method achieves significant performance improvement over other models. The improvement for 1-shot learning is huge (over $7 \%$ for EuroSAT and $10 \%$ for CropDisease).
108
+
109
+ <table><tr><td rowspan="2">Model</td><td colspan="4">1-shot</td><td colspan="4">5-shot</td></tr><tr><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Transfer</td><td>58.07±.86</td><td>69.94±.87</td><td>29.76±.55</td><td>22.46±.41</td><td>81.34±.53</td><td>90.12±.49</td><td>41.27±.58</td><td>26.33±.45</td></tr><tr><td>SimCLR(Base)</td><td>62.14±.89</td><td>62.45±.90</td><td>31.03±.55</td><td>22.28±.40</td><td>81.85±.59</td><td>84.11±.60</td><td>42.91±.55</td><td>25.96±.44</td></tr><tr><td>STARTUP</td><td>64.32±.87</td><td>70.09±.86</td><td>29.73±.51</td><td>22.10±.40</td><td>85.19±.50</td><td>90.81±.49</td><td>43.55±.56</td><td>26.03±.44</td></tr><tr><td>Transfer+SimCLR</td><td>58.08±.83</td><td>71.25±.89</td><td>31.71±.55</td><td>23.81±.46</td><td>86.08±.47</td><td>91.31±.49</td><td>45.08±.56</td><td>30.26±.50</td></tr><tr><td>Ours</td><td>72.15±.75</td><td>84.41±.75</td><td>33.87±.56</td><td>22.70±.42</td><td>89.44±.42</td><td>95.90±.34</td><td>47.21±.56</td><td>27.67±.46</td></tr></table>
110
+
111
+ Table 3: Few-shot evaluation on the same domain in terms of 5-way 5-shot and 5-way 1-shot accuracy on miniImageNet and tieredImageNet datasets. We use ResNet-10 backbone for miniImageNet and ResNet-18 backbone for tieredImageNet.
112
+
113
+ <table><tr><td></td><td colspan="2">miniImageNet</td><td colspan="2">tieredImageNet</td></tr><tr><td></td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>ProtoNet</td><td>51.06±.83</td><td>73.49±.63</td><td></td><td></td></tr><tr><td>MatchingNet</td><td>52.34±.81</td><td>67.28±.67</td><td>1</td><td>=</td></tr><tr><td>Transfer</td><td>53.40±.80</td><td>74.26±.64</td><td>58.61±.97</td><td>81.42±.65</td></tr><tr><td>Transfer+SimCLR</td><td>51.63±.82</td><td>74.65±.60</td><td>61.33±.96</td><td>82.89±.65</td></tr><tr><td>STARTUP</td><td>51.68±.84</td><td>74.05±.66</td><td>60.92±.96</td><td>82.11±.64</td></tr><tr><td>Ours</td><td>53.71±.83</td><td>76.02±.61</td><td>69.00±.96</td><td>85.93±.60</td></tr></table>
114
+
115
+ Results with tieredImageNet base data tieredImageNet [19] is a subset of ImageNet dataset with 608 classes. The classes are grouped into 34 super-categories, from which 20 training categories (351 classes), 6 validation categories (97 classes), and 8 testing categories (160 classes) are selected. We use a larger backbone ResNet-18 for meta-training with tieredImageNet [25]. Table 2 shows the performance comparison with other models. We get similar conclusion as we get from Table 1. Particularly, we get $6 . 7 2 \%$ average improvement for 1-shot and $3 . 6 6 \%$ average improvement for 5-shot over STARTUP. However, we do not see much better accuracy than miniImageNet pretrained models even though we are using a much larger base dataset, which suggests that the size of base dataset is not as important as other transfer learning task in cross domain few-shot learning.
116
+
117
+ Few-shot performance on similar domain It has been shown that self-training improves ImageNet classification [33]. Given the distillation approach of our model, one could expect that it might improve the few-shot accuracy even when the target data come from the same domain. Note that STARTUP does not improve the in-domain accuracy [18], even though it is also a self-training based model. We evaluate on miniImageNet and tieredImageNet dataset in terms of 5-way 1-shot and 5-way 5-shot performance. We use the official training split as base dataset, and the unlabeled target data are obtained from $20 \%$ of the novel (test) set and the rest are used for evaluation. For backbone, we use ResNet-10 for miniImageNet and ResNet-18 for tieredImageNet. Table 3 reports the results for in-domain few-shot performance. We see that our method achieves the best performance among the baselines. Particularly, for 1-shot learning in tieredImageNet, our model outperforms the best one by $7 . 7 \%$ . We infer that our method can be safely applied to few-shot learning task when the domain gap between base and target dataset is small, which is in contrast with STARTUP that does not show improvement over “Transfer" for few-shot learning on similar domain.
118
+
119
+ # 4.3 Analysis
120
+
121
+ Effect of dynamic distillation To understand how distillation helps to learn better representation, we use the pretrained models to extract features of the target dataset. Then we use KMeans algorithm to create clusters from the features. The number of clusters in the KMeans is set to be the number of classes of the target dataset. In Table
122
+
123
+ Table 4: V-measure cluster score $( \% )$ [20] on the KMeans clustering of the extracted features with the ground-truth clustering. The backbone is ResNet-10 pretrained on the miniImageNet dataset and/or the unlabeled target dataset.
124
+
125
+ <table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Transfer</td><td>57.01</td><td>62.58</td><td>14.67</td><td>2.45</td></tr><tr><td>SimCLR</td><td>60.06</td><td>62.02</td><td>12.12</td><td>3.84</td></tr><tr><td>STARTUP</td><td>62.02</td><td>69.50</td><td>14.05</td><td>2.71</td></tr><tr><td>Ours</td><td>69.58</td><td>73.27</td><td>14.32</td><td>3.32</td></tr></table>
126
+
127
+ 4, the V-measurement cluster scores [20] between the KMeans clusters and original ground-truth are shown. The V-score has $100 \%$ value when there is maximum agreement between ground-truth and predicted clusters, and $0 \%$ when there’s no agreement. Table 4 shows that our method achieves higher v-scores for EuroSAT and CropDisease dataset, and the v-scores for ISIC and ChestX are also very competitive. It suggests that our model learns a good clustering of the target data even when we are not using any target labels. The clustering is much better when the domain gap is not extreme.
128
+
129
+ Fig. 3 shows t-SNE plots [26] from 10 representative classes from the CropDisease and EuroSAT datasets. We compare the embeddings extracted from “Transfer” and our approach. We see that our method creates better grouping on the embeddings of the target datasets, even though we do not use any labels for the target dataset during pretraining.
130
+
131
+ ![](images/36501101abeac70a3ef2f8ddf896c10e3853579dfdaab8e0e092e6c1fa408902.jpg)
132
+ Figure 3: t-SNE plot of 10 classes from CropDisease (a & b) and EuroSAT (c & d) test sets with features obtained from Transfer and our method.
133
+
134
+ Comparison with self-supervised learning If we ignore the supervised loss, our model has similarity with self-supervised non-contrastive loss similar to BYOL or DINO. However, the projection head we are using to calculate the final predictions of the two different views of an unlabeled image is the same classification head that is used to predict the classification logits of the labeled base samples. In Table 5, “Ours (distillation head)” represents the model where we use separate projection head for the predictions of the unlabeled images. We see that separate projection head performs much worse. We found that the distillation loss is simply converging to a trivial solution in this case. To discourage trivial solution, we add recently developed tricks in self-supervised learning, namely, centering and strong augmentation - which turns the unlabeled branch similar to ResNet DINO [2]. “Ours (DINO head)” achieves better accuracy than “Ours (distillation head)”, suggesting that it alleviates the issue of trivial solution. However, our original method still achieves a significant $3 . 0 7 \%$ more improvement. It is interesting to note that a separate projection head causes trivial solution for the unlabeled images, whereas our model does not converge to trivial solution with similar settings. We infer that using a supervised classifier linear layer as the projection head can solve the issue of trivial solution for the self-supervised learning to some extent without requiring extra tricks like BatchNorm [6] or centering $I 2 I$ . Additionally, it provides a better clustering of the unlabeled features, even if the unlabeled samples come from different domain than the labeled samples. Table 5 also shows results for “Ours $^ +$ SimCLR”, which simply adds a SimCLR loss for the unlabeled samples. It performs slightly better only in ChestX dataset. On average, the performance is similar to “Ours”, which signifies that there is no clear benefit using a self-supervised contrastive loss to achieve better transferability for our method. Note that STARTUP comes to a different conclusion reporting that adding SimCLR loss consistently improves the performance.
135
+
136
+ Table 5: Our method with self-supervised approaches. The evaluation is performed on BSCD-FSL benchmark in terms of 5-way 5-shot accuracy $( \% )$ . “Ours (distillation head)” refers to the model where we use a separate projection head for the distillation loss, which achieves much worse scores. In “Ours $^ +$ DINO”, we use a separate projection head with centering and strong augmentation as in DINO [2]. It achieves better performance than naive transfer, but still under-performs in comparison to our approach. “Ours $^ +$ SimCLR” simply adds a self-supervised contrastive loss for the unlabeled samples. See Appendix for more details.
137
+
138
+ <table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Ours</td><td>89.07</td><td>95.54</td><td>49.36</td><td>28.31</td></tr><tr><td>Ours (distillation head)</td><td>80.06</td><td>89.31</td><td>46.63</td><td>25.29</td></tr><tr><td>Ours (DINO head)</td><td>85.74</td><td>90.55</td><td>46.24</td><td>25.42</td></tr><tr><td>Ours+SimCLR</td><td>88.48</td><td>93.80</td><td>49.10</td><td>29.45</td></tr></table>
139
+
140
+ Experiment of few-shot classification on fine-grained dataset CUB [30] contains 200 classes and 11,788 images of different bird species. ‘miniImageNet- $\cdot >$ CUB’ is an interesting experiment to show the transferability of different models to a fine-grained dataset. We report the results in Table 6 in terms of 5-way 5-shot scores. For CUB, we found that vanilla Transfer performs surprisingly well (also reported by [3]), and adding SimCLR with Transfer (Transfer+SimCLR) actually decreases the accuracy. Wallace and Hariharan [31] also experimented with different self-supervised methods on smaller domain and found that all of them under-perform for fine-grained task [2]. However, our method still performs the best, demonstrating the effectiveness of our approach in a fine-grained downstream task.
141
+
142
+ Table 6: Experiment on mini-ImageNet $\bullet >$ CUB. All the scores are reproduced by us.
143
+
144
+ <table><tr><td>ProtoNet</td><td>Transfer</td><td>SimCLR</td><td>Transfer+SimCLR</td><td>STARTUP</td><td>Ours</td></tr><tr><td>63.19</td><td>68.72</td><td>62.84</td><td>67.82</td><td>66.10</td><td>69.50</td></tr></table>
145
+
146
+ Experiment of distillation with unlabeled datasets from different domain Table 7 reports the few-shot accuracy when our model is trained on different unlabeled datasets. The best accuracy is achieved when the unlabeled data and target data are from the same domain. Even if the unlabeled data consists of images from multiple domains including the target domain (denoted as “Ours-all”), it still significantly under-performs the base model.
147
+
148
+ Table 7: Effect of unlabeled datasets from a different domain than the target dataset in terms of 5-way 5-shot accuracy $( \% )$ . “Ours-X” denotes that we use base and “X” dataset during pretraining. “Ours-all” denotes that we use unlabeled images from all four target datasets.
149
+
150
+ <table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ChestX</td><td>ISIC</td></tr><tr><td>Ours-EuroSAT</td><td>89.07</td><td>90.43</td><td>26.02</td><td>46.82</td></tr><tr><td>Ours-CropDisease</td><td>81.86</td><td>95.54</td><td>26.17</td><td>45.12</td></tr><tr><td>Ours-ISIC</td><td>81.94</td><td>89.69</td><td>26.70</td><td>49.36</td></tr><tr><td>Ours-ChestX</td><td>81.87</td><td>90.38</td><td>28.31</td><td>45.20</td></tr><tr><td>Ours-All</td><td>82.75</td><td>91.31</td><td>26.01</td><td>46.43</td></tr></table>
151
+
152
+ Effect of data augmentation On the unlabeled images, we apply two types of augmentation: weak augmentation to extract pseudo labels and strong augmentation to impose consistency regularization. This setting is denoted as “weak-strong” (w-s), where ‘weak’ (w) augmentation is applied to the image that is fed into the teacher network and ‘strong’ (s) augmentation is applied to the image that is fed into the student network. We also show results with “weak-weak” (w-w), “strong-weak” (s-w) and “strong-strong” (s-s) augmentation settings in Figure 4a. Both “weak-weak” and “strong-strong” perform worse than the other augmentations. We also note that in self-supervised learning, generally strong augmentation is applied to all training images to get good performance. In our experiment, we find that applying weak augmentation in one of the image pairs improves the performance.
153
+
154
+ More unlabeled data To measure the effect of amount of unlabeled dataset during pretraining, we divide the target dataset by $80 \%$ and $20 \%$ splits. The $20 \%$ split is used for evaluation. From the $80 \%$ split, we vary the amount of unlabeled data and then pretrain with source and the unlabeled set. Fig. 4b shows the average 5-shot accuracy for different amounts of the unlabeled dataset during the pretraining phase. As expected, more information from the unlabeled dataset helps to learn better representations on the target domain. However, the performance saturates later, and we get diminishing return for more unlabeled data. It also signifies that there are scopes to improve the performance by using more unlabeled data denoting potential future research direction.
155
+
156
+ # 4.4 Addition Ablation Studies
157
+
158
+ We perform several ablation studies of different components of our approach. All scores are reported for 5-way 5-shot evaluation. More ablations are provided in the Appendix.
159
+
160
+ Longer training We use the base dataset pretrained network as initialization for our network, and then train on both base dataset and unlabeled dataset for 60 epochs. Figure $_ \mathrm { 4 c }$ reports average 5-way 5-shot few-shot on the BSCD-FSL benchmark performance for our pretrained with longer training epoch. Training for more epochs can result in minor improvement $( 0 . 2 \% )$ .
161
+
162
+ ![](images/f1b5c962ab2ccd9c9213cde32790f32a6824e26df90bce206252a13bf3f3f81d.jpg)
163
+ Figure 4: Ablation studies for (a) data augmentation on unlabeled images, (b) effect of longer training on base and unlabeled data, (c) amount of unlabeled data. The Y-axis represents average top1 accuracy $( \% )$ on the four benchmark datasets for 5-shot classification for 600 episodes. We use miniImageNet for labeled source dataset and ResNet-10 as backbone.
164
+
165
+ Table 8: Ablation studies on different settings. Mean over 600 runs.
166
+
167
+ <table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Ours</td><td>89.07</td><td>95.54</td><td>49.36</td><td>28.31</td></tr><tr><td>Ours(w/o base)</td><td>82.11</td><td>90.52</td><td>39.76</td><td>26.83</td></tr><tr><td>Ours(1-step)</td><td>86.16</td><td>87.28</td><td>46.10</td><td>25.11</td></tr></table>
168
+
169
+ Effect of base dataset Here, we perform experiments without the first term in Eq. 4, i.e., we train the network on the base dataset first and then re-train only on the unlabeled images (without joint training on the base dataset), denoted as “Ours (w/o base)”. Table 8 shows that the performance of “Ours (w/o base)” is poor, suggesting that the representation related to the labeled base dataset is still helpful to the target domain.
170
+
171
+ Training without pretrained model on base dataset We perform 2-step training during the representation learning phase - we first train the model on mini-IN only, and then jointly train on mini-IN and unlabeled images. In Table 8, “Ours(1-step)” denotes training on the unlabeled images and mini-IN from scratch for 300 epochs, which performs worse than 2-step training. Our assumption is that the proposed model is also like self-training where a well-trained teacher is needed.
172
+
173
+ # 5 Conclusion
174
+
175
+ We introduced a novel approach to utilize unlabeled data from the target domain for cross-domain fewshot learning. Experiments show that our method achieves state-of-the-art results in the BSCD-FSL benchmark for both 1-shot and 5-shot classification. Our model also outperforms other approaches in the same-domain few-shot learning. Future work can be focused on applying our approach in each episode during meta-testing so that the model can learn more category-specific representations.
176
+
177
+ # 6 Broader Impact
178
+
179
+ The approach tackles a practical problem of the existing few-shot learning setup that the base dataset and the novel samples generally come from different domain. Our work uses the unlabeled samples from the target dataset to learn more target specific representation. Like any other machine learning tool, the final impact depends on the intention of the people or institution applying it. However, it can be useful in drug discovery or medical image analysis where labeled dataset is limited.
180
+
181
+ # 7 Acknowledgments
182
+
183
+ This material is based upon work supported by the U.S. Department of Homeland Security, Science and Technology Directorate, Office of University Programs, under Grant Award 2013-ST-061- ED0001. The views and conclusions contained in this document are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of the U.S. Department of Homeland Security.
184
+
185
+ # References
186
+
187
+ [1] E. Arazo, D. Ortego, P. Albert, N. E. O’Connor, and K. McGuinness. Pseudo-labeling and confirmation bias in deep semi-supervised learning. In 2020 International Joint Conference on Neural Networks (IJCNN), pages 1–8. IEEE, 2020.
188
+ [2] M. Caron, H. Touvron, I. Misra, H. Jégou, J. Mairal, P. Bojanowski, and A. Joulin. Emerging properties in self-supervised vision transformers, 2021.
189
+ [3] W.-Y. Chen, Y.-C. Liu, Z. Kira, Y.-C. F. Wang, and J.-B. Huang. A closer look at few-shot classification. arXiv preprint arXiv:1904.04232, 2019.
190
+ [4] N. Codella, V. Rotemberg, P. Tschandl, M. E. Celebi, S. Dusza, D. Gutman, B. Helba, A. Kalloo, K. Liopyris, M. Marchetti, et al. Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (isic). arXiv preprint arXiv:1902.03368, 2019.
191
+ [5] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255. IEEE, 2009. [6] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. H. Richemond, E. Buchatskaya, C. Doersch, B. A. Pires, Z. D. Guo, M. G. Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. [7] Y. Guo, N. C. Codella, L. Karlinsky, J. V. Codella, J. R. Smith, K. Saenko, T. Rosing, and R. Feris. A broader study of cross-domain few-shot learning. Eur. Conf. Comput. Vis., 2020.
192
+ [8] P. Helber, B. Bischke, A. Dengel, and D. Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 12(7):2217–2226, 2019. [9] A. Islam, C.-F. Chen, R. Panda, L. Karlinsky, R. Radke, and R. Feris. A broad study on the transferability of visual representations with contrastive learning, 2021.
193
+ [10] T. Jeong and H. Kim. Ood-maml: Meta-learning for few-shot out-of-distribution detection and classification. Advances in Neural Information Processing Systems, 33, 2020.
194
+ [11] J. Kim, T. Kim, S. Kim, and C. D. Yoo. Edge-labeling graph neural network for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11–20, 2019.
195
+ [12] D.-H. Lee et al. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In Workshop on challenges in representation learning, ICML, volume 3, 2013.
196
+ [13] K. Lee, S. Maji, A. Ravichandran, and S. Soatto. Meta-learning with differentiable convex optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10657– 10665, 2019.
197
+ [14] K. Lee, S. Maji, A. Ravichandran, and S. Soatto. Meta-learning with differentiable convex optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10657– 10665, 2019.
198
+ [15] Y. Liu, J. Lee, M. Park, S. Kim, E. Yang, S. J. Hwang, and Y. Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. arXiv preprint arXiv:1805.10002, 2018.
199
+ [16] T. Miyato, S.-i. Maeda, M. Koyama, and S. Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018.
200
+ [17] S. P. Mohanty, D. P. Hughes, and M. Salathé. Using deep learning for image-based plant disease detection. Frontiers in plant science, 7:1419, 2016.
201
+ [18] C. P. Phoo and B. Hariharan. Self-training for few-shot transfer across extreme task differences. arXiv preprint arXiv:2010.07734, 2020.
202
+ [19] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel. Meta-learning for semi-supervised few-shot classification. arXiv preprint arXiv:1803.00676, 2018.
203
+ [20] A. Rosenberg and J. Hirschberg. V-measure: A conditional entropy-based external cluster evaluation measure. In Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL), pages 410–420, 2007.
204
+ [21] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 4077–4087. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper/2017/file/ cb8da6767461f2812ae4290eac7cbc42-Paper.pdf.
205
+ [22] K. Sohn, D. Berthelot, C.-L. Li, Z. Zhang, N. Carlini, E. D. Cubuk, A. Kurakin, H. Zhang, and C. Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. arXiv preprint arXiv:2001.07685, 2020.
206
+ [23] F. Sung, Y. Yang, L. Zhang, T. Xiang, P. H. Torr, and T. M. Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1199–1208, 2018.
207
+ [24] A. Tarvainen and H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results, 2018.
208
+ [25] Y. Tian, Y. Wang, D. Krishnan, J. B. Tenenbaum, and P. Isola. Rethinking few-shot image classification: a good embedding is all you need? arXiv preprint arXiv:2003.11539, 2020.
209
+ [26] L. van der Maaten and G. Hinton. Visualizing high-dimensional data using t-sne.(2008). Reference Source [Google Scholar], 2008.
210
+ [27] V. Verma, K. Kawaguchi, A. Lamb, J. Kannala, Y. Bengio, and D. Lopez-Paz. Interpolation consistency training for semi-supervised learning. arXiv preprint arXiv:1903.03825, 2019.
211
+ [28] O. Vinyals, C. Blundell, T. Lillicrap, k. kavukcuoglu, and D. Wierstra. Matching networks for one shot learning. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29, pages 3630–3638. Curran Associates, Inc., 2016. URL https://proceedings.neurips.cc/paper/2016/file/ 90e1357833654983612fb05e3ec9148c-Paper.pdf.
212
+ [29] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630–3638, 2016.
213
+ [30] C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. The caltech-ucsd birds-200-2011 dataset. 2011.
214
+ [31] B. Wallace and B. Hariharan. Extending and analyzing self-supervised learning across domains. In European Conference on Computer Vision, pages 717–734. Springer, 2020.
215
+ [32] X. Wang, Y. Peng, L. Lu, Z. Lu, M. Bagheri, and R. M. Summers. Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2097–2106, 2017.
216
+ [33] Q. Xie, M.-T. Luong, E. Hovy, and Q. V. Le. Self-training with noisy student improves imagenet classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10687–10698, 2020.
217
+ [34] Q. Xu, T. Likhomanenko, J. Kahn, A. Hannun, G. Synnaeve, and R. Collobert. Iterative pseudo-labeling for speech recognition. arXiv preprint arXiv:2005.09267, 2020.
218
+ [35] I. Z. Yalniz, H. Jégou, K. Chen, M. Paluri, and D. Mahajan. Billion-scale semi-supervised learning for image classification. arXiv preprint arXiv:1905.00546, 2019.
219
+ [36] R. Zhang, T. Che, Z. Ghahramani, Y. Bengio, and Y. Song. Metagan: An adversarial approach to few-shot learning. NeurIPS, 2:8, 2018.
parse/train/_4VxORHq-0g/_4VxORHq-0g_content_list.json ADDED
@@ -0,0 +1,1028 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Dynamic Distillation Network for Cross-Domain Few-Shot Recognition with Unlabeled Data ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 207,
8
+ 122,
9
+ 790,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ashraful Islam Rensselaer Polytechnic Institute islama6@rpi.edu ",
17
+ "bbox": [
18
+ 191,
19
+ 226,
20
+ 401,
21
+ 268
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Chun-Fu Chen MIT-IBM Watson AI Lab chenrich@us.ibm.com ",
28
+ "bbox": [
29
+ 424,
30
+ 226,
31
+ 614,
32
+ 267
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Rameswar Panda MIT-IBM Watson AI Lab rpanda@ibm.com ",
39
+ "bbox": [
40
+ 635,
41
+ 226,
42
+ 808,
43
+ 268
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Leonid KarlinskyIBM Researchleonidka@il.ibm.com",
50
+ "bbox": [
51
+ 187,
52
+ 289,
53
+ 375,
54
+ 330
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Rogerio FerisIBM Researchrsferis@us.ibm.com",
61
+ "bbox": [
62
+ 398,
63
+ 289,
64
+ 576,
65
+ 330
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Richard J. Radke Rensselaer Polytechnic Institute rjradke@ecse.rpi.edu ",
72
+ "bbox": [
73
+ 598,
74
+ 289,
75
+ 810,
76
+ 332
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Abstract ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 462,
86
+ 367,
87
+ 535,
88
+ 382
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Most existing works in few-shot learning rely on meta-learning the network on a large base dataset which is typically from the same domain as the target dataset. We tackle the problem of cross-domain few-shot learning where there is a large shift between the base and target domain. The problem of cross-domain few-shot recognition with unlabeled target data is largely unaddressed in the literature. STARTUP was the first method that tackles this problem using self-training. However, it uses a fixed teacher pretrained on a labeled base dataset to create soft labels for the unlabeled target samples. As the base dataset and unlabeled dataset are from different domains, projecting the target images in the class-domain of the base dataset with a fixed pretrained model might be sub-optimal. We propose a simple dynamic distillation-based approach to facilitate unlabeled images from the novel/base dataset. We impose consistency regularization by calculating predictions from the weakly-augmented versions of the unlabeled images from a teacher network and matching it with the strongly augmented versions of the same images from a student network. The parameters of the teacher network are updated as exponential moving average of the parameters of the student network. We show that the proposed network learns representation that can be easily adapted to the target domain even though it has not been trained with target-specific classes during the pretraining phase. Our model outperforms the current state-of-the art method by $\\bar { 4 . 4 \\% }$ for 1-shot and $3 . 6 \\%$ for 5-shot classification in the BSCD-FSL benchmark, and also shows competitive performance on traditional in-domain few-shot learning task. Our code is available at: https://git.io/Jilgs. ",
95
+ "bbox": [
96
+ 233,
97
+ 396,
98
+ 766,
99
+ 675
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 Introduction ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 174,
109
+ 691,
110
+ 310,
111
+ 708
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The tremendous success of deep learning in visual recognition tasks is, to a great extent, attributed to the availability of large scale labeled datasets. While humans can recognize an object by looking only at a few examples, modern deep neural networks require hundreds or thousands of images for each category to achieve human-level visual recognition capability. This has led to the research on few-shot learning which aims at learning from a much smaller dataset. In a typical few-shot learning setting, there are two stages: meta-training and meta-testing. In the meta-training stage, a base dataset with labeled images is provided to train the model. In the meta-testing stage, the learned model is quickly adapted to a set of novel classes with only a few examples per class (the support set) and evaluated on a set of test images from the same novel classes (the query set). The base classes and novel classes are typically disjoint, but the images are obtained from the same domain. However, in many real world settings, training the model on a base dataset from the same domain as the target dataset is difficult and infeasible. Guo et al. [7] proposed a cross-domain few-shot benchmark, BSCD-FSL, which contains datasets from extremely different domains. In this benchmark, the meta-training is done on a labeled source dataset, and the few-shot evaluation is performed on a target dataset which is from different domain than the source dataset. The benchmark shows that traditional pretraining and finetuning outperforms more complicated meta-learning based few-shot learning methods by a significant margin. ",
118
+ "bbox": [
119
+ 174,
120
+ 723,
121
+ 825,
122
+ 902
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/dbee5802125f4bfd45fbd04dea03e627fa4cb3b948e5122506897507063753e4.jpg",
129
+ "image_caption": [
130
+ "Figure 1: Problem setup. (Left) In typical few-shot learning task, a model is trained on a base dataset first during meta-training stage. In meta-testing stage, a few examples from novel classes, referred to as support set, are provided, and the network predicts the categories of different samples from the same classes as support set. The base dataset and the target dataset generally come from the same domain with disjoint categories. (Middle) In cross-domain few-shot learning, there is a domain gap between the base dataset and the target dataset. For example, in the figure, the base dataset contains natural images from miniImageNet [29], and the target dataset consists of satellite images from EuroSAT dataset [8]. (Right) Our setting is similar to cross-domain few-shot learning setup. However, additional unlabeled images are also available during meta-training stage. Although the unlabeled dataset comes from the same domain as the target dataset, it does not contain any images either from the support set or query set. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 178,
135
+ 85,
136
+ 820,
137
+ 291
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 174,
146
+ 469,
147
+ 825,
148
+ 525
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "In the real-world scenarios, the target domain should have many unlabeled images, and it might be beneficial to use the unlabeled data to learn more target domain specific representations. We hypothesize that using both labeled base data and unlabeled target data during training provides a common embedding for both base and target domain. Then the natural question could be - why not use the unlabeled target data only, it might provide more target-specific representation. One issue with this approach is that self-supervised learning generally requires a large amount of unlabeled data to work, and, as pointed out by Phoo and Hariharan [18], plain self-supervised learning struggles to outperform the naive transfer learning baseline in few-shot learning setup. Secondly, it has been shown that combining supervised and unsupervised learning during training provides more transferable representation [9]. We argue that similar conclusion holds for cross-domain few-shot learning, i.e., combining supervised and unsupervised loss provides better representation for the downstream task. Figure 1 illustrates our experimental setup in contrast to traditional few-shot learning or cross-domain few-shot learning setup. We show that labeled images from the base dataset are still important to learn generic image features, and images from the target domain, even if unlabeled, can help developing more target domain specific representations. ",
155
+ "bbox": [
156
+ 174,
157
+ 532,
158
+ 825,
159
+ 738
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Figure 2 illustrates our approach. Our goal is to train a feature extractor which will be used to evaluate few-shot learning performance on the target dataset. We propose a dynamic distillationbased approach to this end. The student network consists of an encoder $f _ { s }$ and classifier $g _ { s }$ , and the teacher network shares similar architecture as the student network (denoted as $f _ { t }$ and $g _ { t }$ ). The classifier $g _ { s }$ is a linear layer that predicts the class-logits of the samples from the base dataset. We calculate a supervised cross-entropy loss between the student’s predictions and ground-truth labels on the base dataset. For the unlabeled target data, we compute the teacher’s prediction for a weaklyaugmented version of an image and the student’s prediction for a strongly augmented version of the same image, and optimize a distillation loss to match the predictions. We also apply sharpening in the teacher prediction to encourage low-entropy prediction from the student. Both the supervised loss and distillation loss are used to learn the student’s weights. The teacher network is updated as a moving average of the student network. During few-shot evaluation, we only use the student encoder $f _ { s }$ as a feature extractor, learn a classifier head on the labeled support images consisting of few examples per category, and calculate the class predictions of the query images. ",
166
+ "bbox": [
167
+ 174,
168
+ 746,
169
+ 825,
170
+ 911
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "",
177
+ "bbox": [
178
+ 173,
179
+ 90,
180
+ 825,
181
+ 119
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Our main contributions are: ",
188
+ "bbox": [
189
+ 174,
190
+ 126,
191
+ 356,
192
+ 140
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "• We propose a simple method for few-shot learning across extreme domain difference. • We use dynamic distillation based approach that uses both labeled source data and unlabeled target data to learn a better representation for the few-shot evaluation on the target domain. • Our method significantly outperforms the current state of the art in the BSCD-FSL benchmark with unlabeled images by $4 . 4 \\%$ for 1-shot and $3 . 6 \\%$ for 5-shot classification in terms of average top-1 accuracy. It even shows superior performance for in-domain few-shot classification on miniImageNet and tieredImageNet datasets. ",
199
+ "bbox": [
200
+ 217,
201
+ 151,
202
+ 826,
203
+ 258
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 Related Work ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 174,
213
+ 277,
214
+ 323,
215
+ 295
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Few-shot classification Few-shot learning methods can be divided into three broad categories - generative [36], metric-base [21, 28, 23] and adaptation-based [10, 14]. Early work on few-shot learning was based on meta-learning [29, 23, 10, 13]. Matching Networks [29] uses cosine similarities on feature vectors produced by independently learned feature extractors, while Relation Networks [23] learn its own similarity metric. MAML [10] learns good initialization parameters that can be quickly adapted to a new task. Prototypical Networks [21] learn a feature extractor that is used to calculate distances between features of test images and the mean features of support images. MetaOptNet [14] uses a discriminatively trained linear predictor to learn representations for few-shot learning. ",
222
+ "bbox": [
223
+ 174,
224
+ 309,
225
+ 825,
226
+ 435
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Self-training Self-training trains a student model that mimicks the predictions of a teacher model. Self-training can improves ImageNet classification [33]. It is also a dominant approach in semisupervised learning, where the teacher network is used to create pseudo [35, 34] or soft labels [33] for a huge set of unlabeled images, and the student network is trained to mimic the teacher. ",
233
+ "bbox": [
234
+ 174,
235
+ 445,
236
+ 825,
237
+ 502
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Semi-supervised Learning Our method is inspired from recent developments in semi-supervised learning. Both [16] and [27] uses supervised cross-entropy loss with unsupervised regularization loss. Pseudo-labeling based approaches first train a model on a labeled dataset, use the trained model to create pseudo-labels of the unlabeled samples, and retrain the model with both labeled and pseudo-labeled samples [12, 1]. FixMatch [22] proposes a simplified model which simultaneously optimizes cross-entropy loss on the labeled samples and generates pseudo labels using the model’s prediction on weakly-augmented unlabeled images. If the pseudo labels are confident enough, the model is trained to predict the pseudo labels with a strongly augmented version of the same images. We adopt a similar approach by imposing consistency regularization. However, while FixMatch is a semi-supervised technique where the unlabeled data is assumed to be from the same domain, our approach is applicable to the cross-domain few-shot learning problem. We also calculates the prediction from a mean teacher network instead of using the same network as FixMatch. ",
244
+ "bbox": [
245
+ 174,
246
+ 512,
247
+ 825,
248
+ 679
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Cross-domain few-shot learning Guo et al. [7] proposed a cross-domain few-shot learning benchmark, and noted that existing state-of-the-art approaches fail to achieve good accuracy on this benchmark. One potential solution could be to use an unlabeled dataset from the target to learn representations that are adaptable to a completely different domain. Many approaches also explored few-shot learning with unlabeled data [11, 15, 19]; however, most of these works still assume a smaller gap between the base and target domains. Our method shares some similarity with the recently developed STARTUP [18] method for cross-domain few-shot learning. STARTUP also uses unlabeled data for learning a better representation. However, STARTUP uses a fixed pretrained model to produce pseudo labels for the unlabeled samples, and then train the network with the labeled base dataset and pseudo-labeled target dataset. Additionally, STARTUP also incorporates a self-supervised contrastive loss on the unlabeled images to improve accuracy, where our method does not require additional contrastive loss. Actually, we argue that our distillation loss works like a self-supervised non-contrastive loss, similar to BYOL [6], for which we might not need to add any extra self-supervised loss. We propose a dynamic distillation approach, where the parameters of the teacher network are updated during training. We obtain the prediction for the weakly-augmented version of an unlabeled image from the teacher network, and optimizes the model such that the prediction of the strongly augmented version of the same image obtained from the student network matches that of teacher network. Note that FixMatch [22] also uses similar consistency regularization loss for semi-supervised learning. To our knowledge, we are the first to use consistency regularization and dynamic distillation for cross-domain few-shot learning. ",
255
+ "bbox": [
256
+ 174,
257
+ 690,
258
+ 825,
259
+ 911
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "image",
265
+ "img_path": "images/ed07d4f711cf566e714bb944dc36fee82b96495882cb354e92aa82e147cd71b2.jpg",
266
+ "image_caption": [
267
+ "Figure 2: Diagram of our approach. Given labeled base data and unlabeled target data, our goal is to train a feature extractor which will be used to evaluate few-shot learning performance on the target dataset. The student network consists of an encoder $f _ { s }$ and classifier $g _ { s }$ , and the teacher network share similar architecture as the student network. We use the labeled base dataset to optimize the supervised cross-entropy loss. For a target image, we compute the teacher’s prediction for a weakly-augmented and student’s prediction for a strongly augmented version of the image, and optimize the distillation loss to match the predictions. We also apply sharpening in the teacher prediction to encourage low-entropy prediction from the student. Both the supervised loss and distillation loss are used to learn student’s weights. The teacher network is updated as a moving average of the student network. During few-shot evaluation, we simply learn a new classifier header on the few-shot support images, and evaluate on the query images. "
268
+ ],
269
+ "image_footnote": [],
270
+ "bbox": [
271
+ 272,
272
+ 89,
273
+ 717,
274
+ 316
275
+ ],
276
+ "page_idx": 3
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "",
281
+ "bbox": [
282
+ 174,
283
+ 482,
284
+ 825,
285
+ 539
286
+ ],
287
+ "page_idx": 3
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "3 Methodology ",
292
+ "text_level": 1,
293
+ "bbox": [
294
+ 174,
295
+ 561,
296
+ 313,
297
+ 580
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "3.1 Preliminary ",
304
+ "text_level": 1,
305
+ "bbox": [
306
+ 174,
307
+ 595,
308
+ 295,
309
+ 611
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "Few-shot Learning Formulation A few-shot learning task consists of a support set $S$ , which containing $K$ data points from $N$ classes for $N$ -way $K$ -shot task, and a query $Q = \\bar { \\{ x _ { i } \\} } _ { i = 1 } ^ { m }$ consisting of data points only from the $N$ classes of the support set. The goal is to classify the query points with the help of the labeled support set. In the typical few-shot learning setting, (1) an embedding is learned from the base/source dataset $\\mathcal { D } _ { S }$ , (2) a linear classifier is learned on top of the fixed embedding on the support set, and (3) the classifications of the query data points are determined. ",
316
+ "bbox": [
317
+ 174,
318
+ 623,
319
+ 825,
320
+ 707
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "Cross-domain Few-shot Learning The difference between the typical few-shot learning setup and cross-domain few-shot learning is that the base/source dataset is drawn from a very different domain than the target domain. Additionally, in our setting, we are provided unlabeled data points $\\mathcal { D } _ { U } = \\{ x _ { i } \\} _ { i = 1 } ^ { N _ { U } }$ from the tarbase dataset domain. The unlabeled, and an unlabeled set aset contains more classes than the support, we need to learn an embedding that can $\\mathcal { D } _ { S }$ $\\mathcal { D } _ { U }$ extract a representation that can be used for few-shot learning evaluation in the target-domain. ",
327
+ "bbox": [
328
+ 174,
329
+ 722,
330
+ 825,
331
+ 808
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3.2 Proposed Method ",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 174,
341
+ 828,
342
+ 336,
343
+ 843
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "Encoder We facilitate knowledge distillation to train our base encoder on both source datatset and target dataset. Denote the embedding network as $f _ { s }$ that embeds an input image $x$ to a ${ \\mathrm { d } } \\cdot$ -dimensional vector $f _ { s } ( x )$ . We add a classifier header $g _ { s }$ on top of $f _ { s }$ , which predicts $n _ { c }$ logits from the embeddings, where $n _ { c }$ is the total number of classes in the base dataset. Since the labels of the data points of the base dataset are provided, we calculate the supervised cross-entropy loss: ",
350
+ "bbox": [
351
+ 174,
352
+ 856,
353
+ 825,
354
+ 911
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "",
361
+ "bbox": [
362
+ 174,
363
+ 90,
364
+ 653,
365
+ 106
366
+ ],
367
+ "page_idx": 4
368
+ },
369
+ {
370
+ "type": "equation",
371
+ "img_path": "images/431f6d8eabe201c41b7b7063963f40b324063a243fbdba3e1dc285b9999d8fab.jpg",
372
+ "text": "$$\nl _ { \\mathrm { C E } } ( y , p ) = H ( y , p )\n$$",
373
+ "text_format": "latex",
374
+ "bbox": [
375
+ 431,
376
+ 113,
377
+ 566,
378
+ 130
379
+ ],
380
+ "page_idx": 4
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "where $p = \\mathsf { S o f t m a x } ( g _ { s } ( f _ { s } ( x ) ) )$ , and $H ( a , b ) = - a \\log b$ . ",
385
+ "bbox": [
386
+ 173,
387
+ 136,
388
+ 562,
389
+ 152
390
+ ],
391
+ "page_idx": 4
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Dynamic distillation Additionally, we also have a teacher encoder $f _ { t }$ and teacher classifier $g _ { t }$ . The task of the teacher network is to produce pseudo labels for the unlabeled images. Given an image $x _ { i }$ from the unlabeled set $\\mathcal { D } _ { U }$ , we compute the model’s prediction $p _ { i } ^ { w }$ from a weakly-augmented version (denoted as $x _ { i } ^ { w }$ ) and $p _ { i } ^ { s }$ from a strongly-augmented version (denoted as $\\boldsymbol { x } _ { i } ^ { s }$ ) of the unlabeled image. The prediction of the weakly-augmented version is produced from the teacher network, which serves as a soft-target for the strongly-augmented images. We use the student network to get the prediction $p _ { i } ^ { s }$ for the strongly-augmented images. Specifically, ",
396
+ "bbox": [
397
+ 173,
398
+ 161,
399
+ 825,
400
+ 261
401
+ ],
402
+ "page_idx": 4
403
+ },
404
+ {
405
+ "type": "equation",
406
+ "img_path": "images/cb3d2737460962fb371472adfe292680b3b903edef522612f8a396d828524dee.jpg",
407
+ "text": "$$\np _ { i } ^ { s } = \\mathsf { S o f t m a x } \\big ( g _ { s } \\big ( f _ { s } ( x _ { i } ^ { s } ) \\big ) \\big ) ; \\quad p _ { i } ^ { w } = \\mathsf { S o f t m a x } \\big ( g _ { t } \\big ( f _ { t } ( x _ { i } ^ { w } ) \\big ) / \\tau \\big )\n$$",
408
+ "text_format": "latex",
409
+ "bbox": [
410
+ 284,
411
+ 266,
412
+ 712,
413
+ 284
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "where $\\tau$ is a sharpening parameter. Note that we do not let gradient pass through the teacher network. We calculate the distillation loss by the cross-entropy function ",
420
+ "bbox": [
421
+ 173,
422
+ 290,
423
+ 823,
424
+ 319
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "equation",
430
+ "img_path": "images/f34b22f234dd101c12aad55656b6d6e9050fe0be129952c49b7c154fba8feb2f.jpg",
431
+ "text": "$$\nl _ { U } ( p _ { i } ^ { w } , p _ { i } ^ { s } ) = H ( p _ { i } ^ { w } , p _ { i } ^ { s } )\n$$",
432
+ "text_format": "latex",
433
+ "bbox": [
434
+ 416,
435
+ 325,
436
+ 581,
437
+ 343
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Eq. 3 works like a consistency regularizer so that the network predicts similar scores for different augmented versions of the image. We can also consider Eq. 3 as self-supervised loss, similar to BYOL [6] or DINO [2]. However, one major difference is that - in BYOL or DINO the projection head is a random linear layer, where, we are using the supervised classification head as the projection head. ",
444
+ "bbox": [
445
+ 173,
446
+ 349,
447
+ 825,
448
+ 419
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "The total loss function is: ",
455
+ "bbox": [
456
+ 174,
457
+ 425,
458
+ 341,
459
+ 439
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "equation",
465
+ "img_path": "images/1f2eb5795f5320b50fa7d90cd1a78ae3d828019be31825adab5ed37eb7bc7c12.jpg",
466
+ "text": "$$\n\\mathcal { L } = \\frac { 1 } { { { N _ { S } } } } \\sum _ { ( { x _ { i } } , { y _ { i } } ) \\in { \\mathcal { D } _ { S } } } { l _ { \\mathrm { { C E } } } } ( y , p ) + \\lambda \\frac { 1 } { { { N _ { U } } } } \\sum _ { { x _ { i } } \\in { \\mathcal { D } _ { U } } } { l _ { U } } ( p _ { i } ^ { w } , p _ { i } ^ { s } )\n$$",
467
+ "text_format": "latex",
468
+ "bbox": [
469
+ 316,
470
+ 455,
471
+ 681,
472
+ 494
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "where $\\lambda$ is a hyper-parameter. The loss function is used to update the parameters of the student network. For the teacher network, we use mean teacher approach [24], i.e., we update the teacher weights $\\theta _ { t }$ from the student weights $\\theta _ { s }$ by: $\\theta _ { t } = m \\theta _ { t } + ( 1 - m ) \\theta _ { s }$ , where $m$ is the momentum parameter. Note that when $m = 1$ , we are essentially using fixed teacher, and when $m = 0$ , the teacher and student share the same model. When $m > 0$ , the teacher network is a moving average of the student network denoting the distillation process as dynamic. Please refer to the Appendix for PyTorch-like pseudo-code of our method. ",
479
+ "bbox": [
480
+ 173,
481
+ 503,
482
+ 825,
483
+ 602
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "4 Experiments ",
490
+ "text_level": 1,
491
+ "bbox": [
492
+ 174,
493
+ 621,
494
+ 312,
495
+ 638
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "4.1 Experimental Setup ",
502
+ "text_level": 1,
503
+ "bbox": [
504
+ 176,
505
+ 652,
506
+ 351,
507
+ 667
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Dataset We follow the evaluation protocol of the BSCD-FSL benchmark [7], which contains novel data from CropDisease [17], EuroSAT [8], ISIC [4], and ChestX [32]. The base dataset is miniImageNet [29], which contains 100 classes from ImageNet dataset [5] where each class has 600 images. The novel datasets are chosen based on increasing dissimilarity from the miniImageNet dataset. More details about the datasets are provided in the Appendix. Following [18], we randomly sample $20 \\%$ of the data from each novel dataset to construct the unlabeled set $\\mathcal { D } _ { U }$ , and the remaining images are used for evaluation, where we perform 5-way 1-shot and 5-way 5-shot classification. For evaluation metric, we report top-1 accuracy and $9 5 \\%$ confidence interval over 600 runs. We also report evaluation results on the larger tieredImageNet dataset [19]. ",
514
+ "bbox": [
515
+ 173,
516
+ 678,
517
+ 825,
518
+ 804
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Implementation details We use ResNet-10 as the backbone network [7, 18]. Our pretraining has two steps. In the first step, we train our network only on the miniImageNet dataset for 200 epochs. We use SGD with momentum 0.9, weight decay 1e-4, learning rate 0.01, batch size 32, and the cosine learning rate scheduler. In the next step, we use the miniImageNet-pretrained network, and use both the base dataset and the unlabeled dataset to optimize the loss function in Eq. 4 for 60 epochs. During training, we increase the weight of distillation loss $\\lambda$ from 0 to 1 until 40 epochs using cosine scheduling. The sharpening temperature and teacher momentum parameter are set to 0.1 and 0.99 respectively. For the base images and weakly-augmented unlabeled images, we use the random-resize-crop, horizontal flip and normalization augmentations. For strong augmentation, we additionally use the color jitter, Gaussian blur, and random gray scale transformations. The other hyperparameters are kept the same. Refer to the supplementary for more details about hyper-parameter selection. For few-shot evaluation, we learn a logistic regression classifier on the support set, and evaluate on the query set. ",
525
+ "bbox": [
526
+ 174,
527
+ 827,
528
+ 825,
529
+ 911
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "table",
535
+ "img_path": "images/833f2cf690ed57a28da01f5bc777c15ebbc2be12c1dcf29482c351a0e33fa5ec.jpg",
536
+ "table_caption": [
537
+ "Table 1: 5-way 1-shot and 5-shot scores on the BSCD-FSL benchmark datasets. The mean and $9 5 \\%$ confidence interval of 600 runs are reported. The ∗ indicates that the numbers are reported from [7] where no unlabeled data is used. The † are the numbers reported from [18], which uses $20 \\%$ of the original set as the unlabeled dataset. We also use similar number of unlabeled images as [18]; however, the splits might be different for random sampling. "
538
+ ],
539
+ "table_footnote": [],
540
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"4\">1-shot</td><td colspan=\"4\">5-shot</td></tr><tr><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>MAML*</td><td></td><td></td><td></td><td></td><td>71.70±.72</td><td>78.05±.70</td><td>40.13±.58</td><td>23.48±.48</td></tr><tr><td>ProtoNet*</td><td></td><td></td><td></td><td></td><td>73.29±.71</td><td>79.72±.79</td><td>39.57±.57</td><td>24.05±1.01</td></tr><tr><td>MetaOpt*</td><td></td><td></td><td></td><td></td><td>64.44±.73</td><td>68.41±.73</td><td>36.28±.50</td><td>22.53±.91</td></tr><tr><td>STARTUPt</td><td>63.88±.84</td><td>75.93±.80</td><td>32.66±.60</td><td>23.09±.43</td><td>82.29±.60</td><td>93.02±.45</td><td>47.22±.61</td><td>26.94±.45</td></tr><tr><td>ProtoNet</td><td>55.32±.88</td><td>52.94±.81</td><td>29.58±.57</td><td>21.32±.37</td><td>76.92±.67</td><td>81.84±.68</td><td>42.49±.58</td><td>24.72±.43</td></tr><tr><td>MatchingNet</td><td>54.88±.90</td><td>46.86±.88</td><td>27.37±.51</td><td>20.65±.29</td><td>68.00±.68</td><td>63.94±.84</td><td>33.96±.54</td><td>22.62±.36</td></tr><tr><td>Transfer</td><td>58.14±.83</td><td>68.78±.84</td><td>32.12±.59</td><td>22.60±.39</td><td>80.09±.61</td><td>89.79±.52</td><td>43.88±.57</td><td>26.51±.43</td></tr><tr><td>SimCLR(Base)</td><td>58.28±.90</td><td>61.58±.88</td><td>32.43±.56</td><td>22.37±.42</td><td>80.83±.64</td><td>83.44±.61</td><td>44.04±.55</td><td>26.63±.46</td></tr><tr><td>SimCLR</td><td>62.63±.87</td><td>69.22±.93</td><td>31.45±.59</td><td>23.59±.44</td><td>82.76±.59</td><td>89.31±.53</td><td>42.18±.54</td><td>29.56±.49</td></tr><tr><td>STARTUP</td><td>64.32±.88</td><td>74.45±.86</td><td>31.73±.57</td><td>22.27±.41</td><td>83.58±.60</td><td>92.41±.47</td><td>45.73±.62</td><td>26.21±.46</td></tr><tr><td>Transfer+SimCLR</td><td>63.91±.83</td><td>70.35±.85</td><td>31.67±.55</td><td>23.72±.44</td><td>85.78±.51</td><td>91.10±.49</td><td>45.97±.54</td><td>29.45±.10</td></tr><tr><td> Ours</td><td>73.14±.84</td><td>82.14±.78</td><td>34.66±.58</td><td>23.38±.43</td><td>89.07±.47</td><td>95.54±.38</td><td>49.36±.59</td><td>28.31±.46</td></tr></table>",
541
+ "bbox": [
542
+ 173,
543
+ 157,
544
+ 825,
545
+ 321
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "",
552
+ "bbox": [
553
+ 173,
554
+ 353,
555
+ 825,
556
+ 450
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "4.2 Main Results ",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 174,
566
+ 483,
567
+ 303,
568
+ 498
569
+ ],
570
+ "page_idx": 5
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "Comparison to State-of-the-arts Table 1 shows the performance comparison of our approach with other methods on the BSCD-FSL benchmark. All models are trained on the miniImageNet dataset. “Transfer” denotes the baseline trained by cross-entropy loss on the base dataset. “SimCLR” is trained only on the unlabeled images. As noted by [9], self-supervised contrastive learning learns better transferable representation for a different downstream domain. Hence, we also create a “SimCLR(Base)” baseline that trains the encoder by optimizing self-supervised contrastive loss on the base dataset. “Transfer+SimCLR” refers to the model which is trained with supervised cross-entropy loss from the base dataset and self-supervised contrastive loss from the unlabeled target dataset, which has been reported to show superior transferability across domain [9]. STARTUP [18] is trained with three losses: cross-entropy loss on the base dataset, KL-divergence loss on the unlabeled dataset similar, and self-supervised contrastive loss on unlabeled images. STARTUP, Transfer+SimCLR and our approach use both the base dataset and additional unlabeled dataset during the representation learning phase. ",
575
+ "bbox": [
576
+ 173,
577
+ 511,
578
+ 825,
579
+ 690
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Our method outperforms all meta-learning-based approaches by a significant margin at all settings. Moreover, compared to Transfer, we achieve more than ${ \\sim } 5 . 5 \\%$ improvement for 5-shot classification on average. The performance improvement on 1-shot is more significant; we achieve $7 . 9 \\%$ improvement on average. ",
586
+ "bbox": [
587
+ 174,
588
+ 696,
589
+ 825,
590
+ 752
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "We outperform STARTUP by $5 . 5 \\%$ on EuroSAT, $3 . 1 \\%$ on CropDisease, $2 . 1 \\%$ on ChestX, and $3 . 6 \\%$ on ISIC for 5-way 5-shot classification. The performance improvement is also quite significant for 1-shot classification; specifically, our method achieves $8 . 8 \\%$ improvement on EuroSAT and $7 . 7 \\%$ improvement on CropDisease dataset over STARTUP. We only perform slightly worse on the ChestX dataset. For ChestX, it seems that pure unsupervised learning performs pretty well. Considering that our method does not use any self-supervised training or distillation, the performance improvement is impressive. Note that STARTUP uses a fixed teacher to extract pseudo-labels for the unlabeled images, whereas we extract pseudo labels from the weakly-augmented images from the same network that is being trained. In that sense, our model works like a dynamic teacher, where the pseudo labels get more refined as training progress. We hypothesize that the superior performance might be attributed to the dynamic approach of our model over STARTUP. ",
597
+ "bbox": [
598
+ 174,
599
+ 758,
600
+ 825,
601
+ 911
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "table",
607
+ "img_path": "images/f900298a059783d6dbbd56533fc5289e8a35373ad30af22a37f3a5f411e3846a.jpg",
608
+ "table_caption": [
609
+ "Table 2: 5-way 1-shot and 5-shot scores on the BSCD-FSL benchmark datasets when tieredImageNet is used as base dataset. All models use ResNet-18 for backbone [25]. The mean and $9 5 \\%$ confidence interval of 600 runs are reported. For EuroSAT and CropDisease dataset, our method achieves significant performance improvement over other models. The improvement for 1-shot learning is huge (over $7 \\%$ for EuroSAT and $10 \\%$ for CropDisease). "
610
+ ],
611
+ "table_footnote": [],
612
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"4\">1-shot</td><td colspan=\"4\">5-shot</td></tr><tr><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Transfer</td><td>58.07±.86</td><td>69.94±.87</td><td>29.76±.55</td><td>22.46±.41</td><td>81.34±.53</td><td>90.12±.49</td><td>41.27±.58</td><td>26.33±.45</td></tr><tr><td>SimCLR(Base)</td><td>62.14±.89</td><td>62.45±.90</td><td>31.03±.55</td><td>22.28±.40</td><td>81.85±.59</td><td>84.11±.60</td><td>42.91±.55</td><td>25.96±.44</td></tr><tr><td>STARTUP</td><td>64.32±.87</td><td>70.09±.86</td><td>29.73±.51</td><td>22.10±.40</td><td>85.19±.50</td><td>90.81±.49</td><td>43.55±.56</td><td>26.03±.44</td></tr><tr><td>Transfer+SimCLR</td><td>58.08±.83</td><td>71.25±.89</td><td>31.71±.55</td><td>23.81±.46</td><td>86.08±.47</td><td>91.31±.49</td><td>45.08±.56</td><td>30.26±.50</td></tr><tr><td>Ours</td><td>72.15±.75</td><td>84.41±.75</td><td>33.87±.56</td><td>22.70±.42</td><td>89.44±.42</td><td>95.90±.34</td><td>47.21±.56</td><td>27.67±.46</td></tr></table>",
613
+ "bbox": [
614
+ 173,
615
+ 157,
616
+ 825,
617
+ 246
618
+ ],
619
+ "page_idx": 6
620
+ },
621
+ {
622
+ "type": "table",
623
+ "img_path": "images/502ad74eee0364a3b52db292cbbe82ce6c04aaba10e5d3baed5a4f0364e90963.jpg",
624
+ "table_caption": [
625
+ "Table 3: Few-shot evaluation on the same domain in terms of 5-way 5-shot and 5-way 1-shot accuracy on miniImageNet and tieredImageNet datasets. We use ResNet-10 backbone for miniImageNet and ResNet-18 backbone for tieredImageNet. "
626
+ ],
627
+ "table_footnote": [],
628
+ "table_body": "<table><tr><td></td><td colspan=\"2\">miniImageNet</td><td colspan=\"2\">tieredImageNet</td></tr><tr><td></td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>ProtoNet</td><td>51.06±.83</td><td>73.49±.63</td><td></td><td></td></tr><tr><td>MatchingNet</td><td>52.34±.81</td><td>67.28±.67</td><td>1</td><td>=</td></tr><tr><td>Transfer</td><td>53.40±.80</td><td>74.26±.64</td><td>58.61±.97</td><td>81.42±.65</td></tr><tr><td>Transfer+SimCLR</td><td>51.63±.82</td><td>74.65±.60</td><td>61.33±.96</td><td>82.89±.65</td></tr><tr><td>STARTUP</td><td>51.68±.84</td><td>74.05±.66</td><td>60.92±.96</td><td>82.11±.64</td></tr><tr><td>Ours</td><td>53.71±.83</td><td>76.02±.61</td><td>69.00±.96</td><td>85.93±.60</td></tr></table>",
629
+ "bbox": [
630
+ 263,
631
+ 309,
632
+ 730,
633
+ 416
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "Results with tieredImageNet base data tieredImageNet [19] is a subset of ImageNet dataset with 608 classes. The classes are grouped into 34 super-categories, from which 20 training categories (351 classes), 6 validation categories (97 classes), and 8 testing categories (160 classes) are selected. We use a larger backbone ResNet-18 for meta-training with tieredImageNet [25]. Table 2 shows the performance comparison with other models. We get similar conclusion as we get from Table 1. Particularly, we get $6 . 7 2 \\%$ average improvement for 1-shot and $3 . 6 6 \\%$ average improvement for 5-shot over STARTUP. However, we do not see much better accuracy than miniImageNet pretrained models even though we are using a much larger base dataset, which suggests that the size of base dataset is not as important as other transfer learning task in cross domain few-shot learning. ",
640
+ "bbox": [
641
+ 173,
642
+ 443,
643
+ 825,
644
+ 568
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Few-shot performance on similar domain It has been shown that self-training improves ImageNet classification [33]. Given the distillation approach of our model, one could expect that it might improve the few-shot accuracy even when the target data come from the same domain. Note that STARTUP does not improve the in-domain accuracy [18], even though it is also a self-training based model. We evaluate on miniImageNet and tieredImageNet dataset in terms of 5-way 1-shot and 5-way 5-shot performance. We use the official training split as base dataset, and the unlabeled target data are obtained from $20 \\%$ of the novel (test) set and the rest are used for evaluation. For backbone, we use ResNet-10 for miniImageNet and ResNet-18 for tieredImageNet. Table 3 reports the results for in-domain few-shot performance. We see that our method achieves the best performance among the baselines. Particularly, for 1-shot learning in tieredImageNet, our model outperforms the best one by $7 . 7 \\%$ . We infer that our method can be safely applied to few-shot learning task when the domain gap between base and target dataset is small, which is in contrast with STARTUP that does not show improvement over “Transfer\" for few-shot learning on similar domain. ",
651
+ "bbox": [
652
+ 173,
653
+ 579,
654
+ 825,
655
+ 758
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "4.3 Analysis ",
662
+ "text_level": 1,
663
+ "bbox": [
664
+ 174,
665
+ 775,
666
+ 271,
667
+ 790
668
+ ],
669
+ "page_idx": 6
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "Effect of dynamic distillation To understand how distillation helps to learn better representation, we use the pretrained models to extract features of the target dataset. Then we use KMeans algorithm to create clusters from the features. The number of clusters in the KMeans is set to be the number of classes of the target dataset. In Table ",
674
+ "bbox": [
675
+ 174,
676
+ 800,
677
+ 452,
678
+ 911
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "table",
684
+ "img_path": "images/77ca027ff69828cc474beacc5a7ee57897566181bcb26679d2ab19b53f7ebcab.jpg",
685
+ "table_caption": [
686
+ "Table 4: V-measure cluster score $( \\% )$ [20] on the KMeans clustering of the extracted features with the ground-truth clustering. The backbone is ResNet-10 pretrained on the miniImageNet dataset and/or the unlabeled target dataset. "
687
+ ],
688
+ "table_footnote": [],
689
+ "table_body": "<table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Transfer</td><td>57.01</td><td>62.58</td><td>14.67</td><td>2.45</td></tr><tr><td>SimCLR</td><td>60.06</td><td>62.02</td><td>12.12</td><td>3.84</td></tr><tr><td>STARTUP</td><td>62.02</td><td>69.50</td><td>14.05</td><td>2.71</td></tr><tr><td>Ours</td><td>69.58</td><td>73.27</td><td>14.32</td><td>3.32</td></tr></table>",
690
+ "bbox": [
691
+ 472,
692
+ 844,
693
+ 813,
694
+ 910
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "4, the V-measurement cluster scores [20] between the KMeans clusters and original ground-truth are shown. The V-score has $100 \\%$ value when there is maximum agreement between ground-truth and predicted clusters, and $0 \\%$ when there’s no agreement. Table 4 shows that our method achieves higher v-scores for EuroSAT and CropDisease dataset, and the v-scores for ISIC and ChestX are also very competitive. It suggests that our model learns a good clustering of the target data even when we are not using any target labels. The clustering is much better when the domain gap is not extreme. ",
701
+ "bbox": [
702
+ 173,
703
+ 90,
704
+ 825,
705
+ 174
706
+ ],
707
+ "page_idx": 7
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Fig. 3 shows t-SNE plots [26] from 10 representative classes from the CropDisease and EuroSAT datasets. We compare the embeddings extracted from “Transfer” and our approach. We see that our method creates better grouping on the embeddings of the target datasets, even though we do not use any labels for the target dataset during pretraining. ",
712
+ "bbox": [
713
+ 174,
714
+ 181,
715
+ 825,
716
+ 237
717
+ ],
718
+ "page_idx": 7
719
+ },
720
+ {
721
+ "type": "image",
722
+ "img_path": "images/36501101abeac70a3ef2f8ddf896c10e3853579dfdaab8e0e092e6c1fa408902.jpg",
723
+ "image_caption": [
724
+ "Figure 3: t-SNE plot of 10 classes from CropDisease (a & b) and EuroSAT (c & d) test sets with features obtained from Transfer and our method. "
725
+ ],
726
+ "image_footnote": [],
727
+ "bbox": [
728
+ 207,
729
+ 253,
730
+ 794,
731
+ 357
732
+ ],
733
+ "page_idx": 7
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "Comparison with self-supervised learning If we ignore the supervised loss, our model has similarity with self-supervised non-contrastive loss similar to BYOL or DINO. However, the projection head we are using to calculate the final predictions of the two different views of an unlabeled image is the same classification head that is used to predict the classification logits of the labeled base samples. In Table 5, “Ours (distillation head)” represents the model where we use separate projection head for the predictions of the unlabeled images. We see that separate projection head performs much worse. We found that the distillation loss is simply converging to a trivial solution in this case. To discourage trivial solution, we add recently developed tricks in self-supervised learning, namely, centering and strong augmentation - which turns the unlabeled branch similar to ResNet DINO [2]. “Ours (DINO head)” achieves better accuracy than “Ours (distillation head)”, suggesting that it alleviates the issue of trivial solution. However, our original method still achieves a significant $3 . 0 7 \\%$ more improvement. It is interesting to note that a separate projection head causes trivial solution for the unlabeled images, whereas our model does not converge to trivial solution with similar settings. We infer that using a supervised classifier linear layer as the projection head can solve the issue of trivial solution for the self-supervised learning to some extent without requiring extra tricks like BatchNorm [6] or centering $I 2 I$ . Additionally, it provides a better clustering of the unlabeled features, even if the unlabeled samples come from different domain than the labeled samples. Table 5 also shows results for “Ours $^ +$ SimCLR”, which simply adds a SimCLR loss for the unlabeled samples. It performs slightly better only in ChestX dataset. On average, the performance is similar to “Ours”, which signifies that there is no clear benefit using a self-supervised contrastive loss to achieve better transferability for our method. Note that STARTUP comes to a different conclusion reporting that adding SimCLR loss consistently improves the performance. ",
738
+ "bbox": [
739
+ 173,
740
+ 422,
741
+ 826,
742
+ 728
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "table",
748
+ "img_path": "images/7b65b152f60e6d492646e3bbf7de1a55bbfca3755eca716edc9421f45f47c11b.jpg",
749
+ "table_caption": [
750
+ "Table 5: Our method with self-supervised approaches. The evaluation is performed on BSCD-FSL benchmark in terms of 5-way 5-shot accuracy $( \\% )$ . “Ours (distillation head)” refers to the model where we use a separate projection head for the distillation loss, which achieves much worse scores. In “Ours $^ +$ DINO”, we use a separate projection head with centering and strong augmentation as in DINO [2]. It achieves better performance than naive transfer, but still under-performs in comparison to our approach. “Ours $^ +$ SimCLR” simply adds a self-supervised contrastive loss for the unlabeled samples. See Appendix for more details. "
751
+ ],
752
+ "table_footnote": [],
753
+ "table_body": "<table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Ours</td><td>89.07</td><td>95.54</td><td>49.36</td><td>28.31</td></tr><tr><td>Ours (distillation head)</td><td>80.06</td><td>89.31</td><td>46.63</td><td>25.29</td></tr><tr><td>Ours (DINO head)</td><td>85.74</td><td>90.55</td><td>46.24</td><td>25.42</td></tr><tr><td>Ours+SimCLR</td><td>88.48</td><td>93.80</td><td>49.10</td><td>29.45</td></tr></table>",
754
+ "bbox": [
755
+ 274,
756
+ 832,
757
+ 720,
758
+ 901
759
+ ],
760
+ "page_idx": 7
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "Experiment of few-shot classification on fine-grained dataset CUB [30] contains 200 classes and 11,788 images of different bird species. ‘miniImageNet- $\\cdot >$ CUB’ is an interesting experiment to show the transferability of different models to a fine-grained dataset. We report the results in Table 6 in terms of 5-way 5-shot scores. For CUB, we found that vanilla Transfer performs surprisingly well (also reported by [3]), and adding SimCLR with Transfer (Transfer+SimCLR) actually decreases the accuracy. Wallace and Hariharan [31] also experimented with different self-supervised methods on smaller domain and found that all of them under-perform for fine-grained task [2]. However, our method still performs the best, demonstrating the effectiveness of our approach in a fine-grained downstream task. ",
765
+ "bbox": [
766
+ 173,
767
+ 90,
768
+ 825,
769
+ 215
770
+ ],
771
+ "page_idx": 8
772
+ },
773
+ {
774
+ "type": "table",
775
+ "img_path": "images/cab554749bd3468d3b6841f444df823bf85a36c29897bf4bd44a1f61216fe728.jpg",
776
+ "table_caption": [
777
+ "Table 6: Experiment on mini-ImageNet $\\bullet >$ CUB. All the scores are reproduced by us. "
778
+ ],
779
+ "table_footnote": [],
780
+ "table_body": "<table><tr><td>ProtoNet</td><td>Transfer</td><td>SimCLR</td><td>Transfer+SimCLR</td><td>STARTUP</td><td>Ours</td></tr><tr><td>63.19</td><td>68.72</td><td>62.84</td><td>67.82</td><td>66.10</td><td>69.50</td></tr></table>",
781
+ "bbox": [
782
+ 236,
783
+ 237,
784
+ 753,
785
+ 280
786
+ ],
787
+ "page_idx": 8
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "Experiment of distillation with unlabeled datasets from different domain Table 7 reports the few-shot accuracy when our model is trained on different unlabeled datasets. The best accuracy is achieved when the unlabeled data and target data are from the same domain. Even if the unlabeled data consists of images from multiple domains including the target domain (denoted as “Ours-all”), it still significantly under-performs the base model. ",
792
+ "bbox": [
793
+ 173,
794
+ 303,
795
+ 825,
796
+ 372
797
+ ],
798
+ "page_idx": 8
799
+ },
800
+ {
801
+ "type": "table",
802
+ "img_path": "images/471f337e2af6502563bad5a2dfb040be4611d7d90f542f1ca0b940507958f4c6.jpg",
803
+ "table_caption": [
804
+ "Table 7: Effect of unlabeled datasets from a different domain than the target dataset in terms of 5-way 5-shot accuracy $( \\% )$ . “Ours-X” denotes that we use base and “X” dataset during pretraining. “Ours-all” denotes that we use unlabeled images from all four target datasets. "
805
+ ],
806
+ "table_footnote": [],
807
+ "table_body": "<table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ChestX</td><td>ISIC</td></tr><tr><td>Ours-EuroSAT</td><td>89.07</td><td>90.43</td><td>26.02</td><td>46.82</td></tr><tr><td>Ours-CropDisease</td><td>81.86</td><td>95.54</td><td>26.17</td><td>45.12</td></tr><tr><td>Ours-ISIC</td><td>81.94</td><td>89.69</td><td>26.70</td><td>49.36</td></tr><tr><td>Ours-ChestX</td><td>81.87</td><td>90.38</td><td>28.31</td><td>45.20</td></tr><tr><td>Ours-All</td><td>82.75</td><td>91.31</td><td>26.01</td><td>46.43</td></tr></table>",
808
+ "bbox": [
809
+ 287,
810
+ 424,
811
+ 707,
812
+ 505
813
+ ],
814
+ "page_idx": 8
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "Effect of data augmentation On the unlabeled images, we apply two types of augmentation: weak augmentation to extract pseudo labels and strong augmentation to impose consistency regularization. This setting is denoted as “weak-strong” (w-s), where ‘weak’ (w) augmentation is applied to the image that is fed into the teacher network and ‘strong’ (s) augmentation is applied to the image that is fed into the student network. We also show results with “weak-weak” (w-w), “strong-weak” (s-w) and “strong-strong” (s-s) augmentation settings in Figure 4a. Both “weak-weak” and “strong-strong” perform worse than the other augmentations. We also note that in self-supervised learning, generally strong augmentation is applied to all training images to get good performance. In our experiment, we find that applying weak augmentation in one of the image pairs improves the performance. ",
819
+ "bbox": [
820
+ 173,
821
+ 525,
822
+ 826,
823
+ 650
824
+ ],
825
+ "page_idx": 8
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "More unlabeled data To measure the effect of amount of unlabeled dataset during pretraining, we divide the target dataset by $80 \\%$ and $20 \\%$ splits. The $20 \\%$ split is used for evaluation. From the $80 \\%$ split, we vary the amount of unlabeled data and then pretrain with source and the unlabeled set. Fig. 4b shows the average 5-shot accuracy for different amounts of the unlabeled dataset during the pretraining phase. As expected, more information from the unlabeled dataset helps to learn better representations on the target domain. However, the performance saturates later, and we get diminishing return for more unlabeled data. It also signifies that there are scopes to improve the performance by using more unlabeled data denoting potential future research direction. ",
830
+ "bbox": [
831
+ 174,
832
+ 661,
833
+ 825,
834
+ 773
835
+ ],
836
+ "page_idx": 8
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "4.4 Addition Ablation Studies ",
841
+ "text_level": 1,
842
+ "bbox": [
843
+ 174,
844
+ 790,
845
+ 393,
846
+ 805
847
+ ],
848
+ "page_idx": 8
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "We perform several ablation studies of different components of our approach. All scores are reported for 5-way 5-shot evaluation. More ablations are provided in the Appendix. ",
853
+ "bbox": [
854
+ 174,
855
+ 815,
856
+ 823,
857
+ 844
858
+ ],
859
+ "page_idx": 8
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Longer training We use the base dataset pretrained network as initialization for our network, and then train on both base dataset and unlabeled dataset for 60 epochs. Figure $_ \\mathrm { 4 c }$ reports average 5-way 5-shot few-shot on the BSCD-FSL benchmark performance for our pretrained with longer training epoch. Training for more epochs can result in minor improvement $( 0 . 2 \\% )$ . ",
864
+ "bbox": [
865
+ 174,
866
+ 856,
867
+ 823,
868
+ 912
869
+ ],
870
+ "page_idx": 8
871
+ },
872
+ {
873
+ "type": "image",
874
+ "img_path": "images/f1b5c962ab2ccd9c9213cde32790f32a6824e26df90bce206252a13bf3f3f81d.jpg",
875
+ "image_caption": [
876
+ "Figure 4: Ablation studies for (a) data augmentation on unlabeled images, (b) effect of longer training on base and unlabeled data, (c) amount of unlabeled data. The Y-axis represents average top1 accuracy $( \\% )$ on the four benchmark datasets for 5-shot classification for 600 episodes. We use miniImageNet for labeled source dataset and ResNet-10 as backbone. "
877
+ ],
878
+ "image_footnote": [],
879
+ "bbox": [
880
+ 173,
881
+ 87,
882
+ 562,
883
+ 217
884
+ ],
885
+ "page_idx": 9
886
+ },
887
+ {
888
+ "type": "table",
889
+ "img_path": "images/2b159bc939ec8c1b384cbda64938faa7c8576c1585a92ca1a04ea3c7c774a82e.jpg",
890
+ "table_caption": [
891
+ "Table 8: Ablation studies on different settings. Mean over 600 runs. "
892
+ ],
893
+ "table_footnote": [],
894
+ "table_body": "<table><tr><td></td><td>EuroSAT</td><td>CropDisease</td><td>ISIC</td><td>ChestX</td></tr><tr><td>Ours</td><td>89.07</td><td>95.54</td><td>49.36</td><td>28.31</td></tr><tr><td>Ours(w/o base)</td><td>82.11</td><td>90.52</td><td>39.76</td><td>26.83</td></tr><tr><td>Ours(1-step)</td><td>86.16</td><td>87.28</td><td>46.10</td><td>25.11</td></tr></table>",
895
+ "bbox": [
896
+ 295,
897
+ 251,
898
+ 696,
899
+ 309
900
+ ],
901
+ "page_idx": 9
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Effect of base dataset Here, we perform experiments without the first term in Eq. 4, i.e., we train the network on the base dataset first and then re-train only on the unlabeled images (without joint training on the base dataset), denoted as “Ours (w/o base)”. Table 8 shows that the performance of “Ours (w/o base)” is poor, suggesting that the representation related to the labeled base dataset is still helpful to the target domain. ",
906
+ "bbox": [
907
+ 173,
908
+ 334,
909
+ 825,
910
+ 405
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Training without pretrained model on base dataset We perform 2-step training during the representation learning phase - we first train the model on mini-IN only, and then jointly train on mini-IN and unlabeled images. In Table 8, “Ours(1-step)” denotes training on the unlabeled images and mini-IN from scratch for 300 epochs, which performs worse than 2-step training. Our assumption is that the proposed model is also like self-training where a well-trained teacher is needed. ",
917
+ "bbox": [
918
+ 174,
919
+ 415,
920
+ 825,
921
+ 486
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "5 Conclusion ",
928
+ "text_level": 1,
929
+ "bbox": [
930
+ 174,
931
+ 503,
932
+ 299,
933
+ 521
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "We introduced a novel approach to utilize unlabeled data from the target domain for cross-domain fewshot learning. Experiments show that our method achieves state-of-the-art results in the BSCD-FSL benchmark for both 1-shot and 5-shot classification. Our model also outperforms other approaches in the same-domain few-shot learning. Future work can be focused on applying our approach in each episode during meta-testing so that the model can learn more category-specific representations. ",
940
+ "bbox": [
941
+ 174,
942
+ 535,
943
+ 825,
944
+ 606
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "6 Broader Impact ",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 174,
954
+ 625,
955
+ 339,
956
+ 642
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "The approach tackles a practical problem of the existing few-shot learning setup that the base dataset and the novel samples generally come from different domain. Our work uses the unlabeled samples from the target dataset to learn more target specific representation. Like any other machine learning tool, the final impact depends on the intention of the people or institution applying it. However, it can be useful in drug discovery or medical image analysis where labeled dataset is limited. ",
963
+ "bbox": [
964
+ 174,
965
+ 655,
966
+ 825,
967
+ 726
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "7 Acknowledgments ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 174,
977
+ 744,
978
+ 357,
979
+ 762
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "This material is based upon work supported by the U.S. Department of Homeland Security, Science and Technology Directorate, Office of University Programs, under Grant Award 2013-ST-061- ED0001. The views and conclusions contained in this document are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of the U.S. Department of Homeland Security. ",
986
+ "bbox": [
987
+ 173,
988
+ 775,
989
+ 826,
990
+ 845
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "References ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 174,
1000
+ 90,
1001
+ 266,
1002
+ 106
1003
+ ],
1004
+ "page_idx": 10
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "[1] E. Arazo, D. Ortego, P. Albert, N. E. O’Connor, and K. McGuinness. Pseudo-labeling and confirmation bias in deep semi-supervised learning. In 2020 International Joint Conference on Neural Networks (IJCNN), pages 1–8. IEEE, 2020. \n[2] M. Caron, H. Touvron, I. Misra, H. Jégou, J. Mairal, P. Bojanowski, and A. Joulin. Emerging properties in self-supervised vision transformers, 2021. \n[3] W.-Y. Chen, Y.-C. Liu, Z. Kira, Y.-C. F. Wang, and J.-B. Huang. A closer look at few-shot classification. arXiv preprint arXiv:1904.04232, 2019. \n[4] N. Codella, V. Rotemberg, P. Tschandl, M. E. Celebi, S. Dusza, D. Gutman, B. Helba, A. Kalloo, K. Liopyris, M. Marchetti, et al. Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (isic). arXiv preprint arXiv:1902.03368, 2019. \n[5] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255. IEEE, 2009. [6] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. H. Richemond, E. Buchatskaya, C. Doersch, B. A. Pires, Z. D. Guo, M. G. Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. [7] Y. Guo, N. C. Codella, L. Karlinsky, J. V. Codella, J. R. Smith, K. Saenko, T. Rosing, and R. Feris. A broader study of cross-domain few-shot learning. Eur. Conf. Comput. Vis., 2020. \n[8] P. Helber, B. Bischke, A. Dengel, and D. Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 12(7):2217–2226, 2019. [9] A. Islam, C.-F. Chen, R. Panda, L. Karlinsky, R. Radke, and R. Feris. A broad study on the transferability of visual representations with contrastive learning, 2021. \n[10] T. Jeong and H. Kim. Ood-maml: Meta-learning for few-shot out-of-distribution detection and classification. Advances in Neural Information Processing Systems, 33, 2020. \n[11] J. Kim, T. Kim, S. Kim, and C. D. Yoo. Edge-labeling graph neural network for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11–20, 2019. \n[12] D.-H. Lee et al. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In Workshop on challenges in representation learning, ICML, volume 3, 2013. \n[13] K. Lee, S. Maji, A. Ravichandran, and S. Soatto. Meta-learning with differentiable convex optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10657– 10665, 2019. \n[14] K. Lee, S. Maji, A. Ravichandran, and S. Soatto. Meta-learning with differentiable convex optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10657– 10665, 2019. \n[15] Y. Liu, J. Lee, M. Park, S. Kim, E. Yang, S. J. Hwang, and Y. Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. arXiv preprint arXiv:1805.10002, 2018. \n[16] T. Miyato, S.-i. Maeda, M. Koyama, and S. Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018. \n[17] S. P. Mohanty, D. P. Hughes, and M. Salathé. Using deep learning for image-based plant disease detection. Frontiers in plant science, 7:1419, 2016. \n[18] C. P. Phoo and B. Hariharan. Self-training for few-shot transfer across extreme task differences. arXiv preprint arXiv:2010.07734, 2020. \n[19] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel. Meta-learning for semi-supervised few-shot classification. arXiv preprint arXiv:1803.00676, 2018. \n[20] A. Rosenberg and J. Hirschberg. V-measure: A conditional entropy-based external cluster evaluation measure. In Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL), pages 410–420, 2007. \n[21] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 4077–4087. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper/2017/file/ cb8da6767461f2812ae4290eac7cbc42-Paper.pdf. \n[22] K. Sohn, D. Berthelot, C.-L. Li, Z. Zhang, N. Carlini, E. D. Cubuk, A. Kurakin, H. Zhang, and C. Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. arXiv preprint arXiv:2001.07685, 2020. \n[23] F. Sung, Y. Yang, L. Zhang, T. Xiang, P. H. Torr, and T. M. Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1199–1208, 2018. \n[24] A. Tarvainen and H. Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results, 2018. \n[25] Y. Tian, Y. Wang, D. Krishnan, J. B. Tenenbaum, and P. Isola. Rethinking few-shot image classification: a good embedding is all you need? arXiv preprint arXiv:2003.11539, 2020. \n[26] L. van der Maaten and G. Hinton. Visualizing high-dimensional data using t-sne.(2008). Reference Source [Google Scholar], 2008. \n[27] V. Verma, K. Kawaguchi, A. Lamb, J. Kannala, Y. Bengio, and D. Lopez-Paz. Interpolation consistency training for semi-supervised learning. arXiv preprint arXiv:1903.03825, 2019. \n[28] O. Vinyals, C. Blundell, T. Lillicrap, k. kavukcuoglu, and D. Wierstra. Matching networks for one shot learning. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29, pages 3630–3638. Curran Associates, Inc., 2016. URL https://proceedings.neurips.cc/paper/2016/file/ 90e1357833654983612fb05e3ec9148c-Paper.pdf. \n[29] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630–3638, 2016. \n[30] C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. \n[31] B. Wallace and B. Hariharan. Extending and analyzing self-supervised learning across domains. In European Conference on Computer Vision, pages 717–734. Springer, 2020. \n[32] X. Wang, Y. Peng, L. Lu, Z. Lu, M. Bagheri, and R. M. Summers. Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2097–2106, 2017. \n[33] Q. Xie, M.-T. Luong, E. Hovy, and Q. V. Le. Self-training with noisy student improves imagenet classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10687–10698, 2020. \n[34] Q. Xu, T. Likhomanenko, J. Kahn, A. Hannun, G. Synnaeve, and R. Collobert. Iterative pseudo-labeling for speech recognition. arXiv preprint arXiv:2005.09267, 2020. \n[35] I. Z. Yalniz, H. Jégou, K. Chen, M. Paluri, and D. Mahajan. Billion-scale semi-supervised learning for image classification. arXiv preprint arXiv:1905.00546, 2019. \n[36] R. Zhang, T. Che, Z. Ghahramani, Y. Bengio, and Y. Song. Metagan: An adversarial approach to few-shot learning. NeurIPS, 2:8, 2018. ",
1009
+ "bbox": [
1010
+ 171,
1011
+ 108,
1012
+ 830,
1013
+ 916
1014
+ ],
1015
+ "page_idx": 10
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "",
1020
+ "bbox": [
1021
+ 171,
1022
+ 88,
1023
+ 826,
1024
+ 650
1025
+ ],
1026
+ "page_idx": 11
1027
+ }
1028
+ ]
parse/train/_4VxORHq-0g/_4VxORHq-0g_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/_4VxORHq-0g/_4VxORHq-0g_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryxnY3NYPS/ryxnY3NYPS.md ADDED
@@ -0,0 +1,335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIVERSE TRAJECTORY FORECASTING WITH DETERMINANTAL POINT PROCESSES
2
+
3
+ Ye Yuan, Kris M. Kitani Robotics Institute Carnegie Mellon University {yyuan2,kkitani}@cs.cmu.edu
4
+
5
+ # ABSTRACT
6
+
7
+ The ability to forecast a set of likely yet diverse possible future behaviors of an agent (e.g., future trajectories of a pedestrian) is essential for safety-critical perception systems (e.g., autonomous vehicles). In particular, a set of possible future behaviors generated by the system must be diverse to account for all possible outcomes in order to take necessary safety precautions. It is not sufficient to maintain a set of the most likely future outcomes because the set may only contain perturbations of a dominating single outcome (major mode). While generative models such as variational autoencoders (VAEs) have been shown to be a powerful tool for learning a distribution over future trajectories, randomly drawn samples from the learned implicit likelihood model may not be diverse – the likelihood model is derived from the training data distribution and the samples will concentrate around the major mode of the data. In this work, we propose to learn a diversity sampling function (DSF) that generates a diverse yet likely set of future trajectories. The DSF maps forecasting context features to a set of latent codes which can be decoded by a generative model (e.g., VAE) into a set of diverse trajectory samples. Concretely, the process of identifying the diverse set of samples is posed as DSF parameter estimation. To learn the parameters of the DSF, the diversity of the trajectory samples is evaluated by a diversity loss based on a determinantal point process (DPP). Gradient descent is performed over the DSF parameters, which in turn moves the latent codes of the sample set to find an optimal set of diverse yet likely trajectories. Our method is a novel application of DPPs to optimize a set of items (forecasted trajectories) in continuous space. We demonstrate the diversity of the trajectories produced by our approach on both low-dimensional 2D trajectory data and high-dimensional human motion data. (Video1)
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Forecasting future trajectories of vehicles and human has many useful applications in autonomous driving, virtual reality and assistive living. What makes trajectory forecasting challenging is that the future is uncertain and multi-modal – vehicles can choose different routes and people can perform different future actions. In many safety-critical applications, it is important to consider a diverse set of possible future trajectories, even those that are less likely, so that necessary preemptive actions can be taken. For example, an autonomous vehicle should understand that a neighboring car can merge into its lane even though the car is most likely to keep driving straight. To address this requirement, we need to take a generative approach to trajectory forecasting that can fully characterize the multimodal distribution of future trajectories. To capture all modes of a data distribution, variational autoencoders (VAEs) are well-suited generative models. However, random samples from a learned VAE model with Gaussian latent codes are not guaranteed to be diverse for two reasons. First, the sampling procedure is stochastic and the VAE samples can fail to cover some minor modes even with a large number of samples. Second, since VAE sampling is based on the implicit likelihood function encoded in the training data, if most of the training data is centered around a specific mode while other modes have less data (Fig. 1 (a)), the VAE samples will reflect this bias and concentrate around the major mode (Fig. 1 (b)). To tackle this problem, we propose to learn a diversity sampling function (DSF) that can reliably generate a diverse set of trajectory samples (Fig. 1 (c)).
12
+
13
+ ![](images/935dc525723c5a63173fac98ebc77b977ebc640ac583ddbd40861f52edb857bf.jpg)
14
+ Figure 1: A toy trajectory forecasting example. (a) The three modes (pink, blue, purple) of the future trajectory distribution are shown in both the trajectory space and the latent space of a learned VAE model. The data distribution is imbalanced, where the blue mode has most data and covers most of the latent space. (b) Random samples from the VAE only cover the major (blue) mode. (c) Our proposed DSF generates a diverse set of future trajectories covering all three modes.
15
+
16
+ The proposed DSF is a deterministic parameterized function that maps forecasting context features (e.g., past trajectories) to a set of latent codes. The latent codes are decoded by the VAE docoder into a set of future trajectory samples, denoted as the DSF samples. In order to optimize the DSF, we formulate a diversity loss based on a determinantal point process (DPP) (Macchi, 1975) to evaluate the diversity of the DSF samples. The DPP defines the probability of choosing a random subset from the set of trajectory samples. It models the negative correlations between samples: the inclusion of a sample reduces the probability of including a similar sample. This makes the DPP an ideal tool for modeling the diversity within a set. In particular, we use the expected cardinality of the DPP as the diversity measure, which is defined as the expected size of a random subset drawn from the set of trajectory samples according to the DPP. Intuitively, since the DPP inhibits selection of similar samples, if the set of trajectory samples is more diverse, the random subset is more likely to select more samples from the set. The expected cardinality of the DPP is easy to compute and differentiable, which allows us to use it as the objective to optimize the DSF to enable diverse trajectory sampling.
17
+
18
+ Our contributions are as follows: (1) We propose a new forecasting approach that learns a diversity sampling function to produce a diverse set of future trajectories; (2) We propose a novel application of DPPs to optimize a set of items (trajectories) in continuous space with a DPP-based diversity measure; (3) Experiments on synthetic data and human motion validate that our method can reliably generate a more diverse set of future trajectories compared to state-of-the-art generative models.
19
+
20
+ # 2 RELATED WORK
21
+
22
+ Trajectory Forecasting has recently received significant attention from the vision community. A large portion of previous work focuses on forecasting 2D future trajectories for pedestrians (Kitani et al., 2012; Ma et al., 2017; Ballan et al., 2016; Xie et al., 2013) or vehicles (Jain et al., 2016a). Some approaches use deterministic trajectory modeling and only forecast one future trajectory (Alahi et al., 2016; Yagi et al., 2018; Robicquet et al., 2016). As there are often multiple plausible future trajectories, several approaches have tried to forecast distributions over trajectories (Lee et al., 2017; Galceran et al., 2015; Gupta et al., 2018). Recently, Rhinehart et al. (2018; 2019) propose a generative model that can accurately forecast multi-modal trajectories for vehicles. Soo Park et al. (2016) also use egocentric videos to predict the future trajectories of the camera wearer. Some work has investigated forecasting higher dimensional trajectories such as the 3D fullbody pose sequence of human motions. Most existing work takes a deterministic approach and forecasts only one possible future motion from past 3D poses (Fragkiadaki et al., 2015; Butepage et al., 2017; Li et al., 2017; Jain et al., 2016b), static images (Chao et al., 2017; Kanazawa et al., 2018) or egocentric videos (Yuan and Kitani, 2019). Differently, some probabilistic approaches (Habibie et al., 2017; Yan et al., 2018) use conditional variational autoencoders (cVAEs) to generate multiple future motions. In constrast to previous work, our approach can generate a diverse set of future motions with a limited number of samples.
23
+
24
+ Diverse Solutions have been sought after in a number of problems in computer vision and machine learning. A branch of these methods aiming for diversity stems from the M-Best MAP problem (Nilsson, 1998; Seroussi and Golmard, 1994), including diverse M-Best solutions (Batra et al., 2012) and multiple choice learning (Guzman-Rivera et al., 2012; Lee et al., 2016). Alternatively, previous work has used submodular function maximization to select a diverse subset of garments from fashion images (Hsiao and Grauman, 2018). Determinantal point processes (DPPs) (Macchi, 1975; Kulesza et al., 2012) are efficient probabilistic models that can measure both the diversity and quality of items in a subset, which makes it a natural choice for the diverse subset selection problem. DPPs have been applied for document and video summarization (Kulesza and Taskar, 2011; Gong et al., 2014), recommendation systems (Gillenwater et al., 2014), object detection (Azadi et al., 2017), and grasp clustering (Huang et al., 2015). Elfeki et al. (2018) have also used DPPs to mitigate mode collapse in generative adversarial networks (GANs). The work most related ours is (Gillenwater et al., 2014), which also uses the cardinality of DPPs as a proxy for user engagement. However, there are two important differences between our approach and theirs. First, the context is different as they use the cardinality for a subset selection problem while we apply the cardinality as an objective of a continuous optimization problem in the setting of generative models. Second, their main motivation behind using the cardinality is that it aligns better with the user engagement semantics, while our motivation is that using cardinality as a diversity loss for deep neural networks is more stable due to its tolerance of similar trajectories, which are often produced by deep neural networks during stochastic gradient descent.
25
+
26
+ # 3 BACKGROUND
27
+
28
+ # 3.1 VARIATIONAL AUTOENCODERS
29
+
30
+ The aim of multi-modal trajectory forecasting is to learn a generative model over future trajectories. Variational autoencoders (VAEs) are a popular choice of generative models for trajectory forecasting (Lee et al., 2017; Walker et al., 2016) because it can effectively capture all possible future trajectories by explicitly mapping each data point to a latent code. VAEs model the joint distribution $p _ { \theta } \mathbf { \bar { ( x , z ) } } = p \mathbf { \bar { ( z ) } } \bar { p _ { \theta } } ( \mathbf { x } | \mathbf { z } )$ of each data sample $\mathbf { x }$ (e.g., a future trajectory) and its corresponding latent code $\mathbf { z }$ , where $p ( \mathbf { z } )$ denotes some prior distribution (e.g., Gaussians) and $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } )$ denotes the conditional likelihood model. To calculate the marginal likelihood $p _ { \theta } ( \mathbf { x } ) = p _ { \theta } ( \mathbf { x } , \mathbf { z } ) / p _ { \theta } ( \mathbf { z } | \mathbf { x } )$ , one needs to compute the posterior distribution $p _ { \theta } ( \mathbf { z } | \mathbf { x } )$ which is typically intractable. To tackle this, VAEs use variational inference (Jordan et al., 1999) which introduces an approximate posterior $q _ { \phi } ( { \bf z } | { \bf x } )$ and decomposes the marginal log-likelihood as
31
+
32
+ $$
33
+ \begin{array} { r } { \log p _ { \theta } ( \mathbf { x } ) = \mathrm { K L } \left( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) \| p _ { \theta } ( \mathbf { z } | \mathbf { x } ) \right) + \mathcal { L } ( \mathbf { x } ; \theta , \phi ) , } \end{array}
34
+ $$
35
+
36
+ where $\mathcal { L } ( \mathbf { x } ; \theta , \phi )$ is the evidence lower bound (ELBO) defined as
37
+
38
+ $$
39
+ \begin{array} { r } { \mathcal { L } ( \mathbf { x } ; \theta , \phi ) = \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } \left[ \log p _ { \theta } ( \mathbf { x } | \mathbf { z } ) \right] - \mathrm { K L } \left( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) \| p ( \mathbf { z } ) \right) . } \end{array}
40
+ $$
41
+
42
+ During training, VAEs jointly optimize the recognition model (encoder) $q _ { \phi } ( { \bf z } | { \bf x } )$ and the likelihood model (decoder) $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } )$ to maximize the ELBO. In the context of multi-modal trajectory forecasting, one can generate future trajectories from $p ( \mathbf { x } )$ by drawing a latent code $\mathbf { z }$ from the prior $p ( \mathbf { z } )$ and decoding $\mathbf { z }$ with the decoder $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } )$ to produce a corresponding future trajectory $\mathbf { x }$ .
43
+
44
+ # 3.2 DETERMINANTAL POINT PROCESSES
45
+
46
+ Our core technical innovation is a method to learn a diversity sampling function (DSF) that can generate a diverse set of future trajectories. To achieve this, we must equip ourselves with a tool to evaluate the diversity of a set of trajectories. To this end, we make use of determinantal point processes (DPPs) to model the diversity within a set. DPPs promote diversity within a set because the inclusion of one item makes the inclusion of a similar item less likely if the set is sampled according to a DPP.
47
+
48
+ Formally, given a set of items (e.g., data points) $\mathcal { Y } = \{ \mathbf { x } _ { 1 } , \dotsc , \mathbf { x } _ { N } \}$ , a point process $\mathcal { P }$ on the ground set $\mathcal { V }$ is a probability measure on $2 ^ { y }$ , i.e., the set of all subsets of $\mathcal { V }$ . $\mathcal { P }$ is called a determinantal point process if a random subset $\mathbf { Y }$ drawn according to $\mathcal { P }$ has
49
+
50
+ $$
51
+ \mathcal { P } _ { \mathbf { L } } ( Y = Y ) = \frac { \operatorname* { d e t } \left( \mathbf { L } _ { Y } \right) } { \sum _ { Y \subseteq \mathcal { V } } \operatorname* { d e t } \left( \mathbf { L } _ { Y } \right) } = \frac { \operatorname* { d e t } \left( \mathbf { L } _ { Y } \right) } { \operatorname* { d e t } ( \mathbf { L } + \mathbf { I } ) } ,
52
+ $$
53
+
54
+ where $Y \subseteq \mathcal { V }$ , I is the identity matrix, $\mathbf { L } \in \mathbb { R } ^ { N \times N }$ is the DPP kernel, a symmetric positive semidefinite matrix, and $\mathbf { L } _ { Y } \in \mathbb { R } ^ { | Y | \times | Y | }$ is a submatrix of $\mathbf { L }$ indexed by elements of $Y$ .
55
+
56
+ The DPP kernel $\mathbf { L }$ is typically constructed by a similarity matrix S, where $\mathbf { S } _ { i j }$ defines the similarity between two items $\mathbf { x } _ { i }$ and $\mathbf { x } _ { j }$ . If we use the inner product as the similarity measure, $\mathbf { L }$ can be written in the form of a Gram matrix $\mathbf { L } = \mathbf { S } = \mathbf { X } ^ { T } \mathbf { X }$ where $\mathbf { X }$ is the stacked feature matrix of $\mathcal { V }$ . As a property of the Gram matrix, det $\left( { \bf L } _ { Y } \right)$ equals the squared volume spanned by vectors $\mathbf { x } _ { i } \in Y$ . With this geometric interpretation in mind, one can observe that diverse sets are more probable because their features are more orthogonal, thus spanning a larger volume.
57
+
58
+ In addition to set diversity encoded in the similarity matrix S, it is also convenient to introduce a quality vector $\mathbf { r } = [ r _ { 1 } , \dots , r _ { N } ]$ to weigh each item according to some unary metric. For example, the quality weight might be derived from the likelihood of an item. To capture both diversity and quality of a subset, the DPP kernel $\mathbf { L }$ is often decomposed in the more general form:
59
+
60
+ $$
61
+ \mathbf { L } = \mathrm { D i a g } ( \mathbf { r } ) \cdot \mathbf { S } \cdot \mathrm { D i a g } ( \mathbf { r } ) .
62
+ $$
63
+
64
+ With this decomposition, we can see that both the quality vector $\mathbf { r }$ and similarity matrix S contribute to the DPP probability of a subset $Y$ :
65
+
66
+ $$
67
+ \mathcal { P } _ { L } ( \pmb { Y } = Y ) \propto \operatorname* { d e t } \left( \mathbf { L } _ { Y } \right) = \left( \prod _ { \mathbf { x } _ { i } \in Y } r _ { i } ^ { 2 } \right) \operatorname* { d e t } \left( \mathbf { S } _ { Y } \right) .
68
+ $$
69
+
70
+ Due to its ability to capture the global diversity and quality of a set of items, we choose DPPs as the probabilistic approach to evaluate and optimize the diversity of the future trajectories drawn by our proposed diversity sampling function.
71
+
72
+ # 4 APPROACH
73
+
74
+ Safety-critical applications often require that the system can maintain a diverse set of outcomes covering all modes of a predictive distribution and not just the most likely one. To address this requirement, we propose to learn a diversity sampling function (DSF) to draw deterministic trajectory samples by generating a set of latent codes in the latent space of a conditional variational autoencoder (cVAE) and decoding them into trajectories using the cVAE decoder. The DSF trajectory samples are evaluated with a DPP-based diversity loss, which in turn optimizes the parameters of the DSF for more diverse trajectory samples.
75
+
76
+ Formally, the future trajectory $\mathbf { x } \in \mathbb { R } ^ { T \times D }$ is a random variable denoting a $D$ dimensional feature over a future time horizon $T$ (e.g., a vehicle trajectory or a sequence of humanoid poses). The context $\boldsymbol { \psi } = \{ { \bf h } , { \bf f } \}$ provides the information to infer the future trajectory $\mathbf { x }$ , and it contains the past trajectory $\mathbf { \bar { h } } \in \mathbf { \mathbb { R } } ^ { \mathbf { \bar { H } } \times D }$ of last $H$ time steps and optionally other side information f , such as an obstacle map. In the following, we first describe how we learn the future trajectory model $p _ { \theta } ( \mathbf { x } | \psi )$ with a cVAE. Then, we introduce the DSF and the DPP-based diversity loss used to optimize the DSF.
77
+
78
+ # 4.1 LEARNING A CVAE FOR FUTURE TRAJECTORIES
79
+
80
+ In order to generate a diverse set of future trajectory samples, we need to learn a generative trajectory forecasting model $p _ { \theta } ( \mathbf { x } | \psi )$ that can cover all modes of the data distribution. Here we use cVAEs (other proper generative models can also be used), which explicitly map data $\mathbf { x }$ with the encoder $q _ { \phi } ( { \bf z } | { \bf x } , \psi )$ to its corresponding latent code $\mathbf { z }$ and reconstruct the data from the latent code using the decoder $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } , \boldsymbol { \psi } )$ . By maintaining this one-on-one mapping between the data and the latent code, cVAEs attempt to capture all modes of the data. As discussed in Sec. 3.1, cVAEs jointly optimize the encoder and decoder to maximize the variational lower bound:
81
+
82
+ $$
83
+ \mathcal { L } ( \mathbf { x } , \psi ; \theta , \phi ) = \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } , \psi ) } \left[ \log p _ { \theta } ( \mathbf { x } | \mathbf { z } , \psi ) \right] - \mathrm { K L } \left( q _ { \phi } ( \mathbf { z } | \mathbf { x } , \psi ) \| p ( \mathbf { z } ) \right) .
84
+ $$
85
+
86
+ We use multivariate Gaussians for the prior, encoder and decoder: $p ( \mathbf { z } ) = \mathcal { N } ( \mathbf { z } ; \mathbf { 0 } , \mathbf { I } )$ , $q _ { \phi } ( { \bf z } | { \bf x } , \psi ) =$ $\mathcal { N } ( \mathbf { z } ; \pmb { \mu } , \pmb { \sigma } ^ { 2 } \mathbf { I } )$ , and $p _ { \theta } ( \mathbf { x } | \mathbf { z } , \psi ) = \mathcal { N } ( \mathbf { x } ; \tilde { \mathbf { x } } , \alpha \mathbf { I } )$ . Both the encoder and decoder are implemented as neural networks. The encoder network $f _ { \phi }$ outputs the parameters of the posterior distribution: $( \mu , \sigma ) = f _ { \phi } ( { \bf x } , \psi )$ . The decoder network $g _ { \theta }$ outputs the reconstructed future trajectory $\tilde { \bf x }$ :
87
+
88
+ $\tilde { \mathbf { x } } = g _ { \theta } ( \mathbf { z } , \psi )$ . Detailed network architectures are given in Appendix B.1. Based on the Gaussian parameterization of the cVAE, the objective in Eq. 6 can be rewritten as
89
+
90
+ $$
91
+ \mathcal { L } _ { c v a e } ( \mathbf { x } , \psi ; \theta , \phi ) = - \frac { 1 } { V } \sum _ { v = 1 } ^ { V } \Vert \tilde { \mathbf { x } } _ { v } - \mathbf { x } \Vert ^ { 2 } + \beta \cdot \frac { 1 } { D _ { z } } \sum _ { j = 1 } ^ { D _ { z } } \left( 1 + 2 \log \sigma _ { j } - \mu _ { j } ^ { 2 } - \sigma _ { j } ^ { 2 } \right) ,
92
+ $$
93
+
94
+ where we take $V$ samples from the posterior $q _ { \phi } ( { \bf z } | { \bf x } , \psi )$ , $D _ { z }$ is the number of latent dimensions, and $\beta = 1 / \alpha$ is a weighting factor. The training procedure for the $\operatorname { c V A E }$ is detailed in Alg. 2 (Appendix A). Once the cVAE model is trained, sampling from the learned future trajectory model $p _ { \theta } ( \mathbf { x } | \psi )$ is efficient: we can sample a latent code $\mathbf { z }$ according to the prior $p ( \mathbf { z } )$ and use the decoder $p _ { \theta } ( \mathbf { x } | \mathbf { z } , \psi )$ to decode it into a future trajectory $\mathbf { x }$ .
95
+
96
+ # Algorithm 1 Training the diversity sampling function (DSF) $S _ { \gamma } ( \psi )$
97
+
98
+ 1: Input: Training data $\{ \mathbf { x } ^ { ( i ) } , \boldsymbol { \psi } ^ { ( i ) } \} _ { i = 1 } ^ { M }$ , cVAE decoder network $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
99
+ 2: Output: DSF $S _ { \gamma } ( \psi )$
100
+ 3: Initialize $\gamma$ randomly
101
+ 4: while not converged do
102
+ 5: for each $\psi ^ { ( i ) }$ do
103
+ 6: Generate latent codes $\mathcal { Z } = \{ \mathbf { z } _ { 1 } , \ldots , \mathbf { z } _ { N } \}$ with the DSF $S _ { \gamma } ( \psi )$
104
+ 7: Generate the trajectory ground set $\mathcal { Y } = \{ \mathbf { x } _ { 1 } , \dotsc , \mathbf { x } _ { N } \}$ with the decoder $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
105
+ 8: Compute the similarity matrix S and quality vector r with Eq. 8 and 9
106
+ 9: Compute the DPP kernel $\mathbf { L } ( \gamma ) = \mathrm { D i a g } ( \mathbf { r } ) \cdot \mathbf { S } \cdot \mathrm { D i a g } ( \mathbf { r } )$
107
+ 10: Calculate the diversity loss Ldiverse
108
+ 11: Update $\gamma$ with the gradient ∇Ldiverse
109
+ 12: end for
110
+ 13: end while
111
+
112
+ # 4.2 DIVERSITY SAMPLING FUNCTION (DSF)
113
+
114
+ As mentioned before, randomly sampling from the learned cVAE model according to the implicit likelihood function $p _ { \theta } ( \mathbf { x } | \psi )$ , i.e., sampling latent codes from the prior $p ( \mathbf { z } )$ , does not guarantee that the trajectory samples are diverse: major modes (those having more data) with higher likelihood will produce most of the samples while minor modes with lower likelihood will have almost no sample. This prompts us to devise a new sampling strategy that can reliably generate a diverse set of samples covering both major and minor modes. We propose to learn a diversity sampling function (DSF) $S _ { \gamma } ( \psi )$ that maps context $\psi$ to a set of latent codes $\mathcal { Z } = \{ \mathbf { z } _ { 1 } , \ldots , \mathbf { z } _ { N } \}$ . The DSF is implemented as a $\gamma$ -parameterized neural network which takes $\psi$ as input and outputs a vector of length $N \cdot D _ { z }$ (see Appendix B.1 for network details). The latent codes $\mathcal { Z }$ are decoded into a diverse set of future trajectories $\mathcal { Y } = \{ \mathbf { x } _ { 1 } , \dotsc , \mathbf { x } _ { N } \}$ , which are denoted as the DSF trajectory samples. We note that $N$ is the sampling budget. To solve for the parameters of the DSF, we propose a diversity loss based on a DPP defined over $\mathcal { V }$ . In this section, we first describe how the DPP kernel $\mathbf { L }$ is defined, which involves the construction of the similarity matrix S and quality vector $\mathbf { r }$ . We then discuss how we use the DPP kernel $\mathbf { L }$ to formulate a diversity loss to optimize the parameters of the DSF.
115
+
116
+ Recall that the DPP kernel is defined as $\mathbf { L } = \mathrm { D i a g } ( \mathbf { r } ) \cdot \mathbf { S } \cdot \mathrm { D i a g } ( \mathbf { r } )$ , where $\mathbf { r }$ defines the quality of each trajectory and $\mathbf { S }$ measures the similarity between two trajectories. The DPP kernel $\mathbf { L } ( \gamma )$ is a function of $\gamma$ as it is defined over the ground set $\mathcal { V }$ output by the DSF $S _ { \gamma } ( \psi )$ .
117
+
118
+ Similarity. We measure the similarity $\mathbf { S } _ { i j }$ between two trajectories $\mathbf { x } _ { i }$ and $\mathbf { x } _ { j }$ as
119
+
120
+ $$
121
+ \mathbf { S } _ { i j } = \exp \left( - k \cdot d _ { \mathbf { x } } ^ { 2 } ( \mathbf { x } _ { i } , \mathbf { x } _ { j } ) \right) ,
122
+ $$
123
+
124
+ where $d _ { \mathbf { x } }$ is the Euclidean distance and $k$ is a scaling factor. This similarity design ensures that $0 \leq \mathbf { S } _ { i j } \leq 1$ and $\mathbf { S } _ { i i } = 1$ . It also makes $\mathbf { S }$ positive definite since the Gaussian kernel we use is a positive definite kernel.
125
+
126
+ Quality. It may be tempting to use $p ( \mathbf { x } | \boldsymbol { \psi } )$ to define the quality of each trajectory sample. However, this likelihood-based measure will clearly favor major modes that have higher probabilities, making it less likely to generate samples from minor modes. This motivates us to design a quality metric that
127
+
128
+ treats all modes equally. To this end, unlike the similarity metric which is defined in the trajectory space, the quality of each sample is measured in the latent space and is defined as
129
+
130
+ $$
131
+ r _ { i } = \left\{ \begin{array} { l l } { \omega , } & { \mathrm { i f ~ } \| \mathbf { z } _ { i } \| \leq R } \\ { \omega \exp \left( - \mathbf { z } _ { i } ^ { T } \mathbf { z } _ { i } + R ^ { 2 } \right) , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
132
+ $$
133
+
134
+ Geometrically, let $R$ be the radius of a sphere $\Phi$ containing most samples from the Gaussian prior $p ( \mathbf { z } )$ . We treat samples inside $\Phi$ equally and only penalize samples outside $\Phi$ . In this way, samples from major modes are not preferred over those from minor modes as long as they are inside $\Phi$ , while samples far away from the data manifold are heavily penalized as they are outside $\Phi$ . The radius $R$ is determined by where $\rho$ percent of the Gaussian samples lie within, and we set $\rho = 9 0$ . To compute $R$ , we use the percentage point function of the chi-squared distribution which models the distribution over the sum of squares of independent standard normal variables. The base quality $\omega$ is a hyperparameter which we set to 1 during training in our experiments. At test time, we can use a larger $\omega$ to encourage the DPP to select more items from the ground set $\mathcal { V }$ . The hyperparameter $\rho$ (or $R$ ) allows for the trade-off between diversity and quality. When $R$ is small, the quality metric is reduced to a pure likelihood-based metric (proportional to the latent likelihood), which will prefer samples with high likelihood and result in a less diverse sample set. When $R$ is large, most samples will have the same quality, and the resulting samples will be highly diverse but less likely. In practice, the choice of $R$ should be application dependent, as one could imagine autonomous vehicles would need to consider more diverse scenarios including those less likely ones to ensure robustness. We note that after the diverse samples are obtained, it is possible to reassign the quality score for each sample based on its likelihood to allow users to prioritize more likely samples.
135
+
136
+ Diversity Loss. To optimize the DSF $S _ { \gamma } ( \psi )$ , we need to define a diversity loss that measures the diversity of the trajectory ground set $\mathcal { V }$ generated by $S _ { \gamma } ( \psi )$ . An obvious choice for the diversity loss would be the negative log likelihood $- \log \mathcal { P } _ { \mathbf { L } ( \gamma ) } ( \boldsymbol { Y } = \mathcal { Y } ) = - \log \operatorname* { d e t } ( \mathbf { L } ( \gamma ) ) + \log \operatorname* { d e t } ( \mathbf { L } ( \gamma ) + \mathbf { I } )$ . However, there is a problem with directly using the DPP log likelihood. The log likelihood heavily penalizes repeated items: if two trajectories inside $\mathcal { V }$ are very similar, their corresponding rows in $\mathbf { L }$ will be almost identical, making $\operatorname* { d e t } ( \mathbf { L } ( \gamma ) ) = \lambda _ { 1 } \lambda _ { 2 } \dots \lambda _ { N } \approx 0$ ( $\lambda _ { n }$ is the $n$ -th eigenvalue). In practice, if the number of modes in the trajectory distribution $p ( \mathbf { x } | \boldsymbol { \psi } )$ is smaller than $| \mathcal { V } |$ , $\mathcal { V }$ will always have similar trajectories, thus making $\operatorname* { d e t } ( \mathbf { L } ( \gamma ) )$ always close to zero. In such cases, optimizing the negative log likelihood causes numerical issues, which is observed in our early experiments.
137
+
138
+ Instead, the expected cardinality of the DPP is a better measure for the diversity of $\mathcal { V }$ , which is defined as $\mathbb { E } _ { Y \sim \mathcal { P } _ { \mathbf { L } ( \gamma ) } } [ | Y | ]$ . Intuitively, since the DPP discourages selection of similar items, if $\mathcal { V }$ is more diverse, a random subset $\mathbf { Y }$ drawn according to the DPP is more likely to select more items from $\mathcal { V }$ , thus having larger cardinality. The expected cardinality can be computed as (Eq. 15 and 34 in Kulesza et al. (2012)):
139
+
140
+ $$
141
+ \mathbb { E } [ | \boldsymbol { Y } | ] = \sum _ { n = 1 } ^ { N } \frac { \lambda _ { n } } { \lambda _ { n } + 1 } = \mathrm { t r } \left( \mathbf { I } - ( \mathbf { L } ( \boldsymbol { \gamma } ) + \mathbf { I } ) ^ { - 1 } \right) .
142
+ $$
143
+
144
+ The main advantage of the expected cardinality is that it is well defined even when the ground set $\mathcal { V }$ has duplicated items, since it does not require all eigenvalues of $\mathbf { L }$ to be non-zero as the log likelihood does. Thus, our diversity loss is defined as $\bar { \mathcal { L } } _ { d i v e r s e } ^ { \bar { } } ( \gamma ) = - \mathrm { t r } \left( \mathbf { I } - ( \mathbf { L } ( \gamma ) + \mathbf { I } ) ^ { - 1 } \right)$ . The training procedure for $S _ { \gamma } ( \psi )$ is outlined in Alg. 1.
145
+
146
+ Inference. At test time, given current context $\psi$ ,we use the learned DSF $S _ { \gamma } ( \psi )$ to generate the future trajectory ground set $\mathcal { V }$ . In some cases, $\mathcal { V }$ may still contain some trajectories that are similar to others. In order to obtain a diverse set of trajectories without repetition, we aim to perform MAP inference for the DPP to find the most diverse subset $Y ^ { * } = \arg \operatorname* { m a x } _ { Y \in \mathcal { Y } } \mathcal { P } _ { \mathbf { L } ( \gamma ) } ( Y )$ . A useful property of DPPs is that the log-probability function is submodular (Gillenwater et al., 2012). Even though submodular maximization is NP-hard, we use a greedy algorithm (Nemhauser et al., 1978) which is a popular optimization procedure that works well in practice. As outlined in Alg. 3, the output set $Y _ { f }$ is initialized as $\varnothing$ , and at each iteration, the trajectory which maximizes the log probability
147
+
148
+ $$
149
+ \begin{array} { r } { \mathbf { x } ^ { * } = \underset { \mathbf { x } \in \mathcal { V } \backslash Y _ { f } } { \arg \operatorname* { m a x } } ~ \log \operatorname* { d e t } \left( \mathbf { L } _ { Y _ { f } \cup \{ \mathbf { x } \} } \right) } \end{array}
150
+ $$
151
+
152
+ is added to $Y _ { f }$ , until the marginal gain becomes negative or $Y _ { f } = y$ .
153
+
154
+ # 5 EXPERIMENTS
155
+
156
+ The primary focus of our experiments is to answer the following questions: (1) Are trajectory samples generated with our diversity sampling function more diverse than samples from the cVAE and other baselines? (2) How does our method perform on both balanced and imbalanced data? (3) Is our method general enough to perform well on both low-dimensional and high-dimensional tasks?
157
+
158
+ Metrics. A problem with trajectory forecasting evaluation is that in real data each context $\psi ^ { ( i ) }$ usually only has one future trajectory $\mathbf { x } ^ { ( i ) }$ , which means we only have one sample from a multi-modal distribution. Let us consider a scenario of three data examples {x(i), ψ(i)}3 as shown in Fig. 2 (red, purple, blue). The contexts (past trajectories) of the three examples are instances of the same trajectory but they are slightly different due to noise. As these three contexts have the same semantic meaning, they should share the future trajectories, e.g., the purple and blue future trajectories are also valid for the red context. If we evaluate each example $( \mathbf { x } ^ { ( i ) } , \psi ^ { ( i ) } )$ only with its own future trajectory $\mathbf { x } ^ { ( i ) }$ , a method can achieve high scores by only forecasting the mode corresponding to $\mathbf { x } ^ { ( i ) }$ and dropping other modes. This is undesirable because we want a good method to capture all modes of the future trajectory distribution, not just a single mode. To allow for multi-modal evaluation, we propose collecting multiple future trajectories for each example by clustering examples with similar contexts. Specifically, we augment each data example $\bar { ( \mathbf { x } ^ { ( i ) } , \psi ^ { ( i ) } ) }$ with a future trajectory set $\mathcal { X } ^ { ( i ) } = \{ \mathbf { x } ^ { ( j ) } | \| \boldsymbol { \psi } ^ { ( j ) } - \boldsymbol { \psi } ^ { ( i ) } \| \leq \varepsilon$ , $j = 1 , \dots , M \}$ and metrics are calculated based on $\chi ^ { ( i ) }$ instead of $\mathbf { x } ^ { ( i ) }$ , i.e., we compute metrics for each $\mathbf { x } \in \mathcal { X } ^ { ( i ) }$ and average the results.
159
+
160
+ ![](images/339718b64625c26a09d2391fc59d2fb39d3ea27dbcb5c3732aa26b7ef6c03c8e.jpg)
161
+ Figure 2: In real data, contexts (past trajectories) are seldom the same due to noise.
162
+
163
+ We use the following metrics for evaluation: (1) Average Displacement Error (ADE): average mean square error (MSE) over all time steps between the ground truth future trajectory $\mathbf { x }$ and the closest sample $\tilde { \bf x }$ in the forecasted set of trajectories $Y _ { f }$ . (2) Final Displacement Error (FDE): MSE between the final ground truth position $\mathbf { x } ^ { T }$ and the closest sample’s final position $\tilde { \mathbf { x } } ^ { T }$ . (3) Average Self Distance (ASD): average $L 2$ distance over all time steps between a forecasted sample $\tilde { \mathbf { x } } _ { i }$ and its closest neighbor $\tilde { \mathbf { x } } _ { j }$ in $Y _ { f }$ . (4) Final Self Distance (FSD): $L 2$ distance between the final position of a sample $\tilde { \mathbf { x } } _ { i } ^ { T }$ and its closest neighbor’s final position $\tilde { \mathbf { x } } _ { j } ^ { T }$ . The ADE and FDE are common metrics used in prior work on trajectory forecasting (Alahi et al., 2016; Lee et al., 2017; Rhinehart et al., 2018; Gupta et al., 2018). However, these two metrics do not penalize repeated samples. To address this, we introduce two new metrics ASD and FSD to evaluate the similarity between samples in the set of forecasted trajectories. Larger ASD and FSD means the forecasted trajectories are more non-repetitive and diverse.
164
+
165
+ Baselines. We compare our Diversity Sampler Function (DSF) with the following baselines: (1) cVAE: a method that follows the original sampling scheme of cVAE by sampling latent codes from a Gaussian prior $p ( \mathbf { z } )$ . (2) MCL: an approach that uses multiple choice learning (Lee et al., 2016) to optimize the sampler $S _ { \gamma } ( \psi )$ with the following loss: $\begin{array} { r } { \mathcal { L } _ { \mathrm { m c l } } \bar { \mathbf { \Psi } } = \operatorname* { m i n } _ { \tilde { \mathbf { x } } \in \mathcal { Y } } \| \tilde { \mathbf { x } } - \mathbf { x } \| ^ { 2 } } \end{array}$ , where $\mathbf { x }$ is the ground truth future trajectory. (3) R2P2: a method proposed in (Rhinehart et al., 2018) that uses a reparametrized pushforward policy to improve modeling of multi-modal distributions for vehicle trajectories. (4) cGAN: generative adversarial networks (Goodfellow et al., 2014) conditioned on the forecasting context. We implement all baselines using similar networks and perform hyperparameter search for each method for fair comparisons. For methods whose samples are stochastic, we use 10 random seeds and report the average results for all metrics.
166
+
167
+ # 5.1 SYNTHETIC 2D TRAJECTORY DATA
168
+
169
+ We first use synthetic data to evaluate our method’s performance for low-dimensional tasks. We design a virtual 2D traffic scene where a vehicle comes to a crossroad and can choose three different future routes: forward, left, and right. We consider two types of synthetic data: (1) Balanced data, which means the probabilities of the vehicle choosing one of the three routes are the same; (2)
170
+
171
+ ![](images/e449598c237031babc8a911ea804edb59e2cc40f470548bd63bb814a445de844.jpg)
172
+ Figure 3: Qualitative results on synthetic data for both balanced and imbalanced data distribution when $N = 1 0$ . Blue represents the past trajectory and red represents forecasted future trajectories.
173
+
174
+ <table><tr><td></td><td colspan="4">Balanced Data</td><td colspan="4">Imbalanced Data</td></tr><tr><td>Method</td><td>ADE↓</td><td>FDE↓</td><td>ASD ↑</td><td>FSD ↑</td><td>ADE↓</td><td>FDE↓</td><td>ASD ↑</td><td>FSD ↑</td></tr><tr><td>DSF (Ours)</td><td>0.182</td><td>0.344</td><td>0.147</td><td>0.340</td><td>0.198</td><td>0.371</td><td>0.207</td><td>0.470</td></tr><tr><td>cVAE</td><td>0.262</td><td>0.518</td><td>0.022</td><td>0.050</td><td>0.332</td><td>0.662</td><td>0.021</td><td>0.050</td></tr><tr><td>MCL</td><td>0.276</td><td>0.548</td><td>0.012</td><td>0.030</td><td>0.457</td><td>0.938</td><td>0.005</td><td>0.010</td></tr><tr><td>R2P2</td><td>0.211</td><td>0.361</td><td>0.047</td><td>0.080</td><td>0.393</td><td>0.776</td><td>0.019</td><td>0.030</td></tr><tr><td>cGAN</td><td>0.808</td><td>1.619</td><td>0.018</td><td>0.010</td><td>1.784</td><td>3.744</td><td>0.006</td><td>0.001</td></tr></table>
175
+
176
+ Table 1: Quantitative results on synthetic data (numbers scaled by 10) when $N = 1 0$ .
177
+
178
+ Imbalanced data, where the probabilities of the vehicle going forward, left and right are 0.8, 0.1, 0.1, respectively. We synthesize trajectory data by simulating the vehicle’s behavior and adding Gaussian noise to vehicle velocities. Each data example $( \mathbf { x } ^ { ( i ) } , \bar { \psi } ^ { ( i ) } )$ contains future trajectories of 3 steps and past trajectories of 2 steps. We also add an obstacle map around the current position to the context $\bar { \psi ^ { ( i ) } }$ . In total, we have around 1100 training examples and 1000 test examples. Please refer to Appendix B for more implementation details.
179
+
180
+ Table 1 summarizes the quantitative results for both balanced and imbalanced data when the sampling budget $N$ is 10. We can see that our method DSF outperforms the baselines in all metrics in both test settings. As shown in Fig. 3, our method generates more diverse trajectories and is less affected by the imbalanced data distribution. The trajectory samples of our method are also less repetitive, a feature afforded by our DPP formulation. Fig. 4 shows how ADE changes as a function of the sampling budget $N$ .
181
+
182
+ # 5.2 DIVERSE HUMAN MOTION FORECASTING
183
+
184
+ To further evaluate our method’s performance for more complex and high-dimensional tasks, we apply our method to forecast future human motions (pose sequences). We use motion capture to obtain 10 motion sequences including different types of motions such as walking, turning, jogging, bending, and crouching. Each sequence is about 1 minute long and each pose consists of 59 joint angles. We use past 3 poses
185
+
186
+ <table><tr><td>Method</td><td>ADE↓</td><td>FDE↓</td><td>ASD个</td><td>FSD↑</td></tr><tr><td>DSF (Ours)</td><td>0.259</td><td>0.421</td><td>0.115</td><td>0.282</td></tr><tr><td>cVAE</td><td>0.332</td><td>0.642</td><td>0.034</td><td>0.098</td></tr><tr><td>MCL</td><td>0.344</td><td>0.674</td><td>0.036</td><td>0.122</td></tr><tr><td>cGAN</td><td>0.652</td><td>1.296</td><td>0.001</td><td>0.003</td></tr></table>
187
+
188
+ Table 2: Quantitative results on for human motion forecasting when $N = 1 0$ .
189
+
190
+ (0.1s) to forecast next 30 poses (1s). There are around 9400 training examples and 2000 test examples where we use different sequences for training and testing. More implementation details can be found in Appendix B.
191
+
192
+ We present quantitative results in Table 2 and we can see that our approach outperforms other methods in all metrics. As the dynamics model used in R2P2 (Rhinehart et al., 2018) does not generalize well for high-dimensional human motion, we find the model fails to converge and we do not compare with it in this experiment. Fig. 4 shows that our method achieves large improvement when the sampling budget is big $\mathrm { \Delta } N = 5 0 \mathrm { \Omega }$ ). We also present qualitative results in Fig. 5, where we show the starting pose and the final pose of all 10 forecasted motion samples for each method. We can clearly see that our method generates more diverse future human motions than the baselines. Please refer to Appendix C and our video for additional qualitative results.
193
+
194
+ ![](images/ff9fe6900c65b3c7340feda04c9935bdbcf6b74f4b07a3fe374531d9c2ae1f9a.jpg)
195
+ Figure 4: ADE vs. $N$ for synthetic data and human motion forecasting. cGAN is not shown in this plot as it is much worse than other methods due to mode collapse.
196
+
197
+ ![](images/1df4f19ed6c9ea796a9731ebe271c06940cbbe9aaa4215f855d8629862c36a0c.jpg)
198
+ Figure 5: Qualitative results for human motion forecasting when $N = 1 0$ . The left shows the starting pose, and the right shows for each method the final pose of all 10 forecasted motion samples.
199
+
200
+ # 5.3 ADDITIONAL EXPERIMENTS WITH DIVERSITY-BASED BASELINES
201
+
202
+ In this section, we perform additional experiments on a large human motion dataset (3.6 million frames), Human3.6M (Ionescu et al., 2013), to evaluate the generalization ability of our approach. We predict future motion of 2 seconds based on observed motion of 0.5 seconds. Please refer to Appendix B.3 for implementation details. We also use a new selection of baselines including several variants of our method (DSF) and the cVAE to validate several design choices of our method, including the choice of the expected cardinality over the negative log likelihood (NLL) of the DPP as the diversity loss. Specifically, we use the following new baselines: (1) DSF-NLL: a variant of DSF that uses NLL as the diversity loss instead of the expected cardinality. (2) DSF-COS: a DSF variant that uses cosine similarity to build the similarity matrix S for the DPP kernel L. (3) DSF-NLL: a variant of the cVAE that samples 100 latent codes and performs DPP MAP inference on the latent codes to obtain a diverse set of latent codes, which are then decoded into trajectory samples.
203
+
204
+ We present quantitative results in Table 3 when the number of samples $N$ is 10 and 50. The baseline DSF-COS is able to achieve very high diversity (ASD and FSD) but its samples are overly diverse and have poor quality which is indicated by the large ADE and FDE. Compared with DSF-NLL, our method achieves better diversity (ASD and FSD) and similar ADE and FDE when the number of samples is small $N = 1 0$ ). For a larger number of samples $\mathrm { ~ N ~ } = 5 0 $ ), NLL becomes unstable even with a large $\epsilon$ (1e-3) added to the diagonal. This behavior of NLL, i.e., stable for small $N$ but unstable for large $N$ , matches our intuition that NLL becomes unstable when samples become similar (as discussed in Sec. 4.2), because when there are more samples, it is easier to have similar samples during the SGD updates of the DSF network. The baseline cVAE-LDPP also performs worse than DSF in all metrics even though it is able to outperfom the cVAE. We believe the reason is that diversity in sample space may not be well reflected in the latent space due to the non-linear mapping from latent codes to samples induced by deep neural networks.
205
+
206
+ <table><tr><td rowspan="2">Method</td><td colspan="4">N=10</td><td colspan="4">N= 50</td></tr><tr><td>ADE↓</td><td>FDE↓</td><td>ASD↑</td><td>FSD ↑</td><td>ADE↓</td><td>FDE↓</td><td>ASD↑</td><td>FSD ↑</td></tr><tr><td>DSF (Ours)</td><td>0.340</td><td>0.521</td><td>0.381</td><td>0.621</td><td>0.236</td><td>0.306</td><td>0.313</td><td>0.415</td></tr><tr><td>DSF-NLL</td><td>0.335</td><td>0.514</td><td>0.343</td><td>0.496</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>DSF-COS</td><td>2.588</td><td>1.584</td><td>5.093</td><td>5.718</td><td>0.978</td><td>0.891</td><td>2.007</td><td>1.968</td></tr><tr><td>cVAE</td><td>0.363</td><td>0.549</td><td>0.235</td><td>0.360</td><td>0.276</td><td>0.369</td><td>0.160</td><td>0.220</td></tr><tr><td>cVAE-LDPP</td><td>0.373</td><td>0.554</td><td>0.280</td><td>0.426</td><td>0.277</td><td>0.365</td><td>0.176</td><td>0.240</td></tr></table>
207
+
208
+ Table 3: Quantitative results on Human3.6M (Ionescu et al., 2013) for $N = 1 0$ and $N = 5 0$ . X means the method is unable to learn a model due to numerical instability.
209
+
210
+ # 6 CONCLUSION
211
+
212
+ We proposed a novel forecasting approach using a DSF to optimize over the sample space of a generative model. Our method learns the DSF with a DPP-based diversity measure to generate a diverse set of trajectories. The diversity measure is a novel application of DPPs to optimize a set of items in continuous space. Experiments have shown that our approach can generate more diverse vehicle trajectories and human motions compared to state-of-the-art baseline forecasting approaches.
213
+
214
+ Acknowledgment. This project was sponsored in part by JST CREST (JPMJCR14E1), NSF NRI (1637927) and IARPA (D17PC00340).
215
+
216
+ # REFERENCES
217
+
218
+ A. Alahi, K. Goel, V. Ramanathan, A. Robicquet, L. Fei-Fei, and S. Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961–971, 2016.
219
+ S. Azadi, J. Feng, and T. Darrell. Learning detection with diverse proposals. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7149–7157, 2017.
220
+ L. Ballan, F. Castaldo, A. Alahi, F. Palmieri, and S. Savarese. Knowledge transfer for scene-specific motion prediction. In European Conference on Computer Vision, pages 697–713. Springer, 2016.
221
+ D. Batra, P. Yadollahpour, A. Guzman-Rivera, and G. Shakhnarovich. Diverse m-best solutions in markov random fields. In European Conference on Computer Vision, pages 1–16. Springer, 2012.
222
+ J. Butepage, M. J. Black, D. Kragic, and H. Kjellstrom. Deep representation learning for human motion prediction and classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6158–6166, 2017.
223
+ Y.-W. Chao, J. Yang, B. Price, S. Cohen, and J. Deng. Forecasting human dynamics from static images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 548–556, 2017.
224
+ M. Elfeki, C. Couprie, M. Riviere, and M. Elhoseiny. Gdpp: Learning diverse generations using determinantal point process. arXiv preprint arXiv:1812.00068, 2018.
225
+ K. Fragkiadaki, S. Levine, P. Felsen, and J. Malik. Recurrent network models for human dynamics. In Proceedings of the IEEE International Conference on Computer Vision, pages 4346–4354, 2015.
226
+ E. Galceran, A. G. Cunningham, R. M. Eustice, and E. Olson. Multipolicy decision-making for autonomous driving via changepoint-based behavior prediction. In Robotics: Science and Systems, volume 1, 2015.
227
+ J. Gillenwater, A. Kulesza, and B. Taskar. Near-optimal map inference for determinantal point processes. In Advances in Neural Information Processing Systems, pages 2735–2743, 2012.
228
+ J. A. Gillenwater, A. Kulesza, E. Fox, and B. Taskar. Expectation-maximization for learning determinantal point processes. In Advances in Neural Information Processing Systems, pages 3149–3157, 2014.
229
+ B. Gong, W.-L. Chao, K. Grauman, and F. Sha. Diverse sequential subset selection for supervised video summarization. In Advances in Neural Information Processing Systems, pages 2069–2077, 2014.
230
+ I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
231
+ A. Gupta, J. Johnson, L. Fei-Fei, S. Savarese, and A. Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018.
232
+ A. Guzman-Rivera, D. Batra, and P. Kohli. Multiple choice learning: Learning to produce multiple structured outputs. In Advances in Neural Information Processing Systems, pages 1799–1807, 2012.
233
+ I. Habibie, D. Holden, J. Schwarz, J. Yearsley, and T. Komura. A recurrent variational autoencoder for human motion synthesis. BMVC17, 2017.
234
+ W.-L. Hsiao and K. Grauman. Creating capsule wardrobes from fashion images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7161–7170, 2018.
235
+ D.-A. Huang, M. Ma, W.-C. Ma, and K. M. Kitani. How do we use our hands? discovering a diverse set of common grasps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 666–675, 2015.
236
+ C. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325–1339, 2013.
237
+ A. Jain, A. Singh, H. S. Koppula, S. Soh, and A. Saxena. Recurrent neural networks for driver activity anticipation via sensory-fusion architecture. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pages 3118–3125. IEEE, 2016a.
238
+ A. Jain, A. R. Zamir, S. Savarese, and A. Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5308–5317, 2016b.
239
+ M. I. Jordan, Z. Ghahramani, T. S. Jaakkola, and L. K. Saul. An introduction to variational methods for graphical models. Machine learning, 37(2):183–233, 1999.
240
+ A. Kanazawa, J. Zhang, P. Felsen, and J. Malik. Learning 3d human dynamics from video. arXiv preprint arXiv:1812.01601, 2018.
241
+ D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
242
+ K. M. Kitani, B. D. Ziebart, J. A. Bagnell, and M. Hebert. Activity forecasting. In European Conference on Computer Vision, pages 201–214. Springer, 2012.
243
+ A. Kulesza and B. Taskar. k-dpps: Fixed-size determinantal point processes. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pages 1193–1200, 2011.
244
+ A. Kulesza, B. Taskar, et al. Determinantal point processes for machine learning. Foundations and Trend $\textsuperscript { \textregistered }$ in Machine Learning, 5(2–3):123–286, 2012.
245
+ N. Lee, W. Choi, P. Vernaza, C. B. Choy, P. H. Torr, and M. Chandraker. Desire: Distant future prediction in dynamic scenes with interacting agents. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 336–345, 2017.
246
+ S. Lee, S. P. S. Prakash, M. Cogswell, V. Ranjan, D. Crandall, and D. Batra. Stochastic multiple choice learning for training diverse deep ensembles. In Advances in Neural Information Processing Systems, pages 2119–2127, 2016.
247
+ Z. Li, Y. Zhou, S. Xiao, C. He, Z. Huang, and H. Li. Auto-conditioned recurrent networks for extended complex human motion synthesis. arXiv preprint arXiv:1707.05363, 2017.
248
+ W.-C. Ma, D.-A. Huang, N. Lee, and K. M. Kitani. Forecasting interactive dynamics of pedestrians with fictitious play. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 774–782, 2017.
249
+ O. Macchi. The coincidence approach to stochastic point processes. Advances in Applied Probability, 7(1): 83–122, 1975.
250
+ J. Martinez, R. Hossain, J. Romero, and J. J. Little. A simple yet effective baseline for 3d human pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 2640–2649, 2017.
251
+ G. L. Nemhauser, L. A. Wolsey, and M. L. Fisher. An analysis of approximations for maximizing submodular set functionsi. Mathematical programming, 14(1):265–294, 1978.
252
+ D. Nilsson. An efficient algorithm for finding the m most probable configurationsin probabilistic expert systems. Statistics and computing, 8(2):159–173, 1998.
253
+ G. Pavlakos, X. Zhou, K. G. Derpanis, and K. Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7025–7034, 2017.
254
+ D. Pavllo, C. Feichtenhofer, D. Grangier, and M. Auli. 3d human pose estimation in video with temporal convolutions and semi-supervised training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7753–7762, 2019.
255
+ N. Rhinehart, K. M. Kitani, and P. Vernaza. R2p2: A reparameterized pushforward policy for diverse, precise generative path forecasting. In Proceedings of the European Conference on Computer Vision (ECCV), pages 772–788, 2018.
256
+ N. Rhinehart, R. McAllister, K. Kitani, and S. Levine. Precog: Prediction conditioned on goals in visual multi-agent settings. arXiv preprint arXiv:1905.01296, 2019.
257
+ A. Robicquet, A. Sadeghian, A. Alahi, and S. Savarese. Learning social etiquette: Human trajectory understanding in crowded scenes. In European conference on computer vision, pages 549–565. Springer, 2016.
258
+ B. Seroussi and J.-L. Golmard. An algorithm directly finding the k most probable configurations in bayesian networks. International Journal of Approximate Reasoning, 11(3):205–233, 1994.
259
+ H. Soo Park, J.-J. Hwang, Y. Niu, and J. Shi. Egocentric future localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4697–4705, 2016.
260
+ J. Walker, C. Doersch, A. Gupta, and M. Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision, pages 835–851. Springer, 2016.
261
+ D. Xie, S. Todorovic, and S.-C. Zhu. Inferring ”dark matter” and ”dark energy” from videos. 2013 IEEE International Conference on Computer Vision, pages 2224–2231, 2013.
262
+ T. Yagi, K. Mangalam, R. Yonetani, and Y. Sato. Future person localization in first-person videos. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
263
+ X. Yan, A. Rastogi, R. Villegas, K. Sunkavalli, E. Shechtman, S. Hadap, E. Yumer, and H. Lee. Mt-vae: Learning motion transformations to generate multimodal human dynamics. In Proceedings of the European Conference on Computer Vision (ECCV), pages 265–281, 2018.
264
+ Y. Yuan and K. Kitani. Ego-pose estimation and forecasting as real-time pd control. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 10082–10092, 2019.
265
+
266
+ # A ALGORITHMS
267
+
268
+ # Algorithm 2 Training the cVAE
269
+
270
+ 1: Input: Training data $\{ \mathbf { x } ^ { ( i ) } , \boldsymbol { \psi } ^ { ( i ) } \} _ { i = 1 } ^ { M }$
271
+ 2: Output: cVAE encoder network $f _ { \phi } ( { \mathbf { x } } , \psi )$ and decoder network $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
272
+ 3: Initialize $\phi$ and $\theta$ randomly
273
+ 4: while not converged do
274
+ 5: for each $( \mathbf { x } ^ { ( i ) } , \psi ^ { ( i ) } )$ do
275
+ 6: Compute parameters $( \mu , \sigma )$ of the posterior distribution $q _ { \phi } ( { \bf z } | { \bf x } , \psi )$ using $f _ { \phi } ( \mathbf { x } , \psi )$
276
+ 7: Sample $V$ Gaussian noises $\{ \epsilon _ { 1 } , \ldots , \epsilon _ { V } \}$ from $\mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$
277
+ 8: Transform noises to latent samples from $q _ { \phi } ( { \bf z } | { \bf x } , \psi )$ : $\mathbf { z } _ { v } = \pmb { \mu } + \pmb { \sigma } \odot \pmb { \epsilon } _ { v }$
278
+ 9: Decode latent samples into reconstructed trajectories $\big \{ \tilde { \mathbf { x } } _ { 1 } , \dots , \tilde { \mathbf { x } } _ { V } \big \}$ using $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
279
+ 10: Calculate the cVAE loss $\mathcal { L } _ { c v a e }$ according to Eq. 6
280
+ 11: Update $\phi$ and $\theta$ with $\nabla _ { \phi } \mathcal { L } _ { c v a e }$ and $\nabla _ { \theta } \mathcal { L } _ { c v a e }$
281
+ 12: end for
282
+ 13: end while
283
+
284
+ Algorithm 3 Inference with the DSF $S _ { \gamma } ( \psi )$
285
+
286
+ 1: Input: Context $\psi$ , DSF $S _ { \gamma } ( \psi )$ , cVAE decoder network $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
287
+ 2: Output: Forecasted trajectory set $Y _ { f }$
288
+ 3: Generate latent codes $\mathcal { Z } = \{ \mathbf { z } _ { 1 } , \ldots , \mathbf { z } _ { N } \}$ with the DSF $S _ { \gamma } ( \psi )$
289
+ 4: Generate the trajectory ground set $\mathcal { Y } = \{ \mathbf { x } _ { 1 } , \dotsc , \mathbf { x } _ { N } \}$ with the decoder $g _ { \boldsymbol { \theta } } ( \mathbf { z } , \boldsymbol { \psi } )$
290
+ 5: Compute the DPP kernel $\mathbf { L } = \mathrm { D i a g } ( \mathbf { r } ) \cdot \mathbf { S } \cdot \mathrm { D i a g } ( \mathbf { r } )$
291
+ 6: $Y _ { f } \gets \emptyset , U \gets y$
292
+ 7: while $U$ is not empty do
293
+ 8: $\mathbf { x } ^ { * } \arg \operatorname* { m a x } _ { \mathbf { x } \in U }$ $\log \operatorname* { d e t } \left( \mathbf { L } _ { Y _ { f } \cup \{ \mathbf { x } \} } \right)$
294
+ 9: $\mathbf { | } \mathbf { f } \log \operatorname* { d e t } \left( \mathbf { L } _ { Y _ { f } \cup \{ \mathbf { x } ^ { * } \} } \right) - \log \operatorname* { d e t } \left( \mathbf { L } _ { Y _ { f } } \right) < 0$ then
295
+ 10: break
296
+ 11: end if
297
+ 12: $\begin{array} { l } { Y _ { f } Y _ { f } \cup \{ \mathbf { x } ^ { * } \} } \\ { U U \setminus \{ \mathbf { x } ^ { * } \} } \end{array}$
298
+ 13:
299
+ 14: end while
300
+
301
+ ![](images/32e613102435caf57bf44ee931dab86ab62337b0e3a87d0e948258d656b47358.jpg)
302
+ Figure 6: Network architectures for synthetic data and human motion. Top: for synthetic data, we use a CNN to process the obstacle map f and directly flatten trajectories $\mathbf { x }$ and $\mathbf { h }$ into vectors. The reconstructed trajectory $\tilde { \bf x }$ is decoded with an MLP. Bottom: for human motion, we use Bi-LSTMs to extract temporal features for $\mathbf { x }$ and $\mathbf { h }$ and decode the reconstructed trajectory $\tilde { \bf x }$ with a forward LSTM.
303
+
304
+ # B.1 NETWORK ARCHITECTURES
305
+
306
+ Synthetic data. Fig. 6 (Top) shows the network architecture for synthetic data. The number of latent dimensions is 2. By default, we use ReLU activation for all networks. The future trajectory $\mathbf { x } \in \mathbb { R } ^ { 3 \times 2 }$ consists of 3 future positions of the vehicle. The context $\psi$ contains past trajectories $\textbf { h } \in \mathbb { R } ^ { 2 \times 2 }$ of 2 time steps and a obstacle map $\textbf { f } \in \{ 0 , 1 \} ^ { 2 8 \times 2 8 }$ spanning a $4 \times 4$ area around the current position of the vehicle (the road width is 2). For the encoder, we use a convolutional neural network (CNN) with three 32-channel convolutional layers to process f. The first two layers have kernel size 4 and stride 2 while the last layer has kernel size 6 and stride 1. The obtained CNN features are concatenated with flattened $\mathbf { x }$ and $\mathbf { h }$ into a unified feature, which is feed into a multilayer perceptron (MLP). The MLP has one 128-dim hidden layer and two heads outputing the mean $\pmb { \mu }$ and variance $\sigma$ of the latent distribution. For the decoder, we concatenate the CNN feature from f with the latent code $\textbf { z } \in \mathbb { R } ^ { 2 }$ and flattened $\mathbf { h }$ into a unified feature. The feature is passed through an MLP with one 128-dim hidden layer which outputs the reconstructed future trajectory $\tilde { \mathbf { x } } \in \breve { \mathbb { R } } ^ { 3 \times 2 }$ . For the diversity sampler function (DSF), we concatenate the CNN feature from f with the flattened h and pass it through an MLP with one 128-dim hidden layer to obtain a set of latent codes $\left\{ \mathbf { z } _ { 1 } , \ldots , \mathbf { z } _ { N } \right\}$ which are represented by a vector of length $2 N$ .
307
+
308
+ Human motion. Fig. 6 (Bottom) shows the network architecture for synthetic data. The number of latent dimensions is 8. The future trajectory $\mathbf { x } \in \mathbb { R } ^ { 3 0 \times 5 9 }$ consists of future poses of 30 time steps (1s). The context $\psi$ contains past poses $\mathbf { h } \in \mathbb { R } ^ { 3 \times 5 9 }$ of 3 time steps (0.1s). Each pose consists of 59 joint angles. For the encoder, we use two 128-dim bidirectional LSTMs (Bi-LSTMs) and mean pooling to obtain the temporal features for $\mathbf { x }$ and $\mathbf { h }$ . We then concatenate the temporal features into a unified feature and feed it into an MLP with two hidden layers (300, 200) and two heads to obtain the mean $\pmb { \mu }$ and variance $\sigma$ of the latent distribution. For the decoder, we reuse the Bi-LSTM of the encoder for the context h and a 128-dim forward LSTM to decode the future trajectory $\tilde { \bf x }$ . At each time step $t$ , the forward LSTM takes as input the previous pose $\tilde { \mathbf { x } } ^ { t - 1 }$ $\mathbf { h } ^ { H }$ for $t = 0$ ), the latent code $\mathbf { z } \in \mathbb { R } ^ { 8 }$ and the temporal features from h, and outputs a 128-dim feature. The feature is then passed through an MLP with two hidden layers (300, 200) to generate the reconstructed pose $\tilde { \mathbf { x } } ^ { t }$ . For the DSF, we use a different 128-dim Bi-LSTM to obtain the temporal feature for $\mathbf { h }$ , which is feed into an MLP with a 128-dim hidden layer to produce a set of latent codes $\left\{ \mathbf { z } _ { 1 } , \ldots , \mathbf { z } _ { N } \right\}$ which are represented by a vector of length $8 N$ .
309
+
310
+ # B.2 TRAINING AND EVALUATION
311
+
312
+ When training the cVAE model using Eq. 7, we take $V = 1$ sample from the posterior $q _ { \phi } ( \mathbf { z } | \mathbf { x } , \psi )$ . The weighting factor $\beta$ for the KL term is set to 0.1 for synthetic data and 1e-4 for human motion. We use Adam (Kingma and Ba, 2014) to jointly optimize the encoder and decoder. The learning rate is set to 1e-4 and we use a mini batch size of 32 for synthetic data. We optimize the model for 500 epochs for synthetic data and 100 epochs for human motion.
313
+
314
+ When training the DSF, the scale factor $k$ for the similarity matrix S is set to 1 for synthetic data and 1e-2 for human motions. For both synthetic data and human motions, we use Adam with learning rate 1e-4 to optimize the DSF for 20 epochs.
315
+
316
+ Recall that in the metrics section (Sec. 5.1), we need the grouping threshold $\varepsilon$ to build the ground truth future trajectory set $\mathcal { X } ^ { ( i ) } = \{ \mathbf { x } ^ { ( j ) } \vert \Vert \psi ^ { ( j ) } - \psi ^ { ( i ) } \Vert \leq \varepsilon$ , $j = 1 , \dots , M \}$ . For synthetic data, $\varepsilon$ is set to 0.1 and we only use past trajectories $\mathbf { h }$ to compute the distance between contexts. For human motion, $\varepsilon$ is set to 0.5.
317
+
318
+ B.3 IMPLEMENTATION DETAILS FOR EXPERIMENTS ON HUMAN3.6M
319
+
320
+ Following previous work (Martinez et al., 2017; Pavlakos et al., 2017; Pavllo et al., 2019), we convert the motion sequences in the dataset into sequences of 3D joint positions, and adopt a 17-joint skeleton. We train on five subjects (S1, S5, S6, S7, S8), and test on two subjects (S9 and S11).
321
+
322
+ We use the same network architectures (Fig.6 (Bottom)) in this experiment as the one used in the human motion forecasting experiment above. The number of latent dimensions is 128. When training the cVAE model, the weighting factor $\beta$ is set to 0.1. We sample 5000 training examples every epoch and optimize the cVAE for 500 epochs using Adam and a learning rate of 1e-4. We set the batch size to 64 for the optimization.
323
+
324
+ The scale factor $k$ for the similarity matrix S of the DPP kernel is set to 5. When learning the DSF, we use a batch size of 64 and sample 1000 training examples every epoch and optimize the DSF for 20 epochs using Adam and a learning rate of 1e-3.
325
+
326
+ When computing the metrics, we set the grouping threshold $\varepsilon$ to 0.1.
327
+
328
+ # C ADDITIONAL VISUALIZATION
329
+
330
+ We also show additional qualitative results for human motion forecasting in Fig. 7. The quality and diversity of the forecasted motions are best seen in our video2.
331
+
332
+ # The final pose of 10 forecasted motions
333
+
334
+ ![](images/f3e399ae3bc56208ba1dccca639da93a1d6e9a7fe8064fe2b76e19f24f16ec80.jpg)
335
+ Figure 7: Additional visualization for human motion forecasting. The left shows the starting pose, and on the right we show for each method the final pose of 10 forecasted motion samples.
parse/train/ryxnY3NYPS/ryxnY3NYPS_content_list.json ADDED
@@ -0,0 +1,1355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DIVERSE TRAJECTORY FORECASTING WITH DETERMINANTAL POINT PROCESSES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 704,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ye Yuan, Kris M. Kitani Robotics Institute Carnegie Mellon University {yyuan2,kkitani}@cs.cmu.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 447,
21
+ 226
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 262,
32
+ 544,
33
+ 277
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The ability to forecast a set of likely yet diverse possible future behaviors of an agent (e.g., future trajectories of a pedestrian) is essential for safety-critical perception systems (e.g., autonomous vehicles). In particular, a set of possible future behaviors generated by the system must be diverse to account for all possible outcomes in order to take necessary safety precautions. It is not sufficient to maintain a set of the most likely future outcomes because the set may only contain perturbations of a dominating single outcome (major mode). While generative models such as variational autoencoders (VAEs) have been shown to be a powerful tool for learning a distribution over future trajectories, randomly drawn samples from the learned implicit likelihood model may not be diverse – the likelihood model is derived from the training data distribution and the samples will concentrate around the major mode of the data. In this work, we propose to learn a diversity sampling function (DSF) that generates a diverse yet likely set of future trajectories. The DSF maps forecasting context features to a set of latent codes which can be decoded by a generative model (e.g., VAE) into a set of diverse trajectory samples. Concretely, the process of identifying the diverse set of samples is posed as DSF parameter estimation. To learn the parameters of the DSF, the diversity of the trajectory samples is evaluated by a diversity loss based on a determinantal point process (DPP). Gradient descent is performed over the DSF parameters, which in turn moves the latent codes of the sample set to find an optimal set of diverse yet likely trajectories. Our method is a novel application of DPPs to optimize a set of items (forecasted trajectories) in continuous space. We demonstrate the diversity of the trajectories produced by our approach on both low-dimensional 2D trajectory data and high-dimensional human motion data. (Video1) ",
40
+ "bbox": [
41
+ 232,
42
+ 291,
43
+ 764,
44
+ 625
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 636,
55
+ 336,
56
+ 651
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Forecasting future trajectories of vehicles and human has many useful applications in autonomous driving, virtual reality and assistive living. What makes trajectory forecasting challenging is that the future is uncertain and multi-modal – vehicles can choose different routes and people can perform different future actions. In many safety-critical applications, it is important to consider a diverse set of possible future trajectories, even those that are less likely, so that necessary preemptive actions can be taken. For example, an autonomous vehicle should understand that a neighboring car can merge into its lane even though the car is most likely to keep driving straight. To address this requirement, we need to take a generative approach to trajectory forecasting that can fully characterize the multimodal distribution of future trajectories. To capture all modes of a data distribution, variational autoencoders (VAEs) are well-suited generative models. However, random samples from a learned VAE model with Gaussian latent codes are not guaranteed to be diverse for two reasons. First, the sampling procedure is stochastic and the VAE samples can fail to cover some minor modes even with a large number of samples. Second, since VAE sampling is based on the implicit likelihood function encoded in the training data, if most of the training data is centered around a specific mode while other modes have less data (Fig. 1 (a)), the VAE samples will reflect this bias and concentrate around the major mode (Fig. 1 (b)). To tackle this problem, we propose to learn a diversity sampling function (DSF) that can reliably generate a diverse set of trajectory samples (Fig. 1 (c)). ",
63
+ "bbox": [
64
+ 174,
65
+ 666,
66
+ 825,
67
+ 901
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "image",
73
+ "img_path": "images/935dc525723c5a63173fac98ebc77b977ebc640ac583ddbd40861f52edb857bf.jpg",
74
+ "image_caption": [
75
+ "Figure 1: A toy trajectory forecasting example. (a) The three modes (pink, blue, purple) of the future trajectory distribution are shown in both the trajectory space and the latent space of a learned VAE model. The data distribution is imbalanced, where the blue mode has most data and covers most of the latent space. (b) Random samples from the VAE only cover the major (blue) mode. (c) Our proposed DSF generates a diverse set of future trajectories covering all three modes. "
76
+ ],
77
+ "image_footnote": [],
78
+ "bbox": [
79
+ 209,
80
+ 103,
81
+ 816,
82
+ 279
83
+ ],
84
+ "page_idx": 1
85
+ },
86
+ {
87
+ "type": "text",
88
+ "text": "The proposed DSF is a deterministic parameterized function that maps forecasting context features (e.g., past trajectories) to a set of latent codes. The latent codes are decoded by the VAE docoder into a set of future trajectory samples, denoted as the DSF samples. In order to optimize the DSF, we formulate a diversity loss based on a determinantal point process (DPP) (Macchi, 1975) to evaluate the diversity of the DSF samples. The DPP defines the probability of choosing a random subset from the set of trajectory samples. It models the negative correlations between samples: the inclusion of a sample reduces the probability of including a similar sample. This makes the DPP an ideal tool for modeling the diversity within a set. In particular, we use the expected cardinality of the DPP as the diversity measure, which is defined as the expected size of a random subset drawn from the set of trajectory samples according to the DPP. Intuitively, since the DPP inhibits selection of similar samples, if the set of trajectory samples is more diverse, the random subset is more likely to select more samples from the set. The expected cardinality of the DPP is easy to compute and differentiable, which allows us to use it as the objective to optimize the DSF to enable diverse trajectory sampling. ",
89
+ "bbox": [
90
+ 174,
91
+ 366,
92
+ 825,
93
+ 560
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Our contributions are as follows: (1) We propose a new forecasting approach that learns a diversity sampling function to produce a diverse set of future trajectories; (2) We propose a novel application of DPPs to optimize a set of items (trajectories) in continuous space with a DPP-based diversity measure; (3) Experiments on synthetic data and human motion validate that our method can reliably generate a more diverse set of future trajectories compared to state-of-the-art generative models. ",
100
+ "bbox": [
101
+ 174,
102
+ 566,
103
+ 823,
104
+ 637
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "2 RELATED WORK ",
111
+ "text_level": 1,
112
+ "bbox": [
113
+ 176,
114
+ 656,
115
+ 343,
116
+ 672
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "Trajectory Forecasting has recently received significant attention from the vision community. A large portion of previous work focuses on forecasting 2D future trajectories for pedestrians (Kitani et al., 2012; Ma et al., 2017; Ballan et al., 2016; Xie et al., 2013) or vehicles (Jain et al., 2016a). Some approaches use deterministic trajectory modeling and only forecast one future trajectory (Alahi et al., 2016; Yagi et al., 2018; Robicquet et al., 2016). As there are often multiple plausible future trajectories, several approaches have tried to forecast distributions over trajectories (Lee et al., 2017; Galceran et al., 2015; Gupta et al., 2018). Recently, Rhinehart et al. (2018; 2019) propose a generative model that can accurately forecast multi-modal trajectories for vehicles. Soo Park et al. (2016) also use egocentric videos to predict the future trajectories of the camera wearer. Some work has investigated forecasting higher dimensional trajectories such as the 3D fullbody pose sequence of human motions. Most existing work takes a deterministic approach and forecasts only one possible future motion from past 3D poses (Fragkiadaki et al., 2015; Butepage et al., 2017; Li et al., 2017; Jain et al., 2016b), static images (Chao et al., 2017; Kanazawa et al., 2018) or egocentric videos (Yuan and Kitani, 2019). Differently, some probabilistic approaches (Habibie et al., 2017; Yan et al., 2018) use conditional variational autoencoders (cVAEs) to generate multiple future motions. In constrast to previous work, our approach can generate a diverse set of future motions with a limited number of samples. ",
123
+ "bbox": [
124
+ 174,
125
+ 688,
126
+ 825,
127
+ 924
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Diverse Solutions have been sought after in a number of problems in computer vision and machine learning. A branch of these methods aiming for diversity stems from the M-Best MAP problem (Nilsson, 1998; Seroussi and Golmard, 1994), including diverse M-Best solutions (Batra et al., 2012) and multiple choice learning (Guzman-Rivera et al., 2012; Lee et al., 2016). Alternatively, previous work has used submodular function maximization to select a diverse subset of garments from fashion images (Hsiao and Grauman, 2018). Determinantal point processes (DPPs) (Macchi, 1975; Kulesza et al., 2012) are efficient probabilistic models that can measure both the diversity and quality of items in a subset, which makes it a natural choice for the diverse subset selection problem. DPPs have been applied for document and video summarization (Kulesza and Taskar, 2011; Gong et al., 2014), recommendation systems (Gillenwater et al., 2014), object detection (Azadi et al., 2017), and grasp clustering (Huang et al., 2015). Elfeki et al. (2018) have also used DPPs to mitigate mode collapse in generative adversarial networks (GANs). The work most related ours is (Gillenwater et al., 2014), which also uses the cardinality of DPPs as a proxy for user engagement. However, there are two important differences between our approach and theirs. First, the context is different as they use the cardinality for a subset selection problem while we apply the cardinality as an objective of a continuous optimization problem in the setting of generative models. Second, their main motivation behind using the cardinality is that it aligns better with the user engagement semantics, while our motivation is that using cardinality as a diversity loss for deep neural networks is more stable due to its tolerance of similar trajectories, which are often produced by deep neural networks during stochastic gradient descent. ",
134
+ "bbox": [
135
+ 173,
136
+ 103,
137
+ 825,
138
+ 381
139
+ ],
140
+ "page_idx": 2
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "3 BACKGROUND ",
145
+ "text_level": 1,
146
+ "bbox": [
147
+ 176,
148
+ 400,
149
+ 326,
150
+ 416
151
+ ],
152
+ "page_idx": 2
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "3.1 VARIATIONAL AUTOENCODERS ",
157
+ "text_level": 1,
158
+ "bbox": [
159
+ 176,
160
+ 431,
161
+ 431,
162
+ 445
163
+ ],
164
+ "page_idx": 2
165
+ },
166
+ {
167
+ "type": "text",
168
+ "text": "The aim of multi-modal trajectory forecasting is to learn a generative model over future trajectories. Variational autoencoders (VAEs) are a popular choice of generative models for trajectory forecasting (Lee et al., 2017; Walker et al., 2016) because it can effectively capture all possible future trajectories by explicitly mapping each data point to a latent code. VAEs model the joint distribution $p _ { \\theta } \\mathbf { \\bar { ( x , z ) } } = p \\mathbf { \\bar { ( z ) } } \\bar { p _ { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ of each data sample $\\mathbf { x }$ (e.g., a future trajectory) and its corresponding latent code $\\mathbf { z }$ , where $p ( \\mathbf { z } )$ denotes some prior distribution (e.g., Gaussians) and $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ denotes the conditional likelihood model. To calculate the marginal likelihood $p _ { \\theta } ( \\mathbf { x } ) = p _ { \\theta } ( \\mathbf { x } , \\mathbf { z } ) / p _ { \\theta } ( \\mathbf { z } | \\mathbf { x } )$ , one needs to compute the posterior distribution $p _ { \\theta } ( \\mathbf { z } | \\mathbf { x } )$ which is typically intractable. To tackle this, VAEs use variational inference (Jordan et al., 1999) which introduces an approximate posterior $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ and decomposes the marginal log-likelihood as ",
169
+ "bbox": [
170
+ 173,
171
+ 457,
172
+ 825,
173
+ 597
174
+ ],
175
+ "page_idx": 2
176
+ },
177
+ {
178
+ "type": "equation",
179
+ "img_path": "images/7ec1fbf517bc6fb24c237e11ac6d9e27fd8870f4bf5e8d716fd8e9f4bd8567a7.jpg",
180
+ "text": "$$\n\\begin{array} { r } { \\log p _ { \\theta } ( \\mathbf { x } ) = \\mathrm { K L } \\left( q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) \\| p _ { \\theta } ( \\mathbf { z } | \\mathbf { x } ) \\right) + \\mathcal { L } ( \\mathbf { x } ; \\theta , \\phi ) , } \\end{array}\n$$",
181
+ "text_format": "latex",
182
+ "bbox": [
183
+ 334,
184
+ 599,
185
+ 663,
186
+ 617
187
+ ],
188
+ "page_idx": 2
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "where $\\mathcal { L } ( \\mathbf { x } ; \\theta , \\phi )$ is the evidence lower bound (ELBO) defined as ",
193
+ "bbox": [
194
+ 173,
195
+ 618,
196
+ 598,
197
+ 633
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "equation",
203
+ "img_path": "images/ff419cc69a05b6afdccae25e1cae76f5921fa218fa0915f9e3bb50886f69f825.jpg",
204
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } ( \\mathbf { x } ; \\theta , \\phi ) = \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } \\left[ \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } ) \\right] - \\mathrm { K L } \\left( q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) \\| p ( \\mathbf { z } ) \\right) . } \\end{array}\n$$",
205
+ "text_format": "latex",
206
+ "bbox": [
207
+ 303,
208
+ 636,
209
+ 692,
210
+ 655
211
+ ],
212
+ "page_idx": 2
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "During training, VAEs jointly optimize the recognition model (encoder) $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ and the likelihood model (decoder) $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ to maximize the ELBO. In the context of multi-modal trajectory forecasting, one can generate future trajectories from $p ( \\mathbf { x } )$ by drawing a latent code $\\mathbf { z }$ from the prior $p ( \\mathbf { z } )$ and decoding $\\mathbf { z }$ with the decoder $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ to produce a corresponding future trajectory $\\mathbf { x }$ . ",
217
+ "bbox": [
218
+ 174,
219
+ 659,
220
+ 825,
221
+ 714
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "3.2 DETERMINANTAL POINT PROCESSES ",
228
+ "text_level": 1,
229
+ "bbox": [
230
+ 178,
231
+ 729,
232
+ 470,
233
+ 744
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "Our core technical innovation is a method to learn a diversity sampling function (DSF) that can generate a diverse set of future trajectories. To achieve this, we must equip ourselves with a tool to evaluate the diversity of a set of trajectories. To this end, we make use of determinantal point processes (DPPs) to model the diversity within a set. DPPs promote diversity within a set because the inclusion of one item makes the inclusion of a similar item less likely if the set is sampled according to a DPP. ",
240
+ "bbox": [
241
+ 174,
242
+ 756,
243
+ 825,
244
+ 840
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "Formally, given a set of items (e.g., data points) $\\mathcal { Y } = \\{ \\mathbf { x } _ { 1 } , \\dotsc , \\mathbf { x } _ { N } \\}$ , a point process $\\mathcal { P }$ on the ground set $\\mathcal { V }$ is a probability measure on $2 ^ { y }$ , i.e., the set of all subsets of $\\mathcal { V }$ . $\\mathcal { P }$ is called a determinantal point process if a random subset $\\mathbf { Y }$ drawn according to $\\mathcal { P }$ has ",
251
+ "bbox": [
252
+ 174,
253
+ 847,
254
+ 825,
255
+ 890
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "equation",
261
+ "img_path": "images/6533b73068af982a9307337becd886458b84788ca77aa30f20b2e1451b062e92.jpg",
262
+ "text": "$$\n\\mathcal { P } _ { \\mathbf { L } } ( Y = Y ) = \\frac { \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y } \\right) } { \\sum _ { Y \\subseteq \\mathcal { V } } \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y } \\right) } = \\frac { \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y } \\right) } { \\operatorname* { d e t } ( \\mathbf { L } + \\mathbf { I } ) } ,\n$$",
263
+ "text_format": "latex",
264
+ "bbox": [
265
+ 333,
266
+ 892,
267
+ 663,
268
+ 929
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "where $Y \\subseteq \\mathcal { V }$ , I is the identity matrix, $\\mathbf { L } \\in \\mathbb { R } ^ { N \\times N }$ is the DPP kernel, a symmetric positive semidefinite matrix, and $\\mathbf { L } _ { Y } \\in \\mathbb { R } ^ { | Y | \\times | Y | }$ is a submatrix of $\\mathbf { L }$ indexed by elements of $Y$ . ",
275
+ "bbox": [
276
+ 171,
277
+ 102,
278
+ 821,
279
+ 133
280
+ ],
281
+ "page_idx": 3
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "The DPP kernel $\\mathbf { L }$ is typically constructed by a similarity matrix S, where $\\mathbf { S } _ { i j }$ defines the similarity between two items $\\mathbf { x } _ { i }$ and $\\mathbf { x } _ { j }$ . If we use the inner product as the similarity measure, $\\mathbf { L }$ can be written in the form of a Gram matrix $\\mathbf { L } = \\mathbf { S } = \\mathbf { X } ^ { T } \\mathbf { X }$ where $\\mathbf { X }$ is the stacked feature matrix of $\\mathcal { V }$ . As a property of the Gram matrix, det $\\left( { \\bf L } _ { Y } \\right)$ equals the squared volume spanned by vectors $\\mathbf { x } _ { i } \\in Y$ . With this geometric interpretation in mind, one can observe that diverse sets are more probable because their features are more orthogonal, thus spanning a larger volume. ",
286
+ "bbox": [
287
+ 173,
288
+ 140,
289
+ 825,
290
+ 226
291
+ ],
292
+ "page_idx": 3
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "In addition to set diversity encoded in the similarity matrix S, it is also convenient to introduce a quality vector $\\mathbf { r } = [ r _ { 1 } , \\dots , r _ { N } ]$ to weigh each item according to some unary metric. For example, the quality weight might be derived from the likelihood of an item. To capture both diversity and quality of a subset, the DPP kernel $\\mathbf { L }$ is often decomposed in the more general form: ",
297
+ "bbox": [
298
+ 174,
299
+ 232,
300
+ 825,
301
+ 289
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "equation",
307
+ "img_path": "images/b7b4bb9fe3b12a9903ff005c2d686b7b8d451754ddadce27e42c96ce8efa217d.jpg",
308
+ "text": "$$\n\\mathbf { L } = \\mathrm { D i a g } ( \\mathbf { r } ) \\cdot \\mathbf { S } \\cdot \\mathrm { D i a g } ( \\mathbf { r } ) .\n$$",
309
+ "text_format": "latex",
310
+ "bbox": [
311
+ 406,
312
+ 294,
313
+ 589,
314
+ 311
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "With this decomposition, we can see that both the quality vector $\\mathbf { r }$ and similarity matrix S contribute to the DPP probability of a subset $Y$ : ",
321
+ "bbox": [
322
+ 173,
323
+ 318,
324
+ 825,
325
+ 345
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/238e44358b528cd8cc2b7d6fc9ea97821a020fdc15eda85e3587f8ec418bd058.jpg",
332
+ "text": "$$\n\\mathcal { P } _ { L } ( \\pmb { Y } = Y ) \\propto \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y } \\right) = \\left( \\prod _ { \\mathbf { x } _ { i } \\in Y } r _ { i } ^ { 2 } \\right) \\operatorname* { d e t } \\left( \\mathbf { S } _ { Y } \\right) .\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 330,
336
+ 349,
337
+ 668,
338
+ 395
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Due to its ability to capture the global diversity and quality of a set of items, we choose DPPs as the probabilistic approach to evaluate and optimize the diversity of the future trajectories drawn by our proposed diversity sampling function. ",
345
+ "bbox": [
346
+ 173,
347
+ 400,
348
+ 825,
349
+ 443
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "4 APPROACH",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 174,
359
+ 462,
360
+ 299,
361
+ 478
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "Safety-critical applications often require that the system can maintain a diverse set of outcomes covering all modes of a predictive distribution and not just the most likely one. To address this requirement, we propose to learn a diversity sampling function (DSF) to draw deterministic trajectory samples by generating a set of latent codes in the latent space of a conditional variational autoencoder (cVAE) and decoding them into trajectories using the cVAE decoder. The DSF trajectory samples are evaluated with a DPP-based diversity loss, which in turn optimizes the parameters of the DSF for more diverse trajectory samples. ",
368
+ "bbox": [
369
+ 173,
370
+ 493,
371
+ 825,
372
+ 592
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Formally, the future trajectory $\\mathbf { x } \\in \\mathbb { R } ^ { T \\times D }$ is a random variable denoting a $D$ dimensional feature over a future time horizon $T$ (e.g., a vehicle trajectory or a sequence of humanoid poses). The context $\\boldsymbol { \\psi } = \\{ { \\bf h } , { \\bf f } \\}$ provides the information to infer the future trajectory $\\mathbf { x }$ , and it contains the past trajectory $\\mathbf { \\bar { h } } \\in \\mathbf { \\mathbb { R } } ^ { \\mathbf { \\bar { H } } \\times D }$ of last $H$ time steps and optionally other side information f , such as an obstacle map. In the following, we first describe how we learn the future trajectory model $p _ { \\theta } ( \\mathbf { x } | \\psi )$ with a cVAE. Then, we introduce the DSF and the DPP-based diversity loss used to optimize the DSF. ",
379
+ "bbox": [
380
+ 173,
381
+ 597,
382
+ 825,
383
+ 695
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "4.1 LEARNING A CVAE FOR FUTURE TRAJECTORIES ",
390
+ "text_level": 1,
391
+ "bbox": [
392
+ 174,
393
+ 712,
394
+ 553,
395
+ 727
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "In order to generate a diverse set of future trajectory samples, we need to learn a generative trajectory forecasting model $p _ { \\theta } ( \\mathbf { x } | \\psi )$ that can cover all modes of the data distribution. Here we use cVAEs (other proper generative models can also be used), which explicitly map data $\\mathbf { x }$ with the encoder $q _ { \\phi } ( { \\bf z } | { \\bf x } , \\psi )$ to its corresponding latent code $\\mathbf { z }$ and reconstruct the data from the latent code using the decoder $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } , \\boldsymbol { \\psi } )$ . By maintaining this one-on-one mapping between the data and the latent code, cVAEs attempt to capture all modes of the data. As discussed in Sec. 3.1, cVAEs jointly optimize the encoder and decoder to maximize the variational lower bound: ",
402
+ "bbox": [
403
+ 173,
404
+ 738,
405
+ 825,
406
+ 835
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "equation",
412
+ "img_path": "images/2f3ef2260cbdd96087b092432902ccc8261b3c989b20dc1bb1142b8ea1f7c6fd.jpg",
413
+ "text": "$$\n\\mathcal { L } ( \\mathbf { x } , \\psi ; \\theta , \\phi ) = \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } , \\psi ) } \\left[ \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } , \\psi ) \\right] - \\mathrm { K L } \\left( q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } , \\psi ) \\| p ( \\mathbf { z } ) \\right) .\n$$",
414
+ "text_format": "latex",
415
+ "bbox": [
416
+ 267,
417
+ 842,
418
+ 728,
419
+ 861
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "We use multivariate Gaussians for the prior, encoder and decoder: $p ( \\mathbf { z } ) = \\mathcal { N } ( \\mathbf { z } ; \\mathbf { 0 } , \\mathbf { I } )$ , $q _ { \\phi } ( { \\bf z } | { \\bf x } , \\psi ) =$ $\\mathcal { N } ( \\mathbf { z } ; \\pmb { \\mu } , \\pmb { \\sigma } ^ { 2 } \\mathbf { I } )$ , and $p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } , \\psi ) = \\mathcal { N } ( \\mathbf { x } ; \\tilde { \\mathbf { x } } , \\alpha \\mathbf { I } )$ . Both the encoder and decoder are implemented as neural networks. The encoder network $f _ { \\phi }$ outputs the parameters of the posterior distribution: $( \\mu , \\sigma ) = f _ { \\phi } ( { \\bf x } , \\psi )$ . The decoder network $g _ { \\theta }$ outputs the reconstructed future trajectory $\\tilde { \\bf x }$ : ",
426
+ "bbox": [
427
+ 174,
428
+ 866,
429
+ 823,
430
+ 924
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "$\\tilde { \\mathbf { x } } = g _ { \\theta } ( \\mathbf { z } , \\psi )$ . Detailed network architectures are given in Appendix B.1. Based on the Gaussian parameterization of the cVAE, the objective in Eq. 6 can be rewritten as ",
437
+ "bbox": [
438
+ 168,
439
+ 103,
440
+ 825,
441
+ 132
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "img_path": "images/1490d3af934f10fe629455d1671b34d7fab50bb6685642fca23670463012316e.jpg",
448
+ "text": "$$\n\\mathcal { L } _ { c v a e } ( \\mathbf { x } , \\psi ; \\theta , \\phi ) = - \\frac { 1 } { V } \\sum _ { v = 1 } ^ { V } \\Vert \\tilde { \\mathbf { x } } _ { v } - \\mathbf { x } \\Vert ^ { 2 } + \\beta \\cdot \\frac { 1 } { D _ { z } } \\sum _ { j = 1 } ^ { D _ { z } } \\left( 1 + 2 \\log \\sigma _ { j } - \\mu _ { j } ^ { 2 } - \\sigma _ { j } ^ { 2 } \\right) ,\n$$",
449
+ "text_format": "latex",
450
+ "bbox": [
451
+ 228,
452
+ 138,
453
+ 767,
454
+ 184
455
+ ],
456
+ "page_idx": 4
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "where we take $V$ samples from the posterior $q _ { \\phi } ( { \\bf z } | { \\bf x } , \\psi )$ , $D _ { z }$ is the number of latent dimensions, and $\\beta = 1 / \\alpha$ is a weighting factor. The training procedure for the $\\operatorname { c V A E }$ is detailed in Alg. 2 (Appendix A). Once the cVAE model is trained, sampling from the learned future trajectory model $p _ { \\theta } ( \\mathbf { x } | \\psi )$ is efficient: we can sample a latent code $\\mathbf { z }$ according to the prior $p ( \\mathbf { z } )$ and use the decoder $p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } , \\psi )$ to decode it into a future trajectory $\\mathbf { x }$ . ",
461
+ "bbox": [
462
+ 173,
463
+ 190,
464
+ 825,
465
+ 262
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Algorithm 1 Training the diversity sampling function (DSF) $S _ { \\gamma } ( \\psi )$ ",
472
+ "text_level": 1,
473
+ "bbox": [
474
+ 173,
475
+ 277,
476
+ 620,
477
+ 294
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "1: Input: Training data $\\{ \\mathbf { x } ^ { ( i ) } , \\boldsymbol { \\psi } ^ { ( i ) } \\} _ { i = 1 } ^ { M }$ , cVAE decoder network $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n2: Output: DSF $S _ { \\gamma } ( \\psi )$ \n3: Initialize $\\gamma$ randomly \n4: while not converged do \n5: for each $\\psi ^ { ( i ) }$ do \n6: Generate latent codes $\\mathcal { Z } = \\{ \\mathbf { z } _ { 1 } , \\ldots , \\mathbf { z } _ { N } \\}$ with the DSF $S _ { \\gamma } ( \\psi )$ \n7: Generate the trajectory ground set $\\mathcal { Y } = \\{ \\mathbf { x } _ { 1 } , \\dotsc , \\mathbf { x } _ { N } \\}$ with the decoder $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n8: Compute the similarity matrix S and quality vector r with Eq. 8 and 9 \n9: Compute the DPP kernel $\\mathbf { L } ( \\gamma ) = \\mathrm { D i a g } ( \\mathbf { r } ) \\cdot \\mathbf { S } \\cdot \\mathrm { D i a g } ( \\mathbf { r } )$ \n10: Calculate the diversity loss Ldiverse \n11: Update $\\gamma$ with the gradient ∇Ldiverse \n12: end for \n13: end while ",
484
+ "bbox": [
485
+ 178,
486
+ 296,
487
+ 781,
488
+ 483
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "4.2 DIVERSITY SAMPLING FUNCTION (DSF) ",
495
+ "text_level": 1,
496
+ "bbox": [
497
+ 173,
498
+ 507,
499
+ 500,
500
+ 522
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "As mentioned before, randomly sampling from the learned cVAE model according to the implicit likelihood function $p _ { \\theta } ( \\mathbf { x } | \\psi )$ , i.e., sampling latent codes from the prior $p ( \\mathbf { z } )$ , does not guarantee that the trajectory samples are diverse: major modes (those having more data) with higher likelihood will produce most of the samples while minor modes with lower likelihood will have almost no sample. This prompts us to devise a new sampling strategy that can reliably generate a diverse set of samples covering both major and minor modes. We propose to learn a diversity sampling function (DSF) $S _ { \\gamma } ( \\psi )$ that maps context $\\psi$ to a set of latent codes $\\mathcal { Z } = \\{ \\mathbf { z } _ { 1 } , \\ldots , \\mathbf { z } _ { N } \\}$ . The DSF is implemented as a $\\gamma$ -parameterized neural network which takes $\\psi$ as input and outputs a vector of length $N \\cdot D _ { z }$ (see Appendix B.1 for network details). The latent codes $\\mathcal { Z }$ are decoded into a diverse set of future trajectories $\\mathcal { Y } = \\{ \\mathbf { x } _ { 1 } , \\dotsc , \\mathbf { x } _ { N } \\}$ , which are denoted as the DSF trajectory samples. We note that $N$ is the sampling budget. To solve for the parameters of the DSF, we propose a diversity loss based on a DPP defined over $\\mathcal { V }$ . In this section, we first describe how the DPP kernel $\\mathbf { L }$ is defined, which involves the construction of the similarity matrix S and quality vector $\\mathbf { r }$ . We then discuss how we use the DPP kernel $\\mathbf { L }$ to formulate a diversity loss to optimize the parameters of the DSF. ",
507
+ "bbox": [
508
+ 173,
509
+ 534,
510
+ 825,
511
+ 728
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Recall that the DPP kernel is defined as $\\mathbf { L } = \\mathrm { D i a g } ( \\mathbf { r } ) \\cdot \\mathbf { S } \\cdot \\mathrm { D i a g } ( \\mathbf { r } )$ , where $\\mathbf { r }$ defines the quality of each trajectory and $\\mathbf { S }$ measures the similarity between two trajectories. The DPP kernel $\\mathbf { L } ( \\gamma )$ is a function of $\\gamma$ as it is defined over the ground set $\\mathcal { V }$ output by the DSF $S _ { \\gamma } ( \\psi )$ . ",
518
+ "bbox": [
519
+ 174,
520
+ 734,
521
+ 825,
522
+ 779
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Similarity. We measure the similarity $\\mathbf { S } _ { i j }$ between two trajectories $\\mathbf { x } _ { i }$ and $\\mathbf { x } _ { j }$ as ",
529
+ "bbox": [
530
+ 173,
531
+ 784,
532
+ 699,
533
+ 799
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "equation",
539
+ "img_path": "images/6002d6da5d2cb8ef765ad2291a23b740f67f1f70c59bfba7437c085380cfcd33.jpg",
540
+ "text": "$$\n\\mathbf { S } _ { i j } = \\exp \\left( - k \\cdot d _ { \\mathbf { x } } ^ { 2 } ( \\mathbf { x } _ { i } , \\mathbf { x } _ { j } ) \\right) ,\n$$",
541
+ "text_format": "latex",
542
+ "bbox": [
543
+ 398,
544
+ 808,
545
+ 598,
546
+ 827
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "where $d _ { \\mathbf { x } }$ is the Euclidean distance and $k$ is a scaling factor. This similarity design ensures that $0 \\leq \\mathbf { S } _ { i j } \\leq 1$ and $\\mathbf { S } _ { i i } = 1$ . It also makes $\\mathbf { S }$ positive definite since the Gaussian kernel we use is a positive definite kernel. ",
553
+ "bbox": [
554
+ 174,
555
+ 832,
556
+ 825,
557
+ 875
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "Quality. It may be tempting to use $p ( \\mathbf { x } | \\boldsymbol { \\psi } )$ to define the quality of each trajectory sample. However, this likelihood-based measure will clearly favor major modes that have higher probabilities, making it less likely to generate samples from minor modes. This motivates us to design a quality metric that ",
564
+ "bbox": [
565
+ 174,
566
+ 881,
567
+ 825,
568
+ 924
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "treats all modes equally. To this end, unlike the similarity metric which is defined in the trajectory space, the quality of each sample is measured in the latent space and is defined as ",
575
+ "bbox": [
576
+ 169,
577
+ 103,
578
+ 823,
579
+ 132
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "equation",
585
+ "img_path": "images/ad9d27827398aaade5f0221be67f37a4bd7751c0610862e7740a0033568d703d.jpg",
586
+ "text": "$$\nr _ { i } = \\left\\{ \\begin{array} { l l } { \\omega , } & { \\mathrm { i f ~ } \\| \\mathbf { z } _ { i } \\| \\leq R } \\\\ { \\omega \\exp \\left( - \\mathbf { z } _ { i } ^ { T } \\mathbf { z } _ { i } + R ^ { 2 } \\right) , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
587
+ "text_format": "latex",
588
+ "bbox": [
589
+ 351,
590
+ 140,
591
+ 647,
592
+ 178
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Geometrically, let $R$ be the radius of a sphere $\\Phi$ containing most samples from the Gaussian prior $p ( \\mathbf { z } )$ . We treat samples inside $\\Phi$ equally and only penalize samples outside $\\Phi$ . In this way, samples from major modes are not preferred over those from minor modes as long as they are inside $\\Phi$ , while samples far away from the data manifold are heavily penalized as they are outside $\\Phi$ . The radius $R$ is determined by where $\\rho$ percent of the Gaussian samples lie within, and we set $\\rho = 9 0$ . To compute $R$ , we use the percentage point function of the chi-squared distribution which models the distribution over the sum of squares of independent standard normal variables. The base quality $\\omega$ is a hyperparameter which we set to 1 during training in our experiments. At test time, we can use a larger $\\omega$ to encourage the DPP to select more items from the ground set $\\mathcal { V }$ . The hyperparameter $\\rho$ (or $R$ ) allows for the trade-off between diversity and quality. When $R$ is small, the quality metric is reduced to a pure likelihood-based metric (proportional to the latent likelihood), which will prefer samples with high likelihood and result in a less diverse sample set. When $R$ is large, most samples will have the same quality, and the resulting samples will be highly diverse but less likely. In practice, the choice of $R$ should be application dependent, as one could imagine autonomous vehicles would need to consider more diverse scenarios including those less likely ones to ensure robustness. We note that after the diverse samples are obtained, it is possible to reassign the quality score for each sample based on its likelihood to allow users to prioritize more likely samples. ",
599
+ "bbox": [
600
+ 173,
601
+ 184,
602
+ 825,
603
+ 421
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Diversity Loss. To optimize the DSF $S _ { \\gamma } ( \\psi )$ , we need to define a diversity loss that measures the diversity of the trajectory ground set $\\mathcal { V }$ generated by $S _ { \\gamma } ( \\psi )$ . An obvious choice for the diversity loss would be the negative log likelihood $- \\log \\mathcal { P } _ { \\mathbf { L } ( \\gamma ) } ( \\boldsymbol { Y } = \\mathcal { Y } ) = - \\log \\operatorname* { d e t } ( \\mathbf { L } ( \\gamma ) ) + \\log \\operatorname* { d e t } ( \\mathbf { L } ( \\gamma ) + \\mathbf { I } )$ . However, there is a problem with directly using the DPP log likelihood. The log likelihood heavily penalizes repeated items: if two trajectories inside $\\mathcal { V }$ are very similar, their corresponding rows in $\\mathbf { L }$ will be almost identical, making $\\operatorname* { d e t } ( \\mathbf { L } ( \\gamma ) ) = \\lambda _ { 1 } \\lambda _ { 2 } \\dots \\lambda _ { N } \\approx 0$ ( $\\lambda _ { n }$ is the $n$ -th eigenvalue). In practice, if the number of modes in the trajectory distribution $p ( \\mathbf { x } | \\boldsymbol { \\psi } )$ is smaller than $| \\mathcal { V } |$ , $\\mathcal { V }$ will always have similar trajectories, thus making $\\operatorname* { d e t } ( \\mathbf { L } ( \\gamma ) )$ always close to zero. In such cases, optimizing the negative log likelihood causes numerical issues, which is observed in our early experiments. ",
610
+ "bbox": [
611
+ 173,
612
+ 426,
613
+ 825,
614
+ 553
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Instead, the expected cardinality of the DPP is a better measure for the diversity of $\\mathcal { V }$ , which is defined as $\\mathbb { E } _ { Y \\sim \\mathcal { P } _ { \\mathbf { L } ( \\gamma ) } } [ | Y | ]$ . Intuitively, since the DPP discourages selection of similar items, if $\\mathcal { V }$ is more diverse, a random subset $\\mathbf { Y }$ drawn according to the DPP is more likely to select more items from $\\mathcal { V }$ , thus having larger cardinality. The expected cardinality can be computed as (Eq. 15 and 34 in Kulesza et al. (2012)): ",
621
+ "bbox": [
622
+ 174,
623
+ 559,
624
+ 825,
625
+ 630
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "equation",
631
+ "img_path": "images/ed697b7fda2924fdc8d22c805530d31ca8851093385b6100cbf3c2dc5abd30ca.jpg",
632
+ "text": "$$\n\\mathbb { E } [ | \\boldsymbol { Y } | ] = \\sum _ { n = 1 } ^ { N } \\frac { \\lambda _ { n } } { \\lambda _ { n } + 1 } = \\mathrm { t r } \\left( \\mathbf { I } - ( \\mathbf { L } ( \\boldsymbol { \\gamma } ) + \\mathbf { I } ) ^ { - 1 } \\right) .\n$$",
633
+ "text_format": "latex",
634
+ "bbox": [
635
+ 338,
636
+ 637,
637
+ 658,
638
+ 680
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "The main advantage of the expected cardinality is that it is well defined even when the ground set $\\mathcal { V }$ has duplicated items, since it does not require all eigenvalues of $\\mathbf { L }$ to be non-zero as the log likelihood does. Thus, our diversity loss is defined as $\\bar { \\mathcal { L } } _ { d i v e r s e } ^ { \\bar { } } ( \\gamma ) = - \\mathrm { t r } \\left( \\mathbf { I } - ( \\mathbf { L } ( \\gamma ) + \\mathbf { I } ) ^ { - 1 } \\right)$ . The training procedure for $S _ { \\gamma } ( \\psi )$ is outlined in Alg. 1. ",
645
+ "bbox": [
646
+ 173,
647
+ 688,
648
+ 825,
649
+ 746
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Inference. At test time, given current context $\\psi$ ,we use the learned DSF $S _ { \\gamma } ( \\psi )$ to generate the future trajectory ground set $\\mathcal { V }$ . In some cases, $\\mathcal { V }$ may still contain some trajectories that are similar to others. In order to obtain a diverse set of trajectories without repetition, we aim to perform MAP inference for the DPP to find the most diverse subset $Y ^ { * } = \\arg \\operatorname* { m a x } _ { Y \\in \\mathcal { Y } } \\mathcal { P } _ { \\mathbf { L } ( \\gamma ) } ( Y )$ . A useful property of DPPs is that the log-probability function is submodular (Gillenwater et al., 2012). Even though submodular maximization is NP-hard, we use a greedy algorithm (Nemhauser et al., 1978) which is a popular optimization procedure that works well in practice. As outlined in Alg. 3, the output set $Y _ { f }$ is initialized as $\\varnothing$ , and at each iteration, the trajectory which maximizes the log probability ",
656
+ "bbox": [
657
+ 173,
658
+ 751,
659
+ 825,
660
+ 864
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "equation",
666
+ "img_path": "images/83355f582f7d5ed3bceaae804996b784c59b2117c3656f0a6ddd912f455b8187.jpg",
667
+ "text": "$$\n\\begin{array} { r } { \\mathbf { x } ^ { * } = \\underset { \\mathbf { x } \\in \\mathcal { V } \\backslash Y _ { f } } { \\arg \\operatorname* { m a x } } ~ \\log \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y _ { f } \\cup \\{ \\mathbf { x } \\} } \\right) } \\end{array}\n$$",
668
+ "text_format": "latex",
669
+ "bbox": [
670
+ 383,
671
+ 872,
672
+ 614,
673
+ 901
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "is added to $Y _ { f }$ , until the marginal gain becomes negative or $Y _ { f } = y$ . ",
680
+ "bbox": [
681
+ 171,
682
+ 909,
683
+ 622,
684
+ 925
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "5 EXPERIMENTS ",
691
+ "text_level": 1,
692
+ "bbox": [
693
+ 176,
694
+ 102,
695
+ 326,
696
+ 117
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "The primary focus of our experiments is to answer the following questions: (1) Are trajectory samples generated with our diversity sampling function more diverse than samples from the cVAE and other baselines? (2) How does our method perform on both balanced and imbalanced data? (3) Is our method general enough to perform well on both low-dimensional and high-dimensional tasks? ",
703
+ "bbox": [
704
+ 174,
705
+ 135,
706
+ 825,
707
+ 190
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Metrics. A problem with trajectory forecasting evaluation is that in real data each context $\\psi ^ { ( i ) }$ usually only has one future trajectory $\\mathbf { x } ^ { ( i ) }$ , which means we only have one sample from a multi-modal distribution. Let us consider a scenario of three data examples {x(i), ψ(i)}3 as shown in Fig. 2 (red, purple, blue). The contexts (past trajectories) of the three examples are instances of the same trajectory but they are slightly different due to noise. As these three contexts have the same semantic meaning, they should share the future trajectories, e.g., the purple and blue future trajectories are also valid for the red context. If we evaluate each example $( \\mathbf { x } ^ { ( i ) } , \\psi ^ { ( i ) } )$ only with its own future trajectory $\\mathbf { x } ^ { ( i ) }$ , a method can achieve high scores by only forecasting the mode corresponding to $\\mathbf { x } ^ { ( i ) }$ and dropping other modes. This is undesirable because we want a good method to capture all modes of the future trajectory distribution, not just a single mode. To allow for multi-modal evaluation, we propose collecting multiple future trajectories for each example by clustering examples with similar contexts. Specifically, we augment each data example $\\bar { ( \\mathbf { x } ^ { ( i ) } , \\psi ^ { ( i ) } ) }$ with a future trajectory set $\\mathcal { X } ^ { ( i ) } = \\{ \\mathbf { x } ^ { ( j ) } | \\| \\boldsymbol { \\psi } ^ { ( j ) } - \\boldsymbol { \\psi } ^ { ( i ) } \\| \\leq \\varepsilon$ , $j = 1 , \\dots , M \\}$ and metrics are calculated based on $\\chi ^ { ( i ) }$ instead of $\\mathbf { x } ^ { ( i ) }$ , i.e., we compute metrics for each $\\mathbf { x } \\in \\mathcal { X } ^ { ( i ) }$ and average the results. ",
714
+ "bbox": [
715
+ 174,
716
+ 196,
717
+ 516,
718
+ 397
719
+ ],
720
+ "page_idx": 6
721
+ },
722
+ {
723
+ "type": "image",
724
+ "img_path": "images/339718b64625c26a09d2391fc59d2fb39d3ea27dbcb5c3732aa26b7ef6c03c8e.jpg",
725
+ "image_caption": [
726
+ "Figure 2: In real data, contexts (past trajectories) are seldom the same due to noise. "
727
+ ],
728
+ "image_footnote": [],
729
+ "bbox": [
730
+ 535,
731
+ 204,
732
+ 802,
733
+ 352
734
+ ],
735
+ "page_idx": 6
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "",
740
+ "bbox": [
741
+ 173,
742
+ 397,
743
+ 825,
744
+ 501
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "We use the following metrics for evaluation: (1) Average Displacement Error (ADE): average mean square error (MSE) over all time steps between the ground truth future trajectory $\\mathbf { x }$ and the closest sample $\\tilde { \\bf x }$ in the forecasted set of trajectories $Y _ { f }$ . (2) Final Displacement Error (FDE): MSE between the final ground truth position $\\mathbf { x } ^ { T }$ and the closest sample’s final position $\\tilde { \\mathbf { x } } ^ { T }$ . (3) Average Self Distance (ASD): average $L 2$ distance over all time steps between a forecasted sample $\\tilde { \\mathbf { x } } _ { i }$ and its closest neighbor $\\tilde { \\mathbf { x } } _ { j }$ in $Y _ { f }$ . (4) Final Self Distance (FSD): $L 2$ distance between the final position of a sample $\\tilde { \\mathbf { x } } _ { i } ^ { T }$ and its closest neighbor’s final position $\\tilde { \\mathbf { x } } _ { j } ^ { T }$ . The ADE and FDE are common metrics used in prior work on trajectory forecasting (Alahi et al., 2016; Lee et al., 2017; Rhinehart et al., 2018; Gupta et al., 2018). However, these two metrics do not penalize repeated samples. To address this, we introduce two new metrics ASD and FSD to evaluate the similarity between samples in the set of forecasted trajectories. Larger ASD and FSD means the forecasted trajectories are more non-repetitive and diverse. ",
751
+ "bbox": [
752
+ 173,
753
+ 507,
754
+ 825,
755
+ 676
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Baselines. We compare our Diversity Sampler Function (DSF) with the following baselines: (1) cVAE: a method that follows the original sampling scheme of cVAE by sampling latent codes from a Gaussian prior $p ( \\mathbf { z } )$ . (2) MCL: an approach that uses multiple choice learning (Lee et al., 2016) to optimize the sampler $S _ { \\gamma } ( \\psi )$ with the following loss: $\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { m c l } } \\bar { \\mathbf { \\Psi } } = \\operatorname* { m i n } _ { \\tilde { \\mathbf { x } } \\in \\mathcal { Y } } \\| \\tilde { \\mathbf { x } } - \\mathbf { x } \\| ^ { 2 } } \\end{array}$ , where $\\mathbf { x }$ is the ground truth future trajectory. (3) R2P2: a method proposed in (Rhinehart et al., 2018) that uses a reparametrized pushforward policy to improve modeling of multi-modal distributions for vehicle trajectories. (4) cGAN: generative adversarial networks (Goodfellow et al., 2014) conditioned on the forecasting context. We implement all baselines using similar networks and perform hyperparameter search for each method for fair comparisons. For methods whose samples are stochastic, we use 10 random seeds and report the average results for all metrics. ",
762
+ "bbox": [
763
+ 173,
764
+ 684,
765
+ 825,
766
+ 823
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "5.1 SYNTHETIC 2D TRAJECTORY DATA ",
773
+ "text_level": 1,
774
+ "bbox": [
775
+ 176,
776
+ 840,
777
+ 460,
778
+ 856
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "We first use synthetic data to evaluate our method’s performance for low-dimensional tasks. We design a virtual 2D traffic scene where a vehicle comes to a crossroad and can choose three different future routes: forward, left, and right. We consider two types of synthetic data: (1) Balanced data, which means the probabilities of the vehicle choosing one of the three routes are the same; (2) ",
785
+ "bbox": [
786
+ 174,
787
+ 867,
788
+ 825,
789
+ 924
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "image",
795
+ "img_path": "images/e449598c237031babc8a911ea804edb59e2cc40f470548bd63bb814a445de844.jpg",
796
+ "image_caption": [
797
+ "Figure 3: Qualitative results on synthetic data for both balanced and imbalanced data distribution when $N = 1 0$ . Blue represents the past trajectory and red represents forecasted future trajectories. "
798
+ ],
799
+ "image_footnote": [],
800
+ "bbox": [
801
+ 223,
802
+ 102,
803
+ 776,
804
+ 258
805
+ ],
806
+ "page_idx": 7
807
+ },
808
+ {
809
+ "type": "table",
810
+ "img_path": "images/85a29e0bd05c9c12c4fcf226bd838183289224d0032ee3e31664f3c626e93033.jpg",
811
+ "table_caption": [],
812
+ "table_footnote": [
813
+ "Table 1: Quantitative results on synthetic data (numbers scaled by 10) when $N = 1 0$ . "
814
+ ],
815
+ "table_body": "<table><tr><td></td><td colspan=\"4\">Balanced Data</td><td colspan=\"4\">Imbalanced Data</td></tr><tr><td>Method</td><td>ADE↓</td><td>FDE↓</td><td>ASD ↑</td><td>FSD ↑</td><td>ADE↓</td><td>FDE↓</td><td>ASD ↑</td><td>FSD ↑</td></tr><tr><td>DSF (Ours)</td><td>0.182</td><td>0.344</td><td>0.147</td><td>0.340</td><td>0.198</td><td>0.371</td><td>0.207</td><td>0.470</td></tr><tr><td>cVAE</td><td>0.262</td><td>0.518</td><td>0.022</td><td>0.050</td><td>0.332</td><td>0.662</td><td>0.021</td><td>0.050</td></tr><tr><td>MCL</td><td>0.276</td><td>0.548</td><td>0.012</td><td>0.030</td><td>0.457</td><td>0.938</td><td>0.005</td><td>0.010</td></tr><tr><td>R2P2</td><td>0.211</td><td>0.361</td><td>0.047</td><td>0.080</td><td>0.393</td><td>0.776</td><td>0.019</td><td>0.030</td></tr><tr><td>cGAN</td><td>0.808</td><td>1.619</td><td>0.018</td><td>0.010</td><td>1.784</td><td>3.744</td><td>0.006</td><td>0.001</td></tr></table>",
816
+ "bbox": [
817
+ 209,
818
+ 297,
819
+ 784,
820
+ 409
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "Imbalanced data, where the probabilities of the vehicle going forward, left and right are 0.8, 0.1, 0.1, respectively. We synthesize trajectory data by simulating the vehicle’s behavior and adding Gaussian noise to vehicle velocities. Each data example $( \\mathbf { x } ^ { ( i ) } , \\bar { \\psi } ^ { ( i ) } )$ contains future trajectories of 3 steps and past trajectories of 2 steps. We also add an obstacle map around the current position to the context $\\bar { \\psi ^ { ( i ) } }$ . In total, we have around 1100 training examples and 1000 test examples. Please refer to Appendix B for more implementation details. ",
827
+ "bbox": [
828
+ 173,
829
+ 439,
830
+ 825,
831
+ 525
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "Table 1 summarizes the quantitative results for both balanced and imbalanced data when the sampling budget $N$ is 10. We can see that our method DSF outperforms the baselines in all metrics in both test settings. As shown in Fig. 3, our method generates more diverse trajectories and is less affected by the imbalanced data distribution. The trajectory samples of our method are also less repetitive, a feature afforded by our DPP formulation. Fig. 4 shows how ADE changes as a function of the sampling budget $N$ . ",
838
+ "bbox": [
839
+ 174,
840
+ 531,
841
+ 825,
842
+ 616
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "5.2 DIVERSE HUMAN MOTION FORECASTING ",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 174,
852
+ 638,
853
+ 504,
854
+ 652
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "To further evaluate our method’s performance for more complex and high-dimensional tasks, we apply our method to forecast future human motions (pose sequences). We use motion capture to obtain 10 motion sequences including different types of motions such as walking, turning, jogging, bending, and crouching. Each sequence is about 1 minute long and each pose consists of 59 joint angles. We use past 3 poses ",
861
+ "bbox": [
862
+ 174,
863
+ 666,
864
+ 483,
865
+ 791
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "table",
871
+ "img_path": "images/fb02cbb95e546c3f878e1cbba7e67bba57b9432eca118496759ad48386cc849c.jpg",
872
+ "table_caption": [],
873
+ "table_footnote": [
874
+ "Table 2: Quantitative results on for human motion forecasting when $N = 1 0$ . "
875
+ ],
876
+ "table_body": "<table><tr><td>Method</td><td>ADE↓</td><td>FDE↓</td><td>ASD个</td><td>FSD↑</td></tr><tr><td>DSF (Ours)</td><td>0.259</td><td>0.421</td><td>0.115</td><td>0.282</td></tr><tr><td>cVAE</td><td>0.332</td><td>0.642</td><td>0.034</td><td>0.098</td></tr><tr><td>MCL</td><td>0.344</td><td>0.674</td><td>0.036</td><td>0.122</td></tr><tr><td>cGAN</td><td>0.652</td><td>1.296</td><td>0.001</td><td>0.003</td></tr></table>",
877
+ "bbox": [
878
+ 504,
879
+ 670,
880
+ 812,
881
+ 751
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "(0.1s) to forecast next 30 poses (1s). There are around 9400 training examples and 2000 test examples where we use different sequences for training and testing. More implementation details can be found in Appendix B. ",
888
+ "bbox": [
889
+ 176,
890
+ 791,
891
+ 825,
892
+ 833
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "We present quantitative results in Table 2 and we can see that our approach outperforms other methods in all metrics. As the dynamics model used in R2P2 (Rhinehart et al., 2018) does not generalize well for high-dimensional human motion, we find the model fails to converge and we do not compare with it in this experiment. Fig. 4 shows that our method achieves large improvement when the sampling budget is big $\\mathrm { \\Delta } N = 5 0 \\mathrm { \\Omega }$ ). We also present qualitative results in Fig. 5, where we show the starting pose and the final pose of all 10 forecasted motion samples for each method. We can clearly see that our method generates more diverse future human motions than the baselines. Please refer to Appendix C and our video for additional qualitative results. ",
899
+ "bbox": [
900
+ 174,
901
+ 840,
902
+ 825,
903
+ 924
904
+ ],
905
+ "page_idx": 7
906
+ },
907
+ {
908
+ "type": "image",
909
+ "img_path": "images/ff9fe6900c65b3c7340feda04c9935bdbcf6b74f4b07a3fe374531d9c2ae1f9a.jpg",
910
+ "image_caption": [
911
+ "Figure 4: ADE vs. $N$ for synthetic data and human motion forecasting. cGAN is not shown in this plot as it is much worse than other methods due to mode collapse. "
912
+ ],
913
+ "image_footnote": [],
914
+ "bbox": [
915
+ 205,
916
+ 101,
917
+ 774,
918
+ 257
919
+ ],
920
+ "page_idx": 8
921
+ },
922
+ {
923
+ "type": "image",
924
+ "img_path": "images/1df4f19ed6c9ea796a9731ebe271c06940cbbe9aaa4215f855d8629862c36a0c.jpg",
925
+ "image_caption": [
926
+ "Figure 5: Qualitative results for human motion forecasting when $N = 1 0$ . The left shows the starting pose, and the right shows for each method the final pose of all 10 forecasted motion samples. "
927
+ ],
928
+ "image_footnote": [],
929
+ "bbox": [
930
+ 207,
931
+ 296,
932
+ 784,
933
+ 441
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "",
940
+ "bbox": [
941
+ 174,
942
+ 484,
943
+ 823,
944
+ 512
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "5.3 ADDITIONAL EXPERIMENTS WITH DIVERSITY-BASED BASELINES",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 176,
954
+ 532,
955
+ 671,
956
+ 546
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "In this section, we perform additional experiments on a large human motion dataset (3.6 million frames), Human3.6M (Ionescu et al., 2013), to evaluate the generalization ability of our approach. We predict future motion of 2 seconds based on observed motion of 0.5 seconds. Please refer to Appendix B.3 for implementation details. We also use a new selection of baselines including several variants of our method (DSF) and the cVAE to validate several design choices of our method, including the choice of the expected cardinality over the negative log likelihood (NLL) of the DPP as the diversity loss. Specifically, we use the following new baselines: (1) DSF-NLL: a variant of DSF that uses NLL as the diversity loss instead of the expected cardinality. (2) DSF-COS: a DSF variant that uses cosine similarity to build the similarity matrix S for the DPP kernel L. (3) DSF-NLL: a variant of the cVAE that samples 100 latent codes and performs DPP MAP inference on the latent codes to obtain a diverse set of latent codes, which are then decoded into trajectory samples. ",
963
+ "bbox": [
964
+ 174,
965
+ 559,
966
+ 825,
967
+ 712
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "We present quantitative results in Table 3 when the number of samples $N$ is 10 and 50. The baseline DSF-COS is able to achieve very high diversity (ASD and FSD) but its samples are overly diverse and have poor quality which is indicated by the large ADE and FDE. Compared with DSF-NLL, our method achieves better diversity (ASD and FSD) and similar ADE and FDE when the number of samples is small $N = 1 0$ ). For a larger number of samples $\\mathrm { ~ N ~ } = 5 0 $ ), NLL becomes unstable even with a large $\\epsilon$ (1e-3) added to the diagonal. This behavior of NLL, i.e., stable for small $N$ but unstable for large $N$ , matches our intuition that NLL becomes unstable when samples become similar (as discussed in Sec. 4.2), because when there are more samples, it is easier to have similar samples during the SGD updates of the DSF network. The baseline cVAE-LDPP also performs worse than DSF in all metrics even though it is able to outperfom the cVAE. We believe the reason is that diversity in sample space may not be well reflected in the latent space due to the non-linear mapping from latent codes to samples induced by deep neural networks. ",
974
+ "bbox": [
975
+ 174,
976
+ 718,
977
+ 825,
978
+ 761
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "table",
984
+ "img_path": "images/7b462bade4920a5874ad6f7e15079e28b92b9cbb06447af97005cb10b61821bc.jpg",
985
+ "table_caption": [],
986
+ "table_footnote": [
987
+ "Table 3: Quantitative results on Human3.6M (Ionescu et al., 2013) for $N = 1 0$ and $N = 5 0$ . X means the method is unable to learn a model due to numerical instability. "
988
+ ],
989
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">N=10</td><td colspan=\"4\">N= 50</td></tr><tr><td>ADE↓</td><td>FDE↓</td><td>ASD↑</td><td>FSD ↑</td><td>ADE↓</td><td>FDE↓</td><td>ASD↑</td><td>FSD ↑</td></tr><tr><td>DSF (Ours)</td><td>0.340</td><td>0.521</td><td>0.381</td><td>0.621</td><td>0.236</td><td>0.306</td><td>0.313</td><td>0.415</td></tr><tr><td>DSF-NLL</td><td>0.335</td><td>0.514</td><td>0.343</td><td>0.496</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>DSF-COS</td><td>2.588</td><td>1.584</td><td>5.093</td><td>5.718</td><td>0.978</td><td>0.891</td><td>2.007</td><td>1.968</td></tr><tr><td>cVAE</td><td>0.363</td><td>0.549</td><td>0.235</td><td>0.360</td><td>0.276</td><td>0.369</td><td>0.160</td><td>0.220</td></tr><tr><td>cVAE-LDPP</td><td>0.373</td><td>0.554</td><td>0.280</td><td>0.426</td><td>0.277</td><td>0.365</td><td>0.176</td><td>0.240</td></tr></table>",
990
+ "bbox": [
991
+ 205,
992
+ 786,
993
+ 789,
994
+ 897
995
+ ],
996
+ "page_idx": 8
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "",
1001
+ "bbox": [
1002
+ 174,
1003
+ 103,
1004
+ 825,
1005
+ 229
1006
+ ],
1007
+ "page_idx": 9
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "6 CONCLUSION ",
1012
+ "text_level": 1,
1013
+ "bbox": [
1014
+ 174,
1015
+ 250,
1016
+ 318,
1017
+ 266
1018
+ ],
1019
+ "page_idx": 9
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "We proposed a novel forecasting approach using a DSF to optimize over the sample space of a generative model. Our method learns the DSF with a DPP-based diversity measure to generate a diverse set of trajectories. The diversity measure is a novel application of DPPs to optimize a set of items in continuous space. Experiments have shown that our approach can generate more diverse vehicle trajectories and human motions compared to state-of-the-art baseline forecasting approaches. ",
1024
+ "bbox": [
1025
+ 174,
1026
+ 284,
1027
+ 825,
1028
+ 354
1029
+ ],
1030
+ "page_idx": 9
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Acknowledgment. This project was sponsored in part by JST CREST (JPMJCR14E1), NSF NRI (1637927) and IARPA (D17PC00340). ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 361,
1038
+ 823,
1039
+ 388
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "REFERENCES ",
1046
+ "text_level": 1,
1047
+ "bbox": [
1048
+ 174,
1049
+ 412,
1050
+ 285,
1051
+ 428
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "A. Alahi, K. Goel, V. Ramanathan, A. Robicquet, L. Fei-Fei, and S. Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961–971, 2016. \nS. Azadi, J. Feng, and T. Darrell. Learning detection with diverse proposals. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7149–7157, 2017. \nL. Ballan, F. Castaldo, A. Alahi, F. Palmieri, and S. Savarese. Knowledge transfer for scene-specific motion prediction. In European Conference on Computer Vision, pages 697–713. Springer, 2016. \nD. Batra, P. Yadollahpour, A. Guzman-Rivera, and G. Shakhnarovich. Diverse m-best solutions in markov random fields. In European Conference on Computer Vision, pages 1–16. Springer, 2012. \nJ. Butepage, M. J. Black, D. Kragic, and H. Kjellstrom. Deep representation learning for human motion prediction and classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6158–6166, 2017. \nY.-W. Chao, J. Yang, B. Price, S. Cohen, and J. Deng. Forecasting human dynamics from static images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 548–556, 2017. \nM. Elfeki, C. Couprie, M. Riviere, and M. Elhoseiny. Gdpp: Learning diverse generations using determinantal point process. arXiv preprint arXiv:1812.00068, 2018. \nK. Fragkiadaki, S. Levine, P. Felsen, and J. Malik. Recurrent network models for human dynamics. In Proceedings of the IEEE International Conference on Computer Vision, pages 4346–4354, 2015. \nE. Galceran, A. G. Cunningham, R. M. Eustice, and E. Olson. Multipolicy decision-making for autonomous driving via changepoint-based behavior prediction. In Robotics: Science and Systems, volume 1, 2015. \nJ. Gillenwater, A. Kulesza, and B. Taskar. Near-optimal map inference for determinantal point processes. In Advances in Neural Information Processing Systems, pages 2735–2743, 2012. \nJ. A. Gillenwater, A. Kulesza, E. Fox, and B. Taskar. Expectation-maximization for learning determinantal point processes. In Advances in Neural Information Processing Systems, pages 3149–3157, 2014. \nB. Gong, W.-L. Chao, K. Grauman, and F. Sha. Diverse sequential subset selection for supervised video summarization. In Advances in Neural Information Processing Systems, pages 2069–2077, 2014. \nI. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. \nA. Gupta, J. Johnson, L. Fei-Fei, S. Savarese, and A. Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018. \nA. Guzman-Rivera, D. Batra, and P. Kohli. Multiple choice learning: Learning to produce multiple structured outputs. In Advances in Neural Information Processing Systems, pages 1799–1807, 2012. \nI. Habibie, D. Holden, J. Schwarz, J. Yearsley, and T. Komura. A recurrent variational autoencoder for human motion synthesis. BMVC17, 2017. \nW.-L. Hsiao and K. Grauman. Creating capsule wardrobes from fashion images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7161–7170, 2018. \nD.-A. Huang, M. Ma, W.-C. Ma, and K. M. Kitani. How do we use our hands? discovering a diverse set of common grasps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 666–675, 2015. \nC. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325–1339, 2013. \nA. Jain, A. Singh, H. S. Koppula, S. Soh, and A. Saxena. Recurrent neural networks for driver activity anticipation via sensory-fusion architecture. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pages 3118–3125. IEEE, 2016a. \nA. Jain, A. R. Zamir, S. Savarese, and A. Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5308–5317, 2016b. \nM. I. Jordan, Z. Ghahramani, T. S. Jaakkola, and L. K. Saul. An introduction to variational methods for graphical models. Machine learning, 37(2):183–233, 1999. \nA. Kanazawa, J. Zhang, P. Felsen, and J. Malik. Learning 3d human dynamics from video. arXiv preprint arXiv:1812.01601, 2018. \nD. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \nK. M. Kitani, B. D. Ziebart, J. A. Bagnell, and M. Hebert. Activity forecasting. In European Conference on Computer Vision, pages 201–214. Springer, 2012. \nA. Kulesza and B. Taskar. k-dpps: Fixed-size determinantal point processes. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pages 1193–1200, 2011. \nA. Kulesza, B. Taskar, et al. Determinantal point processes for machine learning. Foundations and Trend $\\textsuperscript { \\textregistered }$ in Machine Learning, 5(2–3):123–286, 2012. \nN. Lee, W. Choi, P. Vernaza, C. B. Choy, P. H. Torr, and M. Chandraker. Desire: Distant future prediction in dynamic scenes with interacting agents. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 336–345, 2017. \nS. Lee, S. P. S. Prakash, M. Cogswell, V. Ranjan, D. Crandall, and D. Batra. Stochastic multiple choice learning for training diverse deep ensembles. In Advances in Neural Information Processing Systems, pages 2119–2127, 2016. \nZ. Li, Y. Zhou, S. Xiao, C. He, Z. Huang, and H. Li. Auto-conditioned recurrent networks for extended complex human motion synthesis. arXiv preprint arXiv:1707.05363, 2017. \nW.-C. Ma, D.-A. Huang, N. Lee, and K. M. Kitani. Forecasting interactive dynamics of pedestrians with fictitious play. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 774–782, 2017. \nO. Macchi. The coincidence approach to stochastic point processes. Advances in Applied Probability, 7(1): 83–122, 1975. \nJ. Martinez, R. Hossain, J. Romero, and J. J. Little. A simple yet effective baseline for 3d human pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 2640–2649, 2017. \nG. L. Nemhauser, L. A. Wolsey, and M. L. Fisher. An analysis of approximations for maximizing submodular set functionsi. Mathematical programming, 14(1):265–294, 1978. \nD. Nilsson. An efficient algorithm for finding the m most probable configurationsin probabilistic expert systems. Statistics and computing, 8(2):159–173, 1998. \nG. Pavlakos, X. Zhou, K. G. Derpanis, and K. Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7025–7034, 2017. \nD. Pavllo, C. Feichtenhofer, D. Grangier, and M. Auli. 3d human pose estimation in video with temporal convolutions and semi-supervised training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7753–7762, 2019. \nN. Rhinehart, K. M. Kitani, and P. Vernaza. R2p2: A reparameterized pushforward policy for diverse, precise generative path forecasting. In Proceedings of the European Conference on Computer Vision (ECCV), pages 772–788, 2018. \nN. Rhinehart, R. McAllister, K. Kitani, and S. Levine. Precog: Prediction conditioned on goals in visual multi-agent settings. arXiv preprint arXiv:1905.01296, 2019. \nA. Robicquet, A. Sadeghian, A. Alahi, and S. Savarese. Learning social etiquette: Human trajectory understanding in crowded scenes. In European conference on computer vision, pages 549–565. Springer, 2016. \nB. Seroussi and J.-L. Golmard. An algorithm directly finding the k most probable configurations in bayesian networks. International Journal of Approximate Reasoning, 11(3):205–233, 1994. \nH. Soo Park, J.-J. Hwang, Y. Niu, and J. Shi. Egocentric future localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4697–4705, 2016. \nJ. Walker, C. Doersch, A. Gupta, and M. Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision, pages 835–851. Springer, 2016. \nD. Xie, S. Todorovic, and S.-C. Zhu. Inferring ”dark matter” and ”dark energy” from videos. 2013 IEEE International Conference on Computer Vision, pages 2224–2231, 2013. \nT. Yagi, K. Mangalam, R. Yonetani, and Y. Sato. Future person localization in first-person videos. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \nX. Yan, A. Rastogi, R. Villegas, K. Sunkavalli, E. Shechtman, S. Hadap, E. Yumer, and H. Lee. Mt-vae: Learning motion transformations to generate multimodal human dynamics. In Proceedings of the European Conference on Computer Vision (ECCV), pages 265–281, 2018. \nY. Yuan and K. Kitani. Ego-pose estimation and forecasting as real-time pd control. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 10082–10092, 2019. ",
1058
+ "bbox": [
1059
+ 171,
1060
+ 433,
1061
+ 826,
1062
+ 925
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "",
1069
+ "bbox": [
1070
+ 171,
1071
+ 112,
1072
+ 828,
1073
+ 904
1074
+ ],
1075
+ "page_idx": 10
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "",
1080
+ "bbox": [
1081
+ 173,
1082
+ 104,
1083
+ 826,
1084
+ 223
1085
+ ],
1086
+ "page_idx": 11
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "A ALGORITHMS ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 176,
1094
+ 250,
1095
+ 325,
1096
+ 265
1097
+ ],
1098
+ "page_idx": 11
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Algorithm 2 Training the cVAE ",
1103
+ "text_level": 1,
1104
+ "bbox": [
1105
+ 174,
1106
+ 286,
1107
+ 388,
1108
+ 301
1109
+ ],
1110
+ "page_idx": 11
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "1: Input: Training data $\\{ \\mathbf { x } ^ { ( i ) } , \\boldsymbol { \\psi } ^ { ( i ) } \\} _ { i = 1 } ^ { M }$ \n2: Output: cVAE encoder network $f _ { \\phi } ( { \\mathbf { x } } , \\psi )$ and decoder network $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n3: Initialize $\\phi$ and $\\theta$ randomly \n4: while not converged do \n5: for each $( \\mathbf { x } ^ { ( i ) } , \\psi ^ { ( i ) } )$ do \n6: Compute parameters $( \\mu , \\sigma )$ of the posterior distribution $q _ { \\phi } ( { \\bf z } | { \\bf x } , \\psi )$ using $f _ { \\phi } ( \\mathbf { x } , \\psi )$ \n7: Sample $V$ Gaussian noises $\\{ \\epsilon _ { 1 } , \\ldots , \\epsilon _ { V } \\}$ from $\\mathcal { N } ( \\mathbf { 0 } , \\mathbf { I } )$ \n8: Transform noises to latent samples from $q _ { \\phi } ( { \\bf z } | { \\bf x } , \\psi )$ : $\\mathbf { z } _ { v } = \\pmb { \\mu } + \\pmb { \\sigma } \\odot \\pmb { \\epsilon } _ { v }$ \n9: Decode latent samples into reconstructed trajectories $\\big \\{ \\tilde { \\mathbf { x } } _ { 1 } , \\dots , \\tilde { \\mathbf { x } } _ { V } \\big \\}$ using $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n10: Calculate the cVAE loss $\\mathcal { L } _ { c v a e }$ according to Eq. 6 \n11: Update $\\phi$ and $\\theta$ with $\\nabla _ { \\phi } \\mathcal { L } _ { c v a e }$ and $\\nabla _ { \\theta } \\mathcal { L } _ { c v a e }$ \n12: end for \n13: end while ",
1115
+ "bbox": [
1116
+ 178,
1117
+ 304,
1118
+ 800,
1119
+ 491
1120
+ ],
1121
+ "page_idx": 11
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Algorithm 3 Inference with the DSF $S _ { \\gamma } ( \\psi )$ ",
1126
+ "bbox": [
1127
+ 176,
1128
+ 515,
1129
+ 464,
1130
+ 530
1131
+ ],
1132
+ "page_idx": 11
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "1: Input: Context $\\psi$ , DSF $S _ { \\gamma } ( \\psi )$ , cVAE decoder network $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n2: Output: Forecasted trajectory set $Y _ { f }$ \n3: Generate latent codes $\\mathcal { Z } = \\{ \\mathbf { z } _ { 1 } , \\ldots , \\mathbf { z } _ { N } \\}$ with the DSF $S _ { \\gamma } ( \\psi )$ \n4: Generate the trajectory ground set $\\mathcal { Y } = \\{ \\mathbf { x } _ { 1 } , \\dotsc , \\mathbf { x } _ { N } \\}$ with the decoder $g _ { \\boldsymbol { \\theta } } ( \\mathbf { z } , \\boldsymbol { \\psi } )$ \n5: Compute the DPP kernel $\\mathbf { L } = \\mathrm { D i a g } ( \\mathbf { r } ) \\cdot \\mathbf { S } \\cdot \\mathrm { D i a g } ( \\mathbf { r } )$ \n6: $Y _ { f } \\gets \\emptyset , U \\gets y$ \n7: while $U$ is not empty do \n8: $\\mathbf { x } ^ { * } \\arg \\operatorname* { m a x } _ { \\mathbf { x } \\in U }$ $\\log \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y _ { f } \\cup \\{ \\mathbf { x } \\} } \\right)$ \n9: $\\mathbf { | } \\mathbf { f } \\log \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y _ { f } \\cup \\{ \\mathbf { x } ^ { * } \\} } \\right) - \\log \\operatorname* { d e t } \\left( \\mathbf { L } _ { Y _ { f } } \\right) < 0$ then \n10: break \n11: end if \n12: $\\begin{array} { l } { Y _ { f } Y _ { f } \\cup \\{ \\mathbf { x } ^ { * } \\} } \\\\ { U U \\setminus \\{ \\mathbf { x } ^ { * } \\} } \\end{array}$ \n13: \n14: end while ",
1137
+ "bbox": [
1138
+ 179,
1139
+ 534,
1140
+ 732,
1141
+ 732
1142
+ ],
1143
+ "page_idx": 11
1144
+ },
1145
+ {
1146
+ "type": "image",
1147
+ "img_path": "images/32e613102435caf57bf44ee931dab86ab62337b0e3a87d0e948258d656b47358.jpg",
1148
+ "image_caption": [
1149
+ "Figure 6: Network architectures for synthetic data and human motion. Top: for synthetic data, we use a CNN to process the obstacle map f and directly flatten trajectories $\\mathbf { x }$ and $\\mathbf { h }$ into vectors. The reconstructed trajectory $\\tilde { \\bf x }$ is decoded with an MLP. Bottom: for human motion, we use Bi-LSTMs to extract temporal features for $\\mathbf { x }$ and $\\mathbf { h }$ and decode the reconstructed trajectory $\\tilde { \\bf x }$ with a forward LSTM. "
1150
+ ],
1151
+ "image_footnote": [],
1152
+ "bbox": [
1153
+ 186,
1154
+ 136,
1155
+ 815,
1156
+ 463
1157
+ ],
1158
+ "page_idx": 12
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "B.1 NETWORK ARCHITECTURES ",
1163
+ "text_level": 1,
1164
+ "bbox": [
1165
+ 176,
1166
+ 585,
1167
+ 413,
1168
+ 599
1169
+ ],
1170
+ "page_idx": 12
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Synthetic data. Fig. 6 (Top) shows the network architecture for synthetic data. The number of latent dimensions is 2. By default, we use ReLU activation for all networks. The future trajectory $\\mathbf { x } \\in \\mathbb { R } ^ { 3 \\times 2 }$ consists of 3 future positions of the vehicle. The context $\\psi$ contains past trajectories $\\textbf { h } \\in \\mathbb { R } ^ { 2 \\times 2 }$ of 2 time steps and a obstacle map $\\textbf { f } \\in \\{ 0 , 1 \\} ^ { 2 8 \\times 2 8 }$ spanning a $4 \\times 4$ area around the current position of the vehicle (the road width is 2). For the encoder, we use a convolutional neural network (CNN) with three 32-channel convolutional layers to process f. The first two layers have kernel size 4 and stride 2 while the last layer has kernel size 6 and stride 1. The obtained CNN features are concatenated with flattened $\\mathbf { x }$ and $\\mathbf { h }$ into a unified feature, which is feed into a multilayer perceptron (MLP). The MLP has one 128-dim hidden layer and two heads outputing the mean $\\pmb { \\mu }$ and variance $\\sigma$ of the latent distribution. For the decoder, we concatenate the CNN feature from f with the latent code $\\textbf { z } \\in \\mathbb { R } ^ { 2 }$ and flattened $\\mathbf { h }$ into a unified feature. The feature is passed through an MLP with one 128-dim hidden layer which outputs the reconstructed future trajectory $\\tilde { \\mathbf { x } } \\in \\breve { \\mathbb { R } } ^ { 3 \\times 2 }$ . For the diversity sampler function (DSF), we concatenate the CNN feature from f with the flattened h and pass it through an MLP with one 128-dim hidden layer to obtain a set of latent codes $\\left\\{ \\mathbf { z } _ { 1 } , \\ldots , \\mathbf { z } _ { N } \\right\\}$ which are represented by a vector of length $2 N$ . ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 611,
1178
+ 825,
1179
+ 819
1180
+ ],
1181
+ "page_idx": 12
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Human motion. Fig. 6 (Bottom) shows the network architecture for synthetic data. The number of latent dimensions is 8. The future trajectory $\\mathbf { x } \\in \\mathbb { R } ^ { 3 0 \\times 5 9 }$ consists of future poses of 30 time steps (1s). The context $\\psi$ contains past poses $\\mathbf { h } \\in \\mathbb { R } ^ { 3 \\times 5 9 }$ of 3 time steps (0.1s). Each pose consists of 59 joint angles. For the encoder, we use two 128-dim bidirectional LSTMs (Bi-LSTMs) and mean pooling to obtain the temporal features for $\\mathbf { x }$ and $\\mathbf { h }$ . We then concatenate the temporal features into a unified feature and feed it into an MLP with two hidden layers (300, 200) and two heads to obtain the mean $\\pmb { \\mu }$ and variance $\\sigma$ of the latent distribution. For the decoder, we reuse the Bi-LSTM of the encoder for the context h and a 128-dim forward LSTM to decode the future trajectory $\\tilde { \\bf x }$ . At each time step $t$ , the forward LSTM takes as input the previous pose $\\tilde { \\mathbf { x } } ^ { t - 1 }$ $\\mathbf { h } ^ { H }$ for $t = 0$ ), the latent code $\\mathbf { z } \\in \\mathbb { R } ^ { 8 }$ and the temporal features from h, and outputs a 128-dim feature. The feature is then passed through an MLP with two hidden layers (300, 200) to generate the reconstructed pose $\\tilde { \\mathbf { x } } ^ { t }$ . For the DSF, we use a different 128-dim Bi-LSTM to obtain the temporal feature for $\\mathbf { h }$ , which is feed into an MLP with a 128-dim hidden layer to produce a set of latent codes $\\left\\{ \\mathbf { z } _ { 1 } , \\ldots , \\mathbf { z } _ { N } \\right\\}$ which are represented by a vector of length $8 N$ . ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 827,
1189
+ 825,
1190
+ 924
1191
+ ],
1192
+ "page_idx": 12
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "",
1197
+ "bbox": [
1198
+ 174,
1199
+ 103,
1200
+ 825,
1201
+ 202
1202
+ ],
1203
+ "page_idx": 13
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "B.2 TRAINING AND EVALUATION ",
1208
+ "text_level": 1,
1209
+ "bbox": [
1210
+ 176,
1211
+ 218,
1212
+ 418,
1213
+ 232
1214
+ ],
1215
+ "page_idx": 13
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "When training the cVAE model using Eq. 7, we take $V = 1$ sample from the posterior $q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } , \\psi )$ . The weighting factor $\\beta$ for the KL term is set to 0.1 for synthetic data and 1e-4 for human motion. We use Adam (Kingma and Ba, 2014) to jointly optimize the encoder and decoder. The learning rate is set to 1e-4 and we use a mini batch size of 32 for synthetic data. We optimize the model for 500 epochs for synthetic data and 100 epochs for human motion. ",
1220
+ "bbox": [
1221
+ 174,
1222
+ 243,
1223
+ 825,
1224
+ 314
1225
+ ],
1226
+ "page_idx": 13
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "When training the DSF, the scale factor $k$ for the similarity matrix S is set to 1 for synthetic data and 1e-2 for human motions. For both synthetic data and human motions, we use Adam with learning rate 1e-4 to optimize the DSF for 20 epochs. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 320,
1234
+ 825,
1235
+ 363
1236
+ ],
1237
+ "page_idx": 13
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Recall that in the metrics section (Sec. 5.1), we need the grouping threshold $\\varepsilon$ to build the ground truth future trajectory set $\\mathcal { X } ^ { ( i ) } = \\{ \\mathbf { x } ^ { ( j ) } \\vert \\Vert \\psi ^ { ( j ) } - \\psi ^ { ( i ) } \\Vert \\leq \\varepsilon$ , $j = 1 , \\dots , M \\}$ . For synthetic data, $\\varepsilon$ is set to 0.1 and we only use past trajectories $\\mathbf { h }$ to compute the distance between contexts. For human motion, $\\varepsilon$ is set to 0.5. ",
1242
+ "bbox": [
1243
+ 174,
1244
+ 369,
1245
+ 825,
1246
+ 426
1247
+ ],
1248
+ "page_idx": 13
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "B.3 IMPLEMENTATION DETAILS FOR EXPERIMENTS ON HUMAN3.6M ",
1253
+ "bbox": [
1254
+ 176,
1255
+ 444,
1256
+ 668,
1257
+ 458
1258
+ ],
1259
+ "page_idx": 13
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Following previous work (Martinez et al., 2017; Pavlakos et al., 2017; Pavllo et al., 2019), we convert the motion sequences in the dataset into sequences of 3D joint positions, and adopt a 17-joint skeleton. We train on five subjects (S1, S5, S6, S7, S8), and test on two subjects (S9 and S11). ",
1264
+ "bbox": [
1265
+ 174,
1266
+ 469,
1267
+ 825,
1268
+ 512
1269
+ ],
1270
+ "page_idx": 13
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "We use the same network architectures (Fig.6 (Bottom)) in this experiment as the one used in the human motion forecasting experiment above. The number of latent dimensions is 128. When training the cVAE model, the weighting factor $\\beta$ is set to 0.1. We sample 5000 training examples every epoch and optimize the cVAE for 500 epochs using Adam and a learning rate of 1e-4. We set the batch size to 64 for the optimization. ",
1275
+ "bbox": [
1276
+ 174,
1277
+ 518,
1278
+ 825,
1279
+ 589
1280
+ ],
1281
+ "page_idx": 13
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "The scale factor $k$ for the similarity matrix S of the DPP kernel is set to 5. When learning the DSF, we use a batch size of 64 and sample 1000 training examples every epoch and optimize the DSF for 20 epochs using Adam and a learning rate of 1e-3. ",
1286
+ "bbox": [
1287
+ 174,
1288
+ 595,
1289
+ 825,
1290
+ 638
1291
+ ],
1292
+ "page_idx": 13
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "When computing the metrics, we set the grouping threshold $\\varepsilon$ to 0.1. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 645,
1300
+ 622,
1301
+ 660
1302
+ ],
1303
+ "page_idx": 13
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "C ADDITIONAL VISUALIZATION ",
1308
+ "text_level": 1,
1309
+ "bbox": [
1310
+ 176,
1311
+ 102,
1312
+ 457,
1313
+ 118
1314
+ ],
1315
+ "page_idx": 14
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "We also show additional qualitative results for human motion forecasting in Fig. 7. The quality and diversity of the forecasted motions are best seen in our video2. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 133,
1323
+ 823,
1324
+ 161
1325
+ ],
1326
+ "page_idx": 14
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "The final pose of 10 forecasted motions ",
1331
+ "text_level": 1,
1332
+ "bbox": [
1333
+ 343,
1334
+ 175,
1335
+ 705,
1336
+ 193
1337
+ ],
1338
+ "page_idx": 14
1339
+ },
1340
+ {
1341
+ "type": "image",
1342
+ "img_path": "images/f3e399ae3bc56208ba1dccca639da93a1d6e9a7fe8064fe2b76e19f24f16ec80.jpg",
1343
+ "image_caption": [
1344
+ "Figure 7: Additional visualization for human motion forecasting. The left shows the starting pose, and on the right we show for each method the final pose of 10 forecasted motion samples. "
1345
+ ],
1346
+ "image_footnote": [],
1347
+ "bbox": [
1348
+ 187,
1349
+ 189,
1350
+ 803,
1351
+ 851
1352
+ ],
1353
+ "page_idx": 14
1354
+ }
1355
+ ]
parse/train/ryxnY3NYPS/ryxnY3NYPS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryxnY3NYPS/ryxnY3NYPS_model.json ADDED
The diff for this file is too large to render. See raw diff