Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/Byx91R4twB/Byx91R4twB.md +388 -0
- parse/train/Byx91R4twB/Byx91R4twB_content_list.json +2142 -0
- parse/train/Byx91R4twB/Byx91R4twB_middle.json +0 -0
- parse/train/Byx91R4twB/Byx91R4twB_model.json +0 -0
- parse/train/HyesB2RqFQ/HyesB2RqFQ.md +320 -0
- parse/train/HyesB2RqFQ/HyesB2RqFQ_content_list.json +1617 -0
- parse/train/HyesB2RqFQ/HyesB2RqFQ_middle.json +0 -0
- parse/train/HyesB2RqFQ/HyesB2RqFQ_model.json +0 -0
- parse/train/SJAr0QFxe/SJAr0QFxe.md +452 -0
- parse/train/SJAr0QFxe/SJAr0QFxe_content_list.json +2214 -0
- parse/train/SJAr0QFxe/SJAr0QFxe_middle.json +0 -0
- parse/train/SJAr0QFxe/SJAr0QFxe_model.json +0 -0
- parse/train/o966_Is_nPA/o966_Is_nPA.md +415 -0
- parse/train/o966_Is_nPA/o966_Is_nPA_model.json +0 -0
- parse/train/rJxgknCcK7/rJxgknCcK7.md +317 -0
- parse/train/rJxgknCcK7/rJxgknCcK7_content_list.json +1702 -0
- parse/train/yWd42CWN3c/yWd42CWN3c.md +324 -0
- parse/train/yWd42CWN3c/yWd42CWN3c_content_list.json +1557 -0
- parse/train/yWd42CWN3c/yWd42CWN3c_middle.json +0 -0
- parse/train/yWd42CWN3c/yWd42CWN3c_model.json +0 -0
parse/train/Byx91R4twB/Byx91R4twB.md
ADDED
|
@@ -0,0 +1,388 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADVERSARIAL VIDEO GENERATION ON COMPLEX DATASETS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Generative models of natural images have progressed towards high fidelity samples by the strong leveraging of scale. We attempt to carry this success to the field of video modeling by showing that large Generative Adversarial Networks trained on the complex Kinetics-600 dataset are able to produce video samples of substantially higher complexity and fidelity than previous work. Our proposed model, Dual Video Discriminator GAN (DVD-GAN), scales to longer and higher resolution videos by leveraging a computationally efficient decomposition of its discriminator. We evaluate on the related tasks of video synthesis and video prediction, and achieve new state-of-the-art Fréchet Inception Distance for prediction for Kinetics600, as well as state-of-the-art Inception Score for synthesis on the UCF-101 dataset, alongside establishing a strong baseline for synthesis on Kinetics-600.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+

|
| 12 |
+
Figure 1: Selected frames from videos generated by a DVD-GAN trained on Kinetics-600 at $2 5 6 \times 2 5 6$ , $1 2 8 \times 1 2 8$ , and $6 4 \times 6 4$ resolutions (top to bottom).
|
| 13 |
+
|
| 14 |
+
Modern deep generative models can produce realistic natural images when trained on high-resolution and diverse datasets (Brock et al., 2019; Karras et al., 2018; Kingma & Dhariwal, 2018; Menick & Kalchbrenner, 2019; Razavi et al., 2019). Generation of natural video is an obvious further challenge for generative modeling, but one that is plagued by increased data complexity and computational requirements. For this reason, much prior work on video generation has revolved around relatively simple datasets, or tasks where strong temporal conditioning information is available.
|
| 15 |
+
|
| 16 |
+
We focus on the tasks of video synthesis and video prediction (defined in Section 2.1), and aim to extend the strong results of generative image models to the video domain. Building upon the state-of-the-art BigGAN architecture (Brock et al., 2019), we introduce an efficient spatio-temporal decomposition of the discriminator which allows us to train on Kinetics-600 – a complex dataset of natural videos an order of magnitude larger than other commonly used datasets. The resulting model, Dual Video Discriminator GAN (DVD-GAN), is able to generate temporally coherent, high-resolution videos of relatively high fidelity (Figure 1).
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 2: Generated video samples with interesting behavior. In raster-scan order: a) On-screen generated text with further lines appearing.. b) Zooming in on an object. c) Colored detail from a pen being left on paper. d) A generated camera change and return.
|
| 20 |
+
|
| 21 |
+
Our contributions are as follows:
|
| 22 |
+
|
| 23 |
+
• We propose DVD-GAN – a scalable generative model of natural video which produces high-quality samples at resolutions up to $2 5 6 \times 2 5 6$ and lengths up to 48 frames. • We achieve state of the art for video synthesis on UCF-101 and prediction on Kinetics-600. • We establish class-conditional video synthesis on Kinetics-600 as a new benchmark for generative video modeling, and report DVD-GAN results as a strong baseline.
|
| 24 |
+
|
| 25 |
+
# 2 BACKGROUND
|
| 26 |
+
|
| 27 |
+
# 2.1 VIDEO SYNTHESIS AND PREDICTION
|
| 28 |
+
|
| 29 |
+
The exact formulation of the video generation task can differ in the type of conditioning signal provided. At one extreme lies unconditional video synthesis where the task is to generate any video following the training distribution. Another extreme is occupied by strongly-conditioned models, including generation conditioned on another video for content transfer (Bansal et al., 2018; Zhou et al., 2019), per-frame segmentation masks (Wang et al., 2018a), or pose information (Walker et al., 2017; Villegas et al., 2017b; Yang et al., 2018). In the middle ground there are tasks which are more structured than unconditional generation, and yet are more challenging from a modeling perspective than strongly-conditional generation (which gets a lot of information about the generated video through its input). The objective of class-conditional video synthesis is to generate a video of a given category (e.g., “riding a bike”) while future video prediction is concerned with generation of continuing video given initial frames. These problems differ in several aspects, but share a common requirement of needing to generate realistic temporal dynamics, and in this work we focus on these two problems.
|
| 30 |
+
|
| 31 |
+
# 2.2 GENERATIVE ADVERSARIAL NETWORKS
|
| 32 |
+
|
| 33 |
+
Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) are a class of generative models defined by a minimax game between a Discriminator $\mathcal { D }$ and a Generator $\mathcal { G }$ . The original objective was proposed by Goodfellow et al. (2014), and many improvements have since been suggested, mostly targeting improved training stability (Arjovsky et al., 2017; Zhang et al., 2018; Brock et al., 2019; Gulrajani et al., 2017; Miyato et al., 2018). We use the hinge formulation of the objective (Lim & Ye, 2017; Brock et al., 2019) which is optimized by gradient descent $\overset { \cdot } { \rho }$ is the elementwise ReLU function):
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\mathcal D \colon \operatorname* { m i n } _ { \mathcal D } \underset { x \sim d a t a ( x ) } { \mathbb { E } } \left[ \rho ( 1 - \mathcal D ( x ) ) \right] + \underset { z \sim p ( z ) } { \mathbb { E } } \left[ \rho ( 1 + \mathcal D ( \mathcal { G } ( z ) ) ) \right] , \quad \mathcal G \colon \operatorname* { m a x } _ { \mathcal G } \underset { z \sim p ( z ) } { \mathbb { E } } \left[ \mathcal D ( \mathcal { G } ( z ) ) \right] .
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
GANs have well-known limitations including a tendency towards limited diversity in generated samples (a phenomenon known as mode collapse) and the difficulty of quantitative evaluation due
|
| 40 |
+
|
| 41 |
+
to the lack of an explicit likelihood measure over the data. Despite these downsides, GANs have produced some of the highest fidelity samples across many visual domains (Karras et al., 2018; Brock et al., 2019).
|
| 42 |
+
|
| 43 |
+
# 2.3 KINETICS-600
|
| 44 |
+
|
| 45 |
+
Kinetics is a large dataset of 10-second high-resolution YouTube clips (Kay et al., 2017; DeepMind, 2018) originally created for the task of human action recognition. We use the second iteration of the dataset, Kinetics-600 (Carreira et al., 2018), which consists of 600 classes with at least 600 videos per class for a total of around 500,000 videos.1 Kinetics videos are diverse and unconstrained, which allows us to train large models without being concerned with the overfitting that occurs on small datasets with fixed objects interacting in specified ways (Ebert et al., 2017; Blank et al., 2005). Among prior work, the closest dataset (in terms of subject and complexity) which is consistently used is UCF-101 (Soomro et al., 2012). We focus on Kinetics-600 because of its larger size (almost $5 0 \mathrm { x }$ more videos than UCF-101) and its increased diversity (600 instead of 101 classes – not to mention increased intra-class diversity). Nevertheless for comparison with prior art we train on UCF-101 and achieve a state-of-the-art Inception Score there. Kinetics contains many artifacts expected from YouTube, including cuts (as in Figure 2d), title screens and visual effects. Except when specifically described, we choose frames with stride 2 (meaning we skip every other frame). This allows us to generate videos with more complexity without incurring higher computational cost.
|
| 46 |
+
|
| 47 |
+
To the best of our knowledge we are the first to consider generative modelling of the entirety of the Kinetics video dataset2, although a small subset of Kinetics consisting of 4,000 selected and stabilized videos (via a SIFT $^ +$ RANSAC procedure) has been used in at least two prior papers (Li et al., 2018; Balaji et al., 2018). Due to the heavy pre-processing and stabilization present, as well as the sizable reduction in dataset size (two orders of magnitude) we do not consider these datasets comparable to the full Kinetics-600 dataset.
|
| 48 |
+
|
| 49 |
+
# 2.4 EVALUATION METRICS
|
| 50 |
+
|
| 51 |
+
Designing metrics for measuring the quality of generative models (GANs in particular) is an active area of research (Sajjadi et al., 2018; Barratt & Sharma, 2018). In this work we report the two most commonly used metrics, Inception Score (IS) (Salimans et al. (2016)) and Fréchet Inception Distance (FID) (Heusel et al., 2017). The standard instantiation of these metrics is intended for generative image models, and uses an Inception model (Szegedy et al., 2016) for image classification or feature extraction. For videos, we use the publicly available Inflated 3D Convnet (I3D) network trained on Kinetics-600 (Carreira & Zisserman, 2017). Our Fréchet Inception Distance is therefore very similar to the Fréchet Video Distance (FVD) (Unterthiner et al., 2018), although our implementation is different and more aligned with the original FID metric.3 More details are in Appendix A.4.
|
| 52 |
+
|
| 53 |
+
# 3 DUAL VIDEO DISCRIMINATOR GAN
|
| 54 |
+
|
| 55 |
+
Our primary contribution is Dual Video Discriminator GAN (DVD-GAN), a generative video model of complex human actions built upon the state-of-the-art BigGAN architecture (Brock et al., 2019) while introducing scalable, video-specific generator and discriminator architectures. An overview of the DVD-GAN architecture is given in Figure 3 and a detailed description is in Appendix A.2. Unlike some of the prior work, our generator contains no explicit priors for foreground, background or motion (optical flow); instead, we rely on a high-capacity neural network to learn this in a data-driven manner. While DVD-GAN contains sequential components (RNNs), it is not autoregressive in time or in space. In other words, the pixels of each frame do not directly depend on other pixels in the video, as would be the case for auto-regressive models or models generating one frame at a time.
|
| 56 |
+
|
| 57 |
+
Generating long and high resolution videos is a heavy computational challenge: individual samples from Kinetics-600 (just 10 seconds long) contain upwards of 16 million pixels which need to be generated in a consistent fashion. This is a particular challenge to the discriminator. For example, a generated video might contain an object which leaves the field of view and incorrectly returns with a different color. Here, the ability to determine this video is generated is only possible by comparing two different spatial locations across two (potentially distant) frames. Given a video with length $T$ , height $H$ , and width $W$ , discriminators that process the entire video would have to process all $H \times W \times T$ pixels – limiting the size of the model and the size of the videos being generated.
|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
ResNet Block Figure 3: Simplified architecture diagram of $\mathcal { G }$ (left) and $\mathcal { D } _ { S } / \mathcal { D } _ { T }$ Block (right). More details in A.2.
|
| 61 |
+
|
| 62 |
+
# 3.1 DUAL DISCRIMINATORS
|
| 63 |
+
|
| 64 |
+
DVD-GAN tackles this scale problem by using two discriminators: a Spatial Discriminator $\mathcal { D } _ { S }$ and a Temporal Discriminator $\mathcal { D } _ { T }$ . $\mathcal { D } _ { S }$ critiques single frame content and structure by randomly sampling $k$ full-resolution frames and judging them individually. We use $k = 8$ and discuss this choice in Section 4.3. $\mathcal { D } _ { S }$ ’s final score is the sum of the per-frame scores. The temporal discriminator $\mathcal { D } _ { T }$ must provide $\mathcal { G }$ with the learning signal to generate movement (something not evaluated by $\mathcal { D } _ { S }$ ). To make the model scalable, we apply a spatial downsampling function $\phi ( \cdot )$ to the whole video and feed its output to $\mathcal { D } _ { T }$ . We choose $\phi$ to be $2 \times 2$ average pooling, and discuss alternatives in Section 4.3. This results in an architecture where the discriminators do not process the entire video’s worth of pixels, $\mathcal { D } _ { S }$ processes only resolution, this $k \times H \times W$ pixels and umber of p $\mathcal { D } _ { T }$ only to pr $T \times \frac { H } { 2 } \times \frac { W } { 2 }$ . For a 48 frame video ato from 786432 to 327680: $1 2 8 \times 1 2 8$
|
| 65 |
+
a $5 8 \%$ reduction. Despite this decomposition, the discriminator objective is still able to penalize almost all inconsistencies which would be penalized by a discriminator judging the entire video. $\mathcal { D } _ { T }$ judges any temporal discrepancies across the entire length of the video, and $\mathcal { D } _ { S }$ can judge any high resolution details. The only detail the DVD-GAN discriminator objective is unable to reflect is the temporal evolution of pixels within a $2 \times 2$ window. We have however not noticed this affecting the generated samples in practice. DVD-GAN’s $\mathcal { D } _ { S }$ is similar to the per-frame discriminator $\mathcal { D } _ { I }$ in MoCoGAN (Tulyakov et al., 2018). However MoCoGAN’s analog of $\mathcal { D } _ { T }$ looks at full resolution videos, whereas $\mathcal { D } _ { S }$ is the only source of learning signal for high-resolution details in DVD-GAN. For this reason, $\mathcal { D } _ { S }$ is essential when $\phi$ is not the identity, unlike in MoCoGAN where the additional per-frame discriminator is less crucial.
|
| 66 |
+
|
| 67 |
+
# 3.2 RELATED WORK
|
| 68 |
+
|
| 69 |
+
Generative video modeling is a widely explored problem which includes work on VAEs (Babaeizadeh et al., 2018; Denton & Fergus, 2018; Lee et al., 2018; Hsieh et al., 2018) and recurrent models (Wang et al., 2018b; Finn et al., 2016; Wang et al., 2018c; Byeon et al., 2018), auto-regressive models (Ranzato et al., 2014; Srivastava et al., 2015; Kalchbrenner et al., 2017; Weissenborn et al., 2019), normalizing flows (Kumar et al., 2019), and GANs (Mathieu et al., 2015; Vondrick et al., 2016; Saito et al., 2017; Saito & Saito, 2018). Much prior work considers decompositions which model the texture and spatial consistency of objects separately from their temporal dynamics. One approach is to split $\mathcal { G }$ into foreground and background models (Vondrick et al., 2016; Spampinato et al., 2018), while another considers explicit or implicit optical flow or motion in either $\mathcal { G }$ or $\mathcal { D }$ (Saito et al., 2017; Ohnishi et al., 2018). Other methods decompose the generator (or encoder) to treat concepts like pose, content and motion separately from one another (Denton et al., 2017; Villegas et al., 2017a). Similar to DVD-GAN, MoCoGAN (Tulyakov et al., 2018) discriminates individual frames in addition to a discriminator which operates on fixed-length $K$ -frame slices of the whole video (where $K < T$ ). Though this potentially reduces the number of pixels to discriminate to $( H \times W ) + ( K \times H \times W )$ , Tulyakov et al. (2018) describes discriminating sliding windows, which increases the total number of pixels. Other models follow this approach by discriminating groups of frames (Xie et al., 2018; Sun et al., 2018; Balaji et al., 2018).
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
Figure 4: Each row is the first frame of 15 videos from a random class, all from the same checkpoint. The classes are: cooking scallops, changing wheel (not on bike), calculating, dribbling basketball.
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 5: All 48 frames (in raster-scan order) from a $6 4 \times 6 4$ sample from watermelon cutting class.
|
| 76 |
+
|
| 77 |
+
TGANv2 (Saito & Saito, 2018) proposes “adaptive batch reduction” for efficient training, an operation which randomly samples subsets of videos within a batch and temporal subwindows within each video. This operation is applied throughout TGANv2’s $\mathcal { G }$ , with heads projecting intermediate feature maps directly to pixel space before applying batch reduction, and corresponding discriminators evaluating these lower resolution intermediate outputs. An effect of this choice is that TGANv2 discriminators only evaluate full-length videos at very low resolution. We show in Figure 6 that a similar reduction in DVD-GAN’s resolution when judging full videos leads to a loss in performance. We expect further reduction (towards the resolution at which TGANv2 evaluates the entire length of video) to lead to further degradation of DVD-GAN’s quality. Furthermore, this method is not easily adapted towards models with large batch sizes divided across a number of accelerators, with only a small batch size per replica.
|
| 78 |
+
|
| 79 |
+
# 4 EXPERIMENTS AND ANALYSIS
|
| 80 |
+
|
| 81 |
+
A detailed description of our training setup is in Appendix A.3. Each DVD-GAN was trained on TPU pods (Google, 2018) using between 32 and 512 replicas with an Adam (Kingma & Ba, 2014) optimizer. Video Synthesis models are trained for around 300,000 learning steps, whilst Video Prediction models are trained for up to 1,000,000 steps. Most models took between 12 and 96 hours to train.
|
| 82 |
+
|
| 83 |
+
# 4.1 VIDEO SYNTHESIS
|
| 84 |
+
|
| 85 |
+
Our primary results concern the problem of Video Synthesis. We provide our results for the UCF-101 and Kinetics-600 datasets. With Kinetics-600 emerging as a new benchmark for generative video modelling, our results establish a strong baseline for future work.
|
| 86 |
+
|
| 87 |
+
# 4.1.1 KINETICS-600 RESULTS
|
| 88 |
+
|
| 89 |
+
Table 1: FID/IS for DVD-GAN on Kinetics-600 Video Synthesis. We present the scores of the model taken at the point in training when the best FID was attained. The "No Truncation" columns contain the scores obtained without the truncation trick. The "With Truncation" columns contain the scores obtained at the truncation level which results in the best Inception Score.
|
| 90 |
+
|
| 91 |
+
<table><tr><td>(#Frames /Resolution)</td><td colspan="2">No Truncation FID (↓) IS (↑)</td><td colspan="2">With Truncation FID (↓) IS (↑)</td></tr><tr><td>12/64 × 64</td><td>0.85</td><td>53.81</td><td>7.13</td><td>187.23</td></tr><tr><td>12/128 × 128</td><td>1.16</td><td>77.45</td><td>13.04</td><td>246.18</td></tr><tr><td>12/256 × 256</td><td>2.05</td><td>62.78</td><td>10.17</td><td>162.44</td></tr><tr><td>48/64 × 64</td><td>13.75</td><td>104.09</td><td>47.86</td><td>264.12</td></tr><tr><td>48/128 × 128</td><td>28.44</td><td>81.41</td><td>45.79</td><td>188.32</td></tr></table>
|
| 92 |
+
|
| 93 |
+
In Table 1 we show the main result of this paper: benchmarks for Class-Conditional Video Synthesis on Kinetics-600. In this regime, we train a single DVD-GAN on all classes of Kinetics-600, supplying per-sample class information to both $\mathcal { G }$ and $\mathcal { D }$ . We consider a range of resolutions and video lengths, and measure Inception Score and Fréchet Inception Distance (FID) for each (as described in Section 2.4). We further measure each model along a truncation curve, which we carry out by calculating FID and IS statistics while varying the standard deviation of the latent vectors between 0 and 1. There is no prior work with which to quantitatively compare these results (for comparative experiments see Section 4.1.2 and Section 4.2.1), but we believe these samples to show a level of fidelity not yet achieved in datasets as complex as Kinetics-600 (see samples from each row in Appendix D.1). Because all videos are resized for the I3D network (to $2 2 4 \times 2 2 4 )$ ), it is meaningful to compare metrics across equal length videos at different resolutions. Neither IS nor FID are comparable across videos of different lengths, and should be treated as separate metrics.
|
| 94 |
+
|
| 95 |
+
Generating longer and larger videos is a more challenging modeling problem, which is conveyed by the metrics (in particular, comparing 12-frame videos across $6 4 \times 6 4$ , $1 2 8 \times 1 2 8$ and $2 5 6 \times 2 5 6$ resolutions). Nevertheless, DVD-GAN is able to generate plausible videos at all resolutions and with length spanning up to 4 seconds (48 frames). As can be seen in Appendix D.1, smaller videos display high quality textures, object composition and movement. At higher resolutions, generating coherent objects becomes more difficult (movement consists of a much larger number of pixels), but high-level details of the generated scenes are still extremely coherent, and textures (even complicated ones like a forest backdrop in Figure 1a) are generated well. It is further worth noting that the 48-frame models do not see more high resolution frames than the 12-frame model (due to the fixed choice of $k = 8$ described in Section 3.1), yet nevertheless learn to generate high resolution images.
|
| 96 |
+
|
| 97 |
+
# 4.1.2 VIDEO SYNTHESIS ON UCF-101
|
| 98 |
+
|
| 99 |
+
We further verify our results by testing the same model on UCF-101 (Soomro et al., 2012), a smaller dataset of 13,320 videos of human actions across 101 classes that has previously been used for video synthesis and prediction (Saito et al., 2017; Saito & Saito, 2018; Tulyakov et al., 2018). Our model produces samples with an IS of 27.38, significantly outperforming the state of the art (see Table 2 for quantitative comparison and Appendix B.1 for more details).
|
| 100 |
+
|
| 101 |
+
Table 2: IS on UCF-101 without class conditioning.
|
| 102 |
+
|
| 103 |
+
<table><tr><td>Method</td><td>IS (↑)</td></tr><tr><td>VGAN (Vondrick et al., 2016)</td><td>8.31 ± .09</td></tr><tr><td>TGAN (Saito et al., 2017)</td><td>11.85 ± .07</td></tr><tr><td>MoCoGAN (Tulyakov et al., 2018)</td><td>12.42 ± .03</td></tr><tr><td>ProgressiveVGAN (Acharya et al., 2018)</td><td>14.56 ± .05</td></tr><tr><td>TGANv2 (Saito & Saito,2018)</td><td>24.34 ± .35</td></tr><tr><td>DVD-GAN (ours)</td><td>27.38 ± 0.53</td></tr></table>
|
| 104 |
+
|
| 105 |
+
Table 3: FVD on BAIR.
|
| 106 |
+
|
| 107 |
+
<table><tr><td>Method</td><td>FVD (↓)</td></tr><tr><td>SVP-FP CDNA</td><td>315.5</td></tr><tr><td>SV2P</td><td>296.5 262.5</td></tr><tr><td>SAVP</td><td>116.4</td></tr><tr><td>DVD-GAN-FP (ours)</td><td>109.8</td></tr><tr><td>Video Transformer</td><td>94±2</td></tr></table>
|
| 108 |
+
|
| 109 |
+
Table 4: DVD-GAN-FP’s FVD scores on Video Prediction for 16 frames of Kinetics-600 without frame skipping. The final row represents a Video Synthesis model generating 16 frames.
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Method</td><td>Training Set FVD (↓)</td><td>Test Set FVD (↓)</td></tr><tr><td>Video Transformer (Weissenborn et al.,2019)</td><td></td><td>170±5</td></tr><tr><td>DVD-GAN-FP</td><td>68.66 ± 0.78</td><td>69.15 ± 1.16</td></tr><tr><td>DVD-GAN</td><td>32.3 ± 0.82</td><td>31.1 ± 0.56</td></tr></table>
|
| 112 |
+
|
| 113 |
+
# 4.2 FUTURE VIDEO PREDICTION
|
| 114 |
+
|
| 115 |
+
Future Video Prediction is the problem of generating a sequence of frames which directly follow from one (or a number) of initial conditioning frames. Both this and video synthesis require $\mathcal { G }$ to learn to produce realistic scenes and temporal dynamics, however video prediction further requires $\mathcal { G }$ to analyze the conditioning frames and discover elements in the scene which will evolve over time. In this section, we use the Fréchet Video Distance exactly as Unterthiner et al. (2018): using the logits of an I3D network trained on Kinetics-400 as features. This allows for direct comparison to prior work. Our model, DVD-GAN-FP (Frame Prediction), is slightly modified to facilitate the changed problem, and details of these changes are given in Appendix A.5.
|
| 116 |
+
|
| 117 |
+
# 4.2.1 FRAME-CONDITIONAL KINETICS
|
| 118 |
+
|
| 119 |
+
For direct comparison with concurrent work on autoregressive video models (Weissenborn et al., 2019) we consider the generation of 11 frames of Kinetics-600 at $6 4 \times 6 4$ resolution conditioned on 5 frames, where the videos for training are not taken with any frame skipping. We show results for all these cases in Table 4. Our frame-conditional model DVD-GAN- ${ \pmb F } { \pmb P }$ outperforms the prior work on frame-conditional prediction for Kinetics. The final row labeled DVD-GAN corresponds to 16-frame class-conditional Video Synthesis samples, generated without frame conditioning and without frame skipping. The FVD of this video synthesis model is notably better.
|
| 120 |
+
|
| 121 |
+
On the one hand, we hypothesize that the synthesis model has an easier generative task: it can choose to generate (relatively) simple samples for each class, rather than be forced to continue frames taken from videos which are class outliers, or contain more complicated details. On the other hand, a certain portion of the FID/FVD metric undoubtedly comes from the distribution of objects and backgrounds present in the dataset, and so it seems that the prediction model should have a handicap in the metric by being given the ground truth distribution of backgrounds and objects with which to continue videos. The synthesis model’s improved performance on this task seems to indicate that the advantage of being able to select videos to generate is greater than the advantage of having a ground truth distribution of starting frames. This result is un-intuitive, as the frame conditional model has access to strictly more information about the data distribution it is trying to recover compared to the synthesis model (despite the fact that the two models are being trained by an identical objective). This experiment favors the synthesis model for FVD, but we highlight that other models or other metrics might produce the opposite ordering.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 6: The effect of $\phi$ in $\mathcal { D } _ { T }$ (left two) and $k$ in $\mathcal { D } _ { S }$ (right two). FID is similar for any choice of $\phi$ , while IS declines as downsampling increases. Increasing $k$ improves both with diminishing returns.
|
| 125 |
+
|
| 126 |
+
# 4.2.2 BAIR ROBOT PUSHING
|
| 127 |
+
|
| 128 |
+
We further test future video prediction on the single-class BAIR Robot Pushing Dataset (Ebert et al., 2017), a dataset of stationary videos of a robot arm moving around a set of changing objects. In order for direct comparison with previous results reported in Unterthiner et al. (2018), we consider generating 15 frames conditioned on a single starting frame. Like on prediction with Kinetics, we report FVD exactly as in Unterthiner et al. (2018), with ground truth statistics and conditioning frames taken from the 256-video dev set. Results are reported in Table 3. Scores are taken from Unterthiner et al. (2018). DVD-GAN-FP outperforms all prior adversarial models trained on this dataset, but performs slightly worse than Video Transformer, a concurrently developed autoregressive model Weissenborn et al. (2019). Samples from DVD-GAN-FP on BAIR are given in Figure 9.
|
| 129 |
+
|
| 130 |
+
# 4.3 DUAL DISCRIMINATOR INPUT
|
| 131 |
+
|
| 132 |
+
We analyze several choices for $k$ (the number of frames per sample in the input to $\mathcal { D } _ { S }$ ) and $\phi$ (the downsampling function for $\mathcal { D } _ { T }$ ). We expect setting $\phi$ to the identity or $k = T$ to result in the best model, but we are interested in the maximally compressive $k$ and $\phi$ that reduce discriminator input size (and the amount of computation), while still producing a high quality generator. For $\phi$ , we consider: $2 \times 2$ and $4 \times 4$ average pooling, the identity (no downsampling), as well as a $\phi$ which takes a random half-sized crop of the input video (as in Saito & Saito (2018)). Results can be seen in Figure 6. For each ablation, we train three identical DVD-GANs with different random initializations on 12-frame clips of Kinetics-600 at $6 4 \times 6 4$ resolution for 100,000 steps. We report mean and standard deviation (via the error bars) across each group for the whole training period. For $k$ , we consider 1, 2, 8 and 10 frames. We see diminishing effect as $k$ increases, so settle on $k = 8$ . We note the substantially reduced IS of $4 \times 4$ downsampling as opposed to $2 \times 2$ , and further note that taking half-sized crops (which results in the same number of pixels input to $\mathcal { D } _ { T }$ as $2 \times 2$ pooling) is also notably worse.
|
| 133 |
+
|
| 134 |
+
# 5 CONCLUSION
|
| 135 |
+
|
| 136 |
+
We approached the challenging problem of modeling natural video by introducing a GAN capable of capturing the complexity of a large video dataset. We showed that on UCF-101 and frame-conditional Kinetics-600 it quantitatively achieves the new state of the art, alongside qualitatively producing video synthesis samples with high complexity and diversity. We further wish to emphasize the benefit of training generative models on large and complex video datasets, such as Kinetics-600, and envisage the strong baselines we established on this dataset with DVD-GAN will be used as a reference point by the generative modeling community moving forward. While much remains to be done before realistic videos can be consistently generated in an unconstrained setting, we believe DVD-GAN is a step in that direction.
|
| 137 |
+
|
| 138 |
+
# REFERENCES
|
| 139 |
+
|
| 140 |
+
Dinesh Acharya, Zhiwu Huang, Danda Pani Paudel, and Luc Van Gool. Towards high resolution video generation with progressive growing of sliced Wasserstein GANs. arXiv:1810.02419, 2018.
|
| 141 |
+
|
| 142 |
+
Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein GAN. arXiv:1701.07875, 2017.
|
| 143 |
+
|
| 144 |
+
Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. ICLR, 2018.
|
| 145 |
+
|
| 146 |
+
Yogesh Balaji, Martin Renqiang Min, Bing Bai, Rama Chellappa, and Hans Peter Graf. Tfgan: Improving conditioning for text-to-video synthesis. 2018.
|
| 147 |
+
|
| 148 |
+
Nicolas Ballas, Li Yao, Chris Pal, and Aaron Courville. Delving deeper into convolutional networks for learning video representations. arXiv:1511.06432, 2015.
|
| 149 |
+
|
| 150 |
+
Aayush Bansal, Shugao Ma, Deva Ramanan, and Yaser Sheikh. Recycle-GAN: Unsupervised video retargeting. In ECCV, September 2018.
|
| 151 |
+
|
| 152 |
+
Shane Barratt and Rishi Sharma. A note on the Inception Score. arXiv:1801.01973, 2018.
|
| 153 |
+
|
| 154 |
+
Moshe Blank, Lena Gorelick, Eli Shechtman, Michal Irani, and Ronen Basri. Actions as space-time shapes. In ICCV, 2005.
|
| 155 |
+
|
| 156 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. ICLR, 2019.
|
| 157 |
+
|
| 158 |
+
Wonmin Byeon, Qin Wang, Rupesh Kumar Srivastava, and Petros Koumoutsakos. Contextvp: Fully context-aware video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 753–769, 2018.
|
| 159 |
+
|
| 160 |
+
Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the Kinetics dataset. In ICCV, 2017.
|
| 161 |
+
|
| 162 |
+
Joao Carreira, Eric Noland, Andras Banki-Horvath, Chloe Hillier, and Andrew Zisserman. A short note about Kinetics-600. arXiv:1808.01340, 2018.
|
| 163 |
+
|
| 164 |
+
Harm De Vries, Florian Strub, Jérémie Mary, Hugo Larochelle, Olivier Pietquin, and Aaron C Courville. Modulating early visual processing by language. In NeurIPS, 2017.
|
| 165 |
+
|
| 166 |
+
DeepMind, 2018. Kinetics. https://deepmind.com/research/open-source/ open-source-datasets/kinetics/. Accessed: 2019.
|
| 167 |
+
|
| 168 |
+
Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. ICML, 2018.
|
| 169 |
+
|
| 170 |
+
Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in neural information processing systems, pp. 4414–4423, 2017.
|
| 171 |
+
|
| 172 |
+
Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. In ICLR, 2017.
|
| 173 |
+
|
| 174 |
+
Frederik Ebert, Chelsea Finn, Alex X Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. arXiv:1710.05268, 2017.
|
| 175 |
+
|
| 176 |
+
Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Advances in neural information processing systems, pp. 64–72, 2016.
|
| 177 |
+
|
| 178 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014.
|
| 179 |
+
|
| 180 |
+
Google, 2018. Cloud tpu. https://cloud.google.com/tpu/. Accessed: 2019.
|
| 181 |
+
|
| 182 |
+
Google, 2019. Fvd. https://github.com/google-research/google-research/ tree/master/frechet_video_distance. Accessed: 2019.
|
| 183 |
+
|
| 184 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of Wasserstein GANs. In NeurIPS, 2017.
|
| 185 |
+
|
| 186 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In NeurIPS, 2017.
|
| 187 |
+
|
| 188 |
+
Jun-Ting Hsieh, Bingbin Liu, De-An Huang, Li Fei-Fei, and Juan Carlos Niebles. Learning to decompose and disentangle representations for video prediction. In NeurIPS. 2018.
|
| 189 |
+
|
| 190 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv:1502.03167, 2015.
|
| 191 |
+
|
| 192 |
+
Nal Kalchbrenner, Aäron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Graves, and Koray Kavukcuoglu. Video pixel networks. In ICML, 2017.
|
| 193 |
+
|
| 194 |
+
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. arXiv:1812.04948, 2018.
|
| 195 |
+
|
| 196 |
+
Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The Kinetics human action video dataset. arXiv:1705.06950, 2017.
|
| 197 |
+
|
| 198 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014.
|
| 199 |
+
|
| 200 |
+
Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018.
|
| 201 |
+
|
| 202 |
+
Manoj Kumar, Mohammad Babaeizadeh, Dumitru Erhan, Chelsea Finn, Sergey Levine, Laurent Dinh, and Durk Kingma. VideoFlow: A flow-based generative model for video. arXiv:1903.01434, 2019.
|
| 203 |
+
|
| 204 |
+
Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv:1804.01523, 2018.
|
| 205 |
+
|
| 206 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv:1607.06450, 2016.
|
| 207 |
+
|
| 208 |
+
Yitong Li, Martin Renqiang Min, Dinghan Shen, David Carlson, and Lawrence Carin. Video generation from text. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 209 |
+
|
| 210 |
+
Jae Hyun Lim and Jong Chul Ye. Geometric GAN. arXiv:1705.02894, 2017.
|
| 211 |
+
|
| 212 |
+
Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv:1511.05440, 2015.
|
| 213 |
+
|
| 214 |
+
Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In ICLR, 2019.
|
| 215 |
+
|
| 216 |
+
Takeru Miyato and Masanori Koyama. cGANs with projection discriminator. arXiv:1802.05637, 2018.
|
| 217 |
+
|
| 218 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv:1802.05957, 2018.
|
| 219 |
+
|
| 220 |
+
Katsunori Ohnishi, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Hierarchical video generation from orthogonal information: Optical flow and texture. In AAAI, 2018.
|
| 221 |
+
|
| 222 |
+
Marc’Aurelio Ranzato, Arthur Szlam, Joan Bruna, Michaël Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv:1412.6604, 2014.
|
| 223 |
+
|
| 224 |
+
Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with VQ-VAE-2. arXiv preprint arXiv:1906.00446, 2019.
|
| 225 |
+
|
| 226 |
+
Masaki Saito and Shunta Saito. TGANv2: Efficient training of large models for video generation with multiple subsampling layers. arXiv:1811.09245, 2018.
|
| 227 |
+
|
| 228 |
+
Masaki Saito, Eiichi Matsumoto, and Shunta Saito. Temporal generative adversarial nets with singular value clipping. In ICCV, 2017.
|
| 229 |
+
|
| 230 |
+
Mehdi SM Sajjadi, Olivier Bachem, Mario Lucic, Olivier Bousquet, and Sylvain Gelly. Assessing generative models via precision and recall. In NeurIPS, 2018.
|
| 231 |
+
|
| 232 |
+
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In NeurIPS, 2016.
|
| 233 |
+
|
| 234 |
+
Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv:1312.6120, 2013.
|
| 235 |
+
|
| 236 |
+
Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. arXiv:1212.0402, 2012.
|
| 237 |
+
|
| 238 |
+
Concetto Spampinato, Sergio Palazzo, P D’Oro, Francesca Murabito, Daniela Giordano, and M Shah. VOS-GAN: Adversarial learning of visual-temporal dynamics for unsupervised dense prediction in videos. arXiv:1803.09092, 2018.
|
| 239 |
+
|
| 240 |
+
Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using LSTMs. In ICML, 2015.
|
| 241 |
+
|
| 242 |
+
Ximeng Sun, Huijuan Xu, and Kate Saenko. A two-stream variational adversarial network for video generation. arXiv:1812.01037, 2018.
|
| 243 |
+
|
| 244 |
+
Ilya Sutskever, James Martens, and Geoffrey E Hinton. Generating text with recurrent neural networks. In ICML, 2011.
|
| 245 |
+
|
| 246 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the Inception architecture for computer vision. In CVPR, 2016.
|
| 247 |
+
|
| 248 |
+
Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. Chainer: a next-generation open source framework for deep learning. In Workshop on Systems for ML and Open Source Software at NeurIPS, 2015.
|
| 249 |
+
|
| 250 |
+
Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3D convolutional networks. In ICCV, 2015.
|
| 251 |
+
|
| 252 |
+
Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. MoCoGAN: Decomposing motion and content for video generation. In CVPR, 2018.
|
| 253 |
+
|
| 254 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv:1607.08022, 2016.
|
| 255 |
+
|
| 256 |
+
Thomas Unterthiner, Sjoerd van Steenkiste, Karol Kurach, Raphael Marinier, Marcin Michalski, and Sylvain Gelly. Towards accurate generative models of video: A new metric & challenges. arXiv:1812.01717, 2018.
|
| 257 |
+
|
| 258 |
+
Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. arXiv preprint arXiv:1706.08033, 2017a.
|
| 259 |
+
|
| 260 |
+
Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. In ICML, 2017b.
|
| 261 |
+
|
| 262 |
+
Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, 2016.
|
| 263 |
+
|
| 264 |
+
Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In ICCV, 2017.
|
| 265 |
+
|
| 266 |
+
Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv:1808.06601, 2018a.
|
| 267 |
+
|
| 268 |
+
Yunbo Wang, Zhifeng Gao, Mingsheng Long, Jianmin Wang, and Philip S Yu. Predrnn $^ { + + }$ : Towards a resolution of the deep-in-time dilemma in spatiotemporal predictive learning. arXiv preprint arXiv:1804.06300, 2018b.
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 7: The residual blocks for $\mathcal { G }$ and $\mathcal { D } _ { S } / \mathcal { D } _ { T }$ . See Figure 3 for the icons and A.2 for more detail.
|
| 272 |
+
|
| 273 |
+
Yunbo Wang, Lu Jiang, Ming-Hsuan Yang, Li-Jia Li, Mingsheng Long, and Li Fei-Fei. Eidetic 3d lstm: A model for video prediction and beyond. 2018c.
|
| 274 |
+
|
| 275 |
+
Dirk Weissenborn, Oscar Täckström, and Jakob Uszkoreit. Scaling autoregressive video models. arXiv:1906.02634, 2019.
|
| 276 |
+
|
| 277 |
+
Yuxin Wu and Kaiming He. Group normalization. In ECCV, 2018.
|
| 278 |
+
|
| 279 |
+
You Xie, Erik Franz, Mengyu Chu, and Nils Thuerey. tempoGAN: A temporally coherent, volumetric GAN for super-resolution fluid flow. TOG, 2018.
|
| 280 |
+
|
| 281 |
+
Ceyuan Yang, Zhe Wang, Xinge Zhu, Chen Huang, Jianping Shi, and Dahua Lin. Pose guided human video generation. In ECCV, 2018.
|
| 282 |
+
|
| 283 |
+
Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv:1805.08318, 2018.
|
| 284 |
+
|
| 285 |
+
Yipin Zhou, Zhaowen Wang, Chen Fang, Trung Bui, and Tamara L Berg. Dance dance generation: Motion transfer for internet videos. arXiv:1904.00129, 2019.
|
| 286 |
+
|
| 287 |
+
# A EXPERIMENT METHODOLOGY
|
| 288 |
+
|
| 289 |
+
# A.1 DATASET PROCESSING
|
| 290 |
+
|
| 291 |
+
For all datasets we randomly shuffle the training set for each model replica independently. Experiments on the BAIR Robot Pushing dataset are conducted in the native resolution of $6 4 \times 6 4$ , where for UCF-101 we operate at a (downsampled) $1 2 8 \times 1 2 8$ resolution. This is done by a bilinear resize such that the video’s smallest dimension is mapped to 128 pixels while maintaining aspect ratio (144 for UCF-101). From this we take a random 128-pixel crop along the other dimension. We use the same procedure to construct datasets of different resolutions for Kinetics-600. All three datasets contain videos with more frames than we generate, so we take a random sequence of consecutive frames from the resized output. For UCF-101, we augmented the dataset by randomly performing left-right flips with probability 0.5.
|
| 292 |
+
|
| 293 |
+
# A.2 ARCHITECTURE DESCRIPTION
|
| 294 |
+
|
| 295 |
+
Our model adopts many architectural choices from Brock et al. (2019) including our nomenclature for describing network width, which is determined by the product of a channel multiplier $c h$ with a constant for each layer in the network. The layer-wise constants for $\mathcal { G }$ are [8, 8, 8, 4, 2] for $6 4 \times 6 4$ videos and $[ 8 , 8 , 8 , 4 , 2 , 1 ]$ for $1 2 8 \times 1 2 8$ . The width of the $i$ -th layer is given by the product of $c h$ and the $i$ -th constant and all layers prior to the residual network in $\mathcal { G }$ use the initial layer’s multiplier and we refer to the product of that and $c h$ as $c h _ { 0 }$ . ch in DVD-GAN is 128 for videos with $6 4 \times 6 4$ resolution and 96 otherwise. The corresponding $c h$ lists for both $\mathcal { D } _ { T }$ and $\mathcal { D } _ { S }$ are [2, 4, 8, 16, 16] for $6 4 \times 6 4$ resolution and $[ 1 , 2 , 4 , 8 , 1 6 , 1 6 ]$ for $1 2 8 \times 1 2 8$ .
|
| 296 |
+
|
| 297 |
+
The input to $\mathcal { G }$ consists of a Gaussian latent noise $z \sim \mathcal { N } ( 0 , I )$ and a learned linear embedding $e ( y )$ of the desired class $y$ . Both inputs are 120-dimensional vectors. $\mathcal { G }$ starts by computing an affine transformation of $[ z ; e ( y ) ]$ to a $[ 4 , 4 , c h _ { 0 } ]$ -shaped tensor (in Figure 3 this is represented as a $1 \times 1$ convolution). $[ z ; e ( y ) ]$ is used as the input to all class-conditional Batch Normalization layers throughout $\mathcal { G }$ (the gray line in Figure 7).
|
| 298 |
+
|
| 299 |
+
This is then treated as the input (at each frame we would like to generate) to a Convolutional Gated Recurrent Unit (Ballas et al., 2015; Sutskever et al., 2011) whose update rule for input $x _ { t }$ and previous output $h _ { t - 1 }$ is given by the following:
|
| 300 |
+
|
| 301 |
+
$$
|
| 302 |
+
\begin{array} { r l } & { r = \sigma ( W _ { r } \star _ { 3 } \left[ h _ { t - 1 } ; x _ { t } \right] + b _ { r } ) } \\ & { u = \sigma ( W _ { u } \star _ { 3 } \left[ h _ { t - 1 } ; x _ { t } \right] + b _ { u } ) } \\ & { c = \rho ( W _ { c } \star _ { 3 } \left[ x _ { t } ; r \odot h _ { t - 1 } \right] + b _ { c } ) } \\ & { h _ { t } = u \odot h _ { t - 1 } + ( 1 - u ) \odot c } \end{array}
|
| 303 |
+
$$
|
| 304 |
+
|
| 305 |
+
In these equations $\sigma$ and $\rho$ are the elementwise sigmoid and ReLU functions respectively, the $\star _ { n }$ operator represents a convolution with a kernel of size $n \times n$ , and the $\odot$ operator is an elementwise multiplication. Brackets are used to represent a feature concatenation. This RNN is unrolled once per frame. The output of this RNN is processed by two residual blocks (whose architecture is given by Figure 7). The time dimension is combined with the batch dimension here, so each frame proceeds through the blocks independently. The output of these blocks has width and height dimensions which are doubled (we skip upsampling in the first block). This is repeated a number of times, with the output of one $\mathrm { R N N } +$ residual group fed as the input to the next group, until the output tensors have the desired spatial dimensions. We do not reduce over the time dimension when calculating Batch Normalization statistics. This prevents the network from utilizing the Batch Normalization layers to pass information between timesteps.
|
| 306 |
+
|
| 307 |
+
The spatial discriminator $\mathcal { D } _ { S }$ functions almost identically to BigGAN’s discriminator, though an overview of the residual blocks is given in Figure 7 for completeness. A score is calculated for each of the uniformly sampled $k$ frames (we default to $k = 8$ ) and the $\mathcal { D } _ { S }$ output is the sum over per-frame scores. The temporal discriminator $\mathcal { D } _ { T }$ has a similar architecture, but pre-processes the real or generated video with a $2 \times 2$ average-pooling downsampling function $\phi$ . Furthermore, the first two residual blocks of $\mathcal { D } _ { T }$ are 3-D, where every convolution is replaced with a 3-D convolution with a kernel size of $3 \times 3 \times 3$ . The rest of the architecture follows BigGAN (Brock et al., 2019).
|
| 308 |
+
|
| 309 |
+
# A.3 TRAINING DETAILS
|
| 310 |
+
|
| 311 |
+
Sampling from DVD-GAN is very efficient, as the core of the generator architecture is a feed-forward convolutional network: two $6 4 \times 6 4$ 48-frame videos can be sampled in less than $1 5 0 \mathrm { m s }$ on a single TPU core. The dual discriminator $\mathcal { D }$ is updated twice for every update of $\mathcal { G }$ (Heusel et al., 2017) and we use Spectral Normalization (Zhang et al., 2018) for all weight layers (approximated by the first singular value) and orthogonal initialization of weights (Saxe et al., 2013). Sampling is carried out using the exponential moving average of $\mathcal { G }$ ’s weights, which is accumulated with decay $\gamma = 0 . 9 9 9 9$ starting after 20,000 training steps. The model is optimized using Adam (Kingma & Ba, 2014) with batch size 512 and a learning rate of $1 \cdot 1 0 ^ { - 4 }$ and $5 { \cdot } \bar { 1 } 0 ^ { - 4 }$ for $\mathcal { G }$ and $\mathcal { D }$ respectively. Class conditioning in $\mathcal { D }$ (Miyato & Koyama, 2018) is projection-based whereas $\mathcal { G }$ relies on class-conditional Batch Normalization (Ioffe & Szegedy, 2015; De Vries et al., 2017; Dumoulin et al., 2017): equivalent to standard Batch Normalization without a learned scale and offset, followed by an elementwise affine transformation where each parameter is a function of the noise vector and class conditioning.
|
| 312 |
+
|
| 313 |
+
# A.4 FID FOR KINETICS-600 SYNTHESIS
|
| 314 |
+
|
| 315 |
+
The FID we use for Synthesis on Kinetics-600 is calculated exactly as Fréchet Video Distance (Unterthiner et al., 2018) except that we use a different feature network: an I3D trained on Kinetics-600 (as opposed to the network trained on Kinetics-400 in FVD) and features from the final hidden layer instead of the logits. This metric can be implemented as a small change from the publically available FVD code (Google, 2019) by changing the name of the TF-Hub module to ’https://tfhub.dev/deepmind/i3d-kinetics-600/1’ and loading the tensor named ’RGB/inception_i3d/Logits/AvgPool3D’ from the resulting graph.
|
| 316 |
+
|
| 317 |
+
# A.5 ARCHITECTURE EXTENSION TO VIDEO PREDICTION
|
| 318 |
+
|
| 319 |
+
In order to provide results on future video prediction problems we describe a simple modification to DVD-GAN to facilitate the added conditioning. A diagram of the extended model is in Figure 8.
|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
Figure 8: An architecture diagram describing the changes for the frame conditional model.
|
| 323 |
+
|
| 324 |
+

|
| 325 |
+
Figure 9: Three video samples from a prediction model trained on the BAIR robot pushing dataset. Each row is a separate video, the leftmost column is a (true) conditioning frame.
|
| 326 |
+
|
| 327 |
+
Given $C$ conditioning frames, our modified DVD-GAN- $F P$ passes each frame separately through a deep residual network identical to $\mathcal { D } _ { S }$ . The (near) symmetric design of $\mathcal { G }$ and $\mathcal { D } _ { S }$ ’s residual blocks mean that each output from a $\mathcal { D }$ -style residual block has a corresponding intermediate tensor in $\mathcal { G }$ of the same spatial resolution. After each block the resulting features for each conditioning frame are stacked in the channel dimension and passed through a $3 \times 3$ convolution and ReLU activation. The resulting tensor is used as the initial state for the Convolutional GRU in the corresponding block in $\mathcal { G }$ . Note that the frame conditioning stack reduces spatial resolution while $\mathcal { G }$ increases resolution. Therefore the smallest features of the conditioning frames (which have been through the most layers) are input earliest in $\mathcal { G }$ and the larger features (which have been through less processing) are input to $\mathcal { G }$ towards the end. $\mathcal { D } _ { T }$ operates on the concatenation of the conditioning frames and the output of $\mathcal { G }$ , meaning that it does not receive any extra information detailing that the first $C$ frames are special. However to reduce wasted computation we do not sample the first $C$ frames for $\mathcal { D } _ { S }$ on real or generated data. This technically means that $D _ { S }$ will never see the first few frames from real videos at full resolution, but this was not an issue in our experiments. Finally, our video prediction variant does not condition on any class information, allowing us to directly compare with prior art. This is achieved by settling the class id of all samples to 0.
|
| 328 |
+
|
| 329 |
+
# B FURTHER EXPERIMENTS
|
| 330 |
+
|
| 331 |
+
# B.1 UCF-101
|
| 332 |
+
|
| 333 |
+
UCF-101 (Soomro et al., 2012) is a dataset of 13,320 videos of human actions across 101 classes that has previously been used for video synthesis and prediction (Saito et al., 2017; Saito & Saito, 2018; Tulyakov et al., 2018). In this case, DVD-GAN is not conditioned on class labels to make our results comparable with prior work. This is achieved by setting the class labels of all input samples to 0. We report Inception Score (IS) calculated with a C3D network (Tran et al., 2015)
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
Figure 10: The first frames of interpolations between UCF-101 samples. Each row is a separate interpolation. Contrast with samples in Appendix D.2.
|
| 337 |
+
|
| 338 |
+
for quantitative comparison with prior work.4 This evaluation is performed by re-scaling the video to $1 2 8 \times 1 2 8$ , normalizing the input features based on mean statistics of the ground truth dataset, then taking a $1 1 2 \times 1 1 2$ center crop and applying C3D. Our model produces samples with an IS of 27.38, significantly outperforming the state of the art (see Table 2). The DVD-GAN architecture on UCF-101 is identical to the model used for Kinetics, and is trained on 16-frame $1 2 8 \times 1 2 8$ clips from UCF-101.
|
| 339 |
+
|
| 340 |
+
The lack of class information does hurt the performance of DVD-GAN, and training on UCF-101 with class labels leads to an improved model with an Inception Score of 32.97. This is directly comparable to Conditional TGAN Saito et al. (2017) which achieved an IS of 15.83 and is close to the IS reported for the ground truth data ( 34.49). However we note than many more recent video generation papers do not test in this regime. It is worth mentioning that our improved score is, at least partially, due to memorization of the training data. In Figure 10 we show interpolation samples from our best UCF-101 model. Like interpolations in Appendix D.2, we sample 2 latents (left and rightmost columns) and show samples from the linear interpolation in latent space along each row. Here we show 4 such interpolations (the first frame from each video). Unlike Kinetics-600 interpolations, which smoothly transition from one sample to the other, we see abrupt jumps in the latent space between highly distinct samples, and little intra-video diversity between samples in each group. It can be further seen that some generated samples highly correlate with samples from the training set.
|
| 341 |
+
|
| 342 |
+
We show this both as a failure of the Inception Score metric, the commonly reported value for classconditional video synthesis on UCF-101, but also as strong signal that UCF-101 is not a complex or diverse enough dataset to facilitate interesting video generation. Each class is relatively small, and reuse of clips from shared underlying videos means that the intra-class diversity can be restricted to just a handful of videos per class. This suggests the need for larger, more diverse and challenging datasets for generative video modelling, and we believe that Kinetics-600 provides a better benchmark for this task.
|
| 343 |
+
|
| 344 |
+
# C MISCELLANEOUS EXPERIMENTS
|
| 345 |
+
|
| 346 |
+
Here we detail a number of modifications or miscellaneous results we experimented with which did not produce a conclusive result.
|
| 347 |
+
|
| 348 |
+
• We experimented with several variations of normalization which do not require calculating statistics over a batch of data. Group Normalization (Wu & He, 2018) performed best, almost on a par with (but worse than) Batch Normalization. We further tried Layer Normalization (Lei Ba et al., 2016), Instance Normalization (Ulyanov et al., 2016), and no normalization, but found that these significantly underperformed Batch Normalization.
|
| 349 |
+
|
| 350 |
+
• We found that removing the final Batch Normalization in $\mathcal { G }$ , which occurs after the ResNet and before the final convolution, caused a catastrophic failure in learning. Interestingly, just removing the Batch Normalization layers within $\mathcal { G }$ ’s residual blocks still led to good (though slightly worse) generative models. In particular, variants without Batch Normalization in the residual blocks often achieve significantly higher IS (up to 110.05 for $6 4 \times 6 4 ~ 1 2$ frame samples – twice normal). But these models had substantially worse FID scores (1.22 for the aforementioned model) – and produced qualitatively worse video samples.
|
| 351 |
+
|
| 352 |
+
• Early variants of DVD-GAN contained Batch Normalization which normalized over all frames of all batch elements. This gave $\mathcal { G }$ an extra channel to convey information across time. It took advantage of this, with the result being a model which required batch statistics in order to produce good samples. We found that the version which normalizes over timesteps independently worked just as well and without the dependence on statistics.
|
| 353 |
+
|
| 354 |
+
• Models based on the residual blocks of BigGAN-deep trained faster (in wall clock time) but slower with regards to metrics, and struggled to reach the accuracy of models based on BigGAN’s residual blocks.
|
| 355 |
+
|
| 356 |
+
D GENERATED SAMPLES
|
| 357 |
+
|
| 358 |
+
It is difficult to accurately convey complicated generated video through still frames. Where provided, we recommend readers view the generated videos themselves via the provided links. We refer to videos within these batches by row/column number where the video in the 0th row and column is in the top left corner.
|
| 359 |
+
|
| 360 |
+
D.1 SYNTHESIS SAMPLES
|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Figure 11: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $6 4 \times 6 4$ Kinetics-600. Full samples at https://drive.google.com/file/d/ 155F1lkHA5fMAd7k4W3CQvTsi1eKQDhGb/view?usp $^ { 1 = }$ sharing.
|
| 364 |
+
|
| 365 |
+

|
| 366 |
+
Figure 12: The first frames from a random batch of samples from DVD-GAN trained on 48 frames of $6 4 \times 6 4$ Kinetics-600. Full samples at https://drive.google.com/file/d/ 1FjOQYdUuxPXvS8yeOhXdPQMapUQaklLi/view?usp $^ { 1 = }$ sharing.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 13: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $1 2 8 \times 1 2 8$ Kinetics-600. Full samples at https://drive.google.com/file/ d/165Yxuvvu3viOy-39LhhSDGtczbWphj_i/view?usp $\mid =$ sharing
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
Figure 14: The first frames from a random batch of samples from DVD-GAN trained on 48 frames of $1 2 8 \times 1 2 8$ Kinetics-600. Full samples at https://drive.google.com/file/ d/1P8SsWEGP6tEGPPNPH-iVycOlN6vpIgE8/view?usp $\mid =$ sharing. The sample in row 1, column 5 is a stereotypical example of a degenerate sample occasionally produced by DVD-GAN.
|
| 373 |
+
|
| 374 |
+

|
| 375 |
+
Figure 15: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $2 5 6 \times 2 5 6$ Kinetics-600. Full samples at https://drive.google.com/file/ d/1RGRVKCpVaG8z3p9GBCamRk4apiIR7jUc/view?usp $^ { 1 = }$ sharing.
|
| 376 |
+
|
| 377 |
+

|
| 378 |
+
Figure 16: The first frames from a random batch of samples from DVD-GAN trained on UCF-101. Full samples at https://drive.google.com/file/d/ 1VVLF3bQLyfKtIiSxaKWKq5qFRHmv5EVW/view?usp $^ { 1 = }$ sharing.
|
| 379 |
+
|
| 380 |
+
# D.2 INTERPOLATION SAMPLES
|
| 381 |
+
|
| 382 |
+
We expect $\mathcal { G }$ to produce samples of higher quality from latents near the mean of the distribution (zero). This is the idea behind the Truncation Trick (Brock et al., 2019). Like BigGAN, we find that DVD-GAN is amenable to truncation. We also experiment with interpolations in the latent space and in the class embedding. In both cases, interpolations are evidence that $\mathcal { G }$ has learned a relatively smooth mapping from the latent space to real videos: this would be impossible for a network that has only memorized the training data, or which is only capable of generating a few exemplars per class. Note that while all latent vectors along an interpolation are valid (and therefore $\mathcal { G }$ should produce a reasonable sample), at no point during training is $\mathcal { G }$ asked to generate a sample halfway between two classes. Nevertheless $\mathcal { G }$ is able to interpolate between even very distinct classes.
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure 17: An example intra-class interpolation. Each column is a separate video (the vertical axis is the time dimension). The left and rightmost columns are randomly sampled latent vectors and are generated under a shared class. Columns in between represent videos generated under the same class across the linear interpolation between the two random samples. Note the smooth transition between videos at all six timesteps displayed here.
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
Figure 18: An example of class interpolation. As before, each column is a sequence of timesteps of a single video. Here, we sample a single latent vector, and the left and rightmost columns represent generating a video of that latent under two different classes. Columns in between represent videos of that same latent generated across an interpolation of the class embedding. Even though at no point has DVD-GAN been trained on data under an interpolated class, it nevertheless produces reasonable samples.
|
parse/train/Byx91R4twB/Byx91R4twB_content_list.json
ADDED
|
@@ -0,0 +1,2142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ADVERSARIAL VIDEO GENERATION ON COMPLEX DATASETS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
607,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Generative models of natural images have progressed towards high fidelity samples by the strong leveraging of scale. We attempt to carry this success to the field of video modeling by showing that large Generative Adversarial Networks trained on the complex Kinetics-600 dataset are able to produce video samples of substantially higher complexity and fidelity than previous work. Our proposed model, Dual Video Discriminator GAN (DVD-GAN), scales to longer and higher resolution videos by leveraging a computationally efficient decomposition of its discriminator. We evaluate on the related tasks of video synthesis and video prediction, and achieve new state-of-the-art Fréchet Inception Distance for prediction for Kinetics600, as well as state-of-the-art Inception Score for synthesis on the UCF-101 dataset, alongside establishing a strong baseline for synthesis on Kinetics-600. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
267,
|
| 43 |
+
766,
|
| 44 |
+
420
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
448,
|
| 55 |
+
336,
|
| 56 |
+
463
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "image",
|
| 62 |
+
"img_path": "images/adc877926138740958977e4f86b2fcca873d05c1b6527e19d41a8b97e5d1037c.jpg",
|
| 63 |
+
"image_caption": [
|
| 64 |
+
"Figure 1: Selected frames from videos generated by a DVD-GAN trained on Kinetics-600 at $2 5 6 \\times 2 5 6$ , $1 2 8 \\times 1 2 8$ , and $6 4 \\times 6 4$ resolutions (top to bottom). "
|
| 65 |
+
],
|
| 66 |
+
"image_footnote": [],
|
| 67 |
+
"bbox": [
|
| 68 |
+
174,
|
| 69 |
+
484,
|
| 70 |
+
823,
|
| 71 |
+
704
|
| 72 |
+
],
|
| 73 |
+
"page_idx": 0
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"type": "text",
|
| 77 |
+
"text": "Modern deep generative models can produce realistic natural images when trained on high-resolution and diverse datasets (Brock et al., 2019; Karras et al., 2018; Kingma & Dhariwal, 2018; Menick & Kalchbrenner, 2019; Razavi et al., 2019). Generation of natural video is an obvious further challenge for generative modeling, but one that is plagued by increased data complexity and computational requirements. For this reason, much prior work on video generation has revolved around relatively simple datasets, or tasks where strong temporal conditioning information is available. ",
|
| 78 |
+
"bbox": [
|
| 79 |
+
174,
|
| 80 |
+
776,
|
| 81 |
+
825,
|
| 82 |
+
861
|
| 83 |
+
],
|
| 84 |
+
"page_idx": 0
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"type": "text",
|
| 88 |
+
"text": "We focus on the tasks of video synthesis and video prediction (defined in Section 2.1), and aim to extend the strong results of generative image models to the video domain. Building upon the state-of-the-art BigGAN architecture (Brock et al., 2019), we introduce an efficient spatio-temporal decomposition of the discriminator which allows us to train on Kinetics-600 – a complex dataset of natural videos an order of magnitude larger than other commonly used datasets. The resulting model, Dual Video Discriminator GAN (DVD-GAN), is able to generate temporally coherent, high-resolution videos of relatively high fidelity (Figure 1). ",
|
| 89 |
+
"bbox": [
|
| 90 |
+
174,
|
| 91 |
+
867,
|
| 92 |
+
823,
|
| 93 |
+
922
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "image",
|
| 99 |
+
"img_path": "images/a2dfb8515504437c7e53d843cc7ee19db4164b306149b5ece9aabdf44ecdcd57.jpg",
|
| 100 |
+
"image_caption": [
|
| 101 |
+
"Figure 2: Generated video samples with interesting behavior. In raster-scan order: a) On-screen generated text with further lines appearing.. b) Zooming in on an object. c) Colored detail from a pen being left on paper. d) A generated camera change and return. "
|
| 102 |
+
],
|
| 103 |
+
"image_footnote": [],
|
| 104 |
+
"bbox": [
|
| 105 |
+
174,
|
| 106 |
+
101,
|
| 107 |
+
825,
|
| 108 |
+
203
|
| 109 |
+
],
|
| 110 |
+
"page_idx": 1
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"type": "text",
|
| 114 |
+
"text": "",
|
| 115 |
+
"bbox": [
|
| 116 |
+
176,
|
| 117 |
+
280,
|
| 118 |
+
825,
|
| 119 |
+
324
|
| 120 |
+
],
|
| 121 |
+
"page_idx": 1
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"type": "text",
|
| 125 |
+
"text": "Our contributions are as follows: ",
|
| 126 |
+
"bbox": [
|
| 127 |
+
174,
|
| 128 |
+
330,
|
| 129 |
+
390,
|
| 130 |
+
344
|
| 131 |
+
],
|
| 132 |
+
"page_idx": 1
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"type": "text",
|
| 136 |
+
"text": "• We propose DVD-GAN – a scalable generative model of natural video which produces high-quality samples at resolutions up to $2 5 6 \\times 2 5 6$ and lengths up to 48 frames. • We achieve state of the art for video synthesis on UCF-101 and prediction on Kinetics-600. • We establish class-conditional video synthesis on Kinetics-600 as a new benchmark for generative video modeling, and report DVD-GAN results as a strong baseline. ",
|
| 137 |
+
"bbox": [
|
| 138 |
+
215,
|
| 139 |
+
354,
|
| 140 |
+
825,
|
| 141 |
+
434
|
| 142 |
+
],
|
| 143 |
+
"page_idx": 1
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"type": "text",
|
| 147 |
+
"text": "2 BACKGROUND ",
|
| 148 |
+
"text_level": 1,
|
| 149 |
+
"bbox": [
|
| 150 |
+
174,
|
| 151 |
+
453,
|
| 152 |
+
326,
|
| 153 |
+
469
|
| 154 |
+
],
|
| 155 |
+
"page_idx": 1
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "text",
|
| 159 |
+
"text": "2.1 VIDEO SYNTHESIS AND PREDICTION ",
|
| 160 |
+
"text_level": 1,
|
| 161 |
+
"bbox": [
|
| 162 |
+
176,
|
| 163 |
+
484,
|
| 164 |
+
470,
|
| 165 |
+
498
|
| 166 |
+
],
|
| 167 |
+
"page_idx": 1
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"type": "text",
|
| 171 |
+
"text": "The exact formulation of the video generation task can differ in the type of conditioning signal provided. At one extreme lies unconditional video synthesis where the task is to generate any video following the training distribution. Another extreme is occupied by strongly-conditioned models, including generation conditioned on another video for content transfer (Bansal et al., 2018; Zhou et al., 2019), per-frame segmentation masks (Wang et al., 2018a), or pose information (Walker et al., 2017; Villegas et al., 2017b; Yang et al., 2018). In the middle ground there are tasks which are more structured than unconditional generation, and yet are more challenging from a modeling perspective than strongly-conditional generation (which gets a lot of information about the generated video through its input). The objective of class-conditional video synthesis is to generate a video of a given category (e.g., “riding a bike”) while future video prediction is concerned with generation of continuing video given initial frames. These problems differ in several aspects, but share a common requirement of needing to generate realistic temporal dynamics, and in this work we focus on these two problems. ",
|
| 172 |
+
"bbox": [
|
| 173 |
+
173,
|
| 174 |
+
510,
|
| 175 |
+
825,
|
| 176 |
+
690
|
| 177 |
+
],
|
| 178 |
+
"page_idx": 1
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"type": "text",
|
| 182 |
+
"text": "2.2 GENERATIVE ADVERSARIAL NETWORKS ",
|
| 183 |
+
"text_level": 1,
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
707,
|
| 187 |
+
500,
|
| 188 |
+
722
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) are a class of generative models defined by a minimax game between a Discriminator $\\mathcal { D }$ and a Generator $\\mathcal { G }$ . The original objective was proposed by Goodfellow et al. (2014), and many improvements have since been suggested, mostly targeting improved training stability (Arjovsky et al., 2017; Zhang et al., 2018; Brock et al., 2019; Gulrajani et al., 2017; Miyato et al., 2018). We use the hinge formulation of the objective (Lim & Ye, 2017; Brock et al., 2019) which is optimized by gradient descent $\\overset { \\cdot } { \\rho }$ is the elementwise ReLU function): ",
|
| 195 |
+
"bbox": [
|
| 196 |
+
173,
|
| 197 |
+
732,
|
| 198 |
+
825,
|
| 199 |
+
832
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 1
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "equation",
|
| 205 |
+
"img_path": "images/a19cd400427a081be9f5e597ca04787a8c47cd6c595e3f7c9e684121d34d5fb8.jpg",
|
| 206 |
+
"text": "$$\n\\mathcal D \\colon \\operatorname* { m i n } _ { \\mathcal D } \\underset { x \\sim d a t a ( x ) } { \\mathbb { E } } \\left[ \\rho ( 1 - \\mathcal D ( x ) ) \\right] + \\underset { z \\sim p ( z ) } { \\mathbb { E } } \\left[ \\rho ( 1 + \\mathcal D ( \\mathcal { G } ( z ) ) ) \\right] , \\quad \\mathcal G \\colon \\operatorname* { m a x } _ { \\mathcal G } \\underset { z \\sim p ( z ) } { \\mathbb { E } } \\left[ \\mathcal D ( \\mathcal { G } ( z ) ) \\right] .\n$$",
|
| 207 |
+
"text_format": "latex",
|
| 208 |
+
"bbox": [
|
| 209 |
+
192,
|
| 210 |
+
852,
|
| 211 |
+
805,
|
| 212 |
+
885
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "GANs have well-known limitations including a tendency towards limited diversity in generated samples (a phenomenon known as mode collapse) and the difficulty of quantitative evaluation due ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
176,
|
| 221 |
+
895,
|
| 222 |
+
823,
|
| 223 |
+
924
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "to the lack of an explicit likelihood measure over the data. Despite these downsides, GANs have produced some of the highest fidelity samples across many visual domains (Karras et al., 2018; Brock et al., 2019). ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
103,
|
| 233 |
+
823,
|
| 234 |
+
145
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "2.3 KINETICS-600 ",
|
| 241 |
+
"text_level": 1,
|
| 242 |
+
"bbox": [
|
| 243 |
+
174,
|
| 244 |
+
162,
|
| 245 |
+
316,
|
| 246 |
+
178
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "Kinetics is a large dataset of 10-second high-resolution YouTube clips (Kay et al., 2017; DeepMind, 2018) originally created for the task of human action recognition. We use the second iteration of the dataset, Kinetics-600 (Carreira et al., 2018), which consists of 600 classes with at least 600 videos per class for a total of around 500,000 videos.1 Kinetics videos are diverse and unconstrained, which allows us to train large models without being concerned with the overfitting that occurs on small datasets with fixed objects interacting in specified ways (Ebert et al., 2017; Blank et al., 2005). Among prior work, the closest dataset (in terms of subject and complexity) which is consistently used is UCF-101 (Soomro et al., 2012). We focus on Kinetics-600 because of its larger size (almost $5 0 \\mathrm { x }$ more videos than UCF-101) and its increased diversity (600 instead of 101 classes – not to mention increased intra-class diversity). Nevertheless for comparison with prior art we train on UCF-101 and achieve a state-of-the-art Inception Score there. Kinetics contains many artifacts expected from YouTube, including cuts (as in Figure 2d), title screens and visual effects. Except when specifically described, we choose frames with stride 2 (meaning we skip every other frame). This allows us to generate videos with more complexity without incurring higher computational cost. ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
189,
|
| 256 |
+
825,
|
| 257 |
+
383
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "To the best of our knowledge we are the first to consider generative modelling of the entirety of the Kinetics video dataset2, although a small subset of Kinetics consisting of 4,000 selected and stabilized videos (via a SIFT $^ +$ RANSAC procedure) has been used in at least two prior papers (Li et al., 2018; Balaji et al., 2018). Due to the heavy pre-processing and stabilization present, as well as the sizable reduction in dataset size (two orders of magnitude) we do not consider these datasets comparable to the full Kinetics-600 dataset. ",
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
391,
|
| 267 |
+
825,
|
| 268 |
+
474
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "2.4 EVALUATION METRICS ",
|
| 275 |
+
"text_level": 1,
|
| 276 |
+
"bbox": [
|
| 277 |
+
176,
|
| 278 |
+
493,
|
| 279 |
+
374,
|
| 280 |
+
507
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "Designing metrics for measuring the quality of generative models (GANs in particular) is an active area of research (Sajjadi et al., 2018; Barratt & Sharma, 2018). In this work we report the two most commonly used metrics, Inception Score (IS) (Salimans et al. (2016)) and Fréchet Inception Distance (FID) (Heusel et al., 2017). The standard instantiation of these metrics is intended for generative image models, and uses an Inception model (Szegedy et al., 2016) for image classification or feature extraction. For videos, we use the publicly available Inflated 3D Convnet (I3D) network trained on Kinetics-600 (Carreira & Zisserman, 2017). Our Fréchet Inception Distance is therefore very similar to the Fréchet Video Distance (FVD) (Unterthiner et al., 2018), although our implementation is different and more aligned with the original FID metric.3 More details are in Appendix A.4. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
518,
|
| 290 |
+
825,
|
| 291 |
+
645
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "3 DUAL VIDEO DISCRIMINATOR GAN ",
|
| 298 |
+
"text_level": 1,
|
| 299 |
+
"bbox": [
|
| 300 |
+
174,
|
| 301 |
+
665,
|
| 302 |
+
509,
|
| 303 |
+
681
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Our primary contribution is Dual Video Discriminator GAN (DVD-GAN), a generative video model of complex human actions built upon the state-of-the-art BigGAN architecture (Brock et al., 2019) while introducing scalable, video-specific generator and discriminator architectures. An overview of the DVD-GAN architecture is given in Figure 3 and a detailed description is in Appendix A.2. Unlike some of the prior work, our generator contains no explicit priors for foreground, background or motion (optical flow); instead, we rely on a high-capacity neural network to learn this in a data-driven manner. While DVD-GAN contains sequential components (RNNs), it is not autoregressive in time or in space. In other words, the pixels of each frame do not directly depend on other pixels in the video, as would be the case for auto-regressive models or models generating one frame at a time. ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
173,
|
| 312 |
+
696,
|
| 313 |
+
825,
|
| 314 |
+
823
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "Generating long and high resolution videos is a heavy computational challenge: individual samples from Kinetics-600 (just 10 seconds long) contain upwards of 16 million pixels which need to be generated in a consistent fashion. This is a particular challenge to the discriminator. For example, a generated video might contain an object which leaves the field of view and incorrectly returns with a different color. Here, the ability to determine this video is generated is only possible by comparing two different spatial locations across two (potentially distant) frames. Given a video with length $T$ , height $H$ , and width $W$ , discriminators that process the entire video would have to process all $H \\times W \\times T$ pixels – limiting the size of the model and the size of the videos being generated. ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
176,
|
| 323 |
+
830,
|
| 324 |
+
823,
|
| 325 |
+
858
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "image",
|
| 331 |
+
"img_path": "images/c630e03b69f5632cb0f1b4fcdd5e6cbe2329d6a917d9c2f34800c987129c3f4f.jpg",
|
| 332 |
+
"image_caption": [
|
| 333 |
+
"ResNet Block Figure 3: Simplified architecture diagram of $\\mathcal { G }$ (left) and $\\mathcal { D } _ { S } / \\mathcal { D } _ { T }$ Block (right). More details in A.2. "
|
| 334 |
+
],
|
| 335 |
+
"image_footnote": [],
|
| 336 |
+
"bbox": [
|
| 337 |
+
176,
|
| 338 |
+
99,
|
| 339 |
+
820,
|
| 340 |
+
335
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
390,
|
| 350 |
+
825,
|
| 351 |
+
473
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "3.1 DUAL DISCRIMINATORS ",
|
| 358 |
+
"text_level": 1,
|
| 359 |
+
"bbox": [
|
| 360 |
+
176,
|
| 361 |
+
492,
|
| 362 |
+
382,
|
| 363 |
+
506
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "DVD-GAN tackles this scale problem by using two discriminators: a Spatial Discriminator $\\mathcal { D } _ { S }$ and a Temporal Discriminator $\\mathcal { D } _ { T }$ . $\\mathcal { D } _ { S }$ critiques single frame content and structure by randomly sampling $k$ full-resolution frames and judging them individually. We use $k = 8$ and discuss this choice in Section 4.3. $\\mathcal { D } _ { S }$ ’s final score is the sum of the per-frame scores. The temporal discriminator $\\mathcal { D } _ { T }$ must provide $\\mathcal { G }$ with the learning signal to generate movement (something not evaluated by $\\mathcal { D } _ { S }$ ). To make the model scalable, we apply a spatial downsampling function $\\phi ( \\cdot )$ to the whole video and feed its output to $\\mathcal { D } _ { T }$ . We choose $\\phi$ to be $2 \\times 2$ average pooling, and discuss alternatives in Section 4.3. This results in an architecture where the discriminators do not process the entire video’s worth of pixels, $\\mathcal { D } _ { S }$ processes only resolution, this $k \\times H \\times W$ pixels and umber of p $\\mathcal { D } _ { T }$ only to pr $T \\times \\frac { H } { 2 } \\times \\frac { W } { 2 }$ . For a 48 frame video ato from 786432 to 327680: $1 2 8 \\times 1 2 8$ \na $5 8 \\%$ reduction. Despite this decomposition, the discriminator objective is still able to penalize almost all inconsistencies which would be penalized by a discriminator judging the entire video. $\\mathcal { D } _ { T }$ judges any temporal discrepancies across the entire length of the video, and $\\mathcal { D } _ { S }$ can judge any high resolution details. The only detail the DVD-GAN discriminator objective is unable to reflect is the temporal evolution of pixels within a $2 \\times 2$ window. We have however not noticed this affecting the generated samples in practice. DVD-GAN’s $\\mathcal { D } _ { S }$ is similar to the per-frame discriminator $\\mathcal { D } _ { I }$ in MoCoGAN (Tulyakov et al., 2018). However MoCoGAN’s analog of $\\mathcal { D } _ { T }$ looks at full resolution videos, whereas $\\mathcal { D } _ { S }$ is the only source of learning signal for high-resolution details in DVD-GAN. For this reason, $\\mathcal { D } _ { S }$ is essential when $\\phi$ is not the identity, unlike in MoCoGAN where the additional per-frame discriminator is less crucial. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
517,
|
| 373 |
+
825,
|
| 374 |
+
795
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "3.2 RELATED WORK ",
|
| 381 |
+
"text_level": 1,
|
| 382 |
+
"bbox": [
|
| 383 |
+
176,
|
| 384 |
+
814,
|
| 385 |
+
330,
|
| 386 |
+
827
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "Generative video modeling is a widely explored problem which includes work on VAEs (Babaeizadeh et al., 2018; Denton & Fergus, 2018; Lee et al., 2018; Hsieh et al., 2018) and recurrent models (Wang et al., 2018b; Finn et al., 2016; Wang et al., 2018c; Byeon et al., 2018), auto-regressive models (Ranzato et al., 2014; Srivastava et al., 2015; Kalchbrenner et al., 2017; Weissenborn et al., 2019), normalizing flows (Kumar et al., 2019), and GANs (Mathieu et al., 2015; Vondrick et al., 2016; Saito et al., 2017; Saito & Saito, 2018). Much prior work considers decompositions which model the texture and spatial consistency of objects separately from their temporal dynamics. One approach is to split $\\mathcal { G }$ into foreground and background models (Vondrick et al., 2016; Spampinato et al., 2018), while another considers explicit or implicit optical flow or motion in either $\\mathcal { G }$ or $\\mathcal { D }$ (Saito et al., 2017; Ohnishi et al., 2018). Other methods decompose the generator (or encoder) to treat concepts like pose, content and motion separately from one another (Denton et al., 2017; Villegas et al., 2017a). Similar to DVD-GAN, MoCoGAN (Tulyakov et al., 2018) discriminates individual frames in addition to a discriminator which operates on fixed-length $K$ -frame slices of the whole video (where $K < T$ ). Though this potentially reduces the number of pixels to discriminate to $( H \\times W ) + ( K \\times H \\times W )$ , Tulyakov et al. (2018) describes discriminating sliding windows, which increases the total number of pixels. Other models follow this approach by discriminating groups of frames (Xie et al., 2018; Sun et al., 2018; Balaji et al., 2018). ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
840,
|
| 396 |
+
825,
|
| 397 |
+
924
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "image",
|
| 403 |
+
"img_path": "images/4f9ff19b1e94ddb46e0d5406dc6163bf997b04b74c8e7e25c020f5ada2cc9adf.jpg",
|
| 404 |
+
"image_caption": [
|
| 405 |
+
"Figure 4: Each row is the first frame of 15 videos from a random class, all from the same checkpoint. The classes are: cooking scallops, changing wheel (not on bike), calculating, dribbling basketball. "
|
| 406 |
+
],
|
| 407 |
+
"image_footnote": [],
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
102,
|
| 411 |
+
823,
|
| 412 |
+
234
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 4
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "image",
|
| 418 |
+
"img_path": "images/5108ab2cac78a011bdcfb9ec2f0d5b527d89d5f08bdbbf3f3f367b127993cbdd.jpg",
|
| 419 |
+
"image_caption": [
|
| 420 |
+
"Figure 5: All 48 frames (in raster-scan order) from a $6 4 \\times 6 4$ sample from watermelon cutting class. "
|
| 421 |
+
],
|
| 422 |
+
"image_footnote": [],
|
| 423 |
+
"bbox": [
|
| 424 |
+
174,
|
| 425 |
+
313,
|
| 426 |
+
823,
|
| 427 |
+
409
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 4
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
472,
|
| 437 |
+
826,
|
| 438 |
+
625
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "TGANv2 (Saito & Saito, 2018) proposes “adaptive batch reduction” for efficient training, an operation which randomly samples subsets of videos within a batch and temporal subwindows within each video. This operation is applied throughout TGANv2’s $\\mathcal { G }$ , with heads projecting intermediate feature maps directly to pixel space before applying batch reduction, and corresponding discriminators evaluating these lower resolution intermediate outputs. An effect of this choice is that TGANv2 discriminators only evaluate full-length videos at very low resolution. We show in Figure 6 that a similar reduction in DVD-GAN’s resolution when judging full videos leads to a loss in performance. We expect further reduction (towards the resolution at which TGANv2 evaluates the entire length of video) to lead to further degradation of DVD-GAN’s quality. Furthermore, this method is not easily adapted towards models with large batch sizes divided across a number of accelerators, with only a small batch size per replica. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
631,
|
| 448 |
+
825,
|
| 449 |
+
785
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "4 EXPERIMENTS AND ANALYSIS ",
|
| 456 |
+
"text_level": 1,
|
| 457 |
+
"bbox": [
|
| 458 |
+
176,
|
| 459 |
+
815,
|
| 460 |
+
459,
|
| 461 |
+
832
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 4
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "A detailed description of our training setup is in Appendix A.3. Each DVD-GAN was trained on TPU pods (Google, 2018) using between 32 and 512 replicas with an Adam (Kingma & Ba, 2014) optimizer. Video Synthesis models are trained for around 300,000 learning steps, whilst Video Prediction models are trained for up to 1,000,000 steps. Most models took between 12 and 96 hours to train. ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
853,
|
| 471 |
+
825,
|
| 472 |
+
922
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "4.1 VIDEO SYNTHESIS ",
|
| 479 |
+
"text_level": 1,
|
| 480 |
+
"bbox": [
|
| 481 |
+
176,
|
| 482 |
+
103,
|
| 483 |
+
344,
|
| 484 |
+
117
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 5
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Our primary results concern the problem of Video Synthesis. We provide our results for the UCF-101 and Kinetics-600 datasets. With Kinetics-600 emerging as a new benchmark for generative video modelling, our results establish a strong baseline for future work. ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
174,
|
| 493 |
+
135,
|
| 494 |
+
825,
|
| 495 |
+
176
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 5
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "4.1.1 KINETICS-600 RESULTS ",
|
| 502 |
+
"text_level": 1,
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
204,
|
| 506 |
+
397,
|
| 507 |
+
218
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 5
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "table",
|
| 513 |
+
"img_path": "images/7a3fa6bc6bb8a0c8f03a2353b1ddc787ac8bb4c51e10ca933931b21237fc2918.jpg",
|
| 514 |
+
"table_caption": [
|
| 515 |
+
"Table 1: FID/IS for DVD-GAN on Kinetics-600 Video Synthesis. We present the scores of the model taken at the point in training when the best FID was attained. The \"No Truncation\" columns contain the scores obtained without the truncation trick. The \"With Truncation\" columns contain the scores obtained at the truncation level which results in the best Inception Score. "
|
| 516 |
+
],
|
| 517 |
+
"table_footnote": [],
|
| 518 |
+
"table_body": "<table><tr><td>(#Frames /Resolution)</td><td colspan=\"2\">No Truncation FID (↓) IS (↑)</td><td colspan=\"2\">With Truncation FID (↓) IS (↑)</td></tr><tr><td>12/64 × 64</td><td>0.85</td><td>53.81</td><td>7.13</td><td>187.23</td></tr><tr><td>12/128 × 128</td><td>1.16</td><td>77.45</td><td>13.04</td><td>246.18</td></tr><tr><td>12/256 × 256</td><td>2.05</td><td>62.78</td><td>10.17</td><td>162.44</td></tr><tr><td>48/64 × 64</td><td>13.75</td><td>104.09</td><td>47.86</td><td>264.12</td></tr><tr><td>48/128 × 128</td><td>28.44</td><td>81.41</td><td>45.79</td><td>188.32</td></tr></table>",
|
| 519 |
+
"bbox": [
|
| 520 |
+
276,
|
| 521 |
+
343,
|
| 522 |
+
722,
|
| 523 |
+
457
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 5
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "In Table 1 we show the main result of this paper: benchmarks for Class-Conditional Video Synthesis on Kinetics-600. In this regime, we train a single DVD-GAN on all classes of Kinetics-600, supplying per-sample class information to both $\\mathcal { G }$ and $\\mathcal { D }$ . We consider a range of resolutions and video lengths, and measure Inception Score and Fréchet Inception Distance (FID) for each (as described in Section 2.4). We further measure each model along a truncation curve, which we carry out by calculating FID and IS statistics while varying the standard deviation of the latent vectors between 0 and 1. There is no prior work with which to quantitatively compare these results (for comparative experiments see Section 4.1.2 and Section 4.2.1), but we believe these samples to show a level of fidelity not yet achieved in datasets as complex as Kinetics-600 (see samples from each row in Appendix D.1). Because all videos are resized for the I3D network (to $2 2 4 \\times 2 2 4 )$ ), it is meaningful to compare metrics across equal length videos at different resolutions. Neither IS nor FID are comparable across videos of different lengths, and should be treated as separate metrics. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
484,
|
| 533 |
+
825,
|
| 534 |
+
651
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 5
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Generating longer and larger videos is a more challenging modeling problem, which is conveyed by the metrics (in particular, comparing 12-frame videos across $6 4 \\times 6 4$ , $1 2 8 \\times 1 2 8$ and $2 5 6 \\times 2 5 6$ resolutions). Nevertheless, DVD-GAN is able to generate plausible videos at all resolutions and with length spanning up to 4 seconds (48 frames). As can be seen in Appendix D.1, smaller videos display high quality textures, object composition and movement. At higher resolutions, generating coherent objects becomes more difficult (movement consists of a much larger number of pixels), but high-level details of the generated scenes are still extremely coherent, and textures (even complicated ones like a forest backdrop in Figure 1a) are generated well. It is further worth noting that the 48-frame models do not see more high resolution frames than the 12-frame model (due to the fixed choice of $k = 8$ described in Section 3.1), yet nevertheless learn to generate high resolution images. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
657,
|
| 544 |
+
825,
|
| 545 |
+
797
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 5
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "4.1.2 VIDEO SYNTHESIS ON UCF-101 ",
|
| 552 |
+
"text_level": 1,
|
| 553 |
+
"bbox": [
|
| 554 |
+
176,
|
| 555 |
+
824,
|
| 556 |
+
452,
|
| 557 |
+
839
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 5
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "We further verify our results by testing the same model on UCF-101 (Soomro et al., 2012), a smaller dataset of 13,320 videos of human actions across 101 classes that has previously been used for video synthesis and prediction (Saito et al., 2017; Saito & Saito, 2018; Tulyakov et al., 2018). Our model produces samples with an IS of 27.38, significantly outperforming the state of the art (see Table 2 for quantitative comparison and Appendix B.1 for more details). ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
853,
|
| 567 |
+
825,
|
| 568 |
+
924
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "table",
|
| 574 |
+
"img_path": "images/143b4d4b4bb4dbe9dcbcec8fc9c868412646e5395e9dc3830ffb67ba8f133344.jpg",
|
| 575 |
+
"table_caption": [
|
| 576 |
+
"Table 2: IS on UCF-101 without class conditioning. "
|
| 577 |
+
],
|
| 578 |
+
"table_footnote": [],
|
| 579 |
+
"table_body": "<table><tr><td>Method</td><td>IS (↑)</td></tr><tr><td>VGAN (Vondrick et al., 2016)</td><td>8.31 ± .09</td></tr><tr><td>TGAN (Saito et al., 2017)</td><td>11.85 ± .07</td></tr><tr><td>MoCoGAN (Tulyakov et al., 2018)</td><td>12.42 ± .03</td></tr><tr><td>ProgressiveVGAN (Acharya et al., 2018)</td><td>14.56 ± .05</td></tr><tr><td>TGANv2 (Saito & Saito,2018)</td><td>24.34 ± .35</td></tr><tr><td>DVD-GAN (ours)</td><td>27.38 ± 0.53</td></tr></table>",
|
| 580 |
+
"bbox": [
|
| 581 |
+
176,
|
| 582 |
+
127,
|
| 583 |
+
573,
|
| 584 |
+
241
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 6
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "table",
|
| 590 |
+
"img_path": "images/4107287d43756cd001ccac7d981c34a71ace3a8d89e4d4ce22c4ebe89faa34d2.jpg",
|
| 591 |
+
"table_caption": [
|
| 592 |
+
"Table 3: FVD on BAIR. "
|
| 593 |
+
],
|
| 594 |
+
"table_footnote": [],
|
| 595 |
+
"table_body": "<table><tr><td>Method</td><td>FVD (↓)</td></tr><tr><td>SVP-FP CDNA</td><td>315.5</td></tr><tr><td>SV2P</td><td>296.5 262.5</td></tr><tr><td>SAVP</td><td>116.4</td></tr><tr><td>DVD-GAN-FP (ours)</td><td>109.8</td></tr><tr><td>Video Transformer</td><td>94±2</td></tr></table>",
|
| 596 |
+
"bbox": [
|
| 597 |
+
589,
|
| 598 |
+
126,
|
| 599 |
+
828,
|
| 600 |
+
239
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 6
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "table",
|
| 606 |
+
"img_path": "images/e43f1629b966846439958e776407beca12b46e26857a90c91b97b77ad9e3eb6f.jpg",
|
| 607 |
+
"table_caption": [
|
| 608 |
+
"Table 4: DVD-GAN-FP’s FVD scores on Video Prediction for 16 frames of Kinetics-600 without frame skipping. The final row represents a Video Synthesis model generating 16 frames. "
|
| 609 |
+
],
|
| 610 |
+
"table_footnote": [],
|
| 611 |
+
"table_body": "<table><tr><td>Method</td><td>Training Set FVD (↓)</td><td>Test Set FVD (↓)</td></tr><tr><td>Video Transformer (Weissenborn et al.,2019)</td><td></td><td>170±5</td></tr><tr><td>DVD-GAN-FP</td><td>68.66 ± 0.78</td><td>69.15 ± 1.16</td></tr><tr><td>DVD-GAN</td><td>32.3 ± 0.82</td><td>31.1 ± 0.56</td></tr></table>",
|
| 612 |
+
"bbox": [
|
| 613 |
+
191,
|
| 614 |
+
309,
|
| 615 |
+
805,
|
| 616 |
+
388
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 6
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "4.2 FUTURE VIDEO PREDICTION ",
|
| 623 |
+
"text_level": 1,
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
429,
|
| 627 |
+
415,
|
| 628 |
+
444
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 6
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "Future Video Prediction is the problem of generating a sequence of frames which directly follow from one (or a number) of initial conditioning frames. Both this and video synthesis require $\\mathcal { G }$ to learn to produce realistic scenes and temporal dynamics, however video prediction further requires $\\mathcal { G }$ to analyze the conditioning frames and discover elements in the scene which will evolve over time. In this section, we use the Fréchet Video Distance exactly as Unterthiner et al. (2018): using the logits of an I3D network trained on Kinetics-400 as features. This allows for direct comparison to prior work. Our model, DVD-GAN-FP (Frame Prediction), is slightly modified to facilitate the changed problem, and details of these changes are given in Appendix A.5. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
462,
|
| 638 |
+
825,
|
| 639 |
+
574
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 6
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "4.2.1 FRAME-CONDITIONAL KINETICS ",
|
| 646 |
+
"text_level": 1,
|
| 647 |
+
"bbox": [
|
| 648 |
+
176,
|
| 649 |
+
607,
|
| 650 |
+
457,
|
| 651 |
+
621
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 6
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "For direct comparison with concurrent work on autoregressive video models (Weissenborn et al., 2019) we consider the generation of 11 frames of Kinetics-600 at $6 4 \\times 6 4$ resolution conditioned on 5 frames, where the videos for training are not taken with any frame skipping. We show results for all these cases in Table 4. Our frame-conditional model DVD-GAN- ${ \\pmb F } { \\pmb P }$ outperforms the prior work on frame-conditional prediction for Kinetics. The final row labeled DVD-GAN corresponds to 16-frame class-conditional Video Synthesis samples, generated without frame conditioning and without frame skipping. The FVD of this video synthesis model is notably better. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
638,
|
| 661 |
+
825,
|
| 662 |
+
736
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 6
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "On the one hand, we hypothesize that the synthesis model has an easier generative task: it can choose to generate (relatively) simple samples for each class, rather than be forced to continue frames taken from videos which are class outliers, or contain more complicated details. On the other hand, a certain portion of the FID/FVD metric undoubtedly comes from the distribution of objects and backgrounds present in the dataset, and so it seems that the prediction model should have a handicap in the metric by being given the ground truth distribution of backgrounds and objects with which to continue videos. The synthesis model’s improved performance on this task seems to indicate that the advantage of being able to select videos to generate is greater than the advantage of having a ground truth distribution of starting frames. This result is un-intuitive, as the frame conditional model has access to strictly more information about the data distribution it is trying to recover compared to the synthesis model (despite the fact that the two models are being trained by an identical objective). This experiment favors the synthesis model for FVD, but we highlight that other models or other metrics might produce the opposite ordering. ",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
743,
|
| 672 |
+
825,
|
| 673 |
+
924
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 6
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "image",
|
| 679 |
+
"img_path": "images/329ac23a7eb4e35037e2a45da62a239de0af7a5ed97b9145e0822c627cb65e8d.jpg",
|
| 680 |
+
"image_caption": [
|
| 681 |
+
"Figure 6: The effect of $\\phi$ in $\\mathcal { D } _ { T }$ (left two) and $k$ in $\\mathcal { D } _ { S }$ (right two). FID is similar for any choice of $\\phi$ , while IS declines as downsampling increases. Increasing $k$ improves both with diminishing returns. "
|
| 682 |
+
],
|
| 683 |
+
"image_footnote": [],
|
| 684 |
+
"bbox": [
|
| 685 |
+
176,
|
| 686 |
+
101,
|
| 687 |
+
825,
|
| 688 |
+
203
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 7
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "4.2.2 BAIR ROBOT PUSHING ",
|
| 695 |
+
"text_level": 1,
|
| 696 |
+
"bbox": [
|
| 697 |
+
176,
|
| 698 |
+
270,
|
| 699 |
+
392,
|
| 700 |
+
284
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "We further test future video prediction on the single-class BAIR Robot Pushing Dataset (Ebert et al., 2017), a dataset of stationary videos of a robot arm moving around a set of changing objects. In order for direct comparison with previous results reported in Unterthiner et al. (2018), we consider generating 15 frames conditioned on a single starting frame. Like on prediction with Kinetics, we report FVD exactly as in Unterthiner et al. (2018), with ground truth statistics and conditioning frames taken from the 256-video dev set. Results are reported in Table 3. Scores are taken from Unterthiner et al. (2018). DVD-GAN-FP outperforms all prior adversarial models trained on this dataset, but performs slightly worse than Video Transformer, a concurrently developed autoregressive model Weissenborn et al. (2019). Samples from DVD-GAN-FP on BAIR are given in Figure 9. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
294,
|
| 710 |
+
825,
|
| 711 |
+
419
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 7
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "4.3 DUAL DISCRIMINATOR INPUT ",
|
| 718 |
+
"text_level": 1,
|
| 719 |
+
"bbox": [
|
| 720 |
+
176,
|
| 721 |
+
436,
|
| 722 |
+
421,
|
| 723 |
+
450
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "We analyze several choices for $k$ (the number of frames per sample in the input to $\\mathcal { D } _ { S }$ ) and $\\phi$ (the downsampling function for $\\mathcal { D } _ { T }$ ). We expect setting $\\phi$ to the identity or $k = T$ to result in the best model, but we are interested in the maximally compressive $k$ and $\\phi$ that reduce discriminator input size (and the amount of computation), while still producing a high quality generator. For $\\phi$ , we consider: $2 \\times 2$ and $4 \\times 4$ average pooling, the identity (no downsampling), as well as a $\\phi$ which takes a random half-sized crop of the input video (as in Saito & Saito (2018)). Results can be seen in Figure 6. For each ablation, we train three identical DVD-GANs with different random initializations on 12-frame clips of Kinetics-600 at $6 4 \\times 6 4$ resolution for 100,000 steps. We report mean and standard deviation (via the error bars) across each group for the whole training period. For $k$ , we consider 1, 2, 8 and 10 frames. We see diminishing effect as $k$ increases, so settle on $k = 8$ . We note the substantially reduced IS of $4 \\times 4$ downsampling as opposed to $2 \\times 2$ , and further note that taking half-sized crops (which results in the same number of pixels input to $\\mathcal { D } _ { T }$ as $2 \\times 2$ pooling) is also notably worse. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
173,
|
| 732 |
+
463,
|
| 733 |
+
825,
|
| 734 |
+
642
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "5 CONCLUSION ",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
662,
|
| 745 |
+
318,
|
| 746 |
+
679
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "We approached the challenging problem of modeling natural video by introducing a GAN capable of capturing the complexity of a large video dataset. We showed that on UCF-101 and frame-conditional Kinetics-600 it quantitatively achieves the new state of the art, alongside qualitatively producing video synthesis samples with high complexity and diversity. We further wish to emphasize the benefit of training generative models on large and complex video datasets, such as Kinetics-600, and envisage the strong baselines we established on this dataset with DVD-GAN will be used as a reference point by the generative modeling community moving forward. While much remains to be done before realistic videos can be consistently generated in an unconstrained setting, we believe DVD-GAN is a step in that direction. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
694,
|
| 756 |
+
825,
|
| 757 |
+
820
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "REFERENCES ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
848,
|
| 768 |
+
285,
|
| 769 |
+
863
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 7
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Dinesh Acharya, Zhiwu Huang, Danda Pani Paudel, and Luc Van Gool. Towards high resolution video generation with progressive growing of sliced Wasserstein GANs. arXiv:1810.02419, 2018. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
872,
|
| 779 |
+
825,
|
| 780 |
+
900
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein GAN. arXiv:1701.07875, 2017. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
909,
|
| 790 |
+
823,
|
| 791 |
+
922
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. ICLR, 2018. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
171,
|
| 800 |
+
103,
|
| 801 |
+
825,
|
| 802 |
+
132
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 8
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Yogesh Balaji, Martin Renqiang Min, Bing Bai, Rama Chellappa, and Hans Peter Graf. Tfgan: Improving conditioning for text-to-video synthesis. 2018. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
141,
|
| 812 |
+
823,
|
| 813 |
+
171
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 8
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Nicolas Ballas, Li Yao, Chris Pal, and Aaron Courville. Delving deeper into convolutional networks for learning video representations. arXiv:1511.06432, 2015. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
173,
|
| 822 |
+
179,
|
| 823 |
+
823,
|
| 824 |
+
209
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 8
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Aayush Bansal, Shugao Ma, Deva Ramanan, and Yaser Sheikh. Recycle-GAN: Unsupervised video retargeting. In ECCV, September 2018. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
218,
|
| 834 |
+
825,
|
| 835 |
+
247
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 8
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Shane Barratt and Rishi Sharma. A note on the Inception Score. arXiv:1801.01973, 2018. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
169,
|
| 844 |
+
256,
|
| 845 |
+
764,
|
| 846 |
+
272
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 8
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Moshe Blank, Lena Gorelick, Eli Shechtman, Michal Irani, and Ronen Basri. Actions as space-time shapes. In ICCV, 2005. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
281,
|
| 856 |
+
821,
|
| 857 |
+
310
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 8
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. ICLR, 2019. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
319,
|
| 867 |
+
823,
|
| 868 |
+
349
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 8
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Wonmin Byeon, Qin Wang, Rupesh Kumar Srivastava, and Petros Koumoutsakos. Contextvp: Fully context-aware video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 753–769, 2018. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
173,
|
| 877 |
+
357,
|
| 878 |
+
825,
|
| 879 |
+
401
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 8
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the Kinetics dataset. In ICCV, 2017. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
173,
|
| 888 |
+
410,
|
| 889 |
+
823,
|
| 890 |
+
439
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Joao Carreira, Eric Noland, Andras Banki-Horvath, Chloe Hillier, and Andrew Zisserman. A short note about Kinetics-600. arXiv:1808.01340, 2018. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
173,
|
| 899 |
+
448,
|
| 900 |
+
823,
|
| 901 |
+
478
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 8
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Harm De Vries, Florian Strub, Jérémie Mary, Hugo Larochelle, Olivier Pietquin, and Aaron C Courville. Modulating early visual processing by language. In NeurIPS, 2017. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
486,
|
| 911 |
+
821,
|
| 912 |
+
516
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 8
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "DeepMind, 2018. Kinetics. https://deepmind.com/research/open-source/ open-source-datasets/kinetics/. Accessed: 2019. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
525,
|
| 922 |
+
821,
|
| 923 |
+
554
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. ICML, 2018. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
563,
|
| 933 |
+
790,
|
| 934 |
+
579
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in neural information processing systems, pp. 4414–4423, 2017. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
171,
|
| 943 |
+
588,
|
| 944 |
+
825,
|
| 945 |
+
617
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 8
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. In ICLR, 2017. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
173,
|
| 954 |
+
626,
|
| 955 |
+
825,
|
| 956 |
+
656
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Frederik Ebert, Chelsea Finn, Alex X Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. arXiv:1710.05268, 2017. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
174,
|
| 965 |
+
665,
|
| 966 |
+
823,
|
| 967 |
+
694
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 8
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Advances in neural information processing systems, pp. 64–72, 2016. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
703,
|
| 977 |
+
825,
|
| 978 |
+
733
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 8
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
741,
|
| 988 |
+
825,
|
| 989 |
+
771
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 8
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Google, 2018. Cloud tpu. https://cloud.google.com/tpu/. Accessed: 2019. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
780,
|
| 999 |
+
753,
|
| 1000 |
+
796
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 8
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Google, 2019. Fvd. https://github.com/google-research/google-research/ tree/master/frechet_video_distance. Accessed: 2019. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
805,
|
| 1010 |
+
823,
|
| 1011 |
+
834
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 8
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of Wasserstein GANs. In NeurIPS, 2017. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
171,
|
| 1020 |
+
843,
|
| 1021 |
+
825,
|
| 1022 |
+
872
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 8
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In NeurIPS, 2017. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
882,
|
| 1032 |
+
826,
|
| 1033 |
+
922
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 8
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Jun-Ting Hsieh, Bingbin Liu, De-An Huang, Li Fei-Fei, and Juan Carlos Niebles. Learning to decompose and disentangle representations for video prediction. In NeurIPS. 2018. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
171,
|
| 1042 |
+
103,
|
| 1043 |
+
825,
|
| 1044 |
+
133
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 9
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv:1502.03167, 2015. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
141,
|
| 1054 |
+
823,
|
| 1055 |
+
171
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Nal Kalchbrenner, Aäron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Graves, and Koray Kavukcuoglu. Video pixel networks. In ICML, 2017. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
179,
|
| 1065 |
+
825,
|
| 1066 |
+
209
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 9
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. arXiv:1812.04948, 2018. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
217,
|
| 1076 |
+
825,
|
| 1077 |
+
247
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 9
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The Kinetics human action video dataset. arXiv:1705.06950, 2017. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
179,
|
| 1086 |
+
256,
|
| 1087 |
+
823,
|
| 1088 |
+
299
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 9
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
308,
|
| 1098 |
+
823,
|
| 1099 |
+
338
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 9
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
176,
|
| 1108 |
+
345,
|
| 1109 |
+
823,
|
| 1110 |
+
376
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 9
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Manoj Kumar, Mohammad Babaeizadeh, Dumitru Erhan, Chelsea Finn, Sergey Levine, Laurent Dinh, and Durk Kingma. VideoFlow: A flow-based generative model for video. arXiv:1903.01434, 2019. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
383,
|
| 1120 |
+
825,
|
| 1121 |
+
426
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 9
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv:1804.01523, 2018. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
173,
|
| 1130 |
+
435,
|
| 1131 |
+
825,
|
| 1132 |
+
467
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 9
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv:1607.06450, 2016. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
174,
|
| 1141 |
+
473,
|
| 1142 |
+
823,
|
| 1143 |
+
503
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 9
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Yitong Li, Martin Renqiang Min, Dinghan Shen, David Carlson, and Lawrence Carin. Video generation from text. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
174,
|
| 1152 |
+
512,
|
| 1153 |
+
823,
|
| 1154 |
+
542
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 9
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Jae Hyun Lim and Jong Chul Ye. Geometric GAN. arXiv:1705.02894, 2017. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
173,
|
| 1163 |
+
550,
|
| 1164 |
+
683,
|
| 1165 |
+
566
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 9
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv:1511.05440, 2015. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
176,
|
| 1174 |
+
575,
|
| 1175 |
+
826,
|
| 1176 |
+
604
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 9
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In ICLR, 2019. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
171,
|
| 1185 |
+
613,
|
| 1186 |
+
825,
|
| 1187 |
+
643
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Takeru Miyato and Masanori Koyama. cGANs with projection discriminator. arXiv:1802.05637, 2018. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
173,
|
| 1196 |
+
651,
|
| 1197 |
+
825,
|
| 1198 |
+
681
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 9
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv:1802.05957, 2018. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
171,
|
| 1207 |
+
689,
|
| 1208 |
+
825,
|
| 1209 |
+
719
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 9
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Katsunori Ohnishi, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Hierarchical video generation from orthogonal information: Optical flow and texture. In AAAI, 2018. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
173,
|
| 1218 |
+
728,
|
| 1219 |
+
823,
|
| 1220 |
+
758
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 9
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Marc’Aurelio Ranzato, Arthur Szlam, Joan Bruna, Michaël Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv:1412.6604, 2014. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
176,
|
| 1229 |
+
766,
|
| 1230 |
+
825,
|
| 1231 |
+
809
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 9
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with VQ-VAE-2. arXiv preprint arXiv:1906.00446, 2019. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
171,
|
| 1240 |
+
818,
|
| 1241 |
+
823,
|
| 1242 |
+
848
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 9
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Masaki Saito and Shunta Saito. TGANv2: Efficient training of large models for video generation with multiple subsampling layers. arXiv:1811.09245, 2018. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
173,
|
| 1251 |
+
857,
|
| 1252 |
+
823,
|
| 1253 |
+
886
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 9
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Masaki Saito, Eiichi Matsumoto, and Shunta Saito. Temporal generative adversarial nets with singular value clipping. In ICCV, 2017. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
174,
|
| 1262 |
+
895,
|
| 1263 |
+
820,
|
| 1264 |
+
924
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 9
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Mehdi SM Sajjadi, Olivier Bachem, Mario Lucic, Olivier Bousquet, and Sylvain Gelly. Assessing generative models via precision and recall. In NeurIPS, 2018. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
171,
|
| 1273 |
+
103,
|
| 1274 |
+
823,
|
| 1275 |
+
132
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 10
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In NeurIPS, 2016. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
173,
|
| 1284 |
+
141,
|
| 1285 |
+
823,
|
| 1286 |
+
171
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 10
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv:1312.6120, 2013. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
171,
|
| 1295 |
+
180,
|
| 1296 |
+
823,
|
| 1297 |
+
209
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 10
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. arXiv:1212.0402, 2012. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
219,
|
| 1307 |
+
821,
|
| 1308 |
+
248
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 10
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Concetto Spampinato, Sergio Palazzo, P D’Oro, Francesca Murabito, Daniela Giordano, and M Shah. VOS-GAN: Adversarial learning of visual-temporal dynamics for unsupervised dense prediction in videos. arXiv:1803.09092, 2018. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
174,
|
| 1317 |
+
257,
|
| 1318 |
+
825,
|
| 1319 |
+
301
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 10
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using LSTMs. In ICML, 2015. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
310,
|
| 1329 |
+
823,
|
| 1330 |
+
340
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 10
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Ximeng Sun, Huijuan Xu, and Kate Saenko. A two-stream variational adversarial network for video generation. arXiv:1812.01037, 2018. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
174,
|
| 1339 |
+
349,
|
| 1340 |
+
823,
|
| 1341 |
+
378
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 10
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Ilya Sutskever, James Martens, and Geoffrey E Hinton. Generating text with recurrent neural networks. In ICML, 2011. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
173,
|
| 1350 |
+
387,
|
| 1351 |
+
825,
|
| 1352 |
+
417
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the Inception architecture for computer vision. In CVPR, 2016. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
171,
|
| 1361 |
+
426,
|
| 1362 |
+
825,
|
| 1363 |
+
457
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. Chainer: a next-generation open source framework for deep learning. In Workshop on Systems for ML and Open Source Software at NeurIPS, 2015. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
174,
|
| 1372 |
+
465,
|
| 1373 |
+
823,
|
| 1374 |
+
508
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 10
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3D convolutional networks. In ICCV, 2015. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
171,
|
| 1383 |
+
518,
|
| 1384 |
+
825,
|
| 1385 |
+
547
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 10
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. MoCoGAN: Decomposing motion and content for video generation. In CVPR, 2018. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
174,
|
| 1394 |
+
556,
|
| 1395 |
+
823,
|
| 1396 |
+
587
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 10
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv:1607.08022, 2016. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
173,
|
| 1405 |
+
595,
|
| 1406 |
+
821,
|
| 1407 |
+
626
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 10
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Thomas Unterthiner, Sjoerd van Steenkiste, Karol Kurach, Raphael Marinier, Marcin Michalski, and Sylvain Gelly. Towards accurate generative models of video: A new metric & challenges. arXiv:1812.01717, 2018. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
173,
|
| 1416 |
+
633,
|
| 1417 |
+
825,
|
| 1418 |
+
678
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 10
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. arXiv preprint arXiv:1706.08033, 2017a. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
171,
|
| 1427 |
+
686,
|
| 1428 |
+
823,
|
| 1429 |
+
717
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 10
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. In ICML, 2017b. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
171,
|
| 1438 |
+
726,
|
| 1439 |
+
823,
|
| 1440 |
+
756
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 10
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, 2016. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
173,
|
| 1449 |
+
765,
|
| 1450 |
+
823,
|
| 1451 |
+
795
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In ICCV, 2017. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
169,
|
| 1460 |
+
803,
|
| 1461 |
+
823,
|
| 1462 |
+
833
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv:1808.06601, 2018a. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
169,
|
| 1471 |
+
842,
|
| 1472 |
+
825,
|
| 1473 |
+
872
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Yunbo Wang, Zhifeng Gao, Mingsheng Long, Jianmin Wang, and Philip S Yu. Predrnn $^ { + + }$ : Towards a resolution of the deep-in-time dilemma in spatiotemporal predictive learning. arXiv preprint arXiv:1804.06300, 2018b. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
176,
|
| 1482 |
+
882,
|
| 1483 |
+
825,
|
| 1484 |
+
924
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 10
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "image",
|
| 1490 |
+
"img_path": "images/2b82b8c12420384304cdce1e87dfb74e91a7c033b4b1bdbba1c564101dc5acd8.jpg",
|
| 1491 |
+
"image_caption": [
|
| 1492 |
+
"Figure 7: The residual blocks for $\\mathcal { G }$ and $\\mathcal { D } _ { S } / \\mathcal { D } _ { T }$ . See Figure 3 for the icons and A.2 for more detail. "
|
| 1493 |
+
],
|
| 1494 |
+
"image_footnote": [],
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
176,
|
| 1497 |
+
101,
|
| 1498 |
+
821,
|
| 1499 |
+
174
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 11
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Yunbo Wang, Lu Jiang, Ming-Hsuan Yang, Li-Jia Li, Mingsheng Long, and Li Fei-Fei. Eidetic 3d lstm: A model for video prediction and beyond. 2018c. ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
173,
|
| 1508 |
+
229,
|
| 1509 |
+
825,
|
| 1510 |
+
258
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 11
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Dirk Weissenborn, Oscar Täckström, and Jakob Uszkoreit. Scaling autoregressive video models. arXiv:1906.02634, 2019. ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
174,
|
| 1519 |
+
267,
|
| 1520 |
+
825,
|
| 1521 |
+
297
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 11
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "Yuxin Wu and Kaiming He. Group normalization. In ECCV, 2018. ",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
174,
|
| 1530 |
+
308,
|
| 1531 |
+
614,
|
| 1532 |
+
323
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 11
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "You Xie, Erik Franz, Mengyu Chu, and Nils Thuerey. tempoGAN: A temporally coherent, volumetric GAN for super-resolution fluid flow. TOG, 2018. ",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
173,
|
| 1541 |
+
333,
|
| 1542 |
+
821,
|
| 1543 |
+
362
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 11
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "Ceyuan Yang, Zhe Wang, Xinge Zhu, Chen Huang, Jianping Shi, and Dahua Lin. Pose guided human video generation. In ECCV, 2018. ",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
174,
|
| 1552 |
+
372,
|
| 1553 |
+
823,
|
| 1554 |
+
401
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 11
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "text",
|
| 1560 |
+
"text": "Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv:1805.08318, 2018. ",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
174,
|
| 1563 |
+
411,
|
| 1564 |
+
823,
|
| 1565 |
+
440
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 11
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "text",
|
| 1571 |
+
"text": "Yipin Zhou, Zhaowen Wang, Chen Fang, Trung Bui, and Tamara L Berg. Dance dance generation: Motion transfer for internet videos. arXiv:1904.00129, 2019. ",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
174,
|
| 1574 |
+
450,
|
| 1575 |
+
825,
|
| 1576 |
+
479
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 11
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "text",
|
| 1582 |
+
"text": "A EXPERIMENT METHODOLOGY ",
|
| 1583 |
+
"text_level": 1,
|
| 1584 |
+
"bbox": [
|
| 1585 |
+
178,
|
| 1586 |
+
507,
|
| 1587 |
+
460,
|
| 1588 |
+
523
|
| 1589 |
+
],
|
| 1590 |
+
"page_idx": 11
|
| 1591 |
+
},
|
| 1592 |
+
{
|
| 1593 |
+
"type": "text",
|
| 1594 |
+
"text": "A.1 DATASET PROCESSING ",
|
| 1595 |
+
"text_level": 1,
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
176,
|
| 1598 |
+
540,
|
| 1599 |
+
377,
|
| 1600 |
+
554
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 11
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "For all datasets we randomly shuffle the training set for each model replica independently. Experiments on the BAIR Robot Pushing dataset are conducted in the native resolution of $6 4 \\times 6 4$ , where for UCF-101 we operate at a (downsampled) $1 2 8 \\times 1 2 8$ resolution. This is done by a bilinear resize such that the video’s smallest dimension is mapped to 128 pixels while maintaining aspect ratio (144 for UCF-101). From this we take a random 128-pixel crop along the other dimension. We use the same procedure to construct datasets of different resolutions for Kinetics-600. All three datasets contain videos with more frames than we generate, so we take a random sequence of consecutive frames from the resized output. For UCF-101, we augmented the dataset by randomly performing left-right flips with probability 0.5. ",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
173,
|
| 1609 |
+
565,
|
| 1610 |
+
825,
|
| 1611 |
+
691
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 11
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "A.2 ARCHITECTURE DESCRIPTION ",
|
| 1618 |
+
"text_level": 1,
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
176,
|
| 1621 |
+
709,
|
| 1622 |
+
429,
|
| 1623 |
+
723
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 11
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "text",
|
| 1629 |
+
"text": "Our model adopts many architectural choices from Brock et al. (2019) including our nomenclature for describing network width, which is determined by the product of a channel multiplier $c h$ with a constant for each layer in the network. The layer-wise constants for $\\mathcal { G }$ are [8, 8, 8, 4, 2] for $6 4 \\times 6 4$ videos and $[ 8 , 8 , 8 , 4 , 2 , 1 ]$ for $1 2 8 \\times 1 2 8$ . The width of the $i$ -th layer is given by the product of $c h$ and the $i$ -th constant and all layers prior to the residual network in $\\mathcal { G }$ use the initial layer’s multiplier and we refer to the product of that and $c h$ as $c h _ { 0 }$ . ch in DVD-GAN is 128 for videos with $6 4 \\times 6 4$ resolution and 96 otherwise. The corresponding $c h$ lists for both $\\mathcal { D } _ { T }$ and $\\mathcal { D } _ { S }$ are [2, 4, 8, 16, 16] for $6 4 \\times 6 4$ resolution and $[ 1 , 2 , 4 , 8 , 1 6 , 1 6 ]$ for $1 2 8 \\times 1 2 8$ . ",
|
| 1630 |
+
"bbox": [
|
| 1631 |
+
174,
|
| 1632 |
+
734,
|
| 1633 |
+
825,
|
| 1634 |
+
848
|
| 1635 |
+
],
|
| 1636 |
+
"page_idx": 11
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "text",
|
| 1640 |
+
"text": "The input to $\\mathcal { G }$ consists of a Gaussian latent noise $z \\sim \\mathcal { N } ( 0 , I )$ and a learned linear embedding $e ( y )$ of the desired class $y$ . Both inputs are 120-dimensional vectors. $\\mathcal { G }$ starts by computing an affine transformation of $[ z ; e ( y ) ]$ to a $[ 4 , 4 , c h _ { 0 } ]$ -shaped tensor (in Figure 3 this is represented as a $1 \\times 1$ convolution). $[ z ; e ( y ) ]$ is used as the input to all class-conditional Batch Normalization layers throughout $\\mathcal { G }$ (the gray line in Figure 7). ",
|
| 1641 |
+
"bbox": [
|
| 1642 |
+
174,
|
| 1643 |
+
853,
|
| 1644 |
+
823,
|
| 1645 |
+
924
|
| 1646 |
+
],
|
| 1647 |
+
"page_idx": 11
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "text",
|
| 1651 |
+
"text": "This is then treated as the input (at each frame we would like to generate) to a Convolutional Gated Recurrent Unit (Ballas et al., 2015; Sutskever et al., 2011) whose update rule for input $x _ { t }$ and previous output $h _ { t - 1 }$ is given by the following: ",
|
| 1652 |
+
"bbox": [
|
| 1653 |
+
173,
|
| 1654 |
+
103,
|
| 1655 |
+
825,
|
| 1656 |
+
146
|
| 1657 |
+
],
|
| 1658 |
+
"page_idx": 12
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "equation",
|
| 1662 |
+
"img_path": "images/457f3f29289d7bf00bf86bbaaf273b20bb607063e86a97e98c486c874ffe679f.jpg",
|
| 1663 |
+
"text": "$$\n\\begin{array} { r l } & { r = \\sigma ( W _ { r } \\star _ { 3 } \\left[ h _ { t - 1 } ; x _ { t } \\right] + b _ { r } ) } \\\\ & { u = \\sigma ( W _ { u } \\star _ { 3 } \\left[ h _ { t - 1 } ; x _ { t } \\right] + b _ { u } ) } \\\\ & { c = \\rho ( W _ { c } \\star _ { 3 } \\left[ x _ { t } ; r \\odot h _ { t - 1 } \\right] + b _ { c } ) } \\\\ & { h _ { t } = u \\odot h _ { t - 1 } + ( 1 - u ) \\odot c } \\end{array}\n$$",
|
| 1664 |
+
"text_format": "latex",
|
| 1665 |
+
"bbox": [
|
| 1666 |
+
387,
|
| 1667 |
+
167,
|
| 1668 |
+
611,
|
| 1669 |
+
242
|
| 1670 |
+
],
|
| 1671 |
+
"page_idx": 12
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "text",
|
| 1675 |
+
"text": "In these equations $\\sigma$ and $\\rho$ are the elementwise sigmoid and ReLU functions respectively, the $\\star _ { n }$ operator represents a convolution with a kernel of size $n \\times n$ , and the $\\odot$ operator is an elementwise multiplication. Brackets are used to represent a feature concatenation. This RNN is unrolled once per frame. The output of this RNN is processed by two residual blocks (whose architecture is given by Figure 7). The time dimension is combined with the batch dimension here, so each frame proceeds through the blocks independently. The output of these blocks has width and height dimensions which are doubled (we skip upsampling in the first block). This is repeated a number of times, with the output of one $\\mathrm { R N N } +$ residual group fed as the input to the next group, until the output tensors have the desired spatial dimensions. We do not reduce over the time dimension when calculating Batch Normalization statistics. This prevents the network from utilizing the Batch Normalization layers to pass information between timesteps. ",
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
174,
|
| 1678 |
+
247,
|
| 1679 |
+
825,
|
| 1680 |
+
401
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 12
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "text",
|
| 1686 |
+
"text": "The spatial discriminator $\\mathcal { D } _ { S }$ functions almost identically to BigGAN’s discriminator, though an overview of the residual blocks is given in Figure 7 for completeness. A score is calculated for each of the uniformly sampled $k$ frames (we default to $k = 8$ ) and the $\\mathcal { D } _ { S }$ output is the sum over per-frame scores. The temporal discriminator $\\mathcal { D } _ { T }$ has a similar architecture, but pre-processes the real or generated video with a $2 \\times 2$ average-pooling downsampling function $\\phi$ . Furthermore, the first two residual blocks of $\\mathcal { D } _ { T }$ are 3-D, where every convolution is replaced with a 3-D convolution with a kernel size of $3 \\times 3 \\times 3$ . The rest of the architecture follows BigGAN (Brock et al., 2019). ",
|
| 1687 |
+
"bbox": [
|
| 1688 |
+
174,
|
| 1689 |
+
407,
|
| 1690 |
+
825,
|
| 1691 |
+
505
|
| 1692 |
+
],
|
| 1693 |
+
"page_idx": 12
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"type": "text",
|
| 1697 |
+
"text": "A.3 TRAINING DETAILS ",
|
| 1698 |
+
"text_level": 1,
|
| 1699 |
+
"bbox": [
|
| 1700 |
+
176,
|
| 1701 |
+
521,
|
| 1702 |
+
354,
|
| 1703 |
+
535
|
| 1704 |
+
],
|
| 1705 |
+
"page_idx": 12
|
| 1706 |
+
},
|
| 1707 |
+
{
|
| 1708 |
+
"type": "text",
|
| 1709 |
+
"text": "Sampling from DVD-GAN is very efficient, as the core of the generator architecture is a feed-forward convolutional network: two $6 4 \\times 6 4$ 48-frame videos can be sampled in less than $1 5 0 \\mathrm { m s }$ on a single TPU core. The dual discriminator $\\mathcal { D }$ is updated twice for every update of $\\mathcal { G }$ (Heusel et al., 2017) and we use Spectral Normalization (Zhang et al., 2018) for all weight layers (approximated by the first singular value) and orthogonal initialization of weights (Saxe et al., 2013). Sampling is carried out using the exponential moving average of $\\mathcal { G }$ ’s weights, which is accumulated with decay $\\gamma = 0 . 9 9 9 9$ starting after 20,000 training steps. The model is optimized using Adam (Kingma & Ba, 2014) with batch size 512 and a learning rate of $1 \\cdot 1 0 ^ { - 4 }$ and $5 { \\cdot } \\bar { 1 } 0 ^ { - 4 }$ for $\\mathcal { G }$ and $\\mathcal { D }$ respectively. Class conditioning in $\\mathcal { D }$ (Miyato & Koyama, 2018) is projection-based whereas $\\mathcal { G }$ relies on class-conditional Batch Normalization (Ioffe & Szegedy, 2015; De Vries et al., 2017; Dumoulin et al., 2017): equivalent to standard Batch Normalization without a learned scale and offset, followed by an elementwise affine transformation where each parameter is a function of the noise vector and class conditioning. ",
|
| 1710 |
+
"bbox": [
|
| 1711 |
+
174,
|
| 1712 |
+
547,
|
| 1713 |
+
825,
|
| 1714 |
+
713
|
| 1715 |
+
],
|
| 1716 |
+
"page_idx": 12
|
| 1717 |
+
},
|
| 1718 |
+
{
|
| 1719 |
+
"type": "text",
|
| 1720 |
+
"text": "A.4 FID FOR KINETICS-600 SYNTHESIS ",
|
| 1721 |
+
"text_level": 1,
|
| 1722 |
+
"bbox": [
|
| 1723 |
+
176,
|
| 1724 |
+
729,
|
| 1725 |
+
467,
|
| 1726 |
+
743
|
| 1727 |
+
],
|
| 1728 |
+
"page_idx": 12
|
| 1729 |
+
},
|
| 1730 |
+
{
|
| 1731 |
+
"type": "text",
|
| 1732 |
+
"text": "The FID we use for Synthesis on Kinetics-600 is calculated exactly as Fréchet Video Distance (Unterthiner et al., 2018) except that we use a different feature network: an I3D trained on Kinetics-600 (as opposed to the network trained on Kinetics-400 in FVD) and features from the final hidden layer instead of the logits. This metric can be implemented as a small change from the publically available FVD code (Google, 2019) by changing the name of the TF-Hub module to ’https://tfhub.dev/deepmind/i3d-kinetics-600/1’ and loading the tensor named ’RGB/inception_i3d/Logits/AvgPool3D’ from the resulting graph. ",
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
174,
|
| 1735 |
+
756,
|
| 1736 |
+
825,
|
| 1737 |
+
853
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 12
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "A.5 ARCHITECTURE EXTENSION TO VIDEO PREDICTION ",
|
| 1744 |
+
"text_level": 1,
|
| 1745 |
+
"bbox": [
|
| 1746 |
+
174,
|
| 1747 |
+
869,
|
| 1748 |
+
581,
|
| 1749 |
+
883
|
| 1750 |
+
],
|
| 1751 |
+
"page_idx": 12
|
| 1752 |
+
},
|
| 1753 |
+
{
|
| 1754 |
+
"type": "text",
|
| 1755 |
+
"text": "In order to provide results on future video prediction problems we describe a simple modification to DVD-GAN to facilitate the added conditioning. A diagram of the extended model is in Figure 8. ",
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
174,
|
| 1758 |
+
895,
|
| 1759 |
+
823,
|
| 1760 |
+
924
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 12
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "image",
|
| 1766 |
+
"img_path": "images/1c5bc638de65612842638e42398458dcab82dea60e25561b2716a14decf2930c.jpg",
|
| 1767 |
+
"image_caption": [
|
| 1768 |
+
"Figure 8: An architecture diagram describing the changes for the frame conditional model. "
|
| 1769 |
+
],
|
| 1770 |
+
"image_footnote": [],
|
| 1771 |
+
"bbox": [
|
| 1772 |
+
176,
|
| 1773 |
+
99,
|
| 1774 |
+
821,
|
| 1775 |
+
315
|
| 1776 |
+
],
|
| 1777 |
+
"page_idx": 13
|
| 1778 |
+
},
|
| 1779 |
+
{
|
| 1780 |
+
"type": "image",
|
| 1781 |
+
"img_path": "images/972300bd4a0636857f606053d10d2722bb8de63b94b1ab68e1bfd6cd6e6dcd20.jpg",
|
| 1782 |
+
"image_caption": [
|
| 1783 |
+
"Figure 9: Three video samples from a prediction model trained on the BAIR robot pushing dataset. Each row is a separate video, the leftmost column is a (true) conditioning frame. "
|
| 1784 |
+
],
|
| 1785 |
+
"image_footnote": [],
|
| 1786 |
+
"bbox": [
|
| 1787 |
+
174,
|
| 1788 |
+
364,
|
| 1789 |
+
825,
|
| 1790 |
+
460
|
| 1791 |
+
],
|
| 1792 |
+
"page_idx": 13
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"type": "text",
|
| 1796 |
+
"text": "Given $C$ conditioning frames, our modified DVD-GAN- $F P$ passes each frame separately through a deep residual network identical to $\\mathcal { D } _ { S }$ . The (near) symmetric design of $\\mathcal { G }$ and $\\mathcal { D } _ { S }$ ’s residual blocks mean that each output from a $\\mathcal { D }$ -style residual block has a corresponding intermediate tensor in $\\mathcal { G }$ of the same spatial resolution. After each block the resulting features for each conditioning frame are stacked in the channel dimension and passed through a $3 \\times 3$ convolution and ReLU activation. The resulting tensor is used as the initial state for the Convolutional GRU in the corresponding block in $\\mathcal { G }$ . Note that the frame conditioning stack reduces spatial resolution while $\\mathcal { G }$ increases resolution. Therefore the smallest features of the conditioning frames (which have been through the most layers) are input earliest in $\\mathcal { G }$ and the larger features (which have been through less processing) are input to $\\mathcal { G }$ towards the end. $\\mathcal { D } _ { T }$ operates on the concatenation of the conditioning frames and the output of $\\mathcal { G }$ , meaning that it does not receive any extra information detailing that the first $C$ frames are special. However to reduce wasted computation we do not sample the first $C$ frames for $\\mathcal { D } _ { S }$ on real or generated data. This technically means that $D _ { S }$ will never see the first few frames from real videos at full resolution, but this was not an issue in our experiments. Finally, our video prediction variant does not condition on any class information, allowing us to directly compare with prior art. This is achieved by settling the class id of all samples to 0. ",
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
173,
|
| 1799 |
+
536,
|
| 1800 |
+
825,
|
| 1801 |
+
757
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 13
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "text",
|
| 1807 |
+
"text": "B FURTHER EXPERIMENTS ",
|
| 1808 |
+
"text_level": 1,
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
176,
|
| 1811 |
+
787,
|
| 1812 |
+
413,
|
| 1813 |
+
804
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 13
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "B.1 UCF-101 ",
|
| 1820 |
+
"text_level": 1,
|
| 1821 |
+
"bbox": [
|
| 1822 |
+
176,
|
| 1823 |
+
824,
|
| 1824 |
+
282,
|
| 1825 |
+
838
|
| 1826 |
+
],
|
| 1827 |
+
"page_idx": 13
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "text",
|
| 1831 |
+
"text": "UCF-101 (Soomro et al., 2012) is a dataset of 13,320 videos of human actions across 101 classes that has previously been used for video synthesis and prediction (Saito et al., 2017; Saito & Saito, 2018; Tulyakov et al., 2018). In this case, DVD-GAN is not conditioned on class labels to make our results comparable with prior work. This is achieved by setting the class labels of all input samples to 0. We report Inception Score (IS) calculated with a C3D network (Tran et al., 2015) ",
|
| 1832 |
+
"bbox": [
|
| 1833 |
+
174,
|
| 1834 |
+
853,
|
| 1835 |
+
825,
|
| 1836 |
+
924
|
| 1837 |
+
],
|
| 1838 |
+
"page_idx": 13
|
| 1839 |
+
},
|
| 1840 |
+
{
|
| 1841 |
+
"type": "image",
|
| 1842 |
+
"img_path": "images/c66d3fb6922fc73f34e3f6b3729820b31c64bc1e26c4f66335ba2d99192c76d3.jpg",
|
| 1843 |
+
"image_caption": [
|
| 1844 |
+
"Figure 10: The first frames of interpolations between UCF-101 samples. Each row is a separate interpolation. Contrast with samples in Appendix D.2. "
|
| 1845 |
+
],
|
| 1846 |
+
"image_footnote": [],
|
| 1847 |
+
"bbox": [
|
| 1848 |
+
174,
|
| 1849 |
+
101,
|
| 1850 |
+
823,
|
| 1851 |
+
243
|
| 1852 |
+
],
|
| 1853 |
+
"page_idx": 14
|
| 1854 |
+
},
|
| 1855 |
+
{
|
| 1856 |
+
"type": "text",
|
| 1857 |
+
"text": "for quantitative comparison with prior work.4 This evaluation is performed by re-scaling the video to $1 2 8 \\times 1 2 8$ , normalizing the input features based on mean statistics of the ground truth dataset, then taking a $1 1 2 \\times 1 1 2$ center crop and applying C3D. Our model produces samples with an IS of 27.38, significantly outperforming the state of the art (see Table 2). The DVD-GAN architecture on UCF-101 is identical to the model used for Kinetics, and is trained on 16-frame $1 2 8 \\times 1 2 8$ clips from UCF-101. ",
|
| 1858 |
+
"bbox": [
|
| 1859 |
+
174,
|
| 1860 |
+
310,
|
| 1861 |
+
825,
|
| 1862 |
+
393
|
| 1863 |
+
],
|
| 1864 |
+
"page_idx": 14
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"type": "text",
|
| 1868 |
+
"text": "The lack of class information does hurt the performance of DVD-GAN, and training on UCF-101 with class labels leads to an improved model with an Inception Score of 32.97. This is directly comparable to Conditional TGAN Saito et al. (2017) which achieved an IS of 15.83 and is close to the IS reported for the ground truth data ( 34.49). However we note than many more recent video generation papers do not test in this regime. It is worth mentioning that our improved score is, at least partially, due to memorization of the training data. In Figure 10 we show interpolation samples from our best UCF-101 model. Like interpolations in Appendix D.2, we sample 2 latents (left and rightmost columns) and show samples from the linear interpolation in latent space along each row. Here we show 4 such interpolations (the first frame from each video). Unlike Kinetics-600 interpolations, which smoothly transition from one sample to the other, we see abrupt jumps in the latent space between highly distinct samples, and little intra-video diversity between samples in each group. It can be further seen that some generated samples highly correlate with samples from the training set. ",
|
| 1869 |
+
"bbox": [
|
| 1870 |
+
173,
|
| 1871 |
+
401,
|
| 1872 |
+
825,
|
| 1873 |
+
580
|
| 1874 |
+
],
|
| 1875 |
+
"page_idx": 14
|
| 1876 |
+
},
|
| 1877 |
+
{
|
| 1878 |
+
"type": "text",
|
| 1879 |
+
"text": "We show this both as a failure of the Inception Score metric, the commonly reported value for classconditional video synthesis on UCF-101, but also as strong signal that UCF-101 is not a complex or diverse enough dataset to facilitate interesting video generation. Each class is relatively small, and reuse of clips from shared underlying videos means that the intra-class diversity can be restricted to just a handful of videos per class. This suggests the need for larger, more diverse and challenging datasets for generative video modelling, and we believe that Kinetics-600 provides a better benchmark for this task. ",
|
| 1880 |
+
"bbox": [
|
| 1881 |
+
174,
|
| 1882 |
+
588,
|
| 1883 |
+
825,
|
| 1884 |
+
685
|
| 1885 |
+
],
|
| 1886 |
+
"page_idx": 14
|
| 1887 |
+
},
|
| 1888 |
+
{
|
| 1889 |
+
"type": "text",
|
| 1890 |
+
"text": "C MISCELLANEOUS EXPERIMENTS ",
|
| 1891 |
+
"text_level": 1,
|
| 1892 |
+
"bbox": [
|
| 1893 |
+
174,
|
| 1894 |
+
707,
|
| 1895 |
+
480,
|
| 1896 |
+
723
|
| 1897 |
+
],
|
| 1898 |
+
"page_idx": 14
|
| 1899 |
+
},
|
| 1900 |
+
{
|
| 1901 |
+
"type": "text",
|
| 1902 |
+
"text": "Here we detail a number of modifications or miscellaneous results we experimented with which did not produce a conclusive result. ",
|
| 1903 |
+
"bbox": [
|
| 1904 |
+
174,
|
| 1905 |
+
739,
|
| 1906 |
+
823,
|
| 1907 |
+
767
|
| 1908 |
+
],
|
| 1909 |
+
"page_idx": 14
|
| 1910 |
+
},
|
| 1911 |
+
{
|
| 1912 |
+
"type": "text",
|
| 1913 |
+
"text": "• We experimented with several variations of normalization which do not require calculating statistics over a batch of data. Group Normalization (Wu & He, 2018) performed best, almost on a par with (but worse than) Batch Normalization. We further tried Layer Normalization (Lei Ba et al., 2016), Instance Normalization (Ulyanov et al., 2016), and no normalization, but found that these significantly underperformed Batch Normalization. ",
|
| 1914 |
+
"bbox": [
|
| 1915 |
+
215,
|
| 1916 |
+
781,
|
| 1917 |
+
823,
|
| 1918 |
+
851
|
| 1919 |
+
],
|
| 1920 |
+
"page_idx": 14
|
| 1921 |
+
},
|
| 1922 |
+
{
|
| 1923 |
+
"type": "text",
|
| 1924 |
+
"text": "• We found that removing the final Batch Normalization in $\\mathcal { G }$ , which occurs after the ResNet and before the final convolution, caused a catastrophic failure in learning. Interestingly, just removing the Batch Normalization layers within $\\mathcal { G }$ ’s residual blocks still led to good (though slightly worse) generative models. In particular, variants without Batch Normalization in the residual blocks often achieve significantly higher IS (up to 110.05 for $6 4 \\times 6 4 ~ 1 2$ frame samples – twice normal). But these models had substantially worse FID scores (1.22 for the aforementioned model) – and produced qualitatively worse video samples. ",
|
| 1925 |
+
"bbox": [
|
| 1926 |
+
214,
|
| 1927 |
+
857,
|
| 1928 |
+
821,
|
| 1929 |
+
886
|
| 1930 |
+
],
|
| 1931 |
+
"page_idx": 14
|
| 1932 |
+
},
|
| 1933 |
+
{
|
| 1934 |
+
"type": "text",
|
| 1935 |
+
"text": "",
|
| 1936 |
+
"bbox": [
|
| 1937 |
+
232,
|
| 1938 |
+
103,
|
| 1939 |
+
825,
|
| 1940 |
+
174
|
| 1941 |
+
],
|
| 1942 |
+
"page_idx": 15
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"type": "text",
|
| 1946 |
+
"text": "• Early variants of DVD-GAN contained Batch Normalization which normalized over all frames of all batch elements. This gave $\\mathcal { G }$ an extra channel to convey information across time. It took advantage of this, with the result being a model which required batch statistics in order to produce good samples. We found that the version which normalizes over timesteps independently worked just as well and without the dependence on statistics. ",
|
| 1947 |
+
"bbox": [
|
| 1948 |
+
217,
|
| 1949 |
+
314,
|
| 1950 |
+
825,
|
| 1951 |
+
385
|
| 1952 |
+
],
|
| 1953 |
+
"page_idx": 15
|
| 1954 |
+
},
|
| 1955 |
+
{
|
| 1956 |
+
"type": "text",
|
| 1957 |
+
"text": "• Models based on the residual blocks of BigGAN-deep trained faster (in wall clock time) but slower with regards to metrics, and struggled to reach the accuracy of models based on BigGAN’s residual blocks. ",
|
| 1958 |
+
"bbox": [
|
| 1959 |
+
217,
|
| 1960 |
+
526,
|
| 1961 |
+
825,
|
| 1962 |
+
568
|
| 1963 |
+
],
|
| 1964 |
+
"page_idx": 15
|
| 1965 |
+
},
|
| 1966 |
+
{
|
| 1967 |
+
"type": "text",
|
| 1968 |
+
"text": "D GENERATED SAMPLES ",
|
| 1969 |
+
"bbox": [
|
| 1970 |
+
174,
|
| 1971 |
+
743,
|
| 1972 |
+
398,
|
| 1973 |
+
758
|
| 1974 |
+
],
|
| 1975 |
+
"page_idx": 15
|
| 1976 |
+
},
|
| 1977 |
+
{
|
| 1978 |
+
"type": "text",
|
| 1979 |
+
"text": "It is difficult to accurately convey complicated generated video through still frames. Where provided, we recommend readers view the generated videos themselves via the provided links. We refer to videos within these batches by row/column number where the video in the 0th row and column is in the top left corner. ",
|
| 1980 |
+
"bbox": [
|
| 1981 |
+
174,
|
| 1982 |
+
867,
|
| 1983 |
+
825,
|
| 1984 |
+
922
|
| 1985 |
+
],
|
| 1986 |
+
"page_idx": 15
|
| 1987 |
+
},
|
| 1988 |
+
{
|
| 1989 |
+
"type": "text",
|
| 1990 |
+
"text": "D.1 SYNTHESIS SAMPLES ",
|
| 1991 |
+
"bbox": [
|
| 1992 |
+
174,
|
| 1993 |
+
103,
|
| 1994 |
+
369,
|
| 1995 |
+
118
|
| 1996 |
+
],
|
| 1997 |
+
"page_idx": 16
|
| 1998 |
+
},
|
| 1999 |
+
{
|
| 2000 |
+
"type": "image",
|
| 2001 |
+
"img_path": "images/94ff8771d2779ba74349cf5c682a7c411890625c34fccd663ccff2f8dadacbfc.jpg",
|
| 2002 |
+
"image_caption": [
|
| 2003 |
+
"Figure 11: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $6 4 \\times 6 4$ Kinetics-600. Full samples at https://drive.google.com/file/d/ 155F1lkHA5fMAd7k4W3CQvTsi1eKQDhGb/view?usp $^ { 1 = }$ sharing. "
|
| 2004 |
+
],
|
| 2005 |
+
"image_footnote": [],
|
| 2006 |
+
"bbox": [
|
| 2007 |
+
174,
|
| 2008 |
+
342,
|
| 2009 |
+
825,
|
| 2010 |
+
872
|
| 2011 |
+
],
|
| 2012 |
+
"page_idx": 16
|
| 2013 |
+
},
|
| 2014 |
+
{
|
| 2015 |
+
"type": "image",
|
| 2016 |
+
"img_path": "images/ba4ac0ed5a88b2078f70859d40fd357a2be1a1ebc52c488c347b482e7845eb98.jpg",
|
| 2017 |
+
"image_caption": [
|
| 2018 |
+
"Figure 12: The first frames from a random batch of samples from DVD-GAN trained on 48 frames of $6 4 \\times 6 4$ Kinetics-600. Full samples at https://drive.google.com/file/d/ 1FjOQYdUuxPXvS8yeOhXdPQMapUQaklLi/view?usp $^ { 1 = }$ sharing. "
|
| 2019 |
+
],
|
| 2020 |
+
"image_footnote": [],
|
| 2021 |
+
"bbox": [
|
| 2022 |
+
174,
|
| 2023 |
+
101,
|
| 2024 |
+
823,
|
| 2025 |
+
648
|
| 2026 |
+
],
|
| 2027 |
+
"page_idx": 17
|
| 2028 |
+
},
|
| 2029 |
+
{
|
| 2030 |
+
"type": "image",
|
| 2031 |
+
"img_path": "images/b955570d7e0b96214e40ad222dd8865698a3a930c1eac584e86f5182deb65aca.jpg",
|
| 2032 |
+
"image_caption": [
|
| 2033 |
+
"Figure 13: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $1 2 8 \\times 1 2 8$ Kinetics-600. Full samples at https://drive.google.com/file/ d/165Yxuvvu3viOy-39LhhSDGtczbWphj_i/view?usp $\\mid =$ sharing "
|
| 2034 |
+
],
|
| 2035 |
+
"image_footnote": [],
|
| 2036 |
+
"bbox": [
|
| 2037 |
+
174,
|
| 2038 |
+
101,
|
| 2039 |
+
823,
|
| 2040 |
+
661
|
| 2041 |
+
],
|
| 2042 |
+
"page_idx": 18
|
| 2043 |
+
},
|
| 2044 |
+
{
|
| 2045 |
+
"type": "image",
|
| 2046 |
+
"img_path": "images/d7bf35390195b9b19ead1dbb085b7bb784ca5644655d4df1fd3f9e784d2c1c8e.jpg",
|
| 2047 |
+
"image_caption": [
|
| 2048 |
+
"Figure 14: The first frames from a random batch of samples from DVD-GAN trained on 48 frames of $1 2 8 \\times 1 2 8$ Kinetics-600. Full samples at https://drive.google.com/file/ d/1P8SsWEGP6tEGPPNPH-iVycOlN6vpIgE8/view?usp $\\mid =$ sharing. The sample in row 1, column 5 is a stereotypical example of a degenerate sample occasionally produced by DVD-GAN. "
|
| 2049 |
+
],
|
| 2050 |
+
"image_footnote": [],
|
| 2051 |
+
"bbox": [
|
| 2052 |
+
174,
|
| 2053 |
+
102,
|
| 2054 |
+
820,
|
| 2055 |
+
603
|
| 2056 |
+
],
|
| 2057 |
+
"page_idx": 19
|
| 2058 |
+
},
|
| 2059 |
+
{
|
| 2060 |
+
"type": "image",
|
| 2061 |
+
"img_path": "images/1c617b1d9318ce41a070702225dab76601a5204b981f05962fe6381dad922e97.jpg",
|
| 2062 |
+
"image_caption": [
|
| 2063 |
+
"Figure 15: The first frames from a random batch of samples from DVD-GAN trained on 12 frames of $2 5 6 \\times 2 5 6$ Kinetics-600. Full samples at https://drive.google.com/file/ d/1RGRVKCpVaG8z3p9GBCamRk4apiIR7jUc/view?usp $^ { 1 = }$ sharing. "
|
| 2064 |
+
],
|
| 2065 |
+
"image_footnote": [],
|
| 2066 |
+
"bbox": [
|
| 2067 |
+
174,
|
| 2068 |
+
102,
|
| 2069 |
+
823,
|
| 2070 |
+
604
|
| 2071 |
+
],
|
| 2072 |
+
"page_idx": 20
|
| 2073 |
+
},
|
| 2074 |
+
{
|
| 2075 |
+
"type": "image",
|
| 2076 |
+
"img_path": "images/91b71faf533db6ba61443412baec9781b80a516fa2acfefdc635e2f55ea46d31.jpg",
|
| 2077 |
+
"image_caption": [
|
| 2078 |
+
"Figure 16: The first frames from a random batch of samples from DVD-GAN trained on UCF-101. Full samples at https://drive.google.com/file/d/ 1VVLF3bQLyfKtIiSxaKWKq5qFRHmv5EVW/view?usp $^ { 1 = }$ sharing. "
|
| 2079 |
+
],
|
| 2080 |
+
"image_footnote": [],
|
| 2081 |
+
"bbox": [
|
| 2082 |
+
174,
|
| 2083 |
+
101,
|
| 2084 |
+
825,
|
| 2085 |
+
650
|
| 2086 |
+
],
|
| 2087 |
+
"page_idx": 21
|
| 2088 |
+
},
|
| 2089 |
+
{
|
| 2090 |
+
"type": "text",
|
| 2091 |
+
"text": "D.2 INTERPOLATION SAMPLES",
|
| 2092 |
+
"text_level": 1,
|
| 2093 |
+
"bbox": [
|
| 2094 |
+
174,
|
| 2095 |
+
757,
|
| 2096 |
+
401,
|
| 2097 |
+
771
|
| 2098 |
+
],
|
| 2099 |
+
"page_idx": 21
|
| 2100 |
+
},
|
| 2101 |
+
{
|
| 2102 |
+
"type": "text",
|
| 2103 |
+
"text": "We expect $\\mathcal { G }$ to produce samples of higher quality from latents near the mean of the distribution (zero). This is the idea behind the Truncation Trick (Brock et al., 2019). Like BigGAN, we find that DVD-GAN is amenable to truncation. We also experiment with interpolations in the latent space and in the class embedding. In both cases, interpolations are evidence that $\\mathcal { G }$ has learned a relatively smooth mapping from the latent space to real videos: this would be impossible for a network that has only memorized the training data, or which is only capable of generating a few exemplars per class. Note that while all latent vectors along an interpolation are valid (and therefore $\\mathcal { G }$ should produce a reasonable sample), at no point during training is $\\mathcal { G }$ asked to generate a sample halfway between two classes. Nevertheless $\\mathcal { G }$ is able to interpolate between even very distinct classes. ",
|
| 2104 |
+
"bbox": [
|
| 2105 |
+
173,
|
| 2106 |
+
797,
|
| 2107 |
+
825,
|
| 2108 |
+
924
|
| 2109 |
+
],
|
| 2110 |
+
"page_idx": 21
|
| 2111 |
+
},
|
| 2112 |
+
{
|
| 2113 |
+
"type": "image",
|
| 2114 |
+
"img_path": "images/f318244709131bb46a8a172452daa8bb6c9d396662f3498e437390bf38aee8e1.jpg",
|
| 2115 |
+
"image_caption": [
|
| 2116 |
+
"Figure 17: An example intra-class interpolation. Each column is a separate video (the vertical axis is the time dimension). The left and rightmost columns are randomly sampled latent vectors and are generated under a shared class. Columns in between represent videos generated under the same class across the linear interpolation between the two random samples. Note the smooth transition between videos at all six timesteps displayed here. "
|
| 2117 |
+
],
|
| 2118 |
+
"image_footnote": [],
|
| 2119 |
+
"bbox": [
|
| 2120 |
+
174,
|
| 2121 |
+
102,
|
| 2122 |
+
823,
|
| 2123 |
+
287
|
| 2124 |
+
],
|
| 2125 |
+
"page_idx": 22
|
| 2126 |
+
},
|
| 2127 |
+
{
|
| 2128 |
+
"type": "image",
|
| 2129 |
+
"img_path": "images/046de18f772d7dd241b13bc673a77bf8afc09dfd94c3ce1faa2cf5ef6578aed4.jpg",
|
| 2130 |
+
"image_caption": [
|
| 2131 |
+
"Figure 18: An example of class interpolation. As before, each column is a sequence of timesteps of a single video. Here, we sample a single latent vector, and the left and rightmost columns represent generating a video of that latent under two different classes. Columns in between represent videos of that same latent generated across an interpolation of the class embedding. Even though at no point has DVD-GAN been trained on data under an interpolated class, it nevertheless produces reasonable samples. "
|
| 2132 |
+
],
|
| 2133 |
+
"image_footnote": [],
|
| 2134 |
+
"bbox": [
|
| 2135 |
+
174,
|
| 2136 |
+
383,
|
| 2137 |
+
823,
|
| 2138 |
+
571
|
| 2139 |
+
],
|
| 2140 |
+
"page_idx": 22
|
| 2141 |
+
}
|
| 2142 |
+
]
|
parse/train/Byx91R4twB/Byx91R4twB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Byx91R4twB/Byx91R4twB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyesB2RqFQ/HyesB2RqFQ.md
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BRIDGING HMMS AND RNNS THROUGH ARCHITECTURAL TRANSFORMATIONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
A distinct commonality between HMMs and RNNs is that they both learn hidden representations for sequential data. In addition, it has been noted that the backward computation of the Baum-Welch algorithm for HMMs is a special case of the back-propagation algorithm used for neural networks (Eisner (2016)). Do these observations suggest that, despite their many apparent differences, HMMs are a special case of RNNs? In this paper, we investigate a series of architectural transformations between HMMs and RNNs, both through theoretical derivations and empirical hybridization, to answer this question. In particular, we investigate three key design factors—independence assumptions between the hidden states and the observation, the placement of softmax, and the use of non-linearity—in order to pin down their empirical effects. We present a comprehensive empirical study to provide insights on the interplay between expressivity and interpretability with respect to language modeling and parts-of-speech induction.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Sequence is a common structure among many forms of naturally occurring data, including speech, text, video, and DNA. As such, sequence modeling has long been a core research problem across several fields of machine learning and AI. By far the most widely used approach for decades is the Hidden Markov Models of Baum & Eagon (1967); Jelinek et al. (1975), which assumes a sequence of discrete latent variables to generate a sequence of observed variables. When the latent variables are unobserved, unsupervised training of HMMs can be performed via the Baum-Welch algorithm (which, in turn, is based on the forward-backward algorithm), as a special case of ExpectationMaximization (EM) (Dempster et al. (1977)). Importantly, the discrete nature of the latent variables has the benefit of interpretability, as they recover contextual clustering of the output variables.
|
| 12 |
+
|
| 13 |
+
In contrast, Recurrent Neural Networks (RNNs), introduced later in the form of Jordan (1986) and Elman (1990) networks, assume continuous latent representations. Notably, unlike the hidden states of HMMs, there is no probabilistic interpretation of the hidden states of RNNs, regardless of their many different architectural variants (e.g. LSTMs of Hochreiter & Schmidhuber (1997), GRUs of Cho et al. (2014) and RANs of Lee et al. (2017)).
|
| 14 |
+
|
| 15 |
+
Despite their many apparent differences, both HMMs and RNNs model hidden representations for sequential data. At the heart of both models are: a state at time $t$ , a transition function $f : h _ { t - 1 } \to h _ { t }$ in latent space, and an emission function $g \ : \ h _ { t } \ \to \ x _ { t }$ . In addition, it has been noted that the backward computation in the Baum-Welch algorithm is a special case of back-propagation for neural networks (Eisner (2016)). Therefore, a natural question arises as to the fundamental relationship between HMMs and RNNs. Might HMMs be a special case of RNNs?
|
| 16 |
+
|
| 17 |
+
In this paper, we investigate a series of architectural transformations between HMMs and RNNs— both through theoretical derivations and empirical hybridization. In particular, we demonstrate that the forward marginal inference for an HMM—accumulating forward probabilities to compute the marginal emission and hidden state distributions at each time step—can be reformulated as equations for computing an RNN cell. In addition, we investigate three key design factors—independence assumptions between the hidden states and the observation, the placement of soft- max, and the use of non-linearity—in order to pin down their empirical effects.
|
| 18 |
+
|
| 19 |
+
Trans/Emit:
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Above each of the models we indicate the type of transition and emission cells used. H for HMM, R for RNN/Elman and F is a novel Fusion defined in $\ S 3 . 3$ . It is particularly important to understanding this work to track when a vector is a distribution (resides in a simplex) versus in the unit cube (e.g. after a sigmoid non-linearity). These cases are indicated by $\boldsymbol { \hat { \mathbf { \mathit { c } } } } _ { i }$ and $\mathrm { \ddot { ‰} }$ , respectively.
|
| 23 |
+
|
| 24 |
+
Our work is supported by several earlier works such as Wessels & Omlin (2000) and $\mathrm { W u }$ et al. (2016) that have also noted the connection between RNNs and HMMs (see $^ { \ S 7 }$ for more detailed discussion). Our contribution is to provide the first thorough theoretical investigation into the model variants, carefully controlling for every design choices, along with comprehensive empirical analysis over the spectrum of possible hybridization between HMMs and RNNs.
|
| 25 |
+
|
| 26 |
+
We find that the key elements to better performance of the HMMs are the use of a sigmoid instead of softmax linearity in the recurrent cell, and the use of an unnormalized output distribution matrix in the emission computation. On the other hand, multiplicative integration of the previous hidden state and input embedding, and intermediate normalizations in the cell computation are less consequential. We also find that HMM outperforms other RNNs variants for unsupervised prediction of the next POS tag, demonstrating the advantages of discrete bottlenecks for increased interpretability.
|
| 27 |
+
|
| 28 |
+
The rest of the paper is structured as follows. First, we present in §2 the derivation of HMM marginal inference as a special case of RNN computation. Next in $\ S 3$ , we explore a gradual transformation of HMMs into RNNs. In $\ S 4$ , we present the reverse transformation of Elman RNNs back to HMMs. Finally, building on these continua, we provide empirical analysis in $\ S 5$ and $\ S 6$ to pin point the empirical effects of varying design choices over the possible hybridization between HMMs and RNNs. We discuss related work in $^ { \ S 7 }$ and conclude in $\ S 8$ .
|
| 29 |
+
|
| 30 |
+
# 2 FORMULATING HMMS AS RECURRENT NEURAL NETWORKS
|
| 31 |
+
|
| 32 |
+
We start by defining HMMs as sequence models, together with the forward-backward algorithm which is used for inference. Then we show that, by rewriting the forward algorithm, the computation can be viewed as updating a hidden state at each time step by feeding the previous word prediction, and then computing the next word distribution, similar to the way RNNs are structured. The resulting architecture corresponds to the first cell in Figure 1.
|
| 33 |
+
|
| 34 |
+
# 2.1 MODEL DEFINITION
|
| 35 |
+
|
| 36 |
+
Let $\mathbf { x } ^ { ( 1 : n ) } = \{ \mathbf { x } ^ { ( 1 ) } , \ldots , \mathbf { x } ^ { ( n ) } \}$ be a sequence of random variables, where each $\mathbf { X }$ is drawn from a vocabulary $\mathbb { V }$ of size $v$ , and an instance $\mathbf { X }$ is represented as an integer $w$ or a one-hot vector ${ e ^ { ( w ) } }$ , where $w$ corresponds to an index in $\mathbb { V }$ . 1 We also define a corresponding sequence of hidden variables $\mathbf { h } ^ { ( 1 : n ) } = \{ \mathbf { h } ^ { ( 1 ) } , \ldots , \mathbf { h } ^ { ( n ) } \}$ , where $\mathtt { h } \in \{ 1 , 2 , \dots m \}$ . The distribution $P ( \mathbf { x } )$ is defined by
|
| 37 |
+
|
| 38 |
+
marginalizing over $\mathbf { h }$ , and factorizes as follows:
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
P ( \mathbf { x } ) = \sum _ { \mathbf { h } } P ( \mathbf { x } , \mathbf { h } ) = \sum _ { \mathbf { h } } P ( \mathbf { h } ^ { ( 1 ) } ) p ( \mathbf { x } ^ { ( 1 ) } | \mathbf { h } ^ { ( 1 ) } ) \prod _ { i = 2 } ^ { n } P ( \mathbf { h } ^ { ( i ) } | \mathbf { h } ^ { ( i - 1 ) } ) P ( \mathbf { x } ^ { ( i ) } | \mathbf { h } ^ { ( i ) } )
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
We define the hidden state distribution, referred to as the transition distribution, as
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
\begin{array} { r l } & { P ( \mathrm { h } ^ { ( i ) } | \mathrm { h } ^ { ( i - 1 ) } = l ) = \mathrm { s o f t m a x } ( W _ { l , : } + b ) , W \in \mathbb R ^ { m \times m } , \boldsymbol { b } \in \mathbb R ^ { m } } \\ & { \qquad P ( \mathrm { h } ^ { ( 1 ) } ) = \mathrm { s o f t m a x } ( \displaystyle \sum _ { l } W _ { l , : } ^ { \top } + b ) , } \end{array}
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
and the emission (output) distribution as
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
p ( \mathbf { x } ^ { ( i ) } | \mathbf { h } ^ { ( i ) } = k ) = \mathrm { s o f t m a x } ( \mathbf { { E } } _ { k , : } + d ) , E \in \mathbb { R } ^ { m \times v } , d \in \mathbb { R } ^ { v } .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
# 2.2 INFERENCE
|
| 57 |
+
|
| 58 |
+
Inference for HMMs (marginalizing over the hidden states to compute the observed sequence probabilities) is performed with the forward-backward algorithm. The backward algorithm is equivalent to automatically differentiating the forward algorithm Eisner (2016). Therefore, while traditional HMM implementations had to implement both the forward and backward algorithm, and train the model with the EM algorithm, we only implement the forward algorithm in standard deep learning software, and perform end-to-end minibatched SGD training, efficiently parallelized on the GPU.
|
| 59 |
+
|
| 60 |
+
Let $\pmb { w } = \{ w ^ { ( 1 ) } , \dots , w ^ { ( n ) } \}$ be the observed sequence, and $\mathbf { \Delta } _ { w } ( i )$ the one-hot representation of $w ^ { ( i ) }$ The forward probabilities $\textbf { \em a }$ are defined recurrently (i.e., sequentially recursively) as
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { l } { { \displaystyle a _ { k } ^ { ( i ) } = P ( { \bf h } ^ { ( i ) } = k , { \bf x } ^ { ( 1 : i ) } = w ^ { ( 1 : i ) } ) } , \ ~ } \\ { { \displaystyle ~ = P ( { \bf x } ^ { ( i ) } = w ^ { ( i ) } | { \bf h } ^ { ( i ) } = k ) \sum _ { l = 1 } ^ { m } a _ { l } ^ { ( i - 1 ) } P ( { \bf h } ^ { ( i ) } = k | { \bf h } ^ { ( i - 1 ) } = l ) } . } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
This can be rewritten by defining
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\begin{array} { r l } & { \mathbf { \boldsymbol { \mathsf { c } } } ^ { ( i ) } = P ( \mathsf { h } ^ { ( i ) } | \mathbf { \boldsymbol { \mathsf { x } } } ^ { ( 1 : i - 1 ) } = \boldsymbol { \mathsf { \pmb { w } } } ^ { ( 1 : i - 1 ) } ) , } \\ & { \mathbf { \boldsymbol { \mathsf { s } } } ^ { ( i ) } = P ( \mathsf { h } ^ { ( i ) } | \mathbf { \boldsymbol { \mathsf { x } } } ^ { ( 1 : i ) } = \boldsymbol { \mathsf { w } } ^ { ( 1 : i ) } ) , } \\ & { \mathbf { \boldsymbol { \mathsf { x } } } ^ { ( i ) } = P ( \mathbf { \boldsymbol { \mathsf { x } } } ^ { ( i ) } = \boldsymbol { \mathsf { w } } ^ { ( i ) } | \mathbf { \boldsymbol { \mathsf { x } } } ^ { ( 1 : i - 1 ) } = \boldsymbol { \mathsf { w } } ^ { ( 1 : i ) } ) , } \end{array}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
and substituting $\textbf { \em a }$ , so that equation 6 is rewritten as (left below) or if expressed directly in terms of the parameters used to define the distributions with vectorized computations (right below):
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r l r l } & { c _ { k } ^ { ( i ) } = \displaystyle \sum _ { l = 1 } ^ { m } s _ { l } ^ { ( i - 1 ) } P ( { \bf h } ^ { ( i ) } = k | { \bf h } ^ { ( i - 1 ) } = l ) , \quad } & & { c ^ { ( i ) } = \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( W ) ^ { \top } s ^ { ( i - 1 ) } , } \\ & { } & & \\ & { } & & { e ^ { ( i ) } = \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( E ) { \pmb w } ^ { ( i ) } , } \\ & { x ^ { ( i ) } = \displaystyle \sum _ { k = 1 } ^ { m } P ( { \bf x } ^ { ( i ) } = w ^ { ( i ) } | { \bf h } ^ { ( i ) } = k ) c _ { k } ^ { ( i ) } , \quad } & & { x ^ { ( i ) } = e ^ { ( i ) ^ { \top } } c ^ { ( i ) } , } \\ & { } & & \\ & { s _ { k } ^ { ( i ) } = \displaystyle \frac { 1 } { x ^ { ( i ) } } P ( { \bf x } ^ { ( i ) } = w ^ { ( i ) } | { \bf h } ^ { ( i ) } = k ) c _ { k } ^ { ( i ) } . \quad } & & { s ^ { ( i ) } = \displaystyle \frac { 1 } { x ^ { ( i ) } } e ^ { ( i ) } \circ c ^ { ( i ) } . } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
Here $\mathbf { \Delta } _ { w } ( i )$ used as a one-hot vector, and the bias vectors $^ { b }$ and $^ d$ are omitted for clarity. Note that the computation of $\mathbf { \boldsymbol { s } } ^ { ( i ) }$ can be delayed until time step $i + 1$ . The computation step can therefore be
|
| 79 |
+
|
| 80 |
+
rewritten to let $^ c$ be the recurrent vector (equivalent logspace formulations presented on the right): 2
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\begin{array} { r l r l } & { e ^ { ( i - 1 ) } = \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( E ) w ^ { ( i - 1 ) } , } & & { = \mathrm { l o g s o f t m a x } _ { \mathrm { r o w s } } ( E ) w ^ { ( i - 1 ) } , } \\ & { s ^ { ( i - 1 ) } = \mathrm { n o r m a l i z e } ( e ^ { ( i - 1 ) } \circ c ^ { ( i - 1 ) } ) , } & & { = \mathrm { s o f t m a x } ( e ^ { ( i - 1 ) } + c ^ { ( i - 1 ) } ) , } \\ & { \pmb { c } ^ { ( i ) } = \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( W ) ^ { \top } \pmb { s } ^ { ( i - 1 ) } , } & & { = \mathrm { l o g } ( \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( W ) ^ { \top } \pmb { s } ^ { ( i - 1 ) } ) , } \\ & { e ^ { ( i ) } = \mathrm { s o f t m a x } _ { \mathrm { r o w s } } ( E ) \pmb { w } ^ { ( i ) } , } & & { = \mathrm { l o g s o f t m a x } _ { \mathrm { r o w s } } ( E ) \pmb { w } ^ { ( i ) } , } \\ & { \pmb { x } ^ { ( i ) } = e ^ { ( i ) ^ { \top } } \pmb { c } ^ { ( i ) } , } & & { = \mathrm { l o g s u m e x p } ( e ^ { ( i ) } + c ^ { ( i ) } ) . } \end{array}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
This can be viewed as a step of a recurrent neural network with tied input and output embeddings: Equation 14 embeds the previous prediction, equations 15 and 16, the transition step, updates the hidden state $^ c$ , corresponding to the cell of a RNN, and equations 17 and 18, the emission step, computes the output next word probability.
|
| 87 |
+
|
| 88 |
+
We can now compare this formulation against the definition of a Elman RNN with tied embeddings and a sigmoid non-linearity. These equations correspond to the first and last cells in Figure 1. The Elman RNN has the same parameters, except for an additional input matrix $U \in \mathbb { R } ^ { m \times m }$ .
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\begin{array} { l } { { \pmb { c } } ^ { ( i ) } = \sigma ( { \pmb { W } } { \pmb { c } } ^ { ( i - 1 ) } + { \pmb { U } } { \pmb { e } } ^ { ( i - 1 ) } ) , } \\ { { \pmb { x } } ^ { ( i ) } = \mathrm { s o f t m a x } ( { \pmb { E } } { \pmb { c } } ^ { ( i ) } ) { \pmb { w } } ^ { ( i ) } . } \end{array}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
# 3 TRANSFORMING AN HMM TOWARDS AN RNN
|
| 95 |
+
|
| 96 |
+
Having established the relation between HMMs and RNNs, we propose a number of models that we hypothesize have intermediate expressiveness between HMMs and RNNs. The architecture transformations can be seen in the first 3 cells in Figure 1. We will evaluate these model variants empirically, and also investigate their interpretability.
|
| 97 |
+
|
| 98 |
+
# 3.1 CONDITIONING TRANSITION PROBABILITY ON PREVIOUS WORD
|
| 99 |
+
|
| 100 |
+
By relaxing the independence assumption of the HMM transition probability distribution we can increase the expressiveness of the HMM “cell” by modelling more complex interactions between the fed word and the hidden state.
|
| 101 |
+
|
| 102 |
+
# Tensor-based feeding:
|
| 103 |
+
|
| 104 |
+
Following Tran et al. (2016) we define the transition distribution as
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
P ( \mathbf { h } ^ { ( i ) } | \mathbf { h } ^ { ( i - 1 ) } = l , \mathbf { x } ^ { ( i - 1 ) } = w ) = \mathrm { s o f t m a x } ( \pmb { W } _ { l , : } e ^ { ( i - 1 ) } + \pmb { B } _ { l , : } ) ,
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\pmb { \mathsf { W } } \in \mathbb { R } ^ { m \times m \times m } , \pmb { B } \in \mathbb { R } ^ { m \times m }$
|
| 111 |
+
|
| 112 |
+
# Addition-based feeding:
|
| 113 |
+
|
| 114 |
+
As the tensor-based methods increases the number of parameters considerably, we also propose an additive version:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
P ( \mathbf { h } ^ { ( i ) } | \mathbf { h } ^ { ( i - 1 ) } = l , \mathbf { x } ^ { ( i - 1 ) } = w ) = \mathrm { s o f t m a x } ( W _ { l , : } + U e ^ { ( i - 1 ) } + b ) ,
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where $W \in \mathbb { R } ^ { m \times m } , U \in \mathbb { R } ^ { m \times m } , b \in \mathbb { R } ^ { m }$
|
| 121 |
+
|
| 122 |
+
# Gating-based feeding:
|
| 123 |
+
|
| 124 |
+
Finally we propose a more expressive model where interaction is controlled via a gating mechanism and the feeding step uses unnormalized embeddings (this does not violate the HMM factorization):
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\begin{array} { c } { e ^ { ' ( i - 1 ) } = E \pmb { w } ^ { ( i - 1 ) } , } \\ { \pmb { f } ^ { i } = \sigma ( U e ^ { ' ( i - 1 ) } + \pmb { b } ) , } \\ { P ( \mathbf { h } ^ { ( i ) } | \mathbf { h } ^ { ( i - 1 ) } = l , \mathbf { x } ^ { ( i - 1 ) } = w ) = \mathrm { s o f t m a x } ( W _ { l , : } \circ \pmb { f } ^ { ( i ) } ) , } \end{array}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $U \in \mathbb { R } ^ { m \times m } , \boldsymbol { b } \in \mathbb { R } ^ { m } , W \in \mathbb { R } ^ { m \times m }$
|
| 131 |
+
|
| 132 |
+
# 3.2 DELAYED SOFTMAXES
|
| 133 |
+
|
| 134 |
+
Another way to make HMMs more expressive is to relax their independence assumptions through delaying when vectors are normalized to probability distributions by applying the softmax function.
|
| 135 |
+
|
| 136 |
+
# Delayed transition softmax
|
| 137 |
+
|
| 138 |
+
The computation of the recurrent vector $\pmb { c } ^ { ( i ) } = P ( \mathbf { h } ^ { ( i ) } | \mathbf { x } ^ { ( 1 : i - 1 ) } )$ is replaced with
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\pmb { c } ^ { ( i ) } = \mathrm { s o f t m a x } ( \pmb { W } \pmb { s } ^ { ( i - 1 ) } ) .
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
Both $^ c$ and $\pmb { s }$ are still valid probability distributions, but the independence assumption in the distribution over $\mathrm { h } ^ { ( i ) }$ no longer holds.
|
| 145 |
+
|
| 146 |
+
# Delayed emission softmax
|
| 147 |
+
|
| 148 |
+
A further transformation is to delay the emission softmax until after multiplication with the hidden vector. This effectively replaces the HMM’s emission computation with that of the RNN:
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\boldsymbol { x } ^ { ( i ) } = \mathrm { s o f t m a x } ( E \boldsymbol { c } ^ { ( i ) } ) \boldsymbol { w } ^ { ( i ) } .
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
This formulation breaks the independence assumption that the output distribution is only conditioned on the hidden state assignment. Instead it can be viewed as taking the expectation over the (unnormalized) embeddings with respect to the state distribution $^ c$ , then softmaxed $\mathbf { H } \mathbf { R }$ in Fig 1).
|
| 155 |
+
|
| 156 |
+
# 3.3 SIGMOID NON-LINEARITY
|
| 157 |
+
|
| 158 |
+
We can go further towards RNNs and replace the softmax in the transition by a sigmoid non-linearity. The sigmoid is placed in the same position as the delayed softmax. The recurrent state $^ c$ is no longer a distribution so the output has to be renormalized so the emission still computes a distribution:
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\begin{array} { l } { { \pmb { c } } ^ { ( i ) } = \mathrm { s i g m o i d } ( { \pmb { W } } { \pmb { s } } ^ { ( i - 1 ) } ) , } \\ { { \pmb { x } } ^ { ( i ) } = { \pmb { e } } ^ { ( i ) ^ { \top } } \mathrm { n o r m a l i z e } ( { \pmb { c } } ^ { ( i ) } ) . } \end{array}
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
This model could also be combined with a delayed emission softmax - which we’ll see makes it closer to an Elman RNN. This model is indicated as $\mathbf { F }$ for fusion in Figure 1
|
| 165 |
+
|
| 166 |
+
# 4 TRANSFORMING AN RNN TOWARDS AN HMM
|
| 167 |
+
|
| 168 |
+
Analogously to making the HMM more similar to Elman RNNs, we can make Elman networks more similar to HMMs. Examples of these transformations can be seen in the last 2 cells in Figure 1.
|
| 169 |
+
|
| 170 |
+
# 4.1 HMM EMISSION
|
| 171 |
+
|
| 172 |
+
First, we use the Elman cell with an HMM emission. This requires the hidden state be a distribution, thus we consider two options. One is to replace the sigmoid non-linearity with the softmax function:
|
| 173 |
+
|
| 174 |
+
$$
|
| 175 |
+
\begin{array} { r l } & { \pmb { c } ^ { ( i ) } = \mathrm { s o f t m a x } ( \pmb { W } \pmb { c } ^ { ( i - 1 ) } + \pmb { U } \pmb { e } ^ { ( i - 1 ) } ) } \\ & { \pmb { x } ^ { ( i ) } = ( \mathrm { s o f t m a x } ( \pmb { E } ) \pmb { w } ^ { ( i ) } ) ^ { \top } \pmb { c } ^ { ( i ) } . } \end{array}
|
| 176 |
+
$$
|
| 177 |
+
|
| 178 |
+
This model is depicted as $\textbf { R H }$ in Figure 1. The second formulation is to keep the sigmoid nonlinearity, but normalize the hidden state output in the emission computation:
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\begin{array} { r l } & { \pmb { c } ^ { ( i ) } = \sigma ( \pmb { W } \pmb { c } ^ { ( i - 1 ) } + \pmb { U } \pmb { e } ^ { ( i - 1 ) } ) } \\ & { \pmb { x } ^ { ( i ) } = ( \mathrm { s o f t m a x } ( \pmb { E } ) \pmb { w } ^ { ( i ) } ) ^ { \top } \mathrm { n o r m a l i z e } ( \pmb { c } ^ { ( i ) } ) . } \end{array}
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
# 4.2 MULTIPLICATIVE INTEGRATION
|
| 185 |
+
|
| 186 |
+
In the HMM cell, the integration of the previous recurrent state and the input embedding is modelled through an element-wise product instead of adding affine transformations of the two vectors. We can modify the Elman cell to do a similar multiplicative integration:3
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
\pmb { c } ^ { ( i ) } = \sigma ( ( W \pmb { c } ^ { ( i - 1 ) } ) \circ ( U \pmb { e } ^ { ( i - 1 ) } ) ) )
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
Or, using a single transformation matrix:
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
\pmb { c } ^ { ( i ) } = \sigma ( \pmb { W } ( \pmb { c } ^ { ( i - 1 ) } \circ e ^ { ( i - 1 ) } ) )
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
# 4.3 SOFTMAX NON-LINEARITY
|
| 199 |
+
|
| 200 |
+
Finally, and most extreme, we experiment with replacing the sigmoid non-linearity with a softmax:
|
| 201 |
+
|
| 202 |
+
$$
|
| 203 |
+
\pmb { c } ^ { ( i ) } = \mathrm { s o f t m a x } ( \pmb { W } \pmb { c } ^ { ( i - 1 ) } + \pmb { U } \pmb { e } ^ { ( i - 1 ) } )
|
| 204 |
+
$$
|
| 205 |
+
|
| 206 |
+
And a more flexible variant, where the softmax is applied only to compute the emission distribution, while the sigmoid non-linearity is still applied to recurrent state:
|
| 207 |
+
|
| 208 |
+
$$
|
| 209 |
+
\begin{array} { r l } & { \pmb { c } ^ { ( i ) } = ( \pmb { W \sigma } ( \pmb { c } ^ { ( i - 1 ) } ) + \pmb { U e } ^ { ( i - 1 ) } ) } \\ & { \pmb { x } ^ { ( i ) } = \mathrm { s o f t m a x } ( \pmb { E } \mathrm { s o f t m a x } ( \pmb { c } ^ { ( i ) } ) \pmb { w } ^ { ( i ) } ) . } \end{array}
|
| 210 |
+
$$
|
| 211 |
+
|
| 212 |
+
# 5 LANGUAGE MODELING EXPERIMENTS
|
| 213 |
+
|
| 214 |
+
Our formulations investigate a series of small architectural changes to HMMs and Elman cells. In particular, these changes raise questions about the expressivity and importance of (1) normalization within the recurrence and (2) independence assumptions during emission. In this section, we analyze the effects of these changes quantitatively via a standard language modeling benchmark.
|
| 215 |
+
|
| 216 |
+
# 5.1 SETUP
|
| 217 |
+
|
| 218 |
+
We follow the standard PTB language modeling setup Chelba & Jelinek (1998); Mikolov et al. (2011). We work with one-layer models to enable a direct comparison between RNNs and HMMs and a budget of 10 million parameters (typically corresponding to hidden state sizes of around 900). Models are trained with batched backpropagation through time (35 steps). Input and output embeddings are tied in all models.
|
| 219 |
+
|
| 220 |
+
Models are optimized with a grid search over optimizer parameters for two strategies: $\mathrm { S G D ^ { 4 } }$ and AMSProp. AMSProp is based on the optimization setup proposed by Melis et al. (2017).5
|
| 221 |
+
|
| 222 |
+
# 5.2 RESULTS
|
| 223 |
+
|
| 224 |
+
We see from the results in Table 1 (also depicted in Figure 2) that the HMM models perform significantly worse than the Elman network, as expected. Interestingly, many of the HMM variants that in principle have more expressivity or weaker independence assumptions do not perform better than the vanilla HMM. This includes delaying the transition or emission softmax, and most of the feeding models. The exception is the gated feeding model, which does substantially better, showing that Table 2gating is an effective way of incorporating more context into the transition matrix. Using a sigmoid Perplexity PTB UPOSnon-linearity before the output of the HMM cell (instead of a softmax) does improve performance (by $4 4 \mathrm { p p l } $ 288.15 45.16 61.66), and combining that with delaying the emission softmax gives a substantial improvement (almost another $1 0 0 \mathrm { p p l }$ 142.31 42.09 52.41), making it much closer to some of the RNN variants.
|
| 225 |
+
|
| 226 |
+
Table 1: Language Modeling Perplexity for our baseline and transformed models.5 4 284.59 225.366 5 287 207.95
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Model</td><td>dev ppl</td><td>Model</td><td>dev ppl</td></tr><tr><td>HMM</td><td></td><td>Elman</td><td></td></tr><tr><td></td><td>284.59</td><td>-softmax,HMMemission</td><td>313.84</td></tr><tr><td>- Tensor feeding</td><td>288.15</td><td>-HMM emission</td><td>312.63</td></tr><tr><td>- Addition feeding</td><td>288.62</td><td>- softmax non-linearity</td><td>207.95</td></tr><tr><td>- Gated feeding</td><td>243.51</td><td>- normalize before emit</td><td>225.36</td></tr><tr><td>-Delayed transition softmax</td><td>284.59</td><td>- multiplicative (single matrix)</td><td>107.45</td></tr><tr><td>-Delayed emission softmax</td><td>287.00</td><td>- multiplicative</td><td>100.71</td></tr><tr><td>-Delayed transition and emission softmax</td><td>293.72</td><td></td><td>87.27</td></tr><tr><td>- Sigmoid non-linearity</td><td>240.91</td><td></td><td></td></tr><tr><td>- Sigmoid non-linearity,delayed emission softmax</td><td>142.31</td><td>LSTM</td><td>80.61</td></tr></table>
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 2: This plot shows how perplexities change under our transformations, and which lead the models to converge and pass each other.
|
| 232 |
+
|
| 233 |
+
207.95 36.68 48.5487.27 44.97 54.59We also evaluate variants of Elman RNNs: Just replacing the sigmoid non-linearity with the softmax 80.61 function leads to a substantial drop in performance $\mathrm { ( 1 2 0 ~ p p l ) }$ 55.08, although it still performs better than the HMM variants where the recurrent state is a distribution. Another way to investigate the effect of the softmax is to normalize the hidden state output just before applying the emission function, while keeping the sigmoid non-linearity: This performs somewhat worse than the softmax non-linearity, Table 2-1 PTB UPOSwhich indicates that it is significant whether the input to the emission function is normalized or softPerplexity PTB UPOSmaxed before multiplying with the (emission) embedding matrix. As a comparison for how much 288.15 45.16 61.66the softmax non-linearity acts as a bottleneck, a neural bigram model outperforms these approaches, 142.31 obtaining 177 validation perplexity on this same setup.
|
| 234 |
+
|
| 235 |
+
207.95 36.68 48.54Replacing the RNN emission function with that of an HMM leads to even worse performance than 87.27 44.97 54.5980.61 45.75 55.08the HMM: Using a softmax non-linearity or a sigmoid followed by normalization does not make a significant difference. Using multiplicative integration leads to only a small drop in performance 25 50 125 200 275 3compared to a vanilla Elman RNN, and doing so with a single transformation matrix (making it comparable to what an RNN is doing) leads to only a small further drop. In contrast, preliminary experiments showed that the second transformation matrix is crucial in the performance of the vanilla Elman network.
|
| 236 |
+
|
| 237 |
+
In our experimental setup an LSTM performs only slightly better than the Elman network (80 vs 87 perplexity). While more extensive hyperparameter tuning Melis et al. (2017) or more sophisticated optimization and regularization techniques Merity et al. (2017) would likely improve performance, that is not the goal of this evaluation.
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
Figure 3: Tagging accuracies (right) are plotted against perplexities from Table 1. We see a somewhat quadratic relationship.
|
| 241 |
+
|
| 242 |
+
<table><tr><td>Model</td><td>PTB</td><td>UPOS</td></tr><tr><td>HMM</td><td></td><td></td></tr><tr><td></td><td>52.36</td><td>68.23</td></tr><tr><td>- Tensor feeding</td><td>45.16</td><td>61.66</td></tr><tr><td>- Gated feeding</td><td>44.62</td><td>59.64</td></tr><tr><td>- Sigmoid non-linearity - Sigmoid non-linearity with</td><td>31.82</td><td>44.13</td></tr><tr><td>delayed emission softmax</td><td>42.09</td><td>52.41</td></tr><tr><td>Elman</td><td></td><td></td></tr><tr><td>- softmax,HMM emission</td><td>30.86</td><td>45.85</td></tr><tr><td>- softmax non-linearity</td><td>36.68</td><td>48.54</td></tr><tr><td>1</td><td>44.97</td><td>54.59</td></tr><tr><td>LSTM</td><td>45.75</td><td>55.08</td></tr></table>
|
| 243 |
+
|
| 244 |
+
Table 2: Tagging accuracies for several representative models. Accuracy is calculated by converting $p ( w )$ to $p ( t )$ according to WSJ tag distributions.
|
| 245 |
+
|
| 246 |
+
# 6 SYNTACTIC EVALUATION
|
| 247 |
+
|
| 248 |
+
A strength of HMM bottlenecks is forcing the model to produce an interpretable hidden representation. A classic example of this property is part-of-speech tag induction. It is therefore natural to ask whether changes in the architecture of our models correlate with their ability to discover syntactic properties. We evaluate this by analyzing the models implicitly predicted tag distribution at each time step. Specifically, while no model is likely to predict the correct next word, we assume the HMMs errors will preserve basic tag-tag patterns of the language, and that this may not be true for RNNs. We test this by computing the accuracy of predicting the tag of the word in the sequence out of the next word distribution. None of the models were trained to perform this task.
|
| 249 |
+
|
| 250 |
+
First, we compute a tag distribution $p ( t | w )$ for every word in the training portion of the Penn Treebank. Next, we multiply this value by the model’s $p ( w ) = \widehat { x } _ { i }$ , and sum across the vocabulary. This provides us the model’s distribution over tags at the given time $p ( t ) _ { i }$ . We compare the most likely marginal tag against the ground truth to compute a tagging accuracy. This evaluation rewards models which place their emission probability mass predominantly on words of the correct part-of-speech. We compute this metric across both the full PTB tagset and the universal tags of Petrov et al. (2012).
|
| 251 |
+
|
| 252 |
+
The HMM allows for Viterbi decoding which allows us to compute $p ( t | \mathrm { m a x } _ { \mathrm { d i m } } ( c _ { i } ) )$ . The more distributed the models’ representations are, the more the tag distribution given the max dimension will differ from the complete marginal. For HMMs with distributional hidden states the maximum dimension provided the best performance. In contrast, Elman models perform best when conditioned on the full hidden state. Results are shown in Table 2 and plotted against perplexity in Figure 3.6
|
| 253 |
+
|
| 254 |
+
# 7 RELATED WORK
|
| 255 |
+
|
| 256 |
+
Recently, a number of recent papers have identified variants of gated RNNs which are simpler than LSTMs but perform competitively or satisfy properties that LSTMs lack. Foerster et al. (2017) proposed RNNs without recurrent non-linearities to improve interpretability. Balduzzi & Ghifary (2016) proposed gated RNN variants with type constraints. Peng et al. (2018) identified a class of RNNs called rational recurrences, in which the hidden states can be computed by WFSAs.
|
| 257 |
+
|
| 258 |
+
Another strand of recent work proposed neural models that learn discrete, interpretable structure: Yang et al. (2017) introduced a mixture of softmax model where the output distribution is conditioned on discrete latent variable. Shen et al. (2017) proposed a language model that jointly learns unsupervised syntactic (tree) structure, while Tran et al. (2016) used neural hidden Markov models for Part-of-Speech induction. Wiseman et al. (2018) and Wang et al. (2017) proposed models for segmental structure over sequences, while neural transduction models with discrete latent alignments have also been proposed Yu et al. (2016).
|
| 259 |
+
|
| 260 |
+
# 8 CONCLUSION
|
| 261 |
+
|
| 262 |
+
In this work, we presented a theoretical and empirical investigation into the model variants over the spectrum of possible hybridization between HMMs and RNNs. By carefully controlling for every design choices, we provide new insights into several factors including independence assumptions, the placement of softmax, and the use of nonliniarity and how these choices influence the interplay between expressiveness and interpretability. Comprehensive empirical results demonstrate that the key elements to better performance of the HMM are the use of a sigmoid instead of softmax linearity in the recurrent cell, and the use of an unnormalized output distribution matrix in the emission computation. Multiplicative integration of the previous hidden state and input embedding, and intermediate normalizations in the cell computation are less consequential. We also find that HMM outperforms other RNNs variants in a next POS tag prediction task, which demonstrates the advantages of models with discrete bottlenecks in increased interpretability.
|
| 263 |
+
|
| 264 |
+
# REFERENCES
|
| 265 |
+
|
| 266 |
+
David Balduzzi and Muhammad Ghifary. Strongly-typed recurrent neural networks. CoRR, abs/1602.02218, 2016. URL http://arxiv.org/abs/1602.02218.
|
| 267 |
+
|
| 268 |
+
Leonard E. Baum and J. A. Eagon. An inequality with applications to statistical estimation for probabilistic functions of markov processes and to a model for ecology. Bulletin of the American Mathematical Society, 73(3):360 – 363, 1967.
|
| 269 |
+
|
| 270 |
+
Ciprian Chelba and Frederick Jelinek. Exploiting syntactic structure for language modeling. In Proceedings of the 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics, Volume 1, pp. 225–231, Montreal, Quebec, Canada, August 1998. Association for Computational Linguistics. doi: 10.3115/980845. 980882. URL http://www.aclweb.org/anthology/P98-1035.
|
| 271 |
+
|
| 272 |
+
Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, Doha, Qatar, October 2014. Association for Computational Linguistics.
|
| 273 |
+
|
| 274 |
+
A Dempster, N Laird, and D Rubin. Maximum likelihood from incomplete data via the em algorithm. 01 1977.
|
| 275 |
+
|
| 276 |
+
Jason Eisner. Inside-outside and forward-backward algorithms are just backprop (tutorial paper). In Proceedings of the Workshop on Structured Prediction for NLP, pp. 1–17, Austin, TX, November 2016. Association for Computational Linguistics. URL http://aclweb.org/ anthology/W16-5901.
|
| 277 |
+
|
| 278 |
+
J Elman. Finding structure in time. 14(2):179–211, 06 1990.
|
| 279 |
+
|
| 280 |
+
Jakob N Foerster, Justin Gilmer, Jascha Sohl-Dickstein, Jan Chorowski, and David Sussillo. Input switched affine networks: An rnn architecture designed for interpretability. In International Conference on Machine Learning, pp. 1136–1145, 2017.
|
| 281 |
+
|
| 282 |
+
Ian Goodfellow, Yoshua Bengio, Aaron Courville, and Yoshua Bengio. Deep learning, volume 1. MIT Press, 2016.
|
| 283 |
+
|
| 284 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 9(8): 1735–1780, 1997.
|
| 285 |
+
|
| 286 |
+
Frederick Jelinek, Lalit R. Bahl, and Robert L Mercer. Design of a linguistic statistical decoder for the recognition of continuous speech. IEEE Transactions on Information Theory, 21(3):250–256, May 1975.
|
| 287 |
+
|
| 288 |
+
Michael I Jordan. Serial order: A parallel distributed processsing approach. Technical report, University of California, San Diego, 1986.
|
| 289 |
+
|
| 290 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 291 |
+
|
| 292 |
+
Kenton Lee, Omer Levy, and Luke S Zettlemoyer. Recurrent additive networks. arXiv preprint arXiv:1705.07393, 05 2017.
|
| 293 |
+
|
| 294 |
+
Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. arXiv preprint arXiv:1707.05589, 2017.
|
| 295 |
+
|
| 296 |
+
Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing LSTM language models. CoRR, abs/1708.02182, 2017. URL http://arxiv.org/abs/1708. 02182.
|
| 297 |
+
|
| 298 |
+
Toma´s Mikolov, Anoop Deoras, Stefan Kombrink, Luk ˇ a´s Burget, and Jan ˇ Cernock ˇ y. Empirical \` evaluation and combination of advanced language modeling techniques. In Twelfth Annual Conference of the International Speech Communication Association, 2011.
|
| 299 |
+
|
| 300 |
+
Hao Peng, Roy Schwartz, Sam Thomson, and Noah A. Smith. Rational recurrences. In Proc. of EMNLP, 2018.
|
| 301 |
+
|
| 302 |
+
Slav Petrov, Dipanjan Das, and Ryan McDonald. A universal part-of-speech tagset. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC-2012), pp. 2089–2096, Istanbul, Turkey, 05 2012.
|
| 303 |
+
|
| 304 |
+
Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. 2018.
|
| 305 |
+
|
| 306 |
+
Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron C. Courville. Neural language modeling by jointly learning syntax and lexicon. CoRR, abs/1711.02013, 2017. URL http://arxiv. org/abs/1711.02013.
|
| 307 |
+
|
| 308 |
+
Ke M. Tran, Yonatan Bisk, Ashish Vaswani, Daniel Marcu, and Kevin Knight. Unsupervised neural hidden markov models. In Proceedings of the Workshop on Structured Prediction for NLP, pp. 63–71, Austin, TX, November 2016. Association for Computational Linguistics. URL http: //aclweb.org/anthology/W16-5907.
|
| 309 |
+
|
| 310 |
+
Chong Wang, Yining Wang, Po-Sen Huang, Abdelrahman Mohamed, Dengyong Zhou, and Li Deng. Sequence modeling via segmentations. arXiv preprint arXiv:1702.07463, 2017.
|
| 311 |
+
|
| 312 |
+
T Wessels and Christian W Omlin. Refining hidden markov models with recurrent neural networks. In Proceedings of the IEEE-INNS-ENNS International Joint Conference on Neural Networks, volume 2, pp. 271–276. IEEE, 2000.
|
| 313 |
+
|
| 314 |
+
Sam Wiseman, Stuart M Schieber, and Alexander M Rush. Learning neural templates for text generation. arXiv preprint arXiv:1808.10122, 08 2018.
|
| 315 |
+
|
| 316 |
+
Yuhuai Wu, Saizheng Zhang, Ying Zhang, Yoshua Bengio, and Ruslan R Salakhutdinov. On multiplicative integration with recurrent neural networks. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 2856–2864. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6215-on-multiplicative-integration-with-recurrent-neural-networks. pdf.
|
| 317 |
+
|
| 318 |
+
Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: A high-rank rnn language model. arXiv preprint arXiv:1711.03953, 2017.
|
| 319 |
+
|
| 320 |
+
Lei Yu, Jan Buys, and Phil Blunsom. Online segment to segment neural transduction. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1307–1316, Austin, Texas, November 2016. Association for Computational Linguistics. URL https:// aclweb.org/anthology/D16-1138.
|
parse/train/HyesB2RqFQ/HyesB2RqFQ_content_list.json
ADDED
|
@@ -0,0 +1,1617 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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8 |
+
98,
|
| 9 |
+
668,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
250
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "A distinct commonality between HMMs and RNNs is that they both learn hidden representations for sequential data. In addition, it has been noted that the backward computation of the Baum-Welch algorithm for HMMs is a special case of the back-propagation algorithm used for neural networks (Eisner (2016)). Do these observations suggest that, despite their many apparent differences, HMMs are a special case of RNNs? In this paper, we investigate a series of architectural transformations between HMMs and RNNs, both through theoretical derivations and empirical hybridization, to answer this question. In particular, we investigate three key design factors—independence assumptions between the hidden states and the observation, the placement of softmax, and the use of non-linearity—in order to pin down their empirical effects. We present a comprehensive empirical study to provide insights on the interplay between expressivity and interpretability with respect to language modeling and parts-of-speech induction. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
271,
|
| 43 |
+
764,
|
| 44 |
+
452
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
491,
|
| 55 |
+
336,
|
| 56 |
+
507
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Sequence is a common structure among many forms of naturally occurring data, including speech, text, video, and DNA. As such, sequence modeling has long been a core research problem across several fields of machine learning and AI. By far the most widely used approach for decades is the Hidden Markov Models of Baum & Eagon (1967); Jelinek et al. (1975), which assumes a sequence of discrete latent variables to generate a sequence of observed variables. When the latent variables are unobserved, unsupervised training of HMMs can be performed via the Baum-Welch algorithm (which, in turn, is based on the forward-backward algorithm), as a special case of ExpectationMaximization (EM) (Dempster et al. (1977)). Importantly, the discrete nature of the latent variables has the benefit of interpretability, as they recover contextual clustering of the output variables. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
526,
|
| 66 |
+
825,
|
| 67 |
+
652
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In contrast, Recurrent Neural Networks (RNNs), introduced later in the form of Jordan (1986) and Elman (1990) networks, assume continuous latent representations. Notably, unlike the hidden states of HMMs, there is no probabilistic interpretation of the hidden states of RNNs, regardless of their many different architectural variants (e.g. LSTMs of Hochreiter & Schmidhuber (1997), GRUs of Cho et al. (2014) and RANs of Lee et al. (2017)). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
659,
|
| 77 |
+
825,
|
| 78 |
+
728
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Despite their many apparent differences, both HMMs and RNNs model hidden representations for sequential data. At the heart of both models are: a state at time $t$ , a transition function $f : h _ { t - 1 } \\to h _ { t }$ in latent space, and an emission function $g \\ : \\ h _ { t } \\ \\to \\ x _ { t }$ . In addition, it has been noted that the backward computation in the Baum-Welch algorithm is a special case of back-propagation for neural networks (Eisner (2016)). Therefore, a natural question arises as to the fundamental relationship between HMMs and RNNs. Might HMMs be a special case of RNNs? ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
734,
|
| 88 |
+
825,
|
| 89 |
+
819
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, we investigate a series of architectural transformations between HMMs and RNNs— both through theoretical derivations and empirical hybridization. In particular, we demonstrate that the forward marginal inference for an HMM—accumulating forward probabilities to compute the marginal emission and hidden state distributions at each time step—can be reformulated as equations for computing an RNN cell. In addition, we investigate three key design factors—independence assumptions between the hidden states and the observation, the placement of soft- max, and the use of non-linearity—in order to pin down their empirical effects. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
827,
|
| 99 |
+
825,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Trans/Emit: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
99,
|
| 110 |
+
266,
|
| 111 |
+
114
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/57b8662677ea3422292eb7995e0d6de1f148536dd21a00c23ba11f9ff30ba49e.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Above each of the models we indicate the type of transition and emission cells used. H for HMM, R for RNN/Elman and F is a novel Fusion defined in $\\ S 3 . 3$ . It is particularly important to understanding this work to track when a vector is a distribution (resides in a simplex) versus in the unit cube (e.g. after a sigmoid non-linearity). These cases are indicated by $\\boldsymbol { \\hat { \\mathbf { \\mathit { c } } } } _ { i }$ and $\\mathrm { \\ddot { ‰} }$ , respectively. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
171,
|
| 124 |
+
114,
|
| 125 |
+
826,
|
| 126 |
+
301
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Our work is supported by several earlier works such as Wessels & Omlin (2000) and $\\mathrm { W u }$ et al. (2016) that have also noted the connection between RNNs and HMMs (see $^ { \\ S 7 }$ for more detailed discussion). Our contribution is to provide the first thorough theoretical investigation into the model variants, carefully controlling for every design choices, along with comprehensive empirical analysis over the spectrum of possible hybridization between HMMs and RNNs. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
398,
|
| 136 |
+
825,
|
| 137 |
+
468
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "We find that the key elements to better performance of the HMMs are the use of a sigmoid instead of softmax linearity in the recurrent cell, and the use of an unnormalized output distribution matrix in the emission computation. On the other hand, multiplicative integration of the previous hidden state and input embedding, and intermediate normalizations in the cell computation are less consequential. We also find that HMM outperforms other RNNs variants for unsupervised prediction of the next POS tag, demonstrating the advantages of discrete bottlenecks for increased interpretability. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
173,
|
| 146 |
+
476,
|
| 147 |
+
825,
|
| 148 |
+
559
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "The rest of the paper is structured as follows. First, we present in §2 the derivation of HMM marginal inference as a special case of RNN computation. Next in $\\ S 3$ , we explore a gradual transformation of HMMs into RNNs. In $\\ S 4$ , we present the reverse transformation of Elman RNNs back to HMMs. Finally, building on these continua, we provide empirical analysis in $\\ S 5$ and $\\ S 6$ to pin point the empirical effects of varying design choices over the possible hybridization between HMMs and RNNs. We discuss related work in $^ { \\ S 7 }$ and conclude in $\\ S 8$ . ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
565,
|
| 158 |
+
825,
|
| 159 |
+
650
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 FORMULATING HMMS AS RECURRENT NEURAL NETWORKS",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
674,
|
| 170 |
+
710,
|
| 171 |
+
691
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "We start by defining HMMs as sequence models, together with the forward-backward algorithm which is used for inference. Then we show that, by rewriting the forward algorithm, the computation can be viewed as updating a hidden state at each time step by feeding the previous word prediction, and then computing the next word distribution, similar to the way RNNs are structured. The resulting architecture corresponds to the first cell in Figure 1. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
709,
|
| 181 |
+
825,
|
| 182 |
+
780
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "2.1 MODEL DEFINITION ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
803,
|
| 193 |
+
352,
|
| 194 |
+
816
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Let $\\mathbf { x } ^ { ( 1 : n ) } = \\{ \\mathbf { x } ^ { ( 1 ) } , \\ldots , \\mathbf { x } ^ { ( n ) } \\}$ be a sequence of random variables, where each $\\mathbf { X }$ is drawn from a vocabulary $\\mathbb { V }$ of size $v$ , and an instance $\\mathbf { X }$ is represented as an integer $w$ or a one-hot vector ${ e ^ { ( w ) } }$ , where $w$ corresponds to an index in $\\mathbb { V }$ . 1 We also define a corresponding sequence of hidden variables $\\mathbf { h } ^ { ( 1 : n ) } = \\{ \\mathbf { h } ^ { ( 1 ) } , \\ldots , \\mathbf { h } ^ { ( n ) } \\}$ , where $\\mathtt { h } \\in \\{ 1 , 2 , \\dots m \\}$ . The distribution $P ( \\mathbf { x } )$ is defined by ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
828,
|
| 204 |
+
825,
|
| 205 |
+
891
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "marginalizing over $\\mathbf { h }$ , and factorizes as follows: ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
173,
|
| 214 |
+
103,
|
| 215 |
+
486,
|
| 216 |
+
118
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "equation",
|
| 222 |
+
"img_path": "images/33e5f1b768be5fbe5d9d32c46939b4c657e2be5ddabd59d8c142e724a394645c.jpg",
|
| 223 |
+
"text": "$$\nP ( \\mathbf { x } ) = \\sum _ { \\mathbf { h } } P ( \\mathbf { x } , \\mathbf { h } ) = \\sum _ { \\mathbf { h } } P ( \\mathbf { h } ^ { ( 1 ) } ) p ( \\mathbf { x } ^ { ( 1 ) } | \\mathbf { h } ^ { ( 1 ) } ) \\prod _ { i = 2 } ^ { n } P ( \\mathbf { h } ^ { ( i ) } | \\mathbf { h } ^ { ( i - 1 ) } ) P ( \\mathbf { x } ^ { ( i ) } | \\mathbf { h } ^ { ( i ) } )\n$$",
|
| 224 |
+
"text_format": "latex",
|
| 225 |
+
"bbox": [
|
| 226 |
+
240,
|
| 227 |
+
131,
|
| 228 |
+
756,
|
| 229 |
+
172
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "We define the hidden state distribution, referred to as the transition distribution, as ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
171,
|
| 238 |
+
190,
|
| 239 |
+
712,
|
| 240 |
+
205
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "equation",
|
| 246 |
+
"img_path": "images/2e601f75344a12f75a1f2c543f1e0b43de8ec072fb295f82b21306fcb74f6cb1.jpg",
|
| 247 |
+
"text": "$$\n\\begin{array} { r l } & { P ( \\mathrm { h } ^ { ( i ) } | \\mathrm { h } ^ { ( i - 1 ) } = l ) = \\mathrm { s o f t m a x } ( W _ { l , : } + b ) , W \\in \\mathbb R ^ { m \\times m } , \\boldsymbol { b } \\in \\mathbb R ^ { m } } \\\\ & { \\qquad P ( \\mathrm { h } ^ { ( 1 ) } ) = \\mathrm { s o f t m a x } ( \\displaystyle \\sum _ { l } W _ { l , : } ^ { \\top } + b ) , } \\end{array}\n$$",
|
| 248 |
+
"text_format": "latex",
|
| 249 |
+
"bbox": [
|
| 250 |
+
284,
|
| 251 |
+
215,
|
| 252 |
+
712,
|
| 253 |
+
272
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "and the emission (output) distribution as ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
173,
|
| 262 |
+
284,
|
| 263 |
+
439,
|
| 264 |
+
299
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "equation",
|
| 270 |
+
"img_path": "images/bdbd8f01bf1e87bf3ab083df549c425d9307ab3d435956e6228fc6dfcb8864c0.jpg",
|
| 271 |
+
"text": "$$\np ( \\mathbf { x } ^ { ( i ) } | \\mathbf { h } ^ { ( i ) } = k ) = \\mathrm { s o f t m a x } ( \\mathbf { { E } } _ { k , : } + d ) , E \\in \\mathbb { R } ^ { m \\times v } , d \\in \\mathbb { R } ^ { v } .\n$$",
|
| 272 |
+
"text_format": "latex",
|
| 273 |
+
"bbox": [
|
| 274 |
+
299,
|
| 275 |
+
310,
|
| 276 |
+
699,
|
| 277 |
+
330
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "2.2 INFERENCE ",
|
| 284 |
+
"text_level": 1,
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
352,
|
| 288 |
+
295,
|
| 289 |
+
366
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "Inference for HMMs (marginalizing over the hidden states to compute the observed sequence probabilities) is performed with the forward-backward algorithm. The backward algorithm is equivalent to automatically differentiating the forward algorithm Eisner (2016). Therefore, while traditional HMM implementations had to implement both the forward and backward algorithm, and train the model with the EM algorithm, we only implement the forward algorithm in standard deep learning software, and perform end-to-end minibatched SGD training, efficiently parallelized on the GPU. ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
380,
|
| 299 |
+
825,
|
| 300 |
+
465
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "Let $\\pmb { w } = \\{ w ^ { ( 1 ) } , \\dots , w ^ { ( n ) } \\}$ be the observed sequence, and $\\mathbf { \\Delta } _ { w } ( i )$ the one-hot representation of $w ^ { ( i ) }$ The forward probabilities $\\textbf { \\em a }$ are defined recurrently (i.e., sequentially recursively) as ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
174,
|
| 309 |
+
470,
|
| 310 |
+
821,
|
| 311 |
+
501
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "equation",
|
| 317 |
+
"img_path": "images/054558db5b52c256ae2753ab58fca87ff4bf3af37c1be589c38f5b4d8283f0b8.jpg",
|
| 318 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle a _ { k } ^ { ( i ) } = P ( { \\bf h } ^ { ( i ) } = k , { \\bf x } ^ { ( 1 : i ) } = w ^ { ( 1 : i ) } ) } , \\ ~ } \\\\ { { \\displaystyle ~ = P ( { \\bf x } ^ { ( i ) } = w ^ { ( i ) } | { \\bf h } ^ { ( i ) } = k ) \\sum _ { l = 1 } ^ { m } a _ { l } ^ { ( i - 1 ) } P ( { \\bf h } ^ { ( i ) } = k | { \\bf h } ^ { ( i - 1 ) } = l ) } . } \\end{array}\n$$",
|
| 319 |
+
"text_format": "latex",
|
| 320 |
+
"bbox": [
|
| 321 |
+
281,
|
| 322 |
+
512,
|
| 323 |
+
715,
|
| 324 |
+
578
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "This can be rewritten by defining ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
595,
|
| 334 |
+
393,
|
| 335 |
+
611
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "equation",
|
| 341 |
+
"img_path": "images/3ef4643b69b0ec40ec7a32674577cce9205e7c758a0e6aa29247c3b9a602e753.jpg",
|
| 342 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { \\boldsymbol { \\mathsf { c } } } ^ { ( i ) } = P ( \\mathsf { h } ^ { ( i ) } | \\mathbf { \\boldsymbol { \\mathsf { x } } } ^ { ( 1 : i - 1 ) } = \\boldsymbol { \\mathsf { \\pmb { w } } } ^ { ( 1 : i - 1 ) } ) , } \\\\ & { \\mathbf { \\boldsymbol { \\mathsf { s } } } ^ { ( i ) } = P ( \\mathsf { h } ^ { ( i ) } | \\mathbf { \\boldsymbol { \\mathsf { x } } } ^ { ( 1 : i ) } = \\boldsymbol { \\mathsf { w } } ^ { ( 1 : i ) } ) , } \\\\ & { \\mathbf { \\boldsymbol { \\mathsf { x } } } ^ { ( i ) } = P ( \\mathbf { \\boldsymbol { \\mathsf { x } } } ^ { ( i ) } = \\boldsymbol { \\mathsf { w } } ^ { ( i ) } | \\mathbf { \\boldsymbol { \\mathsf { x } } } ^ { ( 1 : i - 1 ) } = \\boldsymbol { \\mathsf { w } } ^ { ( 1 : i ) } ) , } \\end{array}\n$$",
|
| 343 |
+
"text_format": "latex",
|
| 344 |
+
"bbox": [
|
| 345 |
+
362,
|
| 346 |
+
621,
|
| 347 |
+
633,
|
| 348 |
+
688
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "and substituting $\\textbf { \\em a }$ , so that equation 6 is rewritten as (left below) or if expressed directly in terms of the parameters used to define the distributions with vectorized computations (right below): ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
176,
|
| 357 |
+
696,
|
| 358 |
+
826,
|
| 359 |
+
726
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "equation",
|
| 365 |
+
"img_path": "images/e462a8ef9f606faee48673ebbb30a1b2e9b3de60d4ac2d9ecebe4ed511e32a52.jpg",
|
| 366 |
+
"text": "$$\n\\begin{array} { r l r l } & { c _ { k } ^ { ( i ) } = \\displaystyle \\sum _ { l = 1 } ^ { m } s _ { l } ^ { ( i - 1 ) } P ( { \\bf h } ^ { ( i ) } = k | { \\bf h } ^ { ( i - 1 ) } = l ) , \\quad } & & { c ^ { ( i ) } = \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( W ) ^ { \\top } s ^ { ( i - 1 ) } , } \\\\ & { } & & \\\\ & { } & & { e ^ { ( i ) } = \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( E ) { \\pmb w } ^ { ( i ) } , } \\\\ & { x ^ { ( i ) } = \\displaystyle \\sum _ { k = 1 } ^ { m } P ( { \\bf x } ^ { ( i ) } = w ^ { ( i ) } | { \\bf h } ^ { ( i ) } = k ) c _ { k } ^ { ( i ) } , \\quad } & & { x ^ { ( i ) } = e ^ { ( i ) ^ { \\top } } c ^ { ( i ) } , } \\\\ & { } & & \\\\ & { s _ { k } ^ { ( i ) } = \\displaystyle \\frac { 1 } { x ^ { ( i ) } } P ( { \\bf x } ^ { ( i ) } = w ^ { ( i ) } | { \\bf h } ^ { ( i ) } = k ) c _ { k } ^ { ( i ) } . \\quad } & & { s ^ { ( i ) } = \\displaystyle \\frac { 1 } { x ^ { ( i ) } } e ^ { ( i ) } \\circ c ^ { ( i ) } . } \\end{array}\n$$",
|
| 367 |
+
"text_format": "latex",
|
| 368 |
+
"bbox": [
|
| 369 |
+
225,
|
| 370 |
+
737,
|
| 371 |
+
771,
|
| 372 |
+
875
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "Here $\\mathbf { \\Delta } _ { w } ( i )$ used as a one-hot vector, and the bias vectors $^ { b }$ and $^ d$ are omitted for clarity. Note that the computation of $\\mathbf { \\boldsymbol { s } } ^ { ( i ) }$ can be delayed until time step $i + 1$ . The computation step can therefore be ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
173,
|
| 381 |
+
893,
|
| 382 |
+
823,
|
| 383 |
+
924
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "rewritten to let $^ c$ be the recurrent vector (equivalent logspace formulations presented on the right): 2 ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
173,
|
| 392 |
+
103,
|
| 393 |
+
823,
|
| 394 |
+
119
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "equation",
|
| 400 |
+
"img_path": "images/ad4c0db6b05132509dbd8ce0cf1311cff7b86dd051181df81eefbf86a61cf394.jpg",
|
| 401 |
+
"text": "$$\n\\begin{array} { r l r l } & { e ^ { ( i - 1 ) } = \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( E ) w ^ { ( i - 1 ) } , } & & { = \\mathrm { l o g s o f t m a x } _ { \\mathrm { r o w s } } ( E ) w ^ { ( i - 1 ) } , } \\\\ & { s ^ { ( i - 1 ) } = \\mathrm { n o r m a l i z e } ( e ^ { ( i - 1 ) } \\circ c ^ { ( i - 1 ) } ) , } & & { = \\mathrm { s o f t m a x } ( e ^ { ( i - 1 ) } + c ^ { ( i - 1 ) } ) , } \\\\ & { \\pmb { c } ^ { ( i ) } = \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( W ) ^ { \\top } \\pmb { s } ^ { ( i - 1 ) } , } & & { = \\mathrm { l o g } ( \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( W ) ^ { \\top } \\pmb { s } ^ { ( i - 1 ) } ) , } \\\\ & { e ^ { ( i ) } = \\mathrm { s o f t m a x } _ { \\mathrm { r o w s } } ( E ) \\pmb { w } ^ { ( i ) } , } & & { = \\mathrm { l o g s o f t m a x } _ { \\mathrm { r o w s } } ( E ) \\pmb { w } ^ { ( i ) } , } \\\\ & { \\pmb { x } ^ { ( i ) } = e ^ { ( i ) ^ { \\top } } \\pmb { c } ^ { ( i ) } , } & & { = \\mathrm { l o g s u m e x p } ( e ^ { ( i ) } + c ^ { ( i ) } ) . } \\end{array}\n$$",
|
| 402 |
+
"text_format": "latex",
|
| 403 |
+
"bbox": [
|
| 404 |
+
230,
|
| 405 |
+
122,
|
| 406 |
+
738,
|
| 407 |
+
232
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "This can be viewed as a step of a recurrent neural network with tied input and output embeddings: Equation 14 embeds the previous prediction, equations 15 and 16, the transition step, updates the hidden state $^ c$ , corresponding to the cell of a RNN, and equations 17 and 18, the emission step, computes the output next word probability. ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
173,
|
| 416 |
+
242,
|
| 417 |
+
825,
|
| 418 |
+
299
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "We can now compare this formulation against the definition of a Elman RNN with tied embeddings and a sigmoid non-linearity. These equations correspond to the first and last cells in Figure 1. The Elman RNN has the same parameters, except for an additional input matrix $U \\in \\mathbb { R } ^ { m \\times m }$ . ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
305,
|
| 428 |
+
823,
|
| 429 |
+
348
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "equation",
|
| 435 |
+
"img_path": "images/525dfe82982fc490b326c8dce4eac467e07ae54816e95e909ed9d0441e41e526.jpg",
|
| 436 |
+
"text": "$$\n\\begin{array} { l } { { \\pmb { c } } ^ { ( i ) } = \\sigma ( { \\pmb { W } } { \\pmb { c } } ^ { ( i - 1 ) } + { \\pmb { U } } { \\pmb { e } } ^ { ( i - 1 ) } ) , } \\\\ { { \\pmb { x } } ^ { ( i ) } = \\mathrm { s o f t m a x } ( { \\pmb { E } } { \\pmb { c } } ^ { ( i ) } ) { \\pmb { w } } ^ { ( i ) } . } \\end{array}\n$$",
|
| 437 |
+
"text_format": "latex",
|
| 438 |
+
"bbox": [
|
| 439 |
+
398,
|
| 440 |
+
375,
|
| 441 |
+
614,
|
| 442 |
+
416
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "3 TRANSFORMING AN HMM TOWARDS AN RNN ",
|
| 449 |
+
"text_level": 1,
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
434,
|
| 453 |
+
594,
|
| 454 |
+
452
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Having established the relation between HMMs and RNNs, we propose a number of models that we hypothesize have intermediate expressiveness between HMMs and RNNs. The architecture transformations can be seen in the first 3 cells in Figure 1. We will evaluate these model variants empirically, and also investigate their interpretability. ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
464,
|
| 464 |
+
825,
|
| 465 |
+
522
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "3.1 CONDITIONING TRANSITION PROBABILITY ON PREVIOUS WORD ",
|
| 472 |
+
"text_level": 1,
|
| 473 |
+
"bbox": [
|
| 474 |
+
176,
|
| 475 |
+
537,
|
| 476 |
+
656,
|
| 477 |
+
553
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "By relaxing the independence assumption of the HMM transition probability distribution we can increase the expressiveness of the HMM “cell” by modelling more complex interactions between the fed word and the hidden state. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
563,
|
| 487 |
+
825,
|
| 488 |
+
606
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Tensor-based feeding: ",
|
| 495 |
+
"text_level": 1,
|
| 496 |
+
"bbox": [
|
| 497 |
+
174,
|
| 498 |
+
619,
|
| 499 |
+
328,
|
| 500 |
+
633
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 3
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "Following Tran et al. (2016) we define the transition distribution as ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
635,
|
| 510 |
+
612,
|
| 511 |
+
648
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "equation",
|
| 517 |
+
"img_path": "images/66c19817de619d48da05e89f22b56aaded6f2cd379aed4f7777c9915e8837871.jpg",
|
| 518 |
+
"text": "$$\nP ( \\mathbf { h } ^ { ( i ) } | \\mathbf { h } ^ { ( i - 1 ) } = l , \\mathbf { x } ^ { ( i - 1 ) } = w ) = \\mathrm { s o f t m a x } ( \\pmb { W } _ { l , : } e ^ { ( i - 1 ) } + \\pmb { B } _ { l , : } ) ,\n$$",
|
| 519 |
+
"text_format": "latex",
|
| 520 |
+
"bbox": [
|
| 521 |
+
289,
|
| 522 |
+
651,
|
| 523 |
+
707,
|
| 524 |
+
670
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 3
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "where $\\pmb { \\mathsf { W } } \\in \\mathbb { R } ^ { m \\times m \\times m } , \\pmb { B } \\in \\mathbb { R } ^ { m \\times m }$ ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
174,
|
| 533 |
+
671,
|
| 534 |
+
413,
|
| 535 |
+
686
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 3
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Addition-based feeding: ",
|
| 542 |
+
"text_level": 1,
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
702,
|
| 546 |
+
343,
|
| 547 |
+
715
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 3
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "As the tensor-based methods increases the number of parameters considerably, we also propose an additive version: ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
173,
|
| 556 |
+
715,
|
| 557 |
+
823,
|
| 558 |
+
743
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 3
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "equation",
|
| 564 |
+
"img_path": "images/fa7d489e54d32b64915de13eaa3399bcbfeff443c62a1292f4ed514a995f9673.jpg",
|
| 565 |
+
"text": "$$\nP ( \\mathbf { h } ^ { ( i ) } | \\mathbf { h } ^ { ( i - 1 ) } = l , \\mathbf { x } ^ { ( i - 1 ) } = w ) = \\mathrm { s o f t m a x } ( W _ { l , : } + U e ^ { ( i - 1 ) } + b ) ,\n$$",
|
| 566 |
+
"text_format": "latex",
|
| 567 |
+
"bbox": [
|
| 568 |
+
279,
|
| 569 |
+
743,
|
| 570 |
+
715,
|
| 571 |
+
762
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 3
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "where $W \\in \\mathbb { R } ^ { m \\times m } , U \\in \\mathbb { R } ^ { m \\times m } , b \\in \\mathbb { R } ^ { m }$ ",
|
| 578 |
+
"bbox": [
|
| 579 |
+
176,
|
| 580 |
+
765,
|
| 581 |
+
457,
|
| 582 |
+
780
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 3
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "Gating-based feeding: ",
|
| 589 |
+
"text_level": 1,
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
794,
|
| 593 |
+
330,
|
| 594 |
+
809
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 3
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "Finally we propose a more expressive model where interaction is controlled via a gating mechanism and the feeding step uses unnormalized embeddings (this does not violate the HMM factorization): ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
173,
|
| 603 |
+
809,
|
| 604 |
+
820,
|
| 605 |
+
837
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 3
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "equation",
|
| 611 |
+
"img_path": "images/388a6a26862238390004bb7f5e1508d89b80f572af3da65e05cec40f859cd984.jpg",
|
| 612 |
+
"text": "$$\n\\begin{array} { c } { e ^ { ' ( i - 1 ) } = E \\pmb { w } ^ { ( i - 1 ) } , } \\\\ { \\pmb { f } ^ { i } = \\sigma ( U e ^ { ' ( i - 1 ) } + \\pmb { b } ) , } \\\\ { P ( \\mathbf { h } ^ { ( i ) } | \\mathbf { h } ^ { ( i - 1 ) } = l , \\mathbf { x } ^ { ( i - 1 ) } = w ) = \\mathrm { s o f t m a x } ( W _ { l , : } \\circ \\pmb { f } ^ { ( i ) } ) , } \\end{array}\n$$",
|
| 613 |
+
"text_format": "latex",
|
| 614 |
+
"bbox": [
|
| 615 |
+
310,
|
| 616 |
+
837,
|
| 617 |
+
686,
|
| 618 |
+
902
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 3
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "where $U \\in \\mathbb { R } ^ { m \\times m } , \\boldsymbol { b } \\in \\mathbb { R } ^ { m } , W \\in \\mathbb { R } ^ { m \\times m }$ ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
176,
|
| 627 |
+
102,
|
| 628 |
+
457,
|
| 629 |
+
118
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 4
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "3.2 DELAYED SOFTMAXES ",
|
| 636 |
+
"text_level": 1,
|
| 637 |
+
"bbox": [
|
| 638 |
+
176,
|
| 639 |
+
136,
|
| 640 |
+
372,
|
| 641 |
+
150
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Another way to make HMMs more expressive is to relax their independence assumptions through delaying when vectors are normalized to probability distributions by applying the softmax function. ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
173,
|
| 650 |
+
161,
|
| 651 |
+
825,
|
| 652 |
+
190
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Delayed transition softmax ",
|
| 659 |
+
"text_level": 1,
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
207,
|
| 663 |
+
364,
|
| 664 |
+
220
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "The computation of the recurrent vector $\\pmb { c } ^ { ( i ) } = P ( \\mathbf { h } ^ { ( i ) } | \\mathbf { x } ^ { ( 1 : i - 1 ) } )$ is replaced with ",
|
| 671 |
+
"bbox": [
|
| 672 |
+
173,
|
| 673 |
+
219,
|
| 674 |
+
699,
|
| 675 |
+
237
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "equation",
|
| 681 |
+
"img_path": "images/bf40a494716471e6631ad0ca7fdbcc973db3d275fb0d4fb3d8842d4ab8d51b5d.jpg",
|
| 682 |
+
"text": "$$\n\\pmb { c } ^ { ( i ) } = \\mathrm { s o f t m a x } ( \\pmb { W } \\pmb { s } ^ { ( i - 1 ) } ) .\n$$",
|
| 683 |
+
"text_format": "latex",
|
| 684 |
+
"bbox": [
|
| 685 |
+
406,
|
| 686 |
+
244,
|
| 687 |
+
591,
|
| 688 |
+
263
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 4
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Both $^ c$ and $\\pmb { s }$ are still valid probability distributions, but the independence assumption in the distribution over $\\mathrm { h } ^ { ( i ) }$ no longer holds. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
270,
|
| 698 |
+
825,
|
| 699 |
+
301
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 4
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Delayed emission softmax ",
|
| 706 |
+
"text_level": 1,
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
318,
|
| 710 |
+
356,
|
| 711 |
+
332
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 4
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "A further transformation is to delay the emission softmax until after multiplication with the hidden vector. This effectively replaces the HMM’s emission computation with that of the RNN: ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
171,
|
| 720 |
+
332,
|
| 721 |
+
823,
|
| 722 |
+
359
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 4
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "equation",
|
| 728 |
+
"img_path": "images/b30cc31bbcdb28d3bada4c325e06a1ee05a36df83252299965c6103aa99cf5ec.jpg",
|
| 729 |
+
"text": "$$\n\\boldsymbol { x } ^ { ( i ) } = \\mathrm { s o f t m a x } ( E \\boldsymbol { c } ^ { ( i ) } ) \\boldsymbol { w } ^ { ( i ) } .\n$$",
|
| 730 |
+
"text_format": "latex",
|
| 731 |
+
"bbox": [
|
| 732 |
+
403,
|
| 733 |
+
366,
|
| 734 |
+
594,
|
| 735 |
+
386
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 4
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "This formulation breaks the independence assumption that the output distribution is only conditioned on the hidden state assignment. Instead it can be viewed as taking the expectation over the (unnormalized) embeddings with respect to the state distribution $^ c$ , then softmaxed $\\mathbf { H } \\mathbf { R }$ in Fig 1). ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
173,
|
| 744 |
+
393,
|
| 745 |
+
825,
|
| 746 |
+
436
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 4
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "3.3 SIGMOID NON-LINEARITY ",
|
| 753 |
+
"text_level": 1,
|
| 754 |
+
"bbox": [
|
| 755 |
+
176,
|
| 756 |
+
454,
|
| 757 |
+
397,
|
| 758 |
+
468
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 4
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "We can go further towards RNNs and replace the softmax in the transition by a sigmoid non-linearity. The sigmoid is placed in the same position as the delayed softmax. The recurrent state $^ c$ is no longer a distribution so the output has to be renormalized so the emission still computes a distribution: ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
479,
|
| 768 |
+
825,
|
| 769 |
+
522
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 4
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "equation",
|
| 775 |
+
"img_path": "images/55df48e64ffd83f32a38b543298d88c291c7554f8c1e3cdbff9413ae37b4ded1.jpg",
|
| 776 |
+
"text": "$$\n\\begin{array} { l } { { \\pmb { c } } ^ { ( i ) } = \\mathrm { s i g m o i d } ( { \\pmb { W } } { \\pmb { s } } ^ { ( i - 1 ) } ) , } \\\\ { { \\pmb { x } } ^ { ( i ) } = { \\pmb { e } } ^ { ( i ) ^ { \\top } } \\mathrm { n o r m a l i z e } ( { \\pmb { c } } ^ { ( i ) } ) . } \\end{array}\n$$",
|
| 777 |
+
"text_format": "latex",
|
| 778 |
+
"bbox": [
|
| 779 |
+
401,
|
| 780 |
+
529,
|
| 781 |
+
598,
|
| 782 |
+
571
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 4
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "This model could also be combined with a delayed emission softmax - which we’ll see makes it closer to an Elman RNN. This model is indicated as $\\mathbf { F }$ for fusion in Figure 1 ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
173,
|
| 791 |
+
585,
|
| 792 |
+
826,
|
| 793 |
+
614
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 4
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "4 TRANSFORMING AN RNN TOWARDS AN HMM ",
|
| 800 |
+
"text_level": 1,
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
635,
|
| 804 |
+
596,
|
| 805 |
+
651
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 4
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Analogously to making the HMM more similar to Elman RNNs, we can make Elman networks more similar to HMMs. Examples of these transformations can be seen in the last 2 cells in Figure 1. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
666,
|
| 815 |
+
825,
|
| 816 |
+
695
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 4
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "4.1 HMM EMISSION ",
|
| 823 |
+
"text_level": 1,
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
713,
|
| 827 |
+
330,
|
| 828 |
+
728
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 4
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "First, we use the Elman cell with an HMM emission. This requires the hidden state be a distribution, thus we consider two options. One is to replace the sigmoid non-linearity with the softmax function: ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
173,
|
| 837 |
+
738,
|
| 838 |
+
823,
|
| 839 |
+
768
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 4
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "equation",
|
| 845 |
+
"img_path": "images/e44a80d18b462c17064864ac16bea799d3b42ed56ea8ac863c757158493f81d2.jpg",
|
| 846 |
+
"text": "$$\n\\begin{array} { r l } & { \\pmb { c } ^ { ( i ) } = \\mathrm { s o f t m a x } ( \\pmb { W } \\pmb { c } ^ { ( i - 1 ) } + \\pmb { U } \\pmb { e } ^ { ( i - 1 ) } ) } \\\\ & { \\pmb { x } ^ { ( i ) } = ( \\mathrm { s o f t m a x } ( \\pmb { E } ) \\pmb { w } ^ { ( i ) } ) ^ { \\top } \\pmb { c } ^ { ( i ) } . } \\end{array}\n$$",
|
| 847 |
+
"text_format": "latex",
|
| 848 |
+
"bbox": [
|
| 849 |
+
369,
|
| 850 |
+
792,
|
| 851 |
+
627,
|
| 852 |
+
837
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 4
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "This model is depicted as $\\textbf { R H }$ in Figure 1. The second formulation is to keep the sigmoid nonlinearity, but normalize the hidden state output in the emission computation: ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
174,
|
| 861 |
+
848,
|
| 862 |
+
825,
|
| 863 |
+
878
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 4
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "equation",
|
| 869 |
+
"img_path": "images/c21b9d244c9ea7260504b8070d6b088eac28163db05149961c4f8fe32dd87157.jpg",
|
| 870 |
+
"text": "$$\n\\begin{array} { r l } & { \\pmb { c } ^ { ( i ) } = \\sigma ( \\pmb { W } \\pmb { c } ^ { ( i - 1 ) } + \\pmb { U } \\pmb { e } ^ { ( i - 1 ) } ) } \\\\ & { \\pmb { x } ^ { ( i ) } = ( \\mathrm { s o f t m a x } ( \\pmb { E } ) \\pmb { w } ^ { ( i ) } ) ^ { \\top } \\mathrm { n o r m a l i z e } ( \\pmb { c } ^ { ( i ) } ) . } \\end{array}\n$$",
|
| 871 |
+
"text_format": "latex",
|
| 872 |
+
"bbox": [
|
| 873 |
+
349,
|
| 874 |
+
883,
|
| 875 |
+
648,
|
| 876 |
+
926
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 4
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "4.2 MULTIPLICATIVE INTEGRATION ",
|
| 883 |
+
"text_level": 1,
|
| 884 |
+
"bbox": [
|
| 885 |
+
176,
|
| 886 |
+
103,
|
| 887 |
+
434,
|
| 888 |
+
118
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 5
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "In the HMM cell, the integration of the previous recurrent state and the input embedding is modelled through an element-wise product instead of adding affine transformations of the two vectors. We can modify the Elman cell to do a similar multiplicative integration:3 ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
173,
|
| 897 |
+
130,
|
| 898 |
+
825,
|
| 899 |
+
171
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 5
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "equation",
|
| 905 |
+
"img_path": "images/d914f35fdab36b12916ad1ace92d9e7faffcc1cff48de257ba4b757035cdc1d5.jpg",
|
| 906 |
+
"text": "$$\n\\pmb { c } ^ { ( i ) } = \\sigma ( ( W \\pmb { c } ^ { ( i - 1 ) } ) \\circ ( U \\pmb { e } ^ { ( i - 1 ) } ) ) )\n$$",
|
| 907 |
+
"text_format": "latex",
|
| 908 |
+
"bbox": [
|
| 909 |
+
380,
|
| 910 |
+
179,
|
| 911 |
+
616,
|
| 912 |
+
199
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 5
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Or, using a single transformation matrix: ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
213,
|
| 922 |
+
441,
|
| 923 |
+
228
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 5
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "equation",
|
| 929 |
+
"img_path": "images/3ea7afbd011b72f9aec46682154ed0d3ccaef1f235633fed0222d0ae81f4b7f8.jpg",
|
| 930 |
+
"text": "$$\n\\pmb { c } ^ { ( i ) } = \\sigma ( \\pmb { W } ( \\pmb { c } ^ { ( i - 1 ) } \\circ e ^ { ( i - 1 ) } ) )\n$$",
|
| 931 |
+
"text_format": "latex",
|
| 932 |
+
"bbox": [
|
| 933 |
+
397,
|
| 934 |
+
234,
|
| 935 |
+
599,
|
| 936 |
+
255
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 5
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "4.3 SOFTMAX NON-LINEARITY ",
|
| 943 |
+
"text_level": 1,
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
270,
|
| 947 |
+
401,
|
| 948 |
+
285
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 5
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Finally, and most extreme, we experiment with replacing the sigmoid non-linearity with a softmax: ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
171,
|
| 957 |
+
296,
|
| 958 |
+
820,
|
| 959 |
+
311
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 5
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "equation",
|
| 965 |
+
"img_path": "images/9de52e28fab324daf15054025f3b3efb52a0310f1dcef08f8c500c584411cb82.jpg",
|
| 966 |
+
"text": "$$\n\\pmb { c } ^ { ( i ) } = \\mathrm { s o f t m a x } ( \\pmb { W } \\pmb { c } ^ { ( i - 1 ) } + \\pmb { U } \\pmb { e } ^ { ( i - 1 ) } )\n$$",
|
| 967 |
+
"text_format": "latex",
|
| 968 |
+
"bbox": [
|
| 969 |
+
370,
|
| 970 |
+
329,
|
| 971 |
+
627,
|
| 972 |
+
348
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 5
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "And a more flexible variant, where the softmax is applied only to compute the emission distribution, while the sigmoid non-linearity is still applied to recurrent state: ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
359,
|
| 982 |
+
825,
|
| 983 |
+
388
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 5
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "equation",
|
| 989 |
+
"img_path": "images/d9070b591dc3b296f34f3c1cd8bc3e39571c8b6c7a8bc90c2e80a1e449eca1cf.jpg",
|
| 990 |
+
"text": "$$\n\\begin{array} { r l } & { \\pmb { c } ^ { ( i ) } = ( \\pmb { W \\sigma } ( \\pmb { c } ^ { ( i - 1 ) } ) + \\pmb { U e } ^ { ( i - 1 ) } ) } \\\\ & { \\pmb { x } ^ { ( i ) } = \\mathrm { s o f t m a x } ( \\pmb { E } \\mathrm { s o f t m a x } ( \\pmb { c } ^ { ( i ) } ) \\pmb { w } ^ { ( i ) } ) . } \\end{array}\n$$",
|
| 991 |
+
"text_format": "latex",
|
| 992 |
+
"bbox": [
|
| 993 |
+
367,
|
| 994 |
+
412,
|
| 995 |
+
629,
|
| 996 |
+
457
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 5
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "5 LANGUAGE MODELING EXPERIMENTS ",
|
| 1003 |
+
"text_level": 1,
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
174,
|
| 1006 |
+
473,
|
| 1007 |
+
527,
|
| 1008 |
+
491
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 5
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Our formulations investigate a series of small architectural changes to HMMs and Elman cells. In particular, these changes raise questions about the expressivity and importance of (1) normalization within the recurrence and (2) independence assumptions during emission. In this section, we analyze the effects of these changes quantitatively via a standard language modeling benchmark. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
174,
|
| 1017 |
+
506,
|
| 1018 |
+
825,
|
| 1019 |
+
563
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 5
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "5.1 SETUP ",
|
| 1026 |
+
"text_level": 1,
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
174,
|
| 1029 |
+
579,
|
| 1030 |
+
261,
|
| 1031 |
+
594
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 5
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "We follow the standard PTB language modeling setup Chelba & Jelinek (1998); Mikolov et al. (2011). We work with one-layer models to enable a direct comparison between RNNs and HMMs and a budget of 10 million parameters (typically corresponding to hidden state sizes of around 900). Models are trained with batched backpropagation through time (35 steps). Input and output embeddings are tied in all models. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
174,
|
| 1040 |
+
606,
|
| 1041 |
+
825,
|
| 1042 |
+
676
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 5
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Models are optimized with a grid search over optimizer parameters for two strategies: $\\mathrm { S G D ^ { 4 } }$ and AMSProp. AMSProp is based on the optimization setup proposed by Melis et al. (2017).5 ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
683,
|
| 1052 |
+
821,
|
| 1053 |
+
712
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 5
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "5.2 RESULTS ",
|
| 1060 |
+
"text_level": 1,
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
176,
|
| 1063 |
+
728,
|
| 1064 |
+
279,
|
| 1065 |
+
742
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 5
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "We see from the results in Table 1 (also depicted in Figure 2) that the HMM models perform significantly worse than the Elman network, as expected. Interestingly, many of the HMM variants that in principle have more expressivity or weaker independence assumptions do not perform better than the vanilla HMM. This includes delaying the transition or emission softmax, and most of the feeding models. The exception is the gated feeding model, which does substantially better, showing that Table 2gating is an effective way of incorporating more context into the transition matrix. Using a sigmoid Perplexity PTB UPOSnon-linearity before the output of the HMM cell (instead of a softmax) does improve performance (by $4 4 \\mathrm { p p l } $ 288.15 45.16 61.66), and combining that with delaying the emission softmax gives a substantial improvement (almost another $1 0 0 \\mathrm { p p l }$ 142.31 42.09 52.41), making it much closer to some of the RNN variants. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
178,
|
| 1074 |
+
755,
|
| 1075 |
+
823,
|
| 1076 |
+
784
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 5
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "table",
|
| 1082 |
+
"img_path": "images/4d787334b1b615ca16140a5a6d3a34505ced83c1bfcc57e8984054e4c9052ab4.jpg",
|
| 1083 |
+
"table_caption": [
|
| 1084 |
+
"Table 1: Language Modeling Perplexity for our baseline and transformed models.5 4 284.59 225.366 5 287 207.95 "
|
| 1085 |
+
],
|
| 1086 |
+
"table_footnote": [],
|
| 1087 |
+
"table_body": "<table><tr><td>Model</td><td>dev ppl</td><td>Model</td><td>dev ppl</td></tr><tr><td>HMM</td><td></td><td>Elman</td><td></td></tr><tr><td></td><td>284.59</td><td>-softmax,HMMemission</td><td>313.84</td></tr><tr><td>- Tensor feeding</td><td>288.15</td><td>-HMM emission</td><td>312.63</td></tr><tr><td>- Addition feeding</td><td>288.62</td><td>- softmax non-linearity</td><td>207.95</td></tr><tr><td>- Gated feeding</td><td>243.51</td><td>- normalize before emit</td><td>225.36</td></tr><tr><td>-Delayed transition softmax</td><td>284.59</td><td>- multiplicative (single matrix)</td><td>107.45</td></tr><tr><td>-Delayed emission softmax</td><td>287.00</td><td>- multiplicative</td><td>100.71</td></tr><tr><td>-Delayed transition and emission softmax</td><td>293.72</td><td></td><td>87.27</td></tr><tr><td>- Sigmoid non-linearity</td><td>240.91</td><td></td><td></td></tr><tr><td>- Sigmoid non-linearity,delayed emission softmax</td><td>142.31</td><td>LSTM</td><td>80.61</td></tr></table>",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
179,
|
| 1090 |
+
101,
|
| 1091 |
+
818,
|
| 1092 |
+
256
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 6
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "image",
|
| 1098 |
+
"img_path": "images/c4b26ac64456719fce9b2c5a93981e316de3301ec22c05f2c75459cfa887607c.jpg",
|
| 1099 |
+
"image_caption": [
|
| 1100 |
+
"Figure 2: This plot shows how perplexities change under our transformations, and which lead the models to converge and pass each other. "
|
| 1101 |
+
],
|
| 1102 |
+
"image_footnote": [],
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
305,
|
| 1105 |
+
299,
|
| 1106 |
+
691,
|
| 1107 |
+
453
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 6
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
174,
|
| 1116 |
+
526,
|
| 1117 |
+
825,
|
| 1118 |
+
625
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 6
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "207.95 36.68 48.5487.27 44.97 54.59We also evaluate variants of Elman RNNs: Just replacing the sigmoid non-linearity with the softmax 80.61 function leads to a substantial drop in performance $\\mathrm { ( 1 2 0 ~ p p l ) }$ 55.08, although it still performs better than the HMM variants where the recurrent state is a distribution. Another way to investigate the effect of the softmax is to normalize the hidden state output just before applying the emission function, while keeping the sigmoid non-linearity: This performs somewhat worse than the softmax non-linearity, Table 2-1 PTB UPOSwhich indicates that it is significant whether the input to the emission function is normalized or softPerplexity PTB UPOSmaxed before multiplying with the (emission) embedding matrix. As a comparison for how much 288.15 45.16 61.66the softmax non-linearity acts as a bottleneck, a neural bigram model outperforms these approaches, 142.31 obtaining 177 validation perplexity on this same setup. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
174,
|
| 1127 |
+
631,
|
| 1128 |
+
825,
|
| 1129 |
+
757
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 6
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "207.95 36.68 48.54Replacing the RNN emission function with that of an HMM leads to even worse performance than 87.27 44.97 54.5980.61 45.75 55.08the HMM: Using a softmax non-linearity or a sigmoid followed by normalization does not make a significant difference. Using multiplicative integration leads to only a small drop in performance 25 50 125 200 275 3compared to a vanilla Elman RNN, and doing so with a single transformation matrix (making it comparable to what an RNN is doing) leads to only a small further drop. In contrast, preliminary experiments showed that the second transformation matrix is crucial in the performance of the vanilla Elman network. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
763,
|
| 1139 |
+
825,
|
| 1140 |
+
861
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 6
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "In our experimental setup an LSTM performs only slightly better than the Elman network (80 vs 87 perplexity). While more extensive hyperparameter tuning Melis et al. (2017) or more sophisticated optimization and regularization techniques Merity et al. (2017) would likely improve performance, that is not the goal of this evaluation. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
174,
|
| 1149 |
+
867,
|
| 1150 |
+
823,
|
| 1151 |
+
924
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 6
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "image",
|
| 1157 |
+
"img_path": "images/23eab0de6949949e7364c9835bef1c628e3d3746cb3f3ef857fe9acc538ffabf.jpg",
|
| 1158 |
+
"image_caption": [
|
| 1159 |
+
"Figure 3: Tagging accuracies (right) are plotted against perplexities from Table 1. We see a somewhat quadratic relationship. "
|
| 1160 |
+
],
|
| 1161 |
+
"image_footnote": [],
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
173,
|
| 1164 |
+
122,
|
| 1165 |
+
459,
|
| 1166 |
+
286
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 7
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "table",
|
| 1172 |
+
"img_path": "images/f222ee02f56dd48935c8c9bb741c743b0f502a6257e2f392fe018b0f7f80a888.jpg",
|
| 1173 |
+
"table_caption": [],
|
| 1174 |
+
"table_footnote": [],
|
| 1175 |
+
"table_body": "<table><tr><td>Model</td><td>PTB</td><td>UPOS</td></tr><tr><td>HMM</td><td></td><td></td></tr><tr><td></td><td>52.36</td><td>68.23</td></tr><tr><td>- Tensor feeding</td><td>45.16</td><td>61.66</td></tr><tr><td>- Gated feeding</td><td>44.62</td><td>59.64</td></tr><tr><td>- Sigmoid non-linearity - Sigmoid non-linearity with</td><td>31.82</td><td>44.13</td></tr><tr><td>delayed emission softmax</td><td>42.09</td><td>52.41</td></tr><tr><td>Elman</td><td></td><td></td></tr><tr><td>- softmax,HMM emission</td><td>30.86</td><td>45.85</td></tr><tr><td>- softmax non-linearity</td><td>36.68</td><td>48.54</td></tr><tr><td>1</td><td>44.97</td><td>54.59</td></tr><tr><td>LSTM</td><td>45.75</td><td>55.08</td></tr></table>",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
483,
|
| 1178 |
+
101,
|
| 1179 |
+
818,
|
| 1180 |
+
286
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 7
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Table 2: Tagging accuracies for several representative models. Accuracy is calculated by converting $p ( w )$ to $p ( t )$ according to WSJ tag distributions. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
473,
|
| 1189 |
+
296,
|
| 1190 |
+
834,
|
| 1191 |
+
338
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 7
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "6 SYNTACTIC EVALUATION ",
|
| 1198 |
+
"text_level": 1,
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
176,
|
| 1201 |
+
362,
|
| 1202 |
+
415,
|
| 1203 |
+
377
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 7
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "A strength of HMM bottlenecks is forcing the model to produce an interpretable hidden representation. A classic example of this property is part-of-speech tag induction. It is therefore natural to ask whether changes in the architecture of our models correlate with their ability to discover syntactic properties. We evaluate this by analyzing the models implicitly predicted tag distribution at each time step. Specifically, while no model is likely to predict the correct next word, we assume the HMMs errors will preserve basic tag-tag patterns of the language, and that this may not be true for RNNs. We test this by computing the accuracy of predicting the tag of the word in the sequence out of the next word distribution. None of the models were trained to perform this task. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
393,
|
| 1213 |
+
825,
|
| 1214 |
+
505
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 7
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "First, we compute a tag distribution $p ( t | w )$ for every word in the training portion of the Penn Treebank. Next, we multiply this value by the model’s $p ( w ) = \\widehat { x } _ { i }$ , and sum across the vocabulary. This provides us the model’s distribution over tags at the given time $p ( t ) _ { i }$ . We compare the most likely marginal tag against the ground truth to compute a tagging accuracy. This evaluation rewards models which place their emission probability mass predominantly on words of the correct part-of-speech. We compute this metric across both the full PTB tagset and the universal tags of Petrov et al. (2012). ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
174,
|
| 1223 |
+
511,
|
| 1224 |
+
823,
|
| 1225 |
+
598
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 7
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "The HMM allows for Viterbi decoding which allows us to compute $p ( t | \\mathrm { m a x } _ { \\mathrm { d i m } } ( c _ { i } ) )$ . The more distributed the models’ representations are, the more the tag distribution given the max dimension will differ from the complete marginal. For HMMs with distributional hidden states the maximum dimension provided the best performance. In contrast, Elman models perform best when conditioned on the full hidden state. Results are shown in Table 2 and plotted against perplexity in Figure 3.6 ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
174,
|
| 1234 |
+
604,
|
| 1235 |
+
825,
|
| 1236 |
+
674
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 7
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "7 RELATED WORK ",
|
| 1243 |
+
"text_level": 1,
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
176,
|
| 1246 |
+
694,
|
| 1247 |
+
344,
|
| 1248 |
+
710
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 7
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Recently, a number of recent papers have identified variants of gated RNNs which are simpler than LSTMs but perform competitively or satisfy properties that LSTMs lack. Foerster et al. (2017) proposed RNNs without recurrent non-linearities to improve interpretability. Balduzzi & Ghifary (2016) proposed gated RNN variants with type constraints. Peng et al. (2018) identified a class of RNNs called rational recurrences, in which the hidden states can be computed by WFSAs. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
174,
|
| 1257 |
+
726,
|
| 1258 |
+
825,
|
| 1259 |
+
795
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 7
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Another strand of recent work proposed neural models that learn discrete, interpretable structure: Yang et al. (2017) introduced a mixture of softmax model where the output distribution is conditioned on discrete latent variable. Shen et al. (2017) proposed a language model that jointly learns unsupervised syntactic (tree) structure, while Tran et al. (2016) used neural hidden Markov models for Part-of-Speech induction. Wiseman et al. (2018) and Wang et al. (2017) proposed models for segmental structure over sequences, while neural transduction models with discrete latent alignments have also been proposed Yu et al. (2016). ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
803,
|
| 1269 |
+
825,
|
| 1270 |
+
900
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 7
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "8 CONCLUSION ",
|
| 1277 |
+
"text_level": 1,
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
174,
|
| 1280 |
+
102,
|
| 1281 |
+
318,
|
| 1282 |
+
117
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 8
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "In this work, we presented a theoretical and empirical investigation into the model variants over the spectrum of possible hybridization between HMMs and RNNs. By carefully controlling for every design choices, we provide new insights into several factors including independence assumptions, the placement of softmax, and the use of nonliniarity and how these choices influence the interplay between expressiveness and interpretability. Comprehensive empirical results demonstrate that the key elements to better performance of the HMM are the use of a sigmoid instead of softmax linearity in the recurrent cell, and the use of an unnormalized output distribution matrix in the emission computation. Multiplicative integration of the previous hidden state and input embedding, and intermediate normalizations in the cell computation are less consequential. We also find that HMM outperforms other RNNs variants in a next POS tag prediction task, which demonstrates the advantages of models with discrete bottlenecks in increased interpretability. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
174,
|
| 1291 |
+
133,
|
| 1292 |
+
825,
|
| 1293 |
+
286
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 8
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "REFERENCES ",
|
| 1300 |
+
"text_level": 1,
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
176,
|
| 1303 |
+
308,
|
| 1304 |
+
285,
|
| 1305 |
+
323
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 8
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "David Balduzzi and Muhammad Ghifary. Strongly-typed recurrent neural networks. CoRR, abs/1602.02218, 2016. URL http://arxiv.org/abs/1602.02218. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
174,
|
| 1314 |
+
332,
|
| 1315 |
+
823,
|
| 1316 |
+
361
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 8
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "Leonard E. Baum and J. A. Eagon. An inequality with applications to statistical estimation for probabilistic functions of markov processes and to a model for ecology. Bulletin of the American Mathematical Society, 73(3):360 – 363, 1967. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
174,
|
| 1325 |
+
369,
|
| 1326 |
+
825,
|
| 1327 |
+
412
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 8
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "Ciprian Chelba and Frederick Jelinek. Exploiting syntactic structure for language modeling. In Proceedings of the 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics, Volume 1, pp. 225–231, Montreal, Quebec, Canada, August 1998. Association for Computational Linguistics. doi: 10.3115/980845. 980882. URL http://www.aclweb.org/anthology/P98-1035. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
173,
|
| 1336 |
+
422,
|
| 1337 |
+
825,
|
| 1338 |
+
493
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 8
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, Doha, Qatar, October 2014. Association for Computational Linguistics. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
174,
|
| 1347 |
+
502,
|
| 1348 |
+
825,
|
| 1349 |
+
573
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 8
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "A Dempster, N Laird, and D Rubin. Maximum likelihood from incomplete data via the em algorithm. 01 1977. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
174,
|
| 1358 |
+
583,
|
| 1359 |
+
820,
|
| 1360 |
+
612
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 8
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "Jason Eisner. Inside-outside and forward-backward algorithms are just backprop (tutorial paper). In Proceedings of the Workshop on Structured Prediction for NLP, pp. 1–17, Austin, TX, November 2016. Association for Computational Linguistics. URL http://aclweb.org/ anthology/W16-5901. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
173,
|
| 1369 |
+
621,
|
| 1370 |
+
825,
|
| 1371 |
+
678
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 8
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "J Elman. Finding structure in time. 14(2):179–211, 06 1990. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
173,
|
| 1380 |
+
688,
|
| 1381 |
+
573,
|
| 1382 |
+
703
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 8
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "Jakob N Foerster, Justin Gilmer, Jascha Sohl-Dickstein, Jan Chorowski, and David Sussillo. Input switched affine networks: An rnn architecture designed for interpretability. In International Conference on Machine Learning, pp. 1136–1145, 2017. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
173,
|
| 1391 |
+
713,
|
| 1392 |
+
826,
|
| 1393 |
+
756
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 8
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "Ian Goodfellow, Yoshua Bengio, Aaron Courville, and Yoshua Bengio. Deep learning, volume 1. MIT Press, 2016. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
169,
|
| 1402 |
+
765,
|
| 1403 |
+
823,
|
| 1404 |
+
795
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 8
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 9(8): 1735–1780, 1997. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
173,
|
| 1413 |
+
804,
|
| 1414 |
+
823,
|
| 1415 |
+
833
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 8
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Frederick Jelinek, Lalit R. Bahl, and Robert L Mercer. Design of a linguistic statistical decoder for the recognition of continuous speech. IEEE Transactions on Information Theory, 21(3):250–256, May 1975. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
173,
|
| 1424 |
+
842,
|
| 1425 |
+
823,
|
| 1426 |
+
886
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 8
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Michael I Jordan. Serial order: A parallel distributed processsing approach. Technical report, University of California, San Diego, 1986. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
174,
|
| 1435 |
+
895,
|
| 1436 |
+
821,
|
| 1437 |
+
924
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 8
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
173,
|
| 1446 |
+
103,
|
| 1447 |
+
825,
|
| 1448 |
+
132
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 9
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "Kenton Lee, Omer Levy, and Luke S Zettlemoyer. Recurrent additive networks. arXiv preprint arXiv:1705.07393, 05 2017. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
171,
|
| 1457 |
+
141,
|
| 1458 |
+
823,
|
| 1459 |
+
170
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 9
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. arXiv preprint arXiv:1707.05589, 2017. ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
171,
|
| 1468 |
+
179,
|
| 1469 |
+
823,
|
| 1470 |
+
208
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 9
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing LSTM language models. CoRR, abs/1708.02182, 2017. URL http://arxiv.org/abs/1708. 02182. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
174,
|
| 1479 |
+
215,
|
| 1480 |
+
825,
|
| 1481 |
+
258
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 9
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "Toma´s Mikolov, Anoop Deoras, Stefan Kombrink, Luk ˇ a´s Burget, and Jan ˇ Cernock ˇ y. Empirical \\` evaluation and combination of advanced language modeling techniques. In Twelfth Annual Conference of the International Speech Communication Association, 2011. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
174,
|
| 1490 |
+
267,
|
| 1491 |
+
823,
|
| 1492 |
+
310
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 9
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "Hao Peng, Roy Schwartz, Sam Thomson, and Noah A. Smith. Rational recurrences. In Proc. of EMNLP, 2018. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
173,
|
| 1501 |
+
319,
|
| 1502 |
+
823,
|
| 1503 |
+
348
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 9
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "Slav Petrov, Dipanjan Das, and Ryan McDonald. A universal part-of-speech tagset. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC-2012), pp. 2089–2096, Istanbul, Turkey, 05 2012. ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
173,
|
| 1512 |
+
357,
|
| 1513 |
+
825,
|
| 1514 |
+
400
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 9
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. 2018. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
171,
|
| 1523 |
+
409,
|
| 1524 |
+
818,
|
| 1525 |
+
425
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 9
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron C. Courville. Neural language modeling by jointly learning syntax and lexicon. CoRR, abs/1711.02013, 2017. URL http://arxiv. org/abs/1711.02013. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
174,
|
| 1534 |
+
433,
|
| 1535 |
+
825,
|
| 1536 |
+
476
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 9
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "Ke M. Tran, Yonatan Bisk, Ashish Vaswani, Daniel Marcu, and Kevin Knight. Unsupervised neural hidden markov models. In Proceedings of the Workshop on Structured Prediction for NLP, pp. 63–71, Austin, TX, November 2016. Association for Computational Linguistics. URL http: //aclweb.org/anthology/W16-5907. ",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
174,
|
| 1545 |
+
484,
|
| 1546 |
+
825,
|
| 1547 |
+
541
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 9
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "Chong Wang, Yining Wang, Po-Sen Huang, Abdelrahman Mohamed, Dengyong Zhou, and Li Deng. Sequence modeling via segmentations. arXiv preprint arXiv:1702.07463, 2017. ",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
173,
|
| 1556 |
+
549,
|
| 1557 |
+
821,
|
| 1558 |
+
579
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 9
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "T Wessels and Christian W Omlin. Refining hidden markov models with recurrent neural networks. In Proceedings of the IEEE-INNS-ENNS International Joint Conference on Neural Networks, volume 2, pp. 271–276. IEEE, 2000. ",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
176,
|
| 1567 |
+
587,
|
| 1568 |
+
825,
|
| 1569 |
+
630
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 9
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "text",
|
| 1575 |
+
"text": "Sam Wiseman, Stuart M Schieber, and Alexander M Rush. Learning neural templates for text generation. arXiv preprint arXiv:1808.10122, 08 2018. ",
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
171,
|
| 1578 |
+
638,
|
| 1579 |
+
825,
|
| 1580 |
+
667
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 9
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "Yuhuai Wu, Saizheng Zhang, Ying Zhang, Yoshua Bengio, and Ruslan R Salakhutdinov. On multiplicative integration with recurrent neural networks. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 2856–2864. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6215-on-multiplicative-integration-with-recurrent-neural-networks. pdf. ",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
174,
|
| 1589 |
+
676,
|
| 1590 |
+
838,
|
| 1591 |
+
761
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 9
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: A high-rank rnn language model. arXiv preprint arXiv:1711.03953, 2017. ",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
173,
|
| 1600 |
+
770,
|
| 1601 |
+
823,
|
| 1602 |
+
799
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 9
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "Lei Yu, Jan Buys, and Phil Blunsom. Online segment to segment neural transduction. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1307–1316, Austin, Texas, November 2016. Association for Computational Linguistics. URL https:// aclweb.org/anthology/D16-1138. ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
173,
|
| 1611 |
+
808,
|
| 1612 |
+
826,
|
| 1613 |
+
864
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 9
|
| 1616 |
+
}
|
| 1617 |
+
]
|
parse/train/HyesB2RqFQ/HyesB2RqFQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyesB2RqFQ/HyesB2RqFQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJAr0QFxe/SJAr0QFxe.md
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DEMYSTIFYING RESNET
|
| 2 |
+
|
| 3 |
+
# Jiantao Jiao, Yanjun Han, Tsachy Weissman
|
| 4 |
+
|
| 5 |
+
Sihan Li
|
| 6 |
+
Department of Electronic Engineering
|
| 7 |
+
Tsinghua University
|
| 8 |
+
Beijing 100084, China
|
| 9 |
+
lisihan13@mails.tsinghua.edu.cn
|
| 10 |
+
Department of Electrical Engineering
|
| 11 |
+
Stanford University
|
| 12 |
+
Stanford, CA 94305, USA
|
| 13 |
+
{jiantao,yjhan,tsachy}@stanford.edu
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
We provide a theoretical explanation for the great performance of ResNet via the study of deep linear networks and some nonlinear variants. We show that with or without nonlinearities, by adding shortcuts that have depth two, the condition number of the Hessian of the loss function at the zero initial point is depthinvariant, which makes training very deep models no more difficult than shallow ones. Shortcuts of higher depth result in an extremely flat (high-order) stationary point initially, from which the optimization algorithm is hard to escape. The 1- shortcut, however, is essentially equivalent to no shortcuts. Extensive experiments are provided accompanying our theoretical results. We show that initializing the network to small weights with 2-shortcuts achieves significantly better results than random Gaussian (Xavier) initialization, orthogonal initialization, and shortcuts of deeper depth, from various perspectives ranging from final loss, learning dynamics and stability, to the behavior of the Hessian along the learning process.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
Residual network (ResNet) was first proposed in He et al. (2015a) and extended in He et al. (2016). It followed a principled approach to add shortcut connections every two layers to a VGG-style network (Simonyan & Zisserman, 2014). The new network becomes easier to train, and achieves both lower training and test errors. Using the new structure, He et al. (2015a) managed to train a network with 1001 layers, which was virtually impossible before. Unlike Highway Network (Srivastava et al., 2015a;b) which not only has shortcut paths but also borrows the idea of gates from LSTM (Sainath et al., 2013), ResNet does not have gates. Later He et al. (2016) found that by keeping a clean shortcut path, residual networks will perform even better.
|
| 22 |
+
|
| 23 |
+
Many attempts have been made to improve ResNet to a further extent. “ResNet in ResNet” (Targ et al., 2016) adds more convolution layers and data paths to each layer, making it capable of representing several types of residual units. “ResNets of ResNets” (Zhang et al., 2016) construct multilevel shortcut connections, which means there exist shortcuts that skip multiple residual units. Wide Residual Networks (Zagoruyko & Komodakis, 2016) makes the residual network shorter but wider, and achieves state of the art results on several datasets while using a shallower network. Moreover, some existing models are also reported to be improved by shortcut connections, including Inceptionv4 (Szegedy et al., 2016), in which shortcut connections make the deep network easier to train.
|
| 24 |
+
|
| 25 |
+
Why are residual networks so easy to train? He et al. (2015a) suggests that layers in residual networks are learning residual mappings, making them easier to represent identity mappings, which prevents the networks from degradation when the depths of the networks increase. However, Veit et al. (2016) claims that ResNets are actually ensembles of shallow networks, which means they do not solve the problem of training deep networks completely.
|
| 26 |
+
|
| 27 |
+
We propose a theoretical explanation for the great performance of ResNet. We concur with He et al. (2015a) that the key contribution of ResNet should be some special structure of the loss function that makes training very deep models no more difficult than shallow ones. Analysis, however, seems non-trivial. Quoting He et al. (2015a):
|
| 28 |
+
|
| 29 |
+
“Deeper non-bottleneck ResNets (e.g., Fig. 5 left) also gain accuracy from increased depth (as shown on CIFAR-10), but are not as economical as the bottleneck ResNets. So the usage of bottleneck designs is mainly due to practical considerations. We further note that the degradation problem of plain nets is also witnessed for the bottleneck designs.
|
| 30 |
+
|
| 31 |
+
Their empirical observations are inspiring. First, the 1-shortcuts mentioned in the first paragraph do not work. Second, noting that the non-bottleneck ResNets have 2-shortcuts, but the bottleneck ResNets use 3-shortcuts, one sees that shortcuts with depth three also do not work. Hence, a reasonable theoretical explanation must be able to distinguish the 2-shortcut from shortcuts of other depths, and clearly demonstrate why the 2-shortcuts are special and are able to ease the optimization process so significantly for deep models, while shortcuts of other depths may not do the job.
|
| 32 |
+
|
| 33 |
+
Aiming at explaining the performance of 2-shortcuts, we need to eliminate other variables that may contribute to the success of ResNet. Indeed, one may argue that the deep structure of ResNet may give it better representation power (lower approximation error), which contributes to lower training errors. To eliminate this effect, we focus on deep linear networks, where deeper models do not have better approximation properties. The special role of 2-shortcuts naturally arises in the study.
|
| 34 |
+
|
| 35 |
+
# 2 MAIN RESULTS
|
| 36 |
+
|
| 37 |
+
Our work reveals that non-degenerate depth-invariant initial condition numbers, a unique property of residual networks with 2-shortcuts, contributed to the success of ResNet. In fact, in a linear network that will be defined rigorously later, the condition number of Hessian of the Frobenius loss function at the zero initial point is
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\operatorname { c o n d } ( H ) = { \sqrt { \operatorname { c o n d } ( ( \Sigma ^ { X X } - \Sigma ^ { Y X } ) ^ { T } ( \Sigma ^ { X X } - \Sigma ^ { Y X } ) ) } } ,
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
which is independent of the number of layers. Here $\Sigma ^ { X X }$ and $\Sigma ^ { Y X }$ denote the input-input and the output-input correlation matrices, defined in Section 3.3. The condition number of a possibly non-PSD matrix is defined as:
|
| 44 |
+
|
| 45 |
+
Definition 1. The condition number of a matrix $A$ is defined as
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\operatorname { c o n d } ( A ) = \frac { \sigma _ { \operatorname* { m a x } } ( A ) } { \sigma _ { \operatorname* { m i n } } ( A ) } ,
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
where $\sigma _ { \mathrm { m a x } } ( A )$ and $\sigma _ { \mathrm { m i n } } ( A )$ are the maximum and minimum of singular values of $A$ . In particular, if $A$ is normal, i.e. $A ^ { T } A \stackrel { \cdot } { = } A A ^ { T }$ , the definition can be simplified to 1
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\mathrm { c o n d } ( A ) = { \frac { | \lambda ( A ) | _ { \operatorname* { m a x } } } { | \lambda ( A ) | _ { \operatorname* { m i n } } } } ,
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $| \lambda ( A ) | _ { \mathrm { m a x } }$ and $| \lambda ( A ) | _ { \mathrm { m i n } }$ are the maximum and minimum of the absolute values of eigenvalues of $A$ .
|
| 58 |
+
|
| 59 |
+
Moreover, the zero initial point for ResNet with 2-shortcuts is in fact a so-called strict saddle point (Ge et al., 2015), which are proved to be easy to escape from.
|
| 60 |
+
|
| 61 |
+
Why shortcuts of other depths do not work? We show that the Hessian at the zero initial point for the 1-shortcut ResNet has condition number growing unboundedly for deep nets. As is well known in convex optimization theory, large condition numbers can have enormous adversarial impact on the convergence of first order methods (Nemirovski, 2005). Hence, it is quite clear that starting training at a point with a huge condition number would make the algorithm very difficult to escape from the initial point, making 1-shortcut ResNet no better than conventional approaches.
|
| 62 |
+
|
| 63 |
+
For shortcuts with depth deeper than two, the Hessian at the zero initial point is a zero matrix, making it a higher-order stationary point. Intuitively, the higher order the stationary point is, the harder it is to escape from it. Indeed, it is supported both in theory (Anandkumar & Ge, 2016) and by our experiments.
|
| 64 |
+
|
| 65 |
+
One may still ask: why are we interested in the Hessian at the zero initial point? It is because in order for the outputs of deep neural networks not explode, the singular values of the mapping of each layer are not supposed to be deviating too much from one. Indeed, it is because it is extremely challenging to keep Qnum of layersi=1 λi from exploding or vanishing without keeping all of the λi having unit norm. However, by design ResNet with shortcuts already have an identity mapping every few layers, which forces the mappings inside the shortcuts to have small operator norms. Hence, analyzing the network at zero initial point gives a decent characterization of the searching environment of the optimization algorithm.
|
| 66 |
+
|
| 67 |
+
Our results also shows that the form of Hessian is more important than the existance of nonlinearities when training the networks. The behaviors of the networks we studied are consistent across both linear and nonlinear structures, where networks with clearer Hessians are much easier to achieve lower training errors.
|
| 68 |
+
|
| 69 |
+
On the other hand, our experiments reveal that orthogonal initialization (Saxe et al., 2013) is suboptimal. Although better than Xavier initialization (Glorot & Bengio, 2010), the initial condition numbers of the networks still explode as the networks become deeper, which means the networks are still initialized on “bad” submanifolds that are hard to optimize using gradient descent.
|
| 70 |
+
|
| 71 |
+
# 3 MODEL
|
| 72 |
+
|
| 73 |
+
# 3.1 DEEP LINEAR NETWORKS
|
| 74 |
+
|
| 75 |
+
Deep linear networks are feed-forward neural networks that only contain linear units, which means their input-output mappings are simply linear transformations. Apparently, increasing their depths will not affect the representational power of the networks. However, linear networks with depth deeper than one show nonlinear dynamics of training (Saxe et al., 2013). As a result, analyzing the training of deep linear networks gives us a better understanding of the training of non-linear networks.
|
| 76 |
+
|
| 77 |
+
Much theoretical work has been done on deep linear networks. Kawaguchi (2016) extended the work of Choromanska et al. (2015a;b) and proved that with few assumptions, every local minimum point in deep linear networks is a global minimum point. This means that the difficulties in the training of deep linear networks mostly come from saddle points on the loss surfaces, which are also the main causes of slow learning in nonlinear networks (Pascanu et al., 2014).
|
| 78 |
+
|
| 79 |
+
Saxe et al. (2013) studied the dynamics of training using gradient descent. They found that for a special class of initial conditions, which could be obtained from greedy layerwise pre-training, the training time for a deep linear network with an infinity depth can still be finite. Furthermore, they found that by setting the initial weights to random orthogonal matrices (produced by performing QR or SVD decompositions on random Gaussian matrices), the network will still have a depth independent learning time. They argue that it is caused by the eigenvalue and singular value spectra of the end-to-end linear transformation. When using orthogonal initialization, the overall transformation is an orthogonal matrix, which has all the singular values equal to 1. In the meantime, when using scaled Gaussian initialization, most of the singular values are close to zero, making the network unsuitable for backpropagating errors. However, this explanation is not sufficient to prove that the training difficulty of orthogonal initialized networks is depth-invariant. It only gives us an intuition on why orthogonal initialization performs better than scaled Gaussian initialization.
|
| 80 |
+
|
| 81 |
+
Thus, we use deep linear networks to study the effect of shortcut connections. After adding the shortcuts, the overall model is still linear and the global minimum does not change.
|
| 82 |
+
|
| 83 |
+
# 3.2 NETWORK STRUCTURE
|
| 84 |
+
|
| 85 |
+
We first generalize a linear network by adding shortcuts to it to make it a linear residual network. We organize the network into $R$ residual units. The $r$ -th residual unit consists of $L _ { r }$ layers whose
|
| 86 |
+
|
| 87 |
+
weights are $W ^ { r , 1 } , \ldots , W ^ { r , L _ { r } - 1 }$ , denoted as the transformation path, as well as a shortcut $S ^ { r }$ connecting from the first layer to the last one, denoted as the shortcut path. The input-output mapping can be written as
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
y = \prod _ { r = 1 } ^ { R } ( \prod _ { l = 1 } ^ { L _ { r } - 1 } W ^ { r , l } + S ^ { r } ) x = W x ,
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $x \in \mathbb { R } ^ { d _ { x } } , y \in \mathbb { R } ^ { d _ { y } } , W \in \mathbb { R } ^ { d _ { y } \times d _ { x } }$ . Here if $b \_ { a }$ , $\textstyle \prod _ { i = a } ^ { b } W ^ { i }$ denotes $W ^ { b } W ^ { ( b - 1 ) } \cdot \cdot \cdot W ^ { ( a + 1 ) } W ^ { a }$ , otherwise it denotes an identity mapping. The matrix $W$ represents the combination of all the linear transformations in the network. Note that by setting all the shortcuts to zeros, the network will go back to a $\begin{array} { r } { ( \sum _ { r } ( L _ { r } - 1 ) + 1 ) } \end{array}$ -layer plain linear network.
|
| 94 |
+
|
| 95 |
+
Instead of analyzing the general form, we concentrate on a special kind of linear residual networks, where all the residual units are the same.
|
| 96 |
+
|
| 97 |
+
Definition 2. A linear residual network is called an $n$ -shortcut linear network if
|
| 98 |
+
|
| 99 |
+
1. its layers have the same dimension (so that $d _ { x } = d _ { y }$ );
|
| 100 |
+
2. its shortcuts are identity matrices;
|
| 101 |
+
3. its shortcuts have the same depth $n$ .
|
| 102 |
+
|
| 103 |
+
The input-output mapping for such a network becomes
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
y = \prod _ { r = 1 } ^ { R } ( \prod _ { l = 1 } ^ { n } W ^ { r , l } + I _ { d _ { x } } ) x = W x ,
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $W ^ { r , l } \in \mathbb { R } ^ { d _ { x } \times d _ { x } }$ .
|
| 110 |
+
|
| 111 |
+
Then we add some activation functions to the networks. We concentrate on the case where activation functions are on the transformation paths, which is also the case in the latest ResNet (He et al., 2016).
|
| 112 |
+
|
| 113 |
+
Definition 3. An $n$ -shortcut linear network becomes an $n$ -shortcut network if element-wise activation functions $\sigma _ { \mathrm { p r e } } ( x ) , \sigma _ { \mathrm { m i d } } ( x ) , \sigma _ { \mathrm { p o s t } } ( x )$ are added at the transformation paths, where on a transformation path, $\sigma _ { \mathrm { p r e } } ( x )$ is added before the first weight matrix, $\sigma _ { \mathrm { m i d } } ( x )$ is added between two weight matrixes and $\sigma _ { \mathrm { p o s t } } ( x )$ is added after the last weight matrix.
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\sqrt { - \frac { p r e } { ( \ p r e ) } \psi _ { \psi } ^ { 1 } ( \ m i d ) \psi _ { \psi } ^ { 2 } ( \ m s t ) } ^ { \gamma } =
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
Figure 1: An example of different position for nonlinearities in a residual unit of a 2-shortcut network.
|
| 120 |
+
|
| 121 |
+
Note that $n$ -shortcut linear networks are special cases of $n$ -shortcut networks, where all the activation functions are identity mappings.
|
| 122 |
+
|
| 123 |
+
# 3.3 OPTIMIZATION
|
| 124 |
+
|
| 125 |
+
We denote the collection of all the variable weight parameters in an $n$ -shortcut linear network as w. Consider $m$ training samples $\{ x ^ { \mu } , y ^ { \mu } \} , \mu = 1 , \ldots , m$ . Using Frobenius loss, for an $n$ -shortcut linear network, we define the loss function as follows:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
L ( \mathbf { w } ) = \frac { 1 } { 2 m } \sum _ { \mu = 1 } ^ { m } \lVert y ^ { \mu } - W x ^ { \mu } \rVert _ { 2 } ^ { 2 } = \frac { 1 } { 2 m } \lVert Y - W X \rVert _ { F } ^ { 2 } ,
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $x ^ { \mu } , y ^ { \mu }$ are the $\mu$ -th columns of $X , Y$ , and $\left\| \cdot \right\| _ { F }$ denotes the Frobenius norm. Using gradient descent with learning rate $\alpha$ , we have the weights updating rules as
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\Delta W ^ { r , l } = \alpha ( W _ { \mathrm { a f t e r } } ^ { r } W _ { \mathrm { a f t e r } } ^ { r , l } ) ^ { T } ( \Sigma ^ { Y X } - W \Sigma ^ { X X } ) ( W _ { \mathrm { b e f o r e } } ^ { r , l } W _ { \mathrm { b e f o r e } } ^ { r } ) ^ { T } ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
where $\Sigma ^ { X X }$ and $\Sigma ^ { Y X }$ denote the input-input and the output-input correlation matrices, defined as
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\begin{array} { l } { { \displaystyle \Sigma ^ { X X } = \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } x ^ { \mu } ( x ^ { \mu } ) ^ { T } } } \\ { { \displaystyle \Sigma ^ { Y X } = \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } y ^ { \mu } ( x ^ { \mu } ) ^ { T } . } } \end{array}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
Here $W _ { \mathrm { b e f o r e } } ^ { r } , W _ { \mathrm { a f t e r } } ^ { r }$ denote the linear mappings before and after the $r$ -th residual unit, $W _ { \mathrm { b e f o r e } } ^ { r , l } , W _ { \mathrm { a f t e r } } ^ { r , l }$ denote the linear mappings before and after $W ^ { r , l }$ within the transformation path of the $r$ -th residual unit. In other words, the overall transformation can be represented as
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
y = W _ { \mathrm { a f t e r } } ^ { r } ( W _ { \mathrm { a f t e r } } ^ { r , l } W ^ { r , l } W _ { \mathrm { b e f o r e } } ^ { r , l } + I _ { d _ { x } } ) W _ { \mathrm { b e f o r e } } ^ { r } x .
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
# 4 THEORETICAL STUDY
|
| 150 |
+
|
| 151 |
+
# 4.1 INITIAL POINT PROPERTIES
|
| 152 |
+
|
| 153 |
+
Before we analyze the initial point properties of $n$ -shortcut networks, we have to choose the way to initialize them. ResNet uses MSRA initialization (He et al., 2015b). It is a kind of scaled Gaussian initialization that tries to keep the variances of signals along a transformation path, which is also the idea behind Xavier initialization (Glorot & Bengio, 2010). However, because of the shortcut paths, the output variance of the entire network will actually explode as the network becomes deeper. Batch normalization units partly solved this problem in ResNet, but still they cannot prevent the large output variance in a deep network.
|
| 154 |
+
|
| 155 |
+
A simple idea is to zero initialize all the weights, so that the output variances of residual units stay the same along the network. It is worth noting that as found in He et al. (2015a), the deeper ResNet has smaller magnitudes of layer responses. This phenomenon has been confirmed in our experiments. As illustrated in Figure 2 and Figure 3, the deeper a residual network is, the small its average Frobenius norm of weight matrixes is, both during the traning process and when the training ends. Also, Hardt & Ma (2016) proves that if all the weight matrixes have small norms, a linear residual network will have no critical points other than the global optimum.
|
| 156 |
+
|
| 157 |
+
All these evidences indicate that zero is spacial in a residual network: as the network becomes deeper, the training tends to end up around it. Thus, we are looking into the Hessian at zero. As the zero is a saddle point, in our experiments we use zero initialization with small random perturbations to escape from it. We first Xavier initialize the weight matrixes, and then multiply a small constant (0,01) to them.
|
| 158 |
+
|
| 159 |
+
We begin with the definition of $k$ -th order stationary point.
|
| 160 |
+
|
| 161 |
+
Definition 4. Suppose function $f ( x )$ admits $k$ -th order Taylor expansion at point $x _ { 0 }$ . We say that the point $x _ { 0 }$ is a $k$ -th order stationary point of $f ( x )$ if the corresponding $k$ -th order Taylor expansion of $f ( x )$ at $x = x _ { 0 }$ is a constant: $f ( \dot { x } ) \dot { = } f ( x _ { 0 } ) \dot { + } o ( \| x - x _ { 0 } \| _ { 2 } ^ { k } )$ .
|
| 162 |
+
|
| 163 |
+
Now we state our main theorem, whose proof can be found in Appendix A.
|
| 164 |
+
|
| 165 |
+
Theorem 1. Assume that $\sigma _ { \mathrm { m i d } } ( 0 ) = \sigma _ { \mathrm { p o s t } } ( 0 ) = 0$ and all of $\sigma _ { \mathrm { p r e } } ^ { ( k ) } ( 0 ) , \sigma _ { \mathrm { m i d } } ^ { ( k ) } ( 0 ) , \sigma _ { \mathrm { p o s t } } ^ { ( k ) } ( 0 ) , 1 \le k \le$ exist. For the loss function of an $n$ -shortcut network, at point zero,
|
| 166 |
+
|
| 167 |
+
1. if $n \geq 2$ , it is an $( n - 1 ) t h$ -order stationary point. In particular, if $n \geq 3$ , the Hessian is $a$ zero matrix;
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 2: The average Frobenius norms of ResNets of different depths during the training process. The pre-ResNet implementation in https://github.com/facebook/fb.resnet.torch is used. The learning rate is initialized to 0.1, decreased to 0.01 at the $8 1 ^ { \mathrm { s t } }$ epoch (marked with circles) and decreased to 0.001 at the $1 2 2 ^ { \mathrm { n d } }$ epoch (marked with triangles). Each model is trained for 200 epochs.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 3: The average Frobenius norms of 2-shortcut networks of different depths during the training process when zero initialized. Left: Without nonlinearities. Right: With ReLUs at mid positions.
|
| 174 |
+
|
| 175 |
+
2. if $n = 2$ , the Hessian can be written as
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
H = \left[ \begin{array} { c c c c c } { \mathbf { 0 } } & { A ^ { T } } & & & \\ { A } & { \mathbf { 0 } } & & & \\ & & { \mathbf { 0 } } & { A ^ { T } } & \\ & & & { A } & { \mathbf { 0 } } & \\ & & & & { \ddots } \end{array} \right] ,
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
whose condition number is
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
\mathrm { c o n d } ( H ) = \sqrt { \mathrm { c o n d } \big ( \big ( \Sigma ^ { X \sigma _ { \mathrm { p r e } } ( X ) } - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } ( X ) } \big ) ^ { T } \big ( \Sigma ^ { X \sigma _ { \mathrm { p r e } } ( X ) } - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } ( X ) } \big ) \big ) } ,
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
where $A$ only depends on the training set and the activation functions. Except for degenerate cases, it is $a$ strict saddle point (Ge et al., 2015).
|
| 188 |
+
|
| 189 |
+
3. if $n = 1$ , the Hessian can be written as
|
| 190 |
+
|
| 191 |
+
$$
|
| 192 |
+
H = { \left[ \begin{array} { l l l l l } { B } & { A ^ { T } } & { A ^ { T } } & { \cdots } & { A ^ { T } } \\ { A } & { B } & { A ^ { T } } & { \cdots } & { A ^ { T } } \\ { A } & { A } & { B } & & { \vdots } \\ { \vdots } & { \vdots } & & { \ddots } & { A ^ { T } } \\ { A } & { A } & { \cdots } & { A } & { B } \end{array} \right] }
|
| 193 |
+
$$
|
| 194 |
+
|
| 195 |
+
where $A , B$ only depend on the training set and the activation functions.
|
| 196 |
+
|
| 197 |
+
Theorem 1 shows that the condition numbers of 2-shortcut networks are depth-invariant with a nice structure of eigenvalues. Indeed, the eigenvalues of the Hessian $H$ at the zero initial point are multiple copies of $\pm { \sqrt { \mathrm { e i g s } ( A ^ { T } A ) } }$ , and the number of copies is equal to the number of shortcut connections.
|
| 198 |
+
|
| 199 |
+
The Hessian at zero initial point for the 1-shortcut linear network follows block Toeplitz structure, which has been well studied in the literature. In particular, its condition number tends to explode as the number of layers increase (Gray, 2006).
|
| 200 |
+
|
| 201 |
+
The assumptions hold for most activation functions including tanh, symmetric sigmoid and ReLU (Nair & Hinton, 2010). Note that although ReLU does not have derivatives at zero, one may do a local polynomial approximation to yield $\bar { \sigma } ^ { ( k ) } , 1 \le k \le \operatorname* { m a x } ( n - 1 , 2 )$ .
|
| 202 |
+
|
| 203 |
+
To get intuitive explanations of the theorems, imagine changing parameters in an $n$ -shortcut network. One has to change at least $n$ parameters to make any difference in the loss. So zero is an $( n - 1 ) \operatorname { t h } .$ - order stationary point. Notice that the higher the order of a stationary point, the more difficult for a first order method to escape from it.
|
| 204 |
+
|
| 205 |
+
On the other hand, if $n = 2$ , one will have to change two parameters in the same residual unit but different weight matrices to affect the loss, leading to a clear block diagonal Hessian.
|
| 206 |
+
|
| 207 |
+
# 4.2 LEARNING DYNAMICS
|
| 208 |
+
|
| 209 |
+
To understand Equation (7) better, we can take $n$ -shortcut linear networks to two extremes. First, when $n = 1$ , let $\bar { V } ^ { r , 1 } = W ^ { r , 1 } + I _ { d _ { x } } , r = 1 , \ldots , R - 1$ . As $I _ { d _ { x } }$ is a constant, we have
|
| 210 |
+
|
| 211 |
+
$$
|
| 212 |
+
\Delta V ^ { r , 1 } = \alpha \big ( \prod _ { r ^ { \prime } = r + 1 } ^ { R - 1 } V ^ { r ^ { \prime } , 1 } \big ) ^ { T } \big ( \Sigma ^ { Y X } - ( \prod _ { r ^ { \prime } = 1 } ^ { R - 1 } V ^ { r ^ { \prime } , 1 } ) \Sigma ^ { X X } \big ) ( \prod _ { r ^ { \prime } = 1 } ^ { r - 1 } V ^ { r ^ { \prime } , 1 } ) ^ { T } ,
|
| 213 |
+
$$
|
| 214 |
+
|
| 215 |
+
which can be seen as a linear network with identity initialization, a special case of orthogonal initialization, if the original 1-shortcut network is zero initialized.
|
| 216 |
+
|
| 217 |
+
On the other side, if the number of shortcut connections $R = 1$ , the shortcut will only change the distribution of the output training set from $Y$ to $Y - X$ . These two extremes are illustrated in Figure 4
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 4: Equivalents of two extremes of $n$ -shortcut linear networks. 1-shortcut linear networks are equivalent to linear networks with identity initialization, while skip-all shortcuts will only change the effective dataset outputs.
|
| 221 |
+
|
| 222 |
+
# 4.3 LEARNING RESULTS
|
| 223 |
+
|
| 224 |
+
The optimal weights of an $n$ -shortcut linear network can be easily computed via least squares, which leads to
|
| 225 |
+
|
| 226 |
+
$$
|
| 227 |
+
W = Y X ^ { T } ( X X ^ { T } ) ^ { - 1 } = \Sigma ^ { Y X } ( \Sigma ^ { X X } ) ^ { - 1 } ,
|
| 228 |
+
$$
|
| 229 |
+
|
| 230 |
+
and the minimum of the loss function is
|
| 231 |
+
|
| 232 |
+
$$
|
| 233 |
+
L _ { \operatorname* { m i n } } = \frac { 1 } { 2 m } \| Y - \Sigma ^ { Y X } ( \Sigma ^ { X X } ) ^ { - 1 } X \| _ { F } ^ { 2 } ,
|
| 234 |
+
$$
|
| 235 |
+
|
| 236 |
+
where $\left\| \cdot \right\| _ { F }$ denotes the Frobenius norm and $( \Sigma ^ { X X } ) ^ { - 1 }$ denotes any kind of generalized inverse of $\Sigma ^ { X X }$ . So given a training set, we can pre-compute its $L _ { \mathrm { m i n } }$ and use it to evaluate any $n$ -shortcut linear network.
|
| 237 |
+
|
| 238 |
+
# 5 EXPERIMENTS
|
| 239 |
+
|
| 240 |
+
We compare networks with Xavier initialization (Glorot & Bengio, 2010), networks with orthogonal initialization (Saxe et al., 2013) and 2-shortcut networks with zero initialization. The training dynamics of 1-shortcut networks are similar to that of linear networks with orthogonal initialization in our experiments. Setup details can be found in Appendix B.
|
| 241 |
+
|
| 242 |
+
# 5.1 INITIAL POINT
|
| 243 |
+
|
| 244 |
+
We first compute the initial condition numbers for different kinds of linear networks with different depths.
|
| 245 |
+
|
| 246 |
+
As can be seen in Figure 5, 2-shortcut linear networks have constant condition numbers as expected. On the other hand, when using Xavier or orthogonal initialization in linear networks, the initial condition numbers will go to infinity as the depths become infinity, making the networks hard to train. This also explains why orthogonal initialization is helpful for a linear network, as its initial condition number grows slower than the Xavier initialization.
|
| 247 |
+
|
| 248 |
+
# 5.2 LEARNING DYNAMICS
|
| 249 |
+
|
| 250 |
+
Having a good beginning does not guarantee an easy trip on the loss surface. In order to depict the loss surfaces encountered from different initial points, we plot the maxima and $1 0 ^ { \mathrm { t h } }$ percentiles (instead of minima, as they are very unstable) of the absolute values of Hessians eigenvalues at different losses.
|
| 251 |
+
|
| 252 |
+
As shown in Figure 6 and Figure 7, the condition numbers of 2-shortcut networks at different losses are always smaller, especially when the loss is large. Also, notice that the condition numbers roughly evolved to the same value for both orthogonal and 2-shortcut linear networks. This may be explained by the fact that the minimizers, as well as any point near them, have similar condition numbers.
|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
Figure 5: Initial condition numbers of Hessians for different linear networks as the depths of the networks increase. Means and standard deviations are estimated based on 10 runs.
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 6: Maxima and $1 0 ^ { \mathrm { t h } }$ percentiles of absolute values of eigenvalues at different losses when the depth is 16. For each run, eigenvalues at different losses are calculated using linear interpolation.
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 7: Maxima and $1 0 ^ { \mathrm { t h } }$ percentiles of absolute values of eigenvalues at different losses when the depth is 16. Eigenvalues at different losses are calculated using linear interpolation.
|
| 262 |
+
|
| 263 |
+
Another observation is the changes of negative eigenvalues ratios. Index (ratio of negative eigenvalues) is an important characteristic of a critical point. Usually for the critical points of a neural network, the larger the loss the larger the index (Dauphin et al., 2014). In our experiments, the index of a 2-shortcut network is always smaller, and drops dramatically at the beginning, as shown in Figure 8, left. This might make the networks tend to stop at low critical points.
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
Figure 8: Left: ratio of negative eigenvalues at different losses when the depth is 16. For each run, indexes at different losses are calculated using linear interpolation. Right: the dynamics of gradient and index of a 2-shortcut linear network in a single run. The gradient reaches its maximum while the index drops dramatically, indicating moving toward negative curvature directions.
|
| 267 |
+
|
| 268 |
+
This is because the initial point is near a saddle point, thus it tends to go towards negative curvature directions, eliminating some negative eigenvalues at the beginning. This phenomenon matches the observation that the gradient reaches its maximum when the index drops dramatically, as shown in Figure 8, right.
|
| 269 |
+
|
| 270 |
+
# 5.3 LEARNING RESULTS
|
| 271 |
+
|
| 272 |
+
We run different networks for 1000 epochs using different learning rates at log scale, and compare the average final losses of the optimal learning rates.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 9: Left: Optimal Final losses of different linear networks. Right: Corresponding optimal learning rates. When the depth is 96, the final losses of Xavier with different learning rates are basically the same, so the optimal learning rate is omitted as it is very unstable.
|
| 276 |
+
|
| 277 |
+
Figure 9 shows the results for linear networks. Just like their depth-invariant initial condition numbers, the final losses of 2-shortcut linear networks stay close to optimal as the networks become deeper. Higher learning rates can also be applied, resulting in fast learning in deep networks.
|
| 278 |
+
|
| 279 |
+
Then we add ReLUs to the mid positions of the networks. To make a fair comparison, the numbers of ReLU units in different networks are the same when the depths are the same, so 1-shortcut and 3-shortcut networks are omitted. The result is shown in Figure 10.
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
Figure 10: Left: Optimal Final losses of different networks with ReLUs in mid positions. Right: Corresponding optimal learning rates. Note that as it is hard to compute the minimum losses with ReLUs, we plot the $\log _ { 1 0 }$ (final loss) instead of $\log _ { 1 0 }$ (final loss − optimal loss). When the depth is 64, the final losses of Xavier-ReLU and orthogonal-ReLU with different learning rates are basically the same, so the optimal learning rates are omitted as they are very unstable.
|
| 283 |
+
|
| 284 |
+
Note that because of the nonlinearities, the optimal losses vary for different networks with different depths. It is usually thought that deeper networks can represent more complex models, leading to smaller optimal losses. However, our experiments show that linear networks with Xavier or orthogonal initialization have difficulties finding these optimal points, while 2-shortcut networks find these optimal points easily as they did without nonlinear units.
|
| 285 |
+
|
| 286 |
+
# 6 FUTURE DIRECTIONS
|
| 287 |
+
|
| 288 |
+
Further studies should concentrate on the behavior of shortcut connections on convolution networks, as well as the influences of batch normalization units (Ioffe & Szegedy, 2015) in ResNet. Meanwhile, it would be very interesting to extend the insights obtained in this paper to recurrent neural networks such as LSTM (Sainath et al., 2013).
|
| 289 |
+
|
| 290 |
+
# REFERENCES
|
| 291 |
+
|
| 292 |
+
Anima Anandkumar and Rong Ge. Efficient approaches for escaping higher order saddle points in non-convex optimization. arXiv preprint arXiv:1602.05908, 2016.
|
| 293 |
+
|
| 294 |
+
Chris Bishop. Exact calculation of the hessian matrix for the multilayer perceptron. Neural Computation, 4(4):494–501, 1992.
|
| 295 |
+
|
| 296 |
+
Anna Choromanska, Mikael Henaff, Michael Mathieu, Gerard Ben Arous, and Yann LeCun. The ´ loss surfaces of multilayer networks. In AISTATS, 2015a.
|
| 297 |
+
|
| 298 |
+
Anna Choromanska, Yann LeCun, and Gerard Ben Arous. Open problem: The landscape of the ´ loss surfaces of multilayer networks. In Proceedings of The 28th Conference on Learning Theory, COLT 2015, Paris, France, July 3, volume 6, pp. 1756–1760, 2015b.
|
| 299 |
+
|
| 300 |
+
Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in neural information processing systems, pp. 2933–2941, 2014.
|
| 301 |
+
|
| 302 |
+
Rong Ge, Furong Huang, Chi Jin, and Yang Yuan. Escaping from saddle pointsonline stochastic gradient for tensor decomposition. In Proceedings of The 28th Conference on Learning Theory, pp. 797–842, 2015.
|
| 303 |
+
|
| 304 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Aistats, volume 9, pp. 249–256, 2010.
|
| 305 |
+
|
| 306 |
+
Robert M Gray. Toeplitz and circulant matrices: A review. now publishers inc, 2006.
|
| 307 |
+
|
| 308 |
+
Moritz Hardt and Tengyu Ma. Identity matters in deep learning. arXiv preprint arXiv:1611.04231, 2016.
|
| 309 |
+
|
| 310 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015a.
|
| 311 |
+
|
| 312 |
+
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, 2015b.
|
| 313 |
+
|
| 314 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016.
|
| 315 |
+
|
| 316 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 317 |
+
|
| 318 |
+
Kenji Kawaguchi. Deep learning without poor local minima. arXiv preprint arXiv:1605.07110, 2016.
|
| 319 |
+
|
| 320 |
+
Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010.
|
| 321 |
+
|
| 322 |
+
Arkadi Nemirovski. Efficient methods in convex programming. 2005.
|
| 323 |
+
|
| 324 |
+
Razvan Pascanu, Yann N Dauphin, Surya Ganguli, and Yoshua Bengio. On the saddle point problem for non-convex optimization. arXiv preprint arXiv:1405.4604, 2014.
|
| 325 |
+
|
| 326 |
+
T.N. Sainath, O. Vinyals, A. Senior, and H. Sak. Convolutional, Long short-term memory, fully connected deep neural networks. Journal of Chemical Information and Modeling, 53(9):1689– 1699, 2013. ISSN 1098-6596. doi: 10.1017/CBO9781107415324.004.
|
| 327 |
+
|
| 328 |
+
Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013.
|
| 329 |
+
|
| 330 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 331 |
+
|
| 332 |
+
Rupesh K Srivastava, Klaus Greff, and Jurgen Schmidhuber. Training very deep networks. In ¨ Advances in neural information processing systems, pp. 2377–2385, 2015a.
|
| 333 |
+
|
| 334 |
+
Rupesh Kumar Srivastava, Klaus Greff, and Jurgen Schmidhuber. Highway networks. ¨ arXiv preprint arXiv:1505.00387, 2015b.
|
| 335 |
+
|
| 336 |
+
Christian Szegedy, Sergey Ioffe, and Vincent Vanhoucke. Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. feb 2016. URL http://arxiv.org/abs/ 1602.07261.
|
| 337 |
+
|
| 338 |
+
Sasha Targ, Diogo Almeida, and Kevin Lyman. Resnet in resnet: Generalizing residual architectures. arXiv preprint arXiv:1603.08029, 2016.
|
| 339 |
+
|
| 340 |
+
Andreas Veit, Michael Wilber, and Serge Belongie. Residual networks are exponential ensembles of relatively shallow networks. arXiv preprint arXiv:1605.06431, 2016.
|
| 341 |
+
|
| 342 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 343 |
+
|
| 344 |
+
Ke Zhang, Miao Sun, Tony X Han, Xingfang Yuan, Liru Guo, and Tao Liu. Residual networks of residual networks: Multilevel residual networks. arXiv preprint arXiv:1608.02908, 2016.
|
| 345 |
+
|
| 346 |
+
# A PROOFS OF THEOREMS
|
| 347 |
+
|
| 348 |
+
Definition 5. The elements in Hessian of an $n$ -shortcut network is defined as
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
H _ { \mathrm { i n d } ( w _ { 1 } ) , \mathrm { i n d } ( w _ { 2 } ) } = \frac { \partial ^ { 2 } L } { \partial w _ { 1 } \partial w _ { 2 } } ,
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
where $L$ is the loss function, and the indices $\operatorname { i n d } ( \cdot )$ is ordered lexicographically following the four indices $( r , l , j , i )$ of the weight variable $\underset { \cdot } { w _ { i , j } ^ { r , l } }$ . In other words, the priority decreases along the index of shortcuts, index of weight matrix inside shortcuts, index of column, and index of row.
|
| 355 |
+
|
| 356 |
+
Note that the collection of all the weight variables in the $n$ -shortcut network is denoted as w. We study the behavior of the loss function in the vicinity of ${ \bf w } = { \bf 0 }$ .
|
| 357 |
+
|
| 358 |
+
Lemma 1. Assume that $w _ { 1 } \ = \ w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , l _ { 1 } } , \cdot \cdot \cdot , w _ { N } \ = \ w _ { i _ { N } , j _ { N } } ^ { r _ { N } , l _ { N } }$ are $N$ parameters of an $n$ -shortcut network. If ∂ L∂w1···∂wN $\begin{array} { r } { I f \frac { \partial ^ { 2 } L } { \partial w _ { 1 } \cdots \partial w _ { N } } \bigg | _ { \mathbf { w } = \mathbf { 0 } } } \end{array}$ is nonzero, there exists $r$ and $k _ { 1 } , \cdots , k _ { n }$ such that $r _ { k _ { m } } = r a n d l _ { k _ { m } } = m$ for $m = 1 , \cdots , n$ .
|
| 359 |
+
|
| 360 |
+
Proof. Assume there does not exist such $r$ and $k _ { 1 } , \cdots , k _ { n }$ , then for all the shortcut units $r =$ $1 , \cdots , R$ , there exists a weight matrix $l$ such that none of $w _ { 1 } , \cdots , w _ { N }$ is in $W ^ { r , l }$ , so all the transformation paths are zero, which means $W = I _ { d _ { x } }$ . Then $\left. \frac { \partial ^ { 2 } L } { \partial w _ { 1 } \cdots \partial w _ { N } } \right| _ { { \bf w } = { \bf 0 } } = 0$ , leading to a contradiction. □
|
| 361 |
+
|
| 362 |
+
Lemma 2. Assume that $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , l _ { 1 } } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r _ { 2 } , l _ { 2 } } , r _ { 1 } \le r _ { 2 }$ . Let $L _ { 0 } ( w _ { 1 } , w _ { 2 } )$ denotes the loss function with all the parameters except 0 $w _ { 1 }$ and $w _ { 2 }$ set to $O _ { ; }$ , $w _ { 1 } ^ { \prime } = w _ { i _ { 1 } , j _ { 1 } } ^ { 1 , l _ { 1 } } , w _ { 2 } ^ { \prime } = w _ { i _ { 2 } , j _ { 2 } } ^ { 1 + \mathbb { 1 } ( r _ { 1 } \neq r _ { 2 } ) , l _ { 2 } }$ . Then $\begin{array} { r } { \frac { \partial ^ { 2 } L _ { 0 } ( w _ { 1 } , w _ { 2 } ) } { \partial w _ { 1 } \partial w _ { 2 } } | _ { ( w _ { 1 } , w _ { 2 } ) = 0 } = \frac { \partial ^ { 2 } L _ { 0 } ( w _ { 1 } ^ { \prime } , w _ { 2 } ^ { \prime } ) } { \partial w _ { 1 } ^ { \prime } \partial w _ { 2 } ^ { \prime } } | _ { ( w _ { 1 } ^ { \prime } , w _ { 2 } ^ { \prime } ) = 0 } . } \end{array}$
|
| 363 |
+
|
| 364 |
+
Proof. As all the residual units expect unit $r _ { 1 }$ and $r _ { 2 }$ are identity transformations, reordering residual units while preserving the order of units $r _ { 1 }$ and $r _ { 2 }$ will not affect the overall transformation, i.e. $L _ { 0 } ( w _ { 1 } , w _ { 2 } ) | _ { w _ { 1 } = a , w _ { 2 } = b } ~ = ~ L _ { 0 } ^ { \prime } ( w _ { 1 } ^ { \prime } , w _ { 2 } ^ { \prime } ) | _ { w _ { 1 } ^ { \prime } = a , w _ { 2 } ^ { \prime } = b }$ . So $\frac { \partial ^ { 2 } L _ { 0 } ( w _ { 1 } , w _ { 2 } ) } { \partial w _ { 1 } \partial w _ { 2 } } | _ { ( w _ { 1 } , w _ { 2 } ) = { \bf 0 } } =$ $\frac { \partial ^ { 2 } L _ { 0 } ( w _ { 1 } ^ { \prime } , w _ { 2 } ^ { \prime } ) } { \partial w _ { 1 } ^ { \prime } \partial w _ { 2 } ^ { \prime } } \big | _ { ( w _ { 1 } ^ { \prime } , w _ { 2 } ^ { \prime } ) = { \bf 0 } }$ . □
|
| 365 |
+
|
| 366 |
+
Proof of Theorem 1. Now we can prove Theorem 1 with the help of the previously established lemmas.
|
| 367 |
+
|
| 368 |
+
1. Using Lemma 1, for an $n$ -shortcut network, at zero, all the $k$ -th order partial derivatives of the loss function are zero, where $k$ ranges from 1 to $n - 1$ . Hence, the initial point zero is a $( n - 1 )$ th-order stationary point of the loss function.
|
| 369 |
+
|
| 370 |
+
2. Consider the Hessian in $n = 2$ case. Using Lemma 1 and Lemma 2, the form of Hessian can be directly written as Equation (11), as illustrated in Figure 11.
|
| 371 |
+
|
| 372 |
+
So we have
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
\mathrm { e i g s } ( H ) = \mathrm { e i g s } ( \left[ { \bf 0 } \quad A ^ { T } \right] ) = \pm \sqrt { \mathrm { e i g s } ( A ^ { T } A ) } .
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
Thus $\operatorname { c o n d } ( H ) = { \sqrt { \operatorname { c o n d } ( A ^ { T } A ) } }$ , which is depth-invariant. Note that the dimension of $A$ is $d _ { x } ^ { 2 } \times d _ { x } ^ { 2 }$ .
|
| 379 |
+
|
| 380 |
+
To get the expression of $A$ , consider two parameters that are in the same residual unit but different weight matrices, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r , 2 } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r , 1 }$ .
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure 11: The Hessian in $n = 2$ case. It follows from Lemma 1 that only off-diagonal subblocks in each diagonal block, i.e., the blocks marked in orange (slash) and blue (chessboard), are non-zero. From Lemma 2, we conclude the translation invariance and that all blocks marked in orange (slash) (resp. blue (chessboard)) are the same. Given that the Hessian is symmetric, the blocks marked in blue and orange are transposes of each other, and thus it can be directly written as Equation (11).
|
| 384 |
+
|
| 385 |
+
If $j _ { 1 } = i _ { 2 }$ , we have
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\begin{array} { l } { { A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \displaystyle \frac { \partial ^ { 2 } { \cal L } } { \partial w _ { 1 } \partial w _ { 2 } } \Big | _ { { \bf w } = { \bf 0 } } } } \\ { { \phantom { A } = \displaystyle \frac { \partial ^ { 2 } \sum _ { \mu = 1 } ^ { m } \frac { 1 } { 2 m } ( y _ { i _ { 1 } } ^ { \mu } - x _ { i _ { 1 } } ^ { \mu } - \sigma _ { \mathrm { p o s t } } ( w _ { 1 } \sigma _ { \mathrm { m i d } } ( w _ { 2 } \sigma _ { \mathrm { p r e } } ( x _ { j _ { 2 } } ^ { \mu } ) ) ) ) ^ { 2 } } { \partial w _ { 1 } \partial w _ { 2 } } \Big | _ { { \bf w } = { \bf 0 } } } } \\ { { \phantom { A } = \displaystyle \frac { \sigma _ { \mathrm { m i d } } ^ { \prime } ( 0 ) \sigma _ { \mathrm { p o s t } } ^ { \prime } ( 0 ) } { m } \sum _ { \mu = 1 } ^ { m } \sigma _ { \mathrm { p r e } } ( x _ { j _ { 2 } } ^ { \mu } ) ( x _ { i _ { 1 } } ^ { \mu } - y _ { i _ { 1 } } ^ { \mu } ) . } } \end{array}
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
Else, we have $A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = 0 .$
|
| 392 |
+
|
| 393 |
+
Noting that $A _ { ( j _ { 1 } , \ldots , 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } }$ in fact only depends on the two indices $i _ { 1 } , j _ { 2 }$ (with a small difference depending on whether $\begin{array} { r l r } { j _ { 1 } } & { { } = } & { i _ { 2 } ) } \end{array}$ , we make a $d _ { x } \mathrm { ~ ~ \times ~ }$ $d _ { x }$ matrix with rows indexed by $i _ { 1 }$ and columns indexed by $j _ { 2 }$ , and the entry at $( i _ { 1 } , j _ { 2 } )$ equal to $A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } }$ . Apparently, this matrix is equal to $\sigma _ { \mathrm { m i d } } ^ { \prime } ( 0 ) \sigma _ { \mathrm { p o s t } } ^ { \prime } ( 0 ) \bigl ( \Sigma ^ { X \sigma _ { \mathrm { p r e } } ( X ) } - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } ( X ) } \bigr )$ when $j _ { 1 } ~ = ~ i _ { 2 }$ , and equal to the zero matrix when $j _ { 1 } \neq i _ { 2 }$ .
|
| 394 |
+
|
| 395 |
+
To simplify the expression of $A$ , we rearrange the columns of $A$ by a permutation matrix, i.e.
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
A ^ { \prime } = A P ,
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
where $P _ { i j } = 1$ if and only if $\begin{array} { r } { i = ( ( j - 1 ) \bmod d _ { x } ) d _ { x } + \lceil \frac { j } { d _ { x } } \rceil } \end{array}$ . Basically it permutes the $i$ -th column of $A$ to the $j$ -th column.
|
| 402 |
+
|
| 403 |
+
Then we have
|
| 404 |
+
|
| 405 |
+
$$
|
| 406 |
+
A = \sigma _ { \mathrm { m i d } } ^ { \prime } ( 0 ) \sigma _ { \mathrm { p o s t } } ^ { \prime } ( 0 ) \left[ \begin{array} { l l l l } { \Sigma ^ { X \sigma _ { \mathrm { p r e } } ( X ) } - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } ( X ) } } & & & \\ & & { \ddots } & & \\ & & & { \Sigma ^ { X \sigma _ { \mathrm { p r e } } ( X ) } - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } ( X ) } } \end{array} \right] P ^ { T } .
|
| 407 |
+
$$
|
| 408 |
+
|
| 409 |
+
So the eigenvalues of $H$ becomes
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
\begin{array} { r } { \mathrm { e i g s } ( H ) = \pm \sigma _ { \mathrm { m i d } } ^ { \prime } ( 0 ) \sigma _ { \mathrm { p o s t } } ^ { \prime } ( 0 ) \sqrt { \mathrm { e i g s } \big ( ( \Sigma ^ { X \sigma _ { \mathrm { p r e } } } ( X ) - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } } ( X ) \big ) T \big ( \Sigma ^ { X \sigma _ { \mathrm { p r e } } } ( X ) - \Sigma ^ { Y \sigma _ { \mathrm { p r e } } } ( X ) \big ) \big ) } , } \end{array}
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
which leads to Equation (12).
|
| 416 |
+
|
| 417 |
+
3. Now consider the Hessian in the $n = 1$ case. Using Lemma 2, the form of Hessian can be directly written as Equation (13).
|
| 418 |
+
|
| 419 |
+
To get the expressions of $A$ and $B$ in $\sigma _ { \mathrm { p r e } } ( x ) = \sigma _ { \mathrm { p o s t } } ( x ) = x$ case, consider two parameters that are in the same residual units, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r , 1 } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r , 1 }$ .
|
| 420 |
+
|
| 421 |
+
We have
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
\begin{array} { r l } { B _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \frac { \partial ^ { 2 } { \cal L } } { \partial w _ { 1 } \partial w _ { 2 } } \Big | _ { { \bf w } = { \bf 0 } } } & { { } } \\ { \quad \quad } & { { } = \left\{ \begin{array} { l l } { \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } x _ { j _ { 1 } } ^ { \mu } x _ { j _ { 2 } } ^ { \mu } } & { i _ { 1 } = i _ { 2 } } \\ { 0 } & { i _ { 1 } \ne i _ { 2 } } \end{array} \right. } \end{array}
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
Rearrange the order of variables using $P$ , we have
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
\boldsymbol { B } = \boldsymbol { P } \left[ \begin{array} { l l l } { \boldsymbol { \Sigma } ^ { X X } } & & \\ & { \boldsymbol { \cdot } } & \\ & & { \boldsymbol { \cdot } \boldsymbol { \cdot } } \\ & & & { \boldsymbol { \Sigma } ^ { X X } } \end{array} \right] \boldsymbol { P } ^ { T } .
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
Then consider two parameters that are in different residual units, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , 1 } , w _ { 2 } =$
|
| 434 |
+
$w _ { i _ { 2 } , j _ { 2 } } ^ { r _ { 2 } , 1 } , r _ { 1 } > r _ { 2 }$ .
|
| 435 |
+
|
| 436 |
+
We have
|
| 437 |
+
|
| 438 |
+
$$
|
| 439 |
+
\begin{array} { l l } { { A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \displaystyle \frac { \partial ^ { 2 } { \cal L } } { \partial w _ { 1 } \partial w _ { 2 } } \Big | _ { { \bf w } = { \bf 0 } } } } \\ { { \ } } \\ { { \quad = \left\{ \begin{array} { l l } { { \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } ( x _ { i _ { 1 } } ^ { \mu } - y _ { i _ { 1 } } ^ { \mu } ) x _ { j _ { 2 } } ^ { \mu } + x _ { j _ { 1 } } ^ { \mu } x _ { j _ { 2 } } ^ { \mu } } } & { { j _ { 1 } = i _ { 2 } , i _ { 1 } = i _ { 2 } } } \\ { { \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } ( x _ { i _ { 1 } } ^ { \mu } - y _ { i _ { 1 } } ^ { \mu } ) x _ { j _ { 2 } } ^ { \mu } } } & { { j _ { 1 } = i _ { 2 } , i _ { 1 } \neq i _ { 2 } } } \\ { { \frac { 1 } { m } \sum _ { \mu = 1 } ^ { m } x _ { j _ { 1 } } ^ { \mu } x _ { j _ { 2 } } ^ { \mu } } } & { { j _ { 1 } \neq i _ { 2 } , i _ { 1 } = i _ { 2 } } } \\ { { 0 } } & { { j _ { 1 } \neq i _ { 2 } , i _ { 1 } \neq i _ { 2 } } } \end{array} \right. } } \end{array}
|
| 440 |
+
$$
|
| 441 |
+
|
| 442 |
+
In the same way, we can rewrite $A$ as
|
| 443 |
+
|
| 444 |
+
$$
|
| 445 |
+
\boldsymbol { A } = \left[ \begin{array} { l l l } { \boldsymbol { \Sigma } ^ { X X } - \boldsymbol { \Sigma } ^ { Y X } } & & \\ & { \boldsymbol { \cdot } } & \\ & & { \boldsymbol { \cdot } \boldsymbol { \cdot } } & \\ & & { \boldsymbol { \Sigma } ^ { X X } - \boldsymbol { \Sigma } ^ { Y X } } \end{array} \right] \boldsymbol { P } ^ { T } + \boldsymbol { B } .
|
| 446 |
+
$$
|
| 447 |
+
|
| 448 |
+
# B EXPERIMENT SETUP
|
| 449 |
+
|
| 450 |
+
We took the experiments on whitened versions of MNIST. 10 greatest principal components are kept for the dataset inputs. The dataset outputs are represented using one-hot encoding. The network was trained using gradient descent. For every epoch, the Hessians of the networks were calculated using the method proposed in (Bishop, 1992). As the $| \lambda | _ { \operatorname* { m i n } }$ of Hessian is usually very unstable, we calculated $\frac { | \lambda | _ { \operatorname* { m a x } } } { | \lambda | _ { ( 0 . 1 ) } }$ to represent condition number instead, where $| \lambda | _ { ( 0 . 1 ) }$ is the $1 0 ^ { \mathrm { t h } }$ percentile of the absolute values of eigenvalues.
|
| 451 |
+
|
| 452 |
+
As pre, mid or post positions are not defined in linear networks without shortcuts, when comparing Xavier or orthogonal initialized linear networks to 2-shortcut networks, we added ReLUs at the same positions in linear networks as in 2-shortcuts networks.
|
parse/train/SJAr0QFxe/SJAr0QFxe_content_list.json
ADDED
|
@@ -0,0 +1,2214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
508,
|
| 20 |
+
145,
|
| 21 |
+
818,
|
| 22 |
+
160
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Sihan Li \nDepartment of Electronic Engineering \nTsinghua University \nBeijing 100084, China \nlisihan13@mails.tsinghua.edu.cn \nDepartment of Electrical Engineering \nStanford University \nStanford, CA 94305, USA \n{jiantao,yjhan,tsachy}@stanford.edu ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
183,
|
| 31 |
+
145,
|
| 32 |
+
486,
|
| 33 |
+
214
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "",
|
| 40 |
+
"bbox": [
|
| 41 |
+
506,
|
| 42 |
+
160,
|
| 43 |
+
846,
|
| 44 |
+
215
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "ABSTRACT ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
454,
|
| 54 |
+
252,
|
| 55 |
+
544,
|
| 56 |
+
266
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "We provide a theoretical explanation for the great performance of ResNet via the study of deep linear networks and some nonlinear variants. We show that with or without nonlinearities, by adding shortcuts that have depth two, the condition number of the Hessian of the loss function at the zero initial point is depthinvariant, which makes training very deep models no more difficult than shallow ones. Shortcuts of higher depth result in an extremely flat (high-order) stationary point initially, from which the optimization algorithm is hard to escape. The 1- shortcut, however, is essentially equivalent to no shortcuts. Extensive experiments are provided accompanying our theoretical results. We show that initializing the network to small weights with 2-shortcuts achieves significantly better results than random Gaussian (Xavier) initialization, orthogonal initialization, and shortcuts of deeper depth, from various perspectives ranging from final loss, learning dynamics and stability, to the behavior of the Hessian along the learning process. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
233,
|
| 65 |
+
281,
|
| 66 |
+
764,
|
| 67 |
+
462
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "1 INTRODUCTION ",
|
| 74 |
+
"text_level": 1,
|
| 75 |
+
"bbox": [
|
| 76 |
+
176,
|
| 77 |
+
487,
|
| 78 |
+
336,
|
| 79 |
+
502
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "Residual network (ResNet) was first proposed in He et al. (2015a) and extended in He et al. (2016). It followed a principled approach to add shortcut connections every two layers to a VGG-style network (Simonyan & Zisserman, 2014). The new network becomes easier to train, and achieves both lower training and test errors. Using the new structure, He et al. (2015a) managed to train a network with 1001 layers, which was virtually impossible before. Unlike Highway Network (Srivastava et al., 2015a;b) which not only has shortcut paths but also borrows the idea of gates from LSTM (Sainath et al., 2013), ResNet does not have gates. Later He et al. (2016) found that by keeping a clean shortcut path, residual networks will perform even better. ",
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
517,
|
| 89 |
+
825,
|
| 90 |
+
628
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Many attempts have been made to improve ResNet to a further extent. “ResNet in ResNet” (Targ et al., 2016) adds more convolution layers and data paths to each layer, making it capable of representing several types of residual units. “ResNets of ResNets” (Zhang et al., 2016) construct multilevel shortcut connections, which means there exist shortcuts that skip multiple residual units. Wide Residual Networks (Zagoruyko & Komodakis, 2016) makes the residual network shorter but wider, and achieves state of the art results on several datasets while using a shallower network. Moreover, some existing models are also reported to be improved by shortcut connections, including Inceptionv4 (Szegedy et al., 2016), in which shortcut connections make the deep network easier to train. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
636,
|
| 100 |
+
825,
|
| 101 |
+
747
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Why are residual networks so easy to train? He et al. (2015a) suggests that layers in residual networks are learning residual mappings, making them easier to represent identity mappings, which prevents the networks from degradation when the depths of the networks increase. However, Veit et al. (2016) claims that ResNets are actually ensembles of shallow networks, which means they do not solve the problem of training deep networks completely. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
753,
|
| 111 |
+
823,
|
| 112 |
+
824
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "We propose a theoretical explanation for the great performance of ResNet. We concur with He et al. (2015a) that the key contribution of ResNet should be some special structure of the loss function that makes training very deep models no more difficult than shallow ones. Analysis, however, seems non-trivial. Quoting He et al. (2015a): ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
830,
|
| 122 |
+
823,
|
| 123 |
+
886
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "“Deeper non-bottleneck ResNets (e.g., Fig. 5 left) also gain accuracy from increased depth (as shown on CIFAR-10), but are not as economical as the bottleneck ResNets. So the usage of bottleneck designs is mainly due to practical considerations. We further note that the degradation problem of plain nets is also witnessed for the bottleneck designs. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
205,
|
| 132 |
+
99,
|
| 133 |
+
792,
|
| 134 |
+
155
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Their empirical observations are inspiring. First, the 1-shortcuts mentioned in the first paragraph do not work. Second, noting that the non-bottleneck ResNets have 2-shortcuts, but the bottleneck ResNets use 3-shortcuts, one sees that shortcuts with depth three also do not work. Hence, a reasonable theoretical explanation must be able to distinguish the 2-shortcut from shortcuts of other depths, and clearly demonstrate why the 2-shortcuts are special and are able to ease the optimization process so significantly for deep models, while shortcuts of other depths may not do the job. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
174,
|
| 144 |
+
825,
|
| 145 |
+
258
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Aiming at explaining the performance of 2-shortcuts, we need to eliminate other variables that may contribute to the success of ResNet. Indeed, one may argue that the deep structure of ResNet may give it better representation power (lower approximation error), which contributes to lower training errors. To eliminate this effect, we focus on deep linear networks, where deeper models do not have better approximation properties. The special role of 2-shortcuts naturally arises in the study. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
265,
|
| 155 |
+
825,
|
| 156 |
+
335
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2 MAIN RESULTS ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
176,
|
| 166 |
+
354,
|
| 167 |
+
333,
|
| 168 |
+
371
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Our work reveals that non-degenerate depth-invariant initial condition numbers, a unique property of residual networks with 2-shortcuts, contributed to the success of ResNet. In fact, in a linear network that will be defined rigorously later, the condition number of Hessian of the Frobenius loss function at the zero initial point is ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
386,
|
| 178 |
+
825,
|
| 179 |
+
443
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/5be7ac018348d5302ec0d45cf57679b3c5aeee8031b4976536fc3191af7d5017.jpg",
|
| 186 |
+
"text": "$$\n\\operatorname { c o n d } ( H ) = { \\sqrt { \\operatorname { c o n d } ( ( \\Sigma ^ { X X } - \\Sigma ^ { Y X } ) ^ { T } ( \\Sigma ^ { X X } - \\Sigma ^ { Y X } ) ) } } ,\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
313,
|
| 190 |
+
459,
|
| 191 |
+
683,
|
| 192 |
+
487
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "which is independent of the number of layers. Here $\\Sigma ^ { X X }$ and $\\Sigma ^ { Y X }$ denote the input-input and the output-input correlation matrices, defined in Section 3.3. The condition number of a possibly non-PSD matrix is defined as: ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
176,
|
| 201 |
+
489,
|
| 202 |
+
825,
|
| 203 |
+
532
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "Definition 1. The condition number of a matrix $A$ is defined as ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
173,
|
| 212 |
+
536,
|
| 213 |
+
591,
|
| 214 |
+
551
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "equation",
|
| 220 |
+
"img_path": "images/8a2cf4ebe7e14ccf62c1b6d1e2abecd5351a3c34e492c8bae90704af18023ef3.jpg",
|
| 221 |
+
"text": "$$\n\\operatorname { c o n d } ( A ) = \\frac { \\sigma _ { \\operatorname* { m a x } } ( A ) } { \\sigma _ { \\operatorname* { m i n } } ( A ) } ,\n$$",
|
| 222 |
+
"text_format": "latex",
|
| 223 |
+
"bbox": [
|
| 224 |
+
423,
|
| 225 |
+
554,
|
| 226 |
+
575,
|
| 227 |
+
589
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "where $\\sigma _ { \\mathrm { m a x } } ( A )$ and $\\sigma _ { \\mathrm { m i n } } ( A )$ are the maximum and minimum of singular values of $A$ . In particular, if $A$ is normal, i.e. $A ^ { T } A \\stackrel { \\cdot } { = } A A ^ { T }$ , the definition can be simplified to 1 ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
594,
|
| 237 |
+
825,
|
| 238 |
+
623
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "equation",
|
| 244 |
+
"img_path": "images/df628740e71bddeb77454d447f4e3736a90f10a14998985894b8400079e55c60.jpg",
|
| 245 |
+
"text": "$$\n\\mathrm { c o n d } ( A ) = { \\frac { | \\lambda ( A ) | _ { \\operatorname* { m a x } } } { | \\lambda ( A ) | _ { \\operatorname* { m i n } } } } ,\n$$",
|
| 246 |
+
"text_format": "latex",
|
| 247 |
+
"bbox": [
|
| 248 |
+
416,
|
| 249 |
+
628,
|
| 250 |
+
578,
|
| 251 |
+
664
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 1
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "where $| \\lambda ( A ) | _ { \\mathrm { m a x } }$ and $| \\lambda ( A ) | _ { \\mathrm { m i n } }$ are the maximum and minimum of the absolute values of eigenvalues of $A$ . ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
176,
|
| 260 |
+
670,
|
| 261 |
+
823,
|
| 262 |
+
698
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 1
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "Moreover, the zero initial point for ResNet with 2-shortcuts is in fact a so-called strict saddle point (Ge et al., 2015), which are proved to be easy to escape from. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
709,
|
| 272 |
+
821,
|
| 273 |
+
738
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Why shortcuts of other depths do not work? We show that the Hessian at the zero initial point for the 1-shortcut ResNet has condition number growing unboundedly for deep nets. As is well known in convex optimization theory, large condition numbers can have enormous adversarial impact on the convergence of first order methods (Nemirovski, 2005). Hence, it is quite clear that starting training at a point with a huge condition number would make the algorithm very difficult to escape from the initial point, making 1-shortcut ResNet no better than conventional approaches. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
744,
|
| 283 |
+
825,
|
| 284 |
+
829
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "For shortcuts with depth deeper than two, the Hessian at the zero initial point is a zero matrix, making it a higher-order stationary point. Intuitively, the higher order the stationary point is, the harder it is to escape from it. Indeed, it is supported both in theory (Anandkumar & Ge, 2016) and by our experiments. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
103,
|
| 294 |
+
823,
|
| 295 |
+
159
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "One may still ask: why are we interested in the Hessian at the zero initial point? It is because in order for the outputs of deep neural networks not explode, the singular values of the mapping of each layer are not supposed to be deviating too much from one. Indeed, it is because it is extremely challenging to keep Qnum of layersi=1 λi from exploding or vanishing without keeping all of the λi having unit norm. However, by design ResNet with shortcuts already have an identity mapping every few layers, which forces the mappings inside the shortcuts to have small operator norms. Hence, analyzing the network at zero initial point gives a decent characterization of the searching environment of the optimization algorithm. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
166,
|
| 305 |
+
825,
|
| 306 |
+
280
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 2
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "Our results also shows that the form of Hessian is more important than the existance of nonlinearities when training the networks. The behaviors of the networks we studied are consistent across both linear and nonlinear structures, where networks with clearer Hessians are much easier to achieve lower training errors. ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
176,
|
| 315 |
+
287,
|
| 316 |
+
825,
|
| 317 |
+
343
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 2
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "On the other hand, our experiments reveal that orthogonal initialization (Saxe et al., 2013) is suboptimal. Although better than Xavier initialization (Glorot & Bengio, 2010), the initial condition numbers of the networks still explode as the networks become deeper, which means the networks are still initialized on “bad” submanifolds that are hard to optimize using gradient descent. ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
349,
|
| 327 |
+
823,
|
| 328 |
+
406
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "3 MODEL ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
176,
|
| 338 |
+
425,
|
| 339 |
+
267,
|
| 340 |
+
441
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "3.1 DEEP LINEAR NETWORKS ",
|
| 347 |
+
"text_level": 1,
|
| 348 |
+
"bbox": [
|
| 349 |
+
176,
|
| 350 |
+
458,
|
| 351 |
+
392,
|
| 352 |
+
472
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "Deep linear networks are feed-forward neural networks that only contain linear units, which means their input-output mappings are simply linear transformations. Apparently, increasing their depths will not affect the representational power of the networks. However, linear networks with depth deeper than one show nonlinear dynamics of training (Saxe et al., 2013). As a result, analyzing the training of deep linear networks gives us a better understanding of the training of non-linear networks. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
483,
|
| 362 |
+
823,
|
| 363 |
+
566
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Much theoretical work has been done on deep linear networks. Kawaguchi (2016) extended the work of Choromanska et al. (2015a;b) and proved that with few assumptions, every local minimum point in deep linear networks is a global minimum point. This means that the difficulties in the training of deep linear networks mostly come from saddle points on the loss surfaces, which are also the main causes of slow learning in nonlinear networks (Pascanu et al., 2014). ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
574,
|
| 373 |
+
825,
|
| 374 |
+
643
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 2
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "Saxe et al. (2013) studied the dynamics of training using gradient descent. They found that for a special class of initial conditions, which could be obtained from greedy layerwise pre-training, the training time for a deep linear network with an infinity depth can still be finite. Furthermore, they found that by setting the initial weights to random orthogonal matrices (produced by performing QR or SVD decompositions on random Gaussian matrices), the network will still have a depth independent learning time. They argue that it is caused by the eigenvalue and singular value spectra of the end-to-end linear transformation. When using orthogonal initialization, the overall transformation is an orthogonal matrix, which has all the singular values equal to 1. In the meantime, when using scaled Gaussian initialization, most of the singular values are close to zero, making the network unsuitable for backpropagating errors. However, this explanation is not sufficient to prove that the training difficulty of orthogonal initialized networks is depth-invariant. It only gives us an intuition on why orthogonal initialization performs better than scaled Gaussian initialization. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
651,
|
| 384 |
+
825,
|
| 385 |
+
818
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 2
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "Thus, we use deep linear networks to study the effect of shortcut connections. After adding the shortcuts, the overall model is still linear and the global minimum does not change. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
174,
|
| 394 |
+
824,
|
| 395 |
+
821,
|
| 396 |
+
853
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "3.2 NETWORK STRUCTURE ",
|
| 403 |
+
"text_level": 1,
|
| 404 |
+
"bbox": [
|
| 405 |
+
176,
|
| 406 |
+
869,
|
| 407 |
+
375,
|
| 408 |
+
883
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 2
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "We first generalize a linear network by adding shortcuts to it to make it a linear residual network. We organize the network into $R$ residual units. The $r$ -th residual unit consists of $L _ { r }$ layers whose ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
176,
|
| 417 |
+
895,
|
| 418 |
+
823,
|
| 419 |
+
922
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 2
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "weights are $W ^ { r , 1 } , \\ldots , W ^ { r , L _ { r } - 1 }$ , denoted as the transformation path, as well as a shortcut $S ^ { r }$ connecting from the first layer to the last one, denoted as the shortcut path. The input-output mapping can be written as ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
102,
|
| 429 |
+
825,
|
| 430 |
+
146
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "equation",
|
| 436 |
+
"img_path": "images/ca913de6fdb8650d9bcc9b0d7529650a960161a96e38ef77bc815aab35858b84.jpg",
|
| 437 |
+
"text": "$$\ny = \\prod _ { r = 1 } ^ { R } ( \\prod _ { l = 1 } ^ { L _ { r } - 1 } W ^ { r , l } + S ^ { r } ) x = W x ,\n$$",
|
| 438 |
+
"text_format": "latex",
|
| 439 |
+
"bbox": [
|
| 440 |
+
379,
|
| 441 |
+
164,
|
| 442 |
+
617,
|
| 443 |
+
208
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "where $x \\in \\mathbb { R } ^ { d _ { x } } , y \\in \\mathbb { R } ^ { d _ { y } } , W \\in \\mathbb { R } ^ { d _ { y } \\times d _ { x } }$ . Here if $b \\_ { a }$ , $\\textstyle \\prod _ { i = a } ^ { b } W ^ { i }$ denotes $W ^ { b } W ^ { ( b - 1 ) } \\cdot \\cdot \\cdot W ^ { ( a + 1 ) } W ^ { a }$ , otherwise it denotes an identity mapping. The matrix $W$ represents the combination of all the linear transformations in the network. Note that by setting all the shortcuts to zeros, the network will go back to a $\\begin{array} { r } { ( \\sum _ { r } ( L _ { r } - 1 ) + 1 ) } \\end{array}$ -layer plain linear network. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
220,
|
| 453 |
+
825,
|
| 454 |
+
284
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Instead of analyzing the general form, we concentrate on a special kind of linear residual networks, where all the residual units are the same. ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
287,
|
| 464 |
+
825,
|
| 465 |
+
318
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Definition 2. A linear residual network is called an $n$ -shortcut linear network if ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
321,
|
| 475 |
+
700,
|
| 476 |
+
337
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "1. its layers have the same dimension (so that $d _ { x } = d _ { y }$ ); \n2. its shortcuts are identity matrices; \n3. its shortcuts have the same depth $n$ . ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
210,
|
| 485 |
+
348,
|
| 486 |
+
583,
|
| 487 |
+
414
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "The input-output mapping for such a network becomes ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
424,
|
| 497 |
+
534,
|
| 498 |
+
440
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 3
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "equation",
|
| 504 |
+
"img_path": "images/391fc67ead60be613969e4cf24cf13553ca6e7063a8477814b0e54a73b20f3cc.jpg",
|
| 505 |
+
"text": "$$\ny = \\prod _ { r = 1 } ^ { R } ( \\prod _ { l = 1 } ^ { n } W ^ { r , l } + I _ { d _ { x } } ) x = W x ,\n$$",
|
| 506 |
+
"text_format": "latex",
|
| 507 |
+
"bbox": [
|
| 508 |
+
382,
|
| 509 |
+
458,
|
| 510 |
+
614,
|
| 511 |
+
502
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "where $W ^ { r , l } \\in \\mathbb { R } ^ { d _ { x } \\times d _ { x } }$ . ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
513,
|
| 521 |
+
326,
|
| 522 |
+
529
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Then we add some activation functions to the networks. We concentrate on the case where activation functions are on the transformation paths, which is also the case in the latest ResNet (He et al., 2016). ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
171,
|
| 531 |
+
541,
|
| 532 |
+
825,
|
| 533 |
+
570
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 3
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "Definition 3. An $n$ -shortcut linear network becomes an $n$ -shortcut network if element-wise activation functions $\\sigma _ { \\mathrm { p r e } } ( x ) , \\sigma _ { \\mathrm { m i d } } ( x ) , \\sigma _ { \\mathrm { p o s t } } ( x )$ are added at the transformation paths, where on a transformation path, $\\sigma _ { \\mathrm { p r e } } ( x )$ is added before the first weight matrix, $\\sigma _ { \\mathrm { m i d } } ( x )$ is added between two weight matrixes and $\\sigma _ { \\mathrm { p o s t } } ( x )$ is added after the last weight matrix. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
173,
|
| 542 |
+
575,
|
| 543 |
+
826,
|
| 544 |
+
632
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "equation",
|
| 550 |
+
"img_path": "images/cbb1ee508a8a1ba8a6bbac2fa43a8ca4030c234910719ee7f7e330a9226efb10.jpg",
|
| 551 |
+
"text": "$$\n\\sqrt { - \\frac { p r e } { ( \\ p r e ) } \\psi _ { \\psi } ^ { 1 } ( \\ m i d ) \\psi _ { \\psi } ^ { 2 } ( \\ m s t ) } ^ { \\gamma } =\n$$",
|
| 552 |
+
"text_format": "latex",
|
| 553 |
+
"bbox": [
|
| 554 |
+
330,
|
| 555 |
+
651,
|
| 556 |
+
663,
|
| 557 |
+
699
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 3
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "image",
|
| 563 |
+
"img_path": "",
|
| 564 |
+
"image_caption": [
|
| 565 |
+
"Figure 1: An example of different position for nonlinearities in a residual unit of a 2-shortcut network. "
|
| 566 |
+
],
|
| 567 |
+
"image_footnote": [],
|
| 568 |
+
"page_idx": 3
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Note that $n$ -shortcut linear networks are special cases of $n$ -shortcut networks, where all the activation functions are identity mappings. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
171,
|
| 575 |
+
751,
|
| 576 |
+
823,
|
| 577 |
+
781
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 3
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "3.3 OPTIMIZATION ",
|
| 584 |
+
"text_level": 1,
|
| 585 |
+
"bbox": [
|
| 586 |
+
174,
|
| 587 |
+
797,
|
| 588 |
+
320,
|
| 589 |
+
813
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 3
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "We denote the collection of all the variable weight parameters in an $n$ -shortcut linear network as w. Consider $m$ training samples $\\{ x ^ { \\mu } , y ^ { \\mu } \\} , \\mu = 1 , \\ldots , m$ . Using Frobenius loss, for an $n$ -shortcut linear network, we define the loss function as follows: ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
824,
|
| 599 |
+
826,
|
| 600 |
+
867
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 3
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "equation",
|
| 606 |
+
"img_path": "images/0e695dc95bf0442f61b45a4ed4ce2e444e6793d0d0d4a8299cdf083badff7c94.jpg",
|
| 607 |
+
"text": "$$\nL ( \\mathbf { w } ) = \\frac { 1 } { 2 m } \\sum _ { \\mu = 1 } ^ { m } \\lVert y ^ { \\mu } - W x ^ { \\mu } \\rVert _ { 2 } ^ { 2 } = \\frac { 1 } { 2 m } \\lVert Y - W X \\rVert _ { F } ^ { 2 } ,\n$$",
|
| 608 |
+
"text_format": "latex",
|
| 609 |
+
"bbox": [
|
| 610 |
+
320,
|
| 611 |
+
886,
|
| 612 |
+
676,
|
| 613 |
+
928
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 3
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "where $x ^ { \\mu } , y ^ { \\mu }$ are the $\\mu$ -th columns of $X , Y$ , and $\\left\\| \\cdot \\right\\| _ { F }$ denotes the Frobenius norm. Using gradient descent with learning rate $\\alpha$ , we have the weights updating rules as ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
169,
|
| 622 |
+
103,
|
| 623 |
+
825,
|
| 624 |
+
133
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "equation",
|
| 630 |
+
"img_path": "images/c4961f1234313797d891cd8aea6a1998a0fa4a6fafb53d4ca87bea5fee3aa392.jpg",
|
| 631 |
+
"text": "$$\n\\Delta W ^ { r , l } = \\alpha ( W _ { \\mathrm { a f t e r } } ^ { r } W _ { \\mathrm { a f t e r } } ^ { r , l } ) ^ { T } ( \\Sigma ^ { Y X } - W \\Sigma ^ { X X } ) ( W _ { \\mathrm { b e f o r e } } ^ { r , l } W _ { \\mathrm { b e f o r e } } ^ { r } ) ^ { T } ,\n$$",
|
| 632 |
+
"text_format": "latex",
|
| 633 |
+
"bbox": [
|
| 634 |
+
277,
|
| 635 |
+
150,
|
| 636 |
+
718,
|
| 637 |
+
171
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 4
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "where $\\Sigma ^ { X X }$ and $\\Sigma ^ { Y X }$ denote the input-input and the output-input correlation matrices, defined as ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
184,
|
| 647 |
+
813,
|
| 648 |
+
200
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "equation",
|
| 654 |
+
"img_path": "images/d6bfb3d7fa158672df312266b6af12e0b364f477437eab2457dafd3a651e84ac.jpg",
|
| 655 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle \\Sigma ^ { X X } = \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } x ^ { \\mu } ( x ^ { \\mu } ) ^ { T } } } \\\\ { { \\displaystyle \\Sigma ^ { Y X } = \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } y ^ { \\mu } ( x ^ { \\mu } ) ^ { T } . } } \\end{array}\n$$",
|
| 656 |
+
"text_format": "latex",
|
| 657 |
+
"bbox": [
|
| 658 |
+
411,
|
| 659 |
+
207,
|
| 660 |
+
584,
|
| 661 |
+
294
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 4
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "Here $W _ { \\mathrm { b e f o r e } } ^ { r } , W _ { \\mathrm { a f t e r } } ^ { r }$ denote the linear mappings before and after the $r$ -th residual unit, $W _ { \\mathrm { b e f o r e } } ^ { r , l } , W _ { \\mathrm { a f t e r } } ^ { r , l }$ denote the linear mappings before and after $W ^ { r , l }$ within the transformation path of the $r$ -th residual unit. In other words, the overall transformation can be represented as ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
173,
|
| 670 |
+
306,
|
| 671 |
+
825,
|
| 672 |
+
353
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 4
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "equation",
|
| 678 |
+
"img_path": "images/5489a0d9e0d96bbc1211a7cad9ab918888291a7d58c37eb393732533b3f2a58d.jpg",
|
| 679 |
+
"text": "$$\ny = W _ { \\mathrm { a f t e r } } ^ { r } ( W _ { \\mathrm { a f t e r } } ^ { r , l } W ^ { r , l } W _ { \\mathrm { b e f o r e } } ^ { r , l } + I _ { d _ { x } } ) W _ { \\mathrm { b e f o r e } } ^ { r } x .\n$$",
|
| 680 |
+
"text_format": "latex",
|
| 681 |
+
"bbox": [
|
| 682 |
+
338,
|
| 683 |
+
372,
|
| 684 |
+
660,
|
| 685 |
+
392
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "4 THEORETICAL STUDY ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
174,
|
| 695 |
+
411,
|
| 696 |
+
387,
|
| 697 |
+
428
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "4.1 INITIAL POINT PROPERTIES",
|
| 704 |
+
"text_level": 1,
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
444,
|
| 708 |
+
403,
|
| 709 |
+
458
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "Before we analyze the initial point properties of $n$ -shortcut networks, we have to choose the way to initialize them. ResNet uses MSRA initialization (He et al., 2015b). It is a kind of scaled Gaussian initialization that tries to keep the variances of signals along a transformation path, which is also the idea behind Xavier initialization (Glorot & Bengio, 2010). However, because of the shortcut paths, the output variance of the entire network will actually explode as the network becomes deeper. Batch normalization units partly solved this problem in ResNet, but still they cannot prevent the large output variance in a deep network. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
173,
|
| 718 |
+
469,
|
| 719 |
+
825,
|
| 720 |
+
569
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 4
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "A simple idea is to zero initialize all the weights, so that the output variances of residual units stay the same along the network. It is worth noting that as found in He et al. (2015a), the deeper ResNet has smaller magnitudes of layer responses. This phenomenon has been confirmed in our experiments. As illustrated in Figure 2 and Figure 3, the deeper a residual network is, the small its average Frobenius norm of weight matrixes is, both during the traning process and when the training ends. Also, Hardt & Ma (2016) proves that if all the weight matrixes have small norms, a linear residual network will have no critical points other than the global optimum. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
173,
|
| 729 |
+
574,
|
| 730 |
+
825,
|
| 731 |
+
672
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 4
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "All these evidences indicate that zero is spacial in a residual network: as the network becomes deeper, the training tends to end up around it. Thus, we are looking into the Hessian at zero. As the zero is a saddle point, in our experiments we use zero initialization with small random perturbations to escape from it. We first Xavier initialize the weight matrixes, and then multiply a small constant (0,01) to them. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
173,
|
| 740 |
+
679,
|
| 741 |
+
825,
|
| 742 |
+
750
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 4
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "We begin with the definition of $k$ -th order stationary point. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
173,
|
| 751 |
+
756,
|
| 752 |
+
558,
|
| 753 |
+
771
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 4
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Definition 4. Suppose function $f ( x )$ admits $k$ -th order Taylor expansion at point $x _ { 0 }$ . We say that the point $x _ { 0 }$ is a $k$ -th order stationary point of $f ( x )$ if the corresponding $k$ -th order Taylor expansion of $f ( x )$ at $x = x _ { 0 }$ is a constant: $f ( \\dot { x } ) \\dot { = } f ( x _ { 0 } ) \\dot { + } o ( \\| x - x _ { 0 } \\| _ { 2 } ^ { k } )$ . ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
173,
|
| 762 |
+
775,
|
| 763 |
+
825,
|
| 764 |
+
819
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 4
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Now we state our main theorem, whose proof can be found in Appendix A. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
829,
|
| 774 |
+
666,
|
| 775 |
+
844
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 4
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Theorem 1. Assume that $\\sigma _ { \\mathrm { m i d } } ( 0 ) = \\sigma _ { \\mathrm { p o s t } } ( 0 ) = 0$ and all of $\\sigma _ { \\mathrm { p r e } } ^ { ( k ) } ( 0 ) , \\sigma _ { \\mathrm { m i d } } ^ { ( k ) } ( 0 ) , \\sigma _ { \\mathrm { p o s t } } ^ { ( k ) } ( 0 ) , 1 \\le k \\le$ exist. For the loss function of an $n$ -shortcut network, at point zero, ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
173,
|
| 784 |
+
849,
|
| 785 |
+
823,
|
| 786 |
+
883
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 4
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "1. if $n \\geq 2$ , it is an $( n - 1 ) t h$ -order stationary point. In particular, if $n \\geq 3$ , the Hessian is $a$ zero matrix; ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
210,
|
| 795 |
+
895,
|
| 796 |
+
825,
|
| 797 |
+
924
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 4
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "image",
|
| 803 |
+
"img_path": "images/beaf7b5c60eed4a22b5d4e41c424deddc2d59d92d4b8390a36b17fc0e3c7670c.jpg",
|
| 804 |
+
"image_caption": [
|
| 805 |
+
"Figure 2: The average Frobenius norms of ResNets of different depths during the training process. The pre-ResNet implementation in https://github.com/facebook/fb.resnet.torch is used. The learning rate is initialized to 0.1, decreased to 0.01 at the $8 1 ^ { \\mathrm { s t } }$ epoch (marked with circles) and decreased to 0.001 at the $1 2 2 ^ { \\mathrm { n d } }$ epoch (marked with triangles). Each model is trained for 200 epochs. "
|
| 806 |
+
],
|
| 807 |
+
"image_footnote": [],
|
| 808 |
+
"bbox": [
|
| 809 |
+
290,
|
| 810 |
+
178,
|
| 811 |
+
684,
|
| 812 |
+
390
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "image",
|
| 818 |
+
"img_path": "images/ceffb377ed6bcd64337887c300ae05f7c7ac5ec53bc70681c7e91661a0c31384.jpg",
|
| 819 |
+
"image_caption": [
|
| 820 |
+
"Figure 3: The average Frobenius norms of 2-shortcut networks of different depths during the training process when zero initialized. Left: Without nonlinearities. Right: With ReLUs at mid positions. "
|
| 821 |
+
],
|
| 822 |
+
"image_footnote": [],
|
| 823 |
+
"bbox": [
|
| 824 |
+
174,
|
| 825 |
+
601,
|
| 826 |
+
826,
|
| 827 |
+
806
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 5
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "2. if $n = 2$ , the Hessian can be written as ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
212,
|
| 836 |
+
103,
|
| 837 |
+
490,
|
| 838 |
+
118
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 6
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "equation",
|
| 844 |
+
"img_path": "images/89fbd9e33588b8471f5a518223f0e3eef39a69806f98ba1e51276b2b48383305.jpg",
|
| 845 |
+
"text": "$$\nH = \\left[ \\begin{array} { c c c c c } { \\mathbf { 0 } } & { A ^ { T } } & & & \\\\ { A } & { \\mathbf { 0 } } & & & \\\\ & & { \\mathbf { 0 } } & { A ^ { T } } & \\\\ & & & { A } & { \\mathbf { 0 } } & \\\\ & & & & { \\ddots } \\end{array} \\right] ,\n$$",
|
| 846 |
+
"text_format": "latex",
|
| 847 |
+
"bbox": [
|
| 848 |
+
415,
|
| 849 |
+
119,
|
| 850 |
+
640,
|
| 851 |
+
204
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 6
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "whose condition number is ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
232,
|
| 860 |
+
213,
|
| 861 |
+
411,
|
| 862 |
+
228
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 6
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "equation",
|
| 868 |
+
"img_path": "images/2eef555cb274369beea323e937d454124f43485499757dc158bc7e13b126bcac.jpg",
|
| 869 |
+
"text": "$$\n\\mathrm { c o n d } ( H ) = \\sqrt { \\mathrm { c o n d } \\big ( \\big ( \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } ( X ) } - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } ( X ) } \\big ) ^ { T } \\big ( \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } ( X ) } - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } ( X ) } \\big ) \\big ) } ,\n$$",
|
| 870 |
+
"text_format": "latex",
|
| 871 |
+
"bbox": [
|
| 872 |
+
261,
|
| 873 |
+
228,
|
| 874 |
+
766,
|
| 875 |
+
256
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 6
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "where $A$ only depends on the training set and the activation functions. Except for degenerate cases, it is $a$ strict saddle point (Ge et al., 2015). ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
232,
|
| 884 |
+
265,
|
| 885 |
+
823,
|
| 886 |
+
294
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 6
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "3. if $n = 1$ , the Hessian can be written as ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
212,
|
| 895 |
+
301,
|
| 896 |
+
488,
|
| 897 |
+
316
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 6
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "equation",
|
| 903 |
+
"img_path": "images/f721435391b5626efe4f3febc54b296b8135b4821de34f6309130ccce2edd206.jpg",
|
| 904 |
+
"text": "$$\nH = { \\left[ \\begin{array} { l l l l l } { B } & { A ^ { T } } & { A ^ { T } } & { \\cdots } & { A ^ { T } } \\\\ { A } & { B } & { A ^ { T } } & { \\cdots } & { A ^ { T } } \\\\ { A } & { A } & { B } & & { \\vdots } \\\\ { \\vdots } & { \\vdots } & & { \\ddots } & { A ^ { T } } \\\\ { A } & { A } & { \\cdots } & { A } & { B } \\end{array} \\right] }\n$$",
|
| 905 |
+
"text_format": "latex",
|
| 906 |
+
"bbox": [
|
| 907 |
+
413,
|
| 908 |
+
332,
|
| 909 |
+
642,
|
| 910 |
+
429
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 6
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "where $A , B$ only depend on the training set and the activation functions. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
232,
|
| 919 |
+
428,
|
| 920 |
+
702,
|
| 921 |
+
443
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 6
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Theorem 1 shows that the condition numbers of 2-shortcut networks are depth-invariant with a nice structure of eigenvalues. Indeed, the eigenvalues of the Hessian $H$ at the zero initial point are multiple copies of $\\pm { \\sqrt { \\mathrm { e i g s } ( A ^ { T } A ) } }$ , and the number of copies is equal to the number of shortcut connections. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
173,
|
| 930 |
+
450,
|
| 931 |
+
826,
|
| 932 |
+
510
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 6
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "The Hessian at zero initial point for the 1-shortcut linear network follows block Toeplitz structure, which has been well studied in the literature. In particular, its condition number tends to explode as the number of layers increase (Gray, 2006). ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
176,
|
| 941 |
+
516,
|
| 942 |
+
823,
|
| 943 |
+
559
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 6
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "The assumptions hold for most activation functions including tanh, symmetric sigmoid and ReLU (Nair & Hinton, 2010). Note that although ReLU does not have derivatives at zero, one may do a local polynomial approximation to yield $\\bar { \\sigma } ^ { ( k ) } , 1 \\le k \\le \\operatorname* { m a x } ( n - 1 , 2 )$ . ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
565,
|
| 953 |
+
825,
|
| 954 |
+
611
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 6
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "To get intuitive explanations of the theorems, imagine changing parameters in an $n$ -shortcut network. One has to change at least $n$ parameters to make any difference in the loss. So zero is an $( n - 1 ) \\operatorname { t h } .$ - order stationary point. Notice that the higher the order of a stationary point, the more difficult for a first order method to escape from it. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
173,
|
| 963 |
+
616,
|
| 964 |
+
825,
|
| 965 |
+
672
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 6
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "On the other hand, if $n = 2$ , one will have to change two parameters in the same residual unit but different weight matrices to affect the loss, leading to a clear block diagonal Hessian. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
171,
|
| 974 |
+
679,
|
| 975 |
+
825,
|
| 976 |
+
708
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 6
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "4.2 LEARNING DYNAMICS ",
|
| 983 |
+
"text_level": 1,
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
723,
|
| 987 |
+
369,
|
| 988 |
+
738
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 6
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "To understand Equation (7) better, we can take $n$ -shortcut linear networks to two extremes. First, when $n = 1$ , let $\\bar { V } ^ { r , 1 } = W ^ { r , 1 } + I _ { d _ { x } } , r = 1 , \\ldots , R - 1$ . As $I _ { d _ { x } }$ is a constant, we have ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
174,
|
| 997 |
+
750,
|
| 998 |
+
825,
|
| 999 |
+
780
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 6
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "equation",
|
| 1005 |
+
"img_path": "images/c5963fe8ecba5a06be7b50c3ac9f80af684ff7c4aaa739740873f813c152af3b.jpg",
|
| 1006 |
+
"text": "$$\n\\Delta V ^ { r , 1 } = \\alpha \\big ( \\prod _ { r ^ { \\prime } = r + 1 } ^ { R - 1 } V ^ { r ^ { \\prime } , 1 } \\big ) ^ { T } \\big ( \\Sigma ^ { Y X } - ( \\prod _ { r ^ { \\prime } = 1 } ^ { R - 1 } V ^ { r ^ { \\prime } , 1 } ) \\Sigma ^ { X X } \\big ) ( \\prod _ { r ^ { \\prime } = 1 } ^ { r - 1 } V ^ { r ^ { \\prime } , 1 } ) ^ { T } ,\n$$",
|
| 1007 |
+
"text_format": "latex",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
269,
|
| 1010 |
+
794,
|
| 1011 |
+
727,
|
| 1012 |
+
839
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 6
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "which can be seen as a linear network with identity initialization, a special case of orthogonal initialization, if the original 1-shortcut network is zero initialized. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
176,
|
| 1021 |
+
845,
|
| 1022 |
+
820,
|
| 1023 |
+
875
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 6
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "On the other side, if the number of shortcut connections $R = 1$ , the shortcut will only change the distribution of the output training set from $Y$ to $Y - X$ . These two extremes are illustrated in Figure 4 ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
881,
|
| 1033 |
+
825,
|
| 1034 |
+
924
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 6
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "image",
|
| 1040 |
+
"img_path": "images/b6ad27a7d095370272a40d30d782876e04f599d80639bba16381a8d37e154f78.jpg",
|
| 1041 |
+
"image_caption": [
|
| 1042 |
+
"Figure 4: Equivalents of two extremes of $n$ -shortcut linear networks. 1-shortcut linear networks are equivalent to linear networks with identity initialization, while skip-all shortcuts will only change the effective dataset outputs. "
|
| 1043 |
+
],
|
| 1044 |
+
"image_footnote": [],
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
267,
|
| 1047 |
+
97,
|
| 1048 |
+
730,
|
| 1049 |
+
204
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 7
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "4.3 LEARNING RESULTS ",
|
| 1056 |
+
"text_level": 1,
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
285,
|
| 1060 |
+
354,
|
| 1061 |
+
299
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 7
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "The optimal weights of an $n$ -shortcut linear network can be easily computed via least squares, which leads to ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
174,
|
| 1070 |
+
310,
|
| 1071 |
+
825,
|
| 1072 |
+
338
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 7
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "equation",
|
| 1078 |
+
"img_path": "images/1401ad68ed469914d9a94f17b82400fbbe52f9d22f4f0c5b4cadf285293c71da.jpg",
|
| 1079 |
+
"text": "$$\nW = Y X ^ { T } ( X X ^ { T } ) ^ { - 1 } = \\Sigma ^ { Y X } ( \\Sigma ^ { X X } ) ^ { - 1 } ,\n$$",
|
| 1080 |
+
"text_format": "latex",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
359,
|
| 1083 |
+
357,
|
| 1084 |
+
637,
|
| 1085 |
+
377
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 7
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "and the minimum of the loss function is ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
174,
|
| 1094 |
+
387,
|
| 1095 |
+
436,
|
| 1096 |
+
402
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 7
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "equation",
|
| 1102 |
+
"img_path": "images/cef865db3c3aa335afde7e729d2fcf56848e0319e8ff59f458fa0d48de50efc9.jpg",
|
| 1103 |
+
"text": "$$\nL _ { \\operatorname* { m i n } } = \\frac { 1 } { 2 m } \\| Y - \\Sigma ^ { Y X } ( \\Sigma ^ { X X } ) ^ { - 1 } X \\| _ { F } ^ { 2 } ,\n$$",
|
| 1104 |
+
"text_format": "latex",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
366,
|
| 1107 |
+
419,
|
| 1108 |
+
630,
|
| 1109 |
+
450
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 7
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "where $\\left\\| \\cdot \\right\\| _ { F }$ denotes the Frobenius norm and $( \\Sigma ^ { X X } ) ^ { - 1 }$ denotes any kind of generalized inverse of $\\Sigma ^ { X X }$ . So given a training set, we can pre-compute its $L _ { \\mathrm { m i n } }$ and use it to evaluate any $n$ -shortcut linear network. ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
174,
|
| 1118 |
+
460,
|
| 1119 |
+
825,
|
| 1120 |
+
503
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 7
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "5 EXPERIMENTS ",
|
| 1127 |
+
"text_level": 1,
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
174,
|
| 1130 |
+
523,
|
| 1131 |
+
326,
|
| 1132 |
+
540
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 7
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "We compare networks with Xavier initialization (Glorot & Bengio, 2010), networks with orthogonal initialization (Saxe et al., 2013) and 2-shortcut networks with zero initialization. The training dynamics of 1-shortcut networks are similar to that of linear networks with orthogonal initialization in our experiments. Setup details can be found in Appendix B. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
174,
|
| 1141 |
+
556,
|
| 1142 |
+
825,
|
| 1143 |
+
612
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 7
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "5.1 INITIAL POINT ",
|
| 1150 |
+
"text_level": 1,
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
630,
|
| 1154 |
+
316,
|
| 1155 |
+
643
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 7
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "We first compute the initial condition numbers for different kinds of linear networks with different depths. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
173,
|
| 1164 |
+
655,
|
| 1165 |
+
823,
|
| 1166 |
+
684
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 7
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "As can be seen in Figure 5, 2-shortcut linear networks have constant condition numbers as expected. On the other hand, when using Xavier or orthogonal initialization in linear networks, the initial condition numbers will go to infinity as the depths become infinity, making the networks hard to train. This also explains why orthogonal initialization is helpful for a linear network, as its initial condition number grows slower than the Xavier initialization. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
691,
|
| 1176 |
+
825,
|
| 1177 |
+
761
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 7
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "5.2 LEARNING DYNAMICS ",
|
| 1184 |
+
"text_level": 1,
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
176,
|
| 1187 |
+
779,
|
| 1188 |
+
369,
|
| 1189 |
+
792
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 7
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Having a good beginning does not guarantee an easy trip on the loss surface. In order to depict the loss surfaces encountered from different initial points, we plot the maxima and $1 0 ^ { \\mathrm { t h } }$ percentiles (instead of minima, as they are very unstable) of the absolute values of Hessians eigenvalues at different losses. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
174,
|
| 1198 |
+
805,
|
| 1199 |
+
825,
|
| 1200 |
+
861
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 7
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "As shown in Figure 6 and Figure 7, the condition numbers of 2-shortcut networks at different losses are always smaller, especially when the loss is large. Also, notice that the condition numbers roughly evolved to the same value for both orthogonal and 2-shortcut linear networks. This may be explained by the fact that the minimizers, as well as any point near them, have similar condition numbers. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
174,
|
| 1209 |
+
867,
|
| 1210 |
+
823,
|
| 1211 |
+
924
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 7
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "image",
|
| 1217 |
+
"img_path": "images/e7fd6d2242db1b2949e02ba010cb7e5cb5d9c549740871ede39a2991a1117cb8.jpg",
|
| 1218 |
+
"image_caption": [
|
| 1219 |
+
"Figure 5: Initial condition numbers of Hessians for different linear networks as the depths of the networks increase. Means and standard deviations are estimated based on 10 runs. "
|
| 1220 |
+
],
|
| 1221 |
+
"image_footnote": [],
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
236,
|
| 1224 |
+
103,
|
| 1225 |
+
758,
|
| 1226 |
+
297
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 8
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "image",
|
| 1232 |
+
"img_path": "images/e491de132755164c6b09e1268f561d391860e12cc863ba5a0230cb1de6d43673.jpg",
|
| 1233 |
+
"image_caption": [
|
| 1234 |
+
"Figure 6: Maxima and $1 0 ^ { \\mathrm { t h } }$ percentiles of absolute values of eigenvalues at different losses when the depth is 16. For each run, eigenvalues at different losses are calculated using linear interpolation. "
|
| 1235 |
+
],
|
| 1236 |
+
"image_footnote": [],
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
267,
|
| 1239 |
+
349,
|
| 1240 |
+
728,
|
| 1241 |
+
589
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 8
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "image",
|
| 1247 |
+
"img_path": "images/ba43372fef7c3f9396fae16676451e3cdd27147ecb5a9938f72a36666ccac965.jpg",
|
| 1248 |
+
"image_caption": [
|
| 1249 |
+
"Figure 7: Maxima and $1 0 ^ { \\mathrm { t h } }$ percentiles of absolute values of eigenvalues at different losses when the depth is 16. Eigenvalues at different losses are calculated using linear interpolation. "
|
| 1250 |
+
],
|
| 1251 |
+
"image_footnote": [],
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
282,
|
| 1254 |
+
657,
|
| 1255 |
+
683,
|
| 1256 |
+
873
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 8
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "Another observation is the changes of negative eigenvalues ratios. Index (ratio of negative eigenvalues) is an important characteristic of a critical point. Usually for the critical points of a neural network, the larger the loss the larger the index (Dauphin et al., 2014). In our experiments, the index of a 2-shortcut network is always smaller, and drops dramatically at the beginning, as shown in Figure 8, left. This might make the networks tend to stop at low critical points. ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
174,
|
| 1265 |
+
103,
|
| 1266 |
+
825,
|
| 1267 |
+
174
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 9
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "image",
|
| 1273 |
+
"img_path": "images/0f8f47ef870bf1849218165268309fb3a477f94337f8f5859b3d68f17569a922.jpg",
|
| 1274 |
+
"image_caption": [
|
| 1275 |
+
"Figure 8: Left: ratio of negative eigenvalues at different losses when the depth is 16. For each run, indexes at different losses are calculated using linear interpolation. Right: the dynamics of gradient and index of a 2-shortcut linear network in a single run. The gradient reaches its maximum while the index drops dramatically, indicating moving toward negative curvature directions. "
|
| 1276 |
+
],
|
| 1277 |
+
"image_footnote": [],
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
236,
|
| 1280 |
+
185,
|
| 1281 |
+
761,
|
| 1282 |
+
358
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 9
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "This is because the initial point is near a saddle point, thus it tends to go towards negative curvature directions, eliminating some negative eigenvalues at the beginning. This phenomenon matches the observation that the gradient reaches its maximum when the index drops dramatically, as shown in Figure 8, right. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
173,
|
| 1291 |
+
440,
|
| 1292 |
+
825,
|
| 1293 |
+
497
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 9
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "5.3 LEARNING RESULTS ",
|
| 1300 |
+
"text_level": 1,
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
176,
|
| 1303 |
+
515,
|
| 1304 |
+
354,
|
| 1305 |
+
529
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 9
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "We run different networks for 1000 epochs using different learning rates at log scale, and compare the average final losses of the optimal learning rates. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
171,
|
| 1314 |
+
540,
|
| 1315 |
+
825,
|
| 1316 |
+
569
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 9
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "image",
|
| 1322 |
+
"img_path": "images/64bafd2db8aa80844103d468a5de18786ce11bc7a0ffb813b0996a44b26f1092.jpg",
|
| 1323 |
+
"image_caption": [
|
| 1324 |
+
"Figure 9: Left: Optimal Final losses of different linear networks. Right: Corresponding optimal learning rates. When the depth is 96, the final losses of Xavier with different learning rates are basically the same, so the optimal learning rate is omitted as it is very unstable. "
|
| 1325 |
+
],
|
| 1326 |
+
"image_footnote": [],
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
248,
|
| 1329 |
+
587,
|
| 1330 |
+
741,
|
| 1331 |
+
762
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 9
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Figure 9 shows the results for linear networks. Just like their depth-invariant initial condition numbers, the final losses of 2-shortcut linear networks stay close to optimal as the networks become deeper. Higher learning rates can also be applied, resulting in fast learning in deep networks. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
832,
|
| 1341 |
+
825,
|
| 1342 |
+
875
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 9
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Then we add ReLUs to the mid positions of the networks. To make a fair comparison, the numbers of ReLU units in different networks are the same when the depths are the same, so 1-shortcut and 3-shortcut networks are omitted. The result is shown in Figure 10. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
881,
|
| 1352 |
+
825,
|
| 1353 |
+
924
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 9
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "image",
|
| 1359 |
+
"img_path": "images/1428f5f735a5850cd487815f64fb147c4ee07c34d8c8ff465fceef3b2c47cf17.jpg",
|
| 1360 |
+
"image_caption": [
|
| 1361 |
+
"Figure 10: Left: Optimal Final losses of different networks with ReLUs in mid positions. Right: Corresponding optimal learning rates. Note that as it is hard to compute the minimum losses with ReLUs, we plot the $\\log _ { 1 0 }$ (final loss) instead of $\\log _ { 1 0 }$ (final loss − optimal loss). When the depth is 64, the final losses of Xavier-ReLU and orthogonal-ReLU with different learning rates are basically the same, so the optimal learning rates are omitted as they are very unstable. "
|
| 1362 |
+
],
|
| 1363 |
+
"image_footnote": [],
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
235,
|
| 1366 |
+
98,
|
| 1367 |
+
759,
|
| 1368 |
+
270
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 10
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Note that because of the nonlinearities, the optimal losses vary for different networks with different depths. It is usually thought that deeper networks can represent more complex models, leading to smaller optimal losses. However, our experiments show that linear networks with Xavier or orthogonal initialization have difficulties finding these optimal points, while 2-shortcut networks find these optimal points easily as they did without nonlinear units. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
174,
|
| 1377 |
+
380,
|
| 1378 |
+
825,
|
| 1379 |
+
450
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 10
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "6 FUTURE DIRECTIONS ",
|
| 1386 |
+
"text_level": 1,
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
176,
|
| 1389 |
+
470,
|
| 1390 |
+
385,
|
| 1391 |
+
486
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 10
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Further studies should concentrate on the behavior of shortcut connections on convolution networks, as well as the influences of batch normalization units (Ioffe & Szegedy, 2015) in ResNet. Meanwhile, it would be very interesting to extend the insights obtained in this paper to recurrent neural networks such as LSTM (Sainath et al., 2013). ",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
174,
|
| 1400 |
+
502,
|
| 1401 |
+
825,
|
| 1402 |
+
558
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 10
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "REFERENCES ",
|
| 1409 |
+
"text_level": 1,
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
174,
|
| 1412 |
+
579,
|
| 1413 |
+
285,
|
| 1414 |
+
594
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 10
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "text",
|
| 1420 |
+
"text": "Anima Anandkumar and Rong Ge. Efficient approaches for escaping higher order saddle points in non-convex optimization. arXiv preprint arXiv:1602.05908, 2016. ",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
171,
|
| 1423 |
+
602,
|
| 1424 |
+
823,
|
| 1425 |
+
631
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 10
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "Chris Bishop. Exact calculation of the hessian matrix for the multilayer perceptron. Neural Computation, 4(4):494–501, 1992. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
173,
|
| 1434 |
+
640,
|
| 1435 |
+
821,
|
| 1436 |
+
669
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 10
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "Anna Choromanska, Mikael Henaff, Michael Mathieu, Gerard Ben Arous, and Yann LeCun. The ´ loss surfaces of multilayer networks. In AISTATS, 2015a. ",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
169,
|
| 1445 |
+
678,
|
| 1446 |
+
825,
|
| 1447 |
+
708
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 10
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "text",
|
| 1453 |
+
"text": "Anna Choromanska, Yann LeCun, and Gerard Ben Arous. Open problem: The landscape of the ´ loss surfaces of multilayer networks. In Proceedings of The 28th Conference on Learning Theory, COLT 2015, Paris, France, July 3, volume 6, pp. 1756–1760, 2015b. ",
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
174,
|
| 1456 |
+
715,
|
| 1457 |
+
823,
|
| 1458 |
+
760
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 10
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in neural information processing systems, pp. 2933–2941, 2014. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
178,
|
| 1467 |
+
767,
|
| 1468 |
+
823,
|
| 1469 |
+
810
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 10
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "Rong Ge, Furong Huang, Chi Jin, and Yang Yuan. Escaping from saddle pointsonline stochastic gradient for tensor decomposition. In Proceedings of The 28th Conference on Learning Theory, pp. 797–842, 2015. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
173,
|
| 1478 |
+
819,
|
| 1479 |
+
823,
|
| 1480 |
+
862
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 10
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Aistats, volume 9, pp. 249–256, 2010. ",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
173,
|
| 1489 |
+
871,
|
| 1490 |
+
823,
|
| 1491 |
+
900
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 10
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Robert M Gray. Toeplitz and circulant matrices: A review. now publishers inc, 2006. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
173,
|
| 1500 |
+
909,
|
| 1501 |
+
732,
|
| 1502 |
+
924
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 10
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "Moritz Hardt and Tengyu Ma. Identity matters in deep learning. arXiv preprint arXiv:1611.04231, 2016. ",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
171,
|
| 1511 |
+
103,
|
| 1512 |
+
823,
|
| 1513 |
+
132
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 11
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015a. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
173,
|
| 1522 |
+
143,
|
| 1523 |
+
820,
|
| 1524 |
+
174
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 11
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "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, 2015b. ",
|
| 1531 |
+
"bbox": [
|
| 1532 |
+
173,
|
| 1533 |
+
185,
|
| 1534 |
+
826,
|
| 1535 |
+
228
|
| 1536 |
+
],
|
| 1537 |
+
"page_idx": 11
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "text",
|
| 1541 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016. ",
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
173,
|
| 1544 |
+
241,
|
| 1545 |
+
825,
|
| 1546 |
+
270
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 11
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
|
| 1553 |
+
"bbox": [
|
| 1554 |
+
176,
|
| 1555 |
+
282,
|
| 1556 |
+
823,
|
| 1557 |
+
311
|
| 1558 |
+
],
|
| 1559 |
+
"page_idx": 11
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"text": "Kenji Kawaguchi. Deep learning without poor local minima. arXiv preprint arXiv:1605.07110, 2016. ",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
174,
|
| 1566 |
+
323,
|
| 1567 |
+
823,
|
| 1568 |
+
352
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 11
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010. ",
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
176,
|
| 1577 |
+
364,
|
| 1578 |
+
823,
|
| 1579 |
+
407
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 11
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "text",
|
| 1585 |
+
"text": "Arkadi Nemirovski. Efficient methods in convex programming. 2005. ",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
173,
|
| 1588 |
+
419,
|
| 1589 |
+
633,
|
| 1590 |
+
435
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 11
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "Razvan Pascanu, Yann N Dauphin, Surya Ganguli, and Yoshua Bengio. On the saddle point problem for non-convex optimization. arXiv preprint arXiv:1405.4604, 2014. ",
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
173,
|
| 1599 |
+
446,
|
| 1600 |
+
825,
|
| 1601 |
+
477
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 11
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "T.N. Sainath, O. Vinyals, A. Senior, and H. Sak. Convolutional, Long short-term memory, fully connected deep neural networks. Journal of Chemical Information and Modeling, 53(9):1689– 1699, 2013. ISSN 1098-6596. doi: 10.1017/CBO9781107415324.004. ",
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
174,
|
| 1610 |
+
488,
|
| 1611 |
+
825,
|
| 1612 |
+
531
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 11
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013. ",
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
171,
|
| 1621 |
+
542,
|
| 1622 |
+
825,
|
| 1623 |
+
573
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 11
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "text",
|
| 1629 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1630 |
+
"bbox": [
|
| 1631 |
+
173,
|
| 1632 |
+
584,
|
| 1633 |
+
823,
|
| 1634 |
+
614
|
| 1635 |
+
],
|
| 1636 |
+
"page_idx": 11
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "text",
|
| 1640 |
+
"text": "Rupesh K Srivastava, Klaus Greff, and Jurgen Schmidhuber. Training very deep networks. In ¨ Advances in neural information processing systems, pp. 2377–2385, 2015a. ",
|
| 1641 |
+
"bbox": [
|
| 1642 |
+
171,
|
| 1643 |
+
626,
|
| 1644 |
+
825,
|
| 1645 |
+
656
|
| 1646 |
+
],
|
| 1647 |
+
"page_idx": 11
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "text",
|
| 1651 |
+
"text": "Rupesh Kumar Srivastava, Klaus Greff, and Jurgen Schmidhuber. Highway networks. ¨ arXiv preprint arXiv:1505.00387, 2015b. ",
|
| 1652 |
+
"bbox": [
|
| 1653 |
+
171,
|
| 1654 |
+
666,
|
| 1655 |
+
823,
|
| 1656 |
+
696
|
| 1657 |
+
],
|
| 1658 |
+
"page_idx": 11
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "text",
|
| 1662 |
+
"text": "Christian Szegedy, Sergey Ioffe, and Vincent Vanhoucke. Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. feb 2016. URL http://arxiv.org/abs/ 1602.07261. ",
|
| 1663 |
+
"bbox": [
|
| 1664 |
+
173,
|
| 1665 |
+
708,
|
| 1666 |
+
825,
|
| 1667 |
+
752
|
| 1668 |
+
],
|
| 1669 |
+
"page_idx": 11
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"type": "text",
|
| 1673 |
+
"text": "Sasha Targ, Diogo Almeida, and Kevin Lyman. Resnet in resnet: Generalizing residual architectures. arXiv preprint arXiv:1603.08029, 2016. ",
|
| 1674 |
+
"bbox": [
|
| 1675 |
+
171,
|
| 1676 |
+
763,
|
| 1677 |
+
823,
|
| 1678 |
+
792
|
| 1679 |
+
],
|
| 1680 |
+
"page_idx": 11
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "text",
|
| 1684 |
+
"text": "Andreas Veit, Michael Wilber, and Serge Belongie. Residual networks are exponential ensembles of relatively shallow networks. arXiv preprint arXiv:1605.06431, 2016. ",
|
| 1685 |
+
"bbox": [
|
| 1686 |
+
169,
|
| 1687 |
+
805,
|
| 1688 |
+
823,
|
| 1689 |
+
834
|
| 1690 |
+
],
|
| 1691 |
+
"page_idx": 11
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "text",
|
| 1695 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
|
| 1696 |
+
"bbox": [
|
| 1697 |
+
173,
|
| 1698 |
+
845,
|
| 1699 |
+
825,
|
| 1700 |
+
876
|
| 1701 |
+
],
|
| 1702 |
+
"page_idx": 11
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "text",
|
| 1706 |
+
"text": "Ke Zhang, Miao Sun, Tony X Han, Xingfang Yuan, Liru Guo, and Tao Liu. Residual networks of residual networks: Multilevel residual networks. arXiv preprint arXiv:1608.02908, 2016. ",
|
| 1707 |
+
"bbox": [
|
| 1708 |
+
173,
|
| 1709 |
+
887,
|
| 1710 |
+
825,
|
| 1711 |
+
916
|
| 1712 |
+
],
|
| 1713 |
+
"page_idx": 11
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "text",
|
| 1717 |
+
"text": "A PROOFS OF THEOREMS ",
|
| 1718 |
+
"text_level": 1,
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
176,
|
| 1721 |
+
102,
|
| 1722 |
+
401,
|
| 1723 |
+
118
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 12
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "Definition 5. The elements in Hessian of an $n$ -shortcut network is defined as ",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
171,
|
| 1732 |
+
136,
|
| 1733 |
+
681,
|
| 1734 |
+
151
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 12
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "equation",
|
| 1740 |
+
"img_path": "images/9a8683a6eb3b43e1a3e96029991fe2870b437a287cba4c5d1e0c566603c3390c.jpg",
|
| 1741 |
+
"text": "$$\nH _ { \\mathrm { i n d } ( w _ { 1 } ) , \\mathrm { i n d } ( w _ { 2 } ) } = \\frac { \\partial ^ { 2 } L } { \\partial w _ { 1 } \\partial w _ { 2 } } ,\n$$",
|
| 1742 |
+
"text_format": "latex",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
400,
|
| 1745 |
+
159,
|
| 1746 |
+
598,
|
| 1747 |
+
193
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 12
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "where $L$ is the loss function, and the indices $\\operatorname { i n d } ( \\cdot )$ is ordered lexicographically following the four indices $( r , l , j , i )$ of the weight variable $\\underset { \\cdot } { w _ { i , j } ^ { r , l } }$ . In other words, the priority decreases along the index of shortcuts, index of weight matrix inside shortcuts, index of column, and index of row. ",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
173,
|
| 1756 |
+
202,
|
| 1757 |
+
826,
|
| 1758 |
+
248
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 12
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "text",
|
| 1764 |
+
"text": "Note that the collection of all the weight variables in the $n$ -shortcut network is denoted as w. We study the behavior of the loss function in the vicinity of ${ \\bf w } = { \\bf 0 }$ . ",
|
| 1765 |
+
"bbox": [
|
| 1766 |
+
174,
|
| 1767 |
+
261,
|
| 1768 |
+
823,
|
| 1769 |
+
290
|
| 1770 |
+
],
|
| 1771 |
+
"page_idx": 12
|
| 1772 |
+
},
|
| 1773 |
+
{
|
| 1774 |
+
"type": "text",
|
| 1775 |
+
"text": "Lemma 1. Assume that $w _ { 1 } \\ = \\ w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , l _ { 1 } } , \\cdot \\cdot \\cdot , w _ { N } \\ = \\ w _ { i _ { N } , j _ { N } } ^ { r _ { N } , l _ { N } }$ are $N$ parameters of an $n$ -shortcut network. If ∂ L∂w1···∂wN $\\begin{array} { r } { I f \\frac { \\partial ^ { 2 } L } { \\partial w _ { 1 } \\cdots \\partial w _ { N } } \\bigg | _ { \\mathbf { w } = \\mathbf { 0 } } } \\end{array}$ is nonzero, there exists $r$ and $k _ { 1 } , \\cdots , k _ { n }$ such that $r _ { k _ { m } } = r a n d l _ { k _ { m } } = m$ for $m = 1 , \\cdots , n$ . ",
|
| 1776 |
+
"bbox": [
|
| 1777 |
+
173,
|
| 1778 |
+
296,
|
| 1779 |
+
825,
|
| 1780 |
+
353
|
| 1781 |
+
],
|
| 1782 |
+
"page_idx": 12
|
| 1783 |
+
},
|
| 1784 |
+
{
|
| 1785 |
+
"type": "text",
|
| 1786 |
+
"text": "Proof. Assume there does not exist such $r$ and $k _ { 1 } , \\cdots , k _ { n }$ , then for all the shortcut units $r =$ $1 , \\cdots , R$ , there exists a weight matrix $l$ such that none of $w _ { 1 } , \\cdots , w _ { N }$ is in $W ^ { r , l }$ , so all the transformation paths are zero, which means $W = I _ { d _ { x } }$ . Then $\\left. \\frac { \\partial ^ { 2 } L } { \\partial w _ { 1 } \\cdots \\partial w _ { N } } \\right| _ { { \\bf w } = { \\bf 0 } } = 0$ , leading to a contradiction. □ ",
|
| 1787 |
+
"bbox": [
|
| 1788 |
+
173,
|
| 1789 |
+
380,
|
| 1790 |
+
825,
|
| 1791 |
+
446
|
| 1792 |
+
],
|
| 1793 |
+
"page_idx": 12
|
| 1794 |
+
},
|
| 1795 |
+
{
|
| 1796 |
+
"type": "text",
|
| 1797 |
+
"text": "Lemma 2. Assume that $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , l _ { 1 } } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r _ { 2 } , l _ { 2 } } , r _ { 1 } \\le r _ { 2 }$ . Let $L _ { 0 } ( w _ { 1 } , w _ { 2 } )$ denotes the loss function with all the parameters except 0 $w _ { 1 }$ and $w _ { 2 }$ set to $O _ { ; }$ , $w _ { 1 } ^ { \\prime } = w _ { i _ { 1 } , j _ { 1 } } ^ { 1 , l _ { 1 } } , w _ { 2 } ^ { \\prime } = w _ { i _ { 2 } , j _ { 2 } } ^ { 1 + \\mathbb { 1 } ( r _ { 1 } \\neq r _ { 2 } ) , l _ { 2 } }$ . Then $\\begin{array} { r } { \\frac { \\partial ^ { 2 } L _ { 0 } ( w _ { 1 } , w _ { 2 } ) } { \\partial w _ { 1 } \\partial w _ { 2 } } | _ { ( w _ { 1 } , w _ { 2 } ) = 0 } = \\frac { \\partial ^ { 2 } L _ { 0 } ( w _ { 1 } ^ { \\prime } , w _ { 2 } ^ { \\prime } ) } { \\partial w _ { 1 } ^ { \\prime } \\partial w _ { 2 } ^ { \\prime } } | _ { ( w _ { 1 } ^ { \\prime } , w _ { 2 } ^ { \\prime } ) = 0 } . } \\end{array}$ ",
|
| 1798 |
+
"bbox": [
|
| 1799 |
+
171,
|
| 1800 |
+
464,
|
| 1801 |
+
825,
|
| 1802 |
+
527
|
| 1803 |
+
],
|
| 1804 |
+
"page_idx": 12
|
| 1805 |
+
},
|
| 1806 |
+
{
|
| 1807 |
+
"type": "text",
|
| 1808 |
+
"text": "Proof. As all the residual units expect unit $r _ { 1 }$ and $r _ { 2 }$ are identity transformations, reordering residual units while preserving the order of units $r _ { 1 }$ and $r _ { 2 }$ will not affect the overall transformation, i.e. $L _ { 0 } ( w _ { 1 } , w _ { 2 } ) | _ { w _ { 1 } = a , w _ { 2 } = b } ~ = ~ L _ { 0 } ^ { \\prime } ( w _ { 1 } ^ { \\prime } , w _ { 2 } ^ { \\prime } ) | _ { w _ { 1 } ^ { \\prime } = a , w _ { 2 } ^ { \\prime } = b }$ . So $\\frac { \\partial ^ { 2 } L _ { 0 } ( w _ { 1 } , w _ { 2 } ) } { \\partial w _ { 1 } \\partial w _ { 2 } } | _ { ( w _ { 1 } , w _ { 2 } ) = { \\bf 0 } } =$ $\\frac { \\partial ^ { 2 } L _ { 0 } ( w _ { 1 } ^ { \\prime } , w _ { 2 } ^ { \\prime } ) } { \\partial w _ { 1 } ^ { \\prime } \\partial w _ { 2 } ^ { \\prime } } \\big | _ { ( w _ { 1 } ^ { \\prime } , w _ { 2 } ^ { \\prime } ) = { \\bf 0 } }$ . □ ",
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
173,
|
| 1811 |
+
553,
|
| 1812 |
+
825,
|
| 1813 |
+
626
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 12
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "Proof of Theorem 1. Now we can prove Theorem 1 with the help of the previously established lemmas. ",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
173,
|
| 1822 |
+
651,
|
| 1823 |
+
823,
|
| 1824 |
+
681
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 12
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "1. Using Lemma 1, for an $n$ -shortcut network, at zero, all the $k$ -th order partial derivatives of the loss function are zero, where $k$ ranges from 1 to $n - 1$ . Hence, the initial point zero is a $( n - 1 )$ th-order stationary point of the loss function. ",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
212,
|
| 1833 |
+
705,
|
| 1834 |
+
825,
|
| 1835 |
+
750
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 12
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "text",
|
| 1841 |
+
"text": "2. Consider the Hessian in $n = 2$ case. Using Lemma 1 and Lemma 2, the form of Hessian can be directly written as Equation (11), as illustrated in Figure 11. ",
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
210,
|
| 1844 |
+
760,
|
| 1845 |
+
826,
|
| 1846 |
+
790
|
| 1847 |
+
],
|
| 1848 |
+
"page_idx": 12
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "text",
|
| 1852 |
+
"text": "So we have ",
|
| 1853 |
+
"bbox": [
|
| 1854 |
+
232,
|
| 1855 |
+
796,
|
| 1856 |
+
310,
|
| 1857 |
+
809
|
| 1858 |
+
],
|
| 1859 |
+
"page_idx": 12
|
| 1860 |
+
},
|
| 1861 |
+
{
|
| 1862 |
+
"type": "equation",
|
| 1863 |
+
"img_path": "images/b4b51c441527bc160800eabf72ebbd96866f9c7c8221bfba52ef11b0ae52ca0e.jpg",
|
| 1864 |
+
"text": "$$\n\\mathrm { e i g s } ( H ) = \\mathrm { e i g s } ( \\left[ { \\bf 0 } \\quad A ^ { T } \\right] ) = \\pm \\sqrt { \\mathrm { e i g s } ( A ^ { T } A ) } .\n$$",
|
| 1865 |
+
"text_format": "latex",
|
| 1866 |
+
"bbox": [
|
| 1867 |
+
369,
|
| 1868 |
+
810,
|
| 1869 |
+
686,
|
| 1870 |
+
845
|
| 1871 |
+
],
|
| 1872 |
+
"page_idx": 12
|
| 1873 |
+
},
|
| 1874 |
+
{
|
| 1875 |
+
"type": "text",
|
| 1876 |
+
"text": "Thus $\\operatorname { c o n d } ( H ) = { \\sqrt { \\operatorname { c o n d } ( A ^ { T } A ) } }$ , which is depth-invariant. Note that the dimension of $A$ is $d _ { x } ^ { 2 } \\times d _ { x } ^ { 2 }$ . ",
|
| 1877 |
+
"bbox": [
|
| 1878 |
+
228,
|
| 1879 |
+
856,
|
| 1880 |
+
823,
|
| 1881 |
+
888
|
| 1882 |
+
],
|
| 1883 |
+
"page_idx": 12
|
| 1884 |
+
},
|
| 1885 |
+
{
|
| 1886 |
+
"type": "text",
|
| 1887 |
+
"text": "To get the expression of $A$ , consider two parameters that are in the same residual unit but different weight matrices, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r , 2 } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r , 1 }$ . ",
|
| 1888 |
+
"bbox": [
|
| 1889 |
+
232,
|
| 1890 |
+
893,
|
| 1891 |
+
823,
|
| 1892 |
+
928
|
| 1893 |
+
],
|
| 1894 |
+
"page_idx": 12
|
| 1895 |
+
},
|
| 1896 |
+
{
|
| 1897 |
+
"type": "image",
|
| 1898 |
+
"img_path": "images/963e9a8de93364de78d221fd32e403c39d4e55d5d393094e5790d48bdff4c5ee.jpg",
|
| 1899 |
+
"image_caption": [
|
| 1900 |
+
"Figure 11: The Hessian in $n = 2$ case. It follows from Lemma 1 that only off-diagonal subblocks in each diagonal block, i.e., the blocks marked in orange (slash) and blue (chessboard), are non-zero. From Lemma 2, we conclude the translation invariance and that all blocks marked in orange (slash) (resp. blue (chessboard)) are the same. Given that the Hessian is symmetric, the blocks marked in blue and orange are transposes of each other, and thus it can be directly written as Equation (11). "
|
| 1901 |
+
],
|
| 1902 |
+
"image_footnote": [],
|
| 1903 |
+
"bbox": [
|
| 1904 |
+
334,
|
| 1905 |
+
99,
|
| 1906 |
+
660,
|
| 1907 |
+
337
|
| 1908 |
+
],
|
| 1909 |
+
"page_idx": 13
|
| 1910 |
+
},
|
| 1911 |
+
{
|
| 1912 |
+
"type": "text",
|
| 1913 |
+
"text": "If $j _ { 1 } = i _ { 2 }$ , we have ",
|
| 1914 |
+
"bbox": [
|
| 1915 |
+
232,
|
| 1916 |
+
450,
|
| 1917 |
+
361,
|
| 1918 |
+
467
|
| 1919 |
+
],
|
| 1920 |
+
"page_idx": 13
|
| 1921 |
+
},
|
| 1922 |
+
{
|
| 1923 |
+
"type": "equation",
|
| 1924 |
+
"img_path": "images/eb9d79cc26ee6a5e16a1ff070e624c73d3a929e7d9347cef05dacb2a4bbdfd0c.jpg",
|
| 1925 |
+
"text": "$$\n\\begin{array} { l } { { A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \\displaystyle \\frac { \\partial ^ { 2 } { \\cal L } } { \\partial w _ { 1 } \\partial w _ { 2 } } \\Big | _ { { \\bf w } = { \\bf 0 } } } } \\\\ { { \\phantom { A } = \\displaystyle \\frac { \\partial ^ { 2 } \\sum _ { \\mu = 1 } ^ { m } \\frac { 1 } { 2 m } ( y _ { i _ { 1 } } ^ { \\mu } - x _ { i _ { 1 } } ^ { \\mu } - \\sigma _ { \\mathrm { p o s t } } ( w _ { 1 } \\sigma _ { \\mathrm { m i d } } ( w _ { 2 } \\sigma _ { \\mathrm { p r e } } ( x _ { j _ { 2 } } ^ { \\mu } ) ) ) ) ^ { 2 } } { \\partial w _ { 1 } \\partial w _ { 2 } } \\Big | _ { { \\bf w } = { \\bf 0 } } } } \\\\ { { \\phantom { A } = \\displaystyle \\frac { \\sigma _ { \\mathrm { m i d } } ^ { \\prime } ( 0 ) \\sigma _ { \\mathrm { p o s t } } ^ { \\prime } ( 0 ) } { m } \\sum _ { \\mu = 1 } ^ { m } \\sigma _ { \\mathrm { p r e } } ( x _ { j _ { 2 } } ^ { \\mu } ) ( x _ { i _ { 1 } } ^ { \\mu } - y _ { i _ { 1 } } ^ { \\mu } ) . } } \\end{array}\n$$",
|
| 1926 |
+
"text_format": "latex",
|
| 1927 |
+
"bbox": [
|
| 1928 |
+
230,
|
| 1929 |
+
476,
|
| 1930 |
+
839,
|
| 1931 |
+
592
|
| 1932 |
+
],
|
| 1933 |
+
"page_idx": 13
|
| 1934 |
+
},
|
| 1935 |
+
{
|
| 1936 |
+
"type": "text",
|
| 1937 |
+
"text": "Else, we have $A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = 0 .$ ",
|
| 1938 |
+
"bbox": [
|
| 1939 |
+
233,
|
| 1940 |
+
617,
|
| 1941 |
+
526,
|
| 1942 |
+
633
|
| 1943 |
+
],
|
| 1944 |
+
"page_idx": 13
|
| 1945 |
+
},
|
| 1946 |
+
{
|
| 1947 |
+
"type": "text",
|
| 1948 |
+
"text": "Noting that $A _ { ( j _ { 1 } , \\ldots , 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } }$ in fact only depends on the two indices $i _ { 1 } , j _ { 2 }$ (with a small difference depending on whether $\\begin{array} { r l r } { j _ { 1 } } & { { } = } & { i _ { 2 } ) } \\end{array}$ , we make a $d _ { x } \\mathrm { ~ ~ \\times ~ }$ $d _ { x }$ matrix with rows indexed by $i _ { 1 }$ and columns indexed by $j _ { 2 }$ , and the entry at $( i _ { 1 } , j _ { 2 } )$ equal to $A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } }$ . Apparently, this matrix is equal to $\\sigma _ { \\mathrm { m i d } } ^ { \\prime } ( 0 ) \\sigma _ { \\mathrm { p o s t } } ^ { \\prime } ( 0 ) \\bigl ( \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } ( X ) } - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } ( X ) } \\bigr )$ when $j _ { 1 } ~ = ~ i _ { 2 }$ , and equal to the zero matrix when $j _ { 1 } \\neq i _ { 2 }$ . ",
|
| 1949 |
+
"bbox": [
|
| 1950 |
+
232,
|
| 1951 |
+
637,
|
| 1952 |
+
825,
|
| 1953 |
+
726
|
| 1954 |
+
],
|
| 1955 |
+
"page_idx": 13
|
| 1956 |
+
},
|
| 1957 |
+
{
|
| 1958 |
+
"type": "text",
|
| 1959 |
+
"text": "To simplify the expression of $A$ , we rearrange the columns of $A$ by a permutation matrix, i.e. ",
|
| 1960 |
+
"bbox": [
|
| 1961 |
+
232,
|
| 1962 |
+
731,
|
| 1963 |
+
823,
|
| 1964 |
+
760
|
| 1965 |
+
],
|
| 1966 |
+
"page_idx": 13
|
| 1967 |
+
},
|
| 1968 |
+
{
|
| 1969 |
+
"type": "equation",
|
| 1970 |
+
"img_path": "images/2bd4e49843f5c12f7d6377c31b3c8c1fb065a0157b1b77f6de5d6489ebdaf139.jpg",
|
| 1971 |
+
"text": "$$\nA ^ { \\prime } = A P ,\n$$",
|
| 1972 |
+
"text_format": "latex",
|
| 1973 |
+
"bbox": [
|
| 1974 |
+
491,
|
| 1975 |
+
765,
|
| 1976 |
+
562,
|
| 1977 |
+
781
|
| 1978 |
+
],
|
| 1979 |
+
"page_idx": 13
|
| 1980 |
+
},
|
| 1981 |
+
{
|
| 1982 |
+
"type": "text",
|
| 1983 |
+
"text": "where $P _ { i j } = 1$ if and only if $\\begin{array} { r } { i = ( ( j - 1 ) \\bmod d _ { x } ) d _ { x } + \\lceil \\frac { j } { d _ { x } } \\rceil } \\end{array}$ . Basically it permutes the $i$ -th column of $A$ to the $j$ -th column. ",
|
| 1984 |
+
"bbox": [
|
| 1985 |
+
233,
|
| 1986 |
+
792,
|
| 1987 |
+
825,
|
| 1988 |
+
824
|
| 1989 |
+
],
|
| 1990 |
+
"page_idx": 13
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"type": "text",
|
| 1994 |
+
"text": "Then we have ",
|
| 1995 |
+
"bbox": [
|
| 1996 |
+
232,
|
| 1997 |
+
830,
|
| 1998 |
+
326,
|
| 1999 |
+
844
|
| 2000 |
+
],
|
| 2001 |
+
"page_idx": 13
|
| 2002 |
+
},
|
| 2003 |
+
{
|
| 2004 |
+
"type": "equation",
|
| 2005 |
+
"img_path": "images/514587deae8fa7e43680c78c25b359ef9e0147c9e08c18a6e65d542c53e39132.jpg",
|
| 2006 |
+
"text": "$$\nA = \\sigma _ { \\mathrm { m i d } } ^ { \\prime } ( 0 ) \\sigma _ { \\mathrm { p o s t } } ^ { \\prime } ( 0 ) \\left[ \\begin{array} { l l l l } { \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } ( X ) } - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } ( X ) } } & & & \\\\ & & { \\ddots } & & \\\\ & & & { \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } ( X ) } - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } ( X ) } } \\end{array} \\right] P ^ { T } .\n$$",
|
| 2007 |
+
"text_format": "latex",
|
| 2008 |
+
"bbox": [
|
| 2009 |
+
243,
|
| 2010 |
+
852,
|
| 2011 |
+
812,
|
| 2012 |
+
912
|
| 2013 |
+
],
|
| 2014 |
+
"page_idx": 13
|
| 2015 |
+
},
|
| 2016 |
+
{
|
| 2017 |
+
"type": "text",
|
| 2018 |
+
"text": "So the eigenvalues of $H$ becomes ",
|
| 2019 |
+
"bbox": [
|
| 2020 |
+
232,
|
| 2021 |
+
103,
|
| 2022 |
+
455,
|
| 2023 |
+
118
|
| 2024 |
+
],
|
| 2025 |
+
"page_idx": 14
|
| 2026 |
+
},
|
| 2027 |
+
{
|
| 2028 |
+
"type": "equation",
|
| 2029 |
+
"img_path": "images/1ed912af0a23c570e7e7f109cd56e77ba9225abb559c120dbfc41e02aee0ba34.jpg",
|
| 2030 |
+
"text": "$$\n\\begin{array} { r } { \\mathrm { e i g s } ( H ) = \\pm \\sigma _ { \\mathrm { m i d } } ^ { \\prime } ( 0 ) \\sigma _ { \\mathrm { p o s t } } ^ { \\prime } ( 0 ) \\sqrt { \\mathrm { e i g s } \\big ( ( \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } } ( X ) - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } } ( X ) \\big ) T \\big ( \\Sigma ^ { X \\sigma _ { \\mathrm { p r e } } } ( X ) - \\Sigma ^ { Y \\sigma _ { \\mathrm { p r e } } } ( X ) \\big ) \\big ) } , } \\end{array}\n$$",
|
| 2031 |
+
"text_format": "latex",
|
| 2032 |
+
"bbox": [
|
| 2033 |
+
232,
|
| 2034 |
+
122,
|
| 2035 |
+
841,
|
| 2036 |
+
150
|
| 2037 |
+
],
|
| 2038 |
+
"page_idx": 14
|
| 2039 |
+
},
|
| 2040 |
+
{
|
| 2041 |
+
"type": "text",
|
| 2042 |
+
"text": "which leads to Equation (12). ",
|
| 2043 |
+
"bbox": [
|
| 2044 |
+
232,
|
| 2045 |
+
167,
|
| 2046 |
+
426,
|
| 2047 |
+
183
|
| 2048 |
+
],
|
| 2049 |
+
"page_idx": 14
|
| 2050 |
+
},
|
| 2051 |
+
{
|
| 2052 |
+
"type": "text",
|
| 2053 |
+
"text": "3. Now consider the Hessian in the $n = 1$ case. Using Lemma 2, the form of Hessian can be directly written as Equation (13). ",
|
| 2054 |
+
"bbox": [
|
| 2055 |
+
215,
|
| 2056 |
+
191,
|
| 2057 |
+
825,
|
| 2058 |
+
220
|
| 2059 |
+
],
|
| 2060 |
+
"page_idx": 14
|
| 2061 |
+
},
|
| 2062 |
+
{
|
| 2063 |
+
"type": "text",
|
| 2064 |
+
"text": "To get the expressions of $A$ and $B$ in $\\sigma _ { \\mathrm { p r e } } ( x ) = \\sigma _ { \\mathrm { p o s t } } ( x ) = x$ case, consider two parameters that are in the same residual units, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r , 1 } , w _ { 2 } = w _ { i _ { 2 } , j _ { 2 } } ^ { r , 1 }$ . ",
|
| 2065 |
+
"bbox": [
|
| 2066 |
+
233,
|
| 2067 |
+
227,
|
| 2068 |
+
821,
|
| 2069 |
+
261
|
| 2070 |
+
],
|
| 2071 |
+
"page_idx": 14
|
| 2072 |
+
},
|
| 2073 |
+
{
|
| 2074 |
+
"type": "text",
|
| 2075 |
+
"text": "We have ",
|
| 2076 |
+
"bbox": [
|
| 2077 |
+
232,
|
| 2078 |
+
265,
|
| 2079 |
+
290,
|
| 2080 |
+
279
|
| 2081 |
+
],
|
| 2082 |
+
"page_idx": 14
|
| 2083 |
+
},
|
| 2084 |
+
{
|
| 2085 |
+
"type": "equation",
|
| 2086 |
+
"img_path": "images/75d60021e55cbd68975eeadaba6e8ff69927220fcfbdbc83b28689be179868db.jpg",
|
| 2087 |
+
"text": "$$\n\\begin{array} { r l } { B _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \\frac { \\partial ^ { 2 } { \\cal L } } { \\partial w _ { 1 } \\partial w _ { 2 } } \\Big | _ { { \\bf w } = { \\bf 0 } } } & { { } } \\\\ { \\quad \\quad } & { { } = \\left\\{ \\begin{array} { l l } { \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } x _ { j _ { 1 } } ^ { \\mu } x _ { j _ { 2 } } ^ { \\mu } } & { i _ { 1 } = i _ { 2 } } \\\\ { 0 } & { i _ { 1 } \\ne i _ { 2 } } \\end{array} \\right. } \\end{array}\n$$",
|
| 2088 |
+
"text_format": "latex",
|
| 2089 |
+
"bbox": [
|
| 2090 |
+
339,
|
| 2091 |
+
280,
|
| 2092 |
+
717,
|
| 2093 |
+
358
|
| 2094 |
+
],
|
| 2095 |
+
"page_idx": 14
|
| 2096 |
+
},
|
| 2097 |
+
{
|
| 2098 |
+
"type": "text",
|
| 2099 |
+
"text": "Rearrange the order of variables using $P$ , we have ",
|
| 2100 |
+
"bbox": [
|
| 2101 |
+
232,
|
| 2102 |
+
367,
|
| 2103 |
+
562,
|
| 2104 |
+
382
|
| 2105 |
+
],
|
| 2106 |
+
"page_idx": 14
|
| 2107 |
+
},
|
| 2108 |
+
{
|
| 2109 |
+
"type": "equation",
|
| 2110 |
+
"img_path": "images/a7ae31f3048a87f39acf87fcc3dfe62c6f676d83166d604992a9ed00bf6e71b8.jpg",
|
| 2111 |
+
"text": "$$\n\\boldsymbol { B } = \\boldsymbol { P } \\left[ \\begin{array} { l l l } { \\boldsymbol { \\Sigma } ^ { X X } } & & \\\\ & { \\boldsymbol { \\cdot } } & \\\\ & & { \\boldsymbol { \\cdot } \\boldsymbol { \\cdot } } \\\\ & & & { \\boldsymbol { \\Sigma } ^ { X X } } \\end{array} \\right] \\boldsymbol { P } ^ { T } .\n$$",
|
| 2112 |
+
"text_format": "latex",
|
| 2113 |
+
"bbox": [
|
| 2114 |
+
413,
|
| 2115 |
+
385,
|
| 2116 |
+
643,
|
| 2117 |
+
444
|
| 2118 |
+
],
|
| 2119 |
+
"page_idx": 14
|
| 2120 |
+
},
|
| 2121 |
+
{
|
| 2122 |
+
"type": "text",
|
| 2123 |
+
"text": "Then consider two parameters that are in different residual units, i.e. $w _ { 1 } = w _ { i _ { 1 } , j _ { 1 } } ^ { r _ { 1 } , 1 } , w _ { 2 } =$ \n$w _ { i _ { 2 } , j _ { 2 } } ^ { r _ { 2 } , 1 } , r _ { 1 } > r _ { 2 }$ . ",
|
| 2124 |
+
"bbox": [
|
| 2125 |
+
232,
|
| 2126 |
+
457,
|
| 2127 |
+
825,
|
| 2128 |
+
491
|
| 2129 |
+
],
|
| 2130 |
+
"page_idx": 14
|
| 2131 |
+
},
|
| 2132 |
+
{
|
| 2133 |
+
"type": "text",
|
| 2134 |
+
"text": "We have ",
|
| 2135 |
+
"bbox": [
|
| 2136 |
+
232,
|
| 2137 |
+
497,
|
| 2138 |
+
290,
|
| 2139 |
+
511
|
| 2140 |
+
],
|
| 2141 |
+
"page_idx": 14
|
| 2142 |
+
},
|
| 2143 |
+
{
|
| 2144 |
+
"type": "equation",
|
| 2145 |
+
"img_path": "images/5240f03d250e96f294808e98f973b48a5907680f163958d86582ec377e45da8d.jpg",
|
| 2146 |
+
"text": "$$\n\\begin{array} { l l } { { A _ { ( j _ { 1 } - 1 ) d _ { x } + i _ { 1 } , ( j _ { 2 } - 1 ) d _ { x } + i _ { 2 } } = \\displaystyle \\frac { \\partial ^ { 2 } { \\cal L } } { \\partial w _ { 1 } \\partial w _ { 2 } } \\Big | _ { { \\bf w } = { \\bf 0 } } } } \\\\ { { \\ } } \\\\ { { \\quad = \\left\\{ \\begin{array} { l l } { { \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } ( x _ { i _ { 1 } } ^ { \\mu } - y _ { i _ { 1 } } ^ { \\mu } ) x _ { j _ { 2 } } ^ { \\mu } + x _ { j _ { 1 } } ^ { \\mu } x _ { j _ { 2 } } ^ { \\mu } } } & { { j _ { 1 } = i _ { 2 } , i _ { 1 } = i _ { 2 } } } \\\\ { { \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } ( x _ { i _ { 1 } } ^ { \\mu } - y _ { i _ { 1 } } ^ { \\mu } ) x _ { j _ { 2 } } ^ { \\mu } } } & { { j _ { 1 } = i _ { 2 } , i _ { 1 } \\neq i _ { 2 } } } \\\\ { { \\frac { 1 } { m } \\sum _ { \\mu = 1 } ^ { m } x _ { j _ { 1 } } ^ { \\mu } x _ { j _ { 2 } } ^ { \\mu } } } & { { j _ { 1 } \\neq i _ { 2 } , i _ { 1 } = i _ { 2 } } } \\\\ { { 0 } } & { { j _ { 1 } \\neq i _ { 2 } , i _ { 1 } \\neq i _ { 2 } } } \\end{array} \\right. } } \\end{array}\n$$",
|
| 2147 |
+
"text_format": "latex",
|
| 2148 |
+
"bbox": [
|
| 2149 |
+
238,
|
| 2150 |
+
511,
|
| 2151 |
+
787,
|
| 2152 |
+
619
|
| 2153 |
+
],
|
| 2154 |
+
"page_idx": 14
|
| 2155 |
+
},
|
| 2156 |
+
{
|
| 2157 |
+
"type": "text",
|
| 2158 |
+
"text": "In the same way, we can rewrite $A$ as ",
|
| 2159 |
+
"bbox": [
|
| 2160 |
+
232,
|
| 2161 |
+
630,
|
| 2162 |
+
478,
|
| 2163 |
+
645
|
| 2164 |
+
],
|
| 2165 |
+
"page_idx": 14
|
| 2166 |
+
},
|
| 2167 |
+
{
|
| 2168 |
+
"type": "equation",
|
| 2169 |
+
"img_path": "images/fb3ea221226d2a049a0b50aebef28e6d74889673848be71c7cba19a17cc8f18d.jpg",
|
| 2170 |
+
"text": "$$\n\\boldsymbol { A } = \\left[ \\begin{array} { l l l } { \\boldsymbol { \\Sigma } ^ { X X } - \\boldsymbol { \\Sigma } ^ { Y X } } & & \\\\ & { \\boldsymbol { \\cdot } } & \\\\ & & { \\boldsymbol { \\cdot } \\boldsymbol { \\cdot } } & \\\\ & & { \\boldsymbol { \\Sigma } ^ { X X } - \\boldsymbol { \\Sigma } ^ { Y X } } \\end{array} \\right] \\boldsymbol { P } ^ { T } + \\boldsymbol { B } .\n$$",
|
| 2171 |
+
"text_format": "latex",
|
| 2172 |
+
"bbox": [
|
| 2173 |
+
349,
|
| 2174 |
+
647,
|
| 2175 |
+
705,
|
| 2176 |
+
707
|
| 2177 |
+
],
|
| 2178 |
+
"page_idx": 14
|
| 2179 |
+
},
|
| 2180 |
+
{
|
| 2181 |
+
"type": "text",
|
| 2182 |
+
"text": "B EXPERIMENT SETUP ",
|
| 2183 |
+
"text_level": 1,
|
| 2184 |
+
"bbox": [
|
| 2185 |
+
174,
|
| 2186 |
+
751,
|
| 2187 |
+
379,
|
| 2188 |
+
767
|
| 2189 |
+
],
|
| 2190 |
+
"page_idx": 14
|
| 2191 |
+
},
|
| 2192 |
+
{
|
| 2193 |
+
"type": "text",
|
| 2194 |
+
"text": "We took the experiments on whitened versions of MNIST. 10 greatest principal components are kept for the dataset inputs. The dataset outputs are represented using one-hot encoding. The network was trained using gradient descent. For every epoch, the Hessians of the networks were calculated using the method proposed in (Bishop, 1992). As the $| \\lambda | _ { \\operatorname* { m i n } }$ of Hessian is usually very unstable, we calculated $\\frac { | \\lambda | _ { \\operatorname* { m a x } } } { | \\lambda | _ { ( 0 . 1 ) } }$ to represent condition number instead, where $| \\lambda | _ { ( 0 . 1 ) }$ is the $1 0 ^ { \\mathrm { t h } }$ percentile of the absolute values of eigenvalues. ",
|
| 2195 |
+
"bbox": [
|
| 2196 |
+
173,
|
| 2197 |
+
780,
|
| 2198 |
+
825,
|
| 2199 |
+
872
|
| 2200 |
+
],
|
| 2201 |
+
"page_idx": 14
|
| 2202 |
+
},
|
| 2203 |
+
{
|
| 2204 |
+
"type": "text",
|
| 2205 |
+
"text": "As pre, mid or post positions are not defined in linear networks without shortcuts, when comparing Xavier or orthogonal initialized linear networks to 2-shortcut networks, we added ReLUs at the same positions in linear networks as in 2-shortcuts networks. ",
|
| 2206 |
+
"bbox": [
|
| 2207 |
+
173,
|
| 2208 |
+
878,
|
| 2209 |
+
823,
|
| 2210 |
+
921
|
| 2211 |
+
],
|
| 2212 |
+
"page_idx": 14
|
| 2213 |
+
}
|
| 2214 |
+
]
|
parse/train/SJAr0QFxe/SJAr0QFxe_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJAr0QFxe/SJAr0QFxe_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/o966_Is_nPA/o966_Is_nPA.md
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NEURAL PRUNING VIA GROWING REGULARIZATION
|
| 2 |
+
|
| 3 |
+
Huan Wang, Can Qin, Yulun Zhang∗, Yun Fu Northeastern University, Boston, MA, USA {wang.huan, qin.ca}@northeastern.edu, yulun100@gmail.com, yunfu@ece.neu.edu
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Regularization has long been utilized to learn sparsity in deep neural network pruning. However, its role is mainly explored in the small penalty strength regime. In this work, we extend its application to a new scenario where the regularization grows large gradually to tackle two central problems of pruning: pruning schedule and weight importance scoring. (1) The former topic is newly brought up in this work, which we find critical to the pruning performance while receives little research attention. Specifically, we propose an $L _ { 2 }$ regularization variant with rising penalty factors and show it can bring significant accuracy gains compared with its one-shot counterpart, even when the same weights are removed. (2) The growing penalty scheme also brings us an approach to exploit the Hessian information for more accurate pruning without knowing their specific values, thus not bothered by the common Hessian approximation problems. Empirically, the proposed algorithms are easy to implement and scalable to large datasets and networks in both structured and unstructured pruning. Their effectiveness is demonstrated with modern deep neural networks on the CIFAR and ImageNet datasets, achieving competitive results compared to many state-of-the-art algorithms. Our code and trained models are publicly available at https://github.com/mingsuntse/regularization-pruning.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
As deep neural networks advance in recent years LeCun et al. (2015); Schmidhuber (2015), their remarkable effectiveness comes at a cost of rising storage, memory footprint, computing resources and energy consumption Cheng et al. (2017); Deng et al. (2020). Neural network pruning Han et al. (2015; 2016); Li et al. (2017); Wen et al. (2016); He et al. (2017); Gale et al. (2019) is deemed as a promising force to alleviate this problem. Since its early debut Mozer & Smolensky (1989); Reed (1993), the central problem of neural network pruning has been (arguably) how to choose weights to discard, i.e., the weight importance scoring problem LeCun et al. (1990); Hassibi & Stork (1993); Molchanov et al. (2017b; 2019); Wang et al. (2019a); He et al. (2020).
|
| 12 |
+
|
| 13 |
+
The approaches to the scoring problem generally fall into two groups: importance-based and regularization-based Reed (1993). The former focuses on directly proposing certain theoretically sound importance criterion so that we can prune the unimportant weights once for all. Thus, the pruning process is typically one-shot. In contrast, regularization-based approaches typically select unimportant weights through training with a penalty term Han et al. (2015); Wen et al. (2016); Liu et al. (2017). However, the penalty strength is usually maintained in a small regime to avoid damaging the model expressivity. Whereas, a large penalty strength can be helpful, specifically in two aspects. (1) A large penalty can push unimportant weights rather close to zero, then the pruning later barely hurts the performance even if the simple weight magnitude is adopted as criterion. (2) It is well-known that different weights of a neural network lie on the regions with different local quadratic structures, i.e., Hessian information. Many methods try to tap into this to build a more accurate scoring LeCun et al. (1990); Hassibi & Stork (1993); Wang et al. (2019a); Singh & Alistarh (2020). However, for deep networks, it is especially hard to estimate Hessian. Sometimes, even the computing itself can be intractable without resorting to proper approximation Wang et al. (2019a). On this problem, we ask: Is it possible to exploit the Hessian information without knowing their specific values? This is the second scenario where a growing regularization can help. We will show under a growing regularization, the weight magnitude will naturally separate because of their different underlying local quadratic structure, therein we can pick the unimportant weights more faithfully even using the simple magnitude-based criterion. Corresponding to these two aspects, we will present two algorithms based on a growing $L _ { 2 }$ regularization paradigm, in which the first highlights a better pruning schedule1 and the second explores a better pruning criterion.
|
| 14 |
+
|
| 15 |
+
Our contributions. (1) We propose a simple yet effective growing regularization scheme, which can help transfer the model expressivity to the remaining part during pruning. The encouraging performance inspires us that the pruning schedule may be as critical as the weight importance criterion and deserve more research attention. (2) We further adopt growing regularization to exploit Hessian implicitly, without knowing their specific values. The method can help choose the unimportant weights more faithfully with a theoretically sound basis. In this regard, our paper is the first to show the connection between magnitude-based pruning and Hessian-based pruning, pointing out that the latter can be turned into the first one through our proposed growing regularization scheme. (3) The proposed two algorithms are easy to implement and scalable to large-scale datasets and networks. We show their effectiveness compared with many state-of-the-arts. Especially, the methods can work seamlessly for both filter pruning and unstructured pruning.
|
| 16 |
+
|
| 17 |
+
# 2 RELATED WORK
|
| 18 |
+
|
| 19 |
+
Regularization-based pruning. The first group of relevant works is those applying regularization to learn sparsity. The most famous probably is to use $L _ { 0 }$ or $L _ { 1 }$ regularization Louizos et al. (2018); Liu et al. (2017); Ye et al. (2018) due to their sparsity-inducing nature. In addition, the common $L _ { 2 }$ regularization is also explored for approximated sparsity Han et al. (2015; 2016). The early papers focus more on unstructured pruning, which is beneficial to model compression yet not to acceleration. For structured pruning in favor of acceleration, Group-wise Brain Damage Lebedev & Lempitsky (2016) and SSL Wen et al. (2016) propose to use Group LASSO Yuan & Lin (2006) to learn regular sparsity, where the penalty strength is still kept in small scale because the penalty is uniformly applied to all the weights. To resolve this, Ding et al. (2018) and Wang et al. (2019c) propose to employ different penalty factors for different weights, enabling large regularization.
|
| 20 |
+
|
| 21 |
+
Importance-based pruning. Importance-based pruning tries to establish certain advanced importance criteria that can reflect the true relative importance among weights as faithfully as possible. The pruned weights are usually decided immediately by some proposed formula instead of by training (although the whole pruning process can involve training, e.g., iterative pruning). The most widely used criterion is the magnitude-based: weight absolute value for unstructured pruningHan et al. (2015; 2016) or $L _ { 1 } / L _ { 2 }$ -norm for structured pruning Li et al. (2017). This heuristic criterion was proposed a long time ago Reed (1993) and has been argued to be inaccurate. In this respect, improvement mainly comes from using Hessian information to obtain a more accurate approximation of the increased loss when a weight is removed LeCun et al. (1990); Hassibi & Stork (1993). Hessian is intractable to compute for large networks, so some methods (e.g., EigenDamage Wang et al. (2019a), WoodFisher Singh & Alistarh (2020)) employ cheap approximation (such as K-FAC Fisher Martens & Grosse (2015)) to make the 2nd-order criteria tractable on deep networks.
|
| 22 |
+
|
| 23 |
+
Note that, there is no a hard boundary between the importance-based and regularization-based. Many papers present their schemes in the combination of the two Ding et al. (2018); Wang et al. (2019c). The difference mainly lies in their emphasis: Regularization-based method focuses more on an advanced penalty scheme so that the subsequent pruning criterion can be simple; while the importance-based one focus more on an advanced importance criterion itself. Meanwhile, regularization paradigm always involves iterative training, while the importance-based can be one-shot LeCun et al. (1990); Hassibi & Stork (1993); Wang et al. (2019a) (no training for picking weights to prune) or involve iterative training Molchanov et al. (2017b; 2019); Ding et al. (2019a;b).
|
| 24 |
+
|
| 25 |
+
Other model compression methods. Apart from pruning, there are also many other model compression approaches, e.g., quantization Courbariaux & Bengio (2016); Courbariaux et al. (2016); Rastegari et al. (2016), knowledge distillation Bucilua et al. ˇ (2006); Hinton et al. (2014), lowrank decomposition Denton et al. (2014); Jaderberg et al. (2014); Lebedev et al. (2014); Zhang et al. (2015), and efficient architecture design or search Howard et al. (2017); Sandler et al. (2018); Howard et al. (2019); Zhang et al. (2018); Tan & Le (2019); Zoph & Le (2017); Elsken et al. (2019). They are orthogonal to network pruning and can work with the proposed methods to compress more.
|
| 26 |
+
|
| 27 |
+
# 3 PROPOSED METHOD
|
| 28 |
+
|
| 29 |
+
# 3.1 PROBLEM FORMULATION
|
| 30 |
+
|
| 31 |
+
Pruning can be formulated as a transformation $T ( * )$ that takes a pretrained big model w as input and output a small model $\mathbf { w } _ { 1 }$ , typically followed by a fine-tuning process $F ( * )$ , which gives us the final output $\mathbf { w } _ { 2 } = F ( \mathbf { w } _ { 1 } )$ . We do not focus on $F ( * )$ since it is simply a standard neural network training process, but focus on the process of $\mathbf { w } _ { 1 } = T ( \mathbf { w } )$ . The effect of pruning can be further specified into two sub-transformations: (1) $M = T _ { 1 } ( \mathbf { w } )$ , which obtains a binary mask vector $M$ that decides which weights will be removed; (2) $T _ { 2 } ( \mathbf { w } )$ , which adjusts the values of remaining weights. That is,
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
\mathbf { w } _ { 1 } = T ( \mathbf { w } ) = T _ { 1 } ( \mathbf { w } ) \odot T _ { 2 } ( \mathbf { w } ) = M \odot T _ { 2 } ( \mathbf { w } ) .
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
For one-shot pruning, there is no iterative training at $T _ { 1 }$ . It depends on a specific algorithm to decide whether to adjust the remaining weights. For example, OBD LeCun et al. (1990) and $L _ { 1 }$ - norm pruning Li et al. (2017) do not adjust the kept weights (i.e., $T _ { 2 }$ is the identity function) while OBS Hassibi & Stork (1993) does. For learning-based pruning, both $T _ { 1 }$ and $T _ { 2 }$ involve iterative training and the kept weights will always be adjusted.
|
| 38 |
+
|
| 39 |
+
In the following, we will present our algorithms in the filter pruning scenario since we mainly focus on model acceleration instead of compression in this work. Nevertheless, the methodology can seamlessly translate to the unstructured pruning case. The difference lies in how we define the weight group: For filter pruning, a 4-d tensor convolutional filter (or 2-d tensor for fully-connected layers) is regarded as a weight group, while for unstructured pruning, a single weight makes a group.
|
| 40 |
+
|
| 41 |
+
# 3.2 PRUNING SCHEDULE: GREG-1
|
| 42 |
+
|
| 43 |
+
Our first method (GReg-1) is a variant of $L _ { 1 }$ -norm pruning Li et al. (2017). It obtains the mask $M$ by $L _ { 1 }$ -norm sorting but adjusts the kept weights via regularization. Specifically, given a pre-trained model w and layer pruning ratio $r _ { l }$ , we sort the filters by $L _ { 1 }$ -norm and set the mask to zero for those with the least norms. Then, unlike Li et al. (2017) which removes the unimportant weights immediately (i.e., one-shot fashion), we impose a growing $L _ { 2 }$ penalty to drive them to zero first:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\lambda _ { j } = \lambda _ { j } + \delta \lambda , j \in \{ j \mid M [ j ] = 0 \} ,
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $\lambda _ { j }$ is the penalty factor for $j$ -th weight; $\delta \lambda$ is the granularity in which we add up the penalty. Clearly, a smaller $\delta \lambda$ means this regularization process smoother. Besides, $\lambda _ { j }$ is only updated every $K _ { u }$ iterations, which is a buffer time to let the network adapt to the new regularization. This algorithm is to explore whether the way we remove them (i.e., pruning schedule) leads to a difference given the same weights to prune. Simple as it is, the scheme can bring significant accuracy gains especially under a large pruning ratio (Tab. 1). Note that, we intentionally set $\delta \lambda$ the same for all the unimportant weights to keep the core idea simple. Natural extensions of using different penalty factors for different weights (such as those in Ding et al. (2018); Wang et al. (2019c)) may be worth exploring but out of the scope of this work.
|
| 50 |
+
|
| 51 |
+
When $\lambda _ { j }$ reaches a pre-set ceiling $\tau$ , we terminate the training and prune those with the least $L _ { 1 }$ - norms, then fine-tune. Notably, the pruning will barely hurt the accuracy since the unimportant weights have been compressed to typically less than $\frac { 1 } { 1 0 0 0 }$ the magnitude of remaining weights.
|
| 52 |
+
|
| 53 |
+
# 3.3 IMPORTANCE CRITERION: GREG-2
|
| 54 |
+
|
| 55 |
+
Our second algorithm is to further take advantage of the growing regularization scheme, not for pruning schedule but scoring. The training of neural networks is prone to overfitting, so regularization is normally employed. $L _ { 2 }$ regularization (or referred to as weight decay) is a standard technique for deep network training. Given a dataset $\mathcal { D }$ , model parameters $\mathbf { w }$ , the total loss will typically be
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\mathcal { E } ( \mathbf { w } , \mathcal { D } ) = \mathcal { L } ( \mathbf { w } , \mathcal { D } ) + \frac { 1 } { 2 } \lambda \| \mathbf { w } \| _ { 2 } ^ { 2 } ,
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
where $\mathcal { L }$ is the task loss function. When the training converges, there should be
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\lambda w _ { i } ^ { * } + \frac { \partial \mathcal { L } } { \partial w _ { i } } | _ { w _ { i } = w _ { i } ^ { * } } = 0 ,
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $\boldsymbol { w } _ { i } ^ { * }$ indicates the $i$ -th weight at its local minimum. Eq. (4) shows that, for each specific weight element, its equilibrium position is determined by two forces: loss gradient (i.e., guidance from the task) and regularization gradient (i.e., guidance from our prior). Our idea is to slightly increase the $\lambda$ to break the equilibrium and see how it results in a new one. A general impression is: If $\lambda$ goes a little higher, the penalty force will drive the weights further towards origin and it will not stop unless proper loss gradient comes to halt it and then a new equilibrium is reached at $\hat { w } _ { i } ^ { * }$ . Considering different weights have different scales, we define a ratio $r _ { i } = \hat { w } _ { i } ^ { * } / w _ { i } ^ { * }$ to describe how much the weight magnitude changes after increasing the penalty factor. Our interest lies in how the $r _ { i }$ differs from one another and how it relates to the underlying Hessian information.
|
| 68 |
+
|
| 69 |
+
Deep neural networks are well-known over-parameterized and highly non-convex. To obtain a feasible analysis, we adopt a local quadratic approximation of the loss function based on Taylor series expansion Strang (1991) following common practices LeCun et al. (1990); Hassibi & Stork (1993); Wang et al. (2019a). Then when the model is converged, the error $\mathcal { E }$ can be described by the converged weights $\mathbf { w } ^ { * }$ and the underlying Hessian matrix $\mathbf { H }$ (note $\mathbf { H }$ is p.s.d. since the model is converged). After increasing the penalty $\lambda$ by $\delta \lambda$ , the new converged weights can be proved to be
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\hat { \mathbf { w } } ^ { * } = ( \mathbf { H } + \delta \lambda \mathbf { I } ) ^ { - 1 } \mathbf { H } \mathbf { w } ^ { * } ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\mathbf { I }$ stands for the identity matrix. Here we meet with the common problem of estimating Hessian and its inverse, which are well-known to be intractable for deep neural networks. We explore two simplified cases to help us move forward.
|
| 76 |
+
|
| 77 |
+
(1) $\mathbf { H }$ is diagonal, which is a common simplification for Hessian LeCun et al. (1990), implying that the weights are independent of each other. For $w _ { i } ^ { * }$ with second derivative $h _ { i i }$ . With $L _ { 2 }$ penalty increased by $\delta \lambda$ $( \delta \lambda > 0 )$ , the new converged weights can be proved to be
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\hat { w } _ { i } ^ { * } = \frac { h _ { i i } } { h _ { i i } + \delta \lambda } w _ { i } ^ { * } , \Rightarrow r _ { i } = \frac { \hat { w } _ { i } ^ { * } } { w _ { i } ^ { * } } = \frac { 1 } { \delta \lambda / h _ { i i } + 1 } ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $r _ { i } \in [ 0 , 1 )$ since $h _ { i i } \geq 0$ and $\delta \lambda > 0$ . As seen, larger $h _ { i i }$ results in larger $r _ { i }$ (closer to 1), meaning that the weight is relatively less moved towards the origin. Our second algorithm primarily builds upon this finding, which implies when we add a penalty perturbation to the converged network, the way that different weights respond can reflect their underlying Hessian information.
|
| 84 |
+
|
| 85 |
+
(2) In practice, we know $\mathbf { H }$ is rarely diagonal. How the dependency among weights affects the finding abovecase, namely, $\begin{array} { r } { \mathbf { w } ^ { * } = \binom { w _ { 1 } ^ { * } } { w _ { 2 } ^ { * } } , \mathbf { H } = \binom { h _ { 1 1 } h _ { 1 2 } } { h _ { 1 2 } h _ { 2 2 } } , \hat { \mathbf { H } } = \binom { h _ { 1 1 } + \delta \lambda } { h _ { 1 2 } } _ { h _ { 2 2 } + \delta \lambda } } \end{array}$ an in Eq. (5. The new c e explore the 2-derged weights can be analytically solved below, where the approximation equality is because that $\delta \lambda$
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\left\{ \hat { w } _ { 1 } ^ { * } \right\} = \frac { 1 } { | \hat { \mathbf { H } } | } \left\{ \begin{array} { l l } { ( h _ { 1 1 } h _ { 2 2 } + h _ { 1 1 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) w _ { 1 } ^ { * } + \delta \lambda h _ { 1 2 } w _ { 2 } ^ { * } } \\ ( h _ { 1 1 } h _ { 2 2 } + h _ { 2 2 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) w _ { 2 } ^ { * } + \delta \lambda h _ { 1 2 } w _ { 1 } ^ { * } \right\} \approx \frac { 1 } { | \hat { \mathbf { H } } | } \left\{ \begin{array} { l l } { ( h _ { 1 1 } h _ { 2 2 } + h _ { 1 1 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) w _ { 1 } ^ { * } } \\ { ( h _ { 1 1 } h _ { 2 2 } + h _ { 2 2 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) w _ { 2 } ^ { * } + \delta \lambda h _ { 1 2 } w _ { 1 } ^ { * } } \end{array} \right\} , \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\Rightarrow r _ { 1 } = \frac { 1 } { \left| \hat { \mathbf { H } } \right| } ( h _ { 1 1 } h _ { 2 2 } + h _ { 1 1 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) , r _ { 2 } = \frac { 1 } { \left| \hat { \mathbf { H } } \right| } ( h _ { 1 1 } h _ { 2 2 } + h _ { 2 2 } \delta \lambda - h _ { 1 2 } ^ { 2 } ) .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
As seen, $h _ { 1 1 } > h _ { 2 2 }$ also leads to $r _ { 1 } > r _ { 2 }$ , in line with the finding above. The existence of weight dependency (i.e., the $h _ { 1 2 }$ ) actually does not affect the conclusion since it is included in both ratios.
|
| 96 |
+
|
| 97 |
+
These theoretical analyses show us that when the penalty is increased at the same pace, because of different local curvature structures, the weights actually respond differently – weights with larger curvature will be less moved. As such, the magnitude discrepancy among weights will be magnified as $\lambda$ grows. Ultimately, the weights will naturally separate (see Fig. 1 for an empirical validation). When the discrepancy is large enough, even the simple $L _ { 1 }$ -norm can make an accurate criterion. Notably, the whole process happens itself with the uniformly rising $L _ { 2 }$ penalty, no need to know the Hessian values, thus not bothered by any issue arising from Hessian approximation in relevant prior arts LeCun et al. (1990); Hassibi & Stork (1993); Wang et al. (2019a); Singh & Alistarh (2020).
|
| 98 |
+
|
| 99 |
+
In terms of the specific algorithm, all the penalty factor is increased at the same pace,
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\lambda _ { j } = \lambda _ { j } + \delta \lambda , { \mathrm { ~ f o r ~ a l l ~ } } j .
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
# Algorithm 1 GReg-1 and GReg-2 Algorithms
|
| 106 |
+
|
| 107 |
+
1: Input: Pre-trained model w, pruning ratio for $l$ -th layer $r _ { l } , l = 1 \sim L$ , original weight decay $\gamma$
|
| 108 |
+
2: Input: Regularization ceiling $\tau$ , ceiling for picking $\cdot$ , interval $K _ { u } , K _ { s }$ , granularity $\delta \lambda$ .
|
| 109 |
+
3: Init: Iteration $i = 0$ . $\lambda _ { j } = 0$ for all filter $j$ . Set kept filter indexes $S _ { l } ^ { k }$ to $\mathcal { D }$ for each layer $l$ .
|
| 110 |
+
4: Init: Set pruned filter indexes $S _ { l } ^ { p }$ by $L _ { 1 }$ -norm sorting, set $S _ { l } ^ { p }$ to full set, for each layer $l$ .
|
| 111 |
+
5: while $\lambda _ { j } \overset { \cdot } { \leq } \tau , j \in S _ { l } ^ { p }$ do
|
| 112 |
+
6: if i % $K _ { u } = 0$ then
|
| 113 |
+
7: if $\cdot$ and $\lambda _ { j } > \tau ^ { \prime } , j \in S _ { l } ^ { p }$ then
|
| 114 |
+
8: Set $S _ { l } ^ { p }$ by $\cdot$ -norm scoring, $S _ { l } ^ { k }$ as the complementary set of $S _ { l } ^ { p }$ , for each layer $\cdot$ .
|
| 115 |
+
9: end if
|
| 116 |
+
10: $\lambda _ { j } = \lambda _ { j } + \delta \lambda$ for $j \in S _ { l } ^ { p }$ , $\lambda _ { j } = - \gamma$ for $j \in S _ { l } ^ { k }$ , for each layer $l$
|
| 117 |
+
11: end if
|
| 118 |
+
12: Weight update by stochastic gradient descent (where the regularization is enforced).
|
| 119 |
+
13: $i = i + 1$ .
|
| 120 |
+
14: end while
|
| 121 |
+
15: Train for another $K _ { s }$ iterations to stabilize. Then prune by $L _ { 1 }$ -norms and get model $\mathbf { w } _ { 1 }$ .
|
| 122 |
+
16: Fine-tune $\mathbf { w } _ { 1 }$ to regain accuracy.
|
| 123 |
+
17: Output: Pruned model $\mathbf { w } _ { 2 }$ .
|
| 124 |
+
|
| 125 |
+
When $\lambda _ { j }$ reaches some ceiling $\tau ^ { \prime }$ , the magnitude gap turns large enough to let $L _ { 1 }$ -norm do scoring faithfully. After this, the procedures are similar to those in GReg-1: $\lambda$ for the unimportant weights are further increased. One extra step is to bring back the kept weights to the normal magnitude. Although they are the “survivors” during the previous competition under a large penalty, their expressivity are also hurt. To be exact, we adopt negative penalty factor for the kept weights to encourage them to recover. When the $\lambda$ for unimportant weights reaches the threshold $\tau$ (akin to that of GReg-1), the training is terminated. $L _ { 1 }$ -pruning is conducted and then fine-tune to regain accuracy. To this end, the proposed two algorithms can be summarized in Algorithm 1.
|
| 126 |
+
|
| 127 |
+
Pruning ratios. We employ pre-specified pruning ratios in this work to keep the core method neat (see Appendix for more discussion). Exploring layer-wise sensitivity is out of the scope of this work, but clearly any method that finds more proper pruning ratios can readily work with our approaches.
|
| 128 |
+
|
| 129 |
+
Discussion: differences from IncReg. Although our work shares a general spirit of growing regularization with IncReg Wang et al. (2019c;b), our work is actually starkly different from theirs in many axes:
|
| 130 |
+
|
| 131 |
+
• Motivation. The motivations for using the growing regularization are different. Wang et al. (2019c;b) adopt growing regularization to select the unimportant weights by training. Namely, they focus on the importance criterion problem. In contrast, we use growing regularization to investigate the pruning schedule problem (for GReg-1) or exploit the underlying Hessian information (for GReg-2). The importance criterion is simply $L _ { 1 }$ -norm.
|
| 132 |
+
Algorithm design. Wang et al. (2019c;b) assign different regularization factors to different weight groups based on their relative importance, while we assign them with the same factors. For GReg-1, this may not be a substantial difference, while for GReg-2, the difference is fundamental because the theoretical analysis of GReg-2 (Sec. 3.3) relies on the fact that regularization factors are kept the same for different weights.
|
| 133 |
+
Theoretical analysis. The algorithm in Wang et al. (2019c;b) is generally heuristic-based, while our work provides rigorous theoretical analyses (Sec. 3.3) to support the proposed algorithm GReg-2.
|
| 134 |
+
• Empirical performance. Both our methods are significantly better than Wang et al. (2019c;b) on the large-scale ImageNet dataset, which will be shown in the experiment section (Tab. 3).
|
| 135 |
+
|
| 136 |
+
Discussion: other regularization forms. The proposed methods in this work adopts $L _ { 2 }$ regularization. Here we discuss the possibility to generalize the method to other regularization forms ( $L 1$ and $L _ { 0 }$ ). (1) For GReg-1, it can be easily generalized to other regularization forms like $L _ { 1 }$ . For GReg-2, since the theoretical basis in Sec. 3.3 relies on the local quadratic approximation, $L _ { 2 }$ regularization meets this requirement while $L _ { 1 }$ does not. Therefore, GReg-2 cannot be (easily) generalized to the
|
| 137 |
+
|
| 138 |
+
Table 1: Comparison between pruning schedules: one-shot pruning vs. our proposed GReg-1. Each setting is randomly run for 3 times, mean and std accuracies reported.
|
| 139 |
+
|
| 140 |
+
<table><tr><td colspan="6">ResNet56 + CIFAR10: Baseline accuracy 93.36%, #Params: 0.8530M,FLOPs: 0.1255G</td></tr><tr><td>Pruning ratio r (%)</td><td>50</td><td>70</td><td>90</td><td>92.5</td><td>95</td></tr><tr><td>Sparsity (%)/ Speedup</td><td>49.82/1.99×</td><td>70.57/3.59×</td><td>90.39/11.41×</td><td>93.43/14.76×</td><td>95.19/19.31×</td></tr><tr><td>Acc.(%,L1+one-shot)</td><td>92.97±0.15</td><td>91.88±0.09</td><td>87.34±0.21</td><td>87.31±0.28</td><td>82.79±0.22</td></tr><tr><td>Acc.(%,GReg-1,ours)</td><td>93.06±0.09</td><td>92.23±0.21</td><td>89.49±0.23</td><td>88.39±0.15</td><td>85.97±0.16</td></tr><tr><td>Acc. gain (%)</td><td>0.09</td><td>0.35</td><td>2.15</td><td>1.08</td><td>3.18</td></tr><tr><td colspan="6">VGG19 + CIFAR100: Baseline accuracy 74.02%,#Params: 20.0812M,FLOPs: 0.3982G</td></tr><tr><td>Pruning ratio r (%)</td><td>50</td><td>60</td><td>70</td><td>80</td><td>90</td></tr><tr><td>Sparsity(%)/Speedup</td><td>74.87/3.60×</td><td>84.00/5.41×</td><td>90.98/8.84×</td><td>95.95/17.30×</td><td>98.96/44.22×</td></tr><tr><td>Acc.(%,L1+one-shot)</td><td>71.49±0.14</td><td>70.27±0.12</td><td>66.05±0.04</td><td>61.59±0.03</td><td>51.36±0.11</td></tr><tr><td>Acc.(%,GReg-1,ours)</td><td>71.50±0.12</td><td>70.33±0.12</td><td>67.35±0.15</td><td>63.55±0.29</td><td>57.09±0.03</td></tr><tr><td>Acc. gain (%)</td><td>0.01</td><td>0.06</td><td>1.30</td><td>1.96</td><td>5.73</td></tr></table>
|
| 141 |
+
|
| 142 |
+
$L _ { 1 }$ regularization as far as we can see currently. (2) For $L _ { 0 }$ regularization, it is well-known NP-hard.
|
| 143 |
+
In practice, it is typically converted to the $L _ { 1 }$ regularization case, which we just discussed.
|
| 144 |
+
|
| 145 |
+
# 4 EXPERIMENTAL RESULTS
|
| 146 |
+
|
| 147 |
+
Datasets and networks. We first conduct analyses on the CIFAR10/100 datasets Krizhevsky (2009) with ResNet56 He et al. (2016)/VGG19 Simonyan & Zisserman (2015). Then we evaluate our methods on the large-scale ImageNet dataset Deng et al. (2009) with ResNet34 and 50 He et al. (2016). For CIFAR datasets, we train our baseline models with accuracies comparable to those in the original papers. For ImageNet, we take the official PyTorch Paszke et al. (2019) pre-trained models2 as baseline to maintain comparability with other methods.
|
| 148 |
+
|
| 149 |
+
Training settings. To control the irrelevant factors as we can, for comparison methods that release their pruning ratios, we will adopt their ratios; otherwise, we will use our specified ones. We compare the speedup (measured by FLOPs reduction) since we mainly target model acceleration rather than compression. Detailed training settings (e.g., hyper-parameters and layer pruning ratios) are summarized in the Appendix.
|
| 150 |
+
|
| 151 |
+
# 4.1 RESNET56/VGG19 ON CIFAR-10/100
|
| 152 |
+
|
| 153 |
+
Pruning schedule: GReg-1. First, we explore the effect of different pruning schedules on the performance of pruning. Specifically, we conduct two sets of experiments for comparison: (1) prune by $L _ { 1 }$ -norm sorting and fine-tune Li et al. (2017) (shorted as $^ { \cdot \cdot } L _ { 1 } +$ one-shot”); (2) employ the proposed growing regularization scheme (“GReg-1”) and fine-tune. We use a uniform pruning ratio scheme here: Pruning ratio $r$ is the same for all $l$ -th conv layer (the first layer is not pruned following common practice Gale et al. (2019)). For ResNet56, since it has the residual addition restriction, we only prune the first conv layer in a block as previous works do Li et al. (2017). For comprehensive comparisons, the pruning ratios vary in a large spectrum, covering acceleration ratios from around $2 \times$ to $4 4 \times$ . Note that we do not intend to obtain the best performance here but systematically explore the effect of different pruning schedules, so we employ relatively simple settings (e.g., the uniform pruning ratios). For fair comparisons, the fine-tuning scheme (e.g., number of epochs, learning rate schedule, etc.) is the same for different methods. Therefore, the key comparison here is to see which method can deliver a better base model before fine-tuning.
|
| 154 |
+
|
| 155 |
+
The results are shown in Tab. 1. We have the following observations: (1) On the whole, the proposed GReg-1 consistently outperforms $L _ { 1 }$ +one-shot. It is important to reiterate that the two settings have exactly the same pruned weights, so the only difference is how they are removed. The accuracy gaps show that apart from importance scoring, pruning schedule is also a critical factor. In the Appendix D, we present more results to demonstrate this finding actually is general, not merely limited to the case of $L _ { 1 }$ -norm criterion. The proposed regularization-based pruning schedule is consistently more favorable than the one-shot counterpart. (2) The larger pruning ratio, the more pronounced of the gain. This is reasonable since when more weights are pruned, the network cannot recover by its inherent plasticity Mittal et al. (2018), then the regularization-based way is more helpful because it helps the model transfer its expressive power to the remaining part. When the pruning ratio is relatively small (such as ResNet56, $r = 5 0 \%$ ) , the plasticity of the model is enough to heal, so the benefit from GReg-1 is less significant compared with the one-shot counterpart.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 1: Row 1: Illustration of weight separation as $L _ { 2 }$ penalty grows. Row 2: Normalized filter $L _ { 1 }$ -norm over iterations for ResNet50 layer2.3.conv1 (please see the Appendix for VGG19 plots).
|
| 159 |
+
|
| 160 |
+
Table 2: Comparison of different methods on the CIFAR10 and CIFAR100 datasets.
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Method</td><td>Network/Dataset</td><td>Base acc.(%) Pruned acc. (%) Acc. drop Speedup</td><td></td><td></td><td></td></tr><tr><td>CP He et al. (2017)</td><td rowspan="6">ResNet56/CIFAR10</td><td>92.80</td><td>91.80</td><td>1.00</td><td>2.00×</td></tr><tr><td>AMC He et al. (2018b)</td><td>92.80</td><td>91.90</td><td>0.90</td><td>2.00×</td></tr><tr><td>SFP He et al. (2018a)</td><td>93.59</td><td>93.36</td><td>0.23</td><td>2.11×</td></tr><tr><td>AFP Ding et al. (2018)</td><td>93.93</td><td>92.94</td><td>0.99</td><td>2.56×</td></tr><tr><td>C-SGD Ding et al. (2019a)</td><td>93.39</td><td>93.44</td><td>-0.05</td><td>2.55×</td></tr><tr><td>GReg-1 (ours)</td><td>93.36</td><td>93.18</td><td>0.18</td><td>2.55×</td></tr><tr><td>GReg-2 (ours)</td><td></td><td>93.36</td><td>93.36</td><td>0.00</td><td>2.55×</td></tr><tr><td>Kron-OBD Wang et al. (2019a)</td><td rowspan="5"></td><td>73.34</td><td>60.70</td><td>12.64</td><td>5.73×</td></tr><tr><td>Kron-OBS Wang et al. (2019a)</td><td>73.34</td><td>60.66</td><td>12.68</td><td>6.09×</td></tr><tr><td>EigenDamage Wang et al. (2019a) VGG19/CIFAR100</td><td>73.34</td><td>65.18</td><td>8.16</td><td>8.80×</td></tr><tr><td>GReg-1 (ours)</td><td>74.02</td><td>67.55</td><td>6.67</td><td>8.84×</td></tr><tr><td>GReg-2 (ours)</td><td>74.02</td><td>67.75</td><td>6.47</td><td>8.84×</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Importance criterion: GReg-2. Here we empirically validate our finding in Sec. 3.3, that is, with uniformly rising $L _ { 2 }$ penalty, the weights should naturally separate. We claim, if $h _ { 1 1 } > h _ { 2 2 }$ , there should be $r _ { 1 } ~ > ~ r _ { 2 }$ , where $\begin{array} { r } { r _ { 1 } = \frac { \tilde { \hat { w _ { 1 } } } } { w _ { 1 } } , r _ { 2 } = \frac { \hat { w _ { 2 } } } { w _ { 2 } } } \end{array}$ (the \* mark indicating the local minimum is omitted here for readability). $r _ { 1 } ~ > ~ r _ { 2 }$ leads to $\frac { \bar { w } _ { 1 } } { w _ { 1 } } ~ > ~ \frac { \bar { w } _ { 2 } } { w _ { 2 } }$ , namely, $\begin{array} { r } { r _ { 1 } \ = \ \frac { \hat { w _ { 1 } } } { \hat { w _ { 2 } } } \ > \ \frac { w _ { 1 } } { w _ { 2 } } } \end{array}$ This shows that, after the $L _ { 2 }$ penalty grows a little, the new magnitude ratio of weight 1 over weight 2 will be magnified if $h _ { 1 1 } > h _ { 2 2 }$ $( w _ { 1 } , w _ { 2 }$ are positive in the analysis here, while the conclusion still holds if either of them is negative). In Fig. 1 (Row 1), we plot the standard deviation (divided by the means for normalization since the magnitude varies over iterations) of filter $L _ { 1 }$ -norms as the regularization grows. As seen, the normalized $L _ { 1 }$ -norm stddev grows larger and larger as $\lambda$ grows. This phenomenon consistently appears across different models and datasets. To figuratively understand how the increasing penalty affects the relative magnitude over time, in Fig. 1 (Row 2), we plot the relative $L _ { 1 }$ -norms (divided by the max $L _ { 1 }$ -norm for normalization) at different iterations. As shown, it is hard to tell which filters are really important by the initial filter magnitude (Iter 0), but under a large penalty later, their discrepancy turns more and more obvious and finally it is very easy to identify which filters are more important. Since the magnitude gap is so large, the simple $L _ { 1 }$ -norm can make a sufficiently faithful criterion.
|
| 165 |
+
|
| 166 |
+
CIFAR benchmarks. Finally, we compare the proposed algorithms with existing methods on the CIFAR datasets (Tab. 2). Here we adopt non-uniform pruning ratios (see the Appendix for specific numbers) for the best accuracy-FLOPs trade-off. On CIFAR10, compared with AMC He et al.
|
| 167 |
+
|
| 168 |
+
Table 3: Acceleration comparison on ImageNet. FLOPs: ResNet34: 3.66G, ResNet50: 4.09G.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Method</td><td>Network</td><td></td><td>Base top-1(%) Pruned top-1(%) Top-1 drop Speedup</td><td></td><td></td></tr><tr><td>L1 (pruned-B) Li et al. (2017) Taylor-FO Molchanov et al. (2019)</td><td rowspan="3">ResNet34</td><td>73.23 73.31</td><td>72.17 72.83</td><td>1.06 0.48</td><td>1.32× 1.29×</td></tr><tr><td>GReg-1 (ours)</td><td>73.31</td><td>73.54</td><td>-0.23</td><td>1.32×</td></tr><tr><td>GReg-2 (ours)</td><td>73.31</td><td>73.61</td><td>-0.30</td><td>1.32×</td></tr><tr><td>ProvableFPLiebenwein et al. (2020) GReg-1 (ours)</td><td>ResNet50</td><td>76.13 76.13</td><td>75.21 76.27</td><td>0.92 -0.14</td><td>1.43× 1.49×</td></tr><tr><td rowspan="2">AOFP Ding et al. (2019b) GReg-1 (ours)*</td><td rowspan="2">ResNet50</td><td>75.34</td><td>75.63</td><td>-0.29</td><td>1.49×</td></tr><tr><td>75.40</td><td>76.13</td><td>-0.73</td><td>1.49×</td></tr><tr><td>IncReg Wang et al. (2019b) SFP He et al. (2018a)</td><td></td><td>75.60 76.15</td><td>72.47 74.61</td><td>3.13 1.54</td><td>2.00× 1.72×</td></tr><tr><td>HRank Lin et al. (2020a) Taylor-FO Molchanov et al. (2019)</td><td rowspan="3">ResNet50</td><td>76.15</td><td>74.98</td><td>1.17</td><td>1.78×</td></tr><tr><td>Factorized Li et al. (2019)</td><td>76.18 76.15</td><td>74.50</td><td>1.68</td><td>1.82×</td></tr><tr><td></td><td></td><td>74.55</td><td>1.60</td><td>2.33×</td></tr><tr><td>DCP Zhuang et al. (2018) CCP-AC Peng et al. (2019)</td><td rowspan="3"></td><td>76.01</td><td>74.95</td><td>1.06</td><td>2.25×</td></tr><tr><td></td><td>76.15</td><td>75.32</td><td>0.83</td><td>2.18×</td></tr><tr><td>GReg-1 (ours)</td><td>76.13</td><td>75.16</td><td>0.97</td><td>2.31×</td></tr><tr><td>GReg-2 (ours) C-SGD-50 Ding et al. (2019a)</td><td rowspan="3">ResNet50</td><td>76.13</td><td>75.36</td><td>0.77</td><td>2.31×</td></tr><tr><td></td><td>75.34</td><td>74.54</td><td>0.80</td><td>2.26×</td></tr><tr><td>AOFP Ding et al. (2019b)</td><td>75.34</td><td>75.11</td><td>0.23</td><td>2.31×</td></tr><tr><td>GReg-2 (ours)*</td><td rowspan="3">ResNet50</td><td>75.40</td><td>75.22</td><td>0.18</td><td>2.31×</td></tr><tr><td>LFPC He et al. (2020)</td><td>76.15</td><td>74.46</td><td>1.69</td><td>2.55×</td></tr><tr><td>GReg-1 (ours)</td><td>76.13</td><td>74.85</td><td>1.28</td><td>2.56×</td></tr><tr><td>GReg-2 (ours)</td><td rowspan="3"></td><td>76.13</td><td>74.93</td><td>1.20</td><td>2.56×</td></tr><tr><td>IncReg Wang et al. (2019b)</td><td>75.60</td><td>71.07</td><td>4.53</td><td>3.00×</td></tr><tr><td>Taylor-FO Molchanov et al. (2019)</td><td>76.18</td><td>71.69</td><td></td><td>3.05×</td></tr><tr><td>GReg-1 (ours)</td><td rowspan="3">ResNet50</td><td></td><td></td><td>4.49</td><td></td></tr><tr><td></td><td>76.13</td><td>73.75</td><td>2.38</td><td>3.06×</td></tr><tr><td>GReg-2 (ours)</td><td>76.13</td><td>73.90</td><td>2.23</td><td>3.06×</td></tr></table>
|
| 171 |
+
|
| 172 |
+
Since the base models of C-SGD and AOFP have a much lower accuracy than ours, for fair comparison, we rain our own base models with similar accuracy.
|
| 173 |
+
|
| 174 |
+
Table 4: Compression comparison on ImageNet with ResNet50. #Parameters: 25.56M.
|
| 175 |
+
|
| 176 |
+
<table><tr><td>Method</td><td>Base top-1 (%)</td><td>Pruned top-1(%) Top-1 drop</td><td></td><td>Sparsity (%)</td></tr><tr><td>GSM Ding et al. (2019c)</td><td>75.72</td><td>74.30</td><td>1.42</td><td>80.00</td></tr><tr><td>Variational Dropout Molchanov et al. (2O17a)</td><td>76.69</td><td>75.28</td><td>1.41</td><td>80.00</td></tr><tr><td>DPF Lin et al. (2020b)</td><td>75.95</td><td>74.55</td><td>1.40</td><td>82.60</td></tr><tr><td>WoodFisher Singh & Alistarh (2020)</td><td>75.98</td><td>75.20</td><td>0.78</td><td>82.70</td></tr><tr><td>GReg-1 (ours)</td><td>76.13</td><td>75.45</td><td>0.68</td><td>82.70</td></tr><tr><td>GReg-2 (ours)</td><td>76.13</td><td>75.27</td><td>0.86</td><td>82.70</td></tr></table>
|
| 177 |
+
|
| 178 |
+
(2018b), though it adopts better layer-wise pruning ratios via reinforcement-learning, our algorithms can still deliver more favorable performance using sub-optimal human-specified ratios. AFP Ding et al. (2018) is another work exploring large regularization, while they do not adopt the growing scheme as we do. Its performance is also less favorable on CIFAR10 as shown in the table. Although our methods perform a little worse than C-SGD Ding et al. (2019a) on CIFAR10, on the large-scale ImageNet dataset, we will show our methods are significantly better than C-SGD.
|
| 179 |
+
|
| 180 |
+
Notably, on CIFAR100, Kron-OBD/OBS (an extension by Wang et al. (2019a) of the original OBD/OBS from unstructured pruning to structured pruning) are believed to be more accurate than $L _ { 1 }$ -norm in terms of capturing relative weight importance LeCun et al. (1990); Hassibi & Stork (1993); Wang et al. (2019a). Yet, they are significantly outperformed by our GReg-1 based on the simple $L _ { 1 }$ -norm scoring. This may inspire us that an average pruning schedule (like the one-shot fashion) can offset the gain from a more advanced importance scoring scheme.
|
| 181 |
+
|
| 182 |
+
# 4.2 RESNET34/50 ON IMAGENET
|
| 183 |
+
|
| 184 |
+
Then we evaluate our methods on the standard large-scale ImageNet benchmarks with ResNets He et al. (2016). We refer to the official PyTorch ImageNet training example3 to make sure the implementation (such as data augmentation, weight decay, momentum, etc.) is standard. Please refer to the summarized training setting in the Appendix for details.
|
| 185 |
+
|
| 186 |
+
The results are shown in Tab. 3. Methods with similar speedup are grouped together for easy comparison. In general, our method achieves comparable or better performance across various speedups on ResNet34 and 50. Concretely, (1) On both ResNet34 and 50, when the speedup is small (less than $2 \times$ ), only our methods (and AOFP Ding et al. (2019b) for ResNet50) can even improve the top-1 accuracy. This phenomenon is broadly found by previous works Wen et al. (2016); Wang et al. (2018); He et al. (2017) but mainly on small datasets like CIFAR, while we make it on the much challenging ImageNet benchmark. (2) Similar to the results on CIFAR (Tab. 1), when the speedup is larger, the advantage of our method is more obvious. For example, ours GReg-2 only outperforms Taylor-FO Molchanov et al. (2019) by $0 . 8 6 \%$ top-1 accuracy at the $\sim 2 \times$ setting, while at $\sim 3 \times$ , GReg-2 is better by $2 . 2 1 \%$ top-1 accuracy. (3) Many methods work on the weight importance criterion problem, including some very recent ones (ProvableFP Liebenwein et al. (2020), LFPC He et al. (2020)). Yet as shown, our simple variant of $L _ { 1 }$ -norm pruning can still be a strong competitor in terms of accuracy-FLOPs trade-off. This reiterates one of our key ideas in this work that the pruning schedule may be as important as weight importance scoring and worth more research attention.
|
| 187 |
+
|
| 188 |
+
Unstructured pruning. Although we mainly target filter pruning in this work, the proposed methods actually can be applied to unstructured pruning as effectively. In Tab. 4, we present the results of unstructured pruning on ResNet50. WoodFisher Singh & Alistarh (2020) is the state-of-the-art Hessian-based unstructured pruning approach. Notably, without any Hessian approximation, our GReg-2 can achieve comparable performance with it (better absolute accuracy, yet slightly worse accuracy drop). Besides, the simple magnitude pruning variant GReg-1 delivers more favorable result, implying that a better pruning schedule also matters in the unstructured pruning case.
|
| 189 |
+
|
| 190 |
+
# 5 CONCLUSION
|
| 191 |
+
|
| 192 |
+
Regularization is long deemed as a sparsity-learning tool in neural network pruning, which usually works in the small strength regime. In this work, we present two algorithms that exploit regularization in a new fashion that the penalty factor is uniformly raised to a large level. Two central problems regarding deep neural pruning are tackled by the proposed methods, pruning schedule and weight importance criterion. The proposed approaches rely on few impractical assumptions, have a sound theoretical basis, and are scalable to large datasets and networks. Apart from the methodology itself, the encouraging results on CIFAR and ImageNet also justify our general ideas in this paper: (1) In addition to weight importance scoring, pruning schedule is another pivotal factor in deep neural pruning which may deserve more research attention. (2) Without any Hessian approximation, we can still tap into its power for pruning with the help of growing $L _ { 2 }$ regularization.
|
| 193 |
+
|
| 194 |
+
# ACKNOWLEDGEMENTS
|
| 195 |
+
|
| 196 |
+
The work is supported by the National Science Foundation Award ECCS-1916839 and the U.S. Army Research Office Award W911NF-17-1-0367.
|
| 197 |
+
|
| 198 |
+
# REFERENCES
|
| 199 |
+
|
| 200 |
+
Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In ˇ SIGKDD, 2006. 2
|
| 201 |
+
|
| 202 |
+
Yu Cheng, Duo Wang, Pan Zhou, and Tao Zhang. A survey of model compression and acceleration for deep neural networks. arXiv preprint arXiv:1710.09282, 2017. 1
|
| 203 |
+
|
| 204 |
+
M. Courbariaux and Y. Bengio. BinaryNet: Training deep neural networks with weights and activations constrained to $+ 1$ or $- 1$ . arXiv preprint arXiv:1602.02830, 2016. 2
|
| 205 |
+
|
| 206 |
+
Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained to $+ 1$ or -1. arXiv preprint arXiv:1602.02830, 2016. 2
|
| 207 |
+
|
| 208 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. 6
|
| 209 |
+
Lei Deng, Guoqi Li, Song Han, Luping Shi, and Yuan Xie. Model compression and hardware acceleration for neural networks: A comprehensive survey. Proceedings of the IEEE, 108(4): 485–532, 2020. 1
|
| 210 |
+
Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In NeurIPS, 2014. 3
|
| 211 |
+
Xiaohan Ding, Guiguang Ding, Jungong Han, and Sheng Tang. Auto-balanced filter pruning for efficient convolutional neural networks. In AAAI, 2018. 2, 3, 7, 8
|
| 212 |
+
Xiaohan Ding, Guiguang Ding, Yuchen Guo, and Jungong Han. Centripetal sgd for pruning very deep convolutional networks with complicated structure. In CVPR, 2019a. 2, 7, 8
|
| 213 |
+
Xiaohan Ding, Guiguang Ding, Yuchen Guo, Jungong Han, and Chenggang Yan. Approximated oracle filter pruning for destructive cnn width optimization. In ICML, 2019b. 2, 8, 9, 13
|
| 214 |
+
Xiaohan Ding, Xiangxin Zhou, Yuchen Guo, Jungong Han, Ji Liu, et al. Global sparse momentum sgd for pruning very deep neural networks. In NeurIPS, 2019c. 8
|
| 215 |
+
Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. JMLR, 20(55):1–21, 2019. 3
|
| 216 |
+
Trevor Gale, Erich Elsen, and Sara Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019. 1, 6
|
| 217 |
+
Song Han, Jeff Pool, John Tran, and William J Dally. Learning both weights and connections for efficient neural network. In NeurIPS, 2015. 1, 2
|
| 218 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016. 1, 2
|
| 219 |
+
B. Hassibi and D. G. Stork. Second order derivatives for network pruning: Optimal brain surgeon. In NeurIPS, 1993. 1, 2, 3, 4, 8
|
| 220 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016. 6, 8
|
| 221 |
+
Yang He, Guoliang Kang, Xuanyi Dong, Yanwei Fu, and Yi Yang. Soft filter pruning for accelerating deep convolutional neural networks. In IJCAI, 2018a. 7, 8
|
| 222 |
+
Yang He, Yuhang Ding, Ping Liu, Linchao Zhu, Hanwang Zhang, and Yi Yang. Learning filter pruning criteria for deep convolutional neural networks acceleration. In CVPR, 2020. 1, 8, 9
|
| 223 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In ICCV, 2017. 1, 7, 9, 13
|
| 224 |
+
Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. AMC: Automl for model compression and acceleration on mobile devices. In ECCV, 2018b. 7
|
| 225 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. In NeurIPS Workshop, 2014. 2
|
| 226 |
+
Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. arXiv preprint arXiv:1905.02244, 2019. 3
|
| 227 |
+
Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 3
|
| 228 |
+
Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. In BMVC, 2014. 3
|
| 229 |
+
|
| 230 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. 6
|
| 231 |
+
|
| 232 |
+
V. Lebedev and V. Lempitsky. Fast convnets using group-wise brain damage. In CVPR, 2016. 2
|
| 233 |
+
|
| 234 |
+
Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. arXiv preprint arXiv:1412.6553, 2014. 3
|
| 235 |
+
|
| 236 |
+
Y. LeCun, J. S. Denker, and S. A. Solla. Optimal brain damage. In NeurIPS, 1990. 1, 2, 3, 4, 8, 13, 14, 15
|
| 237 |
+
|
| 238 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436, 2015. 1
|
| 239 |
+
|
| 240 |
+
Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. In ICLR, 2017. 1, 2, 3, 6, 8, 14
|
| 241 |
+
|
| 242 |
+
Tuanhui Li, Baoyuan Wu, Yujiu Yang, Yanbo Fan, Yong Zhang, and Wei Liu. Compressing convolutional neural networks via factorized convolutional filters. In CVPR, 2019. 8
|
| 243 |
+
|
| 244 |
+
Lucas Liebenwein, Cenk Baykal, Harry Lang, Dan Feldman, and Daniela Rus. Provable filter pruning for efficient neural networks. In ICLR, 2020. 8, 9
|
| 245 |
+
|
| 246 |
+
Mingbao Lin, Rongrong Ji, Yan Wang, Yichen Zhang, Baochang Zhang, Yonghong Tian, and Ling Shao. Hrank: Filter pruning using high-rank feature map. In CVPR, 2020a. 8
|
| 247 |
+
|
| 248 |
+
Tao Lin, Sebastian U Stich, Luis Barba, Daniil Dmitriev, and Martin Jaggi. Dynamic model pruning with feedback. In ICLR, 2020b. 8
|
| 249 |
+
|
| 250 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017. 1, 2
|
| 251 |
+
|
| 252 |
+
Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In ICLR, 2019. 14
|
| 253 |
+
|
| 254 |
+
Christos Louizos, Max Welling, and Diederik P Kingma. Learning sparse neural networks through l 0 regularization. In ICLR, 2018. 2
|
| 255 |
+
|
| 256 |
+
James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In ICML, 2015. 2
|
| 257 |
+
|
| 258 |
+
Deepak Mittal, Shweta Bhardwaj, Mitesh M Khapra, and Balaraman Ravindran. Recovering from random pruning: On the plasticity of deep convolutional neural networks. In WACV, 2018. 7
|
| 259 |
+
|
| 260 |
+
Dmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. In ICML, 2017a. 8
|
| 261 |
+
|
| 262 |
+
P. Molchanov, S. Tyree, and T. Karras. Pruning convolutional neural networks for resource efficient inference. In ICLR, 2017b. 1, 2
|
| 263 |
+
|
| 264 |
+
Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In CVPR, 2019. 1, 2, 8, 9
|
| 265 |
+
|
| 266 |
+
Michael C Mozer and Paul Smolensky. Skeletonization: A technique for trimming the fat from a network via relevance assessment. In NeurIPS, 1989. 1
|
| 267 |
+
|
| 268 |
+
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, highperformance deep learning library. In NeurIPS, 2019. 6
|
| 269 |
+
|
| 270 |
+
Hanyu Peng, Jiaxiang Wu, Shifeng Chen, and Junzhou Huang. Collaborative channel pruning for deep networks. In ICML, 2019. 8
|
| 271 |
+
|
| 272 |
+
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, 2016. 2
|
| 273 |
+
|
| 274 |
+
R. Reed. Pruning algorithms – a survey. IEEE Transactions on Neural Networks, 4(5):740–747, 1993. 1, 2
|
| 275 |
+
|
| 276 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018. 3
|
| 277 |
+
|
| 278 |
+
Jurgen Schmidhuber. Deep learning in neural networks: An overview. ¨ Neural networks, 61:85–117, 2015. 1
|
| 279 |
+
|
| 280 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6
|
| 281 |
+
|
| 282 |
+
Sidak Pal Singh and Dan Alistarh. Woodfisher: Efficient second-order approximations for model compression. In NeurIPS, 2020. 1, 2, 4, 8, 9, 13
|
| 283 |
+
|
| 284 |
+
Gilbert Strang. Calculus. Wellesley-Cambridge Press, 1991. 4
|
| 285 |
+
|
| 286 |
+
Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, 2019. 3
|
| 287 |
+
|
| 288 |
+
Chaoqi Wang, Roger Grosse, Sanja Fidler, and Guodong Zhang. Eigendamage: Structured pruning in the kronecker-factored eigenbasis. In ICML, 2019a. 1, 2, 4, 7, 8
|
| 289 |
+
|
| 290 |
+
Huan Wang, Qiming Zhang, Yuehai Wang, and Haoji Hu. Structured probabilistic pruning for convolutional neural network acceleration. In BMVC, 2018. 9
|
| 291 |
+
|
| 292 |
+
Huan Wang, Xinyi Hu, Qiming Zhang, Yuehai Wang, Lu Yu, and Haoji Hu. Structured pruning for efficient convolutional neural networks via incremental regularization. IEEE Journal of Selected Topics in Signal Processing, 14(4):775–788, 2019b. 5, 8
|
| 293 |
+
|
| 294 |
+
Huan Wang, Qiming Zhang, Yuehai Wang, Lu Yu, and Haoji Hu. Structured pruning for efficient convnets via incremental regularization. In IJCNN, 2019c. 2, 3, 5
|
| 295 |
+
|
| 296 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NeurIPS, 2016. 1, 2, 9, 13
|
| 297 |
+
|
| 298 |
+
Jianbo Ye, Xin Lu, Zhe Lin, and James Z Wang. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. In ICLR, 2018. 2
|
| 299 |
+
|
| 300 |
+
Ming Yuan and Yi Lin. Model selection and estimation in regression with grouped variables. Journal of the Royal Statistical Society, 68(1):49–67, 2006. 2
|
| 301 |
+
|
| 302 |
+
Xiangyu Zhang, Jianhua Zou, Xiang Ming, Kaiming He, and Jian Sun. Efficient and accurate approximations of nonlinear convolutional networks. In CVPR, 2015. 3
|
| 303 |
+
|
| 304 |
+
Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In CVPR, 2018. 3
|
| 305 |
+
|
| 306 |
+
Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, and Jinhui Zhu. Discrimination-aware channel pruning for deep neural networks. In NeurIPS, 2018. 8
|
| 307 |
+
|
| 308 |
+
Barret Zoph and Quoc Le. Neural architecture search with reinforcement learning. In ICLR, 2017. 3
|
| 309 |
+
|
| 310 |
+
# A APPENDIX
|
| 311 |
+
|
| 312 |
+
# A.1 EXPERIMENTAL SETTING DETAILS
|
| 313 |
+
|
| 314 |
+
Training setting summary. About the networks evaluated, we intentionally avoid AlexNet and VGG on the ImageNet benchmark because the single-branch architecture is no longer representative of the modern deep network architectures with residuals (but still keep VGG19 on the CIFAR analysis to make sure the findings are not limited to one specific architecture). Apart from some key settings stated in the paper, a more detailed training setting summary is shown as Tab. 5.
|
| 315 |
+
|
| 316 |
+
Table 5: Training setting summary. For the SGD solver, in the parentheses are the momentum and weight decay. For ImageNet, batch size 64 is used for pruning instead of the standard 256, which is because we want to save the training time.
|
| 317 |
+
|
| 318 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>CIFAR</td><td rowspan=1 colspan=1>ImageNet</td></tr><tr><td rowspan=1 colspan=1>Solver</td><td rowspan=1 colspan=1>SGD (0.9, 5e-4)</td><td rowspan=1 colspan=1>SGD (0.9, 1e-4)</td></tr><tr><td rowspan=1 colspan=1>LR policy (prune)</td><td rowspan=1 colspan=2>Fixed (1e-3)</td></tr><tr><td rowspan=1 colspan=1>LR policy (finetune)</td><td rowspan=1 colspan=1>Multi-step (0:1e-2,60:1e-3,90:1e-4)</td><td rowspan=1 colspan=1>Multi-step (0:1e-2, 60:1e-3,90:1e-4)Multi-step (0:1e-2, 30:1e-3, 60:1e-4,75:1e-5)</td></tr><tr><td rowspan=1 colspan=1>Total epoch (finetune)</td><td rowspan=1 colspan=1>120</td><td rowspan=1 colspan=1>90</td></tr><tr><td rowspan=1 colspan=1>Batch size (prune)</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>Batch size (finetune)</td><td rowspan=1 colspan=2>256</td></tr></table>
|
| 319 |
+
|
| 320 |
+
Pruning ratios. Although several recent methods Ding et al. (2019b); Singh & Alistarh (2020) can automatically decide pruning ratios, in this paper we opt to consider pruning independent with the pruning ratio choosing. The main consideration is that pruning ratio is broadly believed to reflect the redundancy of different layers LeCun et al. (1990); Wen et al. (2016); He et al. (2017), which is an inherent characteristic of the model, thus should not be coupled with the subsequent pruning algorithms.
|
| 321 |
+
|
| 322 |
+
Before we list the specific pruning ratios, we explain how we set them. (1) For a ResNet, if it has $N$ stages, we will use a list of $N$ floats to represent its pruning ratios for the $N$ stages. For example, ResNet56 has 4 stages in conv layers, then “[0, 0.5, 0.5, 0.5]” means “for the first stage (which is also the first conv layer), the pruning ratio is 0; the other three stages have pruning ratio of $0 . 5 '$ . Besides, since we do not prune the last conv in a residual block, which means for a two-layer residual block (for ResNet56), we only prune the first layer; for a three-layer bottleneck block (for ResNet34 and 50), we only prune the first and second layers. (2) For VGG19, we use the following pruning ratio setting. For example, “[0:0, 1-9:0.3, 10-15:0.5]” means “for the first layer (index starting from 0), the pruning ratio is 0; for layer 1 to 9, the pruning ratio is 0.3; for layer 10 to 15, the pruning ratio is $0 . 5 '$ .
|
| 323 |
+
|
| 324 |
+
With these, the specific pruning ratio for each of our experiments in the paper are listed in Tab. 6. We do not have strong rules to set them, except one, which is setting the pruning ratios of higher stages smaller, because the FLOPs of higher layers are relatively smaller (due to the fact that the spatial feature map sizes are smaller) and we are targeting more acceleration than compression. Of course, this scheme only is quite crude, yet as our results (Tab. 3 and 4) show, even with these crude settings, the performances are still competitive.
|
| 325 |
+
|
| 326 |
+
# B PROOF OF EQ. 5
|
| 327 |
+
|
| 328 |
+
When a quadratic function $\mathcal { E }$ converges at $\mathbf { w } ^ { * }$ with Hessian matrix $\mathbf { H }$ , it can be formulated as
|
| 329 |
+
|
| 330 |
+
$$
|
| 331 |
+
\mathcal { E } = ( \mathbf { w } - \mathbf { w } ^ { * } ) ^ { T } \mathbf { H } ( \mathbf { w } - \mathbf { w } ^ { * } ) + C ,
|
| 332 |
+
$$
|
| 333 |
+
|
| 334 |
+
where $C$ is a constant. Now a new function is made by increasing the $L _ { 2 }$ penalty by small amount $\delta \lambda$ , namely,
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\begin{array} { r } { \hat { \mathcal { E } } = \mathcal { E } + \delta \lambda \mathbf { w } ^ { T } \mathbf { I } \mathbf { w } . } \end{array}
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
Let the new converged values be $\hat { \mathbf { w } } ^ { * }$ , then similar to Eq. 10, $\hat { \mathcal { E } }$ can be formulated as
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
\hat { \mathcal { E } } = ( \mathbf { w } - \hat { \mathbf { w } } ^ { * } ) ^ { T } \hat { \mathbf { H } } ( \mathbf { w } - \hat { \mathbf { w } } ^ { * } ) + \hat { C } , \mathrm { w h e r e } \hat { \mathbf { H } } = \mathbf { H } + \delta \lambda \mathbf { I } .
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
Table 6: Pruning ratio summary.
|
| 347 |
+
|
| 348 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>Network</td><td rowspan=1 colspan=1>Speedup</td><td rowspan=1 colspan=1>Pruned top-1 accuracy (%)</td><td rowspan=1 colspan=1>Pruning ratio</td></tr><tr><td rowspan=1 colspan=1>CIFAR10CIFAR100</td><td rowspan=1 colspan=1>ResNet56VGG19</td><td rowspan=1 colspan=1>2.55×8.84×</td><td rowspan=1 colspan=1>93.3667.56</td><td rowspan=1 colspan=1>[0, 0.75, 0.75, 0.32, 0][1-15:0.7]</td></tr><tr><td rowspan=4 colspan=1>ImageNetImageNetImageNetImageNetImageNet</td><td rowspan=2 colspan=1>ResNet34ResNet50ResNet50</td><td rowspan=1 colspan=1>1.32×</td><td rowspan=2 colspan=1>73.4476.2475.16</td><td rowspan=4 colspan=1>[0, 0.50, 0.60, 0.40, 0, 0]*[0, 0.30, 0.30, 0.30, 0.14, 0][0, 0.60, 0.60, 0.60, 0.21, 0][0, 0.74, 0.74, 0.60, 0.21, 0][0, 0.68, 0.68, 0.68, 0.50, 0]</td></tr><tr><td rowspan=1 colspan=1>1.49×2.31×</td></tr><tr><td rowspan=2 colspan=1>ResNet50ResNet50</td><td rowspan=1 colspan=1>2.56×</td><td rowspan=2 colspan=1>74.7573.50</td></tr><tr><td rowspan=1 colspan=1>3.06×</td></tr></table>
|
| 349 |
+
|
| 350 |
+
\* In addition to the pruning ratios, several layers are skipped, following the setting of $L _ { 1 }$ (pruned-B) Li et al. (2017). Specifically, we refer to the implementation of Liu et al. (2019) at https://github.com/Ericmingjie/rethinking-network-pruning/tree/master/imagenet/l1-norm-pruning.
|
| 351 |
+
|
| 352 |
+
Meanwhile, combine Eq. 10 and Eq. 11, we can obtain
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
\begin{array} { r } { \hat { \mathcal { E } } = ( \mathbf { w } - \mathbf { w } ^ { * } ) ^ { T } \mathbf { H } ( \mathbf { w } - \mathbf { w } ^ { * } ) + \delta \lambda \mathbf { w } ^ { T } \mathbf { I } \mathbf { w } + C . } \end{array}
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
Compare Eq. 13 with Eq. 12, we have
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
( \mathbf { H } + \delta \lambda \mathbf { I } ) { \hat { \mathbf { w } } } ^ { * } = \mathbf { H } \mathbf { w } ^ { * } \Rightarrow { \hat { \mathbf { w } } } ^ { * } = ( \mathbf { H } + \delta \lambda \mathbf { I } ) ^ { - 1 } \mathbf { H } \mathbf { w } ^ { * } .
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
C PROOF OF EQ. 7
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\hat { \mathbf { H } } = \left\{ \begin{array} { c c } { h _ { 1 1 } + \delta \lambda } & { h _ { 1 2 } } \\ { h _ { 1 2 } } & { h _ { 2 2 } + \delta \lambda } \end{array} \right\} \Rightarrow \hat { \mathbf { H } } ^ { - 1 } = \frac { 1 } { \vert \hat { \mathbf { H } } \vert } \left\{ \begin{array} { c c } { h _ { 2 2 } + \delta \lambda } & { - h _ { 1 2 } } \\ { - h _ { 1 2 } } & { h _ { 1 1 } + \delta \lambda } \end{array} \right\}
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
Therefore, $\hat { \mathbf { w } } ^ { * } = \hat { \mathbf { H } } ^ { - 1 } \mathbf { H } \mathbf { w } ^ { * } \Rightarrow$
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\begin{array} { r l r } & { } & { \left\{ \hat { w } _ { 1 } ^ { * } \right\} = \hat { \bf H } ^ { - 1 } { \bf H } \left\{ w _ { 1 } ^ { * } \right\} = \frac { 1 } { \left| \hat { \bf H } \right| } \left\{ \begin{array} { c c } { h _ { 2 2 } + \delta \lambda } & { - h _ { 1 2 } } \\ { - h _ { 1 1 } } & { h _ { 1 1 } + \delta \lambda } \end{array} \right\} \left\{ \begin{array} { c c } { h _ { 1 1 } } & { h _ { 1 2 } } \\ { h _ { 1 2 } } & { h _ { 2 2 } } \end{array} \right\} \left\{ \begin{array} { c } { w _ { 1 } ^ { * } } \\ { w _ { 2 } ^ { * } } \end{array} \right\} } \\ & { } & { = \frac { 1 } { \left| \hat { \bf H } \right| } \left\{ \begin{array} { c c } { \left( h _ { 1 1 } h _ { 2 2 } + h _ { 1 1 } \delta \lambda - h _ { 1 2 } ^ { 2 } \right) w _ { 1 } ^ { * } + \delta \lambda h _ { 1 2 } w _ { 2 } ^ { * } } \\ { \left( h _ { 1 1 } h _ { 2 2 } + h _ { 2 2 } \delta \lambda - h _ { 1 2 } ^ { 2 } \right) w _ { 2 } ^ { * } + \delta \lambda h _ { 1 2 } w _ { 1 } ^ { * } } \end{array} \right\} . } \end{array}
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
# D GREG- $1 + \mathrm { O B D }$
|
| 377 |
+
|
| 378 |
+
In Sec. 4.1, we show when pruning the same weights, GReg-1 is significantly better than the oneshot counterpart, where the pruned weights are selected by the $L _ { 1 }$ -norm criterion. Here we conduct the same comparison just with a different pruning criterion introduced in OBD LeCun et al. (1990). OBD is also an one-shot pruning method, using a Hessian-based criterion which is believed to be more advanced than $L _ { 1 }$ -norm.
|
| 379 |
+
|
| 380 |
+
Results are shown in Tab. 7. As seen, using this more advanced importance criterion, our pruning scheme based on growing regularization is still consistently better than the one-shot counterpart. Besides, it is also verified here that a better pruning schedule can bring more accuracy gain when the speedup is larger.
|
| 381 |
+
|
| 382 |
+
# E FILTER L1-NORM CHANGE OF VGG19
|
| 383 |
+
|
| 384 |
+
In Fig. 1 (Row 2), we plot the filter $L _ { 1 }$ -norm change over time for ResNet50 on ImageNet. Here we plot the case of VGG19 on CIFAR100 to show the weight separation phenomenon under growing regularization is a general one across different datasets and networks.
|
| 385 |
+
|
| 386 |
+
# F HYPER-PARAMETERS AND SENSITIVITY ANALYSIS
|
| 387 |
+
|
| 388 |
+
There are five introduced values in our methods: regularization ceiling $\tau$ , ceiling for picking $\tau ^ { \prime }$ interval $K _ { u } , K _ { s }$ , granularity $\delta \lambda$ . Their settings are summarized in Tab. 8. Among them, the ceilings
|
| 389 |
+
|
| 390 |
+
Table 7: Comparison between pruning schedules: one-shot pruning vs. our proposed GReg-1 using the Hessian-based criterion introduced in OBD LeCun et al. (1990). Each setting is randomly run for 3 times, mean and std accuracies reported. We vary the global pruning ratio from 0.7 to 0.95 so as to cover the major speedup spectrum of interest. Same as Tab. 1, the pruned weights here are exactly the same for the two methods under each speedup ratio. The finetuning processes (number of epochs, LR schedules, etc.) are also the same to keep fair comparison.
|
| 391 |
+
|
| 392 |
+

|
| 393 |
+
Figure 2: Normalized filter $L _ { 1 }$ -norm over iterations for VGG19 layer3.
|
| 394 |
+
|
| 395 |
+
are set through validation: $\tau = 1$ is set to make sure the unimportant weights are pushed down enough (as stated in the main paper, normally after the regularization training, their magnitudes are too small to cause significant accuracy degradation if they are completely removed). $\tau ^ { \prime } = 0 . 0 1$ is set generally for the same goal as $\tau$ , but since it is applied to all the weight (not just the unimportant ones), we only expect it to be moderately large (thus smaller than $\tau$ ) so that the important and unimportant can be differentiated with a clear boundary. For the $\delta \lambda$ , we use a very small regularization granularity $\delta \lambda$ , which our theoretical analysis is based on. We set its value to 1e-4 for GReg-1 and 1e-5 for GReg-2 with reference to the original weight decay value $5 \times 1 0 ^ { - 4 }$ (for CIFAR models) and $1 0 ^ { - 4 }$ (for ImageNet models). Note that, these values come from our methods per se, not directly related to datasets and networks, thus are invariant to them. This is why we can employ the same setting of these three hyper-parameters in all our experiments, freeing practitioners from heavy tuning when dealing with different networks or datasets.
|
| 396 |
+
|
| 397 |
+
Table 8: Hyper-parameters of our methods.
|
| 398 |
+
|
| 399 |
+
<table><tr><td rowspan=1 colspan=1>Notation</td><td rowspan=1 colspan=1>Default value (CIFAR)</td><td rowspan=1 colspan=1>Default value (ImageNet)</td></tr><tr><td rowspan=1 colspan=1>8入</td><td rowspan=1 colspan=2>GReg-1: 1e-4, GReg-2: 1e-5</td></tr><tr><td rowspan=1 colspan=1>T</td><td rowspan=1 colspan=2>1</td></tr><tr><td rowspan=1 colspan=1>T</td><td rowspan=1 colspan=2>0.01</td></tr><tr><td rowspan=1 colspan=1>Ku</td><td rowspan=1 colspan=1>10 iterations</td><td rowspan=1 colspan=1>5 iterations</td></tr><tr><td rowspan=1 colspan=1>Ks</td><td rowspan=1 colspan=1>5k iterations</td><td rowspan=1 colspan=1>40k iterations</td></tr></table>
|
| 400 |
+
|
| 401 |
+
A little bit of change is for $K _ { u } , K _ { s }$ . Both are generally to let the network have enough time to converge to the new equilibrium. Generally, we prefer large update intervals, yet we also need to consider the time complexity: Too large of them will bring too many iterations, which may be unnecessary. Among them, $K _ { s }$ is less important since it is to stabilize the large regularization $\mathit { \Psi } _ { \tau } = 1 \mathit { \Psi } _ { . }$ ). We introduce it simply to make sure the training is fully converged. Therefore, the possibly more sensitive hyper-parameter is the $K _ { u }$ (set to 5 for ImageNet and 10 for CIFAR). Here we will show the performance is insensitive to the varying $K _ { u }$ . As shown in Tab. 9, the peak performance appears at around $K _ { u } = 1 5$ for ResNet56 and $K _ { u } = 1 0$ for VGG19. We simply adopt 10 for a uniform setting in our paper. We did not heavily tune these hyper-parameters, yet as seen, they work pretty well across different networks and datasets. Notably, even for the worst cases in Tab. 9 (in blue color), they are still significantly better than those of the “ $L _ { 1 } +$ one-shot” scheme, demonstrating the robustness of the proposed algorithm.
|
| 402 |
+
|
| 403 |
+
Table 9: Sensitivity analysis of $K _ { u }$ on CIFAR10/100 datasets with the proposed GReg-1 algorithm. $K _ { u } = 1 0$ is the default setting. Pruning ratio $9 0 \%$ (ResNet56) and $7 0 \%$ (VGG19) are explored here. Experiments are randomly run for 3 times with mean accuracy and standard deviation reported. The best is highlighted with bold and the worst is highlighted with blue color.
|
| 404 |
+
|
| 405 |
+
<table><tr><td rowspan=1 colspan=1>Ku</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>15</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>L1+one-shot</td></tr><tr><td rowspan=1 colspan=1>Acc. (%,ResNet56)</td><td rowspan=1 colspan=1>89.40±0.04</td><td rowspan=1 colspan=1>89.38±0.13</td><td rowspan=1 colspan=1>89.49±0.23</td><td rowspan=1 colspan=1>89.69±0.05</td><td rowspan=1 colspan=1>89.62±0.13</td><td rowspan=1 colspan=1>87.34±0.21</td></tr><tr><td rowspan=1 colspan=1>Acc. (%,VGG19)</td><td rowspan=1 colspan=1>67.22±0.33</td><td rowspan=1 colspan=1>67.32±0.24</td><td rowspan=1 colspan=1>67.35±0.15</td><td rowspan=1 colspan=1>67.06±0.40</td><td rowspan=1 colspan=1>66.93±0.22</td><td rowspan=1 colspan=1>66.05±0.04</td></tr></table>
|
| 406 |
+
|
| 407 |
+
# G MORE RESULTS OF PRUNING SCHEDULE COMPARISON
|
| 408 |
+
|
| 409 |
+
In Tab. 1, we show using $L _ { 1 }$ -norm sorting, our proposed GReg-1 can consistently surpass the oneshot schedule even pruning the same weights. Here we ask a more general question: Can the benefits from a regularization-based schedule consistently appear, agnostic to the weight importance scoring criterion? This question is important because it will show if the gain from a better pruning schedule is only a bonus concurrent with the $L _ { 1 }$ criterion or a really universal phenomenon. Since there are literally so many weight importance criteria, we cannot ablate them one by one. Nevertheless, given a pre-trained model and a pruning ratio $r$ , no matter what criterion, its role is to select a filter subset. For example, if there are 100 filters in a layer and $r = 0 . 5$ , then they are at most $\binom { 1 0 0 } { 5 0 }$ importance criteria in theory for this layer. We can simply randomly pick a subset of filters (which corresponds to certain criterion, albeit unknown) and compare the one-shot way with regularization-based way on the subset. Based on this idea, we conduct five random runs on the ResNet56 and VGG19 to explore this. The pruning ratio is chosen as $9 0 \%$ for ResNet56 and $7 0 \%$ for VGG19 because under this ratio the compression (or acceleration) ratio is about 10 times, neither too large nor too small (where the network can heal itself regardless of pruning methods).
|
| 410 |
+
|
| 411 |
+
The results are shown in Tab. 10. Here is a sanity check: Compared with Tab. 1, the mean accuracy of pruning randomly picked filters should be less than pruning those picked by $L _ { 1 }$ -norm, confirmed by $8 6 . 8 5 \%$ vs. $8 7 . 3 4 \%$ for ResNet56 and $6 5 . 0 4 \%$ vs. $6 6 . 0 5 \%$ for VGG19. As seen, in each run, the regularization-based way also significantly surpasses its one-shot counterpart. Although five random runs are still too few given the exploding potential combinations, yet as shown by the accuracy standard deviations, the results are stable and thus qualified to support our finding that the regularization-based pruning schedule is better to the one-shot counterpart.
|
| 412 |
+
|
| 413 |
+
Table 10: Comparison between pruning schedules: one-shot vs. GReg-1. Pruning ratio is $90 \%$ for ResNet56 and $70 \%$ for VGG19. In each run, the weights to prune are picked randomly before the training starts.
|
| 414 |
+
|
| 415 |
+
<table><tr><td rowspan=1 colspan=1>ResNet56 + CIFAR10</td><td rowspan=1 colspan=1>Run #1</td><td rowspan=1 colspan=1>Run #2</td><td rowspan=1 colspan=1>Run #3</td><td rowspan=1 colspan=1>Run #4</td><td rowspan=1 colspan=1>Run #5</td><td rowspan=1 colspan=1>Mean±std</td></tr><tr><td rowspan=1 colspan=1>Acc. (%, one-shot)Acc. (%, GReg-1, ours)</td><td rowspan=1 colspan=1>87.5789.26</td><td rowspan=1 colspan=1>87.0088.98</td><td rowspan=1 colspan=1>86.2788.78</td><td rowspan=1 colspan=1>86.7589.42</td><td rowspan=1 colspan=1>86.6788.96</td><td rowspan=1 colspan=1>86.85±0.4389.08±0.23</td></tr><tr><td rowspan=1 colspan=1>VGG19 + CIFAR100</td><td rowspan=1 colspan=1>Run #1</td><td rowspan=1 colspan=1>Run #2</td><td rowspan=1 colspan=1>Run #3</td><td rowspan=1 colspan=1>Run #4</td><td rowspan=1 colspan=1>Run #5</td><td rowspan=1 colspan=1>Mean±std</td></tr><tr><td rowspan=1 colspan=1>Acc. (%,one-shot)Acc. (%, GReg-1, ours)</td><td rowspan=1 colspan=1>64.5666.63</td><td rowspan=1 colspan=1>65.0666.57</td><td rowspan=1 colspan=1>65.0766.80</td><td rowspan=1 colspan=1>65.0566.80</td><td rowspan=1 colspan=1>65.4867.16</td><td rowspan=1 colspan=1>65.04±0.2966.79±0.21</td></tr></table>
|
parse/train/o966_Is_nPA/o966_Is_nPA_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJxgknCcK7/rJxgknCcK7.md
ADDED
|
@@ -0,0 +1,317 @@
|
|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, David Duvenaud†
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Reversible generative models map points from a simple distribution to a complex distribution through an easily invertible neural network. Likelihood-based training of these models requires restricting their architectures to allow cheap computation of Jacobian determinants. Alternatively, the Jacobian trace can be used if the transformation is specified by an ordinary differential equation. In this paper, we use Hutchinson’s trace estimator to give a scalable unbiased estimate of the logdensity. The result is a continuous-time invertible generative model with unbiased density estimation and one-pass sampling, while allowing unrestricted neural network architectures. We demonstrate our approach on high-dimensional density estimation, image generation, and variational inference, improving the state-ofthe-art among exact likelihood methods with efficient sampling.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Reversible generative models use cheaply invertible neural networks to transform samples from a fixed base distribution. Examples include NICE (Dinh et al., 2014), Real NVP (Dinh et al., 2017), and Glow (Kingma & Dhariwal, 2018). These models are easy to sample from, and can be trained by maximum likelihood using the change of variables formula. However, this requires placing awkward restrictions on their architectures, such as partitioning dimensions or using rank one weight matrices, in order to avoid an $\mathcal { O } ( D ^ { 3 } )$ cost determinant computation.
|
| 12 |
+
|
| 13 |
+
Recently, Chen et al. (2018) introduced continuous normalizing flows (CNF), defining the mapping from latent variables to data using ordinary differential equations (ODE). In their model, the likelihood can be computed using trace operations costing only $\mathcal { O } ( D ^ { 2 } )$ . This allows a more flexible, but still restricted, family of network architectures to be used.
|
| 14 |
+
|
| 15 |
+
Extending this work, we introduce an unbiased stochastic estimator of the likelihood that has $\mathcal { O } ( D )$ time cost, allowing completely unrestricted architectures. Furthermore, we have implemented GPU-based adaptive ODE solvers to train and evaluate these models on modern hardware. We call our approach Free-form Jacobian of
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: FFJORD transforms a simple base distribution at $t _ { 0 }$ into the target distribution at $t _ { 1 }$ by integrating over learned continuous dynamics.
|
| 19 |
+
|
| 20 |
+
Reversible Dynamics (FFJORD). Figure 1 shows FFJORD smoothly transforming a Gaussian distribution into a multi-modal distribution.
|
| 21 |
+
|
| 22 |
+
# 2 BACKGROUND: GENERATIVE MODELS AND CHANGE OF VARIABLES
|
| 23 |
+
|
| 24 |
+
In contrast to directly parameterizing a normalized distribution (e.g. Oord et al. (2016); Germain et al. (2015)), the change of variables formula allows one to specify a complex normalized distribution $p _ { \mathbf { x } } ( \mathbf { x } )$ implicitly by warping a normalized base distribution $p _ { \mathbf { z } } ( \mathbf { z } )$ through an invertible function $f : \mathbb { R } ^ { D } \overset { \cdot } { } \mathbb { R } ^ { D }$ . Given a random variable $\mathbf { z } \sim p _ { \mathbf { z } } ( \mathbf { z } )$ the log density of ${ \bf x } = f ( { \bf z } )$ follows
|
| 25 |
+
|
| 26 |
+
$$
|
| 27 |
+
\log p _ { \mathbf { x } } ( \mathbf { x } ) = \log p _ { \mathbf { z } } ( \mathbf { z } ) - \log \operatorname* { d e t } \left| \frac { \partial f ( \mathbf { z } ) } { \partial \mathbf { z } } \right|
|
| 28 |
+
$$
|
| 29 |
+
|
| 30 |
+
where $\partial f ( \mathbf { z } ) / \partial \mathbf { z }$ is the Jacobian of $f$ . In general, computing the log determinant has a time cost of $\mathcal { O } ( D ^ { 3 } )$ . Much work has gone into developing restricted neural network architectures which make computing the Jacobian’s determinant more tractable. These approaches broadly fall into three categories:
|
| 31 |
+
|
| 32 |
+
Normalizing flows. By restricting the functional form of $f$ , various determinant identities can be exploited (Rezende & Mohamed, 2015; Berg et al., 2018). These models cannot be trained as generative models from data because they do not have a tractable inverse $f ^ { - 1 }$ . However, they are useful for specifying approximate posteriors for variational inference (Kingma & Welling, 2014).
|
| 33 |
+
|
| 34 |
+
Autoregressive transformations. By using an autoregressive model and specifying an ordering of the dimensions, the Jacobian of $f$ is enforced to be lower triangular (Kingma et al., 2016; Oliva et al., 2018). These models excel at density estimation for tabular datasets (Papamakarios et al., 2017), but require $D$ sequential evaluations of $f$ to invert, which is prohibitive when $D$ is large.
|
| 35 |
+
|
| 36 |
+
Partitioned transformations. Partitioning the dimensions and using affine transformations makes the determinant of the Jacobian cheap to compute, and the inverse $\breve { f } ^ { - 1 }$ computable with the same cost as $f$ (Dinh et al., 2014; 2017). This method allows the use of convolutional architectures, excelling at density estimation for image data (Dinh et al., 2017; Kingma & Dhariwal, 2018).
|
| 37 |
+
|
| 38 |
+
Throughout this work, we refer to reversible generative models as those which use the change of variables to transform a base distribution to the model distribution while maintaining both efficient density estimation and efficient sampling capabilities using a single pass of the model.
|
| 39 |
+
|
| 40 |
+
# 2.1 OTHER GENERATIVE MODELS
|
| 41 |
+
|
| 42 |
+
There exist several approaches to generative modeling approaches which do not use the change of variables equation for training. Generative adversarial networks (GANs) (Goodfellow et al., 2014) use large, unrestricted neural networks to transform samples from a fixed base distribution. Lacking a closed-form likelihood, an auxiliary discriminator model must be trained to estimate divergences or density ratios in order to provide a training signal. Autoregressive models (Germain et al., 2015; Oord et al., 2016) directly specify the joint distribution $p ( \mathbf { x } )$ as a sequence of explicit conditional distributions using the product rule. These models require at least $\mathcal { O } ( D )$ evaluations to sample from. Variational autoencoders (VAEs) (Kingma & Welling, 2014) use an unrestricted architecture to explicitly specify the conditional likelihood $p ( x | z )$ , but can only efficiently provide a stochastic lower bound on the marginal likelihood $p ( x )$ .
|
| 43 |
+
|
| 44 |
+
# 2.2 CONTINUOUS NORMALIZING FLOWS
|
| 45 |
+
|
| 46 |
+
Chen et al. (2018) define a generative model for data $\mathbf { x } \in \mathbb { R } ^ { D }$ similar to those based on (1), but replace the warping function with an integral of continuous-time dynamics. The generative process first samples from a base distribution ${ \bf z } _ { 0 } \sim p _ { z _ { 0 } } ( { \bf z } _ { 0 } )$ . Then, given an ODE whose dynamics are defined by the parametric function $\partial \mathbf { z } ( t ) / \partial t = f ( \mathbf { z } ( t ) , t ; \theta )$ , we solve the initial value problem with $\mathbf { z } ( t _ { 0 } ) = \dot { \mathbf { z } } _ { 0 }$ to obtain a data sample ${ \mathbf x } = { \mathbf z } ( t _ { 1 } )$ . These models are called Continous Normalizing Flows (CNF). The change in log-density under this model follows a second differential equation, called the instantaneous change of variables formula (Chen et al., 2018):
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\frac { \partial \log p ( { \bf z } ( t ) ) } { \partial t } = - \mathrm { T r } \left( \frac { \partial f } { \partial { \bf z } ( t ) } \right) .
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
We can compute total change in log-density by integrating across time:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\log p ( \mathbf { z } ( t _ { 1 } ) ) = \log p ( \mathbf { z } ( t _ { 0 } ) ) - \int _ { t _ { 0 } } ^ { t _ { 1 } } \operatorname { T r } \left( { \frac { \partial f } { \partial \mathbf { z } ( t ) } } \right) d t .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
<table><tr><td colspan="2">Method</td><td rowspan="2">Train on data</td><td rowspan="2">One-pass Sampling</td><td rowspan="2">Exact/Unbiased Log- likelihood</td><td rowspan="2">Free- form Jacobian</td></tr><tr><td colspan="2"></td></tr><tr><td rowspan="4"></td><td>Variational Autoencoders</td><td></td><td></td><td>X</td><td>√</td></tr><tr><td>Generative Adversarial Nets</td><td></td><td>√</td><td>×</td><td>√</td></tr><tr><td>Likelihood-based Autoregressive</td><td></td><td>×</td><td>√</td><td>×</td></tr><tr><td>Normalizing Flows</td><td>X</td><td>√</td><td></td><td>X</td></tr><tr><td rowspan="3">o auegg 2aaiber</td><td>Reverse-NF,MAF, TAN</td><td></td><td>X</td><td></td><td>X</td></tr><tr><td>NICE,Real NVP, Glow, Planar CNF</td><td></td><td>√</td><td></td><td>X</td></tr><tr><td>FFJORD</td><td></td><td>「</td><td></td><td></td></tr></table>
|
| 59 |
+
|
| 60 |
+
Given a datapoint x, we can compute both the point $\mathbf { z } _ { 0 }$ which generates $\mathbf { x }$ , as well as $\log p ( \mathbf { x } )$ under the model by solving the combined initial value problem:
|
| 61 |
+
|
| 62 |
+
which integrates the combined dynamics of $z ( t )$ and the log-density of the sample backwards in time from $t _ { 1 }$ to $t _ { 0 }$ . We can then compute $\log p ( \mathbf { x } )$ using the solution of (4) and adding $\log p _ { z _ { 0 } } ( { \bf z } _ { 0 } )$ . The existence and uniqueness of (4) require that $f$ and its first derivatives be Lipschitz continuous (Khalil, 2002), which can be satisfied in practice using neural networks with smooth Lipschitz activations, such as softplus or tanh.
|
| 63 |
+
|
| 64 |
+
# 2.2.1 BACKPROPAGATING THROUGH ODE SOLUTIONS WITH THE ADJOINT METHOD
|
| 65 |
+
|
| 66 |
+
CNFs are trained to maximize (3). This objective involves the solution to an initial value problem with dynamics parameterized by $\theta$ . For any scalar loss function which operates on the solution to an initial value problem
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
L ( \mathbf { z } ( t _ { 1 } ) ) = L \left( \int _ { t _ { 0 } } ^ { t _ { 1 } } f ( \mathbf { z } ( t ) , t ; \theta ) d t \right)
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
then Pontryagin (1962) shows that its derivative takes the form of another initial value problem
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\frac { d L } { d \theta } = - \int _ { t _ { 1 } } ^ { t _ { 0 } } \left( \frac { \partial L } { \partial \mathbf { z } ( t ) } \right) ^ { T } \frac { \partial f ( \mathbf { z } ( t ) , t ; \theta ) } { \partial \theta } d t .
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
The quantity $- { \partial L } / { \partial { \bf z } ( t ) }$ is known as the adjoint state of the ODE. Chen et al. (2018) use a black-box ODE solver to compute ${ \bf z } ( t _ { 1 } )$ , and then a separate call to a solver to compute (6) with the initial value ${ \partial L } / { \partial { \bf z } ( t _ { 1 } ) }$ . This approach is a continuous-time analog to the backpropgation algorithm (Rumelhart et al., 1986; Andersson, 2013) and can be combined with gradient-based optimization to fit the parameters $\theta$ by maximum likelihood.
|
| 79 |
+
|
| 80 |
+
# 3 SCALABLE DENSITY EVALUATION WITH UNRESTRICTED ARCHITECTURES
|
| 81 |
+
|
| 82 |
+
Switching from discrete-time dynamics to continuous-time dynamics reduces the primary computational bottleneck of normalizing flows from $\mathcal { O } ( D ^ { 3 } )$ to $\mathcal { O } ( D ^ { 2 } )$ , at the cost of introducing a numerical ODE solver. This allows the use of more expressive architectures. For example, each layer of the original normalizing flows model of Rezende & Mohamed (2015) is a one-layer neural network with only a single hidden unit. In contrast, the instantaneous transformation used in planar continuous normalizing flows (Chen et al., 2018) is a one-layer neural network with many hidden units. In this section, we construct an unbiased estimate of the log-density with $\mathcal { O } ( D )$ cost, allowing completely unrestricted neural network architectures to be used.
|
| 83 |
+
|
| 84 |
+
# 3.1 UNBIASED LINEAR-TIME LOG-DENSITY ESTIMATION
|
| 85 |
+
|
| 86 |
+
In general, computing $\operatorname { T r } \left( { \partial f } / { \partial \mathbf { z } ( t ) } \right)$ exactly costs $\mathcal { O } ( D ^ { 2 } )$ , or approximately the same cost as $D$ evaluations of $f$ , since each entry of the diagonal of the Jacobian requires computing a separate derivative of $f$ (Griewank & Walther, 2008). However, there are two tricks that can help. First, vector-Jacobian products ${ \pmb v } ^ { T } \frac { \partial f } { \partial { \bf z } }$ can be computed for approximately the same cost as evaluating $f$ using reverse-mode automatic differentiation. Second, we can get an unbiased estimate of the trace of a matrix by taking a double product of that matrix with a noise vector:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\operatorname { T r } ( A ) = \mathbb { E } _ { p ( \epsilon ) } [ \epsilon ^ { T } A \epsilon ] .
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
The above equation holds for any $D$ -by- $D$ matrix $A$ and distribution $p ( \epsilon )$ over $D$ -dimensional vectors such that $\mathbb { E } [ \boldsymbol { \epsilon } ] = 0$ and $\mathrm { C o v } ( \epsilon ) = I$ . The Monte Carlo estimator derived from (7) is known as Hutchinson’s trace estimator (Hutchinson, 1989; Adams et al., 2018).
|
| 93 |
+
|
| 94 |
+
To keep the dynamics deterministic within each call to the ODE solver, we can use a fixed noise vector $\epsilon$ for the duration of each solve without introducing bias:
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\begin{array} { r l } & { \log p ( \mathbf { z } ( t _ { 1 } ) ) = \log p ( \mathbf { z } ( t _ { 0 } ) ) - \int _ { t _ { 0 } } ^ { t _ { 1 } } \operatorname { T r } \left( \frac { \partial f } { \partial \mathbf { z } ( t ) } \right) d t } \\ & { \qquad = \log p ( \mathbf { z } ( t _ { 0 } ) ) - \int _ { t _ { 0 } } ^ { t _ { 1 } } \mathbb { E } _ { p ( \epsilon ) } \left[ \epsilon ^ { T } \frac { \partial f } { \partial \mathbf { z } ( t ) } \epsilon \right] d t } \\ & { \qquad = \log p ( \mathbf { z } ( t _ { 0 } ) ) - \mathbb { E } _ { p ( \epsilon ) } \left[ \int _ { t _ { 0 } } ^ { t _ { 1 } } \epsilon ^ { T } \frac { \partial f } { \partial \mathbf { z } ( t ) } \epsilon d t \right] } \end{array}
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
Typical choices of $p ( \epsilon )$ are a standard Gaussian or Rademacher distribution (Hutchinson, 1989).
|
| 101 |
+
|
| 102 |
+
# 3.1.1 REDUCING VARIANCE WITH BOTTLENECK CAPACITY
|
| 103 |
+
|
| 104 |
+
Often, there exist bottlenecks in the architecture of the dynamics network, i.e. hidden layers whose width $H$ is smaller than the dimensions of the input $D$ . In such cases, we can reduce the variance of Hutchinson’s estimator by using the cyclic property of trace. Since the variance of the estimator for $\operatorname { T r } ( A )$ grows asymptotic to $| | \bar { A | | } _ { F } ^ { 2 }$ (Hutchinson, 1989), we suspect that having fewer dimensions should help reduce variance. If we view the dynamics as a composition of two functions $f = g \circ h ( \mathbf { z } )$ then we observe
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\operatorname { T r } \underbrace { \left( { \frac { \partial f } { \partial \mathbf { z } } } \right) } _ { D \times D } = \operatorname { T r } \underbrace { \left( { \frac { \partial g } { \partial h } } { \frac { \partial h } { \partial \mathbf { z } } } \right) } _ { D \times D } = \operatorname { T r } \underbrace { \left( { \frac { \partial h } { \partial \mathbf { z } } } { \frac { \partial g } { \partial h } } \right) } _ { H \times H } = \mathbb { E } _ { p ( \epsilon ) } \left[ \epsilon ^ { T } { \frac { \partial h } { \partial \mathbf { z } } } { \frac { \partial g } { \partial h } } \epsilon \right] .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
When $f$ has multiple hidden layers, we choose $H$ to be the smallest dimension. This bottleneck trick can reduce the norm of the matrix which may also help reduce the variance of the trace estimator. As introducing a bottleneck limits our model capacity, we do not use this trick in our experiments. However this trick can reduce variance when a bottleneck is used, as shown in our ablation studies.
|
| 111 |
+
|
| 112 |
+
# 3.2 FFJORD: A CONTINUOUS-TIME REVERSIBLE GENERATIVE MODEL
|
| 113 |
+
|
| 114 |
+
Our complete method uses the dynamics defined in (2) and the efficient log-likelihood estimator of (8) to produce the first scalable and reversible generative model with an unconstrained Jacobian. We call this method Free-Form Jacobian of Reversible Dyanamics (FFJORD). Pseudo-code of our method is given in Algorithm 1, and Table 1 summarizes the capabilities of our model compared to other recent generative modeling approaches.
|
| 115 |
+
|
| 116 |
+
Assuming the cost of evaluating $f$ is on the order of $\mathcal { O } ( D H )$ where $D$ is the dimensionality of the data and $H$ is the size of the largest hidden layer in $f$ , then the cost of computing the likelihood in models with repeated use of invertible transformations (1) is $\mathcal { O } ( ( D H + \bar { D ^ { 3 } } ) L )$ where $L$ is the number of transformations used. For CNF, this reduces to ${ \mathcal O } ( ( D H + D ^ { 2 } ) \hat { L } )$ for CNFs, where $\hat { L }$ is the number of evaluations of $f$ used by the ODE solver. With FFJORD, this reduces further to $\mathcal { O } ( ( D H + D ) \hat { L } )$ .
|
| 117 |
+
|
| 118 |
+
<table><tr><td colspan="2">Algorithm1 Unbiased stochastic log-density estimation using the FFJORD model Require: dynamics fe,start time to,stop time t1,data samples x,data dimension D.</td></tr><tr><td>∈ ← sample_unit_variance(x.shape) function faug([zt, log pt],t):</td><td>> Sample E outside of the integral >Augment f with log-density dynamics.</td></tr><tr><td>ft←fo(z(t),t) Taf</td><td>Evaluate neural network</td></tr><tr><td>g←εT zlz(t)</td><td> Compute vector-Jacobian product with automatic differentiation</td></tr><tr><td>Tr= ge return [ft,-Tr]</td><td> Unbiased estimateof Tr() with eTOfe</td></tr><tr><td>end function [zo,△logp] ←odeint(faug,[x,0],to,t1)</td><td>> Concatenate dynamics of state and log-density Solve theODE St fug([z(t),lgp(z(t)),t)t</td></tr></table>
|
| 119 |
+
|
| 120 |
+
# 4 EXPERIMENTS
|
| 121 |
+
|
| 122 |
+
We demonstrate FFJORD on a variety of density estimation tasks, and for approximate inference in variational autoencoders (Kingma & Welling, 2014). Experiments were conducted using a suite of GPU-based ODE-solvers and an implementation of the adjoint method for backpropagation1. In all experiments the RungeKutta 4(5) algorithm with the tableau from Shampine (1986) was used to solve the ODEs. We ensure tolerance is set low enough so numerical error is negligible; see Appendix C.
|
| 123 |
+
|
| 124 |
+
We used Hutchinson’s trace estimator (7) during training and the exact trace when reporting test results. This was done in all experiments except for our density estimation models trained on MNIST and CIFAR10 where computing the exact Jacobian trace was too expensive.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 2: Comparison of trained Glow, planar CNF, and FFJORD models on 2-dimensional distributions, including multi-modal and discontinuous densities.
|
| 128 |
+
|
| 129 |
+
The dynamics of FFJORD are defined by a neural network $f$ which takes as input the current state $\mathbf { z } ( t ) \in \mathbb { R } ^ { D }$ and the current time $t \in \mathbb { R }$ . We experimented with several ways to incorporate $t$ as an input to $f$ , such as hyper-networks, but found that simply concatenating $t$ on to ${ \bf z } ( t )$ at the input to every layer worked well and was used in all of our experiments.
|
| 130 |
+
|
| 131 |
+
# 4.1 DENSITY ESTIMATION ON TOY 2D DATA
|
| 132 |
+
|
| 133 |
+
We first train on 2 dimensional data to visualize the model and the learned dynamics.2 In Figure 2, we show that by warping a simple isotropic Gaussian, FFJORD can fit both multi-modal and even discontinuous distributions. The number of evaluations of the ODE solver is roughly 70-100 on all datasets, so we compare against a Glow model with 100 discrete layers.
|
| 134 |
+
|
| 135 |
+
The learned distributions of both FFJORD and Glow can be seen in Figure 2. Interestingly, we find that Glow learns to stretch the unimodal base distribution into multiple modes but has trouble modeling the areas of low probability between disconnected regions. In contrast, FFJORD is capable of modeling disconnected modes and can also learn convincing approximations of discontinuous density functions (middle row in Figure 2). Since the main benefit of FFJORD is the ability to train with deeper dynamics networks, we also compare against planar CNF (Chen et al., 2018) which can
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 3: Samples and data from our image models. MNIST on left, CIFAR10 on right.
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td>POWER</td><td>GAS</td><td>HEPMASS</td><td>MINIBOONE</td><td>BSDS300</td><td>MNIST</td><td>CIFAR10</td></tr><tr><td>Real NVP</td><td>-0.17</td><td>-8.33</td><td>18.71</td><td>13.55</td><td>-153.28</td><td>1.06*</td><td>3.49*</td></tr><tr><td>Glow</td><td>-0.17</td><td>-8.15</td><td>18.92</td><td>11.35</td><td>-155.07</td><td>1.05*</td><td>3.35*</td></tr><tr><td>FFJORD</td><td>-0.46</td><td>-8.59</td><td>14.92</td><td>10.43</td><td>-157.40</td><td>0.99* (1.05†)</td><td>3.40*</td></tr><tr><td>MADE</td><td>3.08</td><td>-3.56</td><td>20.98</td><td>15.59</td><td>-148.85</td><td>2.04</td><td>5.67</td></tr><tr><td>MAF</td><td>-0.24</td><td>-10.08</td><td>17.70</td><td>11.75</td><td>-155.69</td><td>1.89</td><td>4.31</td></tr><tr><td>TAN</td><td>-0.48</td><td>-11.19</td><td>15.12</td><td>11.01</td><td>-157.03</td><td>-</td><td>-</td></tr><tr><td>MAF-DDSF</td><td>-0.62</td><td>-11.96</td><td>15.09</td><td>8.86</td><td>-157.73</td><td>-</td><td>-</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 2: Negative log-likehood on test data for density estimation models; lower is better. In nats for tabular data and bits/dim for MNIST and CIFAR10. \*Results use multi-scale convolutional architectures. †Results use a single flow with a convolutional encoder-decoder architecture.
|
| 143 |
+
|
| 144 |
+
be viewed as a single hidden layer network. Without the benefit of a flexible network, planar CNF is unable to model complex distributions.
|
| 145 |
+
|
| 146 |
+
# 4.2 DENSITY ESTIMATION ON REAL DATA
|
| 147 |
+
|
| 148 |
+
We perform density estimation on five tabular datasets preprocessed as in Papamakarios et al. (2017) and two image datasets; MNIST and CIFAR10. When reproducing Glow, we use the same configurations for Real NVP as Papamakarios et al. (2017) and add invertible fully connected layer between all coupling layers. On the tabular datasets, FFJORD performs the best out of reversible models by a wide margin but is outperformed by recent autoregressive models. Of those, FFJORD outperforms MAF (Papamakarios et al., 2017) on all but one dataset and manages to outperform TAN Oliva et al. (2018) on the MINIBOONE dataset. These models require $\mathcal { O } ( D )$ sequential computations to sample from while the best performing method, MAF-DDSF (Huang et al., 2018), cannot be sampled from without resorting to correlated or expensive sampling algorithms such as MCMC.
|
| 149 |
+
|
| 150 |
+
On MNIST we find that FFJORD can model the data as effectively as Glow and Real NVP using only a single flow defined by a single neural network. This is in contrast to Glow and Real NVP which must compose many flows to achieve similar performance. When we use multiple flows in a multiscale architecture (like those used by Glow and Real NVP) we obtain better performance on MNIST and comparable performance to Glow on CIFAR10. Notably, FFJORD is able to achieve this performance while using less than $2 \%$ as many parameters as Glow. We also note that Glow uses a learned base distribution whereas FFJORD and Real NVP use a fixed Gaussian. A summary of our results on density estimation can be found in Table 2 and samples can be seen in Figure 3. Full details on architectures used, our experimental procedure, and additional samples can be found in Appendix B.1.
|
| 151 |
+
|
| 152 |
+
In general, our approach is slower than competing methods, but we find the memory-efficiency of the adjoint method allows us to use much larger batch sizes than those methods. On the tabular datasets we used a batch sizes up to 10,000 and on the image datasets we used a batch size of 900.
|
| 153 |
+
|
| 154 |
+
# 4.3 VARIATIONAL AUTOENCODER
|
| 155 |
+
|
| 156 |
+
We compare FFJORD to other normalizing flows for use in variational inference. We train a VAE (Kingma & Welling, 2014) on four datasets using a FFJORD flow and compare to VAEs with no flow, Planar Flows (Rezende & Mohamed, 2015), Inverse Autoregressive Flow (IAF) (Kingma
|
| 157 |
+
|
| 158 |
+
<table><tr><td></td><td>MNIST</td><td>Omniglot</td><td>Frey Faces</td><td>Caltech Silhouettes</td></tr><tr><td>No Flow</td><td>86.55 ± .06</td><td>104.28 ± .39</td><td>4.53 ± .02</td><td>110.80 ± .46</td></tr><tr><td>Planar IAF</td><td>86.06 ± .31 84.20 ± .17</td><td>102.65 ± .42</td><td>4.40 ± .06</td><td>109.66 ± .42 111.58 ± .38</td></tr><tr><td></td><td></td><td>102.41 ± .04</td><td>4.47 ± .05</td><td></td></tr><tr><td>Sylvester</td><td>83.32 ± .06</td><td>99.00 ± .04</td><td>4.45 ± .04</td><td>104.62 ± .29</td></tr><tr><td>FFJORD</td><td>82.82 ± .01</td><td>98.33 ± .09</td><td>4.39 ± .01</td><td>104.03 ± .43</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Table 3: Negative ELBO on test data for VAE models; lower is better. In nats for all datasets except Frey Faces which is presented in bits per dimension. Mean/stdev are estimated over 3 runs.
|
| 161 |
+
|
| 162 |
+
et al., 2016), and Sylvester normalizing flows (Berg et al., 2018). To provide a fair comparison, our encoder/decoder architectures and learning setup exactly mirror those of Berg et al. (2018).
|
| 163 |
+
|
| 164 |
+
In VAEs it is common for the encoder network to also output the parameters of the flow as a function of the input $\mathbf { x }$ . With FFJORD, we found this led to differential equations which were too difficult to integrate numerically. Instead, the encoder network outputs a low-rank update to a global weight matrix and an input-dependent bias vector. When used in recognition nets, neural network layers defining the dynamics inside FFJORD take the form
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
\mathrm { l a y e r } ( h ; \mathbf { x } , W , b ) = \sigma \left( \left( \underbrace { W } _ { D _ { o u t } \times D _ { i n } } + \underbrace { \hat { U } ( \mathbf { x } ) } _ { D _ { o u t } \times k } \underbrace { \hat { V } ( \mathbf { x } ) } _ { D _ { i n } \times k } ^ { T } \right) h + \underbrace { b } _ { D _ { o u t } \times 1 } + \underbrace { \hat { b } ( \mathbf { x } ) } _ { D _ { o u t } \times 1 } \right)
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
where $h$ is the input to the layer, $\sigma$ is an element-wise activation function, $D _ { i n }$ and $D _ { o u t }$ are the input and output dimension of this layer, and ${ \hat { U } } ( \mathbf { x } ) , { \hat { V } } ( \mathbf { x } ) , { \hat { b } } ( \mathbf { x } )$ are input-dependent parameters returned from an encoder network. A full description of the model architectures used and our experimental setup can be found in Appendix B.2.
|
| 171 |
+
|
| 172 |
+
On every dataset tested, FFJORD outperforms all other competing normalizing flows. A summary of our variational inference results can be found in Table 3.
|
| 173 |
+
|
| 174 |
+
# 5 ANALYSIS AND DISCUSSION
|
| 175 |
+
|
| 176 |
+
We performed a series of ablation experiments to gain a better understanding of the proposed model.
|
| 177 |
+
|
| 178 |
+
# 5.1 FASTER TRAINING WITH BOTTLENECK TRICK
|
| 179 |
+
|
| 180 |
+
We plotted the training losses on MNIST using an encoder-decoder architecture (see Appendix B.1 for details). Loss during training is plotted in Figure 4, where we use the trace estimator directly on the $D \times D$ Jacobian, or we use the bottleneck trick to reduce the dimension to $H \times H$ . Interestingly, we find that while the bottleneck trick (9) can lead to faster convergence when the trace is estimated using a Gaussian-distributed $\epsilon$ , we did not observe faster convergence when using a Rademacherdistributed $\epsilon$ .
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 4: The variance of our model’s log-density estimator can be reduced using neural network architectures with a bottleneck layer, speeding up training.
|
| 184 |
+
|
| 185 |
+
# 5.2 NUMBER OF FUNCTION EVALUATIONS VS. DATA DIMENSION
|
| 186 |
+
|
| 187 |
+
The full computational cost of integrating the instantaneous change of variables (2) is $\mathcal { O } ( D H \widehat { L } )$ where $D$ is dimensionality of the data, $H$ is the size of the hidden state, and $\widehat { L }$ is the number of function evaluations (NFE) that the adaptive solver uses to integrate the ODE. In general, each evaluation of the model is $\mathcal { O } ( D H )$ and in practice, $H$ is typically chosen to be close to $D$ . Since the general form of the discrete change of variables equation (1) requires $\mathcal { O } ( D ^ { 3 } )$ -cost, one may wonder whether the number of evaluations $\widehat { L }$ depends on $D$ .
|
| 188 |
+
|
| 189 |
+
We train VAEs using FFJORD flows with increasing latent dimension $D$ . The NFE throughout training is shown in Figure 5. In all models, we find that the NFE increases throughout training, but converges to the same value, independent of $D$ . We conjecture that the number of evaluations is not dependent on the dimensionality of the data but the complexity of its distribution, or more specifically, how difficult it is to transform its density into the base distribution.
|
| 190 |
+
|
| 191 |
+
# 5.3 SINGLE-SCALE VS. MULTI-SCALE FFJORD
|
| 192 |
+
|
| 193 |
+
Crucial to the scalability of Real NVP and Glow is the multiscale architecture originally proposed in Dinh et al. (2017). We compare a single-scale encoder-decoder style FFJORD with a multiscale FFJORD on the MNIST dataset where both models have a comparable number of parameters and plot the total NFE–in both forward and backward passes–against the loss achieved in Figure 6. We find that while the single-scale model uses approximately one half as many function evaluations as the multiscale model, it is not able to achieve the same performance as the multiscale model.
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
Figure 5: NFE used by the adaptive ODE solver is approximately independent of data-dimension. Lines are smoothed using a Gaussian filter.
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 6: For image data, a single FFJORD flow can achieve near performance to multi-scale architecture while using half the number of evaluations.
|
| 200 |
+
|
| 201 |
+
# 6 SCOPE AND LIMITATIONS
|
| 202 |
+
|
| 203 |
+
Number of function evaluations can be prohibitive. The number of function evaluations required to integrate the dynamics is not fixed ahead of time, and is a function of the data, model architecture, and model parameters. This number tends to grow as the models trains and can become prohibitively large, even when memory stays constant due to the adjoint method. Various forms of regularization such as weight decay and spectral normalization (Miyato et al., 2018) can be used to reduce the this quantity, but their use tends to hurt performance slightly.
|
| 204 |
+
|
| 205 |
+
Limitations of general-purpose ODE solvers. In theory, our model can approximate any differential equation (given mild assumptions based on existence and uniqueness of the solution), but in practice our reliance on general-purpose ODE solvers restricts us to non-stiff differential equations that can be efficiently solved. ODE solvers for stiff dynamics exist, but they evaluate $f$ many more times to achieve the same error. We find that a small amount of weight decay regularizes the ODE to be sufficiently non-stiff.
|
| 206 |
+
|
| 207 |
+
# 7 CONCLUSION
|
| 208 |
+
|
| 209 |
+
We have presented FFJORD, a reversible generative model for high-dimensional data which can compute exact log-likelihoods and can be sampled from efficiently. Our model uses continuoustime dynamics to produce a generative model which is parameterized by an unrestricted neural network. All required quantities for training and sampling can be computed using automatic differentiation, Hutchinson’s trace estimator, and black-box ODE solvers. Our model stands in contrast to other methods with similar properties which rely on restricted, hand-engineered neural network architectures. We demonstrated that this additional flexibility allows our approach to achieve on-par or improved performance on density estimation and variational inference.
|
| 210 |
+
|
| 211 |
+
We believe there is much room for further work exploring and improving this method. FFJORD is empirically slower to evaluate than other reversible models like Real NVP or Glow, so we are interested specifically in ways to reduce the number of function evaluations used by the ODE-solver without hurting predictive performance. Advancements like these will be crucial in scaling this method to even higher-dimensional datasets.
|
| 212 |
+
|
| 213 |
+
# 8 ACKNOWLEDGEMENTS
|
| 214 |
+
|
| 215 |
+
We thank Yulia Rubanova and Roger Grosse for helpful discussions.
|
| 216 |
+
|
| 217 |
+
# REFERENCES
|
| 218 |
+
|
| 219 |
+
R. P. Adams, J. Pennington, M. J. Johnson, J. Smith, Y. Ovadia, B. Patton, and J. Saunderson. Estimating the Spectral Density of Large Implicit Matrices. ArXiv e-prints, February 2018.
|
| 220 |
+
|
| 221 |
+
Joel Andersson. A general-purpose software framework for dynamic optimization. PhD thesis, 2013.
|
| 222 |
+
|
| 223 |
+
Rianne van den Berg, Leonard Hasenclever, Jakub M Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. arXiv preprint arXiv:1803.05649, 2018.
|
| 224 |
+
|
| 225 |
+
Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. Advances in Neural Information Processing Systems, 2018.
|
| 226 |
+
|
| 227 |
+
Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. International Conference on Learning Representations Workshop, 2014.
|
| 228 |
+
|
| 229 |
+
Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using Real NVP. International Conference on Learning Representations, 2017.
|
| 230 |
+
|
| 231 |
+
Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In International Conference on Machine Learning, pp. 881–889, 2015.
|
| 232 |
+
|
| 233 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 234 |
+
|
| 235 |
+
Andreas Griewank and Andrea Walther. Evaluating derivatives: principles and techniques of algorithmic differentiation, volume 105. Siam, 2008.
|
| 236 |
+
|
| 237 |
+
Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron Courville. Neural autoregressive flows. International Conference on Machine Learning, 2018.
|
| 238 |
+
|
| 239 |
+
M.F. Hutchinson. A stochastic estimator of the trace of the influence matrix for laplacian smoothing splines. 18:1059–1076, 01 1989.
|
| 240 |
+
|
| 241 |
+
H.K. Khalil. Nonlinear Systems. Pearson Education. Prentice Hall, 2002.
|
| 242 |
+
|
| 243 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 2015.
|
| 244 |
+
|
| 245 |
+
Diederik P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. Advances in Neural Information Processing Systems, 2018.
|
| 246 |
+
|
| 247 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. International Conference on Learning Representations, 2014.
|
| 248 |
+
|
| 249 |
+
Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, pp. 4743–4751, 2016.
|
| 250 |
+
|
| 251 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. International Conference on Learning Representations, 2018.
|
| 252 |
+
|
| 253 |
+
Junier B Oliva, Avinava Dubey, Barnabas P ´ oczos, Jeff Schneider, and Eric P Xing. Transformation ´ autoregressive networks. International Conference on Machine Learning, 2018.
|
| 254 |
+
|
| 255 |
+
Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. International Conference on Machine Learning, 2016.
|
| 256 |
+
|
| 257 |
+
George Papamakarios, Iain Murray, and Theo Pavlakou. Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, pp. 2338–2347, 2017.
|
| 258 |
+
|
| 259 |
+
Lev Semenovich Pontryagin. Mathematical theory of optimal processes. Routledge, 1962.
|
| 260 |
+
|
| 261 |
+
Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. International Conference on Machine Learning, 2015.
|
| 262 |
+
|
| 263 |
+
David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Nature, 323(6088):533, 1986.
|
| 264 |
+
|
| 265 |
+
Lawrence F Shampine. Some practical Runge-Kutta formulas. Mathematics of Computation, 46 (173):135–150, 1986.
|
| 266 |
+
|
| 267 |
+
# APPENDIX A QUALITATIVE SAMPLES
|
| 268 |
+
|
| 269 |
+
Samples from our FFJORD models trained on MNIST and CIFAR10 can be found in Figure 7.
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Figure 7: Samples and data from our image models. MNIST on left, CIFAR10 on right.
|
| 273 |
+
|
| 274 |
+
# APPENDIX B EXPERIMENTAL DETAILS AND ADDITIONAL RESULTS
|
| 275 |
+
|
| 276 |
+
# B.1 DENSITY ESTIMATION
|
| 277 |
+
|
| 278 |
+
On the tabular datasets we performed a grid-search over network architectures. We searched over models with 1, 2, 5, or 10 flows with 1, 2, 3, or 4 hidden layers per flow. Since each dataset has a different number of dimensions, we searched over hidden dimensions equal to 5, 10, or 20 times the data dimension (hidden dimension multiplier in Table 4). We tried both the tanh and softplus nonlinearities. The best performing models can be found in the Table 4.
|
| 279 |
+
|
| 280 |
+
On the image datasets we experimented with two different model architectures; a single flow with an encoder-decoder style architecture and a multiscale architecture composed of multiple flows.
|
| 281 |
+
|
| 282 |
+
While they were able to fit MNIST and obtain competitive performance, the encoder-decoder architectures were unable to fit more complicated image datasets such as CIFAR10 and Street View House Numbers. The architecture for MNIST which obtained the results in Table 2 was composed of four convolutional layers with $6 4 \to 6 4 \to 1 2 8 \to 1 2 8$ filters and down-sampling with strided convolutions by two every other layer. There are then four transpose-convolutional layers who’s filters mirror the first four layers and up-sample by two every other layer. The softplus activation function is used in every layer.
|
| 283 |
+
|
| 284 |
+
The multiscale architectures were inspired by those presented in Dinh et al. (2017). We compose multiple flows together interspersed with “squeeze” operations which down-sample the spatial resolution of the images and increase the number of channels. These operations are stacked into a “scale block” which contains $N$ flows, a squeeze, then $N$ flows. For MNIST we use 3 scale blocks and for CIFAR10 we use 4 scale blocks and let $N = 2$ for both datasets. Each flow is defined by 3 convolutional layers with 64 filters and a kernel size of 3. The softplus nonlinearity is used in all layers.
|
| 285 |
+
|
| 286 |
+
Both models were trained with the Adam optimizer (Kingma & Ba, 2015). We trained for 500 epochs with a learning rate of .001 which was decayed to .0001 after 250 epochs. Training took place on six GPUs and completed after approximately five days.
|
| 287 |
+
|
| 288 |
+
# B.2 VARIATIONAL AUTOENCODER
|
| 289 |
+
|
| 290 |
+
Our experimental procedure exactly mirrors that of Berg et al. (2018). We use the same 7-layer encoder and decoder, learning rate (.001), optimizer (Adam Kingma & Ba (2015)), batch size (100), and early stopping procedure (stop after 100 epochs of no validaiton improvment). The only difference was in the nomralizing flow used in the approximate posterior.
|
| 291 |
+
|
| 292 |
+
We performed a grid-search over neural network architectures for the dynamics of FFJORD. We searched over networks with 1 and 2 hidden layers and hidden dimension 512, 1024, and 2048. We used flows with 1, 2, or 5 steps and wight matrix updates of rank 1, 20, and 64. We use the softplus activation function for all datasets except for Caltech Silhouettes where we used tanh. The best performing models can be found in the Table 5. Models were trained on a single GPU and training took between four hours and three days depending on the dataset.
|
| 293 |
+
|
| 294 |
+
<table><tr><td>Dataset</td><td>nonlinearity</td><td>#layers</td><td>hidden dim multiplier</td><td># flow steps</td><td>batchsize</td></tr><tr><td>POWER</td><td>tanh</td><td>3</td><td>10</td><td>5</td><td>10000</td></tr><tr><td>GAS</td><td>tanh</td><td>3</td><td>20</td><td>5</td><td>1000</td></tr><tr><td>HEPMASS</td><td>softplus</td><td>2</td><td>10</td><td>10</td><td>10000</td></tr><tr><td>MINIBOONE</td><td>softplus</td><td>2</td><td>20</td><td>1</td><td>1000</td></tr><tr><td>BSDS300</td><td> softplus</td><td>3</td><td>20</td><td>2</td><td>10000</td></tr></table>
|
| 295 |
+
|
| 296 |
+
Table 4: Best performing model architectures for density estimation on tabular data with FFJORD.
|
| 297 |
+
|
| 298 |
+
Table 5: Best performing model architectures for VAEs with FFJORD.
|
| 299 |
+
|
| 300 |
+
<table><tr><td>Dataset</td><td>nonlinearity</td><td># layers</td><td>hidden dimension</td><td>#flow steps</td><td>rank</td></tr><tr><td>MNIST</td><td>softplus</td><td>2</td><td>1024</td><td>2</td><td>64</td></tr><tr><td>Omniglot</td><td>softplus</td><td>2</td><td>512</td><td>5</td><td>20</td></tr><tr><td>Frey Faces</td><td>softplus</td><td>2</td><td>512</td><td>2</td><td>20</td></tr><tr><td>Caltech</td><td>tanh</td><td>1</td><td>2048</td><td>1</td><td>20</td></tr></table>
|
| 301 |
+
|
| 302 |
+
B.3 STANDARD DEVIATIONS FOR TABULAR DENSITY ESTIMATION
|
| 303 |
+
|
| 304 |
+
<table><tr><td></td><td>POWER</td><td>GAS</td><td>HEPMASS</td><td>MINIBOONE</td><td>BSDS300</td></tr><tr><td>Real NVP</td><td>-0.17 ± 0.01</td><td>-8.33 ± 0.14</td><td>18.71 ± 0.02</td><td>13.55 ± 0.49</td><td>-153.28 ± 1.78</td></tr><tr><td>Glow</td><td>-0.17 ± 0.01</td><td>-8.15 ± 0.40</td><td>18.92 ± 0.08</td><td>11.35 ± 0.07</td><td>-155.07 ± 0.03</td></tr><tr><td>FFJORD</td><td>-0.46 ± 0.01</td><td>-8.59 ±0.12</td><td>14.92 ± 0.08</td><td>10.43 ± 0.04</td><td>-157.40 ± 0.19</td></tr><tr><td>MADE</td><td>3.08 ± 0.03</td><td>-3.56 ± 0.04</td><td>20.98 ± 0.02</td><td>15.59 ± 0.50</td><td>-148.85 ± 0.28</td></tr><tr><td>MAF</td><td>-0.24 ± 0.01</td><td>-10.08 ± 0.02</td><td>17.70 ± 0.02</td><td>11.75 ± 0.44</td><td>-155.69 ± 0.28</td></tr><tr><td>TAN</td><td>-0.48 ± 0.01</td><td>-11.19 ± 0.02</td><td>15.12 ± 0.02</td><td>11.01 ± 0.48</td><td>-157.03 ± 0.07</td></tr><tr><td>MAF-DDSF</td><td>-0.62 ± 0.01</td><td>-11.96 ± 0.33</td><td>15.09 ± 0.40</td><td>8.86 ± 0.15</td><td>-157.73 ± 0.04</td></tr></table>
|
| 305 |
+
|
| 306 |
+
Table 6: Negative log-likehood on test data for density estimation models. Means/stdev over 3 runs. Real NVP, MADE, MAF, TAN, and MAF-DDSF results on are taken from Huang et al. (2018). In reproducing Glow, we were able to get comparable results to the reported Real NVP by removing the invertible fully connected layers.
|
| 307 |
+
|
| 308 |
+
# APPENDIX C NUMERICAL ERROR FROM THE ODE SOLVER
|
| 309 |
+
|
| 310 |
+
ODE solvers are numerical integration methods so there is error inherent in their outputs. Adaptive solvers (like those used in all of our experiments) attempt to predict the errors that they accrue and modify their step-size to reduce their error below a user set tolerance. It is important to be aware of this error when we use these solvers for density estimation as the solver outputs the density that we report and compare with other methods. When tolerance is too low, we run into machine precision errors. Similarly when tolerance is too high, errors are large, our training objective becomes biased and we can run into divergent training dynamics.
|
| 311 |
+
|
| 312 |
+
Since a valid probability density function integrates to one, we take a model trained on Figure 1 and numerically find the area under the curve using Riemann sum and a very fine grid. We do this for a range of tolerance values and show the resulting error in Figure 8. We set both atol and rtol to the same tolerance.
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
Figure 8: Numerical integration shows that the density under the model does integrate to one given sufficiently low tolerance. Both log and non-log plots are shown.
|
| 316 |
+
|
| 317 |
+
The numerical error follows the same order as the tolerance, as expected. During training, we find that the error becomes non-negligible when using tolerance values higher than $\bar { 1 0 } ^ { - 5 }$ . For most of our experiments, we set tolerance to $1 0 ^ { - 5 }$ as that gives reasonable performance while requiring few number of evaluations. For the tabular experiments, we use atol $= 1 0 ^ { - 8 }$ and $\mathtt { r t o l } \mathtt { = } 1 0 ^ { - 6 }$ .
|
parse/train/rJxgknCcK7/rJxgknCcK7_content_list.json
ADDED
|
@@ -0,0 +1,1702 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FFJORD: FREE-FORM CONTINUOUS DYNAMICS FOR SCALABLE REVERSIBLE GENERATIVE MODELS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Will Grathwohl∗†‡ , Ricky T. Q. Chen∗†, Jesse Bettencourt†, Ilya Sutskever‡ , David Duvenaud† ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
179,
|
| 19 |
+
169,
|
| 20 |
+
826,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
220,
|
| 32 |
+
544,
|
| 33 |
+
236
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Reversible generative models map points from a simple distribution to a complex distribution through an easily invertible neural network. Likelihood-based training of these models requires restricting their architectures to allow cheap computation of Jacobian determinants. Alternatively, the Jacobian trace can be used if the transformation is specified by an ordinary differential equation. In this paper, we use Hutchinson’s trace estimator to give a scalable unbiased estimate of the logdensity. The result is a continuous-time invertible generative model with unbiased density estimation and one-pass sampling, while allowing unrestricted neural network architectures. We demonstrate our approach on high-dimensional density estimation, image generation, and variational inference, improving the state-ofthe-art among exact likelihood methods with efficient sampling. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
262,
|
| 43 |
+
764,
|
| 44 |
+
415
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
464,
|
| 55 |
+
336,
|
| 56 |
+
479
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Reversible generative models use cheaply invertible neural networks to transform samples from a fixed base distribution. Examples include NICE (Dinh et al., 2014), Real NVP (Dinh et al., 2017), and Glow (Kingma & Dhariwal, 2018). These models are easy to sample from, and can be trained by maximum likelihood using the change of variables formula. However, this requires placing awkward restrictions on their architectures, such as partitioning dimensions or using rank one weight matrices, in order to avoid an $\\mathcal { O } ( D ^ { 3 } )$ cost determinant computation. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
503,
|
| 66 |
+
549,
|
| 67 |
+
642
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, Chen et al. (2018) introduced continuous normalizing flows (CNF), defining the mapping from latent variables to data using ordinary differential equations (ODE). In their model, the likelihood can be computed using trace operations costing only $\\mathcal { O } ( D ^ { 2 } )$ . This allows a more flexible, but still restricted, family of network architectures to be used. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
650,
|
| 77 |
+
547,
|
| 78 |
+
746
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Extending this work, we introduce an unbiased stochastic estimator of the likelihood that has $\\mathcal { O } ( D )$ time cost, allowing completely unrestricted architectures. Furthermore, we have implemented GPU-based adaptive ODE solvers to train and evaluate these models on modern hardware. We call our approach Free-form Jacobian of ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
755,
|
| 88 |
+
549,
|
| 89 |
+
838
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/a3ee11ba6739d7a93b9f3874d4b4484510a3bd876d2128620a72649eb1edf2e9.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: FFJORD transforms a simple base distribution at $t _ { 0 }$ into the target distribution at $t _ { 1 }$ by integrating over learned continuous dynamics. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
560,
|
| 102 |
+
513,
|
| 103 |
+
820,
|
| 104 |
+
755
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Reversible Dynamics (FFJORD). Figure 1 shows FFJORD smoothly transforming a Gaussian distribution into a multi-modal distribution. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
838,
|
| 114 |
+
825,
|
| 115 |
+
866
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "2 BACKGROUND: GENERATIVE MODELS AND CHANGE OF VARIABLES ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
169,
|
| 125 |
+
102,
|
| 126 |
+
776,
|
| 127 |
+
118
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "In contrast to directly parameterizing a normalized distribution (e.g. Oord et al. (2016); Germain et al. (2015)), the change of variables formula allows one to specify a complex normalized distribution $p _ { \\mathbf { x } } ( \\mathbf { x } )$ implicitly by warping a normalized base distribution $p _ { \\mathbf { z } } ( \\mathbf { z } )$ through an invertible function $f : \\mathbb { R } ^ { D } \\overset { \\cdot } { } \\mathbb { R } ^ { D }$ . Given a random variable $\\mathbf { z } \\sim p _ { \\mathbf { z } } ( \\mathbf { z } )$ the log density of ${ \\bf x } = f ( { \\bf z } )$ follows ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
173,
|
| 136 |
+
132,
|
| 137 |
+
825,
|
| 138 |
+
189
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "equation",
|
| 144 |
+
"img_path": "images/cb46a9be2003733da0a7e00cb2df083a5cd6cd05898f1e5d16245321de36f59a.jpg",
|
| 145 |
+
"text": "$$\n\\log p _ { \\mathbf { x } } ( \\mathbf { x } ) = \\log p _ { \\mathbf { z } } ( \\mathbf { z } ) - \\log \\operatorname* { d e t } \\left| \\frac { \\partial f ( \\mathbf { z } ) } { \\partial \\mathbf { z } } \\right|\n$$",
|
| 146 |
+
"text_format": "latex",
|
| 147 |
+
"bbox": [
|
| 148 |
+
362,
|
| 149 |
+
190,
|
| 150 |
+
637,
|
| 151 |
+
224
|
| 152 |
+
],
|
| 153 |
+
"page_idx": 1
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"type": "text",
|
| 157 |
+
"text": "where $\\partial f ( \\mathbf { z } ) / \\partial \\mathbf { z }$ is the Jacobian of $f$ . In general, computing the log determinant has a time cost of $\\mathcal { O } ( D ^ { 3 } )$ . Much work has gone into developing restricted neural network architectures which make computing the Jacobian’s determinant more tractable. These approaches broadly fall into three categories: ",
|
| 158 |
+
"bbox": [
|
| 159 |
+
174,
|
| 160 |
+
227,
|
| 161 |
+
825,
|
| 162 |
+
282
|
| 163 |
+
],
|
| 164 |
+
"page_idx": 1
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"type": "text",
|
| 168 |
+
"text": "Normalizing flows. By restricting the functional form of $f$ , various determinant identities can be exploited (Rezende & Mohamed, 2015; Berg et al., 2018). These models cannot be trained as generative models from data because they do not have a tractable inverse $f ^ { - 1 }$ . However, they are useful for specifying approximate posteriors for variational inference (Kingma & Welling, 2014). ",
|
| 169 |
+
"bbox": [
|
| 170 |
+
181,
|
| 171 |
+
291,
|
| 172 |
+
825,
|
| 173 |
+
348
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "Autoregressive transformations. By using an autoregressive model and specifying an ordering of the dimensions, the Jacobian of $f$ is enforced to be lower triangular (Kingma et al., 2016; Oliva et al., 2018). These models excel at density estimation for tabular datasets (Papamakarios et al., 2017), but require $D$ sequential evaluations of $f$ to invert, which is prohibitive when $D$ is large. ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
183,
|
| 182 |
+
351,
|
| 183 |
+
825,
|
| 184 |
+
407
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Partitioned transformations. Partitioning the dimensions and using affine transformations makes the determinant of the Jacobian cheap to compute, and the inverse $\\breve { f } ^ { - 1 }$ computable with the same cost as $f$ (Dinh et al., 2014; 2017). This method allows the use of convolutional architectures, excelling at density estimation for image data (Dinh et al., 2017; Kingma & Dhariwal, 2018). ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
181,
|
| 193 |
+
410,
|
| 194 |
+
825,
|
| 195 |
+
467
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Throughout this work, we refer to reversible generative models as those which use the change of variables to transform a base distribution to the model distribution while maintaining both efficient density estimation and efficient sampling capabilities using a single pass of the model. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
477,
|
| 205 |
+
823,
|
| 206 |
+
520
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "2.1 OTHER GENERATIVE MODELS ",
|
| 213 |
+
"text_level": 1,
|
| 214 |
+
"bbox": [
|
| 215 |
+
176,
|
| 216 |
+
535,
|
| 217 |
+
424,
|
| 218 |
+
549
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "There exist several approaches to generative modeling approaches which do not use the change of variables equation for training. Generative adversarial networks (GANs) (Goodfellow et al., 2014) use large, unrestricted neural networks to transform samples from a fixed base distribution. Lacking a closed-form likelihood, an auxiliary discriminator model must be trained to estimate divergences or density ratios in order to provide a training signal. Autoregressive models (Germain et al., 2015; Oord et al., 2016) directly specify the joint distribution $p ( \\mathbf { x } )$ as a sequence of explicit conditional distributions using the product rule. These models require at least $\\mathcal { O } ( D )$ evaluations to sample from. Variational autoencoders (VAEs) (Kingma & Welling, 2014) use an unrestricted architecture to explicitly specify the conditional likelihood $p ( x | z )$ , but can only efficiently provide a stochastic lower bound on the marginal likelihood $p ( x )$ . ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
173,
|
| 227 |
+
560,
|
| 228 |
+
825,
|
| 229 |
+
700
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "2.2 CONTINUOUS NORMALIZING FLOWS ",
|
| 236 |
+
"text_level": 1,
|
| 237 |
+
"bbox": [
|
| 238 |
+
176,
|
| 239 |
+
715,
|
| 240 |
+
470,
|
| 241 |
+
729
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Chen et al. (2018) define a generative model for data $\\mathbf { x } \\in \\mathbb { R } ^ { D }$ similar to those based on (1), but replace the warping function with an integral of continuous-time dynamics. The generative process first samples from a base distribution ${ \\bf z } _ { 0 } \\sim p _ { z _ { 0 } } ( { \\bf z } _ { 0 } )$ . Then, given an ODE whose dynamics are defined by the parametric function $\\partial \\mathbf { z } ( t ) / \\partial t = f ( \\mathbf { z } ( t ) , t ; \\theta )$ , we solve the initial value problem with $\\mathbf { z } ( t _ { 0 } ) = \\dot { \\mathbf { z } } _ { 0 }$ to obtain a data sample ${ \\mathbf x } = { \\mathbf z } ( t _ { 1 } )$ . These models are called Continous Normalizing Flows (CNF). The change in log-density under this model follows a second differential equation, called the instantaneous change of variables formula (Chen et al., 2018): ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
741,
|
| 251 |
+
825,
|
| 252 |
+
840
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "equation",
|
| 258 |
+
"img_path": "images/5848f3f861f37da5242e69251c7c16ad419da374ec336abf4fa7d998de9acba1.jpg",
|
| 259 |
+
"text": "$$\n\\frac { \\partial \\log p ( { \\bf z } ( t ) ) } { \\partial t } = - \\mathrm { T r } \\left( \\frac { \\partial f } { \\partial { \\bf z } ( t ) } \\right) .\n$$",
|
| 260 |
+
"text_format": "latex",
|
| 261 |
+
"bbox": [
|
| 262 |
+
390,
|
| 263 |
+
840,
|
| 264 |
+
609,
|
| 265 |
+
875
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "We can compute total change in log-density by integrating across time: ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
176,
|
| 274 |
+
876,
|
| 275 |
+
638,
|
| 276 |
+
891
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "equation",
|
| 282 |
+
"img_path": "images/d84a7717eebbd6134c421bea344835f1bc9a5e9840271c4c9cedb55a3bb6458a.jpg",
|
| 283 |
+
"text": "$$\n\\log p ( \\mathbf { z } ( t _ { 1 } ) ) = \\log p ( \\mathbf { z } ( t _ { 0 } ) ) - \\int _ { t _ { 0 } } ^ { t _ { 1 } } \\operatorname { T r } \\left( { \\frac { \\partial f } { \\partial \\mathbf { z } ( t ) } } \\right) d t .\n$$",
|
| 284 |
+
"text_format": "latex",
|
| 285 |
+
"bbox": [
|
| 286 |
+
326,
|
| 287 |
+
891,
|
| 288 |
+
673,
|
| 289 |
+
929
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "table",
|
| 295 |
+
"img_path": "images/1cf781c68cf80067d0a2434a4b4ad54ded98de4747c4834fd9e47f1a23e2ff8c.jpg",
|
| 296 |
+
"table_caption": [],
|
| 297 |
+
"table_footnote": [],
|
| 298 |
+
"table_body": "<table><tr><td colspan=\"2\">Method</td><td rowspan=\"2\">Train on data</td><td rowspan=\"2\">One-pass Sampling</td><td rowspan=\"2\">Exact/Unbiased Log- likelihood</td><td rowspan=\"2\">Free- form Jacobian</td></tr><tr><td colspan=\"2\"></td></tr><tr><td rowspan=\"4\"></td><td>Variational Autoencoders</td><td></td><td></td><td>X</td><td>√</td></tr><tr><td>Generative Adversarial Nets</td><td></td><td>√</td><td>×</td><td>√</td></tr><tr><td>Likelihood-based Autoregressive</td><td></td><td>×</td><td>√</td><td>×</td></tr><tr><td>Normalizing Flows</td><td>X</td><td>√</td><td></td><td>X</td></tr><tr><td rowspan=\"3\">o auegg 2aaiber</td><td>Reverse-NF,MAF, TAN</td><td></td><td>X</td><td></td><td>X</td></tr><tr><td>NICE,Real NVP, Glow, Planar CNF</td><td></td><td>√</td><td></td><td>X</td></tr><tr><td>FFJORD</td><td></td><td>「</td><td></td><td></td></tr></table>",
|
| 299 |
+
"bbox": [
|
| 300 |
+
173,
|
| 301 |
+
99,
|
| 302 |
+
823,
|
| 303 |
+
289
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Given a datapoint x, we can compute both the point $\\mathbf { z } _ { 0 }$ which generates $\\mathbf { x }$ , as well as $\\log p ( \\mathbf { x } )$ under the model by solving the combined initial value problem: ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
173,
|
| 312 |
+
335,
|
| 313 |
+
823,
|
| 314 |
+
363
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "which integrates the combined dynamics of $z ( t )$ and the log-density of the sample backwards in time from $t _ { 1 }$ to $t _ { 0 }$ . We can then compute $\\log p ( \\mathbf { x } )$ using the solution of (4) and adding $\\log p _ { z _ { 0 } } ( { \\bf z } _ { 0 } )$ . The existence and uniqueness of (4) require that $f$ and its first derivatives be Lipschitz continuous (Khalil, 2002), which can be satisfied in practice using neural networks with smooth Lipschitz activations, such as softplus or tanh. ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
444,
|
| 324 |
+
825,
|
| 325 |
+
515
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "2.2.1 BACKPROPAGATING THROUGH ODE SOLUTIONS WITH THE ADJOINT METHOD ",
|
| 332 |
+
"text_level": 1,
|
| 333 |
+
"bbox": [
|
| 334 |
+
173,
|
| 335 |
+
529,
|
| 336 |
+
772,
|
| 337 |
+
544
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "CNFs are trained to maximize (3). This objective involves the solution to an initial value problem with dynamics parameterized by $\\theta$ . For any scalar loss function which operates on the solution to an initial value problem ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
176,
|
| 346 |
+
553,
|
| 347 |
+
821,
|
| 348 |
+
595
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "equation",
|
| 354 |
+
"img_path": "images/142e659d51d33580aeb22cd663fd59c402ec0087f798290cb30d3be7d1314f97.jpg",
|
| 355 |
+
"text": "$$\nL ( \\mathbf { z } ( t _ { 1 } ) ) = L \\left( \\int _ { t _ { 0 } } ^ { t _ { 1 } } f ( \\mathbf { z } ( t ) , t ; \\theta ) d t \\right)\n$$",
|
| 356 |
+
"text_format": "latex",
|
| 357 |
+
"bbox": [
|
| 358 |
+
375,
|
| 359 |
+
597,
|
| 360 |
+
620,
|
| 361 |
+
633
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "then Pontryagin (1962) shows that its derivative takes the form of another initial value problem ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
171,
|
| 370 |
+
636,
|
| 371 |
+
792,
|
| 372 |
+
650
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "equation",
|
| 378 |
+
"img_path": "images/6a8edb91704d25bb78453d4b2c448749666f93f4ada6c5b901af1dc9f2e9267a.jpg",
|
| 379 |
+
"text": "$$\n\\frac { d L } { d \\theta } = - \\int _ { t _ { 1 } } ^ { t _ { 0 } } \\left( \\frac { \\partial L } { \\partial \\mathbf { z } ( t ) } \\right) ^ { T } \\frac { \\partial f ( \\mathbf { z } ( t ) , t ; \\theta ) } { \\partial \\theta } d t .\n$$",
|
| 380 |
+
"text_format": "latex",
|
| 381 |
+
"bbox": [
|
| 382 |
+
357,
|
| 383 |
+
651,
|
| 384 |
+
640,
|
| 385 |
+
690
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 2
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "The quantity $- { \\partial L } / { \\partial { \\bf z } ( t ) }$ is known as the adjoint state of the ODE. Chen et al. (2018) use a black-box ODE solver to compute ${ \\bf z } ( t _ { 1 } )$ , and then a separate call to a solver to compute (6) with the initial value ${ \\partial L } / { \\partial { \\bf z } ( t _ { 1 } ) }$ . This approach is a continuous-time analog to the backpropgation algorithm (Rumelhart et al., 1986; Andersson, 2013) and can be combined with gradient-based optimization to fit the parameters $\\theta$ by maximum likelihood. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
173,
|
| 394 |
+
691,
|
| 395 |
+
825,
|
| 396 |
+
762
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "3 SCALABLE DENSITY EVALUATION WITH UNRESTRICTED ARCHITECTURES ",
|
| 403 |
+
"text_level": 1,
|
| 404 |
+
"bbox": [
|
| 405 |
+
174,
|
| 406 |
+
782,
|
| 407 |
+
815,
|
| 408 |
+
797
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 2
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "Switching from discrete-time dynamics to continuous-time dynamics reduces the primary computational bottleneck of normalizing flows from $\\mathcal { O } ( D ^ { 3 } )$ to $\\mathcal { O } ( D ^ { 2 } )$ , at the cost of introducing a numerical ODE solver. This allows the use of more expressive architectures. For example, each layer of the original normalizing flows model of Rezende & Mohamed (2015) is a one-layer neural network with only a single hidden unit. In contrast, the instantaneous transformation used in planar continuous normalizing flows (Chen et al., 2018) is a one-layer neural network with many hidden units. In this section, we construct an unbiased estimate of the log-density with $\\mathcal { O } ( D )$ cost, allowing completely unrestricted neural network architectures to be used. ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
173,
|
| 417 |
+
811,
|
| 418 |
+
825,
|
| 419 |
+
924
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 2
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "3.1 UNBIASED LINEAR-TIME LOG-DENSITY ESTIMATION ",
|
| 426 |
+
"text_level": 1,
|
| 427 |
+
"bbox": [
|
| 428 |
+
173,
|
| 429 |
+
103,
|
| 430 |
+
588,
|
| 431 |
+
118
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "In general, computing $\\operatorname { T r } \\left( { \\partial f } / { \\partial \\mathbf { z } ( t ) } \\right)$ exactly costs $\\mathcal { O } ( D ^ { 2 } )$ , or approximately the same cost as $D$ evaluations of $f$ , since each entry of the diagonal of the Jacobian requires computing a separate derivative of $f$ (Griewank & Walther, 2008). However, there are two tricks that can help. First, vector-Jacobian products ${ \\pmb v } ^ { T } \\frac { \\partial f } { \\partial { \\bf z } }$ can be computed for approximately the same cost as evaluating $f$ using reverse-mode automatic differentiation. Second, we can get an unbiased estimate of the trace of a matrix by taking a double product of that matrix with a noise vector: ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
173,
|
| 440 |
+
128,
|
| 441 |
+
825,
|
| 442 |
+
215
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "equation",
|
| 448 |
+
"img_path": "images/cbfd424e90b2ddcd418be555e45c02a402a00d2550d9ad9a3f8d3cab825d4873.jpg",
|
| 449 |
+
"text": "$$\n\\operatorname { T r } ( A ) = \\mathbb { E } _ { p ( \\epsilon ) } [ \\epsilon ^ { T } A \\epsilon ] .\n$$",
|
| 450 |
+
"text_format": "latex",
|
| 451 |
+
"bbox": [
|
| 452 |
+
421,
|
| 453 |
+
223,
|
| 454 |
+
576,
|
| 455 |
+
243
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "The above equation holds for any $D$ -by- $D$ matrix $A$ and distribution $p ( \\epsilon )$ over $D$ -dimensional vectors such that $\\mathbb { E } [ \\boldsymbol { \\epsilon } ] = 0$ and $\\mathrm { C o v } ( \\epsilon ) = I$ . The Monte Carlo estimator derived from (7) is known as Hutchinson’s trace estimator (Hutchinson, 1989; Adams et al., 2018). ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
251,
|
| 465 |
+
825,
|
| 466 |
+
294
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "To keep the dynamics deterministic within each call to the ODE solver, we can use a fixed noise vector $\\epsilon$ for the duration of each solve without introducing bias: ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
299,
|
| 476 |
+
823,
|
| 477 |
+
328
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"img_path": "images/54c0e4989ba82626d9ee7008dd9e24b3ca31ec1ac529d881f2c00d987681e85e.jpg",
|
| 484 |
+
"text": "$$\n\\begin{array} { r l } & { \\log p ( \\mathbf { z } ( t _ { 1 } ) ) = \\log p ( \\mathbf { z } ( t _ { 0 } ) ) - \\int _ { t _ { 0 } } ^ { t _ { 1 } } \\operatorname { T r } \\left( \\frac { \\partial f } { \\partial \\mathbf { z } ( t ) } \\right) d t } \\\\ & { \\qquad = \\log p ( \\mathbf { z } ( t _ { 0 } ) ) - \\int _ { t _ { 0 } } ^ { t _ { 1 } } \\mathbb { E } _ { p ( \\epsilon ) } \\left[ \\epsilon ^ { T } \\frac { \\partial f } { \\partial \\mathbf { z } ( t ) } \\epsilon \\right] d t } \\\\ & { \\qquad = \\log p ( \\mathbf { z } ( t _ { 0 } ) ) - \\mathbb { E } _ { p ( \\epsilon ) } \\left[ \\int _ { t _ { 0 } } ^ { t _ { 1 } } \\epsilon ^ { T } \\frac { \\partial f } { \\partial \\mathbf { z } ( t ) } \\epsilon d t \\right] } \\end{array}\n$$",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
310,
|
| 488 |
+
335,
|
| 489 |
+
686,
|
| 490 |
+
449
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Typical choices of $p ( \\epsilon )$ are a standard Gaussian or Rademacher distribution (Hutchinson, 1989). ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
168,
|
| 499 |
+
454,
|
| 500 |
+
805,
|
| 501 |
+
469
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "3.1.1 REDUCING VARIANCE WITH BOTTLENECK CAPACITY ",
|
| 508 |
+
"text_level": 1,
|
| 509 |
+
"bbox": [
|
| 510 |
+
174,
|
| 511 |
+
484,
|
| 512 |
+
599,
|
| 513 |
+
500
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 3
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "Often, there exist bottlenecks in the architecture of the dynamics network, i.e. hidden layers whose width $H$ is smaller than the dimensions of the input $D$ . In such cases, we can reduce the variance of Hutchinson’s estimator by using the cyclic property of trace. Since the variance of the estimator for $\\operatorname { T r } ( A )$ grows asymptotic to $| | \\bar { A | | } _ { F } ^ { 2 }$ (Hutchinson, 1989), we suspect that having fewer dimensions should help reduce variance. If we view the dynamics as a composition of two functions $f = g \\circ h ( \\mathbf { z } )$ then we observe ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
176,
|
| 522 |
+
508,
|
| 523 |
+
825,
|
| 524 |
+
593
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 3
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "equation",
|
| 530 |
+
"img_path": "images/12c2e802076e689c015ee899b8b2349b0db6d7c6595fad6bbbfe12aaa7a57d9c.jpg",
|
| 531 |
+
"text": "$$\n\\operatorname { T r } \\underbrace { \\left( { \\frac { \\partial f } { \\partial \\mathbf { z } } } \\right) } _ { D \\times D } = \\operatorname { T r } \\underbrace { \\left( { \\frac { \\partial g } { \\partial h } } { \\frac { \\partial h } { \\partial \\mathbf { z } } } \\right) } _ { D \\times D } = \\operatorname { T r } \\underbrace { \\left( { \\frac { \\partial h } { \\partial \\mathbf { z } } } { \\frac { \\partial g } { \\partial h } } \\right) } _ { H \\times H } = \\mathbb { E } _ { p ( \\epsilon ) } \\left[ \\epsilon ^ { T } { \\frac { \\partial h } { \\partial \\mathbf { z } } } { \\frac { \\partial g } { \\partial h } } \\epsilon \\right] .\n$$",
|
| 532 |
+
"text_format": "latex",
|
| 533 |
+
"bbox": [
|
| 534 |
+
276,
|
| 535 |
+
598,
|
| 536 |
+
723,
|
| 537 |
+
651
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 3
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "When $f$ has multiple hidden layers, we choose $H$ to be the smallest dimension. This bottleneck trick can reduce the norm of the matrix which may also help reduce the variance of the trace estimator. As introducing a bottleneck limits our model capacity, we do not use this trick in our experiments. However this trick can reduce variance when a bottleneck is used, as shown in our ablation studies. ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
176,
|
| 546 |
+
657,
|
| 547 |
+
823,
|
| 548 |
+
715
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 3
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "3.2 FFJORD: A CONTINUOUS-TIME REVERSIBLE GENERATIVE MODEL ",
|
| 555 |
+
"text_level": 1,
|
| 556 |
+
"bbox": [
|
| 557 |
+
174,
|
| 558 |
+
731,
|
| 559 |
+
687,
|
| 560 |
+
747
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 3
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "Our complete method uses the dynamics defined in (2) and the efficient log-likelihood estimator of (8) to produce the first scalable and reversible generative model with an unconstrained Jacobian. We call this method Free-Form Jacobian of Reversible Dyanamics (FFJORD). Pseudo-code of our method is given in Algorithm 1, and Table 1 summarizes the capabilities of our model compared to other recent generative modeling approaches. ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
174,
|
| 569 |
+
757,
|
| 570 |
+
825,
|
| 571 |
+
829
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 3
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "Assuming the cost of evaluating $f$ is on the order of $\\mathcal { O } ( D H )$ where $D$ is the dimensionality of the data and $H$ is the size of the largest hidden layer in $f$ , then the cost of computing the likelihood in models with repeated use of invertible transformations (1) is $\\mathcal { O } ( ( D H + \\bar { D ^ { 3 } } ) L )$ where $L$ is the number of transformations used. For CNF, this reduces to ${ \\mathcal O } ( ( D H + D ^ { 2 } ) \\hat { L } )$ for CNFs, where $\\hat { L }$ is the number of evaluations of $f$ used by the ODE solver. With FFJORD, this reduces further to $\\mathcal { O } ( ( D H + D ) \\hat { L } )$ . ",
|
| 578 |
+
"bbox": [
|
| 579 |
+
173,
|
| 580 |
+
834,
|
| 581 |
+
825,
|
| 582 |
+
925
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 3
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "table",
|
| 588 |
+
"img_path": "images/b34fed5a83684ccc6e93bb0dc5a1feeb508097f2797af7d9f111193d13b8258e.jpg",
|
| 589 |
+
"table_caption": [
|
| 590 |
+
""
|
| 591 |
+
],
|
| 592 |
+
"table_footnote": [],
|
| 593 |
+
"table_body": "<table><tr><td colspan=\"2\">Algorithm1 Unbiased stochastic log-density estimation using the FFJORD model Require: dynamics fe,start time to,stop time t1,data samples x,data dimension D.</td></tr><tr><td>∈ ← sample_unit_variance(x.shape) function faug([zt, log pt],t):</td><td>> Sample E outside of the integral >Augment f with log-density dynamics.</td></tr><tr><td>ft←fo(z(t),t) Taf</td><td>Evaluate neural network</td></tr><tr><td>g←εT zlz(t)</td><td> Compute vector-Jacobian product with automatic differentiation</td></tr><tr><td>Tr= ge return [ft,-Tr]</td><td> Unbiased estimateof Tr() with eTOfe</td></tr><tr><td>end function [zo,△logp] ←odeint(faug,[x,0],to,t1)</td><td>> Concatenate dynamics of state and log-density Solve theODE St fug([z(t),lgp(z(t)),t)t</td></tr></table>",
|
| 594 |
+
"bbox": [
|
| 595 |
+
173,
|
| 596 |
+
107,
|
| 597 |
+
826,
|
| 598 |
+
296
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4 EXPERIMENTS ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
176,
|
| 608 |
+
325,
|
| 609 |
+
326,
|
| 610 |
+
342
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "We demonstrate FFJORD on a variety of density estimation tasks, and for approximate inference in variational autoencoders (Kingma & Welling, 2014). Experiments were conducted using a suite of GPU-based ODE-solvers and an implementation of the adjoint method for backpropagation1. In all experiments the RungeKutta 4(5) algorithm with the tableau from Shampine (1986) was used to solve the ODEs. We ensure tolerance is set low enough so numerical error is negligible; see Appendix C. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
359,
|
| 620 |
+
483,
|
| 621 |
+
512
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "We used Hutchinson’s trace estimator (7) during training and the exact trace when reporting test results. This was done in all experiments except for our density estimation models trained on MNIST and CIFAR10 where computing the exact Jacobian trace was too expensive. ",
|
| 628 |
+
"bbox": [
|
| 629 |
+
174,
|
| 630 |
+
520,
|
| 631 |
+
483,
|
| 632 |
+
617
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 4
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "image",
|
| 638 |
+
"img_path": "images/ab8bf16b71e4f4d69d040ce6a540697db00a6b4a08e459f7fbc52bea5bcf8b06.jpg",
|
| 639 |
+
"image_caption": [
|
| 640 |
+
"Figure 2: Comparison of trained Glow, planar CNF, and FFJORD models on 2-dimensional distributions, including multi-modal and discontinuous densities. "
|
| 641 |
+
],
|
| 642 |
+
"image_footnote": [],
|
| 643 |
+
"bbox": [
|
| 644 |
+
503,
|
| 645 |
+
337,
|
| 646 |
+
816,
|
| 647 |
+
537
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "The dynamics of FFJORD are defined by a neural network $f$ which takes as input the current state $\\mathbf { z } ( t ) \\in \\mathbb { R } ^ { D }$ and the current time $t \\in \\mathbb { R }$ . We experimented with several ways to incorporate $t$ as an input to $f$ , such as hyper-networks, but found that simply concatenating $t$ on to ${ \\bf z } ( t )$ at the input to every layer worked well and was used in all of our experiments. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
625,
|
| 657 |
+
825,
|
| 658 |
+
680
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "4.1 DENSITY ESTIMATION ON TOY 2D DATA ",
|
| 665 |
+
"text_level": 1,
|
| 666 |
+
"bbox": [
|
| 667 |
+
178,
|
| 668 |
+
702,
|
| 669 |
+
500,
|
| 670 |
+
717
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "We first train on 2 dimensional data to visualize the model and the learned dynamics.2 In Figure 2, we show that by warping a simple isotropic Gaussian, FFJORD can fit both multi-modal and even discontinuous distributions. The number of evaluations of the ODE solver is roughly 70-100 on all datasets, so we compare against a Glow model with 100 discrete layers. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
729,
|
| 680 |
+
825,
|
| 681 |
+
786
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "The learned distributions of both FFJORD and Glow can be seen in Figure 2. Interestingly, we find that Glow learns to stretch the unimodal base distribution into multiple modes but has trouble modeling the areas of low probability between disconnected regions. In contrast, FFJORD is capable of modeling disconnected modes and can also learn convincing approximations of discontinuous density functions (middle row in Figure 2). Since the main benefit of FFJORD is the ability to train with deeper dynamics networks, we also compare against planar CNF (Chen et al., 2018) which can ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
792,
|
| 691 |
+
825,
|
| 692 |
+
877
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "image",
|
| 698 |
+
"img_path": "images/fac29854af968af5e276b62f3dccd72d8cf66f74c5f18de98ca150c65f578941.jpg",
|
| 699 |
+
"image_caption": [
|
| 700 |
+
"Figure 3: Samples and data from our image models. MNIST on left, CIFAR10 on right. "
|
| 701 |
+
],
|
| 702 |
+
"image_footnote": [],
|
| 703 |
+
"bbox": [
|
| 704 |
+
173,
|
| 705 |
+
101,
|
| 706 |
+
825,
|
| 707 |
+
151
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 5
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "table",
|
| 713 |
+
"img_path": "images/458a366710f2fc34c0cc4a2bd74ad71f73cbbd18ca9e4d9f0ca8e520ba7f4225.jpg",
|
| 714 |
+
"table_caption": [],
|
| 715 |
+
"table_footnote": [],
|
| 716 |
+
"table_body": "<table><tr><td></td><td>POWER</td><td>GAS</td><td>HEPMASS</td><td>MINIBOONE</td><td>BSDS300</td><td>MNIST</td><td>CIFAR10</td></tr><tr><td>Real NVP</td><td>-0.17</td><td>-8.33</td><td>18.71</td><td>13.55</td><td>-153.28</td><td>1.06*</td><td>3.49*</td></tr><tr><td>Glow</td><td>-0.17</td><td>-8.15</td><td>18.92</td><td>11.35</td><td>-155.07</td><td>1.05*</td><td>3.35*</td></tr><tr><td>FFJORD</td><td>-0.46</td><td>-8.59</td><td>14.92</td><td>10.43</td><td>-157.40</td><td>0.99* (1.05†)</td><td>3.40*</td></tr><tr><td>MADE</td><td>3.08</td><td>-3.56</td><td>20.98</td><td>15.59</td><td>-148.85</td><td>2.04</td><td>5.67</td></tr><tr><td>MAF</td><td>-0.24</td><td>-10.08</td><td>17.70</td><td>11.75</td><td>-155.69</td><td>1.89</td><td>4.31</td></tr><tr><td>TAN</td><td>-0.48</td><td>-11.19</td><td>15.12</td><td>11.01</td><td>-157.03</td><td>-</td><td>-</td></tr><tr><td>MAF-DDSF</td><td>-0.62</td><td>-11.96</td><td>15.09</td><td>8.86</td><td>-157.73</td><td>-</td><td>-</td></tr></table>",
|
| 717 |
+
"bbox": [
|
| 718 |
+
173,
|
| 719 |
+
193,
|
| 720 |
+
823,
|
| 721 |
+
351
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Table 2: Negative log-likehood on test data for density estimation models; lower is better. In nats for tabular data and bits/dim for MNIST and CIFAR10. \\*Results use multi-scale convolutional architectures. †Results use a single flow with a convolutional encoder-decoder architecture. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
174,
|
| 730 |
+
359,
|
| 731 |
+
825,
|
| 732 |
+
402
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "be viewed as a single hidden layer network. Without the benefit of a flexible network, planar CNF is unable to model complex distributions. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
433,
|
| 742 |
+
821,
|
| 743 |
+
462
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "4.2 DENSITY ESTIMATION ON REAL DATA ",
|
| 750 |
+
"text_level": 1,
|
| 751 |
+
"bbox": [
|
| 752 |
+
176,
|
| 753 |
+
483,
|
| 754 |
+
480,
|
| 755 |
+
498
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 5
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "We perform density estimation on five tabular datasets preprocessed as in Papamakarios et al. (2017) and two image datasets; MNIST and CIFAR10. When reproducing Glow, we use the same configurations for Real NVP as Papamakarios et al. (2017) and add invertible fully connected layer between all coupling layers. On the tabular datasets, FFJORD performs the best out of reversible models by a wide margin but is outperformed by recent autoregressive models. Of those, FFJORD outperforms MAF (Papamakarios et al., 2017) on all but one dataset and manages to outperform TAN Oliva et al. (2018) on the MINIBOONE dataset. These models require $\\mathcal { O } ( D )$ sequential computations to sample from while the best performing method, MAF-DDSF (Huang et al., 2018), cannot be sampled from without resorting to correlated or expensive sampling algorithms such as MCMC. ",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
512,
|
| 765 |
+
825,
|
| 766 |
+
637
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 5
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "On MNIST we find that FFJORD can model the data as effectively as Glow and Real NVP using only a single flow defined by a single neural network. This is in contrast to Glow and Real NVP which must compose many flows to achieve similar performance. When we use multiple flows in a multiscale architecture (like those used by Glow and Real NVP) we obtain better performance on MNIST and comparable performance to Glow on CIFAR10. Notably, FFJORD is able to achieve this performance while using less than $2 \\%$ as many parameters as Glow. We also note that Glow uses a learned base distribution whereas FFJORD and Real NVP use a fixed Gaussian. A summary of our results on density estimation can be found in Table 2 and samples can be seen in Figure 3. Full details on architectures used, our experimental procedure, and additional samples can be found in Appendix B.1. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
643,
|
| 776 |
+
825,
|
| 777 |
+
782
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 5
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "In general, our approach is slower than competing methods, but we find the memory-efficiency of the adjoint method allows us to use much larger batch sizes than those methods. On the tabular datasets we used a batch sizes up to 10,000 and on the image datasets we used a batch size of 900. ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
176,
|
| 786 |
+
790,
|
| 787 |
+
823,
|
| 788 |
+
832
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 5
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "4.3 VARIATIONAL AUTOENCODER ",
|
| 795 |
+
"text_level": 1,
|
| 796 |
+
"bbox": [
|
| 797 |
+
176,
|
| 798 |
+
853,
|
| 799 |
+
423,
|
| 800 |
+
867
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 5
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "We compare FFJORD to other normalizing flows for use in variational inference. We train a VAE (Kingma & Welling, 2014) on four datasets using a FFJORD flow and compare to VAEs with no flow, Planar Flows (Rezende & Mohamed, 2015), Inverse Autoregressive Flow (IAF) (Kingma ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
176,
|
| 809 |
+
882,
|
| 810 |
+
823,
|
| 811 |
+
922
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 5
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "table",
|
| 817 |
+
"img_path": "images/e5be08504d8e7f8d6823c71a96eb090a0b8d126ca3b94d78574aee015b82bfca.jpg",
|
| 818 |
+
"table_caption": [],
|
| 819 |
+
"table_footnote": [],
|
| 820 |
+
"table_body": "<table><tr><td></td><td>MNIST</td><td>Omniglot</td><td>Frey Faces</td><td>Caltech Silhouettes</td></tr><tr><td>No Flow</td><td>86.55 ± .06</td><td>104.28 ± .39</td><td>4.53 ± .02</td><td>110.80 ± .46</td></tr><tr><td>Planar IAF</td><td>86.06 ± .31 84.20 ± .17</td><td>102.65 ± .42</td><td>4.40 ± .06</td><td>109.66 ± .42 111.58 ± .38</td></tr><tr><td></td><td></td><td>102.41 ± .04</td><td>4.47 ± .05</td><td></td></tr><tr><td>Sylvester</td><td>83.32 ± .06</td><td>99.00 ± .04</td><td>4.45 ± .04</td><td>104.62 ± .29</td></tr><tr><td>FFJORD</td><td>82.82 ± .01</td><td>98.33 ± .09</td><td>4.39 ± .01</td><td>104.03 ± .43</td></tr></table>",
|
| 821 |
+
"bbox": [
|
| 822 |
+
238,
|
| 823 |
+
101,
|
| 824 |
+
758,
|
| 825 |
+
218
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 6
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Table 3: Negative ELBO on test data for VAE models; lower is better. In nats for all datasets except Frey Faces which is presented in bits per dimension. Mean/stdev are estimated over 3 runs. ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
173,
|
| 834 |
+
227,
|
| 835 |
+
823,
|
| 836 |
+
256
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 6
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "et al., 2016), and Sylvester normalizing flows (Berg et al., 2018). To provide a fair comparison, our encoder/decoder architectures and learning setup exactly mirror those of Berg et al. (2018). ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
280,
|
| 846 |
+
823,
|
| 847 |
+
309
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 6
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "In VAEs it is common for the encoder network to also output the parameters of the flow as a function of the input $\\mathbf { x }$ . With FFJORD, we found this led to differential equations which were too difficult to integrate numerically. Instead, the encoder network outputs a low-rank update to a global weight matrix and an input-dependent bias vector. When used in recognition nets, neural network layers defining the dynamics inside FFJORD take the form ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
176,
|
| 856 |
+
315,
|
| 857 |
+
823,
|
| 858 |
+
386
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 6
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "equation",
|
| 864 |
+
"img_path": "images/2819597158464df4e29f85605e3f59a998943628e0a06ac572626318d327820e.jpg",
|
| 865 |
+
"text": "$$\n\\mathrm { l a y e r } ( h ; \\mathbf { x } , W , b ) = \\sigma \\left( \\left( \\underbrace { W } _ { D _ { o u t } \\times D _ { i n } } + \\underbrace { \\hat { U } ( \\mathbf { x } ) } _ { D _ { o u t } \\times k } \\underbrace { \\hat { V } ( \\mathbf { x } ) } _ { D _ { i n } \\times k } ^ { T } \\right) h + \\underbrace { b } _ { D _ { o u t } \\times 1 } + \\underbrace { \\hat { b } ( \\mathbf { x } ) } _ { D _ { o u t } \\times 1 } \\right)\n$$",
|
| 866 |
+
"text_format": "latex",
|
| 867 |
+
"bbox": [
|
| 868 |
+
236,
|
| 869 |
+
388,
|
| 870 |
+
761,
|
| 871 |
+
440
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "where $h$ is the input to the layer, $\\sigma$ is an element-wise activation function, $D _ { i n }$ and $D _ { o u t }$ are the input and output dimension of this layer, and ${ \\hat { U } } ( \\mathbf { x } ) , { \\hat { V } } ( \\mathbf { x } ) , { \\hat { b } } ( \\mathbf { x } )$ are input-dependent parameters returned from an encoder network. A full description of the model architectures used and our experimental setup can be found in Appendix B.2. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
443,
|
| 881 |
+
825,
|
| 882 |
+
502
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "On every dataset tested, FFJORD outperforms all other competing normalizing flows. A summary of our variational inference results can be found in Table 3. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
507,
|
| 892 |
+
823,
|
| 893 |
+
536
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "5 ANALYSIS AND DISCUSSION ",
|
| 900 |
+
"text_level": 1,
|
| 901 |
+
"bbox": [
|
| 902 |
+
176,
|
| 903 |
+
556,
|
| 904 |
+
442,
|
| 905 |
+
571
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 6
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "We performed a series of ablation experiments to gain a better understanding of the proposed model. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
587,
|
| 915 |
+
549,
|
| 916 |
+
616
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 6
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "5.1 FASTER TRAINING WITH BOTTLENECK TRICK ",
|
| 923 |
+
"text_level": 1,
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
632,
|
| 927 |
+
532,
|
| 928 |
+
646
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 6
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "We plotted the training losses on MNIST using an encoder-decoder architecture (see Appendix B.1 for details). Loss during training is plotted in Figure 4, where we use the trace estimator directly on the $D \\times D$ Jacobian, or we use the bottleneck trick to reduce the dimension to $H \\times H$ . Interestingly, we find that while the bottleneck trick (9) can lead to faster convergence when the trace is estimated using a Gaussian-distributed $\\epsilon$ , we did not observe faster convergence when using a Rademacherdistributed $\\epsilon$ . ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
657,
|
| 938 |
+
549,
|
| 939 |
+
796
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 6
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "image",
|
| 945 |
+
"img_path": "images/a5a4104a81a527db90fb5a4bf2e1e69de73b82219692f93512d6220935d9f7d7.jpg",
|
| 946 |
+
"image_caption": [
|
| 947 |
+
"Figure 4: The variance of our model’s log-density estimator can be reduced using neural network architectures with a bottleneck layer, speeding up training. "
|
| 948 |
+
],
|
| 949 |
+
"image_footnote": [],
|
| 950 |
+
"bbox": [
|
| 951 |
+
571,
|
| 952 |
+
583,
|
| 953 |
+
812,
|
| 954 |
+
717
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 6
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "5.2 NUMBER OF FUNCTION EVALUATIONS VS. DATA DIMENSION ",
|
| 961 |
+
"text_level": 1,
|
| 962 |
+
"bbox": [
|
| 963 |
+
174,
|
| 964 |
+
813,
|
| 965 |
+
638,
|
| 966 |
+
828
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 6
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "The full computational cost of integrating the instantaneous change of variables (2) is $\\mathcal { O } ( D H \\widehat { L } )$ where $D$ is dimensionality of the data, $H$ is the size of the hidden state, and $\\widehat { L }$ is the number of function evaluations (NFE) that the adaptive solver uses to integrate the ODE. In general, each evaluation of the model is $\\mathcal { O } ( D H )$ and in practice, $H$ is typically chosen to be close to $D$ . Since the general form of the discrete change of variables equation (1) requires $\\mathcal { O } ( D ^ { 3 } )$ -cost, one may wonder whether the number of evaluations $\\widehat { L }$ depends on $D$ . ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
838,
|
| 976 |
+
825,
|
| 977 |
+
928
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 6
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "We train VAEs using FFJORD flows with increasing latent dimension $D$ . The NFE throughout training is shown in Figure 5. In all models, we find that the NFE increases throughout training, but converges to the same value, independent of $D$ . We conjecture that the number of evaluations is not dependent on the dimensionality of the data but the complexity of its distribution, or more specifically, how difficult it is to transform its density into the base distribution. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
103,
|
| 987 |
+
549,
|
| 988 |
+
228
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 7
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "5.3 SINGLE-SCALE VS. MULTI-SCALE FFJORD",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
251,
|
| 999 |
+
517,
|
| 1000 |
+
265
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Crucial to the scalability of Real NVP and Glow is the multiscale architecture originally proposed in Dinh et al. (2017). We compare a single-scale encoder-decoder style FFJORD with a multiscale FFJORD on the MNIST dataset where both models have a comparable number of parameters and plot the total NFE–in both forward and backward passes–against the loss achieved in Figure 6. We find that while the single-scale model uses approximately one half as many function evaluations as the multiscale model, it is not able to achieve the same performance as the multiscale model. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
279,
|
| 1010 |
+
549,
|
| 1011 |
+
430
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "image",
|
| 1017 |
+
"img_path": "images/0062858e8272d5676ba867e22f6633ff8e78e21441e692e039bb10cf152dc6a7.jpg",
|
| 1018 |
+
"image_caption": [
|
| 1019 |
+
"Figure 5: NFE used by the adaptive ODE solver is approximately independent of data-dimension. Lines are smoothed using a Gaussian filter. "
|
| 1020 |
+
],
|
| 1021 |
+
"image_footnote": [],
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
580,
|
| 1024 |
+
74,
|
| 1025 |
+
810,
|
| 1026 |
+
178
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 7
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "image",
|
| 1032 |
+
"img_path": "images/1cd2619e51c02801395209923fba96f688f591bcf13f63fef7f5450530a63d78.jpg",
|
| 1033 |
+
"image_caption": [
|
| 1034 |
+
"Figure 6: For image data, a single FFJORD flow can achieve near performance to multi-scale architecture while using half the number of evaluations. "
|
| 1035 |
+
],
|
| 1036 |
+
"image_footnote": [],
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
573,
|
| 1039 |
+
265,
|
| 1040 |
+
813,
|
| 1041 |
+
381
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 7
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "6 SCOPE AND LIMITATIONS ",
|
| 1048 |
+
"text_level": 1,
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
176,
|
| 1051 |
+
455,
|
| 1052 |
+
418,
|
| 1053 |
+
472
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 7
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Number of function evaluations can be prohibitive. The number of function evaluations required to integrate the dynamics is not fixed ahead of time, and is a function of the data, model architecture, and model parameters. This number tends to grow as the models trains and can become prohibitively large, even when memory stays constant due to the adjoint method. Various forms of regularization such as weight decay and spectral normalization (Miyato et al., 2018) can be used to reduce the this quantity, but their use tends to hurt performance slightly. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
174,
|
| 1062 |
+
489,
|
| 1063 |
+
823,
|
| 1064 |
+
574
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 7
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Limitations of general-purpose ODE solvers. In theory, our model can approximate any differential equation (given mild assumptions based on existence and uniqueness of the solution), but in practice our reliance on general-purpose ODE solvers restricts us to non-stiff differential equations that can be efficiently solved. ODE solvers for stiff dynamics exist, but they evaluate $f$ many more times to achieve the same error. We find that a small amount of weight decay regularizes the ODE to be sufficiently non-stiff. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
174,
|
| 1073 |
+
593,
|
| 1074 |
+
825,
|
| 1075 |
+
676
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 7
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "7 CONCLUSION ",
|
| 1082 |
+
"text_level": 1,
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
176,
|
| 1085 |
+
702,
|
| 1086 |
+
318,
|
| 1087 |
+
717
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 7
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "We have presented FFJORD, a reversible generative model for high-dimensional data which can compute exact log-likelihoods and can be sampled from efficiently. Our model uses continuoustime dynamics to produce a generative model which is parameterized by an unrestricted neural network. All required quantities for training and sampling can be computed using automatic differentiation, Hutchinson’s trace estimator, and black-box ODE solvers. Our model stands in contrast to other methods with similar properties which rely on restricted, hand-engineered neural network architectures. We demonstrated that this additional flexibility allows our approach to achieve on-par or improved performance on density estimation and variational inference. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
174,
|
| 1096 |
+
734,
|
| 1097 |
+
825,
|
| 1098 |
+
847
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 7
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "We believe there is much room for further work exploring and improving this method. FFJORD is empirically slower to evaluate than other reversible models like Real NVP or Glow, so we are interested specifically in ways to reduce the number of function evaluations used by the ODE-solver without hurting predictive performance. Advancements like these will be crucial in scaling this method to even higher-dimensional datasets. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
176,
|
| 1107 |
+
854,
|
| 1108 |
+
823,
|
| 1109 |
+
922
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 7
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "8 ACKNOWLEDGEMENTS ",
|
| 1116 |
+
"text_level": 1,
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
102,
|
| 1120 |
+
398,
|
| 1121 |
+
118
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 8
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "We thank Yulia Rubanova and Roger Grosse for helpful discussions. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
173,
|
| 1130 |
+
133,
|
| 1131 |
+
620,
|
| 1132 |
+
148
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 8
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "REFERENCES ",
|
| 1139 |
+
"text_level": 1,
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
174,
|
| 1142 |
+
170,
|
| 1143 |
+
287,
|
| 1144 |
+
185
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 8
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "R. P. Adams, J. Pennington, M. J. Johnson, J. Smith, Y. Ovadia, B. Patton, and J. Saunderson. Estimating the Spectral Density of Large Implicit Matrices. ArXiv e-prints, February 2018. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
176,
|
| 1153 |
+
194,
|
| 1154 |
+
821,
|
| 1155 |
+
223
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 8
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Joel Andersson. A general-purpose software framework for dynamic optimization. PhD thesis, 2013. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
176,
|
| 1164 |
+
232,
|
| 1165 |
+
820,
|
| 1166 |
+
248
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 8
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Rianne van den Berg, Leonard Hasenclever, Jakub M Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. arXiv preprint arXiv:1803.05649, 2018. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
257,
|
| 1176 |
+
818,
|
| 1177 |
+
286
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 8
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. Advances in Neural Information Processing Systems, 2018. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
173,
|
| 1186 |
+
296,
|
| 1187 |
+
820,
|
| 1188 |
+
325
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 8
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. International Conference on Learning Representations Workshop, 2014. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
334,
|
| 1198 |
+
823,
|
| 1199 |
+
366
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 8
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using Real NVP. International Conference on Learning Representations, 2017. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
176,
|
| 1208 |
+
375,
|
| 1209 |
+
825,
|
| 1210 |
+
404
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In International Conference on Machine Learning, pp. 881–889, 2015. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
412,
|
| 1220 |
+
825,
|
| 1221 |
+
443
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
173,
|
| 1230 |
+
452,
|
| 1231 |
+
823,
|
| 1232 |
+
496
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Andreas Griewank and Andrea Walther. Evaluating derivatives: principles and techniques of algorithmic differentiation, volume 105. Siam, 2008. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
169,
|
| 1241 |
+
505,
|
| 1242 |
+
823,
|
| 1243 |
+
535
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron Courville. Neural autoregressive flows. International Conference on Machine Learning, 2018. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
544,
|
| 1253 |
+
823,
|
| 1254 |
+
574
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 8
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "M.F. Hutchinson. A stochastic estimator of the trace of the influence matrix for laplacian smoothing splines. 18:1059–1076, 01 1989. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
583,
|
| 1264 |
+
823,
|
| 1265 |
+
612
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 8
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "H.K. Khalil. Nonlinear Systems. Pearson Education. Prentice Hall, 2002. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
622,
|
| 1275 |
+
655,
|
| 1276 |
+
637
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 8
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 2015. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
176,
|
| 1285 |
+
647,
|
| 1286 |
+
823,
|
| 1287 |
+
676
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 8
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Diederik P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. Advances in Neural Information Processing Systems, 2018. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
685,
|
| 1297 |
+
823,
|
| 1298 |
+
715
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 8
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. International Conference on Learning Representations, 2014. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
173,
|
| 1307 |
+
724,
|
| 1308 |
+
825,
|
| 1309 |
+
755
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 8
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, pp. 4743–4751, 2016. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
173,
|
| 1318 |
+
763,
|
| 1319 |
+
823,
|
| 1320 |
+
808
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 8
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. International Conference on Learning Representations, 2018. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
171,
|
| 1329 |
+
816,
|
| 1330 |
+
823,
|
| 1331 |
+
847
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 8
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Junier B Oliva, Avinava Dubey, Barnabas P ´ oczos, Jeff Schneider, and Eric P Xing. Transformation ´ autoregressive networks. International Conference on Machine Learning, 2018. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
171,
|
| 1340 |
+
856,
|
| 1341 |
+
823,
|
| 1342 |
+
886
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 8
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. International Conference on Machine Learning, 2016. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
895,
|
| 1352 |
+
820,
|
| 1353 |
+
924
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 8
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "George Papamakarios, Iain Murray, and Theo Pavlakou. Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, pp. 2338–2347, 2017. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
169,
|
| 1362 |
+
103,
|
| 1363 |
+
825,
|
| 1364 |
+
132
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 9
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Lev Semenovich Pontryagin. Mathematical theory of optimal processes. Routledge, 1962. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
140,
|
| 1374 |
+
769,
|
| 1375 |
+
157
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 9
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. International Conference on Machine Learning, 2015. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
173,
|
| 1384 |
+
165,
|
| 1385 |
+
821,
|
| 1386 |
+
194
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 9
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Nature, 323(6088):533, 1986. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
202,
|
| 1396 |
+
823,
|
| 1397 |
+
231
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 9
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Lawrence F Shampine. Some practical Runge-Kutta formulas. Mathematics of Computation, 46 (173):135–150, 1986. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
169,
|
| 1406 |
+
241,
|
| 1407 |
+
823,
|
| 1408 |
+
270
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 9
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "APPENDIX A QUALITATIVE SAMPLES",
|
| 1415 |
+
"text_level": 1,
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
102,
|
| 1419 |
+
501,
|
| 1420 |
+
118
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 10
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "Samples from our FFJORD models trained on MNIST and CIFAR10 can be found in Figure 7. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
173,
|
| 1429 |
+
136,
|
| 1430 |
+
792,
|
| 1431 |
+
151
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 10
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "image",
|
| 1437 |
+
"img_path": "images/7069f2c96885024f26e2483d05fa76cd504e9adeaf9540d42653e6f44943d89f.jpg",
|
| 1438 |
+
"image_caption": [
|
| 1439 |
+
"Figure 7: Samples and data from our image models. MNIST on left, CIFAR10 on right. "
|
| 1440 |
+
],
|
| 1441 |
+
"image_footnote": [],
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
179,
|
| 1444 |
+
169,
|
| 1445 |
+
823,
|
| 1446 |
+
621
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 10
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "APPENDIX B EXPERIMENTAL DETAILS AND ADDITIONAL RESULTS ",
|
| 1453 |
+
"text_level": 1,
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
173,
|
| 1456 |
+
679,
|
| 1457 |
+
748,
|
| 1458 |
+
695
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 10
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "B.1 DENSITY ESTIMATION ",
|
| 1465 |
+
"text_level": 1,
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
176,
|
| 1468 |
+
713,
|
| 1469 |
+
374,
|
| 1470 |
+
728
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 10
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "On the tabular datasets we performed a grid-search over network architectures. We searched over models with 1, 2, 5, or 10 flows with 1, 2, 3, or 4 hidden layers per flow. Since each dataset has a different number of dimensions, we searched over hidden dimensions equal to 5, 10, or 20 times the data dimension (hidden dimension multiplier in Table 4). We tried both the tanh and softplus nonlinearities. The best performing models can be found in the Table 4. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
174,
|
| 1479 |
+
742,
|
| 1480 |
+
825,
|
| 1481 |
+
811
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 10
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "On the image datasets we experimented with two different model architectures; a single flow with an encoder-decoder style architecture and a multiscale architecture composed of multiple flows. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
173,
|
| 1490 |
+
818,
|
| 1491 |
+
823,
|
| 1492 |
+
847
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 10
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "While they were able to fit MNIST and obtain competitive performance, the encoder-decoder architectures were unable to fit more complicated image datasets such as CIFAR10 and Street View House Numbers. The architecture for MNIST which obtained the results in Table 2 was composed of four convolutional layers with $6 4 \\to 6 4 \\to 1 2 8 \\to 1 2 8$ filters and down-sampling with strided convolutions by two every other layer. There are then four transpose-convolutional layers who’s filters mirror the first four layers and up-sample by two every other layer. The softplus activation function is used in every layer. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
174,
|
| 1501 |
+
853,
|
| 1502 |
+
823,
|
| 1503 |
+
924
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 10
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
173,
|
| 1512 |
+
103,
|
| 1513 |
+
823,
|
| 1514 |
+
132
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 11
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "The multiscale architectures were inspired by those presented in Dinh et al. (2017). We compose multiple flows together interspersed with “squeeze” operations which down-sample the spatial resolution of the images and increase the number of channels. These operations are stacked into a “scale block” which contains $N$ flows, a squeeze, then $N$ flows. For MNIST we use 3 scale blocks and for CIFAR10 we use 4 scale blocks and let $N = 2$ for both datasets. Each flow is defined by 3 convolutional layers with 64 filters and a kernel size of 3. The softplus nonlinearity is used in all layers. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
174,
|
| 1523 |
+
138,
|
| 1524 |
+
825,
|
| 1525 |
+
236
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 11
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Both models were trained with the Adam optimizer (Kingma & Ba, 2015). We trained for 500 epochs with a learning rate of .001 which was decayed to .0001 after 250 epochs. Training took place on six GPUs and completed after approximately five days. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
176,
|
| 1534 |
+
243,
|
| 1535 |
+
825,
|
| 1536 |
+
285
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 11
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "B.2 VARIATIONAL AUTOENCODER ",
|
| 1543 |
+
"text_level": 1,
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
176,
|
| 1546 |
+
335,
|
| 1547 |
+
426,
|
| 1548 |
+
349
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 11
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "Our experimental procedure exactly mirrors that of Berg et al. (2018). We use the same 7-layer encoder and decoder, learning rate (.001), optimizer (Adam Kingma & Ba (2015)), batch size (100), and early stopping procedure (stop after 100 epochs of no validaiton improvment). The only difference was in the nomralizing flow used in the approximate posterior. ",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
174,
|
| 1557 |
+
375,
|
| 1558 |
+
825,
|
| 1559 |
+
431
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 11
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "text",
|
| 1565 |
+
"text": "We performed a grid-search over neural network architectures for the dynamics of FFJORD. We searched over networks with 1 and 2 hidden layers and hidden dimension 512, 1024, and 2048. We used flows with 1, 2, or 5 steps and wight matrix updates of rank 1, 20, and 64. We use the softplus activation function for all datasets except for Caltech Silhouettes where we used tanh. The best performing models can be found in the Table 5. Models were trained on a single GPU and training took between four hours and three days depending on the dataset. ",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
174,
|
| 1568 |
+
438,
|
| 1569 |
+
825,
|
| 1570 |
+
521
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 11
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "table",
|
| 1576 |
+
"img_path": "images/df5cb65527b4102df3cd2872ced64c50a7e9f8c473aef67d521426a05f92f3df.jpg",
|
| 1577 |
+
"table_caption": [],
|
| 1578 |
+
"table_footnote": [],
|
| 1579 |
+
"table_body": "<table><tr><td>Dataset</td><td>nonlinearity</td><td>#layers</td><td>hidden dim multiplier</td><td># flow steps</td><td>batchsize</td></tr><tr><td>POWER</td><td>tanh</td><td>3</td><td>10</td><td>5</td><td>10000</td></tr><tr><td>GAS</td><td>tanh</td><td>3</td><td>20</td><td>5</td><td>1000</td></tr><tr><td>HEPMASS</td><td>softplus</td><td>2</td><td>10</td><td>10</td><td>10000</td></tr><tr><td>MINIBOONE</td><td>softplus</td><td>2</td><td>20</td><td>1</td><td>1000</td></tr><tr><td>BSDS300</td><td> softplus</td><td>3</td><td>20</td><td>2</td><td>10000</td></tr></table>",
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
184,
|
| 1582 |
+
565,
|
| 1583 |
+
812,
|
| 1584 |
+
681
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 11
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "text",
|
| 1590 |
+
"text": "Table 4: Best performing model architectures for density estimation on tabular data with FFJORD. ",
|
| 1591 |
+
"bbox": [
|
| 1592 |
+
173,
|
| 1593 |
+
691,
|
| 1594 |
+
821,
|
| 1595 |
+
707
|
| 1596 |
+
],
|
| 1597 |
+
"page_idx": 11
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"type": "table",
|
| 1601 |
+
"img_path": "images/5ad1aab5ce685306abab09f6703d59096e710d899b7838cc42724a6a5e43df0c.jpg",
|
| 1602 |
+
"table_caption": [
|
| 1603 |
+
"Table 5: Best performing model architectures for VAEs with FFJORD. "
|
| 1604 |
+
],
|
| 1605 |
+
"table_footnote": [],
|
| 1606 |
+
"table_body": "<table><tr><td>Dataset</td><td>nonlinearity</td><td># layers</td><td>hidden dimension</td><td>#flow steps</td><td>rank</td></tr><tr><td>MNIST</td><td>softplus</td><td>2</td><td>1024</td><td>2</td><td>64</td></tr><tr><td>Omniglot</td><td>softplus</td><td>2</td><td>512</td><td>5</td><td>20</td></tr><tr><td>Frey Faces</td><td>softplus</td><td>2</td><td>512</td><td>2</td><td>20</td></tr><tr><td>Caltech</td><td>tanh</td><td>1</td><td>2048</td><td>1</td><td>20</td></tr></table>",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
228,
|
| 1609 |
+
796,
|
| 1610 |
+
769,
|
| 1611 |
+
895
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 11
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "table",
|
| 1617 |
+
"img_path": "images/edae3d51ae89b8c68cb1e69957429ad9d96783ba1f363ae9ad822bafe701683d.jpg",
|
| 1618 |
+
"table_caption": [
|
| 1619 |
+
"B.3 STANDARD DEVIATIONS FOR TABULAR DENSITY ESTIMATION "
|
| 1620 |
+
],
|
| 1621 |
+
"table_footnote": [],
|
| 1622 |
+
"table_body": "<table><tr><td></td><td>POWER</td><td>GAS</td><td>HEPMASS</td><td>MINIBOONE</td><td>BSDS300</td></tr><tr><td>Real NVP</td><td>-0.17 ± 0.01</td><td>-8.33 ± 0.14</td><td>18.71 ± 0.02</td><td>13.55 ± 0.49</td><td>-153.28 ± 1.78</td></tr><tr><td>Glow</td><td>-0.17 ± 0.01</td><td>-8.15 ± 0.40</td><td>18.92 ± 0.08</td><td>11.35 ± 0.07</td><td>-155.07 ± 0.03</td></tr><tr><td>FFJORD</td><td>-0.46 ± 0.01</td><td>-8.59 ±0.12</td><td>14.92 ± 0.08</td><td>10.43 ± 0.04</td><td>-157.40 ± 0.19</td></tr><tr><td>MADE</td><td>3.08 ± 0.03</td><td>-3.56 ± 0.04</td><td>20.98 ± 0.02</td><td>15.59 ± 0.50</td><td>-148.85 ± 0.28</td></tr><tr><td>MAF</td><td>-0.24 ± 0.01</td><td>-10.08 ± 0.02</td><td>17.70 ± 0.02</td><td>11.75 ± 0.44</td><td>-155.69 ± 0.28</td></tr><tr><td>TAN</td><td>-0.48 ± 0.01</td><td>-11.19 ± 0.02</td><td>15.12 ± 0.02</td><td>11.01 ± 0.48</td><td>-157.03 ± 0.07</td></tr><tr><td>MAF-DDSF</td><td>-0.62 ± 0.01</td><td>-11.96 ± 0.33</td><td>15.09 ± 0.40</td><td>8.86 ± 0.15</td><td>-157.73 ± 0.04</td></tr></table>",
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
194,
|
| 1625 |
+
133,
|
| 1626 |
+
805,
|
| 1627 |
+
292
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 12
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "text",
|
| 1633 |
+
"text": "Table 6: Negative log-likehood on test data for density estimation models. Means/stdev over 3 runs. Real NVP, MADE, MAF, TAN, and MAF-DDSF results on are taken from Huang et al. (2018). In reproducing Glow, we were able to get comparable results to the reported Real NVP by removing the invertible fully connected layers. ",
|
| 1634 |
+
"bbox": [
|
| 1635 |
+
173,
|
| 1636 |
+
303,
|
| 1637 |
+
825,
|
| 1638 |
+
359
|
| 1639 |
+
],
|
| 1640 |
+
"page_idx": 12
|
| 1641 |
+
},
|
| 1642 |
+
{
|
| 1643 |
+
"type": "text",
|
| 1644 |
+
"text": "APPENDIX C NUMERICAL ERROR FROM THE ODE SOLVER ",
|
| 1645 |
+
"text_level": 1,
|
| 1646 |
+
"bbox": [
|
| 1647 |
+
176,
|
| 1648 |
+
387,
|
| 1649 |
+
679,
|
| 1650 |
+
405
|
| 1651 |
+
],
|
| 1652 |
+
"page_idx": 12
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "text",
|
| 1656 |
+
"text": "ODE solvers are numerical integration methods so there is error inherent in their outputs. Adaptive solvers (like those used in all of our experiments) attempt to predict the errors that they accrue and modify their step-size to reduce their error below a user set tolerance. It is important to be aware of this error when we use these solvers for density estimation as the solver outputs the density that we report and compare with other methods. When tolerance is too low, we run into machine precision errors. Similarly when tolerance is too high, errors are large, our training objective becomes biased and we can run into divergent training dynamics. ",
|
| 1657 |
+
"bbox": [
|
| 1658 |
+
173,
|
| 1659 |
+
419,
|
| 1660 |
+
825,
|
| 1661 |
+
517
|
| 1662 |
+
],
|
| 1663 |
+
"page_idx": 12
|
| 1664 |
+
},
|
| 1665 |
+
{
|
| 1666 |
+
"type": "text",
|
| 1667 |
+
"text": "Since a valid probability density function integrates to one, we take a model trained on Figure 1 and numerically find the area under the curve using Riemann sum and a very fine grid. We do this for a range of tolerance values and show the resulting error in Figure 8. We set both atol and rtol to the same tolerance. ",
|
| 1668 |
+
"bbox": [
|
| 1669 |
+
173,
|
| 1670 |
+
523,
|
| 1671 |
+
825,
|
| 1672 |
+
579
|
| 1673 |
+
],
|
| 1674 |
+
"page_idx": 12
|
| 1675 |
+
},
|
| 1676 |
+
{
|
| 1677 |
+
"type": "image",
|
| 1678 |
+
"img_path": "images/02e88a1805109d6d2399eee267e1694fbcf917ec7e51dd627a734ef15382389d.jpg",
|
| 1679 |
+
"image_caption": [
|
| 1680 |
+
"Figure 8: Numerical integration shows that the density under the model does integrate to one given sufficiently low tolerance. Both log and non-log plots are shown. "
|
| 1681 |
+
],
|
| 1682 |
+
"image_footnote": [],
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
192,
|
| 1685 |
+
597,
|
| 1686 |
+
807,
|
| 1687 |
+
729
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 12
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "The numerical error follows the same order as the tolerance, as expected. During training, we find that the error becomes non-negligible when using tolerance values higher than $\\bar { 1 0 } ^ { - 5 }$ . For most of our experiments, we set tolerance to $1 0 ^ { - 5 }$ as that gives reasonable performance while requiring few number of evaluations. For the tabular experiments, we use atol $= 1 0 ^ { - 8 }$ and $\\mathtt { r t o l } \\mathtt { = } 1 0 ^ { - 6 }$ . ",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
174,
|
| 1696 |
+
803,
|
| 1697 |
+
825,
|
| 1698 |
+
858
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 12
|
| 1701 |
+
}
|
| 1702 |
+
]
|
parse/train/yWd42CWN3c/yWd42CWN3c.md
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layers
|
| 2 |
+
|
| 3 |
+
Albert $\mathbf { G } \mathbf { u } ^ { \dagger }$ , Isys Johnson‡, Karan Goel†, Khaled Saab∗, Tri Dao†, Atri Rudra‡, Christopher Ré†
|
| 4 |
+
|
| 5 |
+
† Department of Computer Science, Stanford University ∗ Department of Electrical Engineering, Stanford University ‡ Department of Computer Science and Engineering, University at Buffalo, SUNY {albertgu,knrg,ksaab,trid}@stanford.edu, chrismre@cs.stanford.edu {isysjohn,atri}@buffalo.edu
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Recurrent neural networks (RNNs), temporal convolutions, and neural differential equations (NDEs) are popular families of deep learning models for time-series data, each with unique strengths and tradeoffs in modeling power and computational efficiency. We introduce a simple sequence model inspired by control systems that generalizes these approaches while addressing their shortcomings. The Linear State-Space Layer (LSSL) maps a sequence $u \mapsto y$ by simply simulating a linear continuous-time state-space representation ${ \dot { x } } = A x + B u , y = C x + D u$ Theoretically, we show that LSSL models are closely related to the three aforementioned families of models and inherit their strengths. For example, they generalize convolutions to continuous-time, explain common RNN heuristics, and share features of NDEs such as time-scale adaptation. We then incorporate and generalize recent theory on continuous-time memorization to introduce a trainable subset of structured matrices $A$ that endow LSSLs with long-range memory. Empirically, stacking LSSL layers into a simple deep neural network obtains state-of-the-art results across time series benchmarks for long dependencies in sequential image classification, real-world healthcare regression tasks, and speech. On a difficult speech classification task with length-16000 sequences, LSSL outperforms prior approaches by 24 accuracy points, and even outperforms baselines that use handcrafted features on $1 0 0 \mathrm { x }$ shorter sequences.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
A longstanding challenge in machine learning is efficiently modeling sequential data longer than a few thousand time steps. The usual paradigms for designing sequence models involve recurrence (e.g. RNNs), convolutions (e.g. CNNs), or differential equations (e.g. NDEs), which each come with tradeoffs. For example, RNNs are a natural stateful model for sequential data that require only constant computation/storage per time step, but are slow to train and suffer from optimization difficulties (e.g., the "vanishing gradient problem" [39]), which empirically limits their ability to handle long sequences. CNNs encode local context and enjoy fast, parallelizable training, but are not sequential, resulting in more expensive inference and an inherent limitation on the context length. NDEs are a principled mathematical model that can theoretically address continuous-time problems and long-term dependencies [37], but are very inefficient.
|
| 14 |
+
|
| 15 |
+
Ideally, a model family would combine the strengths of these paradigms, providing properties like parallelizable training (convolutional), stateful inference (recurrence) and time-scale adaptation (differential equations), while handling very long sequences in a computationally efficient way. Several recent works have turned to this question. These include the CKConv, which models a continuous convolution kernel [44]; several ODE-inspired RNNs, such as the UnICORNN [47]; the LMU, which speeds up a specific linear recurrence using convolutions [12, 58]; and HiPPO [24], a generalization of the LMU that introduces a theoretical framework for continuous-time memorization. However, these model families come at the price of reduced expressivity: intuitively, a family that is both convolutional and recurrent should be more restrictive than either.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: (Three views of the LSSL) A Linear State Space Layer layer is a map $u _ { t } \ \in \ \mathbb { R } \ \to \ y _ { t } \ \in \ \mathbb { R }$ , where each feature $u _ { t } \mapsto y _ { t }$ is defined by discretizing a state-space model $A , B , C , D$ with a parameter $\Delta t$ The underlying state space model defines a discrete recurrence through combining the state matrix $A$ and timescale $\Delta t$ into a transition matrix $\overline { { A } }$ . (Left) As an implicit continuous model, irregularly-spaced data can be handled by discretizing the same matrix $A$ using a different timescale $\Delta t$ . (Center) As a recurrent model, inference can be performed efficiently by computing the layer timewise (i.e., one vertical slice at a time $( u _ { t } , x _ { t } , y _ { t } ) , ( u _ { t + 1 } , x _ { t + 1 } , y _ { t + 1 } ) , \dots )$ , by unrolling the linear recurrence. (Right) As a convolutional model, training can be performed efficiently by computing the layer depthwise in parallel (i.e., one horizontal slice at a time $( u _ { t } ) _ { t \in [ L ] } , ( y _ { t } ) _ { t \in [ L ] } , \dots . )$ , by convolving with a particular filter.
|
| 19 |
+
|
| 20 |
+
Our first goal is to construct an expressive model family that combines all 3 paradigms while preserving their strengths. The Linear State-Space Layer (LSSL) is a simple sequence model that maps a 1-dimensional function or sequence $u ( t ) \mapsto y ( t )$ through an implicit state $x ( t )$ by simulating a linear continuous-time state-space representation in discrete-time
|
| 21 |
+
|
| 22 |
+
$$
|
| 23 |
+
\begin{array} { l } { \dot { \boldsymbol { x } } ( t ) = \boldsymbol { A } \boldsymbol { x } ( t ) + \boldsymbol { B } \boldsymbol { u } ( t ) } \\ { \boldsymbol { y } ( t ) = \boldsymbol { C } \boldsymbol { x } ( t ) + \boldsymbol { D } \boldsymbol { u } ( t ) , } \end{array}
|
| 24 |
+
$$
|
| 25 |
+
|
| 26 |
+
where $A$ controls the evolution of the system and $B , C , D$ are projection parameters. The LSSL can be viewed as an instantiation of each family, inheriting their strengths (Fig. 1):
|
| 27 |
+
|
| 28 |
+
• LSSLs are recurrent. If a discrete step-size $\Delta t$ is specified, the LSSL can be discretized into a linear recurrence using standard techniques, and simulated during inference as a stateful recurrent model with constant memory and computation per time step. • LSSLs are convolutional. The linear time-invariant systems defined by $( 1 ) + ( 2 )$ are known to be explicitly representable as a continuous convolution. Moreover, the discrete-time version can be parallelized during training using convolutions [12, 44]. • LSSLs are continuous-time. The LSSL itself is a differential equation. As such, it can perform unique applications of continuous-time models, such as simulating continuous processes, handling missing data [45], and adapting to different timescales.
|
| 29 |
+
|
| 30 |
+
Surprisingly, we show that LSSLs do not sacrifice expressivity, and in fact generalize convolutions and RNNs. First, classical results from control theory imply that all 1-D convolutional kernels can be approximated by an LSSL [59]. Additionally, we provide two results relating RNNs and ODEs that may be of broader interest, e.g. showing that some RNN architectural heuristics (such as gating mechanisms) are related to the step-size $\Delta t$ and can actually be derived from ODE approximations. As corollaries of these results, we show that popular RNN methods are special cases of LSSLs.
|
| 31 |
+
|
| 32 |
+
The generality of LSSLs does come with tradeoffs. In particular, we describe and address two challenges that naive LSSL instantiations face when handling long sequences: (i) they inherit the limitations of both RNNs and CNNs at remembering long dependencies, and (ii) choosing the state matrix $A$ and timescale $\Delta t$ appropriately are critical to their performance, yet learning them is computationally infeasible. We simultaneously address these challenges by specializing LSSLs using a carefully chosen class of structured matrices $A$ , such that (i) these matrices generalize prior work on continuous-time memory [24] and mathematically capture long dependencies with respect to a learnable family of measures, and (ii) with new algorithms, LSSLs with these matrices $A$ can be theoretically sped up under certain computation models, even while learning the measure $A$ and timescale $\Delta t$ .
|
| 33 |
+
|
| 34 |
+
We empirically validate that LSSLs are widely effective on benchmark datasets and very long time series from healthcare sensor data, images, and speech.
|
| 35 |
+
|
| 36 |
+
• On benchmark datasets, LSSLs obtain SoTA over recent RNN, CNN, and NDE-based methods across sequential image classification tasks (e.g., by over $10 \%$ accuracy on sequential CIFAR) and healthcare regression tasks with length-4000 time series (by up to $80 \%$ reduction in RMSE). • To showcase the potential of LSSLs to unlock applications with extremely long sequences, we introduce a new sequential CelebA classification task with length-38000 sequences. A small LSSL comes within 2.16 accuracy points of a specialized ResNet-18 vision architecture that has $1 0 \mathrm { x }$ more parameters and is trained directly on images. • Finally, we test LSSLs on a difficult dataset of high-resolution speech clips, where usual speech pipelines pre-process the signals to reduce the length by $1 0 0 \mathrm { x }$ . When training on the raw length16000 signals, the LSSL not only (i) outperforms previous methods by over 20 accuracy points in 1/5 the training time, but (ii) outperforms all baselines that use the pre-processed length-160 sequences, overcoming the limitations of hand-crafted feature engineering.
|
| 37 |
+
|
| 38 |
+
# Summary of Contributions
|
| 39 |
+
|
| 40 |
+
• We introduce Linear State-Space Layers (LSSLs), a simple sequence-to-sequence transformation that shares the modeling advantages of recurrent, convolutional, and continuous-time methods. Conversely, we show that RNNs and CNNs can be seen as special cases of LSSLs (Section 3).
|
| 41 |
+
|
| 42 |
+
• We prove that a structured subclass of LSSLs can learn representations that solve continuous-time memorization, allowing it to adapt its measure and timescale (Section 4.1). We also provide new algorithms for these LSSLs, showing that they can be sped up computationally under an arithmetic complexity model Section 4.2.
|
| 43 |
+
|
| 44 |
+
• Empirically, we show that LSSLs stacked into a deep neural network are widely effective on time series data, even (or especially) on extremely long sequences (Section 5).
|
| 45 |
+
|
| 46 |
+
# 2 Technical Background
|
| 47 |
+
|
| 48 |
+
We summarize the preliminaries on differential equations that are necessary for this work. We first introduce two standard approximation schemes for differential equations that we will use to convert continuous-time models to discrete-time, and will be used in our results on understanding RNNs. We give further context on the step size or timescale $\Delta t$ , which is a particularly important parameter involved in this approximation process. Finally, we provide a summary of the HiPPO framework for continuous-time memorization [24], which will give us a mathematical tool for constructing LSSLs that can address long-term dependencies.
|
| 49 |
+
|
| 50 |
+
Approximations of differential equations. Any differential equation ${ \dot { x } } ( t ) = f ( t , x ( t ) )$ has an equivalent integral equation $\begin{array} { r } { x ( t ) = x ( t _ { 0 } ) + \int _ { t _ { 0 } } ^ { t } f ( s , x ( s ) ) d s } \end{array}$ . This can be numerically solved by storing some approximation for $x$ , and keeping it fixed inside $f ( t , x )$ while iterating the equation. For example, Picard iteration is often used to prove the existence of solutions to ODEs by iterating the equation $\begin{array} { r } { x _ { i + 1 } ( t ) : = x _ { i } ( t _ { 0 } ) + \int _ { t _ { 0 } } ^ { t } f ( s , x _ { i } ( s ) ) d s } \end{array}$ . In other words, it finds a sequence of functions $x _ { 0 } ( t ) , x _ { 1 } ( t ) , \ldots$ that approximate the solution $x ( t )$ of the integral equation.
|
| 51 |
+
|
| 52 |
+
Discretization. On the other hand, for a desired sequence of discrete times $t _ { i }$ , approximations to $x ( t _ { 0 } ) , x ( t _ { 1 } ) , \ldots$ can be found by iterating the equation $\begin{array} { r } { x ( t _ { i + 1 } ) = x ( t _ { i } ) + \int _ { t _ { i } } ^ { t _ { i + 1 } } f ( s , x ( s ) ) d s } \end{array}$ Different ways of approximating the RHS integral lead to different discretization schemes. We single out a discretization method called the generalized bilinear transform (GBT) which is specialized to linear ODEs of the form (1). Given a step size $\Delta t$ , the GBT update is
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
x ( t + \Delta t ) = ( I - \alpha \Delta t \cdot A ) ^ { - 1 } ( I + ( 1 - \alpha ) \Delta t \cdot A ) x ( t ) + \Delta t ( I - \alpha \Delta t \cdot A ) ^ { - 1 } B \cdot u ( t ) .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
Three important cases are: $\alpha = 0$ becomes the classic Euler method which is simply the first-order approximation $x ( t + \Delta t ) = x ( t ) + \Delta t \cdot x ^ { \prime } ( t )$ ; $\alpha = 1$ is called the backward Euler method; and $\begin{array} { r } { \dot { \alpha } = \frac { 1 } { 2 } } \end{array}$ is called the bilinear method, which preserves the stability of the system [61].
|
| 59 |
+
|
| 60 |
+
In Section 3.2 we will show that the backward Euler method and Picard iteration are actually related to RNNs. On the other hand, the bilinear discretization will be our main method for computing accurate discrete-time approximations of our continuous-time models. In particular, define $\overline { { A } }$ and $\overline { B }$ to be the matrices appearing in (3) for $\begin{array} { r } { \alpha = \frac { 1 } { 2 } } \end{array}$ . Then the discrete-time state-space model is
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { l } { { x _ { t } = \overline { { A } } x _ { t - 1 } + \overline { { B } } u _ { t } } } \\ { { y _ { t } = C x _ { t } + D u _ { t } . } } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
$\Delta t$ as a timescale. In most models, the length of dependencies they can capture is roughly proportional to $\frac { 1 } { \Delta t }$ . Thus we also refer to the step size $\Delta t$ as a timescale. This is an intrinsic part of converting a continuous-time ODE into a discrete-time recurrence, and most ODE-based RNN models have it as an important and non-trainable hyperparameter [24, 47, 58]. On the other hand, in Section 3.2 we show that the gating mechanism of classical RNNs is a version of learning $\Delta t$ . Moreover when viewed as a CNN, the timescale $\Delta t$ can be viewed as controlling the width of the convolution kernel (Section 3.2). Ideally, all ODE-based sequence models would be able to automatically learn the proper timescales.
|
| 67 |
+
|
| 68 |
+
Continuous-time memory. Consider an input function $u ( t )$ , a fixed probability measure $\omega ( t )$ , and a sequence of $N$ basis functions such as polynomials. At every time $t$ , the history of $u$ before time $t$ can be projected onto this basis, which yields a vector of coefficients $\boldsymbol { x } ( t ) \in \mathbb { R } ^ { \tilde { N } }$ that represents an optimal approximation of the history of $u$ with respect to the provided measure $\omega$ . The map taking the function $u ( t ) \in \mathbb { R }$ to coefficients $\boldsymbol { x } ( t ) \in \mathbb { R } ^ { N }$ is called the High-Order Polynomial Projection Operator (HiPPO) with respect to the measure $\omega$ . In special cases such as the uniform measure $\omega = \mathbb { I } \{ [ 0 , 1 ] \}$ and the exponentially-decaying measure $\omega ( t ) = \exp ( - t )$ , Gu et al. [24] showed that $x ( t )$ satisfies a differential equation ${ \dot { x } } ( t ) = A ( t ) x ( t ) + B ( t ) u ( t )$ (i.e., (1)) and derived closed forms for the matrix $A$ . Their framework provides a principled way to design memory models handling long dependencies; however, they prove only these few special cases.
|
| 69 |
+
|
| 70 |
+
# 3 Linear State-Space Layers (LSSL)
|
| 71 |
+
|
| 72 |
+
We define our main abstraction, a model family that generalizes recurrence and convolutions. Section 3.1 first formally defines the LSSL, then discusses how to compute it with multiple views. Conversely, Section 3.2 shows that LSSLs are related to mechanisms of the most popular RNNs.
|
| 73 |
+
|
| 74 |
+
# 3.1 Different Views of the LSSL
|
| 75 |
+
|
| 76 |
+
Given a fixed state space representation $A , B , C , D$ , an LSSL is the sequence-to-sequence mapping defined by discretizing the linear state-space model (1) and (2).
|
| 77 |
+
|
| 78 |
+
Concretely, an LSSL layer has parameters $A , B , C , D$ , and $\Delta t$ . It operates on an input $\boldsymbol { u } \in \mathbb { R } ^ { L \times H }$ represefeature equence of length defines a sequenc $L$ h timestep has an , which is combin $H$ -dimensional fea with a timescale vector. Eachto define an $h \in [ H ]$ $( u _ { t } ^ { ( h ) } ) _ { t \in [ L ] }$ $\Delta t _ { h }$ output $\boldsymbol { y } ^ { ( h ) } \in \mathbb { R } ^ { L }$ via the discretized state-space model (4)+(5).
|
| 79 |
+
|
| 80 |
+
Computationally, the discrete-time LSSL can be viewed in multiple ways (Fig. 1).
|
| 81 |
+
|
| 82 |
+
As a recurrence. The recurrent state $\boldsymbol { x } _ { t - 1 } \in \mathbb { R } ^ { H \times N }$ carries the context of all inputs before time $t$ The current state $x _ { t }$ and output $y _ { t }$ can be computed by simply following equations $( 4 ) + ( 5 )$ . Thus the LSSL is a recurrent model with efficient and stateful inference, which can consume a (potentially unbounded) sequence of inputs while requiring fixed computation/storage per time step.
|
| 83 |
+
|
| 84 |
+
As a convolution. For simplicity let the initial state be $x _ { - 1 } = 0$ . Then $( 4 ) + ( 5 )$ explicitly yields
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
y _ { k } = C \left( \overline { { A } } \right) ^ { k } \overline { { B } } u _ { 0 } + C \left( \overline { { A } } \right) ^ { k - 1 } \overline { { B } } u _ { 1 } + \cdot \cdot \cdot + C \overline { { A } } \overline { { B } } u _ { k - 1 } + \overline { { B } } u _ { k } + D u _ { k } .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
Then $y$ is simply the (non-circular) convolution $y = \mathcal { K } _ { L } ( \overline { { A } } , \overline { { B } } , C ) \ast u + D u$ , where
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
{ \mathcal { K } } _ { L } ( A , B , C ) = \left( C A ^ { i } B \right) _ { i \in [ L ] } \in \mathbb { R } ^ { L } = ( C B , C A B , \ldots , C A ^ { L - 1 } B ) .
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Thus the LSSL can be viewed as a convolutional model where the entire output $y \in \mathbb { R } ^ { H \times L }$ can be computed at once by a convolution, which can be efficiently implemented with three FFTs.
|
| 97 |
+
|
| 98 |
+
The computational bottleneck. We make a note that the bottleneck of (i) the recurrence view is matrix-vector multiplication (MVM) by the discretized state matrix $\overline { { A } }$ when simulating (4), and (ii) the convolutional view is computing the Krylov function $\kappa _ { L }$ (7). Throughout this section we assumed the LSSL parameters were fixed, which means that $\overline { { A } }$ and $\mathcal { K } _ { L } ( A , B , C )$ can be cached for efficiency. However, learning the parameters $\overline { { A } }$ and $\Delta t$ would involve repeatedly re-computing these, which is infeasible in practice. We revisit and solve this problem in Section 4.2.
|
| 99 |
+
|
| 100 |
+
# 3.2 Expressivity of LSSLs
|
| 101 |
+
|
| 102 |
+
For a model to be both recurrent and convolutional, one might expect it to be limited in other ways. Indeed, while [12, 44] also observe that certain recurrences can be replaced with a convolution, they note that it is not obvious if convolutions can be replaced by recurrences. Moreover, while the LSSL is a linear recurrence, popular RNN models are nonlinear sequence models with activation functions between each time step. We now show that LSSLs surprisingly do not have limited expressivity.
|
| 103 |
+
|
| 104 |
+
Convolutions are LSSLs. A well-known fact about state-space systems $( 1 ) + ( 2 )$ is that the output $y$ is related to the input $u$ by a convolution $\begin{array} { r } { y ( t ) = \int h ( \tau ) u ( \bar { t } - \tau ) \dot { d } \tau } \end{array}$ with the impulse response $h$ of the system. Conversely, a convolutional filter $h$ that is a rational function of degree $N$ can be represented by a state-space model of size $N$ [59]. Thus, an arbitrary convolutional filter $h$ can be approximated by a rational function (e.g., by Padé approximants) and represented by an LSSL.
|
| 105 |
+
|
| 106 |
+
In the particular case of LSSLs with HiPPO matrices (Sections 2 and 4.1), there is another intuitive interpretation of how LSSL relate to convolutions. Consider the special case when $A$ corresponds to a uniform measure (in the literature known as the LMU [58] or HiPPO-LegT [24] matrix). Then for a fixed $d t$ , equation (1) is simply memorizing the input within sliding windows of $\frac { 1 } { \Delta t }$ elements, and equation (2) extracts features from this window. Thus the LSSL can be interpreted as automatically learning convolution filters with a learnable kernel width.
|
| 107 |
+
|
| 108 |
+
RNNs are LSSLs. We show two results about RNNs that may be of broader interest. Our first result says that the ubiquitous gating mechanism of RNNs, commonly perceived as a heuristic to smooth optimization [28], is actually the analog of a step size or timescale $\Delta t$ .
|
| 109 |
+
|
| 110 |
+
Lemma 3.1. A (1-D) gated recurrence $x _ { t } = ( 1 - \sigma ( z ) ) x _ { t - 1 } + \sigma ( z ) u _ { t }$ , where $\sigma$ is the sigmoid function and $z$ is an arbitrary expression, can be viewed as the $G B T ( \alpha = 1 ,$ ) (i.e., backwards-Euler) discretization of a 1-D linear ODE ${ \dot { x } } ( t ) = - x ( t ) + u ( t )$ .
|
| 111 |
+
|
| 112 |
+
Proof. Applying a discretization requires a positive step size $\Delta t$ . The simplest way to parameterize a positive function is via the exponential function $\Delta t = \exp ( z )$ applied to any expression $z$ . Substituting this into (3) with $A = - 1 , B = 1 , \alpha = 1$ exactly produces the gated recurrence. □
|
| 113 |
+
|
| 114 |
+
While Lemma 3.1 involves approximating continuous systems using discretization, the second result is about approximating them using Picard iteration (Section 2). Roughly speaking, each layer of a deep linear RNN can be viewed as successive Picard iterates $x _ { 0 } ( t ) , x _ { 1 } ( t ) , \ldots$ approximating a function $x ( t )$ defined by a non-linear ODE. This shows that we do not lose modeling power by using linear instead of non-linear recurrences, and that the nonlinearity can instead be “moved” to the depth direction of deep neural networks to improve speed without sacrificing expressivity.
|
| 115 |
+
|
| 116 |
+
Lemma 3.2. (Infinitely) deep stacked LSSL layers of order $N = 1$ with position-wise non-linear functions can approximate any non-linear ODE $\dot { x } ( t ) = - x + f ( t , x ( t ) )$ .
|
| 117 |
+
|
| 118 |
+
We note that many of the most popular and effective RNN variants such as the LSTM [28], GRU [14], QRNN [5], and SRU [33], involve a hidden state $\boldsymbol { x } _ { t } \in \mathbb { R } ^ { H }$ that involves independently “gating” the $H$ hidden units. Applying Lemma 3.1, they actually also approximate an ODE of the form in Lemma 3.2. Thus LSSLs and these popular RNN models can be seen to all approximate the same type of underlying continuous dynamics, by using Picard approximations in the depth direction and discretization (gates) in the time direction. Appendix C gives precise statements and proofs.
|
| 119 |
+
|
| 120 |
+
# 3.3 Deep LSSLs
|
| 121 |
+
|
| 122 |
+
The basic LSSL is defined as a sequence-to-sequence map from $\mathbb { R } ^ { L } \to \mathbb { R } ^ { L }$ on 1D sequences of length $L$ , parameterized by parameters $A \in \mathbb { R } ^ { \tilde { N } \times N } , B \in \hat { \mathbb { R } } ^ { N \times 1 } , C \in \mathbb { R } ^ { 1 \times N } , D \in \mathbb { R } ^ { 1 \times \hat { 1 } } , \Delta t \in \mathbb { R } .$ Given an input sequence with hidden dimension $H$ (in other words a feature dimension greater than 1), we simply broadcast the parameters $B , C , D , \Delta t$ with an extra dimension $H$ . Each of these $H$ copies is learned independently, so that there are $H$ different versions of a 1D LSSL processing each of the input features independently. Overall, the standalone LSSL layer is a sequence-to-sequence map with the same interface as standard sequence model layers such as RNNs, CNNs, and Transformers.
|
| 123 |
+
|
| 124 |
+
The full LSSL architecture in a deep neural network is defined similarly to standard sequence models such as deep ResNets and Transformers, involving stacking LSSL layers connected with normalization layers and residual connections. Full architecture details are described in Appendix B, including the initialization of $A$ and $\Delta t$ , computational details, and other architectural details.
|
| 125 |
+
|
| 126 |
+
# 4 Combining LSSLs with Continuous-time Memorization
|
| 127 |
+
|
| 128 |
+
In Section 3 we introduced the LSSL model and showed that it shares the strengths of convolutions and recurrences while also generalizing them. We now discuss and address its main limitations, in particular handling long dependencies (Section 4.1) and efficient computation (Section 4.2).
|
| 129 |
+
|
| 130 |
+
# 4.1 Incorporating Long Dependencies into LSSLs
|
| 131 |
+
|
| 132 |
+
The generality of LSSLs means they can inherit the issues of recurrences and convolutions at addressing long dependencies (Section 1). For example, viewed as a recurrence, repeated multiplication by $\overline { { A } }$ could suffer from the vanishing gradients problem [39, 44]. We confirm empirically that LSSLs with random state matrices $A$ are actually not effective (Section 5.4) as a generic sequence model.
|
| 133 |
+
|
| 134 |
+
However, one advantage of these mathematical continuous-time models is that they are theoretically analyzable, and specific $A$ matrices can be derived to address this issue. In particular, the HiPPO framework (Section 2) describes how to memorize a function in continuous time with respect to a measure $\omega$ [24]. This operator mapping a function to a continuous representation of its past is denoted hippo $( \omega )$ , and was shown to have the form of equation (1) in three special cases. However, these matrices are non-trainable in the sense that no other $A$ matrices were known to be hippo operators.
|
| 135 |
+
|
| 136 |
+
To address this, we theoretically resolve the open question from [24], showing that hippo $( \omega )$ for any measure $\omega ^ { \mathrm { ~ 1 ~ } }$ results in (1) with a structured matrix $A$ .
|
| 137 |
+
|
| 138 |
+
Theorem 1 (Informal). For an arbitrary measure $\omega$ , the optimal memorization operator hippo $( \omega )$ has the form ${ \dot { x } } ( t ) = A x ( t ) + B u ( t )$ (1) for $a$ low recurrence-width (LRW) [17] state matrix A.
|
| 139 |
+
|
| 140 |
+
For measures covering the classical orthogonal polynomials (OPs) [52] (in particular, corresponding to Jacobi and Laguerre polynomials), there is even more structure.
|
| 141 |
+
|
| 142 |
+
Corollary 4.1. For $\omega$ corresponding to the classical $O P s ,$ , hippo $( \omega )$ is 3-quasiseparable.
|
| 143 |
+
|
| 144 |
+
Although beyond the scope of this section, we mention that LRW matrices are a type of structured matrix that have linear MVM [17]. In Appendix $\mathrm { D }$ we define this class and prove Theorem 1. Quasi
|
| 145 |
+
|
| 146 |
+
separable matrices are a related class of structured matrices with additional algorithmic properties.
|
| 147 |
+
We define these matrices in Definition 4 and prove Corollary 4.1 in Appendix D.3.
|
| 148 |
+
|
| 149 |
+
Theorem 1 tells us that a LSSL that uses a state matrix $A$ within a particular class of structured matrices would carry the theoretical interpretation of continuous-time memorization. Ideally, we would be able to automatically learn the best $A$ within this class; however, this runs into computational challenges which we address next (Section 4.2). For now, we define the LSSL-fixed or LSSL-f to be one where the $A$ matrix is fixed to one of the HiPPO matrices prescribed by [24].
|
| 150 |
+
|
| 151 |
+
# 4.2 Theoretically Efficient Algorithms for the LSSL
|
| 152 |
+
|
| 153 |
+
Although $A$ and $\Delta t$ are the most critical parameters of an LSSL which govern the state-space (c.f. Section 4.1) and timescale (Sections 2 and 3.2), they are not feasible to train in a naive LSSL. In particular, Section 3.1 noted that it would require efficient matrix-vector multiplication (MVM) and Krylov function (7) for $\overline { { A } }$ to compute the recurrent and convolutional views, respectively. However, the former seems to involve a matrix inversion (3), while the latter seems to require powering $\overline { { A } }$ up $L$ times.
|
| 154 |
+
|
| 155 |
+
In this section, we show that the same restriction of $A$ to the class of quasiseparable (Corollary 4.1), which gives an LSSL the ability to theoretically remember long dependencies, simultaneously grants it computational efficiency.
|
| 156 |
+
|
| 157 |
+
First of all, it is known that quasiseparable matrices have efficient (linear-time) MVM [40]. We show that they also have fast Krylov functions, allowing efficient training with convolutions.
|
| 158 |
+
|
| 159 |
+
Theorem 2. For any $k$ -quasiseparable matrix $A$ (with constant $k$ ) and arbitrary $B , C _ { i }$ , the Krylov function $\mathcal { K } _ { L } ( A , B , C )$ can be computed in quasi-linear time and space $\tilde { O } ( N + L )$ and logarithmic depth (i.e., is parallelizable). The operation count is in an exact arithmetic model, not accounting for bit complexity or numerical stability.
|
| 160 |
+
|
| 161 |
+
We remark that Theorem 2 is non-obvious. To illustrate, it is easy to see that unrolling (7) for a general matrix $A$ takes time $L N ^ { 2 }$ . Even if $A$ is extremely structured with linear computation, it requires $L N$ operations and linear depth. The depth can be reduced with the squaring technique (batch multiply by ${ \bar { A } } , A ^ { 2 } , A ^ { 4 } , \ldots )$ , but this then requires $L N$ intermediate storage. In fact, the algorithm for Theorem 2 is quite sophisticated (Appendix E) and involves a divide-and-conquer recursion over matrices of polynomials, using the observation that (7) is related to the power series $C ( I - A x ) ^ { - 1 } B$ .
|
| 162 |
+
|
| 163 |
+
Unless specified otherwise, the full LSSL refers to an LSSL with $A$ satisfying Corollary 4.1. In conclusion, learning within this structured matrix family simultaneously endows LSSLs with longrange memory through Theorem 1 and is theoretically computationally feasible through Theorem 2. We note the caveat that Theorem 2 is over exact arithmetic and not floating point numbers, and thus is treated more as a proof of concept that LSSLs can be computationally efficient in theory. We comment more on the limitations of the LSSL in Section 6.
|
| 164 |
+
|
| 165 |
+
# 5 Empirical Evaluation
|
| 166 |
+
|
| 167 |
+
We test LSSLs empirically on a range of time series datasets with sequences from length 160 up to 38000 (Sections 5.1 and 5.2), where they substantially improve over prior work. We additionally validate the computational and modeling benefits of LSSLs from generalizing all three main model families (Section 5.3), and analyze the benefits of incorporating principled memory representations that can be learned (Section 5.4).
|
| 168 |
+
|
| 169 |
+
Baselines. Our tasks have extensive prior work and we evaluate against previously reported best results. We highlight our primary baselines, three very recent works explicitly designed for long sequences: CKConv (a continuous-time CNN) [44], UnICORNN (an ODE-inspired RNN) [47], and Neural Controlled/Rough Differential Equations (NCDE/NRDE) (a sophisticated NDE) [31, 37]. These are the only models we are aware of that have experimented with sequences of length ${ \mathrm { > } } 1 0 \mathrm { k }$ .
|
| 170 |
+
|
| 171 |
+
# 5.1 Image and Time Series Benchmarks
|
| 172 |
+
|
| 173 |
+
Table 1: (Pixel-by-pixel image classification.) (Top) our methods. (Middle) recurrent baselines. (Bottom) convolutional $^ +$ other baselines.
|
| 174 |
+
|
| 175 |
+
<table><tr><td>Model</td><td>sMNIST</td><td>pMNIST</td><td>sCIFAR</td></tr><tr><td>LSSL</td><td>99.53</td><td>98.76</td><td>84.65</td></tr><tr><td>LSSL-fixed</td><td>99.50</td><td>98.60</td><td>81.97</td></tr><tr><td>LipschitzRNN</td><td>99.4</td><td>96.3</td><td>64.2</td></tr><tr><td>LMUFFT[12]</td><td>-</td><td>98.49</td><td>-</td></tr><tr><td>UNIcoRNN [47]</td><td>=</td><td>98.4</td><td>1</td></tr><tr><td>HiPPO-RNN [24]</td><td>98.9</td><td>98.3</td><td>61.1</td></tr><tr><td>URGRU [25]</td><td>99.27</td><td>96.51</td><td>74.4</td></tr><tr><td>IndRNN [34]</td><td>99.0</td><td>96.0</td><td>1</td></tr><tr><td>Dilated RNN [8]</td><td>98.0</td><td>96.1</td><td>=</td></tr><tr><td>r-LSTM [56]</td><td>98.4</td><td>95.2</td><td>72.2</td></tr><tr><td>CKConv [44]</td><td>99.32</td><td>98.54</td><td>63.74</td></tr><tr><td>TrellisNet [4]</td><td>99.20</td><td>98.13</td><td>73.42</td></tr><tr><td>TCN [3]</td><td>99.0</td><td>97.2</td><td>1</td></tr><tr><td>Transformer [56]</td><td>98.9</td><td>97.9</td><td>62.2</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 2: (Vital signs prediction.) RMSE for predicting respiratory rate (RR), heart rate (HR), and blood oxygen (SpO2). \* indicates our own runs to complete results for the strongest baselines.
|
| 178 |
+
|
| 179 |
+
<table><tr><td>Model</td><td>RR</td><td>HR</td><td>SpO2</td></tr><tr><td>LSSL</td><td>0.350</td><td>0.432</td><td>0.141</td></tr><tr><td>LSSL-fixed</td><td>0.378</td><td>0.561</td><td>0.221</td></tr><tr><td>UnICORNN [47]</td><td>1.06</td><td>1.39</td><td>0.869*</td></tr><tr><td>coRNN [47]</td><td>1.45</td><td>1.81</td><td>-</td></tr><tr><td>CKConv</td><td>1.214*</td><td>2.05*</td><td>1.051*</td></tr><tr><td>NRDE [37]</td><td>1.49</td><td>2.97</td><td>1.29</td></tr><tr><td>IndRNN [47]</td><td>1.47</td><td>2.1</td><td>-</td></tr><tr><td>expRNN [47]</td><td>1.57</td><td>1.87</td><td>-</td></tr><tr><td>LSTM</td><td>2.28</td><td>10.7</td><td>=</td></tr><tr><td>Transformer</td><td>2.61*</td><td>12.2*</td><td>3.02*</td></tr><tr><td>XGBoost [55]</td><td>1.67</td><td>4.72</td><td>1.52</td></tr><tr><td>Random Forest [55]</td><td>1.85</td><td>5.69</td><td>1.74</td></tr><tr><td>Ridge Regress. [55]</td><td>3.86</td><td>17.3</td><td>4.16</td></tr></table>
|
| 180 |
+
|
| 181 |
+
Table 3: (Sequential CelebA Classification.)
|
| 182 |
+
|
| 183 |
+
<table><tr><td colspan="2">LSSL-f ResNet</td></tr><tr><td>Att.</td><td>78.89 81.35</td></tr><tr><td>MSO 92.36</td><td>93.92</td></tr><tr><td>Smil.</td><td>90.95 92.89</td></tr><tr><td>WL</td><td>90.57 93.25</td></tr></table>
|
| 184 |
+
|
| 185 |
+
We test on the sequential MNIST, permuted MNIST, and sequential CIFAR tasks (Table 1), popular benchmarks which were originally designed to test the ability of recurrent models to capture long-term dependencies of length up to 1k [2]. LSSL sets SoTA on sCIFAR by more than 10 points. We note that all results were achieved with at least 5x fewer parameters than the previous SoTA (Appendix F).
|
| 186 |
+
|
| 187 |
+
We additionally use the BDIMC healthcare datasets (Table 2), a suite of widely studied time series regression problems of length 4000 on estimating vital signs. LSSL reduces RMSE by more than two-thirds on all datasets.
|
| 188 |
+
|
| 189 |
+
# 5.2 Speech and Image Classification for Very Long Time Series
|
| 190 |
+
|
| 191 |
+
Raw speech is challenging for ML models due to high-frequency sampling resulting in very long sequences. Traditional systems involve complex pipelines that require feeding mixed-and-matched hand-crafted features into DNNs [42]. Table 4 reports results for the Speech Commands (SC) dataset [31] for classification of 1-second audio clips. Few methods have made progress on the raw speech signal, instead requiring pre-processing with standard mel-frequency cepstrum coefficients (MFCC). By contrast, LSSL sets SoTA on this dataset while training on the raw signal. We note that MFCC extracts sliding window frequency coefficients and thus is related to the coefficients $x ( t )$ defined by LSSL-f (Section 2, Section 4.1, [24], Appendix D). Consequently, LSSL may be interpreted as automatically learning MFCC-type features in a trainable basis.
|
| 192 |
+
|
| 193 |
+
To stress-test the LSSL’s ability to handle extremely long sequences, we create a challenging new sequential-CelebA task, where we classify $1 7 8 \times 2 1 8$ images $\mathbf { \mu } = 3 8 0 0 0$ -length sequences for 4 facial attributes: Attractive (Att.), Mouth Slightly Open (MSO), Smiling (Smil.), Wearing Lipstick (WL) [36]. We chose the 4 most class-balanced attributes to avoid well-known problems with class imbalance. LSSL-f comes close to matching the performance of a specialized ResNet-18 image classification architecture that has $1 0 \times$ the parameters (Table 3). We emphasize we are the first to demonstrate that this is possible to do with a generic sequence model.
|
| 194 |
+
|
| 195 |
+
# 5.3 Advantages of Recurrent, Convolutional, and Continuous-time Models
|
| 196 |
+
|
| 197 |
+
We validate that the generality of LSSLs endows it with the strengths of all three families.
|
| 198 |
+
|
| 199 |
+
Convergence Speed. As a recurrent and NDE model that incorporates new theory for continuoustime memory (Section 4.1), the LSSL has strong inductive bias for sequential data, and converges rapidly to SoTA results on our benchmarks. With its convolutional view, training can be parallelized and it is also computationally efficient in practice. Table 5 compares the time it takes the LSSL-f to achieve SoTA, in either sample (measured by epochs) or computational (measured by wall clock) complexity. In all cases, LSSLs reached the target in a fraction of the time of the previous model.
|
| 200 |
+
|
| 201 |
+
Table 4: (Raw Speech Classification; Timescale Shift.) (Top): Raw signals (length 16000); $1 f$ indicates test-time change in sampling rate by a factor of $f$ . (Bottom): Pre-processed MFCC features used in prior work (length 161). $\pmb { \chi }$ denotes computationally infeasible.
|
| 202 |
+
|
| 203 |
+
<table><tr><td></td><td>LSSL</td><td>LSSL-f</td><td>CKConv</td><td>UnICORNN</td><td>N(C/R)DE</td><td>ODE-RNN [45]</td><td>GRU-ODE [16]</td></tr><tr><td>1→1</td><td>95.87</td><td>90.64</td><td>71.66</td><td>11.02</td><td>16.49</td><td>X</td><td>X</td></tr><tr><td>1</td><td>88.66</td><td>78.01</td><td>65.96</td><td>11.07</td><td>15.12</td><td>X</td><td>X</td></tr><tr><td>MFCC</td><td>93.58</td><td>92.55</td><td>95.3</td><td>90.64</td><td>89.8</td><td>65.9</td><td>47.9</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 5: (Modeling and Computational Benefits of LSSLs.) In each benchmark category, we compare the number of epochs (ep.) it takes a LSSL-f to reach the previous SoTA (PSoTA) results as well as a near-SoTA target. We also report the wall clock time it took to reach PSoTA relative to the previous best model.
|
| 206 |
+
|
| 207 |
+
<table><tr><td></td><td colspan="3">Permuted MNIST</td><td colspan="3">BDIMC Heart Rate</td><td colspan="3">Speech Commands RAW</td></tr><tr><td></td><td>98% Acc.</td><td>PSoTA</td><td>Time</td><td>1.5 RMSE</td><td>PSoTA</td><td>Time</td><td>65% Acc.</td><td>PSoTA</td><td>Time</td></tr><tr><td>LSSL-fixed</td><td>16 ep.</td><td>104 ep.</td><td>0.19×</td><td>9ep.</td><td>10 ep.</td><td>0.07×</td><td>9ep.</td><td>10 ep.</td><td>0.14×</td></tr><tr><td>CKConv</td><td>118ep.</td><td>200ep.</td><td>1.0×</td><td>X</td><td>X</td><td>X</td><td>188 ep.</td><td>280ep.</td><td>1.0×</td></tr><tr><td>UnICORNN</td><td>75 ep.</td><td>×</td><td>×</td><td>116 ep.</td><td>467 ep.</td><td>1.0×</td><td>X</td><td>×</td><td>X</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Timescale Adaptation. Table 4 also reports the results of continuous-time models that are able to handle unique settings such as missing data in time series, or test-time shift in timescale (we note that this is a realistic problem, e.g., when deployed healthcare models are tested on EEG signals that are sampled at a different rate [48, 49]). We note that many of these baselines were custom designed for such settings, which is of independent interest. On the other hand, LSSLs perform timescale adaptation by simply changing its $\Delta t$ values at inference time, while still outperforming the performance of prior methods with no shift. Additional results on the CharacterTrajectories dataset from prior work [31, 44] are in Appendix F, where LSSL is competitive with the best baselines.
|
| 210 |
+
|
| 211 |
+
# 5.4 LSSL Ablations: Learning the Memory Dynamics and Timescale
|
| 212 |
+
|
| 213 |
+
We demonstrate that the $\Delta t$ and $A$ parameters, which LSSLs are able to automatically learn in contrast to prior work, are indeed critical to the performance of these continuous-time models. We note that learning $\Delta t$ adds only $O ( H )$ parameters and learning $A$ adds $O ( N )$ parameters, adding less than $1 \%$ parameter count compared to the base models with $O ( H N )$ parameters.
|
| 214 |
+
|
| 215 |
+
Memory dynamics $A$ . We validate that vanilla LSSLs suffer from the modeling issues described in Section 4. We tested that LSSLs with random $A$ matrices (normalized appropriately) perform very poorly (e.g., $62 \%$ on pMNIST). Further, we note the consistent increase in performance from LSSL-f to LSSL despite the negligible parameter difference. These ablations show that (i) incorporating the theory of Theorem 1 is actually necessary for LSSLs, and (ii) further training the structured $A$ is additionally helpful, which can be interpreted as learning the measure for memorization (Section 4.1).
|
| 216 |
+
|
| 217 |
+
Timescale $\Delta t$ . Section 3.2 showed that LSSL’s ability to learn $\Delta t$ is its direct generalization of the critical gating mechanism of popular RNNs, which previous ODE-based RNN models [12, 24, 47, 58] cannot learn. We note that on sCIFAR, LSSL-f with poorly-specified $\Delta t$ gets only $4 9 . 3 \%$ accuracy. Additional results in Appendix F show that learning $\Delta t$ alone provides an orthogonal boost to learning $A$ , and visualizes the noticeable change in $\Delta t$ over the course of training.
|
| 218 |
+
|
| 219 |
+
# 6 Discussion
|
| 220 |
+
|
| 221 |
+
In this work we introduced a simple and principled model (LSSL) inspired by a fundamental representation of physical systems. We showed theoretically and empirically that it generalizes and inherits the strengths of the main families of modern time series models, that its main limitations of long-term memory can be resolved with new theory on continuous-time memorization, and that it is empirically effective on difficult tasks with very long sequences.
|
| 222 |
+
|
| 223 |
+
Related work. The LSSL is related to several rich lines of work on recurrent, convolutional, and continuous-time models, as well as sequence models addressing long dependencies. Appendix A provides an extended related work connecting these topics.
|
| 224 |
+
|
| 225 |
+
Tuning. Our models are very simple, consisting of identical L(inear)SSL layers with simple positionwise non-linear modules between layers (Appendix B). Our models were able to train at much higher learning rates than baselines and were not sensitive to hyperparameters, of which we did light tuning primarily on learning rate and dropout. In contrast to previous baselines [4, 31, 44], we did not use hyperparameters for improving stability and regularization such as weight decay, gradient clipping, weight norm, input dropout, etc. While the most competitive recent works introduce at least one hyperparameter of critical importance (e.g. depth and step size [37], $\alpha$ and $\Delta t$ [47], $\omega _ { 0 }$ [44]) that are difficult to tune, the LSSL-fixed has only $\Delta t$ , which the full LSSL can even learn automatically (at the expense of speed).
|
| 226 |
+
|
| 227 |
+
Limitations. Sections 1 and 3 and Fig. 1 mention that a potential benefit of having the recurrent representation of LSSLs may endow it with efficient inference. While this is theoretically possible, this work did not experiment on any applications that leverage this. Follow-up work showed that it is indeed possible in practice to speed up some applications at inference time.
|
| 228 |
+
|
| 229 |
+
Theorem 2’s algorithm is sophisticated (Appendix D) and was not implemented in the first version of this work. A follow-up to this paper found that it is not numerically stable and thus not usable on hardware. Thus the algorithmic contributions in Theorem 2 serve the purpose of a proof-of-concept that fast algorithms for the LSSL do exist in other computation models (i.e., arithmetic operations instead of floating point operations), and leave an open question as to whether fast, numerically stable, and practical algorithms for the LSSL exist.
|
| 230 |
+
|
| 231 |
+
As described in Appendix B, by freezing the $A$ matrix and $\Delta t$ timescale, the LSSL-fixed is able to be computed much faster than the full LSSL, and is comparable to prior models in practice (Table 5). However, beyond computational complexity, there is also a consideration of space efficiency. Both the LSSL and LSSL-fixed suffer from a large amount of space overhead (described in Appendix B) – using $O ( N L )$ instead of $O ( L )$ space when working on a 1D sequence of length $L$ – that essentially stems from using the latent state representation of dimension $N$ . Consequently, the LSSL can be space inefficient and we used multi-GPU training for our largest experiments (speech and high resolution images, Tables 3 and 4).
|
| 232 |
+
|
| 233 |
+
These fundamental issues with computation and space complexity were revisited and resolved in follow-up work to this paper, where a new state space model (the Structured State Space) provided a new parameterization and algorithms for state spaces.
|
| 234 |
+
|
| 235 |
+
Conclusion and future work. Modern deep learning models struggle in applications with very long temporal data such as speech, videos, and medical time-series. We hope that our conceptual and technical contributions can lead to new capabilities with simple, principled, and less engineered models. We note that our pixel-level image classification experiments, which use no heuristics (batch norm, auxiliary losses) or extra information (data augmentation), perform similar to early convnet models with vastly more parameters, and is in the spirit of recent attempts at unifying data modalities with a generic sequence model [18]. Our speech results demonstrate the possibility of learning better features than hand-crafted processing pipelines used widely in speech applications. We are excited about potential downstream applications, such as training other downstream models on top of pre-trained state space features.
|
| 236 |
+
|
| 237 |
+
# Acknowledgments
|
| 238 |
+
|
| 239 |
+
We thank Arjun Desai, Ananya Kumar, Laurel Orr, Sabri Eyuboglu, Dan Fu, Mayee Chen, Sarah Hooper, Simran Arora, and Trenton Chang for helpful feedback on earlier drafts. We thank David Romero and James Morrill for discussions and additional results for baselines used in our experiments. This work was done with the support of Google Cloud credits under HAI proposals 540994170283 and 578192719349. AR and IJ are supported under NSF grant CCF-1763481. KS is supported by the Wu Tsai Neuroscience Interdisciplinary Graduate Fellowship. We gratefully acknowledge the support of NIH under No. U54EB020405 (Mobilize), NSF under Nos. CCF1763315 (Beyond Sparsity), CCF1563078 (Volume to Velocity), and 1937301 (RTML); ONR under No. N000141712266 (Unifying Weak Supervision); ONR N00014-20-1-2480: Understanding and Applying Non-Euclidean Geometry in Machine Learning; N000142012275 (NEPTUNE); the Moore Foundation, NXP, Xilinx,
|
| 240 |
+
|
| 241 |
+
LETI-CEA, Intel, IBM, Microsoft, NEC, Toshiba, TSMC, ARM, Hitachi, BASF, Accenture, Ericsson, Qualcomm, Analog Devices, the Okawa Foundation, American Family Insurance, Google Cloud, Salesforce, Total, the HAI-AWS Cloud Credits for Research program, the Stanford Data Science Initiative (SDSI), and members of the Stanford DAWN project: Facebook, Google, and VMWare. The Mobilize Center is a Biomedical Technology Resource Center, funded by the NIH National Institute of Biomedical Imaging and Bioengineering through Grant P41EB027060. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views, policies, or endorsements, either expressed or implied, of NIH, ONR, or the U.S. Government.
|
| 242 |
+
|
| 243 |
+
# References
|
| 244 |
+
|
| 245 |
+
[1] George B. (George Brown) Arfken, Hans Jürgen Weber, and Frank E Harris. Mathematical methods for physicists : a comprehensive guide / George B. Arfken, Hans J. Weber, Frank E. Harris. Academic Press, Amsterdam, 7th ed. edition, 2013. ISBN 0-12-384654-4.
|
| 246 |
+
[2] Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In The International Conference on Machine Learning (ICML), pages 1120–1128, 2016.
|
| 247 |
+
[3] Shaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018.
|
| 248 |
+
[4] Shaojie Bai, J Zico Kolter, and Vladlen Koltun. Trellis networks for sequence modeling. In The International Conference on Learning Representations (ICLR), 2019.
|
| 249 |
+
[5] James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016.
|
| 250 |
+
[6] John Charles Butcher and Nicolette Goodwin. Numerical methods for ordinary differential equations, volume 2. Wiley Online Library, 2008.
|
| 251 |
+
[7] Bo Chang, Minmin Chen, Eldad Haber, and Ed H Chi. Antisymmetricrnn: A dynamical system view on recurrent neural networks. In International Conference on Learning Representations, 2019.
|
| 252 |
+
[8] Shiyu Chang, Yang Zhang, Wei Han, Mo Yu, Xiaoxiao Guo, Wei Tan, Xiaodong Cui, Michael Witbrock, Mark Hasegawa-Johnson, and Thomas S Huang. Dilated recurrent neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
|
| 253 |
+
[9] Zhengping Che, Sanjay Purushotham, Kyunghyun Cho, David Sontag, and Yan Liu. Recurrent neural networks for multivariate time series with missing values. Scientific reports, 8(1):1–12, 2018.
|
| 254 |
+
[10] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In Advances in neural information processing systems, pages 6571–6583, 2018.
|
| 255 |
+
[11] T. S. Chihara. An introduction to orthogonal polynomials. Dover Books on Mathematics. Dover Publications, 2011. ISBN 9780486479293.
|
| 256 |
+
[12] Narsimha Chilkuri and Chris Eliasmith. Parallelizing legendre memory unit training. The International Conference on Machine Learning (ICML), 2021.
|
| 257 |
+
[13] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251–1258, 2017.
|
| 258 |
+
[14] Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
|
| 259 |
+
|
| 260 |
+
[15] Jared Quincy Davis, Albert Gu, Tri Dao, Krzysztof Choromanski, Christopher Ré, Percy Liang, and Chelsea Finn. Catformer: Designing stable transformers via sensitivity analysis. In The International Conference on Machine Learning (ICML), 2021.
|
| 261 |
+
|
| 262 |
+
[16] Edward De Brouwer, Jaak Simm, Adam Arany, and Yves Moreau. Gru-ode-bayes: Continuous modeling of sporadically-observed time series. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
|
| 263 |
+
|
| 264 |
+
[17] Christopher De Sa, Albert Gu, Rohan Puttagunta, Christopher Ré, and Atri Rudra. A twopronged progress in structured dense matrix vector multiplication. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1060–1079. SIAM, 2018.
|
| 265 |
+
|
| 266 |
+
[18] 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.
|
| 267 |
+
|
| 268 |
+
[19] Y. Eidelman and I. Gohberg. On a new class of structured matrices. Integral Equations and Operator Theory, 34, 1999.
|
| 269 |
+
|
| 270 |
+
[20] N Benjamin Erichson, Omri Azencot, Alejandro Queiruga, Liam Hodgkinson, and Michael W Mahoney. Lipschitz recurrent neural networks. In International Conference on Learning Representations, 2021.
|
| 271 |
+
|
| 272 |
+
[21] Karl J Friston, Lee Harrison, and Will Penny. Dynamic causal modelling. Neuroimage, 19(4): 1273–1302, 2003.
|
| 273 |
+
|
| 274 |
+
[22] Ken-ichi Funahashi and Yuichi Nakamura. Approximation of dynamical systems by continuous time recurrent neural networks. Neural networks, 6(6):801–806, 1993.
|
| 275 |
+
|
| 276 |
+
[23] Gene H Golub and Charles F Van Loan. Matrix computations, volume 3. JHU press, 2013.
|
| 277 |
+
|
| 278 |
+
[24] Albert Gu, Tri Dao, Stefano Ermon, Atri Rudra, and Christopher Ré. Hippo: Recurrent memory with optimal polynomial projections. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips. cc/paper/2020/hash/102f0bb6efb3a6128a3c750dd16729be-Abstract.html.
|
| 279 |
+
|
| 280 |
+
[25] Albert Gu, Caglar Gulcehre, Tom Le Paine, Matt Hoffman, and Razvan Pascanu. Improving the gating mechanism of recurrent neural networks. In The International Conference on Machine Learning (ICML), 2020.
|
| 281 |
+
|
| 282 |
+
[26] Ramin Hasani, Mathias Lechner, Alexander Amini, Lucas Liebenwein, Max Tschaikowski, Gerald Teschl, and Daniela Rus. Closed-form continuous-depth models. arXiv preprint arXiv:2106.13898, 2021.
|
| 283 |
+
|
| 284 |
+
[27] Ramin Hasani, Mathias Lechner, Alexander Amini, Daniela Rus, and Radu Grosu. Liquid time-constant networks. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021.
|
| 285 |
+
|
| 286 |
+
[28] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997.
|
| 287 |
+
|
| 288 |
+
[29] Ian D Jordan, Piotr Aleksander Sokół, and Il Memming Park. Gated recurrent units viewed through the lens of continuous time dynamical systems. Frontiers in computational neuroscience, page 67, 2021.
|
| 289 |
+
|
| 290 |
+
[30] Anil Kag, Ziming Zhang, and Venkatesh Saligrama. Rnns incrementally evolving on an equilibrium manifold: A panacea for vanishing and exploding gradients? In International Conference on Learning Representations, 2020.
|
| 291 |
+
|
| 292 |
+
[31] Patrick Kidger, James Morrill, James Foster, and Terry Lyons. Neural controlled differential equations for irregular time series. arXiv preprint arXiv:2005.08926, 2020.
|
| 293 |
+
|
| 294 |
+
[32] Mathias Lechner and Ramin Hasani. Learning long-term dependencies in irregularly-sampled time series. arXiv preprint arXiv:2006.04418, 2020.
|
| 295 |
+
[33] Tao Lei, Yu Zhang, Sida I Wang, Hui Dai, and Yoav Artzi. Simple recurrent units for highly parallelizable recurrence. arXiv preprint arXiv:1709.02755, 2017.
|
| 296 |
+
[34] Shuai Li, Wanqing Li, Chris Cook, Ce Zhu, and Yanbo Gao. Independently recurrent neural network (IndRNN): Building a longer and deeper RNN. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5457–5466, 2018.
|
| 297 |
+
[35] Liyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen, and Jiawei Han. Understanding the difficulty of training transformers. The International Conference on Machine Learning (ICML), 2020.
|
| 298 |
+
[36] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, pages 3730–3738. IEEE Computer Society, 2015. ISBN 978-1-4673-8391-2. URL http://dblp.uni-trier.de/db/conf/iccv/iccv2015.html#LiuLWT15.
|
| 299 |
+
[37] James Morrill, Cristopher Salvi, Patrick Kidger, James Foster, and Terry Lyons. Neural rough differential equations for long time series. The International Conference on Machine Learning (ICML), 2021.
|
| 300 |
+
[38] Murphy Yuezhen Niu, Lior Horesh, and Isaac Chuang. Recurrent neural networks in the eye of differential equations. arXiv preprint arXiv:1904.12933, 2019.
|
| 301 |
+
[39] Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International conference on machine learning, pages 1310–1318, 2013.
|
| 302 |
+
[40] Clément Pernet. Computing with quasiseparable matrices. In Proceedings of the ACM on International Symposium on Symbolic and Algebraic Computation, pages 389–396, 2016.
|
| 303 |
+
[41] KB Petersen and MS Pedersen. The matrix cookbook, version 20121115. Technical Univ. Denmark, Kongens Lyngby, Denmark, Tech. Rep, 3274, 2012.
|
| 304 |
+
[42] M. Ravanelli, T. Parcollet, and Y. Bengio. The pytorch-kaldi speech recognition toolkit. In In Proc. of ICASSP, 2019.
|
| 305 |
+
[43] David W Romero, Robert-Jan Bruintjes, Jakub M Tomczak, Erik J Bekkers, Mark Hoogendoorn, and Jan C van Gemert. Flexconv: Continuous kernel convolutions with differentiable kernel sizes. arXiv preprint arXiv:2110.08059, 2021.
|
| 306 |
+
[44] David W Romero, Anna Kuzina, Erik J Bekkers, Jakub M Tomczak, and Mark Hoogendoorn. Ckconv: Continuous kernel convolution for sequential data. arXiv preprint arXiv:2102.02611, 2021.
|
| 307 |
+
[45] Yulia Rubanova, Tian Qi Chen, and David K Duvenaud. Latent ordinary differential equations for irregularly-sampled time series. In Advances in Neural Information Processing Systems, pages 5321–5331, 2019.
|
| 308 |
+
[46] T. Konstantin Rusch and Siddhartha Mishra. Coupled oscillatory recurrent neural network (cornn): An accurate and (gradient) stable architecture for learning long time dependencies. In International Conference on Learning Representations, 2021.
|
| 309 |
+
[47] T Konstantin Rusch and Siddhartha Mishra. Unicornn: A recurrent model for learning very long time dependencies. The International Conference on Machine Learning (ICML), 2021.
|
| 310 |
+
[48] Khaled Saab, Jared Dunnmon, Christopher Ré, Daniel Rubin, and Christopher Lee-Messer. Weak supervision as an efficient approach for automated seizure detection in electroencephalography. NPJ Digital Medicine, 3(1):1–12, 2020.
|
| 311 |
+
[49] Vinit Shah, Eva Von Weltin, Silvia Lopez, James Riley McHugh, Lillian Veloso, Meysam Golmohammadi, Iyad Obeid, and Joseph Picone. The Temple University hospital seizure detection corpus. Frontiers in neuroinformatics, 12:83, 2018.
|
| 312 |
+
[50] Jie Shen, Tao Tang, and Li-Lian Wang. Orthogonal Polynomials and Related Approximation Results, pages 47–140. Springer Berlin Heidelberg, Berlin, Heidelberg, 2011. ISBN 978- 3-540-71041-7. doi: 10.1007/978-3-540-71041-7_3. URL https://doi.org/10.1007/ 978-3-540-71041-7_3.
|
| 313 |
+
[51] Victor Shoup. A computational introduction to number theory and algebra. Cambridge university press, 2009.
|
| 314 |
+
[52] G. Szegö. Orthogonal Polynomials. Number v.23 in American Mathematical Society colloquium publications. American Mathematical Society, 1967. ISBN 9780821889527.
|
| 315 |
+
[53] G. Szego.˝ Orthogonal Polynomials. American Mathematical Society: Colloquium publications. American Mathematical Society, 1975. ISBN 9780821810231.
|
| 316 |
+
[54] Corentin Tallec and Yann Ollivier. Can recurrent neural networks warp time? In The International Conference on Learning Representations (ICLR), 2018.
|
| 317 |
+
[55] Chang Wei Tan, Christoph Bergmeir, Francois Petitjean, and Geoffrey I Webb. Time series extrinsic regression. Data Mining and Knowledge Discovery, pages 1–29, 2021. doi: https: //doi.org/10.1007/s10618-021-00745-9.
|
| 318 |
+
[56] Trieu H Trinh, Andrew M Dai, Minh-Thang Luong, and Quoc V Le. Learning longer-term dependencies in RNNs with auxiliary losses. In The International Conference on Machine Learning (ICML), 2018.
|
| 319 |
+
[57] 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 (NeurIPS), 2017.
|
| 320 |
+
[58] Aaron Voelker, Ivana Kajic, and Chris Eliasmith. Legendre memory units: Continuous-time ´ representation in recurrent neural networks. In Advances in Neural Information Processing Systems, pages 15544–15553, 2019.
|
| 321 |
+
[59] Robert L Williams, Douglas A Lawrence, et al. Linear state-space control systems. Wiley Online Library, 2007.
|
| 322 |
+
[60] Max A Woodbury. Inverting modified matrices. Memorandum report, 42:106, 1950.
|
| 323 |
+
[61] Guofeng Zhang, Tongwen Chen, and Xiang Chen. Performance recovery in digital implementation of analogue systems. SIAM journal on control and optimization, 45(6):2207–2223, 2007.
|
| 324 |
+
[62] Huaguang Zhang, Zhanshan Wang, and Derong Liu. A comprehensive review of stability analysis of continuous-time recurrent neural networks. IEEE Transactions on Neural Networks and Learning Systems, 25(7):1229–1262, 2014.
|
parse/train/yWd42CWN3c/yWd42CWN3c_content_list.json
ADDED
|
@@ -0,0 +1,1557 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layers ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
272,
|
| 8 |
+
122,
|
| 9 |
+
730,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Albert $\\mathbf { G } \\mathbf { u } ^ { \\dagger }$ , Isys Johnson‡, Karan Goel†, Khaled Saab∗, Tri Dao†, Atri Rudra‡, Christopher Ré† ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
169,
|
| 19 |
+
250,
|
| 20 |
+
833,
|
| 21 |
+
266
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "† Department of Computer Science, Stanford University ∗ Department of Electrical Engineering, Stanford University ‡ Department of Computer Science and Engineering, University at Buffalo, SUNY {albertgu,knrg,ksaab,trid}@stanford.edu, chrismre@cs.stanford.edu {isysjohn,atri}@buffalo.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
223,
|
| 30 |
+
266,
|
| 31 |
+
764,
|
| 32 |
+
337
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
372,
|
| 43 |
+
535,
|
| 44 |
+
388
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Recurrent neural networks (RNNs), temporal convolutions, and neural differential equations (NDEs) are popular families of deep learning models for time-series data, each with unique strengths and tradeoffs in modeling power and computational efficiency. We introduce a simple sequence model inspired by control systems that generalizes these approaches while addressing their shortcomings. The Linear State-Space Layer (LSSL) maps a sequence $u \\mapsto y$ by simply simulating a linear continuous-time state-space representation ${ \\dot { x } } = A x + B u , y = C x + D u$ Theoretically, we show that LSSL models are closely related to the three aforementioned families of models and inherit their strengths. For example, they generalize convolutions to continuous-time, explain common RNN heuristics, and share features of NDEs such as time-scale adaptation. We then incorporate and generalize recent theory on continuous-time memorization to introduce a trainable subset of structured matrices $A$ that endow LSSLs with long-range memory. Empirically, stacking LSSL layers into a simple deep neural network obtains state-of-the-art results across time series benchmarks for long dependencies in sequential image classification, real-world healthcare regression tasks, and speech. On a difficult speech classification task with length-16000 sequences, LSSL outperforms prior approaches by 24 accuracy points, and even outperforms baselines that use handcrafted features on $1 0 0 \\mathrm { x }$ shorter sequences. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
405,
|
| 54 |
+
766,
|
| 55 |
+
667
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
694,
|
| 66 |
+
310,
|
| 67 |
+
712
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "A longstanding challenge in machine learning is efficiently modeling sequential data longer than a few thousand time steps. The usual paradigms for designing sequence models involve recurrence (e.g. RNNs), convolutions (e.g. CNNs), or differential equations (e.g. NDEs), which each come with tradeoffs. For example, RNNs are a natural stateful model for sequential data that require only constant computation/storage per time step, but are slow to train and suffer from optimization difficulties (e.g., the \"vanishing gradient problem\" [39]), which empirically limits their ability to handle long sequences. CNNs encode local context and enjoy fast, parallelizable training, but are not sequential, resulting in more expensive inference and an inherent limitation on the context length. NDEs are a principled mathematical model that can theoretically address continuous-time problems and long-term dependencies [37], but are very inefficient. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
727,
|
| 77 |
+
825,
|
| 78 |
+
866
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Ideally, a model family would combine the strengths of these paradigms, providing properties like parallelizable training (convolutional), stateful inference (recurrence) and time-scale adaptation (differential equations), while handling very long sequences in a computationally efficient way. Several recent works have turned to this question. These include the CKConv, which models a continuous convolution kernel [44]; several ODE-inspired RNNs, such as the UnICORNN [47]; the LMU, which speeds up a specific linear recurrence using convolutions [12, 58]; and HiPPO [24], a generalization of the LMU that introduces a theoretical framework for continuous-time memorization. However, these model families come at the price of reduced expressivity: intuitively, a family that is both convolutional and recurrent should be more restrictive than either. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
871,
|
| 88 |
+
823,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/ea61b96555207397a42570dc9e353cb2fe433bafb6a857f9f99af2dbe77cad26.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: (Three views of the LSSL) A Linear State Space Layer layer is a map $u _ { t } \\ \\in \\ \\mathbb { R } \\ \\to \\ y _ { t } \\ \\in \\ \\mathbb { R }$ , where each feature $u _ { t } \\mapsto y _ { t }$ is defined by discretizing a state-space model $A , B , C , D$ with a parameter $\\Delta t$ The underlying state space model defines a discrete recurrence through combining the state matrix $A$ and timescale $\\Delta t$ into a transition matrix $\\overline { { A } }$ . (Left) As an implicit continuous model, irregularly-spaced data can be handled by discretizing the same matrix $A$ using a different timescale $\\Delta t$ . (Center) As a recurrent model, inference can be performed efficiently by computing the layer timewise (i.e., one vertical slice at a time $( u _ { t } , x _ { t } , y _ { t } ) , ( u _ { t + 1 } , x _ { t + 1 } , y _ { t + 1 } ) , \\dots )$ , by unrolling the linear recurrence. (Right) As a convolutional model, training can be performed efficiently by computing the layer depthwise in parallel (i.e., one horizontal slice at a time $( u _ { t } ) _ { t \\in [ L ] } , ( y _ { t } ) _ { t \\in [ L ] } , \\dots . )$ , by convolving with a particular filter. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
173,
|
| 102 |
+
89,
|
| 103 |
+
823,
|
| 104 |
+
330
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
477,
|
| 114 |
+
825,
|
| 115 |
+
574
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Our first goal is to construct an expressive model family that combines all 3 paradigms while preserving their strengths. The Linear State-Space Layer (LSSL) is a simple sequence model that maps a 1-dimensional function or sequence $u ( t ) \\mapsto y ( t )$ through an implicit state $x ( t )$ by simulating a linear continuous-time state-space representation in discrete-time ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
580,
|
| 125 |
+
825,
|
| 126 |
+
637
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "equation",
|
| 132 |
+
"img_path": "images/3363a1c309c8c100c36518628e0bc2d017eb37c15c392315c394f0f6a7aa545a.jpg",
|
| 133 |
+
"text": "$$\n\\begin{array} { l } { \\dot { \\boldsymbol { x } } ( t ) = \\boldsymbol { A } \\boldsymbol { x } ( t ) + \\boldsymbol { B } \\boldsymbol { u } ( t ) } \\\\ { \\boldsymbol { y } ( t ) = \\boldsymbol { C } \\boldsymbol { x } ( t ) + \\boldsymbol { D } \\boldsymbol { u } ( t ) , } \\end{array}\n$$",
|
| 134 |
+
"text_format": "latex",
|
| 135 |
+
"bbox": [
|
| 136 |
+
418,
|
| 137 |
+
641,
|
| 138 |
+
578,
|
| 139 |
+
680
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "where $A$ controls the evolution of the system and $B , C , D$ are projection parameters. The LSSL can be viewed as an instantiation of each family, inheriting their strengths (Fig. 1): ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
173,
|
| 148 |
+
683,
|
| 149 |
+
825,
|
| 150 |
+
712
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "• LSSLs are recurrent. If a discrete step-size $\\Delta t$ is specified, the LSSL can be discretized into a linear recurrence using standard techniques, and simulated during inference as a stateful recurrent model with constant memory and computation per time step. • LSSLs are convolutional. The linear time-invariant systems defined by $( 1 ) + ( 2 )$ are known to be explicitly representable as a continuous convolution. Moreover, the discrete-time version can be parallelized during training using convolutions [12, 44]. • LSSLs are continuous-time. The LSSL itself is a differential equation. As such, it can perform unique applications of continuous-time models, such as simulating continuous processes, handling missing data [45], and adapting to different timescales. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
217,
|
| 159 |
+
722,
|
| 160 |
+
825,
|
| 161 |
+
858
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "Surprisingly, we show that LSSLs do not sacrifice expressivity, and in fact generalize convolutions and RNNs. First, classical results from control theory imply that all 1-D convolutional kernels can be approximated by an LSSL [59]. Additionally, we provide two results relating RNNs and ODEs that may be of broader interest, e.g. showing that some RNN architectural heuristics (such as gating mechanisms) are related to the step-size $\\Delta t$ and can actually be derived from ODE approximations. As corollaries of these results, we show that popular RNN methods are special cases of LSSLs. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
869,
|
| 171 |
+
825,
|
| 172 |
+
911
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
92,
|
| 182 |
+
823,
|
| 183 |
+
133
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "The generality of LSSLs does come with tradeoffs. In particular, we describe and address two challenges that naive LSSL instantiations face when handling long sequences: (i) they inherit the limitations of both RNNs and CNNs at remembering long dependencies, and (ii) choosing the state matrix $A$ and timescale $\\Delta t$ appropriately are critical to their performance, yet learning them is computationally infeasible. We simultaneously address these challenges by specializing LSSLs using a carefully chosen class of structured matrices $A$ , such that (i) these matrices generalize prior work on continuous-time memory [24] and mathematically capture long dependencies with respect to a learnable family of measures, and (ii) with new algorithms, LSSLs with these matrices $A$ can be theoretically sped up under certain computation models, even while learning the measure $A$ and timescale $\\Delta t$ . ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
138,
|
| 193 |
+
825,
|
| 194 |
+
277
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "We empirically validate that LSSLs are widely effective on benchmark datasets and very long time series from healthcare sensor data, images, and speech. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
173,
|
| 203 |
+
284,
|
| 204 |
+
821,
|
| 205 |
+
313
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "• On benchmark datasets, LSSLs obtain SoTA over recent RNN, CNN, and NDE-based methods across sequential image classification tasks (e.g., by over $10 \\%$ accuracy on sequential CIFAR) and healthcare regression tasks with length-4000 time series (by up to $80 \\%$ reduction in RMSE). • To showcase the potential of LSSLs to unlock applications with extremely long sequences, we introduce a new sequential CelebA classification task with length-38000 sequences. A small LSSL comes within 2.16 accuracy points of a specialized ResNet-18 vision architecture that has $1 0 \\mathrm { x }$ more parameters and is trained directly on images. • Finally, we test LSSLs on a difficult dataset of high-resolution speech clips, where usual speech pipelines pre-process the signals to reduce the length by $1 0 0 \\mathrm { x }$ . When training on the raw length16000 signals, the LSSL not only (i) outperforms previous methods by over 20 accuracy points in 1/5 the training time, but (ii) outperforms all baselines that use the pre-processed length-160 sequences, overcoming the limitations of hand-crafted feature engineering. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
173,
|
| 214 |
+
324,
|
| 215 |
+
825,
|
| 216 |
+
505
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Summary of Contributions ",
|
| 223 |
+
"text_level": 1,
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
516,
|
| 227 |
+
362,
|
| 228 |
+
531
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "• We introduce Linear State-Space Layers (LSSLs), a simple sequence-to-sequence transformation that shares the modeling advantages of recurrent, convolutional, and continuous-time methods. Conversely, we show that RNNs and CNNs can be seen as special cases of LSSLs (Section 3). ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
542,
|
| 238 |
+
823,
|
| 239 |
+
585
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "• We prove that a structured subclass of LSSLs can learn representations that solve continuous-time memorization, allowing it to adapt its measure and timescale (Section 4.1). We also provide new algorithms for these LSSLs, showing that they can be sped up computationally under an arithmetic complexity model Section 4.2. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
592,
|
| 249 |
+
821,
|
| 250 |
+
647
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "• Empirically, we show that LSSLs stacked into a deep neural network are widely effective on time series data, even (or especially) on extremely long sequences (Section 5). ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
171,
|
| 259 |
+
654,
|
| 260 |
+
823,
|
| 261 |
+
683
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "2 Technical Background ",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
703,
|
| 272 |
+
393,
|
| 273 |
+
720
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "We summarize the preliminaries on differential equations that are necessary for this work. We first introduce two standard approximation schemes for differential equations that we will use to convert continuous-time models to discrete-time, and will be used in our results on understanding RNNs. We give further context on the step size or timescale $\\Delta t$ , which is a particularly important parameter involved in this approximation process. Finally, we provide a summary of the HiPPO framework for continuous-time memorization [24], which will give us a mathematical tool for constructing LSSLs that can address long-term dependencies. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
736,
|
| 283 |
+
825,
|
| 284 |
+
833
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Approximations of differential equations. Any differential equation ${ \\dot { x } } ( t ) = f ( t , x ( t ) )$ has an equivalent integral equation $\\begin{array} { r } { x ( t ) = x ( t _ { 0 } ) + \\int _ { t _ { 0 } } ^ { t } f ( s , x ( s ) ) d s } \\end{array}$ . This can be numerically solved by storing some approximation for $x$ , and keeping it fixed inside $f ( t , x )$ while iterating the equation. For example, Picard iteration is often used to prove the existence of solutions to ODEs by iterating the equation $\\begin{array} { r } { x _ { i + 1 } ( t ) : = x _ { i } ( t _ { 0 } ) + \\int _ { t _ { 0 } } ^ { t } f ( s , x _ { i } ( s ) ) d s } \\end{array}$ . In other words, it finds a sequence of functions $x _ { 0 } ( t ) , x _ { 1 } ( t ) , \\ldots$ that approximate the solution $x ( t )$ of the integral equation. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
849,
|
| 294 |
+
825,
|
| 295 |
+
911
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "",
|
| 302 |
+
"bbox": [
|
| 303 |
+
169,
|
| 304 |
+
88,
|
| 305 |
+
825,
|
| 306 |
+
123
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "Discretization. On the other hand, for a desired sequence of discrete times $t _ { i }$ , approximations to $x ( t _ { 0 } ) , x ( t _ { 1 } ) , \\ldots$ can be found by iterating the equation $\\begin{array} { r } { x ( t _ { i + 1 } ) = x ( t _ { i } ) + \\int _ { t _ { i } } ^ { t _ { i + 1 } } f ( s , x ( s ) ) d s } \\end{array}$ Different ways of approximating the RHS integral lead to different discretization schemes. We single out a discretization method called the generalized bilinear transform (GBT) which is specialized to linear ODEs of the form (1). Given a step size $\\Delta t$ , the GBT update is ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
173,
|
| 315 |
+
136,
|
| 316 |
+
825,
|
| 317 |
+
210
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "equation",
|
| 323 |
+
"img_path": "images/7db6e6577fd369def46b7667f96c7e9576c4ece41cb37429237aaf7e02befacc.jpg",
|
| 324 |
+
"text": "$$\nx ( t + \\Delta t ) = ( I - \\alpha \\Delta t \\cdot A ) ^ { - 1 } ( I + ( 1 - \\alpha ) \\Delta t \\cdot A ) x ( t ) + \\Delta t ( I - \\alpha \\Delta t \\cdot A ) ^ { - 1 } B \\cdot u ( t ) .\n$$",
|
| 325 |
+
"text_format": "latex",
|
| 326 |
+
"bbox": [
|
| 327 |
+
199,
|
| 328 |
+
214,
|
| 329 |
+
779,
|
| 330 |
+
233
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Three important cases are: $\\alpha = 0$ becomes the classic Euler method which is simply the first-order approximation $x ( t + \\Delta t ) = x ( t ) + \\Delta t \\cdot x ^ { \\prime } ( t )$ ; $\\alpha = 1$ is called the backward Euler method; and $\\begin{array} { r } { \\dot { \\alpha } = \\frac { 1 } { 2 } } \\end{array}$ is called the bilinear method, which preserves the stability of the system [61]. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
237,
|
| 340 |
+
825,
|
| 341 |
+
280
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "In Section 3.2 we will show that the backward Euler method and Picard iteration are actually related to RNNs. On the other hand, the bilinear discretization will be our main method for computing accurate discrete-time approximations of our continuous-time models. In particular, define $\\overline { { A } }$ and $\\overline { B }$ to be the matrices appearing in (3) for $\\begin{array} { r } { \\alpha = \\frac { 1 } { 2 } } \\end{array}$ . Then the discrete-time state-space model is ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
285,
|
| 351 |
+
825,
|
| 352 |
+
343
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "equation",
|
| 358 |
+
"img_path": "images/9bd9db7d4be2e9c092037784c1ffa1e081089c9486018aa2005ee98a25163de2.jpg",
|
| 359 |
+
"text": "$$\n\\begin{array} { l } { { x _ { t } = \\overline { { A } } x _ { t - 1 } + \\overline { { B } } u _ { t } } } \\\\ { { y _ { t } = C x _ { t } + D u _ { t } . } } \\end{array}\n$$",
|
| 360 |
+
"text_format": "latex",
|
| 361 |
+
"bbox": [
|
| 362 |
+
431,
|
| 363 |
+
348,
|
| 364 |
+
565,
|
| 365 |
+
387
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "$\\Delta t$ as a timescale. In most models, the length of dependencies they can capture is roughly proportional to $\\frac { 1 } { \\Delta t }$ . Thus we also refer to the step size $\\Delta t$ as a timescale. This is an intrinsic part of converting a continuous-time ODE into a discrete-time recurrence, and most ODE-based RNN models have it as an important and non-trainable hyperparameter [24, 47, 58]. On the other hand, in Section 3.2 we show that the gating mechanism of classical RNNs is a version of learning $\\Delta t$ . Moreover when viewed as a CNN, the timescale $\\Delta t$ can be viewed as controlling the width of the convolution kernel (Section 3.2). Ideally, all ODE-based sequence models would be able to automatically learn the proper timescales. ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
173,
|
| 374 |
+
396,
|
| 375 |
+
826,
|
| 376 |
+
508
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "Continuous-time memory. Consider an input function $u ( t )$ , a fixed probability measure $\\omega ( t )$ , and a sequence of $N$ basis functions such as polynomials. At every time $t$ , the history of $u$ before time $t$ can be projected onto this basis, which yields a vector of coefficients $\\boldsymbol { x } ( t ) \\in \\mathbb { R } ^ { \\tilde { N } }$ that represents an optimal approximation of the history of $u$ with respect to the provided measure $\\omega$ . The map taking the function $u ( t ) \\in \\mathbb { R }$ to coefficients $\\boldsymbol { x } ( t ) \\in \\mathbb { R } ^ { N }$ is called the High-Order Polynomial Projection Operator (HiPPO) with respect to the measure $\\omega$ . In special cases such as the uniform measure $\\omega = \\mathbb { I } \\{ [ 0 , 1 ] \\}$ and the exponentially-decaying measure $\\omega ( t ) = \\exp ( - t )$ , Gu et al. [24] showed that $x ( t )$ satisfies a differential equation ${ \\dot { x } } ( t ) = A ( t ) x ( t ) + B ( t ) u ( t )$ (i.e., (1)) and derived closed forms for the matrix $A$ . Their framework provides a principled way to design memory models handling long dependencies; however, they prove only these few special cases. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
521,
|
| 386 |
+
825,
|
| 387 |
+
661
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 3
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "3 Linear State-Space Layers (LSSL) ",
|
| 394 |
+
"text_level": 1,
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
679,
|
| 398 |
+
493,
|
| 399 |
+
696
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "We define our main abstraction, a model family that generalizes recurrence and convolutions. Section 3.1 first formally defines the LSSL, then discusses how to compute it with multiple views. Conversely, Section 3.2 shows that LSSLs are related to mechanisms of the most popular RNNs. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
710,
|
| 409 |
+
826,
|
| 410 |
+
752
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "3.1 Different Views of the LSSL ",
|
| 417 |
+
"text_level": 1,
|
| 418 |
+
"bbox": [
|
| 419 |
+
176,
|
| 420 |
+
768,
|
| 421 |
+
406,
|
| 422 |
+
784
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "Given a fixed state space representation $A , B , C , D$ , an LSSL is the sequence-to-sequence mapping defined by discretizing the linear state-space model (1) and (2). ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
792,
|
| 432 |
+
823,
|
| 433 |
+
823
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Concretely, an LSSL layer has parameters $A , B , C , D$ , and $\\Delta t$ . It operates on an input $\\boldsymbol { u } \\in \\mathbb { R } ^ { L \\times H }$ represefeature equence of length defines a sequenc $L$ h timestep has an , which is combin $H$ -dimensional fea with a timescale vector. Eachto define an $h \\in [ H ]$ $( u _ { t } ^ { ( h ) } ) _ { t \\in [ L ] }$ $\\Delta t _ { h }$ output $\\boldsymbol { y } ^ { ( h ) } \\in \\mathbb { R } ^ { L }$ via the discretized state-space model (4)+(5). ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
827,
|
| 443 |
+
825,
|
| 444 |
+
891
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "Computationally, the discrete-time LSSL can be viewed in multiple ways (Fig. 1). ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
896,
|
| 454 |
+
710,
|
| 455 |
+
912
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "As a recurrence. The recurrent state $\\boldsymbol { x } _ { t - 1 } \\in \\mathbb { R } ^ { H \\times N }$ carries the context of all inputs before time $t$ The current state $x _ { t }$ and output $y _ { t }$ can be computed by simply following equations $( 4 ) + ( 5 )$ . Thus the LSSL is a recurrent model with efficient and stateful inference, which can consume a (potentially unbounded) sequence of inputs while requiring fixed computation/storage per time step. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
89,
|
| 465 |
+
825,
|
| 466 |
+
147
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "As a convolution. For simplicity let the initial state be $x _ { - 1 } = 0$ . Then $( 4 ) + ( 5 )$ explicitly yields ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
165,
|
| 475 |
+
160,
|
| 476 |
+
805,
|
| 477 |
+
175
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"img_path": "images/fd4807e51f260253a8048dba1c0bbde101a0bff058b60c18d276c2e2f053cfb2.jpg",
|
| 484 |
+
"text": "$$\ny _ { k } = C \\left( \\overline { { A } } \\right) ^ { k } \\overline { { B } } u _ { 0 } + C \\left( \\overline { { A } } \\right) ^ { k - 1 } \\overline { { B } } u _ { 1 } + \\cdot \\cdot \\cdot + C \\overline { { A } } \\overline { { B } } u _ { k - 1 } + \\overline { { B } } u _ { k } + D u _ { k } .\n$$",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
276,
|
| 488 |
+
180,
|
| 489 |
+
722,
|
| 490 |
+
200
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 4
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Then $y$ is simply the (non-circular) convolution $y = \\mathcal { K } _ { L } ( \\overline { { A } } , \\overline { { B } } , C ) \\ast u + D u$ , where ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
174,
|
| 499 |
+
205,
|
| 500 |
+
723,
|
| 501 |
+
223
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "equation",
|
| 507 |
+
"img_path": "images/20d9bd6c296e7fc8fbbd78044df915f5b25b046b65451b937427ffc40483d41f.jpg",
|
| 508 |
+
"text": "$$\n{ \\mathcal { K } } _ { L } ( A , B , C ) = \\left( C A ^ { i } B \\right) _ { i \\in [ L ] } \\in \\mathbb { R } ^ { L } = ( C B , C A B , \\ldots , C A ^ { L - 1 } B ) .\n$$",
|
| 509 |
+
"text_format": "latex",
|
| 510 |
+
"bbox": [
|
| 511 |
+
271,
|
| 512 |
+
228,
|
| 513 |
+
725,
|
| 514 |
+
252
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "Thus the LSSL can be viewed as a convolutional model where the entire output $y \\in \\mathbb { R } ^ { H \\times L }$ can be computed at once by a convolution, which can be efficiently implemented with three FFTs. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
266,
|
| 524 |
+
823,
|
| 525 |
+
295
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "The computational bottleneck. We make a note that the bottleneck of (i) the recurrence view is matrix-vector multiplication (MVM) by the discretized state matrix $\\overline { { A } }$ when simulating (4), and (ii) the convolutional view is computing the Krylov function $\\kappa _ { L }$ (7). Throughout this section we assumed the LSSL parameters were fixed, which means that $\\overline { { A } }$ and $\\mathcal { K } _ { L } ( A , B , C )$ can be cached for efficiency. However, learning the parameters $\\overline { { A } }$ and $\\Delta t$ would involve repeatedly re-computing these, which is infeasible in practice. We revisit and solve this problem in Section 4.2. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
309,
|
| 535 |
+
825,
|
| 536 |
+
396
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "3.2 Expressivity of LSSLs ",
|
| 543 |
+
"text_level": 1,
|
| 544 |
+
"bbox": [
|
| 545 |
+
174,
|
| 546 |
+
411,
|
| 547 |
+
367,
|
| 548 |
+
426
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "For a model to be both recurrent and convolutional, one might expect it to be limited in other ways. Indeed, while [12, 44] also observe that certain recurrences can be replaced with a convolution, they note that it is not obvious if convolutions can be replaced by recurrences. Moreover, while the LSSL is a linear recurrence, popular RNN models are nonlinear sequence models with activation functions between each time step. We now show that LSSLs surprisingly do not have limited expressivity. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
436,
|
| 558 |
+
825,
|
| 559 |
+
507
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "Convolutions are LSSLs. A well-known fact about state-space systems $( 1 ) + ( 2 )$ is that the output $y$ is related to the input $u$ by a convolution $\\begin{array} { r } { y ( t ) = \\int h ( \\tau ) u ( \\bar { t } - \\tau ) \\dot { d } \\tau } \\end{array}$ with the impulse response $h$ of the system. Conversely, a convolutional filter $h$ that is a rational function of degree $N$ can be represented by a state-space model of size $N$ [59]. Thus, an arbitrary convolutional filter $h$ can be approximated by a rational function (e.g., by Padé approximants) and represented by an LSSL. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
521,
|
| 569 |
+
825,
|
| 570 |
+
592
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "In the particular case of LSSLs with HiPPO matrices (Sections 2 and 4.1), there is another intuitive interpretation of how LSSL relate to convolutions. Consider the special case when $A$ corresponds to a uniform measure (in the literature known as the LMU [58] or HiPPO-LegT [24] matrix). Then for a fixed $d t$ , equation (1) is simply memorizing the input within sliding windows of $\\frac { 1 } { \\Delta t }$ elements, and equation (2) extracts features from this window. Thus the LSSL can be interpreted as automatically learning convolution filters with a learnable kernel width. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
597,
|
| 580 |
+
825,
|
| 581 |
+
680
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "RNNs are LSSLs. We show two results about RNNs that may be of broader interest. Our first result says that the ubiquitous gating mechanism of RNNs, commonly perceived as a heuristic to smooth optimization [28], is actually the analog of a step size or timescale $\\Delta t$ . ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
174,
|
| 590 |
+
695,
|
| 591 |
+
825,
|
| 592 |
+
737
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Lemma 3.1. A (1-D) gated recurrence $x _ { t } = ( 1 - \\sigma ( z ) ) x _ { t - 1 } + \\sigma ( z ) u _ { t }$ , where $\\sigma$ is the sigmoid function and $z$ is an arbitrary expression, can be viewed as the $G B T ( \\alpha = 1 ,$ ) (i.e., backwards-Euler) discretization of a 1-D linear ODE ${ \\dot { x } } ( t ) = - x ( t ) + u ( t )$ . ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
741,
|
| 602 |
+
825,
|
| 603 |
+
785
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Proof. Applying a discretization requires a positive step size $\\Delta t$ . The simplest way to parameterize a positive function is via the exponential function $\\Delta t = \\exp ( z )$ applied to any expression $z$ . Substituting this into (3) with $A = - 1 , B = 1 , \\alpha = 1$ exactly produces the gated recurrence. □ ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
173,
|
| 612 |
+
797,
|
| 613 |
+
826,
|
| 614 |
+
840
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 4
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "While Lemma 3.1 involves approximating continuous systems using discretization, the second result is about approximating them using Picard iteration (Section 2). Roughly speaking, each layer of a deep linear RNN can be viewed as successive Picard iterates $x _ { 0 } ( t ) , x _ { 1 } ( t ) , \\ldots$ approximating a function $x ( t )$ defined by a non-linear ODE. This shows that we do not lose modeling power by using linear instead of non-linear recurrences, and that the nonlinearity can instead be “moved” to the depth direction of deep neural networks to improve speed without sacrificing expressivity. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
854,
|
| 624 |
+
825,
|
| 625 |
+
911
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 4
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "",
|
| 632 |
+
"bbox": [
|
| 633 |
+
173,
|
| 634 |
+
92,
|
| 635 |
+
823,
|
| 636 |
+
119
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Lemma 3.2. (Infinitely) deep stacked LSSL layers of order $N = 1$ with position-wise non-linear functions can approximate any non-linear ODE $\\dot { x } ( t ) = - x + f ( t , x ( t ) )$ . ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
123,
|
| 646 |
+
823,
|
| 647 |
+
151
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "We note that many of the most popular and effective RNN variants such as the LSTM [28], GRU [14], QRNN [5], and SRU [33], involve a hidden state $\\boldsymbol { x } _ { t } \\in \\mathbb { R } ^ { H }$ that involves independently “gating” the $H$ hidden units. Applying Lemma 3.1, they actually also approximate an ODE of the form in Lemma 3.2. Thus LSSLs and these popular RNN models can be seen to all approximate the same type of underlying continuous dynamics, by using Picard approximations in the depth direction and discretization (gates) in the time direction. Appendix C gives precise statements and proofs. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
173,
|
| 656 |
+
161,
|
| 657 |
+
826,
|
| 658 |
+
246
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "3.3 Deep LSSLs ",
|
| 665 |
+
"text_level": 1,
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
261,
|
| 669 |
+
299,
|
| 670 |
+
276
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "The basic LSSL is defined as a sequence-to-sequence map from $\\mathbb { R } ^ { L } \\to \\mathbb { R } ^ { L }$ on 1D sequences of length $L$ , parameterized by parameters $A \\in \\mathbb { R } ^ { \\tilde { N } \\times N } , B \\in \\hat { \\mathbb { R } } ^ { N \\times 1 } , C \\in \\mathbb { R } ^ { 1 \\times N } , D \\in \\mathbb { R } ^ { 1 \\times \\hat { 1 } } , \\Delta t \\in \\mathbb { R } .$ Given an input sequence with hidden dimension $H$ (in other words a feature dimension greater than 1), we simply broadcast the parameters $B , C , D , \\Delta t$ with an extra dimension $H$ . Each of these $H$ copies is learned independently, so that there are $H$ different versions of a 1D LSSL processing each of the input features independently. Overall, the standalone LSSL layer is a sequence-to-sequence map with the same interface as standard sequence model layers such as RNNs, CNNs, and Transformers. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
286,
|
| 680 |
+
825,
|
| 681 |
+
383
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "The full LSSL architecture in a deep neural network is defined similarly to standard sequence models such as deep ResNets and Transformers, involving stacking LSSL layers connected with normalization layers and residual connections. Full architecture details are described in Appendix B, including the initialization of $A$ and $\\Delta t$ , computational details, and other architectural details. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
390,
|
| 691 |
+
825,
|
| 692 |
+
445
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 5
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "4 Combining LSSLs with Continuous-time Memorization ",
|
| 699 |
+
"text_level": 1,
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
464,
|
| 703 |
+
668,
|
| 704 |
+
482
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "In Section 3 we introduced the LSSL model and showed that it shares the strengths of convolutions and recurrences while also generalizing them. We now discuss and address its main limitations, in particular handling long dependencies (Section 4.1) and efficient computation (Section 4.2). ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
174,
|
| 713 |
+
496,
|
| 714 |
+
825,
|
| 715 |
+
537
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 5
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "4.1 Incorporating Long Dependencies into LSSLs ",
|
| 722 |
+
"text_level": 1,
|
| 723 |
+
"bbox": [
|
| 724 |
+
176,
|
| 725 |
+
554,
|
| 726 |
+
529,
|
| 727 |
+
569
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 5
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "The generality of LSSLs means they can inherit the issues of recurrences and convolutions at addressing long dependencies (Section 1). For example, viewed as a recurrence, repeated multiplication by $\\overline { { A } }$ could suffer from the vanishing gradients problem [39, 44]. We confirm empirically that LSSLs with random state matrices $A$ are actually not effective (Section 5.4) as a generic sequence model. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
579,
|
| 737 |
+
825,
|
| 738 |
+
636
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "However, one advantage of these mathematical continuous-time models is that they are theoretically analyzable, and specific $A$ matrices can be derived to address this issue. In particular, the HiPPO framework (Section 2) describes how to memorize a function in continuous time with respect to a measure $\\omega$ [24]. This operator mapping a function to a continuous representation of its past is denoted hippo $( \\omega )$ , and was shown to have the form of equation (1) in three special cases. However, these matrices are non-trainable in the sense that no other $A$ matrices were known to be hippo operators. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
642,
|
| 748 |
+
825,
|
| 749 |
+
726
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 5
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "To address this, we theoretically resolve the open question from [24], showing that hippo $( \\omega )$ for any measure $\\omega ^ { \\mathrm { ~ 1 ~ } }$ results in (1) with a structured matrix $A$ . ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
173,
|
| 758 |
+
732,
|
| 759 |
+
823,
|
| 760 |
+
761
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 5
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "Theorem 1 (Informal). For an arbitrary measure $\\omega$ , the optimal memorization operator hippo $( \\omega )$ has the form ${ \\dot { x } } ( t ) = A x ( t ) + B u ( t )$ (1) for $a$ low recurrence-width (LRW) [17] state matrix A. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
171,
|
| 769 |
+
763,
|
| 770 |
+
825,
|
| 771 |
+
792
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 5
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "For measures covering the classical orthogonal polynomials (OPs) [52] (in particular, corresponding to Jacobi and Laguerre polynomials), there is even more structure. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
169,
|
| 780 |
+
803,
|
| 781 |
+
823,
|
| 782 |
+
830
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 5
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Corollary 4.1. For $\\omega$ corresponding to the classical $O P s ,$ , hippo $( \\omega )$ is 3-quasiseparable. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
171,
|
| 791 |
+
834,
|
| 792 |
+
754,
|
| 793 |
+
849
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 5
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Although beyond the scope of this section, we mention that LRW matrices are a type of structured matrix that have linear MVM [17]. In Appendix $\\mathrm { D }$ we define this class and prove Theorem 1. Quasi",
|
| 800 |
+
"bbox": [
|
| 801 |
+
176,
|
| 802 |
+
859,
|
| 803 |
+
826,
|
| 804 |
+
888
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 5
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "separable matrices are a related class of structured matrices with additional algorithmic properties. \nWe define these matrices in Definition 4 and prove Corollary 4.1 in Appendix D.3. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
171,
|
| 813 |
+
90,
|
| 814 |
+
825,
|
| 815 |
+
119
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Theorem 1 tells us that a LSSL that uses a state matrix $A$ within a particular class of structured matrices would carry the theoretical interpretation of continuous-time memorization. Ideally, we would be able to automatically learn the best $A$ within this class; however, this runs into computational challenges which we address next (Section 4.2). For now, we define the LSSL-fixed or LSSL-f to be one where the $A$ matrix is fixed to one of the HiPPO matrices prescribed by [24]. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
126,
|
| 825 |
+
825,
|
| 826 |
+
195
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "4.2 Theoretically Efficient Algorithms for the LSSL ",
|
| 833 |
+
"text_level": 1,
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
213,
|
| 837 |
+
544,
|
| 838 |
+
229
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 6
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Although $A$ and $\\Delta t$ are the most critical parameters of an LSSL which govern the state-space (c.f. Section 4.1) and timescale (Sections 2 and 3.2), they are not feasible to train in a naive LSSL. In particular, Section 3.1 noted that it would require efficient matrix-vector multiplication (MVM) and Krylov function (7) for $\\overline { { A } }$ to compute the recurrent and convolutional views, respectively. However, the former seems to involve a matrix inversion (3), while the latter seems to require powering $\\overline { { A } }$ up $L$ times. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
241,
|
| 848 |
+
826,
|
| 849 |
+
327
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 6
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "In this section, we show that the same restriction of $A$ to the class of quasiseparable (Corollary 4.1), which gives an LSSL the ability to theoretically remember long dependencies, simultaneously grants it computational efficiency. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
333,
|
| 859 |
+
825,
|
| 860 |
+
375
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "First of all, it is known that quasiseparable matrices have efficient (linear-time) MVM [40]. We show that they also have fast Krylov functions, allowing efficient training with convolutions. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
381,
|
| 870 |
+
823,
|
| 871 |
+
410
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Theorem 2. For any $k$ -quasiseparable matrix $A$ (with constant $k$ ) and arbitrary $B , C _ { i }$ , the Krylov function $\\mathcal { K } _ { L } ( A , B , C )$ can be computed in quasi-linear time and space $\\tilde { O } ( N + L )$ and logarithmic depth (i.e., is parallelizable). The operation count is in an exact arithmetic model, not accounting for bit complexity or numerical stability. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
415,
|
| 881 |
+
825,
|
| 882 |
+
473
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "We remark that Theorem 2 is non-obvious. To illustrate, it is easy to see that unrolling (7) for a general matrix $A$ takes time $L N ^ { 2 }$ . Even if $A$ is extremely structured with linear computation, it requires $L N$ operations and linear depth. The depth can be reduced with the squaring technique (batch multiply by ${ \\bar { A } } , A ^ { 2 } , A ^ { 4 } , \\ldots )$ , but this then requires $L N$ intermediate storage. In fact, the algorithm for Theorem 2 is quite sophisticated (Appendix E) and involves a divide-and-conquer recursion over matrices of polynomials, using the observation that (7) is related to the power series $C ( I - A x ) ^ { - 1 } B$ . ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
484,
|
| 892 |
+
825,
|
| 893 |
+
568
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Unless specified otherwise, the full LSSL refers to an LSSL with $A$ satisfying Corollary 4.1. In conclusion, learning within this structured matrix family simultaneously endows LSSLs with longrange memory through Theorem 1 and is theoretically computationally feasible through Theorem 2. We note the caveat that Theorem 2 is over exact arithmetic and not floating point numbers, and thus is treated more as a proof of concept that LSSLs can be computationally efficient in theory. We comment more on the limitations of the LSSL in Section 6. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
574,
|
| 903 |
+
825,
|
| 904 |
+
657
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 6
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "5 Empirical Evaluation ",
|
| 911 |
+
"text_level": 1,
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
679,
|
| 915 |
+
385,
|
| 916 |
+
696
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 6
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "We test LSSLs empirically on a range of time series datasets with sequences from length 160 up to 38000 (Sections 5.1 and 5.2), where they substantially improve over prior work. We additionally validate the computational and modeling benefits of LSSLs from generalizing all three main model families (Section 5.3), and analyze the benefits of incorporating principled memory representations that can be learned (Section 5.4). ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
174,
|
| 925 |
+
712,
|
| 926 |
+
825,
|
| 927 |
+
782
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 6
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "Baselines. Our tasks have extensive prior work and we evaluate against previously reported best results. We highlight our primary baselines, three very recent works explicitly designed for long sequences: CKConv (a continuous-time CNN) [44], UnICORNN (an ODE-inspired RNN) [47], and Neural Controlled/Rough Differential Equations (NCDE/NRDE) (a sophisticated NDE) [31, 37]. These are the only models we are aware of that have experimented with sequences of length ${ \\mathrm { > } } 1 0 \\mathrm { k }$ . ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
799,
|
| 937 |
+
825,
|
| 938 |
+
869
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 6
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "5.1 Image and Time Series Benchmarks ",
|
| 945 |
+
"text_level": 1,
|
| 946 |
+
"bbox": [
|
| 947 |
+
174,
|
| 948 |
+
888,
|
| 949 |
+
464,
|
| 950 |
+
904
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 6
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "table",
|
| 956 |
+
"img_path": "images/a0c1ee0c8a61237f716db61a1e312b6cd64aa25d8714720d529bd578535c9b1c.jpg",
|
| 957 |
+
"table_caption": [
|
| 958 |
+
"Table 1: (Pixel-by-pixel image classification.) (Top) our methods. (Middle) recurrent baselines. (Bottom) convolutional $^ +$ other baselines. "
|
| 959 |
+
],
|
| 960 |
+
"table_footnote": [],
|
| 961 |
+
"table_body": "<table><tr><td>Model</td><td>sMNIST</td><td>pMNIST</td><td>sCIFAR</td></tr><tr><td>LSSL</td><td>99.53</td><td>98.76</td><td>84.65</td></tr><tr><td>LSSL-fixed</td><td>99.50</td><td>98.60</td><td>81.97</td></tr><tr><td>LipschitzRNN</td><td>99.4</td><td>96.3</td><td>64.2</td></tr><tr><td>LMUFFT[12]</td><td>-</td><td>98.49</td><td>-</td></tr><tr><td>UNIcoRNN [47]</td><td>=</td><td>98.4</td><td>1</td></tr><tr><td>HiPPO-RNN [24]</td><td>98.9</td><td>98.3</td><td>61.1</td></tr><tr><td>URGRU [25]</td><td>99.27</td><td>96.51</td><td>74.4</td></tr><tr><td>IndRNN [34]</td><td>99.0</td><td>96.0</td><td>1</td></tr><tr><td>Dilated RNN [8]</td><td>98.0</td><td>96.1</td><td>=</td></tr><tr><td>r-LSTM [56]</td><td>98.4</td><td>95.2</td><td>72.2</td></tr><tr><td>CKConv [44]</td><td>99.32</td><td>98.54</td><td>63.74</td></tr><tr><td>TrellisNet [4]</td><td>99.20</td><td>98.13</td><td>73.42</td></tr><tr><td>TCN [3]</td><td>99.0</td><td>97.2</td><td>1</td></tr><tr><td>Transformer [56]</td><td>98.9</td><td>97.9</td><td>62.2</td></tr></table>",
|
| 962 |
+
"bbox": [
|
| 963 |
+
173,
|
| 964 |
+
135,
|
| 965 |
+
495,
|
| 966 |
+
352
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 7
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "table",
|
| 972 |
+
"img_path": "images/b6ae7158a1368b3fc579d0066105ea49943564b019318a5454df021a4c791665.jpg",
|
| 973 |
+
"table_caption": [
|
| 974 |
+
"Table 2: (Vital signs prediction.) RMSE for predicting respiratory rate (RR), heart rate (HR), and blood oxygen (SpO2). \\* indicates our own runs to complete results for the strongest baselines. "
|
| 975 |
+
],
|
| 976 |
+
"table_footnote": [],
|
| 977 |
+
"table_body": "<table><tr><td>Model</td><td>RR</td><td>HR</td><td>SpO2</td></tr><tr><td>LSSL</td><td>0.350</td><td>0.432</td><td>0.141</td></tr><tr><td>LSSL-fixed</td><td>0.378</td><td>0.561</td><td>0.221</td></tr><tr><td>UnICORNN [47]</td><td>1.06</td><td>1.39</td><td>0.869*</td></tr><tr><td>coRNN [47]</td><td>1.45</td><td>1.81</td><td>-</td></tr><tr><td>CKConv</td><td>1.214*</td><td>2.05*</td><td>1.051*</td></tr><tr><td>NRDE [37]</td><td>1.49</td><td>2.97</td><td>1.29</td></tr><tr><td>IndRNN [47]</td><td>1.47</td><td>2.1</td><td>-</td></tr><tr><td>expRNN [47]</td><td>1.57</td><td>1.87</td><td>-</td></tr><tr><td>LSTM</td><td>2.28</td><td>10.7</td><td>=</td></tr><tr><td>Transformer</td><td>2.61*</td><td>12.2*</td><td>3.02*</td></tr><tr><td>XGBoost [55]</td><td>1.67</td><td>4.72</td><td>1.52</td></tr><tr><td>Random Forest [55]</td><td>1.85</td><td>5.69</td><td>1.74</td></tr><tr><td>Ridge Regress. [55]</td><td>3.86</td><td>17.3</td><td>4.16</td></tr></table>",
|
| 978 |
+
"bbox": [
|
| 979 |
+
529,
|
| 980 |
+
147,
|
| 981 |
+
823,
|
| 982 |
+
352
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 7
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "table",
|
| 988 |
+
"img_path": "images/2c90ccca19ad02ebcc3350137398f629aa3a43db4f8326d7f8f3bbd69f345415.jpg",
|
| 989 |
+
"table_caption": [
|
| 990 |
+
"Table 3: (Sequential CelebA Classification.) "
|
| 991 |
+
],
|
| 992 |
+
"table_footnote": [],
|
| 993 |
+
"table_body": "<table><tr><td colspan=\"2\">LSSL-f ResNet</td></tr><tr><td>Att.</td><td>78.89 81.35</td></tr><tr><td>MSO 92.36</td><td>93.92</td></tr><tr><td>Smil.</td><td>90.95 92.89</td></tr><tr><td>WL</td><td>90.57 93.25</td></tr></table>",
|
| 994 |
+
"bbox": [
|
| 995 |
+
658,
|
| 996 |
+
397,
|
| 997 |
+
825,
|
| 998 |
+
474
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 7
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "We test on the sequential MNIST, permuted MNIST, and sequential CIFAR tasks (Table 1), popular benchmarks which were originally designed to test the ability of recurrent models to capture long-term dependencies of length up to 1k [2]. LSSL sets SoTA on sCIFAR by more than 10 points. We note that all results were achieved with at least 5x fewer parameters than the previous SoTA (Appendix F). ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
174,
|
| 1007 |
+
382,
|
| 1008 |
+
647,
|
| 1009 |
+
465
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 7
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "We additionally use the BDIMC healthcare datasets (Table 2), a suite of widely studied time series regression problems of length 4000 on estimating vital signs. LSSL reduces RMSE by more than two-thirds on all datasets. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
472,
|
| 1019 |
+
722,
|
| 1020 |
+
513
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 7
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "5.2 Speech and Image Classification for Very Long Time Series ",
|
| 1027 |
+
"text_level": 1,
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
534,
|
| 1031 |
+
620,
|
| 1032 |
+
549
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 7
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "Raw speech is challenging for ML models due to high-frequency sampling resulting in very long sequences. Traditional systems involve complex pipelines that require feeding mixed-and-matched hand-crafted features into DNNs [42]. Table 4 reports results for the Speech Commands (SC) dataset [31] for classification of 1-second audio clips. Few methods have made progress on the raw speech signal, instead requiring pre-processing with standard mel-frequency cepstrum coefficients (MFCC). By contrast, LSSL sets SoTA on this dataset while training on the raw signal. We note that MFCC extracts sliding window frequency coefficients and thus is related to the coefficients $x ( t )$ defined by LSSL-f (Section 2, Section 4.1, [24], Appendix D). Consequently, LSSL may be interpreted as automatically learning MFCC-type features in a trainable basis. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
560,
|
| 1042 |
+
825,
|
| 1043 |
+
685
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 7
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "To stress-test the LSSL’s ability to handle extremely long sequences, we create a challenging new sequential-CelebA task, where we classify $1 7 8 \\times 2 1 8$ images $\\mathbf { \\mu } = 3 8 0 0 0$ -length sequences for 4 facial attributes: Attractive (Att.), Mouth Slightly Open (MSO), Smiling (Smil.), Wearing Lipstick (WL) [36]. We chose the 4 most class-balanced attributes to avoid well-known problems with class imbalance. LSSL-f comes close to matching the performance of a specialized ResNet-18 image classification architecture that has $1 0 \\times$ the parameters (Table 3). We emphasize we are the first to demonstrate that this is possible to do with a generic sequence model. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
174,
|
| 1052 |
+
691,
|
| 1053 |
+
825,
|
| 1054 |
+
789
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 7
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "5.3 Advantages of Recurrent, Convolutional, and Continuous-time Models ",
|
| 1061 |
+
"text_level": 1,
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
176,
|
| 1064 |
+
808,
|
| 1065 |
+
702,
|
| 1066 |
+
823
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 7
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "We validate that the generality of LSSLs endows it with the strengths of all three families. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
835,
|
| 1076 |
+
759,
|
| 1077 |
+
849
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 7
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Convergence Speed. As a recurrent and NDE model that incorporates new theory for continuoustime memory (Section 4.1), the LSSL has strong inductive bias for sequential data, and converges rapidly to SoTA results on our benchmarks. With its convolutional view, training can be parallelized and it is also computationally efficient in practice. Table 5 compares the time it takes the LSSL-f to achieve SoTA, in either sample (measured by epochs) or computational (measured by wall clock) complexity. In all cases, LSSLs reached the target in a fraction of the time of the previous model. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
176,
|
| 1086 |
+
856,
|
| 1087 |
+
825,
|
| 1088 |
+
911
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 7
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "table",
|
| 1094 |
+
"img_path": "images/0839f7b63cdbb5b2c0abf8efa07be474802686d09348e611e19f56338002fc6e.jpg",
|
| 1095 |
+
"table_caption": [
|
| 1096 |
+
"Table 4: (Raw Speech Classification; Timescale Shift.) (Top): Raw signals (length 16000); $1 f$ indicates test-time change in sampling rate by a factor of $f$ . (Bottom): Pre-processed MFCC features used in prior work (length 161). $\\pmb { \\chi }$ denotes computationally infeasible. "
|
| 1097 |
+
],
|
| 1098 |
+
"table_footnote": [],
|
| 1099 |
+
"table_body": "<table><tr><td></td><td>LSSL</td><td>LSSL-f</td><td>CKConv</td><td>UnICORNN</td><td>N(C/R)DE</td><td>ODE-RNN [45]</td><td>GRU-ODE [16]</td></tr><tr><td>1→1</td><td>95.87</td><td>90.64</td><td>71.66</td><td>11.02</td><td>16.49</td><td>X</td><td>X</td></tr><tr><td>1</td><td>88.66</td><td>78.01</td><td>65.96</td><td>11.07</td><td>15.12</td><td>X</td><td>X</td></tr><tr><td>MFCC</td><td>93.58</td><td>92.55</td><td>95.3</td><td>90.64</td><td>89.8</td><td>65.9</td><td>47.9</td></tr></table>",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
176,
|
| 1102 |
+
136,
|
| 1103 |
+
818,
|
| 1104 |
+
209
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 8
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "table",
|
| 1110 |
+
"img_path": "images/5e7d762f841076429af4e7ff68c2d20a9426fd0476b73bc02820c7f460dbff29.jpg",
|
| 1111 |
+
"table_caption": [
|
| 1112 |
+
"Table 5: (Modeling and Computational Benefits of LSSLs.) In each benchmark category, we compare the number of epochs (ep.) it takes a LSSL-f to reach the previous SoTA (PSoTA) results as well as a near-SoTA target. We also report the wall clock time it took to reach PSoTA relative to the previous best model. "
|
| 1113 |
+
],
|
| 1114 |
+
"table_footnote": [],
|
| 1115 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Permuted MNIST</td><td colspan=\"3\">BDIMC Heart Rate</td><td colspan=\"3\">Speech Commands RAW</td></tr><tr><td></td><td>98% Acc.</td><td>PSoTA</td><td>Time</td><td>1.5 RMSE</td><td>PSoTA</td><td>Time</td><td>65% Acc.</td><td>PSoTA</td><td>Time</td></tr><tr><td>LSSL-fixed</td><td>16 ep.</td><td>104 ep.</td><td>0.19×</td><td>9ep.</td><td>10 ep.</td><td>0.07×</td><td>9ep.</td><td>10 ep.</td><td>0.14×</td></tr><tr><td>CKConv</td><td>118ep.</td><td>200ep.</td><td>1.0×</td><td>X</td><td>X</td><td>X</td><td>188 ep.</td><td>280ep.</td><td>1.0×</td></tr><tr><td>UnICORNN</td><td>75 ep.</td><td>×</td><td>×</td><td>116 ep.</td><td>467 ep.</td><td>1.0×</td><td>X</td><td>×</td><td>X</td></tr></table>",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
173,
|
| 1118 |
+
270,
|
| 1119 |
+
825,
|
| 1120 |
+
352
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 8
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
173,
|
| 1129 |
+
380,
|
| 1130 |
+
823,
|
| 1131 |
+
407
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 8
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Timescale Adaptation. Table 4 also reports the results of continuous-time models that are able to handle unique settings such as missing data in time series, or test-time shift in timescale (we note that this is a realistic problem, e.g., when deployed healthcare models are tested on EEG signals that are sampled at a different rate [48, 49]). We note that many of these baselines were custom designed for such settings, which is of independent interest. On the other hand, LSSLs perform timescale adaptation by simply changing its $\\Delta t$ values at inference time, while still outperforming the performance of prior methods with no shift. Additional results on the CharacterTrajectories dataset from prior work [31, 44] are in Appendix F, where LSSL is competitive with the best baselines. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
174,
|
| 1140 |
+
414,
|
| 1141 |
+
825,
|
| 1142 |
+
525
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "5.4 LSSL Ablations: Learning the Memory Dynamics and Timescale ",
|
| 1149 |
+
"text_level": 1,
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
176,
|
| 1152 |
+
541,
|
| 1153 |
+
665,
|
| 1154 |
+
558
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 8
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "We demonstrate that the $\\Delta t$ and $A$ parameters, which LSSLs are able to automatically learn in contrast to prior work, are indeed critical to the performance of these continuous-time models. We note that learning $\\Delta t$ adds only $O ( H )$ parameters and learning $A$ adds $O ( N )$ parameters, adding less than $1 \\%$ parameter count compared to the base models with $O ( H N )$ parameters. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
568,
|
| 1164 |
+
825,
|
| 1165 |
+
625
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 8
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Memory dynamics $A$ . We validate that vanilla LSSLs suffer from the modeling issues described in Section 4. We tested that LSSLs with random $A$ matrices (normalized appropriately) perform very poorly (e.g., $62 \\%$ on pMNIST). Further, we note the consistent increase in performance from LSSL-f to LSSL despite the negligible parameter difference. These ablations show that (i) incorporating the theory of Theorem 1 is actually necessary for LSSLs, and (ii) further training the structured $A$ is additionally helpful, which can be interpreted as learning the measure for memorization (Section 4.1). ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
630,
|
| 1175 |
+
825,
|
| 1176 |
+
713
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 8
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Timescale $\\Delta t$ . Section 3.2 showed that LSSL’s ability to learn $\\Delta t$ is its direct generalization of the critical gating mechanism of popular RNNs, which previous ODE-based RNN models [12, 24, 47, 58] cannot learn. We note that on sCIFAR, LSSL-f with poorly-specified $\\Delta t$ gets only $4 9 . 3 \\%$ accuracy. Additional results in Appendix F show that learning $\\Delta t$ alone provides an orthogonal boost to learning $A$ , and visualizes the noticeable change in $\\Delta t$ over the course of training. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
174,
|
| 1185 |
+
719,
|
| 1186 |
+
825,
|
| 1187 |
+
790
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 8
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "6 Discussion ",
|
| 1194 |
+
"text_level": 1,
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
809,
|
| 1198 |
+
292,
|
| 1199 |
+
827
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 8
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "In this work we introduced a simple and principled model (LSSL) inspired by a fundamental representation of physical systems. We showed theoretically and empirically that it generalizes and inherits the strengths of the main families of modern time series models, that its main limitations of long-term memory can be resolved with new theory on continuous-time memorization, and that it is empirically effective on difficult tasks with very long sequences. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
842,
|
| 1209 |
+
825,
|
| 1210 |
+
911
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Related work. The LSSL is related to several rich lines of work on recurrent, convolutional, and continuous-time models, as well as sequence models addressing long dependencies. Appendix A provides an extended related work connecting these topics. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
90,
|
| 1220 |
+
823,
|
| 1221 |
+
132
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 9
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Tuning. Our models are very simple, consisting of identical L(inear)SSL layers with simple positionwise non-linear modules between layers (Appendix B). Our models were able to train at much higher learning rates than baselines and were not sensitive to hyperparameters, of which we did light tuning primarily on learning rate and dropout. In contrast to previous baselines [4, 31, 44], we did not use hyperparameters for improving stability and regularization such as weight decay, gradient clipping, weight norm, input dropout, etc. While the most competitive recent works introduce at least one hyperparameter of critical importance (e.g. depth and step size [37], $\\alpha$ and $\\Delta t$ [47], $\\omega _ { 0 }$ [44]) that are difficult to tune, the LSSL-fixed has only $\\Delta t$ , which the full LSSL can even learn automatically (at the expense of speed). ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
138,
|
| 1231 |
+
825,
|
| 1232 |
+
263
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 9
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Limitations. Sections 1 and 3 and Fig. 1 mention that a potential benefit of having the recurrent representation of LSSLs may endow it with efficient inference. While this is theoretically possible, this work did not experiment on any applications that leverage this. Follow-up work showed that it is indeed possible in practice to speed up some applications at inference time. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
270,
|
| 1242 |
+
825,
|
| 1243 |
+
327
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Theorem 2’s algorithm is sophisticated (Appendix D) and was not implemented in the first version of this work. A follow-up to this paper found that it is not numerically stable and thus not usable on hardware. Thus the algorithmic contributions in Theorem 2 serve the purpose of a proof-of-concept that fast algorithms for the LSSL do exist in other computation models (i.e., arithmetic operations instead of floating point operations), and leave an open question as to whether fast, numerically stable, and practical algorithms for the LSSL exist. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
332,
|
| 1253 |
+
825,
|
| 1254 |
+
415
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "As described in Appendix B, by freezing the $A$ matrix and $\\Delta t$ timescale, the LSSL-fixed is able to be computed much faster than the full LSSL, and is comparable to prior models in practice (Table 5). However, beyond computational complexity, there is also a consideration of space efficiency. Both the LSSL and LSSL-fixed suffer from a large amount of space overhead (described in Appendix B) – using $O ( N L )$ instead of $O ( L )$ space when working on a 1D sequence of length $L$ – that essentially stems from using the latent state representation of dimension $N$ . Consequently, the LSSL can be space inefficient and we used multi-GPU training for our largest experiments (speech and high resolution images, Tables 3 and 4). ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
421,
|
| 1264 |
+
826,
|
| 1265 |
+
532
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "These fundamental issues with computation and space complexity were revisited and resolved in follow-up work to this paper, where a new state space model (the Structured State Space) provided a new parameterization and algorithms for state spaces. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
178,
|
| 1274 |
+
539,
|
| 1275 |
+
821,
|
| 1276 |
+
580
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Conclusion and future work. Modern deep learning models struggle in applications with very long temporal data such as speech, videos, and medical time-series. We hope that our conceptual and technical contributions can lead to new capabilities with simple, principled, and less engineered models. We note that our pixel-level image classification experiments, which use no heuristics (batch norm, auxiliary losses) or extra information (data augmentation), perform similar to early convnet models with vastly more parameters, and is in the spirit of recent attempts at unifying data modalities with a generic sequence model [18]. Our speech results demonstrate the possibility of learning better features than hand-crafted processing pipelines used widely in speech applications. We are excited about potential downstream applications, such as training other downstream models on top of pre-trained state space features. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
174,
|
| 1285 |
+
587,
|
| 1286 |
+
825,
|
| 1287 |
+
726
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 9
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Acknowledgments ",
|
| 1294 |
+
"text_level": 1,
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
176,
|
| 1297 |
+
746,
|
| 1298 |
+
303,
|
| 1299 |
+
761
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 9
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "We thank Arjun Desai, Ananya Kumar, Laurel Orr, Sabri Eyuboglu, Dan Fu, Mayee Chen, Sarah Hooper, Simran Arora, and Trenton Chang for helpful feedback on earlier drafts. We thank David Romero and James Morrill for discussions and additional results for baselines used in our experiments. This work was done with the support of Google Cloud credits under HAI proposals 540994170283 and 578192719349. AR and IJ are supported under NSF grant CCF-1763481. KS is supported by the Wu Tsai Neuroscience Interdisciplinary Graduate Fellowship. We gratefully acknowledge the support of NIH under No. U54EB020405 (Mobilize), NSF under Nos. CCF1763315 (Beyond Sparsity), CCF1563078 (Volume to Velocity), and 1937301 (RTML); ONR under No. N000141712266 (Unifying Weak Supervision); ONR N00014-20-1-2480: Understanding and Applying Non-Euclidean Geometry in Machine Learning; N000142012275 (NEPTUNE); the Moore Foundation, NXP, Xilinx, ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
174,
|
| 1308 |
+
772,
|
| 1309 |
+
825,
|
| 1310 |
+
911
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 9
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "LETI-CEA, Intel, IBM, Microsoft, NEC, Toshiba, TSMC, ARM, Hitachi, BASF, Accenture, Ericsson, Qualcomm, Analog Devices, the Okawa Foundation, American Family Insurance, Google Cloud, Salesforce, Total, the HAI-AWS Cloud Credits for Research program, the Stanford Data Science Initiative (SDSI), and members of the Stanford DAWN project: Facebook, Google, and VMWare. The Mobilize Center is a Biomedical Technology Resource Center, funded by the NIH National Institute of Biomedical Imaging and Bioengineering through Grant P41EB027060. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views, policies, or endorsements, either expressed or implied, of NIH, ONR, or the U.S. Government. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
173,
|
| 1319 |
+
90,
|
| 1320 |
+
826,
|
| 1321 |
+
229
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 10
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "References ",
|
| 1328 |
+
"text_level": 1,
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
174,
|
| 1331 |
+
250,
|
| 1332 |
+
266,
|
| 1333 |
+
266
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 10
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "[1] George B. (George Brown) Arfken, Hans Jürgen Weber, and Frank E Harris. Mathematical methods for physicists : a comprehensive guide / George B. Arfken, Hans J. Weber, Frank E. Harris. Academic Press, Amsterdam, 7th ed. edition, 2013. ISBN 0-12-384654-4. \n[2] Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In The International Conference on Machine Learning (ICML), pages 1120–1128, 2016. \n[3] Shaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018. \n[4] Shaojie Bai, J Zico Kolter, and Vladlen Koltun. Trellis networks for sequence modeling. In The International Conference on Learning Representations (ICLR), 2019. \n[5] James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016. \n[6] John Charles Butcher and Nicolette Goodwin. Numerical methods for ordinary differential equations, volume 2. Wiley Online Library, 2008. \n[7] Bo Chang, Minmin Chen, Eldad Haber, and Ed H Chi. Antisymmetricrnn: A dynamical system view on recurrent neural networks. In International Conference on Learning Representations, 2019. \n[8] Shiyu Chang, Yang Zhang, Wei Han, Mo Yu, Xiaoxiao Guo, Wei Tan, Xiaodong Cui, Michael Witbrock, Mark Hasegawa-Johnson, and Thomas S Huang. Dilated recurrent neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2017. \n[9] Zhengping Che, Sanjay Purushotham, Kyunghyun Cho, David Sontag, and Yan Liu. Recurrent neural networks for multivariate time series with missing values. Scientific reports, 8(1):1–12, 2018. \n[10] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In Advances in neural information processing systems, pages 6571–6583, 2018. \n[11] T. S. Chihara. An introduction to orthogonal polynomials. Dover Books on Mathematics. Dover Publications, 2011. ISBN 9780486479293. \n[12] Narsimha Chilkuri and Chris Eliasmith. Parallelizing legendre memory unit training. The International Conference on Machine Learning (ICML), 2021. \n[13] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251–1258, 2017. \n[14] Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
173,
|
| 1342 |
+
275,
|
| 1343 |
+
826,
|
| 1344 |
+
917
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 10
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "[15] Jared Quincy Davis, Albert Gu, Tri Dao, Krzysztof Choromanski, Christopher Ré, Percy Liang, and Chelsea Finn. Catformer: Designing stable transformers via sensitivity analysis. In The International Conference on Machine Learning (ICML), 2021. ",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
171,
|
| 1353 |
+
90,
|
| 1354 |
+
823,
|
| 1355 |
+
133
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 11
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "[16] Edward De Brouwer, Jaak Simm, Adam Arany, and Yves Moreau. Gru-ode-bayes: Continuous modeling of sporadically-observed time series. In Advances in Neural Information Processing Systems (NeurIPS), 2019. ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
173,
|
| 1364 |
+
142,
|
| 1365 |
+
823,
|
| 1366 |
+
184
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 11
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "[17] Christopher De Sa, Albert Gu, Rohan Puttagunta, Christopher Ré, and Atri Rudra. A twopronged progress in structured dense matrix vector multiplication. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1060–1079. SIAM, 2018. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
173,
|
| 1375 |
+
193,
|
| 1376 |
+
826,
|
| 1377 |
+
250
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 11
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "[18] 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. ",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
173,
|
| 1386 |
+
258,
|
| 1387 |
+
826,
|
| 1388 |
+
314
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 11
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "[19] Y. Eidelman and I. Gohberg. On a new class of structured matrices. Integral Equations and Operator Theory, 34, 1999. ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
171,
|
| 1397 |
+
323,
|
| 1398 |
+
823,
|
| 1399 |
+
352
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 11
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"text": "[20] N Benjamin Erichson, Omri Azencot, Alejandro Queiruga, Liam Hodgkinson, and Michael W Mahoney. Lipschitz recurrent neural networks. In International Conference on Learning Representations, 2021. ",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
173,
|
| 1408 |
+
361,
|
| 1409 |
+
825,
|
| 1410 |
+
404
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 11
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "[21] Karl J Friston, Lee Harrison, and Will Penny. Dynamic causal modelling. Neuroimage, 19(4): 1273–1302, 2003. ",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
174,
|
| 1419 |
+
411,
|
| 1420 |
+
823,
|
| 1421 |
+
440
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 11
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "[22] Ken-ichi Funahashi and Yuichi Nakamura. Approximation of dynamical systems by continuous time recurrent neural networks. Neural networks, 6(6):801–806, 1993. ",
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
173,
|
| 1430 |
+
449,
|
| 1431 |
+
821,
|
| 1432 |
+
478
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 11
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "[23] Gene H Golub and Charles F Van Loan. Matrix computations, volume 3. JHU press, 2013. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
174,
|
| 1441 |
+
486,
|
| 1442 |
+
805,
|
| 1443 |
+
502
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 11
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "[24] Albert Gu, Tri Dao, Stefano Ermon, Atri Rudra, and Christopher Ré. Hippo: Recurrent memory with optimal polynomial projections. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips. cc/paper/2020/hash/102f0bb6efb3a6128a3c750dd16729be-Abstract.html. ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
173,
|
| 1452 |
+
510,
|
| 1453 |
+
826,
|
| 1454 |
+
594
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 11
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "[25] Albert Gu, Caglar Gulcehre, Tom Le Paine, Matt Hoffman, and Razvan Pascanu. Improving the gating mechanism of recurrent neural networks. In The International Conference on Machine Learning (ICML), 2020. ",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
174,
|
| 1463 |
+
603,
|
| 1464 |
+
823,
|
| 1465 |
+
646
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 11
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "[26] Ramin Hasani, Mathias Lechner, Alexander Amini, Lucas Liebenwein, Max Tschaikowski, Gerald Teschl, and Daniela Rus. Closed-form continuous-depth models. arXiv preprint arXiv:2106.13898, 2021. ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
174,
|
| 1474 |
+
654,
|
| 1475 |
+
823,
|
| 1476 |
+
696
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 11
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "[27] Ramin Hasani, Mathias Lechner, Alexander Amini, Daniela Rus, and Radu Grosu. Liquid time-constant networks. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021. ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
173,
|
| 1485 |
+
705,
|
| 1486 |
+
825,
|
| 1487 |
+
734
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 11
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "[28] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
173,
|
| 1496 |
+
742,
|
| 1497 |
+
825,
|
| 1498 |
+
771
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 11
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "[29] Ian D Jordan, Piotr Aleksander Sokół, and Il Memming Park. Gated recurrent units viewed through the lens of continuous time dynamical systems. Frontiers in computational neuroscience, page 67, 2021. ",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
173,
|
| 1507 |
+
780,
|
| 1508 |
+
825,
|
| 1509 |
+
823
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 11
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "[30] Anil Kag, Ziming Zhang, and Venkatesh Saligrama. Rnns incrementally evolving on an equilibrium manifold: A panacea for vanishing and exploding gradients? In International Conference on Learning Representations, 2020. ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
174,
|
| 1518 |
+
832,
|
| 1519 |
+
823,
|
| 1520 |
+
875
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 11
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "[31] Patrick Kidger, James Morrill, James Foster, and Terry Lyons. Neural controlled differential equations for irregular time series. arXiv preprint arXiv:2005.08926, 2020. ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
173,
|
| 1529 |
+
882,
|
| 1530 |
+
820,
|
| 1531 |
+
911
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 11
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "[32] Mathias Lechner and Ramin Hasani. Learning long-term dependencies in irregularly-sampled time series. arXiv preprint arXiv:2006.04418, 2020. \n[33] Tao Lei, Yu Zhang, Sida I Wang, Hui Dai, and Yoav Artzi. Simple recurrent units for highly parallelizable recurrence. arXiv preprint arXiv:1709.02755, 2017. \n[34] Shuai Li, Wanqing Li, Chris Cook, Ce Zhu, and Yanbo Gao. Independently recurrent neural network (IndRNN): Building a longer and deeper RNN. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5457–5466, 2018. \n[35] Liyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen, and Jiawei Han. Understanding the difficulty of training transformers. The International Conference on Machine Learning (ICML), 2020. \n[36] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, pages 3730–3738. IEEE Computer Society, 2015. ISBN 978-1-4673-8391-2. URL http://dblp.uni-trier.de/db/conf/iccv/iccv2015.html#LiuLWT15. \n[37] James Morrill, Cristopher Salvi, Patrick Kidger, James Foster, and Terry Lyons. Neural rough differential equations for long time series. The International Conference on Machine Learning (ICML), 2021. \n[38] Murphy Yuezhen Niu, Lior Horesh, and Isaac Chuang. Recurrent neural networks in the eye of differential equations. arXiv preprint arXiv:1904.12933, 2019. \n[39] Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International conference on machine learning, pages 1310–1318, 2013. \n[40] Clément Pernet. Computing with quasiseparable matrices. In Proceedings of the ACM on International Symposium on Symbolic and Algebraic Computation, pages 389–396, 2016. \n[41] KB Petersen and MS Pedersen. The matrix cookbook, version 20121115. Technical Univ. Denmark, Kongens Lyngby, Denmark, Tech. Rep, 3274, 2012. \n[42] M. Ravanelli, T. Parcollet, and Y. Bengio. The pytorch-kaldi speech recognition toolkit. In In Proc. of ICASSP, 2019. \n[43] David W Romero, Robert-Jan Bruintjes, Jakub M Tomczak, Erik J Bekkers, Mark Hoogendoorn, and Jan C van Gemert. Flexconv: Continuous kernel convolutions with differentiable kernel sizes. arXiv preprint arXiv:2110.08059, 2021. \n[44] David W Romero, Anna Kuzina, Erik J Bekkers, Jakub M Tomczak, and Mark Hoogendoorn. Ckconv: Continuous kernel convolution for sequential data. arXiv preprint arXiv:2102.02611, 2021. \n[45] Yulia Rubanova, Tian Qi Chen, and David K Duvenaud. Latent ordinary differential equations for irregularly-sampled time series. In Advances in Neural Information Processing Systems, pages 5321–5331, 2019. \n[46] T. Konstantin Rusch and Siddhartha Mishra. Coupled oscillatory recurrent neural network (cornn): An accurate and (gradient) stable architecture for learning long time dependencies. In International Conference on Learning Representations, 2021. \n[47] T Konstantin Rusch and Siddhartha Mishra. Unicornn: A recurrent model for learning very long time dependencies. The International Conference on Machine Learning (ICML), 2021. \n[48] Khaled Saab, Jared Dunnmon, Christopher Ré, Daniel Rubin, and Christopher Lee-Messer. Weak supervision as an efficient approach for automated seizure detection in electroencephalography. NPJ Digital Medicine, 3(1):1–12, 2020. \n[49] Vinit Shah, Eva Von Weltin, Silvia Lopez, James Riley McHugh, Lillian Veloso, Meysam Golmohammadi, Iyad Obeid, and Joseph Picone. The Temple University hospital seizure detection corpus. Frontiers in neuroinformatics, 12:83, 2018. \n[50] Jie Shen, Tao Tang, and Li-Lian Wang. Orthogonal Polynomials and Related Approximation Results, pages 47–140. Springer Berlin Heidelberg, Berlin, Heidelberg, 2011. ISBN 978- 3-540-71041-7. doi: 10.1007/978-3-540-71041-7_3. URL https://doi.org/10.1007/ 978-3-540-71041-7_3. \n[51] Victor Shoup. A computational introduction to number theory and algebra. Cambridge university press, 2009. \n[52] G. Szegö. Orthogonal Polynomials. Number v.23 in American Mathematical Society colloquium publications. American Mathematical Society, 1967. ISBN 9780821889527. \n[53] G. Szego.˝ Orthogonal Polynomials. American Mathematical Society: Colloquium publications. American Mathematical Society, 1975. ISBN 9780821810231. \n[54] Corentin Tallec and Yann Ollivier. Can recurrent neural networks warp time? In The International Conference on Learning Representations (ICLR), 2018. \n[55] Chang Wei Tan, Christoph Bergmeir, Francois Petitjean, and Geoffrey I Webb. Time series extrinsic regression. Data Mining and Knowledge Discovery, pages 1–29, 2021. doi: https: //doi.org/10.1007/s10618-021-00745-9. \n[56] Trieu H Trinh, Andrew M Dai, Minh-Thang Luong, and Quoc V Le. Learning longer-term dependencies in RNNs with auxiliary losses. In The International Conference on Machine Learning (ICML), 2018. \n[57] 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 (NeurIPS), 2017. \n[58] Aaron Voelker, Ivana Kajic, and Chris Eliasmith. Legendre memory units: Continuous-time ´ representation in recurrent neural networks. In Advances in Neural Information Processing Systems, pages 15544–15553, 2019. \n[59] Robert L Williams, Douglas A Lawrence, et al. Linear state-space control systems. Wiley Online Library, 2007. \n[60] Max A Woodbury. Inverting modified matrices. Memorandum report, 42:106, 1950. \n[61] Guofeng Zhang, Tongwen Chen, and Xiang Chen. Performance recovery in digital implementation of analogue systems. SIAM journal on control and optimization, 45(6):2207–2223, 2007. \n[62] Huaguang Zhang, Zhanshan Wang, and Derong Liu. A comprehensive review of stability analysis of continuous-time recurrent neural networks. IEEE Transactions on Neural Networks and Learning Systems, 25(7):1229–1262, 2014. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
169,
|
| 1540 |
+
51,
|
| 1541 |
+
828,
|
| 1542 |
+
912
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 12
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
169,
|
| 1551 |
+
90,
|
| 1552 |
+
828,
|
| 1553 |
+
669
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 13
|
| 1556 |
+
}
|
| 1557 |
+
]
|
parse/train/yWd42CWN3c/yWd42CWN3c_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/yWd42CWN3c/yWd42CWN3c_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|