ZHANGYUXUAN-zR commited on
Commit
dffd8c0
Β·
verified Β·
1 Parent(s): 0081188

Add files using upload-large-folder tool

Browse files
parse/train/By4HsfWAZ/By4HsfWAZ.md ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEP LEARNING FOR PHYSICAL PROCESSES: INCORPORATING PRIOR SCIENTIFIC KNOWLEDGE
2
+
3
+ Emmanuel de Bezenac Β΄ βˆ—, Arthur Pajot βˆ—, Patrick Gallinari emmanuel.de-bezenac, arthur.pajot, patrick.gallinari @lip6.fr Sorbonne Universites, UMR 7606, LIP6, F-75005 Paris, France Β΄
4
+
5
+ # ABSTRACT
6
+
7
+ We consider the use of Deep Learning methods for modeling complex phenomena like those occurring in natural physical processes. With the large amount of data gathered on these phenomena the data intensive paradigm could begin to challenge more traditional approaches elaborated over the years in fields like maths or physics. However, despite considerable successes in a variety of application domains, the machine learning field is not yet ready to handle the level of complexity required by such problems. Using an example application, namely Sea Surface Temperature Prediction, we show how general background knowledge gained from the physics could be used as a guideline for designing efficient Deep Learning models. In order to motivate the approach and to assess its generality we demonstrate a formal link between the solution of a class of differential equations underlying a large family of physical phenomena and the proposed model. Experiments and comparison with series of baselines including a state of the art numerical approach is then provided.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ A physical process is a sustained phenomenon marked by gradual changes through a series of states occurring in the physical world. Physicists and environmental scientists attempt to model these processes in a principled way through analytic descriptions of the scientist’s prior knowledge of the underlying processes. Conservation laws, physical principles or phenomenological behaviors are generally formalized using differential equations. This physical paradigm has been, and still is the main framework for modeling complex natural phenomena like e.g. those involved in climate. With the availability of very large datasets captured via different types of sensors, this physical modeling paradigm is being challenged by the statistical Machine Learning (ML) paradigm, which offers a prior-agnostic approach. However, despite impressive successes in a variety of domains as demonstrated by the deployment of Deep Learning methods in fields such as vision, language, speech, etc, the statistical approach is not yet ready to challenge the physical paradigm for modeling complex natural phenomena, or at least it has not demonstrated how to. This is a new challenge for this field and an emerging research direction in the ML community. We believe that knowledge and techniques accumulated for modeling physical processes in well developed fields such as maths or physics could be useful as a guideline to design efficient learning systems and conversely, that the ML paradigm could open new directions for modeling such complex phenomena. In this paper we then raise two issues: 1) are modern ML techniques ready to be used to model complex physical phenomena, and 2) how general knowledge gained from the physical modeling paradigm could help designing efficient ML models.
12
+
13
+ In this work, we tackle these questions by considering a specific physical modeling problem: forecasting sea surface temperature (SST). SST plays a significant role in analyzing and assessing the dynamics of weather and other biological systems. Accurately modeling and predicting such dynamics is critical in various applications such as weather forecasting, or planning of coastal activities. Since 1982, weather satellites have made huge quantities of very high resolution SST data available Bernstein (1982). Standard physical methods for forecasting SST use coupled ocean-atmosphere prediction systems, based on the Navier Stokes equations. These models rely on multiple physical hypotheses and do not optimally exploit the information available in the data. On the other hand, despite the availability of large amounts of data, direct applications of ML methods do not lead to competitive state of the art results, as will be seen in section 4.
14
+
15
+ We use SST as a typical and representative problem of intermediate complexity. Our goal is not to offer one more solution to this problem, but to use it as an illustration for advancing on the challenges mentioned above. The way we handle this problem is general enough to be transfered to a more general class of transport problems.
16
+
17
+ We propose a Deep Neural Network (NN) model, inspired from general physical motivations which offers a new approach for solving this family of problems. We first motivate our approach by introducing in section 2 the solution of a general class of partial differential equations (PDE) which is a core component of a large family of transport and propagation phenomena in physics. This general solution is used as a guideline for introducing a Deep Learning architecture for SST prediction which is described in section 3. Experiments and comparison with a series of baselines is introduced in section 4. A review of related work is finally presented in section 5.
18
+
19
+ The main contributions of this work are: 1) an example showing how to incorporate general physical background for designing a NN aimed at modeling a relatively complex prediction task. We believe the approach to be general enough to be used for a family of transport problems obeying general advection-diffusion principles. 2) formal links between our model’s prediction and the solution of a general advection diffusion PDE 3) an unsupervised model for estimating motion fields, given a sequence of images. 4) a proof, on a relatively complex physical modeling problem, that full data intensive approaches based on deep architectures can be competitive with state of the art dedicated numerical methods.
20
+
21
+ # 2 PHYSICAL MOTIVATION
22
+
23
+ Forecasting consists in predicting future temperature maps using past records. Temperatures are acquired via satellite imagery. If we focus on a specific area, we can formulate the problem as prediction of future temperature images of this area using past images. The classical approach to forecasting SST consists in using numerical models representing prior knowledge on the conservation laws and physical principles, which take the form of PDEs. These models are then coupled with SST data using assimilation techniques in order to adjust to initial conditions. It is then integrated forward in time to predict SST evolution. For the sea surface, temperature variation is related to a fluid transport problem. In fluids, transport occurs through the combination of two principles: advection and diffusion. During advection, a fluid transports some conserved quantity $I$ (the temperature for SST) or material via bulk motion, i.e.for small variations $\Delta x , \Delta t$ , conservation is expressed as:
24
+
25
+ $$
26
+ I ( x , t ) = I ( x + \Delta x , t + \Delta t )
27
+ $$
28
+
29
+ applying a first order approximation of the right hand side and moving the resulting terms to the left hand side of equation 1, we obtain the advection equation, known also as the Brightness Constancy Constraint Equation (BCCE):
30
+
31
+ $$
32
+ \frac { \partial I } { \partial t } + ( w . \nabla ) I = 0
33
+ $$
34
+
35
+ where $\nabla$ denotes the gradient operator, and $w$ the motion vector $\textstyle { \frac { \Delta x } { \Delta t } }$ . This equation describes the temporal evolution of quantity $I$ for displacement $w$ . Note that this equation is also the basis for many variational methods for Optical Flow. To retrieve the motion, numerical schemes are applied, and the resulting system of equations, along with a an additional constraint on $w$ is solved for $w$ . This motion can then be used to forecast the future value of $I$ .
36
+
37
+ $$
38
+ \frac { \partial I } { \partial t } + ( w . \nabla ) I = D \nabla ^ { 2 } I
39
+ $$
40
+
41
+ $\nabla ^ { 2 }$ denotes the Laplacian operator and $D$ the diffusion coefficient. Note that when $D \to 0$ , we recover the advection equation 2.
42
+
43
+ This equation describes a large family of physical processes (e.g. fluid dynamics, heat conduction, wind dynamics, etc). Let us now state a result, characterizing the general solutions of equation 3.
44
+
45
+ Theorem 1. 1 For any initial condition $I _ { 0 } \in L ^ { 1 } ( \mathbb { R } ^ { 2 } )$ with $I _ { 0 } ( \pm \infty ) = 0$ , there exists a unique global solution $I ( x , t )$ to the advection-diffusion equation 3:
46
+
47
+ $$
48
+ I ( x , t ) = \int _ { \mathbb { R } ^ { 2 } } k ( x - w , y ) I _ { 0 } ( y ) d y
49
+ $$
50
+
51
+ where $\begin{array} { r } { k ( u , v ) = \frac { 1 } { 4 \pi D t } e ^ { - \frac { 1 } { 4 D t } \left. u - v \right. ^ { 2 } } } \end{array}$ is a radial basis function kernel, or alternatively, a 2 dimensional Gaussian probability density with mean $u$ and variance $2 D t$ .
52
+
53
+ Equation 4 provides a principled way to calculate $I ( x , t )$ for any time $t$ using the initial condition $I _ { 0 }$ , provided the motion $w$ and the diffusion coefficient $D$ are known. It states that quantity $I ( x , t )$ can be computed from the initial condition $I _ { 0 }$ via a convolution with a Gaussian probability density function. In other words, if $I$ was used as a model for the evolution of the SST and the surface’s underlying advecting mechanisms were known, future surface temperatures could be predicted from previous ones. Unfortunately neither the initial conditions, the motion vector nor the diffusion coefficient are known. They have to be estimated from the data. Inspired from the general form of solution 4, we propose a ML method, expressed as a Deep Learning architecture for predicting SST. This model will learn to predict a motion field analog to the $w$ in equation 4, which will be used to predict future images.
54
+
55
+ # 3 MODEL
56
+
57
+ ![](images/723d416121047ed73a5ae5137105467c9d588884d82dff94268dd9f826d12a3b.jpg)
58
+ Figure 1: Motion is estimated from the input images $( I _ { t - k - 1 : t } )$ with a convolutional neural network (top left CDNN component). A warping scheme then displaces the last input image along this motion estimate to produce the future image. The error signal is calculated using the target future image $I _ { t + 1 }$ , and is backprogated through the warping scheme to correct the CDNN. To produce multiple time-step forecasts, the predicted image is fed back in the CDNN in an autoregressive manner.
59
+
60
+ The model consists of two main components, as illustrated in Figure 1. One predicts the motion field from a sequence of past input images, this is convolutional-deconvolutional (CDNN) module on the top of figure 1, and the other warps the last input image using the motion field from the first component, in order to produce an image forecast. The entire system is trained in an end-to-end fashion, using only the supervision from the target SST image. By doing so, we are able to produce an interpretable latent state which corresponds in our problem to the velocity field advecting the temperatures.
61
+
62
+ Let us first introduce some notations. Each SST image $I _ { t }$ is acquired on a bounded rectangle of $\mathbb { R } ^ { 2 }$ , named $\Omega$ . We denote $I _ { t } ( x )$ and $w _ { t } ( x )$ the sea surface temperature and the two-dimensional motion vector at time $t \in \mathbb { R }$ at position $x \in \Omega$ . $I _ { t } : \Omega \to \mathbb { R }$ and $\dot { w } _ { t } : \Omega \to \mathbb { R } ^ { 2 }$ represent the temperatures and the motion vector field at time $t$ defined on $\Omega$ . When time $t$ and position $x$ are available from the context, we will drop the subscript $t$ from $w _ { t } ( x )$ and $I _ { t } ( x )$ , along with $x$ for clarity. Given a sequence of $k$ consecutive SST images $\{ I _ { t - k - 1 } , . . . , I _ { t } \}$ (also denoted as $I _ { t - k - 1 : t } )$ , our goal is to predict the next image $I _ { t + 1 }$ .
63
+
64
+ ![](images/fdfbc089060a5d4b341bb93d8bfc0394e30c6e4e3b5ae9494dd7e8d78b641924.jpg)
65
+ Figure 2: Architecture of the CDNN motion estimation component. For the estimated motion flow $\hat { w } _ { t }$ , colours correspond to the flow orientation and colour intensity to the flow intensity
66
+
67
+ As indicated in section 2, provided the underlying motion field is known, one can compute SST forecasts. Let us introduce how the motion field is estimated in our architecture. We are looking for a vector field $w$ which when applied to the geometric space $\Omega$ renders $I _ { t }$ close to $I _ { t + 1 }$ , i.e. $I _ { t + 1 } ( \bar { x } ) \simeq$ $I _ { t } ( x + w ( x ) )$ , $\forall x \in \Omega$ . If $I _ { t + 1 }$ were known, we could estimate $w$ , but $I _ { t + 1 }$ is precisely what we are looking for. Instead, we choose to use a convolutional-deconvolutional architecture to predict a motion vector for each pixel. As shown in figure 2, this network makes use of skip connections He et al. (2015), allowing fine grained information from the first layers to flow through in a more direct manner. We use a Batch Normalization layer between each convolution, and Leaky $R e L U$ (with parameter value set to 0.1) non-linearities between convolutions and transposed-convolutions. We used $k = 4$ concatenated images $I _ { t - k - 1 : t }$ as input for training. We have selected this architecture experimentally, testing different state-of-the-art convolution-deconvolution network architectures. Let $\hat { w } \in \mathbb { R } ^ { 2 \times \mathbf { \bar { W } } \times H }$ be the output of the network, where $W$ and $H$ are respectively the width and height of the images, and $\mathit { \Omega } ^ { , }$ corresponds to the two components of the flow at each point of the motion field.
68
+
69
+ Generally, and this is the case for our problem, we do not have a direct supervision on the motion vector field, since the target motion is usually not available. Using the warping scheme introduced below, we will nonetheless be able to (weakly) supervise $w$ , based on the discrepancy of the warped version of the $I _ { t }$ image and the target image $I _ { t + 1 }$ .
70
+
71
+ # 3.2 WARPING SCHEME
72
+
73
+ ![](images/f26b7c0fe8bb8e32a7af7bd237402c2fba74592354a184042a168128f6b08f8e.jpg)
74
+ Figure 3: Warping scheme. To calculate the pixel value for time $t + 1$ at position $x$ , we first compute its previous position at time $t$ , i.e. $x - w$ . We then center a Gaussian in that position in order to obtain a weight value for each pixel in $I _ { t }$ based on its distance with $x - w$ , and compute a weighted average of the pixel values of $I _ { t }$ . This weighted average will correspond to the new pixel value at $x$ in $I _ { t + 1 }$ .
75
+
76
+ Discretizing the solution of the advection-diffusion equation in section 2 by replacing the integral with a sum, and setting image $I _ { t }$ as the initial condition, we obtain a method to calculate the future image, based on the motion field estimate $\hat { w }$ . The latter is used as a warping scheme:
77
+
78
+ $$
79
+ \hat { I } _ { t + 1 } ( x ) = \sum _ { y \in \Omega } k ( x - \hat { w } ( x ) , y ) I _ { t } ( y )
80
+ $$
81
+
82
+ where $\begin{array} { r } { k ( x - \underset { . } { \hat { w } } , y ) = \underset { . } { \frac { 1 } { 4 \pi D \Delta t } } e ^ { - \frac { 1 } { 4 D \Delta t } \| x - \hat { w } - y \| ^ { 2 } } } \end{array}$ is a radial basis function kernel, as in equation 4, parameterized by the diffusion coefficient $D$ and the time step value $\Delta t$ between $t$ and $t + 1$ and $\hat { w }$ is the estimated value of the vector flow $w$ . To calculate the temperature for time $t + 1$ at position $x$ , we compute the scalar product between $k ( x - { \hat { w } } , . )$ , a Gaussian centered in $x - \hat { w }$ , and the previous image $I _ { t }$ . Simply put, it is a weighted average of the temperatures $I _ { t }$ , where the weight values are larger when the pixel’s positions that are closer to $x - \hat { w }$ . Informally, $x - \hat { w }$ corresponds to the pixel’s previous position at time $t$ . See figure 3.
83
+
84
+ As seen by the relation with the solution of the advection-diffusion equation, the proposed warping mechanism is then clearly adapted to the modeling of phenomena governed by the advectiondiffusion equation. SST forecasting is a particular case, but the proposed scheme can be used for any problems in which advection and diffusion are occurring. Moreover, this warping scheme is entirely differentiable, allowing backpropagation of the error signal to the motion fireld estimating module.
85
+
86
+ This warping mechanism has been inspired by the Spatial Transformer Network (STN) Jaderberg et al. (2015), originally designed to be incorporated as a layer in a convolutional neural network architecture in order to gain invariance under geometric transformations. Using the notations in Jaderberg et al. (2015), when the inverse geometric transformation $\mathcal { T } _ { \theta }$ of the grid generator step is set to $\mathcal { T } _ { \theta } ( x ) = x - \hat { w } ( x )$ , and the kernels $k ( . ; \Phi _ { x } )$ and $k ( . ; \Phi _ { y } )$ in the sampling step are radial basis function kernels, we recover our warping scheme. The latter can be seen as a specific case of the STN, without the localization step. This result theoretically grounds the use of the STN for Optical Flow in many recent articles Zhu et al. (2017), Yu et al. (2016), Patraucean et al. (2015), Finn et al. (2016): in equation 3, when $D \to 0$ , we recover the brightness constancy constraint equation, used in the latter.
87
+
88
+ For training, supervision is provided at the output of the warping module. It consists in minimizing the discrepancy between the warped image $\hat { I } _ { t + 1 }$ and the target image $I _ { t + 1 }$ . The loss is measured via a differentiable function and the gradient is back propagated through the warping function in order to adjust the parameters of the convolutional-deconvolutional module generating the vector field. This is detailed in the next section.
89
+
90
+ # 3.3 LOSS FUNCTION
91
+
92
+ At each iteration, the model aims at forecasting the next observation, given the previous ones. We evaluate the discrepancy between the warped image $\hat { I } _ { t + 1 }$ and the target image $I _ { t + 1 }$ using the Charbonnier penalty function $\rho ( x ) = ( x + \epsilon ) ^ { \frac { 1 } { \alpha } }$ , where $\epsilon$ and $\alpha$ are parameters to be set. Note that with $\epsilon = 0$ and $\alpha \stackrel { \cdot } { = } \frac { 1 } { 2 }$ , we recover the $\ell _ { 2 }$ loss. The Charbonnier penalty function is known to reduce the influence of outliers compared to an $l _ { 2 }$ norm. We have also tested the Laplacian pyramid loss Ling & Okada (2006), where we enforce convolutions of all deconvolutional layers to be close to down-sampled versions of the target image in the Charbonnier penalty sense, but we have observed an overall decrease in generalization performance.
93
+
94
+ The proposed NN model has been designed according to the intuition gained from general background knowledge of a physical phenomenon, here advection-diffusion equations. Additional prior knowledge – expressed as partial differential equations, or through constraints – can be easily incorporated in our model, by adding penalty terms in the loss function. As the displacement $w$ is explicitly part of our model, one strength of our model is its capacity to apply some regularization term directly on the motion field. In our experiments, we tested the influence of different terms: divergence $\nabla . w _ { t } ( x ) ^ { 2 }$ , magnitude $\| w _ { t } ( x ) \| ^ { 2 }$ and smoothness $\Vert \nabla w _ { t } ( x ) \Vert ^ { 2 }$ .
95
+
96
+ $$
97
+ L _ { t } = \sum _ { x \in \Omega } \rho ( \hat { I } _ { t + 1 } ( x ) - I _ { t + 1 } ( x ) ) + \lambda _ { \mathrm { d i v } } ( \nabla . w _ { t } ( x ) ) ^ { 2 } + \lambda _ { \mathrm { m a g n } } \left\| w _ { t } ( x ) \right\| ^ { 2 } + \lambda _ { \mathrm { g r a d } } \left\| \nabla w _ { t } ( x ) \right\| ^ { 2 }
98
+ $$
99
+
100
+ # 4 EXPERIMENTS
101
+
102
+ # 4.1 DATASET DESCRIPTION
103
+
104
+ Since 1982, high resolution SST data has been made available by the NOAA6 weather satellite, Bernstein (1982). Dealing directly with these data requires a lot of preprocessing (e.g. some regions are not available due to clouds, hindering temperature acquisition). In order to avoid such complications which are beyond the scope of this work, we used synthetic but realistic SST data of the Atlantic ocean generated by a sophisticated simulation engine: NEMO (Nucleus for European Modeling of the Ocean) engine 2, Madec (2008). NEMO is a state-of-the-art modelling framework of ocean related engines. It is a primitive equation model adapted to the regional and global ocean circulation problems. Historical data is accumulated in the model to generate a synthesized estimate of the states of the system using data analysis, a specific data assimilation scheme, which means that the data does follow the true temperatures. The resulting dataset is constituted of daily temperature acquisitions of 481 by 781 pixels, from 2006-12-28 to 2017-04-05 (3734 acquisitions).
105
+
106
+ We extract 64 by 64 pixel sized sub-regions as indicated in figure 4.1. We use data from years 2006 to 2015 for training and validation (94743 training examples), and years 2016 to 2017 for testing. We withhold $20 \%$ of the training data for validation, selected uniformly at random at the beginning of each experiment. For the tests we used sub-regions enumerated 17 to 20 in figure 4.1, where the interactions between hot and cold waters make the dynamics interesting to study. All the regions numbered in figure 4.1, from 2006 to 2015 where used for training 3. Each sequence of images used for training or for evaluation corresponds to a specific numbered sub-region. We make the simplifying hypothesis that the data in a single sub-region contains enough information to forecast the future of the sub-region. As the forecast is for a small temporal horizon we can assume that the influence from outside the region is small enough.
107
+
108
+ ![](images/855f62d169f130a18846bdb7f728e625abf257f5ee4968a7803f13618e9171a8.jpg)
109
+ Figure 4: Sub regions extracted for the dataset. Test regions are regions 17 to 20.
110
+
111
+ We normalize the daily SST acquisitions of each sub region using the mean and the standard deviation of all the SST data of the sub-region acquired on the same day of the year for all the years in the training set, i.e. the SST acquisition of sub-region 2 on date September 8th 2017 is standardized using the data of all the September 8th available in the dataset. This removes the seasonal component from SST data.
112
+
113
+ # 4.2 BASELINE COMPARISON
114
+
115
+ We compare our model with several baselines. Each model is evaluated with a mean square error metric, forecasting images on a horizon of 6 (we forecast from $I _ { t + 1 }$ to $I _ { t + 6 }$ and then average the MSE). The hyperparameters are tuned using the validation set. Neural network based models are run on a Titan $\mathrm { X p }$ GPU, and runtime is given for comparison purpose.
116
+
117
+ Concerning the constraints on the vector field $w$ (equation 6. the regularization coefficients selected via validation are $\lambda _ { \mathrm { d i v } } = 1$ , $\lambda _ { \mathrm { { m a g n } } } = - 0 . 0 3$ and $\lambda _ { \mathrm { g r a d } } = 0 . 4$ . The coefficient diffusion $D$ was set to 0.45 by cross validation. We also compare the results with the model without any regularization.
118
+
119
+ Our reference model for forecasting is BerΒ΄ eziat & Herlin (2015), a numerical assimilation model Β΄ which relies on data assimilation. In BerΒ΄ eziat & Herlin (2015), the ocean’s dynamics are modeled Β΄ using shallow water equations Vallis (2017) and the initial conditions, along with other terms, are estimated using assimilation techniques Tremolet (2006). This is a state of the art assimilation model Β΄ for predicting ocean dynamics, here SST.
120
+
121
+ The other baselines are 1) an autoregressive convolutional-deconvolutional NN (ACNN), with an architecture similar to our CDNN module, but trained to predict the future image directly, without explicitly representing the motion vector field. Each past observation is used as an input channel (the 4 input images used in the experiments are concatenated), and the output is used as new input for multi step forecasting, 2) a ConvLSTM model Shi et al. (2015), which uses convolutional transitions in the inner LSTM module, and 3) the model in Mathieu et al. (2015) which is a multi-scale ACNN trained as a Generative Adversial Network (GAN). We have used a non-official code for Mathieu et al. (2015), which is made available at https://github.com/dyelax/Adversarial_ Video_Generation. For BerΒ΄ eziat & Herlin (2015), the code has been provided by the authors Β΄ of the paper. We have implemented the ACNN and ConvLSTM models ourselves. The code for our models, along with these baselines will be made available.
122
+
123
+ # 4.3 QUANTITATIVE RESULTS
124
+
125
+ <table><tr><td>Model</td><td>Average Score (MSE)</td><td>Average Time</td></tr><tr><td>Numerical model BΓ©rΓ©ziat &amp; Herlin (2015)</td><td>1.99</td><td>4.8 s</td></tr><tr><td>ConvLSTM Shi et al. (2015)</td><td>5.76</td><td>0.018 s</td></tr><tr><td>ACNN</td><td>15.84</td><td>0.54 s</td></tr><tr><td>GAN Video Generation (Mathieu et al. (2015))</td><td>4.73</td><td>0.096 s</td></tr><tr><td>Proposed model with regularization</td><td>1.42</td><td>0.040 s</td></tr><tr><td>Proposed model without regularization</td><td>2.01</td><td>0.040 s</td></tr></table>
126
+
127
+ Table 1: Average score and average time on test data. Average score is calculated using the mean square error metric (MSE), time is in seconds. The regularization coefficients for our model have been set using a validation set with $\lambda _ { \mathrm { d i v } } = 1$ , $\lambda _ { \mathrm { { m a g n } } } = - 0 . 0 3$ and $\lambda _ { \mathrm { g r a d } } = 0 . 4$ .
128
+
129
+ Quantitatively, our model performs well. The MSE score is better than any of the baselines. The closest NN baseline is Mathieu et al. (2015) which regularizes a regression convolutiondeconvolution model with a GAN. The performance is however clearly below the proposed model and it does not allow to easily incorporate prior constraints inspired from the physics of the phenomenon. ACNN is a direct predictor of the image sequence, implemented via a CDNN module identical to the one used in our model. Its performance is poor. Clearly, a straightforward use of prediction models is not adapted to the complexity of the phenomenon. ConvLSTM performs better: as opposed to the ACNN, it seems to be able to capture a dynamic, although not very accurately. Overall, direct prediction models are not able to capture the complex underlying dynamics and they produce blurry sequences of images. The GAN explicitly forces the network output to eliminate the blurring effect and then makes it able to capture short term dynamics. The state of the art numerical model BerΒ΄ eziat & Herlin (2015), performs well but has a slighthly lower performance than our reg- Β΄ ularized model, although it incorporates more prior constraints. This shows that pure ML models, when conceived adequately and when trained with enough data, can be competitive with state of the art dedicated models. Regularizing the motion vector $w$ notably increases the performance w.r.t. to the unregularized model. The choice of the constraints (divergence, magnitude and smoothness) inspired here by physical background correspond to relevant priors on the dynamics of the model.
130
+
131
+ ![](images/0538e3fec59746d81f644731393a61c8431a5d123666afbf52804482ea01d9d5.jpg)
132
+ Figure 5: From top to bottom: target, our model prediction, our model flow, numerical assimilation model , ACNN, ConvLSTM. Data correspond to daily temperatures from January 17 to January 23, 2017
133
+
134
+ As for the running time, the proposed model is extremely fast, being just above the ConvLSTM model of Shi et al. (2015). The running time of BerΒ΄ eziat & Herlin (2015)’s model is not comparable Β΄ to the others. It was run on a CPU (no GPU code) when all the others were run on Titan $\mathrm { X p }$ GPU. However, an optimization procedure is required to estimate the motion field, and it is clearly slower than the straightforward NN predictions. Moreover, in order to prevent the numerical scheme from diverging, multiple intermediate forecasts are required.
135
+
136
+ Besides MSE, we need to analyze the prediction samples qualitatively. Figure 4.3 shows the predictions obtained by the different models. On the top row, the ground truth for a sequence of 4 temperature images corresponding to time $t .$ , $t + 1$ , $t + 3$ and $t + 6$ . The second row corresponds to our regularized model prediction at times $t + 1 , t + 3$ and $t + 6$ (time $t$ corresponds to the last input image, it is repeated on each row). The model seems to conserve temperatures. The prediction is close to the target for $t + 1 , t + 3$ and starts to move away at time $t + 6$ . The third row shows the motion flow estimated by the model. Each color in the flow images corresponds to a motion vector. There is clearly a strong evolving dynamic captured for this sequence. Row 4 is the numerical assimilation model of BerΒ΄ eziat & Herlin (2015). It also clearly captures some dynamics and shows Β΄ interesting patterns, but it tends to diverge when the prediction horizon increases. The ACNN model (row 5) rapidly produces blurry images; it does not preserve the temperatures and does not seem to capture any dynamics. On row 6 are plotted the predictions of the ConvLSTM model. Temperature is not preserved and although a dynamic is captured, it does not correspond to the target. Overall, the proposed model seems to forecast SST quite accurately, while retrieving a coherent motion vector field.
137
+
138
+ # 5 RELATED WORK
139
+
140
+ ML for Physical modeling Close to this work is the field of spatio-temporal statistics. In their reference book Cressie & Wikle (2015) also advocate the use of physical background knowledge to build statistical models. They show how the design of statistical models can be inspired from partial differential equations linked to an observed physical phenomenon. They mainly consider auto-regressive models within a hierarchical Bayesian framework. In Raissi et al. (2017), Archambeau et al. (2007) and Alvarez et al. (2011) the author use PDE-inspired gaussian process to model physical process. Even if the methods and the application are different, the motivation and arguments are similar to the ones developed here.
141
+
142
+ Another interesting research direction is the use of NNs for reducing the complexity of numerical simulation for physical processes. Generally, in these approaches statistical models are used in place of a computational demanding component of the numerical simulation process. For example in the domain of fluid dynamics, Tompson et al. (2017) and Ladicky et al. (2015) propose to use regressors Β΄ for simulating fluid and smoke animation. Ladicky et al. (2015) use a random forest to compute Β΄ particle location and Tompson et al. (2017) use a CNN to approximate part of a numerical PDE scheme. In these approaches, ML is only a component of a numerical simulation scheme whereas we aim at modeling the whole physical process via a Deep Learning approach. Farther to our objective, Rudy et al. (2017) make use of a sparse regression method for discovering the governing partial differential equation(s) of a given system by time series measurements in the spatial domain. Other works have suggested using neural networks for physical process forecast, such as Brajard et al. (2017).
143
+
144
+ Our work is also related to recent developments in computer vision, in the related but distinct fields of video prediction and motion estimation in videos. Our goal and the domain of application are clearly different from video modeling, but since our solution involves predicting a motion field and the next SST image, the solutions share some similarities. Motion estimation and video predictions by deep architectures have motivated a series of work over the last two years. We briefly review them below and outline the differences.
145
+
146
+ Optical Flow Optical flow consists in retrieving the apparent motion of objects, surfaces, or particles between two consecutive frames of a video. The extracted motion can be used in many areas such as object detection, object tracking, movement detection, robot navigation and visual odometry. In the vision community, this is considered as a problem by itself and several papers are dedicated to this topic. Classical methods rely on the brightness constancy constrain equation (BCCE) (equation 2), derived from the observation that surfaces usually persist over time and hence the intensity value of a small region remains the same despite its position change Sun et al. (2008). Since using BCCE directly leads to complicated optimizing issues, classic approaches – namely differential methods – approximate BCCE using a first order Taylor expansion and develop variational methods.
147
+
148
+ As an alternative to these methods, Deep Learning models have been recently proposed for estimating the optical flow between 2 images. Fischer et al. (2015) formulate optical flow as a supervised regression problem, using a CNN to predict motion. Ilg et al. (2016) build on this approach and propose to use an ensemble of these CNN architectures. They assess results on par with state of the art methods for optical flow, while maintaining a small computational overhead. The difficulty here is that these methods require a notable quantity of target data, i.e. optical flow images, while because of the complexity of manually annotating flow images, there are only a few small annotated collections available. Fischer et al. (2015) and Ilg et al. (2016) chose to pretrain their model on a synthetic dataset made of computer animations and their associated motion and show that this information transfers well to real videos. Yu et al. (2016) demonstrate that it is possible to predict the optical flow between two input images in an unsupervised way using a CNN and a Spatial Transformer Network. This is however not extensible for prediction as is done in our setting since this requires the two images $I _ { t }$ and $I _ { t + 1 }$ as input while $I _ { t + 1 }$ is not available at inference time for prediction.
149
+
150
+ # Video prediction
151
+
152
+ It is only very recently that video prediction emerged as a task in the Deep Learning community. For this task, people are generally interested at predicting accurately the displacement/ emergence/ disappearing of objects in the video. In our application, the goal is clearly different since we are interested into modeling the whole dynamics behind image changes and not at following moving objects. Let us first introduce some methods that perform prediction by computing optical flow or a similar transformation. Both Patraucean et al. (2015) and Finn et al. (2016) use some form of motion flow estimation. For next frame prediction Patraucean et al. (2015) introduce a STN module at the hidden layer of a LSTM in order do estimate a motion field in this latent space. The resulting image is then decoded in the original image space for prediction. This approach clearly does not allow introducing prior knowledge on the field vector as this has been done in our work. Finn et al. (2016) learn affine transformations on image parts in order to predict object displacement and Van Amersfoort et al. (2017) proposed a similar model.
153
+
154
+ Let us now consider models that directly attempt to predict the next frame without estimating a motion field. As shown in the experimental section, plain application of autoregressive models produces blurred images. Mathieu et al. (2015), one of our baseline proposed to use different loss functions and a GAN regularization of a CDNN predictor which led to sharper and higher quality predictions. Significant improvements have been obtained with the Video Pixel Network of Kalchbrenner et al. (2016), which is a sophisticated architecture composed of resolution preserving CNN encoders, LSTM and PixelCNN decoders which form a conditional Spatio-temporal video autoencoder with differentiable memory. This model is probably state of the art today for video prediction, They reach a high accuracy on moving MNIST and good performance on a robot video dataset. A drawback is the complexity of the model and the number of parameters: they are using respectively $2 0 \bf { M }$ and $1 \textbf { M }$ frames on these two datasets. We did not test this model since up to our knowledge no code was available.
155
+
156
+ # 6 CONCLUSION AND FUTURE WORK
157
+
158
+ The evolution in time of the proposed model is deterministic. Predicting future observations should also deal with the inherent ambiguity and lack of information for the prediction task. A natural future direction would be to incorporate uncertainty in the model’s evolution in the proposed framework. We can extend the proposed model by incorporating a stochastic latent variable in the flow field generation process. A promising direction is the development of generative models which has become popular in Deep Learning, leading to different families of innovative models. For example, the Stochastic Gradient Variational Bayes algorithm (SGVB) Kingma & Welling (2014) provides a framework for learning stochastic latent variables with deep neural networks, and has recently been used by some authors to model time series Karl et al. (2016); Chung et al. (2015); Krishnan et al. (2015). A recent work where both spatial and temporal information are considered is Walker et al. (2016) who model pixel trajectories in a video. As a follow up of our work, we plan to consider such extensions in the future.
159
+
160
+ The data intensive paradigm offers alternative directions to the classical physical approaches for modeling complex natural processes. Our belief is that cross fertilization of both paradigms is essential for pushing further the frontier of complex data modeling. By using as an example application a relatively complex problem concerning ocean dynamics, we proposed a principled way to design Deep Learning models using inspiration from the physics. The proposed approach can be easily generalized to a class of problems for which the underlying dynamics follow advection-diffusion principles. We have compared the proposed approach to a series of baselines. It is able to reach performance comparable to a state of the art numerical model and clearly outperform alternative NN models used as baselines.
161
+
162
+ # ACKNOWLEDGMENTS
163
+
164
+ This work was partially funded by ANR project LOCUST - ANR-15-CE23-0027 and by CLEAR - Center for LEArning & data Retrieval - joint lab. With Thales (www.thalesgroup.com).
165
+
166
+ # REFERENCES
167
+
168
+ Mauricio A Alvarez, David Luengo, and Neil D Lawrence. Linear latent force models using gaussian processes. 2011.
169
+
170
+ Cedric Archambeau, Dan Cornford, Manfred Opper, and John Shawe-Taylor. Gaussian process approximations of stochastic differential equations. In Gaussian Processes in Practice, pp. 1–16, 2007.
171
+
172
+ Dominique BerΒ΄ eziat and Isabelle Herlin. Β΄ Coupling Dynamic Equations and Satellite Images for Modelling Ocean Surface Circulation, pp. 191–205. Springer International Publishing, Cham, 2015. ISBN 978-3-319-25117-2. doi: 10.1007/978-3-319-25117-2 12. URL https://doi. org/10.1007/978-3-319-25117-2_12.
173
+
174
+ R. L. Bernstein. Sea surface temperature estimation using the noaa 6 satellite advanced very high resolution radiometer. Journal of Geophysical Research: Oceans, 87(C12):9455–9465, 1982. ISSN 2156-2202. doi: 10.1029/JC087iC12p09455. URL http://dx.doi.org/10.1029/ JC087iC12p09455.
175
+
176
+ Julien Brajard, Anastase Alexandre Charantonis, and F Jourdin. Predicting ocean dynamics through machine learning: Application on sea-surface suspended particulate mater. In American Meteorological Society Annual Meeting 2017, 2017.
177
+
178
+ Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 29802988. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/ 5653-a-recurrent-latent-variable-model-for-sequential-data.pdf.
179
+
180
+ N. Cressie and C.K. Wikle. Statistics for Spatio-Temporal Data. Wiley, 2015. ISBN 9781119243045. URL https://books.google.fr/books?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ 4L_dCgAAQBAJ.
181
+
182
+ Chelsea Finn, Ian J. Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. CoRR, abs/1605.07157, 2016. URL http://arxiv.org/abs/ 1605.07157.
183
+
184
+ Philipp Fischer, Alexey Dosovitskiy, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Β¨ Patrick van der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. CoRR, abs/1504.06852, 2015. URL http://arxiv.org/abs/ 1504.06852.
185
+
186
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385.
187
+
188
+ Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. CoRR, abs/1612.01925, 2016. URL http://arxiv.org/abs/1612.01925.
189
+
190
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. CoRR, abs/1506.02025, 2015. URL http://arxiv.org/abs/1506.02025.
191
+
192
+ Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Β¨ Graves, and Koray Kavukcuoglu. Video pixel networks. CoRR, abs/1610.00527, 2016. URL http://arxiv.org/abs/1610.00527.
193
+
194
+ Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick van der Smagt. Deep variational bayes filters: Unsupervised learning of state space models from raw data. ICLR 2017, 2016.
195
+
196
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. ICLR 2014, 2014.
197
+
198
+ Rahul G Krishnan, Uri Shalit, and David Sontag. Deep kalman filters. arXiv preprint arXiv:1511.05121, 2015.
199
+
200
+ L’ubor Ladicky, SoHyeon Jeong, Barbara Solenthaler, Marc Pollefeys, and Markus Gross. Data- Β΄ driven fluid simulations using regression forests. ACM Trans. Graph., 34(6):199:1–199:9, October 2015. ISSN 0730-0301. doi: 10.1145/2816795.2818129. URL http://doi.acm.org/ 10.1145/2816795.2818129.
201
+
202
+ Haibin Ling and K. Okada. Diffusion distance for histogram comparison. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 1, pp. 246– 253, June 2006. doi: 10.1109/CVPR.2006.99.
203
+
204
+ G. Madec. NEMO ocean engine. Note du Pole de mod Λ† elisation, Institut Pierre-Simon Laplace Β΄ (IPSL), France, No 27, ISSN No 1288-1619, 2008.
205
+
206
+ Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond Β¨ mean square error. CoRR, abs/1511.05440, 2015. URL http://arxiv.org/abs/1511. 05440.
207
+
208
+ Viorica Patraucean, Ankur Handa, and Roberto Cipolla. Spatio-temporal video autoencoder with differentiable memory. CoRR, abs/1511.06309, 2015. URL http://arxiv.org/abs/ 1511.06309.
209
+
210
+ Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Numerical gaussian processes for time-dependent and non-linear partial differential equations. arXiv preprint arXiv:1703.10230, 2017.
211
+
212
+ Samuel H. Rudy, Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz. Data-driven discovery of partial differential equations. SCIENCE ADVANCES β€”, 3(April), 2017. URL http://arxiv. org/abs/1607.01067.
213
+
214
+ Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. CoRR, abs/1506.04214, 2015. URL http://arxiv.org/abs/1506.04214.
215
+
216
+ Deqing Sun, Stefan Roth, J. P. Lewis, and Michael J. Black. Learning Optical Flow, pp. 83–97. Springer Berlin Heidelberg, Berlin, Heidelberg, 2008. ISBN 978-3-540-88690-7. doi: 10.1007/ 978-3-540-88690-7 7. URL https://doi.org/10.1007/978-3-540-88690-7_7.
217
+
218
+ Jonathan Tompson, Kristofer Schlachter, Pablo Sprechmann, and Ken Perlin. Accelerating Eulerian fluid simulation with convolutional networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 3424–3433, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/ tompson17a.html.
219
+
220
+ Yannick Tremolet. Accounting for an imperfect model in 4d-var. Β΄ Quarterly Journal of the Royal Meteorological Society, 132(621):2483–2504, 2006.
221
+
222
+ Geoffrey K Vallis. Atmospheric and oceanic fluid dynamics. Cambridge University Press, 2017.
223
+
224
+ Joost Van Amersfoort, Anitha Kannan, Marc’Aurelio Ranzato, Arthur Szlam, Du Tran, and Soumith Chintala. Transformation-Based Models of Video Sequences. In CoRR abs/1701.08435 (2017), pp. 1–11, 2017. URL http://arxiv.org/abs/1701.08435.
225
+
226
+ Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision, 2016.
227
+
228
+ Jason J. Yu, Adam W. Harley, and Konstantinos G. Derpanis. Back to Basics: Unsupervised Learning of Optical Flow via Brightness Constancy and Motion Smoothness, pp. 3–10. Springer International Publishing, Cham, 2016. ISBN 978-3-319-49409-8. doi: 10.1007/978-3-319-49409-8 1. URL https://doi.org/10.1007/978-3-319-49409-8_1.
229
+
230
+ Yi Zhu, Zhen-Zhong Lan, Shawn D. Newsam, and Alexander G. Hauptmann. Guided optical flow learning. CoRR, abs/1702.02295, 2017. URL http://arxiv.org/abs/1702.02295.
231
+
232
+ # A PROOF OF THE THEOREM IN SECTION 2 1
233
+
234
+ Proof. In the following, bold $\mathbf { x }$ and $\mathbf { y }$ will denote vectors of $\mathbb { R } ^ { 2 }$ , while $x$ and $y$ will correspond to the first and second components of $\mathbf { x }$ , respectively. Analogously, $u$ and $v$ will correspond to the components of $w$ . The 2D Fourier Transformation $\mathcal { F }$ of $f : \bar { \mathbb { R } } ^ { 2 } \bar { \mathbb { R } }$ is defined as
235
+
236
+ $$
237
+ \begin{array} { l } { \displaystyle \mathcal { F } ( f ) = \int _ { \mathbb { R } ^ { 2 } } f ( \mathbf { x } ) e ^ { - i < \xi , \mathbf { x } > } d \mathbf { x } } \\ { \displaystyle \ = \int _ { \mathbb { R } } \int _ { \mathbb { R } } f ( x , y ) e ^ { - i x \xi _ { 1 } - i y \xi _ { 2 } } d x d y } \end{array}
238
+ $$
239
+
240
+ We apply the Fourier Transform $\mathcal { F }$ to both sides of 3. As consequence of the linearity of the Fourier transform, we can calculate decompose the Fourier transform of the left hand side in the sum of the transforms of each term. We have three terms: $\begin{array} { r } { \frac { \partial I } { \partial t } , ( w . \nabla ) I } \end{array}$ and $- D \nabla ^ { 2 } I$ .
241
+
242
+ $$
243
+ \begin{array} { l } { \displaystyle \mathcal { F } ( \frac { \partial I } { \partial t } ) = \int _ { \mathbb { R } ^ { 2 } } \frac { \partial I } { \partial t } e ^ { - i < \mathbf { x } , \xi > } d \mathbf { x } } \\ { \displaystyle \ = \int _ { \mathbb { R } ^ { 2 } } \frac { \partial } { \partial t } ( I e ^ { - i < \mathbf { x } , \xi > } ) d \mathbf { x } } \\ { \displaystyle \ = \frac { \partial } { \partial t } \int _ { \mathbb { R } ^ { 2 } } I e ^ { - i < \mathbf { x } , \xi > } d \mathbf { x } } \\ { \displaystyle \ = \frac { \partial \mathcal { F } ( I ) } { \partial t } } \end{array}
244
+ $$
245
+
246
+ $$
247
+ \begin{array} { r l } { F ( ( w , \nabla ) I ) = \displaystyle \int _ { \mathbb { R } ^ { 2 } } ( w , \nabla ) I e ^ { - i \omega \cdot \xi } d x } \\ { = \displaystyle \int _ { \mathbb { R } } \int _ { \mathbb { R } } ( w \frac { \partial I } { \partial x } + v \frac { \partial I } { \partial y } ) e ^ { - i x \xi _ { 1 } - \mathrm { i } y \xi _ { 2 } } d x d y } \\ { = \displaystyle \mu \int _ { \mathbb { R } } e ^ { - i \psi \cdot \xi } \int _ { \mathbb { R } } \frac { \partial I } { \partial x } e ^ { - i \xi _ { 1 } } d x d y + v \displaystyle \int _ { \mathbb { R } } e ^ { - i \psi \xi _ { 1 } } \int _ { \mathbb { R } } \frac { \partial I } { \partial y } e ^ { - i y \xi _ { 2 } } d y d x } \\ { = \displaystyle i \xi _ { 1 } w \int _ { \mathbb { R } } e ^ { - i \psi \xi _ { 2 } } \int _ { x } [ e ^ { - i \psi \xi _ { 1 } } d x d y + i \xi _ { 2 } v \int _ { \mathbb { R } } e ^ { - i \psi \xi _ { 1 } } \int _ { \mathbb { R } } \frac { \partial I } { \partial y } e ^ { - i y \xi _ { 2 } } d y d x } \\ { = \displaystyle \tilde { U } _ { \mathbb { R } } \int _ { \mathbb { R } } \int _ { \mathbb { R } } e ^ { - i \psi \xi _ { 1 } - \mathrm { i } \psi _ { \xi } } d x d y + v \xi _ { 2 } v \int _ { \mathbb { R } } \int _ { \mathbb { R } } I _ { \mathbb { R } } e ^ { - i \omega \xi _ { 1 } - y \psi } d x d y } \\ { = ( \xi _ { 1 } w + i \xi _ { 2 } v ) \int _ { \mathbb { R } } \int _ { \mathbb { R } } \int _ { \mathbb { R } } \int _ { \mathbb { R } } - i \omega \xi _ { 1 } - i \psi \xi _ { 2 } d x d y } \\ { = i \ < \xi , w > F ( I ) } \end{array}
248
+ $$
249
+
250
+ $$
251
+ \begin{array} { r l } { \mathcal { F } ( - D \nabla ^ { 2 } I ) = - \int _ { \mathbb { R } ^ { 2 } } D \nabla ^ { 2 } I c ^ { - i \nu \xi } s c ^ { - \alpha } k s ^ { \zeta } d x } \\ { = - \int _ { \mathbb { R } ^ { 2 } } \int _ { \mathbb { R } ^ { 0 } } D \big ( \hat { \partial } \hat { \partial } ^ { 2 } I + \hat { \partial } \hat { \partial } ^ { 2 } I \big ) e ^ { - i \alpha \zeta _ { 1 } - i \psi \xi } d x d y } \\ { } & { = - D \int _ { \mathbb { R } ^ { 2 } } e ^ { - i \nu \xi } \int _ { \mathbb { R } ^ { 2 } } \frac { \partial ^ { 2 } I } { \partial x ^ { 2 } } e ^ { - i \alpha \zeta _ { 1 } } d x d y - D \int _ { \mathbb { R } ^ { \epsilon } } e ^ { - i \alpha \zeta _ { 1 } } \int _ { \mathbb { R } } \frac { \partial ^ { 2 } I } { \partial y ^ { 2 } } e ^ { - i \nu \xi \epsilon } d y d x } \\ { } & { = - ( \delta _ { 1 } ) ^ { 2 } D \int _ { \mathbb { R } ^ { 2 } } e ^ { - i \nu \zeta _ { 1 } } \int _ { \mathbb { R } } { F } ^ { - i \nu \zeta _ { 1 } } d x d y d y - ( \delta _ { 2 } ) ^ { 2 } D \int _ { \mathbb { R } ^ { \epsilon } } e ^ { - i \alpha \zeta _ { 1 } } \int _ { \mathbb { R } } { F } ^ { - i \nu \zeta _ { 2 } } d y d x } \\ { } & { = D \mathfrak { L } _ { 1 } ^ { 2 } \int _ { \mathbb { R } ^ { \epsilon } } e ^ { - i \alpha \zeta _ { 2 } } \int _ { \mathbb { R } } { F } ^ { - i \nu \zeta _ { 2 } } d x d y + D \mathfrak { L } _ { 2 } ^ { 2 } \int _ { \mathbb { R } ^ { \epsilon } } e ^ { - i \kappa \zeta _ { 1 } } \int _ { \mathbb { R } } { F } ^ { i \nu \zeta - i \psi \zeta _ { 2 } } d y d x } \\ { } & { = D \mathfrak { L } _ { 2 } ^ { 3 } \int _ { \mathbb { R } ^ { 2 } } \int _ { \mathbb { R } } { F } ^ { - i \nu \zeta _ { 2 } } d x d y + D \mathfrak { L } _ { 2 } ^ { 2 } \int _ { \mathbb { R } } { F } ^ { - i \nu \zeta _ { 1 } } d x d y d x } \\ { } & = D \mathfrak { L } _ { 1 } ^ { 3 } \int _ \mathbb \end{array}
252
+ $$
253
+
254
+ Regrouping all three previously calculated terms, we obtain
255
+
256
+ $$
257
+ \frac { \partial \mathcal { F } ( I ) } { \partial t } + ( i < \xi , w > + D \left\| \xi \right\| ^ { 2 } ) \mathcal { F } ( I ) = 0
258
+ $$
259
+
260
+ This is a first order ordinary differential equation of the form $f ^ { \prime } ( t ) + a f ( t ) = 0$ , which admits a known solution $f ( t ) = f ( 0 ) { e ^ { - a t } }$ . Thus, the solution of 11 is
261
+
262
+ $$
263
+ \begin{array} { r } { \mathcal { F } ( I ) = \mathcal { F } ( I ) _ { 0 } e ^ { - ( i < \xi , w > + D \| \xi \| ^ { 2 } ) t } } \\ { = \mathcal { F } ( I ) _ { 0 } e ^ { - i < \xi , w > t } e ^ { - D t \| \xi \| ^ { 2 } } } \end{array}
264
+ $$
265
+
266
+ where $\mathcal { F } ( I ) _ { 0 }$ denotes the initial condition of the advection diffusion equation in the frequency domain. In order to obtain a solution of 3 in the spatial domain, we calculate the inverse Fourier Transform ${ \mathcal { F } } ^ { - 1 }$ of 12. The multiplication of two functions in the frequency domain is equivalent to their convolution in the spatial domain, i.e. ${ \mathcal { F } } ( f * g ) = { \mathcal { F } } ( f ) { \mathcal { F } } ( g )$ . Hence, the inverse of both terms $\mathcal { F } ( I ) _ { 0 } e ^ { - i < \xi , w > t }$ and $e ^ { - D t \| \boldsymbol { \xi } \| ^ { 2 } }$ can be calculated separately:
267
+
268
+ Multiplication by a complex exponential in the frequency domain is equivalent to a shift in the spatial domain : $\bar { e } ^ { - i < \xi , w \bar { > } } \mathcal { F } ( f ( \bar { \mathbf { x } } ) ) = \mathcal { F } ( f ( \mathbf { x } - w ) )$ , for $\boldsymbol { v } \in \mathbb { R } ^ { 2 }$ . Thus, for the first term,
269
+
270
+ $$
271
+ \mathcal { F } ^ { - 1 } ( \mathcal { F } ( I ) _ { 0 } e ^ { - ( i < \xi , w > ) t } ) = I _ { 0 } ( \mathbf { x } - w )
272
+ $$
273
+
274
+ For the second term, we use the fact that the Fourier Transform of a Gaussian function also is a Gaussian function, i.e. $\begin{array} { r } { \mathcal { F } \big ( \frac { 1 } { 2 \pi \sigma ^ { 2 } } e ^ { - \frac { 1 } { 2 \sigma ^ { 2 } } \| \mathbf { x } \| ^ { 2 } } \big ) = e ^ { - \frac { 1 } { 2 } \sigma ^ { 2 } \| \boldsymbol { \xi } \| ^ { 2 } } } \end{array}$ . Identifying $\sigma ^ { 2 }$ with $2 D t$ , we have:
275
+
276
+ $$
277
+ \mathcal { F } ^ { - 1 } ( e ^ { - D t \| \boldsymbol { \xi } \| ^ { 2 } } ) = \frac { 1 } { 4 \pi D t } e ^ { - \frac { 1 } { 4 D t } \| \mathbf { x } \| ^ { 2 } }
278
+ $$
279
+
280
+ As has been stated above, the solution is a convolution of both previously calculated terms:
281
+
282
+ $$
283
+ \begin{array} { r } { I ( \mathbf { x } , t ) = \displaystyle \int _ { \mathbb { R } ^ { 2 } } \frac { 1 } { 4 \pi D t } e ^ { - \frac { 1 } { 4 D t } \| \mathbf { y } \| ^ { 2 } } I _ { 0 } ( \mathbf { x } - w - \mathbf { y } ) d y } \\ { = \displaystyle \int _ { \mathbb { R } ^ { 2 } } \frac { 1 } { 4 \pi D t } e ^ { - \frac { 1 } { 4 D t } \| \mathbf { x } - w - \mathbf { y } \| ^ { 2 } } I _ { 0 } ( \mathbf { y } ) d \mathbf { y } } \end{array}
284
+ $$
285
+
286
+ # B ON THE GENERALIZATION IN SPACE AND TIME
287
+
288
+ The ability of the model to adapt to other conditions should be evaluated on other regions. This, however, requires a complete study by itself and is beyond the scope of this paper. We, however, present below complementary experiments aimed at assessing the potential of the proposed model for forecasting SST on sequences distant in time and space from the ones used for training.
289
+
290
+ # B.1 TEMPORAL DIMENSION
291
+
292
+ In section 4, training has been performed on data from 2006 - 2015 and testing on the period 2016- 2017. In order to provide some indication of the model behavior on more distant time intervals between train and test data, we have performed experiments using the same regions (17 to 20) as in section 4, but using the period 2011 to 2017 for training and period 2006 to 2010 for testing. Figure B.1 shows the MSE curve on this test set, each point corresponding to the mean MSE on predictions performed on 6 days ahead the current date. The most important conclusion is probably that the MSE error remains in the same range for all these years. All the yearly error curve show a clear seasonal phenomenon with a higher prediction error during summer. A similar behavior has been observed when exchanging train and test data.
293
+
294
+ ![](images/528806e279e8e0cafff934b99238f30f79d4eaee57852dbf4a070720a4a6a49c.jpg)
295
+ Figure 6: Evaluation of our model’s accuracy in time on data from 2006 to 2010 using data from 2011 to 2017 for training. Regions 17 to 20 were used for both periods. Each day, we produce daily forecasts for 6 days ahead and calculate the associated mean square error.
296
+
297
+ # B.2 SPATIAL DIMENSION
298
+
299
+ In the experiments, the models have been trained and evaluated on selected regions (numbered 17 to 20 in Figure 4.1), considered as the most interesting for the observed dynamics.
300
+
301
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Test Regions 17&amp;18</td><td rowspan=1 colspan=1>Test Regions 8&amp;9</td></tr><tr><td rowspan=1 colspan=1>Model trained on Regions 17 &amp; 18</td><td rowspan=1 colspan=1>1.43</td><td rowspan=1 colspan=1>1.22</td></tr><tr><td rowspan=1 colspan=1>Model trained on Regions 8&amp;9</td><td rowspan=1 colspan=1>1.90</td><td rowspan=1 colspan=1>1.19</td></tr></table>
302
+
303
+ Table 2: Evaluation of our model’s spatial generalization ability. We train our model on two distinct regions and calculate the MSE on both regions for each trained model.
304
+
305
+ We describe below some results providing indications on how the model performs on regions different from the training ones. For these experiments, the model has been trained on regions 17 and 18 in Figure 4.1 and tested on two other regions (regions 8 and 9), and vice versa (trained on 8 and 9 and tested on 17 and 18). The two couples of regions have been selected so as to have different latitude and longitude. The underlying physical processes generating the data are known to be different in these regions: the overall motion in regions 17 and 18 is greater, and the difference between extreme temperature is larger, compared to regions 8 and 9. Experimental conditions are similar to the one described in section 4, i.e. 2006-2015 have been used for training and 2016-1017 for testing.
306
+
307
+ Results in Table B.2 show that the model generalizes reasonably well to unseen data from distant spatial regions, with a slight decrease in performance when training and test regions do not correspond. The performance loss is 0.47 for regions (17, 18) which show a strong dynamics, whereas it is only 0.03 for regions (8, 9) for which the dynamics are more stable. Most notably, MSE performance depends more on the region itself than on the train/ test conditions. Error is always higher in regions with strong dynamics (17, 18) than on more stable regions (8, 9) whatever the train/ test conditions are. Note that to further improve the results on distant data, it is possible to fine-tune the model using data from the studied regions.
308
+
309
+ ![](images/7fa34cba44f56995c4ccd948262fe818c202d7bb2038a7cc5cbd04fe8d410b0f.jpg)
310
+ Figure 7: Output for the 6 of May to the 9 of May 2016, Output , From top to bottom: target, our model prediction, our model flow
311
+
312
+ ![](images/4ffe62ca072ede6593044ce1af87b6350592816bc760f6a707c20a78f7a4aa63.jpg)
313
+ Figure 8: Output for the 6 of January to the 9 of January 2016. From top to bottom: target, our model prediction, our model flow
parse/train/By4HsfWAZ/By4HsfWAZ_content_list.json ADDED
@@ -0,0 +1,1674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DEEP LEARNING FOR PHYSICAL PROCESSES: INCORPORATING PRIOR SCIENTIFIC KNOWLEDGE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 771,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Emmanuel de Bezenac Β΄ βˆ—, Arthur Pajot βˆ—, Patrick Gallinari emmanuel.de-bezenac, arthur.pajot, patrick.gallinari @lip6.fr Sorbonne Universites, UMR 7606, LIP6, F-75005 Paris, France Β΄ ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 601,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 248,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We consider the use of Deep Learning methods for modeling complex phenomena like those occurring in natural physical processes. With the large amount of data gathered on these phenomena the data intensive paradigm could begin to challenge more traditional approaches elaborated over the years in fields like maths or physics. However, despite considerable successes in a variety of application domains, the machine learning field is not yet ready to handle the level of complexity required by such problems. Using an example application, namely Sea Surface Temperature Prediction, we show how general background knowledge gained from the physics could be used as a guideline for designing efficient Deep Learning models. In order to motivate the approach and to assess its generality we demonstrate a formal link between the solution of a class of differential equations underlying a large family of physical phenomena and the proposed model. Experiments and comparison with series of baselines including a state of the art numerical approach is then provided. ",
40
+ "bbox": [
41
+ 233,
42
+ 280,
43
+ 764,
44
+ 474
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 502,
55
+ 336,
56
+ 517
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "A physical process is a sustained phenomenon marked by gradual changes through a series of states occurring in the physical world. Physicists and environmental scientists attempt to model these processes in a principled way through analytic descriptions of the scientist’s prior knowledge of the underlying processes. Conservation laws, physical principles or phenomenological behaviors are generally formalized using differential equations. This physical paradigm has been, and still is the main framework for modeling complex natural phenomena like e.g. those involved in climate. With the availability of very large datasets captured via different types of sensors, this physical modeling paradigm is being challenged by the statistical Machine Learning (ML) paradigm, which offers a prior-agnostic approach. However, despite impressive successes in a variety of domains as demonstrated by the deployment of Deep Learning methods in fields such as vision, language, speech, etc, the statistical approach is not yet ready to challenge the physical paradigm for modeling complex natural phenomena, or at least it has not demonstrated how to. This is a new challenge for this field and an emerging research direction in the ML community. We believe that knowledge and techniques accumulated for modeling physical processes in well developed fields such as maths or physics could be useful as a guideline to design efficient learning systems and conversely, that the ML paradigm could open new directions for modeling such complex phenomena. In this paper we then raise two issues: 1) are modern ML techniques ready to be used to model complex physical phenomena, and 2) how general knowledge gained from the physical modeling paradigm could help designing efficient ML models. ",
63
+ "bbox": [
64
+ 174,
65
+ 532,
66
+ 825,
67
+ 796
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this work, we tackle these questions by considering a specific physical modeling problem: forecasting sea surface temperature (SST). SST plays a significant role in analyzing and assessing the dynamics of weather and other biological systems. Accurately modeling and predicting such dynamics is critical in various applications such as weather forecasting, or planning of coastal activities. Since 1982, weather satellites have made huge quantities of very high resolution SST data available Bernstein (1982). Standard physical methods for forecasting SST use coupled ocean-atmosphere prediction systems, based on the Navier Stokes equations. These models rely on multiple physical hypotheses and do not optimally exploit the information available in the data. On the other hand, despite the availability of large amounts of data, direct applications of ML methods do not lead to competitive state of the art results, as will be seen in section 4. ",
74
+ "bbox": [
75
+ 174,
76
+ 804,
77
+ 823,
78
+ 901
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 823,
89
+ 145
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We use SST as a typical and representative problem of intermediate complexity. Our goal is not to offer one more solution to this problem, but to use it as an illustration for advancing on the challenges mentioned above. The way we handle this problem is general enough to be transfered to a more general class of transport problems. ",
96
+ "bbox": [
97
+ 174,
98
+ 146,
99
+ 823,
100
+ 200
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We propose a Deep Neural Network (NN) model, inspired from general physical motivations which offers a new approach for solving this family of problems. We first motivate our approach by introducing in section 2 the solution of a general class of partial differential equations (PDE) which is a core component of a large family of transport and propagation phenomena in physics. This general solution is used as a guideline for introducing a Deep Learning architecture for SST prediction which is described in section 3. Experiments and comparison with a series of baselines is introduced in section 4. A review of related work is finally presented in section 5. ",
107
+ "bbox": [
108
+ 174,
109
+ 208,
110
+ 825,
111
+ 305
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The main contributions of this work are: 1) an example showing how to incorporate general physical background for designing a NN aimed at modeling a relatively complex prediction task. We believe the approach to be general enough to be used for a family of transport problems obeying general advection-diffusion principles. 2) formal links between our model’s prediction and the solution of a general advection diffusion PDE 3) an unsupervised model for estimating motion fields, given a sequence of images. 4) a proof, on a relatively complex physical modeling problem, that full data intensive approaches based on deep architectures can be competitive with state of the art dedicated numerical methods. ",
118
+ "bbox": [
119
+ 174,
120
+ 311,
121
+ 825,
122
+ 424
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 PHYSICAL MOTIVATION ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 444,
133
+ 405,
134
+ 460
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Forecasting consists in predicting future temperature maps using past records. Temperatures are acquired via satellite imagery. If we focus on a specific area, we can formulate the problem as prediction of future temperature images of this area using past images. The classical approach to forecasting SST consists in using numerical models representing prior knowledge on the conservation laws and physical principles, which take the form of PDEs. These models are then coupled with SST data using assimilation techniques in order to adjust to initial conditions. It is then integrated forward in time to predict SST evolution. For the sea surface, temperature variation is related to a fluid transport problem. In fluids, transport occurs through the combination of two principles: advection and diffusion. During advection, a fluid transports some conserved quantity $I$ (the temperature for SST) or material via bulk motion, i.e.for small variations $\\Delta x , \\Delta t$ , conservation is expressed as: ",
141
+ "bbox": [
142
+ 173,
143
+ 476,
144
+ 825,
145
+ 627
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "equation",
151
+ "img_path": "images/fef2111d1356bb277eb5013508398a104158b6c5ee84badd6935dbc2c5a25769.jpg",
152
+ "text": "$$\nI ( x , t ) = I ( x + \\Delta x , t + \\Delta t )\n$$",
153
+ "text_format": "latex",
154
+ "bbox": [
155
+ 400,
156
+ 627,
157
+ 596,
158
+ 645
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "applying a first order approximation of the right hand side and moving the resulting terms to the left hand side of equation 1, we obtain the advection equation, known also as the Brightness Constancy Constraint Equation (BCCE): ",
165
+ "bbox": [
166
+ 174,
167
+ 655,
168
+ 825,
169
+ 696
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "equation",
175
+ "img_path": "images/d2d51e4573a9d2776c62f0f819bbc52366e42d45e3405117c8ae7c1293fa6c7e.jpg",
176
+ "text": "$$\n\\frac { \\partial I } { \\partial t } + ( w . \\nabla ) I = 0\n$$",
177
+ "text_format": "latex",
178
+ "bbox": [
179
+ 436,
180
+ 695,
181
+ 562,
182
+ 727
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "where $\\nabla$ denotes the gradient operator, and $w$ the motion vector $\\textstyle { \\frac { \\Delta x } { \\Delta t } }$ . This equation describes the temporal evolution of quantity $I$ for displacement $w$ . Note that this equation is also the basis for many variational methods for Optical Flow. To retrieve the motion, numerical schemes are applied, and the resulting system of equations, along with a an additional constraint on $w$ is solved for $w$ . This motion can then be used to forecast the future value of $I$ . ",
189
+ "bbox": [
190
+ 174,
191
+ 738,
192
+ 825,
193
+ 808
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "equation",
199
+ "img_path": "images/a0b2a0a2477ded7e8789c12711e33ec36c7f332daa71fd7fbbd18fe0baeb8cf9.jpg",
200
+ "text": "$$\n\\frac { \\partial I } { \\partial t } + ( w . \\nabla ) I = D \\nabla ^ { 2 } I\n$$",
201
+ "text_format": "latex",
202
+ "bbox": [
203
+ 418,
204
+ 813,
205
+ 581,
206
+ 843
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "$\\nabla ^ { 2 }$ denotes the Laplacian operator and $D$ the diffusion coefficient. Note that when $D \\to 0$ , we recover the advection equation 2. ",
213
+ "bbox": [
214
+ 174,
215
+ 858,
216
+ 825,
217
+ 887
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "This equation describes a large family of physical processes (e.g. fluid dynamics, heat conduction, wind dynamics, etc). Let us now state a result, characterizing the general solutions of equation 3. ",
224
+ "bbox": [
225
+ 176,
226
+ 887,
227
+ 825,
228
+ 915
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Theorem 1. 1 For any initial condition $I _ { 0 } \\in L ^ { 1 } ( \\mathbb { R } ^ { 2 } )$ with $I _ { 0 } ( \\pm \\infty ) = 0$ , there exists a unique global solution $I ( x , t )$ to the advection-diffusion equation 3: ",
235
+ "bbox": [
236
+ 171,
237
+ 102,
238
+ 825,
239
+ 132
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "equation",
245
+ "img_path": "images/51cdaa73a43906f93e0b953047dee2e1621ccdb9be84b097c1adb26f7ec0d9b2.jpg",
246
+ "text": "$$\nI ( x , t ) = \\int _ { \\mathbb { R } ^ { 2 } } k ( x - w , y ) I _ { 0 } ( y ) d y\n$$",
247
+ "text_format": "latex",
248
+ "bbox": [
249
+ 379,
250
+ 135,
251
+ 620,
252
+ 167
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "where $\\begin{array} { r } { k ( u , v ) = \\frac { 1 } { 4 \\pi D t } e ^ { - \\frac { 1 } { 4 D t } \\left. u - v \\right. ^ { 2 } } } \\end{array}$ is a radial basis function kernel, or alternatively, a 2 dimensional Gaussian probability density with mean $u$ and variance $2 D t$ . ",
259
+ "bbox": [
260
+ 174,
261
+ 170,
262
+ 825,
263
+ 202
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Equation 4 provides a principled way to calculate $I ( x , t )$ for any time $t$ using the initial condition $I _ { 0 }$ , provided the motion $w$ and the diffusion coefficient $D$ are known. It states that quantity $I ( x , t )$ can be computed from the initial condition $I _ { 0 }$ via a convolution with a Gaussian probability density function. In other words, if $I$ was used as a model for the evolution of the SST and the surface’s underlying advecting mechanisms were known, future surface temperatures could be predicted from previous ones. Unfortunately neither the initial conditions, the motion vector nor the diffusion coefficient are known. They have to be estimated from the data. Inspired from the general form of solution 4, we propose a ML method, expressed as a Deep Learning architecture for predicting SST. This model will learn to predict a motion field analog to the $w$ in equation 4, which will be used to predict future images. ",
270
+ "bbox": [
271
+ 173,
272
+ 224,
273
+ 825,
274
+ 366
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "3 MODEL ",
281
+ "text_level": 1,
282
+ "bbox": [
283
+ 176,
284
+ 385,
285
+ 269,
286
+ 400
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "image",
292
+ "img_path": "images/723d416121047ed73a5ae5137105467c9d588884d82dff94268dd9f826d12a3b.jpg",
293
+ "image_caption": [
294
+ "Figure 1: Motion is estimated from the input images $( I _ { t - k - 1 : t } )$ with a convolutional neural network (top left CDNN component). A warping scheme then displaces the last input image along this motion estimate to produce the future image. The error signal is calculated using the target future image $I _ { t + 1 }$ , and is backprogated through the warping scheme to correct the CDNN. To produce multiple time-step forecasts, the predicted image is fed back in the CDNN in an autoregressive manner. "
295
+ ],
296
+ "image_footnote": [],
297
+ "bbox": [
298
+ 279,
299
+ 421,
300
+ 722,
301
+ 594
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "The model consists of two main components, as illustrated in Figure 1. One predicts the motion field from a sequence of past input images, this is convolutional-deconvolutional (CDNN) module on the top of figure 1, and the other warps the last input image using the motion field from the first component, in order to produce an image forecast. The entire system is trained in an end-to-end fashion, using only the supervision from the target SST image. By doing so, we are able to produce an interpretable latent state which corresponds in our problem to the velocity field advecting the temperatures. ",
308
+ "bbox": [
309
+ 173,
310
+ 698,
311
+ 825,
312
+ 796
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Let us first introduce some notations. Each SST image $I _ { t }$ is acquired on a bounded rectangle of $\\mathbb { R } ^ { 2 }$ , named $\\Omega$ . We denote $I _ { t } ( x )$ and $w _ { t } ( x )$ the sea surface temperature and the two-dimensional motion vector at time $t \\in \\mathbb { R }$ at position $x \\in \\Omega$ . $I _ { t } : \\Omega \\to \\mathbb { R }$ and $\\dot { w } _ { t } : \\Omega \\to \\mathbb { R } ^ { 2 }$ represent the temperatures and the motion vector field at time $t$ defined on $\\Omega$ . When time $t$ and position $x$ are available from the context, we will drop the subscript $t$ from $w _ { t } ( x )$ and $I _ { t } ( x )$ , along with $x$ for clarity. Given a sequence of $k$ consecutive SST images $\\{ I _ { t - k - 1 } , . . . , I _ { t } \\}$ (also denoted as $I _ { t - k - 1 : t } )$ , our goal is to predict the next image $I _ { t + 1 }$ . ",
319
+ "bbox": [
320
+ 173,
321
+ 803,
322
+ 825,
323
+ 901
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "image",
329
+ "img_path": "images/fdfbc089060a5d4b341bb93d8bfc0394e30c6e4e3b5ae9494dd7e8d78b641924.jpg",
330
+ "image_caption": [
331
+ "Figure 2: Architecture of the CDNN motion estimation component. For the estimated motion flow $\\hat { w } _ { t }$ , colours correspond to the flow orientation and colour intensity to the flow intensity "
332
+ ],
333
+ "image_footnote": [],
334
+ "bbox": [
335
+ 212,
336
+ 165,
337
+ 781,
338
+ 297
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "As indicated in section 2, provided the underlying motion field is known, one can compute SST forecasts. Let us introduce how the motion field is estimated in our architecture. We are looking for a vector field $w$ which when applied to the geometric space $\\Omega$ renders $I _ { t }$ close to $I _ { t + 1 }$ , i.e. $I _ { t + 1 } ( \\bar { x } ) \\simeq$ $I _ { t } ( x + w ( x ) )$ , $\\forall x \\in \\Omega$ . If $I _ { t + 1 }$ were known, we could estimate $w$ , but $I _ { t + 1 }$ is precisely what we are looking for. Instead, we choose to use a convolutional-deconvolutional architecture to predict a motion vector for each pixel. As shown in figure 2, this network makes use of skip connections He et al. (2015), allowing fine grained information from the first layers to flow through in a more direct manner. We use a Batch Normalization layer between each convolution, and Leaky $R e L U$ (with parameter value set to 0.1) non-linearities between convolutions and transposed-convolutions. We used $k = 4$ concatenated images $I _ { t - k - 1 : t }$ as input for training. We have selected this architecture experimentally, testing different state-of-the-art convolution-deconvolution network architectures. Let $\\hat { w } \\in \\mathbb { R } ^ { 2 \\times \\mathbf { \\bar { W } } \\times H }$ be the output of the network, where $W$ and $H$ are respectively the width and height of the images, and $\\mathit { \\Omega } ^ { , }$ corresponds to the two components of the flow at each point of the motion field. ",
345
+ "bbox": [
346
+ 173,
347
+ 380,
348
+ 825,
349
+ 574
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Generally, and this is the case for our problem, we do not have a direct supervision on the motion vector field, since the target motion is usually not available. Using the warping scheme introduced below, we will nonetheless be able to (weakly) supervise $w$ , based on the discrepancy of the warped version of the $I _ { t }$ image and the target image $I _ { t + 1 }$ . ",
356
+ "bbox": [
357
+ 174,
358
+ 582,
359
+ 825,
360
+ 638
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "3.2 WARPING SCHEME ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 176,
370
+ 672,
371
+ 346,
372
+ 688
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "image",
378
+ "img_path": "images/f26b7c0fe8bb8e32a7af7bd237402c2fba74592354a184042a168128f6b08f8e.jpg",
379
+ "image_caption": [
380
+ "Figure 3: Warping scheme. To calculate the pixel value for time $t + 1$ at position $x$ , we first compute its previous position at time $t$ , i.e. $x - w$ . We then center a Gaussian in that position in order to obtain a weight value for each pixel in $I _ { t }$ based on its distance with $x - w$ , and compute a weighted average of the pixel values of $I _ { t }$ . This weighted average will correspond to the new pixel value at $x$ in $I _ { t + 1 }$ . "
381
+ ],
382
+ "image_footnote": [],
383
+ "bbox": [
384
+ 369,
385
+ 727,
386
+ 629,
387
+ 835
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Discretizing the solution of the advection-diffusion equation in section 2 by replacing the integral with a sum, and setting image $I _ { t }$ as the initial condition, we obtain a method to calculate the future image, based on the motion field estimate $\\hat { w }$ . The latter is used as a warping scheme: ",
394
+ "bbox": [
395
+ 173,
396
+ 103,
397
+ 825,
398
+ 146
399
+ ],
400
+ "page_idx": 4
401
+ },
402
+ {
403
+ "type": "equation",
404
+ "img_path": "images/e8a196d1bf52ed7f432394343c8de7e606cd2b23990b4363b08b0d38f6372cc2.jpg",
405
+ "text": "$$\n\\hat { I } _ { t + 1 } ( x ) = \\sum _ { y \\in \\Omega } k ( x - \\hat { w } ( x ) , y ) I _ { t } ( y )\n$$",
406
+ "text_format": "latex",
407
+ "bbox": [
408
+ 372,
409
+ 183,
410
+ 624,
411
+ 218
412
+ ],
413
+ "page_idx": 4
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "where $\\begin{array} { r } { k ( x - \\underset { . } { \\hat { w } } , y ) = \\underset { . } { \\frac { 1 } { 4 \\pi D \\Delta t } } e ^ { - \\frac { 1 } { 4 D \\Delta t } \\| x - \\hat { w } - y \\| ^ { 2 } } } \\end{array}$ is a radial basis function kernel, as in equation 4, parameterized by the diffusion coefficient $D$ and the time step value $\\Delta t$ between $t$ and $t + 1$ and $\\hat { w }$ is the estimated value of the vector flow $w$ . To calculate the temperature for time $t + 1$ at position $x$ , we compute the scalar product between $k ( x - { \\hat { w } } , . )$ , a Gaussian centered in $x - \\hat { w }$ , and the previous image $I _ { t }$ . Simply put, it is a weighted average of the temperatures $I _ { t }$ , where the weight values are larger when the pixel’s positions that are closer to $x - \\hat { w }$ . Informally, $x - \\hat { w }$ corresponds to the pixel’s previous position at time $t$ . See figure 3. ",
418
+ "bbox": [
419
+ 173,
420
+ 250,
421
+ 825,
422
+ 352
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "As seen by the relation with the solution of the advection-diffusion equation, the proposed warping mechanism is then clearly adapted to the modeling of phenomena governed by the advectiondiffusion equation. SST forecasting is a particular case, but the proposed scheme can be used for any problems in which advection and diffusion are occurring. Moreover, this warping scheme is entirely differentiable, allowing backpropagation of the error signal to the motion fireld estimating module. ",
429
+ "bbox": [
430
+ 174,
431
+ 357,
432
+ 825,
433
+ 440
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "This warping mechanism has been inspired by the Spatial Transformer Network (STN) Jaderberg et al. (2015), originally designed to be incorporated as a layer in a convolutional neural network architecture in order to gain invariance under geometric transformations. Using the notations in Jaderberg et al. (2015), when the inverse geometric transformation $\\mathcal { T } _ { \\theta }$ of the grid generator step is set to $\\mathcal { T } _ { \\theta } ( x ) = x - \\hat { w } ( x )$ , and the kernels $k ( . ; \\Phi _ { x } )$ and $k ( . ; \\Phi _ { y } )$ in the sampling step are radial basis function kernels, we recover our warping scheme. The latter can be seen as a specific case of the STN, without the localization step. This result theoretically grounds the use of the STN for Optical Flow in many recent articles Zhu et al. (2017), Yu et al. (2016), Patraucean et al. (2015), Finn et al. (2016): in equation 3, when $D \\to 0$ , we recover the brightness constancy constraint equation, used in the latter. ",
440
+ "bbox": [
441
+ 173,
442
+ 446,
443
+ 825,
444
+ 587
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "For training, supervision is provided at the output of the warping module. It consists in minimizing the discrepancy between the warped image $\\hat { I } _ { t + 1 }$ and the target image $I _ { t + 1 }$ . The loss is measured via a differentiable function and the gradient is back propagated through the warping function in order to adjust the parameters of the convolutional-deconvolutional module generating the vector field. This is detailed in the next section. ",
451
+ "bbox": [
452
+ 174,
453
+ 593,
454
+ 825,
455
+ 666
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "3.3 LOSS FUNCTION ",
462
+ "text_level": 1,
463
+ "bbox": [
464
+ 176,
465
+ 699,
466
+ 328,
467
+ 713
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "At each iteration, the model aims at forecasting the next observation, given the previous ones. We evaluate the discrepancy between the warped image $\\hat { I } _ { t + 1 }$ and the target image $I _ { t + 1 }$ using the Charbonnier penalty function $\\rho ( x ) = ( x + \\epsilon ) ^ { \\frac { 1 } { \\alpha } }$ , where $\\epsilon$ and $\\alpha$ are parameters to be set. Note that with $\\epsilon = 0$ and $\\alpha \\stackrel { \\cdot } { = } \\frac { 1 } { 2 }$ , we recover the $\\ell _ { 2 }$ loss. The Charbonnier penalty function is known to reduce the influence of outliers compared to an $l _ { 2 }$ norm. We have also tested the Laplacian pyramid loss Ling & Okada (2006), where we enforce convolutions of all deconvolutional layers to be close to down-sampled versions of the target image in the Charbonnier penalty sense, but we have observed an overall decrease in generalization performance. ",
474
+ "bbox": [
475
+ 173,
476
+ 731,
477
+ 825,
478
+ 848
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "The proposed NN model has been designed according to the intuition gained from general background knowledge of a physical phenomenon, here advection-diffusion equations. Additional prior knowledge – expressed as partial differential equations, or through constraints – can be easily incorporated in our model, by adding penalty terms in the loss function. As the displacement $w$ is explicitly part of our model, one strength of our model is its capacity to apply some regularization term directly on the motion field. In our experiments, we tested the influence of different terms: divergence $\\nabla . w _ { t } ( x ) ^ { 2 }$ , magnitude $\\| w _ { t } ( x ) \\| ^ { 2 }$ and smoothness $\\Vert \\nabla w _ { t } ( x ) \\Vert ^ { 2 }$ . ",
485
+ "bbox": [
486
+ 174,
487
+ 853,
488
+ 823,
489
+ 924
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "",
496
+ "bbox": [
497
+ 171,
498
+ 103,
499
+ 823,
500
+ 136
501
+ ],
502
+ "page_idx": 5
503
+ },
504
+ {
505
+ "type": "equation",
506
+ "img_path": "images/18fe2dff46e590585c081bd45c5186c206d8fe936d24ac0df7343cba03be85cd.jpg",
507
+ "text": "$$\nL _ { t } = \\sum _ { x \\in \\Omega } \\rho ( \\hat { I } _ { t + 1 } ( x ) - I _ { t + 1 } ( x ) ) + \\lambda _ { \\mathrm { d i v } } ( \\nabla . w _ { t } ( x ) ) ^ { 2 } + \\lambda _ { \\mathrm { m a g n } } \\left\\| w _ { t } ( x ) \\right\\| ^ { 2 } + \\lambda _ { \\mathrm { g r a d } } \\left\\| \\nabla w _ { t } ( x ) \\right\\| ^ { 2 }\n$$",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 191,
511
+ 160,
512
+ 787,
513
+ 195
514
+ ],
515
+ "page_idx": 5
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "4 EXPERIMENTS ",
520
+ "text_level": 1,
521
+ "bbox": [
522
+ 174,
523
+ 213,
524
+ 328,
525
+ 229
526
+ ],
527
+ "page_idx": 5
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "4.1 DATASET DESCRIPTION ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 174,
535
+ 246,
536
+ 377,
537
+ 261
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Since 1982, high resolution SST data has been made available by the NOAA6 weather satellite, Bernstein (1982). Dealing directly with these data requires a lot of preprocessing (e.g. some regions are not available due to clouds, hindering temperature acquisition). In order to avoid such complications which are beyond the scope of this work, we used synthetic but realistic SST data of the Atlantic ocean generated by a sophisticated simulation engine: NEMO (Nucleus for European Modeling of the Ocean) engine 2, Madec (2008). NEMO is a state-of-the-art modelling framework of ocean related engines. It is a primitive equation model adapted to the regional and global ocean circulation problems. Historical data is accumulated in the model to generate a synthesized estimate of the states of the system using data analysis, a specific data assimilation scheme, which means that the data does follow the true temperatures. The resulting dataset is constituted of daily temperature acquisitions of 481 by 781 pixels, from 2006-12-28 to 2017-04-05 (3734 acquisitions). ",
544
+ "bbox": [
545
+ 173,
546
+ 272,
547
+ 825,
548
+ 426
549
+ ],
550
+ "page_idx": 5
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "We extract 64 by 64 pixel sized sub-regions as indicated in figure 4.1. We use data from years 2006 to 2015 for training and validation (94743 training examples), and years 2016 to 2017 for testing. We withhold $20 \\%$ of the training data for validation, selected uniformly at random at the beginning of each experiment. For the tests we used sub-regions enumerated 17 to 20 in figure 4.1, where the interactions between hot and cold waters make the dynamics interesting to study. All the regions numbered in figure 4.1, from 2006 to 2015 where used for training 3. Each sequence of images used for training or for evaluation corresponds to a specific numbered sub-region. We make the simplifying hypothesis that the data in a single sub-region contains enough information to forecast the future of the sub-region. As the forecast is for a small temporal horizon we can assume that the influence from outside the region is small enough. ",
555
+ "bbox": [
556
+ 173,
557
+ 433,
558
+ 825,
559
+ 571
560
+ ],
561
+ "page_idx": 5
562
+ },
563
+ {
564
+ "type": "image",
565
+ "img_path": "images/855f62d169f130a18846bdb7f728e625abf257f5ee4968a7803f13618e9171a8.jpg",
566
+ "image_caption": [
567
+ "Figure 4: Sub regions extracted for the dataset. Test regions are regions 17 to 20. "
568
+ ],
569
+ "image_footnote": [],
570
+ "bbox": [
571
+ 303,
572
+ 602,
573
+ 681,
574
+ 782
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "We normalize the daily SST acquisitions of each sub region using the mean and the standard deviation of all the SST data of the sub-region acquired on the same day of the year for all the years in the training set, i.e. the SST acquisition of sub-region 2 on date September 8th 2017 is standardized using the data of all the September 8th available in the dataset. This removes the seasonal component from SST data. ",
581
+ "bbox": [
582
+ 169,
583
+ 828,
584
+ 823,
585
+ 858
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "",
592
+ "bbox": [
593
+ 176,
594
+ 103,
595
+ 823,
596
+ 145
597
+ ],
598
+ "page_idx": 6
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "4.2 BASELINE COMPARISON",
603
+ "text_level": 1,
604
+ "bbox": [
605
+ 174,
606
+ 162,
607
+ 383,
608
+ 178
609
+ ],
610
+ "page_idx": 6
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "We compare our model with several baselines. Each model is evaluated with a mean square error metric, forecasting images on a horizon of 6 (we forecast from $I _ { t + 1 }$ to $I _ { t + 6 }$ and then average the MSE). The hyperparameters are tuned using the validation set. Neural network based models are run on a Titan $\\mathrm { X p }$ GPU, and runtime is given for comparison purpose. ",
615
+ "bbox": [
616
+ 174,
617
+ 189,
618
+ 825,
619
+ 246
620
+ ],
621
+ "page_idx": 6
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Concerning the constraints on the vector field $w$ (equation 6. the regularization coefficients selected via validation are $\\lambda _ { \\mathrm { d i v } } = 1$ , $\\lambda _ { \\mathrm { { m a g n } } } = - 0 . 0 3$ and $\\lambda _ { \\mathrm { g r a d } } = 0 . 4$ . The coefficient diffusion $D$ was set to 0.45 by cross validation. We also compare the results with the model without any regularization. ",
626
+ "bbox": [
627
+ 176,
628
+ 252,
629
+ 820,
630
+ 295
631
+ ],
632
+ "page_idx": 6
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Our reference model for forecasting is BerΒ΄ eziat & Herlin (2015), a numerical assimilation model Β΄ which relies on data assimilation. In BerΒ΄ eziat & Herlin (2015), the ocean’s dynamics are modeled Β΄ using shallow water equations Vallis (2017) and the initial conditions, along with other terms, are estimated using assimilation techniques Tremolet (2006). This is a state of the art assimilation model Β΄ for predicting ocean dynamics, here SST. ",
637
+ "bbox": [
638
+ 174,
639
+ 301,
640
+ 825,
641
+ 371
642
+ ],
643
+ "page_idx": 6
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "The other baselines are 1) an autoregressive convolutional-deconvolutional NN (ACNN), with an architecture similar to our CDNN module, but trained to predict the future image directly, without explicitly representing the motion vector field. Each past observation is used as an input channel (the 4 input images used in the experiments are concatenated), and the output is used as new input for multi step forecasting, 2) a ConvLSTM model Shi et al. (2015), which uses convolutional transitions in the inner LSTM module, and 3) the model in Mathieu et al. (2015) which is a multi-scale ACNN trained as a Generative Adversial Network (GAN). We have used a non-official code for Mathieu et al. (2015), which is made available at https://github.com/dyelax/Adversarial_ Video_Generation. For BerΒ΄ eziat & Herlin (2015), the code has been provided by the authors Β΄ of the paper. We have implemented the ACNN and ConvLSTM models ourselves. The code for our models, along with these baselines will be made available. ",
648
+ "bbox": [
649
+ 173,
650
+ 378,
651
+ 825,
652
+ 530
653
+ ],
654
+ "page_idx": 6
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "4.3 QUANTITATIVE RESULTS ",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 174,
662
+ 549,
663
+ 388,
664
+ 563
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "table",
670
+ "img_path": "images/3626a0d83f5c4f29cd7ba6520298268b097e0db9ce7ec2342acfe2e8c97a5fe1.jpg",
671
+ "table_caption": [],
672
+ "table_footnote": [],
673
+ "table_body": "<table><tr><td>Model</td><td>Average Score (MSE)</td><td>Average Time</td></tr><tr><td>Numerical model BΓ©rΓ©ziat &amp; Herlin (2015)</td><td>1.99</td><td>4.8 s</td></tr><tr><td>ConvLSTM Shi et al. (2015)</td><td>5.76</td><td>0.018 s</td></tr><tr><td>ACNN</td><td>15.84</td><td>0.54 s</td></tr><tr><td>GAN Video Generation (Mathieu et al. (2015))</td><td>4.73</td><td>0.096 s</td></tr><tr><td>Proposed model with regularization</td><td>1.42</td><td>0.040 s</td></tr><tr><td>Proposed model without regularization</td><td>2.01</td><td>0.040 s</td></tr></table>",
674
+ "bbox": [
675
+ 192,
676
+ 580,
677
+ 802,
678
+ 688
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Table 1: Average score and average time on test data. Average score is calculated using the mean square error metric (MSE), time is in seconds. The regularization coefficients for our model have been set using a validation set with $\\lambda _ { \\mathrm { d i v } } = 1$ , $\\lambda _ { \\mathrm { { m a g n } } } = - 0 . 0 3$ and $\\lambda _ { \\mathrm { g r a d } } = 0 . 4$ . ",
685
+ "bbox": [
686
+ 174,
687
+ 712,
688
+ 825,
689
+ 756
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Quantitatively, our model performs well. The MSE score is better than any of the baselines. The closest NN baseline is Mathieu et al. (2015) which regularizes a regression convolutiondeconvolution model with a GAN. The performance is however clearly below the proposed model and it does not allow to easily incorporate prior constraints inspired from the physics of the phenomenon. ACNN is a direct predictor of the image sequence, implemented via a CDNN module identical to the one used in our model. Its performance is poor. Clearly, a straightforward use of prediction models is not adapted to the complexity of the phenomenon. ConvLSTM performs better: as opposed to the ACNN, it seems to be able to capture a dynamic, although not very accurately. Overall, direct prediction models are not able to capture the complex underlying dynamics and they produce blurry sequences of images. The GAN explicitly forces the network output to eliminate the blurring effect and then makes it able to capture short term dynamics. The state of the art numerical model BerΒ΄ eziat & Herlin (2015), performs well but has a slighthly lower performance than our reg- Β΄ ularized model, although it incorporates more prior constraints. This shows that pure ML models, when conceived adequately and when trained with enough data, can be competitive with state of the art dedicated models. Regularizing the motion vector $w$ notably increases the performance w.r.t. to the unregularized model. The choice of the constraints (divergence, magnitude and smoothness) inspired here by physical background correspond to relevant priors on the dynamics of the model. ",
696
+ "bbox": [
697
+ 174,
698
+ 770,
699
+ 825,
700
+ 924
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "image",
706
+ "img_path": "images/0538e3fec59746d81f644731393a61c8431a5d123666afbf52804482ea01d9d5.jpg",
707
+ "image_caption": [
708
+ "Figure 5: From top to bottom: target, our model prediction, our model flow, numerical assimilation model , ACNN, ConvLSTM. Data correspond to daily temperatures from January 17 to January 23, 2017 "
709
+ ],
710
+ "image_footnote": [],
711
+ "bbox": [
712
+ 223,
713
+ 133,
714
+ 789,
715
+ 767
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "",
722
+ "bbox": [
723
+ 174,
724
+ 103,
725
+ 823,
726
+ 188
727
+ ],
728
+ "page_idx": 8
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "As for the running time, the proposed model is extremely fast, being just above the ConvLSTM model of Shi et al. (2015). The running time of BerΒ΄ eziat & Herlin (2015)’s model is not comparable Β΄ to the others. It was run on a CPU (no GPU code) when all the others were run on Titan $\\mathrm { X p }$ GPU. However, an optimization procedure is required to estimate the motion field, and it is clearly slower than the straightforward NN predictions. Moreover, in order to prevent the numerical scheme from diverging, multiple intermediate forecasts are required. ",
733
+ "bbox": [
734
+ 174,
735
+ 194,
736
+ 825,
737
+ 277
738
+ ],
739
+ "page_idx": 8
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Besides MSE, we need to analyze the prediction samples qualitatively. Figure 4.3 shows the predictions obtained by the different models. On the top row, the ground truth for a sequence of 4 temperature images corresponding to time $t .$ , $t + 1$ , $t + 3$ and $t + 6$ . The second row corresponds to our regularized model prediction at times $t + 1 , t + 3$ and $t + 6$ (time $t$ corresponds to the last input image, it is repeated on each row). The model seems to conserve temperatures. The prediction is close to the target for $t + 1 , t + 3$ and starts to move away at time $t + 6$ . The third row shows the motion flow estimated by the model. Each color in the flow images corresponds to a motion vector. There is clearly a strong evolving dynamic captured for this sequence. Row 4 is the numerical assimilation model of BerΒ΄ eziat & Herlin (2015). It also clearly captures some dynamics and shows Β΄ interesting patterns, but it tends to diverge when the prediction horizon increases. The ACNN model (row 5) rapidly produces blurry images; it does not preserve the temperatures and does not seem to capture any dynamics. On row 6 are plotted the predictions of the ConvLSTM model. Temperature is not preserved and although a dynamic is captured, it does not correspond to the target. Overall, the proposed model seems to forecast SST quite accurately, while retrieving a coherent motion vector field. ",
744
+ "bbox": [
745
+ 174,
746
+ 285,
747
+ 825,
748
+ 492
749
+ ],
750
+ "page_idx": 8
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "5 RELATED WORK ",
755
+ "text_level": 1,
756
+ "bbox": [
757
+ 176,
758
+ 515,
759
+ 344,
760
+ 531
761
+ ],
762
+ "page_idx": 8
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "ML for Physical modeling Close to this work is the field of spatio-temporal statistics. In their reference book Cressie & Wikle (2015) also advocate the use of physical background knowledge to build statistical models. They show how the design of statistical models can be inspired from partial differential equations linked to an observed physical phenomenon. They mainly consider auto-regressive models within a hierarchical Bayesian framework. In Raissi et al. (2017), Archambeau et al. (2007) and Alvarez et al. (2011) the author use PDE-inspired gaussian process to model physical process. Even if the methods and the application are different, the motivation and arguments are similar to the ones developed here. ",
767
+ "bbox": [
768
+ 174,
769
+ 547,
770
+ 825,
771
+ 659
772
+ ],
773
+ "page_idx": 8
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Another interesting research direction is the use of NNs for reducing the complexity of numerical simulation for physical processes. Generally, in these approaches statistical models are used in place of a computational demanding component of the numerical simulation process. For example in the domain of fluid dynamics, Tompson et al. (2017) and Ladicky et al. (2015) propose to use regressors Β΄ for simulating fluid and smoke animation. Ladicky et al. (2015) use a random forest to compute Β΄ particle location and Tompson et al. (2017) use a CNN to approximate part of a numerical PDE scheme. In these approaches, ML is only a component of a numerical simulation scheme whereas we aim at modeling the whole physical process via a Deep Learning approach. Farther to our objective, Rudy et al. (2017) make use of a sparse regression method for discovering the governing partial differential equation(s) of a given system by time series measurements in the spatial domain. Other works have suggested using neural networks for physical process forecast, such as Brajard et al. (2017). ",
778
+ "bbox": [
779
+ 174,
780
+ 666,
781
+ 825,
782
+ 833
783
+ ],
784
+ "page_idx": 8
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Our work is also related to recent developments in computer vision, in the related but distinct fields of video prediction and motion estimation in videos. Our goal and the domain of application are clearly different from video modeling, but since our solution involves predicting a motion field and the next SST image, the solutions share some similarities. Motion estimation and video predictions by deep architectures have motivated a series of work over the last two years. We briefly review them below and outline the differences. ",
789
+ "bbox": [
790
+ 174,
791
+ 840,
792
+ 825,
793
+ 922
794
+ ],
795
+ "page_idx": 8
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Optical Flow Optical flow consists in retrieving the apparent motion of objects, surfaces, or particles between two consecutive frames of a video. The extracted motion can be used in many areas such as object detection, object tracking, movement detection, robot navigation and visual odometry. In the vision community, this is considered as a problem by itself and several papers are dedicated to this topic. Classical methods rely on the brightness constancy constrain equation (BCCE) (equation 2), derived from the observation that surfaces usually persist over time and hence the intensity value of a small region remains the same despite its position change Sun et al. (2008). Since using BCCE directly leads to complicated optimizing issues, classic approaches – namely differential methods – approximate BCCE using a first order Taylor expansion and develop variational methods. ",
800
+ "bbox": [
801
+ 173,
802
+ 103,
803
+ 825,
804
+ 229
805
+ ],
806
+ "page_idx": 9
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "As an alternative to these methods, Deep Learning models have been recently proposed for estimating the optical flow between 2 images. Fischer et al. (2015) formulate optical flow as a supervised regression problem, using a CNN to predict motion. Ilg et al. (2016) build on this approach and propose to use an ensemble of these CNN architectures. They assess results on par with state of the art methods for optical flow, while maintaining a small computational overhead. The difficulty here is that these methods require a notable quantity of target data, i.e. optical flow images, while because of the complexity of manually annotating flow images, there are only a few small annotated collections available. Fischer et al. (2015) and Ilg et al. (2016) chose to pretrain their model on a synthetic dataset made of computer animations and their associated motion and show that this information transfers well to real videos. Yu et al. (2016) demonstrate that it is possible to predict the optical flow between two input images in an unsupervised way using a CNN and a Spatial Transformer Network. This is however not extensible for prediction as is done in our setting since this requires the two images $I _ { t }$ and $I _ { t + 1 }$ as input while $I _ { t + 1 }$ is not available at inference time for prediction. ",
811
+ "bbox": [
812
+ 173,
813
+ 236,
814
+ 825,
815
+ 416
816
+ ],
817
+ "page_idx": 9
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Video prediction ",
822
+ "text_level": 1,
823
+ "bbox": [
824
+ 174,
825
+ 422,
826
+ 290,
827
+ 438
828
+ ],
829
+ "page_idx": 9
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "It is only very recently that video prediction emerged as a task in the Deep Learning community. For this task, people are generally interested at predicting accurately the displacement/ emergence/ disappearing of objects in the video. In our application, the goal is clearly different since we are interested into modeling the whole dynamics behind image changes and not at following moving objects. Let us first introduce some methods that perform prediction by computing optical flow or a similar transformation. Both Patraucean et al. (2015) and Finn et al. (2016) use some form of motion flow estimation. For next frame prediction Patraucean et al. (2015) introduce a STN module at the hidden layer of a LSTM in order do estimate a motion field in this latent space. The resulting image is then decoded in the original image space for prediction. This approach clearly does not allow introducing prior knowledge on the field vector as this has been done in our work. Finn et al. (2016) learn affine transformations on image parts in order to predict object displacement and Van Amersfoort et al. (2017) proposed a similar model. ",
834
+ "bbox": [
835
+ 174,
836
+ 445,
837
+ 825,
838
+ 611
839
+ ],
840
+ "page_idx": 9
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Let us now consider models that directly attempt to predict the next frame without estimating a motion field. As shown in the experimental section, plain application of autoregressive models produces blurred images. Mathieu et al. (2015), one of our baseline proposed to use different loss functions and a GAN regularization of a CDNN predictor which led to sharper and higher quality predictions. Significant improvements have been obtained with the Video Pixel Network of Kalchbrenner et al. (2016), which is a sophisticated architecture composed of resolution preserving CNN encoders, LSTM and PixelCNN decoders which form a conditional Spatio-temporal video autoencoder with differentiable memory. This model is probably state of the art today for video prediction, They reach a high accuracy on moving MNIST and good performance on a robot video dataset. A drawback is the complexity of the model and the number of parameters: they are using respectively $2 0 \\bf { M }$ and $1 \\textbf { M }$ frames on these two datasets. We did not test this model since up to our knowledge no code was available. ",
845
+ "bbox": [
846
+ 174,
847
+ 618,
848
+ 825,
849
+ 785
850
+ ],
851
+ "page_idx": 9
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "6 CONCLUSION AND FUTURE WORK ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 174,
859
+ 809,
860
+ 488,
861
+ 823
862
+ ],
863
+ "page_idx": 9
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "The evolution in time of the proposed model is deterministic. Predicting future observations should also deal with the inherent ambiguity and lack of information for the prediction task. A natural future direction would be to incorporate uncertainty in the model’s evolution in the proposed framework. We can extend the proposed model by incorporating a stochastic latent variable in the flow field generation process. A promising direction is the development of generative models which has become popular in Deep Learning, leading to different families of innovative models. For example, the Stochastic Gradient Variational Bayes algorithm (SGVB) Kingma & Welling (2014) provides a framework for learning stochastic latent variables with deep neural networks, and has recently been used by some authors to model time series Karl et al. (2016); Chung et al. (2015); Krishnan et al. (2015). A recent work where both spatial and temporal information are considered is Walker et al. (2016) who model pixel trajectories in a video. As a follow up of our work, we plan to consider such extensions in the future. ",
868
+ "bbox": [
869
+ 174,
870
+ 840,
871
+ 823,
872
+ 924
873
+ ],
874
+ "page_idx": 9
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "",
879
+ "bbox": [
880
+ 174,
881
+ 103,
882
+ 825,
883
+ 186
884
+ ],
885
+ "page_idx": 10
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "The data intensive paradigm offers alternative directions to the classical physical approaches for modeling complex natural processes. Our belief is that cross fertilization of both paradigms is essential for pushing further the frontier of complex data modeling. By using as an example application a relatively complex problem concerning ocean dynamics, we proposed a principled way to design Deep Learning models using inspiration from the physics. The proposed approach can be easily generalized to a class of problems for which the underlying dynamics follow advection-diffusion principles. We have compared the proposed approach to a series of baselines. It is able to reach performance comparable to a state of the art numerical model and clearly outperform alternative NN models used as baselines. ",
890
+ "bbox": [
891
+ 174,
892
+ 194,
893
+ 825,
894
+ 319
895
+ ],
896
+ "page_idx": 10
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "ACKNOWLEDGMENTS ",
901
+ "text_level": 1,
902
+ "bbox": [
903
+ 176,
904
+ 335,
905
+ 326,
906
+ 348
907
+ ],
908
+ "page_idx": 10
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "This work was partially funded by ANR project LOCUST - ANR-15-CE23-0027 and by CLEAR - Center for LEArning & data Retrieval - joint lab. With Thales (www.thalesgroup.com). ",
913
+ "bbox": [
914
+ 176,
915
+ 358,
916
+ 821,
917
+ 387
918
+ ],
919
+ "page_idx": 10
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "REFERENCES ",
924
+ "text_level": 1,
925
+ "bbox": [
926
+ 176,
927
+ 409,
928
+ 285,
929
+ 422
930
+ ],
931
+ "page_idx": 10
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "Mauricio A Alvarez, David Luengo, and Neil D Lawrence. Linear latent force models using gaussian processes. 2011. ",
936
+ "bbox": [
937
+ 174,
938
+ 431,
939
+ 823,
940
+ 459
941
+ ],
942
+ "page_idx": 10
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "Cedric Archambeau, Dan Cornford, Manfred Opper, and John Shawe-Taylor. Gaussian process approximations of stochastic differential equations. In Gaussian Processes in Practice, pp. 1–16, 2007. ",
947
+ "bbox": [
948
+ 174,
949
+ 468,
950
+ 823,
951
+ 510
952
+ ],
953
+ "page_idx": 10
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "Dominique BerΒ΄ eziat and Isabelle Herlin. Β΄ Coupling Dynamic Equations and Satellite Images for Modelling Ocean Surface Circulation, pp. 191–205. Springer International Publishing, Cham, 2015. ISBN 978-3-319-25117-2. doi: 10.1007/978-3-319-25117-2 12. URL https://doi. org/10.1007/978-3-319-25117-2_12. ",
958
+ "bbox": [
959
+ 174,
960
+ 518,
961
+ 825,
962
+ 575
963
+ ],
964
+ "page_idx": 10
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "R. L. Bernstein. Sea surface temperature estimation using the noaa 6 satellite advanced very high resolution radiometer. Journal of Geophysical Research: Oceans, 87(C12):9455–9465, 1982. ISSN 2156-2202. doi: 10.1029/JC087iC12p09455. URL http://dx.doi.org/10.1029/ JC087iC12p09455. ",
969
+ "bbox": [
970
+ 174,
971
+ 584,
972
+ 825,
973
+ 640
974
+ ],
975
+ "page_idx": 10
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "Julien Brajard, Anastase Alexandre Charantonis, and F Jourdin. Predicting ocean dynamics through machine learning: Application on sea-surface suspended particulate mater. In American Meteorological Society Annual Meeting 2017, 2017. ",
980
+ "bbox": [
981
+ 173,
982
+ 648,
983
+ 825,
984
+ 693
985
+ ],
986
+ "page_idx": 10
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 29802988. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/ 5653-a-recurrent-latent-variable-model-for-sequential-data.pdf. ",
991
+ "bbox": [
992
+ 173,
993
+ 700,
994
+ 825,
995
+ 771
996
+ ],
997
+ "page_idx": 10
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "N. Cressie and C.K. Wikle. Statistics for Spatio-Temporal Data. Wiley, 2015. ISBN 9781119243045. URL https://books.google.fr/books?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ 4L_dCgAAQBAJ. ",
1002
+ "bbox": [
1003
+ 171,
1004
+ 779,
1005
+ 825,
1006
+ 809
1007
+ ],
1008
+ "page_idx": 10
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Chelsea Finn, Ian J. Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. CoRR, abs/1605.07157, 2016. URL http://arxiv.org/abs/ 1605.07157. ",
1013
+ "bbox": [
1014
+ 173,
1015
+ 816,
1016
+ 825,
1017
+ 858
1018
+ ],
1019
+ "page_idx": 10
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Philipp Fischer, Alexey Dosovitskiy, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Β¨ Patrick van der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. CoRR, abs/1504.06852, 2015. URL http://arxiv.org/abs/ 1504.06852. ",
1024
+ "bbox": [
1025
+ 174,
1026
+ 867,
1027
+ 825,
1028
+ 922
1029
+ ],
1030
+ "page_idx": 10
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385. ",
1035
+ "bbox": [
1036
+ 171,
1037
+ 103,
1038
+ 823,
1039
+ 133
1040
+ ],
1041
+ "page_idx": 11
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. CoRR, abs/1612.01925, 2016. URL http://arxiv.org/abs/1612.01925. ",
1046
+ "bbox": [
1047
+ 176,
1048
+ 140,
1049
+ 823,
1050
+ 184
1051
+ ],
1052
+ "page_idx": 11
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. CoRR, abs/1506.02025, 2015. URL http://arxiv.org/abs/1506.02025. ",
1057
+ "bbox": [
1058
+ 169,
1059
+ 191,
1060
+ 823,
1061
+ 222
1062
+ ],
1063
+ "page_idx": 11
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Β¨ Graves, and Koray Kavukcuoglu. Video pixel networks. CoRR, abs/1610.00527, 2016. URL http://arxiv.org/abs/1610.00527. ",
1068
+ "bbox": [
1069
+ 176,
1070
+ 229,
1071
+ 823,
1072
+ 272
1073
+ ],
1074
+ "page_idx": 11
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick van der Smagt. Deep variational bayes filters: Unsupervised learning of state space models from raw data. ICLR 2017, 2016. ",
1079
+ "bbox": [
1080
+ 171,
1081
+ 280,
1082
+ 825,
1083
+ 309
1084
+ ],
1085
+ "page_idx": 11
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. ICLR 2014, 2014. ",
1090
+ "bbox": [
1091
+ 173,
1092
+ 318,
1093
+ 769,
1094
+ 333
1095
+ ],
1096
+ "page_idx": 11
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Rahul G Krishnan, Uri Shalit, and David Sontag. Deep kalman filters. arXiv preprint arXiv:1511.05121, 2015. ",
1101
+ "bbox": [
1102
+ 174,
1103
+ 342,
1104
+ 823,
1105
+ 371
1106
+ ],
1107
+ "page_idx": 11
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "L’ubor Ladicky, SoHyeon Jeong, Barbara Solenthaler, Marc Pollefeys, and Markus Gross. Data- Β΄ driven fluid simulations using regression forests. ACM Trans. Graph., 34(6):199:1–199:9, October 2015. ISSN 0730-0301. doi: 10.1145/2816795.2818129. URL http://doi.acm.org/ 10.1145/2816795.2818129. ",
1112
+ "bbox": [
1113
+ 173,
1114
+ 378,
1115
+ 825,
1116
+ 435
1117
+ ],
1118
+ "page_idx": 11
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Haibin Ling and K. Okada. Diffusion distance for histogram comparison. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 1, pp. 246– 253, June 2006. doi: 10.1109/CVPR.2006.99. ",
1123
+ "bbox": [
1124
+ 173,
1125
+ 444,
1126
+ 825,
1127
+ 486
1128
+ ],
1129
+ "page_idx": 11
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "G. Madec. NEMO ocean engine. Note du Pole de mod Λ† elisation, Institut Pierre-Simon Laplace Β΄ (IPSL), France, No 27, ISSN No 1288-1619, 2008. ",
1134
+ "bbox": [
1135
+ 173,
1136
+ 494,
1137
+ 823,
1138
+ 523
1139
+ ],
1140
+ "page_idx": 11
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond Β¨ mean square error. CoRR, abs/1511.05440, 2015. URL http://arxiv.org/abs/1511. 05440. ",
1145
+ "bbox": [
1146
+ 173,
1147
+ 532,
1148
+ 825,
1149
+ 575
1150
+ ],
1151
+ "page_idx": 11
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Viorica Patraucean, Ankur Handa, and Roberto Cipolla. Spatio-temporal video autoencoder with differentiable memory. CoRR, abs/1511.06309, 2015. URL http://arxiv.org/abs/ 1511.06309. ",
1156
+ "bbox": [
1157
+ 174,
1158
+ 583,
1159
+ 826,
1160
+ 626
1161
+ ],
1162
+ "page_idx": 11
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Numerical gaussian processes for time-dependent and non-linear partial differential equations. arXiv preprint arXiv:1703.10230, 2017. ",
1167
+ "bbox": [
1168
+ 173,
1169
+ 635,
1170
+ 826,
1171
+ 678
1172
+ ],
1173
+ "page_idx": 11
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Samuel H. Rudy, Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz. Data-driven discovery of partial differential equations. SCIENCE ADVANCES β€”, 3(April), 2017. URL http://arxiv. org/abs/1607.01067. ",
1178
+ "bbox": [
1179
+ 173,
1180
+ 685,
1181
+ 825,
1182
+ 729
1183
+ ],
1184
+ "page_idx": 11
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. CoRR, abs/1506.04214, 2015. URL http://arxiv.org/abs/1506.04214. ",
1189
+ "bbox": [
1190
+ 173,
1191
+ 737,
1192
+ 825,
1193
+ 781
1194
+ ],
1195
+ "page_idx": 11
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Deqing Sun, Stefan Roth, J. P. Lewis, and Michael J. Black. Learning Optical Flow, pp. 83–97. Springer Berlin Heidelberg, Berlin, Heidelberg, 2008. ISBN 978-3-540-88690-7. doi: 10.1007/ 978-3-540-88690-7 7. URL https://doi.org/10.1007/978-3-540-88690-7_7. ",
1200
+ "bbox": [
1201
+ 173,
1202
+ 789,
1203
+ 825,
1204
+ 832
1205
+ ],
1206
+ "page_idx": 11
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Jonathan Tompson, Kristofer Schlachter, Pablo Sprechmann, and Ken Perlin. Accelerating Eulerian fluid simulation with convolutional networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 3424–3433, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/ tompson17a.html. ",
1211
+ "bbox": [
1212
+ 173,
1213
+ 839,
1214
+ 825,
1215
+ 924
1216
+ ],
1217
+ "page_idx": 11
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Yannick Tremolet. Accounting for an imperfect model in 4d-var. Β΄ Quarterly Journal of the Royal Meteorological Society, 132(621):2483–2504, 2006. ",
1222
+ "bbox": [
1223
+ 173,
1224
+ 103,
1225
+ 823,
1226
+ 132
1227
+ ],
1228
+ "page_idx": 12
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Geoffrey K Vallis. Atmospheric and oceanic fluid dynamics. Cambridge University Press, 2017. ",
1233
+ "bbox": [
1234
+ 173,
1235
+ 140,
1236
+ 808,
1237
+ 157
1238
+ ],
1239
+ "page_idx": 12
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Joost Van Amersfoort, Anitha Kannan, Marc’Aurelio Ranzato, Arthur Szlam, Du Tran, and Soumith Chintala. Transformation-Based Models of Video Sequences. In CoRR abs/1701.08435 (2017), pp. 1–11, 2017. URL http://arxiv.org/abs/1701.08435. ",
1244
+ "bbox": [
1245
+ 176,
1246
+ 165,
1247
+ 823,
1248
+ 208
1249
+ ],
1250
+ "page_idx": 12
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision, 2016. ",
1255
+ "bbox": [
1256
+ 173,
1257
+ 215,
1258
+ 825,
1259
+ 258
1260
+ ],
1261
+ "page_idx": 12
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Jason J. Yu, Adam W. Harley, and Konstantinos G. Derpanis. Back to Basics: Unsupervised Learning of Optical Flow via Brightness Constancy and Motion Smoothness, pp. 3–10. Springer International Publishing, Cham, 2016. ISBN 978-3-319-49409-8. doi: 10.1007/978-3-319-49409-8 1. URL https://doi.org/10.1007/978-3-319-49409-8_1. ",
1266
+ "bbox": [
1267
+ 176,
1268
+ 267,
1269
+ 823,
1270
+ 325
1271
+ ],
1272
+ "page_idx": 12
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Yi Zhu, Zhen-Zhong Lan, Shawn D. Newsam, and Alexander G. Hauptmann. Guided optical flow learning. CoRR, abs/1702.02295, 2017. URL http://arxiv.org/abs/1702.02295. ",
1277
+ "bbox": [
1278
+ 176,
1279
+ 334,
1280
+ 823,
1281
+ 363
1282
+ ],
1283
+ "page_idx": 12
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "A PROOF OF THE THEOREM IN SECTION 2 1 ",
1288
+ "text_level": 1,
1289
+ "bbox": [
1290
+ 174,
1291
+ 102,
1292
+ 550,
1293
+ 118
1294
+ ],
1295
+ "page_idx": 13
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Proof. In the following, bold $\\mathbf { x }$ and $\\mathbf { y }$ will denote vectors of $\\mathbb { R } ^ { 2 }$ , while $x$ and $y$ will correspond to the first and second components of $\\mathbf { x }$ , respectively. Analogously, $u$ and $v$ will correspond to the components of $w$ . The 2D Fourier Transformation $\\mathcal { F }$ of $f : \\bar { \\mathbb { R } } ^ { 2 } \\bar { \\mathbb { R } }$ is defined as ",
1300
+ "bbox": [
1301
+ 174,
1302
+ 132,
1303
+ 825,
1304
+ 176
1305
+ ],
1306
+ "page_idx": 13
1307
+ },
1308
+ {
1309
+ "type": "equation",
1310
+ "img_path": "images/c1e10b449d1712428e04327e795e62e9ccc969d4924535b3d40dd65f446d9ea5.jpg",
1311
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathcal { F } ( f ) = \\int _ { \\mathbb { R } ^ { 2 } } f ( \\mathbf { x } ) e ^ { - i < \\xi , \\mathbf { x } > } d \\mathbf { x } } \\\\ { \\displaystyle \\ = \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } f ( x , y ) e ^ { - i x \\xi _ { 1 } - i y \\xi _ { 2 } } d x d y } \\end{array}\n$$",
1312
+ "text_format": "latex",
1313
+ "bbox": [
1314
+ 367,
1315
+ 184,
1316
+ 630,
1317
+ 253
1318
+ ],
1319
+ "page_idx": 13
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "We apply the Fourier Transform $\\mathcal { F }$ to both sides of 3. As consequence of the linearity of the Fourier transform, we can calculate decompose the Fourier transform of the left hand side in the sum of the transforms of each term. We have three terms: $\\begin{array} { r } { \\frac { \\partial I } { \\partial t } , ( w . \\nabla ) I } \\end{array}$ and $- D \\nabla ^ { 2 } I$ . ",
1324
+ "bbox": [
1325
+ 173,
1326
+ 262,
1327
+ 825,
1328
+ 306
1329
+ ],
1330
+ "page_idx": 13
1331
+ },
1332
+ {
1333
+ "type": "equation",
1334
+ "img_path": "images/be4ad8f62a7fdc91a94efa4a55bad61766cf617c58ac3902370065f63ef5b851.jpg",
1335
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathcal { F } ( \\frac { \\partial I } { \\partial t } ) = \\int _ { \\mathbb { R } ^ { 2 } } \\frac { \\partial I } { \\partial t } e ^ { - i < \\mathbf { x } , \\xi > } d \\mathbf { x } } \\\\ { \\displaystyle \\ = \\int _ { \\mathbb { R } ^ { 2 } } \\frac { \\partial } { \\partial t } ( I e ^ { - i < \\mathbf { x } , \\xi > } ) d \\mathbf { x } } \\\\ { \\displaystyle \\ = \\frac { \\partial } { \\partial t } \\int _ { \\mathbb { R } ^ { 2 } } I e ^ { - i < \\mathbf { x } , \\xi > } d \\mathbf { x } } \\\\ { \\displaystyle \\ = \\frac { \\partial \\mathcal { F } ( I ) } { \\partial t } } \\end{array}\n$$",
1336
+ "text_format": "latex",
1337
+ "bbox": [
1338
+ 387,
1339
+ 327,
1340
+ 611,
1341
+ 463
1342
+ ],
1343
+ "page_idx": 13
1344
+ },
1345
+ {
1346
+ "type": "equation",
1347
+ "img_path": "images/47f3c8b54c83d55ee10071d59cf6281dd4c9688e184a0820a4ed385206cdad5e.jpg",
1348
+ "text": "$$\n\\begin{array} { r l } { F ( ( w , \\nabla ) I ) = \\displaystyle \\int _ { \\mathbb { R } ^ { 2 } } ( w , \\nabla ) I e ^ { - i \\omega \\cdot \\xi } d x } \\\\ { = \\displaystyle \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } ( w \\frac { \\partial I } { \\partial x } + v \\frac { \\partial I } { \\partial y } ) e ^ { - i x \\xi _ { 1 } - \\mathrm { i } y \\xi _ { 2 } } d x d y } \\\\ { = \\displaystyle \\mu \\int _ { \\mathbb { R } } e ^ { - i \\psi \\cdot \\xi } \\int _ { \\mathbb { R } } \\frac { \\partial I } { \\partial x } e ^ { - i \\xi _ { 1 } } d x d y + v \\displaystyle \\int _ { \\mathbb { R } } e ^ { - i \\psi \\xi _ { 1 } } \\int _ { \\mathbb { R } } \\frac { \\partial I } { \\partial y } e ^ { - i y \\xi _ { 2 } } d y d x } \\\\ { = \\displaystyle i \\xi _ { 1 } w \\int _ { \\mathbb { R } } e ^ { - i \\psi \\xi _ { 2 } } \\int _ { x } [ e ^ { - i \\psi \\xi _ { 1 } } d x d y + i \\xi _ { 2 } v \\int _ { \\mathbb { R } } e ^ { - i \\psi \\xi _ { 1 } } \\int _ { \\mathbb { R } } \\frac { \\partial I } { \\partial y } e ^ { - i y \\xi _ { 2 } } d y d x } \\\\ { = \\displaystyle \\tilde { U } _ { \\mathbb { R } } \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } e ^ { - i \\psi \\xi _ { 1 } - \\mathrm { i } \\psi _ { \\xi } } d x d y + v \\xi _ { 2 } v \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } I _ { \\mathbb { R } } e ^ { - i \\omega \\xi _ { 1 } - y \\psi } d x d y } \\\\ { = ( \\xi _ { 1 } w + i \\xi _ { 2 } v ) \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } \\int _ { \\mathbb { R } } - i \\omega \\xi _ { 1 } - i \\psi \\xi _ { 2 } d x d y } \\\\ { = i \\ < \\xi , w > F ( I ) } \\end{array}\n$$",
1349
+ "text_format": "latex",
1350
+ "bbox": [
1351
+ 227,
1352
+ 470,
1353
+ 772,
1354
+ 693
1355
+ ],
1356
+ "page_idx": 13
1357
+ },
1358
+ {
1359
+ "type": "equation",
1360
+ "img_path": "images/2a0c10eacce80df1f6be7842e12f14367bf1e7e2970fd9bccb55a14fcd0a4e3d.jpg",
1361
+ "text": "$$\n\\begin{array} { r l } { \\mathcal { F } ( - D \\nabla ^ { 2 } I ) = - \\int _ { \\mathbb { R } ^ { 2 } } D \\nabla ^ { 2 } I c ^ { - i \\nu \\xi } s c ^ { - \\alpha } k s ^ { \\zeta } d x } \\\\ { = - \\int _ { \\mathbb { R } ^ { 2 } } \\int _ { \\mathbb { R } ^ { 0 } } D \\big ( \\hat { \\partial } \\hat { \\partial } ^ { 2 } I + \\hat { \\partial } \\hat { \\partial } ^ { 2 } I \\big ) e ^ { - i \\alpha \\zeta _ { 1 } - i \\psi \\xi } d x d y } \\\\ { } & { = - D \\int _ { \\mathbb { R } ^ { 2 } } e ^ { - i \\nu \\xi } \\int _ { \\mathbb { R } ^ { 2 } } \\frac { \\partial ^ { 2 } I } { \\partial x ^ { 2 } } e ^ { - i \\alpha \\zeta _ { 1 } } d x d y - D \\int _ { \\mathbb { R } ^ { \\epsilon } } e ^ { - i \\alpha \\zeta _ { 1 } } \\int _ { \\mathbb { R } } \\frac { \\partial ^ { 2 } I } { \\partial y ^ { 2 } } e ^ { - i \\nu \\xi \\epsilon } d y d x } \\\\ { } & { = - ( \\delta _ { 1 } ) ^ { 2 } D \\int _ { \\mathbb { R } ^ { 2 } } e ^ { - i \\nu \\zeta _ { 1 } } \\int _ { \\mathbb { R } } { F } ^ { - i \\nu \\zeta _ { 1 } } d x d y d y - ( \\delta _ { 2 } ) ^ { 2 } D \\int _ { \\mathbb { R } ^ { \\epsilon } } e ^ { - i \\alpha \\zeta _ { 1 } } \\int _ { \\mathbb { R } } { F } ^ { - i \\nu \\zeta _ { 2 } } d y d x } \\\\ { } & { = D \\mathfrak { L } _ { 1 } ^ { 2 } \\int _ { \\mathbb { R } ^ { \\epsilon } } e ^ { - i \\alpha \\zeta _ { 2 } } \\int _ { \\mathbb { R } } { F } ^ { - i \\nu \\zeta _ { 2 } } d x d y + D \\mathfrak { L } _ { 2 } ^ { 2 } \\int _ { \\mathbb { R } ^ { \\epsilon } } e ^ { - i \\kappa \\zeta _ { 1 } } \\int _ { \\mathbb { R } } { F } ^ { i \\nu \\zeta - i \\psi \\zeta _ { 2 } } d y d x } \\\\ { } & { = D \\mathfrak { L } _ { 2 } ^ { 3 } \\int _ { \\mathbb { R } ^ { 2 } } \\int _ { \\mathbb { R } } { F } ^ { - i \\nu \\zeta _ { 2 } } d x d y + D \\mathfrak { L } _ { 2 } ^ { 2 } \\int _ { \\mathbb { R } } { F } ^ { - i \\nu \\zeta _ { 1 } } d x d y d x } \\\\ { } & = D \\mathfrak { L } _ { 1 } ^ { 3 } \\int _ \\mathbb \\end{array}\n$$",
1362
+ "text_format": "latex",
1363
+ "bbox": [
1364
+ 186,
1365
+ 703,
1366
+ 789,
1367
+ 930
1368
+ ],
1369
+ "page_idx": 13
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Regrouping all three previously calculated terms, we obtain ",
1374
+ "bbox": [
1375
+ 173,
1376
+ 103,
1377
+ 566,
1378
+ 119
1379
+ ],
1380
+ "page_idx": 14
1381
+ },
1382
+ {
1383
+ "type": "equation",
1384
+ "img_path": "images/7a38b2c228e4547f383b8a4150ef651a91d402f6a0ce96178c725dd86f28a186.jpg",
1385
+ "text": "$$\n\\frac { \\partial \\mathcal { F } ( I ) } { \\partial t } + ( i < \\xi , w > + D \\left\\| \\xi \\right\\| ^ { 2 } ) \\mathcal { F } ( I ) = 0\n$$",
1386
+ "text_format": "latex",
1387
+ "bbox": [
1388
+ 356,
1389
+ 135,
1390
+ 643,
1391
+ 166
1392
+ ],
1393
+ "page_idx": 14
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "This is a first order ordinary differential equation of the form $f ^ { \\prime } ( t ) + a f ( t ) = 0$ , which admits a known solution $f ( t ) = f ( 0 ) { e ^ { - a t } }$ . Thus, the solution of 11 is ",
1398
+ "bbox": [
1399
+ 171,
1400
+ 175,
1401
+ 826,
1402
+ 205
1403
+ ],
1404
+ "page_idx": 14
1405
+ },
1406
+ {
1407
+ "type": "equation",
1408
+ "img_path": "images/85a5a0136fedc29c2976cd292af0cf1329cef1f0003a13060b18ce57d89ee58a.jpg",
1409
+ "text": "$$\n\\begin{array} { r } { \\mathcal { F } ( I ) = \\mathcal { F } ( I ) _ { 0 } e ^ { - ( i < \\xi , w > + D \\| \\xi \\| ^ { 2 } ) t } } \\\\ { = \\mathcal { F } ( I ) _ { 0 } e ^ { - i < \\xi , w > t } e ^ { - D t \\| \\xi \\| ^ { 2 } } } \\end{array}\n$$",
1410
+ "text_format": "latex",
1411
+ "bbox": [
1412
+ 382,
1413
+ 229,
1414
+ 616,
1415
+ 275
1416
+ ],
1417
+ "page_idx": 14
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "where $\\mathcal { F } ( I ) _ { 0 }$ denotes the initial condition of the advection diffusion equation in the frequency domain. In order to obtain a solution of 3 in the spatial domain, we calculate the inverse Fourier Transform ${ \\mathcal { F } } ^ { - 1 }$ of 12. The multiplication of two functions in the frequency domain is equivalent to their convolution in the spatial domain, i.e. ${ \\mathcal { F } } ( f * g ) = { \\mathcal { F } } ( f ) { \\mathcal { F } } ( g )$ . Hence, the inverse of both terms $\\mathcal { F } ( I ) _ { 0 } e ^ { - i < \\xi , w > t }$ and $e ^ { - D t \\| \\boldsymbol { \\xi } \\| ^ { 2 } }$ can be calculated separately: ",
1422
+ "bbox": [
1423
+ 173,
1424
+ 286,
1425
+ 825,
1426
+ 362
1427
+ ],
1428
+ "page_idx": 14
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Multiplication by a complex exponential in the frequency domain is equivalent to a shift in the spatial domain : $\\bar { e } ^ { - i < \\xi , w \\bar { > } } \\mathcal { F } ( f ( \\bar { \\mathbf { x } } ) ) = \\mathcal { F } ( f ( \\mathbf { x } - w ) )$ , for $\\boldsymbol { v } \\in \\mathbb { R } ^ { 2 }$ . Thus, for the first term, ",
1433
+ "bbox": [
1434
+ 173,
1435
+ 381,
1436
+ 823,
1437
+ 411
1438
+ ],
1439
+ "page_idx": 14
1440
+ },
1441
+ {
1442
+ "type": "equation",
1443
+ "img_path": "images/ba531a1f044abcd42e6f2843fb8749e3c545fc64cfa2cb6c218f204d0f5a8720.jpg",
1444
+ "text": "$$\n\\mathcal { F } ^ { - 1 } ( \\mathcal { F } ( I ) _ { 0 } e ^ { - ( i < \\xi , w > ) t } ) = I _ { 0 } ( \\mathbf { x } - w )\n$$",
1445
+ "text_format": "latex",
1446
+ "bbox": [
1447
+ 367,
1448
+ 428,
1449
+ 629,
1450
+ 446
1451
+ ],
1452
+ "page_idx": 14
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "For the second term, we use the fact that the Fourier Transform of a Gaussian function also is a Gaussian function, i.e. $\\begin{array} { r } { \\mathcal { F } \\big ( \\frac { 1 } { 2 \\pi \\sigma ^ { 2 } } e ^ { - \\frac { 1 } { 2 \\sigma ^ { 2 } } \\| \\mathbf { x } \\| ^ { 2 } } \\big ) = e ^ { - \\frac { 1 } { 2 } \\sigma ^ { 2 } \\| \\boldsymbol { \\xi } \\| ^ { 2 } } } \\end{array}$ . Identifying $\\sigma ^ { 2 }$ with $2 D t$ , we have: ",
1457
+ "bbox": [
1458
+ 173,
1459
+ 455,
1460
+ 830,
1461
+ 489
1462
+ ],
1463
+ "page_idx": 14
1464
+ },
1465
+ {
1466
+ "type": "equation",
1467
+ "img_path": "images/39d72d35abb3d10beb5e25ff6d0314e9a54221ca15fade3e62b0b71d3c4d672d.jpg",
1468
+ "text": "$$\n\\mathcal { F } ^ { - 1 } ( e ^ { - D t \\| \\boldsymbol { \\xi } \\| ^ { 2 } } ) = \\frac { 1 } { 4 \\pi D t } e ^ { - \\frac { 1 } { 4 D t } \\| \\mathbf { x } \\| ^ { 2 } }\n$$",
1469
+ "text_format": "latex",
1470
+ "bbox": [
1471
+ 379,
1472
+ 503,
1473
+ 619,
1474
+ 535
1475
+ ],
1476
+ "page_idx": 14
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "As has been stated above, the solution is a convolution of both previously calculated terms: ",
1481
+ "bbox": [
1482
+ 169,
1483
+ 542,
1484
+ 769,
1485
+ 559
1486
+ ],
1487
+ "page_idx": 14
1488
+ },
1489
+ {
1490
+ "type": "equation",
1491
+ "img_path": "images/d5181f94aeaa40708964d718f50eb9c04c1671bbb1d1b3db6da24454c5dc2246.jpg",
1492
+ "text": "$$\n\\begin{array} { r } { I ( \\mathbf { x } , t ) = \\displaystyle \\int _ { \\mathbb { R } ^ { 2 } } \\frac { 1 } { 4 \\pi D t } e ^ { - \\frac { 1 } { 4 D t } \\| \\mathbf { y } \\| ^ { 2 } } I _ { 0 } ( \\mathbf { x } - w - \\mathbf { y } ) d y } \\\\ { = \\displaystyle \\int _ { \\mathbb { R } ^ { 2 } } \\frac { 1 } { 4 \\pi D t } e ^ { - \\frac { 1 } { 4 D t } \\| \\mathbf { x } - w - \\mathbf { y } \\| ^ { 2 } } I _ { 0 } ( \\mathbf { y } ) d \\mathbf { y } } \\end{array}\n$$",
1493
+ "text_format": "latex",
1494
+ "bbox": [
1495
+ 336,
1496
+ 583,
1497
+ 661,
1498
+ 652
1499
+ ],
1500
+ "page_idx": 14
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "B ON THE GENERALIZATION IN SPACE AND TIME ",
1505
+ "text_level": 1,
1506
+ "bbox": [
1507
+ 174,
1508
+ 102,
1509
+ 604,
1510
+ 118
1511
+ ],
1512
+ "page_idx": 15
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "The ability of the model to adapt to other conditions should be evaluated on other regions. This, however, requires a complete study by itself and is beyond the scope of this paper. We, however, present below complementary experiments aimed at assessing the potential of the proposed model for forecasting SST on sequences distant in time and space from the ones used for training. ",
1517
+ "bbox": [
1518
+ 174,
1519
+ 132,
1520
+ 825,
1521
+ 189
1522
+ ],
1523
+ "page_idx": 15
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "B.1 TEMPORAL DIMENSION ",
1528
+ "text_level": 1,
1529
+ "bbox": [
1530
+ 174,
1531
+ 205,
1532
+ 383,
1533
+ 219
1534
+ ],
1535
+ "page_idx": 15
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "In section 4, training has been performed on data from 2006 - 2015 and testing on the period 2016- 2017. In order to provide some indication of the model behavior on more distant time intervals between train and test data, we have performed experiments using the same regions (17 to 20) as in section 4, but using the period 2011 to 2017 for training and period 2006 to 2010 for testing. Figure B.1 shows the MSE curve on this test set, each point corresponding to the mean MSE on predictions performed on 6 days ahead the current date. The most important conclusion is probably that the MSE error remains in the same range for all these years. All the yearly error curve show a clear seasonal phenomenon with a higher prediction error during summer. A similar behavior has been observed when exchanging train and test data. ",
1540
+ "bbox": [
1541
+ 173,
1542
+ 231,
1543
+ 825,
1544
+ 357
1545
+ ],
1546
+ "page_idx": 15
1547
+ },
1548
+ {
1549
+ "type": "image",
1550
+ "img_path": "images/528806e279e8e0cafff934b99238f30f79d4eaee57852dbf4a070720a4a6a49c.jpg",
1551
+ "image_caption": [
1552
+ "Figure 6: Evaluation of our model’s accuracy in time on data from 2006 to 2010 using data from 2011 to 2017 for training. Regions 17 to 20 were used for both periods. Each day, we produce daily forecasts for 6 days ahead and calculate the associated mean square error. "
1553
+ ],
1554
+ "image_footnote": [],
1555
+ "bbox": [
1556
+ 204,
1557
+ 372,
1558
+ 787,
1559
+ 595
1560
+ ],
1561
+ "page_idx": 15
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "B.2 SPATIAL DIMENSION ",
1566
+ "text_level": 1,
1567
+ "bbox": [
1568
+ 174,
1569
+ 676,
1570
+ 362,
1571
+ 690
1572
+ ],
1573
+ "page_idx": 15
1574
+ },
1575
+ {
1576
+ "type": "text",
1577
+ "text": "In the experiments, the models have been trained and evaluated on selected regions (numbered 17 to 20 in Figure 4.1), considered as the most interesting for the observed dynamics. ",
1578
+ "bbox": [
1579
+ 173,
1580
+ 702,
1581
+ 823,
1582
+ 731
1583
+ ],
1584
+ "page_idx": 15
1585
+ },
1586
+ {
1587
+ "type": "table",
1588
+ "img_path": "images/0ab62c56b4419a4d94dd17969b76ac3bab26b6aa9a1c61cb38d05e3ef91e0077.jpg",
1589
+ "table_caption": [],
1590
+ "table_footnote": [],
1591
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Test Regions 17&amp;18</td><td rowspan=1 colspan=1>Test Regions 8&amp;9</td></tr><tr><td rowspan=1 colspan=1>Model trained on Regions 17 &amp; 18</td><td rowspan=1 colspan=1>1.43</td><td rowspan=1 colspan=1>1.22</td></tr><tr><td rowspan=1 colspan=1>Model trained on Regions 8&amp;9</td><td rowspan=1 colspan=1>1.90</td><td rowspan=1 colspan=1>1.19</td></tr></table>",
1592
+ "bbox": [
1593
+ 222,
1594
+ 742,
1595
+ 776,
1596
+ 787
1597
+ ],
1598
+ "page_idx": 15
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "Table 2: Evaluation of our model’s spatial generalization ability. We train our model on two distinct regions and calculate the MSE on both regions for each trained model. ",
1603
+ "bbox": [
1604
+ 173,
1605
+ 797,
1606
+ 823,
1607
+ 827
1608
+ ],
1609
+ "page_idx": 15
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "We describe below some results providing indications on how the model performs on regions different from the training ones. For these experiments, the model has been trained on regions 17 and 18 in Figure 4.1 and tested on two other regions (regions 8 and 9), and vice versa (trained on 8 and 9 and tested on 17 and 18). The two couples of regions have been selected so as to have different latitude and longitude. The underlying physical processes generating the data are known to be different in these regions: the overall motion in regions 17 and 18 is greater, and the difference between extreme temperature is larger, compared to regions 8 and 9. Experimental conditions are similar to the one described in section 4, i.e. 2006-2015 have been used for training and 2016-1017 for testing. ",
1614
+ "bbox": [
1615
+ 174,
1616
+ 839,
1617
+ 825,
1618
+ 924
1619
+ ],
1620
+ "page_idx": 15
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "",
1625
+ "bbox": [
1626
+ 173,
1627
+ 103,
1628
+ 821,
1629
+ 132
1630
+ ],
1631
+ "page_idx": 16
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "Results in Table B.2 show that the model generalizes reasonably well to unseen data from distant spatial regions, with a slight decrease in performance when training and test regions do not correspond. The performance loss is 0.47 for regions (17, 18) which show a strong dynamics, whereas it is only 0.03 for regions (8, 9) for which the dynamics are more stable. Most notably, MSE performance depends more on the region itself than on the train/ test conditions. Error is always higher in regions with strong dynamics (17, 18) than on more stable regions (8, 9) whatever the train/ test conditions are. Note that to further improve the results on distant data, it is possible to fine-tune the model using data from the studied regions. ",
1636
+ "bbox": [
1637
+ 174,
1638
+ 138,
1639
+ 825,
1640
+ 251
1641
+ ],
1642
+ "page_idx": 16
1643
+ },
1644
+ {
1645
+ "type": "image",
1646
+ "img_path": "images/7fa34cba44f56995c4ccd948262fe818c202d7bb2038a7cc5cbd04fe8d410b0f.jpg",
1647
+ "image_caption": [
1648
+ "Figure 7: Output for the 6 of May to the 9 of May 2016, Output , From top to bottom: target, our model prediction, our model flow "
1649
+ ],
1650
+ "image_footnote": [],
1651
+ "bbox": [
1652
+ 251,
1653
+ 154,
1654
+ 774,
1655
+ 445
1656
+ ],
1657
+ "page_idx": 17
1658
+ },
1659
+ {
1660
+ "type": "image",
1661
+ "img_path": "images/4ffe62ca072ede6593044ce1af87b6350592816bc760f6a707c20a78f7a4aa63.jpg",
1662
+ "image_caption": [
1663
+ "Figure 8: Output for the 6 of January to the 9 of January 2016. From top to bottom: target, our model prediction, our model flow "
1664
+ ],
1665
+ "image_footnote": [],
1666
+ "bbox": [
1667
+ 263,
1668
+ 556,
1669
+ 766,
1670
+ 842
1671
+ ],
1672
+ "page_idx": 17
1673
+ }
1674
+ ]
parse/train/By4HsfWAZ/By4HsfWAZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/By4HsfWAZ/By4HsfWAZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LSFCEb3GYU7/LSFCEb3GYU7.md ADDED
@@ -0,0 +1,509 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EMERGENT SYMBOLS THROUGH BINDING IN EXTERNAL MEMORY
2
+
3
+ Taylor W. Webb
4
+ University of California Los Angeles Los Angeles, CA
5
+ taylor.w.webb@gmail.com
6
+ Ishan Sinha, Jonathan D. Cohen
7
+ Princeton University
8
+ Princeton, NJ
9
+
10
+ # ABSTRACT
11
+
12
+ A key aspect of human intelligence is the ability to infer abstract rules directly from high-dimensional sensory data, and to do so given only a limited amount of training experience. Deep neural network algorithms have proven to be a powerful tool for learning directly from high-dimensional data, but currently lack this capacity for data-efficient induction of abstract rules, leading some to argue that symbol-processing mechanisms will be necessary to account for this capacity. In this work, we take a step toward bridging this gap by introducing the Emergent Symbol Binding Network (ESBN), a recurrent network augmented with an external memory that enables a form of variable-binding and indirection. This binding mechanism allows symbol-like representations to emerge through the learning process without the need to explicitly incorporate symbol-processing machinery, enabling the ESBN to learn rules in a manner that is abstracted away from the particular entities to which those rules apply. Across a series of tasks, we show that this architecture displays nearly perfect generalization of learned rules to novel entities given only a limited number of training examples, and outperforms a number of other competitive neural network architectures.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Human intelligence is characterized by a remarkable capacity to detect the presence of simple, abstract rules that govern high-dimensional sensory data, such as images or sounds, and then apply these to novel data. This capacity has been extensively studied by psychologists in both the visual domain, in tasks such as Raven’s Progressive Matrices (Raven & Court, 1938), and the auditory domain, in tasks that employ novel, artificial languages (Marcus et al., 1999).
17
+
18
+ In recent years, deep neural network algorithms have reemerged as a powerful tool for learning directly from high-dimensional data, though many studies have now demonstrated that these models suffer from similar limitations as those faced by the earlier generation of neural networks: requiring enormous amounts of training data and tending to generalize poorly outside the distribution of those training data (Lake & Baroni, 2018; Barrett et al., 2018). This stands in sharp contrast to the ability of human learners to infer abstract structure from a limited number of training examples and then systematically generalize that structure to problems involving novel entities.
19
+
20
+ It has long been argued that the human ability to generalize in this manner depends crucially on a capacity for variable-binding, that is, the ability to represent a problem in terms of abstract symbollike variables that are bound to concrete entities (Holyoak & Hummel, 2000; Marcus, 2001). This in turn can be broken down into two components: 1) a mechanism for indirection, the ability to bind two representations together and then use one representation to refer to and retrieve the other (Kriete et al., 2013), and 2) a representational scheme whereby one of the bound representations codes for abstract variables, and the other codes for the values of those variables.
21
+
22
+ In this work, we present a novel architecture designed around the goal of having a capacity for abstract variable-binding. This is accomplished through two important design considerations. First, the architecture possesses an explicit mechanism for indirection, in the form of a two-column external memory. Second, the architecture is separated into two information-processing streams, one that maintains learned embeddings of concrete entities (in our case, images), and one in which a recurrent controller learns to represent and operate over task-relevant variables. These two streams only interact in the form of bindings in the external memory, allowing the controller to learn to perform tasks in a manner that is abstracted away from the particular entities involved. We refer to this architecture as the Emergent Symbol Binding Network (ESBN), due to the fact that this arrangement allows abstract, symbol-like representations to emerge during the learning process, without the need to incorporate symbolic machinery.
23
+
24
+ We evaluate this architecture on a suite of tasks involving relationships among images that are governed by abstract rules. Across these tasks, we show that the ESBN is capable of learning abstract rules from a limited number of training examples and systematically generalizing these rules to novel entities. By contrast, the other architectures that we evaluate are capable of learning these rules in some cases, but fail to generalize them successfully when trained on a limited number of problems involving a limited number of entities. We conclude from these results that a capacity for variable-binding is a necessary component for human-like abstraction and generalization, and that the ESBN is a promising candidate for how to incorporate such a capacity into neural network algorithms.
25
+
26
+ # 2 TASKS
27
+
28
+ ![](images/dd626285c79ee67e710196f3856936479741bdc56e6485c4e26bff446cfd34c7.jpg)
29
+ Figure 1: Abstract rule learning tasks. Each task involves generalizing rules to objects not seen during training. (a) Same/different discrimination task. (b) Relational match-to-sample task (answer is 2). (c) Distribution-of-three task (answer is 2). (d) Identity rules task (ABA pattern, answer is 1).
30
+
31
+ We consider a series of tasks, each involving the application of an abstract rule to a set of images. For all tasks, we employ the same set of $n = 1 0 0$ images, in which each image is a distinct Unicode character (the specific characters used are shown in A.7). We construct training sets in which $m$ images are withheld (where $0 \leq m \leq n - o .$ , and $o$ is the minimum number of images necessary to create a problem in a given task) consisting of problems that employ only the remaining $( n -$ $m$ ) images, and then test on problems that employ only the $m$ withheld images, thus requiring generalization to novel entities. In the easiest generalization regime $\mathbf { \bar { \rho } } m = 0$ ) the test set contains problems composed of the same entities as observed during training (though the exact order of these entities differs). In the most extreme generalization regime, we evaluate models that have only been trained on the minimum number of entities for a given task, and then must generalize what they learn to the majority of the $n$ images in the complete set. This regime poses an extremely challenging test of the ability to learn to perform these tasks from limited training experience, in a manner that is abstracted away from the specific entities observed during training.
32
+
33
+ The first task that we study is a same/different discrimination task (Figure 1a). In this task, two images are presented, and the task is to determine whether they are the same or different. Though this task may appear quite simple, it has been shown that the ability to generalize this simple rule to novel entities is actually a significant challenge for deep neural networks (Kim et al., 2018), a pattern that we also observe in our results.
34
+
35
+ The second task that we consider is a relational match-to-sample (RMTS) task (Figure 1b), essentially a higher-order version of a same/different task. In this task, a source pair of objects is compared to two target pairs. The task is to identify the target pair with the same relation as the source pair; e.g., if the source pair contains two of the same object, to identify the target pair that contains two of the same object. It was initially believed that the ability to perform this task is not unique to humans (Premack, 1983), but it has now been shown that this ability depends on a visual entropy confound that arises from using large arrays of objects rather than simple pairs (Fagot et al., 2001). When the task is presented in a manner that does not allow this confound to be exploited (as is the case in our experiments), the ability to perform the task with novel entities appears to be unique to humans, and therefore is a good test of the human ability for abstract rule learning.
36
+
37
+ Next we consider a task based on Raven’s Progressive Matrices (RPM; Raven & Court (1938)). RPM is a commonly used visual problem-solving task, and is one of the most widely used tests of fluid intelligence (Snow et al., 1984), the ability to reason and make inferences in a novel domain (as opposed to crystallized intelligence, the ability to solve familiar tasks). In this task, a $3 \times 3$ array of figural elements is presented, in which the elements are governed by a simple rule, or set of rules, with the lower right element of the array left blank. The task is to infer the rule that governs the elements in the array, and then use that rule to select from among 8 candidate completions. Many of the rules that govern RPM problems are relations involving sets. One such rule is sometimes referred to as distribution-of-three (Carpenter et al., 1990), according to which the same set of three elements (e.g. a triangle, square, and circle) will appear in each row, though the order doesn’t matter. The task in this case is simply to identify the set, determining which element is missing from the final row, and locating this element among the choices.
38
+
39
+ Though multiple RPM-inspired datasets have recently been proposed (Barrett et al., 2018; Zhang et al., 2019), in this work we choose to strip away unnecessary complexity, focusing on $2 \times 3$ arrays governed by a single rule (Figure 1c), in order to focus specifically on the capacity for generalization of an abstract rule to novel entities. We find that, even in this simplified setting, this form of generalization is extremely challenging.
40
+
41
+ The final task that we consider is a visual version of the identity rules task studied by Marcus et al. (1999). In this task, an abstract pattern (e.g. ABA or ABB) must be inferred from a sequence of elements. For instance, in the original study, the following sequence β€˜ga ni ga, li na li, wo fe wo’ is governed by an ABA rule, whereas the sequence β€˜ga ni ni, li na na, wo fe fe’ is governed by an ABB rule. This study played an important role in debates concerning the presence of algebraic rulelike processes in human cognition, because it demonstrated that even 7-month-old human infants are capable of detecting this abstract regularity and generalizing it to novel entities, whereas neural networks tend to overfit to the specific entities involved and fail to generalize the rule.
42
+
43
+ In our implementation, we use visual images rather than sounds, and present the task as a $2 \times 3$ array (Figure 1d). In this task, each problem is governed by either an ABA, ABB, or AAA rule. The task is to determine which of these patterns is present in the first row, and then to apply that pattern by selecting an element from a set of 4 choices to complete the second row.
44
+
45
+ For all four tasks, we consider generalization regimes in which some number of images $( m \in$ $\{ 0 , 5 0 , 8 5 , 9 5 \}$ out of $n = 1 0 0$ ) are withheld from training. For the same/different discrimination task, on which only two images are necessary to construct a problem, we also consider the case in which $m = 9 8$ (such that the training set consists of problems involving only $n - m = 2$ images, the minimum number necessary to construct the task).
46
+
47
+ In most settings, we construct training sets consisting of $1 0 ^ { 4 }$ problems. This is a tiny fraction of all possible problems (on the order of $\mathrm { { \bar { 1 0 } ^ { 9 } } }$ when the multiple choice options are considered)1 Thus, even in the easiest generalization regime $( m = 0$ ) this is an extremely small amount of training data relative to the size of the task space. In the most extreme regimes, in which $m \geq 9 5$ , it is only possible to construct a few hundred problems, resulting in even more limited training experience.
48
+
49
+ # 3 APPROACH
50
+
51
+ For each task, we treat the problem as a sequence of images $\pmb { x } _ { t = 1 } . . . \pmb { x } _ { t = T }$ , with an associated target $\textbf { { y } }$ . In the same/different discrimination task, there are $T \ = \ 2$ images, and $\textbf { { y } }$ is a binary target indicating whether the images are the same or different. In the RMTS task, there are $T = 6$ images, consisting of the source pair followed by two target pairs, and $\textbf { { y } }$ is a binary target indicating which target pair matches the source pair. In both the distribution-of-three task and the identity rules task, there are $T = 9$ images, consisting of the three entries in the first row, the two non-empty entries in the second row, and the four multiple-choice options, and $\textbf { { y } }$ is a four-way classification target, indicating which of the multiple-choice options is correct.
52
+
53
+ All images are $3 2 \times 3 2$ grayscale images containing a single Unicode character. For each problem, we first process each image independently by a shared encoder $f _ { e }$ , generating image embeddings $z _ { t = 1 } , . . . z _ { t = T }$ , and then pass these embeddings to a sequential model component $f _ { s }$ that generates a response (either through a sigmoid output layer for tasks with a binary target, or a softmax layer for tasks with a four-way classification target). The sequential component is either the ESBN or one of a number of alternative architectures described below. We use the same encoder architecture $f _ { e }$ (detailed in A.3) for all models. All components are trained end-to-end, including the encoder.
54
+
55
+ # 3.1 TEMPORAL CONTEXT NORMALIZATION
56
+
57
+ We use temporal context normalization (TCN), recently shown to improve out-of-distribution generalization in relational reasoning tasks (Webb et al., 2020). TCN is similar to batch normalization, but, instead of normalizing over the batch dimension, normalizes over a task-relevant temporal window. This has the effect of preserving information about the relations between the entities present within this window (e.g. the size of those entities relative to one another), resulting in better generalization of learned relations to novel contexts (i.e. out-of-distribution).
58
+
59
+ We found that TCN significantly improved generalization for all of the models on all of the tasks studied in the present work2. Therefore, the primary results we report all incorporate this technique ( A.5.1 includes a comparison of the performance of all models on all tasks with and without TCN). Specifically, we applied TCN to the embeddings $z _ { t = 1 } , . . . z _ { t = T }$ extracted by the encoder. Webb et al. (2020) also reported that it is sometimes useful to apply TCN separately to different components of a sequence. We found that this was the case for the RMTS task that we studied, in which we found it useful to apply TCN separately to the embeddings for the source pair and each target pair. For all of the other tasks that we studied, TCN was applied over the entire sequence for each problem.
60
+
61
+ # 3.2 EMERGENT SYMBOL BINDING NETWORK
62
+
63
+ ![](images/476acc9f1cb7fbaf9e923b8b24ee79c4de4f1eee886b14ed4777c92f158a40c5.jpg)
64
+ Figure 2: Emergent Symbol Binding Network. $f _ { s }$ consists of an LSTM controller plus output layers for $\hat { \pmb { y } }$ , $k _ { w }$ , and $g$ (not shown). $f _ { e }$ is a multilayer feedforward encoder that translates an image $_ { \textbf { \em x } }$ into a low-dimensional embedding $_ { z }$ . These two pathways only interact indirectly via a key/value memory.
65
+
66
+ The ESBN (Figure 2; Algorithm 1) uses an LSTM controller $( f _ { s } )$ with a differentiable external memory that is explicitly separated into keys $( M _ { k } )$ and values $( M _ { v } )$ . At each time step $t$ , a key/value pair is written to memory. The keys written to memory, $k _ { w _ { t } }$ , are generated by an output layer from the LSTM controller, and the values are the individual input embeddings, ${ \boldsymbol { z } } _ { t }$ , of the input sequence, unmodified by the LSTM. Our hypothesis was that factoring the model into two separate information processing streams would allow the LSTM to learn how to represent abstract variables in the keys it generates, which could then be explicitly bound to associated values (image embeddings) learned by the separate encoder network $( f _ { e } )$ , allowing the ESBN to employ a form of indirection.
67
+
68
+ To retrieve keys from memory, similarity scores are computed by comparing (via a dot product) the image embedding ${ \boldsymbol { z } } _ { t }$ to all of the values in memory $M _ { v _ { t - 1 } }$ . These similarity scores are passed through a softmax nonlinearity to generate weights ${ \pmb w } _ { k _ { t } }$ , and passed through a sigmoid nonlinearity (with learned gain and bias parameters, $\gamma$ and $\beta$ ) to generate confidence values $c _ { k _ { t } }$ (one weight and confidence value per entry in memory). The weights are used to compute 1) a weighted sum of all keys in memory $M _ { k _ { t - 1 } }$ , and 2) a weighted sum of all associated confidence values $c _ { k _ { t } }$ . Finally, the retrieved key and associated confidence value are concatenated and multiplied by a learned sigmoidal gate $g _ { t }$ to form $\boldsymbol { k } _ { \boldsymbol { r } _ { t } }$ , the input to the LSTM controller at the next time step.
69
+
70
+ <table><tr><td>Algorithm 1: Emergent Symbol Binding Network. (ll) indicates the concatenation of a vector and a scalar, forming a vector with one additional dimension.{,} indicates the concatenation of a matrix and a vector,forming a matrix with one additional row. o() is the logistic sigmoid function.</td></tr><tr><td>ht=0←0; Mkt=0←{}; Mut=o←{; for t in1...Tdo Zt←fe(xt)οΌ›</td></tr><tr><td>yt,gt,kwt,ht ←fs(ht-1,krt-1); if t is 1 then krt←0; else</td></tr><tr><td>Wkt ← softmax(Mut-1Β·zt); Ckt← Οƒ(Ξ³(Mvt-1Β·zt)+Ξ²);</td></tr><tr><td>t-1 krt←gt M Wkt(i)(Mkt-1(i)llckt (i)) ; i=1</td></tr></table>
71
+
72
+ # 3.3 ALTERNATIVE ARCHITECTURES
73
+
74
+ The simplest alternative architecture that we consider is an LSTM (Hochreiter & Schmidhuber, 1997) without external memory. We pass the low-dimensional embeddings $z _ { t = 1 } , . . . z _ { t = T }$ directly to the LSTM, and generate a prediction $\hat { \pmb { y } }$ by passing the final hidden state through an output layer.
75
+
76
+ Next we consider two alternative external memory architectures: the Neural Turing Machine (NTM; Graves et al. (2014)) and Metalearned Neural Memory (MNM; Munkhdalai et al. (2019)). This comparison allows us to determine to what extent our results depend on the specific details of the ESBN’s external memory, and, in particular, the separation between its two informationprocessing pathways vs. the mere presence of an external memory. Our NTM implementation consists of an LSTM controller (which takes image embeddings as input, and generates a prediction $\hat { \textbf { \textit { y } } }$ as output) that interacts with an external memory using both content-based and location-based read/write mechanisms. Our MNM implementation employs the publicly available code from the original paper, modified so as to employ the same encoder architecture and TCN procedure as the other architectures that we test. Just as with the ESBN, we allow both of these architectures an extra time step to process the information retrieved from memory following the final input.
77
+
78
+ We also consider the Relation Net (RN; Santoro et al. (2017)), an architecture that has proven to be an effective approach for a wide range of relational reasoning tasks. In our implementation, we treat the low-dimensional image embeddings as individual β€˜objects’ in the RN framework, using a shared MLP to process all pair-wise combinations of these embeddings, summing the outputs from this MLP, and then passing them to another MLP that generates the prediction $\hat { \boldsymbol y }$ .
79
+
80
+ We also compare our model against the Transformer (Vaswani et al., 2017), an architecture originally developed in the domain of natural language processing, but has proven to be effective for a wide range of sequential data, and demonstrated a capacity for some degree of extrapolation (Saxton et al., 2019). After applying the transformer architecture to the sequence of image embeddings (allowing self-attention between these embeddings), we compute an average of the (transformed) embeddings, and then pass this to a small MLP that then generates the task output $\hat { \pmb { y } }$ .
81
+
82
+ Finally, we consider the PrediNet (Shanahan et al., 2019). PrediNet was designed with the goal of being β€˜explicitly relational,’ and has been shown to be effective at generalizing learned relations to novel entities. We apply the PrediNet’s multi-head attention over the 1D temporal sequence of image embeddings (as opposed to applying attention over a 2D image, as in the original work), and then pass the output of the PrediNet module to a small MLP that generates $\hat { \boldsymbol y }$ .
83
+
84
+ ![](images/4779e2f7fc5d68739eae072614bbe070f56d2a84d5b7a937fd32aecfc5d1091a.jpg)
85
+ Figure 3: Results for all four tasks with $m$ objects withheld (out of $n = 1 0 0$ ) during training. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
86
+
87
+ Figure 3 shows the generalization results for all four tasks. Our primary finding is that the ESBN displayed nearly perfect generalization $( \geq 9 5 \% )$ of the learned rule in all four tasks, even when trained on a very limited number of problems (just hundreds of problems, in the case of the most extreme generalization regimes) involving a limited number of entities (as few as just two entities, in the case of the same/different task), and tested on completely novel entities. Some of the alternative architectures that we evaluated showed a surprising capability to generalize to novel entities in some tasks as seen, for instance, in the generalization results for the Transformer and RN on the same/different and RMTS tasks (though we note that all architectures incorporate TCN, without which generalization is significantly worse, as shown in A.5.1). Nevertheless, none of these alternative architectures were able to generalize what they learned in the most extreme generalization regimes, whereas the ESBN performed comparably well across all regimes.
88
+
89
+ Notably, the RN performed very poorly on the distribution-of-three and identity rules tasks, even in the easiest regime $( m = 0$ ). We speculate that this results from the fact that the RN is biased toward pair-wise relations, whereas these tasks are both based on a ternary relation. It is possible to represent this ternary relation as a combination of pair-wise relations, but doing so requires a more complex strategy and therefore likely more training data. We include results in A.5.2 demonstrating that the RN is capable of successfully generalizing in this task (though not in the most extreme regimes) when trained on an order of magnitude more data $1 0 ^ { 5 }$ instead of $1 0 ^ { 4 }$ examples). We also present results for the Temporal Relation Network (Zhou et al., 2018), an RN variant that incorporates ternary relations via subsampling, though we find that this doesn’t help as much as increasing the amount of training data.
90
+
91
+ ![](images/a290863da2658abe383e52e522aff79c3ca9a9e6836ac6dd48ca5ac230ec8b77.jpg)
92
+ Figure 4: Training accuracy time courses for all models on the $m = 0$ regime. Each time course reflects an average over 10 trained networks. Error bars reflect the standard error of the mean.
93
+
94
+ In addition to requiring a very small amount of training data and generalizing systematically to novel entities, the ESBN also requires very little training time. Figure 4 shows training accuracy time courses for the RMTS, distribution-of-three, and identity rules tasks for all models 3. The ESBN converged to nearly perfect training accuracy within 100 to 200 training updates on all four tasks, whereas the other models required thousands, or even tens of thousands of training updates to reach convergence4.
95
+
96
+ We also performed some experiments to better understand how the ESBN operates, and why it was so effective. First, we tested whether the systematic generalization exhibited by the ESBN was dependent on the use of convolutional layers in the encoder, which naturally confer a significant degree of generalization in tasks that involve shape recognition. We found that the ESBN generalized to novel entities comparably well when using either an MLP encoder or a random projection (see A.5.4 for details), suggesting that the ESBN is capable of generalizing learned rules to any arbitrary set of entities, regardless of how those entities are encoded. For comparison, we also performed the same experiments with the Transformer (the best performing alternative architecture on our tasks) and found that, by contrast, its performance was significantly impaired by the use of a random projection instead of a convolutional encoder.
97
+
98
+ Second, we performed an ablation experiment on the confidence value appended to retrieved memories. We found that ablation of these confidence values impaired the ESBN’s performance in both the same/different and RMTS tasks, but not the distribution-of-three or identity rules tasks (see A.5.5 for details). A likely reason for this result is that the distribution-of-three and identity rules tasks only require retrieval of the best match from memory, whereas the same/different and RMTS tasks require a sense of how good of a match that memory is, which is exactly the information that the confidence value conveys. This dissociation mirrors the distinction sometimes made in cognitive psychology between recollection and familiarity (Yonelinas, 2001).
99
+
100
+ Third, we performed an analysis of the key representations learned by the controller. We hypothesized that the controller would learn to represent abstract variables in the keys that it writes to memory, and that these representations therefore shouldn’t vary based on the values to which they are bound. This analysis revealed a high degree of overlap between the keys written during training and test (involving entirely different entities), suggesting that this was indeed the case (see A.6 for details). This ability to arbitrarily bind values to variables, without affecting the representations of those variables, is a key property of symbol-processing systems, and is likely the basis of the strong systematic generalization exhibited by the ESBN.
101
+
102
+ # 5 RELATED WORK
103
+
104
+ There have been a number of proposals for augmenting neural networks with an external memory. An influential early line of work, Complementary Learning Systems (McClelland et al., 1995), proposed that neural systems benefit from having components that learn on different time scales, and argues that this combination allows neural networks both to learn general, abstract structure (using standard learning algorithms) and to rapidly encode arbitrary new items (using an external memory). In recent years, there have been a number of proposals for how to implement the latter efficiently, including Fast Weights (Ba et al., 2016a), the NTM and closely related Differentiable Neural Computer (Graves et al., 2016), and the Differentiable Neural Dictionary (DND; Pritzel et al. (2017)). Our external memory approach is most closely related to the DND, which also involves a two-column key/value memory. Variations on key/value memory have also been employed in other more recently proposed approaches, such as the Memory Recall Agent (Fortunato et al., 2019) and the Dual-Coding Episodic Memory (Hill et al., 2020), where it afforded various benefits in terms of generalization. One critical difference between our model and this previous work is that the ESBN’s controller is forced to interact with perceptual inputs only indirectly through its memory, a design decision that we argue is crucial to its ability to systematically generalize what it learns.
105
+
106
+ It is worth noting that architectures such as Fast Weights and the NTM are, in principle, capable of implementing variable-binding, though it is a separate question whether such a strategy will result from learning in any particular task. Along these lines, a recent study from Chen et al. (2019) found that both of these architectures are capable of generalizing learned structure to novel entities when allowed a sufficiently dense sampling of the space of potential objects (the β€˜objects’ in their study were randomly sampled 50-dimensional vectors). This contrasts with our findings, in which the NTM performed poorly when trained on far fewer samples from a much higher-dimensional space (in the $m = 9 5$ regime). This suggests that indirection and variable-binding, though possible in principle for architectures such as the NTM, do not emerge in practice when given only a limited amount of training experience, whereas this capacity is explicitly built into the ESBN.
107
+
108
+ At a high level, the idea of factoring a model into two distinct information processing streams, one that codes abstract task-relevant variables or roles and one that codes concrete entities, has been explored before. Kriete et al. (2013) proposed the PBWM Indirection model, in which one population of neurons acted as a pointer to another population of neurons by gating its activity, and showed that this model enabled a significant degree of generalization to novel role/filler bindings. Whittington et al. (2019) proposed the Tolman-Eichenbaum machine, a model that is capable of learning abstract relational structure (such as 2D spatial maps), and showed that this model captured a number of phenomena relating to grid cells and place cells. Russin et al. (2019) proposed Syntactic Attention, an architecture involving separate pathways for processing syntax vs. semantics, and showed that this approach was capable of a significant degree of compositional generalization on the challenging SCAN dataset. Relative to this previous work, our central contribution is the development of a simple model that can learn abstract rules directly from high-dimensional data (images), exploiting this same high-level idea to enable nearly perfect generalization of those rules to novel entities.
109
+
110
+ There has been extensive modeling work focusing on some of the tasks that we study. The recent development of two datasets modeled after Raven’s Progressive Matrices, Procedurally Generated Matrices (Barrett et al., 2018), and RAVEN (Zhang et al., 2019), has spurred the development of models that are capable of solving RPM-like problems (Jahrens & Martinetz, 2020; Wu et al., 2020). However, these models typically require very large training sets (on the order of $1 0 ^ { 6 }$ training examples), and largely fail to generalize outside of the specific conditions under which they are trained, whereas the ESBN exhibits the ability to learn rapidly and generalize out-of-distribution.
111
+
112
+ There have also been a number of models proposed to account for the human ability to rapidly learn identity rules (Alhama & Zuidema, 2019). Though some of these models achieved significant generalization of learned identity rules to novel entities, they did so mostly through the inclusion of highly task-specific mechanisms. By contrast, our aim in the present work was to present a general approach that could be applied to a wider range of tasks.
113
+
114
+ Finally, there have been a number of recent proposals for so-called β€˜neurosymbolic’ models, incorporating elements from both the neural network and symbolic modeling frameworks (Mao et al., 2019; Nye et al., 2020). Though we have emphasized the notion of β€˜emergent symbols’ in the present work, we stress that this is quite distinct from neurosymbolic modeling efforts since we do not explicitly incorporate any symbolic machinery into the ESBN. Instead, our approach was to show how the functional equivalent of symbols can emerge in a neural network model with an appropriate architecture and binding mechanism.
115
+
116
+ # 6 DISCUSSION
117
+
118
+ # 6.1 LIMITATIONS AND FUTURE WORK
119
+
120
+ One open question is whether the strict division between the two information processing streams in the ESBN is necessary, and whether it limits the sorts of relations and rules that it can learn. In future work, it may be desirable to soften this division, for instance by encouraging it in a regularization term, rather than strictly enforcing it architecturally.
121
+
122
+ A second limitation is that the tasks we study are not as complex as other similar tasks that have recently been studied, such as the two recently proposed RPM-like benchmarks (Barrett et al., 2018; Zhang et al., 2019). In the present work, we intentionally stripped away some of this complexity in order to make progress on the issue of out-of-distribution generalization. Extending the ESBN to more complex tasks will likely require the incorporation of visual attention mechanisms to enable selective sequential processing of individual elements within a scene. There are many recently proposed approaches for doing this (Gregor et al., 2015; Locatello et al., 2020). In future work, we look forward to extending the ESBN in this manner and testing it on more complex tasks.
123
+
124
+ # 6.2 RELATION TO WORK IN NEUROSCIENCE
125
+
126
+ It is worth considering how the present work relates to pre-existing theories of how the brain might implement variable-binding. Classic proposals for variable-binding in neural systems emphasize dynamic binding of representations, either by computing the tensor product between those representations (Smolensky, 1990), or by establishing synchronous activation between two pools of units (Hummel & Holyoak, 1997). An alternative proposal is that variable-binding is accomplished via semi-permanent synaptic changes in the hippocampus, relying on the same mechanism that plays a central role in episodic memory (Cer & O’Reilly, 2006). This approach relies on contextual information and retrieval processes to prevent potential interference between conflicting memories, rather than explicit unbinding mechanisms. Our model is more in line with the latter account, since it does not possess an unbinding mechanism. As such, our model can be seen as part of a recent trend toward the reinterpretation of putatively working memory functions in terms of episodic memory (Beukers et al., 2020).
127
+
128
+ # 7 CONCLUSION
129
+
130
+ In this work, we have presented a model of abstract rule learning based on a novel architecture, the ESBN, and shown that this model is capable of rapidly learning abstract rules directly from images given only a small amount of training experience, and then successfully generalizing those rules to novel entities. Key to the model’s performance is its separation into two streams that only interact through indirection, allowing the ESBN to learn tasks in a manner that is abstracted away from the specific entities involved, and resulting in the emergence of symbol-like representations. We believe that these results suggest that such a variable-binding capacity is an essential ingredient for achieving human-like abstraction and generalization, and hope that the ESBN will be a useful tool for doing so.
131
+
132
+ # ACKNOWLEDGMENTS
133
+
134
+ We would like to thank Zachary Dulberg, Steven Frankland, Randall O’Reilly, Alexander Petrov, and Simon Segert for their helpful feedback and discussions.
135
+
136
+ # REFERENCES
137
+
138
+ Raquel G Alhama and Willem Zuidema. A review of computational models of basic rule learning: The neural-symbolic debate and beyond. Psychonomic bulletin & review, 26(4):1174–1194, 2019.
139
+
140
+ Jimmy Ba, Geoffrey E Hinton, Volodymyr Mnih, Joel Z Leibo, and Catalin Ionescu. Using fast weights to attend to the recent past. In Advances in Neural Information Processing Systems, pp. 4331–4339, 2016a.
141
+
142
+ Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016b.
143
+
144
+ David GT Barrett, Felix Hill, Adam Santoro, Ari S Morcos, and Timothy Lillicrap. Measuring abstract reasoning in neural networks. arXiv preprint arXiv:1807.04225, 2018.
145
+
146
+ Andrew Beukers, Kenneth A Norman, and Jonathan D Cohen. Is activity silent working memory just episodic memory?, 2020.
147
+
148
+ Patricia A Carpenter, Marcel A Just, and Peter Shell. What one intelligence test measures: a theoretical account of the processing in the raven progressive matrices test. Psychological review, 97 (3):404, 1990.
149
+
150
+ Daniel M Cer and Randall C O’Reilly. Neural mechanisms of binding in the hippocampus and neocortex: insights from computational models., 2006.
151
+
152
+ Catherine Chen, Qihong Lu, Andre Beukers, Christopher Baldassano, and Kenneth A Norman. Learning to perform role-filler binding with schematic knowledge. arXiv preprint arXiv:1902.09006, 2019.
153
+
154
+ Joel Fagot, Edward A Wasserman, and Michael E Young. Discriminating the relation between Β¨ relations: the role of entropy in abstract conceptualization by baboons (papio papio) and humans (homo sapiens). Journal of Experimental Psychology: Animal Behavior Processes, 27(4):316, 2001.
155
+
156
+ Meire Fortunato, Melissa Tan, Ryan Faulkner, Steven Hansen, Adria Puigdom \` enech Badia, Gavin \` Buttimore, Charles Deck, Joel Z Leibo, and Charles Blundell. Generalization of reinforcement learners with working and episodic memory. In Advances in Neural Information Processing Systems, pp. 12469–12478, 2019.
157
+
158
+ Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 249–256, 2010.
159
+
160
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
161
+
162
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G Β΄ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, Β΄ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016.
163
+
164
+ Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015.
165
+
166
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
167
+
168
+ Felix Hill, Olivier Tieleman, Tamara von Glehn, Nathaniel Wong, Hamza Merzic, and Stephen Clark. Grounded language learning fast and slow. arXiv preprint arXiv:2009.01719, 2020.
169
+
170
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. Β¨ Neural computation, 9(8): 1735–1780, 1997.
171
+
172
+ Keith J Holyoak and John E Hummel. The proper treatment of symbols in a connectionist architecture. Cognitive dynamics: Conceptual change in humans and machines, 229:263, 2000.
173
+
174
+ John E Hummel and Keith J Holyoak. Distributed representations of structure: A theory of analogical access and mapping. Psychological review, 104(3):427, 1997.
175
+
176
+ Marius Jahrens and Thomas Martinetz. Solving raven’s progressive matrices with multi-layer relation networks. arXiv preprint arXiv:2003.11608, 2020.
177
+
178
+ Junkyung Kim, Matthew Ricci, and Thomas Serre. Not-so-clevr: learning same–different relations strains feedforward neural networks. Interface focus, 8(4):20180011, 2018.
179
+
180
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
181
+
182
+ Trenton Kriete, David C Noelle, Jonathan D Cohen, and Randall C O’Reilly. Indirection and symbol-like processing in the prefrontal cortex and basal ganglia. Proceedings of the National Academy of Sciences, 110(41):16390–16395, 2013.
183
+
184
+ Brenden Lake and Marco Baroni. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In International Conference on Machine Learning, pp. 2873–2882. PMLR, 2018.
185
+
186
+ Francesco Locatello, Dirk Weissenborn, Thomas Unterthiner, Aravindh Mahendran, Georg Heigold, Jakob Uszkoreit, Alexey Dosovitskiy, and Thomas Kipf. Object-centric learning with slot attention. arXiv preprint arXiv:2006.15055, 2020.
187
+
188
+ Jiayuan Mao, Chuang Gan, Pushmeet Kohli, Joshua B Tenenbaum, and Jiajun Wu. The neurosymbolic concept learner: Interpreting scenes, words, and sentences from natural supervision. arXiv preprint arXiv:1904.12584, 2019.
189
+
190
+ Gary Marcus. The algebraic mind, 2001.
191
+
192
+ Gary F Marcus, Sugumaran Vijayan, S Bandi Rao, and Peter M Vishton. Rule learning by sevenmonth-old infants. Science, 283(5398):77–80, 1999.
193
+
194
+ James L McClelland, Bruce L McNaughton, and Randall C O’Reilly. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3):419, 1995.
195
+
196
+ Tsendsuren Munkhdalai, Alessandro Sordoni, Tong Wang, and Adam Trischler. Metalearned neural memory. In Advances in Neural Information Processing Systems, pp. 13331–13342, 2019.
197
+
198
+ Maxwell I Nye, Armando Solar-Lezama, Joshua B Tenenbaum, and Brenden M Lake. Learning compositional rules via neural program synthesis. arXiv preprint arXiv:2003.05562, 2020.
199
+
200
+ David Premack. The codes of man and beasts. Behavioral and Brain Sciences, 6(1):125–136, 1983.
201
+
202
+ Alexander Pritzel, Benigno Uria, Sriram Srinivasan, Adria Puigdomenech, Oriol Vinyals, Demis Hassabis, Daan Wierstra, and Charles Blundell. Neural episodic control. arXiv preprint arXiv:1703.01988, 2017.
203
+
204
+ John C Raven and JH Court. Raven’s progressive matrices. Western Psychological Services Los Angeles, CA, 1938.
205
+
206
+ Jake Russin, Jason Jo, Randall C O’Reilly, and Yoshua Bengio. Compositional generalization in a deep seq2seq model by separating syntax and semantics. arXiv preprint arXiv:1904.09708, 2019.
207
+
208
+ Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pp. 4967–4976, 2017.
209
+
210
+ David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. Analysing mathematical reasoning abilities of neural models. arXiv preprint arXiv:1904.01557, 2019.
211
+
212
+ Murray Shanahan, Kyriacos Nikiforou, Antonia Creswell, Christos Kaplanis, David Barrett, and Marta Garnelo. An explicitly relational neural network architecture. arXiv preprint arXiv:1905.10307, 2019.
213
+
214
+ Ishan Sinha, Taylor W Webb, and Jonathan D Cohen. A memory-augmented neural network model of abstract rule learning. arXiv preprint arXiv:2012.07172, 2020.
215
+
216
+ Paul Smolensky. Tensor product variable binding and the representation of symbolic structures in connectionist systems. Artificial intelligence, 46(1-2):159–216, 1990.
217
+
218
+ Richard E Snow, Patrick C Kyllonen, and Brachia Marshalek. The topography of ability and learning correlations. Advances in the psychology of human intelligence, 2(S 47):103, 1984.
219
+
220
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
221
+
222
+ Taylor W Webb, Zachary Dulberg, Steven M Frankland, Alexander A Petrov, Randall C O’Reilly, and Jonathan D Cohen. Learning representations that support extrapolation. arXiv preprint arXiv:2007.05059, 2020.
223
+
224
+ James CR Whittington, Timothy H Muller, Shirley Mark, Guifen Chen, Caswell Barry, Neil Burgess, and Timothy EJ Behrens. The tolman-eichenbaum machine: Unifying space and relational memory through generalisation in the hippocampal formation. BioRxiv, pp. 770495, 2019.
225
+
226
+ Yuhuai Wu, Honghua Dong, Roger Grosse, and Jimmy Ba. The scattering compositional learner: Discovering objects, attributes, relationships in analogical reasoning. arXiv preprint arXiv:2007.04212, 2020.
227
+
228
+ Andrew P Yonelinas. Consciousness, control, and confidence: the 3 cs of recognition memory. Journal of Experimental Psychology: General, 130(3):361, 2001.
229
+
230
+ Chi Zhang, Feng Gao, Baoxiong Jia, Yixin Zhu, and Song-Chun Zhu. Raven: A dataset for relational and analogical visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5317–5327, 2019.
231
+
232
+ Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 803–818, 2018.
233
+
234
+ # A APPENDIX
235
+
236
+ # A.1 CODE AVAILABILITY
237
+
238
+ All code, including code for dataset generation, model implementation, training, and evaluation, is available on GitHub.
239
+
240
+ # A.2 DATASET GENERATION
241
+
242
+ In this section, we provide details on the dataset generation process for all tasks. In all of our simulations, a dataset was generated from scratch (according to the procedures described below) at the beginning of each training run, such that different runs involved different datasets, though the statistics were the same across these datasets. We did this to prevent the possibility that our results would reflect biases present in a particular dataset.
243
+
244
+ Table 1: Training and test set sizes for the same/different discrimination task.
245
+
246
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85</td><td>m= 95</td><td>m=98</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Training</td><td>18,810</td><td>4,900</td><td>420</td><td>40</td><td>4</td></tr><tr><td>Test</td><td>990</td><td>4,900</td><td>10,000</td><td>10,000</td><td>10,000</td></tr></table>
247
+
248
+ # A.2.1 SAME/DIFFERENT DISCRIMINATION
249
+
250
+ Given $n = 1 0 0$ total images, with $m = 0$ withheld during training, there are $n ^ { 2 } = 1 0 ^ { 4 }$ possible same/different problems. To prevent the potential for networks to be biased by the fact that the overwhelming majority of these are β€˜different’ problems, we created balanced datasets by including duplicates of the β€˜same’ problems. Specifically, we randomly sampled (with replacement) $n ( n - 1 )$ of the $n$ unique β€˜same’ trials and combined them with the $n ( n - 1 )$ unique β€˜different’ trials, resulting in $2 n ( n - 1 ) = 1 9$ , 800 total problems. We reserved 990 of these problems for test, yielding training sets including 18, 810 problems (ensuring that duplicates of the same problem did not appear in both the training and test sets).
251
+
252
+ We followed a similar procedure for the other regimes, generating balanced datasets by duplicating the β€˜same’ problems when necessary. These datasets incorporated either all of the problems that resulted from this procedure (given the $n { - } m$ images available for training, or the $m$ images available for test), or $1 0 , 0 0 0$ problems, whichever was smaller. The exact size of each of these datasets is shown in Table 1.
253
+
254
+ # A.2.2 RMTS
255
+
256
+ Table 2: Training and test set sizes for the RMTS task.
257
+
258
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Training</td><td>10,000</td><td>10,000</td><td>10,000</td><td>480</td></tr><tr><td>Test</td><td>10.000</td><td>10,000</td><td>10,000</td><td>10,000</td></tr></table>
259
+
260
+ For the RMTS task, we constructed balanced training and test sets ensuring that there were an equal number of problems with a β€˜same’ vs. β€˜different’ source pair. These datasets contained either 10, 000 problems, or the minimum number of problems possible in a given regime, whichever was smaller (Table 2). For most regimes, 10, 000 problems constitutes a tiny fraction of the full space of possible problems (ranging from $1 0 ^ { 9 }$ for the $m = 0$ regime to $1 0 ^ { 5 }$ for the training set in the $m = 8 5$ regime), and thus there was no need to duplicate problems to achieve balanced datasets. For the $m = 9 5$ regime, there are only 480 possible training problems, which happen to include the same number of β€˜same’ and β€˜different’ trial types.
261
+
262
+ # A.2.3 DISTRIBUTION-OF-THREE
263
+
264
+ Table 3: Training and test set sizes for the distribution-of-three task.
265
+
266
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Training</td><td>10,000</td><td>10,000</td><td>10,000</td><td>360</td></tr><tr><td>Test</td><td>10,000</td><td>10,000</td><td>10,000</td><td>10,000</td></tr></table>
267
+
268
+ For the distribution-of-three task, we generated problems by randomly selecting three of the available images in a given regime (either $n - m$ images during training, or $m$ images during test), and then randomly sampling two permutations of those images for the two rows (allowing the possibility that the same permutation appears in both rows) of the $2 \times 3$ matrix. We then randomly selected a fourth image to appear with the other three as possible answers, and randomly permuted these four answer choices. When taking into account the identity of this fourth image, and the permutation of the answer choices, the number of unique distribution-of-three problems in the $m = 0$ regime is on the order of $1 0 ^ { 1 0 }$ .
269
+
270
+ For most regimes, we randomly created training and test sets consisting of 10, 000 randomly sampled problems. For the $m = 9 5$ regime, the training set consisted of 360 problems (the total number of unique problems possible in this regime when not considering the identity and order of the answer choices, which were randomly selected).
271
+
272
+ # A.2.4 IDENTITY RULES
273
+
274
+ Table 4: Training and test set sizes for the identity rules task.
275
+
276
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m=95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Training</td><td>10,000</td><td>10,000</td><td>10,000</td><td>8,640</td></tr><tr><td>Test</td><td>10,000</td><td>10,000</td><td>10,000</td><td>10,000</td></tr></table>
277
+
278
+ For the identity rules task, we constructed datasets with an approximately balanced (through uniform random sampling) number of ABA, ABB, and AAA problems. These datasets consisted of either $1 0 , 0 0 0$ problems, or the minimum number of possible problems in a given regime, whichever was smaller (Table 4). For the training set in the $m = 9 5$ regime, datasets consisting of 8, 640 problems were constructed from the 7, 200 possible unique problems in this regime, by duplicating the AAA problems to match the number of ABA/ABB problems. For all other datasets, $1 0 , 0 0 0$ problems constituted a small fraction of the total number of possible problems (ranging from $1 0 ^ { \bar { 9 } }$ for the $m = 0$ regime to $1 0 ^ { 6 }$ for the training set in the $m = 8 5$ regime), and no duplication was necessary to achieve balanced problem types.
279
+
280
+ # A.3 IMPLEMENTATION DETAILS FOR ALL MODELS
281
+
282
+ # A.3.1 ENCODER
283
+
284
+ We used the same feedforward encoder architecture to process each of the images in a sequence $\pmb { x } _ { t = 1 } . . . \pmb { x } _ { t = T }$ , generating low-dimensional embeddings $z _ { t = 1 } , . . . z _ { t = T }$ that were then passed to the core sequential component of each model (either the ESBN or one of the alternative architectures)5. This encoder consisted of three convolutional layers, each with 32 channels, a $4 \times 4$ kernel, and a stride of 2, followed by two fully-connected layers with 256 units and 128 units respectively. All layers used ReLU nonlinearities. All weights were initialized using a Kaiming normal distribution (He et al., 2015), and all biases were initialized to 0.
285
+
286
+ # A.3.2 TASK OUTPUT LAYER
287
+
288
+ All models had an output layer for generating $\hat { \boldsymbol y }$ . The number of units and the nonlinearity depended on the task. For the same/different and RMTS tasks, the output layer had 1 unit and a sigmoid nonlinearity (producing a number between 0 and 1 to code for β€˜same’ vs. β€˜different’, or pair 1 vs. pair 2). For the distribution-of-three and identity rules tasks, the output layer had 4 units and a softmax nonlinearity (to select 1 of the 4 answer choices). The weights of the output layer were initialized using an Xavier normal distribution (Glorot & Bengio, 2010), and the biases were initialized to 0.
289
+
290
+ # A.3.3 ESBN
291
+
292
+ The details of the ESBN’s operations are given in Algorithm 1. The LSTM controller had 1 layer with 512 units, and employed the standard tanh nonlinearities and sigmoidal gates. The controller also had output layers for $k _ { w }$ (256 units with a ReLU nonlinearity), $g$ (1 unit with a sigmoid nonlinearity), and $\hat { \boldsymbol y }$ . The input to the controller at each time step was $k _ { r }$ , the key retrieved from memory at the previous time step (along with the associated confidence value, $c _ { k } .$ ). At the beginning of each sequence, $k _ { r }$ and the controller’s hidden state $^ { h }$ were initialized to 0.
293
+
294
+ After processing a full sequence, the ESBN was allowed an additional time step for the controller to process the retrieved key associated with the final input. After this additional time step, the final hidden state of the LSTM was passed through the task output layer to generate the prediction $\hat { \pmb { y } }$ . We note that it is also possible to retrieve values from memory (from $M _ { v }$ ) using a similar procedure and then decode these values to make predictions in image space (Sinha et al., 2020), but in the present work we focus only on the classification component of the model.
295
+
296
+ The input weights for the LSTM controller were initialized using an Xavier normal distribution with a gain value of $5 / 3$ . The weights for the LSTM’s gates, as well as the weights for the output layer for the gate $g$ , were initialized with an Xavier normal distribution (with a gain of 1). The weights for the output layer that produced $k _ { w }$ were initialized using a Kaiming normal distribution. All biases were initialized to 0. The parameters $\gamma$ and $\beta$ were initialized to 1 and 0 respectively.
297
+
298
+ # A.3.4 LSTM
299
+
300
+ The LSTM architecture had 1 layer with 512 units. Image embeddings were passed to the LSTM as a sequence, after which $\hat { \pmb { y } }$ was generated through a task output layer. The LSTM’s hidden state was initialized to 0 at the beginning of each sequence. The LSTM’s weights were initialized using the same scheme as the LSTM controller in the ESBN (using an Xavier normal distribution, with a gain of $5 / 3$ for the input weights and 1 for the gates), and biases were initialized to 0.
301
+
302
+ # A.3.5 NTM
303
+
304
+ The NTM had an LSTM controller (1 layer with 512 units). The LSTM’s hidden state was initialized to 0 at the beginning of each sequence, and the LSTM’s parameters were initialized in the same way as the LSTM architecture and the controller for the ESBN. The NTM had one write head and one read head. The read head had the following output layers:
305
+
306
+ 1. read key: 256 units, tanh nonlinearity, weights initialized using an Xavier normal distribution with a gain of $5 / 3$ .
307
+ 2. key strength: 1 unit, softplus nonlinearity, weights initialized using a Kaiming normal distribution.
308
+ 3. interpolation gate: 1 unit, sigmoid nonlinearity, weights initialized using an Xavier normal distribution with a gain of 1.
309
+ 4. shift weights: 3 units (corresponding to the allowable shifts $- 1 , 0$ , and 1), softmax nonlinearity, weights initialized using an Xavier normal distribution with a gain of 1.
310
+
311
+ The write head had the following output layers:
312
+
313
+ 1. erase vector: 256 units, sigmoid nonlinearity, weights initialized using an Xavier normal distribution with a gain of 1.
314
+ 2. add vector: 256 units, tanh nonlinearity, weights initialized using an Xavier normal distribution with a gain of $5 / 3$ .
315
+ 3. write key: 256 units, tanh nonlinearity, weights initialized using an Xavier normal distribution with a gain of $5 / 3$ .
316
+ 4. key strength: 1 unit, softplus nonlinearity, weights initialized using a Kaiming normal distribution.
317
+ 5. interpolation gate: 1 unit, sigmoid nonlinearity, weights initialized using an Xavier normal distribution with a gain of 1.
318
+ 6. shift weights: 3 units (corresponding to the allowable shifts $- 1 , 0$ , and 1), softmax nonlinearity, weights initialized using an Xavier normal distribution with a gain of 1.
319
+
320
+ All biases for these output layers were initialized to 0. The NTM used these outputs to interact with its external memory, employing all of the location- and content-based mechanisms described in the original work (Graves et al., 2014). Cosine similarity was used as a similarity measure for the content-based mechanisms. The memory matrix had 10 rows of size 256. The initial state of the memory at the beginning of each sequence was learned. The learned initial state was initialized (at the beginning of training) using an Xavier normal distribution.
321
+
322
+ The input to the LSTM controller at each time step consisted of the image embedding corresponding to that time step and the read vector from the previous time step. At the beginning of each sequence, the read vector, read weights, and write weights were initialized to 0. Just as with the ESBN, the NTM was allowed an additional time step to process the read vector retrieved from memory after observing the final image embedding, after which $\hat { \pmb { y } }$ was generated through an output layer from the LSTM controller.
323
+
324
+ # A.3.6 MNM
325
+
326
+ We implemented the MNM using publicly available code released with the original publication (Munkhdalai et al., 2019). Specifically, we used the version of MNM that employs a learned local update (β€˜MNM-p’ in the original paper). Before passing the images in our tasks to the MNM model, we applied the same encoder and TCN procedure used for the other architectures that we tested. Other than this modification, the original implementation, including all architectural hyperparameters, was unmodified.
327
+
328
+ # A.3.7 RN
329
+
330
+ The RN implementation consisted of two MLPs. The first MLP (used to process all pair-wise combinations of image embeddings) had a hidden layer of size 512 and an output layer of size 256. The outputs from the first MLP were summed, and then passed to the second MLP, which had a hidden layer of size 256 and an output layer for generating $\hat { y }$ . All layers (except the output layer) used ReLU nonlinearities. All weights were initialized using a Kaiming normal distribution (except the output layer, which was initialized according to the description in A.3.2), and all biases were initialized to 0. Before passing the image embeddings to the first MLP, they were appended with a tag (an integer from 0 to $T - 1$ ) indicating their position in the input sequence.
331
+
332
+ # A.3.8 TRN
333
+
334
+ The TRN employs two key design decisions intended to prevent the combinatorial explosion that would naturally result from the inclusion of n-ary relations:
335
+
336
+ 1. Only considering temporally ordered, non-redundant sets (whereas the original RN considers all possible pairs of objects, including both permutations of the same pair, and the pair of each object with itself).
337
+ 2. Subsampling from these sets.
338
+
339
+ We found that it was computationally feasible to implement a TRN with ternary relations in our tasks by only using (1), without the need to subsample. Thus, our implementation considers all temporally ordered, non-redundant sets of two and three.
340
+
341
+ Each pair of image embeddings was processed by an MLP with a hidden layer of size 512 and an output layer of size 256. The outputs of this MLP for all pairs were then summed, and processed by an additional fully-connected layer with 256 units, yielding a single vector representing all pairs.
342
+
343
+ Each set of three image embeddings was processed by a separate MLP with the same hyperparameters (hidden layer of 512 units, output layer of 256 units). The outputs of this MLP for all sets of three were then summed, and processed by a separate fully-connected layer with 256 units, yielding a single vector representing all sets of three.
344
+
345
+ These two vectors, representing all pairs and sets of three, were then summed and passed to an additional fully-connected layer with 256 units, and then to the output layer to generate $\hat { \pmb { y } }$ . All layers (except for the output layer) used ReLU nonlinearities. All weights in these layers were initialized using a Kaiming normal distribution, and all biases were initialized to 0.
346
+
347
+ Just as with the RN, we append the image embeddings with a tag indicating their position in the sequence before passing them to the first MLP in the TRN.
348
+
349
+ # A.3.9 TRANSFORMER
350
+
351
+ The Transformer implementation consisted of a single Transformer encoder layer. We also experimented with 2- and 3-layer Transformers but these did not generalize as well as the 1-layer Transformer in the tasks that we studied. Positional encoding (as described by Vaswani et al. (2017)) was applied to the sequence of image embeddings, which were then passed to the Transformer layer. The self-attention layer had 8 heads. The MLP had a single hidden layer with 512 units, and used ReLU nonlinearities. Residual connections and layer normalization (Ba et al., 2016b) were used following both the self-attention layer and the MLP. The self-attention weights (for generating the keys, queries, and values) were initialized using an Xavier normal distribution. The MLP weights were initialized using a Kaiming normal distribution.
352
+
353
+ After applying the Transformer layer, the (transformed) embeddings were averaged and passed to an output MLP. The output MLP had a single hidden layer with 256 units, and an output layer for generating $\hat { \pmb { y } }$ . The hidden layer used ReLU nonlinearities, and the weights were initialized using a Kaiming normal distribution. All biases were initialized to 0.
354
+
355
+ # A.3.10 PREDINET
356
+
357
+ The PrediNet implementation was as close as possible to the model described in the original work (Shanahan et al., 2019), except that the multi-head attention was applied over the 1D temporal sequence of image embeddings, rather than over a 2D feature map (since there was no spatial component to the tasks that we studied). Before being passed to the PrediNet module, the image embeddings were appended with a tag (an integer from 0 to $T - 1 \dot s$ ) indicating their temporal position. The PrediNet module used keys of size 16, 32 heads, and 16 relations. All weights in the PrediNet module were initialized using an Xavier normal distribution.
358
+
359
+ The output of all PrediNet heads was concatenated and passed to an output MLP. This MLP had a single hidden layer with 8 units, and an output layer for generating $\hat { \boldsymbol y }$ . The hidden layer used ReLU nonlinearities, and the weights were initialized using a Kaiming normal distribution. All biases were initialized to 0.
360
+
361
+ # A.4 TRAINING DETAILS
362
+
363
+ Table 5: Learning rates for all models trained without TCN.
364
+
365
+ <table><tr><td></td><td>Same/different</td><td>RMTS</td><td>Distribution-of-threeIdentity rules</td><td></td></tr><tr><td colspan="5"></td></tr><tr><td>ESBN</td><td>5e-5</td><td>5e-5</td><td>5e-5</td><td>5e-5</td></tr><tr><td>Transformer</td><td>5e-4</td><td>5e-4</td><td>5e-4</td><td>5e-4</td></tr><tr><td>NTM</td><td>5e-4</td><td>5e-4</td><td>5e-4</td><td>5e-4</td></tr><tr><td>MNM</td><td>5e-4</td><td>5e-4</td><td>5e-4</td><td>5e-4</td></tr><tr><td>LSTM</td><td>5e-4</td><td>5e-4</td><td>5e-4</td><td>5e-4</td></tr><tr><td>PrediNet</td><td>5e-4</td><td>5e-4</td><td>5e-5</td><td>5e-5</td></tr><tr><td>RN</td><td>5e-4</td><td>5e-5</td><td>5e-4</td><td>5e-4</td></tr></table>
366
+
367
+ All models were trained with a batch size of 32 using the ADAM optimizer (Kingma & Ba, 2014). The learning rate for all models trained with TCN was $5 e ^ { - } 4$ . Some of the models failed to converge when trained without TCN, requiring a smaller learning rate of $5 e ^ { - } 5$ . The learning rates used for all models when trained without TCN are shown in Table 5.
368
+
369
+ Because different generalization regimes (different values for $m$ ) involved different training set sizes, and therefore involved fewer training updates per epoch, the number of training epochs required to reliably achieve convergence varied based on the regime. The default number of training epochs for all tasks and regimes is shown in Table 6.
370
+
371
+ Some models required additional training on some tasks to reach convergence. The PrediNet and the RN required longer training on the distribution-of-three task (Table 7), and the PrediNet, RN, and Transformer required longer training on the identity rules task (Table 8).
372
+
373
+ Table 6: Default number of training epochs for all tasks and regimes.
374
+
375
+ <table><tr><td></td><td>m=0</td><td>m=50 m=85m=95</td><td></td><td></td><td>m=98</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Same/different</td><td>50</td><td>50</td><td>50</td><td>100</td><td>100</td></tr><tr><td>RMTS</td><td>50</td><td>50</td><td>50</td><td>200</td><td>1</td></tr><tr><td>Distribution-of-three</td><td>50</td><td>50</td><td>50</td><td>150</td><td></td></tr><tr><td>Identity rules</td><td>50</td><td>50</td><td>50</td><td>50</td><td>1</td></tr></table>
376
+
377
+ $$
378
+ m = 0 \quad m = 5 0 \quad m = 8 5 \quad m = 9 5
379
+ $$
380
+
381
+ Table 7: Number of training epochs for the PrediNet and RN on the distribution-of-three task.
382
+
383
+ <table><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PrediNet</td><td>100</td><td>100</td><td>100</td><td>150</td></tr><tr><td>RN</td><td>150</td><td>150</td><td>150</td><td>800</td></tr></table>
384
+
385
+ Table 8: Number of training epochs for the PrediNet, RN, and Transformer on the identity rules task.
386
+
387
+ <table><tr><td></td><td></td></tr><tr><td>100 100</td><td>100</td></tr></table>
388
+
389
+ $$
390
+ m = 0 \quad m = 5 0 \quad m = 8 5 \quad m = 9 5
391
+ $$
392
+
393
+ When training the RN on larger datasets for the distribution-of-three and identity rules tasks, the same learning rate and number of training epochs as used when training on smaller datasets was sufficient to reach convergence.
394
+
395
+ # A.5 SUPPLEMENTARY RESULTS
396
+
397
+ # A.5.1 RESULTS WITH AND WITHOUT TCN
398
+
399
+ Tables 9 - 12 show the results for all models trained both with and without TCN. With the exception of the PrediNet on the same/different task, every model benefited on every task from the incorporation of TCN, in many cases substantially. Results for models trained with TCN (indicated by $^ \bullet +$ TCN’) correspond to the results presented in Figure 3 (except for the results of the PrediNet on the same/different task, for which the version of the model trained without TCN is plotted in Figure 3).
400
+
401
+ We note that, even with a lower learning rate of $5 e ^ { - } 5$ , some models failed to converge without TCN, such as the ESBN on the same/different task, or the RN on the RMTS task. It is possible that some of these models might have performed better if we had optimized them further by training for longer or trying different learning rates, but we opted not to do that since TCN was so effective across all of the models and tasks that we studied.
402
+
403
+ Table 9: Results for same/different task. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
404
+
405
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td><td>m=98</td></tr><tr><td colspan="6"></td></tr><tr><td>ESBN+TCN</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>ESBN</td><td>50.0 Β± 0.02</td><td>50.0 Β± 0.0</td><td>50.1 Β± 0.1</td><td>49.8 Β± 0.2</td><td>50.1 Β± 0.1</td></tr><tr><td>Transformer+ TCN</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>72.3 Β± 5.2</td></tr><tr><td>Transformer</td><td>100.0 Β± 0.0</td><td>99.9 Β± 0.02</td><td>95.4 Β± 0.6</td><td>73.7 Β± 1.8</td><td>56.1 Β± 1.3</td></tr><tr><td>NTM+ TCN</td><td>100.0 Β± 0.0</td><td>99.99 Β± 0.0</td><td>94.9 Β± 0.6</td><td>66.7 Β± 2.5</td><td>53.3 Β± 1.4</td></tr><tr><td>NTM</td><td>99.0 Β± 0.9</td><td>98.6 Β± 0.3</td><td>84.9 Β± 2.4</td><td>57.0 Β± 2.2</td><td>52.5 Β± 0.9</td></tr><tr><td>MNM+ TCN</td><td>100.0 Β± 0.0</td><td>99.95 Β± 0.03</td><td>97.8 Β± 0.4</td><td>72.0 Β± 2.4</td><td>52.3 Β± 0.5</td></tr><tr><td>MNM</td><td>98.9 Β± 0.1</td><td>95.1 Β± 1.8</td><td>88.6 Β±1.1</td><td>59.1 Β± 1.6</td><td>51.7 Β± 0.7</td></tr><tr><td>LSTM+TCN</td><td>100.0 Β± 0.0</td><td>99.97 Β± 0.01</td><td>96.9 Β± 0.3</td><td>69.4 Β± 1.5</td><td>54.8 Β± 1.1</td></tr><tr><td>LSTM</td><td>88.2 Β±3.2</td><td>97.0 Β± 0.5</td><td>85.5 Β± 2.4</td><td>61.8 Β± 1.7</td><td>56.5 Β± 1.6</td></tr><tr><td>PrediNet+ TCN</td><td>100.0 Β± 0.0</td><td>99.7 Β± 0.1</td><td>96.0 Β± 1.3</td><td>67.2 Β± 2.9</td><td>61.6 Β± 2.3</td></tr><tr><td>PrediNet</td><td>100.0 Β± 0.0</td><td>99.9 Β± 0.03</td><td>97.0 Β± 0.4</td><td>90.0 Β± 1.6</td><td>68.5 Β± 2.8</td></tr><tr><td>RN + TCN</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>99.9 Β± 0.04</td><td>66.8 Β± 6.6</td></tr><tr><td>RN</td><td>99.98 Β± 0.02</td><td>98.5 Β± 0.4</td><td>53.2 Β±1.4</td><td>50.5 Β± 0.2</td><td>52.3 Β± 0.7</td></tr></table>
406
+
407
+ Table 10: Results for relational match-to-sample task. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
408
+
409
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ESBN+TCN</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>95.0 Β± 0.7</td></tr><tr><td>ESBN</td><td>86.4 Β± 6.1</td><td>69.4 Β± 6.5</td><td>50.0 Β± 0.1</td><td>51.0 Β± 0.5</td></tr><tr><td>Transformer</td><td>100.0 Β± 0.0</td><td>99.98 Β± 0.01</td><td>99.1 Β± 0.4</td><td>79.8 Β± 2.5</td></tr><tr><td>Transformer</td><td>99.4 Β± 0.1</td><td>96.8 Β± 0.7</td><td>86.4 Β± 1.9</td><td>49.9 Β± 0.2</td></tr><tr><td>NTM+TCN</td><td>100.0 Β± 0.0</td><td>99.97 Β± 0.01</td><td>96.8 Β± 0.5</td><td>80.1 Β± 2.3</td></tr><tr><td>NTM</td><td>99.5 Β± 0.1</td><td>92.5 Β± 4.7</td><td>81.2 Β± 1.5</td><td>50.1 Β± 0.2</td></tr><tr><td>MNM+TCN</td><td>99.99 Β± 0.0</td><td>99.9 Β± 0.03</td><td>98.7 Β± 0.3</td><td>50.0 Β± 0.2</td></tr><tr><td>MNM</td><td>74.6 Β± 7.6</td><td>63.6 Β± 5.7</td><td>78.3 Β± 3.7</td><td>50.0 Β± 0.2</td></tr><tr><td>LSTM+ TCN</td><td>99.99 Β± 0.0</td><td>99.8 Β± 0.03</td><td>94.9 Β± 1.3</td><td>60.7 Β± 3.7</td></tr><tr><td>LSTM</td><td>99.1 Β± 0.3</td><td>90.2 Β± 2.0</td><td>80.9 Β± 1.1</td><td>50.2 Β± 0.1</td></tr><tr><td>PrediNet+TCN</td><td>99.7 Β± 0.1</td><td>99.6 Β± 0.1</td><td>94.6 Β± 2.2</td><td>68.4 Β± 2.7</td></tr><tr><td>PrediNet</td><td>54.9 Β± 4.7</td><td>50.1 Β± 0.2</td><td>65.9 Β± 3.7</td><td>49.7 Β± 0.2</td></tr><tr><td>RN+TCN</td><td>100.0 Β± 0.0</td><td>99.99 Β± 0.0</td><td>99.5 Β± 0.3</td><td>79.6 Β± 2.1</td></tr><tr><td>RN</td><td>50.1 Β± 0.2</td><td>49.9 Β± 0.2</td><td>50.2 Β± 0.2</td><td>50.0 Β± 0.1</td></tr></table>
410
+
411
+ Table 11: Results for distribution-of-three task. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
412
+
413
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85 m= 95</td></tr><tr><td colspan="4"></td></tr><tr><td>ESBN+TCN</td><td>98.7 Β± 0.4</td><td>99.0 Β± 0.3</td><td>99.5 Β± 0.2 99.7 Β± 0.1</td></tr><tr><td>ESBN</td><td>99.98 Β± 0.0</td><td>97.4 Β± 0.2</td><td>92.4 Β± 1.1 62.0 Β± 4.0</td></tr><tr><td>Transformer+ TCN</td><td>88.7 Β± 2.6</td><td>95.0 Β± 1.2</td><td>92.7 Β± 1.5 32.1 Β± 1.0</td></tr><tr><td>Transformer</td><td>62.1 Β± 3.3</td><td>68.6 Β± 3.6 72.6 Β± 4.4</td><td>28.0 Β± 0.8</td></tr><tr><td>NTM+TCN</td><td>95.5 Β± 0.4</td><td>95.2 Β± 0.4</td><td>94.3 Β± 0.8 34.0 Β± 0.5</td></tr><tr><td>NTM</td><td>92.9 Β± 0.5</td><td>87.1 Β± 1.4</td><td>78.2 Β± 1.4 26.7 Β± 0.3</td></tr><tr><td>MNM+ TCN</td><td>94.7 Β± 0.3</td><td>93.6 Β± 0.4 90.6 Β± 0.7</td><td>32.2 Β± 0.6</td></tr><tr><td>MNM</td><td>58.5 Β± 8.9</td><td>68.7 Β± 6.2 48.4 Β± 5.5</td><td>25.6 Β± 0.3</td></tr><tr><td>LSTM+TCN</td><td>96.0 Β± 0.6</td><td>94.8 Β± 0.5</td><td>92.9 Β± 0.8 34.8 Β± 0.8</td></tr><tr><td>LSTM</td><td>91.3 Β± 0.6</td><td>85.3 Β± 1.5</td><td>71.6 Β± 4.3 27.5 Β± 0.3</td></tr><tr><td>PrediNet+TCN</td><td>95.2 Β± 0.3</td><td>94.6 Β± 0.4</td><td>93.3 Β± 0.9 27.8 Β± 0.5</td></tr><tr><td>PrediNet</td><td>75.1 Β± 3.0</td><td>65.7 Β± 7.4</td><td>78.0 Β± 6.0 25.7 Β± 0.1</td></tr><tr><td>RN+TCN</td><td>35.6 Β± 3.0</td><td>50.6 Β± 7.6</td><td>72.2 Β± 6.8 26.5 Β± 0.3</td></tr><tr><td>RN</td><td>25.1 Β± 0.1</td><td>24.9 Β± 0.1 25.7 Β± 0.3</td><td>25.2 Β± 0.1</td></tr></table>
414
+
415
+ Table 12: Results for identity rules task. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
416
+
417
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td></tr><tr><td colspan="5"></td></tr><tr><td>ESBN+TCN</td><td>99.6 Β± 0.2</td><td>99.6 Β± 0.1</td><td>99.9 Β± 0.04</td><td>99.2 Β± 0.4</td></tr><tr><td>ESBN</td><td>100.0 Β± 0.0</td><td>99.4 Β± 0.1</td><td>97.8 Β± 0.2</td><td>95.2 Β± 0.4</td></tr><tr><td>Transformer+ TCN</td><td>98.3 Β± 0.7</td><td>97.1 Β± 1.0</td><td>92.0 Β±1.7</td><td>67.1 Β± 2.4</td></tr><tr><td>Transformer</td><td>75.5 Β± 4.1</td><td>71.6 Β± 5.1</td><td>85.4 Β± 4.6</td><td>38.6 Β± 2.2</td></tr><tr><td>NTM+TCN</td><td>98.2 Β± 0.6</td><td>97.8 Β± 0.5</td><td>93.9 Β± 0.6</td><td>64.9 Β± 1.2</td></tr><tr><td>NTM</td><td>94.6 Β± 0.3</td><td>90.1 Β± 0.8</td><td>82.2 Β± 1.2</td><td>25.0 Β± 0.1</td></tr><tr><td>MNM+TCN</td><td>95.2 Β± 0.4</td><td>93.8 Β± 0.4</td><td>90.8 Β± 0.5</td><td>61.5 Β± 1.5</td></tr><tr><td>MNM</td><td>70.9 Β± 10.2</td><td>69.5 Β± 9.7</td><td>49.8 Β± 8.4</td><td>24.9 Β± 0.2</td></tr><tr><td>LSTM+TCN</td><td>98.9 Β± 0.1</td><td>97.7 Β± 0.3</td><td>92.1 Β± 0.7</td><td>62.5 Β± 1.1</td></tr><tr><td>LSTM</td><td>93.8 Β± 0.5</td><td>89.3 Β± 0.6</td><td>73.7 Β± 5.7</td><td>24.8 Β± 0.1</td></tr><tr><td>PrediNet+ TCN</td><td>93.0 Β± 0.8</td><td>92.8 Β± 0.7</td><td>89.8 Β± 0.8</td><td>59.9 Β± 2.6</td></tr><tr><td>PrediNet</td><td>40.8 Β± 0.4</td><td>40.5 Β± 1.9</td><td>40.3 Β± 2.2</td><td>32.2 Β± 0.6</td></tr><tr><td>RN+ TCN</td><td>41.5 Β± 6.7</td><td>40.2 Β± 1.0</td><td>48.7 Β± 2.0</td><td>41.4 Β± 2.0</td></tr><tr><td>RN</td><td>41.1 Β± 7.2</td><td>37.3 Β± 3.4</td><td>31.6 Β± 2.8</td><td>25.4 Β± 0.4</td></tr></table>
418
+
419
+ # A.5.2 PERFORMANCE OF RN ON TERNARY RELATIONS
420
+
421
+ Table 13 shows the results for the RN (w/ TCN) on the distribution-of-three and identity rules tasks when trained on larger training sets $1 0 ^ { 5 }$ instead of $1 0 ^ { 4 }$ training examples). These results show that with more training data, the RN, which is biased toward processing pair-wise relations, is able to learn these tasks (which are based on ternary relations) in a manner that enables some degree of generalization. Note that these results do not include the $m = 9 5$ regime, because there are not enough images in that regime to create larger training sets than were originally used.
422
+
423
+ Table 13: Results for the RN on the distribution-of-three and identity rules tasks when trained on a larger training set. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
424
+
425
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Distribution-of-three</td><td>84.5 Β± 10.0</td><td>84.6 Β± 9.9</td><td>72.4 Β± 9.7</td></tr><tr><td>Identity rules</td><td>89.2 Β± 5.0</td><td>99.7 Β± 0.1</td><td>86.6 Β± 4.1</td></tr></table>
426
+
427
+ We also tested the TRN, which incorporates ternary relations through subsampling, on these tasks (with the standard training set size of $1 0 ^ { 4 }$ training examples). Table 14 shows the results. This yielded a slight improvement over the RN (when trained on $1 0 ^ { 4 }$ training examples), though not as much of an improvement as resulted from training the RN with a larger training set. This result may seem surprising given that the TRN explicitly incorporates ternary relations. We note two possible explanations for this result:
428
+
429
+ 1. The systematic comparison of every pair of objects, including permutations and comparisons of each object with itself, allows the RN to take advantage of a very powerful form of data augmentation, enforcing a certain degree of systematicity in the relations that it learns. By only considering temporally ordered and non-redundant sets, the TRN is not able to take advantage of this to the same extent, and therefore might not learn relations that generalize as well.
430
+ 2. The distribution-of-three and identity rules tasks both involve not only ternary sets, but the higher-order comparison of multiple pairs of ternary sets (the first row vs. the combination of the second row with each candidate answer). One could presumably engineer a solution to this problem within the RN framework, but we take it as a strength of the ESBN that no such special engineering is necessary in this case.
431
+
432
+ Table 14: Results for the TRN on the distribution-of-three and identity rules tasks. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
433
+ A.5.3 TRAINING TIME COURSES FOR SAME/DIFFERENT TASK
434
+
435
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85</td><td>m = 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Distribution-of-three</td><td></td><td></td><td>60.2Β±5.4 77.5Β±5.7 88.7Β±0.8</td><td>327.8Β±0.5</td></tr><tr><td>Identity rules</td><td></td><td>40.3 Β± 2.0 43.6Β± 2.0</td><td>52.8 Β± 2.7</td><td>44.9 Β± 1.0</td></tr></table>
436
+
437
+ Figure 5 shows the training time courses for all models on the same/different task. Unlike the other three tasks we studied (for which training time courses are shown in Figure 4), all models were able to learn this task within a few hundred training updates (though all models except the ESBN failed to generalize in the most extreme regime).
438
+
439
+ # A.5.4 ALTERNATIVE ENCODER ARCHITECTURES
440
+
441
+ In order to determine whether the systematic generalization exhibited by the ESBN depended to some extent on the convolutional layers in its encoder, we performed experiments with two alternative encoder architectures: a multilayer perceptron (MLP) encoder, and a random projection.
442
+
443
+ ![](images/aaa7fb6a3176c2b300c4bdc9fc10c870841ebe3d2619a27cc2e4ec70c2d07eb7.jpg)
444
+ Figure 5: Training accuracy time courses on $m = 0$ regime of the same/different task. Each time course reflects an average over 10 trained networks. Error bars reflect the standard error of the mean.
445
+
446
+ ![](images/c366872be7b0df16e430db884b2883ef8a8ba7fd1f3bd25e27dc986eb9ad5467.jpg)
447
+ Figure 6: Results for all four tasks with convolutional (conv), multilayer perceptron (MLP), or random (rand) encoders. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
448
+
449
+ The MLP encoder consisted of 3 fully-connected layers, with 512, 256, and 128 units, each of which used ReLU nonlinearities. All weights were initialized using a Kaiming normal distribution, and all biases were set to 0.
450
+
451
+ The random projection encoder involved only a single, untrained, fully-connected layer that projected from the flattened image to 128 units, followed by a ReLU nonlinearity. Weights were sampled from a Kaiming normal distribution, and biases were set to 0.
452
+
453
+ Figure 6 and Tables 15 - 18 show the results for these experiments, along with the original version of the model (with a convolutional encoder) for comparison. To enable a fair comparison with the original model, all experiments employed TCN. The results show that the ESBN performed comparably well with all three of the encoder architectures. This was confirmed by performing paired t-tests on the average test accuracy in each task/generalization condition (each combination of task and value of $m$ ) for the MLP vs. convolutional encoder $t = - 1 . 7$ , $p = 0 . 1$ ) and for the random vs. convolutional encoder $t = 1 . 6$ , $p = 0 . 1 3$ ).
454
+
455
+ For comparison, we also performed experiments with these alternative encoders in the Transformer architecture. These experiments revealed that, in contrast with the ESBN, the Transformer’s performance was significantly impaired by the use of a random vs. convolutional encoder $( t = - 4 . 0$ , $p = 0 . 0 0 1 )$ , though it appeared to perform comparably well with an MLP vs. convolutional encoder $t = - 1 . 6$ , $p = 0 . 1 4 )$ ).
456
+
457
+ Table 15: Results for same/different task with convolutional (conv), multilayer perceptron (MLP), or random (rand) encoders. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
458
+
459
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m=95</td><td>m=98</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ESBN (conv)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>ESBN (MLP)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>ESBN (rand)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>Transformer (conv)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>72.3 Β± 5.2</td></tr><tr><td>Transformer (MLP)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>77.6 Β± 4.6</td></tr><tr><td>Transformer (rand)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>50.6 Β± 0.3</td></tr></table>
460
+
461
+ Table 16: Results for relational match-to-sample task with convolutional (conv), multilayer perceptron (MLP), or random (rand) encoders. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
462
+
463
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ESBN (conv)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>95.0 Β± 0.7</td></tr><tr><td>ESBN (MLP)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>97.2 Β± 0.2</td></tr><tr><td>ESBN (rand)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>93.8 Β± 0.4</td></tr><tr><td>Transformer (conv)</td><td>100.0 Β± 0.0</td><td>99.98 Β± 0.01</td><td>99.1 Β± 0.4</td><td>79.8 Β± 2.5</td></tr><tr><td>Transformer (MLP)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>99.9 Β± 0.1</td><td>73.6 Β± 5.3</td></tr><tr><td>Transformer (rand)</td><td>99.99 Β± 0.01</td><td>99.9 Β± 0.04</td><td>95.4 Β± 3.2</td><td>46.8 Β± 1.7</td></tr></table>
464
+
465
+ Table 17: Results for distribution-of-three task with convolutional (conv), multilayer perceptron (MLP), or random (rand) encoders. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
466
+
467
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m=85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ESBN (conv)</td><td>98.7 Β± 0.4</td><td>99.0 Β± 0.3</td><td>99.5 Β± 0.2</td><td>99.7 Β± 0.1</td></tr><tr><td>ESBN (MLP)</td><td>99.0 Β± 0.1</td><td>98.4 Β± 0.3</td><td>98.0 Β± 0.3</td><td>95.9 Β± 0.5</td></tr><tr><td>ESBN (rand)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>Transformer (conv)</td><td>88.7 Β± 2.6</td><td>95.0 Β± 1.2</td><td>92.7 Β± 1.5</td><td>32.1 Β± 1.0</td></tr><tr><td>Transformer (MLP)</td><td>92.7 Β± 2.1</td><td>93.3 Β± 1.5</td><td>92.1 Β± 0.8</td><td>35.3 Β± 1.2</td></tr><tr><td>Transformer (rand)</td><td>66.0 Β± 6.2</td><td>80.8 Β± 2.5</td><td>60.9 Β± 2.4</td><td>26.9 Β± 0.4</td></tr></table>
468
+
469
+ Table 18: Results for identity rules task with convolutional (conv), multilayer perceptron (MLP), or random (rand) encoders. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
470
+
471
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85</td><td>m= 95</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ESBN (conv.)</td><td>99.6 Β± 0.2</td><td>99.6 Β± 0.1</td><td>99.9 Β± 0.04</td><td>99.2 Β± 0.4</td></tr><tr><td>ESBN (MLP)</td><td>99.3 Β± 0.2</td><td>98.6 Β± 0.3</td><td>97.7 Β± 0.4</td><td>95.5 Β± 1.0</td></tr><tr><td>ESBN (random)</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td><td>100.0 Β± 0.0</td></tr><tr><td>Transformer (conv.)</td><td>98.3 Β± 0.7</td><td>97.1 Β± 1.0</td><td>92.0 Β±1.7</td><td>67.1 Β± 2.4</td></tr><tr><td>Transformer (MLP)</td><td>85.5 Β± 4.0</td><td>84.8 Β± 3.8</td><td>86.4 Β± 2.3</td><td>59.8 Β± 1.5</td></tr><tr><td>Transformer (random)</td><td>47.8 Β±1.1</td><td>51.4 Β± 1.9</td><td>48.6 Β±1.1</td><td>27.5 Β± 0.6</td></tr></table>
472
+
473
+ # A.5.5 CONFIDENCE ABLATION EXPERIMENT
474
+
475
+ In order to determine the importance of the confidence values appended to retrieved memories, we tested a version of the ESBN without these confidence values. These results are shown in Table 19 and Figure 7. The ablation of confidence values prevented the ESBN from being able to perform the same/different task at all, and resulted in much slower training on the RMTS task. By contrast, ablation of confidence values did not affect performance, either in terms of generalization or training time, for the distribution-of-three or identity rules tasks. This can be explained by the fact that these tasks only require the retrieval of the best match from memory, whereas the same/different and RMTS tasks require the model to know how good of a match the best match is, which is precisely the information conveyed by confidence values.
476
+
477
+ Table 19: Results for the confidence ablation experiment. Results reflect test accuracy averaged over 10 trained networks $\pm$ the standard error of the mean).
478
+
479
+ <table><tr><td></td><td>m=0</td><td>m= 50</td><td>m= 85</td><td>m= 95</td><td>m= 98</td></tr><tr><td colspan="6"></td></tr><tr><td>Same/different</td><td>50.0 Β± 0.02</td><td>50.0 Β± 0.0</td><td>50.0 Β± 0.05</td><td>49.8 Β± 0.1</td><td>50.0 Β± 0.1</td></tr><tr><td>RMTS</td><td>99.95 Β± 0.01</td><td>99.9 Β± 0.02</td><td>99.9 Β± 0.02</td><td>96.0 Β± 0.6</td><td></td></tr><tr><td>Distribution-of-three</td><td>99.2 Β± 0.2</td><td>99.0 Β± 0.3</td><td>99.5 Β± 0.3</td><td>99.8 Β± 0.1</td><td></td></tr><tr><td>Identity rules</td><td>99.6 Β± 0.1</td><td>99.6 Β± 0.2</td><td>99.8 Β± 0.1</td><td>99.2 Β± 0.2</td><td></td></tr></table>
480
+
481
+ ![](images/4f3140e98ad78df5a251cc44698547758bc2b3dc25ada989b5a077dd22f67752.jpg)
482
+ Figure 7: Training accuracy time courses for the ESBN model without confidence values on the $m = 0$ regime, shown with the time courses for all other models for comparison. Each time course reflects an average over 10 trained networks. Error bars reflect the standard error of the mean.
483
+
484
+ It is also worth noting one potential alternative to an explicit, inbuilt confidence value. In our implementation, the ESBN’s memory is empty at the beginning of each sequence that it processes. However, when multiple entries are present in memory, as will generally be the case in realistic, temporally extended settings, the presentation of a previously unseen item will result in the retrieval of a mixture of (weakly matched) memories. This mixed representation can therefore serve as a reliable cue for the degree to which the current percept matches a stored memory, obviating the need for an explicit confidence value. To demonstrate this, we implemented a version of the ESBN that begins each sequence with a single, learned key/value entry stored in memory (initialized to 0 at the beginning of training). Table 20 shows that this approach allows the ESBN to learn and perfectly generalize on the same/different task. Figure 8 shows that this approach allows the ESBN to retain the short training time of the original model on the RMTS task.
485
+
486
+ Table 20: Results on the same/different task for the ESBN model with a learned default memory instead of confidence values. Results reflect test accuracy averaged over 10 trained networks ( $\pm$ the standard error of the mean).
487
+
488
+ ![](images/c31ae8d2cb9633c10939d6f607f5e27e2afb3fd53d987d9a72940c252af1aef8.jpg)
489
+ Figure 8: Training accuracy time courses on $m = 0$ regime of the RMTS task for the ESBN model with a learned default memory instead of confidence values. Each time course reflects an average over 10 trained networks. Error bars reflect the standard error of the mean.
490
+
491
+ ![](images/ca9d748d252c788908ecf5de7247e9e4f232304204241105a959dc8695758a69.jpg)
492
+ Figure 9: Representations learned by ESBN (projected along first two principal components). (a) Keys written to memory during time steps 1-9 (training set). (b) Keys written to memory during time steps 1-3 (training set vs. test set). (c) Keys retrieved from memory following second appearance of objects that first appeared during time steps 1-3 (training set vs. test set).
493
+
494
+ To better understand how the ESBN works, we performed an analysis of the representations that it learned on the distribution-of-three task. Specifically, we performed an analysis of a network trained on the most difficult generalization regime $( m = 9 5 $ ), by performing principal component analysis (PCA) on all key vectors written to and retrieved from memory for both the training and test sets, and visualizing these vectors along the first two principal components.
495
+
496
+ First, we looked at the keys that were written to memory $( k _ { w } )$ . We found that the keys for the first three time steps were tightly clustered, whereas the keys for the subsequent time steps (4-9) were more diffuse (Figures 9a and 9b). This makes sense because, in the distribution-of-three task, the ESBN only needs to be able to reliably retrieve what it wrote during the first three time steps (when the objects in the first row were presented). For time steps 4-9, the only important consideration is that the keys written to memory not overlap with those written during the first three time steps, which also appears to be the case.
497
+
498
+ Second, we compared the keys written to memory for the first three time steps in the training vs. test sets (Figure 9b). This revealed that, for a given time step, the keys written to memory in the training vs. test sets were remarkably similar (so much so that they are completely overlapping for time steps 1 and 2).
499
+
500
+ Third, we looked at the keys that were retrieved from memory following the second appearance of the objects that appeared on time steps 1-3. We found that 1) these closely matched the distribution of keys written to memory during time steps 1-3, and 2) these were highly overlapping for the training vs. test sets (Figure 9c).
501
+
502
+ Taken together, these results help to explain why the ESBN was so successful in this generalization regime, despite the very small degree of overlap between the distribution of training and test images. Because the ESBN’s controller was relatively isolated from the part of the model that deals with image embeddings, it was able to learn to encode abstract symbol-like representations (such as β€˜first image’, β€˜second image’, and β€˜third image’), that did not depend on the identity of the images. Then, when queried with an image, was able to successfully retrieve the image’s corresponding abstract encoding, even when that image was quite different than those observed during training. That is, the model learned representations to use as keys that could be used for binding and indirection in the same way that symbols are used in traditional computational architectures.
503
+
504
+ # A.7 UNICODE CHARACTERS
505
+
506
+ Figure 10 shows all 100 images that were used to construct the abstract rule learning tasks.
507
+
508
+ ![](images/887b1ae25cca3a239fbf94d507ce08a8916ce532f8964e7f75552108e7422ff2.jpg)
509
+ Figure 10
parse/train/LSFCEb3GYU7/LSFCEb3GYU7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LSFCEb3GYU7/LSFCEb3GYU7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LSFCEb3GYU7/LSFCEb3GYU7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MjNFN44NbZm/MjNFN44NbZm.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Policy Finetuning: Bridging Sample-Efficient Offline and Online Reinforcement Learning
2
+
3
+ Tengyang Xie UIUC tx10@illinois.edu
4
+
5
+ Nan Jiang UIUC nanjiang@illinois.edu
6
+
7
+ Huan Wang Salesforce Research huan.wang@salesforce.com
8
+
9
+ Caiming Xiong Salesforce Research cxiong@salesforce.com
10
+
11
+ Yu Bai Salesforce Research yu.bai@salesforce.com
12
+
13
+ # Abstract
14
+
15
+ Recent theoretical work studies sample-efficient reinforcement learning (RL) extensively in two settings: learning interactively in the environment (online RL), or learning from an offline dataset (offline RL). However, existing algorithms and theories for learning near-optimal policies in these two settings are rather different and disconnected. Towards bridging this gap, this paper initiates the theoretical study of policy finetuning, that is, online RL where the learner has additional access to a β€œreference policy” $\mu$ close to the optimal policy $\pi _ { \star }$ in a certain sense. We consider the policy finetuning problem in episodic Markov Decision Processes (MDPs) with $S$ states, $A$ actions, and horizon length $H$ . We first design a sharp offline reduction algorithmβ€”which simply executes $\mu$ and runs offline policy optimization on the collected datasetβ€”that finds an $\varepsilon$ near-optimal policy within $\bar { \tilde { O } } ( \bar { H ^ { 3 } } S C ^ { \star } / \varepsilon ^ { 2 } )$ episodes, where $C ^ { \star }$ is the single-policy concentrability coefficient between $\mu$ and $\pi _ { \star }$ . This offline result is the first that matches the sample complexity lower bound in this setting, and resolves a recent open question in offline RL. We then establish an $\Omega ( H ^ { 3 } S \bar { \operatorname* { m i n } } \{ C ^ { \star } , A \} / \varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, including those that can adaptively explore the environment. This implies thatβ€”perhaps surprisinglyβ€”the optimal policy finetuning algorithm is either offline reduction or a purely online RL algorithm that does not use $\mu$ . Finally, we design a new hybrid offline/online algorithm for policy finetuning that achieves better sample complexity than both vanilla offline reduction and purely online RL algorithms, in a relaxed setting where $\mu$ only satisfies concentrability partially up to a certain time step. Overall, our results offer a quantitative understanding on the benefit of a good reference policy, and make a step towards bridging offline and online RL.
16
+
17
+ # 1 Introduction
18
+
19
+ Reinforcement learning (RL)β€”where agents learn to play sequentially in an environment to maximize a cumulative reward functionβ€”has achieved great recent success in many artificial intelligence challenges such as video games playing [38, 52], large-scale strategy games (e.g. GO) [44, 45], robotic manipulation [3, 32], behavior learning in social scenarios [8], and more. In many such challenging domains, achieving human-like or superhuman performance requires training the RL agent with millions of samples (steps of acting or game playing) or more. Understanding and improving the sample efficiency of RL algorithms has been a central topic of research.
20
+
21
+ Sample-efficient RL has been studied in a rich body of theoretical work in two main settings: online $R L$ , in which the learner has interactive access to the environment and can execute any policy; and offline $R L$ , in which the learner only has access to an β€œoffline” dataset collected by executing some (one or many) policies within the environment, and is not allowed to further access the environment. These two settings share some common learning goals such as the sample complexity (number of episodes of playing) for finding the optimal policy. However, existing algorithms and theories in the online and offline setting seem rather different and disconnectedβ€”In online RL, state-of-the-art sample-efficient algorithms typically explore the entire environment, e.g. by using optimism to encourage visitation to unseen states and actions [9, 27, 19, 41, 21, 5, 22, 12, 23, 53]. In contrast, offline RL does not allow interactive exploration, and sample-efficient policy optimization algorithms typically focus on optimizing an unbiased (or downward biased) estimator of the value function [39, 48, 4, 40, 10, 56, 35, 58, 25, 42]. It is therefore of interest to ask whether these two types of algorithms and theories can be connected in any way.
22
+
23
+ Further, on the empirical end, insights and patterns from offline RL often help as well in designing online RL algorithms and improving the sample efficiency in the real world. For example, there are online RL algorithms that alternate between data collection steps using a fixed policy, and policy improvement steps by learning on the collected dataset [20]. The replay buffer in value-based algorithms can also be seen as a local form of offline (off-policy) policy optimization and are often be used in conjunction with optimistic exploration techniques [38, 18, 49]. The prevalence of these algorithms also offers practical motivations for us to look for a more unified understanding of online and offline RL in theory. These reasonings motivate us to ask the following question:
24
+
25
+ # Can we bridge sample-efficient offline and online RL from a theoretical perspective?
26
+
27
+ This paper proposes policy finetuning, a new RL setting that investigates the benefit of a good initial policy in reinforcement learning, and encapsulates challenges of both online and offline RL. In the policy finetuning problem, the learner is given interactive access to the environment and asked to learn a near-optimal policy, but in addition has access to a reference policy $\mu$ that is good in certain aspects. This setting offers great flexibility for the algorithm design: For example, the algorithm is allowed to either simply collect data from $\mu$ and run any offline policy optimization algorithm on the collected dataset. It is also allowed to play any other policy interactively, including those that adaptively explores the environment. The policy finetuning problem offers a common playground for both offline and online types of algorithms, and has a unified performance metric (sample complexity for finding the near-optimal policy) for comparing their performance.
28
+
29
+ We study the policy finetuning problem theoretically in finite-horizon Markov Decision Processes (MDPs) with $H$ time steps, $S$ states, and $A$ actions. We summarize our contributions as follows.
30
+
31
+ β€’ We begin by considering offline reduction algorithms which simply collect data using the reference policy $\mu$ and run an offline policy optimization algorithm on the collected dataset. This setting equivalent to offline RL with behavior policy $\mu$ , and thus our result translates to a same result for offline RL as well. We design an algorithm PEVI-ADV that is able to find an $\varepsilon$ -optimal policy (for small $\varepsilon$ ) within $\tilde { O } ( H ^ { 3 } S \bar { C } ^ { \star } / \varepsilon ^ { 2 } )$ episodes of play, where $C ^ { \star }$ is the single-policy concentrability coefficient between $\mu$ and some optimal policy $\pi _ { \star }$ (Section 3). This improves over the best existing offline result by an $H ^ { 2 }$ factor in the same setting and matches the lower bound (up to log factors), thereby resolving the recent open question of [42] on tight offline RL under single-policy concentrability.
32
+ β€’ Under the same assumption on $\mu$ , we establish an $\Omega ( H ^ { 3 } S \operatorname* { m i n } { \{ C ^ { \star } , A \} } / \varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, including those that adaptively explores the environment (Section 4). This implies that the optimal policy finetuning algorithm is either offline reduction via PEVI-ADV, or a β€œpurely” online RL algorithm from scratch (such as UCBVI), depending on whether $C ^ { \star } \leq A$ . This comes rather surprising, as it rules out possibilities of combining online exploration and knowledge of $\mu$ to further improve the sample complexity over the aforementioned two baselines.
33
+ β€’ Finally, we consider policy finetuning in a more challenging setting where $\mu$ only satisfies concentrability up to a certain time step. We design a β€œhybrid offline/online” algorithm HOOVI that combines online exploration and offline data collection, and show that it achieves better sample complexity than both vanilla offline reduction and purely online algorithms in certain cases (Section 5). This gives a positive example on when such hybrid algorithm designs are beneficial.
34
+
35
+ # 1.1 Related work
36
+
37
+ Sample-efficient online RL There is a long line of work on establishing provably sample-efficient online RL algorithms. A major portion of these works is concerned with the tabular setting with finitely many states and actions [9, 27, 19, 5, 11, 2, 22, 63]. For episodic MDPs with inhomogeneous transition functions with $S$ states, and $A$ actions, and horizon length $H$ , the optimal sample complexity for finding the $\varepsilon$ near-optimal policy is $\widetilde { \cal O } ( H ^ { 3 } S A / \varepsilon ^ { 2 } )$ , achieved by various algorithms such as UCBVI of Azar et al. [5] and UCB-Advantage of Zhang et al. [63]. Our paper adapts the reference-advantage decomposition technique of Zhang et al. [63] to designing sharp offline algorithms. Online RL with with large state/action spaces are also studied by using function approximation in conjunction with structural assumptions on the MDP [23, 61, 62, 1, 41, 21, 47, 53, 57, 14, 24].
38
+
39
+ Offline RL Offline/batch RL studies the case where the agent only has access to an offline dataset obtained by executing a behavior policy in the environment. Sample-efficient learning results in offline RL typically work by assuming either sup-concentrability assumptions [39, 48, 4, 40, 15, 51, 10, 56]) or lower bounded exploration constants [58, 59] to ensure the sufficient coverage of offline data over all (relevant) states and actions. However, such strong coverage assumptions can often fail to hold in practice [16]. More recent works address this by using either policy constraint/regularization [16, 35, 29, 55], or the pessimism principle to optimize conservatively on the offline data [30, 60, 28, 25, 59, 42]. The policy-constraint/regularization-based approaches prevent the policy to visit states and actions that has no or low coverage from the offline data. Our proposed offline RL algorithm PEVI-ADV (Algorithm 1) is inspired by the pessimistic value iteration algorithms of [25, 42] and achieves an improved sample complexity over these work under the same single-policy concentrability assumption on the behavior policy.
40
+
41
+ Bridging online and offline RL Kalashnikov et al. [26] observed empirically that the performance of policies trained purely from offline data can be improved considerably by a small amount of additional online fine-tuning. A recent line of work studied low switching cost RL [6, 63, 17, 54]β€” which forbits online RL algorithms from switching its policy too oftenβ€”as an interpolation between the online and offline settings. The same problem is also studied empirically as deployment-efficient RL [36, 46]. While we also attempt to bridge online and offline RL, our work differs from this line in that our policy finetuning setting allows a direct comparison between β€œfully offline” and β€œfully online” algorithms, whereas the low switching cost setting prohibits fully online algorithms.
42
+
43
+ # 2 Preliminaries
44
+
45
+ Markov Decision Processes In this paper, we consider episodic Markov decision processes (MDPs) with time-inhomogeneous transitions, specified by $M = ( \mathcal { S } , \mathcal { A } , H , \mathbb { P } , r )$ , where $s$ is the state space, $\mathcal { A }$ is the action space, $H$ is the horizon length, $\mathbb { P } = \{ \mathbb { P } _ { h } \} _ { h = 1 } ^ { H }$ where $\mathbb { P } _ { h } ( \cdot | s , a ) \in \Delta _ { S }$ is the transition probabilities at step $h$ , and $r = \{ r _ { h } : \mathcal { S } \times \mathcal { A } \to [ 0 , 1 ] \} _ { h = 1 } ^ { H }$ =1 are the deterministic1 reward functions at time step $h \in [ H ]$ . Without loss of generality, we assume that the initial state $s _ { 1 }$ is deterministic2.
46
+
47
+ Policies, value functions, visitation distributions A policy $\pi = \{ \pi _ { h } ( \cdot | s ) \} _ { h \in [ H ] , s \in { \mathcal S } }$ consists of distributions $\pi _ { h } ( \cdot | s ) \in \Delta _ { { \cal A } }$ . We use $\mathbb { E } _ { \pi } [ \cdot ]$ to denote the expectation with respect to the random trajectory induced by $\pi$ in the MDP $M$ , that is, $\left( s _ { 1 } , a _ { 1 } , r _ { 1 } , s _ { 2 } , a _ { 2 } , r _ { 2 } , \ldots , s _ { H } , a _ { H } , r _ { H } \right)$ , where $a _ { h } =$ $\pi _ { h } ( s _ { h } )$ , $r _ { h } = r _ { h } ( s _ { h } , a _ { h } )$ , $s _ { h + 1 } \sim \mathbb { P } _ { h } ( \cdot | s _ { h } , a _ { h } )$ . For each policy $\pi$ , let $V _ { h } ^ { \pi } : { \cal S } \mathbb { R }$ and $Q _ { h } ^ { \pi }$ : $S \times \mathcal { A } \mathbb { R }$ denote its value functions and Q functions at each time step $h \in [ H ]$ , that is,
48
+
49
+ $$
50
+ V _ { h } ^ { \pi } ( s ) : = \mathbb { E } _ { \pi } \bigg [ \sum _ { h ^ { \prime } = h } ^ { H } r _ { h ^ { \prime } } ( s _ { h ^ { \prime } } , a _ { h ^ { \prime } } ) \bigg | s _ { h } = s \bigg ] , Q _ { h } ^ { \pi } ( s , a ) : = \mathbb { E } _ { \pi } \bigg [ \sum _ { h ^ { \prime } = h } ^ { H } r _ { h ^ { \prime } } ( s _ { h ^ { \prime } } , a _ { h ^ { \prime } } ) \bigg | s _ { h } = s , a _ { h } = a \bigg ] .
51
+ $$
52
+
53
+ The operators $\mathbb { P } _ { h }$ and $\mathbb { V } _ { h }$ are defined as $[ \mathbb { P } _ { h } V _ { h + 1 } ] ( s , a ) : = \mathbb { E } [ V _ { h + 1 } ( s ^ { \prime } ) | s _ { h } = s , a _ { h } = a ]$ and $[ \mathbb { V } _ { h } V _ { h + 1 } ] ( s , a ) : = \mathrm { V a r } [ V _ { h + 1 } ( s ^ { \prime } ) | s _ { h } = s , a _ { h } = a ]$ for any value function $V _ { h + 1 }$ at time step $h + 1$
54
+
55
+ We also use $\widehat { \mathbb { P } } _ { h }$ and $\widehat { V } _ { h }$ to denote empirical versions of these operators building on estimated models (which will be clear in the context).
56
+
57
+ We use $\pi _ { \star } : = \arg \operatorname* { m a x } _ { \pi } V _ { 1 } ^ { \pi } ( s _ { 1 } )$ to denote any optimal policy, and $V _ { h } ^ { \star } : = V _ { h } ^ { \pi _ { \star } }$ and $Q _ { h } ^ { \star } : = Q _ { h } ^ { \pi _ { \star } }$ to denote the value function and $\mathrm { Q }$ function of $\pi ^ { \star }$ at all $h \in [ H ]$ . Throughout this paper, our learning goal is to find an near-optimal policy $\widehat { \pi }$ such that ${ \cal V } _ { 1 } ^ { \star } ( s _ { 1 } ) \dot { - } \dot { \cal V } _ { 1 } ^ { \widehat \pi } ( s _ { 1 } ) \le \varepsilon$ .
58
+
59
+ Finally, we let $d _ { h } ^ { \pi }$ denote the state(-action) visitation distributions of $\pi$ at time step $h \in [ H ]$ :
60
+
61
+ $$
62
+ \begin{array} { r } { d _ { h } ^ { \pi } ( s ) : = \mathbb { P } ( s _ { h } = s | \pi ) , \mathrm { ~ a n d ~ } d _ { h } ^ { \pi } ( s , a ) : = \mathbb { P } ( s _ { h } = s , a _ { h } = a | \pi ) . } \end{array}
63
+ $$
64
+
65
+ Miscellaneous We use standard $O ( \cdot )$ and $\Omega ( \cdot )$ notation: $A = O ( B )$ is defined as $A \leq C B$ for some absolute constant $C > 0$ (and similarly for $\Omega$ ). The tilded notation $A = { \widetilde { O } } ( B )$ denotes $A \leq C L \cdot B$ where $L$ is a poly-logarithmic factor of problem parameters.
66
+
67
+ # 2.1 Policy Finetuning
68
+
69
+ We now introduce the setting of policy finetuning. A policy finetuning problem consists of an MDP $M$ and a reference policy $\mu$ . During the learning stage, the learner can perform the following two types of moves:
70
+
71
+ (a) Play an episode in the MDP $M$ using any policy (i.e. learner has online interactive access to $M$ ). (b) Access the values of the reference policy $\mu _ { h } ( a | s )$ for all $( h , s , a )$ . For example, the learner can use it to sample actions $a \sim \mu _ { h } ( \cdot | s )$ for any $h , s$ for arbitrarily many times during learning.
72
+
73
+ The goal of the learner is to output $\varepsilon$ near-optimal policy $\widehat { \pi }$ within as few episodes of play (within the MDP) as possible.
74
+
75
+ A unique feature about the policy finetuning setting is that it allows both online interactive plays via any online RL algorithm (not necessarily using $\mu$ ), as well as offline reduction which simply collects data by executing the reference policy $\mu$ and do anything with the collected dataset. In particular, this means that any algorithm for offline policy optimization (based on offline datasets) also gives an algorithm for policy finetuning via this offline reduction. Therefore, policy finetuning offers a common playground for both online and offline type algorithms with a unified learning goal.
76
+
77
+ Assumption on reference policy Throughout most of this paper (except for Section 5), we consider the following assumption on the reference policy $\mu$ .
78
+
79
+ Assumption A (Single-policy concentrability). The reference policy $\mu$ satisfies that
80
+
81
+ $$
82
+ \operatorname* { m a x } _ { h \in [ H ] , ( s , a ) \in S \times A } \frac { d _ { h } ^ { \pi _ { \star } } ( s , a ) } { d _ { h } ^ { \mu } ( s , a ) } \leq C ^ { \star }
83
+ $$
84
+
85
+ (with the convention $0 / 0 = 0 ,$ ) for some deterministic optimal policy $\pi _ { \star }$ and constant $C ^ { \star } \geq 1$
86
+
87
+ The single-policy concentrability characterizes the distance between the visitation distributions of the reference policy $\mu$ and some optimal policy $\pi ^ { \star }$ . This assumption is considered in the recent work of Rashidinejad et al. [42] on offline RL and is more relaxed than previously assumed concentrability assumptions which typically requires the supremum concentrability against all possible $\pi$ ’s to be bounded [10]. We consider this assumption as it both allows efficient offline RL algorithms [42], and is perhaps also a sensible measure of quality for the reference policy in policy finetuning.
88
+
89
+ # 3 Sharp offline learning via reference-advantage decomposition
90
+
91
+ We begin by investigating the sharpest sample complexity for policy finetuning via the offline reduction approach. This requires us to design sharp offline RL algorithms that run on the dataset $\mathcal { D }$ collected by executing $\mu$ . We emphasize that this is both an interesting offline RL question on its own right, and also important for our later discussions on lower bounds and other algorithms for policy finetuning, as the sharpest sample complexity via offline reduction provides a solid baseline.
92
+
93
+ Warm-up: VI-LCB As a warm-up, we first show that a finite-horizon variant of the VILCB (Value Iteration with Lower Confidence Bounds) algorithm of Rashidinejad et al. [42] achieves sample complexity $\widetilde { O } ( H ^ { 5 } S C ^ { \star } / \varepsilon ^ { 2 } )$ for finding an $\varepsilon$ near-optimal policy. This result is similar to the $\widetilde { O } ( S C ^ { \star } / ( 1 - \gamma ) ^ { 5 } \varepsilon ^ { 2 } )$ guarantee3 for the original VI-LCB in infinite-horizon discounted MDPs [42, Theorem 6]. The main ingredients of our VI-LCB algorithm is a pessimistic value iteration procedure in which we perform value iteration on the empirical model estimated from the dataset $\mathcal { D }$ , along with a negative Hoeffding bonus term to impose pessimism. Due to space constraints, the algorithm description (Algorithm 3) and the proof of Theorem 1 are deferred to Appendix B.
94
+
95
+ Theorem 1 (VI-LCB for finite-horizon MDPs). Suppose the reference policy $\mu$ satisfies the singlepolicy concentrability (Assumption $A$ ). Then with probability at least $1 - \delta$ , VI-LCB (Algorithm 3) outputs a policy $\widehat { \pi }$ and value estimate $\widehat { V }$ such that
96
+
97
+ $$
98
+ \begin{array} { r l } & { ) \operatorname* { m a x } _ { h \in [ H ] } \sum _ { s \in { \mathcal { S } } } d _ { h } ^ { \pi _ { \star } } ( s ) ( V _ { h } ^ { \star } ( s ) - \widehat { V } _ { h } ( s ) ) \leq \varepsilon , } \\ & { } \\ & { V _ { 1 } ^ { \star } ( s _ { 1 } ) - V _ { 1 } ^ { \widehat { \pi } } ( s _ { 1 } ) \leq \varepsilon , } \end{array}
99
+ $$
100
+
101
+ within $n = \widetilde O \bigl ( H ^ { 5 } S C ^ { \star } / \varepsilon ^ { 2 } \bigr )$ episodes.
102
+
103
+ Theorem 1 serves two main purposes. First, the $\widetilde { O } ( H ^ { 5 } S C ^ { \star } / \varepsilon ^ { 2 } )$ sample complexity asserted in Theorem 1(b) provides a first result for offline RL (and offline reduction for policy finetuning) under single-policy concentrability in finite-horizon MDPs. Second, the value estimation bound in Theorem 1(a) shows that the estimated value function $\widehat { V } _ { h } ( s )$ provided by VI-LCB is close to the optimal value ${ V } _ { h } ^ { \star } ( s )$ at every step $h \in [ H ]$ , in terms of the weighted average with $d _ { h } ^ { \pi _ { \star } } ( s )$ . Our next algorithm PEVI-ADV builds on this property so that VI-LCB can be used as a β€œwarm-up” learning procedure that provides a high-quality value estimate.
104
+
105
+ Sharp offline learning via reference-advantage decomposition We now design a new sharp algorithm PEVI-ADV which achieves an improved $\widetilde { O } ( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } )$ sample complexity (for small enough $\varepsilon$ ). This improves over VI-LCB by $\widetilde O ( H ^ { 2 } )$ and is the first algorithm that matches the sample complexity lower bound. PEVI-ADV adds two new ingredients over VI-LCB in order to achieve the $\tilde { O } ( \bar { H } ^ { 2 } )$ improvement:
106
+
107
+ 1. We replace the Hoeffding-style bonus in VI-LCB with a Bernstein-style bonus. This shaves off one $H$ factor in the sample complexity via the total variance property (Lemma C.4).
108
+ 2. Both VI-LCB and our PEVI-ADV use data splitting to make sure that the estimated value $\widehat { V } _ { h + 1 }$ and empirical transitions $\widehat { \mathbb { P } } _ { h }$ are estimated using different subsets of $\mathcal { D }$ , this yields conditional independence that is required in bounding concentration terms of the form $( \widehat { \mathbb { P } } _ { h } - \mathbb { P } _ { h } ) \widehat { V } _ { h + 1 }$ . However, applied naively, this data splitting induces one undesired $H$ factor in the sample complexity as we need to split $\mathcal { D }$ into $H$ folds and thus each $\mathbb { P } _ { h }$ is estimated using only $n / H$ episodes of data. As a technical crux of this algorithm, we overcome this issue by adapting the reference-advantage decomposition technique of Zhang et al. [63]. This technique proposes to learn an initial reference value function $\widehat { V } ^ { \mathrm { r e f } }$ of good quality in a certain sense, and then performing the following type of approximate value iteration (using the right-hand side as the algorithm update):
109
+
110
+ $$
111
+ \mathbb { P } _ { h } \widehat { V } _ { h + 1 } \approx \widehat { \mathbb { P } } _ { h , 0 } \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } + \widehat { \mathbb { P } } _ { h , 1 } \Big ( \widehat { V } _ { h + 1 } - \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } \Big ) .
112
+ $$
113
+
114
+ Above, $\widehat { V } _ { h + 1 } , \widehat { \mathbb { P } } _ { h , 0 }$ , and $\widehat { \mathbb { P } } _ { h , 1 }$ are estimated on three disjoint subsets of the data. The advantage of this approach is that, due to this new independence structure, $\widehat { \mathbb { P } } _ { h , 0 }$ for different $h \in [ H ]$ can be estimated on the same set of trajectories without $H$ -fold splitting, which shaves off the $H$ factor within this part. On the other hand, estimating $\widehat { \mathbb { P } } _ { h , 1 }$ still requires $H$ -fold splitting, yet this would not hurt the sample complexity if the magnitude of $( \widehat { V } _ { h + 1 } - \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } )$ is much smaller than its naive upper bound $O ( H )$ β€”we show this can be achieved by using VI-LCB to learn $\widehat { V } ^ { \mathrm { r e f } }$ .
115
+
116
+ Require: Dataset $\mathcal { D } = \left\{ ( s _ { 1 } ^ { ( i ) } , a _ { 1 } ^ { ( i ) } , r _ { 1 } ^ { ( i ) } , \dotsc , s _ { H } ^ { ( i ) } , a _ { H } ^ { ( i ) } , r _ { H } ^ { ( i ) } ) \right\} _ { i = 1 } ^ { n }$ collected by executing $\mu$ in $M$ .
117
+
118
+ 1: Split the dataset $\mathcal { D }$ into ${ \mathcal { D } } _ { \mathrm { r e f } }$ , $\mathcal { D } _ { 0 }$ and $\left\{ \mathcal { D } _ { h , 1 } \right\} _ { h = 1 } ^ { H }$ uniformly at random:
119
+
120
+ $$
121
+ n _ { \mathrm { r e f } } : = \left| \mathcal { D } _ { \mathrm { r e f } } \right| = n / 3 , n _ { 0 } : = \left| \mathcal { D } _ { 0 } \right| = n / 3 , n _ { 1 , h } : = \left| \mathcal { D } _ { h , 1 } \right| : = n / ( 3 H ) ( n _ { 1 } : = n / 3 ) .
122
+ $$
123
+
124
+ 2: Learn a reference value function $\widehat { V } ^ { \mathrm { r e f } } \gets \mathrm { V I - L C B } ( \mathcal { D } _ { \mathrm { r e f } } )$ via VI-LCB (Algorithm 3).
125
+
126
+ 3: Let $N _ { h , 0 } ( s , a )$ and $N _ { h , 0 } ( s , a , s ^ { \prime } )$ denote the visitation count of $( s , a )$ and $( s , a , s ^ { \prime } )$ at step $h$ within dataset $\mathcal { D } _ { 0 }$ . Construct empirical model estimates:
127
+
128
+ $$
129
+ \widehat { \mathbb { P } } _ { h , 0 } ( s ^ { \prime } | s , a ) \gets \frac { N _ { h , 0 } ( s , a , s ^ { \prime } ) } { N _ { h , 0 } ( s , a ) \vee 1 } , \quad \mathrm { a n d } \quad \widehat { r } _ { h , 0 } ( s , a ) \gets r _ { h } ( s , a ) \mathbb { 1 } \left\{ N _ { h , 0 } ( s , a ) \geq 1 \right\} .
130
+ $$
131
+
132
+ Similarly define $N _ { h , 1 } ( s , a ) , N _ { h , 1 } ( s , a , s ^ { \prime } ) ,$ $( \widehat { r } _ { h , 1 } , \widehat { \mathbb { P } } _ { h , 1 } )$ for all $h \in [ H ]$ based on dataset $\mathcal { D } _ { h , 1 }$
133
+
134
+ 4: Set $\begin{array} { r } { b _ { h , 0 } ( s , a ) \gets c \cdot \left( \sqrt { \frac { [ \widehat { \Psi } _ { h , 0 } \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } ] ( s , a ) \iota } { N _ { h , 0 } ( s , a ) \vee 1 } } + \frac { H \iota } { N _ { h , 0 } ( s , a ) \vee 1 } \right) } \end{array}$ for all $( h , s , a )$ , where $\iota : = \log ( H S A / \delta )$
135
+
136
+ 5: Set $\widehat { V } _ { H + 1 } ( s ) \gets 0$ for all $s \in S$ .
137
+
138
+ 6: for $h = H , \ldots , 1$ do
139
+
140
+ 8: Perform pessimistic value update for all $( s , a )$
141
+
142
+ $$
143
+ \begin{array} { r l } & { \widehat { Q } _ { h } ( s , a ) \gets \widehat { r } _ { h , 0 } ( s , a ) + \left[ \widehat { \mathbb { P } } _ { h , 0 } \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } \right] ( s , a ) - b _ { h , 0 } ( s , a ) + \left[ \widehat { \mathbb { P } } _ { h , 1 } ( \widehat { V } _ { h + 1 } - \widehat { V } _ { h + 1 } ^ { \mathrm { r e f } } ) \right] ( s , a ) - b _ { h , 1 } ( s , a ) } \\ & { \widehat { V } _ { h } ( s ) \gets \left[ \operatorname* { m a x } _ { a } \widehat { Q } _ { h } ( s , a ) \right] \vee 0 . } \\ & { \mathrm { S e t } \widehat { \pi } _ { h } ( s ) \gets \arg \operatorname* { m a x } _ { a } \widehat { Q } _ { h } ( s , a ) \mathrm { f o r } \mathrm { a l l } s \in S . } \end{array}
144
+ $$
145
+
146
+ b10: end for
147
+
148
+ 11: return Policy $\widehat { \pi } = \{ \widehat { \pi } _ { h } \} _ { h \in [ H ] }$
149
+
150
+ We instantiate this plan by carefully using VI-LCB to learn the reference value function $\widehat { V } ^ { \mathrm { r e f } }$ , combined with tight Bernstein bonuses, to shave off another $H$ factor in the sample complexity. The full PEVI-ADV algorithm is provided in Algorithm 1. We now present its guarantee in the following theorem. The proof can be found in Appendix C.
151
+
152
+ Theorem 2 (Sharp offline learning via PEVI-ADV). Suppose the reference policy $\mu$ satisfies the single-policy concentrability (Assumption $A$ ). Then with probability at least $1 - \delta$ , PEVI-ADV (Algorithm 1) outputs a policy $\widehat { \pi }$ and value estimate $\widehat { V }$ such that
153
+
154
+ $$
155
+ \begin{array} { r l } & { \operatorname* { m a x } _ { h \in [ H ] } \sum _ { s \in { { \mathcal { S } } } } d _ { h } ^ { \pi _ { \star } } ( s ) ( V _ { h } ^ { \star } ( s ) - \widehat { V } _ { h } ( s ) ) \leq \varepsilon , } \\ & { } \\ & { V _ { 1 } ^ { \star } ( s _ { 1 } ) - V _ { 1 } ^ { \widehat { \pi } } ( s _ { 1 } ) \leq \varepsilon , } \end{array}
156
+ $$
157
+
158
+ within $n = \widetilde O \left( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } + H ^ { 5 . 5 } S C ^ { \star } / \varepsilon \right)$ episodes.
159
+
160
+ Near-optimal offline RL under single-policy concentrability For small enough $\varepsilon \le H ^ { - 2 . 5 }$ , Theorem 2 achieves $\widetilde { O } ( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } )$ sample complexity for finding the $\varepsilon$ near-optimal policy from the offlien dataset $\mathcal { D }$ . This is the first cubic horizon dependence for offline RL under single-policy concentrability, which improves over recent works [25, 42] in this setting and resolves the open question of [42]. For $C ^ { \star } \geq 2$ , our sample complexity further matches the information-theoretical lower bound $\Omega ( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } )$ up to log factors4. We remark that tight hoziron dependence has also been achieved in several recent works offline RL [58, 59, 43] which are however quite different from (and do not imply) ours in both the assumptions (on the behavior policy) and the analyses.
161
+
162
+ # 4 Lower bound for policy finetuning
163
+
164
+ We now switch gears to considering the policy finetuning problem with any algorithm, not necessarily restricted to the offline reduction approach.
165
+
166
+ Two baselines: offline reduction $\pmb { \& }$ purely online RL A first observation is that naive offline reduction is already a strong baseline for policy finetuning, by our Theorem 2: Our PEVI-ADV algorithm only collects data with $\mu$ and does not do any online exploration, yet achieves a sharp $\bar { \tilde { O } } ( H ^ { 3 } S C ^ { \star } / \bar { \varepsilon } ^ { 2 } )$ sample complexity for finding a near-optimal policy.
167
+
168
+ On the other hand, as the policy finetuning setting allows online interaction, purely online $R L$ is another baseline algorithm: Simply run any sample-efficient online RL algorithm (which typically uses optimism to encourage exploration) from scratch, and disregard the reference policy $\mu$ . Using any sharp online RL algorithm such as UCBVI [5], this approach can find an $\varepsilon$ near-optimal policy within $\widetilde { \cal O } ( H ^ { 3 } S A / \varepsilon ^ { 2 } )$ episodes of play. Note that whether this is advantageous over the offline reduction boils down to the comparison between $C ^ { \star }$ and $A$ , which makes sense intuitively. For example, $C ^ { \star } \leq o ( A )$ means that $\mu$ is perhaps close enough to $\pi _ { \star }$ so that collecting data from $\mu$ and run offline policy optimization is a stronger algorithm than exploring from scratch.
169
+
170
+ Given these two baselines, it is natural to ask whether there exists an algorithm that improves over both β€” Can we design an algorithm that performs some amount of optimistic exploration, yet also utilizes the knowledge of $\mu$ , so as to achieve a better rate than both offline reduction and purely online RL? In this section, we provide an information-theoretic lower bound showing that, perhaps surprisingly, the answer is negative: there is an $\Omega ( H ^ { 3 } S \operatorname* { m i n } { \{ C ^ { \star } , A \} } / \varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, if we still assume that $\mu$ satisfies $C ^ { \star }$ single-policy concentrability.
171
+
172
+ Lower bound To formally state our lower bound, we define the class of problems
173
+
174
+ $$
175
+ \mathcal { M } _ { C ^ { \star } } : = \Bigg \{ ( M , \mu ) : ~ \mathrm { E x i s t s ~ d e t e r m i n i s t i c } ~ \pi _ { \star } ~ \mathrm { o f } ~ M \mathrm { ~ s u c h ~ t h a t ~ } \operatorname* { s u p } _ { h , s , a } \frac { d _ { h } ^ { \pi _ { \star } } ( s , a ) } { d _ { h } ^ { \mu } ( s , a ) } \leq C ^ { \star } \Bigg \} .
176
+ $$
177
+
178
+ We recall that a policy finetuning algorithm for problem $( M , \mu )$ is defined as any algorithm that can play in the MDP $M$ for $n$ episodes, has full knowledge of the reference policy $\mu$ , and outputs a policy $\widehat { \pi }$ after playing in the MDP.
179
+
180
+ With these definitions ready, we now state our lower bound for policy finetuning. The proof of Theorem 3 can be found in Appendix D.
181
+
182
+ Theorem 3 (Lower bound for policy finetuning). Suppose $S , H \geq 3 , A \geq 2 , C ^ { \star } \geq 2 .$ . Then, there exists an absolute constant $c _ { 0 } > 0$ such that for any $\varepsilon \le 1 / 1 2$ and any online finetuning algorithm that outputs a policy $\widehat { \pi }$ , if the number of episodes
183
+
184
+ $$
185
+ n \leq c _ { 0 } \cdot H ^ { 3 } S \operatorname* { m i n } { \{ C ^ { \star } , A \} } / \varepsilon ^ { 2 } ,
186
+ $$
187
+
188
+ then there exists a problem instance $( M , \mu ) \ \in \ { \mathcal { M } } _ { C ^ { \star } }$ on which the algorithm suffers from $\varepsilon$ - suboptimality:
189
+
190
+ $$
191
+ \mathbb { E } _ { M } \left[ V _ { 1 , M } ^ { \star } - V _ { 1 , M } ^ { \widehat { \pi } } \right] \geq \varepsilon ,
192
+ $$
193
+
194
+ where the expectation $\mathbb { E } _ { M }$ is w.r.t. the randomness during the algorithm execution within MDP M .
195
+
196
+ Either offline reduction or purely online is optimal Theroem 3 shows that any policy finetuning algorithm needs to play at least $\Omega ( H ^ { 3 } S \operatorname* { m i n } \{ C ^ { \star } , A \} / \varepsilon ^ { 2 } )$ episodes in order to find an $\varepsilon$ near-optimal policy. Crucially, this implies that either a sharp offline reduction (e.g. our PEVI-ADV algorithm) or purely online RL matches the lower bound (up to log), depending on whether $C ^ { \star } \lesssim A$ . In other words, if we have the knowledge of whether $C ^ { \star } \leq A$ , choosing the right one of these two baseline algorithms will yield the optimal sample complexity. Perhaps surprisingly, this rules out the possibility of designing any algorithm β€œin between” that combines online exploration and knowledge of $\mu$ to improve the sample complexity, at least in the worst-case over all problems in $\mathcal { M } _ { C ^ { \star } }$ . We argue that this β€œno algorithm in between” phenomenon may be due to the single-policy concentrability assumption being too strong such that offline reduction already achieves a rather competitive sample
197
+
198
+ Require: MDP $M$ , reference policy $\mu$
199
+
200
+ 6: Denote the final output of UCBVI-UPLOW as
201
+
202
+ $$
203
+ \begin{array} { r } { ( \overline { { V } } _ { h _ { \star } + 1 } , \underline { { V } } _ { h _ { \star } + 1 } , \widehat { \pi } _ { ( h _ { \star } + 1 ) : H } ^ { \mathrm { U C B } } ) \gets \mathbf { U C B V I - U P L O W } ( n _ { \mathrm { U C B } } ) . } \end{array}
204
+ $$
205
+
206
+ 7: # Stage 2: Learn step $1 : h _ { \star }$ via executing $\mu +$ pessimistic offline policy optimization 8: Collect 9: Learn p $\mathcal { D } \{ n - n _ { \mathrm { U C B } }$ episodes of data using policy he TRUNCATED-PEVI-ADV( $\mu$ up to step lgorithm 5 $h _ { \star } \}$ . $\hat { \pi } _ { 1 : h _ { \star } } ^ { \mathrm { P E V I } }$
207
+
208
+ $$
209
+ \widehat { \pi } _ { 1 : h _ { \star } } ^ { \mathrm { P E V I } } \mathrm { T R U N C A T E D - P E V I - A D V } ( \mathcal { D } , h _ { \star } , \underline { { V } } _ { h _ { \star } + 1 } ) .
210
+ $$
211
+
212
+ $\widehat { \pi } = ( \widehat { \pi } _ { 1 : h _ { \star } } ^ { \mathrm { P E V I } } , \widehat { \pi } _ { ( h _ { \star } + 1 ) : H } ^ { \mathrm { U C B } } )$
213
+
214
+ complexity $\widetilde { O } ( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } )$ . We investigate policy finetuning beyond the single-policy concentrability assumption in Section 5.
215
+
216
+ We also remark that Theorem 3 generalizes both the $\Omega ( H ^ { 3 } S A / \varepsilon ^ { 2 } )$ lower bound for online RL [11, 58, 13] into the policy finetuning problem, as well as the $\Omega ( \dot { H } ^ { 3 } S C ^ { \star } / \varepsilon ^ { 2 } )$ lower bound for offline RL under single-policy concentrability with $C ^ { \star } \geq 2 [ 4 2 ] ^ { 5 }$ . Further, Theorem 3 directly implies an $\Omega ( H ^ { 3 } S C ^ { \star } / \varepsilon ^ { \star } )$ lower bound for offline RL with $2 \leq C ^ { \star } \leq O ( A )$ , as any algorithm for offline policy optimization is also an algorithm for policy finetuning via the offline reduction.
217
+
218
+ Proof intuition; Construction of hard instance The proof of Theorem 3 constructs a family of hard MDPs that requires solving $H S$ β€œindependent” bandit problems with $A$ arms, similar as in existing $\Omega ( H ^ { 3 } S A / \bar { \varepsilon } ^ { 2 } )$ lower bounds for online RL [11, 58]. However, our key modification is that we let the optimal arms to be always within the first $K : = \operatorname* { m i n } \left\{ C ^ { \star } , A \right\}$ actions instead of all $A$ actions, and we define our reference policy $\mu$ to play uniformly within $[ K ]$ . This $\mu$ has the following properties:
219
+
220
+ β€’ $\mu$ satisfies $C ^ { \star }$ single-policy concentrability for any MDP in this family (Lemma D.1). β€’ $\mu$ provides the knowledge that the optimal actions are within $[ K ]$ , but no other knowledge about the optimal actions.
221
+
222
+ Therefore, with $\mu$ at hand, any policy finetuning algorithm can β€œgain the knowledge” that the optimal actions are within $[ K ]$ , but still needs to try all $K$ actions in order to solve each bandit problemβ€” rigorizing this information-theoretically gives the $\Omega ( H ^ { 3 } S K / \varepsilon ^ { 2 } ) = \Omega ( H ^ { 3 } S \operatorname* { m i n } { \{ C ^ { \star } , A \} } \mathbf { \hat { / } } \varepsilon ^ { 2 } )$ lower bound.
223
+
224
+ # 5 Hybrid offline/online algorithm for policy finetuning
225
+
226
+ Towards circumventing the lower bound in Theorem 3, in this section, we study policy finetuning under more relaxed assumptions on the reference policy $\mu$ . A weaker $\mu$ will induce a higher sample complexity for naive offline reduction approaches, and thus yields opportunities for designing new algorithms that can potentially better utilize $\mu$ .
227
+
228
+ More concretely, we consider the following relaxation: We assume $\mu$ satisfies partial concentrability only up to a certain time-step $h _ { \star } \leq H$ , and may not have any bounded concentrability at steps $h > h _ { \star }$ . We formalize this in the following
229
+
230
+ Assumption B ( $h _ { \star }$ -partial concentrability). The reference policy $\mu$ satisfies the single-policy concentrability with respect to $\pi _ { \star }$ up to step $h _ { \star }$ only:
231
+
232
+ $$
233
+ \operatorname* { m a x } _ { h \leq h _ { \star } } \operatorname* { m a x } _ { s , a \in { \mathcal { S } } \times { \mathcal { A } } } { \frac { d _ { h } ^ { \pi _ { \star } } ( s , a ) } { d _ { h } ^ { \mu } ( s , a ) } } \leq C ^ { \mathrm { p a r t i a l } }
234
+ $$
235
+
236
+ (with the convention $0 / 0 = 0 ,$ ), where $\pi _ { \star }$ is some deterministic optimal policy of the MDP, and constant Cpartial .
237
+
238
+ Algorithm description We design a hybrid offline/online algorithm HOOVI (presented in Algorithm 2) for policy finetuning under the partial concentrability assumption. At a high-level, the algorithm consists of two main stages:
239
+
240
+ β€’ In the first stage, it runs an online algorithm UCBVI-UPLOW which uses optimistic exploration to find a near-optimal policy ${ \widehat { \pi } } ^ { \mathrm { U C B } }$ and an accurate value estimate for steps $( h _ { \star } + 1 ) : H$ . β€’ In the second stage, we run a TRUNCATED-PEVI-ADV algorithm, which collects data from $\mu$ and runs offline policy optimization to find a near-optimal policy $\widehat { \pi } ^ { \mathrm { { P E V I } } }$ for steps $1 : h _ { \star }$ , building on the lower value estimate $\underline { { V } } _ { h _ { \star } + 1 }$ from the first stage.
241
+
242
+ This strategy makes sense intuitively as the reference policy $\mu$ does not have guarantees for steps $h _ { \star } + 1 : H$ and thus the algorithm is required to perform optimistic exploration first to get a good policy. However, additional technical cares are needed in order to make the above algorithm provably sample-efficient. The analysis of the second stage requires the online algorithm in the first stage to not only perform fast exploration (e.g. by using upper confidence bounds), but also output a lower value estimate for step $h _ { \star } + 1$ , and in addition output a final output policy that achieves at least the value of the lower value estimate at every state $s \in S$ . Such lower bounds are not directly available in standard online RL algorithms such as UCBVI [5].
243
+
244
+ We resolve this by designing the UCBVI-UPLOW algorithm (detailed description in Algorithm 4), which is a modification of the Nash-VI Algorithm of Liu et al. [34] (for two-player Markov games) into the single-player case. This algorithm is particularly suitable for our purpose since it maintains both upper bounds of $V ^ { \star }$ and lower bounds for the value function of the deployed policies. Our UCBVI-UPLOW further integrates the certified policy technique of Bai et al. [7] to make sure that its output policy achieves value greater or equal than the lower bound at every state (similar guarantees can also be obtained by the policy certificate technique of Dann et al. [12]).
245
+
246
+ We now state our main theoretical guarantee for the HOOVI algorithm. The proof can be found in Appendix E.
247
+
248
+ Theorem 4 (Hybrid online $/$ offline learning for policy finetuning). Suppose the reference policy $\mu$ satisfies the partial concentrability (Assumption $B$ ) up to some step $h _ { \star } \leq H$ . Then for small enough $\varepsilon \le \operatorname* { m i n } \left\{ h _ { \star } ^ { - 2 . 5 } , C ^ { \mathrm { p a r t i a l } } / S \right\}$ , HOOVI (Algorithm 2) outputs a policy $\widehat { \pi }$ such that ${ \cal V } _ { 1 } ^ { \star } ( s _ { 1 } ) -$ $V _ { 1 } ^ { \widehat { \pi } } ( s _ { 1 } ) \leq \varepsilon$ with probability at least $1 - \delta$ , within
249
+
250
+ $$
251
+ n = { \tilde { O } } \left( { \frac { H ^ { 2 } h _ { \star } S C ^ { \mathrm { p a r t i a l } } + ( H - h _ { \star } ) ^ { 3 } S A ( C ^ { \mathrm { p a r t i a l } } ) ^ { 2 } } { \varepsilon ^ { 2 } } } \right)
252
+ $$
253
+
254
+ episodes of play.
255
+
256
+ Comparison against offline reduction and purely online algorithms The sample complexity in Theorem 4 compares favorably against both naive offline reduction as well as purely online algorithms in certain situations. First, naive offline reduction with $\mu$ does not have any guarantee since $\mu$ is not assumed to have a finite single-policy concentrability at $h \geq h _ { \star } + 1$ . We can modify $\mu$ into $\mu ^ { \prime }$ that plays uniformly within $\mathcal { A }$ at steps $h \geq h _ { \star } + 1$ ; the single-policy concentrability coefficient of $\mu ^ { \prime }$ is guaranteed to be finite but scales exponentially as $O ( \breve { A } ^ { H - \mathbf { \breve { h } _ { \star } } } )$ in the worst case, leading to a sample complexity much worse than ours (which is polynomial in $H , S , A )$ .
257
+
258
+ On the other hand, a sharp online algorithm can still achieve $\widetilde { \cal O } ( H ^ { 3 } S A / \varepsilon ^ { 2 } )$ in this setting (by optimistic exploration from scratch). Our Theorem 4 is in general incomparable with this, but can be better in cases when both $C ^ { \mathrm { p a r t i a l } }$ and $H \mathrm { ~ - ~ } h _ { \star }$ are small, e.g., if $\ { \dot { C } } ^ { \mathrm { p a r t i a l } } = o ( A )$ and $( H - h _ { \star } ) / H = o ( ( C ^ { \mathrm { p a r t i a l } } ) ^ { - 2 / 3 } )$ . This makes sense intuitively as our hybrid offline/online algorithm benefits the most if the length requiring exploration $( H - h _ { \star } )$ is small, and the partial concentrability $C ^ { \mathrm { p a r t i a l } }$ is small so that $\mu$ still has a high-quality for the first $h _ { \star }$ steps. To best of our knowledge, this is first result that characterizes when the sample complexity of such hybrid algorithms can be beneficial over purely online or offline algorithms.
259
+
260
+ # 6 Conclusion & discussions
261
+
262
+ This paper studies policy finetuning, a new reinforcement learning setting that allows us to compare and connect sample-efficient online and offline reinforcement learning. We establish sharp upper and lower bounds for policy finetuning under various assumptions on the reference policy. Our bounds show that the optimal policy finetuning algorithm is either offline reduction or a purely online algorithm in the specific setting where the reference policy satisfies single-policy concentrability, and we also show that a hybrid online/offline algorithm can be advantageous over both in more relaxed settings. Many directions could be of interest for future research, such as alternative assumptions on the reference policy, or policy finetuning with function approximation.
263
+
264
+ Also, while our contributions are mainly theoretical, implementing or extending our policy finetuning algorithms on real-world RL tasks would be a compelling future direction. When the environment is a tabular MDP, our Algorithm 1 (offline reduction) and Algorithm 2 (hybrid offline / online RL) are readily implementable. When there is large state/action space and potentially function approximation, we believe our algorithm can be adapted, for example, by replacing all the optimistic/pessimistic value iteration steps by DQN-type algorithms [38] with positive/negative bonus functions [50]. Experimental evaluation of such algorithms would be a good direction for future work.
265
+
266
+ # Acknowledgment
267
+
268
+ The authors would like to thank Ming Yin, Chi Jin and David Forsyth for the many insightful discussions. NJ acknowledges funding support from the ARL Cooperative Agreement W911NF17-2-0196, NSF IIS-2112471, and Adobe Data Science Research Award. HW, CX, YB are funded through employment with Salesforce.
269
+
270
+ # References
271
+
272
+ [1] A. Agarwal, S. Kakade, A. Krishnamurthy, and W. Sun. Flambe: Structural complexity and representation learning of low rank mdps. arXiv preprint arXiv:2006.10814, 2020.
273
+ [2] S. Agrawal and R. Jia. Optimistic posterior sampling for reinforcement learning: worst-case regret bounds. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 1184–1194, 2017.
274
+ [3] I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, R. Ribas, et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019.
275
+ [4] A. Antos, C. SzepesvΓ‘ri, and R. Munos. Learning near-optimal policies with bellman-residual minimization based fitted policy iteration and a single sample path. Machine Learning, 71(1): 89–129, 2008.
276
+ [5] M. G. Azar, I. Osband, and R. Munos. Minimax regret bounds for reinforcement learning. In International Conference on Machine Learning, pages 263–272. PMLR, 2017.
277
+ [6] Y. Bai, T. Xie, N. Jiang, and Y.-X. Wang. Provably efficient q-learning with low switching cost. arXiv preprint arXiv:1905.12849, 2019.
278
+ [7] Y. Bai, C. Jin, and T. Yu. Near-optimal reinforcement learning with self-play. Advances in Neural Information Processing Systems, 33, 2020.
279
+ [8] B. Baker, I. Kanitscheider, T. Markov, Y. Wu, G. Powell, B. McGrew, and I. Mordatch. Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019.
280
+ [9] R. I. Brafman and M. Tennenholtz. R-max-a general polynomial time algorithm for near-optimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002.
281
+ [10] J. Chen and N. Jiang. Information-theoretic considerations in batch reinforcement learning. In International Conference on Machine Learning, pages 1042–1051. PMLR, 2019.
282
+ [11] C. Dann, T. Lattimore, and E. Brunskill. Unifying pac and regret: uniform pac bounds for episodic reinforcement learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 5717–5727, 2017.
283
+ [12] C. Dann, L. Li, W. Wei, and E. Brunskill. Policy certificates: Towards accountable reinforcement learning. In International Conference on Machine Learning, pages 1507–1516. PMLR, 2019.
284
+ [13] O. D. Domingues, P. MΓ©nard, E. Kaufmann, and M. Valko. Episodic reinforcement learning in finite mdps: Minimax lower bounds revisited. In Algorithmic Learning Theory, pages 578–598. PMLR, 2021.
285
+ [14] S. S. Du, S. M. Kakade, J. D. Lee, S. Lovett, G. Mahajan, W. Sun, and R. Wang. Bilinear classes: A structural framework for provable generalization in rl. arXiv preprint arXiv:2103.10897, 2021.
286
+ [15] A. M. Farahmand, R. Munos, and C. SzepesvΓ‘ri. Error propagation for approximate policy and value iteration. In Advances in Neural Information Processing Systems, 2010.
287
+ [16] S. Fujimoto, D. Meger, and D. Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pages 2052–2062. PMLR, 2019.
288
+ [17] M. Gao, T. Xie, S. S. Du, and L. F. Yang. A provably efficient algorithm for linear markov decision process with low switching cost. arXiv preprint arXiv:2101.00494, 2021.
289
+ [18] M. Hessel, J. Modayil, H. Van Hasselt, T. Schaul, G. Ostrovski, W. Dabney, D. Horgan, B. Piot, M. Azar, and D. Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
290
+ [19] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010.
291
+ [20] M. Janner, J. Fu, M. Zhang, and S. Levine. When to trust your model: Model-based policy optimization. arXiv preprint arXiv:1906.08253, 2019.
292
+ [21] N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. Contextual decision processes with low bellman rank are pac-learnable. In International Conference on Machine Learning, pages 1704–1713. PMLR, 2017.
293
+ [22] C. Jin, Z. Allen-Zhu, S. Bubeck, and M. I. Jordan. Is q-learning provably efficient? In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 4868–4878, 2018.
294
+ [23] C. Jin, Z. Yang, Z. Wang, and M. I. Jordan. Provably efficient reinforcement learning with linear function approximation. In Conference on Learning Theory, pages 2137–2143. PMLR, 2020.
295
+ [24] C. Jin, Q. Liu, and S. Miryoosefi. Bellman eluder dimension: New rich classes of rl problems, and sample-efficient algorithms. arXiv preprint arXiv:2102.00815, 2021.
296
+ [25] Y. Jin, Z. Yang, and Z. Wang. Is pessimism provably efficient for offline rl? arXiv preprint arXiv:2012.15085, 2020.
297
+ [26] D. Kalashnikov, A. Irpan, P. Pastor, J. Ibarz, A. Herzog, E. Jang, D. Quillen, E. Holly, M. Kalakrishnan, V. Vanhoucke, et al. Scalable deep reinforcement learning for vision-based robotic manipulation. In Conference on Robot Learning, pages 651–673. PMLR, 2018.
298
+ [27] M. Kearns and S. Singh. Near-optimal reinforcement learning in polynomial time. Machine learning, 49(2):209–232, 2002.
299
+ [28] R. Kidambi, A. Rajeswaran, P. Netrapalli, and T. Joachims. Morel: Model-based offline reinforcement learning. arXiv preprint arXiv:2005.05951, 2020.
300
+ [29] A. Kumar, J. Fu, G. Tucker, and S. Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. arXiv preprint arXiv:1906.00949, 2019.
301
+ [30] A. Kumar, A. Zhou, G. Tucker, and S. Levine. Conservative q-learning for offline reinforcement learning. arXiv preprint arXiv:2006.04779, 2020.
302
+ [31] T. Lattimore and C. SzepesvΓ‘ri. Bandit algorithms. Cambridge University Press, 2020.
303
+ [32] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science robotics, 5(47), 2020.
304
+ [33] E. L. Lehmann and G. Casella. Theory of point estimation. Springer Science & Business Media, 2006.
305
+ [34] Q. Liu, T. Yu, Y. Bai, and C. Jin. A sharp analysis of model-based reinforcement learning with self-play. arXiv preprint arXiv:2010.01604, 2020.
306
+ [35] Y. Liu, A. Swaminathan, A. Agarwal, and E. Brunskill. Provably good batch reinforcement learning without great exploration. arXiv preprint arXiv:2007.08202, 2020.
307
+ [36] T. Matsushima, H. Furuta, Y. Matsuo, O. Nachum, and S. Gu. Deployment-efficient reinforcement learning via model-based offline optimization. arXiv preprint arXiv:2006.03647, 2020.
308
+ [37] A. Maurer and M. Pontil. Empirical bernstein bounds and sample variance penalization. arXiv preprint arXiv:0907.3740, 2009.
309
+ [38] V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015.
310
+ [39] R. Munos. Error bounds for approximate policy iteration. In ICML, volume 3, pages 560–567, 2003.
311
+ [40] R. Munos and C. SzepesvΓ‘ri. Finite-time bounds for fitted value iteration. Journal of Machine Learning Research, 9(5), 2008.
312
+ [41] I. Osband and B. V. Roy. Model-based reinforcement learning and the eluder dimension. In Proceedings of the 27th International Conference on Neural Information Processing SystemsVolume 1, pages 1466–1474, 2014.
313
+ [42] P. Rashidinejad, B. Zhu, C. Ma, J. Jiao, and S. Russell. Bridging offline reinforcement learning and imitation learning: A tale of pessimism. arXiv preprint arXiv:2103.12021, 2021.
314
+ [43] T. Ren, J. Li, B. Dai, S. S. Du, and S. Sanghavi. Nearly horizon-free offline reinforcement learning. arXiv preprint arXiv:2103.14077, 2021.
315
+ [44] D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
316
+ [45] D. Silver, J. Schrittwieser, K. Simonyan, I. Antonoglou, A. Huang, A. Guez, T. Hubert, L. Baker, M. Lai, A. Bolton, et al. Mastering the game of go without human knowledge. nature, 550 (7676):354–359, 2017.
317
+ [46] D. Su, J. D. Lee, J. M. Mulvey, and H. V. Poor. Musbo: Model-based uncertainty regularized and sample efficient batch optimization for deployment constrained reinforcement learning. arXiv preprint arXiv:2102.11448, 2021.
318
+ [47] W. Sun, N. Jiang, A. Krishnamurthy, A. Agarwal, and J. Langford. Model-based rl in contextual decision processes: Pac bounds and exponential improvements over model-free approaches. In Conference on Learning Theory, pages 2898–2933. PMLR, 2019.
319
+ [48] C. SzepesvΓ‘ri and R. Munos. Finite time bounds for sampling based fitted value iteration. In Proceedings of the 22nd international conference on Machine learning, pages 880–887, 2005.
320
+ [49] A. A. TaΓ―ga, W. Fedus, M. C. Machado, A. Courville, and M. G. Bellemare. Benchmarking bonus-based exploration methods on the arcade learning environment. arXiv preprint arXiv:1908.02388, 2019.
321
+ [50] A. A. Taiga, W. Fedus, M. C. Machado, A. Courville, and M. G. Bellemare. On bonus based exploration methods in the arcade learning environment. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BJewlyStDr.
322
+ [51] S. Tosatto, M. Pirotta, C. d’Eramo, and M. Restelli. Boosted fitted q-iteration. In International Conference on Machine Learning, pages 3434–3443. PMLR, 2017.
323
+ [52] O. Vinyals, I. Babuschkin, W. M. Czarnecki, M. Mathieu, A. Dudzik, J. Chung, D. H. Choi, R. Powell, T. Ewalds, P. Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019.
324
+ [53] R. Wang, R. R. Salakhutdinov, and L. Yang. Reinforcement learning with general value function approximation: Provably efficient approach via bounded eluder dimension. Advances in Neural Information Processing Systems, 33:6123–6135, 2020.
325
+ [54] T. Wang, D. Zhou, and Q. Gu. Provably efficient reinforcement learning with linear function approximation under adaptivity constraints. arXiv preprint arXiv:2101.02195, 2021.
326
+ [55] Y. Wu, G. Tucker, and O. Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019.
327
+ [56] T. Xie and N. Jiang. $\mathrm { Q ^ { * } }$ approximation schemes for batch reinforcement learning: A theoretical comparison. In Conference on Uncertainty in Artificial Intelligence, pages 550–559. PMLR, 2020.
328
+ [57] Z. Yang, C. Jin, Z. Wang, M. Wang, and M. I. Jordan. Bridging exploration and general function approximation in reinforcement learning: Provably efficient kernel and neural value iterations. arXiv preprint arXiv:2011.04622, 2020.
329
+ [58] M. Yin, Y. Bai, and Y.-X. Wang. Near optimal provable uniform convergence in off-policy evaluation for reinforcement learning. arXiv preprint arXiv:2007.03760, 2020.
330
+ [59] M. Yin, Y. Bai, and Y.-X. Wang. Near-optimal offline reinforcement learning via double variance reduction. arXiv preprint arXiv:2102.01748, 2021.
331
+ [60] T. Yu, G. Thomas, L. Yu, S. Ermon, J. Zou, S. Levine, C. Finn, and T. Ma. Mopo: Model-based offline policy optimization. arXiv preprint arXiv:2005.13239, 2020.
332
+ [61] A. Zanette, A. Lazaric, M. Kochenderfer, and E. Brunskill. Learning near optimal policies with low inherent bellman error. In International Conference on Machine Learning, pages 10978–10989. PMLR, 2020.
333
+ [62] A. Zanette, A. Lazaric, M. J. Kochenderfer, and E. Brunskill. Provably efficient reward-agnostic navigation with linear value iteration. arXiv preprint arXiv:2008.07737, 2020.
334
+ [63] Z. Zhang, Y. Zhou, and X. Ji. Almost optimal model-free reinforcement learningvia referenceadvantage decomposition. Advances in Neural Information Processing Systems, 33, 2020.
parse/train/MjNFN44NbZm/MjNFN44NbZm_content_list.json ADDED
@@ -0,0 +1,1389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Policy Finetuning: Bridging Sample-Efficient Offline and Online Reinforcement Learning ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 181,
8
+ 122,
9
+ 818,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tengyang Xie UIUC tx10@illinois.edu ",
17
+ "bbox": [
18
+ 199,
19
+ 227,
20
+ 346,
21
+ 267
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Nan Jiang UIUC nanjiang@illinois.edu ",
28
+ "bbox": [
29
+ 377,
30
+ 226,
31
+ 560,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Huan Wang Salesforce Research huan.wang@salesforce.com ",
39
+ "bbox": [
40
+ 591,
41
+ 226,
42
+ 799,
43
+ 267
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Caiming Xiong Salesforce Research cxiong@salesforce.com ",
50
+ "bbox": [
51
+ 267,
52
+ 289,
53
+ 449,
54
+ 332
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Yu Bai Salesforce Research yu.bai@salesforce.com ",
61
+ "bbox": [
62
+ 547,
63
+ 289,
64
+ 730,
65
+ 330
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 462,
75
+ 367,
76
+ 535,
77
+ 382
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Recent theoretical work studies sample-efficient reinforcement learning (RL) extensively in two settings: learning interactively in the environment (online RL), or learning from an offline dataset (offline RL). However, existing algorithms and theories for learning near-optimal policies in these two settings are rather different and disconnected. Towards bridging this gap, this paper initiates the theoretical study of policy finetuning, that is, online RL where the learner has additional access to a β€œreference policy” $\\mu$ close to the optimal policy $\\pi _ { \\star }$ in a certain sense. We consider the policy finetuning problem in episodic Markov Decision Processes (MDPs) with $S$ states, $A$ actions, and horizon length $H$ . We first design a sharp offline reduction algorithmβ€”which simply executes $\\mu$ and runs offline policy optimization on the collected datasetβ€”that finds an $\\varepsilon$ near-optimal policy within $\\bar { \\tilde { O } } ( \\bar { H ^ { 3 } } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ episodes, where $C ^ { \\star }$ is the single-policy concentrability coefficient between $\\mu$ and $\\pi _ { \\star }$ . This offline result is the first that matches the sample complexity lower bound in this setting, and resolves a recent open question in offline RL. We then establish an $\\Omega ( H ^ { 3 } S \\bar { \\operatorname* { m i n } } \\{ C ^ { \\star } , A \\} / \\varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, including those that can adaptively explore the environment. This implies thatβ€”perhaps surprisinglyβ€”the optimal policy finetuning algorithm is either offline reduction or a purely online RL algorithm that does not use $\\mu$ . Finally, we design a new hybrid offline/online algorithm for policy finetuning that achieves better sample complexity than both vanilla offline reduction and purely online RL algorithms, in a relaxed setting where $\\mu$ only satisfies concentrability partially up to a certain time step. Overall, our results offer a quantitative understanding on the benefit of a good reference policy, and make a step towards bridging offline and online RL. ",
84
+ "bbox": [
85
+ 232,
86
+ 402,
87
+ 766,
88
+ 734
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 174,
98
+ 767,
99
+ 310,
100
+ 784
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Reinforcement learning (RL)β€”where agents learn to play sequentially in an environment to maximize a cumulative reward functionβ€”has achieved great recent success in many artificial intelligence challenges such as video games playing [38, 52], large-scale strategy games (e.g. GO) [44, 45], robotic manipulation [3, 32], behavior learning in social scenarios [8], and more. In many such challenging domains, achieving human-like or superhuman performance requires training the RL agent with millions of samples (steps of acting or game playing) or more. Understanding and improving the sample efficiency of RL algorithms has been a central topic of research. ",
107
+ "bbox": [
108
+ 174,
109
+ 801,
110
+ 825,
111
+ 898
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Sample-efficient RL has been studied in a rich body of theoretical work in two main settings: online $R L$ , in which the learner has interactive access to the environment and can execute any policy; and offline $R L$ , in which the learner only has access to an β€œoffline” dataset collected by executing some (one or many) policies within the environment, and is not allowed to further access the environment. These two settings share some common learning goals such as the sample complexity (number of episodes of playing) for finding the optimal policy. However, existing algorithms and theories in the online and offline setting seem rather different and disconnectedβ€”In online RL, state-of-the-art sample-efficient algorithms typically explore the entire environment, e.g. by using optimism to encourage visitation to unseen states and actions [9, 27, 19, 41, 21, 5, 22, 12, 23, 53]. In contrast, offline RL does not allow interactive exploration, and sample-efficient policy optimization algorithms typically focus on optimizing an unbiased (or downward biased) estimator of the value function [39, 48, 4, 40, 10, 56, 35, 58, 25, 42]. It is therefore of interest to ask whether these two types of algorithms and theories can be connected in any way. ",
118
+ "bbox": [
119
+ 173,
120
+ 92,
121
+ 825,
122
+ 270
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Further, on the empirical end, insights and patterns from offline RL often help as well in designing online RL algorithms and improving the sample efficiency in the real world. For example, there are online RL algorithms that alternate between data collection steps using a fixed policy, and policy improvement steps by learning on the collected dataset [20]. The replay buffer in value-based algorithms can also be seen as a local form of offline (off-policy) policy optimization and are often be used in conjunction with optimistic exploration techniques [38, 18, 49]. The prevalence of these algorithms also offers practical motivations for us to look for a more unified understanding of online and offline RL in theory. These reasonings motivate us to ask the following question: ",
129
+ "bbox": [
130
+ 174,
131
+ 276,
132
+ 825,
133
+ 387
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Can we bridge sample-efficient offline and online RL from a theoretical perspective? ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 232,
143
+ 397,
144
+ 764,
145
+ 412
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "This paper proposes policy finetuning, a new RL setting that investigates the benefit of a good initial policy in reinforcement learning, and encapsulates challenges of both online and offline RL. In the policy finetuning problem, the learner is given interactive access to the environment and asked to learn a near-optimal policy, but in addition has access to a reference policy $\\mu$ that is good in certain aspects. This setting offers great flexibility for the algorithm design: For example, the algorithm is allowed to either simply collect data from $\\mu$ and run any offline policy optimization algorithm on the collected dataset. It is also allowed to play any other policy interactively, including those that adaptively explores the environment. The policy finetuning problem offers a common playground for both offline and online types of algorithms, and has a unified performance metric (sample complexity for finding the near-optimal policy) for comparing their performance. ",
152
+ "bbox": [
153
+ 174,
154
+ 422,
155
+ 825,
156
+ 561
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "We study the policy finetuning problem theoretically in finite-horizon Markov Decision Processes (MDPs) with $H$ time steps, $S$ states, and $A$ actions. We summarize our contributions as follows. ",
163
+ "bbox": [
164
+ 176,
165
+ 568,
166
+ 823,
167
+ 595
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "β€’ We begin by considering offline reduction algorithms which simply collect data using the reference policy $\\mu$ and run an offline policy optimization algorithm on the collected dataset. This setting equivalent to offline RL with behavior policy $\\mu$ , and thus our result translates to a same result for offline RL as well. We design an algorithm PEVI-ADV that is able to find an $\\varepsilon$ -optimal policy (for small $\\varepsilon$ ) within $\\tilde { O } ( H ^ { 3 } S \\bar { C } ^ { \\star } / \\varepsilon ^ { 2 } )$ episodes of play, where $C ^ { \\star }$ is the single-policy concentrability coefficient between $\\mu$ and some optimal policy $\\pi _ { \\star }$ (Section 3). This improves over the best existing offline result by an $H ^ { 2 }$ factor in the same setting and matches the lower bound (up to log factors), thereby resolving the recent open question of [42] on tight offline RL under single-policy concentrability. \nβ€’ Under the same assumption on $\\mu$ , we establish an $\\Omega ( H ^ { 3 } S \\operatorname* { m i n } { \\{ C ^ { \\star } , A \\} } / \\varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, including those that adaptively explores the environment (Section 4). This implies that the optimal policy finetuning algorithm is either offline reduction via PEVI-ADV, or a β€œpurely” online RL algorithm from scratch (such as UCBVI), depending on whether $C ^ { \\star } \\leq A$ . This comes rather surprising, as it rules out possibilities of combining online exploration and knowledge of $\\mu$ to further improve the sample complexity over the aforementioned two baselines. \nβ€’ Finally, we consider policy finetuning in a more challenging setting where $\\mu$ only satisfies concentrability up to a certain time step. We design a β€œhybrid offline/online” algorithm HOOVI that combines online exploration and offline data collection, and show that it achieves better sample complexity than both vanilla offline reduction and purely online algorithms in certain cases (Section 5). This gives a positive example on when such hybrid algorithm designs are beneficial. ",
174
+ "bbox": [
175
+ 187,
176
+ 606,
177
+ 825,
178
+ 911
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "1.1 Related work ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 174,
188
+ 90,
189
+ 305,
190
+ 106
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "Sample-efficient online RL There is a long line of work on establishing provably sample-efficient online RL algorithms. A major portion of these works is concerned with the tabular setting with finitely many states and actions [9, 27, 19, 5, 11, 2, 22, 63]. For episodic MDPs with inhomogeneous transition functions with $S$ states, and $A$ actions, and horizon length $H$ , the optimal sample complexity for finding the $\\varepsilon$ near-optimal policy is $\\widetilde { \\cal O } ( H ^ { 3 } S A / \\varepsilon ^ { 2 } )$ , achieved by various algorithms such as UCBVI of Azar et al. [5] and UCB-Advantage of Zhang et al. [63]. Our paper adapts the reference-advantage decomposition technique of Zhang et al. [63] to designing sharp offline algorithms. Online RL with with large state/action spaces are also studied by using function approximation in conjunction with structural assumptions on the MDP [23, 61, 62, 1, 41, 21, 47, 53, 57, 14, 24]. ",
197
+ "bbox": [
198
+ 173,
199
+ 116,
200
+ 825,
201
+ 244
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Offline RL Offline/batch RL studies the case where the agent only has access to an offline dataset obtained by executing a behavior policy in the environment. Sample-efficient learning results in offline RL typically work by assuming either sup-concentrability assumptions [39, 48, 4, 40, 15, 51, 10, 56]) or lower bounded exploration constants [58, 59] to ensure the sufficient coverage of offline data over all (relevant) states and actions. However, such strong coverage assumptions can often fail to hold in practice [16]. More recent works address this by using either policy constraint/regularization [16, 35, 29, 55], or the pessimism principle to optimize conservatively on the offline data [30, 60, 28, 25, 59, 42]. The policy-constraint/regularization-based approaches prevent the policy to visit states and actions that has no or low coverage from the offline data. Our proposed offline RL algorithm PEVI-ADV (Algorithm 1) is inspired by the pessimistic value iteration algorithms of [25, 42] and achieves an improved sample complexity over these work under the same single-policy concentrability assumption on the behavior policy. ",
208
+ "bbox": [
209
+ 173,
210
+ 257,
211
+ 825,
212
+ 424
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Bridging online and offline RL Kalashnikov et al. [26] observed empirically that the performance of policies trained purely from offline data can be improved considerably by a small amount of additional online fine-tuning. A recent line of work studied low switching cost RL [6, 63, 17, 54]β€” which forbits online RL algorithms from switching its policy too oftenβ€”as an interpolation between the online and offline settings. The same problem is also studied empirically as deployment-efficient RL [36, 46]. While we also attempt to bridge online and offline RL, our work differs from this line in that our policy finetuning setting allows a direct comparison between β€œfully offline” and β€œfully online” algorithms, whereas the low switching cost setting prohibits fully online algorithms. ",
219
+ "bbox": [
220
+ 174,
221
+ 439,
222
+ 826,
223
+ 550
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "2 Preliminaries ",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 174,
233
+ 569,
234
+ 318,
235
+ 585
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Markov Decision Processes In this paper, we consider episodic Markov decision processes (MDPs) with time-inhomogeneous transitions, specified by $M = ( \\mathcal { S } , \\mathcal { A } , H , \\mathbb { P } , r )$ , where $s$ is the state space, $\\mathcal { A }$ is the action space, $H$ is the horizon length, $\\mathbb { P } = \\{ \\mathbb { P } _ { h } \\} _ { h = 1 } ^ { H }$ where $\\mathbb { P } _ { h } ( \\cdot | s , a ) \\in \\Delta _ { S }$ is the transition probabilities at step $h$ , and $r = \\{ r _ { h } : \\mathcal { S } \\times \\mathcal { A } \\to [ 0 , 1 ] \\} _ { h = 1 } ^ { H }$ =1 are the deterministic1 reward functions at time step $h \\in [ H ]$ . Without loss of generality, we assume that the initial state $s _ { 1 }$ is deterministic2. ",
242
+ "bbox": [
243
+ 173,
244
+ 601,
245
+ 826,
246
+ 674
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "Policies, value functions, visitation distributions A policy $\\pi = \\{ \\pi _ { h } ( \\cdot | s ) \\} _ { h \\in [ H ] , s \\in { \\mathcal S } }$ consists of distributions $\\pi _ { h } ( \\cdot | s ) \\in \\Delta _ { { \\cal A } }$ . We use $\\mathbb { E } _ { \\pi } [ \\cdot ]$ to denote the expectation with respect to the random trajectory induced by $\\pi$ in the MDP $M$ , that is, $\\left( s _ { 1 } , a _ { 1 } , r _ { 1 } , s _ { 2 } , a _ { 2 } , r _ { 2 } , \\ldots , s _ { H } , a _ { H } , r _ { H } \\right)$ , where $a _ { h } =$ $\\pi _ { h } ( s _ { h } )$ , $r _ { h } = r _ { h } ( s _ { h } , a _ { h } )$ , $s _ { h + 1 } \\sim \\mathbb { P } _ { h } ( \\cdot | s _ { h } , a _ { h } )$ . For each policy $\\pi$ , let $V _ { h } ^ { \\pi } : { \\cal S } \\mathbb { R }$ and $Q _ { h } ^ { \\pi }$ : $S \\times \\mathcal { A } \\mathbb { R }$ denote its value functions and Q functions at each time step $h \\in [ H ]$ , that is, ",
253
+ "bbox": [
254
+ 174,
255
+ 688,
256
+ 825,
257
+ 762
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "equation",
263
+ "img_path": "images/7873e633643a6904bd586662797821de0a5e78a2d12e9b01ba967b991b5fab97.jpg",
264
+ "text": "$$\nV _ { h } ^ { \\pi } ( s ) : = \\mathbb { E } _ { \\pi } \\bigg [ \\sum _ { h ^ { \\prime } = h } ^ { H } r _ { h ^ { \\prime } } ( s _ { h ^ { \\prime } } , a _ { h ^ { \\prime } } ) \\bigg | s _ { h } = s \\bigg ] , Q _ { h } ^ { \\pi } ( s , a ) : = \\mathbb { E } _ { \\pi } \\bigg [ \\sum _ { h ^ { \\prime } = h } ^ { H } r _ { h ^ { \\prime } } ( s _ { h ^ { \\prime } } , a _ { h ^ { \\prime } } ) \\bigg | s _ { h } = s , a _ { h } = a \\bigg ] .\n$$",
265
+ "text_format": "latex",
266
+ "bbox": [
267
+ 181,
268
+ 767,
269
+ 818,
270
+ 813
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "The operators $\\mathbb { P } _ { h }$ and $\\mathbb { V } _ { h }$ are defined as $[ \\mathbb { P } _ { h } V _ { h + 1 } ] ( s , a ) : = \\mathbb { E } [ V _ { h + 1 } ( s ^ { \\prime } ) | s _ { h } = s , a _ { h } = a ]$ and $[ \\mathbb { V } _ { h } V _ { h + 1 } ] ( s , a ) : = \\mathrm { V a r } [ V _ { h + 1 } ( s ^ { \\prime } ) | s _ { h } = s , a _ { h } = a ]$ for any value function $V _ { h + 1 }$ at time step $h + 1$ ",
277
+ "bbox": [
278
+ 176,
279
+ 818,
280
+ 823,
281
+ 849
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "We also use $\\widehat { \\mathbb { P } } _ { h }$ and $\\widehat { V } _ { h }$ to denote empirical versions of these operators building on estimated models (which will be clear in the context). ",
288
+ "bbox": [
289
+ 171,
290
+ 90,
291
+ 823,
292
+ 119
293
+ ],
294
+ "page_idx": 3
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "We use $\\pi _ { \\star } : = \\arg \\operatorname* { m a x } _ { \\pi } V _ { 1 } ^ { \\pi } ( s _ { 1 } )$ to denote any optimal policy, and $V _ { h } ^ { \\star } : = V _ { h } ^ { \\pi _ { \\star } }$ and $Q _ { h } ^ { \\star } : = Q _ { h } ^ { \\pi _ { \\star } }$ to denote the value function and $\\mathrm { Q }$ function of $\\pi ^ { \\star }$ at all $h \\in [ H ]$ . Throughout this paper, our learning goal is to find an near-optimal policy $\\widehat { \\pi }$ such that ${ \\cal V } _ { 1 } ^ { \\star } ( s _ { 1 } ) \\dot { - } \\dot { \\cal V } _ { 1 } ^ { \\widehat \\pi } ( s _ { 1 } ) \\le \\varepsilon$ . ",
299
+ "bbox": [
300
+ 174,
301
+ 126,
302
+ 826,
303
+ 171
304
+ ],
305
+ "page_idx": 3
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Finally, we let $d _ { h } ^ { \\pi }$ denote the state(-action) visitation distributions of $\\pi$ at time step $h \\in [ H ]$ : ",
310
+ "bbox": [
311
+ 169,
312
+ 176,
313
+ 774,
314
+ 193
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "equation",
320
+ "img_path": "images/bb8236f38906f659940502f345ea6956ae293423aa6c4d209be9dc1aa8b10fe2.jpg",
321
+ "text": "$$\n\\begin{array} { r } { d _ { h } ^ { \\pi } ( s ) : = \\mathbb { P } ( s _ { h } = s | \\pi ) , \\mathrm { ~ a n d ~ } d _ { h } ^ { \\pi } ( s , a ) : = \\mathbb { P } ( s _ { h } = s , a _ { h } = a | \\pi ) . } \\end{array}\n$$",
322
+ "text_format": "latex",
323
+ "bbox": [
324
+ 285,
325
+ 199,
326
+ 710,
327
+ 218
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Miscellaneous We use standard $O ( \\cdot )$ and $\\Omega ( \\cdot )$ notation: $A = O ( B )$ is defined as $A \\leq C B$ for some absolute constant $C > 0$ (and similarly for $\\Omega$ ). The tilded notation $A = { \\widetilde { O } } ( B )$ denotes $A \\leq C L \\cdot B$ where $L$ is a poly-logarithmic factor of problem parameters. ",
334
+ "bbox": [
335
+ 174,
336
+ 232,
337
+ 825,
338
+ 279
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "2.1 Policy Finetuning ",
345
+ "text_level": 1,
346
+ "bbox": [
347
+ 174,
348
+ 296,
349
+ 336,
350
+ 313
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "We now introduce the setting of policy finetuning. A policy finetuning problem consists of an MDP $M$ and a reference policy $\\mu$ . During the learning stage, the learner can perform the following two types of moves: ",
357
+ "bbox": [
358
+ 174,
359
+ 324,
360
+ 825,
361
+ 366
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "(a) Play an episode in the MDP $M$ using any policy (i.e. learner has online interactive access to $M$ ). (b) Access the values of the reference policy $\\mu _ { h } ( a | s )$ for all $( h , s , a )$ . For example, the learner can use it to sample actions $a \\sim \\mu _ { h } ( \\cdot | s )$ for any $h , s$ for arbitrarily many times during learning. ",
368
+ "bbox": [
369
+ 171,
370
+ 377,
371
+ 826,
372
+ 429
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "The goal of the learner is to output $\\varepsilon$ near-optimal policy $\\widehat { \\pi }$ within as few episodes of play (within the MDP) as possible. ",
379
+ "bbox": [
380
+ 173,
381
+ 439,
382
+ 823,
383
+ 468
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "A unique feature about the policy finetuning setting is that it allows both online interactive plays via any online RL algorithm (not necessarily using $\\mu$ ), as well as offline reduction which simply collects data by executing the reference policy $\\mu$ and do anything with the collected dataset. In particular, this means that any algorithm for offline policy optimization (based on offline datasets) also gives an algorithm for policy finetuning via this offline reduction. Therefore, policy finetuning offers a common playground for both online and offline type algorithms with a unified learning goal. ",
390
+ "bbox": [
391
+ 173,
392
+ 476,
393
+ 825,
394
+ 560
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Assumption on reference policy Throughout most of this paper (except for Section 5), we consider the following assumption on the reference policy $\\mu$ . ",
401
+ "bbox": [
402
+ 173,
403
+ 575,
404
+ 821,
405
+ 606
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "Assumption A (Single-policy concentrability). The reference policy $\\mu$ satisfies that ",
412
+ "bbox": [
413
+ 174,
414
+ 609,
415
+ 723,
416
+ 625
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "equation",
422
+ "img_path": "images/35c3cb98cdbff3125af0092395a4d39c6db513187b43edac27a1105173466856.jpg",
423
+ "text": "$$\n\\operatorname* { m a x } _ { h \\in [ H ] , ( s , a ) \\in S \\times A } \\frac { d _ { h } ^ { \\pi _ { \\star } } ( s , a ) } { d _ { h } ^ { \\mu } ( s , a ) } \\leq C ^ { \\star }\n$$",
424
+ "text_format": "latex",
425
+ "bbox": [
426
+ 390,
427
+ 632,
428
+ 607,
429
+ 667
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "(with the convention $0 / 0 = 0 ,$ ) for some deterministic optimal policy $\\pi _ { \\star }$ and constant $C ^ { \\star } \\geq 1$ ",
436
+ "bbox": [
437
+ 173,
438
+ 675,
439
+ 784,
440
+ 690
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "The single-policy concentrability characterizes the distance between the visitation distributions of the reference policy $\\mu$ and some optimal policy $\\pi ^ { \\star }$ . This assumption is considered in the recent work of Rashidinejad et al. [42] on offline RL and is more relaxed than previously assumed concentrability assumptions which typically requires the supremum concentrability against all possible $\\pi$ ’s to be bounded [10]. We consider this assumption as it both allows efficient offline RL algorithms [42], and is perhaps also a sensible measure of quality for the reference policy in policy finetuning. ",
447
+ "bbox": [
448
+ 173,
449
+ 702,
450
+ 825,
451
+ 787
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "3 Sharp offline learning via reference-advantage decomposition ",
458
+ "text_level": 1,
459
+ "bbox": [
460
+ 173,
461
+ 808,
462
+ 717,
463
+ 825
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "We begin by investigating the sharpest sample complexity for policy finetuning via the offline reduction approach. This requires us to design sharp offline RL algorithms that run on the dataset $\\mathcal { D }$ collected by executing $\\mu$ . We emphasize that this is both an interesting offline RL question on its own right, and also important for our later discussions on lower bounds and other algorithms for policy finetuning, as the sharpest sample complexity via offline reduction provides a solid baseline. ",
470
+ "bbox": [
471
+ 174,
472
+ 842,
473
+ 825,
474
+ 911
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Warm-up: VI-LCB As a warm-up, we first show that a finite-horizon variant of the VILCB (Value Iteration with Lower Confidence Bounds) algorithm of Rashidinejad et al. [42] achieves sample complexity $\\widetilde { O } ( H ^ { 5 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ for finding an $\\varepsilon$ near-optimal policy. This result is similar to the $\\widetilde { O } ( S C ^ { \\star } / ( 1 - \\gamma ) ^ { 5 } \\varepsilon ^ { 2 } )$ guarantee3 for the original VI-LCB in infinite-horizon discounted MDPs [42, Theorem 6]. The main ingredients of our VI-LCB algorithm is a pessimistic value iteration procedure in which we perform value iteration on the empirical model estimated from the dataset $\\mathcal { D }$ , along with a negative Hoeffding bonus term to impose pessimism. Due to space constraints, the algorithm description (Algorithm 3) and the proof of Theorem 1 are deferred to Appendix B. ",
481
+ "bbox": [
482
+ 173,
483
+ 90,
484
+ 826,
485
+ 208
486
+ ],
487
+ "page_idx": 4
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Theorem 1 (VI-LCB for finite-horizon MDPs). Suppose the reference policy $\\mu$ satisfies the singlepolicy concentrability (Assumption $A$ ). Then with probability at least $1 - \\delta$ , VI-LCB (Algorithm 3) outputs a policy $\\widehat { \\pi }$ and value estimate $\\widehat { V }$ such that ",
492
+ "bbox": [
493
+ 174,
494
+ 210,
495
+ 826,
496
+ 256
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "equation",
502
+ "img_path": "images/55d62c7b4921ca93dbec499c589928ada724cef9bd97c3c1e557cdd59d71c7b8.jpg",
503
+ "text": "$$\n\\begin{array} { r l } & { ) \\operatorname* { m a x } _ { h \\in [ H ] } \\sum _ { s \\in { \\mathcal { S } } } d _ { h } ^ { \\pi _ { \\star } } ( s ) ( V _ { h } ^ { \\star } ( s ) - \\widehat { V } _ { h } ( s ) ) \\leq \\varepsilon , } \\\\ & { } \\\\ & { V _ { 1 } ^ { \\star } ( s _ { 1 } ) - V _ { 1 } ^ { \\widehat { \\pi } } ( s _ { 1 } ) \\leq \\varepsilon , } \\end{array}\n$$",
504
+ "text_format": "latex",
505
+ "bbox": [
506
+ 210,
507
+ 262,
508
+ 527,
509
+ 309
510
+ ],
511
+ "page_idx": 4
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "within $n = \\widetilde O \\bigl ( H ^ { 5 } S C ^ { \\star } / \\varepsilon ^ { 2 } \\bigr )$ episodes. ",
516
+ "bbox": [
517
+ 174,
518
+ 316,
519
+ 419,
520
+ 334
521
+ ],
522
+ "page_idx": 4
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "Theorem 1 serves two main purposes. First, the $\\widetilde { O } ( H ^ { 5 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ sample complexity asserted in Theorem 1(b) provides a first result for offline RL (and offline reduction for policy finetuning) under single-policy concentrability in finite-horizon MDPs. Second, the value estimation bound in Theorem 1(a) shows that the estimated value function $\\widehat { V } _ { h } ( s )$ provided by VI-LCB is close to the optimal value ${ V } _ { h } ^ { \\star } ( s )$ at every step $h \\in [ H ]$ , in terms of the weighted average with $d _ { h } ^ { \\pi _ { \\star } } ( s )$ . Our next algorithm PEVI-ADV builds on this property so that VI-LCB can be used as a β€œwarm-up” learning procedure that provides a high-quality value estimate. ",
527
+ "bbox": [
528
+ 173,
529
+ 344,
530
+ 825,
531
+ 448
532
+ ],
533
+ "page_idx": 4
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "Sharp offline learning via reference-advantage decomposition We now design a new sharp algorithm PEVI-ADV which achieves an improved $\\widetilde { O } ( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ sample complexity (for small enough $\\varepsilon$ ). This improves over VI-LCB by $\\widetilde O ( H ^ { 2 } )$ and is the first algorithm that matches the sample complexity lower bound. PEVI-ADV adds two new ingredients over VI-LCB in order to achieve the $\\tilde { O } ( \\bar { H } ^ { 2 } )$ improvement: ",
538
+ "bbox": [
539
+ 173,
540
+ 459,
541
+ 825,
542
+ 537
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "1. We replace the Hoeffding-style bonus in VI-LCB with a Bernstein-style bonus. This shaves off one $H$ factor in the sample complexity via the total variance property (Lemma C.4). \n2. Both VI-LCB and our PEVI-ADV use data splitting to make sure that the estimated value $\\widehat { V } _ { h + 1 }$ and empirical transitions $\\widehat { \\mathbb { P } } _ { h }$ are estimated using different subsets of $\\mathcal { D }$ , this yields conditional independence that is required in bounding concentration terms of the form $( \\widehat { \\mathbb { P } } _ { h } - \\mathbb { P } _ { h } ) \\widehat { V } _ { h + 1 }$ . However, applied naively, this data splitting induces one undesired $H$ factor in the sample complexity as we need to split $\\mathcal { D }$ into $H$ folds and thus each $\\mathbb { P } _ { h }$ is estimated using only $n / H$ episodes of data. As a technical crux of this algorithm, we overcome this issue by adapting the reference-advantage decomposition technique of Zhang et al. [63]. This technique proposes to learn an initial reference value function $\\widehat { V } ^ { \\mathrm { r e f } }$ of good quality in a certain sense, and then performing the following type of approximate value iteration (using the right-hand side as the algorithm update): ",
549
+ "bbox": [
550
+ 181,
551
+ 546,
552
+ 826,
553
+ 731
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "equation",
559
+ "img_path": "images/6301bf8363369b3245af6f0e014891ac8da26d003c6923c0d2812a6bc3fc6748.jpg",
560
+ "text": "$$\n\\mathbb { P } _ { h } \\widehat { V } _ { h + 1 } \\approx \\widehat { \\mathbb { P } } _ { h , 0 } \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } + \\widehat { \\mathbb { P } } _ { h , 1 } \\Big ( \\widehat { V } _ { h + 1 } - \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } \\Big ) .\n$$",
561
+ "text_format": "latex",
562
+ "bbox": [
563
+ 361,
564
+ 734,
565
+ 665,
566
+ 762
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "Above, $\\widehat { V } _ { h + 1 } , \\widehat { \\mathbb { P } } _ { h , 0 }$ , and $\\widehat { \\mathbb { P } } _ { h , 1 }$ are estimated on three disjoint subsets of the data. The advantage of this approach is that, due to this new independence structure, $\\widehat { \\mathbb { P } } _ { h , 0 }$ for different $h \\in [ H ]$ can be estimated on the same set of trajectories without $H$ -fold splitting, which shaves off the $H$ factor within this part. On the other hand, estimating $\\widehat { \\mathbb { P } } _ { h , 1 }$ still requires $H$ -fold splitting, yet this would not hurt the sample complexity if the magnitude of $( \\widehat { V } _ { h + 1 } - \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } )$ is much smaller than its naive upper bound $O ( H )$ β€”we show this can be achieved by using VI-LCB to learn $\\widehat { V } ^ { \\mathrm { r e f } }$ . ",
573
+ "bbox": [
574
+ 202,
575
+ 767,
576
+ 825,
577
+ 868
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "Require: Dataset $\\mathcal { D } = \\left\\{ ( s _ { 1 } ^ { ( i ) } , a _ { 1 } ^ { ( i ) } , r _ { 1 } ^ { ( i ) } , \\dotsc , s _ { H } ^ { ( i ) } , a _ { H } ^ { ( i ) } , r _ { H } ^ { ( i ) } ) \\right\\} _ { i = 1 } ^ { n }$ collected by executing $\\mu$ in $M$ . ",
584
+ "bbox": [
585
+ 176,
586
+ 108,
587
+ 803,
588
+ 135
589
+ ],
590
+ "page_idx": 5
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "1: Split the dataset $\\mathcal { D }$ into ${ \\mathcal { D } } _ { \\mathrm { r e f } }$ , $\\mathcal { D } _ { 0 }$ and $\\left\\{ \\mathcal { D } _ { h , 1 } \\right\\} _ { h = 1 } ^ { H }$ uniformly at random: ",
595
+ "bbox": [
596
+ 179,
597
+ 136,
598
+ 665,
599
+ 154
600
+ ],
601
+ "page_idx": 5
602
+ },
603
+ {
604
+ "type": "equation",
605
+ "img_path": "images/e5097df3ca06abf8dbc946d659fc8a788c2286d2d2a80e141d6ae92a2678e9e9.jpg",
606
+ "text": "$$\nn _ { \\mathrm { r e f } } : = \\left| \\mathcal { D } _ { \\mathrm { r e f } } \\right| = n / 3 , n _ { 0 } : = \\left| \\mathcal { D } _ { 0 } \\right| = n / 3 , n _ { 1 , h } : = \\left| \\mathcal { D } _ { h , 1 } \\right| : = n / ( 3 H ) ( n _ { 1 } : = n / 3 ) .\n$$",
607
+ "text_format": "latex",
608
+ "bbox": [
609
+ 233,
610
+ 157,
611
+ 792,
612
+ 176
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "2: Learn a reference value function $\\widehat { V } ^ { \\mathrm { r e f } } \\gets \\mathrm { V I - L C B } ( \\mathcal { D } _ { \\mathrm { r e f } } )$ via VI-LCB (Algorithm 3). ",
619
+ "bbox": [
620
+ 186,
621
+ 181,
622
+ 764,
623
+ 198
624
+ ],
625
+ "page_idx": 5
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "3: Let $N _ { h , 0 } ( s , a )$ and $N _ { h , 0 } ( s , a , s ^ { \\prime } )$ denote the visitation count of $( s , a )$ and $( s , a , s ^ { \\prime } )$ at step $h$ within dataset $\\mathcal { D } _ { 0 }$ . Construct empirical model estimates: ",
630
+ "bbox": [
631
+ 178,
632
+ 198,
633
+ 825,
634
+ 224
635
+ ],
636
+ "page_idx": 5
637
+ },
638
+ {
639
+ "type": "equation",
640
+ "img_path": "images/f6bbfea71cb04ec9125ac2ee517d180cb78a7ce89b26e41ae4b0ee6a7cf350e9.jpg",
641
+ "text": "$$\n\\widehat { \\mathbb { P } } _ { h , 0 } ( s ^ { \\prime } | s , a ) \\gets \\frac { N _ { h , 0 } ( s , a , s ^ { \\prime } ) } { N _ { h , 0 } ( s , a ) \\vee 1 } , \\quad \\mathrm { a n d } \\quad \\widehat { r } _ { h , 0 } ( s , a ) \\gets r _ { h } ( s , a ) \\mathbb { 1 } \\left\\{ N _ { h , 0 } ( s , a ) \\geq 1 \\right\\} .\n$$",
642
+ "text_format": "latex",
643
+ "bbox": [
644
+ 243,
645
+ 231,
646
+ 782,
647
+ 266
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Similarly define $N _ { h , 1 } ( s , a ) , N _ { h , 1 } ( s , a , s ^ { \\prime } ) ,$ $( \\widehat { r } _ { h , 1 } , \\widehat { \\mathbb { P } } _ { h , 1 } )$ for all $h \\in [ H ]$ based on dataset $\\mathcal { D } _ { h , 1 }$ ",
654
+ "bbox": [
655
+ 192,
656
+ 273,
657
+ 808,
658
+ 292
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "4: Set $\\begin{array} { r } { b _ { h , 0 } ( s , a ) \\gets c \\cdot \\left( \\sqrt { \\frac { [ \\widehat { \\Psi } _ { h , 0 } \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } ] ( s , a ) \\iota } { N _ { h , 0 } ( s , a ) \\vee 1 } } + \\frac { H \\iota } { N _ { h , 0 } ( s , a ) \\vee 1 } \\right) } \\end{array}$ for all $( h , s , a )$ , where $\\iota : = \\log ( H S A / \\delta )$ ",
665
+ "bbox": [
666
+ 179,
667
+ 294,
668
+ 825,
669
+ 325
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "5: Set $\\widehat { V } _ { H + 1 } ( s ) \\gets 0$ for all $s \\in S$ . ",
676
+ "bbox": [
677
+ 183,
678
+ 328,
679
+ 411,
680
+ 344
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "6: for $h = H , \\ldots , 1$ do ",
687
+ "bbox": [
688
+ 181,
689
+ 344,
690
+ 341,
691
+ 358
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "8: Perform pessimistic value update for all $( s , a )$ ",
698
+ "bbox": [
699
+ 181,
700
+ 391,
701
+ 522,
702
+ 405
703
+ ],
704
+ "page_idx": 5
705
+ },
706
+ {
707
+ "type": "equation",
708
+ "img_path": "images/03804901a64d6ec413dda5beaa8c33e95f6a754ecb3acc678e41a1f27ec71595.jpg",
709
+ "text": "$$\n\\begin{array} { r l } & { \\widehat { Q } _ { h } ( s , a ) \\gets \\widehat { r } _ { h , 0 } ( s , a ) + \\left[ \\widehat { \\mathbb { P } } _ { h , 0 } \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } \\right] ( s , a ) - b _ { h , 0 } ( s , a ) + \\left[ \\widehat { \\mathbb { P } } _ { h , 1 } ( \\widehat { V } _ { h + 1 } - \\widehat { V } _ { h + 1 } ^ { \\mathrm { r e f } } ) \\right] ( s , a ) - b _ { h , 1 } ( s , a ) } \\\\ & { \\widehat { V } _ { h } ( s ) \\gets \\left[ \\operatorname* { m a x } _ { a } \\widehat { Q } _ { h } ( s , a ) \\right] \\vee 0 . } \\\\ & { \\mathrm { S e t } \\widehat { \\pi } _ { h } ( s ) \\gets \\arg \\operatorname* { m a x } _ { a } \\widehat { Q } _ { h } ( s , a ) \\mathrm { f o r } \\mathrm { a l l } s \\in S . } \\end{array}\n$$",
710
+ "text_format": "latex",
711
+ "bbox": [
712
+ 178,
713
+ 411,
714
+ 870,
715
+ 487
716
+ ],
717
+ "page_idx": 5
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "b10: end for ",
722
+ "bbox": [
723
+ 176,
724
+ 484,
725
+ 254,
726
+ 497
727
+ ],
728
+ "page_idx": 5
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "11: return Policy $\\widehat { \\pi } = \\{ \\widehat { \\pi } _ { h } \\} _ { h \\in [ H ] }$ ",
733
+ "bbox": [
734
+ 176,
735
+ 497,
736
+ 408,
737
+ 515
738
+ ],
739
+ "page_idx": 5
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "We instantiate this plan by carefully using VI-LCB to learn the reference value function $\\widehat { V } ^ { \\mathrm { r e f } }$ , combined with tight Bernstein bonuses, to shave off another $H$ factor in the sample complexity. The full PEVI-ADV algorithm is provided in Algorithm 1. We now present its guarantee in the following theorem. The proof can be found in Appendix C. ",
744
+ "bbox": [
745
+ 173,
746
+ 547,
747
+ 826,
748
+ 606
749
+ ],
750
+ "page_idx": 5
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Theorem 2 (Sharp offline learning via PEVI-ADV). Suppose the reference policy $\\mu$ satisfies the single-policy concentrability (Assumption $A$ ). Then with probability at least $1 - \\delta$ , PEVI-ADV (Algorithm 1) outputs a policy $\\widehat { \\pi }$ and value estimate $\\widehat { V }$ such that ",
755
+ "bbox": [
756
+ 174,
757
+ 609,
758
+ 825,
759
+ 656
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "equation",
765
+ "img_path": "images/e5f8f7d074a7daa9d44224e48408764c5d8c3405543a64f4319f94bddf53150c.jpg",
766
+ "text": "$$\n\\begin{array} { r l } & { \\operatorname* { m a x } _ { h \\in [ H ] } \\sum _ { s \\in { { \\mathcal { S } } } } d _ { h } ^ { \\pi _ { \\star } } ( s ) ( V _ { h } ^ { \\star } ( s ) - \\widehat { V } _ { h } ( s ) ) \\leq \\varepsilon , } \\\\ & { } \\\\ & { V _ { 1 } ^ { \\star } ( s _ { 1 } ) - V _ { 1 } ^ { \\widehat { \\pi } } ( s _ { 1 } ) \\leq \\varepsilon , } \\end{array}\n$$",
767
+ "text_format": "latex",
768
+ "bbox": [
769
+ 196,
770
+ 666,
771
+ 527,
772
+ 718
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "within $n = \\widetilde O \\left( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } + H ^ { 5 . 5 } S C ^ { \\star } / \\varepsilon \\right)$ episodes. ",
779
+ "bbox": [
780
+ 173,
781
+ 729,
782
+ 519,
783
+ 750
784
+ ],
785
+ "page_idx": 5
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "Near-optimal offline RL under single-policy concentrability For small enough $\\varepsilon \\le H ^ { - 2 . 5 }$ , Theorem 2 achieves $\\widetilde { O } ( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ sample complexity for finding the $\\varepsilon$ near-optimal policy from the offlien dataset $\\mathcal { D }$ . This is the first cubic horizon dependence for offline RL under single-policy concentrability, which improves over recent works [25, 42] in this setting and resolves the open question of [42]. For $C ^ { \\star } \\geq 2$ , our sample complexity further matches the information-theoretical lower bound $\\Omega ( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ up to log factors4. We remark that tight hoziron dependence has also been achieved in several recent works offline RL [58, 59, 43] which are however quite different from (and do not imply) ours in both the assumptions (on the behavior policy) and the analyses. ",
790
+ "bbox": [
791
+ 173,
792
+ 767,
793
+ 826,
794
+ 882
795
+ ],
796
+ "page_idx": 5
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "4 Lower bound for policy finetuning ",
801
+ "text_level": 1,
802
+ "bbox": [
803
+ 174,
804
+ 89,
805
+ 493,
806
+ 107
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "We now switch gears to considering the policy finetuning problem with any algorithm, not necessarily restricted to the offline reduction approach. ",
813
+ "bbox": [
814
+ 174,
815
+ 121,
816
+ 823,
817
+ 150
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Two baselines: offline reduction $\\pmb { \\& }$ purely online RL A first observation is that naive offline reduction is already a strong baseline for policy finetuning, by our Theorem 2: Our PEVI-ADV algorithm only collects data with $\\mu$ and does not do any online exploration, yet achieves a sharp $\\bar { \\tilde { O } } ( H ^ { 3 } S C ^ { \\star } / \\bar { \\varepsilon } ^ { 2 } )$ sample complexity for finding a near-optimal policy. ",
824
+ "bbox": [
825
+ 174,
826
+ 164,
827
+ 825,
828
+ 223
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "On the other hand, as the policy finetuning setting allows online interaction, purely online $R L$ is another baseline algorithm: Simply run any sample-efficient online RL algorithm (which typically uses optimism to encourage exploration) from scratch, and disregard the reference policy $\\mu$ . Using any sharp online RL algorithm such as UCBVI [5], this approach can find an $\\varepsilon$ near-optimal policy within $\\widetilde { \\cal O } ( H ^ { 3 } S A / \\varepsilon ^ { 2 } )$ episodes of play. Note that whether this is advantageous over the offline reduction boils down to the comparison between $C ^ { \\star }$ and $A$ , which makes sense intuitively. For example, $C ^ { \\star } \\leq o ( A )$ means that $\\mu$ is perhaps close enough to $\\pi _ { \\star }$ so that collecting data from $\\mu$ and run offline policy optimization is a stronger algorithm than exploring from scratch. ",
835
+ "bbox": [
836
+ 173,
837
+ 228,
838
+ 825,
839
+ 343
840
+ ],
841
+ "page_idx": 6
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Given these two baselines, it is natural to ask whether there exists an algorithm that improves over both β€” Can we design an algorithm that performs some amount of optimistic exploration, yet also utilizes the knowledge of $\\mu$ , so as to achieve a better rate than both offline reduction and purely online RL? In this section, we provide an information-theoretic lower bound showing that, perhaps surprisingly, the answer is negative: there is an $\\Omega ( H ^ { 3 } S \\operatorname* { m i n } { \\{ C ^ { \\star } , A \\} } / \\varepsilon ^ { 2 } )$ sample complexity lower bound for any policy finetuning algorithm, if we still assume that $\\mu$ satisfies $C ^ { \\star }$ single-policy concentrability. ",
846
+ "bbox": [
847
+ 173,
848
+ 348,
849
+ 825,
850
+ 433
851
+ ],
852
+ "page_idx": 6
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Lower bound To formally state our lower bound, we define the class of problems ",
857
+ "bbox": [
858
+ 171,
859
+ 446,
860
+ 722,
861
+ 462
862
+ ],
863
+ "page_idx": 6
864
+ },
865
+ {
866
+ "type": "equation",
867
+ "img_path": "images/aae97b6bd8b27064e6832f5ed965a267d4775d9eb74dd94cd8d78d72ec133645.jpg",
868
+ "text": "$$\n\\mathcal { M } _ { C ^ { \\star } } : = \\Bigg \\{ ( M , \\mu ) : ~ \\mathrm { E x i s t s ~ d e t e r m i n i s t i c } ~ \\pi _ { \\star } ~ \\mathrm { o f } ~ M \\mathrm { ~ s u c h ~ t h a t ~ } \\operatorname* { s u p } _ { h , s , a } \\frac { d _ { h } ^ { \\pi _ { \\star } } ( s , a ) } { d _ { h } ^ { \\mu } ( s , a ) } \\leq C ^ { \\star } \\Bigg \\} .\n$$",
869
+ "text_format": "latex",
870
+ "bbox": [
871
+ 220,
872
+ 468,
873
+ 779,
874
+ 512
875
+ ],
876
+ "page_idx": 6
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "We recall that a policy finetuning algorithm for problem $( M , \\mu )$ is defined as any algorithm that can play in the MDP $M$ for $n$ episodes, has full knowledge of the reference policy $\\mu$ , and outputs a policy $\\widehat { \\pi }$ after playing in the MDP. ",
881
+ "bbox": [
882
+ 174,
883
+ 518,
884
+ 823,
885
+ 560
886
+ ],
887
+ "page_idx": 6
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "With these definitions ready, we now state our lower bound for policy finetuning. The proof of Theorem 3 can be found in Appendix D. ",
892
+ "bbox": [
893
+ 173,
894
+ 566,
895
+ 823,
896
+ 595
897
+ ],
898
+ "page_idx": 6
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "Theorem 3 (Lower bound for policy finetuning). Suppose $S , H \\geq 3 , A \\geq 2 , C ^ { \\star } \\geq 2 .$ . Then, there exists an absolute constant $c _ { 0 } > 0$ such that for any $\\varepsilon \\le 1 / 1 2$ and any online finetuning algorithm that outputs a policy $\\widehat { \\pi }$ , if the number of episodes ",
903
+ "bbox": [
904
+ 174,
905
+ 599,
906
+ 826,
907
+ 642
908
+ ],
909
+ "page_idx": 6
910
+ },
911
+ {
912
+ "type": "equation",
913
+ "img_path": "images/8289bb00773e69057493f9c137673f555e072fba6a64ae8993e48e3b9cd9db28.jpg",
914
+ "text": "$$\nn \\leq c _ { 0 } \\cdot H ^ { 3 } S \\operatorname* { m i n } { \\{ C ^ { \\star } , A \\} } / \\varepsilon ^ { 2 } ,\n$$",
915
+ "text_format": "latex",
916
+ "bbox": [
917
+ 393,
918
+ 647,
919
+ 602,
920
+ 666
921
+ ],
922
+ "page_idx": 6
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "then there exists a problem instance $( M , \\mu ) \\ \\in \\ { \\mathcal { M } } _ { C ^ { \\star } }$ on which the algorithm suffers from $\\varepsilon$ - suboptimality: ",
927
+ "bbox": [
928
+ 174,
929
+ 672,
930
+ 826,
931
+ 703
932
+ ],
933
+ "page_idx": 6
934
+ },
935
+ {
936
+ "type": "equation",
937
+ "img_path": "images/ecd5b38c546f5c899fd67c32c941af297d097102dc7e9bf08346f159d934c020.jpg",
938
+ "text": "$$\n\\mathbb { E } _ { M } \\left[ V _ { 1 , M } ^ { \\star } - V _ { 1 , M } ^ { \\widehat { \\pi } } \\right] \\geq \\varepsilon ,\n$$",
939
+ "text_format": "latex",
940
+ "bbox": [
941
+ 415,
942
+ 709,
943
+ 581,
944
+ 736
945
+ ],
946
+ "page_idx": 6
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "where the expectation $\\mathbb { E } _ { M }$ is w.r.t. the randomness during the algorithm execution within MDP M . ",
951
+ "bbox": [
952
+ 173,
953
+ 742,
954
+ 820,
955
+ 758
956
+ ],
957
+ "page_idx": 6
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Either offline reduction or purely online is optimal Theroem 3 shows that any policy finetuning algorithm needs to play at least $\\Omega ( H ^ { 3 } S \\operatorname* { m i n } \\{ C ^ { \\star } , A \\} / \\varepsilon ^ { 2 } )$ episodes in order to find an $\\varepsilon$ near-optimal policy. Crucially, this implies that either a sharp offline reduction (e.g. our PEVI-ADV algorithm) or purely online RL matches the lower bound (up to log), depending on whether $C ^ { \\star } \\lesssim A$ . In other words, if we have the knowledge of whether $C ^ { \\star } \\leq A$ , choosing the right one of these two baseline algorithms will yield the optimal sample complexity. Perhaps surprisingly, this rules out the possibility of designing any algorithm β€œin between” that combines online exploration and knowledge of $\\mu$ to improve the sample complexity, at least in the worst-case over all problems in $\\mathcal { M } _ { C ^ { \\star } }$ . We argue that this β€œno algorithm in between” phenomenon may be due to the single-policy concentrability assumption being too strong such that offline reduction already achieves a rather competitive sample ",
962
+ "bbox": [
963
+ 173,
964
+ 772,
965
+ 825,
966
+ 912
967
+ ],
968
+ "page_idx": 6
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "Require: MDP $M$ , reference policy $\\mu$ ",
973
+ "bbox": [
974
+ 176,
975
+ 108,
976
+ 433,
977
+ 122
978
+ ],
979
+ "page_idx": 7
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "6: Denote the final output of UCBVI-UPLOW as ",
984
+ "bbox": [
985
+ 184,
986
+ 191,
987
+ 508,
988
+ 205
989
+ ],
990
+ "page_idx": 7
991
+ },
992
+ {
993
+ "type": "equation",
994
+ "img_path": "images/38aecbd747a8359b025d92074bc42138789afaf8c87435c50b24c72fe719285d.jpg",
995
+ "text": "$$\n\\begin{array} { r } { ( \\overline { { V } } _ { h _ { \\star } + 1 } , \\underline { { V } } _ { h _ { \\star } + 1 } , \\widehat { \\pi } _ { ( h _ { \\star } + 1 ) : H } ^ { \\mathrm { U C B } } ) \\gets \\mathbf { U C B V I - U P L O W } ( n _ { \\mathrm { U C B } } ) . } \\end{array}\n$$",
996
+ "text_format": "latex",
997
+ "bbox": [
998
+ 320,
999
+ 212,
1000
+ 702,
1001
+ 233
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "7: # Stage 2: Learn step $1 : h _ { \\star }$ via executing $\\mu +$ pessimistic offline policy optimization 8: Collect 9: Learn p $\\mathcal { D } \\{ n - n _ { \\mathrm { U C B } }$ episodes of data using policy he TRUNCATED-PEVI-ADV( $\\mu$ up to step lgorithm 5 $h _ { \\star } \\}$ . $\\hat { \\pi } _ { 1 : h _ { \\star } } ^ { \\mathrm { P E V I } }$ ",
1008
+ "bbox": [
1009
+ 178,
1010
+ 238,
1011
+ 758,
1012
+ 282
1013
+ ],
1014
+ "page_idx": 7
1015
+ },
1016
+ {
1017
+ "type": "equation",
1018
+ "img_path": "images/b6ba15af63ffccca718f90fa9b56c4223b5136a7c54450b442011be714f609a7.jpg",
1019
+ "text": "$$\n\\widehat { \\pi } _ { 1 : h _ { \\star } } ^ { \\mathrm { P E V I } } \\mathrm { T R U N C A T E D - P E V I - A D V } ( \\mathcal { D } , h _ { \\star } , \\underline { { V } } _ { h _ { \\star } + 1 } ) .\n$$",
1020
+ "text_format": "latex",
1021
+ "bbox": [
1022
+ 333,
1023
+ 289,
1024
+ 687,
1025
+ 310
1026
+ ],
1027
+ "page_idx": 7
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "$\\widehat { \\pi } = ( \\widehat { \\pi } _ { 1 : h _ { \\star } } ^ { \\mathrm { P E V I } } , \\widehat { \\pi } _ { ( h _ { \\star } + 1 ) : H } ^ { \\mathrm { U C B } } )$ ",
1032
+ "bbox": [
1033
+ 176,
1034
+ 314,
1035
+ 467,
1036
+ 334
1037
+ ],
1038
+ "page_idx": 7
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "complexity $\\widetilde { O } ( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ . We investigate policy finetuning beyond the single-policy concentrability assumption in Section 5. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 367,
1046
+ 823,
1047
+ 396
1048
+ ],
1049
+ "page_idx": 7
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "We also remark that Theorem 3 generalizes both the $\\Omega ( H ^ { 3 } S A / \\varepsilon ^ { 2 } )$ lower bound for online RL [11, 58, 13] into the policy finetuning problem, as well as the $\\Omega ( \\dot { H } ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { 2 } )$ lower bound for offline RL under single-policy concentrability with $C ^ { \\star } \\geq 2 [ 4 2 ] ^ { 5 }$ . Further, Theorem 3 directly implies an $\\Omega ( H ^ { 3 } S C ^ { \\star } / \\varepsilon ^ { \\star } )$ lower bound for offline RL with $2 \\leq C ^ { \\star } \\leq O ( A )$ , as any algorithm for offline policy optimization is also an algorithm for policy finetuning via the offline reduction. ",
1054
+ "bbox": [
1055
+ 173,
1056
+ 402,
1057
+ 825,
1058
+ 474
1059
+ ],
1060
+ "page_idx": 7
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Proof intuition; Construction of hard instance The proof of Theorem 3 constructs a family of hard MDPs that requires solving $H S$ β€œindependent” bandit problems with $A$ arms, similar as in existing $\\Omega ( H ^ { 3 } S A / \\bar { \\varepsilon } ^ { 2 } )$ lower bounds for online RL [11, 58]. However, our key modification is that we let the optimal arms to be always within the first $K : = \\operatorname* { m i n } \\left\\{ C ^ { \\star } , A \\right\\}$ actions instead of all $A$ actions, and we define our reference policy $\\mu$ to play uniformly within $[ K ]$ . This $\\mu$ has the following properties: ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 491,
1068
+ 825,
1069
+ 575
1070
+ ],
1071
+ "page_idx": 7
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "β€’ $\\mu$ satisfies $C ^ { \\star }$ single-policy concentrability for any MDP in this family (Lemma D.1). β€’ $\\mu$ provides the knowledge that the optimal actions are within $[ K ]$ , but no other knowledge about the optimal actions. ",
1076
+ "bbox": [
1077
+ 184,
1078
+ 588,
1079
+ 826,
1080
+ 638
1081
+ ],
1082
+ "page_idx": 7
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Therefore, with $\\mu$ at hand, any policy finetuning algorithm can β€œgain the knowledge” that the optimal actions are within $[ K ]$ , but still needs to try all $K$ actions in order to solve each bandit problemβ€” rigorizing this information-theoretically gives the $\\Omega ( H ^ { 3 } S K / \\varepsilon ^ { 2 } ) = \\Omega ( H ^ { 3 } S \\operatorname* { m i n } { \\{ C ^ { \\star } , A \\} } \\mathbf { \\hat { / } } \\varepsilon ^ { 2 } )$ lower bound. ",
1087
+ "bbox": [
1088
+ 174,
1089
+ 651,
1090
+ 826,
1091
+ 707
1092
+ ],
1093
+ "page_idx": 7
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "5 Hybrid offline/online algorithm for policy finetuning ",
1098
+ "text_level": 1,
1099
+ "bbox": [
1100
+ 174,
1101
+ 729,
1102
+ 642,
1103
+ 748
1104
+ ],
1105
+ "page_idx": 7
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Towards circumventing the lower bound in Theorem 3, in this section, we study policy finetuning under more relaxed assumptions on the reference policy $\\mu$ . A weaker $\\mu$ will induce a higher sample complexity for naive offline reduction approaches, and thus yields opportunities for designing new algorithms that can potentially better utilize $\\mu$ . ",
1110
+ "bbox": [
1111
+ 173,
1112
+ 765,
1113
+ 825,
1114
+ 821
1115
+ ],
1116
+ "page_idx": 7
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "More concretely, we consider the following relaxation: We assume $\\mu$ satisfies partial concentrability only up to a certain time-step $h _ { \\star } \\leq H$ , and may not have any bounded concentrability at steps $h > h _ { \\star }$ . We formalize this in the following ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 828,
1124
+ 823,
1125
+ 871
1126
+ ],
1127
+ "page_idx": 7
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Assumption B ( $h _ { \\star }$ -partial concentrability). The reference policy $\\mu$ satisfies the single-policy concentrability with respect to $\\pi _ { \\star }$ up to step $h _ { \\star }$ only: ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 90,
1135
+ 825,
1136
+ 119
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "equation",
1142
+ "img_path": "images/00aa51480e3252a0217ca5cc8641a95a1f0a15c01cb3fd0ca29b24de3cdf5ef0.jpg",
1143
+ "text": "$$\n\\operatorname* { m a x } _ { h \\leq h _ { \\star } } \\operatorname* { m a x } _ { s , a \\in { \\mathcal { S } } \\times { \\mathcal { A } } } { \\frac { d _ { h } ^ { \\pi _ { \\star } } ( s , a ) } { d _ { h } ^ { \\mu } ( s , a ) } } \\leq C ^ { \\mathrm { p a r t i a l } }\n$$",
1144
+ "text_format": "latex",
1145
+ "bbox": [
1146
+ 380,
1147
+ 121,
1148
+ 616,
1149
+ 155
1150
+ ],
1151
+ "page_idx": 8
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "(with the convention $0 / 0 = 0 ,$ ), where $\\pi _ { \\star }$ is some deterministic optimal policy of the MDP, and constant Cpartial . ",
1156
+ "bbox": [
1157
+ 173,
1158
+ 157,
1159
+ 820,
1160
+ 186
1161
+ ],
1162
+ "page_idx": 8
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Algorithm description We design a hybrid offline/online algorithm HOOVI (presented in Algorithm 2) for policy finetuning under the partial concentrability assumption. At a high-level, the algorithm consists of two main stages: ",
1167
+ "bbox": [
1168
+ 174,
1169
+ 196,
1170
+ 826,
1171
+ 239
1172
+ ],
1173
+ "page_idx": 8
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "β€’ In the first stage, it runs an online algorithm UCBVI-UPLOW which uses optimistic exploration to find a near-optimal policy ${ \\widehat { \\pi } } ^ { \\mathrm { U C B } }$ and an accurate value estimate for steps $( h _ { \\star } + 1 ) : H$ . β€’ In the second stage, we run a TRUNCATED-PEVI-ADV algorithm, which collects data from $\\mu$ and runs offline policy optimization to find a near-optimal policy $\\widehat { \\pi } ^ { \\mathrm { { P E V I } } }$ for steps $1 : h _ { \\star }$ , building on the lower value estimate $\\underline { { V } } _ { h _ { \\star } + 1 }$ from the first stage. ",
1178
+ "bbox": [
1179
+ 184,
1180
+ 246,
1181
+ 825,
1182
+ 321
1183
+ ],
1184
+ "page_idx": 8
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "This strategy makes sense intuitively as the reference policy $\\mu$ does not have guarantees for steps $h _ { \\star } + 1 : H$ and thus the algorithm is required to perform optimistic exploration first to get a good policy. However, additional technical cares are needed in order to make the above algorithm provably sample-efficient. The analysis of the second stage requires the online algorithm in the first stage to not only perform fast exploration (e.g. by using upper confidence bounds), but also output a lower value estimate for step $h _ { \\star } + 1$ , and in addition output a final output policy that achieves at least the value of the lower value estimate at every state $s \\in S$ . Such lower bounds are not directly available in standard online RL algorithms such as UCBVI [5]. ",
1189
+ "bbox": [
1190
+ 173,
1191
+ 327,
1192
+ 825,
1193
+ 438
1194
+ ],
1195
+ "page_idx": 8
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "We resolve this by designing the UCBVI-UPLOW algorithm (detailed description in Algorithm 4), which is a modification of the Nash-VI Algorithm of Liu et al. [34] (for two-player Markov games) into the single-player case. This algorithm is particularly suitable for our purpose since it maintains both upper bounds of $V ^ { \\star }$ and lower bounds for the value function of the deployed policies. Our UCBVI-UPLOW further integrates the certified policy technique of Bai et al. [7] to make sure that its output policy achieves value greater or equal than the lower bound at every state (similar guarantees can also be obtained by the policy certificate technique of Dann et al. [12]). ",
1200
+ "bbox": [
1201
+ 173,
1202
+ 441,
1203
+ 825,
1204
+ 540
1205
+ ],
1206
+ "page_idx": 8
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "We now state our main theoretical guarantee for the HOOVI algorithm. The proof can be found in Appendix E. ",
1211
+ "bbox": [
1212
+ 174,
1213
+ 541,
1214
+ 823,
1215
+ 570
1216
+ ],
1217
+ "page_idx": 8
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Theorem 4 (Hybrid online $/$ offline learning for policy finetuning). Suppose the reference policy $\\mu$ satisfies the partial concentrability (Assumption $B$ ) up to some step $h _ { \\star } \\leq H$ . Then for small enough $\\varepsilon \\le \\operatorname* { m i n } \\left\\{ h _ { \\star } ^ { - 2 . 5 } , C ^ { \\mathrm { p a r t i a l } } / S \\right\\}$ , HOOVI (Algorithm 2) outputs a policy $\\widehat { \\pi }$ such that ${ \\cal V } _ { 1 } ^ { \\star } ( s _ { 1 } ) -$ $V _ { 1 } ^ { \\widehat { \\pi } } ( s _ { 1 } ) \\leq \\varepsilon$ with probability at least $1 - \\delta$ , within ",
1222
+ "bbox": [
1223
+ 173,
1224
+ 573,
1225
+ 825,
1226
+ 632
1227
+ ],
1228
+ "page_idx": 8
1229
+ },
1230
+ {
1231
+ "type": "equation",
1232
+ "img_path": "images/015566f49ca90ad433d4834392f4309449b8b55819547302198c2e6e6e3ef509.jpg",
1233
+ "text": "$$\nn = { \\tilde { O } } \\left( { \\frac { H ^ { 2 } h _ { \\star } S C ^ { \\mathrm { p a r t i a l } } + ( H - h _ { \\star } ) ^ { 3 } S A ( C ^ { \\mathrm { p a r t i a l } } ) ^ { 2 } } { \\varepsilon ^ { 2 } } } \\right)\n$$",
1234
+ "text_format": "latex",
1235
+ "bbox": [
1236
+ 316,
1237
+ 633,
1238
+ 679,
1239
+ 669
1240
+ ],
1241
+ "page_idx": 8
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "episodes of play. ",
1246
+ "bbox": [
1247
+ 174,
1248
+ 669,
1249
+ 282,
1250
+ 684
1251
+ ],
1252
+ "page_idx": 8
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Comparison against offline reduction and purely online algorithms The sample complexity in Theorem 4 compares favorably against both naive offline reduction as well as purely online algorithms in certain situations. First, naive offline reduction with $\\mu$ does not have any guarantee since $\\mu$ is not assumed to have a finite single-policy concentrability at $h \\geq h _ { \\star } + 1$ . We can modify $\\mu$ into $\\mu ^ { \\prime }$ that plays uniformly within $\\mathcal { A }$ at steps $h \\geq h _ { \\star } + 1$ ; the single-policy concentrability coefficient of $\\mu ^ { \\prime }$ is guaranteed to be finite but scales exponentially as $O ( \\breve { A } ^ { H - \\mathbf { \\breve { h } _ { \\star } } } )$ in the worst case, leading to a sample complexity much worse than ours (which is polynomial in $H , S , A )$ . ",
1257
+ "bbox": [
1258
+ 173,
1259
+ 694,
1260
+ 825,
1261
+ 792
1262
+ ],
1263
+ "page_idx": 8
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "On the other hand, a sharp online algorithm can still achieve $\\widetilde { \\cal O } ( H ^ { 3 } S A / \\varepsilon ^ { 2 } )$ in this setting (by optimistic exploration from scratch). Our Theorem 4 is in general incomparable with this, but can be better in cases when both $C ^ { \\mathrm { p a r t i a l } }$ and $H \\mathrm { ~ - ~ } h _ { \\star }$ are small, e.g., if $\\ { \\dot { C } } ^ { \\mathrm { p a r t i a l } } = o ( A )$ and $( H - h _ { \\star } ) / H = o ( ( C ^ { \\mathrm { p a r t i a l } } ) ^ { - 2 / 3 } )$ . This makes sense intuitively as our hybrid offline/online algorithm benefits the most if the length requiring exploration $( H - h _ { \\star } )$ is small, and the partial concentrability $C ^ { \\mathrm { p a r t i a l } }$ is small so that $\\mu$ still has a high-quality for the first $h _ { \\star }$ steps. To best of our knowledge, this is first result that characterizes when the sample complexity of such hybrid algorithms can be beneficial over purely online or offline algorithms. ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 797,
1271
+ 825,
1272
+ 912
1273
+ ],
1274
+ "page_idx": 8
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "6 Conclusion & discussions ",
1279
+ "text_level": 1,
1280
+ "bbox": [
1281
+ 174,
1282
+ 89,
1283
+ 416,
1284
+ 106
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "This paper studies policy finetuning, a new reinforcement learning setting that allows us to compare and connect sample-efficient online and offline reinforcement learning. We establish sharp upper and lower bounds for policy finetuning under various assumptions on the reference policy. Our bounds show that the optimal policy finetuning algorithm is either offline reduction or a purely online algorithm in the specific setting where the reference policy satisfies single-policy concentrability, and we also show that a hybrid online/offline algorithm can be advantageous over both in more relaxed settings. Many directions could be of interest for future research, such as alternative assumptions on the reference policy, or policy finetuning with function approximation. ",
1291
+ "bbox": [
1292
+ 174,
1293
+ 121,
1294
+ 825,
1295
+ 233
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Also, while our contributions are mainly theoretical, implementing or extending our policy finetuning algorithms on real-world RL tasks would be a compelling future direction. When the environment is a tabular MDP, our Algorithm 1 (offline reduction) and Algorithm 2 (hybrid offline / online RL) are readily implementable. When there is large state/action space and potentially function approximation, we believe our algorithm can be adapted, for example, by replacing all the optimistic/pessimistic value iteration steps by DQN-type algorithms [38] with positive/negative bonus functions [50]. Experimental evaluation of such algorithms would be a good direction for future work. ",
1302
+ "bbox": [
1303
+ 174,
1304
+ 238,
1305
+ 825,
1306
+ 335
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Acknowledgment ",
1313
+ "text_level": 1,
1314
+ "bbox": [
1315
+ 176,
1316
+ 356,
1317
+ 321,
1318
+ 373
1319
+ ],
1320
+ "page_idx": 9
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "The authors would like to thank Ming Yin, Chi Jin and David Forsyth for the many insightful discussions. NJ acknowledges funding support from the ARL Cooperative Agreement W911NF17-2-0196, NSF IIS-2112471, and Adobe Data Science Research Award. HW, CX, YB are funded through employment with Salesforce. ",
1325
+ "bbox": [
1326
+ 174,
1327
+ 387,
1328
+ 826,
1329
+ 443
1330
+ ],
1331
+ "page_idx": 9
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "References ",
1336
+ "text_level": 1,
1337
+ "bbox": [
1338
+ 174,
1339
+ 464,
1340
+ 266,
1341
+ 481
1342
+ ],
1343
+ "page_idx": 9
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "[1] A. Agarwal, S. Kakade, A. Krishnamurthy, and W. Sun. Flambe: Structural complexity and representation learning of low rank mdps. arXiv preprint arXiv:2006.10814, 2020. \n[2] S. Agrawal and R. Jia. Optimistic posterior sampling for reinforcement learning: worst-case regret bounds. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 1184–1194, 2017. \n[3] I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, R. Ribas, et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019. \n[4] A. Antos, C. SzepesvΓ‘ri, and R. Munos. Learning near-optimal policies with bellman-residual minimization based fitted policy iteration and a single sample path. Machine Learning, 71(1): 89–129, 2008. \n[5] M. G. Azar, I. Osband, and R. Munos. Minimax regret bounds for reinforcement learning. In International Conference on Machine Learning, pages 263–272. PMLR, 2017. \n[6] Y. Bai, T. Xie, N. Jiang, and Y.-X. Wang. Provably efficient q-learning with low switching cost. arXiv preprint arXiv:1905.12849, 2019. \n[7] Y. Bai, C. Jin, and T. Yu. Near-optimal reinforcement learning with self-play. Advances in Neural Information Processing Systems, 33, 2020. \n[8] B. Baker, I. Kanitscheider, T. Markov, Y. Wu, G. Powell, B. McGrew, and I. Mordatch. Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019. \n[9] R. I. Brafman and M. Tennenholtz. R-max-a general polynomial time algorithm for near-optimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002. \n[10] J. Chen and N. Jiang. Information-theoretic considerations in batch reinforcement learning. In International Conference on Machine Learning, pages 1042–1051. PMLR, 2019. \n[11] C. Dann, T. Lattimore, and E. Brunskill. Unifying pac and regret: uniform pac bounds for episodic reinforcement learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 5717–5727, 2017. \n[12] C. Dann, L. Li, W. Wei, and E. Brunskill. Policy certificates: Towards accountable reinforcement learning. In International Conference on Machine Learning, pages 1507–1516. PMLR, 2019. \n[13] O. D. Domingues, P. MΓ©nard, E. Kaufmann, and M. Valko. Episodic reinforcement learning in finite mdps: Minimax lower bounds revisited. In Algorithmic Learning Theory, pages 578–598. PMLR, 2021. \n[14] S. S. Du, S. M. Kakade, J. D. Lee, S. Lovett, G. Mahajan, W. Sun, and R. Wang. Bilinear classes: A structural framework for provable generalization in rl. arXiv preprint arXiv:2103.10897, 2021. \n[15] A. M. Farahmand, R. Munos, and C. SzepesvΓ‘ri. Error propagation for approximate policy and value iteration. In Advances in Neural Information Processing Systems, 2010. \n[16] S. Fujimoto, D. Meger, and D. Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pages 2052–2062. PMLR, 2019. \n[17] M. Gao, T. Xie, S. S. Du, and L. F. Yang. A provably efficient algorithm for linear markov decision process with low switching cost. arXiv preprint arXiv:2101.00494, 2021. \n[18] M. Hessel, J. Modayil, H. Van Hasselt, T. Schaul, G. Ostrovski, W. Dabney, D. Horgan, B. Piot, M. Azar, and D. Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. \n[19] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010. \n[20] M. Janner, J. Fu, M. Zhang, and S. Levine. When to trust your model: Model-based policy optimization. arXiv preprint arXiv:1906.08253, 2019. \n[21] N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. Contextual decision processes with low bellman rank are pac-learnable. In International Conference on Machine Learning, pages 1704–1713. PMLR, 2017. \n[22] C. Jin, Z. Allen-Zhu, S. Bubeck, and M. I. Jordan. Is q-learning provably efficient? In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 4868–4878, 2018. \n[23] C. Jin, Z. Yang, Z. Wang, and M. I. Jordan. Provably efficient reinforcement learning with linear function approximation. In Conference on Learning Theory, pages 2137–2143. PMLR, 2020. \n[24] C. Jin, Q. Liu, and S. Miryoosefi. Bellman eluder dimension: New rich classes of rl problems, and sample-efficient algorithms. arXiv preprint arXiv:2102.00815, 2021. \n[25] Y. Jin, Z. Yang, and Z. Wang. Is pessimism provably efficient for offline rl? arXiv preprint arXiv:2012.15085, 2020. \n[26] D. Kalashnikov, A. Irpan, P. Pastor, J. Ibarz, A. Herzog, E. Jang, D. Quillen, E. Holly, M. Kalakrishnan, V. Vanhoucke, et al. Scalable deep reinforcement learning for vision-based robotic manipulation. In Conference on Robot Learning, pages 651–673. PMLR, 2018. \n[27] M. Kearns and S. Singh. Near-optimal reinforcement learning in polynomial time. Machine learning, 49(2):209–232, 2002. \n[28] R. Kidambi, A. Rajeswaran, P. Netrapalli, and T. Joachims. Morel: Model-based offline reinforcement learning. arXiv preprint arXiv:2005.05951, 2020. \n[29] A. Kumar, J. Fu, G. Tucker, and S. Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. arXiv preprint arXiv:1906.00949, 2019. \n[30] A. Kumar, A. Zhou, G. Tucker, and S. Levine. Conservative q-learning for offline reinforcement learning. arXiv preprint arXiv:2006.04779, 2020. \n[31] T. Lattimore and C. SzepesvΓ‘ri. Bandit algorithms. Cambridge University Press, 2020. \n[32] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science robotics, 5(47), 2020. \n[33] E. L. Lehmann and G. Casella. Theory of point estimation. Springer Science & Business Media, 2006. \n[34] Q. Liu, T. Yu, Y. Bai, and C. Jin. A sharp analysis of model-based reinforcement learning with self-play. arXiv preprint arXiv:2010.01604, 2020. \n[35] Y. Liu, A. Swaminathan, A. Agarwal, and E. Brunskill. Provably good batch reinforcement learning without great exploration. arXiv preprint arXiv:2007.08202, 2020. \n[36] T. Matsushima, H. Furuta, Y. Matsuo, O. Nachum, and S. Gu. Deployment-efficient reinforcement learning via model-based offline optimization. arXiv preprint arXiv:2006.03647, 2020. \n[37] A. Maurer and M. Pontil. Empirical bernstein bounds and sample variance penalization. arXiv preprint arXiv:0907.3740, 2009. \n[38] V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015. \n[39] R. Munos. Error bounds for approximate policy iteration. In ICML, volume 3, pages 560–567, 2003. \n[40] R. Munos and C. SzepesvΓ‘ri. Finite-time bounds for fitted value iteration. Journal of Machine Learning Research, 9(5), 2008. \n[41] I. Osband and B. V. Roy. Model-based reinforcement learning and the eluder dimension. In Proceedings of the 27th International Conference on Neural Information Processing SystemsVolume 1, pages 1466–1474, 2014. \n[42] P. Rashidinejad, B. Zhu, C. Ma, J. Jiao, and S. Russell. Bridging offline reinforcement learning and imitation learning: A tale of pessimism. arXiv preprint arXiv:2103.12021, 2021. \n[43] T. Ren, J. Li, B. Dai, S. S. Du, and S. Sanghavi. Nearly horizon-free offline reinforcement learning. arXiv preprint arXiv:2103.14077, 2021. \n[44] D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016. \n[45] D. Silver, J. Schrittwieser, K. Simonyan, I. Antonoglou, A. Huang, A. Guez, T. Hubert, L. Baker, M. Lai, A. Bolton, et al. Mastering the game of go without human knowledge. nature, 550 (7676):354–359, 2017. \n[46] D. Su, J. D. Lee, J. M. Mulvey, and H. V. Poor. Musbo: Model-based uncertainty regularized and sample efficient batch optimization for deployment constrained reinforcement learning. arXiv preprint arXiv:2102.11448, 2021. \n[47] W. Sun, N. Jiang, A. Krishnamurthy, A. Agarwal, and J. Langford. Model-based rl in contextual decision processes: Pac bounds and exponential improvements over model-free approaches. In Conference on Learning Theory, pages 2898–2933. PMLR, 2019. \n[48] C. SzepesvΓ‘ri and R. Munos. Finite time bounds for sampling based fitted value iteration. In Proceedings of the 22nd international conference on Machine learning, pages 880–887, 2005. \n[49] A. A. TaΓ―ga, W. Fedus, M. C. Machado, A. Courville, and M. G. Bellemare. Benchmarking bonus-based exploration methods on the arcade learning environment. arXiv preprint arXiv:1908.02388, 2019. \n[50] A. A. Taiga, W. Fedus, M. C. Machado, A. Courville, and M. G. Bellemare. On bonus based exploration methods in the arcade learning environment. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BJewlyStDr. \n[51] S. Tosatto, M. Pirotta, C. d’Eramo, and M. Restelli. Boosted fitted q-iteration. In International Conference on Machine Learning, pages 3434–3443. PMLR, 2017. \n[52] O. Vinyals, I. Babuschkin, W. M. Czarnecki, M. Mathieu, A. Dudzik, J. Chung, D. H. Choi, R. Powell, T. Ewalds, P. Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019. \n[53] R. Wang, R. R. Salakhutdinov, and L. Yang. Reinforcement learning with general value function approximation: Provably efficient approach via bounded eluder dimension. Advances in Neural Information Processing Systems, 33:6123–6135, 2020. \n[54] T. Wang, D. Zhou, and Q. Gu. Provably efficient reinforcement learning with linear function approximation under adaptivity constraints. arXiv preprint arXiv:2101.02195, 2021. \n[55] Y. Wu, G. Tucker, and O. Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019. \n[56] T. Xie and N. Jiang. $\\mathrm { Q ^ { * } }$ approximation schemes for batch reinforcement learning: A theoretical comparison. In Conference on Uncertainty in Artificial Intelligence, pages 550–559. PMLR, 2020. \n[57] Z. Yang, C. Jin, Z. Wang, M. Wang, and M. I. Jordan. Bridging exploration and general function approximation in reinforcement learning: Provably efficient kernel and neural value iterations. arXiv preprint arXiv:2011.04622, 2020. \n[58] M. Yin, Y. Bai, and Y.-X. Wang. Near optimal provable uniform convergence in off-policy evaluation for reinforcement learning. arXiv preprint arXiv:2007.03760, 2020. \n[59] M. Yin, Y. Bai, and Y.-X. Wang. Near-optimal offline reinforcement learning via double variance reduction. arXiv preprint arXiv:2102.01748, 2021. \n[60] T. Yu, G. Thomas, L. Yu, S. Ermon, J. Zou, S. Levine, C. Finn, and T. Ma. Mopo: Model-based offline policy optimization. arXiv preprint arXiv:2005.13239, 2020. \n[61] A. Zanette, A. Lazaric, M. Kochenderfer, and E. Brunskill. Learning near optimal policies with low inherent bellman error. In International Conference on Machine Learning, pages 10978–10989. PMLR, 2020. \n[62] A. Zanette, A. Lazaric, M. J. Kochenderfer, and E. Brunskill. Provably efficient reward-agnostic navigation with linear value iteration. arXiv preprint arXiv:2008.07737, 2020. \n[63] Z. Zhang, Y. Zhou, and X. Ji. Almost optimal model-free reinforcement learningvia referenceadvantage decomposition. Advances in Neural Information Processing Systems, 33, 2020. ",
1348
+ "bbox": [
1349
+ 179,
1350
+ 489,
1351
+ 826,
1352
+ 914
1353
+ ],
1354
+ "page_idx": 9
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "",
1359
+ "bbox": [
1360
+ 171,
1361
+ 70,
1362
+ 828,
1363
+ 920
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "",
1370
+ "bbox": [
1371
+ 171,
1372
+ 61,
1373
+ 828,
1374
+ 921
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "",
1381
+ "bbox": [
1382
+ 169,
1383
+ 90,
1384
+ 828,
1385
+ 748
1386
+ ],
1387
+ "page_idx": 12
1388
+ }
1389
+ ]
parse/train/MjNFN44NbZm/MjNFN44NbZm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MjNFN44NbZm/MjNFN44NbZm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkFAWax0-/SkFAWax0-.md ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VOICELOOP: VOICE FITTING AND SYNTHESIS VIA A PHONOLOGICAL LOOP
2
+
3
+ Yaniv Taigman, Lior Wolf, Adam Polyak and Eliya Nachmani
4
+
5
+ Facebook AI Research {yaniv, wolf, adampolyak, eliyan} $@$ fb.com
6
+
7
+ # ABSTRACT
8
+
9
+ We present a new neural text to speech (TTS) method that is able to transform text to speech in voices that are sampled in the wild. Unlike other systems, our solution is able to deal with unconstrained voice samples and without requiring aligned phonemes or linguistic features. The network architecture is simpler than those in the existing literature and is based on a novel shifting buffer working memory. The same buffer is used for estimating the attention, computing the output audio, and for updating the buffer itself. The input sentence is encoded using a context-free lookup table that contains one entry per character or phoneme. The speakers are similarly represented by a short vector that can also be fitted to new identities, even with only a few samples. Variability in the generated speech is achieved by priming the buffer prior to generating the audio. Experimental results on several datasets demonstrate convincing capabilities, making TTS accessible to a wider range of applications. In order to promote reproducibility, we release our source code and models1.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ We study the task of mimicking a person’s voice based on samples that are captured in-the-wild. As far as we know, no other solution exists for this highly applicable learning problem. While the current systems are mostly based on carefully collected or curated audio samples, our method is able to employ the audio of public speeches (from youtube), despite a large amount of background noise and clapping and even with an inaccurate automatic transcript. Moreover, almost all in-the-wild videos contain multiple other speakers that become challenging voice sample outliers and, in some cases, the videos are shot with home equipment and are of reduced quality.
14
+
15
+ Our method, called VoiceLoop, is inspired by a working-memory model known as the phonological loop (Baddeley, 1986). The loop holds verbal information for short periods of time. It comprises both a phonological store, where information is constantly being replaced, and a rehearsal process, which maintains longer-term representations in the phonological store.
16
+
17
+ In our method, we construct a phonological store by employing a shifting buffer that is best seen as a matrix $S ~ \in \mathbb { R } ^ { d \times k }$ with columns $\bar { S } [ 1 ] \ldots S [ k ]$ . At every time point, all columns shift to the right $( S [ i + 1 ] = S [ i ]$ for $1 \leq i < k \}$ ), column $k$ is discarded, and a new representation vector $u$ is placed in the first position $( S [ 1 ] = u )$ ). $u$ is a function of four parameters, among which are the latest β€œspoken” output and the buffer $S$ itself. The buffer is, therefore, constantly refreshed with new information, similar to the phonological store, and the mechanism that creates the representations reuses the existing information in the buffer, thus creating long term dependencies.
18
+
19
+ The two other input parameters of the network that computes the new representation $u$ are the identity of the speaker and the current attention-mediated context. The identity is captured by a learned embedding and is stored in a lookup table (for the individuals in the training set) or fitted (for new individuals). The usage of this embedding for the phonological store means that it influences the dynamic behavior of the store, the attention mechanism and the output process. Since the last process requires heavy personalization, it also receives the identity embedding directly.
20
+
21
+ ![](images/a0456ecc35aa3e52127fdd48e495db69d8c185454a419ec899a6e62f7b9bc2e2.jpg)
22
+ Figure 1: An overview of the VoiceLoop architecture. The reader combines the encoding of the sentence’s phonemes using the attention weights to create the current context. A new representation is created by a shallow network that receives the context, the speaker ID, the previous output, and the buffer. The new representation is inserted into the buffer and the earliest vector in the buffer is discarded. The output is obtained by another shallow network that receives the buffer and the speaker as inputs. Once trained, fitting a new voice is done by freezing the network, except for the speaker embedding.
23
+
24
+ The input sentences in our system are represented as a list of phonemes. Each phoneme out of the 42 in the dictionary being employed, is encoded as a short vector. The encoding of an input sentence is the list of vectors which corresponds to its list of phonemes. The context, either through a Recurrent Neural Network (RNN) or triphones, is not used.
25
+
26
+ At each time point, the encodings of the phonemes are weighted and then summed, using a vector of attention weights, to form the current context vector. As attention mechanism, we employ the Graves attention model (Graves, 2013), which ensures a monotonic increase in the position along the sequence of input phonemes.
27
+
28
+ A few properties of our methods stand out in the landscape of neural text to speech work: (i) Instead of conventional RNNs, we propose to employ a memory buffer. (ii) The same memory is shared between all processes and is repeatedly used to make all inferences. (iii) We employ shallow fully-connected networks for all computations. (iv) The input encoding part of the β€œreader” mechanism is extremely simple.
29
+
30
+ We hypothesize that these properties make our architecture more robust than existing methods and allow us to mimic speakers based on noisy and limited training data. Moreover, since the output is more directly linked to the inputs, we are able to fit new speakers using relatively short audio sequences coupled with automatically generated text.
31
+
32
+ Finally, the output of our system is deterministic, given its input. However, multiple intonations are readily generated by employing priming, which involves initializing the buffer $S$ prior to the synthesis process.
33
+
34
+ Experimentally, we evaluate our method in two ways. For TTS quality, we follow the standard Mean Opinion Score (MOS) experiment done by Arik et al. (2017a). For speaker identification, we train a multi-class network which achieves near-perfect performance on a real validation set, and test it against generated ones.
35
+
36
+ # 2 PREVIOUS WORK
37
+
38
+ Text to speech (TTS) methods can be mostly classified into four families: rule-based, concatenative, statistical-parametric (mostly HMM based), and neural. HMM-based methods (Zen et al., 2009) require careful collection of the samples, or as recently attempted by Baljekar & Black, filtering of noisy samples for in-the-wild application. Concatenative methods are somewhat less restrictive but still require tens of minutes of clean and well transcribed samples from the target voice. Emerging neural methods may hold the (currently unrealized) promise of allowing the imitation of new speakers, based on limited and unconstrained samples captured in the wild.
39
+
40
+ Very recent neural TTS systems include the Deep Voice systems DV1 (Arik et al., 2017b) & DV2 (Arik et al., 2017a), WaveNet (Oord et al., 2016), Char2Wav (Sotelo et al., 2017), and Tacotron (Wang et al., 2017). The DV2 system is a well-engineered system, which includes specialized subsystems for segmenting phonemes, predicting phoneme duration, and predicting the fundamental frequency. Each subsystem includes stacked bidirectional recurrent networks, multilayer fully connected networks and many residual connections. This stands in stark contrast to our system, which employs a single shared memory, one output process, and shallow fully connected networks.
41
+
42
+ DV2 is the only other current method that models multiple speakers in a single network. However, in contrast to our results, there are three critical differences: (a) There are no in-the-wild experiments; (b) no fitting to a new speaker that did not appear in the training set is shown possible; and (c) the authors employ a large private set and delegate the attention problem to sub-systems, including strong ground-truth alignment between phonemes, waveforms and linguistic features. The linguistic features, which comprise of phone duration, syllable stress, number of syllables in a word and position of the current syllable in a phrase, are also used during inference for generating the samples (used in the subjective Mean Opinion Score tasks as well). In contrast, our method learns β€œwhere to read” from the input. Note that (a) and (b) are crucial capabilities in making TTS accessible to a wide range of applications, in particular when casually and efficiently modeling non-professional speakers. The need for professionally collected datasets and the lack of post-training fitting could be inherent to the DV2 architecture, since it has a large number of speaker-dependent modules, whereas we fit a new speaker in a single place.
43
+
44
+ The Tacotron system employs a multi-stage encoder-decoder architecture with multiple RNNs and a block called CBHG (Lee et al., 2016) components, with each CBHG containing multiple convolutional layers, a highway network (Srivastava et al., 2015), and a bidirectional GRU (Cho et al., 2014). The output is a synthesized spectrogram, from which the audio is reconstructed by the GriffinLim (Griffin & Lim, 1984) method. Trained on a large private training set recorded by a professional single speaker, the Tacotron system is able to read raw text (characters and not phonemes). While Tacotron was not trained for multiple speakers, Arik et al. (2017a) have done so and report a high level of sensitivity to the choice of parameters and a need to incorporate the input embedding in many network sites. The Char2Wav architecture employs RNNs for both the reader and the generator. As an attention mechanism, the Graves positional attention mechanism (Graves, 2013) is used. The same attention mechanism is used in our work. However, in our case, the parameters of the attention model are based on the shared memory store (the buffer). Similarly to our method, the network was also trained to predict vocoder features. In addition, for added quality, the vocoder was replaced by a SampleRNN network (Mehri et al., 2016). In contrast to the above mentioned systems, which employ RNNs, the WaveNet architecture is based on stacks of dilated convolutions, which are termed β€œcausal” for not looking into the future. The output audio is generated sample by sample, which, at typical sampling rates of thousands of hertz, is too slow for current TTS applications. Wavenet has shown single-speaker TTS capabilities, but not multi-speaker.
45
+
46
+ Waveforms Synthesis There is currently no TTS method which can synthesize waveforms from scratch. WaveNet, DV1, DV2, Char2wav and Tacotron were all conditioned on top of lower level generators. Wavenet was conditioned on F0 vocoder features, as well as linguistic features extracted from separately trained RNN-based text representations. SampleRNNs were employed on top of vocoders. Tacotron synthesized spectograms from mel-spectograms, approximating waveforms using Griffin-Lim. As observed by DV2, small errors in the spectrogram generation result in unnatural (metallic) noise in the reconstruction. Further audio processing can be used to alleviate them, but to a limited extent. Better results were achieved (Arik et al., 2017a) by replacing Griffin-Lim with a Wavenet-like net conditioned on the generated spectogram and speaker.
47
+
48
+ Table 1: The components of the VoiceLoop model
49
+
50
+ <table><tr><td>Symbol</td><td>Description</td><td>Computed as:</td></tr><tr><td>St ∈Rdxk 2aiaier ut∈Rd EeRdpxl zERds Kt,Ξ²t,Yt ∈RC Ht,OΒ²,Y∈RC at∈Rl Ct ∈Rdp</td><td>buffer at time t new representation for the buffer embedding of the input sequence embedding of the current speaker attention model parameters attention GMM parameters attention vector at time t context vector at time t</td><td>St[1]= ut; St[i+1]= St-1[i] Nu([St-1,[ct +tanh(Fuz),Ot-1]l) E[i]=LUTp[si] LUTs[id] orSec. 3.2 Na(St-1) ΞΌt= ΞΌt-1+et,σ²=eΞ²t,Ξ³t=sm(YtοΌ‰ See Eq.3,4 Ct =EΞ±t</td></tr><tr><td>Ot ERd Nu :kd+dp+doβ†’d Nrureees Na :kd β†’3c N:kd β†’do LUTp ∈RdpΓ—42 LUT∈RdsXN Fu:dsβ†’dp F:dsβ†’do</td><td>output vector at time t buffer update network attention network output network embedding of each phoneme embedding of the speakers projection of the speaker for update projection of the speaker for output</td><td>N(St)+Foz</td></tr><tr><td>d sraaeieetr k d ds C S1...St,1≀s≀42 1 N</td><td>dimensionality of the buffer capacity of the buffer dim.of the input embedding LUT dim.of the vocoder feature vector dim. of the speaker embedding # GMM component (attention model) input sequence length of the input sequence number of speakers in the training set</td><td>dp+do 20 256 63 dp 10</td></tr></table>
51
+
52
+ Our system was designed with simplicity in mind in order to promote robustness and reproducibility. We focus on modeling the underlying generation process and do not integrate or condition explicitly for waveforms synthesis. Instead, we employ the WORLD (Morise et al., 2016) vocoder (D4C edition) for feature extraction and waveform synthesis. While this bounds the achievable quality, we also experimented with adding WaveNet and SampleRNN. However, the added performance did not seem to justify the extra effort, especially for in-the-wild voice training data, where we observed no improvement.
53
+
54
+ Differentiable Memory The differentiable buffer architecture, in which a new representation is added at every step, and the last vector added is discarded in a FIFO manner, is novel as far as we know. There are multiple other network models in the literature that are augmented by an external memory structure, e.g., (Joulin & Mikolov, 2015; Sukhbaatar et al., 2015; Graves et al., 2014). However, to our knowledge, our work is one of very few applications of such memory networks outside in practice.
55
+
56
+ Perhaps the closest model to our work is Stack RNN by Joulin & Mikolov (2015), in which the network is augmented with an infinite stack to which a state vector can be added (PUSH) or removed (POP) at every time step. Unlike our model, only the top of the stack is read each time.
57
+
58
+ # 3 THE ARCHITECTURE
59
+
60
+ The architecture of the VoiceLoop model is depicted in Fig. 1 and the components of the architecture are listed in Tab. 1. The forward pass of the network has four steps, which are run sequentially. Following a context-free encoding of the input sequence and an encoding of the speaker, the buffer at time t, $\mathbf { \bar { \mathbf { } } } { S _ { t } } \in \mathbb { R } ^ { d \times k }$ , plays a major role in all of the remaining steps and links between the other components of each step. It also carries the error signal from the output to the earlier steps.
61
+
62
+ Step I: Encoding the speaker and the input sentence Every speaker is represented by a vector $z$ During training, the vectors of the training speakers are stored in a lookup table $L U T _ { s }$ which maps a running id number to a representation of dimensionality $d _ { s }$ . For new speakers, which are being fitted after the network was trained, the vector $z$ is computed by the straightforward optimization process described in Sec. 3.2.
63
+
64
+ The input sentence is converted to a sequence of phonemes $s _ { 1 } , s _ { 2 } , \ldots , s _ { l }$ by employing the CMU pronouncing dictionary (Weide, 1998). The number of phonemes in this dictionary is 40, to which two items are added to indicate pauses of different lengths. Each $s _ { i }$ is then mapped separately to an encoding that is based on a trained lookup table $L U T _ { p }$ . This results in an encoding matrix $E$ of size $d _ { p } \times l$ , where $d _ { p }$ is the size of the encoding, and $l$ is the sequence length.
65
+
66
+ Step II: Computing the context Similar to (Sotelo et al., 2017; Chorowski et al., 2015), we employ the Graves Gaussian Mixture Model (GMM)-based monotonic attention mechanism. At each output time point $t = 1 , 2 , \dots$ , the attention network $N _ { a }$ receives the buffer from the previous time step $S _ { t - 1 }$ as input and outputs the GMM priors $\gamma _ { t }$ , shifts $\kappa _ { t }$ , and log-variances $\beta _ { t }$ . For a GMM with $c$ components, each of these is a vector in $\mathbb { R } ^ { c }$ . $N _ { a }$ has one hidden layer, of dimensionality $\textstyle { \frac { d k } { 1 0 } }$ and a ReLU activation function for the hidden layer.
67
+
68
+ The attention is then computed as follows:
69
+
70
+ $$
71
+ \gamma _ { t } ^ { \prime } [ i ] = \frac { e x p ( \gamma _ { t } [ i ] ) } { \sum _ { j } e x p ( \gamma _ { t } [ j ] ) } , i = 1 , 2 , \ldots , c
72
+ $$
73
+
74
+ i.e., the softmax function is applied to the priors. The means of the GMMs are increased:
75
+
76
+ $$
77
+ \mu _ { t } = \mu _ { t - 1 } + e x p ( \kappa _ { t } ) ,
78
+ $$
79
+
80
+ and the variances are computed as $\sigma _ { t } ^ { 2 } = e x p ( \beta _ { t } )$ . For each GMM component $1 \leq i \leq c$ and each point along the input sequence $1 \le j \le l$ , we then compute:
81
+
82
+ $$
83
+ \phi [ i , j ] = \frac { \gamma _ { t } ^ { \prime } [ i ] } { \sqrt { 2 \pi \sigma _ { t } ^ { 2 } [ i ] } } e x p ( - \frac { ( j - \mu _ { t } [ i ] ) ^ { 2 } } { 2 \sigma _ { t } ^ { 2 } [ i ] } )
84
+ $$
85
+
86
+ The attention weights $\alpha _ { t }$ are computed for each location in the sequence by summing along all $c$ components:
87
+
88
+ $$
89
+ \alpha _ { t } [ j ] = \sum _ { i = 1 } ^ { c } \phi [ i , j ]
90
+ $$
91
+
92
+ The context vector $c _ { t }$ is then computed as weighted sum of the columns of the input sequence embedding matrix $E$ as $c _ { t } = E \alpha _ { t }$ . The loss function of the entire model depends on the attention vector through this context vector. The GMM is differentiable with respect to mean, std and weight, and these are updated, during training, through backpropagation.
93
+
94
+ Step III: Updating the buffer At each time step, a new representation vector $u$ of dimensionality $d$ is added to the buffer at the first location $S _ { t } [ 1 ]$ , the last column of the buffer from the previous time step $S _ { t - 1 } [ k ]$ is discarded, and the rest are copied $S _ { t } [ i + 1 ] = S _ { t - 1 } [ i ]$ for $i = 1 , \ldots , k - 1$ .
95
+
96
+ In our implementation, the number of features in the buffer $d$ is the sum of the dimensionality of the embedding of the phonemes $d _ { p }$ and the output’s dimensionality $d _ { o }$ . This choice was made so that a direct comparison to a buffer that does not employ an update network can be performed. In this case, $u$ is simply the concatenation of the current context vector $c _ { t }$ and the output from the previous time step $o _ { t - 1 }$ . It soon became very clear that this loop-less buffer update leads to poor results, emphasizing the role of using information of the buffer $S$ itself in the update process.
97
+
98
+ The vector $u$ is, therefore, computed using a shallow fully connected network $N _ { u }$ , with one hidden layer of a size that is the tenth of the input dimensionality and a ReLU activation function.
99
+
100
+ The network receives as input the buffer $S _ { t - 1 }$ , the context vector $c _ { t }$ , and the previous output $o _ { t - 1 }$ The new vector $u$ is also made speaker dependent by adding a projection of the speaker embedding $z$ to the context vector. This projection is followed by a hyperbolic tangent activation function, in order to maintain scale. Therefore,
101
+
102
+ $$
103
+ C _ { t } = [ c _ { t } + t a n h ( F _ { u } z ) , o _ { t - 1 } ]
104
+ $$
105
+
106
+ ![](images/f6ad362c76523e8b3b0cd6dd526216f23c413d9f98cb5391787d3aaaf06b2497.jpg)
107
+ Figure 2: Memory Location Significance. For each of the three networks $N _ { u }$ , $N _ { a }$ and $N _ { o }$ , we average the absolute values of the weights to the hidden layer across all hidden neurons and across the $d$ rows of the buffer. The result is a measure of the relative importance of each column of the buffer. Best viewed in color.
108
+
109
+ $$
110
+ u = N _ { u } ( [ S _ { t - 1 } , C _ { t } ] ) ,
111
+ $$
112
+
113
+ where $[ a , b ]$ is the concatenation of the two column vectors $a$ and $b$ to one column vector, or the concatenation of two matrices $a$ and $b$ side by side.
114
+
115
+ Another way in which we allow the speaker to influence the generated output is by initializing the buffer based on the speaker’s embedding. Specifically, in our implementation, the speaker embedding size $d _ { s }$ is the same as the phoneme embedding size $d _ { p }$ and we set the top part of the buffer $S _ { 0 }$ to be $z$ repeated $k$ times. The lower part of size $d _ { o } \times k$ is set to zero.
116
+
117
+ Step IV: Generating the output The output is generated using a network $N _ { o }$ that is of the same architecture as $N _ { a }$ and $N _ { u }$ and a projection of the user by a learned matrix $F _ { o }$ :
118
+
119
+ $$
120
+ o _ { t } = N _ { o } ( S _ { t } + F _ { o } z )
121
+ $$
122
+
123
+ Memory Location Significance In order to better understand the behavior of the buffer, we consider the relative role of each buffer location $1 , 2 , \ldots , k$ on the activations of $N _ { u } , N _ { a }$ , and $N _ { o }$ Specifically, we average the absolute values of the weights from the input (buffer elements) to the hidden layer. The averaging is performed across all $d$ features and ${ \frac { d k } { \frac { 1 0 } { \alpha } } }$ hidden units, and provides one value per each location. As can be seen in Fig 2, the weights of the latest elements are more prominent, especially, as expected, for the output network $N _ { o }$ . However, even the rightmost column has a relative contribution that is at least one third of the leftmost column. This supports the utility of our buffer architecture, in which all memory locations are equal inputs to the downstream fully connected networks.
124
+
125
+ # 3.1 TRAINING
126
+
127
+ In our current implementation, the output is a vector of vocoder features of dimensionality $d _ { o } = 6 3$ . Similar to (Sotelo et al., 2017), these features were computed using the Merlin toolkit (Wu et al., 2016). During training, the output at each time frame $t$ is compared to the vocoder features of the ground truth data $Y _ { t }$ using the MSE loss: $\frac { 1 } { d _ { o } } \Vert Y _ { t } - o _ { t } \Vert ^ { 2 }$ . This loss requires an exact temporal alignment of the input and the output sequence. However, human speech is not deterministic and one cannot expect a deterministic method to predict the ground truth. For example, even the same speaker cannot replicate her voice to completely remove the MSE loss since there is variability when repeating the same sentence. Teacher forcing solves this since it eliminates most of the drift and enforces a specific way of uttering the sentence.
128
+
129
+ In conventional teacher forcing, during training, the input to the network $N _ { u }$ is $Y _ { t - 1 }$ and not $o _ { t - 1 }$ This holds the danger of teaching the network to predict only one time frame ahead, which would create a drift in the output when run on test data. We, therefore, employ a variant of the teacher-forcing technique, which uses the following input to $N _ { u }$ as the previous output
130
+
131
+ $$
132
+ \frac { o _ { t - 1 } + Y _ { t - 1 } } { 2 } + \eta ,
133
+ $$
134
+
135
+ where $\eta$ is a random noise vector. When training starts, the predicted output $o _ { t - 1 }$ is by itself a source of noise. As training progresses, it becomes more similar to $Y _ { t - 1 }$ . However, the systematic difference between the two allows the network to better fit the situation that occurs at test time.
136
+
137
+ During training, a forward pass on all of the output sequences is performed (without truncation), followed by a backward pass.
138
+
139
+ Efficiency The full model contains 9.3 million parameters and runs near real-time on an Intel Xeon E5 single-core CPU and 5 times faster when on M40 NVIDIA GPU, including vocoder CPU decoding. This was benchmarked with our publicly available python PyTorch implementation. Therefore, even without special optimizations, engineering VoiceLoop to run on a mobile client is possible, similar to existing non-neural TTS client solutions (e.g. Android’s text-to-speech APK).
140
+
141
+ # 3.2 FITTING A NEW PERSON
142
+
143
+ Different people exhibit different patterns and present various mannerisms in their speech. Therefore, learning to fit these factors from a limited amount of speech is a challenging task. The goal of speaker mimicking TTS is to be able to mimic a new person based on a relatively short voice sample. Ideally, the new voice would be captured by the parameters of the speaker embedding $z$ , without the need to retrain the network. Naturally, enough variability in the population of the training speakers is needed in order to support this. To fit a new speaker, we are given voice samples and transcribed text. We then employ the training procedure, where the weights of all networks and projections $( N _ { a } , N _ { u } , N _ { o } , L U T _ { p } , F _ { u } , F _ { o } )$ are kept fixed and only vector $z$ is learned (using SGD) to form the embedding of the new speaker.
144
+
145
+ The same training procedure as detailed in Sec. 3.1 is employed for fitting a new person, including the application of teacher-forcing. We find that the fitting process is very stable with regards to voice characteristics such as pitch. We also noticed that the accent in the new sample needs to be relatively close to the accents presented in the training samples. See Sec. 3.2 for fitting experiments.
146
+
147
+ # 3.3 GENERATING VARIABILITY
148
+
149
+ As mentioned, natural speech is not deterministic and each time a sentence is said, it is said in a different way. For simplicity, our method does not employ a random component, such as a variational autoencoder. However, we can generate different outputs by employing priming (Graves, 2013). In this technique, the initial buffer $S _ { 0 }$ is initialized based on an initial process in which another word or sentence is run through the system. One can expect that a sentence from the training set that is said in excitement, would paint the buffer differently than one that is flatter. Experimenting with this technique, demonstrates that we are indeed able to achieve the desired level of variability. However, the direct link between the nature of the priming sequence and the generated output is only anecdotal at this point.
150
+
151
+ # 4 EXPERIMENTS
152
+
153
+ We make use of multiple datasets. First, for comparing with existing single speaker techniques, we employ single speaker literature datasets. Second, we employ various subsets of the VCTK dataset (Veaux et al., 2017) for various multi-speaker training and/or fitting experiments. Third, we create a dataset that is composed from four to five public speeches of four public figures. The data was downloaded from youtube, where these speeches are publicly available and were automatically transcribed. Samples generated by our method are available on the project’s website https: //github.com/facebookresearch/loop.
154
+
155
+ The MOS measure for the proposed method was computed using the crowdMOS toolkit by P. Ribeiro et al. (2011) and Amazon Mechanical Turk. All samples were presented at 16kHz and the raters were told that they are presented with the results of the different algorithms. At least 20 raters participated in each such experiment, with $9 5 \%$ confidence intervals. We restricted all experiments to North American raters.
156
+
157
+ # 4.1 SINGLE SPEAKER EXPERIMENTS
158
+
159
+ The single speaker experiments took place on the LJ (Ito, 2017a), the Nancy corpus from the 2011 Blizzard Challenge (King & Karaiskos, 2011), and the English audiobook data for the 2013 Blizzard Challenge (King & Karaiskos, 2013). Our method was compared to the ground truth as well as to Char2Wav and to Tacotron. The Char2Wav system was trained by us using the authors’ implementation available at https://github.com/sotelo/parrot. The training of the Char2Wav model, in each experiment, was optimized by measuring the loss on the validation set, over the following hyperparameters: initial learning rate of $\left[ 1 e - 2 , 1 e - 3 , 1 e - 4 \right]$ , source noise standard deviation $( [ 1 , 2 , 4 ] )$ , batch-size ([16, 32, 64]) and the length of each training sample $( [ 1 0 e 2 , 1 0 e 4 ] )$ .
160
+
161
+ The Tacotron models were pretrained models available from the best public implementation we could find, which is by Ito (2017b). This re-implementation has models only for the LJ and the Nancy datasets. Note that Tacotron has raised a lot of attention and considerable effort was put by the community to replicate the paper’s results. However, there would very likely be a different choice of hyper-parameters between such re-implementations and the one of the authors.
162
+
163
+ The MOS scores are shown in Tab. 2. These were computed using the β€œsame_sentence” option of crowdMOS, following DV2 (personal communication). As can be seen, our single speaker results are better than those of the other two algorithms across datasets, but still somewhat lower than the ground truth results.
164
+
165
+ It is interesting to note that on Blizzard 2011, our results are better than Tacotron (reimplementation) but not significantly better than Char2Wav, while on Blizzard 2013 it is significantly better than both. This can be attributed to the clean nature of Blizzard 2011, for which Char2Wav is robust enough, and demonstrates our method’s robustness to noise.
166
+
167
+ Tab. 3 presents Mel Cepstral Distortion (MCD) scores. This is an automatic, albeit limited, method of testing compatibility between two audio sequences. Since the sequences are not aligned, we employ MCD DTW, which uses dynamic time warping (DTW) to align the sequences. As can be seen, in this metric too, our method outperforms the baseline methods. The single except is Tacotron’s lower distortion on the LJ dataset. However, as shown in Tab. 2, Tacotron is not competitive on this dataset.
168
+
169
+ Table 2: Single Speaker MOS Scores (Mean Β± SD)
170
+
171
+ <table><tr><td>Method</td><td>LJ</td><td>Blizzard 2011</td><td>Blizzard 2013</td></tr><tr><td>Tacotron (re-impl)</td><td>2.06 Β± 1.02</td><td>2.15 Β± 1.10</td><td>N/A</td></tr><tr><td>Char2wav</td><td>3.42 Β± 1.14</td><td>3.33 Β± 1.06</td><td>2.03 Β± 1.16</td></tr><tr><td>VoiceLoop</td><td>3.69 Β± 1.04</td><td>3.38 Β± 1.00</td><td>3.40 Β± 1.03</td></tr><tr><td>Ground truth</td><td>4.60 Β± 0.71</td><td>4.56 Β± 0.67</td><td>4.80 Β± 0.50</td></tr></table>
172
+
173
+ Table 3: Single Speaker MCD Scores (Mean Β± SD; lower is better)
174
+
175
+ <table><tr><td>Method</td><td>LJ</td><td>Blizzard 2011</td><td>Blizzard 2013</td></tr><tr><td>Tacotron (re-impl)</td><td>12.82 Β± 1.41</td><td>14.60 Β± 7.02</td><td>N/A</td></tr><tr><td>Char2wav</td><td>19.41 Β± 5.15</td><td>13.97 Β± 4.93</td><td>18.72 Β± 6.41</td></tr><tr><td>VoiceLoop</td><td>14.42 Β± 1.39</td><td>8.86 Β±1.22</td><td>8.67 Β± 1.26</td></tr></table>
176
+
177
+ # 4.2 MULTI-SPEAKER EXPERIMENTS
178
+
179
+ Multi-speaker experiments were performed on the VCTK dataset (Veaux et al., 2017). The 109 speakers were divided into four different nested subsets: 22 North American speakers, both male and females; and 65, 85 and 101 random selection of speakers, where the remaining eight speakers were left out for validation. Each subset was shuffled into train and test sets. Different models were trained to each of the subsets. Qualitatively, the models provide distinguished voices, and as can be seen in Fig. 3, the generated voice samples display a different dynamic behavior for different speakers.
180
+
181
+ ![](images/9ec1c8ec5ba0ce9ff107e31130d9098f2d9274b357e12f53f06e3803b35e9cd8.jpg)
182
+ Figure 3: Top: The attention probabilities obtained when mimicking three different North American speakers from VCTK using the same sentence: β€œbut there is no eye contact”. The $\mathbf { X } ^ { } -$ -axis is the time along the generated audio. The y-axis depicts the sequence of phonemes. Dots indicate the maximal response along time for each phoneme, illustrating learned phoneme duration differences between identities (not given during training). Bottom: The 4-th Mel-cepstrum for the three generated sentences (dashed) as well as the ground-truth (solid) of the leftmost speaker. Best viewed in zoom.
183
+
184
+ Table 4: Multi-speaker MOS scores (Mean Β± SE)
185
+
186
+ <table><tr><td>Method</td><td>VCTK22</td><td>VCTK65</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>Char2wav</td><td>2.84 Β± 1.20</td><td>2.85 Β± 1.19</td><td>2.76 Β± 1.19</td><td>2.66 Β± 1.16</td></tr><tr><td>VoiceLoop</td><td>3.57 Β± 1.08</td><td>3.40 Β± 1.00</td><td>3.13 Β± 1.17</td><td>3.33 Β± 1.10</td></tr><tr><td>GT</td><td>4.61 Β± 0.75</td><td>4.59 Β± 0.72</td><td>4.64 Β± 0.64</td><td>4.63 Β± 0.66</td></tr></table>
187
+
188
+ In our experiments, we employ the author’s implementation of Char2Wav mentioned above as baseline. Note that while the Char2Wav paper did not present multi-speaker results, the open implementation is more general and includes this option.
189
+
190
+ Sentences from the test set of VCTK are employed for testing. Following DV2 (private communication), the MOS results were computed using the β€œdiff_sentences” option of the crowdMOS toolkit, and are depicted in Tab. 4. As can be seen, our multi-speaker method shows a considerable advantage over the Char2Wav system across all VCTK subsets, but is not as good as the ground truth. These results are consistent with the MCD scores as reported in Tab. 5.
191
+
192
+ Speaker Identification The capability of the system to generate distinguished voices that match the original voices was tested, as was done in DV2, using a speaker classifier. We train a multi-class convolutional network on the ground-truth training set of multiple speakers, and test on the generated ones. The network gets as input an arbitrary size of vocoder samples, performs five convolutional layers of 3x3 filters over 32 batch-normalized channels, followed by max-pooling, average pooling over time, two fully-connected layers, and ending with a softmax of the number of classes tested. All intermediate layers were linearly rectified.
193
+
194
+ The identification results are shown in Tab. 6. The VoiceLoop results are more accurate than the results on the VCTK test split, despite using the same text. This might indicate that the voices generated are more similar to the training voices than the natural variability that is present in the dataset. The Char2Wav results are considerably lower.
195
+
196
+ Table 5: Multi-speaker MCD scores (Mean Β± SE; lower is better)
197
+
198
+ <table><tr><td>Method</td><td>VCTK22</td><td>VCTK65</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>Char2wav</td><td>15.71 Β± 1.82</td><td>15.1 Β± 1.45</td><td>15.23 Β± 1.49</td><td>15.06 Β± 1.32</td></tr><tr><td>VoiceLoop</td><td>13.74 Β± 0.98</td><td>14.1 Β± 0.94</td><td>14.16 Β± 0.87</td><td>14.22 Β± 0.88</td></tr></table>
199
+
200
+ Table 6: Multi-Speaker Identification Top-1 Accuracy (%)
201
+
202
+ <table><tr><td>Method</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>VCTK test split</td><td>98.25</td><td>97.16</td></tr><tr><td>Char2Wav on test split sentences</td><td>75.70</td><td>81.63</td></tr><tr><td>VoiceLoop on test split sentences</td><td>100</td><td>99.76</td></tr></table>
203
+
204
+ # 4.3 NEW SPEAKER FITTING EXPERIMENTS
205
+
206
+ Our system is the only published system that is capable of post-training fitting of new speakers. In order to experiment with this capability, we employ the VoiceLoop model trained on VCTK85 and experiment on the remaining 16 speakers one by one, where only the speaker embedding $z$ gets updated. While TTS systems typically require several hours of data to model a single speaker (Zen et al., 2009), our fitting set contains only 23.65 minutes per speaker on average.
207
+
208
+ ![](images/91ceb44e61dcff3043cbbf2aa4dd6e1394d679764444c8de47326ccc710dba71.jpg)
209
+ Figure 4: Fitting new speaker embeddings to an existing VoiceLoop model. The graph plots top1 identification accuracy with respect to a sample set length (in minutes) per speaker. Scores were averaged over 5 splits each. The β€œFull training” horizontal line is the top-1 accuracy for the corresponding speakers, when trained together with the model from scratch. The leftmost datapoint is for two sentences (about 10sec) per speaker.
210
+
211
+ As described in 3.2, we randomly initialize a new embedding for every new speaker and update only its weights during back-propagation on the fitting data. The newly fitted speakers achieve ${ \bf 3 . 0 8 \pm }$ 0.95 MOS, suggesting that the generation mechanism has not deteriorated below a β€œfair” level by the new entries.
212
+
213
+ Similar to the multi-speaker case, we train classifiers for the corresponding identities on ground-truth data, but test on the fitted ones, achieving $8 7 . 6 \%$ top-1 identification accuracy. Despite lower rates than those in Tab. 6, generations of fitted identities are still reasonably discriminative. We conjecture that training VoiceLoop on a larger set of speakers (e.g. LibriSpeech Panayotov et al. (2015)) will be able to represent unseen identities better.
214
+
215
+ Fitting Data Size The performance of fitting a new identity clearly relies on the length of the sample that is available for that speaker. In order to understand the influence of the sample size, we repeated the above fitting process for the 16 speakers, but capped the available fitting data per speaker. Specifically, we experimented with a maximal amount of training data of 1, 5, 10, 15 and 20 minutes of voice for each speaker. Instead of cutting the last sentence in the middle, it was removed in case that the threshold was crossed. We repeated this fitting process 5 times, each time fitting a different set of samples at a particular limit.
216
+
217
+ In Fig. 4 we report identification accuracies for each limit. Surprisingly, even with two sentences per speaker, totaling about 10 seconds in average, we can fit a new speaker into VoiceLoop such that the speaker is identifiable at $6 4 . 4 \%$ top-1 identification rate.
218
+
219
+ # 4.4 IN THE WILD EXPERIMENTS
220
+
221
+ To demonstrate the flexibility of our method, we downloaded several publicly available videos from youtube. We picked four different known speakers (see samples page), and for each we retrieved the top four to five results, provided that they are longer than 20 minutes. We extracted the audio and its associated (youtube’s) automatically transcribed text. The total amount of data is 6.2 hours, which we then segmented into 8000 segments. Each segment length is around three seconds, similar to the datasets used in the experiments above. Both the data and its corresponding text are noisy: some of the samples include panel discussions and others with questions from various reporters. Sometimes, microphone echo was observed, or relatively low quality audio originated from mobile video conference sessions. We then trained on this data a VoiceLoop model from scratch, using exactly the same training procedure used by the other experiments. This achieved MOS is ${ \bf 2 . 9 7 \bar { \pm } }$ 1.03, and top-1 accuracy of $9 5 . 8 1 \%$ .
222
+
223
+ We also demonstrate priming (Sec. 3.3) on this dataset. Even for the same speaker, multiple intonations can be generated by initializing $S _ { 0 }$ in different ways. This capability is depicted in Fig. 5 and in the samples page.
224
+
225
+ # 5 DISCUSSION
226
+
227
+ Employing web-based in-the-wild training data means that the network is trained on mixed data that contains both speech and other sources. For example, our samples contain a considerable amount of clapping and laughs. Moreover, public speeches contain a larger than usual amount of dramatic prosody and methodological pauses (the same is also true with audiobooks). As our experiments show, our method is mostly robust to these, since it is able to model the voices despite of these difficulties and without replicating the background noises in the synthesized output. The baseline model of Char2Wav was not able to properly model the voices of the youtube dataset and presented clapping sounds in its output.
228
+
229
+ The architectural simplicity of our system is likely to be the reason for its robustness. Another advantage that stems directly from it, is its computational efficiency. Based on a few shallow networks and on an iterative process that does not consider future samples, our method can generate voice on mobile devices in speeds far exceeding real-time. For comparison, deep voice (Arik et al., 2017b) is posed as a real time neural TTS system, and it achieves a rate of up to 2.7 times real-time on a Intel Xeon E5-2660 v3 Haswell CPU, running 6 concurrent threads (GPU does not provide speedup for the inference of the deep voice system).
230
+
231
+ ![](images/5d1173b5d35905582c3853492c246eded508e9ae4fac068b49997462f06f90db.jpg)
232
+ Figure 5: Same input, different intonations. A single in the wild speaker saying the sentence β€œpriming is done like that ”, where each time $S _ { 0 }$ is initialized differently. (a) Without priming. (b) Priming with the word β€œI". (c) Priming with the word β€œhad”. (d) Priming with the word β€œmust”. (e) Priming with the word β€œbye”. The figure shows the raw waveform, spectrogram, and F0 estimation (include voicedness) in the first, second and third rows respectively. From the spectrogram plots we can observe different duration for some phonemes. The F0 estimation of (c) and (d) shows that the speaker talks in higher tone while in (b) and (e) we can observe lower tone of the speaker. This demonstrates how priming changes the intonations of the model outputs.
233
+
234
+ The link we form to the model of Baddeley (1986) is by way of analogy and, to be clear, does not imply that we implement this model as is. Specifically, by phonological features, we mean a joint (mixed) representation, in memory, of sound based information and language based information, which is a unique characteristic of our model in comparison to previous work. The short term memory in Baddleley’s model is analog to our buffer and the analog to the rehearsal mechanism is the recursive way in which our buffer is updated. Namely, the new element in the buffer $( u )$ is calculated based on the entire buffer. As noted in Sec. 3, without this dependency on the buffer, our model becomes completely ineffective.
235
+
236
+ While we employ the loop-updated buffer for the task of speech synthesis, the model is quite general. For example, we have employed the buffer for machine translation from English to French using a dot product based attention model (Bahdanau et al., 2014). The discrete nature of the output means that an output embedding had to be added, but the overall structure remained the same. The performance seemed at least similar to the baseline RNN attention model. However, no attempt has yet been made to achieve state of the art results on existing benchmarks. Surprisingly, relatively large buffer sizes (9) seem to produce better results, despite the input and the output being relatively short. Staying in the realm of voice, the buffer model can be readily used to form a transformation in the other direction (from speech to text), and applied to audio denoising.
237
+
238
+ # 6 CONCLUSION
239
+
240
+ We present a new memory architecture that serves as an effective working memory module. Building on this, we are able to present a neural TTS solution of an architecture that is less complex than those found in the recent literature. It also does not require any alignment between phonemes and acoustics or linguistic features as inputs. Using the new architecture, we are able to present, for the first time as far as we know, multi-speaker TTS that is based on unconstrained samples collected from public speeches. Our work also presents a unique ability to fit new speakers (post-training), which is demonstrated even for very limited sample size.
241
+
242
+ # REFERENCES
243
+
244
+ Sercan Arik, Gregory Diamos, Andrew Gibiansky, John Miller, Kainan Peng, Wei Ping, Jonathan Raiman, and Yanqi Zhou. Deep voice 2: Multi-speaker neural text-to-speech. In Neural Information Processing Systems (NIPS), 2017a.
245
+
246
+ Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Jonathan Raiman, Shubho Sengupta, et al. Deep voice: Real-time neural text-to-speech. In Proc. of the 34th International Conference on Machine Learning (ICML), 2017b.
247
+
248
+ A.D. Baddeley. Working memory. London: Oxford University Press, 1986.
249
+
250
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014.
251
+
252
+ Pallavi Baljekar and Alan W Black. Utterance selection techniques for tts systems using found speech. In 9th ISCA Speech Synthesis Workshop, pp. 184–189.
253
+
254
+ Kyunghyun Cho, Bart van Merrienboer, Γ‡aglar GΓΌlΓ§ehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Alessandro Moschitti, Bo Pang, and Walter Daelemans (eds.), EMNLP, pp. 1724–1734. ACL, 2014. ISBN 978-1-937284-96-1. URL http://dblp. uni-trier.de/db/conf/emnlp/emnlp2014.html#ChoMGBBSB14.
255
+
256
+ Jan Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, KyungHyun Cho, and Yoshua Bengio. Attention-based models for speech recognition. CoRR, abs/1506.07503, 2015.
257
+
258
+ Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
259
+
260
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
261
+
262
+ D. Griffin and Jae Lim. Signal estimation from modified short-time fourier transform. IEEE Transactions on Acoustics, Speech, and Signal Processing, 32(2):236–243, Apr 1984.
263
+
264
+ Keith Ito. The lj speech dataset, 2017a. URL ttps://keithito.com/LJ-Speech-Dataset.
265
+
266
+ Keith Ito. Tacotron speech synthesis implemented in tensorflow, with samples and a pre-trained model, 2017b. URL https://github.com/keithito/tacotron.
267
+
268
+ Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Neural Information Processing Systems (NIPS), 2015.
269
+
270
+ Simon King and Vasilis Karaiskos. The blizzard challenge 2011. In Blizzard Challenge workshop, 2011.
271
+
272
+ Simon King and Vasilis Karaiskos. The blizzard challenge 2013. In Blizzard Challenge workshop, 2013.
273
+
274
+ Jason Lee, Kyunghyun Cho, and Thomas Hofmann. Fully character-level neural machine translation without explicit segmentation. arXiv preprint arXiv:1610.03017, 2016.
275
+
276
+ Soroush Mehri, Kundan Kumar, Ishaan Gulrajani, Rithesh Kumar, Shubham Jain, Jose Sotelo, Aaron C. Courville, and Yoshua Bengio. Samplernn: An unconditional end-to-end neural audio generation model. arXiv preprint, arXiv: 1612.07837, 2016.
277
+
278
+ Masanori Morise, Fumiya Yokomori, and Kenji Ozawa. World: A vocoder-based high-quality speech synthesis system for real-time applications. IEICE TRANSACTIONS on Information and Systems, 99(7):1877–1884, 2016.
279
+
280
+ 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.
281
+
282
+ Flavio P. Ribeiro, Dinei Florencio, Cha Zhang, and Michael Seltzer. CROWDMOS: an approach for crowdsourcing mean opinion score studies. In ICASSP, IEEE International Conference on Acoustics, Speech and Signal Processing - Proceedings, pp. 2416–2419, 05 2011.
283
+
284
+ Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: an ASR corpus based on public domain audio books. In Proceedings of the International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2015.
285
+
286
+ Jose Sotelo, Soroush Mehri, Kundan Kumar, Joao Felipe Santos, Kyle Kastner, Aaron Courville, and Yoshua Bengio. Char2wav: End-to-end speech synthesis. In ICLR workshop, 2017.
287
+
288
+ Rupesh K Srivastava, Klaus Greff, and JΓΌrgen Schmidhuber. Training very deep networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2377–2385. Curran Associates, Inc., 2015. URL http: //papers.nips.cc/paper/5850-training-very-deep-networks.pdf.
289
+
290
+ Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Neural Information Processing Systems (NIPS). 2015.
291
+
292
+ Christophe Veaux, Junichi Yamagishi, Kirsten MacDonald, et al. CSTR VCTK Corpus: English multi-speaker corpus for CSTR voice cloning toolkit, 2017.
293
+
294
+ Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: A fully end-to-end text-to-speech synthesis model. arXiv preprint arXiv:1703.10135, 2017.
295
+
296
+ Robert L Weide. The CMU pronouncing dictionary. URL: http://www. speech. cs. cmu. edu/cgibin/cmudict, 1998.
297
+
298
+ Zhizheng Wu, Oliver Watts, and Simon King. Merlin: An Open Source Neural Network Speech Synthesis System, pp. 218–223. 9 2016.
299
+
300
+ Heiga Zen, Keiichi Tokuda, and Alan W. Black. Statistical parametric speech synthesis. Speech Communication, 51(11):1039 – 1064, 2009.
parse/train/a7APmM4B9d/a7APmM4B9d.md ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Decision Transformer: Reinforcement Learning via Sequence Modeling
2
+
3
+ Lili Chenβˆ—,1, Kevin $\mathbf { L u } ^ { * , 1 }$ , Aravind Rajeswaran2, Kimin Lee1, Aditya Grover2,3, Michael Laskin1, Pieter Abbeel1, Aravind Srinivas†,4, Igor Mordatch†,5
4
+
5
+ βˆ—equal contribution †equal advising
6
+
7
+ 1UC Berkeley 2Facebook AI Research 3UCLA 4OpenAI 5Google Brain
8
+
9
+ {lilichen, kzl}@berkeley.edu
10
+
11
+ # Abstract
12
+
13
+ We introduce a framework that abstracts Reinforcement Learning (RL) as a sequence modeling problem. This allows us to draw upon the simplicity and scalability of the Transformer architecture, and associated advances in language modeling such as GPT- $\mathbf { X }$ and BERT. In particular, we present Decision Transformer, an architecture that casts the problem of RL as conditional sequence modeling. Unlike prior approaches to RL that fit value functions or compute policy gradients, Decision Transformer simply outputs the optimal actions by leveraging a causally masked Transformer. By conditioning an autoregressive model on the desired return (reward), past states, and actions, our Decision Transformer model can generate future actions that achieve the desired return. Despite its simplicity, Decision Transformer matches or exceeds the performance of state-of-the-art model-free offline RL baselines on Atari, OpenAI Gym, and Key-to-Door tasks.
14
+
15
+ ![](images/1a24cd0765714aa601fab185d61614e5c237741df36ea350b02c6e428b196d29.jpg)
16
+ Figure 1: Decision Transformer architecture1. States, actions, and returns are fed into modalityspecific linear embeddings and a positional episodic timestep encoding is added. Tokens are fed into a GPT architecture which predicts actions autoregressively using a causal self-attention mask.
17
+
18
+ ![](images/0797a951d243f2314131b11d4b2498080d4ff7e99afe42059cf1db90aad8dccc.jpg)
19
+ Figure 2: Illustrative example of finding shortest path for a fixed graph (left) posed as reinforcement learning. Training dataset consists of random walk trajectories and their per-node returns-to-go (middle). Conditioned on a starting state and generating largest possible return at each node, Decision Transformer sequences optimal paths.
20
+
21
+ # 1 Introduction
22
+
23
+ Recent work has shown transformers [1] can model large-scale distributions of semantic concepts, including capable zero-shot generalization in language [2] and impressive out-of-distribution image generation [3]. This stands in sharp contrast to much work in reinforcement learning (RL), which learns a single policy to model a particular narrow behavior distribution. Given the diversity of applications and impact of transformer models, we seek to examine their application to sequential decision making problems. In particular, instead of using transformers as an architectural choice for traditional RL algorithms [4, 5], we seek to study if trajectory modeling (analogous to language modeling) can serve as a replacement for conventional RL algorithms.
24
+
25
+ We consider the following shift in paradigm: instead of training a policy through conventional RL algorithms like temporal difference (TD) learning [6], the dominant paradigm in RL, we will train transformer models on collected experience using a sequence modeling objective. This will allow us to bypass the need for bootstrapping to propagate returns – thereby avoiding one of the β€œdeadly triad” [6] known to destabilize RL. It also avoids the need for discounting future rewards, as typically done in TD-learning, which can induce undesirable short-sighted behaviors. Additionally, we can make use of existing transformer frameworks widely used in language and vision that are easy to scale, utilizing a large body of work studying stable training of transformer models; this approach removes the need for specialized RL frameworks by appealing only to commonplace supervised learning systems. Given their demonstrated ability to model long sequences and wide data distributions, transformers also have other advantages. Transformers can perform credit assignment directly via self-attention, in contrast to Bellman backups which slowly propagate rewards and are prone to β€œdistractor” signals [7]. This can enable transformers to still work effectively in the presence of sparse or distracting rewards. Furthermore, a transformer modeling approach can model a wide distribution of behaviors, enabling better generalization and transfer. While β€œupside-down” reinforcement learning (UDRL) [8, 9, 10] also uses a supervised loss conditioned on a target return, our work is motivated by sequence modeling rather than supervised learning and seeks to benefit from modeling long sequences of behaviors. See Section 6 for more discussions about related works.
26
+
27
+ We explore our hypothesis by considering offline RL, where we will task agents with learning policies from suboptimal data – producing maximally effective behavior from fixed, limited experience. This task is traditionally challenging due to error propagation and value overestimation [11]. However, it is a natural task when training with a sequence modeling objective. By training an autoregressive model on sequences of states, actions, and returns, we reduce policy sampling to autoregressive generative modeling. We can specify the expertise of the policy – which β€œskill” to query – by manually setting the return tokens, acting as a prompt for generation.
28
+
29
+ Illustrative example. To get an intuition for our proposal, consider the task of finding a shortest path on a directed graph posed as an RL problem. The reward is 0 when at the goal node and $- 1$ otherwise. We train a GPT [12] model to predict next token in a sequence of returns-to-go (sum of future rewards), states, and actions. Training only on random walk data – with no expert demonstrations – we can at test time generate optimal trajectories by adding a prior to generate highest possible returns (see more details and empirical results in the Appendix) and subsequently generate actions conditioned on that. Thus, by combining the tools of sequence modeling with hindsight return information, we achieve policy improvement without the need for dynamic programming.
30
+
31
+ Motivated by this observation, we propose Decision Transformer, where we use the GPT architecture to autoregressively model trajectories (shown in Figure 1). We study whether sequence modeling can perform policy optimization by evaluating Decision Transformer on offline RL benchmarks in Atari [13], OpenAI Gym [14], and Key-to-Door [15] environments. We show that – without using dynamic programming – Decision Transformer performs comparably on these benchmarks to state-of-the-art model-free offline RL algorithms [16, 17]. Furthermore, in tasks where long-term credit assignment is required, Decision Transformer capably outperforms RL algorithms. With this work, we hope to bridge vast recent progress in transformer models with RL problems.
32
+
33
+ # 2 Preliminaries
34
+
35
+ # 2.1 Offline reinforcement learning
36
+
37
+ We consider learning in a Markov decision process (MDP) described by the tuple $( \boldsymbol { S } , \mathcal { A } , \boldsymbol { P } , \mathcal { R } )$ . The MDP tuple consists of states $s \in S$ , actions $a \in { \mathcal { A } }$ , transition dynamics $P ( s ^ { \prime } | s , a )$ , and a reward function $r = \mathcal { R } ( s , a )$ . We use $s _ { t }$ , $a _ { t }$ , and $r _ { t } = \mathcal { R } ( s _ { t } , a _ { t } )$ to denote the state, action, and reward at timestep $t$ , respectively. The goal in reinforcement learning is to learn a policy which maximizes the expected return $\mathbb { E } \left[ \sum _ { t = 1 } ^ { T } r _ { t } \right]$ in an MDP. In offline reinforcement learning, instead of obtaining data via environment interactions, we only have access to some fixed limited dataset consisting of trajectories from the environment. This setting is harder as it removes the ability for agents to explore the environment and collect additional feedback.
38
+
39
+ # 2.2 Transformers
40
+
41
+ Transformers were proposed by Vaswani et al. [1] as an architecture to efficiently model sequences. They consist of stacked self-attention layers with residual connections. Each self-attention layer receives $n$ embeddings $\{ x _ { i } \} _ { i = 1 } ^ { n }$ corresponding to unique input tokens, and outputs $n$ embeddings $\{ z _ { i } \} _ { i = 1 } ^ { n }$ , preserving the input dimensions. The $i$ -th token is mapped via linear transformations to a key $k _ { i }$ , query $q _ { i }$ , and value $v _ { i }$ . The $i$ -th output of the self-attention layer is given by weighting the values $v _ { j }$ by the normalized dot product between the query $q _ { i }$ and other keys $k _ { j }$ :
42
+
43
+ $$
44
+ z _ { i } = \sum _ { j = 1 } ^ { n } \operatorname { s o f t m a x } ( \{ \langle q _ { i } , k _ { j ^ { \prime } } \rangle \} _ { j ^ { \prime } = 1 } ^ { n } ) _ { j } \cdot v _ { j } .
45
+ $$
46
+
47
+ This allows the layer to assign β€œcredit” by implicitly forming state-return associations via similarity of the query and key vectors (maximizing the dot product). In this work, we use the GPT architecture [12], which modifies the transformer architecture with a causal self-attention mask to enable autoregressive generation, replacing the summation/softmax over the $n$ tokens with only the previous tokens in the sequence $( j \in \bar { [ 1 , i ] } )$ . We defer the other architecture details to the original papers.
48
+
49
+ # 3 Method
50
+
51
+ In this section, we present Decision Transformer, which models trajectories autoregressively with minimal modification to the transformer architecture, as summarized in Figure 1 and Algorithm 1.
52
+
53
+ Trajectory representation. The key desiderata in our choice of trajectory representation are (a) it should enable transformers to learn meaningful patterns and (b) we should be able to conditionally generate actions at test time. It is nontrivial to model rewards since we would like the model to generate actions based on future desired returns, rather than past rewards. As a result, instead of modeling the rewards directly, we model the returns-to-go $\begin{array} { r } { \overline { { \boldsymbol { R } } } _ { t } = \sum _ { t ^ { \prime } = t } ^ { T } \boldsymbol { r } _ { t ^ { \prime } } } \end{array}$ . This leads to the following trajectory representation which is amenable to autoregressive training and generation:
54
+
55
+ $$
56
+ \tau = \left( \widehat { R } _ { 1 } , s _ { 1 } , a _ { 1 } , \widehat { R } _ { 2 } , s _ { 2 } , a _ { 2 } , \ldots , \widehat { R } _ { T } , s _ { T } , a _ { T } \right) .
57
+ $$
58
+
59
+ Architecture. We feed the last $K$ timesteps into Decision Transformer, for a total of $3 K$ tokens (one for each modality: return-to-go, state, or action). To obtain token embeddings, we learn a linear layer for each modality, which projects raw inputs to the embedding dimension, followed by layer normalization [18]. For environments with visual inputs, the state is fed into a convolutional encoder instead of a linear layer. Additionally, an embedding for each timestep is learned and added to each token – note this is different than the standard positional embedding used by transformers, as one timestep corresponds to three tokens. The tokens are then processed by a GPT [12] model, which predicts future action tokens via autoregressive modeling.
60
+
61
+ Training. We sample minibatches of sequence length $K$ from the dataset. The prediction head corresponding to the input token $s _ { t }$ is trained to predict $a _ { t }$ – either with cross-entropy loss for discrete actions or mean-squared error for continuous actions – and the losses for each timestep are averaged. We did not find predicting the states or returns-to-go to be necessary for good performance, although it is possible (as shown in Section 5.3) and would be an interesting study for future work.
62
+
63
+ Evaluation. During evaluation rollouts, we specify a target return based on our desired performance (e.g., specify maximum possible return to generate expert behavior) as well as the environment starting state, to initialize generation. After executing the generated action, we decrement the target return by the achieved reward and obtain the next state. We repeat this process of generating actions and applying them to obtain the next return-to-go and state until episode termination.
64
+
65
+ # Algorithm 1 Decision Transformer Pseudocode (for continuous actions)
66
+
67
+ # R, s, a, t: returns -to -go , states , actions , or timesteps
68
+ # K: context length ( length of each input to DecisionTransformer )
69
+ # transformer : transformer with causal masking (GPT)
70
+ # embed_s , embed_a , embed_R : linear embedding layers
71
+ # embed_t : learned episode positional embedding
72
+ # pred_a : linear action prediction layer
73
+
74
+ # # main model
75
+
76
+ def DecisionTransformer (R , s , a , t ):
77
+
78
+ # compute embeddings for tokens
79
+ pos_embedding $=$ embed_t ( t ) # per - timestep ( note : not per - token )
80
+ s_embedding $=$ embed_s ( s ) $^ +$ pos_embedding
81
+ a_embedding $=$ embed_a ( a ) $^ +$ pos_embedding
82
+ R_embedding $=$ embed_R ( R ) $^ +$ pos_embedding
83
+
84
+ # interleave tokens as (R_1 , s_1 , a_1 R_K , s_K ) input_embeds $=$ stack ( R_embedding , s_embedding , a_embedding )
85
+
86
+ # use transformer to get hidden states hidden_states $=$ transformer ( input_embeds $=$ input_embeds )
87
+
88
+ # select hidden states for action prediction tokens a_hidden $=$ unstack ( hidden_states ). actions
89
+
90
+ # predict action return pred_a ( a_hidden )
91
+
92
+ # training loop
93
+
94
+ for (R , s , a , t ) in dataloader : # dims : ( batch_size , K, dim ) a_preds $=$ DecisionTransformer (R , s , a , t ) loss $=$ mean (( a_preds - a ) $* * 2$ ) # L2 loss for continuous actions optimizer . zero_grad (); loss . backward (); optimizer . step ()
95
+
96
+ # evaluation loop
97
+
98
+ target_return $\mathbf { \lambda } = \mathbf { \bar { \lambda } } 1$ # for instance , expert - level return R , s , a , t , done $=$ [ target_return ] , [ env . reset ()] , [] , [1] , False while not done : # autoregressive generation / sampling
99
+
100
+ action $=$ DecisionTransformer (R , s , a , t )[ -1] # for cts actions new_s , r , done , _ $=$ env . step ( action )
101
+
102
+ # append new tokens to sequence R = R + [ R [ -1] - r] # decrement returns -to -go with reward s , a , t = s + [ new_s ] , a $^ +$ [ action ] , t + [ len ( R )] R , s , a , t $=$ R [ - K :] , ... # only keep context length of K
103
+
104
+ ![](images/6be7ce5512d46b7431e828fe71c83f457f669167743b6fc373ae4c4399521a50.jpg)
105
+ Figure 3: Results comparing Decision Transformer (ours) to TD learning (CQL) and behavior cloning across Atari, OpenAI Gym, and Minigrid. On a diverse set of tasks, Decision Transformer performs comparably or better than traditional approaches.
106
+
107
+ # 4 Evaluations on offline RL benchmarks
108
+
109
+ In this section, we investigate if Decision Transformer can perform well compared to standard TD and imitation learning approaches for offline RL. TD learning algorithms represent the conventional stateof-the-art, while imitation learning algorithms have similar formulations to Decision Transformer. The exact algorithms depend on the environment but our motivations are as follows:
110
+
111
+ β€’ TD learning: most of these methods use an action-space constraint or value pessimism, and will be the most faithful comparison to Decision Transformer, representing standard RL methods. A state-of-the-art model-free method is Conservative Q-Learning (CQL) [17] which serves as our primary comparison. In addition, we also compare against other prior model-free RL algorithms like BEAR [19] and BRAC [20]. β€’ Imitation learning: this regime similarly uses supervised losses for training, rather than Bellman backups. We use behavior cloning here, and include a more detailed discussion in Section 5.1.
112
+
113
+ We evaluate on both discrete (Atari [13]) and continuous (OpenAI Gym [14]) control tasks. The former requires long-term credit assignment, while the latter requires fine-grained continuous control, representing a diverse set of tasks. Our main results are summarized in Figure 3, where we show averaged expert normalized performance for each domain.
114
+
115
+ # 4.1 Atari
116
+
117
+ The Atari benchmark is challenging due to its high-dimensional visual inputs and difficulty of credit assignment arising from the delay between actions and resulting rewards. We evaluate our method on $1 \%$ of all samples in the DQN-replay dataset as per Agarwal et al. [16], representing 500 thousand of the 50 million transitions observed by an online DQN agent [21] during training; we report the mean and standard deviation of 3 seeds. We normalize scores based on a professional gamer, following the protocol of Hafner et al. [22], where 100 represents the professional gamer score and 0 represents a random policy.
118
+
119
+ We compare to CQL [17], REM [16], and QR-DQN [23] on four Atari tasks (Breakout, Qbert, Pong, and Seaquest) that are evaluated in Agarwal et al. [16]. We use context lengths of $K = 3 0$ for Decision Transformer (except $K = 5 0$ for Pong); for results with different values of $K$ see the supplementary material. We also report the performance of behavior cloning (BC), which utilizes
120
+
121
+ <table><tr><td>Game</td><td>DT (Ours)</td><td>CQL</td><td>QR-DQN</td><td>REM</td><td>BC</td></tr><tr><td>Breakout</td><td>267.5 Β± 97.5</td><td>211.1</td><td>21.1</td><td>32.1</td><td>138.9 Β± 61.7</td></tr><tr><td>Qbert</td><td>15.1 Β± 11.4</td><td>104.2</td><td>1.7</td><td>1.4</td><td>17.3 Β± 14.7</td></tr><tr><td>Pong</td><td>106.1 Β±8.1</td><td>111.9</td><td>20.0</td><td>39.1</td><td>85.2 Β± 20.0</td></tr><tr><td>Seaquest</td><td>2.4Β± 0.7</td><td>1.7</td><td>1.4</td><td>1.0</td><td>2.1Β± 0.3</td></tr></table>
122
+
123
+ Table 1: Gamer-normalized scores for the $1 \%$ DQN-replay Atari dataset. We report the mean and variance across 3 seeds. Best mean scores are highlighted in bold. Decision Transformer (DT) performs comparably to CQL on 3 out of 4 games, and outperforms other baselines in most games.
124
+
125
+ the same network architecture and hyperparameters as Decision Transformer but does not have return-to-go conditioning2. For CQL, REM, and QR-DQN baselines, we report numbers directly from the CQL paper. We show results in Table 1. Our method is competitive with CQL in 3 out of 4 games and outperforms or matches REM, QR-DQN, and BC on all 4 games.
126
+
127
+ # 4.2 OpenAI Gym
128
+
129
+ In this section, we consider the continuous control tasks from the D4RL benchmark [24]. We also consider a 2D reacher environment that is not part of the benchmark, and generate the datasets using a similar methodology to the D4RL benchmark. Reacher is a goal-conditioned task and has sparse rewards, so it represents a different setting than the standard locomotion environments (HalfCheetah, Hopper, and Walker). The different dataset settings are described below.
130
+
131
+ 1. Medium: 1 million timesteps generated by a β€œmedium” policy that achieves approximately one-third the score of an expert policy.
132
+ 2. Medium-Replay: the replay buffer of an agent trained to the performance of a medium policy (approximately $2 5 \mathrm { k } { - } 4 0 0 \mathrm { k }$ timesteps in our environments).
133
+ 3. Medium-Expert: 1 million timesteps generated by the medium policy concatenated with 1 million timesteps generated by an expert policy.
134
+
135
+ We compare to CQL [17], BEAR [19], BRAC [20], and AWR [25]. CQL represents the state-ofthe-art in model-free offline RL, an instantiation of TD learning with value pessimism. Score are normalized so that 100 represents an expert policy, as per Fu et al. [24]. CQL numbers are reported from the original paper; BC numbers are run by us; and the other methods are reported from the D4RL paper. Our results are shown in Table 2. Decision Transformer achieves the highest scores in a majority of the tasks and is competitive with the state of the art in the remaining tasks.
136
+
137
+ <table><tr><td>Dataset</td><td>Environment</td><td>DT (Ours)</td><td>CQL</td><td>BEAR</td><td>BRAC-v</td><td>AWR</td><td>BC</td></tr><tr><td>Medium-Expert</td><td>HalfCheetah</td><td>86.8 Β± 1.3</td><td>62.4</td><td>53.4</td><td>41.9</td><td>52.7</td><td>59.9</td></tr><tr><td>Medium-Expert</td><td>Hopper</td><td>107.6 Β± 1.8</td><td>111.0</td><td>96.3</td><td>0.8</td><td>27.1</td><td>79.6</td></tr><tr><td>Medium-Expert</td><td>Walker</td><td>108.1 Β±0.2</td><td>98.7</td><td>40.1</td><td>81.6</td><td>53.8</td><td>36.6</td></tr><tr><td>Medium-Expert</td><td>Reacher</td><td>89.1 Β±1.3</td><td>30.6</td><td>-</td><td>-</td><td>1</td><td>73.3</td></tr><tr><td>Medium</td><td>HalfCheetah</td><td>42.6 Β± 0.1</td><td>44.4</td><td>41.7</td><td>46.3</td><td>37.4</td><td>43.1</td></tr><tr><td>Medium</td><td>Hopper</td><td>67.6 Β± 1.0</td><td>58.0</td><td>52.1</td><td>31.1</td><td>35.9</td><td>63.9</td></tr><tr><td>Medium</td><td>Walker</td><td>74.0 Β± 1.4</td><td>79.2</td><td>59.1</td><td>81.1</td><td>17.4</td><td>77.3</td></tr><tr><td>Medium</td><td>Reacher</td><td>51.2 Β± 3.4</td><td>26.0</td><td>1</td><td>1</td><td>1</td><td>48.9</td></tr><tr><td>Medium-Replay</td><td>HalfCheetah</td><td>36.6 Β± 0.8</td><td>46.2</td><td>38.6</td><td>47.7</td><td>40.3</td><td>4.3</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>82.7 Β± 7.0</td><td>48.6</td><td>33.7</td><td>0.6</td><td>28.4</td><td>27.6</td></tr><tr><td>Medium-Replay</td><td>Walker</td><td>66.6 Β± 3.0</td><td>26.7</td><td>19.2</td><td>0.9</td><td>15.5</td><td>36.9</td></tr><tr><td>Medium-Replay</td><td>Reacher</td><td>18.0 Β± 2.4</td><td>19.0</td><td>1</td><td>1</td><td>1</td><td>5.4</td></tr><tr><td colspan="2">Average (Without Reacher)</td><td>74.7</td><td>63.9</td><td>48.2</td><td>36.9</td><td>34.3</td><td>46.4</td></tr><tr><td colspan="2">Average (All Settings)</td><td>69.2</td><td>54.2</td><td>1</td><td>-</td><td>1</td><td>47.7</td></tr></table>
138
+
139
+ Table 2: Results for D4RL datasets4. We report the mean and variance for three seeds. Decision Transformer (DT) outperforms conventional RL algorithms on almost all tasks.
140
+
141
+ # 5 Discussion
142
+
143
+ # 5.1 Does Decision Transformer perform behavior cloning on a subset of the data?
144
+
145
+ In this section, we seek to gain insight into whether Decision Transformer can be thought of as performing imitation learning on a subset of the data with a certain return. To investigate this, we propose a new method, Percentile Behavior Cloning $( \% \mathrm { B C } )$ , where we run behavior cloning on only the top $X \%$ of timesteps in the dataset, ordered by episode returns. The percentile $X \%$ interpolates between standard BC $X = 1 0 0 \%$ ) that trains on the entire dataset and only cloning the best observed trajectory $( X 0 \%$ ), trading off between better generalization by training on more data with training a specialized model that focuses on a desirable subset of the data.
146
+
147
+ <table><tr><td>Dataset</td><td>Environment</td><td>DT (Ours)</td><td>10%BC</td><td>25%BC</td><td>40%BC</td><td>100%BC</td><td>CQL</td></tr><tr><td>Medium</td><td>HalfCheetah</td><td>42.6 Β± 0.1</td><td>42.9</td><td>43.0</td><td>43.1</td><td>43.1</td><td>44.4</td></tr><tr><td>Medium</td><td>Hopper</td><td>67.6 Β± 1.0</td><td>65.9</td><td>65.2</td><td>65.3</td><td>63.9</td><td>58.0</td></tr><tr><td>Medium</td><td>Walker</td><td>74.0 Β± 1.4</td><td>78.8</td><td>80.9</td><td>78.8</td><td>77.3</td><td>79.2</td></tr><tr><td>Medium</td><td>Reacher</td><td>51.2 Β± 3.4</td><td>51.0</td><td>48.9</td><td>58.2</td><td>58.4</td><td>26.0</td></tr><tr><td>Medium-Replay</td><td>HalfCheetah</td><td>36.6 Β± 0.8</td><td>40.8</td><td>40.9</td><td>41.1</td><td>4.3</td><td>46.2</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>82.7 Β± 7.0</td><td>70.6</td><td>58.6</td><td>31.0</td><td>27.6</td><td>48.6</td></tr><tr><td>Medium-Replay</td><td>Walker</td><td>66.6 Β± 3.0</td><td>70.4</td><td>67.8</td><td>67.2</td><td>36.9</td><td>26.7</td></tr><tr><td>Medium-Replay</td><td>Reacher</td><td>18.0 Β± 2.4</td><td>33.1</td><td>16.2</td><td>10.7</td><td>5.4</td><td>19.0</td></tr><tr><td colspan="2">Average</td><td>56.1</td><td>56.7</td><td>52.7</td><td>49.4</td><td>39.5</td><td>43.5</td></tr></table>
148
+
149
+ Table 3: Comparison between Decision Transformer (DT) and Percentile Behavior Cloning $( \% \mathrm { B C } )$
150
+
151
+ We show full results comparing $\% \mathrm { B C }$ to Decision Transformer and CQL in Table 3, sweeping over $X \in [ 1 0 \% , 2 5 \% , 4 0 \% , 1 \dot { 0 } \dot { 0 } \% ]$ . Note that while both $\% \mathrm { B C }$ and DT introduce hyperparameters, returns are human interpretable and it is relatively natural for humans to specify a desired return compared to choosing an optimal subset for cloning. When data is plentiful – as in the D4RL regime – we find $\% \mathrm { B C }$ can match or beat other offline RL methods. On most environments, Decision Transformer is competitive with the performance of the best $\% \mathrm { B C }$ , indicating it can hone in on a particular subset after training on the entire dataset distribution.
152
+
153
+ In contrast, when we study low data regimes – such as Atari, where we use $1 \%$ of a replay buffer as the dataset – $\mathbf { \nabla } \cdot \% \mathbf { B } \mathbf { C }$ is weak (shown in Table 4). This suggests that in scenarios with relatively low amounts of data, Decision Transformer can outperform $\% \mathrm { B C }$ by using all trajectories in the dataset to improve generalization, even if those trajectories are dissimilar from the return conditioning target. Our results indicate that Decision Transformer can be more effective than simply performing imitation learning on a subset of the dataset. On the tasks we considered, Decision Transformer either outperforms or is competitive to $\% \mathrm { B C }$ , without the confound of having to select the optimal subset.
154
+
155
+ <table><tr><td>Game</td><td>DT (Ours)</td><td>10%BC</td><td>25%BC</td><td>40%BC</td><td>100%BC</td></tr><tr><td>Breakout</td><td>267.5 Β± 97.5</td><td>28.5Β±8.2</td><td>73.5 Β± 6.4</td><td>108.2 Β± 67.5</td><td>138.9 Β± 61.7</td></tr><tr><td>Qbert</td><td>15.1 Β± 11.4</td><td>6.6 Β± 1.7</td><td>16.0 Β± 13.8</td><td>11.8Β± 5.8</td><td>17.3 Β± 14.7</td></tr><tr><td>Pong</td><td>106.1 Β±8.1</td><td>2.5Β± 0.2</td><td>13.3 Β± 2.7</td><td>72.7 Β± 13.3</td><td>85.2 Β± 20.0</td></tr><tr><td>Seaquest</td><td>2.4 Β± 0.7</td><td>1.1 Β± 0.2</td><td>1.1 Β± 0.2</td><td>1.6 Β± 0.4</td><td>2.1 Β± 0.3</td></tr></table>
156
+
157
+ Table 4: $\% \mathrm { B C }$ scores for Atari. We report the mean and variance across 3 seeds. Decision Transformer (DT) outperforms all versions of $\% \mathrm { B C }$ in most games.
158
+
159
+ # 5.2 How well does Decision Transformer model the distribution of returns?
160
+
161
+ We evaluate the ability of Decision Transformer to understand return-to-go tokens by varying the desired target return over a wide range – evaluating the multi-task distribution modeling capability of transformers. Figure 4 shows the average sampled return accumulated by the agent over the course of the evaluation episode for varying values of target return. On every task, the desired target returns and the true observed returns are highly correlated. On some tasks like Pong, HalfCheetah and Walker, Decision Transformer generates trajectories that almost perfectly match the desired returns (as indicated by the overlap with the oracle line). Furthermore, on some Atari tasks like Seaquest, we can prompt the Decision Transformer with higher returns than the maximum episode return available in the dataset, demonstrating that Decision Transformer is sometimes capable of extrapolation.
162
+
163
+ # 5.3 Does Decision Transformer perform effective long-term credit assignment?
164
+
165
+ To evaluate long-term credit assignment capabilities of our model, we consider a variant of the Key-to-Door environment proposed in Mesnard et al. [15]. This is a grid-based environment with a sequence of three phases: (1) in the first phase, the agent is placed in a room with a key; (2) then, the agent is placed in an empty room; (3) and finally, the agent is placed in a room with a door. The agent receives a binary reward when reaching the door in the third phase, but only if it picked up the key in the first phase. This problem is difficult for credit assignment because credit must be propagated from the beginning to the end of the episode, skipping over actions taken in the middle.
166
+
167
+ ![](images/c1156eaeb2971806e2c5eb8d09680aa47f4f5cf207c581cf8c22a3d777eebeb5.jpg)
168
+ Figure 4: Sampled (evaluation) returns accumulated by Decision Transformer when conditioned on the specified target (desired) returns. Top: Atari. Bottom: D4RL medium-replay datasets.
169
+
170
+ We train on datasets of trajectories generated by applying random actions and report success rates in Table 5. Furthermore, for the Key-to-Door environment we use the entire episode length as the context, rather than having a fixed content window as in the other environments. Methods that use highsight return information: our Decision Transformer model and $\% \mathrm { B C }$ (trained only on successful episodes) are able to learn effective policies – producing near-optimal paths, despite only training on random walks. TD learning (CQL) cannot effectively propagate $\mathrm { Q }$ -values over the long horizons involved and gets poor performance.
171
+
172
+ Table 5: Success rate for Key-to-Door environment. Methods using hindsight (Decision Transformer, $\% \mathbf { B } \mathbf { C } _ { \epsilon }$ ) can learn successful policies, while TD learning struggles to perform credit assignment.
173
+
174
+ <table><tr><td>Dataset</td><td>DT (Ours)</td><td>CQL</td><td>BC</td><td>%BC</td><td>Random</td></tr><tr><td>1K Random Trajectories</td><td>71.8%</td><td>13.1%</td><td>1.4%</td><td>69.9%</td><td>3.1%</td></tr><tr><td>10K Random Trajectories</td><td>94.6%</td><td>13.3%</td><td>1.6%</td><td>95.1%</td><td>3.1%</td></tr></table>
175
+
176
+ # 5.4 Can transformers be accurate critics in sparse reward settings?
177
+
178
+ In previous sections, we established that decision transformer can produce effective policies (actors). We now evaluate whether transformer models can also be effective critics. We modify Decision Transformer to output return tokens in addition to action tokens on the Key-to-Door environment. We find that the transformer continuously updates reward probability based on events during the episode, shown in Figure 5 (Left). Furthermore, we find the transformer attends to critical events in the episode (picking up the key or reaching the door), shown in Figure 5 (Right), indicating formation of state-reward associations as discussed in Raposo et al. [26] and enabling accurate value prediction.
179
+
180
+ # 5.5 Does Decision Transformer perform well in sparse reward settings?
181
+
182
+ A known weakness of TD learning algorithms is that they require densely populated rewards in order to perform well, which can be unrealistic and/or expensive. In contrast, Decision Transformer can improve robustness in these settings since it makes minimal assumptions on the density of the reward. To evaluate this, we consider a delayed return version of the D4RL benchmarks where the agent does not receive any rewards along the trajectory, and instead receives the cumulative reward of the trajectory in the final timestep. Our results for delayed returns are shown in Table 6. Delayed returns minimally affect Decision Transformer; and due to the nature of the training process, while imitation learning methods are reward agnostic. While TD learning collapses, Decision Transformer and $\% \mathrm { B C }$ still perform well, indicating that Decision Transformer can be more robust to delayed rewards.
183
+
184
+ ![](images/2cf047d6f6123e6feee315d97b0f7169c03581ba80dfd8637dd3453482f91ce9.jpg)
185
+ Figure 5: Left: Averages of running return probabilities predicted by the transformer model for three types of episode outcomes. Right: Transformer attention weights from all timesteps superimposed for a particular successful episode. The model attends to steps near pivotal events in the episode, such as picking up the key and reaching the door.
186
+
187
+ <table><tr><td></td><td>Environment</td><td colspan="2">Delayed (Sparse)</td><td colspan="2">Agnostic</td><td colspan="2">Original (Dense)</td></tr><tr><td>Dataset</td><td></td><td>DT (Ours)</td><td>CQL</td><td>BC</td><td>%BC</td><td>DT (Ours)</td><td>CQL</td></tr><tr><td>Medium-Expert</td><td>Hopper</td><td>107.3 Β± 3.5</td><td>9.0</td><td>59.9</td><td>102.6</td><td>107.6</td><td>111.0</td></tr><tr><td>Medium</td><td>Hopper</td><td>60.7Β± 4.5</td><td>5.2</td><td>63.9</td><td>65.9</td><td>67.6</td><td>58.0</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>78.5 Β± 3.7</td><td>2.0</td><td>27.6</td><td>70.6</td><td>82.7</td><td>48.6</td></tr></table>
188
+
189
+ Table 6: Results for D4RL datasets with delayed (sparse) reward. Decision Transformer (DT) and imitation learning are minimally affected by the removal of dense rewards, while CQL fails.
190
+
191
+ # 5.6 Additional Discussions
192
+
193
+ For more discussions see the supplementary material.
194
+
195
+ # 6 Related work
196
+
197
+ Offline reinforcement learning. To mitigate the impact of distribution shift in offline RL, prior algorithms either (a) constrain the policy action space [27, 28, 29] or (b) incorporate value pessimism [27, 17], or (c) incorporate pessimism into learned dynamics models [30, 31]. Since we do not use Decision Transformers to explicitly learn the dynamics model, we primarily compare against model-free algorithms; adding a dynamics model tends to improve the performance of model-free algorithms. Another line of work explores learning wide behavior distribution from an offline dataset by learning a task-agnostic set of skills, either with likelihood-based approaches [32, 33, 34, 35] or by maximizing mutual information [36, 37, 38]. Our work is similar to the likelihood-based approaches, which do not use iterative Bellman updates – although we use a simpler sequence modeling objective instead of a variational method, and use rewards for conditional generation of behaviors.
198
+
199
+ Supervised learning in reinforcement learning settings. Some prior methods for reinforcement learning bear more resemblance to static supervised learning, such as Q-learning [39, 40], which still uses iterative backups, or likelihood-based methods such as behavior cloning, which do not (discussed in previous section). Recent work [8, 9, 10] studies β€œupside-down” reinforcement learning (UDRL), which are similar to our method in seeking to model behaviors with a supervised loss conditioned on the target return. A key difference in our work is the shift of motivation to sequence modeling rather than supervised learning: while the practical methods differ primarily in the context length and architecture, sequence modeling enables behavior modeling even without access to the reward, in a similar style to language [12] or images [41], and is known to scale well [2]. The method proposed by Kumar et al. [9] is most similar to our method with $K = 1$ , which we find sequence modeling/long contexts to outperform (see supplementary material). Ghosh et al. [42] extends prior UDRL methods to use state goal conditioning, rather than rewards, and Paster et al. [43] further use an LSTM with state goal conditioning for goal-conditoned online RL settings. Concurrent to our work, Janner et al. [44] propose Trajectory Transformer, which is similar to Decision Transformer but additionally uses state and return prediction, as well as discretization, which incorporates model-based components.
200
+
201
+ We believe that their experiments, in addition to our results, highlight the potential for sequence modeling to be a generally applicable idea for reinforcement learning.
202
+
203
+ Credit assignment. Many works have studied better credit assignment via state-association, learning an architecture which decomposes the reward function such that certain β€œimportant” states comprise most of the credit [45, 46, 15]. They use the learned reward function to change the reward of an actorcritic algorithm to help propagate signal over long horizons. In particular, similar to our long-term setting, some works have specifically shown such state-associative architectures can perform better in delayed reward settings [47, 7, 48, 26]. In contrast, we allow these properties to naturally emerge in a transformer architecture, without having to explicitly learn a reward function or a critic.
204
+
205
+ Conditional language generation. Various works have studied guided generation for images [49] and language [50, 51]. Several works [52, 53, 54, 55, 56, 57] have explored training or fine-tuning of models for controllable text generation. Class-conditional language models can also be used to learn disciminators to guide generation [58, 50, 59, 60]. However, these approaches mostly assume constant β€œclasses”, while in reinforcement learning the reward signal is time-varying. Furthermore, it is more natural to prompt the model desired target return and continuously decrease it by the observed rewards over time, since the transformer model and environment jointly generate the trajectory.
206
+
207
+ Attention and transformer models. Transformers [1] have been applied successfully to many tasks in natural language processing [61, 12] and computer vision [62, 63]. However, transformers are relatively unstudied in RL, mostly due to differing nature of the problem, such as higher variance in training. Zambaldi et al. [5] showed that augmenting transformers with relational reasoning improve performance in combinatorial environments and Ritter et al. [64] showed iterative selfattention allowed for RL agents to better utilize episodic memories. Parisotto et al. [4] discussed design decisions for more stable training of transformers in the high-variance RL setting. Unlike our work, these still use actor-critic algorithms for optimization, focusing on novelty in architecture. Additionally, in imitation learning, some works have studied transformers as a replacement for LSTMs: Dasari and Gupta [65] study one-shot imitation learning, and Abramson et al. [66] combine language and image modalities for text-conditioned behavior generation.
208
+
209
+ # 7 Conclusion
210
+
211
+ We proposed Decision Transformer, seeking to unify ideas in language modeling and RL. On standard offline RL benchmarks, we showed DT can match or outperform strong algorithms designed explicitly for offline RL with minimal modifications from standard language modeling architectures.
212
+
213
+ Societal impact. For real-world applications, it is important to understand the types of errors transformers make in MDP settings and possible negative consequences. It will also be important to consider the datasets we train on, which can potentially add destructive biases, particularly as we consider studying augmenting RL agents with more data which may come from questionable sources.
214
+
215
+ Limitations. We introduced our paradigm shift and showed its potential in our experiments, but there is significant room for more research in this direction. The current architecture requires considerations of context length and return-to-go hyperparameters, and we show results on standard RL benchmarks; future work could improve the architecture and demonstrate results in more complex environments and tasks. We used a simple supervised loss that was effective in our experiments, but applications to large-scale datasets could benefit from self-supervised pretraining tasks. In addition, one could consider more sophisticated embeddings for returns, states, and actions. While we do not directly evaluate scaling and generalization, we utilize a method known to scale generalize well in domains such as language and vision, and we are excited about larger RL systems built upon our framework.
216
+
217
+ # 8 Acknowledgements
218
+
219
+ This research was supported by Berkeley Deep Drive, Open Philanthropy, and the National Science Foundation under NSF:NRI #2024675. Part of this work was completed when Aravind Rajeswaran was a PhD student at the University of Washington, where he was supported by the J.P. Morgan PhD Fellowship in AI (2020-21). We also thank Luke Metz, Daniel Freeman, and anonymous reviewers for valuable feedback and discussions, as well as Justin Fu for assistance in setting up D4RL benchmarks, and Aviral Kumar for assistance with the CQL baselines and hyperparameters.
220
+
221
+ References
222
+ [1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017.
223
+ [2] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
224
+ [3] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.
225
+ [4] Emilio Parisotto, Francis Song, Jack Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury, et al. Stabilizing transformers for reinforcement learning. In International Conference on Machine Learning, 2020.
226
+ [5] Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, et al. Deep reinforcement learning with relational inductive biases. In International Conference on Learning Representations, 2018.
227
+ [6] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT Press, 2018.
228
+ [7] Chia-Chun Hung, Timothy Lillicrap, Josh Abramson, Yan Wu, Mehdi Mirza, Federico Carnevale, Arun Ahuja, and Greg Wayne. Optimizing agent behavior over long time scales by transporting value. Nature communications, 10(1):1–12, 2019.
229
+ [8] Rupesh Kumar Srivastava, Pranav Shyam, Filipe Mutz, Wojciech Jaskowski, and JΓΌrgen Β΄ Schmidhuber. Training agents using upside-down reinforcement learning. arXiv preprint arXiv:1912.02877, 2019.
230
+ [9] Aviral Kumar, Xue Bin Peng, and Sergey Levine. Reward-conditioned policies. arXiv preprint arXiv:1912.13465, 2019.
231
+ [10] Acting without rewards. 2019. URL https://ogma.ai/2019/08/ acting-without-rewards/.
232
+ [11] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
233
+ [12] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.
234
+ [13] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
235
+ [14] Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
236
+ [15] Thomas Mesnard, ThΓ©ophane Weber, Fabio Viola, Shantanu Thakoor, Alaa Saade, Anna Harutyunyan, Will Dabney, Tom Stepleton, Nicolas Heess, Arthur Guez, et al. Counterfactual credit assignment in model-free reinforcement learning. arXiv preprint arXiv:2011.09464, 2020.
237
+ [16] Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, 2020.
238
+ [17] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
239
+ [18] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
240
+ [19] Aviral Kumar, Justin Fu, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. arXiv preprint arXiv:1906.00949, 2019.
241
+ [20] Yifan Wu, George Tucker, and Ofir Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019.
242
+ [21] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015.
243
+ [22] Danijar Hafner, Timothy Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. arXiv preprint arXiv:2010.02193, 2020.
244
+ [23] Will Dabney, Mark Rowland, Marc Bellemare, and RΓ©mi Munos. Distributional reinforcement learning with quantile regression. In Conference on Artificial Intelligence, 2018.
245
+ [24] Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
246
+ [25] Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019.
247
+ [26] David Raposo, Sam Ritter, Adam Santoro, Greg Wayne, Theophane Weber, Matt Botvinick, Hado van Hasselt, and Francis Song. Synthetic returns for long-term credit assignment. arXiv preprint arXiv:2102.12425, 2021.
248
+ [27] Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, 2019.
249
+ [28] Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, 2019.
250
+ [29] Noah Y Siegel, Jost Tobias Springenberg, Felix Berkenkamp, Abbas Abdolmaleki, Michael Neunert, Thomas Lampe, Roland Hafner, and Martin Riedmiller. Keep doing what worked: Behavioral modelling priors for offline reinforcement learning. In International Conference on Learning Representations, 2020.
251
+ [30] Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Model-based offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
252
+ [31] Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. Mopo: Model-based offline policy optimization. In Advances in Neural Information Processing Systems, 2020.
253
+ [32] Anurag Ajay, Aviral Kumar, Pulkit Agrawal, Sergey Levine, and Ofir Nachum. Opal: Offline primitive discovery for accelerating offline reinforcement learning. arXiv preprint arXiv:2010.13611, 2020.
254
+ [33] VΓ­ctor Campos, Alexander Trott, Caiming Xiong, Richard Socher, Xavier Giro-i Nieto, and Jordi Torres. Explore, discover and learn: Unsupervised discovery of state-covering skills. In International Conference on Machine Learning, 2020.
255
+ [34] Karl Pertsch, Youngwoon Lee, and Joseph J Lim. Accelerating reinforcement learning with learned skill priors. arXiv preprint arXiv:2010.11944, 2020.
256
+ [35] Avi Singh, Huihan Liu, Gaoyue Zhou, Albert Yu, Nicholas Rhinehart, and Sergey Levine. Parrot: Data-driven behavioral priors for reinforcement learning. In International Conference on Learning Representations, 2021.
257
+ [36] Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. In International Conference on Learning Representations, 2019.
258
+ [37] Kevin Lu, Aditya Grover, Pieter Abbeel, and Igor Mordatch. Reset-free lifelong learning with skill-space planning. arXiv preprint arXiv:2012.03548, 2020.
259
+ [38] Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamicsaware unsupervised discovery of skills. In International Conference on Learning Representations, 2020.
260
+ [39] Christopher Watkins. Learning from delayed rewards. 01 1989.
261
+ [40] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
262
+ [41] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pages 1691–1703. PMLR, 2020.
263
+ [42] Dibya Ghosh, Abhishek Gupta, Justin Fu, Ashwin Reddy, Coline Devin, Benjamin Eysenbach, and Sergey Levine. Learning to reach goals without reinforcement learning. arXiv preprint arXiv:1912.06088, 2019.
264
+ [43] Keiran Paster, Sheila A McIlraith, and Jimmy Ba. Planning from pixels using inverse dynamics models. arXiv preprint arXiv:2012.02419, 2020.
265
+ [44] Michael Janner, Qiyang Li, and Sergey Levine. Reinforcement learning as one big sequence modeling problem. arXiv preprint arXiv:2106.02039, 2021.
266
+ [45] Johan Ferret, RaphaΓ«l Marinier, Matthieu Geist, and Olivier Pietquin. Self-attentional credit assignment for transfer in reinforcement learning. arXiv preprint arXiv:1907.08027, 2019.
267
+ [46] Anna Harutyunyan, Will Dabney, Thomas Mesnard, Mohammad Azar, Bilal Piot, Nicolas Heess, Hado van Hasselt, Greg Wayne, Satinder Singh, Doina Precup, et al. Hindsight credit assignment. arXiv preprint arXiv:1912.02503, 2019.
268
+ [47] Jose A Arjona-Medina, Michael Gillhofer, Michael Widrich, Thomas Unterthiner, Johannes Brandstetter, and Sepp Hochreiter. Rudder: Return decomposition for delayed rewards. arXiv preprint arXiv:1806.07857, 2018.
269
+ [48] Yang Liu, Yunan Luo, Yuanyi Zhong, Xi Chen, Qiang Liu, and Jian Peng. Sequence modeling of temporal credit assignment for episodic reinforcement learning. arXiv preprint arXiv:1905.13420, 2019.
270
+ [49] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Conference on Computer Vision and Pattern Recognition, 2019.
271
+ [50] Marjan Ghazvininejad, Xing Shi, Jay Priyadarshi, and Kevin Knight. Hafez: an interactive poetry generation system. In Proceedings of ACL, System Demonstrations, 2017.
272
+ [51] Lilian Weng. Controllable neural text generation. lilianweng.github.io/lillog, 2021. URL https://lilianweng.github.io/lil-log/2021/01/02/ controllable-neural-text-generation.html.
273
+ [52] Jessica Ficler and Yoav Goldberg. Controlling linguistic style aspects in neural language generation. arXiv preprint arXiv:1707.02633, 2017.
274
+ [53] Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In International Conference on Machine Learning, 2017.
275
+ [54] Nazneen Fatema Rajani, Bryan McCann, Caiming Xiong, and Richard Socher. Explain yourself! leveraging language models for commonsense reasoning. arXiv preprint arXiv:1906.02361, 2019.
276
+ [55] Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: Sequence generative adversarial nets with policy gradient. In AAAI conference on artificial intelligence, 2017.
277
+ [56] Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
278
+ [57] Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019.
279
+ [58] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. Plug and play language models: A simple approach to controlled text generation. arXiv preprint arXiv:1912.02164, 2019.
280
+ [59] Ari Holtzman, Jan Buys, Maxwell Forbes, Antoine Bosselut, David Golub, and Yejin Choi. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018.
281
+ [60] Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. Gedi: Generative discriminator guided sequence generation. arXiv preprint arXiv:2009.06367, 2020.
282
+ [61] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
283
+ [62] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, 2020.
284
+ [63] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
285
+ [64] Sam Ritter, Ryan Faulkner, Laurent Sartran, Adam Santoro, Matt Botvinick, and David Raposo. Rapid task-solving in novel environments. arXiv preprint arXiv:2006.03662, 2020.
286
+ [65] Sudeep Dasari and Abhinav Gupta. Transformers for one-shot visual imitation. arXiv preprint arXiv:2011.05970, 2020.
287
+ [66] Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, et al. Imitating interactive intelligence. arXiv preprint arXiv:2012.05672, 2020.
parse/train/a7APmM4B9d/a7APmM4B9d_content_list.json ADDED
@@ -0,0 +1,1209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Decision Transformer: Reinforcement Learning via Sequence Modeling ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 267,
8
+ 122,
9
+ 732,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Lili Chenβˆ—,1, Kevin $\\mathbf { L u } ^ { * , 1 }$ , Aravind Rajeswaran2, Kimin Lee1, Aditya Grover2,3, Michael Laskin1, Pieter Abbeel1, Aravind Srinivas†,4, Igor Mordatch†,5 ",
17
+ "bbox": [
18
+ 179,
19
+ 224,
20
+ 805,
21
+ 260
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "βˆ—equal contribution †equal advising ",
28
+ "bbox": [
29
+ 374,
30
+ 262,
31
+ 620,
32
+ 277
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "1UC Berkeley 2Facebook AI Research 3UCLA 4OpenAI 5Google Brain ",
39
+ "bbox": [
40
+ 238,
41
+ 281,
42
+ 754,
43
+ 297
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "{lilichen, kzl}@berkeley.edu ",
50
+ "bbox": [
51
+ 380,
52
+ 304,
53
+ 619,
54
+ 318
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 354,
65
+ 535,
66
+ 371
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "We introduce a framework that abstracts Reinforcement Learning (RL) as a sequence modeling problem. This allows us to draw upon the simplicity and scalability of the Transformer architecture, and associated advances in language modeling such as GPT- $\\mathbf { X }$ and BERT. In particular, we present Decision Transformer, an architecture that casts the problem of RL as conditional sequence modeling. Unlike prior approaches to RL that fit value functions or compute policy gradients, Decision Transformer simply outputs the optimal actions by leveraging a causally masked Transformer. By conditioning an autoregressive model on the desired return (reward), past states, and actions, our Decision Transformer model can generate future actions that achieve the desired return. Despite its simplicity, Decision Transformer matches or exceeds the performance of state-of-the-art model-free offline RL baselines on Atari, OpenAI Gym, and Key-to-Door tasks. ",
73
+ "bbox": [
74
+ 232,
75
+ 383,
76
+ 767,
77
+ 550
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "image",
83
+ "img_path": "images/1a24cd0765714aa601fab185d61614e5c237741df36ea350b02c6e428b196d29.jpg",
84
+ "image_caption": [
85
+ "Figure 1: Decision Transformer architecture1. States, actions, and returns are fed into modalityspecific linear embeddings and a positional episodic timestep encoding is added. Tokens are fed into a GPT architecture which predicts actions autoregressively using a causal self-attention mask. "
86
+ ],
87
+ "image_footnote": [],
88
+ "bbox": [
89
+ 184,
90
+ 575,
91
+ 816,
92
+ 803
93
+ ],
94
+ "page_idx": 0
95
+ },
96
+ {
97
+ "type": "image",
98
+ "img_path": "images/0797a951d243f2314131b11d4b2498080d4ff7e99afe42059cf1db90aad8dccc.jpg",
99
+ "image_caption": [
100
+ "Figure 2: Illustrative example of finding shortest path for a fixed graph (left) posed as reinforcement learning. Training dataset consists of random walk trajectories and their per-node returns-to-go (middle). Conditioned on a starting state and generating largest possible return at each node, Decision Transformer sequences optimal paths. "
101
+ ],
102
+ "image_footnote": [],
103
+ "bbox": [
104
+ 178,
105
+ 87,
106
+ 823,
107
+ 193
108
+ ],
109
+ "page_idx": 1
110
+ },
111
+ {
112
+ "type": "text",
113
+ "text": "1 Introduction ",
114
+ "text_level": 1,
115
+ "bbox": [
116
+ 174,
117
+ 313,
118
+ 310,
119
+ 330
120
+ ],
121
+ "page_idx": 1
122
+ },
123
+ {
124
+ "type": "text",
125
+ "text": "Recent work has shown transformers [1] can model large-scale distributions of semantic concepts, including capable zero-shot generalization in language [2] and impressive out-of-distribution image generation [3]. This stands in sharp contrast to much work in reinforcement learning (RL), which learns a single policy to model a particular narrow behavior distribution. Given the diversity of applications and impact of transformer models, we seek to examine their application to sequential decision making problems. In particular, instead of using transformers as an architectural choice for traditional RL algorithms [4, 5], we seek to study if trajectory modeling (analogous to language modeling) can serve as a replacement for conventional RL algorithms. ",
126
+ "bbox": [
127
+ 174,
128
+ 352,
129
+ 825,
130
+ 463
131
+ ],
132
+ "page_idx": 1
133
+ },
134
+ {
135
+ "type": "text",
136
+ "text": "We consider the following shift in paradigm: instead of training a policy through conventional RL algorithms like temporal difference (TD) learning [6], the dominant paradigm in RL, we will train transformer models on collected experience using a sequence modeling objective. This will allow us to bypass the need for bootstrapping to propagate returns – thereby avoiding one of the β€œdeadly triad” [6] known to destabilize RL. It also avoids the need for discounting future rewards, as typically done in TD-learning, which can induce undesirable short-sighted behaviors. Additionally, we can make use of existing transformer frameworks widely used in language and vision that are easy to scale, utilizing a large body of work studying stable training of transformer models; this approach removes the need for specialized RL frameworks by appealing only to commonplace supervised learning systems. Given their demonstrated ability to model long sequences and wide data distributions, transformers also have other advantages. Transformers can perform credit assignment directly via self-attention, in contrast to Bellman backups which slowly propagate rewards and are prone to β€œdistractor” signals [7]. This can enable transformers to still work effectively in the presence of sparse or distracting rewards. Furthermore, a transformer modeling approach can model a wide distribution of behaviors, enabling better generalization and transfer. While β€œupside-down” reinforcement learning (UDRL) [8, 9, 10] also uses a supervised loss conditioned on a target return, our work is motivated by sequence modeling rather than supervised learning and seeks to benefit from modeling long sequences of behaviors. See Section 6 for more discussions about related works. ",
137
+ "bbox": [
138
+ 173,
139
+ 469,
140
+ 825,
141
+ 718
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "We explore our hypothesis by considering offline RL, where we will task agents with learning policies from suboptimal data – producing maximally effective behavior from fixed, limited experience. This task is traditionally challenging due to error propagation and value overestimation [11]. However, it is a natural task when training with a sequence modeling objective. By training an autoregressive model on sequences of states, actions, and returns, we reduce policy sampling to autoregressive generative modeling. We can specify the expertise of the policy – which β€œskill” to query – by manually setting the return tokens, acting as a prompt for generation. ",
148
+ "bbox": [
149
+ 174,
150
+ 724,
151
+ 825,
152
+ 821
153
+ ],
154
+ "page_idx": 1
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "Illustrative example. To get an intuition for our proposal, consider the task of finding a shortest path on a directed graph posed as an RL problem. The reward is 0 when at the goal node and $- 1$ otherwise. We train a GPT [12] model to predict next token in a sequence of returns-to-go (sum of future rewards), states, and actions. Training only on random walk data – with no expert demonstrations – we can at test time generate optimal trajectories by adding a prior to generate highest possible returns (see more details and empirical results in the Appendix) and subsequently generate actions conditioned on that. Thus, by combining the tools of sequence modeling with hindsight return information, we achieve policy improvement without the need for dynamic programming. ",
159
+ "bbox": [
160
+ 173,
161
+ 828,
162
+ 825,
163
+ 911
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "",
170
+ "bbox": [
171
+ 173,
172
+ 90,
173
+ 823,
174
+ 119
175
+ ],
176
+ "page_idx": 2
177
+ },
178
+ {
179
+ "type": "text",
180
+ "text": "Motivated by this observation, we propose Decision Transformer, where we use the GPT architecture to autoregressively model trajectories (shown in Figure 1). We study whether sequence modeling can perform policy optimization by evaluating Decision Transformer on offline RL benchmarks in Atari [13], OpenAI Gym [14], and Key-to-Door [15] environments. We show that – without using dynamic programming – Decision Transformer performs comparably on these benchmarks to state-of-the-art model-free offline RL algorithms [16, 17]. Furthermore, in tasks where long-term credit assignment is required, Decision Transformer capably outperforms RL algorithms. With this work, we hope to bridge vast recent progress in transformer models with RL problems. ",
181
+ "bbox": [
182
+ 173,
183
+ 126,
184
+ 825,
185
+ 237
186
+ ],
187
+ "page_idx": 2
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "2 Preliminaries ",
192
+ "text_level": 1,
193
+ "bbox": [
194
+ 174,
195
+ 255,
196
+ 318,
197
+ 272
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "2.1 Offline reinforcement learning ",
204
+ "text_level": 1,
205
+ "bbox": [
206
+ 176,
207
+ 285,
208
+ 424,
209
+ 301
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "We consider learning in a Markov decision process (MDP) described by the tuple $( \\boldsymbol { S } , \\mathcal { A } , \\boldsymbol { P } , \\mathcal { R } )$ . The MDP tuple consists of states $s \\in S$ , actions $a \\in { \\mathcal { A } }$ , transition dynamics $P ( s ^ { \\prime } | s , a )$ , and a reward function $r = \\mathcal { R } ( s , a )$ . We use $s _ { t }$ , $a _ { t }$ , and $r _ { t } = \\mathcal { R } ( s _ { t } , a _ { t } )$ to denote the state, action, and reward at timestep $t$ , respectively. The goal in reinforcement learning is to learn a policy which maximizes the expected return $\\mathbb { E } \\left[ \\sum _ { t = 1 } ^ { T } r _ { t } \\right]$ in an MDP. In offline reinforcement learning, instead of obtaining data via environment interactions, we only have access to some fixed limited dataset consisting of trajectories from the environment. This setting is harder as it removes the ability for agents to explore the environment and collect additional feedback. ",
216
+ "bbox": [
217
+ 173,
218
+ 310,
219
+ 825,
220
+ 431
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "2.2 Transformers ",
227
+ "text_level": 1,
228
+ "bbox": [
229
+ 174,
230
+ 445,
231
+ 308,
232
+ 460
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "Transformers were proposed by Vaswani et al. [1] as an architecture to efficiently model sequences. They consist of stacked self-attention layers with residual connections. Each self-attention layer receives $n$ embeddings $\\{ x _ { i } \\} _ { i = 1 } ^ { n }$ corresponding to unique input tokens, and outputs $n$ embeddings $\\{ z _ { i } \\} _ { i = 1 } ^ { n }$ , preserving the input dimensions. The $i$ -th token is mapped via linear transformations to a key $k _ { i }$ , query $q _ { i }$ , and value $v _ { i }$ . The $i$ -th output of the self-attention layer is given by weighting the values $v _ { j }$ by the normalized dot product between the query $q _ { i }$ and other keys $k _ { j }$ : ",
239
+ "bbox": [
240
+ 173,
241
+ 470,
242
+ 825,
243
+ 556
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "equation",
249
+ "img_path": "images/45ad9c3100be001f8f49eccde368e07a614ebaeb981f5d7b9157b67ee92e9f6f.jpg",
250
+ "text": "$$\nz _ { i } = \\sum _ { j = 1 } ^ { n } \\operatorname { s o f t m a x } ( \\{ \\langle q _ { i } , k _ { j ^ { \\prime } } \\rangle \\} _ { j ^ { \\prime } = 1 } ^ { n } ) _ { j } \\cdot v _ { j } .\n$$",
251
+ "text_format": "latex",
252
+ "bbox": [
253
+ 362,
254
+ 559,
255
+ 635,
256
+ 602
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "This allows the layer to assign β€œcredit” by implicitly forming state-return associations via similarity of the query and key vectors (maximizing the dot product). In this work, we use the GPT architecture [12], which modifies the transformer architecture with a causal self-attention mask to enable autoregressive generation, replacing the summation/softmax over the $n$ tokens with only the previous tokens in the sequence $( j \\in \\bar { [ 1 , i ] } )$ . We defer the other architecture details to the original papers. ",
263
+ "bbox": [
264
+ 174,
265
+ 604,
266
+ 825,
267
+ 675
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "3 Method ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 173,
277
+ 693,
278
+ 271,
279
+ 709
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "In this section, we present Decision Transformer, which models trajectories autoregressively with minimal modification to the transformer architecture, as summarized in Figure 1 and Algorithm 1. ",
286
+ "bbox": [
287
+ 174,
288
+ 723,
289
+ 825,
290
+ 751
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "Trajectory representation. The key desiderata in our choice of trajectory representation are (a) it should enable transformers to learn meaningful patterns and (b) we should be able to conditionally generate actions at test time. It is nontrivial to model rewards since we would like the model to generate actions based on future desired returns, rather than past rewards. As a result, instead of modeling the rewards directly, we model the returns-to-go $\\begin{array} { r } { \\overline { { \\boldsymbol { R } } } _ { t } = \\sum _ { t ^ { \\prime } = t } ^ { T } \\boldsymbol { r } _ { t ^ { \\prime } } } \\end{array}$ . This leads to the following trajectory representation which is amenable to autoregressive training and generation: ",
297
+ "bbox": [
298
+ 173,
299
+ 757,
300
+ 825,
301
+ 844
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "equation",
307
+ "img_path": "images/e7ecd27b166a8ad6f275c8a281f9956f75e0d700ebd3b343f25795d2244d6807.jpg",
308
+ "text": "$$\n\\tau = \\left( \\widehat { R } _ { 1 } , s _ { 1 } , a _ { 1 } , \\widehat { R } _ { 2 } , s _ { 2 } , a _ { 2 } , \\ldots , \\widehat { R } _ { T } , s _ { T } , a _ { T } \\right) .\n$$",
309
+ "text_format": "latex",
310
+ "bbox": [
311
+ 344,
312
+ 847,
313
+ 653,
314
+ 873
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "Architecture. We feed the last $K$ timesteps into Decision Transformer, for a total of $3 K$ tokens (one for each modality: return-to-go, state, or action). To obtain token embeddings, we learn a linear layer for each modality, which projects raw inputs to the embedding dimension, followed by layer normalization [18]. For environments with visual inputs, the state is fed into a convolutional encoder instead of a linear layer. Additionally, an embedding for each timestep is learned and added to each token – note this is different than the standard positional embedding used by transformers, as one timestep corresponds to three tokens. The tokens are then processed by a GPT [12] model, which predicts future action tokens via autoregressive modeling. ",
321
+ "bbox": [
322
+ 173,
323
+ 882,
324
+ 823,
325
+ 911
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "",
332
+ "bbox": [
333
+ 174,
334
+ 92,
335
+ 825,
336
+ 174
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "Training. We sample minibatches of sequence length $K$ from the dataset. The prediction head corresponding to the input token $s _ { t }$ is trained to predict $a _ { t }$ – either with cross-entropy loss for discrete actions or mean-squared error for continuous actions – and the losses for each timestep are averaged. We did not find predicting the states or returns-to-go to be necessary for good performance, although it is possible (as shown in Section 5.3) and would be an interesting study for future work. ",
343
+ "bbox": [
344
+ 174,
345
+ 181,
346
+ 825,
347
+ 251
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Evaluation. During evaluation rollouts, we specify a target return based on our desired performance (e.g., specify maximum possible return to generate expert behavior) as well as the environment starting state, to initialize generation. After executing the generated action, we decrement the target return by the achieved reward and obtain the next state. We repeat this process of generating actions and applying them to obtain the next return-to-go and state until episode termination. ",
354
+ "bbox": [
355
+ 173,
356
+ 256,
357
+ 825,
358
+ 327
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Algorithm 1 Decision Transformer Pseudocode (for continuous actions) ",
365
+ "text_level": 1,
366
+ "bbox": [
367
+ 174,
368
+ 342,
369
+ 648,
370
+ 356
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "# R, s, a, t: returns -to -go , states , actions , or timesteps \n# K: context length ( length of each input to DecisionTransformer ) \n# transformer : transformer with causal masking (GPT) \n# embed_s , embed_a , embed_R : linear embedding layers \n# embed_t : learned episode positional embedding \n# pred_a : linear action prediction layer ",
377
+ "bbox": [
378
+ 174,
379
+ 367,
380
+ 774,
381
+ 436
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "# main model ",
388
+ "text_level": 1,
389
+ "bbox": [
390
+ 174,
391
+ 446,
392
+ 284,
393
+ 457
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "def DecisionTransformer (R , s , a , t ): ",
400
+ "bbox": [
401
+ 179,
402
+ 458,
403
+ 501,
404
+ 469
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "# compute embeddings for tokens \npos_embedding $=$ embed_t ( t ) # per - timestep ( note : not per - token ) \ns_embedding $=$ embed_s ( s ) $^ +$ pos_embedding \na_embedding $=$ embed_a ( a ) $^ +$ pos_embedding \nR_embedding $=$ embed_R ( R ) $^ +$ pos_embedding ",
411
+ "bbox": [
412
+ 212,
413
+ 470,
414
+ 802,
415
+ 526
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "# interleave tokens as (R_1 , s_1 , a_1 R_K , s_K ) input_embeds $=$ stack ( R_embedding , s_embedding , a_embedding ) ",
422
+ "bbox": [
423
+ 210,
424
+ 536,
425
+ 754,
426
+ 561
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "# use transformer to get hidden states hidden_states $=$ transformer ( input_embeds $=$ input_embeds ) ",
433
+ "bbox": [
434
+ 209,
435
+ 571,
436
+ 710,
437
+ 594
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "# select hidden states for action prediction tokens a_hidden $=$ unstack ( hidden_states ). actions ",
444
+ "bbox": [
445
+ 210,
446
+ 606,
447
+ 683,
448
+ 628
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "# predict action return pred_a ( a_hidden ) ",
455
+ "bbox": [
456
+ 210,
457
+ 638,
458
+ 423,
459
+ 662
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "# training loop ",
466
+ "bbox": [
467
+ 174,
468
+ 674,
469
+ 313,
470
+ 684
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "for (R , s , a , t ) in dataloader : # dims : ( batch_size , K, dim ) a_preds $=$ DecisionTransformer (R , s , a , t ) loss $=$ mean (( a_preds - a ) $* * 2$ ) # L2 loss for continuous actions optimizer . zero_grad (); loss . backward (); optimizer . step () ",
477
+ "bbox": [
478
+ 176,
479
+ 684,
480
+ 794,
481
+ 731
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "# evaluation loop ",
488
+ "bbox": [
489
+ 176,
490
+ 741,
491
+ 331,
492
+ 752
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "target_return $\\mathbf { \\lambda } = \\mathbf { \\bar { \\lambda } } 1$ # for instance , expert - level return R , s , a , t , done $=$ [ target_return ] , [ env . reset ()] , [] , [1] , False while not done : # autoregressive generation / sampling ",
499
+ "bbox": [
500
+ 178,
501
+ 752,
502
+ 774,
503
+ 786
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "action $=$ DecisionTransformer (R , s , a , t )[ -1] # for cts actions new_s , r , done , _ $=$ env . step ( action ) ",
510
+ "bbox": [
511
+ 207,
512
+ 796,
513
+ 792,
514
+ 821
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "# append new tokens to sequence R = R + [ R [ -1] - r] # decrement returns -to -go with reward s , a , t = s + [ new_s ] , a $^ +$ [ action ] , t + [ len ( R )] R , s , a , t $=$ R [ - K :] , ... # only keep context length of K ",
521
+ "bbox": [
522
+ 210,
523
+ 833,
524
+ 746,
525
+ 878
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "image",
531
+ "img_path": "images/6be7ce5512d46b7431e828fe71c83f457f669167743b6fc373ae4c4399521a50.jpg",
532
+ "image_caption": [
533
+ "Figure 3: Results comparing Decision Transformer (ours) to TD learning (CQL) and behavior cloning across Atari, OpenAI Gym, and Minigrid. On a diverse set of tasks, Decision Transformer performs comparably or better than traditional approaches. "
534
+ ],
535
+ "image_footnote": [],
536
+ "bbox": [
537
+ 171,
538
+ 84,
539
+ 825,
540
+ 212
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "4 Evaluations on offline RL benchmarks ",
547
+ "text_level": 1,
548
+ "bbox": [
549
+ 174,
550
+ 287,
551
+ 527,
552
+ 305
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "In this section, we investigate if Decision Transformer can perform well compared to standard TD and imitation learning approaches for offline RL. TD learning algorithms represent the conventional stateof-the-art, while imitation learning algorithms have similar formulations to Decision Transformer. The exact algorithms depend on the environment but our motivations are as follows: ",
559
+ "bbox": [
560
+ 173,
561
+ 319,
562
+ 825,
563
+ 375
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "β€’ TD learning: most of these methods use an action-space constraint or value pessimism, and will be the most faithful comparison to Decision Transformer, representing standard RL methods. A state-of-the-art model-free method is Conservative Q-Learning (CQL) [17] which serves as our primary comparison. In addition, we also compare against other prior model-free RL algorithms like BEAR [19] and BRAC [20]. β€’ Imitation learning: this regime similarly uses supervised losses for training, rather than Bellman backups. We use behavior cloning here, and include a more detailed discussion in Section 5.1. ",
570
+ "bbox": [
571
+ 173,
572
+ 386,
573
+ 825,
574
+ 489
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "We evaluate on both discrete (Atari [13]) and continuous (OpenAI Gym [14]) control tasks. The former requires long-term credit assignment, while the latter requires fine-grained continuous control, representing a diverse set of tasks. Our main results are summarized in Figure 3, where we show averaged expert normalized performance for each domain. ",
581
+ "bbox": [
582
+ 173,
583
+ 500,
584
+ 825,
585
+ 556
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "4.1 Atari ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 174,
595
+ 573,
596
+ 250,
597
+ 587
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "The Atari benchmark is challenging due to its high-dimensional visual inputs and difficulty of credit assignment arising from the delay between actions and resulting rewards. We evaluate our method on $1 \\%$ of all samples in the DQN-replay dataset as per Agarwal et al. [16], representing 500 thousand of the 50 million transitions observed by an online DQN agent [21] during training; we report the mean and standard deviation of 3 seeds. We normalize scores based on a professional gamer, following the protocol of Hafner et al. [22], where 100 represents the professional gamer score and 0 represents a random policy. ",
604
+ "bbox": [
605
+ 173,
606
+ 597,
607
+ 825,
608
+ 695
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "We compare to CQL [17], REM [16], and QR-DQN [23] on four Atari tasks (Breakout, Qbert, Pong, and Seaquest) that are evaluated in Agarwal et al. [16]. We use context lengths of $K = 3 0$ for Decision Transformer (except $K = 5 0$ for Pong); for results with different values of $K$ see the supplementary material. We also report the performance of behavior cloning (BC), which utilizes ",
615
+ "bbox": [
616
+ 174,
617
+ 700,
618
+ 825,
619
+ 757
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "table",
625
+ "img_path": "images/c09a063a1b24fe2e8f3d693a626260be800c58ccba5fba82ee97e1f3080480bf.jpg",
626
+ "table_caption": [],
627
+ "table_footnote": [],
628
+ "table_body": "<table><tr><td>Game</td><td>DT (Ours)</td><td>CQL</td><td>QR-DQN</td><td>REM</td><td>BC</td></tr><tr><td>Breakout</td><td>267.5 Β± 97.5</td><td>211.1</td><td>21.1</td><td>32.1</td><td>138.9 Β± 61.7</td></tr><tr><td>Qbert</td><td>15.1 Β± 11.4</td><td>104.2</td><td>1.7</td><td>1.4</td><td>17.3 Β± 14.7</td></tr><tr><td>Pong</td><td>106.1 Β±8.1</td><td>111.9</td><td>20.0</td><td>39.1</td><td>85.2 Β± 20.0</td></tr><tr><td>Seaquest</td><td>2.4Β± 0.7</td><td>1.7</td><td>1.4</td><td>1.0</td><td>2.1Β± 0.3</td></tr></table>",
629
+ "bbox": [
630
+ 258,
631
+ 780,
632
+ 735,
633
+ 859
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "Table 1: Gamer-normalized scores for the $1 \\%$ DQN-replay Atari dataset. We report the mean and variance across 3 seeds. Best mean scores are highlighted in bold. Decision Transformer (DT) performs comparably to CQL on 3 out of 4 games, and outperforms other baselines in most games. ",
640
+ "bbox": [
641
+ 174,
642
+ 866,
643
+ 825,
644
+ 910
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "the same network architecture and hyperparameters as Decision Transformer but does not have return-to-go conditioning2. For CQL, REM, and QR-DQN baselines, we report numbers directly from the CQL paper. We show results in Table 1. Our method is competitive with CQL in 3 out of 4 games and outperforms or matches REM, QR-DQN, and BC on all 4 games. ",
651
+ "bbox": [
652
+ 174,
653
+ 92,
654
+ 825,
655
+ 147
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "4.2 OpenAI Gym ",
662
+ "text_level": 1,
663
+ "bbox": [
664
+ 174,
665
+ 162,
666
+ 307,
667
+ 179
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "In this section, we consider the continuous control tasks from the D4RL benchmark [24]. We also consider a 2D reacher environment that is not part of the benchmark, and generate the datasets using a similar methodology to the D4RL benchmark. Reacher is a goal-conditioned task and has sparse rewards, so it represents a different setting than the standard locomotion environments (HalfCheetah, Hopper, and Walker). The different dataset settings are described below. ",
674
+ "bbox": [
675
+ 173,
676
+ 189,
677
+ 825,
678
+ 258
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "1. Medium: 1 million timesteps generated by a β€œmedium” policy that achieves approximately one-third the score of an expert policy. \n2. Medium-Replay: the replay buffer of an agent trained to the performance of a medium policy (approximately $2 5 \\mathrm { k } { - } 4 0 0 \\mathrm { k }$ timesteps in our environments). \n3. Medium-Expert: 1 million timesteps generated by the medium policy concatenated with 1 million timesteps generated by an expert policy. ",
685
+ "bbox": [
686
+ 174,
687
+ 270,
688
+ 825,
689
+ 364
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "We compare to CQL [17], BEAR [19], BRAC [20], and AWR [25]. CQL represents the state-ofthe-art in model-free offline RL, an instantiation of TD learning with value pessimism. Score are normalized so that 100 represents an expert policy, as per Fu et al. [24]. CQL numbers are reported from the original paper; BC numbers are run by us; and the other methods are reported from the D4RL paper. Our results are shown in Table 2. Decision Transformer achieves the highest scores in a majority of the tasks and is competitive with the state of the art in the remaining tasks. ",
696
+ "bbox": [
697
+ 174,
698
+ 373,
699
+ 825,
700
+ 458
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "table",
706
+ "img_path": "images/4058c54f4182eee535eaf3daa1c872ea7d3a5f74f8a6e9d88b74b1ad6b603bf9.jpg",
707
+ "table_caption": [],
708
+ "table_footnote": [
709
+ "Table 2: Results for D4RL datasets4. We report the mean and variance for three seeds. Decision Transformer (DT) outperforms conventional RL algorithms on almost all tasks. "
710
+ ],
711
+ "table_body": "<table><tr><td>Dataset</td><td>Environment</td><td>DT (Ours)</td><td>CQL</td><td>BEAR</td><td>BRAC-v</td><td>AWR</td><td>BC</td></tr><tr><td>Medium-Expert</td><td>HalfCheetah</td><td>86.8 Β± 1.3</td><td>62.4</td><td>53.4</td><td>41.9</td><td>52.7</td><td>59.9</td></tr><tr><td>Medium-Expert</td><td>Hopper</td><td>107.6 Β± 1.8</td><td>111.0</td><td>96.3</td><td>0.8</td><td>27.1</td><td>79.6</td></tr><tr><td>Medium-Expert</td><td>Walker</td><td>108.1 Β±0.2</td><td>98.7</td><td>40.1</td><td>81.6</td><td>53.8</td><td>36.6</td></tr><tr><td>Medium-Expert</td><td>Reacher</td><td>89.1 Β±1.3</td><td>30.6</td><td>-</td><td>-</td><td>1</td><td>73.3</td></tr><tr><td>Medium</td><td>HalfCheetah</td><td>42.6 Β± 0.1</td><td>44.4</td><td>41.7</td><td>46.3</td><td>37.4</td><td>43.1</td></tr><tr><td>Medium</td><td>Hopper</td><td>67.6 Β± 1.0</td><td>58.0</td><td>52.1</td><td>31.1</td><td>35.9</td><td>63.9</td></tr><tr><td>Medium</td><td>Walker</td><td>74.0 Β± 1.4</td><td>79.2</td><td>59.1</td><td>81.1</td><td>17.4</td><td>77.3</td></tr><tr><td>Medium</td><td>Reacher</td><td>51.2 Β± 3.4</td><td>26.0</td><td>1</td><td>1</td><td>1</td><td>48.9</td></tr><tr><td>Medium-Replay</td><td>HalfCheetah</td><td>36.6 Β± 0.8</td><td>46.2</td><td>38.6</td><td>47.7</td><td>40.3</td><td>4.3</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>82.7 Β± 7.0</td><td>48.6</td><td>33.7</td><td>0.6</td><td>28.4</td><td>27.6</td></tr><tr><td>Medium-Replay</td><td>Walker</td><td>66.6 Β± 3.0</td><td>26.7</td><td>19.2</td><td>0.9</td><td>15.5</td><td>36.9</td></tr><tr><td>Medium-Replay</td><td>Reacher</td><td>18.0 Β± 2.4</td><td>19.0</td><td>1</td><td>1</td><td>1</td><td>5.4</td></tr><tr><td colspan=\"2\">Average (Without Reacher)</td><td>74.7</td><td>63.9</td><td>48.2</td><td>36.9</td><td>34.3</td><td>46.4</td></tr><tr><td colspan=\"2\">Average (All Settings)</td><td>69.2</td><td>54.2</td><td>1</td><td>-</td><td>1</td><td>47.7</td></tr></table>",
712
+ "bbox": [
713
+ 189,
714
+ 470,
715
+ 805,
716
+ 695
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "5 Discussion ",
723
+ "text_level": 1,
724
+ "bbox": [
725
+ 173,
726
+ 747,
727
+ 294,
728
+ 763
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "5.1 Does Decision Transformer perform behavior cloning on a subset of the data? ",
735
+ "text_level": 1,
736
+ "bbox": [
737
+ 171,
738
+ 777,
739
+ 751,
740
+ 794
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "In this section, we seek to gain insight into whether Decision Transformer can be thought of as performing imitation learning on a subset of the data with a certain return. To investigate this, we propose a new method, Percentile Behavior Cloning $( \\% \\mathrm { B C } )$ , where we run behavior cloning on only the top $X \\%$ of timesteps in the dataset, ordered by episode returns. The percentile $X \\%$ interpolates between standard BC $X = 1 0 0 \\%$ ) that trains on the entire dataset and only cloning the best observed trajectory $( X 0 \\%$ ), trading off between better generalization by training on more data with training a specialized model that focuses on a desirable subset of the data. ",
747
+ "bbox": [
748
+ 174,
749
+ 804,
750
+ 825,
751
+ 873
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "table",
757
+ "img_path": "images/30e324cb7f286a944c6ae8968e8be730623cd41a282d871352fae6a88e317a56.jpg",
758
+ "table_caption": [],
759
+ "table_footnote": [
760
+ "Table 3: Comparison between Decision Transformer (DT) and Percentile Behavior Cloning $( \\% \\mathrm { B C } )$ "
761
+ ],
762
+ "table_body": "<table><tr><td>Dataset</td><td>Environment</td><td>DT (Ours)</td><td>10%BC</td><td>25%BC</td><td>40%BC</td><td>100%BC</td><td>CQL</td></tr><tr><td>Medium</td><td>HalfCheetah</td><td>42.6 Β± 0.1</td><td>42.9</td><td>43.0</td><td>43.1</td><td>43.1</td><td>44.4</td></tr><tr><td>Medium</td><td>Hopper</td><td>67.6 Β± 1.0</td><td>65.9</td><td>65.2</td><td>65.3</td><td>63.9</td><td>58.0</td></tr><tr><td>Medium</td><td>Walker</td><td>74.0 Β± 1.4</td><td>78.8</td><td>80.9</td><td>78.8</td><td>77.3</td><td>79.2</td></tr><tr><td>Medium</td><td>Reacher</td><td>51.2 Β± 3.4</td><td>51.0</td><td>48.9</td><td>58.2</td><td>58.4</td><td>26.0</td></tr><tr><td>Medium-Replay</td><td>HalfCheetah</td><td>36.6 Β± 0.8</td><td>40.8</td><td>40.9</td><td>41.1</td><td>4.3</td><td>46.2</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>82.7 Β± 7.0</td><td>70.6</td><td>58.6</td><td>31.0</td><td>27.6</td><td>48.6</td></tr><tr><td>Medium-Replay</td><td>Walker</td><td>66.6 Β± 3.0</td><td>70.4</td><td>67.8</td><td>67.2</td><td>36.9</td><td>26.7</td></tr><tr><td>Medium-Replay</td><td>Reacher</td><td>18.0 Β± 2.4</td><td>33.1</td><td>16.2</td><td>10.7</td><td>5.4</td><td>19.0</td></tr><tr><td colspan=\"2\">Average</td><td>56.1</td><td>56.7</td><td>52.7</td><td>49.4</td><td>39.5</td><td>43.5</td></tr></table>",
763
+ "bbox": [
764
+ 173,
765
+ 88,
766
+ 821,
767
+ 244
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "",
774
+ "bbox": [
775
+ 173,
776
+ 291,
777
+ 823,
778
+ 319
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "We show full results comparing $\\% \\mathrm { B C }$ to Decision Transformer and CQL in Table 3, sweeping over $X \\in [ 1 0 \\% , 2 5 \\% , 4 0 \\% , 1 \\dot { 0 } \\dot { 0 } \\% ]$ . Note that while both $\\% \\mathrm { B C }$ and DT introduce hyperparameters, returns are human interpretable and it is relatively natural for humans to specify a desired return compared to choosing an optimal subset for cloning. When data is plentiful – as in the D4RL regime – we find $\\% \\mathrm { B C }$ can match or beat other offline RL methods. On most environments, Decision Transformer is competitive with the performance of the best $\\% \\mathrm { B C }$ , indicating it can hone in on a particular subset after training on the entire dataset distribution. ",
785
+ "bbox": [
786
+ 173,
787
+ 325,
788
+ 825,
789
+ 422
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "In contrast, when we study low data regimes – such as Atari, where we use $1 \\%$ of a replay buffer as the dataset – $\\mathbf { \\nabla } \\cdot \\% \\mathbf { B } \\mathbf { C }$ is weak (shown in Table 4). This suggests that in scenarios with relatively low amounts of data, Decision Transformer can outperform $\\% \\mathrm { B C }$ by using all trajectories in the dataset to improve generalization, even if those trajectories are dissimilar from the return conditioning target. Our results indicate that Decision Transformer can be more effective than simply performing imitation learning on a subset of the dataset. On the tasks we considered, Decision Transformer either outperforms or is competitive to $\\% \\mathrm { B C }$ , without the confound of having to select the optimal subset. ",
796
+ "bbox": [
797
+ 174,
798
+ 428,
799
+ 825,
800
+ 526
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "table",
806
+ "img_path": "images/f7b3e0dda54d8e04dec597f56f451d1866f4fd896d6e53dc669b8062bb2381af.jpg",
807
+ "table_caption": [],
808
+ "table_footnote": [
809
+ "Table 4: $\\% \\mathrm { B C }$ scores for Atari. We report the mean and variance across 3 seeds. Decision Transformer (DT) outperforms all versions of $\\% \\mathrm { B C }$ in most games. "
810
+ ],
811
+ "table_body": "<table><tr><td>Game</td><td>DT (Ours)</td><td>10%BC</td><td>25%BC</td><td>40%BC</td><td>100%BC</td></tr><tr><td>Breakout</td><td>267.5 Β± 97.5</td><td>28.5Β±8.2</td><td>73.5 Β± 6.4</td><td>108.2 Β± 67.5</td><td>138.9 Β± 61.7</td></tr><tr><td>Qbert</td><td>15.1 Β± 11.4</td><td>6.6 Β± 1.7</td><td>16.0 Β± 13.8</td><td>11.8Β± 5.8</td><td>17.3 Β± 14.7</td></tr><tr><td>Pong</td><td>106.1 Β±8.1</td><td>2.5Β± 0.2</td><td>13.3 Β± 2.7</td><td>72.7 Β± 13.3</td><td>85.2 Β± 20.0</td></tr><tr><td>Seaquest</td><td>2.4 Β± 0.7</td><td>1.1 Β± 0.2</td><td>1.1 Β± 0.2</td><td>1.6 Β± 0.4</td><td>2.1 Β± 0.3</td></tr></table>",
812
+ "bbox": [
813
+ 217,
814
+ 539,
815
+ 776,
816
+ 619
817
+ ],
818
+ "page_idx": 6
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "5.2 How well does Decision Transformer model the distribution of returns? ",
823
+ "text_level": 1,
824
+ "bbox": [
825
+ 176,
826
+ 676,
827
+ 707,
828
+ 693
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "We evaluate the ability of Decision Transformer to understand return-to-go tokens by varying the desired target return over a wide range – evaluating the multi-task distribution modeling capability of transformers. Figure 4 shows the average sampled return accumulated by the agent over the course of the evaluation episode for varying values of target return. On every task, the desired target returns and the true observed returns are highly correlated. On some tasks like Pong, HalfCheetah and Walker, Decision Transformer generates trajectories that almost perfectly match the desired returns (as indicated by the overlap with the oracle line). Furthermore, on some Atari tasks like Seaquest, we can prompt the Decision Transformer with higher returns than the maximum episode return available in the dataset, demonstrating that Decision Transformer is sometimes capable of extrapolation. ",
835
+ "bbox": [
836
+ 173,
837
+ 703,
838
+ 825,
839
+ 828
840
+ ],
841
+ "page_idx": 6
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "5.3 Does Decision Transformer perform effective long-term credit assignment? ",
846
+ "text_level": 1,
847
+ "bbox": [
848
+ 176,
849
+ 843,
850
+ 730,
851
+ 859
852
+ ],
853
+ "page_idx": 6
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "To evaluate long-term credit assignment capabilities of our model, we consider a variant of the Key-to-Door environment proposed in Mesnard et al. [15]. This is a grid-based environment with a sequence of three phases: (1) in the first phase, the agent is placed in a room with a key; (2) then, the agent is placed in an empty room; (3) and finally, the agent is placed in a room with a door. The agent receives a binary reward when reaching the door in the third phase, but only if it picked up the key in the first phase. This problem is difficult for credit assignment because credit must be propagated from the beginning to the end of the episode, skipping over actions taken in the middle. ",
858
+ "bbox": [
859
+ 176,
860
+ 869,
861
+ 825,
862
+ 911
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "image",
868
+ "img_path": "images/c1156eaeb2971806e2c5eb8d09680aa47f4f5cf207c581cf8c22a3d777eebeb5.jpg",
869
+ "image_caption": [
870
+ "Figure 4: Sampled (evaluation) returns accumulated by Decision Transformer when conditioned on the specified target (desired) returns. Top: Atari. Bottom: D4RL medium-replay datasets. "
871
+ ],
872
+ "image_footnote": [],
873
+ "bbox": [
874
+ 173,
875
+ 87,
876
+ 826,
877
+ 241
878
+ ],
879
+ "page_idx": 7
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "",
884
+ "bbox": [
885
+ 174,
886
+ 310,
887
+ 825,
888
+ 366
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "We train on datasets of trajectories generated by applying random actions and report success rates in Table 5. Furthermore, for the Key-to-Door environment we use the entire episode length as the context, rather than having a fixed content window as in the other environments. Methods that use highsight return information: our Decision Transformer model and $\\% \\mathrm { B C }$ (trained only on successful episodes) are able to learn effective policies – producing near-optimal paths, despite only training on random walks. TD learning (CQL) cannot effectively propagate $\\mathrm { Q }$ -values over the long horizons involved and gets poor performance. ",
895
+ "bbox": [
896
+ 174,
897
+ 372,
898
+ 823,
899
+ 469
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "table",
905
+ "img_path": "images/b098074bab96a0d61716bb08dc399340315f12820eb4c04ac2b973cf59169be0.jpg",
906
+ "table_caption": [
907
+ "Table 5: Success rate for Key-to-Door environment. Methods using hindsight (Decision Transformer, $\\% \\mathbf { B } \\mathbf { C } _ { \\epsilon }$ ) can learn successful policies, while TD learning struggles to perform credit assignment. "
908
+ ],
909
+ "table_footnote": [],
910
+ "table_body": "<table><tr><td>Dataset</td><td>DT (Ours)</td><td>CQL</td><td>BC</td><td>%BC</td><td>Random</td></tr><tr><td>1K Random Trajectories</td><td>71.8%</td><td>13.1%</td><td>1.4%</td><td>69.9%</td><td>3.1%</td></tr><tr><td>10K Random Trajectories</td><td>94.6%</td><td>13.3%</td><td>1.6%</td><td>95.1%</td><td>3.1%</td></tr></table>",
911
+ "bbox": [
912
+ 243,
913
+ 488,
914
+ 750,
915
+ 542
916
+ ],
917
+ "page_idx": 7
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "5.4 Can transformers be accurate critics in sparse reward settings? ",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 174,
925
+ 613,
926
+ 651,
927
+ 627
928
+ ],
929
+ "page_idx": 7
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "In previous sections, we established that decision transformer can produce effective policies (actors). We now evaluate whether transformer models can also be effective critics. We modify Decision Transformer to output return tokens in addition to action tokens on the Key-to-Door environment. We find that the transformer continuously updates reward probability based on events during the episode, shown in Figure 5 (Left). Furthermore, we find the transformer attends to critical events in the episode (picking up the key or reaching the door), shown in Figure 5 (Right), indicating formation of state-reward associations as discussed in Raposo et al. [26] and enabling accurate value prediction. ",
934
+ "bbox": [
935
+ 174,
936
+ 640,
937
+ 826,
938
+ 737
939
+ ],
940
+ "page_idx": 7
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "5.5 Does Decision Transformer perform well in sparse reward settings? ",
945
+ "text_level": 1,
946
+ "bbox": [
947
+ 173,
948
+ 758,
949
+ 679,
950
+ 773
951
+ ],
952
+ "page_idx": 7
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "A known weakness of TD learning algorithms is that they require densely populated rewards in order to perform well, which can be unrealistic and/or expensive. In contrast, Decision Transformer can improve robustness in these settings since it makes minimal assumptions on the density of the reward. To evaluate this, we consider a delayed return version of the D4RL benchmarks where the agent does not receive any rewards along the trajectory, and instead receives the cumulative reward of the trajectory in the final timestep. Our results for delayed returns are shown in Table 6. Delayed returns minimally affect Decision Transformer; and due to the nature of the training process, while imitation learning methods are reward agnostic. While TD learning collapses, Decision Transformer and $\\% \\mathrm { B C }$ still perform well, indicating that Decision Transformer can be more robust to delayed rewards. ",
957
+ "bbox": [
958
+ 173,
959
+ 786,
960
+ 825,
961
+ 911
962
+ ],
963
+ "page_idx": 7
964
+ },
965
+ {
966
+ "type": "image",
967
+ "img_path": "images/2cf047d6f6123e6feee315d97b0f7169c03581ba80dfd8637dd3453482f91ce9.jpg",
968
+ "image_caption": [
969
+ "Figure 5: Left: Averages of running return probabilities predicted by the transformer model for three types of episode outcomes. Right: Transformer attention weights from all timesteps superimposed for a particular successful episode. The model attends to steps near pivotal events in the episode, such as picking up the key and reaching the door. "
970
+ ],
971
+ "image_footnote": [],
972
+ "bbox": [
973
+ 236,
974
+ 101,
975
+ 736,
976
+ 236
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "table",
982
+ "img_path": "images/30abdf3c2bb5d25d47c7adf3a2f6138477792c0148cf52e9f901c6b39aaf9f6e.jpg",
983
+ "table_caption": [],
984
+ "table_footnote": [
985
+ "Table 6: Results for D4RL datasets with delayed (sparse) reward. Decision Transformer (DT) and imitation learning are minimally affected by the removal of dense rewards, while CQL fails. "
986
+ ],
987
+ "table_body": "<table><tr><td></td><td>Environment</td><td colspan=\"2\">Delayed (Sparse)</td><td colspan=\"2\">Agnostic</td><td colspan=\"2\">Original (Dense)</td></tr><tr><td>Dataset</td><td></td><td>DT (Ours)</td><td>CQL</td><td>BC</td><td>%BC</td><td>DT (Ours)</td><td>CQL</td></tr><tr><td>Medium-Expert</td><td>Hopper</td><td>107.3 Β± 3.5</td><td>9.0</td><td>59.9</td><td>102.6</td><td>107.6</td><td>111.0</td></tr><tr><td>Medium</td><td>Hopper</td><td>60.7Β± 4.5</td><td>5.2</td><td>63.9</td><td>65.9</td><td>67.6</td><td>58.0</td></tr><tr><td>Medium-Replay</td><td>Hopper</td><td>78.5 Β± 3.7</td><td>2.0</td><td>27.6</td><td>70.6</td><td>82.7</td><td>48.6</td></tr></table>",
988
+ "bbox": [
989
+ 189,
990
+ 318,
991
+ 803,
992
+ 398
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "5.6 Additional Discussions ",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 174,
1002
+ 462,
1003
+ 370,
1004
+ 477
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "For more discussions see the supplementary material. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 488,
1014
+ 522,
1015
+ 503
1016
+ ],
1017
+ "page_idx": 8
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "6 Related work ",
1022
+ "text_level": 1,
1023
+ "bbox": [
1024
+ 174,
1025
+ 526,
1026
+ 316,
1027
+ 542
1028
+ ],
1029
+ "page_idx": 8
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Offline reinforcement learning. To mitigate the impact of distribution shift in offline RL, prior algorithms either (a) constrain the policy action space [27, 28, 29] or (b) incorporate value pessimism [27, 17], or (c) incorporate pessimism into learned dynamics models [30, 31]. Since we do not use Decision Transformers to explicitly learn the dynamics model, we primarily compare against model-free algorithms; adding a dynamics model tends to improve the performance of model-free algorithms. Another line of work explores learning wide behavior distribution from an offline dataset by learning a task-agnostic set of skills, either with likelihood-based approaches [32, 33, 34, 35] or by maximizing mutual information [36, 37, 38]. Our work is similar to the likelihood-based approaches, which do not use iterative Bellman updates – although we use a simpler sequence modeling objective instead of a variational method, and use rewards for conditional generation of behaviors. ",
1034
+ "bbox": [
1035
+ 174,
1036
+ 559,
1037
+ 825,
1038
+ 698
1039
+ ],
1040
+ "page_idx": 8
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Supervised learning in reinforcement learning settings. Some prior methods for reinforcement learning bear more resemblance to static supervised learning, such as Q-learning [39, 40], which still uses iterative backups, or likelihood-based methods such as behavior cloning, which do not (discussed in previous section). Recent work [8, 9, 10] studies β€œupside-down” reinforcement learning (UDRL), which are similar to our method in seeking to model behaviors with a supervised loss conditioned on the target return. A key difference in our work is the shift of motivation to sequence modeling rather than supervised learning: while the practical methods differ primarily in the context length and architecture, sequence modeling enables behavior modeling even without access to the reward, in a similar style to language [12] or images [41], and is known to scale well [2]. The method proposed by Kumar et al. [9] is most similar to our method with $K = 1$ , which we find sequence modeling/long contexts to outperform (see supplementary material). Ghosh et al. [42] extends prior UDRL methods to use state goal conditioning, rather than rewards, and Paster et al. [43] further use an LSTM with state goal conditioning for goal-conditoned online RL settings. Concurrent to our work, Janner et al. [44] propose Trajectory Transformer, which is similar to Decision Transformer but additionally uses state and return prediction, as well as discretization, which incorporates model-based components. ",
1045
+ "bbox": [
1046
+ 173,
1047
+ 705,
1048
+ 825,
1049
+ 911
1050
+ ],
1051
+ "page_idx": 8
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "We believe that their experiments, in addition to our results, highlight the potential for sequence modeling to be a generally applicable idea for reinforcement learning. ",
1056
+ "bbox": [
1057
+ 173,
1058
+ 92,
1059
+ 821,
1060
+ 119
1061
+ ],
1062
+ "page_idx": 9
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Credit assignment. Many works have studied better credit assignment via state-association, learning an architecture which decomposes the reward function such that certain β€œimportant” states comprise most of the credit [45, 46, 15]. They use the learned reward function to change the reward of an actorcritic algorithm to help propagate signal over long horizons. In particular, similar to our long-term setting, some works have specifically shown such state-associative architectures can perform better in delayed reward settings [47, 7, 48, 26]. In contrast, we allow these properties to naturally emerge in a transformer architecture, without having to explicitly learn a reward function or a critic. ",
1067
+ "bbox": [
1068
+ 174,
1069
+ 126,
1070
+ 825,
1071
+ 223
1072
+ ],
1073
+ "page_idx": 9
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Conditional language generation. Various works have studied guided generation for images [49] and language [50, 51]. Several works [52, 53, 54, 55, 56, 57] have explored training or fine-tuning of models for controllable text generation. Class-conditional language models can also be used to learn disciminators to guide generation [58, 50, 59, 60]. However, these approaches mostly assume constant β€œclasses”, while in reinforcement learning the reward signal is time-varying. Furthermore, it is more natural to prompt the model desired target return and continuously decrease it by the observed rewards over time, since the transformer model and environment jointly generate the trajectory. ",
1078
+ "bbox": [
1079
+ 174,
1080
+ 228,
1081
+ 825,
1082
+ 327
1083
+ ],
1084
+ "page_idx": 9
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Attention and transformer models. Transformers [1] have been applied successfully to many tasks in natural language processing [61, 12] and computer vision [62, 63]. However, transformers are relatively unstudied in RL, mostly due to differing nature of the problem, such as higher variance in training. Zambaldi et al. [5] showed that augmenting transformers with relational reasoning improve performance in combinatorial environments and Ritter et al. [64] showed iterative selfattention allowed for RL agents to better utilize episodic memories. Parisotto et al. [4] discussed design decisions for more stable training of transformers in the high-variance RL setting. Unlike our work, these still use actor-critic algorithms for optimization, focusing on novelty in architecture. Additionally, in imitation learning, some works have studied transformers as a replacement for LSTMs: Dasari and Gupta [65] study one-shot imitation learning, and Abramson et al. [66] combine language and image modalities for text-conditioned behavior generation. ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 332,
1092
+ 825,
1093
+ 484
1094
+ ],
1095
+ "page_idx": 9
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "7 Conclusion ",
1100
+ "text_level": 1,
1101
+ "bbox": [
1102
+ 174,
1103
+ 503,
1104
+ 299,
1105
+ 520
1106
+ ],
1107
+ "page_idx": 9
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "We proposed Decision Transformer, seeking to unify ideas in language modeling and RL. On standard offline RL benchmarks, we showed DT can match or outperform strong algorithms designed explicitly for offline RL with minimal modifications from standard language modeling architectures. ",
1112
+ "bbox": [
1113
+ 174,
1114
+ 535,
1115
+ 825,
1116
+ 577
1117
+ ],
1118
+ "page_idx": 9
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Societal impact. For real-world applications, it is important to understand the types of errors transformers make in MDP settings and possible negative consequences. It will also be important to consider the datasets we train on, which can potentially add destructive biases, particularly as we consider studying augmenting RL agents with more data which may come from questionable sources. ",
1123
+ "bbox": [
1124
+ 174,
1125
+ 583,
1126
+ 825,
1127
+ 638
1128
+ ],
1129
+ "page_idx": 9
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "Limitations. We introduced our paradigm shift and showed its potential in our experiments, but there is significant room for more research in this direction. The current architecture requires considerations of context length and return-to-go hyperparameters, and we show results on standard RL benchmarks; future work could improve the architecture and demonstrate results in more complex environments and tasks. We used a simple supervised loss that was effective in our experiments, but applications to large-scale datasets could benefit from self-supervised pretraining tasks. In addition, one could consider more sophisticated embeddings for returns, states, and actions. While we do not directly evaluate scaling and generalization, we utilize a method known to scale generalize well in domains such as language and vision, and we are excited about larger RL systems built upon our framework. ",
1134
+ "bbox": [
1135
+ 174,
1136
+ 645,
1137
+ 825,
1138
+ 770
1139
+ ],
1140
+ "page_idx": 9
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "8 Acknowledgements ",
1145
+ "text_level": 1,
1146
+ "bbox": [
1147
+ 176,
1148
+ 789,
1149
+ 367,
1150
+ 806
1151
+ ],
1152
+ "page_idx": 9
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "This research was supported by Berkeley Deep Drive, Open Philanthropy, and the National Science Foundation under NSF:NRI #2024675. Part of this work was completed when Aravind Rajeswaran was a PhD student at the University of Washington, where he was supported by the J.P. Morgan PhD Fellowship in AI (2020-21). We also thank Luke Metz, Daniel Freeman, and anonymous reviewers for valuable feedback and discussions, as well as Justin Fu for assistance in setting up D4RL benchmarks, and Aviral Kumar for assistance with the CQL baselines and hyperparameters. ",
1157
+ "bbox": [
1158
+ 174,
1159
+ 820,
1160
+ 825,
1161
+ 904
1162
+ ],
1163
+ "page_idx": 9
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "References \n[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. \n[2] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \n[3] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. \n[4] Emilio Parisotto, Francis Song, Jack Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury, et al. Stabilizing transformers for reinforcement learning. In International Conference on Machine Learning, 2020. \n[5] Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, et al. Deep reinforcement learning with relational inductive biases. In International Conference on Learning Representations, 2018. \n[6] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT Press, 2018. \n[7] Chia-Chun Hung, Timothy Lillicrap, Josh Abramson, Yan Wu, Mehdi Mirza, Federico Carnevale, Arun Ahuja, and Greg Wayne. Optimizing agent behavior over long time scales by transporting value. Nature communications, 10(1):1–12, 2019. \n[8] Rupesh Kumar Srivastava, Pranav Shyam, Filipe Mutz, Wojciech Jaskowski, and JΓΌrgen Β΄ Schmidhuber. Training agents using upside-down reinforcement learning. arXiv preprint arXiv:1912.02877, 2019. \n[9] Aviral Kumar, Xue Bin Peng, and Sergey Levine. Reward-conditioned policies. arXiv preprint arXiv:1912.13465, 2019. \n[10] Acting without rewards. 2019. URL https://ogma.ai/2019/08/ acting-without-rewards/. \n[11] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020. \n[12] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018. \n[13] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013. \n[14] Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016. \n[15] Thomas Mesnard, ThΓ©ophane Weber, Fabio Viola, Shantanu Thakoor, Alaa Saade, Anna Harutyunyan, Will Dabney, Tom Stepleton, Nicolas Heess, Arthur Guez, et al. Counterfactual credit assignment in model-free reinforcement learning. arXiv preprint arXiv:2011.09464, 2020. \n[16] Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, 2020. \n[17] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020. \n[18] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \n[19] Aviral Kumar, Justin Fu, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. arXiv preprint arXiv:1906.00949, 2019. \n[20] Yifan Wu, George Tucker, and Ofir Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019. \n[21] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015. \n[22] Danijar Hafner, Timothy Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. arXiv preprint arXiv:2010.02193, 2020. \n[23] Will Dabney, Mark Rowland, Marc Bellemare, and RΓ©mi Munos. Distributional reinforcement learning with quantile regression. In Conference on Artificial Intelligence, 2018. \n[24] Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020. \n[25] Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019. \n[26] David Raposo, Sam Ritter, Adam Santoro, Greg Wayne, Theophane Weber, Matt Botvinick, Hado van Hasselt, and Francis Song. Synthetic returns for long-term credit assignment. arXiv preprint arXiv:2102.12425, 2021. \n[27] Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, 2019. \n[28] Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, 2019. \n[29] Noah Y Siegel, Jost Tobias Springenberg, Felix Berkenkamp, Abbas Abdolmaleki, Michael Neunert, Thomas Lampe, Roland Hafner, and Martin Riedmiller. Keep doing what worked: Behavioral modelling priors for offline reinforcement learning. In International Conference on Learning Representations, 2020. \n[30] Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Model-based offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020. \n[31] Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. Mopo: Model-based offline policy optimization. In Advances in Neural Information Processing Systems, 2020. \n[32] Anurag Ajay, Aviral Kumar, Pulkit Agrawal, Sergey Levine, and Ofir Nachum. Opal: Offline primitive discovery for accelerating offline reinforcement learning. arXiv preprint arXiv:2010.13611, 2020. \n[33] VΓ­ctor Campos, Alexander Trott, Caiming Xiong, Richard Socher, Xavier Giro-i Nieto, and Jordi Torres. Explore, discover and learn: Unsupervised discovery of state-covering skills. In International Conference on Machine Learning, 2020. \n[34] Karl Pertsch, Youngwoon Lee, and Joseph J Lim. Accelerating reinforcement learning with learned skill priors. arXiv preprint arXiv:2010.11944, 2020. \n[35] Avi Singh, Huihan Liu, Gaoyue Zhou, Albert Yu, Nicholas Rhinehart, and Sergey Levine. Parrot: Data-driven behavioral priors for reinforcement learning. In International Conference on Learning Representations, 2021. \n[36] Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. In International Conference on Learning Representations, 2019. \n[37] Kevin Lu, Aditya Grover, Pieter Abbeel, and Igor Mordatch. Reset-free lifelong learning with skill-space planning. arXiv preprint arXiv:2012.03548, 2020. \n[38] Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamicsaware unsupervised discovery of skills. In International Conference on Learning Representations, 2020. \n[39] Christopher Watkins. Learning from delayed rewards. 01 1989. \n[40] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013. \n[41] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pages 1691–1703. PMLR, 2020. \n[42] Dibya Ghosh, Abhishek Gupta, Justin Fu, Ashwin Reddy, Coline Devin, Benjamin Eysenbach, and Sergey Levine. Learning to reach goals without reinforcement learning. arXiv preprint arXiv:1912.06088, 2019. \n[43] Keiran Paster, Sheila A McIlraith, and Jimmy Ba. Planning from pixels using inverse dynamics models. arXiv preprint arXiv:2012.02419, 2020. \n[44] Michael Janner, Qiyang Li, and Sergey Levine. Reinforcement learning as one big sequence modeling problem. arXiv preprint arXiv:2106.02039, 2021. \n[45] Johan Ferret, RaphaΓ«l Marinier, Matthieu Geist, and Olivier Pietquin. Self-attentional credit assignment for transfer in reinforcement learning. arXiv preprint arXiv:1907.08027, 2019. \n[46] Anna Harutyunyan, Will Dabney, Thomas Mesnard, Mohammad Azar, Bilal Piot, Nicolas Heess, Hado van Hasselt, Greg Wayne, Satinder Singh, Doina Precup, et al. Hindsight credit assignment. arXiv preprint arXiv:1912.02503, 2019. \n[47] Jose A Arjona-Medina, Michael Gillhofer, Michael Widrich, Thomas Unterthiner, Johannes Brandstetter, and Sepp Hochreiter. Rudder: Return decomposition for delayed rewards. arXiv preprint arXiv:1806.07857, 2018. \n[48] Yang Liu, Yunan Luo, Yuanyi Zhong, Xi Chen, Qiang Liu, and Jian Peng. Sequence modeling of temporal credit assignment for episodic reinforcement learning. arXiv preprint arXiv:1905.13420, 2019. \n[49] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Conference on Computer Vision and Pattern Recognition, 2019. \n[50] Marjan Ghazvininejad, Xing Shi, Jay Priyadarshi, and Kevin Knight. Hafez: an interactive poetry generation system. In Proceedings of ACL, System Demonstrations, 2017. \n[51] Lilian Weng. Controllable neural text generation. lilianweng.github.io/lillog, 2021. URL https://lilianweng.github.io/lil-log/2021/01/02/ controllable-neural-text-generation.html. \n[52] Jessica Ficler and Yoav Goldberg. Controlling linguistic style aspects in neural language generation. arXiv preprint arXiv:1707.02633, 2017. \n[53] Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In International Conference on Machine Learning, 2017. \n[54] Nazneen Fatema Rajani, Bryan McCann, Caiming Xiong, and Richard Socher. Explain yourself! leveraging language models for commonsense reasoning. arXiv preprint arXiv:1906.02361, 2019. \n[55] Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: Sequence generative adversarial nets with policy gradient. In AAAI conference on artificial intelligence, 2017. \n[56] Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019. \n[57] Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019. \n[58] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. Plug and play language models: A simple approach to controlled text generation. arXiv preprint arXiv:1912.02164, 2019. \n[59] Ari Holtzman, Jan Buys, Maxwell Forbes, Antoine Bosselut, David Golub, and Yejin Choi. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018. \n[60] Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. Gedi: Generative discriminator guided sequence generation. arXiv preprint arXiv:2009.06367, 2020. \n[61] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. \n[62] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, 2020. \n[63] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. \n[64] Sam Ritter, Ryan Faulkner, Laurent Sartran, Adam Santoro, Matt Botvinick, and David Raposo. Rapid task-solving in novel environments. arXiv preprint arXiv:2006.03662, 2020. \n[65] Sudeep Dasari and Abhinav Gupta. Transformers for one-shot visual imitation. arXiv preprint arXiv:2011.05970, 2020. \n[66] Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, et al. Imitating interactive intelligence. arXiv preprint arXiv:2012.05672, 2020. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 58,
1171
+ 826,
1172
+ 916
1173
+ ],
1174
+ "page_idx": 10
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "",
1179
+ "bbox": [
1180
+ 169,
1181
+ 37,
1182
+ 828,
1183
+ 917
1184
+ ],
1185
+ "page_idx": 11
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "",
1190
+ "bbox": [
1191
+ 171,
1192
+ 58,
1193
+ 828,
1194
+ 914
1195
+ ],
1196
+ "page_idx": 12
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "",
1201
+ "bbox": [
1202
+ 169,
1203
+ 90,
1204
+ 828,
1205
+ 659
1206
+ ],
1207
+ "page_idx": 13
1208
+ }
1209
+ ]
parse/train/a7APmM4B9d/a7APmM4B9d_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgqMRVYvr/rJgqMRVYvr.md ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIFFERENTIALLY PRIVATE META-LEARNING
2
+
3
+ Jeffrey Li, Mikhail Khodak, Sebastian Caldas
4
+ Carnegie Mellon University
5
+ jwl3@cs.cmu.edu
6
+
7
+ Ameet Talwalkar Carnegie Mellon University & Determined AI
8
+
9
+ # ABSTRACT
10
+
11
+ Parameter-transfer is a well-known and versatile approach for meta-learning, with applications including few-shot learning, federated learning, and reinforcement learning. However, parameter-transfer algorithms often require sharing models that have been trained on the samples from specific tasks, thus leaving the task-owners susceptible to breaches of privacy. We conduct the first formal study of privacy in this setting and formalize the notion of task-global differential privacy as a practical relaxation of more commonly studied threat models. We then propose a new differentially private algorithm for gradient-based parameter transfer that not only satisfies this privacy requirement but also retains provable transfer learning guarantees in convex settings. Empirically, we apply our analysis to the problems of federated learning with personalization and few-shot classification, showing that allowing the relaxation to task-global privacy from the more commonly studied notion of local privacy leads to dramatically increased performance in recurrent neural language modeling and image classification.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ The field of meta-learning offers promising directions for improving the performance and adaptability of machine learning methods. At a high level, the key assumption leveraged by these approaches is that the sharing of knowledge gained from individual learning tasks can help catalyze the learning of similar unseen tasks. However, the collaborative nature of this process, in which task-specific information must be sent to and used by a meta-learner, also introduces inherent data privacy risks.
16
+
17
+ In this work, we focus on a popular and flexible meta-learning approach, parameter transfer via gradient-based meta-learning (GBML). This set of methods, which includes well-known algorithms such as MAML (Finn et al., 2017) and Reptile (Nichol et al., 2018), tries to learn a common initialization $\phi$ over a set of tasks $t = 1 , \dots , T$ such that a high-performance model can be learned in only a few gradient-steps on new tasks. Notably, information flows constantly between training tasks and the meta-learner as learning progresses; to make iterative updates, the meta-learner obtains feedback on the current $\phi$ by having task-specific models ${ \bar { \theta } } _ { t }$ trained with it.
18
+
19
+ Meanwhile, in many settings amenable to meta-learning, it is crucial to ensure that sensitive information in each task’s dataset stays private. Examples of this include learning models for word prediction on cell phone data (McMahan et al., 2018), clinical predictions using hospital records (Zhang et al., 2019), and fraud detectors for competing credit card companies (Stolfo et al., 1997). In such cases, each data-owner can benefit from information learned from other tasks, but each also desires, or is legally required, to keep their raw data private. Thus, it is not sufficient to learn a well-performing $\phi$ ; it is equally imperative to ensure that a task’s sensitive information is not obtainable by anyone else.
20
+
21
+ While parameter transfer algorithms can move towards this goal by peforming task-specific optimization locally, thus preventing direct access to private data, this provision is far from fail-safe in terms of privacy. A wealth of work has shown in the single-task setting that it is possible for an adversary with only access to the model to learn detailed information about the training set, such as the presence or absence of specific records (Shokri et al., 2017) or the identities of sensitive features given other covariates (Fredrikson et al., 2015). Furthermore, Carlini et al. (2018) showed that deep neural networks can effectively memorize user-unique training examples, which can be recovered even after only a single epoch of training. As such, in parameter-transfer methods, the meta-learner or any downstream participant can potentially recover data from a previous task.
22
+
23
+ However, despite these serious risks, privacy-preserving meta-learning has remained largely an unstudied problem. Our work aims to address this issue by applying differential privacy (DP), a well-established definition of privacy with rich theoretical guarantees and consistent empirical success at preventing leakages of data (Carlini et al., 2018; Fredrikson et al., 2015; Jayaraman and Evans, 2019). Crucially, although there are various threat models and degrees of DP one could consider in the meta-learning setting (as we outline in Section 2), we balance the well-documented trade-off between privacy and model utility by formalizing and focusing on a setting that we call task-global DP. This setting provides a strong privacy guarantee for each task-owner that sharing $\widehat { \theta } _ { t }$ with the meta-learner will not reliably reveal anything about specific training examples to any downstream agent. It also allows us to use the framework of Khodak et al. (2019a) to provide a DP GBML algorithm that enjoys provable learning guarantees in convex settings.
24
+
25
+ Finally, we show an application of our work by drawing connections to federated learning (FL) (Li et al., 2019). While standard methods for FL, such as FedAvg (McMahan et al., 2017), have inspired many works also concerning DP in a multi-user setup (Agarwal et al., 2018; Bhowmick et al., 2019; Geyer et al., 2018; McMahan et al., 2018; Truex et al., 2019), we are the first to consider task-global DP as a useful variation on standard DP settings. Moreover, these works fundamentally differ from ours in that they do not consider a task-based notion of learnability, instead focusing on the global federated learning problem to learn a single global model. That being said, a federated setting involving per-user personalization (Chen et al., 2018; Smith et al., 2017) is a natural meta-learning application.
26
+
27
+ More specifically, our main contributions are:
28
+
29
+ 1. We are the first to provide a taxonomy for the different notions of DP possible for meta-learning. In particular, we formalize on a variant we call task-global DP, showing and arguing that it adds a useful option to commonly studied settings in terms of trading privacy and accuracy.
30
+ 2. We propose the first DP GBML algorithm, which we construct to satisfy this privacy setting. Further, we show a straightforward extension for obtaining a group $D P$ version of our setting to protect multiple samples simultaneously.
31
+ 3. While our privacy guarantees hold generally, we also prove learning-theoretic results in convex settings. Our learning guarantees scale with task-similarity, as measured by the closeness of the task-specific optimal parameters (Denevi et al., 2019; Khodak et al., 2019b).
32
+ 4. We show that our algorithm, along with its theoretical guarantees, naturally carries over to federated learning with personalization. Compared to previous notions of privacy considered in works for DP federated learning (Agarwal et al., 2018; Bhowmick et al., 2019; Geyer et al., 2018; McMahan et al., 2018; Truex et al., 2019), we are, to the best of our knowledge, the first to simultaneously provide both privacy and learning guarantees.
33
+ 5. Empirically, we demonstrate that our proposed privacy setting allows for strong performance on federated language-modeling and few-shot image classification tasks. For the former, we achieve close to the performance of non-private models and significantly improve upon the performance of models trained with local-DP guarantees, a previously studied notion that also provides protections against the meta-learner. Our setting reasonably relaxes this latter notion but can achieve roughly 1.7–2.3 times the accuracy on a modified version of the Shakespeare dataset (Caldas et al., 2018) and 1.6–1.7 times the accuracy on a modified version of Wiki-3029 (Arora et al., 2019) across various privacy budgets. For image-classification, we show that we show that we can still retain significant benefits of meta-learning while applying task-global DP on Omniglot (Lake et al., 2011) and Mini-ImageNet (Ravi and Larochelle, 2017).
34
+
35
+ # 1.1 RELATED WORK
36
+
37
+ DP Algorithms in Federated Learning Settings. Works most similar to ours focus on providing DP for federated learning. Specifically, Geyer et al. (2018) and McMahan et al. (2018) apply update clipping and the Gaussian Mechanism to achieve user-level global DP federated learning algorithms for language modeling and image classification tasks respectively. Their methods are shown to only suffer minor drops in accuracy compared to non-private training but they do not consider protections to inferences made by the meta-learner. Alternatively, Bhowmick et al. (2019) does achieve such protection by applying a theoretically rate-optimal local DP mechanism on the ${ \bar { \theta } } _ { t }$ ’s users send to the meta-learner. However, they sidestep hard minimax rates (Duchi et al., 2018) by assuming the central server has limited side-information and allowing for a large privacy budget. In this work, though we achieve a relaxation of the privacy of Bhowmick et al. (2019), we do not restrict the adversary’s power. Finally, Truex et al. (2019) does consider a setting that coincides with task-global DP, but they focus primarily on the added benefits of applying MPC (see below) rather than studying the merits of the setting in comparison to other potential settings.
38
+
39
+ Secure Multiparty Computation (MPC). MPC is a cryptographic technique that allows parties to calculate a function of their inputs while also maintaining the privacy of each individual inputs. In GBML, sets of model updates may come in a batch from multiple tasks, and hence MPC can securely aggregate the batch before it is seen by the meta-learner. Though MPC itself gives no DP guarantees against future inference, it can combined with DP to increase privacy. This approach has been studied in the federated setting, e.g. by Agarwal et al. (2018), who apply MPC in the same difficult setting of Bhowmick et al. (2019), and Truex et al. (2019), who apply MPC similarly to a setting analogous to ours. On the other hand, MPC also comes with additional practical challenges such as peer-to-peer communication costs, drop outs, and vulnerability to collaborating participants. As such, combined with its applicability to multiple settings, including ours, we consider MPC to be an orthogonal direction.
40
+
41
+ # 2 PRIVACY IN A META-LEARNING CONTEXT
42
+
43
+ In this section, we first formalize the meta-learning setting that we consider. We then describe the various threat models that arise in the GBML setup, before presenting the different DP notions that can be achieved. Finally, we highlight the specific model and type of DP that we analyze.
44
+
45
+ # 2.1 PARAMETER TRANSFER META-LEARNING
46
+
47
+ In parameter transfer meta-learning, we assume that there is a set of learning tasks $t = 1 , \dots , T$ , each with its corresponding disjoint training set $D _ { t }$ . Each $D _ { t }$ contains $m _ { t }$ training examples $\{ z _ { t , i } \} _ { i = 1 } ^ { m _ { t } }$ where each $\boldsymbol { z } _ { t , i } \in \mathcal { X } \times \mathcal { Y }$ . The goal within each task is to learn a function $f _ { \hat { \theta } _ { t } } : \mathcal { X } \xrightarrow { } \mathcal { V }$ parameterized by $\widehat { \theta } _ { t } \in \Theta \subset \mathbb { R } ^ { d }$ that performs β€œwell,” generally in the sense that it has low within-task population risk in the distributional setting. The meta-learner’s goal is to learn an initialization $\phi \in \Theta$ that leads to a well-performing $\widehat { \theta } _ { t }$ within-task. In GBML this $\phi$ is learned via an iterative process that alternates between the following two steps: (1) a within-task procedure where a batch of task-owners $B$ receives the current $\phi$ and each $t \in B$ uses $\phi$ as an initialization for running a within-task optimization procedure, obtaining $\bar { \theta } _ { t } ( D _ { t } , \phi )$ ; (2) a meta-level procedure where the meta-learner receives these model updates $\{ { \bar { \theta } } _ { t } \} _ { t \in B }$ and aggregates them to determine an updated $\phi$ . Note that we do not assume $\widehat { \theta } _ { t } = \bar { \theta } _ { t }$ , as the updates shared for the meta-learning procedure can be obtained from a different procedure than the refined model used for downstream within-task inference. This is especially the case when concerning the addition of noise for DP as part of the meta-learning procedure.
48
+
49
+ # 2.2 THREAT MODELS FOR GBML
50
+
51
+ As in any privacy endeavor, before discussing particular mechanisms, a key specification must be made in terms of what threat model is being considered. In particular, it must be specified both (1) who the potential adversaries are and (2) what information needs to be protected.
52
+
53
+ Potential adversaries. For a single task-owner, adversaries may be either solely recipients of $\phi$ (i.e. other task-owners) or recipients of either $\phi$ or ${ \bar { \theta } } _ { t }$ (i.e. also the meta-learner). In the latter case, we consider only a honest-but-curious meta-learner, who does not deviate from the agreed upon algorithm but may try to make inferences from ${ \bar { \theta } } _ { t }$ . In both cases, concern is placed not only about these other participants’ intentions, but also their own security against access by malicious outsiders.
54
+
55
+ Data to be protected. A system can choose either to protect information contained in single records $z _ { t , i }$ one-at-a-time or to protect entire datasets $D _ { t }$ simultaneously. This distinction between record-level and task-level privacy can be practically important. Multiple $z _ { t , i }$ within $D _ { t }$ may reveal the same secret (e.g., a cell-phone user has sent their SSN multiple times), or the entire distribution of $D _ { t }$ could reveal sensitive information (e.g., a user has sent all messages in a foreign language). In these cases, record-level privacy may not be sufficient. However, given that privacy and utility are often at odds, we often seek the weakest notion of privacy needed in order to best preserve utility.
56
+
57
+ ![](images/1af50ef442ecb2263b0ad5b33eec347594b127d79b6e088e27c64606c511143e.jpg)
58
+ Figure 1: Summary of the privacy protections guaranteed by local and global DP at the different levels of the meta-learning problem (with our notion in blue). On the right, we show what each specification would mean in two practical federated scenarios: mobile users and hospital networks.
59
+
60
+ In related work, focus has primarily been placed on task-level protections. However, such approaches usually fall into two extremes, either obtaining strong learning but having to trust the meta-learner (McMahan et al., 2018; Geyer et al., 2018) or trusting nobody but also obtaining low performance (Bhowmick et al., 2019). In response, we try to bridge the gap between these threat models by considering a model that makes a relaxation from task-level to record-level privacy but retains protections for each task-owner against all other parties. This relaxation can be reasonably justified in practical situations, as while task-level guarantees are strictly stronger, they may also be unnecessary. In particular, record-level guarantees are likely to be sufficient whenever single records each pertain to different individuals. For example, for hospitals, what we care about is providing privacy to the individual patients and not aggregate hospital information. For cell-phones, if one can bound the number of texts that could reveal the same sensitive information, then a straightforward extension of our setting and methods, which protects up to $k$ records simultaneously, could also be sufficient.
61
+
62
+ # 2.3 DIFFERENTIAL PRIVACY (DP) IN A SINGLE-TASK SETTING
63
+
64
+ In terms of actually achieving privacy guarantees for machine learning, a de-facto standard has been to apply DP, a provision which strongly limits what one can infer about the examples a given model was trained on. Assuming a training set $D = \{ z _ { 1 } , \dots , z _ { m } \}$ , two common types of DP are considered.
65
+
66
+ Differential Privacy (Global DP). A randomized mechanism $\mathcal { M }$ is $( \varepsilon , \delta )$ -differentially private if for all measurable $S \subseteq { \mathrm { R a n g e } } ( { \mathcal { M } } )$ and for all datasets $D , D ^ { \prime }$ that differ by at most one element:
67
+
68
+ $$
69
+ \mathbb { P } [ \mathcal { M } ( D ) \in \mathcal { S } ] \leq e ^ { \varepsilon } \mathbb { P } [ \mathcal { M } ( D ^ { \prime } ) \in \mathcal { S } ] + \delta
70
+ $$
71
+
72
+ If this holds for $D , D ^ { \prime }$ differing by at most $k$ elements, then $( \varepsilon , \delta ) \ k$ -group $D P$ is achieved.
73
+
74
+ Local Differential Privacy. A randomized mechanism $\mathcal { M }$ is $( \varepsilon , \delta )$ -locally differentially private if for any two possible training examples $z , z ^ { \prime } \in \mathcal { X } \times \mathcal { Y }$ and measurable $S \subseteq \mathcal { X } \times \mathcal { Y }$ :
75
+
76
+ $$
77
+ \mathbb { P } [ \mathcal { M } ( z ) \in \mathcal { S } ] \leq e ^ { \varepsilon } \mathbb { P } [ \mathcal { M } ( z ^ { \prime } ) \in \mathcal { S } ] + \delta
78
+ $$
79
+
80
+ Global DP guarantees the difficulty of inferring the presence of a specific record in the training set by observing $\mathcal { M } ( D )$ . It assumes a trusted aggregator running $\mathcal { M }$ gets direct access to $D$ and privatizes the final output. Meanwhile, local DP assumes more strictly that the aggregator also cannot be trusted, thus requiring a random mechanism to be applied individually on each $z$ before training. However, it generally results in worse model performance, suffering from hard minimax rates (Duchi et al., 2018).
81
+
82
+ Table 1: Broad categorization of the DP settings considered by our work in meta-learning and notable past works in the federated setting. Note that by using a de-centralized method for aggregation, Agarwal et al. (2018) can still protect against the meta-learner from making inferences on any individual $\widehat { \theta } _ { t }$ with what is only effectively a global DP mechanism.
83
+
84
+ <table><tr><td>Previous Work</td><td>Notion of DP</td><td>Privacy for Ξ¦</td><td>Privacy for ΞΈt</td></tr><tr><td>McMahan et al. (2018)</td><td>Global</td><td>Task-level</td><td>1</td></tr><tr><td>Geyer et al. (2018)</td><td>Global</td><td>Task-level</td><td>=</td></tr><tr><td>Bhowmick et al. (2019)</td><td>Local, Global</td><td>Task-level</td><td>Task-level</td></tr><tr><td>Agarwal et al. (2018)</td><td>Global + MPC</td><td>Task-level</td><td>Task-level</td></tr><tr><td>Truex et al. (2019)</td><td>Task-Global + MPC</td><td>Record-level</td><td>Record-level</td></tr><tr><td>Our work</td><td>Task-Global</td><td>Record-level</td><td>Record-level</td></tr></table>
85
+
86
+ # 2.4 DIFFERENTIAL PRIVACY FOR A GBML SETTING
87
+
88
+ In meta-learning, there exists a hierarchy of agents and statistical queries, so we cannot as simply define global and local DP. Here, both the meta-level sub-procedure, $\{ \bar { \theta } _ { t } \} _ { t \in B } \phi$ , and the withintask sub-procedure, $\{ z _ { t , i } \} _ { i = 1 } ^ { m _ { t } } \to \bar { \theta } _ { t }$ , can be considered individual queries and a DP algorithm can implement either to be DP. Further, for each query, the procedure may be altered to satisfy either local DP or global DP. Thus, there are four fundamental options that follow from standard DP definitions.
89
+
90
+ (1) Global $D P$ : Releasing $\phi$ will at no point compromise information regarding any specific ${ \bar { \theta } } _ { t }$ .
91
+ (2) Local $D P$ : Additionally, each ${ \bar { \theta } } _ { t }$ is protected from being revealed to the meta-learner.
92
+ (3) Task-Global $D P$ : Releasing ${ \bar { \theta } } _ { t }$ will at no point compromise any specific $z _ { t , i }$ .
93
+ (4) Task-Local $D P$ : Additionally, each $z _ { t , i }$ is protected from being revealed to task-owner.
94
+
95
+ To form analogies to single-task DP, the examples in the meta-level procedure are the model updates and the aggregator is the meta-learner. For the within-task procedure, the examples are actually the individual records and the aggregator is the task-owner. As such, (1) is implemented by the metalearner, (2) and (3) are implemented by the task-owner, and (4) is implemented by record-owners. By immunity to post-processing, the guarantees for (3) and (4) also automatically apply to the release of any future iteration of $\phi$ , thus protecting against future task-owners as well. Meanwhile, though (1) and (2) by definition protect the identities of individual ${ \bar { \theta } } _ { t }$ , they actually satisfy a task-level threat model by doing so. Intuitively, not being able to reliably infer anything about ${ \bar { \theta } } _ { t }$ implies that nothing can be inferred about the $D _ { t }$ that was used to generate it.
96
+
97
+ Using the terminology we introduce in Section 2.4, previous works for DP in federated settings can be categorized as in Table 1. While these works do not assume a multi-task setting, we can still naturally use the terms global/local and task-global/task-local to analogously refer to releasing the global model (by the central server in the case without MPC) and user-specific updates (by users’ devices) respectively.
98
+
99
+ # 3 DIFFERENTIALLY PRIVATE PARAMETER-TRANSFER
100
+
101
+ # 3.1 ALGORITHM
102
+
103
+ We now present our DP GBML method, which is written out in its online (regret) form in Algorithm 1. Here, we observe that both within-task optimization and meta-optimization are done using some form of gradient descent. The key difference between this algorithm and traditional GBML is that since task-learners must send back privatized model updates, each now applies an DP gradient descent procedure to learn ${ \bar { \theta } } _ { t }$ when called. However, at meta-test time the task-learner will run a non-private descent algorithm to obtain the parameter $\widehat { \theta } _ { t }$ used for inference, as this parameter may remain locally. To obtain learning-theoretic guarantees, we use a variant of Algorithm 1 in which the DP algorithm is an SGD procedure (Bassily et al., 2019, Algorithm 1) that adds a properly scaled Gaussian noise vector at each iteration.
104
+
105
+ Algorithm 1: Online version of our $( \varepsilon , \delta )$ -meta-private parameter-transfer algorithm.
106
+
107
+ Meta-learner picks first meta-initialization $\phi _ { 1 } \in \Theta$ . for task $t \in [ T ]$ do
108
+
109
+ Meta-learner sends meta-initialization $\phi _ { t }$ to task $t$ .
110
+ Task-learner runs OGD starting from $\theta _ { t , 1 } = \phi _ { t }$ on losses $\{ \ell _ { t , i } \} _ { i = 1 } ^ { m }$ to obtain $\widehat { \theta } _ { t }$ .
111
+ Task-learner $t$ runs $( \varepsilon , \delta )$ -DP algorithm (noisy-SGD) on losses $\{ \ell _ { t , i } \} _ { i = 1 } ^ { m }$ to get ${ \bar { \theta } } _ { t }$ .
112
+ Task-learner sends ${ \bar { \theta } } _ { t }$ to meta-learner.
113
+ Meta-learner constructs loss $\begin{array} { r } { \ell _ { t } ( \phi ) = \frac 1 2 \| \bar { \theta } _ { t } - \phi _ { t } \| _ { 2 } ^ { 2 } } \end{array}$ .
114
+ Meta-learner updates meta-initialization $\phi _ { t + 1 }$ using an OCO algorithm on $\ell _ { 1 } , \ldots , \ell _ { t }$ .
115
+
116
+ Result: Meta-initialization $\begin{array} { r } { { \hat { \phi } } = { \frac { 1 } { T } } \sum _ { t = 1 } ^ { T } \phi _ { t } } \end{array}$ to use on test tasks.
117
+
118
+ # 3.2 PRIVACY GUARANTEES
119
+
120
+ We run a certified $( \varepsilon , \delta )$ -DP version of SGD (Bassily et al., 2019, Algorithm 1) within each task. Therefore, this guarantees that the contribution of each task-owner, a $\bar { \theta } _ { t }$ trained on their data, carries global DP guarantees with respect to the meta-learner. Additionally, since DP is preserved under post-processing, the release of any future calculation stemming from ${ \bar { \theta } } _ { t }$ also carries the same DP guarantee.
121
+
122
+ # 3.3 LEARNING GUARANTEES
123
+
124
+ Our learning result follows the setup of Baxter (2000), who formalized the LTL problem as using task-distribution samples $\mathcal { P } _ { 1 } , . . . , \mathcal { P } _ { T } \sim \mathcal { Q }$ from some meta-distribution $\mathcal { Q }$ and samples indexed by $i = 1 , \ldots , m$ from those tasks to improve performance when a new task $\mathcal { P }$ is sampled from $\mathcal { Q }$ and we draw $m$ samples from it. In the setting of parameter-transfer meta-learning we are learning functions parameterized by real-valued vectors $\overline { { \theta } } \in \dot { \Theta } \subset \mathbb { R } ^ { d }$ , so our goal will follow that of Denevi et al. (2019) and Khodak et al. (2019b) in seeking bounds on the transfer-risk – the distributional performance of a learned parameter on a new task from $\mathcal { Q }$ – that improve with task similarity.
125
+
126
+ The specific task-similarity metric we consider is the average deviation of the risk-minimizing parameters of tasks sampled from the distribution $\mathcal { Q }$ are close together. This will be measured in-terms of the following quantity: $\begin{array} { r } { V ^ { 2 } = \operatorname* { m i n } _ { \phi \in \Theta } \frac { 1 } { 2 } \mathbb { E } _ { \mathcal { P } \sim \mathcal { Q } } \| \theta _ { \mathcal { P } } - \phi \| _ { 2 } ^ { 2 } } \end{array}$ , for $\theta _ { P } \in \arg \operatorname* { m i n } _ { \theta \in \Theta } \ell _ { \mathcal { P } } ( \theta )$ a risk-minimizer of task-distribution $\mathcal { P }$ . This quantity is roughly the variance of risk-minimizing task-parameters and is a standard quantifier of improvement due to meta-learning (Denevi et al., 2019; Khodak et al., 2019b). For example, Denevi et al. (2019) show excess transfer-risk guarantees of the form $\begin{array} { r } { \mathcal { O } \left( \frac { V } { \sqrt { m } } + \sqrt { \frac { \log T } { T } } \right) } \end{array}$ when $T$ tasks with $m$ samples are drawn from the distribution. This guarantee ensures that as we see more tasks our transfer risk becomes roughly $V / \sqrt { m }$ , which if the tasks are similar, i.e. $V$ is small, implies that LTL improves over single-task learning.
127
+
128
+ In Algorithm 1, each user $t$ obtains a within-task parameter ${ \bar { \theta } } _ { t }$ by running (non-private) OGD on a sequence of losses $\ell _ { t , 1 } , \ldots , \ell _ { t , m }$ and averaging the iterates. The regret of this procedure, when averaged across the users, implies a bound on the expected excess transfer risk of new task from $\mathcal { Q }$ when running OGD from a learned initialization (Cesa-Bianchi et al., 2004). Thus our goal is to bound this regret in terms of $V$ ; here we follow the Average Regret-Upper-Bound Analysis (ARUBA) framework of Khodak et al. (2019b) and treat meta-update procedure itself as an online algorithm optimizing a bound on the performance measure (regret) of each within-task algorithm. As OGD’s regret depends on the squared distance $\frac { 1 } { 2 } \| \theta _ { t } ^ { * } - \phi _ { t } \| _ { 2 } ^ { 2 }$ of the optimal parameter from the initialization $\phi _ { t }$ , with no privacy concerns one could simply update $\phi _ { t }$ using $\begin{array} { r } { \theta _ { t } ^ { * } \in \arg \operatorname* { m i n } _ { \theta \in \Theta } \sum _ { i = 1 } ^ { m } \ell _ { t , i } ( \theta ) } \end{array}$ to recover guarantees similar to those in Denevi et al. (2019) and Khodak et al. (2019b).
129
+
130
+ However, this approach requires sending $\theta _ { t } ^ { * }$ to the meta-learner, which is not private; instead in Algorithm 1 we send $\widehat { \theta } _ { t }$ , which is the output of noisy SGD. To apply ARUBA, we need an additional assumption – that the losses satisfy the following quadratic growth (QG) property: for some $\alpha > 0$ ,
131
+
132
+ $$
133
+ \frac { \alpha } { 2 } \| \theta - \theta _ { \mathcal { P } } \| _ { 2 } ^ { 2 } \le \ell _ { \mathcal { P } } ( \theta ) - \ell _ { \mathcal { P } } ( \theta _ { \mathcal { P } } ) \quad \forall \theta \in \Theta
134
+ $$
135
+
136
+ Here $\theta _ { \mathcal { P } }$ is the risk minimizer of $\ell _ { \mathcal { P } }$ . This assumption, which Khodak et al. (2019a) shows is reasonable in settings such as logistic regression, amounts to a statistical non-degeneracy assumption on the parameter-space – that parameters far away from the risk-minimizer do not have low-risk. Note that assuming the population risk is QG is significantly weaker than assuming strong convexity of the empirical risk, which previous work (Finn et al., 2019) has assumed to hold for task losses but does not hold for applicable cases such as few-shot least-squares or logistic regression if the number of task-samples is smaller than the data-dimension.
137
+
138
+ We are now able to state our main theoretical result, a proof of which is given in Appendix A. The result follows from a bound on the task-averaged regret across all tasks of a simple online meta-learning procedure that treats the update ${ \bar { \theta } } _ { t }$ sent by each task as an approximation of the optimal parameter in hindsight $\theta _ { t } ^ { * }$ . Since this parameter determines regret on that task, by reducing the metaupdate procedure to OCO on this sequence of functions in a manner similar to (Khodak et al., 2019a), we are able to show a task-similarity-dependent bound. Following this the statistical guarantee stems from a nested online-to-batch conversion, a standard procedure to convert low-regret online-learning algorithms to low-risk distribution-learning algorithms (Cesa-Bianchi et al., 2004).
139
+
140
+ Theorem 3.1. Suppose $\mathcal { Q }$ is a distribution over task-distributions $\mathcal { P }$ over $G$ -Lipschtz, $\beta$ -stronglysmooth, $^ { l }$ -bounded convex loss functions $\ell : \Theta \mapsto \mathbb { R }$ over parameter space $\Theta$ with diameter $D$ for $\begin{array} { r } { \beta \leq \frac { G } { D } \operatorname* { m i n } \left( \sqrt { \frac { m } { 2 } } , \frac { \varepsilon m } { 2 \sqrt { 2 d \log \frac { 1 } { \delta } } } \right) } \end{array}$ and let each $\mathcal { P }$ satisfy the quadratic growth property (1). Suppose the distribution $\mathcal { P } _ { t }$ of each task is sampled i.i.d. from $\mathcal { Q }$ and we run Algorithm 1 with the $( \varepsilon , \delta )$ -DP procedure of Bassily et al. (2019, Algorithm $I$ ) to obtain ${ \bar { \theta } } _ { t }$ as the average iterate for the meta-update step, using $n \geq 1$ steps and learning rate $\frac { \gamma } { G \sqrt { n } } f o r \gamma > 0$ . Letting $\begin{array} { r } { V ^ { 2 } = \operatorname* { m i n } _ { \phi \in \Theta } \frac { 1 } { 2 } \mathbb { E } _ { \mathcal { P } \sim \mathcal { Q } } \| \theta _ { \mathcal { P } } - \phi \| _ { 2 } ^ { 2 } } \end{array}$ , there exist settings of $n , \gamma , \eta$ such that we have the following bound on the expected transfer risk when a new task $\mathcal { P }$ is sampled from $\mathcal { Q }$ , m samples are drawn i.i.d. from $\mathcal { P }$ , and we run $O G D$ with learning rate $\eta$ starting from $\begin{array} { r } { { \hat { \phi } } = { \frac { 1 } { T } } \sum _ { t = 1 } ^ { T } \phi _ { t } } \end{array}$ and use the average $\hat { \theta }$ of the resulting iterates as the learned parameter:
141
+
142
+ $$
143
+ \mathbb { E } \underset { \mathcal { P } \sim \mathcal { Q } \ : \ell \sim \mathcal { P } } { \mathbb { E } } \ell ( \hat { \theta } ) \leq \underset { \mathcal { P } \sim \mathcal { Q } \ : \ell \sim \mathcal { P } } { \mathbb { E } } \ell ( \theta ^ { * } ) + \tilde { \mathcal { O } } \left( \frac { V } { \sqrt { m } } + \frac { \alpha D ^ { 2 } } { T } + \frac { 1 } { \alpha } \operatorname* { m a x } \left( \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right) \right)
144
+ $$
145
+
146
+ Here $\theta ^ { * }$ is any element of $\Theta$ and the outer expectation is taken over $\ell _ { t , i } \sim \mathcal { P } _ { t } \sim \mathcal { Q }$ and the randomness of the within-task $D P$ mechanism. Note that this procedure is $( \varepsilon , \delta )$ -DP.
147
+
148
+ Theorem 3.1 shows that one can usefully run a DP-algorithm as the within-task method in meta-√ learning and still obtain improvement due to task-similarity. Specifically, the standard term of $1 / \sqrt { m }$ is multiplied by $V$ , which is small if the tasks are related via the closeness of their risk minimizers. Thus we can use meta-learning to improve within-task performance relative to single-task learning. We also obtain a very fast convergence of $\tilde { \mathcal { O } } ( 1 / T )$ in the number of tasks. However, we do gain some $O ( 1 / m )$ terms due to the quadratic growth approximation and the privacy mechanism. Note that the assumption that both the functions and its gradients are Lipschitz-continuous are standard and required by the noisy SGD procedure of Bassily et al. (2019).
149
+
150
+ This theorem also gives us a relatively straightforward extension if the desire is to provide $( \varepsilon , \delta )$ - group-DP. Since any privacy mechanism that provides $( \varepsilon , \delta )$ -DP also provides $( k \varepsilon , k e ^ { ( k - 1 ) \epsilon } \delta )$ -DP guarantees for groups of size $k$ (Dwork and Roth, 2014), we immediately have the following corollary.
151
+
152
+ Corollary 3.1. Under the same assumptions and setting as Theorem 3.1, achieving $( \varepsilon , \delta )$ -group $D P$ is possible with the same guarantee except replacing $\frac { d \log { \frac { 1 } { \delta } } } { \varepsilon ^ { 2 } }$ wit h k 3 d $\begin{array} { r } { \frac { k ^ { 3 } d } { \varepsilon } + \frac { k ^ { 2 } d } { \varepsilon } \left[ \frac { 1 } { \varepsilon } \log \frac { k } { \delta } - 1 \right] } \end{array}$
153
+
154
+ For constant $k$ , this allows us to enjoy the stronger guarantee while maintaining largely the same learning rates. This is a useful result given that in some settings, it may be desired to simultaneously protect small groups of size $k < < m _ { t }$ , such as protecting entire families for hospital records.
155
+
156
+ # 4 EMPIRICAL RESULTS
157
+
158
+ We present results that show it is possible to learn useful deep models in federated scenarios while still preserving privacy against all other participants. Specifically, we evaluate the performance of models that have been trained with a task-global DP algorithm in comparison to models that have been trained both non-privately and with local DP algorithms. We evaluate performance on federated language modeling and few-shot image classification, applying a practical batched variant of Algorithm 1.
159
+
160
+ ![](images/6bf7b551960969d39cb4270213f258dac4ce3fbf1628fb1f4cb2c1861206e1cf.jpg)
161
+ Figure 2: Performance of different versions of Reptile on a next-word-prediction task for two federated datasets. We report the test accuracy on unseen tasks and repeat each experiment 10 times. Solid lines correspond to means, colored bands indicate 1 standard deviation, and dotted lines are for comparing final accuracies (private algorithms can only be trained until privacy budget is met).
162
+
163
+ Datasets: We train a LSTM-RNN for next word prediction on two federated datasets: (1) The Shakespeare dataset as preprocessed by (Caldas et al., 2018), and (2) a dataset constructed from 3, 000 Wikipedia articles drawn from the Wiki-3029 dataset (Arora et al., 2019), where each article is used as a different task. For each dataset, we set a fixed number of tokens per task, discard tasks with fewer tokens than the specified, and discard samples from those tasks with more. We set the number of tokens per task to 800 for Shakespeare and to 1, 600 for Wikipedia, divide tokens into sequences of length 10, and we refer to these modified datasets as Shakespeare-800 and Wiki-1600.
164
+
165
+ For few-shot image classification, we use the Omniglot (Lake et al., 2011) and Mini-ImageNet (Ravi and Larochelle, 2017) datasets, both with 5-shot-5-way test tasks. As has been done for non-private Reptile (Nichol et al., 2018), we use more training shots at meta-training (trying $m = 1 0 , 2 0 , 3 0$ for Omniglot and $m = 1 5$ , 30, 45 for Mini-ImageNet) than at meta-test time. Though tasks could be sampled indefinitely, we set a fixed budget of tasks at $T = 1 0 ^ { 6 }$ to reflect to a setting in which a finite number of training tasks constrains our learning and privacy trade-off. For both local and task-global DP, the more tasks that can be grouped in a meta-batch means that less total noise can be added at each round. However, this also means fewer iterations can be taken. We note that for the smallest values of $m$ , this setting is enough for non-private training to essentially achieve the reported final accuracies from Nichol et al. (2018).
166
+
167
+ Meta Learning Algorithm. We study the performance of our method when applied to the batched version of Reptile (Nichol et al., 2018) (which, in our setup, reduces to personalized Federated Averaging when the meta-learning rate is set to 1.0). For the language modelling tasks, we tune various configurations of task batch size for all methods. We also allow for multiple visits per client, though at the cost of more added noise per iteration for the private methods. Additionally, for language modeling, we implement gradient clipping and exponential decay on the meta learning rate. For Omniglot and Mini-ImageNet, we use largely the same parameters as Nichol et al. (2018) but we tune the parameters most directly related to privacy: the $L _ { 2 }$ clipping threshold, the Adam Learning Rate at meta-training time, the meta-batch size, and the within-task batch size. We defer a more complete discussion of hyperparameter tuning to Appendix B.
168
+
169
+ ![](images/980bb10fd82738ffbdd39b856bb0072baf7ab0596be743b1d9753fed73b6ca3d.jpg)
170
+ Figure 3: Performance of task-global DP Reptile on 5-shot-5-way Omniglot and Mini-ImageNet. $1 0 ^ { \overline { { 5 } } }$ sampled test- tasks were used for evaluation and experiments were repeated 3 times. We do not show a line for Local DP since all hyperparameter settings tried for Local DP resulted in worse performance than the β€œNo Meta-Learning" baseline, whose performance can always be recovered.
171
+
172
+ Privacy Considerations. For the task-global DP models, we set on each task and we implement DP-SGD (for language model $\delta = 1 0 ^ { - 3 } < \frac { 1 } { m ^ { 1 . 1 } }$ by conventionm (for imageclassification) within-task using the tools provided by TensorFlow Privacy1, using the RDP accountant to track our privacy budgets. Although these algorithms differ from the one presented in Section 3, they still let us realistically explore the efficacy of considering task-global privacy. For the language modeling datasets, we try three different privacy budgets (as determined relative to each other by successively doubling the amount of noise added when the goal is to take 1 full gradient step per task) and make sure that all training tasks are sampled without replacement with a fixed batch size until all are seen. This is necessary since multiple visits to a single client results in degradation of the privacy guarantee for that client. We instead aim to provide the same guarantee for each client. For local-DP, though this notion of DP is stronger, we explore the same privacy budgets so as to obtain guarantees that are of the same confidence. Here, we essentially run the DP-FedAvg algorithm from (McMahan et al., 2018) with some key changes. First, to get local DP instead of global, we add Gaussian noise to each clipped set of model updates before returning them to the central server instead of after aggregation. Second, while additional gradient steps within-task do not increase the amount of noise required, we do again iterate through tasks without replacement. Unlike for global DP, we cannot hope to have any privacy boosts due to sub-sampling if the meta-learner knows who it is communicating with.
173
+
174
+ Results. Figure 2 shows the performance of both the non-private and task-global private versions of Reptile (Nichol et al., 2018) for the language modelling tasks across three different privacy budgets. As expected, neither private algorithm reaches the same accuracy of the non-private version of the algorithm. Nonetheless, the task-global version still comes within $7 8 \%$ , $8 8 \%$ , and $9 2 \%$ of the nonprivate accuracy for Shakespeare-800 and within $7 2 \%$ , $8 2 \%$ , and $8 3 \%$ for Wiki-1600. Meanwhile achieving local DP results in only about $5 5 \%$ and $5 0 \%$ of the non-private accuracy on both datasets for the most generous privacy budget. In practice, these differences can be toggled by further changing the privacy budget or continuing to trade off more training iterations for larger noise multipliers.
175
+
176
+ We display results for few-shot image classification on Omniglot and Mini-ImageNet in Figure 3. In this setting, not applying meta-learning results in meta-test accuracies of around $6 2 \%$ and $3 6 \%$ , respectively. Thus, while performance is indeed lower than non-private learning, applying task-global DP does result in meta-learning benefits for test-time tasks. In settings where privacy is a concern, this increase in performance is still significantly advantageous for the β€œtask-owners”– test-time tasks (who hold less data). On average, they are able to obtain better models and are still guaranteed privacy at a single-digit $\varepsilon$ . Intuitively, larger training-task datasets make it easier to apply privacy within-task, and in accordance with our learning guarantees, adding training shots indeed closes the gap in performance between task-global DP Reptile and non-private Reptile. In comparison, applying local-DP for a similar hyperparameter range consistently decreases performance at test-time. However, the no-meta-learning baseline is a theoretical lower bound for local-DP, as one could set the clipping threshold or meta-learning rate close to 0 to recover the effects of no meta-learning.
177
+
178
+ # 5 CONCLUSIONS
179
+
180
+ In this work, we have outlined and studied the issue of privacy in the context of meta-learning. Focusing on the class of gradient-based parameter-transfer methods, we used differential privacy to address the privacy risks posed to task-owners by sharing task-specific models with a central meta-learner. To do so, we formalized and considered the notion of task-global differential privacy, which guarantees that individual examples from the tasks are protected from all downstream agents (and particularly the meta-learner). Working in this privacy model, we developed a differentially private algorithm that guarantees both this protection as well as learning-theoretic results in the convex setting. Finally, we demonstrate how this notion of privacy can translate into useful deep learning models for non-convex language modelling and image-classification tasks.
181
+
182
+ # ACKNOWLEDGMENTS
183
+
184
+ This work was supported in part by DARPA FA875017C0141, the National Science Foundation grants IIS1618714, IIS1705121, and IIS1838017, an Okawa Grant, a Google Faculty Award, an Amazon Web Services Award, a JP Morgan A.I. Research Faculty Award, and a Carnegie Bosch Institute Research Award. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of DARPA, the National Science Foundation, or any other funding agency.
185
+
186
+ # REFERENCES
187
+
188
+ Naman Agarwal, Ananda Theertha Suresh, Felix Xinnan X Yu, Sanjiv Kumar, and Brendan McMahan. cpsgd: Communication-efficient and differentially-private distributed sgd. In Advances in Neural Information Processing Systems 31, pages 7564–7575. Curran Associates, Inc., 2018.
189
+
190
+ Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Nikunj Saunshi, and Orestis Plevrakis. A theoretical analysis of contrastive unsupervised representation learning. In Proceedings of the 36th International Conference on Machine Learning, 2019.
191
+
192
+ Raef Bassily, Vitaly Feldman, Kunal Talwar, and Abhradeep Thakurta. Private stochastic convex optimization with optimal rates. arXiv, 2019. URL https://arxiv.org/abs/1908.09970.
193
+
194
+ Jonathan Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12: 149–198, 2000.
195
+
196
+ Abhishek Bhowmick, John Duchi, Julien Freudiger, Gaurav Kapoor, and Ryan Rogers. Protection against reconstruction and its applications in private federated learning, 2019. https://arxiv. org/abs/1812.00984.
197
+
198
+ Sebastian Caldas, Peter Wu, Tian Li, Jakub KonecnΓ½, H. Brendan McMahan, Virginia Smith, and Ameet Talwalkar. LEAF: A benchmark for federated settings, 2018. URL http://arxiv. org/abs/1812.01097.
199
+ Nicholas Carlini, Chang Liu, Jernej Kos, Úlfar Erlingsson, and Dawn Song. The secret sharer: Measuring unintended neural network memorization & extracting secrets, 2018. URL http: //arxiv.org/abs/1802.08232.
200
+ NicolΓ³ Cesa-Bianchi, Alex Conconi, and Claudio Gentile. On the generalization ability of on-line learning algorithms. IEEE Transactions on Information Theory, 50(9):2050–2057, 2004.
201
+ Fei Chen, Zhenhua Dong, Zhenguo Li, and Xiuqiang He. Federated meta-learning for recommendation. CoRR, abs/1802.07876, 2018. URL http://arxiv.org/abs/1802.07876.
202
+ Giulia Denevi, Carlo Ciliberto, Riccardo Grazzi, and Massimiliano Pontil. Learning-to-learn stochastic gradient descent with biased regularization, 2019. URL http://arxiv.org/abs/1903. 10399.
203
+ John Duchi, Martin Wainwright, and Michael Jordan. Minimax optimal procedures for locally private estimation. In Journal of the American Statistical Association. 2018.
204
+ Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3&4):211–407, 2014. doi: 10.1561/0400000042.
205
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning, 2017.
206
+ Chelsea Finn, Aravind Rajeswaran, Sham M. Kakade, and Sergey Levine. Online meta-learning. In Proceedings of the 36th International Conference on Machine Learning, 2019.
207
+ Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1322–1333, 2015.
208
+ Robin C. Geyer, Tassilo J. Klein, and Moin Nabi. Differentially private federated learning: A client level perspective, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ SkVRTj0cYQ.
209
+ Bargav Jayaraman and David Evans. When relaxations go bad: "differentially-private" machine learning, 2019. URL http://arxiv.org/abs/1902.08874.
210
+ Mikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Provable guarantees for gradient-based meta-learning. In Proceedings of the 36th International Conference on Machine Learning, 2019a.
211
+ Mikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Adaptive gradient-based meta-learning methods. In Advances in Neural Information Processing Systems, 2019b. To Appear.
212
+ Brenden M. Lake, Ruslan Salakhutdinov, Jason Gross, and Joshua B. Tenenbaum. One shot learning of simple visual concepts. In CogSci, 2011.
213
+ Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions, 2019. URL http://arxiv.org/abs/1908.07873.
214
+ H Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, pages 1273–1282, 2017.
215
+ H. Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private language models. In ICLR, 2018.
216
+ Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. CoRR, abs/1803.02999, 2018. URL http://arxiv.org/abs/1803.02999.
217
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proceedings of the 5th International Conference on Learning Representations, 2017.
218
+ Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.
219
+ Reza Shokri, Marco Stronati, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In Proceedings of 2017 IEEE Symposium on Security and Privacy, pages 3–18, 2017.
220
+ Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems 31, 2017.
221
+ Salvatore J. Stolfo, David W. Fan, Wenke Lee, Andreas L. Prodromidis, and Philip K. Chan. Credit card fraud detection using meta-learning: Issues and initial results 1. In Working notes of AAAI Workshop on AI Approaches to Fraud Detection and Risk Management., 1997.
222
+ Stacey Truex, Nathalie Baracaldo, Ali Anwar, Thomas Steinke, Heiko Ludwig, and Rui Zhang. A hybrid approach to privacy-preserving federated learning, 2019. URL http://arxiv.org/ abs/1812.03224.
223
+ Xi Sheryl Zhang, Fengyi Tang, Hiroko Dodge, Jiayu Zhou, and Fei Wang. Metapred: Metalearning for clinical risk prediction with limited patient electronic health records, 2019. URL https://arxiv.org/abs/1905.03218.
224
+
225
+ # A PROOFS OF LEARNING GUARANTEES
226
+
227
+ Setting A.1. We assume that at each time-step t an adversary chooses a task-distribution $\mathcal { P } _ { t }$ over loss-functions on $\Theta \subset \mathbb { R } ^ { d }$ and samples m loss functions $\ell _ { t , i }$ for $i \in [ m ]$ . At each time-step $t$ the tasklearner receives a parameter $\phi _ { t }$ from the meta-learner, runs online gradient descent with step-size $\eta > 0$ starting from $\phi _ { t }$ , and uses the average iterate $\widehat { \theta } _ { t }$ as its learned parameter. The task-learner also runs Algorithm $I$ of Bassily et al. (2019) for $\begin{array} { r } { n = \operatorname* { m i n } \left\{ \frac { m } { 8 } , \frac { \varepsilon ^ { 2 } m ^ { 2 } } { 3 2 d \log \frac { 1 } { \delta } } \right\} } \end{array}$ steps with learning rate $\frac { \gamma } { G \sqrt { n } } > 0$ on these loss functions and sends the result ${ \bar { \theta } } _ { t }$ to the meta-learner. The meta-learner updates $\phi _ { t + 1 } = ( 1 - 1 / t ) \phi _ { t } + \bar { \theta } _ { t } / t$ . We assume all loss functions are $G$ -Lipschitz w.r.t. $\| \cdot \| _ { 2 }$ and $\beta$ -strongly-smooth w.r.t. $\| \cdot \| _ { 2 }$ for some $\begin{array} { r } { \beta \leq \frac { G } { D } \operatorname* { m i n } \left\{ \sqrt { \frac { m } { 2 } } , \frac { \varepsilon n } { 2 \sqrt { 2 d \log \frac { 1 } { \delta } } } \right\} } \end{array}$ , where $D$ is the diameter of $\Theta$ . For each distribution $\mathcal { P } _ { t }$ let $\ell _ { t } ( \theta ) = \mathbb { E } _ { \ell \sim \mathcal { P } _ { t } } ( \theta )$ be its population risk, $\begin{array} { r } { \hat { \ell } _ { t } ( \theta ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \ell _ { t , i } ( \theta ) b e } \end{array}$ its empirical risk, and $\theta _ { t } ^ { * } \in \arg \operatorname* { m i n } _ { \theta \in \Theta } \ell _ { t } ( \theta )$ be the closest population risk minimizer to ${ \bar { \theta } } _ { t }$ .
228
+
229
+ Lemma A.1. In Setting A.1 we have
230
+
231
+ $$
232
+ \mathbb { E } \ell _ { t } ( \hat { \theta } _ { t } ) - \ell _ { t } ( \theta _ { t } ^ { * } ) \leq 5 G \left( \frac { \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } { \gamma } + \gamma \right) \operatorname* { m a x } \left\{ \frac { \sqrt { d \log \frac { 1 } { \delta } } } { \varepsilon m } , \frac { 1 } { \sqrt { m } } \right\}
233
+ $$
234
+
235
+ Proof. Similarly to Lemma 3.3 in Bassily et al. (2019), applying standard OGD analysis (e.g. Lemmas 14.1 and 14.9 of Shalev-Shwartz and Ben-David (2014)) to noisy gradient vectors and taking expectations yields
236
+
237
+ $$
238
+ \mathbb { E } \left( \hat { \ell } _ { t } ( \hat { \theta } _ { t } ) - \hat { \ell } _ { t } ( \theta _ { t } ^ { * } ) \right) \leq \frac { \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta n } + \frac { \eta G ^ { 2 } } { 2 } + \eta \sigma ^ { 2 } d
239
+ $$
240
+
241
+ where $n$ is the number of steps in noisy SGD and $\sigma ^ { 2 }$ is the variance of the noise added at each step. As in the proof of Theorem 3.2 of Bassily et al. (2019), substituting $\begin{array} { r } { \sigma ^ { 2 } = \frac { 8 n G ^ { 2 } \log \frac { 1 } { \delta } } { m ^ { 2 } \varepsilon ^ { 2 } } } \end{array}$ and applying the stability result in Lemma 3.4 of the same paper yields
242
+
243
+ $$
244
+ \mathbb { E } \ell _ { t } ( \hat { \theta } _ { t } ) - \ell _ { t } ( \theta _ { t } ^ { * } ) \leq \frac { \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta n } + \frac { \eta G ^ { 2 } } { 2 } \left( \frac { 1 6 n d \log \frac { 1 } { \delta } } { m ^ { 2 } \varepsilon ^ { 2 } } + 1 \right) + \frac { \eta G ^ { 2 } n } { m }
245
+ $$
246
+
247
+ Substituting $\begin{array} { r } { n = \operatorname* { m i n } \left\{ \frac { m } { 8 } , \frac { \varepsilon ^ { 2 } m ^ { 2 } } { 3 2 d \log \frac { 1 } { \delta } } \right\} } \end{array}$ and $\begin{array} { r } { \eta = \frac { \gamma } { G \sqrt { n } } } \end{array}$ yields the result.
248
+
249
+ Lemma A.2. In Setting A.1, fix some $\phi ^ { * } \in \Theta$ and define $\begin{array} { r } { \bar { V } ^ { 2 } = \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \mathbb { E } \| \phi ^ { * } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } \end{array}$ . Then for $\begin{array} { r } { \gamma = \frac { 1 2 0 G } { \alpha } \operatorname* { m a x } \left\{ \frac { \sqrt { d \log \frac { 1 } { \delta } } } { \varepsilon m } , \frac { 1 } { \sqrt { m } } \right\} } \end{array}$ we have
250
+
251
+ $$
252
+ \mathbb { E } \sum _ { t = 1 } ^ { T } \frac { \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta m } \leq \frac { D ^ { 2 } ( 1 + \log T ) + 4 \hat { V } ^ { 2 } T } { 2 \eta m } + \frac { 7 2 0 0 G ^ { 2 } } { \alpha ^ { 2 } \eta m } \operatorname* { m a x } \left\{ \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right\} T
253
+ $$
254
+
255
+ Proof. We first bound the left-hand side without the denominator as
256
+
257
+ $$
258
+ \begin{array} { r l } { \varepsilon _ { \perp } \ge \frac { \varepsilon _ { \perp } } { \varepsilon _ { \perp } } \ge \frac { 1 } { \varepsilon _ { \perp } } \ge } & { \varepsilon _ { \perp } } \\ & { = 1 } \\ & { \le 2 \kappa \sum _ { i = 1 } ^ { \nu } \| \partial _ { i } - \partial _ { i } \xi \| ^ { 2 } + \| \partial _ { i } - \theta _ { i } \| ^ { 2 } } \\ & { \le D ^ { \perp } ( 1 - \log { \varepsilon _ { \perp } } ) + 2 \sum _ { i = 1 } ^ { \nu } \| \phi - \varepsilon _ { \perp } \| ^ { 2 } + \| \partial _ { i } - \partial _ { i } \xi \| ^ { 2 } } \\ & { \le D ^ { \perp } ( 1 - \log { \varepsilon _ { \perp } } ) + 2 \sum _ { i = 1 } ^ { \nu } \| \phi - \varepsilon _ { \perp } \| ^ { 2 } + \| \partial _ { i } - \partial _ { i } \xi \| ^ { 2 } } \\ & { \le p ^ { 2 } \varepsilon _ { \perp } ^ { 2 } + 1 - \log { \varepsilon _ { \perp } } ) + 2 \sum _ { i = 1 } ^ { \nu } 2 \| \phi - \varepsilon _ { \perp } \| ^ { 2 } + \| \partial _ { i } - \partial _ { i } \xi \| ^ { 2 } } \\ & { = p ^ { 2 } \varepsilon _ { \perp } ^ { 2 } ( 1 - \log { \varepsilon _ { \perp } } ) + 4 \kappa ^ { 2 } T ^ { 2 } + 4 \| \partial _ { i } ^ { 2 } \sum _ { i = 1 } ^ { \nu } \| \hat { \varepsilon } _ { i } - \partial _ { i } \xi \| ^ { 2 } } \\ & { = D ^ { \perp } ( 1 - \log { \varepsilon _ { \perp } } ) + 4 \kappa ^ { 2 } T ^ { 2 } + 4 \| \partial _ { i } ^ { 2 } \sum _ { i = 1 } ^ { \nu } 2 \hat { \varepsilon } _ { \perp } \phi _ { i } ^ { 2 } - \varepsilon _ { \perp } ( | \partial _ { i } \xi | ^ { 2 } ) } \\ & { \le D ^ { \perp } ( 1 - \log { \varepsilon _ { \perp } } ) + 4 \kappa ^ { 2 } T ^ { 2 } + \frac { 1 } { \omega _ { \perp } } \sum _ { i = 1 } ^ { \nu } 2 \hat { \varepsilon } _ { \perp } ( \rho _ { i } ) - 6 \hat { \varepsilon } ( | \hat { \varepsilon } _ { \perp } - \hat { \varepsilon } _ { \perp } | ^ { 2 } ) } \\ & \le D ^ { \perp } ( 1 - \ \end{array}
259
+ $$
260
+
261
+ where in the last step we applied Lemma A.1. Substituting $\begin{array} { r } { \gamma = \frac { 1 2 0 G } { \alpha } \operatorname* { m a x } \left\{ \frac { \sqrt { d \log \frac { 1 } { \delta } } } { \varepsilon m } , \frac { 1 } { \sqrt { m } } \right\} } \end{array}$ yields
262
+
263
+ $$
264
+ \mathbb { E } \sum _ { t = 1 } ^ { T } \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } \leq D ^ { 2 } ( 1 + \log T ) + 4 { \bar { V } } ^ { 2 } T + \frac { 1 4 4 0 0 G ^ { 2 } } { \alpha ^ { 2 } } \operatorname* { m a x } \left\{ \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right\} T
265
+ $$
266
+
267
+ The result follows by dividing by 2Ξ·m.
268
+
269
+ Theorem A.1. In Setting A.1, suppose all distributions $\mathcal { P } _ { t }$ were drawn i.i.d. from some metadistribution $\mathcal { Q }$ and we used $\begin{array} { r } { \gamma = \frac { 1 2 0 G } { \alpha } \operatorname* { m a x } \left\{ \frac { \sqrt { d \log \frac { 1 } { \delta } } } { \varepsilon m } , \frac { 1 } { G \sqrt { m } } \right\} } \end{array}$ . Suppose we draw another taskdistribution $\mathcal { P } \sim \mathcal { Q }$ with population risk $\ell _ { \mathcal { P } }$ and minimizer $\theta _ { \mathcal { P } }$ , set $\begin{array} { r } { \hat { \phi } = \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \phi _ { t } } \end{array}$ , and run OGD with learning rate $\begin{array} { r } { \eta = \frac { V + \frac { 1 } { \alpha \sqrt { m } } } { \sqrt { m } } } \end{array}$ starting from $\hat { \phi }$ on m samples from $\mathcal { P }$ . Then the average iterate $\hat { \theta }$ satisfies
270
+
271
+ $$
272
+ \mathbb { E } ( \ell _ { \mathcal { P } } ( \hat { \theta } ) - \ell _ { \mathcal { P } } ( \theta ^ { * } ) ) \le \frac { 7 G V } { 2 \sqrt { m } } + \frac { 7 2 0 1 G } { \alpha } \operatorname* { m a x } \left\{ \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right\} + \frac { \alpha G D ^ { 2 } } { 2 T } ( 1 + \log T )
273
+ $$
274
+
275
+ for $\begin{array} { r } { V ^ { 2 } = \operatorname* { m i n } _ { \phi \in \Theta } \mathbb { E } _ { \mathcal { P } \sim \mathcal { Q } } \operatorname* { m a x } _ { \theta _ { \mathcal { P } } } \| \phi - \theta _ { \mathcal { P } } \| _ { 2 } ^ { 2 } . } \end{array}$
276
+
277
+ Proof. Applying online-to-batch conversion (e.g. Proposition A.1 in Khodak et al. (2019b)) twice and substituting Lemma A.2 yields
278
+
279
+ $$
280
+ \begin{array} { r l } & { \mathbb { E } ( \ell _ { \mathcal { P } } ( \hat { \theta } ) - \ell _ { \mathcal { P } } ( \theta ^ { * } ) ) } \\ & { \qquad \le \mathbb { E } \frac { \| \hat { \phi } - \theta ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta m } + \eta G ^ { 2 } } \\ & { \qquad \le \mathbb { E } \frac { \| \hat { \phi } ^ { * } - \theta ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta m } + \eta G ^ { 2 } + \frac { 1 } { 2 \eta m T } \displaystyle \sum _ { t = 1 } ^ { T } \mathbb { E } \| \phi _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 } } \\ & { \qquad \le \mathbb { E } \frac { \| \hat { \phi } ^ { * } - \theta ^ { * } \| _ { 2 } ^ { 2 } } { 2 \eta m } + \eta G ^ { 2 } + \frac { D ^ { 2 } \frac { 1 + \log T } { T } } { 2 \eta m } + 4 \mathbb { E } \bar { V } ^ { 2 } + \frac { 7 2 0 0 G ^ { 2 } } { \alpha ^ { 2 } \eta m } \operatorname* { m a x } \left\{ \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right\} } \\ & { \qquad = \frac { 5 V ^ { 2 } } { 2 \eta m } + \eta G ^ { 2 } + \frac { 7 2 0 0 G ^ { 2 } } { \alpha ^ { 2 } \eta m } \operatorname* { m a x } \left\{ \frac { d \log \frac { 1 } { \delta } } { \varepsilon ^ { 2 } m ^ { 2 } } , \frac { 1 } { m } \right\} + \frac { D ^ { 2 } } { 2 \eta m T } ( 1 + \log T ) } \end{array}
281
+ $$
282
+
283
+ where we have applied $\mathbb { E } \bar { V } ^ { 2 } \le V ^ { 2 }$ . Substituting $\begin{array} { r } { \eta = \frac { V + \frac { 1 } { \alpha \sqrt { m } } } { G \sqrt { m } } } \end{array}$ yields the result.
284
+
285
+ # B EXPERIMENT DETAILS
286
+
287
+ Datasets: We train a next word predictor for two federated datasets: (1) The Shakespeare dataset as preprocessed by (Caldas et al., 2018), and (2) a dataset constructed from Wikipedia articles, where each article is used as a different task. For each dataset, we set a fixed number of tokens per task, discard tasks with less tokens than the specified, and discard samples from those tasks with more. For Shakespeare, we set the number of tokens per task to 800 tokens, leaving 279 tasks for meta-training, 31 for meta-validation, and 35 for meta-testing. For Wikipedia, we set the number of tokens to 1, 600, which corresponds to having 2, 179 tasks for meta-training, 243 for meta-validation, and 606 for meta-testing. For the meta-validation and meta-test tasks, $7 5 \%$ of the tokens are used for local training, and the remaining $2 5 \%$ for local testing.
288
+
289
+ For the few-shot image classification experiments, we follow the standard set-up by splitting labels into training and testing and forming training tasks by randomly drawing labels from the training set. At evaluation time, we draw from the test set.
290
+
291
+ Model Structure: Our model first maps each token to an embedding of dimension 200 before passing it through an LSTM of two layers of 200 units each. The LSTM emits an output embedding, which is scored against all items of the vocabulary via dot product followed by a softmax. We build the vocabulary from the tokens in the meta-training set and fix its length to 10, 000. We use a sequence length of 10 for the LSTM and, just as (McMahan et al., 2018), we evaluate using AccuracyTop1 (i.e., we only consider the predicted word to which the model assigned the highest probability) and consider all predictions of the unknown token as incorrect. For Omniglot and Mini-ImageNet, we use the architectures from Nichol et al. (2018) to also match the ones from Finn et al. (2017). We evaluate in the standard transductive setting.
292
+
293
+ Hyperparameters: For the language-modeling experiments, we tune the hyperparameters on the set of meta-validation tasks. For both datasets and all versions of the meta-learning algorithm, we tune hyperparameters in a two step process. We first tune all the parameters that are not related to refinement: the meta learning rate, the local (within-task) meta-training learning rate, the maximum gradient norm, and the decay constant. Then, we use the configuration with the best accuracy pre-refinement and then tune the refinement parameters: the refine learning rate, refine batch size, and refine epochs.
294
+
295
+ All other hyperparameters are kept fixed for the sake of comparison: full batch steps were taken on within-task data, with the maximum number of microbatches used for the task-global DP model. The parameter search spaces from which we sample are given in Tables 2, 3, 4 while Tables 5 and 6 contain our final choices. Note that the space for Local DP, especially in terms of the clipping threshold, is distinctively different from the others, as we did not find that searching through ranges similar to those for non-private and task-global DP led to learning high-quality meta-initializations.
296
+
297
+ For Omniglot, we largely based our hyperparameters on the choices of Nichol et al. (2018) for 5-way classification. We vary $m$ , the number of training shots, but we continue to take 5 SGD steps of expected size $m$ within task and we leave the test-time SGD procedure exactly the same. However, we do tune for privacy clipping thresholds $\{ 0 . 0 1 , 0 . 0 2 5 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 4 , 0 . 5 \}$ , Adam Learning Rates for meta-training tasks $\left\{ 1 0 ^ { - 4 } , 5 \times \mathrm { i } 0 ^ { - 4 } , 1 0 ^ { - 3 } , 5 \times 1 0 ^ { - 3 } \right\}$ , and meta-batch sizes of $\{ 5 , 1 5 , \bar { 2 5 } , 5 0 \}$ .
298
+
299
+ For Mini-ImageNet, we perform a similar search except we also double the inner batch size to $2 m$ (trading off less privacy amplification due to subsampling). We continue to tune for privacy clipping thresholds $\{ 0 . 0 1 , \dot { 0 } . 0 2 \dot { 5 } , 0 . 0 5 , 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 , 1 . 1 , 1 . 3 , 1 . 5 \}$ , Adam Learning Rates $\{ 1 \bar { 0 } ^ { - 4 } , \bar { 5 } \times 1 0 ^ { - 4 } , 1 0 ^ { \dot { - } 3 } , 5 \times 1 0 ^ { - 3 } \}$ , and meta-batch sizes of $\{ 5 , 1 5 , 2 5 , 5 0 \}$ .
300
+
301
+ Table 2: Hyperparameter Search Space for Non-Private Training
302
+
303
+ <table><tr><td colspan="2">Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3,4,5,6,7,8,9}</td><td>{1,2,3}</td></tr><tr><td>Tasks Per Round</td><td>{5,10}</td><td>{5,10}</td></tr><tr><td>Within-Task Steps</td><td>{1,3,5,7,9}</td><td>{1,3,5,7,9}</td></tr><tr><td>Meta LR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td rowspan="3">Meta Decay Rate Within-Task LR</td><td>{0,0.001,0.005,0.01,0.025,0.05,0.1}</td><td>{0,0.001,0.005,0.01,0.025,0.05}</td></tr><tr><td>{1,√2,2,2√2,4,4√2,8}</td><td>{1,√2,2,2√2,4,4√2,8}</td></tr><tr><td>{0.4,0.5,0.6,0.7, 0.8, 0.9, 1.0}</td><td>{0.3, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}</td></tr><tr><td rowspan="2">Refine LR Refine Batch Size</td><td>{0.1, 0.15,0.3,0.5,0.7, 0.8}</td><td>{0.1,0.15, 0.3,0.5, 0.7, 0.8}</td></tr><tr><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>
304
+
305
+ Table 3: Hyperparameter Search Space for Task-Global DP Training
306
+
307
+ <table><tr><td></td><td>Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3}</td><td>{1,2}</td></tr><tr><td>TasksPerRound</td><td>{5,10}</td><td>{5,10}</td></tr><tr><td>Within-Task Steps</td><td>1</td><td>1</td></tr><tr><td>MetaLR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td>Meta Decay Rate</td><td>{0,0.001,0.005,0.01, 0.025, 0.05,0.1}</td><td>{0,0.001,0.005,0.01, 0.025, 0.05}</td></tr><tr><td>Within-Task LR</td><td>{1,√2,2√2,4,4√2,8}</td><td>{1,√2,2√2,4,4√2,8}</td></tr><tr><td>L2 Clipping</td><td>{0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}</td><td>{0.3, 0.4, 0.5, 0.6, 0.7, 0.8,0.9,1.0}</td></tr><tr><td>Refine LR</td><td>{0.1,0.15,0.3,0.5,0.7, 0.8}</td><td>{0.1,0.15,0.3,0.5,0.7, 0.8}</td></tr><tr><td>Refine Batch Size</td><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>
308
+
309
+ Table 4: Hyperparameter Search Space for Local-DP Training
310
+
311
+ <table><tr><td colspan="2">Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3}</td><td>{1,2}</td></tr><tr><td>Tasks Per Round</td><td>{5,10,20}</td><td>{10,20,40,80}</td></tr><tr><td>Within-Task Steps</td><td>{1,2,3}</td><td>{1,2,3}</td></tr><tr><td>Meta LR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td>Meta Decay Rate</td><td>{0,0.001,0.005,0.01,0.025,0.05,0.1}</td><td>{0,0.001,0.005,0.01,0.025,0.05}</td></tr><tr><td>Within-Task LR</td><td>{1,√2,2√2,4,4√2,8}</td><td>{1,√2,2√2,4,4√2,8}</td></tr><tr><td>L2 Clipping</td><td>{0.005,0.01,0.025,0.05,0.1,0.25,0.5}</td><td>{0.005,0.01,0.025,0.05,0.1,0.25}</td></tr><tr><td>Refine LR</td><td>{0.1,0.15,0.3,0.5,0.7,0.8}</td><td>{0.1,0.15,0.3,0.5, 0.7, 0.8}</td></tr><tr><td>Refine Batch Size</td><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>
312
+
313
+ Table 5: Final Hyperparameters for Shakespeare-800
314
+
315
+ <table><tr><td></td><td>Non- private</td><td>T-G £= 22.5</td><td>T-G £=9.2</td><td>T-G Ρ= 4.5</td><td>Local Ρ= 22.5</td><td>Local £=9.2</td><td>Local Ρ= 4.5</td></tr><tr><td>Visits Per Task</td><td>7</td><td>2</td><td>2</td><td>1</td><td>2</td><td>2</td><td>1</td></tr><tr><td>Tasks Per Round</td><td>5</td><td>5</td><td>5</td><td>5</td><td>20</td><td>5</td><td>20</td></tr><tr><td>Within-Task Steps</td><td>5</td><td>1</td><td>1</td><td>1</td><td>4</td><td>1</td><td>2</td></tr><tr><td>Meta LR</td><td>8</td><td>8√2</td><td>8</td><td>8√2</td><td>4√2</td><td>4√2</td><td>4</td></tr><tr><td>Meta Decay Rate</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.05</td><td>0.1</td><td>0</td><td>0</td></tr><tr><td>Within-Task LR</td><td>2</td><td>2√2</td><td>2</td><td>2</td><td>4√2</td><td>4√2</td><td>1</td></tr><tr><td>L2 Clipping</td><td>0.5</td><td>0.6</td><td>0.5</td><td>0.4</td><td>0.1</td><td>0.01</td><td>0.01</td></tr><tr><td>RefineLR</td><td>0.15</td><td>0.5</td><td>0.1</td><td>0.3</td><td>0.8</td><td>0.8</td><td>0.5</td></tr><tr><td>Refine Batch Size</td><td>30</td><td>10</td><td>60</td><td>30</td><td>10</td><td>10</td><td>10</td></tr><tr><td>Refine Epochs</td><td>1</td><td>1</td><td>1</td><td>3</td><td>3</td><td>3</td><td>3</td></tr></table>
316
+
317
+ Table 6: Final Hyperparameters for Wiki-800
318
+
319
+ <table><tr><td></td><td>Non- private</td><td>T-G £= 22.5</td><td>T-G £=9.2</td><td>T-G Ρ= 4.5</td><td>Local £= 22.5</td><td>Local £=9.2</td><td>Local £= 4.5</td></tr><tr><td>VisitsPerTask</td><td>2</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>Tasks Per Round</td><td>5</td><td>10</td><td>10</td><td>20</td><td>20</td><td>20</td><td>20</td></tr><tr><td>Within-Task Steps</td><td>3</td><td>1</td><td>1</td><td>1</td><td>2</td><td>2</td><td>2</td></tr><tr><td>Meta LR</td><td>2√2</td><td>2√2</td><td>4</td><td>4</td><td>8</td><td>4√2</td><td>8</td></tr><tr><td>Meta Decay Rate</td><td>0.001</td><td>0</td><td>0.001</td><td>0.005</td><td>0.005</td><td>0.025</td><td>0</td></tr><tr><td>Within-Task LR</td><td>2</td><td>8</td><td>4√2</td><td>8</td><td>2√2</td><td>2√2</td><td>2√2</td></tr><tr><td>L2 Clipping</td><td>1</td><td>0.8</td><td>0.7</td><td>0.8</td><td>0.025</td><td>0.05</td><td>0.005</td></tr><tr><td>Refine LR</td><td>0.1</td><td>0.8</td><td>0.5</td><td>0.7</td><td>0.8</td><td>0.8</td><td>0.8</td></tr><tr><td>Refine Batch Size</td><td>10</td><td>10</td><td>60</td><td>10</td><td>10</td><td>10</td><td>10</td></tr><tr><td>Refine Epochs</td><td>1</td><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td><td>3</td></tr></table>
parse/train/rJgqMRVYvr/rJgqMRVYvr_content_list.json ADDED
@@ -0,0 +1,1495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DIFFERENTIALLY PRIVATE META-LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 712,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jeffrey Li, Mikhail Khodak, Sebastian Caldas \nCarnegie Mellon University \njwl3@cs.cmu.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 143,
20
+ 504,
21
+ 186
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Ameet Talwalkar Carnegie Mellon University & Determined AI ",
28
+ "bbox": [
29
+ 184,
30
+ 208,
31
+ 486,
32
+ 236
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 273,
43
+ 544,
44
+ 287
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Parameter-transfer is a well-known and versatile approach for meta-learning, with applications including few-shot learning, federated learning, and reinforcement learning. However, parameter-transfer algorithms often require sharing models that have been trained on the samples from specific tasks, thus leaving the task-owners susceptible to breaches of privacy. We conduct the first formal study of privacy in this setting and formalize the notion of task-global differential privacy as a practical relaxation of more commonly studied threat models. We then propose a new differentially private algorithm for gradient-based parameter transfer that not only satisfies this privacy requirement but also retains provable transfer learning guarantees in convex settings. Empirically, we apply our analysis to the problems of federated learning with personalization and few-shot classification, showing that allowing the relaxation to task-global privacy from the more commonly studied notion of local privacy leads to dramatically increased performance in recurrent neural language modeling and image classification. ",
51
+ "bbox": [
52
+ 233,
53
+ 304,
54
+ 764,
55
+ 498
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 523,
66
+ 336,
67
+ 539
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The field of meta-learning offers promising directions for improving the performance and adaptability of machine learning methods. At a high level, the key assumption leveraged by these approaches is that the sharing of knowledge gained from individual learning tasks can help catalyze the learning of similar unseen tasks. However, the collaborative nature of this process, in which task-specific information must be sent to and used by a meta-learner, also introduces inherent data privacy risks. ",
74
+ "bbox": [
75
+ 174,
76
+ 554,
77
+ 823,
78
+ 625
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this work, we focus on a popular and flexible meta-learning approach, parameter transfer via gradient-based meta-learning (GBML). This set of methods, which includes well-known algorithms such as MAML (Finn et al., 2017) and Reptile (Nichol et al., 2018), tries to learn a common initialization $\\phi$ over a set of tasks $t = 1 , \\dots , T$ such that a high-performance model can be learned in only a few gradient-steps on new tasks. Notably, information flows constantly between training tasks and the meta-learner as learning progresses; to make iterative updates, the meta-learner obtains feedback on the current $\\phi$ by having task-specific models ${ \\bar { \\theta } } _ { t }$ trained with it. ",
85
+ "bbox": [
86
+ 174,
87
+ 631,
88
+ 825,
89
+ 728
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Meanwhile, in many settings amenable to meta-learning, it is crucial to ensure that sensitive information in each task’s dataset stays private. Examples of this include learning models for word prediction on cell phone data (McMahan et al., 2018), clinical predictions using hospital records (Zhang et al., 2019), and fraud detectors for competing credit card companies (Stolfo et al., 1997). In such cases, each data-owner can benefit from information learned from other tasks, but each also desires, or is legally required, to keep their raw data private. Thus, it is not sufficient to learn a well-performing $\\phi$ ; it is equally imperative to ensure that a task’s sensitive information is not obtainable by anyone else. ",
96
+ "bbox": [
97
+ 174,
98
+ 736,
99
+ 825,
100
+ 833
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "While parameter transfer algorithms can move towards this goal by peforming task-specific optimization locally, thus preventing direct access to private data, this provision is far from fail-safe in terms of privacy. A wealth of work has shown in the single-task setting that it is possible for an adversary with only access to the model to learn detailed information about the training set, such as the presence or absence of specific records (Shokri et al., 2017) or the identities of sensitive features given other covariates (Fredrikson et al., 2015). Furthermore, Carlini et al. (2018) showed that deep neural networks can effectively memorize user-unique training examples, which can be recovered even after only a single epoch of training. As such, in parameter-transfer methods, the meta-learner or any downstream participant can potentially recover data from a previous task. ",
107
+ "bbox": [
108
+ 174,
109
+ 840,
110
+ 825,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 176,
120
+ 103,
121
+ 821,
122
+ 146
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "However, despite these serious risks, privacy-preserving meta-learning has remained largely an unstudied problem. Our work aims to address this issue by applying differential privacy (DP), a well-established definition of privacy with rich theoretical guarantees and consistent empirical success at preventing leakages of data (Carlini et al., 2018; Fredrikson et al., 2015; Jayaraman and Evans, 2019). Crucially, although there are various threat models and degrees of DP one could consider in the meta-learning setting (as we outline in Section 2), we balance the well-documented trade-off between privacy and model utility by formalizing and focusing on a setting that we call task-global DP. This setting provides a strong privacy guarantee for each task-owner that sharing $\\widehat { \\theta } _ { t }$ with the meta-learner will not reliably reveal anything about specific training examples to any downstream agent. It also allows us to use the framework of Khodak et al. (2019a) to provide a DP GBML algorithm that enjoys provable learning guarantees in convex settings. ",
129
+ "bbox": [
130
+ 174,
131
+ 154,
132
+ 825,
133
+ 308
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Finally, we show an application of our work by drawing connections to federated learning (FL) (Li et al., 2019). While standard methods for FL, such as FedAvg (McMahan et al., 2017), have inspired many works also concerning DP in a multi-user setup (Agarwal et al., 2018; Bhowmick et al., 2019; Geyer et al., 2018; McMahan et al., 2018; Truex et al., 2019), we are the first to consider task-global DP as a useful variation on standard DP settings. Moreover, these works fundamentally differ from ours in that they do not consider a task-based notion of learnability, instead focusing on the global federated learning problem to learn a single global model. That being said, a federated setting involving per-user personalization (Chen et al., 2018; Smith et al., 2017) is a natural meta-learning application. ",
140
+ "bbox": [
141
+ 174,
142
+ 314,
143
+ 825,
144
+ 439
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "More specifically, our main contributions are: ",
151
+ "bbox": [
152
+ 176,
153
+ 446,
154
+ 472,
155
+ 462
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "1. We are the first to provide a taxonomy for the different notions of DP possible for meta-learning. In particular, we formalize on a variant we call task-global DP, showing and arguing that it adds a useful option to commonly studied settings in terms of trading privacy and accuracy. \n2. We propose the first DP GBML algorithm, which we construct to satisfy this privacy setting. Further, we show a straightforward extension for obtaining a group $D P$ version of our setting to protect multiple samples simultaneously. \n3. While our privacy guarantees hold generally, we also prove learning-theoretic results in convex settings. Our learning guarantees scale with task-similarity, as measured by the closeness of the task-specific optimal parameters (Denevi et al., 2019; Khodak et al., 2019b). \n4. We show that our algorithm, along with its theoretical guarantees, naturally carries over to federated learning with personalization. Compared to previous notions of privacy considered in works for DP federated learning (Agarwal et al., 2018; Bhowmick et al., 2019; Geyer et al., 2018; McMahan et al., 2018; Truex et al., 2019), we are, to the best of our knowledge, the first to simultaneously provide both privacy and learning guarantees. \n5. Empirically, we demonstrate that our proposed privacy setting allows for strong performance on federated language-modeling and few-shot image classification tasks. For the former, we achieve close to the performance of non-private models and significantly improve upon the performance of models trained with local-DP guarantees, a previously studied notion that also provides protections against the meta-learner. Our setting reasonably relaxes this latter notion but can achieve roughly 1.7–2.3 times the accuracy on a modified version of the Shakespeare dataset (Caldas et al., 2018) and 1.6–1.7 times the accuracy on a modified version of Wiki-3029 (Arora et al., 2019) across various privacy budgets. For image-classification, we show that we show that we can still retain significant benefits of meta-learning while applying task-global DP on Omniglot (Lake et al., 2011) and Mini-ImageNet (Ravi and Larochelle, 2017). ",
162
+ "bbox": [
163
+ 173,
164
+ 476,
165
+ 826,
166
+ 809
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "1.1 RELATED WORK ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 176,
176
+ 827,
177
+ 330,
178
+ 842
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "DP Algorithms in Federated Learning Settings. Works most similar to ours focus on providing DP for federated learning. Specifically, Geyer et al. (2018) and McMahan et al. (2018) apply update clipping and the Gaussian Mechanism to achieve user-level global DP federated learning algorithms for language modeling and image classification tasks respectively. Their methods are shown to only suffer minor drops in accuracy compared to non-private training but they do not consider protections to inferences made by the meta-learner. Alternatively, Bhowmick et al. (2019) does achieve such protection by applying a theoretically rate-optimal local DP mechanism on the ${ \\bar { \\theta } } _ { t }$ ’s users send to the meta-learner. However, they sidestep hard minimax rates (Duchi et al., 2018) by assuming the central server has limited side-information and allowing for a large privacy budget. In this work, though we achieve a relaxation of the privacy of Bhowmick et al. (2019), we do not restrict the adversary’s power. Finally, Truex et al. (2019) does consider a setting that coincides with task-global DP, but they focus primarily on the added benefits of applying MPC (see below) rather than studying the merits of the setting in comparison to other potential settings. ",
185
+ "bbox": [
186
+ 174,
187
+ 854,
188
+ 823,
189
+ 924
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "",
196
+ "bbox": [
197
+ 174,
198
+ 103,
199
+ 825,
200
+ 215
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Secure Multiparty Computation (MPC). MPC is a cryptographic technique that allows parties to calculate a function of their inputs while also maintaining the privacy of each individual inputs. In GBML, sets of model updates may come in a batch from multiple tasks, and hence MPC can securely aggregate the batch before it is seen by the meta-learner. Though MPC itself gives no DP guarantees against future inference, it can combined with DP to increase privacy. This approach has been studied in the federated setting, e.g. by Agarwal et al. (2018), who apply MPC in the same difficult setting of Bhowmick et al. (2019), and Truex et al. (2019), who apply MPC similarly to a setting analogous to ours. On the other hand, MPC also comes with additional practical challenges such as peer-to-peer communication costs, drop outs, and vulnerability to collaborating participants. As such, combined with its applicability to multiple settings, including ours, we consider MPC to be an orthogonal direction. ",
207
+ "bbox": [
208
+ 174,
209
+ 222,
210
+ 825,
211
+ 375
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "2 PRIVACY IN A META-LEARNING CONTEXT ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 174,
221
+ 393,
222
+ 560,
223
+ 410
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "In this section, we first formalize the meta-learning setting that we consider. We then describe the various threat models that arise in the GBML setup, before presenting the different DP notions that can be achieved. Finally, we highlight the specific model and type of DP that we analyze. ",
230
+ "bbox": [
231
+ 174,
232
+ 425,
233
+ 825,
234
+ 467
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "2.1 PARAMETER TRANSFER META-LEARNING ",
241
+ "text_level": 1,
242
+ "bbox": [
243
+ 174,
244
+ 483,
245
+ 508,
246
+ 497
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "In parameter transfer meta-learning, we assume that there is a set of learning tasks $t = 1 , \\dots , T$ , each with its corresponding disjoint training set $D _ { t }$ . Each $D _ { t }$ contains $m _ { t }$ training examples $\\{ z _ { t , i } \\} _ { i = 1 } ^ { m _ { t } }$ where each $\\boldsymbol { z } _ { t , i } \\in \\mathcal { X } \\times \\mathcal { Y }$ . The goal within each task is to learn a function $f _ { \\hat { \\theta } _ { t } } : \\mathcal { X } \\xrightarrow { } \\mathcal { V }$ parameterized by $\\widehat { \\theta } _ { t } \\in \\Theta \\subset \\mathbb { R } ^ { d }$ that performs β€œwell,” generally in the sense that it has low within-task population risk in the distributional setting. The meta-learner’s goal is to learn an initialization $\\phi \\in \\Theta$ that leads to a well-performing $\\widehat { \\theta } _ { t }$ within-task. In GBML this $\\phi$ is learned via an iterative process that alternates between the following two steps: (1) a within-task procedure where a batch of task-owners $B$ receives the current $\\phi$ and each $t \\in B$ uses $\\phi$ as an initialization for running a within-task optimization procedure, obtaining $\\bar { \\theta } _ { t } ( D _ { t } , \\phi )$ ; (2) a meta-level procedure where the meta-learner receives these model updates $\\{ { \\bar { \\theta } } _ { t } \\} _ { t \\in B }$ and aggregates them to determine an updated $\\phi$ . Note that we do not assume $\\widehat { \\theta } _ { t } = \\bar { \\theta } _ { t }$ , as the updates shared for the meta-learning procedure can be obtained from a different procedure than the refined model used for downstream within-task inference. This is especially the case when concerning the addition of noise for DP as part of the meta-learning procedure. ",
253
+ "bbox": [
254
+ 173,
255
+ 510,
256
+ 825,
257
+ 699
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "2.2 THREAT MODELS FOR GBML ",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 176,
267
+ 715,
268
+ 421,
269
+ 729
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "As in any privacy endeavor, before discussing particular mechanisms, a key specification must be made in terms of what threat model is being considered. In particular, it must be specified both (1) who the potential adversaries are and (2) what information needs to be protected. ",
276
+ "bbox": [
277
+ 176,
278
+ 741,
279
+ 823,
280
+ 784
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Potential adversaries. For a single task-owner, adversaries may be either solely recipients of $\\phi$ (i.e. other task-owners) or recipients of either $\\phi$ or ${ \\bar { \\theta } } _ { t }$ (i.e. also the meta-learner). In the latter case, we consider only a honest-but-curious meta-learner, who does not deviate from the agreed upon algorithm but may try to make inferences from ${ \\bar { \\theta } } _ { t }$ . In both cases, concern is placed not only about these other participants’ intentions, but also their own security against access by malicious outsiders. ",
287
+ "bbox": [
288
+ 174,
289
+ 791,
290
+ 825,
291
+ 861
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Data to be protected. A system can choose either to protect information contained in single records $z _ { t , i }$ one-at-a-time or to protect entire datasets $D _ { t }$ simultaneously. This distinction between record-level and task-level privacy can be practically important. Multiple $z _ { t , i }$ within $D _ { t }$ may reveal the same secret (e.g., a cell-phone user has sent their SSN multiple times), or the entire distribution of $D _ { t }$ could reveal sensitive information (e.g., a user has sent all messages in a foreign language). In these cases, record-level privacy may not be sufficient. However, given that privacy and utility are often at odds, we often seek the weakest notion of privacy needed in order to best preserve utility. ",
298
+ "bbox": [
299
+ 174,
300
+ 868,
301
+ 823,
302
+ 924
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "image",
308
+ "img_path": "images/1af50ef442ecb2263b0ad5b33eec347594b127d79b6e088e27c64606c511143e.jpg",
309
+ "image_caption": [
310
+ "Figure 1: Summary of the privacy protections guaranteed by local and global DP at the different levels of the meta-learning problem (with our notion in blue). On the right, we show what each specification would mean in two practical federated scenarios: mobile users and hospital networks. "
311
+ ],
312
+ "image_footnote": [],
313
+ "bbox": [
314
+ 187,
315
+ 108,
316
+ 816,
317
+ 310
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "",
324
+ "bbox": [
325
+ 174,
326
+ 396,
327
+ 825,
328
+ 438
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "In related work, focus has primarily been placed on task-level protections. However, such approaches usually fall into two extremes, either obtaining strong learning but having to trust the meta-learner (McMahan et al., 2018; Geyer et al., 2018) or trusting nobody but also obtaining low performance (Bhowmick et al., 2019). In response, we try to bridge the gap between these threat models by considering a model that makes a relaxation from task-level to record-level privacy but retains protections for each task-owner against all other parties. This relaxation can be reasonably justified in practical situations, as while task-level guarantees are strictly stronger, they may also be unnecessary. In particular, record-level guarantees are likely to be sufficient whenever single records each pertain to different individuals. For example, for hospitals, what we care about is providing privacy to the individual patients and not aggregate hospital information. For cell-phones, if one can bound the number of texts that could reveal the same sensitive information, then a straightforward extension of our setting and methods, which protects up to $k$ records simultaneously, could also be sufficient. ",
335
+ "bbox": [
336
+ 173,
337
+ 445,
338
+ 825,
339
+ 612
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "2.3 DIFFERENTIAL PRIVACY (DP) IN A SINGLE-TASK SETTING ",
346
+ "text_level": 1,
347
+ "bbox": [
348
+ 174,
349
+ 627,
350
+ 625,
351
+ 643
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "In terms of actually achieving privacy guarantees for machine learning, a de-facto standard has been to apply DP, a provision which strongly limits what one can infer about the examples a given model was trained on. Assuming a training set $D = \\{ z _ { 1 } , \\dots , z _ { m } \\}$ , two common types of DP are considered. ",
358
+ "bbox": [
359
+ 174,
360
+ 654,
361
+ 826,
362
+ 698
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Differential Privacy (Global DP). A randomized mechanism $\\mathcal { M }$ is $( \\varepsilon , \\delta )$ -differentially private if for all measurable $S \\subseteq { \\mathrm { R a n g e } } ( { \\mathcal { M } } )$ and for all datasets $D , D ^ { \\prime }$ that differ by at most one element: ",
369
+ "bbox": [
370
+ 169,
371
+ 703,
372
+ 825,
373
+ 732
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "equation",
379
+ "img_path": "images/227e41802c0bdbe30922e8f878db78e12e35bd9c16fd24435a8ca7854df7aa52.jpg",
380
+ "text": "$$\n\\mathbb { P } [ \\mathcal { M } ( D ) \\in \\mathcal { S } ] \\leq e ^ { \\varepsilon } \\mathbb { P } [ \\mathcal { M } ( D ^ { \\prime } ) \\in \\mathcal { S } ] + \\delta\n$$",
381
+ "text_format": "latex",
382
+ "bbox": [
383
+ 367,
384
+ 736,
385
+ 632,
386
+ 753
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "If this holds for $D , D ^ { \\prime }$ differing by at most $k$ elements, then $( \\varepsilon , \\delta ) \\ k$ -group $D P$ is achieved. ",
393
+ "bbox": [
394
+ 173,
395
+ 757,
396
+ 766,
397
+ 772
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Local Differential Privacy. A randomized mechanism $\\mathcal { M }$ is $( \\varepsilon , \\delta )$ -locally differentially private if for any two possible training examples $z , z ^ { \\prime } \\in \\mathcal { X } \\times \\mathcal { Y }$ and measurable $S \\subseteq \\mathcal { X } \\times \\mathcal { Y }$ : ",
404
+ "bbox": [
405
+ 173,
406
+ 777,
407
+ 823,
408
+ 808
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/f6d946eaa3c7bd500bb7f46143be83961e7d709d3e5f5fec0ca412f7ce98de74.jpg",
415
+ "text": "$$\n\\mathbb { P } [ \\mathcal { M } ( z ) \\in \\mathcal { S } ] \\leq e ^ { \\varepsilon } \\mathbb { P } [ \\mathcal { M } ( z ^ { \\prime } ) \\in \\mathcal { S } ] + \\delta\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 370,
419
+ 811,
420
+ 625,
421
+ 829
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "Global DP guarantees the difficulty of inferring the presence of a specific record in the training set by observing $\\mathcal { M } ( D )$ . It assumes a trusted aggregator running $\\mathcal { M }$ gets direct access to $D$ and privatizes the final output. Meanwhile, local DP assumes more strictly that the aggregator also cannot be trusted, thus requiring a random mechanism to be applied individually on each $z$ before training. However, it generally results in worse model performance, suffering from hard minimax rates (Duchi et al., 2018). ",
428
+ "bbox": [
429
+ 173,
430
+ 839,
431
+ 826,
432
+ 924
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "table",
438
+ "img_path": "images/22a1b54d29ef402de29aeb9e26c4f0a5f7d5e07fb01932791fe24a5e16045dc5.jpg",
439
+ "table_caption": [
440
+ "Table 1: Broad categorization of the DP settings considered by our work in meta-learning and notable past works in the federated setting. Note that by using a de-centralized method for aggregation, Agarwal et al. (2018) can still protect against the meta-learner from making inferences on any individual $\\widehat { \\theta } _ { t }$ with what is only effectively a global DP mechanism. "
441
+ ],
442
+ "table_footnote": [],
443
+ "table_body": "<table><tr><td>Previous Work</td><td>Notion of DP</td><td>Privacy for Ξ¦</td><td>Privacy for ΞΈt</td></tr><tr><td>McMahan et al. (2018)</td><td>Global</td><td>Task-level</td><td>1</td></tr><tr><td>Geyer et al. (2018)</td><td>Global</td><td>Task-level</td><td>=</td></tr><tr><td>Bhowmick et al. (2019)</td><td>Local, Global</td><td>Task-level</td><td>Task-level</td></tr><tr><td>Agarwal et al. (2018)</td><td>Global + MPC</td><td>Task-level</td><td>Task-level</td></tr><tr><td>Truex et al. (2019)</td><td>Task-Global + MPC</td><td>Record-level</td><td>Record-level</td></tr><tr><td>Our work</td><td>Task-Global</td><td>Record-level</td><td>Record-level</td></tr></table>",
444
+ "bbox": [
445
+ 235,
446
+ 170,
447
+ 761,
448
+ 285
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "2.4 DIFFERENTIAL PRIVACY FOR A GBML SETTING ",
455
+ "text_level": 1,
456
+ "bbox": [
457
+ 173,
458
+ 319,
459
+ 552,
460
+ 333
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "In meta-learning, there exists a hierarchy of agents and statistical queries, so we cannot as simply define global and local DP. Here, both the meta-level sub-procedure, $\\{ \\bar { \\theta } _ { t } \\} _ { t \\in B } \\phi$ , and the withintask sub-procedure, $\\{ z _ { t , i } \\} _ { i = 1 } ^ { m _ { t } } \\to \\bar { \\theta } _ { t }$ , can be considered individual queries and a DP algorithm can implement either to be DP. Further, for each query, the procedure may be altered to satisfy either local DP or global DP. Thus, there are four fundamental options that follow from standard DP definitions. ",
467
+ "bbox": [
468
+ 174,
469
+ 349,
470
+ 826,
471
+ 420
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "(1) Global $D P$ : Releasing $\\phi$ will at no point compromise information regarding any specific ${ \\bar { \\theta } } _ { t }$ . \n(2) Local $D P$ : Additionally, each ${ \\bar { \\theta } } _ { t }$ is protected from being revealed to the meta-learner. \n(3) Task-Global $D P$ : Releasing ${ \\bar { \\theta } } _ { t }$ will at no point compromise any specific $z _ { t , i }$ . \n(4) Task-Local $D P$ : Additionally, each $z _ { t , i }$ is protected from being revealed to task-owner. ",
478
+ "bbox": [
479
+ 205,
480
+ 429,
481
+ 825,
482
+ 486
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "To form analogies to single-task DP, the examples in the meta-level procedure are the model updates and the aggregator is the meta-learner. For the within-task procedure, the examples are actually the individual records and the aggregator is the task-owner. As such, (1) is implemented by the metalearner, (2) and (3) are implemented by the task-owner, and (4) is implemented by record-owners. By immunity to post-processing, the guarantees for (3) and (4) also automatically apply to the release of any future iteration of $\\phi$ , thus protecting against future task-owners as well. Meanwhile, though (1) and (2) by definition protect the identities of individual ${ \\bar { \\theta } } _ { t }$ , they actually satisfy a task-level threat model by doing so. Intuitively, not being able to reliably infer anything about ${ \\bar { \\theta } } _ { t }$ implies that nothing can be inferred about the $D _ { t }$ that was used to generate it. ",
489
+ "bbox": [
490
+ 173,
491
+ 494,
492
+ 825,
493
+ 619
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "Using the terminology we introduce in Section 2.4, previous works for DP in federated settings can be categorized as in Table 1. While these works do not assume a multi-task setting, we can still naturally use the terms global/local and task-global/task-local to analogously refer to releasing the global model (by the central server in the case without MPC) and user-specific updates (by users’ devices) respectively. ",
500
+ "bbox": [
501
+ 174,
502
+ 626,
503
+ 825,
504
+ 696
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "3 DIFFERENTIALLY PRIVATE PARAMETER-TRANSFER ",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 174,
514
+ 727,
515
+ 632,
516
+ 744
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "3.1 ALGORITHM ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 174,
526
+ 765,
527
+ 303,
528
+ 780
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "We now present our DP GBML method, which is written out in its online (regret) form in Algorithm 1. Here, we observe that both within-task optimization and meta-optimization are done using some form of gradient descent. The key difference between this algorithm and traditional GBML is that since task-learners must send back privatized model updates, each now applies an DP gradient descent procedure to learn ${ \\bar { \\theta } } _ { t }$ when called. However, at meta-test time the task-learner will run a non-private descent algorithm to obtain the parameter $\\widehat { \\theta } _ { t }$ used for inference, as this parameter may remain locally. To obtain learning-theoretic guarantees, we use a variant of Algorithm 1 in which the DP algorithm is an SGD procedure (Bassily et al., 2019, Algorithm 1) that adds a properly scaled Gaussian noise vector at each iteration. ",
535
+ "bbox": [
536
+ 173,
537
+ 796,
538
+ 826,
539
+ 924
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Algorithm 1: Online version of our $( \\varepsilon , \\delta )$ -meta-private parameter-transfer algorithm. ",
546
+ "bbox": [
547
+ 174,
548
+ 107,
549
+ 730,
550
+ 123
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "Meta-learner picks first meta-initialization $\\phi _ { 1 } \\in \\Theta$ . for task $t \\in [ T ]$ do ",
557
+ "bbox": [
558
+ 173,
559
+ 126,
560
+ 509,
561
+ 154
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "Meta-learner sends meta-initialization $\\phi _ { t }$ to task $t$ . \nTask-learner runs OGD starting from $\\theta _ { t , 1 } = \\phi _ { t }$ on losses $\\{ \\ell _ { t , i } \\} _ { i = 1 } ^ { m }$ to obtain $\\widehat { \\theta } _ { t }$ . \nTask-learner $t$ runs $( \\varepsilon , \\delta )$ -DP algorithm (noisy-SGD) on losses $\\{ \\ell _ { t , i } \\} _ { i = 1 } ^ { m }$ to get ${ \\bar { \\theta } } _ { t }$ . \nTask-learner sends ${ \\bar { \\theta } } _ { t }$ to meta-learner. \nMeta-learner constructs loss $\\begin{array} { r } { \\ell _ { t } ( \\phi ) = \\frac 1 2 \\| \\bar { \\theta } _ { t } - \\phi _ { t } \\| _ { 2 } ^ { 2 } } \\end{array}$ . \nMeta-learner updates meta-initialization $\\phi _ { t + 1 }$ using an OCO algorithm on $\\ell _ { 1 } , \\ldots , \\ell _ { t }$ . ",
568
+ "bbox": [
569
+ 197,
570
+ 154,
571
+ 754,
572
+ 242
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "Result: Meta-initialization $\\begin{array} { r } { { \\hat { \\phi } } = { \\frac { 1 } { T } } \\sum _ { t = 1 } ^ { T } \\phi _ { t } } \\end{array}$ to use on test tasks. ",
579
+ "bbox": [
580
+ 173,
581
+ 244,
582
+ 591,
583
+ 263
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "3.2 PRIVACY GUARANTEES ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 176,
593
+ 299,
594
+ 379,
595
+ 314
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "We run a certified $( \\varepsilon , \\delta )$ -DP version of SGD (Bassily et al., 2019, Algorithm 1) within each task. Therefore, this guarantees that the contribution of each task-owner, a $\\bar { \\theta } _ { t }$ trained on their data, carries global DP guarantees with respect to the meta-learner. Additionally, since DP is preserved under post-processing, the release of any future calculation stemming from ${ \\bar { \\theta } } _ { t }$ also carries the same DP guarantee. ",
602
+ "bbox": [
603
+ 173,
604
+ 325,
605
+ 826,
606
+ 396
607
+ ],
608
+ "page_idx": 5
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "3.3 LEARNING GUARANTEES ",
613
+ "text_level": 1,
614
+ "bbox": [
615
+ 176,
616
+ 416,
617
+ 390,
618
+ 431
619
+ ],
620
+ "page_idx": 5
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "Our learning result follows the setup of Baxter (2000), who formalized the LTL problem as using task-distribution samples $\\mathcal { P } _ { 1 } , . . . , \\mathcal { P } _ { T } \\sim \\mathcal { Q }$ from some meta-distribution $\\mathcal { Q }$ and samples indexed by $i = 1 , \\ldots , m$ from those tasks to improve performance when a new task $\\mathcal { P }$ is sampled from $\\mathcal { Q }$ and we draw $m$ samples from it. In the setting of parameter-transfer meta-learning we are learning functions parameterized by real-valued vectors $\\overline { { \\theta } } \\in \\dot { \\Theta } \\subset \\mathbb { R } ^ { d }$ , so our goal will follow that of Denevi et al. (2019) and Khodak et al. (2019b) in seeking bounds on the transfer-risk – the distributional performance of a learned parameter on a new task from $\\mathcal { Q }$ – that improve with task similarity. ",
625
+ "bbox": [
626
+ 173,
627
+ 444,
628
+ 825,
629
+ 542
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "The specific task-similarity metric we consider is the average deviation of the risk-minimizing parameters of tasks sampled from the distribution $\\mathcal { Q }$ are close together. This will be measured in-terms of the following quantity: $\\begin{array} { r } { V ^ { 2 } = \\operatorname* { m i n } _ { \\phi \\in \\Theta } \\frac { 1 } { 2 } \\mathbb { E } _ { \\mathcal { P } \\sim \\mathcal { Q } } \\| \\theta _ { \\mathcal { P } } - \\phi \\| _ { 2 } ^ { 2 } } \\end{array}$ , for $\\theta _ { P } \\in \\arg \\operatorname* { m i n } _ { \\theta \\in \\Theta } \\ell _ { \\mathcal { P } } ( \\theta )$ a risk-minimizer of task-distribution $\\mathcal { P }$ . This quantity is roughly the variance of risk-minimizing task-parameters and is a standard quantifier of improvement due to meta-learning (Denevi et al., 2019; Khodak et al., 2019b). For example, Denevi et al. (2019) show excess transfer-risk guarantees of the form $\\begin{array} { r } { \\mathcal { O } \\left( \\frac { V } { \\sqrt { m } } + \\sqrt { \\frac { \\log T } { T } } \\right) } \\end{array}$ when $T$ tasks with $m$ samples are drawn from the distribution. This guarantee ensures that as we see more tasks our transfer risk becomes roughly $V / \\sqrt { m }$ , which if the tasks are similar, i.e. $V$ is small, implies that LTL improves over single-task learning. ",
636
+ "bbox": [
637
+ 173,
638
+ 549,
639
+ 826,
640
+ 693
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "In Algorithm 1, each user $t$ obtains a within-task parameter ${ \\bar { \\theta } } _ { t }$ by running (non-private) OGD on a sequence of losses $\\ell _ { t , 1 } , \\ldots , \\ell _ { t , m }$ and averaging the iterates. The regret of this procedure, when averaged across the users, implies a bound on the expected excess transfer risk of new task from $\\mathcal { Q }$ when running OGD from a learned initialization (Cesa-Bianchi et al., 2004). Thus our goal is to bound this regret in terms of $V$ ; here we follow the Average Regret-Upper-Bound Analysis (ARUBA) framework of Khodak et al. (2019b) and treat meta-update procedure itself as an online algorithm optimizing a bound on the performance measure (regret) of each within-task algorithm. As OGD’s regret depends on the squared distance $\\frac { 1 } { 2 } \\| \\theta _ { t } ^ { * } - \\phi _ { t } \\| _ { 2 } ^ { 2 }$ of the optimal parameter from the initialization $\\phi _ { t }$ , with no privacy concerns one could simply update $\\phi _ { t }$ using $\\begin{array} { r } { \\theta _ { t } ^ { * } \\in \\arg \\operatorname* { m i n } _ { \\theta \\in \\Theta } \\sum _ { i = 1 } ^ { m } \\ell _ { t , i } ( \\theta ) } \\end{array}$ to recover guarantees similar to those in Denevi et al. (2019) and Khodak et al. (2019b). ",
647
+ "bbox": [
648
+ 173,
649
+ 698,
650
+ 825,
651
+ 840
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "However, this approach requires sending $\\theta _ { t } ^ { * }$ to the meta-learner, which is not private; instead in Algorithm 1 we send $\\widehat { \\theta } _ { t }$ , which is the output of noisy SGD. To apply ARUBA, we need an additional assumption – that the losses satisfy the following quadratic growth (QG) property: for some $\\alpha > 0$ , ",
658
+ "bbox": [
659
+ 174,
660
+ 847,
661
+ 825,
662
+ 892
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "equation",
668
+ "img_path": "images/19380e8f459dc2d42023b24186cc68d2564672921cd2f4e457ef35bab832df49.jpg",
669
+ "text": "$$\n\\frac { \\alpha } { 2 } \\| \\theta - \\theta _ { \\mathcal { P } } \\| _ { 2 } ^ { 2 } \\le \\ell _ { \\mathcal { P } } ( \\theta ) - \\ell _ { \\mathcal { P } } ( \\theta _ { \\mathcal { P } } ) \\quad \\forall \\theta \\in \\Theta\n$$",
670
+ "text_format": "latex",
671
+ "bbox": [
672
+ 356,
673
+ 901,
674
+ 643,
675
+ 928
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "Here $\\theta _ { \\mathcal { P } }$ is the risk minimizer of $\\ell _ { \\mathcal { P } }$ . This assumption, which Khodak et al. (2019a) shows is reasonable in settings such as logistic regression, amounts to a statistical non-degeneracy assumption on the parameter-space – that parameters far away from the risk-minimizer do not have low-risk. Note that assuming the population risk is QG is significantly weaker than assuming strong convexity of the empirical risk, which previous work (Finn et al., 2019) has assumed to hold for task losses but does not hold for applicable cases such as few-shot least-squares or logistic regression if the number of task-samples is smaller than the data-dimension. ",
682
+ "bbox": [
683
+ 173,
684
+ 103,
685
+ 825,
686
+ 202
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "We are now able to state our main theoretical result, a proof of which is given in Appendix A. The result follows from a bound on the task-averaged regret across all tasks of a simple online meta-learning procedure that treats the update ${ \\bar { \\theta } } _ { t }$ sent by each task as an approximation of the optimal parameter in hindsight $\\theta _ { t } ^ { * }$ . Since this parameter determines regret on that task, by reducing the metaupdate procedure to OCO on this sequence of functions in a manner similar to (Khodak et al., 2019a), we are able to show a task-similarity-dependent bound. Following this the statistical guarantee stems from a nested online-to-batch conversion, a standard procedure to convert low-regret online-learning algorithms to low-risk distribution-learning algorithms (Cesa-Bianchi et al., 2004). ",
693
+ "bbox": [
694
+ 174,
695
+ 208,
696
+ 825,
697
+ 320
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Theorem 3.1. Suppose $\\mathcal { Q }$ is a distribution over task-distributions $\\mathcal { P }$ over $G$ -Lipschtz, $\\beta$ -stronglysmooth, $^ { l }$ -bounded convex loss functions $\\ell : \\Theta \\mapsto \\mathbb { R }$ over parameter space $\\Theta$ with diameter $D$ for $\\begin{array} { r } { \\beta \\leq \\frac { G } { D } \\operatorname* { m i n } \\left( \\sqrt { \\frac { m } { 2 } } , \\frac { \\varepsilon m } { 2 \\sqrt { 2 d \\log \\frac { 1 } { \\delta } } } \\right) } \\end{array}$ and let each $\\mathcal { P }$ satisfy the quadratic growth property (1). Suppose the distribution $\\mathcal { P } _ { t }$ of each task is sampled i.i.d. from $\\mathcal { Q }$ and we run Algorithm 1 with the $( \\varepsilon , \\delta )$ -DP procedure of Bassily et al. (2019, Algorithm $I$ ) to obtain ${ \\bar { \\theta } } _ { t }$ as the average iterate for the meta-update step, using $n \\geq 1$ steps and learning rate $\\frac { \\gamma } { G \\sqrt { n } } f o r \\gamma > 0$ . Letting $\\begin{array} { r } { V ^ { 2 } = \\operatorname* { m i n } _ { \\phi \\in \\Theta } \\frac { 1 } { 2 } \\mathbb { E } _ { \\mathcal { P } \\sim \\mathcal { Q } } \\| \\theta _ { \\mathcal { P } } - \\phi \\| _ { 2 } ^ { 2 } } \\end{array}$ , there exist settings of $n , \\gamma , \\eta$ such that we have the following bound on the expected transfer risk when a new task $\\mathcal { P }$ is sampled from $\\mathcal { Q }$ , m samples are drawn i.i.d. from $\\mathcal { P }$ , and we run $O G D$ with learning rate $\\eta$ starting from $\\begin{array} { r } { { \\hat { \\phi } } = { \\frac { 1 } { T } } \\sum _ { t = 1 } ^ { T } \\phi _ { t } } \\end{array}$ and use the average $\\hat { \\theta }$ of the resulting iterates as the learned parameter: ",
704
+ "bbox": [
705
+ 173,
706
+ 323,
707
+ 826,
708
+ 486
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "img_path": "images/ea9a55a6d4ab67ec186106ca696cd6258f5df0b174b487c7a7ab932e243dd614.jpg",
715
+ "text": "$$\n\\mathbb { E } \\underset { \\mathcal { P } \\sim \\mathcal { Q } \\ : \\ell \\sim \\mathcal { P } } { \\mathbb { E } } \\ell ( \\hat { \\theta } ) \\leq \\underset { \\mathcal { P } \\sim \\mathcal { Q } \\ : \\ell \\sim \\mathcal { P } } { \\mathbb { E } } \\ell ( \\theta ^ { * } ) + \\tilde { \\mathcal { O } } \\left( \\frac { V } { \\sqrt { m } } + \\frac { \\alpha D ^ { 2 } } { T } + \\frac { 1 } { \\alpha } \\operatorname* { m a x } \\left( \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right) \\right)\n$$",
716
+ "text_format": "latex",
717
+ "bbox": [
718
+ 225,
719
+ 492,
720
+ 769,
721
+ 529
722
+ ],
723
+ "page_idx": 6
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "Here $\\theta ^ { * }$ is any element of $\\Theta$ and the outer expectation is taken over $\\ell _ { t , i } \\sim \\mathcal { P } _ { t } \\sim \\mathcal { Q }$ and the randomness of the within-task $D P$ mechanism. Note that this procedure is $( \\varepsilon , \\delta )$ -DP. ",
728
+ "bbox": [
729
+ 174,
730
+ 534,
731
+ 821,
732
+ 563
733
+ ],
734
+ "page_idx": 6
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Theorem 3.1 shows that one can usefully run a DP-algorithm as the within-task method in meta-√ learning and still obtain improvement due to task-similarity. Specifically, the standard term of $1 / \\sqrt { m }$ is multiplied by $V$ , which is small if the tasks are related via the closeness of their risk minimizers. Thus we can use meta-learning to improve within-task performance relative to single-task learning. We also obtain a very fast convergence of $\\tilde { \\mathcal { O } } ( 1 / T )$ in the number of tasks. However, we do gain some $O ( 1 / m )$ terms due to the quadratic growth approximation and the privacy mechanism. Note that the assumption that both the functions and its gradients are Lipschitz-continuous are standard and required by the noisy SGD procedure of Bassily et al. (2019). ",
739
+ "bbox": [
740
+ 173,
741
+ 573,
742
+ 826,
743
+ 688
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "This theorem also gives us a relatively straightforward extension if the desire is to provide $( \\varepsilon , \\delta )$ - group-DP. Since any privacy mechanism that provides $( \\varepsilon , \\delta )$ -DP also provides $( k \\varepsilon , k e ^ { ( k - 1 ) \\epsilon } \\delta )$ -DP guarantees for groups of size $k$ (Dwork and Roth, 2014), we immediately have the following corollary. ",
750
+ "bbox": [
751
+ 174,
752
+ 694,
753
+ 826,
754
+ 738
755
+ ],
756
+ "page_idx": 6
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Corollary 3.1. Under the same assumptions and setting as Theorem 3.1, achieving $( \\varepsilon , \\delta )$ -group $D P$ is possible with the same guarantee except replacing $\\frac { d \\log { \\frac { 1 } { \\delta } } } { \\varepsilon ^ { 2 } }$ wit h k 3 d $\\begin{array} { r } { \\frac { k ^ { 3 } d } { \\varepsilon } + \\frac { k ^ { 2 } d } { \\varepsilon } \\left[ \\frac { 1 } { \\varepsilon } \\log \\frac { k } { \\delta } - 1 \\right] } \\end{array}$ ",
761
+ "bbox": [
762
+ 174,
763
+ 742,
764
+ 816,
765
+ 779
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "For constant $k$ , this allows us to enjoy the stronger guarantee while maintaining largely the same learning rates. This is a useful result given that in some settings, it may be desired to simultaneously protect small groups of size $k < < m _ { t }$ , such as protecting entire families for hospital records. ",
772
+ "bbox": [
773
+ 174,
774
+ 787,
775
+ 825,
776
+ 830
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "4 EMPIRICAL RESULTS ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 849,
787
+ 382,
788
+ 866
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "We present results that show it is possible to learn useful deep models in federated scenarios while still preserving privacy against all other participants. Specifically, we evaluate the performance of models that have been trained with a task-global DP algorithm in comparison to models that have been trained both non-privately and with local DP algorithms. We evaluate performance on federated language modeling and few-shot image classification, applying a practical batched variant of Algorithm 1. ",
795
+ "bbox": [
796
+ 174,
797
+ 882,
798
+ 825,
799
+ 924
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "image",
805
+ "img_path": "images/6bf7b551960969d39cb4270213f258dac4ce3fbf1628fb1f4cb2c1861206e1cf.jpg",
806
+ "image_caption": [
807
+ "Figure 2: Performance of different versions of Reptile on a next-word-prediction task for two federated datasets. We report the test accuracy on unseen tasks and repeat each experiment 10 times. Solid lines correspond to means, colored bands indicate 1 standard deviation, and dotted lines are for comparing final accuracies (private algorithms can only be trained until privacy budget is met). "
808
+ ],
809
+ "image_footnote": [],
810
+ "bbox": [
811
+ 303,
812
+ 102,
813
+ 674,
814
+ 436
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "",
821
+ "bbox": [
822
+ 174,
823
+ 536,
824
+ 825,
825
+ 579
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Datasets: We train a LSTM-RNN for next word prediction on two federated datasets: (1) The Shakespeare dataset as preprocessed by (Caldas et al., 2018), and (2) a dataset constructed from 3, 000 Wikipedia articles drawn from the Wiki-3029 dataset (Arora et al., 2019), where each article is used as a different task. For each dataset, we set a fixed number of tokens per task, discard tasks with fewer tokens than the specified, and discard samples from those tasks with more. We set the number of tokens per task to 800 for Shakespeare and to 1, 600 for Wikipedia, divide tokens into sequences of length 10, and we refer to these modified datasets as Shakespeare-800 and Wiki-1600. ",
832
+ "bbox": [
833
+ 174,
834
+ 594,
835
+ 825,
836
+ 691
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "For few-shot image classification, we use the Omniglot (Lake et al., 2011) and Mini-ImageNet (Ravi and Larochelle, 2017) datasets, both with 5-shot-5-way test tasks. As has been done for non-private Reptile (Nichol et al., 2018), we use more training shots at meta-training (trying $m = 1 0 , 2 0 , 3 0$ for Omniglot and $m = 1 5$ , 30, 45 for Mini-ImageNet) than at meta-test time. Though tasks could be sampled indefinitely, we set a fixed budget of tasks at $T = 1 0 ^ { 6 }$ to reflect to a setting in which a finite number of training tasks constrains our learning and privacy trade-off. For both local and task-global DP, the more tasks that can be grouped in a meta-batch means that less total noise can be added at each round. However, this also means fewer iterations can be taken. We note that for the smallest values of $m$ , this setting is enough for non-private training to essentially achieve the reported final accuracies from Nichol et al. (2018). ",
843
+ "bbox": [
844
+ 174,
845
+ 699,
846
+ 825,
847
+ 838
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Meta Learning Algorithm. We study the performance of our method when applied to the batched version of Reptile (Nichol et al., 2018) (which, in our setup, reduces to personalized Federated Averaging when the meta-learning rate is set to 1.0). For the language modelling tasks, we tune various configurations of task batch size for all methods. We also allow for multiple visits per client, though at the cost of more added noise per iteration for the private methods. Additionally, for language modeling, we implement gradient clipping and exponential decay on the meta learning rate. For Omniglot and Mini-ImageNet, we use largely the same parameters as Nichol et al. (2018) but we tune the parameters most directly related to privacy: the $L _ { 2 }$ clipping threshold, the Adam Learning Rate at meta-training time, the meta-batch size, and the within-task batch size. We defer a more complete discussion of hyperparameter tuning to Appendix B. ",
854
+ "bbox": [
855
+ 174,
856
+ 854,
857
+ 825,
858
+ 924
859
+ ],
860
+ "page_idx": 7
861
+ },
862
+ {
863
+ "type": "image",
864
+ "img_path": "images/980bb10fd82738ffbdd39b856bb0072baf7ab0596be743b1d9753fed73b6ca3d.jpg",
865
+ "image_caption": [
866
+ "Figure 3: Performance of task-global DP Reptile on 5-shot-5-way Omniglot and Mini-ImageNet. $1 0 ^ { \\overline { { 5 } } }$ sampled test- tasks were used for evaluation and experiments were repeated 3 times. We do not show a line for Local DP since all hyperparameter settings tried for Local DP resulted in worse performance than the β€œNo Meta-Learning\" baseline, whose performance can always be recovered. "
867
+ ],
868
+ "image_footnote": [],
869
+ "bbox": [
870
+ 178,
871
+ 99,
872
+ 818,
873
+ 383
874
+ ],
875
+ "page_idx": 8
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "",
880
+ "bbox": [
881
+ 174,
882
+ 481,
883
+ 825,
884
+ 550
885
+ ],
886
+ "page_idx": 8
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Privacy Considerations. For the task-global DP models, we set on each task and we implement DP-SGD (for language model $\\delta = 1 0 ^ { - 3 } < \\frac { 1 } { m ^ { 1 . 1 } }$ by conventionm (for imageclassification) within-task using the tools provided by TensorFlow Privacy1, using the RDP accountant to track our privacy budgets. Although these algorithms differ from the one presented in Section 3, they still let us realistically explore the efficacy of considering task-global privacy. For the language modeling datasets, we try three different privacy budgets (as determined relative to each other by successively doubling the amount of noise added when the goal is to take 1 full gradient step per task) and make sure that all training tasks are sampled without replacement with a fixed batch size until all are seen. This is necessary since multiple visits to a single client results in degradation of the privacy guarantee for that client. We instead aim to provide the same guarantee for each client. For local-DP, though this notion of DP is stronger, we explore the same privacy budgets so as to obtain guarantees that are of the same confidence. Here, we essentially run the DP-FedAvg algorithm from (McMahan et al., 2018) with some key changes. First, to get local DP instead of global, we add Gaussian noise to each clipped set of model updates before returning them to the central server instead of after aggregation. Second, while additional gradient steps within-task do not increase the amount of noise required, we do again iterate through tasks without replacement. Unlike for global DP, we cannot hope to have any privacy boosts due to sub-sampling if the meta-learner knows who it is communicating with. ",
891
+ "bbox": [
892
+ 174,
893
+ 564,
894
+ 826,
895
+ 815
896
+ ],
897
+ "page_idx": 8
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "Results. Figure 2 shows the performance of both the non-private and task-global private versions of Reptile (Nichol et al., 2018) for the language modelling tasks across three different privacy budgets. As expected, neither private algorithm reaches the same accuracy of the non-private version of the algorithm. Nonetheless, the task-global version still comes within $7 8 \\%$ , $8 8 \\%$ , and $9 2 \\%$ of the nonprivate accuracy for Shakespeare-800 and within $7 2 \\%$ , $8 2 \\%$ , and $8 3 \\%$ for Wiki-1600. Meanwhile achieving local DP results in only about $5 5 \\%$ and $5 0 \\%$ of the non-private accuracy on both datasets for the most generous privacy budget. In practice, these differences can be toggled by further changing the privacy budget or continuing to trade off more training iterations for larger noise multipliers. ",
902
+ "bbox": [
903
+ 174,
904
+ 830,
905
+ 825,
906
+ 900
907
+ ],
908
+ "page_idx": 8
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "",
913
+ "bbox": [
914
+ 174,
915
+ 103,
916
+ 823,
917
+ 146
918
+ ],
919
+ "page_idx": 9
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "We display results for few-shot image classification on Omniglot and Mini-ImageNet in Figure 3. In this setting, not applying meta-learning results in meta-test accuracies of around $6 2 \\%$ and $3 6 \\%$ , respectively. Thus, while performance is indeed lower than non-private learning, applying task-global DP does result in meta-learning benefits for test-time tasks. In settings where privacy is a concern, this increase in performance is still significantly advantageous for the β€œtask-owners”– test-time tasks (who hold less data). On average, they are able to obtain better models and are still guaranteed privacy at a single-digit $\\varepsilon$ . Intuitively, larger training-task datasets make it easier to apply privacy within-task, and in accordance with our learning guarantees, adding training shots indeed closes the gap in performance between task-global DP Reptile and non-private Reptile. In comparison, applying local-DP for a similar hyperparameter range consistently decreases performance at test-time. However, the no-meta-learning baseline is a theoretical lower bound for local-DP, as one could set the clipping threshold or meta-learning rate close to 0 to recover the effects of no meta-learning. ",
924
+ "bbox": [
925
+ 174,
926
+ 154,
927
+ 825,
928
+ 319
929
+ ],
930
+ "page_idx": 9
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "5 CONCLUSIONS ",
935
+ "text_level": 1,
936
+ "bbox": [
937
+ 176,
938
+ 342,
939
+ 328,
940
+ 358
941
+ ],
942
+ "page_idx": 9
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "In this work, we have outlined and studied the issue of privacy in the context of meta-learning. Focusing on the class of gradient-based parameter-transfer methods, we used differential privacy to address the privacy risks posed to task-owners by sharing task-specific models with a central meta-learner. To do so, we formalized and considered the notion of task-global differential privacy, which guarantees that individual examples from the tasks are protected from all downstream agents (and particularly the meta-learner). Working in this privacy model, we developed a differentially private algorithm that guarantees both this protection as well as learning-theoretic results in the convex setting. Finally, we demonstrate how this notion of privacy can translate into useful deep learning models for non-convex language modelling and image-classification tasks. ",
947
+ "bbox": [
948
+ 174,
949
+ 375,
950
+ 825,
951
+ 500
952
+ ],
953
+ "page_idx": 9
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "ACKNOWLEDGMENTS ",
958
+ "text_level": 1,
959
+ "bbox": [
960
+ 176,
961
+ 523,
962
+ 356,
963
+ 537
964
+ ],
965
+ "page_idx": 9
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "This work was supported in part by DARPA FA875017C0141, the National Science Foundation grants IIS1618714, IIS1705121, and IIS1838017, an Okawa Grant, a Google Faculty Award, an Amazon Web Services Award, a JP Morgan A.I. Research Faculty Award, and a Carnegie Bosch Institute Research Award. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of DARPA, the National Science Foundation, or any other funding agency. ",
970
+ "bbox": [
971
+ 174,
972
+ 555,
973
+ 825,
974
+ 638
975
+ ],
976
+ "page_idx": 9
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "REFERENCES ",
981
+ "text_level": 1,
982
+ "bbox": [
983
+ 176,
984
+ 662,
985
+ 285,
986
+ 678
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Naman Agarwal, Ananda Theertha Suresh, Felix Xinnan X Yu, Sanjiv Kumar, and Brendan McMahan. cpsgd: Communication-efficient and differentially-private distributed sgd. In Advances in Neural Information Processing Systems 31, pages 7564–7575. Curran Associates, Inc., 2018. ",
993
+ "bbox": [
994
+ 174,
995
+ 686,
996
+ 826,
997
+ 729
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Nikunj Saunshi, and Orestis Plevrakis. A theoretical analysis of contrastive unsupervised representation learning. In Proceedings of the 36th International Conference on Machine Learning, 2019. ",
1004
+ "bbox": [
1005
+ 173,
1006
+ 742,
1007
+ 823,
1008
+ 785
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Raef Bassily, Vitaly Feldman, Kunal Talwar, and Abhradeep Thakurta. Private stochastic convex optimization with optimal rates. arXiv, 2019. URL https://arxiv.org/abs/1908.09970. ",
1015
+ "bbox": [
1016
+ 173,
1017
+ 797,
1018
+ 825,
1019
+ 827
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Jonathan Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12: 149–198, 2000. ",
1026
+ "bbox": [
1027
+ 169,
1028
+ 839,
1029
+ 826,
1030
+ 867
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Abhishek Bhowmick, John Duchi, Julien Freudiger, Gaurav Kapoor, and Ryan Rogers. Protection against reconstruction and its applications in private federated learning, 2019. https://arxiv. org/abs/1812.00984. ",
1037
+ "bbox": [
1038
+ 176,
1039
+ 882,
1040
+ 826,
1041
+ 922
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Sebastian Caldas, Peter Wu, Tian Li, Jakub KonecnΓ½, H. Brendan McMahan, Virginia Smith, and Ameet Talwalkar. LEAF: A benchmark for federated settings, 2018. URL http://arxiv. org/abs/1812.01097. \nNicholas Carlini, Chang Liu, Jernej Kos, Úlfar Erlingsson, and Dawn Song. The secret sharer: Measuring unintended neural network memorization & extracting secrets, 2018. URL http: //arxiv.org/abs/1802.08232. \nNicolΓ³ Cesa-Bianchi, Alex Conconi, and Claudio Gentile. On the generalization ability of on-line learning algorithms. IEEE Transactions on Information Theory, 50(9):2050–2057, 2004. \nFei Chen, Zhenhua Dong, Zhenguo Li, and Xiuqiang He. Federated meta-learning for recommendation. CoRR, abs/1802.07876, 2018. URL http://arxiv.org/abs/1802.07876. \nGiulia Denevi, Carlo Ciliberto, Riccardo Grazzi, and Massimiliano Pontil. Learning-to-learn stochastic gradient descent with biased regularization, 2019. URL http://arxiv.org/abs/1903. 10399. \nJohn Duchi, Martin Wainwright, and Michael Jordan. Minimax optimal procedures for locally private estimation. In Journal of the American Statistical Association. 2018. \nCynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3&4):211–407, 2014. doi: 10.1561/0400000042. \nChelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning, 2017. \nChelsea Finn, Aravind Rajeswaran, Sham M. Kakade, and Sergey Levine. Online meta-learning. In Proceedings of the 36th International Conference on Machine Learning, 2019. \nMatt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1322–1333, 2015. \nRobin C. Geyer, Tassilo J. Klein, and Moin Nabi. Differentially private federated learning: A client level perspective, 2018. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ SkVRTj0cYQ. \nBargav Jayaraman and David Evans. When relaxations go bad: \"differentially-private\" machine learning, 2019. URL http://arxiv.org/abs/1902.08874. \nMikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Provable guarantees for gradient-based meta-learning. In Proceedings of the 36th International Conference on Machine Learning, 2019a. \nMikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Adaptive gradient-based meta-learning methods. In Advances in Neural Information Processing Systems, 2019b. To Appear. \nBrenden M. Lake, Ruslan Salakhutdinov, Jason Gross, and Joshua B. Tenenbaum. One shot learning of simple visual concepts. In CogSci, 2011. \nTian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions, 2019. URL http://arxiv.org/abs/1908.07873. \nH Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, pages 1273–1282, 2017. \nH. Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private language models. In ICLR, 2018. \nAlex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. CoRR, abs/1803.02999, 2018. URL http://arxiv.org/abs/1803.02999. \nSachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proceedings of the 5th International Conference on Learning Representations, 2017. \nShai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014. \nReza Shokri, Marco Stronati, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In Proceedings of 2017 IEEE Symposium on Security and Privacy, pages 3–18, 2017. \nVirginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems 31, 2017. \nSalvatore J. Stolfo, David W. Fan, Wenke Lee, Andreas L. Prodromidis, and Philip K. Chan. Credit card fraud detection using meta-learning: Issues and initial results 1. In Working notes of AAAI Workshop on AI Approaches to Fraud Detection and Risk Management., 1997. \nStacey Truex, Nathalie Baracaldo, Ali Anwar, Thomas Steinke, Heiko Ludwig, and Rui Zhang. A hybrid approach to privacy-preserving federated learning, 2019. URL http://arxiv.org/ abs/1812.03224. \nXi Sheryl Zhang, Fengyi Tang, Hiroko Dodge, Jiayu Zhou, and Fei Wang. Metapred: Metalearning for clinical risk prediction with limited patient electronic health records, 2019. URL https://arxiv.org/abs/1905.03218. ",
1048
+ "bbox": [
1049
+ 171,
1050
+ 60,
1051
+ 828,
1052
+ 931
1053
+ ],
1054
+ "page_idx": 10
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "",
1059
+ "bbox": [
1060
+ 171,
1061
+ 101,
1062
+ 826,
1063
+ 377
1064
+ ],
1065
+ "page_idx": 11
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "A PROOFS OF LEARNING GUARANTEES ",
1070
+ "text_level": 1,
1071
+ "bbox": [
1072
+ 176,
1073
+ 102,
1074
+ 519,
1075
+ 118
1076
+ ],
1077
+ "page_idx": 12
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Setting A.1. We assume that at each time-step t an adversary chooses a task-distribution $\\mathcal { P } _ { t }$ over loss-functions on $\\Theta \\subset \\mathbb { R } ^ { d }$ and samples m loss functions $\\ell _ { t , i }$ for $i \\in [ m ]$ . At each time-step $t$ the tasklearner receives a parameter $\\phi _ { t }$ from the meta-learner, runs online gradient descent with step-size $\\eta > 0$ starting from $\\phi _ { t }$ , and uses the average iterate $\\widehat { \\theta } _ { t }$ as its learned parameter. The task-learner also runs Algorithm $I$ of Bassily et al. (2019) for $\\begin{array} { r } { n = \\operatorname* { m i n } \\left\\{ \\frac { m } { 8 } , \\frac { \\varepsilon ^ { 2 } m ^ { 2 } } { 3 2 d \\log \\frac { 1 } { \\delta } } \\right\\} } \\end{array}$ steps with learning rate $\\frac { \\gamma } { G \\sqrt { n } } > 0$ on these loss functions and sends the result ${ \\bar { \\theta } } _ { t }$ to the meta-learner. The meta-learner updates $\\phi _ { t + 1 } = ( 1 - 1 / t ) \\phi _ { t } + \\bar { \\theta } _ { t } / t$ . We assume all loss functions are $G$ -Lipschitz w.r.t. $\\| \\cdot \\| _ { 2 }$ and $\\beta$ -strongly-smooth w.r.t. $\\| \\cdot \\| _ { 2 }$ for some $\\begin{array} { r } { \\beta \\leq \\frac { G } { D } \\operatorname* { m i n } \\left\\{ \\sqrt { \\frac { m } { 2 } } , \\frac { \\varepsilon n } { 2 \\sqrt { 2 d \\log \\frac { 1 } { \\delta } } } \\right\\} } \\end{array}$ , where $D$ is the diameter of $\\Theta$ . For each distribution $\\mathcal { P } _ { t }$ let $\\ell _ { t } ( \\theta ) = \\mathbb { E } _ { \\ell \\sim \\mathcal { P } _ { t } } ( \\theta )$ be its population risk, $\\begin{array} { r } { \\hat { \\ell } _ { t } ( \\theta ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\ell _ { t , i } ( \\theta ) b e } \\end{array}$ its empirical risk, and $\\theta _ { t } ^ { * } \\in \\arg \\operatorname* { m i n } _ { \\theta \\in \\Theta } \\ell _ { t } ( \\theta )$ be the closest population risk minimizer to ${ \\bar { \\theta } } _ { t }$ . ",
1082
+ "bbox": [
1083
+ 171,
1084
+ 132,
1085
+ 828,
1086
+ 314
1087
+ ],
1088
+ "page_idx": 12
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Lemma A.1. In Setting A.1 we have ",
1093
+ "bbox": [
1094
+ 174,
1095
+ 316,
1096
+ 416,
1097
+ 332
1098
+ ],
1099
+ "page_idx": 12
1100
+ },
1101
+ {
1102
+ "type": "equation",
1103
+ "img_path": "images/a93839b4cc7f3acf9015aa1a631b28dfd77d36ad5c7e3446c970a791f24d7e2a.jpg",
1104
+ "text": "$$\n\\mathbb { E } \\ell _ { t } ( \\hat { \\theta } _ { t } ) - \\ell _ { t } ( \\theta _ { t } ^ { * } ) \\leq 5 G \\left( \\frac { \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } { \\gamma } + \\gamma \\right) \\operatorname* { m a x } \\left\\{ \\frac { \\sqrt { d \\log \\frac { 1 } { \\delta } } } { \\varepsilon m } , \\frac { 1 } { \\sqrt { m } } \\right\\}\n$$",
1105
+ "text_format": "latex",
1106
+ "bbox": [
1107
+ 266,
1108
+ 338,
1109
+ 732,
1110
+ 390
1111
+ ],
1112
+ "page_idx": 12
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Proof. Similarly to Lemma 3.3 in Bassily et al. (2019), applying standard OGD analysis (e.g. Lemmas 14.1 and 14.9 of Shalev-Shwartz and Ben-David (2014)) to noisy gradient vectors and taking expectations yields ",
1117
+ "bbox": [
1118
+ 173,
1119
+ 402,
1120
+ 825,
1121
+ 445
1122
+ ],
1123
+ "page_idx": 12
1124
+ },
1125
+ {
1126
+ "type": "equation",
1127
+ "img_path": "images/2ce7e669ba7dceeee9f4d905edcab11d61b2c8e48d054168db2f1ec577c903f0.jpg",
1128
+ "text": "$$\n\\mathbb { E } \\left( \\hat { \\ell } _ { t } ( \\hat { \\theta } _ { t } ) - \\hat { \\ell } _ { t } ( \\theta _ { t } ^ { * } ) \\right) \\leq \\frac { \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta n } + \\frac { \\eta G ^ { 2 } } { 2 } + \\eta \\sigma ^ { 2 } d\n$$",
1129
+ "text_format": "latex",
1130
+ "bbox": [
1131
+ 326,
1132
+ 452,
1133
+ 671,
1134
+ 486
1135
+ ],
1136
+ "page_idx": 12
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "where $n$ is the number of steps in noisy SGD and $\\sigma ^ { 2 }$ is the variance of the noise added at each step. As in the proof of Theorem 3.2 of Bassily et al. (2019), substituting $\\begin{array} { r } { \\sigma ^ { 2 } = \\frac { 8 n G ^ { 2 } \\log \\frac { 1 } { \\delta } } { m ^ { 2 } \\varepsilon ^ { 2 } } } \\end{array}$ and applying the stability result in Lemma 3.4 of the same paper yields ",
1141
+ "bbox": [
1142
+ 174,
1143
+ 492,
1144
+ 826,
1145
+ 541
1146
+ ],
1147
+ "page_idx": 12
1148
+ },
1149
+ {
1150
+ "type": "equation",
1151
+ "img_path": "images/4ecf47eff1aa7def416f37488b2a25004707042c6ae499a595adb55a0711687d.jpg",
1152
+ "text": "$$\n\\mathbb { E } \\ell _ { t } ( \\hat { \\theta } _ { t } ) - \\ell _ { t } ( \\theta _ { t } ^ { * } ) \\leq \\frac { \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta n } + \\frac { \\eta G ^ { 2 } } { 2 } \\left( \\frac { 1 6 n d \\log \\frac { 1 } { \\delta } } { m ^ { 2 } \\varepsilon ^ { 2 } } + 1 \\right) + \\frac { \\eta G ^ { 2 } n } { m }\n$$",
1153
+ "text_format": "latex",
1154
+ "bbox": [
1155
+ 266,
1156
+ 546,
1157
+ 730,
1158
+ 583
1159
+ ],
1160
+ "page_idx": 12
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Substituting $\\begin{array} { r } { n = \\operatorname* { m i n } \\left\\{ \\frac { m } { 8 } , \\frac { \\varepsilon ^ { 2 } m ^ { 2 } } { 3 2 d \\log \\frac { 1 } { \\delta } } \\right\\} } \\end{array}$ and $\\begin{array} { r } { \\eta = \\frac { \\gamma } { G \\sqrt { n } } } \\end{array}$ yields the result. ",
1165
+ "bbox": [
1166
+ 174,
1167
+ 590,
1168
+ 625,
1169
+ 616
1170
+ ],
1171
+ "page_idx": 12
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Lemma A.2. In Setting A.1, fix some $\\phi ^ { * } \\in \\Theta$ and define $\\begin{array} { r } { \\bar { V } ^ { 2 } = \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\mathbb { E } \\| \\phi ^ { * } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } \\end{array}$ . Then for $\\begin{array} { r } { \\gamma = \\frac { 1 2 0 G } { \\alpha } \\operatorname* { m a x } \\left\\{ \\frac { \\sqrt { d \\log \\frac { 1 } { \\delta } } } { \\varepsilon m } , \\frac { 1 } { \\sqrt { m } } \\right\\} } \\end{array}$ we have ",
1176
+ "bbox": [
1177
+ 173,
1178
+ 99,
1179
+ 826,
1180
+ 150
1181
+ ],
1182
+ "page_idx": 13
1183
+ },
1184
+ {
1185
+ "type": "equation",
1186
+ "img_path": "images/404d6aaa4be9ee845c37dfa7dd83ecded0899300e1f04fe9026e11fbb7495c02.jpg",
1187
+ "text": "$$\n\\mathbb { E } \\sum _ { t = 1 } ^ { T } \\frac { \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta m } \\leq \\frac { D ^ { 2 } ( 1 + \\log T ) + 4 \\hat { V } ^ { 2 } T } { 2 \\eta m } + \\frac { 7 2 0 0 G ^ { 2 } } { \\alpha ^ { 2 } \\eta m } \\operatorname* { m a x } \\left\\{ \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right\\} T\n$$",
1188
+ "text_format": "latex",
1189
+ "bbox": [
1190
+ 232,
1191
+ 159,
1192
+ 764,
1193
+ 202
1194
+ ],
1195
+ "page_idx": 13
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Proof. We first bound the left-hand side without the denominator as ",
1200
+ "bbox": [
1201
+ 173,
1202
+ 213,
1203
+ 620,
1204
+ 229
1205
+ ],
1206
+ "page_idx": 13
1207
+ },
1208
+ {
1209
+ "type": "equation",
1210
+ "img_path": "images/d99a5c25a01c9a3f8ea95d0843d30901612e53fa5a4899c1f4d3b9e29b8663be.jpg",
1211
+ "text": "$$\n\\begin{array} { r l } { \\varepsilon _ { \\perp } \\ge \\frac { \\varepsilon _ { \\perp } } { \\varepsilon _ { \\perp } } \\ge \\frac { 1 } { \\varepsilon _ { \\perp } } \\ge } & { \\varepsilon _ { \\perp } } \\\\ & { = 1 } \\\\ & { \\le 2 \\kappa \\sum _ { i = 1 } ^ { \\nu } \\| \\partial _ { i } - \\partial _ { i } \\xi \\| ^ { 2 } + \\| \\partial _ { i } - \\theta _ { i } \\| ^ { 2 } } \\\\ & { \\le D ^ { \\perp } ( 1 - \\log { \\varepsilon _ { \\perp } } ) + 2 \\sum _ { i = 1 } ^ { \\nu } \\| \\phi - \\varepsilon _ { \\perp } \\| ^ { 2 } + \\| \\partial _ { i } - \\partial _ { i } \\xi \\| ^ { 2 } } \\\\ & { \\le D ^ { \\perp } ( 1 - \\log { \\varepsilon _ { \\perp } } ) + 2 \\sum _ { i = 1 } ^ { \\nu } \\| \\phi - \\varepsilon _ { \\perp } \\| ^ { 2 } + \\| \\partial _ { i } - \\partial _ { i } \\xi \\| ^ { 2 } } \\\\ & { \\le p ^ { 2 } \\varepsilon _ { \\perp } ^ { 2 } + 1 - \\log { \\varepsilon _ { \\perp } } ) + 2 \\sum _ { i = 1 } ^ { \\nu } 2 \\| \\phi - \\varepsilon _ { \\perp } \\| ^ { 2 } + \\| \\partial _ { i } - \\partial _ { i } \\xi \\| ^ { 2 } } \\\\ & { = p ^ { 2 } \\varepsilon _ { \\perp } ^ { 2 } ( 1 - \\log { \\varepsilon _ { \\perp } } ) + 4 \\kappa ^ { 2 } T ^ { 2 } + 4 \\| \\partial _ { i } ^ { 2 } \\sum _ { i = 1 } ^ { \\nu } \\| \\hat { \\varepsilon } _ { i } - \\partial _ { i } \\xi \\| ^ { 2 } } \\\\ & { = D ^ { \\perp } ( 1 - \\log { \\varepsilon _ { \\perp } } ) + 4 \\kappa ^ { 2 } T ^ { 2 } + 4 \\| \\partial _ { i } ^ { 2 } \\sum _ { i = 1 } ^ { \\nu } 2 \\hat { \\varepsilon } _ { \\perp } \\phi _ { i } ^ { 2 } - \\varepsilon _ { \\perp } ( | \\partial _ { i } \\xi | ^ { 2 } ) } \\\\ & { \\le D ^ { \\perp } ( 1 - \\log { \\varepsilon _ { \\perp } } ) + 4 \\kappa ^ { 2 } T ^ { 2 } + \\frac { 1 } { \\omega _ { \\perp } } \\sum _ { i = 1 } ^ { \\nu } 2 \\hat { \\varepsilon } _ { \\perp } ( \\rho _ { i } ) - 6 \\hat { \\varepsilon } ( | \\hat { \\varepsilon } _ { \\perp } - \\hat { \\varepsilon } _ { \\perp } | ^ { 2 } ) } \\\\ & \\le D ^ { \\perp } ( 1 - \\ \\end{array}\n$$",
1212
+ "text_format": "latex",
1213
+ "bbox": [
1214
+ 187,
1215
+ 252,
1216
+ 807,
1217
+ 553
1218
+ ],
1219
+ "page_idx": 13
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "where in the last step we applied Lemma A.1. Substituting $\\begin{array} { r } { \\gamma = \\frac { 1 2 0 G } { \\alpha } \\operatorname* { m a x } \\left\\{ \\frac { \\sqrt { d \\log \\frac { 1 } { \\delta } } } { \\varepsilon m } , \\frac { 1 } { \\sqrt { m } } \\right\\} } \\end{array}$ yields ",
1224
+ "bbox": [
1225
+ 171,
1226
+ 559,
1227
+ 818,
1228
+ 590
1229
+ ],
1230
+ "page_idx": 13
1231
+ },
1232
+ {
1233
+ "type": "equation",
1234
+ "img_path": "images/5cc98e36fccb330c01924bc7758649584c8a29142487ad4793dd92af09bb0c73.jpg",
1235
+ "text": "$$\n\\mathbb { E } \\sum _ { t = 1 } ^ { T } \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } \\leq D ^ { 2 } ( 1 + \\log T ) + 4 { \\bar { V } } ^ { 2 } T + \\frac { 1 4 4 0 0 G ^ { 2 } } { \\alpha ^ { 2 } } \\operatorname* { m a x } \\left\\{ \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right\\} T\n$$",
1236
+ "text_format": "latex",
1237
+ "bbox": [
1238
+ 232,
1239
+ 597,
1240
+ 766,
1241
+ 640
1242
+ ],
1243
+ "page_idx": 13
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "The result follows by dividing by 2Ξ·m. ",
1248
+ "bbox": [
1249
+ 173,
1250
+ 646,
1251
+ 431,
1252
+ 662
1253
+ ],
1254
+ "page_idx": 13
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Theorem A.1. In Setting A.1, suppose all distributions $\\mathcal { P } _ { t }$ were drawn i.i.d. from some metadistribution $\\mathcal { Q }$ and we used $\\begin{array} { r } { \\gamma = \\frac { 1 2 0 G } { \\alpha } \\operatorname* { m a x } \\left\\{ \\frac { \\sqrt { d \\log \\frac { 1 } { \\delta } } } { \\varepsilon m } , \\frac { 1 } { G \\sqrt { m } } \\right\\} } \\end{array}$ . Suppose we draw another taskdistribution $\\mathcal { P } \\sim \\mathcal { Q }$ with population risk $\\ell _ { \\mathcal { P } }$ and minimizer $\\theta _ { \\mathcal { P } }$ , set $\\begin{array} { r } { \\hat { \\phi } = \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } \\phi _ { t } } \\end{array}$ , and run OGD with learning rate $\\begin{array} { r } { \\eta = \\frac { V + \\frac { 1 } { \\alpha \\sqrt { m } } } { \\sqrt { m } } } \\end{array}$ starting from $\\hat { \\phi }$ on m samples from $\\mathcal { P }$ . Then the average iterate $\\hat { \\theta }$ satisfies ",
1259
+ "bbox": [
1260
+ 171,
1261
+ 102,
1262
+ 828,
1263
+ 205
1264
+ ],
1265
+ "page_idx": 14
1266
+ },
1267
+ {
1268
+ "type": "equation",
1269
+ "img_path": "images/1d30381becf20adce4d12192dbd2df83d0509565cdc19d1056ff2fabdd542446.jpg",
1270
+ "text": "$$\n\\mathbb { E } ( \\ell _ { \\mathcal { P } } ( \\hat { \\theta } ) - \\ell _ { \\mathcal { P } } ( \\theta ^ { * } ) ) \\le \\frac { 7 G V } { 2 \\sqrt { m } } + \\frac { 7 2 0 1 G } { \\alpha } \\operatorname* { m a x } \\left\\{ \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right\\} + \\frac { \\alpha G D ^ { 2 } } { 2 T } ( 1 + \\log T )\n$$",
1271
+ "text_format": "latex",
1272
+ "bbox": [
1273
+ 225,
1274
+ 210,
1275
+ 769,
1276
+ 247
1277
+ ],
1278
+ "page_idx": 14
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "for $\\begin{array} { r } { V ^ { 2 } = \\operatorname* { m i n } _ { \\phi \\in \\Theta } \\mathbb { E } _ { \\mathcal { P } \\sim \\mathcal { Q } } \\operatorname* { m a x } _ { \\theta _ { \\mathcal { P } } } \\| \\phi - \\theta _ { \\mathcal { P } } \\| _ { 2 } ^ { 2 } . } \\end{array}$ ",
1283
+ "bbox": [
1284
+ 171,
1285
+ 253,
1286
+ 468,
1287
+ 271
1288
+ ],
1289
+ "page_idx": 14
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Proof. Applying online-to-batch conversion (e.g. Proposition A.1 in Khodak et al. (2019b)) twice and substituting Lemma A.2 yields ",
1294
+ "bbox": [
1295
+ 173,
1296
+ 284,
1297
+ 823,
1298
+ 314
1299
+ ],
1300
+ "page_idx": 14
1301
+ },
1302
+ {
1303
+ "type": "equation",
1304
+ "img_path": "images/8a0015a28f9324288ea0eac70ffe63f8e45a0eb0d4a1461ab29f83c62a4eda43.jpg",
1305
+ "text": "$$\n\\begin{array} { r l } & { \\mathbb { E } ( \\ell _ { \\mathcal { P } } ( \\hat { \\theta } ) - \\ell _ { \\mathcal { P } } ( \\theta ^ { * } ) ) } \\\\ & { \\qquad \\le \\mathbb { E } \\frac { \\| \\hat { \\phi } - \\theta ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta m } + \\eta G ^ { 2 } } \\\\ & { \\qquad \\le \\mathbb { E } \\frac { \\| \\hat { \\phi } ^ { * } - \\theta ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta m } + \\eta G ^ { 2 } + \\frac { 1 } { 2 \\eta m T } \\displaystyle \\sum _ { t = 1 } ^ { T } \\mathbb { E } \\| \\phi _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 } } \\\\ & { \\qquad \\le \\mathbb { E } \\frac { \\| \\hat { \\phi } ^ { * } - \\theta ^ { * } \\| _ { 2 } ^ { 2 } } { 2 \\eta m } + \\eta G ^ { 2 } + \\frac { D ^ { 2 } \\frac { 1 + \\log T } { T } } { 2 \\eta m } + 4 \\mathbb { E } \\bar { V } ^ { 2 } + \\frac { 7 2 0 0 G ^ { 2 } } { \\alpha ^ { 2 } \\eta m } \\operatorname* { m a x } \\left\\{ \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right\\} } \\\\ & { \\qquad = \\frac { 5 V ^ { 2 } } { 2 \\eta m } + \\eta G ^ { 2 } + \\frac { 7 2 0 0 G ^ { 2 } } { \\alpha ^ { 2 } \\eta m } \\operatorname* { m a x } \\left\\{ \\frac { d \\log \\frac { 1 } { \\delta } } { \\varepsilon ^ { 2 } m ^ { 2 } } , \\frac { 1 } { m } \\right\\} + \\frac { D ^ { 2 } } { 2 \\eta m T } ( 1 + \\log T ) } \\end{array}\n$$",
1306
+ "text_format": "latex",
1307
+ "bbox": [
1308
+ 192,
1309
+ 318,
1310
+ 807,
1311
+ 498
1312
+ ],
1313
+ "page_idx": 14
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "where we have applied $\\mathbb { E } \\bar { V } ^ { 2 } \\le V ^ { 2 }$ . Substituting $\\begin{array} { r } { \\eta = \\frac { V + \\frac { 1 } { \\alpha \\sqrt { m } } } { G \\sqrt { m } } } \\end{array}$ yields the result. ",
1318
+ "bbox": [
1319
+ 171,
1320
+ 503,
1321
+ 692,
1322
+ 529
1323
+ ],
1324
+ "page_idx": 14
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "B EXPERIMENT DETAILS ",
1329
+ "text_level": 1,
1330
+ "bbox": [
1331
+ 176,
1332
+ 102,
1333
+ 398,
1334
+ 118
1335
+ ],
1336
+ "page_idx": 15
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Datasets: We train a next word predictor for two federated datasets: (1) The Shakespeare dataset as preprocessed by (Caldas et al., 2018), and (2) a dataset constructed from Wikipedia articles, where each article is used as a different task. For each dataset, we set a fixed number of tokens per task, discard tasks with less tokens than the specified, and discard samples from those tasks with more. For Shakespeare, we set the number of tokens per task to 800 tokens, leaving 279 tasks for meta-training, 31 for meta-validation, and 35 for meta-testing. For Wikipedia, we set the number of tokens to 1, 600, which corresponds to having 2, 179 tasks for meta-training, 243 for meta-validation, and 606 for meta-testing. For the meta-validation and meta-test tasks, $7 5 \\%$ of the tokens are used for local training, and the remaining $2 5 \\%$ for local testing. ",
1341
+ "bbox": [
1342
+ 174,
1343
+ 133,
1344
+ 825,
1345
+ 258
1346
+ ],
1347
+ "page_idx": 15
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "For the few-shot image classification experiments, we follow the standard set-up by splitting labels into training and testing and forming training tasks by randomly drawing labels from the training set. At evaluation time, we draw from the test set. ",
1352
+ "bbox": [
1353
+ 176,
1354
+ 265,
1355
+ 823,
1356
+ 308
1357
+ ],
1358
+ "page_idx": 15
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Model Structure: Our model first maps each token to an embedding of dimension 200 before passing it through an LSTM of two layers of 200 units each. The LSTM emits an output embedding, which is scored against all items of the vocabulary via dot product followed by a softmax. We build the vocabulary from the tokens in the meta-training set and fix its length to 10, 000. We use a sequence length of 10 for the LSTM and, just as (McMahan et al., 2018), we evaluate using AccuracyTop1 (i.e., we only consider the predicted word to which the model assigned the highest probability) and consider all predictions of the unknown token as incorrect. For Omniglot and Mini-ImageNet, we use the architectures from Nichol et al. (2018) to also match the ones from Finn et al. (2017). We evaluate in the standard transductive setting. ",
1363
+ "bbox": [
1364
+ 173,
1365
+ 323,
1366
+ 825,
1367
+ 449
1368
+ ],
1369
+ "page_idx": 15
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Hyperparameters: For the language-modeling experiments, we tune the hyperparameters on the set of meta-validation tasks. For both datasets and all versions of the meta-learning algorithm, we tune hyperparameters in a two step process. We first tune all the parameters that are not related to refinement: the meta learning rate, the local (within-task) meta-training learning rate, the maximum gradient norm, and the decay constant. Then, we use the configuration with the best accuracy pre-refinement and then tune the refinement parameters: the refine learning rate, refine batch size, and refine epochs. ",
1374
+ "bbox": [
1375
+ 174,
1376
+ 463,
1377
+ 825,
1378
+ 561
1379
+ ],
1380
+ "page_idx": 15
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "All other hyperparameters are kept fixed for the sake of comparison: full batch steps were taken on within-task data, with the maximum number of microbatches used for the task-global DP model. The parameter search spaces from which we sample are given in Tables 2, 3, 4 while Tables 5 and 6 contain our final choices. Note that the space for Local DP, especially in terms of the clipping threshold, is distinctively different from the others, as we did not find that searching through ranges similar to those for non-private and task-global DP led to learning high-quality meta-initializations. ",
1385
+ "bbox": [
1386
+ 174,
1387
+ 568,
1388
+ 825,
1389
+ 651
1390
+ ],
1391
+ "page_idx": 15
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "For Omniglot, we largely based our hyperparameters on the choices of Nichol et al. (2018) for 5-way classification. We vary $m$ , the number of training shots, but we continue to take 5 SGD steps of expected size $m$ within task and we leave the test-time SGD procedure exactly the same. However, we do tune for privacy clipping thresholds $\\{ 0 . 0 1 , 0 . 0 2 5 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 4 , 0 . 5 \\}$ , Adam Learning Rates for meta-training tasks $\\left\\{ 1 0 ^ { - 4 } , 5 \\times \\mathrm { i } 0 ^ { - 4 } , 1 0 ^ { - 3 } , 5 \\times 1 0 ^ { - 3 } \\right\\}$ , and meta-batch sizes of $\\{ 5 , 1 5 , \\bar { 2 5 } , 5 0 \\}$ . ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 659,
1399
+ 825,
1400
+ 742
1401
+ ],
1402
+ "page_idx": 15
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "For Mini-ImageNet, we perform a similar search except we also double the inner batch size to $2 m$ (trading off less privacy amplification due to subsampling). We continue to tune for privacy clipping thresholds $\\{ 0 . 0 1 , \\dot { 0 } . 0 2 \\dot { 5 } , 0 . 0 5 , 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 , 1 . 1 , 1 . 3 , 1 . 5 \\}$ , Adam Learning Rates $\\{ 1 \\bar { 0 } ^ { - 4 } , \\bar { 5 } \\times 1 0 ^ { - 4 } , 1 0 ^ { \\dot { - } 3 } , 5 \\times 1 0 ^ { - 3 } \\}$ , and meta-batch sizes of $\\{ 5 , 1 5 , 2 5 , 5 0 \\}$ . ",
1407
+ "bbox": [
1408
+ 174,
1409
+ 750,
1410
+ 823,
1411
+ 806
1412
+ ],
1413
+ "page_idx": 15
1414
+ },
1415
+ {
1416
+ "type": "table",
1417
+ "img_path": "images/1d56b84c65f561a9c4aeeba07940ef87d16cd3418dd2f7d8e6ce7074e418463c.jpg",
1418
+ "table_caption": [
1419
+ "Table 2: Hyperparameter Search Space for Non-Private Training "
1420
+ ],
1421
+ "table_footnote": [],
1422
+ "table_body": "<table><tr><td colspan=\"2\">Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3,4,5,6,7,8,9}</td><td>{1,2,3}</td></tr><tr><td>Tasks Per Round</td><td>{5,10}</td><td>{5,10}</td></tr><tr><td>Within-Task Steps</td><td>{1,3,5,7,9}</td><td>{1,3,5,7,9}</td></tr><tr><td>Meta LR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td rowspan=\"3\">Meta Decay Rate Within-Task LR</td><td>{0,0.001,0.005,0.01,0.025,0.05,0.1}</td><td>{0,0.001,0.005,0.01,0.025,0.05}</td></tr><tr><td>{1,√2,2,2√2,4,4√2,8}</td><td>{1,√2,2,2√2,4,4√2,8}</td></tr><tr><td>{0.4,0.5,0.6,0.7, 0.8, 0.9, 1.0}</td><td>{0.3, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}</td></tr><tr><td rowspan=\"2\">Refine LR Refine Batch Size</td><td>{0.1, 0.15,0.3,0.5,0.7, 0.8}</td><td>{0.1,0.15, 0.3,0.5, 0.7, 0.8}</td></tr><tr><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>",
1423
+ "bbox": [
1424
+ 173,
1425
+ 162,
1426
+ 825,
1427
+ 334
1428
+ ],
1429
+ "page_idx": 16
1430
+ },
1431
+ {
1432
+ "type": "table",
1433
+ "img_path": "images/f843673a59d28a3905ef73acae1dd4bbe276e7a9dc88905acf92b468c4c53b86.jpg",
1434
+ "table_caption": [
1435
+ "Table 3: Hyperparameter Search Space for Task-Global DP Training "
1436
+ ],
1437
+ "table_footnote": [],
1438
+ "table_body": "<table><tr><td></td><td>Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3}</td><td>{1,2}</td></tr><tr><td>TasksPerRound</td><td>{5,10}</td><td>{5,10}</td></tr><tr><td>Within-Task Steps</td><td>1</td><td>1</td></tr><tr><td>MetaLR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td>Meta Decay Rate</td><td>{0,0.001,0.005,0.01, 0.025, 0.05,0.1}</td><td>{0,0.001,0.005,0.01, 0.025, 0.05}</td></tr><tr><td>Within-Task LR</td><td>{1,√2,2√2,4,4√2,8}</td><td>{1,√2,2√2,4,4√2,8}</td></tr><tr><td>L2 Clipping</td><td>{0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}</td><td>{0.3, 0.4, 0.5, 0.6, 0.7, 0.8,0.9,1.0}</td></tr><tr><td>Refine LR</td><td>{0.1,0.15,0.3,0.5,0.7, 0.8}</td><td>{0.1,0.15,0.3,0.5,0.7, 0.8}</td></tr><tr><td>Refine Batch Size</td><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>",
1439
+ "bbox": [
1440
+ 173,
1441
+ 439,
1442
+ 828,
1443
+ 611
1444
+ ],
1445
+ "page_idx": 16
1446
+ },
1447
+ {
1448
+ "type": "table",
1449
+ "img_path": "images/ae60aad18f415c26be568babe577b84fe499d89ae0e9a544a3b5eff10299ef05.jpg",
1450
+ "table_caption": [
1451
+ "Table 4: Hyperparameter Search Space for Local-DP Training "
1452
+ ],
1453
+ "table_footnote": [],
1454
+ "table_body": "<table><tr><td colspan=\"2\">Shakespeare-800</td><td>Wiki-1600</td></tr><tr><td>VisitsPerTask</td><td>{1,2,3}</td><td>{1,2}</td></tr><tr><td>Tasks Per Round</td><td>{5,10,20}</td><td>{10,20,40,80}</td></tr><tr><td>Within-Task Steps</td><td>{1,2,3}</td><td>{1,2,3}</td></tr><tr><td>Meta LR</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td><td>{1,√2,2,2√2,4,4√2,8,8√2}</td></tr><tr><td>Meta Decay Rate</td><td>{0,0.001,0.005,0.01,0.025,0.05,0.1}</td><td>{0,0.001,0.005,0.01,0.025,0.05}</td></tr><tr><td>Within-Task LR</td><td>{1,√2,2√2,4,4√2,8}</td><td>{1,√2,2√2,4,4√2,8}</td></tr><tr><td>L2 Clipping</td><td>{0.005,0.01,0.025,0.05,0.1,0.25,0.5}</td><td>{0.005,0.01,0.025,0.05,0.1,0.25}</td></tr><tr><td>Refine LR</td><td>{0.1,0.15,0.3,0.5,0.7,0.8}</td><td>{0.1,0.15,0.3,0.5, 0.7, 0.8}</td></tr><tr><td>Refine Batch Size</td><td>{10,20,30,60}</td><td>{10,20,30,60,120}</td></tr><tr><td>Refine Epochs</td><td>{1,2,3}</td><td>{1,2,3}</td></tr></table>",
1455
+ "bbox": [
1456
+ 173,
1457
+ 715,
1458
+ 833,
1459
+ 886
1460
+ ],
1461
+ "page_idx": 16
1462
+ },
1463
+ {
1464
+ "type": "table",
1465
+ "img_path": "images/29bc13fcf63794b0d224d308bafc3e14eabe13883efc74bc538b98a25facdbae.jpg",
1466
+ "table_caption": [
1467
+ "Table 5: Final Hyperparameters for Shakespeare-800 "
1468
+ ],
1469
+ "table_footnote": [],
1470
+ "table_body": "<table><tr><td></td><td>Non- private</td><td>T-G £= 22.5</td><td>T-G £=9.2</td><td>T-G Ρ= 4.5</td><td>Local Ρ= 22.5</td><td>Local £=9.2</td><td>Local Ρ= 4.5</td></tr><tr><td>Visits Per Task</td><td>7</td><td>2</td><td>2</td><td>1</td><td>2</td><td>2</td><td>1</td></tr><tr><td>Tasks Per Round</td><td>5</td><td>5</td><td>5</td><td>5</td><td>20</td><td>5</td><td>20</td></tr><tr><td>Within-Task Steps</td><td>5</td><td>1</td><td>1</td><td>1</td><td>4</td><td>1</td><td>2</td></tr><tr><td>Meta LR</td><td>8</td><td>8√2</td><td>8</td><td>8√2</td><td>4√2</td><td>4√2</td><td>4</td></tr><tr><td>Meta Decay Rate</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.05</td><td>0.1</td><td>0</td><td>0</td></tr><tr><td>Within-Task LR</td><td>2</td><td>2√2</td><td>2</td><td>2</td><td>4√2</td><td>4√2</td><td>1</td></tr><tr><td>L2 Clipping</td><td>0.5</td><td>0.6</td><td>0.5</td><td>0.4</td><td>0.1</td><td>0.01</td><td>0.01</td></tr><tr><td>RefineLR</td><td>0.15</td><td>0.5</td><td>0.1</td><td>0.3</td><td>0.8</td><td>0.8</td><td>0.5</td></tr><tr><td>Refine Batch Size</td><td>30</td><td>10</td><td>60</td><td>30</td><td>10</td><td>10</td><td>10</td></tr><tr><td>Refine Epochs</td><td>1</td><td>1</td><td>1</td><td>3</td><td>3</td><td>3</td><td>3</td></tr></table>",
1471
+ "bbox": [
1472
+ 187,
1473
+ 227,
1474
+ 810,
1475
+ 407
1476
+ ],
1477
+ "page_idx": 17
1478
+ },
1479
+ {
1480
+ "type": "table",
1481
+ "img_path": "images/0714e27f83a5d91015438973490a4627510a5b29f9b6b7154b6b83435f9db32b.jpg",
1482
+ "table_caption": [
1483
+ "Table 6: Final Hyperparameters for Wiki-800 "
1484
+ ],
1485
+ "table_footnote": [],
1486
+ "table_body": "<table><tr><td></td><td>Non- private</td><td>T-G £= 22.5</td><td>T-G £=9.2</td><td>T-G Ρ= 4.5</td><td>Local £= 22.5</td><td>Local £=9.2</td><td>Local £= 4.5</td></tr><tr><td>VisitsPerTask</td><td>2</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>Tasks Per Round</td><td>5</td><td>10</td><td>10</td><td>20</td><td>20</td><td>20</td><td>20</td></tr><tr><td>Within-Task Steps</td><td>3</td><td>1</td><td>1</td><td>1</td><td>2</td><td>2</td><td>2</td></tr><tr><td>Meta LR</td><td>2√2</td><td>2√2</td><td>4</td><td>4</td><td>8</td><td>4√2</td><td>8</td></tr><tr><td>Meta Decay Rate</td><td>0.001</td><td>0</td><td>0.001</td><td>0.005</td><td>0.005</td><td>0.025</td><td>0</td></tr><tr><td>Within-Task LR</td><td>2</td><td>8</td><td>4√2</td><td>8</td><td>2√2</td><td>2√2</td><td>2√2</td></tr><tr><td>L2 Clipping</td><td>1</td><td>0.8</td><td>0.7</td><td>0.8</td><td>0.025</td><td>0.05</td><td>0.005</td></tr><tr><td>Refine LR</td><td>0.1</td><td>0.8</td><td>0.5</td><td>0.7</td><td>0.8</td><td>0.8</td><td>0.8</td></tr><tr><td>Refine Batch Size</td><td>10</td><td>10</td><td>60</td><td>10</td><td>10</td><td>10</td><td>10</td></tr><tr><td>Refine Epochs</td><td>1</td><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td><td>3</td></tr></table>",
1487
+ "bbox": [
1488
+ 187,
1489
+ 640,
1490
+ 810,
1491
+ 821
1492
+ ],
1493
+ "page_idx": 17
1494
+ }
1495
+ ]
parse/train/rJgqMRVYvr/rJgqMRVYvr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgqMRVYvr/rJgqMRVYvr_model.json ADDED
The diff for this file is too large to render. See raw diff