Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/1Fqg133qRaI/1Fqg133qRaI.md +289 -0
- parse/train/1Fqg133qRaI/1Fqg133qRaI_content_list.json +1541 -0
- parse/train/BkgtDsCcKQ/BkgtDsCcKQ.md +0 -0
- parse/train/BkgtDsCcKQ/BkgtDsCcKQ_content_list.json +0 -0
- parse/train/BkgtDsCcKQ/BkgtDsCcKQ_middle.json +0 -0
- parse/train/BkgtDsCcKQ/BkgtDsCcKQ_model.json +0 -0
- parse/train/HJOQ7MgAW/HJOQ7MgAW.md +226 -0
- parse/train/HJOQ7MgAW/HJOQ7MgAW_content_list.json +1207 -0
- parse/train/ZzwDy_wiWv/ZzwDy_wiWv.md +346 -0
- parse/train/ZzwDy_wiWv/ZzwDy_wiWv_content_list.json +1694 -0
- parse/train/ZzwDy_wiWv/ZzwDy_wiWv_middle.json +0 -0
- parse/train/ZzwDy_wiWv/ZzwDy_wiWv_model.json +0 -0
- parse/train/rkgAGAVKPr/rkgAGAVKPr.md +427 -0
- parse/train/rkgAGAVKPr/rkgAGAVKPr_content_list.json +0 -0
- parse/train/rkgAGAVKPr/rkgAGAVKPr_middle.json +0 -0
- parse/train/rkgAGAVKPr/rkgAGAVKPr_model.json +0 -0
- parse/train/uyKk_avJ-p4/uyKk_avJ-p4.md +242 -0
- parse/train/uyKk_avJ-p4/uyKk_avJ-p4_content_list.json +1025 -0
- parse/train/uyKk_avJ-p4/uyKk_avJ-p4_middle.json +0 -0
- parse/train/uyKk_avJ-p4/uyKk_avJ-p4_model.json +0 -0
parse/train/1Fqg133qRaI/1Fqg133qRaI.md
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOWARDS FASTER AND STABILIZED GAN TRAINING FOR HIGH-FIDELITY FEW-SHOT IMAGE SYNTHESIS
|
| 2 |
+
|
| 3 |
+
Bingchen ${ \bf L i u ^ { 1 , 2 } }$ , Yizhe $\mathbf { Z } \mathbf { h } \mathbf { u } ^ { 2 }$ , Kunpeng $\mathbf { S o n g ^ { 1 , 2 } }$ , Ahmed Elgammal1,2
|
| 4 |
+
|
| 5 |
+
1Playform - Artrendex Inc., USA
|
| 6 |
+
2Department of Computer Science, Rutgers University
|
| 7 |
+
{bingchen.liu,yizhe.zhu,kunpeng.song}@rutgers.edu
|
| 8 |
+
elgammal@artrendex.com
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
Training Generative Adversarial Networks (GAN) on high-fidelity images usually requires large-scale GPU-clusters and a vast number of training images. In this paper, we study the few-shot image synthesis task for GAN with minimum computing cost. We propose a light-weight GAN structure that gains superior quality on $1 0 2 4 \times 1 0 2 4$ resolution. Notably, the model converges from scratch with just a few hours of training on a single RTX-2080 GPU, and has a consistent performance, even with less than 100 training samples. Two technique designs constitute our work, a skip-layer channel-wise excitation module and a self-supervised discriminator trained as a feature-encoder. With thirteen datasets covering a wide variety of image domains 1, we show our model’s superior performance compared to the state-of-the-art StyleGAN2, when data and computing budget are limited.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
The fascinating ability to synthesize images using the state-of-the-art (SOTA) Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) display a great potential of GANs for many intriguing real-life applications, such as image translation, photo editing, and artistic creation. However, expensive computing cost and the vast amount of required training data limit these SOTAs in real applications with only small image sets and low computing budgets.
|
| 17 |
+
|
| 18 |
+
In real-life scenarios, the available samples to train a GAN can be minimal, such as the medical images of a rare disease, a particular celebrity’s portrait set, and a specific artist’s artworks. Transferlearning with a pre-trained model (Mo et al., 2020; Wang et al., 2020) is one solution for the lack of training images. Nevertheless, there is no guarantee to find a compatible pre-training dataset. Furthermore, if not, fine-tuning probably leads to even worse performance (Zhao et al., 2020).
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
Figure 1: Synthetic results on $1 0 2 4 ^ { 2 }$ resolution of our model, trained from scratch on single RTX 2080-Ti GPU, with only 1000 images. Left: 20 hours on Nature photos; Right: 10 hours on FFHQ.
|
| 22 |
+
|
| 23 |
+
In a recent study, it was highlighted that in art creation applications, most artists prefers to train their models from scratch based on their own images to avoid biases from fine-tuned pre-trained model. Moreover, It was shown that in most cases artists want to train their models with datasets of less than
|
| 24 |
+
|
| 25 |
+
100 images (Elgammal et al., 2020). Dynamic data-augmentation (Karras et al., 2020a; Zhao et al., 2020) smooths the gap and stabilizes GAN training with fewer images. However, the computing cost from the SOTA models such as StyleGAN2 (Karras et al., 2020b) and BigGAN (Brock et al., 2019) remain to be high, especially when trained with the image resolution on $1 0 2 4 \times 1 0 2 4$ .
|
| 26 |
+
|
| 27 |
+
In this paper, our goal is to learn an unconditional GAN on high-resolution images, with low computational cost and few training samples. As summarized in Fig. 2, these training conditions expose the model to a high risk of overfitting and mode-collapse (Arjovsky & Bottou, 2017; Zhang & Khoreva, 2018). To train a GAN given the demanding training conditions, we need a generator $( G )$ that can learn fast, and a discriminator $( D )$ that can continuously provide useful signals to train $G$ . To address these challenges, we summarize our contribution as:
|
| 28 |
+
|
| 29 |
+
• We design the Skip-Layer channel-wise Excitation (SLE) module, which leverages lowscale activations to revise the channel responses on high-scale feature-maps. SLE allows a more robust gradient flow throughout the model weights for faster training. It also leads to an automated learning of a style/content disentanglement like StyleGAN2. We propose a self-supervised discriminator $D$ trained as a feature-encoder with an extra decoder. We force $D$ to learn a more descriptive feature-map covering more regions from an input image, thus yielding more comprehensive signals to train $G$ . We test multiple selfsupervision strategies for $D$ , among which we show that auto-encoding works the best. • We build a computational-efficient GAN model based on the two proposed techniques, and show the model’s robustness on multiple high-fidelity datasets, as demonstrated in Fig. 1.
|
| 30 |
+
|
| 31 |
+
# 2 RELATED WORKS
|
| 32 |
+
|
| 33 |
+
Speed up the GAN training: Speeding up the training of GAN has been approached from various perspectives. Ngxande et al. propose to reduce the computing time with depth-wise convolutions. Zhong et al. adjust the GAN objective into a min-max-min problem for a shorter optimization path. Sinha et al. suggest to prepare each batch of training samples via a coreset selection, leverage the better data preparation for a faster convergence. However, these methods only bring a limited improvement in
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 2: The causes and challenges for training GAN in our studied conditions.
|
| 37 |
+
|
| 38 |
+
training speed. Moreover, the synthesis quality is not advanced within the shortened training time.
|
| 39 |
+
|
| 40 |
+
Train GAN on high resolution: High-resolution training for GAN can be problematic. Firstly, the increased model parameters lead to a more rigid gradient flow to optimize $G$ . Secondly, the target distribution formed by the images on $1 0 2 4 \times 1 0 2 4$ resolution is super sparse, making GAN much harder to converge. Denton et al. (2015); Zhang et al. (2017); Huang et al. (2017); Wang et al. (2018); Karras et al. (2019); Karnewar & Wang (2020); Karras et al. (2020b); Liu et al. (2021) develop the multi-scale GAN structures to alleviate the gradient flow issue, where $G$ outputs images and receives feedback from several resolutions simultaneously. However, all these approaches further increase the computational cost, consuming even more GPU memory and training time.
|
| 41 |
+
|
| 42 |
+
Stabilize the GAN training: Mode-collapse on $G$ is one of the big challenges when training GANs. And it becomes even more challenging given fewer training samples and a lower computational budget (a smaller batch-size). As $D$ is more likely to be overfitting on the datasets, thus unable to provide meaningful gradients to train $G$ (Gulrajani et al., 2017).
|
| 43 |
+
|
| 44 |
+
Prior works tackle the overfitting issue by seeking a good regularization for $D$ , including different objectives (Arjovsky et al., 2017; Lim & Ye, 2017; Tran et al., 2017); regularizing the gradients (Gulrajani et al., 2017; Mescheder et al., 2018); normalizing the model weights (Miyato et al., 2018); and augmenting the training data (Karras et al., 2020a; Zhao et al., 2020). However, the effects of these methods degrade fast when the training batch-size is limited, since appropriate batch statistics can hardly be calculated for the regularization (normalization) over the training iterations.
|
| 45 |
+
|
| 46 |
+
Meanwhile, self-supervision on $D$ has been shown to be an effective method to stabilize the GAN training as studied in Tran et al. (2019); Chen et al. (2019). However, the auxiliary self-supervision tasks in prior works have limited using scenario and image domain. Moreover, prior works only studied on low resolution images ( $3 2 ^ { 2 }$ to $1 2 8 ^ { 2 }$ ), and without a computing resource limitation.
|
| 47 |
+
|
| 48 |
+
# 3 METHOD
|
| 49 |
+
|
| 50 |
+
We adopt a minimalistic design for our model. In particular, we use a single conv-layer on each resolution in $G$ , and apply only three (input and output) channels for the conv-layers on the high resolutions $( \geq 5 1 2 \times 5 1 2 )$ in both $G$ and $D$ . Fig. 3 and Fig. 4 illustrate the model structure for our $G$ and $D$ , with descriptions of the component layers and forward flow. These structure designs make our GAN much smaller than SOTA models and substantially faster to train. Meanwhile, our model remains robust on small datasets due to its compact size with the two proposed techniques.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 3: The structure of the skip-layer excitation module and the Generator. Yellow boxes represent feature-maps (we show the spatial size and omit the channel number), blue box and blue arrows represent the same up-sampling structure, red box contains the SLE module as illustrated on the left.
|
| 54 |
+
|
| 55 |
+
# 3.1 SKIP-LAYER CHANNEL-WISE EXCITATION
|
| 56 |
+
|
| 57 |
+
For synthesizing higher resolution images, the generator $G$ inevitably needs to become deeper, with more conv-layers, in concert with the up-sampling needs. A deeper model with more convolution layers leads to a longer training time of GAN, due to the increased number of model parameters and a weaker gradient flow through $G$ (Zhang et al., 2017; Karras et al., 2018; Karnewar & Wang, 2020). To better train a deep model, He et al. design the Residual structure (ResBlock), which uses a skip-layer connection to strengthen the gradient signals between layers. However, while ResBlock has been widely used in GAN literature (Wang et al., 2018; Karras et al., 2020b), it also increases the computation cost.
|
| 58 |
+
|
| 59 |
+
We reformulate the skip-connection idea with two unique designs into the Skip-Layer Excitation module (SLE). First, ResBlock implements skip-connection as an element-wise addition between the activations from different conv-layers. It requires the spatial dimensions of the activations to be the same. Instead of addition, we apply channel-wise multiplications between the activations, eliminating the heavy computation of convolution (since one side of the activations now has a spatial dimension of $1 ^ { 2 }$ ). Second, in prior GAN works, skip-connections are only used within the same resolution. In contrast, we perform skip-connection between resolutions with a much longer range (e.g., $8 ^ { 2 }$ and $1 2 8 ^ { 2 }$ , $1 6 ^ { 2 }$ and $2 5 6 ^ { 2 }$ ), since an equal spatial-dimension is no longer required. The two designs make SLE inherits the advantages of ResBlock with a shortcut gradient flow, meanwhile without an extra computation burden.
|
| 60 |
+
|
| 61 |
+
Formally, we define the Skip-Layer Excitation module as:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathbf { y } = \mathcal { F } ( \mathbf { x } _ { l o w } , \{ \mathbf { W } _ { i } \} ) \cdot \mathbf { x } _ { h i g h }
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Here $\mathbf { x }$ and $\mathbf { y }$ are the input and output feature-maps of the SLE module, the function $\mathcal { F }$ contains the operations on $\mathbf { x } _ { l o w }$ , and $\mathbf { W } _ { i }$ indicates the module weights to be learned. The left panel in Fig. 3 shows an SLE module in practice, where $\mathbf { x } _ { l o w }$ and ${ \bf x } _ { h i g h }$ are the feature-maps at $8 \times 8$ and $1 2 8 \times 1 2 8$ resolution respectively. An adaptive average-pooling layer in $\mathcal { F }$ first down-samples $\mathbf { x } _ { l o w }$ into $4 \times 4$ along the spatial-dimensions, then a conv-layer further down-samples it into $1 \times 1$ . A LeakyReLU is used to model the non-linearity, and another conv-layer projects $\mathbf { x } _ { l o w }$ to have the same channel size as ${ \bf x } _ { h i g h }$ . Finally, after a gating operation via a Sigmoid function, the output from $\mathcal { F }$ multiplies ${ \bf x } _ { h i g h }$ along the channel dimension, yielding y with the same shape as ${ \bf x } _ { h i g h }$ .
|
| 68 |
+
|
| 69 |
+
SLE partially resembles the Squeeze-and-Excitation module (SE) proposed by Hu et al.. However, SE operates within one feature-map as a self-gating module. In comparison, SLE performs between feature-maps that are far away from each other. While SLE brings the benefit of channel-wise feature re-calibration just like SE, it also strengthens the whole model’s gradient flow like ResBlock. The channel-wise multiplication in SLE also coincides with Instance Normalization (Ulyanov et al., 2016; Huang & Belongie, 2017), which is widely used in style-transfer. Similarly, we show that SLE enables $G$ to automatically disentangle the content and style attributes, just like StyleGAN (Karras et al., 2019). As SLE performs on high-resolution feature-maps, altering these feature-maps is shown to be more likely to change the style attributes of the generated image (Karras et al., 2019; Liu et al., 2021). By replacing $\mathrm { x } _ { l o w }$ in SLE from another synthesized sample, our $G$ can generate an image with the content unchanged, but in the same style of the new replacing image.
|
| 70 |
+
|
| 71 |
+
# 3.2 SELF-SUPERVISED DISCRIMINATOR
|
| 72 |
+
|
| 73 |
+
Our approach to provide a strong regularization for $D$ is surprisingly simple. We treat $D$ as an encoder and train it with small decoders. Such auto-encoding training forces $D$ to extract image features that the decoders can give good reconstructions. The decoders are optimized together with $D$ on a simple reconstruction loss, which is only trained on real samples:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathcal { L } _ { r e c o n s } = \mathbb { E } _ { { \mathbf { f } } \sim D _ { e n c o d e } ( x ) , x \sim I _ { r e a l } } [ | | \mathcal { G } ( { \mathbf { f } } ) - \mathcal { T } ( x ) | | ] ,
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where f is the intermediate feature-maps from $D$ , the function $\mathcal { G }$ contains the processing on $\mathbf { f }$ and the decoder, and the function $\tau$ represents the processing on sample $x$ from real images $I _ { r e a l }$ .
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 4: The structure and the forward flow of the Discriminator. Blue box and arrows represent the same residual down-sampling structure, green boxes mean the same decoder structure.
|
| 83 |
+
|
| 84 |
+
Our self-supervised $D$ is illustrated in Fig. 4, where we employ two decoders for the feature-maps on two scales: $\mathbf { f } _ { 1 }$ on $1 6 ^ { 2 }$ and $\mathbf { f } _ { 2 }$ on $8 ^ { 2 }$ . The decoders only have four conv-layers to produce images at $1 2 8 \times 1 2 8$ resolution, causing little extra computations (much less than other regularization methods). We randomly crop $\mathbf { f } _ { 1 }$ with $\frac { 1 } { 8 }$ of its height and width, then crop the real image on the same portion to get $I _ { p a r t }$ . We resize the real image to get $I$ . The decoders produce $I _ { p a r t } ^ { \prime }$ from the cropped $\mathbf { f } _ { 1 }$ , and $I ^ { \prime }$ from $\mathbf { f } _ { 2 }$ . Finally, $D$ and the decoders are trained together to minimize the loss in eq. 2, by matching $I _ { p a r t } ^ { \prime }$ to $I _ { p a r t }$ and $I ^ { \prime }$ to $I$ .
|
| 85 |
+
|
| 86 |
+
Such reconstructive training makes sure that $D$ extracts a more comprehensive representation from the inputs, covering both the overall compositions (from $\mathbf { f } _ { 2 }$ ) and detailed textures (from $\mathbf { f } _ { 1 }$ ). Note that the processing in $\mathcal { G }$ and $\tau$ are not limited to cropping; more operations remain to be explored for better performance. The auto-encoding approach we employ is a typical method for self-supervised learning, which has been well recognized to improve the model robustness and generalization ability (He et al., 2020; Hendrycks et al., 2019; Jing & Tian, 2020; Goyal et al., 2019). In the context of GAN, we find that a regularized $D$ via self-supervision training strategies significantly improves the synthesis quality on $G$ , among which auto-encoding brings the most performance boost.
|
| 87 |
+
|
| 88 |
+
Although our self-supervision strategy for $D$ comes in the form of an auto-encoder (AE), this approach is fundamentally different from works trying to combine GAN and AE (Larsen et al., 2016;
|
| 89 |
+
|
| 90 |
+
Guo et al., 2019; Zhao et al., 2016; Berthelot et al., 2017). The latter works mostly train $G$ as a decoder on a learned latent space from $D$ , or treat the adversarial training with $D$ as an supplementary loss besides AE’s training. In contrast, our model is a pure GAN with a much simpler training schema. The auto-encoding training is only for regularizing $D$ , where $G$ is not involved.
|
| 91 |
+
|
| 92 |
+
In sum, we employ the hinge version of the adversarial loss (Lim & Ye (2017); Tran et al. (2017)) to iteratively train our $\mathrm { D }$ and G. We find the different GAN losses make little performance difference, while hinge loss computes the fastest:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l } & { \mathcal { L } _ { D } = - \mathbb { E } _ { x \sim I _ { r { e a l } } } [ m i n ( 0 , - 1 + D ( x ) ) ] - \mathbb { E } _ { \hat { x } \sim G ( z ) } [ m i n ( 0 , - 1 - D ( \hat { x } ) ] + \mathcal { L } _ { r e c o n s } } \\ & { \mathcal { L } _ { G } = - \mathbb { E } _ { z \sim N } [ D ( G ( z ) ) ] , } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
# 4 EXPERIMENT
|
| 99 |
+
|
| 100 |
+
Datasets: We conduct experiments on multiple datasets with a wide range of content categories. On $2 5 6 \times 2 5 6$ resolution, we test on Animal-Face Dog and Cat (Si & Zhu, 2011), 100-Shot-Obama, Panda, and Grumpy-cat (Zhao et al., 2020). On $1 0 2 4 \times 1 0 2 4$ resolution, we test on Flickr-FaceHQ (FFHQ) (Karras et al., 2019), Oxford-flowers (Nilsback & Zisserman, 2006), art paintings from WikiArt (wikiart.org), photographs on natural landscape from Unsplash (unsplash.com), Pokemon (pokemon.com), anime face, skull, and shell. These datasets are designed to cover images with different characteristics: photo realistic, graphic-illustration, and art-like images.
|
| 101 |
+
|
| 102 |
+
Metrics: We use two metrics to measure the models’ synthesis performance: 1) Frechet Inception ´ Distance (FID) (Heusel et al., 2017) measures the overall semantic realism of the synthesized images. For datasets with less than 1000 images (most only have 100 images), we let $G$ generate 5000 images and compute FID between the synthesized images and the whole training set. 2) Learned perceptual similarity (LPIPS) (Zhang et al., 2018) provides a perceptual distance between two images. We use LPIPS to report the reconstruction quality when we perform latent space back-tracking on $G$ given real images, and measure the auto-encoding performance. We find it unnecessary to involve other metrics, as FID is unlikely to be inconsistent with the others, given the notable performance gap between our model and the compared ones. For all the testings, we train the models 5 times with random seeds, and report the highest scores. The relative error is less than five percent on average.
|
| 103 |
+
|
| 104 |
+
Compared Models: We compare our model with: 1) the state-of-the-art (SOTA) unconditional model, StyleGAN2, 2) a baseline model ablated from our proposed one. Note that we adopt StyleGAN2 with recent studies from (Karras et al., 2020a; Zhao et al., 2020), including the model configuration and differentiable data-augmentation, for the best training on few-sample datasets. Since StyleGAN2 requires much more computing-cost (cc) to train, we derive an extra baseline model. In sum, we compare our model with StyleGAN2 on the absolute image synthesis quality regardless of cc, and use the baseline model for the reference within a comparable cc range.
|
| 105 |
+
|
| 106 |
+
The baseline model is the strongest performer that we integrated from various GAN techniques based on DCGAN (Radford et al., 2015): 1) spectral-normalization (Miyato et al., 2018), 2) exponentialmoving-average (Yazıcı et al., 2018) optimization on $G$ , 3) differentiable-augmentation, 4) GLU (Dauphin et al., 2017) instead of ReLU in $G$ . We build our model upon the baseline with the two proposed techniques: the skip-layer excitation module and the self-supervised discriminator.
|
| 107 |
+
|
| 108 |
+
Table 1: Computational cost comparison of the models.
|
| 109 |
+
|
| 110 |
+
<table><tr><td></td><td></td><td>StyleGAN2@0.25</td><td>StyleGAN2@0.5</td><td>StyleGAN2</td><td>Baseline</td><td>Ours</td></tr><tr><td rowspan="2">Resolution: 2562 Batch-size: 8</td><td>Training time (hour/10k iter) Training vram (GB)</td><td>1</td><td>1.8</td><td>3.8</td><td>0.7</td><td>1</td></tr><tr><td>Model parameters (million)</td><td>7 27.557</td><td>16 45.029</td><td>18 108.843</td><td>5</td><td>6.5 47.363</td></tr><tr><td rowspan="2">Resolution: 10242</td><td>Training time (hour/10k iter)</td><td></td><td></td><td></td><td>44.359</td><td></td></tr><tr><td>Training vram (GB)</td><td>3.6</td><td>5</td><td>7</td><td>1.3</td><td>1.7</td></tr><tr><td rowspan="2">Batch-size: 8</td><td>Model parameters (million)</td><td>12</td><td>23</td><td>36</td><td>9</td><td>10</td></tr><tr><td></td><td>27.591</td><td>45.15</td><td>109.229</td><td>44.377</td><td>47.413</td></tr></table>
|
| 111 |
+
|
| 112 |
+
Table. 1 presents the normalized cc figures of the models on Nvidia’s RTX 2080-Ti GPU, implemented using PyTorch (Paszke et al., 2017). Importantly, the slimed StyleGAN2 with $\frac { 1 } { 4 }$ parameters cannot converge on the tested datasets at $1 0 2 4 ^ { 2 }$ resolution. We compare to the StyleGAN2 with $\frac { 1 } { 2 }$ parameters (if not specifically mentioned) in the following experiments.
|
| 113 |
+
|
| 114 |
+
# 4.1 IMAGE SYNTHESIS PERFORMANCE
|
| 115 |
+
|
| 116 |
+
Few-shot generation: Collecting large-scale image datasets are expensive, or even impossible, for a certain character, a genre, or a topic. On those few-shot datasets, a data-efficient model becomes especially valuable for the image generation task. In Table. 2 and Table. 3, we show that our model not only achieves superior performance on the few-shot datasets, but also much more computationalefficient than the compared methods. We save the checkpoints every 10k iterations during training and report the best FID from the checkpoints (happens at least after 15 hours of training for StyleGAN2 on all datasets). Among the 12 datasets, our model performs the best on 10 of them.
|
| 117 |
+
|
| 118 |
+
Please note that, due to the VRAM requirement for StyleGAN2 when trained on $1 0 2 4 ^ { 2 }$ resolution, we have to train the models in Table. 3 on a RTX TITAN GPU. In practice, 2080-TI and TITAN share a similar performance, and our model runs the same time on both GPUs.
|
| 119 |
+
|
| 120 |
+
Table 2: FID comparison at $2 5 6 ^ { 2 }$ resolution on few-sample datasets.
|
| 121 |
+
|
| 122 |
+
<table><tr><td colspan="4">Animal Face- Dog</td><td>Animal Face - Cat</td><td>Obama</td><td>Panda</td><td>Grumpy-cat</td></tr><tr><td colspan="3">Image number</td><td>389</td><td>160</td><td>100</td><td>100</td><td>100</td></tr><tr><td rowspan="5">Training time on one RTX 2080-Ti</td><td rowspan="5">20 hour</td><td>StyleGAN2</td><td>58.85</td><td>42.44</td><td>46.87</td><td>12.06</td><td>27.08</td></tr><tr><td>StyleGAN2 finetune</td><td>61.03</td><td>46.07</td><td>35.75</td><td>14.5</td><td>29.34</td></tr><tr><td>Baseline 5 hour</td><td>108.19</td><td>150.3</td><td>62.74</td><td>15.4</td><td>42.13</td></tr><tr><td>Baseline+Skip</td><td>94.21</td><td>72.97</td><td>52.50</td><td>14.39</td><td>38.17</td></tr><tr><td>Baseline+decode Ours (B+Skip+decode)</td><td>56.25 50.66</td><td>36.74 35.11</td><td>44.34 41.05</td><td>10.12 10.03</td><td>29.38 26.65</td></tr></table>
|
| 123 |
+
|
| 124 |
+
Training from scratch vs. fine-tuning: Fine-tuning from a pre-trained GAN (Mo et al., 2020; Noguchi & Harada, 2019; Wang et al., 2020) has been the go-to method for the image generation task on datasets with few samples. However, its performance highly depends on the semantic consistency between the new dataset and the available pre-trained model. According to Zhao et al., fine-tuning performs worse than training from scratch in most cases, when the content from the new dataset strays away from the original one. We confirm the limitation of current fine-tuning methods from Table. 2 and Table. 3, where we fine-tune StyleGAN2 trained on FFHQ use the Freeze-D method from Mo et al.. Among all the tested datasets, only Obama and Skull favor the fine-tuning method, making sense since the two sets share the most similar contents to FFHQ.
|
| 125 |
+
|
| 126 |
+
Module ablation study: We experiment with the two proposed modules in Table. 2, where both SLE (skip) and decoding-on- $. D$ (decode) can separately boost the model performance. It shows that the two modules are orthogonal to each other in improving the model performance, and the self-supervised $D$ makes the biggest contribution. Importantly, the baseline model and StyleGAN2 diverge fast after the listed training time. In contrast, our model is less likely to mode collapse among the tested datasets. Unlike the baseline model which usually model-collapse after trained for 10 hours, our model maintains a good synthesis quality and won’t collapse even after trained for 20 hours. We argue that it is the decoding regularization on $D$ that prevents the model from divergence.
|
| 127 |
+
|
| 128 |
+
Table 3: FID comparison at $1 0 2 4 ^ { 2 }$ resolution on few-sample datasets.
|
| 129 |
+
|
| 130 |
+
<table><tr><td></td><td></td><td></td><td>Art Paintings</td><td>FFHQ</td><td>Flower</td><td>Pokemon</td><td>Anime Face</td><td>Skull</td><td>Shell</td></tr><tr><td colspan="3">Image number</td><td>1000</td><td>1000</td><td>1000</td><td>800</td><td>120</td><td>100</td><td>60</td></tr><tr><td rowspan="2">Training time on one RTX TITAN</td><td>24 hour</td><td>StyleGAN2 StyleGAN2 finetune</td><td>74.56 N/A</td><td>25.66 N/A</td><td>45.23 36.72</td><td>190.23 60.12</td><td>152.73 61.23</td><td>127.98 107.68</td><td>241.37</td></tr><tr><td>8 hour</td><td>Baseline Ours</td><td>62.27 45.08</td><td>38.35 24.45</td><td>42.25</td><td>67.86</td><td>101.23</td><td>186.45</td><td>220.45 202.32</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Table 4: FID comparison at $1 0 2 4 ^ { 2 }$ resolution on datasets with more images.
|
| 133 |
+
|
| 134 |
+
<table><tr><td rowspan="2">Model</td><td>Dataset</td><td colspan="3">Art Paintings</td><td colspan="3">FFHQ</td><td colspan="3">Nature Photograph</td></tr><tr><td>Image number</td><td>2k 5k</td><td>10k</td><td>2k</td><td>5k</td><td>10k</td><td>70k</td><td>2k</td><td>5k</td><td>10k</td></tr><tr><td colspan="2">StyleGAN2</td><td>70.02</td><td>48.36</td><td>41.23</td><td>18.38</td><td>10.45</td><td>7.86</td><td>4.4</td><td>67.12</td><td>41.47 39.05</td></tr><tr><td colspan="2">Baseline</td><td>60.02</td><td>51.23</td><td>49.38</td><td>36.45</td><td>27.86</td><td>25.12</td><td>17.62 71.47</td><td>66.05</td><td>62.28</td></tr><tr><td colspan="2">Ours</td><td>44.57</td><td>43.27</td><td>42.53</td><td>19.01</td><td>17.93</td><td>16.45</td><td>12.38 52.47</td><td>45.07</td><td>43.65</td></tr></table>
|
| 135 |
+
|
| 136 |
+
Table 5: LPIPS of back-tracking with $G$
|
| 137 |
+
|
| 138 |
+
<table><tr><td></td><td>Cat</td><td>Dog</td><td>FFHQ</td><td>Art</td></tr><tr><td>Resolution</td><td colspan="2">256</td><td colspan="2">1024</td></tr><tr><td>Baseline @ 20k iter</td><td>2.113</td><td>2.073</td><td>2.589</td><td>2.916</td></tr><tr><td>Baseline @ 40k iter</td><td>2.513</td><td>2.171</td><td>2.583</td><td>2.812</td></tr><tr><td>Ours @ 40k iter</td><td>1.821</td><td>1.918</td><td>2.425</td><td>2.624</td></tr><tr><td>Ours @ 80k iter</td><td>1.897</td><td>1.986</td><td>2.342</td><td>2.601</td></tr></table>
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 6: Latent space back-tracking and interpolation.
|
| 142 |
+
|
| 143 |
+
Table 6: FID of self-supervisions for $D$
|
| 144 |
+
|
| 145 |
+
<table><tr><td></td><td>Art paintings</td><td>Nature photos</td></tr><tr><td>a. contrastive loss</td><td>47.14</td><td>57.04</td></tr><tr><td>b. predict aspect ratio</td><td>49.21</td><td>59.22</td></tr><tr><td>c.auto-encoding</td><td>42.53</td><td>43.65</td></tr><tr><td>d.a+b</td><td>46.02</td><td>54.23</td></tr><tr><td>e.a+b+c</td><td>44.21</td><td>47.65</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Training with more images: For more thorough evaluation, we also test our model on datasets with more sufficient training samples, as shown in Table. 4. We train the full StyleGAN2 for around five days on the Art and Photograph dataset with a batch-size of 16 on two TITAN RTX GPUs, and use the latest official figures on FFHQ from Zhao et al.. Instead, we train our model for only 24 hours, with a batch-size of 8 on a single 2080-Ti GPU. Specifically, for FFHQ with all 70000 images, we train our model with a larger batch-size of 32, to reflect an optimal performance of our model.
|
| 148 |
+
|
| 149 |
+
In this test, we follow the common practice of computing FID by generating $5 0 \mathrm { k }$ images and use the whole training set as the reference distribution. Note that StyleGAN2 has more than double the parameters compared to our model, and trained with a much larger batch-size on FFHQ. These factors contribute to its better performances when given enough training samples and computing power. Meanwhile, our model keeps up well with StyleGAN2 across all testings with a considerably lower computing budget, showing a compelling performance even on larger-scale datasets, and a consistent performance boost over the baseline model.
|
| 150 |
+
|
| 151 |
+
Qualitative results: The advantage of our model becomes more clear from the qualitative comparisons in Fig. 5. Given the same batch-size and training time, StyleGAN2 either converges slower or suffers from mode collapse. In contrast, our model consistently generates satisfactory images. Note that the best results from our model on Flower, Shell, and Pokemon only take three hours’ training, and for the rest three datasets, the best performance is achieved at training for eight hours. For StyleGAN2 on “shell”, “anime face”, and “Pokemon”, the images shown in Fig. 5 are already from the best epoch, which they match the scores in Table. 2 and Table. 3. For the rest of the datasets, the quality increase from StyleGAN2 is also limited given more training time.
|
| 152 |
+
|
| 153 |
+
# 4.2 MORE ANALYSIS AND APPLICATIONS
|
| 154 |
+
|
| 155 |
+
Testing mode collapse with back-tracking: From a well trained GAN, one can take a real image and invert it back to a vector in the latent space of $G$ , thus editing the image’s content by altering the back-tracked vector. Despite the various back-tracking methods (Zhu et al., 2016; Lipton & Tripathi, 2017; Zhu et al., 2020; Abdal et al., 2019), a well generalized $G$ is arguably as important for the good inversions. To this end, we show that our model, although trained on limited image samples, still gets a desirable performance on real image back-tracking.
|
| 156 |
+
|
| 157 |
+
In Table 5, we split the images from each dataset with a training/testing ratio of 9:1, and train $G$ on the training set. We compute a reconstruction error between all the images from the testing set and their inversions from $G$ , after the same update of 1000 iterations on the latent vectors (to prevent the vectors from being far off the normal distribution). The baseline model’s performance is getting worse with more training iterations, which reflects mode-collapse on $G$ . In contrast, our model gives better reconstructions with consistent performance over more training iterations. Fig. 6 presents the back-tracked examples (left-most and right-most samples in the middle panel) given the real images.
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 5: Qualitative comparison between our model and StyleGAN2 on $1 0 2 4 ^ { 2 }$ resolution datasets. The left-most panel shows the training images, and the right two panels show the uncurated samples from StyleGAN2 and our model. Both models are trained from scratch for 10 hours with a batch-size of 8. The samples are generated from the checkpoint with the lowest FID.
|
| 161 |
+
|
| 162 |
+
The smooth interpolations from the back-tracked latent vectors also suggest little mode-collapse of our $G$ (Radford et al., 2015; Zhao et al., 2020; Robb et al., 2020).
|
| 163 |
+
|
| 164 |
+
In addition, we show qualitative comparisons in appendix D, where our model maintains a good generation while StyleGAN2 and baseline are model-collapsed.
|
| 165 |
+
|
| 166 |
+
The self-supervision methods and generalization ability on $D$ : Apart from the auto-encoding training for $D$ , we show that $D$ with other common self-supervising strategies also boost GAN’s performance in our training settings. We test five self-supervision settings, as shown in Table 6, which all brings a substantial performance boost compared to the baseline model. Specifically, setting-a refers to contrastive learning which we treat each real image as a unique class and let $D$ classify them. For setting- $\mathbf { \sigma } . \mathbf { b }$ , we train $D$ to predict the real image’s original aspect-ratio since they are reshaped to square when fed to $D$ . Setting-c is the method we employ in our model, which trains $D$ as an encoder with a decoder to reconstruct real images. To better validate the benefit of self-supervision on $D$ , all the testings are conducted on full training sets with 10000 images, with a batch-size of 8 to be consistent with Table 4. We also tried training with a larger batch-size of 16, which the results are consistent to the batch-size of 8.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 7: Style-mixing results from our model trained for only 5 hours on single GPU.
|
| 170 |
+
|
| 171 |
+
Interestingly, according to Table 6, while setting-c performs the best, combining it with the rest two settings lead to a clear performance downgrade. The similar behavior can be found on some other self-supervision settings, e.g. when follow Chen et al. (2019) with a ”rotation-predicting” task on art-paintings and FFHQ datasets, we observe a performance downgrade even compared to the baseline model. We hypothesis the reason being that the auto-encoding forces $D$ to pay attention to more areas of the input image, thus extracts a more comprehensive feature-map to describe the input image (for a good reconstruction). In contrast, a classification task does not guarantee $D$ to cover the whole image. Instead, the task drives $D$ to only focus on small regions because the model can find class cues from small regions of the images. Focusing on limited regions (i.e., react to limited image patterns) is a typical overfitting behavior, which is also widely happening for $D$ in vanilla GANs. More discussion can be found in appendix B.
|
| 172 |
+
|
| 173 |
+
Style mixing like StyleGAN. With the channel-wise excitation module, our model gets the same functionality as StyleGAN: it learns to disentangle the images’ high-level semantic attributes (style and content) in an unsupervised way, from $G$ ’s conv-layers at different scales. The style-mixing results are displayed in Fig. 7, where the top three datasets are $2 5 6 \times 2 5 6$ resolution, and the bottom three are $1 0 2 4 \times 1 0 2 4$ resolution. While StyleGAN2 suffers from converging on the bottom high-resolution datasets, our model successfully learns the style representations along the channel dimension on the “excited” layers (i.e., for feature-maps on $2 5 6 \times 2 5 6$ , $5 1 2 \times 5 1 2$ resolution). Please refer to appendix A and C for more information on SLE and style-mixing.
|
| 174 |
+
|
| 175 |
+
# 5 CONCLUSION
|
| 176 |
+
|
| 177 |
+
We introduce two techniques that stabilize the GAN training with an improved synthesis quality, given sub-hundred high-fidelity images and a limited computing resource. On thirteen datasets with a diverse content variation, we show that a skip-layer channel-wise excitation mechanism (SLE) and a self-supervised regularization on the discriminator significantly boost the synthesis performance of GAN. Both proposed techniques require minor changes to a vanilla GAN, enhancing GAN’s practicality with a desirable plug-and-play property. We hope this work can benefit downstream tasks of GAN and provide new study perspectives for future research.
|
| 178 |
+
|
| 179 |
+
# REFERENCES
|
| 180 |
+
|
| 181 |
+
Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan: How to embed images into the stylegan latent space? In Proceedings of the IEEE international conference on computer vision, pp. 4432–4441, 2019.
|
| 182 |
+
|
| 183 |
+
Martin Arjovsky and Leon Bottou. Towards principled methods for training generative adversarial ´ networks. In International Conference on Learning Representations, 2017.
|
| 184 |
+
|
| 185 |
+
Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In International conference on machine learning, pp. 214–223. PMLR, 2017.
|
| 186 |
+
|
| 187 |
+
David Berthelot, Thomas Schumm, and Luke Metz. Began: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017.
|
| 188 |
+
|
| 189 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019.
|
| 190 |
+
|
| 191 |
+
Ting Chen, Xiaohua Zhai, Marvin Ritter, Mario Lucic, and Neil Houlsby. Self-supervised gans via auxiliary rotation loss. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 12154–12163, 2019.
|
| 192 |
+
|
| 193 |
+
Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. In International conference on machine learning, pp. 933–941, 2017.
|
| 194 |
+
|
| 195 |
+
Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015.
|
| 196 |
+
|
| 197 |
+
Ahmed Elgammal, Marian Mazzone, et al. Artists, artificial intelligence and machine-based creativity in playform. Artnodes, (26):1–8, 2020.
|
| 198 |
+
|
| 199 |
+
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.
|
| 200 |
+
|
| 201 |
+
Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking selfsupervised visual representation learning. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6391–6400, 2019.
|
| 202 |
+
|
| 203 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017.
|
| 204 |
+
|
| 205 |
+
Yong Guo, Qi Chen, Jian Chen, Qingyao Wu, Qinfeng Shi, and Mingkui Tan. Auto-embedding generative adversarial networks for high resolution image synthesis. IEEE Transactions on Multimedia, 21(11):2726–2737, 2019.
|
| 206 |
+
|
| 207 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 208 |
+
|
| 209 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9729–9738, 2020.
|
| 210 |
+
|
| 211 |
+
Dan Hendrycks, Mantas Mazeika, Saurav Kadavath, and Dawn Song. Using self-supervised learning can improve model robustness and uncertainty. In Advances in Neural Information Processing Systems, pp. 15663–15674, 2019.
|
| 212 |
+
|
| 213 |
+
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 Advances in neural information processing systems, pp. 6626–6637, 2017.
|
| 214 |
+
|
| 215 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7132–7141, 2018.
|
| 216 |
+
|
| 217 |
+
Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1501– 1510, 2017.
|
| 218 |
+
|
| 219 |
+
Xun Huang, Yixuan Li, Omid Poursaeed, John Hopcroft, and Serge Belongie. Stacked generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5077–5086, 2017.
|
| 220 |
+
|
| 221 |
+
Longlong Jing and Yingli Tian. Self-supervised visual feature learning with deep neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
|
| 222 |
+
|
| 223 |
+
Animesh Karnewar and Oliver Wang. Msg-gan: Multi-scale gradients for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7799–7808, 2020.
|
| 224 |
+
|
| 225 |
+
Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018.
|
| 226 |
+
|
| 227 |
+
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4401–4410, 2019.
|
| 228 |
+
|
| 229 |
+
Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. arXiv preprint arXiv:2006.06676, 2020a.
|
| 230 |
+
|
| 231 |
+
Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8110–8119, 2020b.
|
| 232 |
+
|
| 233 |
+
Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. In International conference on machine learning, pp. 1558–1566. PMLR, 2016.
|
| 234 |
+
|
| 235 |
+
Jae Hyun Lim and Jong Chul Ye. Geometric gan. arXiv preprint arXiv:1705.02894, 2017.
|
| 236 |
+
|
| 237 |
+
Zachary C. Lipton and Subarna Tripathi. Precise recovery of latent vectors from generative adversarial networks. ICLR workshop, 2017.
|
| 238 |
+
|
| 239 |
+
Bingchen Liu, Kunpeng Song, Yizhe Zhu, Gerard de Melo, and Ahmed Elgammal. Time: Text and image mutual-translation adversarial networks. In Thirty-Fifth AAAI Conference on Artificial Intelligence, 2021.
|
| 240 |
+
|
| 241 |
+
Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge? In International conference on machine learning, pp. 3481–3490. PMLR, 2018.
|
| 242 |
+
|
| 243 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018.
|
| 244 |
+
|
| 245 |
+
Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze discriminator: A simple baseline for fine-tuning gans. arXiv preprint arXiv:2002.10964, 2020.
|
| 246 |
+
|
| 247 |
+
Mkhuseli Ngxande, Jules-Raymond Tapamo, and Michael Burke. Depthwisegans: Fast training generative adversarial networks for realistic image synthesis. In 2019 Southern African Universities Power Engineering Conference/Robotics and Mechatronics/Pattern Recognition Association of South Africa (SAUPEC/RobMech/PRASA), pp. 111–116. IEEE, 2019.
|
| 248 |
+
|
| 249 |
+
Maria-Elena Nilsback and Andrew Zisserman. A visual vocabulary for flower classification. In IEEE Conference on Computer Vision and Pattern Recognition, volume 2, pp. 1447–1454, 2006.
|
| 250 |
+
|
| 251 |
+
Atsuhiro Noguchi and Tatsuya Harada. Image generation from small datasets via batch statistics adaptation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2750– 2758, 2019.
|
| 252 |
+
|
| 253 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 254 |
+
|
| 255 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
|
| 256 |
+
|
| 257 |
+
Esther Robb, Wen-Sheng Chu, Abhishek Kumar, and Jia-Bin Huang. Few-shot adaptation of generative adversarial networks. arXiv preprint arXiv:2010.11943, 2020.
|
| 258 |
+
|
| 259 |
+
Zhangzhang Si and Song-Chun Zhu. Learning hybrid image templates (hit) by information projection. IEEE Transactions on pattern analysis and machine intelligence, 34(7):1354–1367, 2011.
|
| 260 |
+
|
| 261 |
+
Samarth Sinha, Han Zhang, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, and Augustus Odena. Small-gan: Speeding up gan training using core-sets. arXiv preprint arXiv:1910.13540, 2019.
|
| 262 |
+
|
| 263 |
+
Dustin Tran, Rajesh Ranganath, and David M Blei. Deep and hierarchical implicit models. arXiv preprint arXiv:1702.08896, 7(3):13, 2017.
|
| 264 |
+
|
| 265 |
+
Ngoc-Trung Tran, Viet-Hung Tran, Bao-Ngoc Nguyen, Linxiao Yang, and Ngai-Man Man Cheung. Self-supervised gan: Analysis and improvement with multi-class minimax game. Advances in Neural Information Processing Systems, 32:13253–13264, 2019.
|
| 266 |
+
|
| 267 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016.
|
| 268 |
+
|
| 269 |
+
Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Highresolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8798–8807, 2018.
|
| 270 |
+
|
| 271 |
+
Yaxing Wang, Abel Gonzalez-Garcia, David Berga, Luis Herranz, Fahad Shahbaz Khan, and Joost van de Weijer. Minegan: effective knowledge transfer from gans to target domains with few images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9332–9341, 2020.
|
| 272 |
+
|
| 273 |
+
Yasin Yazıcı, Chuan-Sheng Foo, Stefan Winkler, Kim-Hui Yap, Georgios Piliouras, and Vijay Chandrasekhar. The unusual effectiveness of averaging in gan training. arXiv preprint arXiv:1806.04498, 2018.
|
| 274 |
+
|
| 275 |
+
Dan Zhang and Anna Khoreva. Pa-gan: Improving gan training by progressive augmentation. 2018.
|
| 276 |
+
|
| 277 |
+
Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 5907–5915, 2017.
|
| 278 |
+
|
| 279 |
+
Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018.
|
| 280 |
+
|
| 281 |
+
Junbo Zhao, Michael Mathieu, and Yann LeCun. Energy-based generative adversarial network. arXiv preprint arXiv:1609.03126, 2016.
|
| 282 |
+
|
| 283 |
+
Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han. Differentiable augmentation for data-efficient gan training. arXiv preprint arXiv:2006.10738, 2020.
|
| 284 |
+
|
| 285 |
+
Jiachen Zhong, Xuanqing Liu, and Cho-Jui Hsieh. Improving the speed and quality of gan by adversarial training. arXiv preprint arXiv:2008.03364, 2020.
|
| 286 |
+
|
| 287 |
+
Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain gan inversion for real image editing. arXiv preprint arXiv:2004.00049, 2020.
|
| 288 |
+
|
| 289 |
+
Jun-Yan Zhu, Philipp Krahenb ¨ uhl, Eli Shechtman, and Alexei A Efros. Generative visual manipu- ¨ lation on the natural image manifold. In European conference on computer vision, pp. 597–613. Springer, 2016.
|
parse/train/1Fqg133qRaI/1Fqg133qRaI_content_list.json
ADDED
|
@@ -0,0 +1,1541 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TOWARDS FASTER AND STABILIZED GAN TRAINING FOR HIGH-FIDELITY FEW-SHOT IMAGE SYNTHESIS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Bingchen ${ \\bf L i u ^ { 1 , 2 } }$ , Yizhe $\\mathbf { Z } \\mathbf { h } \\mathbf { u } ^ { 2 }$ , Kunpeng $\\mathbf { S o n g ^ { 1 , 2 } }$ , Ahmed Elgammal1,2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
169,
|
| 20 |
+
663,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Playform - Artrendex Inc., USA \n2Department of Computer Science, Rutgers University \n{bingchen.liu,yizhe.zhu,kunpeng.song}@rutgers.edu \nelgammal@artrendex.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
183,
|
| 30 |
+
186,
|
| 31 |
+
663,
|
| 32 |
+
241
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
277,
|
| 43 |
+
544,
|
| 44 |
+
292
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Training Generative Adversarial Networks (GAN) on high-fidelity images usually requires large-scale GPU-clusters and a vast number of training images. In this paper, we study the few-shot image synthesis task for GAN with minimum computing cost. We propose a light-weight GAN structure that gains superior quality on $1 0 2 4 \\times 1 0 2 4$ resolution. Notably, the model converges from scratch with just a few hours of training on a single RTX-2080 GPU, and has a consistent performance, even with less than 100 training samples. Two technique designs constitute our work, a skip-layer channel-wise excitation module and a self-supervised discriminator trained as a feature-encoder. With thirteen datasets covering a wide variety of image domains 1, we show our model’s superior performance compared to the state-of-the-art StyleGAN2, when data and computing budget are limited. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
309,
|
| 54 |
+
764,
|
| 55 |
+
462
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
178,
|
| 65 |
+
489,
|
| 66 |
+
336,
|
| 67 |
+
505
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The fascinating ability to synthesize images using the state-of-the-art (SOTA) Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) display a great potential of GANs for many intriguing real-life applications, such as image translation, photo editing, and artistic creation. However, expensive computing cost and the vast amount of required training data limit these SOTAs in real applications with only small image sets and low computing budgets. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
520,
|
| 77 |
+
823,
|
| 78 |
+
590
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In real-life scenarios, the available samples to train a GAN can be minimal, such as the medical images of a rare disease, a particular celebrity’s portrait set, and a specific artist’s artworks. Transferlearning with a pre-trained model (Mo et al., 2020; Wang et al., 2020) is one solution for the lack of training images. Nevertheless, there is no guarantee to find a compatible pre-training dataset. Furthermore, if not, fine-tuning probably leads to even worse performance (Zhao et al., 2020). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
597,
|
| 88 |
+
825,
|
| 89 |
+
666
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/c37c9377cee1982078f16f7aeac8dc9e249edcaffd3edd4fe7ccab56d907150e.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Synthetic results on $1 0 2 4 ^ { 2 }$ resolution of our model, trained from scratch on single RTX 2080-Ti GPU, with only 1000 images. Left: 20 hours on Nature photos; Right: 10 hours on FFHQ. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
210,
|
| 102 |
+
683,
|
| 103 |
+
787,
|
| 104 |
+
794
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In a recent study, it was highlighted that in art creation applications, most artists prefers to train their models from scratch based on their own images to avoid biases from fine-tuned pre-trained model. Moreover, It was shown that in most cases artists want to train their models with datasets of less than ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
176,
|
| 113 |
+
858,
|
| 114 |
+
825,
|
| 115 |
+
900
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "100 images (Elgammal et al., 2020). Dynamic data-augmentation (Karras et al., 2020a; Zhao et al., 2020) smooths the gap and stabilizes GAN training with fewer images. However, the computing cost from the SOTA models such as StyleGAN2 (Karras et al., 2020b) and BigGAN (Brock et al., 2019) remain to be high, especially when trained with the image resolution on $1 0 2 4 \\times 1 0 2 4$ . ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
103,
|
| 125 |
+
823,
|
| 126 |
+
160
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "In this paper, our goal is to learn an unconditional GAN on high-resolution images, with low computational cost and few training samples. As summarized in Fig. 2, these training conditions expose the model to a high risk of overfitting and mode-collapse (Arjovsky & Bottou, 2017; Zhang & Khoreva, 2018). To train a GAN given the demanding training conditions, we need a generator $( G )$ that can learn fast, and a discriminator $( D )$ that can continuously provide useful signals to train $G$ . To address these challenges, we summarize our contribution as: ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
166,
|
| 136 |
+
825,
|
| 137 |
+
250
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "• We design the Skip-Layer channel-wise Excitation (SLE) module, which leverages lowscale activations to revise the channel responses on high-scale feature-maps. SLE allows a more robust gradient flow throughout the model weights for faster training. It also leads to an automated learning of a style/content disentanglement like StyleGAN2. We propose a self-supervised discriminator $D$ trained as a feature-encoder with an extra decoder. We force $D$ to learn a more descriptive feature-map covering more regions from an input image, thus yielding more comprehensive signals to train $G$ . We test multiple selfsupervision strategies for $D$ , among which we show that auto-encoding works the best. • We build a computational-efficient GAN model based on the two proposed techniques, and show the model’s robustness on multiple high-fidelity datasets, as demonstrated in Fig. 1. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
215,
|
| 146 |
+
265,
|
| 147 |
+
825,
|
| 148 |
+
424
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 RELATED WORKS ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
450,
|
| 159 |
+
354,
|
| 160 |
+
465
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Speed up the GAN training: Speeding up the training of GAN has been approached from various perspectives. Ngxande et al. propose to reduce the computing time with depth-wise convolutions. Zhong et al. adjust the GAN objective into a min-max-min problem for a shorter optimization path. Sinha et al. suggest to prepare each batch of training samples via a coreset selection, leverage the better data preparation for a faster convergence. However, these methods only bring a limited improvement in ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
486,
|
| 170 |
+
483,
|
| 171 |
+
637
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "image",
|
| 177 |
+
"img_path": "images/313531434cd1b23c89a559cfbb37e6abac9a1c7b9c963941b18d551e5aa6330a.jpg",
|
| 178 |
+
"image_caption": [
|
| 179 |
+
"Figure 2: The causes and challenges for training GAN in our studied conditions. "
|
| 180 |
+
],
|
| 181 |
+
"image_footnote": [],
|
| 182 |
+
"bbox": [
|
| 183 |
+
501,
|
| 184 |
+
505,
|
| 185 |
+
818,
|
| 186 |
+
579
|
| 187 |
+
],
|
| 188 |
+
"page_idx": 1
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "text",
|
| 192 |
+
"text": "training speed. Moreover, the synthesis quality is not advanced within the shortened training time. ",
|
| 193 |
+
"bbox": [
|
| 194 |
+
174,
|
| 195 |
+
638,
|
| 196 |
+
812,
|
| 197 |
+
652
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 1
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "Train GAN on high resolution: High-resolution training for GAN can be problematic. Firstly, the increased model parameters lead to a more rigid gradient flow to optimize $G$ . Secondly, the target distribution formed by the images on $1 0 2 4 \\times 1 0 2 4$ resolution is super sparse, making GAN much harder to converge. Denton et al. (2015); Zhang et al. (2017); Huang et al. (2017); Wang et al. (2018); Karras et al. (2019); Karnewar & Wang (2020); Karras et al. (2020b); Liu et al. (2021) develop the multi-scale GAN structures to alleviate the gradient flow issue, where $G$ outputs images and receives feedback from several resolutions simultaneously. However, all these approaches further increase the computational cost, consuming even more GPU memory and training time. ",
|
| 204 |
+
"bbox": [
|
| 205 |
+
173,
|
| 206 |
+
659,
|
| 207 |
+
825,
|
| 208 |
+
771
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "Stabilize the GAN training: Mode-collapse on $G$ is one of the big challenges when training GANs. And it becomes even more challenging given fewer training samples and a lower computational budget (a smaller batch-size). As $D$ is more likely to be overfitting on the datasets, thus unable to provide meaningful gradients to train $G$ (Gulrajani et al., 2017). ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
776,
|
| 218 |
+
823,
|
| 219 |
+
833
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 1
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "Prior works tackle the overfitting issue by seeking a good regularization for $D$ , including different objectives (Arjovsky et al., 2017; Lim & Ye, 2017; Tran et al., 2017); regularizing the gradients (Gulrajani et al., 2017; Mescheder et al., 2018); normalizing the model weights (Miyato et al., 2018); and augmenting the training data (Karras et al., 2020a; Zhao et al., 2020). However, the effects of these methods degrade fast when the training batch-size is limited, since appropriate batch statistics can hardly be calculated for the regularization (normalization) over the training iterations. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
840,
|
| 229 |
+
825,
|
| 230 |
+
924
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 1
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "Meanwhile, self-supervision on $D$ has been shown to be an effective method to stabilize the GAN training as studied in Tran et al. (2019); Chen et al. (2019). However, the auxiliary self-supervision tasks in prior works have limited using scenario and image domain. Moreover, prior works only studied on low resolution images ( $3 2 ^ { 2 }$ to $1 2 8 ^ { 2 }$ ), and without a computing resource limitation. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
103,
|
| 240 |
+
825,
|
| 241 |
+
160
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "3 METHOD ",
|
| 248 |
+
"text_level": 1,
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
179,
|
| 252 |
+
281,
|
| 253 |
+
195
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "We adopt a minimalistic design for our model. In particular, we use a single conv-layer on each resolution in $G$ , and apply only three (input and output) channels for the conv-layers on the high resolutions $( \\geq 5 1 2 \\times 5 1 2 )$ in both $G$ and $D$ . Fig. 3 and Fig. 4 illustrate the model structure for our $G$ and $D$ , with descriptions of the component layers and forward flow. These structure designs make our GAN much smaller than SOTA models and substantially faster to train. Meanwhile, our model remains robust on small datasets due to its compact size with the two proposed techniques. ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
173,
|
| 262 |
+
210,
|
| 263 |
+
825,
|
| 264 |
+
295
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "image",
|
| 270 |
+
"img_path": "images/77e9d791f8976014c759d5c16143c8185e618fe9385c486e187b8086d323338f.jpg",
|
| 271 |
+
"image_caption": [
|
| 272 |
+
"Figure 3: The structure of the skip-layer excitation module and the Generator. Yellow boxes represent feature-maps (we show the spatial size and omit the channel number), blue box and blue arrows represent the same up-sampling structure, red box contains the SLE module as illustrated on the left. "
|
| 273 |
+
],
|
| 274 |
+
"image_footnote": [],
|
| 275 |
+
"bbox": [
|
| 276 |
+
215,
|
| 277 |
+
311,
|
| 278 |
+
784,
|
| 279 |
+
446
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 2
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "3.1 SKIP-LAYER CHANNEL-WISE EXCITATION ",
|
| 286 |
+
"text_level": 1,
|
| 287 |
+
"bbox": [
|
| 288 |
+
174,
|
| 289 |
+
534,
|
| 290 |
+
506,
|
| 291 |
+
547
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "For synthesizing higher resolution images, the generator $G$ inevitably needs to become deeper, with more conv-layers, in concert with the up-sampling needs. A deeper model with more convolution layers leads to a longer training time of GAN, due to the increased number of model parameters and a weaker gradient flow through $G$ (Zhang et al., 2017; Karras et al., 2018; Karnewar & Wang, 2020). To better train a deep model, He et al. design the Residual structure (ResBlock), which uses a skip-layer connection to strengthen the gradient signals between layers. However, while ResBlock has been widely used in GAN literature (Wang et al., 2018; Karras et al., 2020b), it also increases the computation cost. ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
173,
|
| 300 |
+
559,
|
| 301 |
+
825,
|
| 302 |
+
671
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "We reformulate the skip-connection idea with two unique designs into the Skip-Layer Excitation module (SLE). First, ResBlock implements skip-connection as an element-wise addition between the activations from different conv-layers. It requires the spatial dimensions of the activations to be the same. Instead of addition, we apply channel-wise multiplications between the activations, eliminating the heavy computation of convolution (since one side of the activations now has a spatial dimension of $1 ^ { 2 }$ ). Second, in prior GAN works, skip-connections are only used within the same resolution. In contrast, we perform skip-connection between resolutions with a much longer range (e.g., $8 ^ { 2 }$ and $1 2 8 ^ { 2 }$ , $1 6 ^ { 2 }$ and $2 5 6 ^ { 2 }$ ), since an equal spatial-dimension is no longer required. The two designs make SLE inherits the advantages of ResBlock with a shortcut gradient flow, meanwhile without an extra computation burden. ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
678,
|
| 312 |
+
825,
|
| 313 |
+
818
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Formally, we define the Skip-Layer Excitation module as: ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
173,
|
| 322 |
+
824,
|
| 323 |
+
553,
|
| 324 |
+
838
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "equation",
|
| 330 |
+
"img_path": "images/d9c79eb564e07c1b444daf7a02df7206eaaaa09fe5f7c937679b8cbb1385fe6e.jpg",
|
| 331 |
+
"text": "$$\n\\mathbf { y } = \\mathcal { F } ( \\mathbf { x } _ { l o w } , \\{ \\mathbf { W } _ { i } \\} ) \\cdot \\mathbf { x } _ { h i g h }\n$$",
|
| 332 |
+
"text_format": "latex",
|
| 333 |
+
"bbox": [
|
| 334 |
+
403,
|
| 335 |
+
844,
|
| 336 |
+
593,
|
| 337 |
+
862
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Here $\\mathbf { x }$ and $\\mathbf { y }$ are the input and output feature-maps of the SLE module, the function $\\mathcal { F }$ contains the operations on $\\mathbf { x } _ { l o w }$ , and $\\mathbf { W } _ { i }$ indicates the module weights to be learned. The left panel in Fig. 3 shows an SLE module in practice, where $\\mathbf { x } _ { l o w }$ and ${ \\bf x } _ { h i g h }$ are the feature-maps at $8 \\times 8$ and $1 2 8 \\times 1 2 8$ resolution respectively. An adaptive average-pooling layer in $\\mathcal { F }$ first down-samples $\\mathbf { x } _ { l o w }$ into $4 \\times 4$ along the spatial-dimensions, then a conv-layer further down-samples it into $1 \\times 1$ . A LeakyReLU is used to model the non-linearity, and another conv-layer projects $\\mathbf { x } _ { l o w }$ to have the same channel size as ${ \\bf x } _ { h i g h }$ . Finally, after a gating operation via a Sigmoid function, the output from $\\mathcal { F }$ multiplies ${ \\bf x } _ { h i g h }$ along the channel dimension, yielding y with the same shape as ${ \\bf x } _ { h i g h }$ . ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
174,
|
| 346 |
+
867,
|
| 347 |
+
825,
|
| 348 |
+
924
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "",
|
| 355 |
+
"bbox": [
|
| 356 |
+
174,
|
| 357 |
+
103,
|
| 358 |
+
823,
|
| 359 |
+
160
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "SLE partially resembles the Squeeze-and-Excitation module (SE) proposed by Hu et al.. However, SE operates within one feature-map as a self-gating module. In comparison, SLE performs between feature-maps that are far away from each other. While SLE brings the benefit of channel-wise feature re-calibration just like SE, it also strengthens the whole model’s gradient flow like ResBlock. The channel-wise multiplication in SLE also coincides with Instance Normalization (Ulyanov et al., 2016; Huang & Belongie, 2017), which is widely used in style-transfer. Similarly, we show that SLE enables $G$ to automatically disentangle the content and style attributes, just like StyleGAN (Karras et al., 2019). As SLE performs on high-resolution feature-maps, altering these feature-maps is shown to be more likely to change the style attributes of the generated image (Karras et al., 2019; Liu et al., 2021). By replacing $\\mathrm { x } _ { l o w }$ in SLE from another synthesized sample, our $G$ can generate an image with the content unchanged, but in the same style of the new replacing image. ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
174,
|
| 368 |
+
166,
|
| 369 |
+
825,
|
| 370 |
+
319
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "3.2 SELF-SUPERVISED DISCRIMINATOR ",
|
| 377 |
+
"text_level": 1,
|
| 378 |
+
"bbox": [
|
| 379 |
+
176,
|
| 380 |
+
335,
|
| 381 |
+
457,
|
| 382 |
+
349
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Our approach to provide a strong regularization for $D$ is surprisingly simple. We treat $D$ as an encoder and train it with small decoders. Such auto-encoding training forces $D$ to extract image features that the decoders can give good reconstructions. The decoders are optimized together with $D$ on a simple reconstruction loss, which is only trained on real samples: ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
361,
|
| 392 |
+
823,
|
| 393 |
+
416
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "equation",
|
| 399 |
+
"img_path": "images/a7fa1ed3572f31934eba88f24c02b5712afb2ce782dc92d33521792b0e8dcbee.jpg",
|
| 400 |
+
"text": "$$\n\\mathcal { L } _ { r e c o n s } = \\mathbb { E } _ { { \\mathbf { f } } \\sim D _ { e n c o d e } ( x ) , x \\sim I _ { r e a l } } [ | | \\mathcal { G } ( { \\mathbf { f } } ) - \\mathcal { T } ( x ) | | ] ,\n$$",
|
| 401 |
+
"text_format": "latex",
|
| 402 |
+
"bbox": [
|
| 403 |
+
328,
|
| 404 |
+
419,
|
| 405 |
+
666,
|
| 406 |
+
436
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "where f is the intermediate feature-maps from $D$ , the function $\\mathcal { G }$ contains the processing on $\\mathbf { f }$ and the decoder, and the function $\\tau$ represents the processing on sample $x$ from real images $I _ { r e a l }$ . ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
176,
|
| 415 |
+
444,
|
| 416 |
+
825,
|
| 417 |
+
473
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "image",
|
| 423 |
+
"img_path": "images/9a306a457d02094cd3f62aa4073b58f603ba66c103909121121ac6ad9df1aca9.jpg",
|
| 424 |
+
"image_caption": [
|
| 425 |
+
"Figure 4: The structure and the forward flow of the Discriminator. Blue box and arrows represent the same residual down-sampling structure, green boxes mean the same decoder structure. "
|
| 426 |
+
],
|
| 427 |
+
"image_footnote": [],
|
| 428 |
+
"bbox": [
|
| 429 |
+
210,
|
| 430 |
+
488,
|
| 431 |
+
785,
|
| 432 |
+
611
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "Our self-supervised $D$ is illustrated in Fig. 4, where we employ two decoders for the feature-maps on two scales: $\\mathbf { f } _ { 1 }$ on $1 6 ^ { 2 }$ and $\\mathbf { f } _ { 2 }$ on $8 ^ { 2 }$ . The decoders only have four conv-layers to produce images at $1 2 8 \\times 1 2 8$ resolution, causing little extra computations (much less than other regularization methods). We randomly crop $\\mathbf { f } _ { 1 }$ with $\\frac { 1 } { 8 }$ of its height and width, then crop the real image on the same portion to get $I _ { p a r t }$ . We resize the real image to get $I$ . The decoders produce $I _ { p a r t } ^ { \\prime }$ from the cropped $\\mathbf { f } _ { 1 }$ , and $I ^ { \\prime }$ from $\\mathbf { f } _ { 2 }$ . Finally, $D$ and the decoders are trained together to minimize the loss in eq. 2, by matching $I _ { p a r t } ^ { \\prime }$ to $I _ { p a r t }$ and $I ^ { \\prime }$ to $I$ . ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
672,
|
| 442 |
+
825,
|
| 443 |
+
770
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "Such reconstructive training makes sure that $D$ extracts a more comprehensive representation from the inputs, covering both the overall compositions (from $\\mathbf { f } _ { 2 }$ ) and detailed textures (from $\\mathbf { f } _ { 1 }$ ). Note that the processing in $\\mathcal { G }$ and $\\tau$ are not limited to cropping; more operations remain to be explored for better performance. The auto-encoding approach we employ is a typical method for self-supervised learning, which has been well recognized to improve the model robustness and generalization ability (He et al., 2020; Hendrycks et al., 2019; Jing & Tian, 2020; Goyal et al., 2019). In the context of GAN, we find that a regularized $D$ via self-supervision training strategies significantly improves the synthesis quality on $G$ , among which auto-encoding brings the most performance boost. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
776,
|
| 453 |
+
825,
|
| 454 |
+
888
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Although our self-supervision strategy for $D$ comes in the form of an auto-encoder (AE), this approach is fundamentally different from works trying to combine GAN and AE (Larsen et al., 2016; ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
895,
|
| 464 |
+
823,
|
| 465 |
+
924
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Guo et al., 2019; Zhao et al., 2016; Berthelot et al., 2017). The latter works mostly train $G$ as a decoder on a learned latent space from $D$ , or treat the adversarial training with $D$ as an supplementary loss besides AE’s training. In contrast, our model is a pure GAN with a much simpler training schema. The auto-encoding training is only for regularizing $D$ , where $G$ is not involved. ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
174,
|
| 474 |
+
103,
|
| 475 |
+
823,
|
| 476 |
+
160
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "In sum, we employ the hinge version of the adversarial loss (Lim & Ye (2017); Tran et al. (2017)) to iteratively train our $\\mathrm { D }$ and G. We find the different GAN losses make little performance difference, while hinge loss computes the fastest: ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
166,
|
| 486 |
+
825,
|
| 487 |
+
208
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "equation",
|
| 493 |
+
"img_path": "images/0cdaec004160dce663bfda58e082f303350b6f79ecc4ee5dc68ed1b30bb31cc5.jpg",
|
| 494 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { D } = - \\mathbb { E } _ { x \\sim I _ { r { e a l } } } [ m i n ( 0 , - 1 + D ( x ) ) ] - \\mathbb { E } _ { \\hat { x } \\sim G ( z ) } [ m i n ( 0 , - 1 - D ( \\hat { x } ) ] + \\mathcal { L } _ { r e c o n s } } \\\\ & { \\mathcal { L } _ { G } = - \\mathbb { E } _ { z \\sim N } [ D ( G ( z ) ) ] , } \\end{array}\n$$",
|
| 495 |
+
"text_format": "latex",
|
| 496 |
+
"bbox": [
|
| 497 |
+
222,
|
| 498 |
+
210,
|
| 499 |
+
772,
|
| 500 |
+
251
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "4 EXPERIMENT ",
|
| 507 |
+
"text_level": 1,
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
266,
|
| 511 |
+
316,
|
| 512 |
+
282
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "Datasets: We conduct experiments on multiple datasets with a wide range of content categories. On $2 5 6 \\times 2 5 6$ resolution, we test on Animal-Face Dog and Cat (Si & Zhu, 2011), 100-Shot-Obama, Panda, and Grumpy-cat (Zhao et al., 2020). On $1 0 2 4 \\times 1 0 2 4$ resolution, we test on Flickr-FaceHQ (FFHQ) (Karras et al., 2019), Oxford-flowers (Nilsback & Zisserman, 2006), art paintings from WikiArt (wikiart.org), photographs on natural landscape from Unsplash (unsplash.com), Pokemon (pokemon.com), anime face, skull, and shell. These datasets are designed to cover images with different characteristics: photo realistic, graphic-illustration, and art-like images. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
296,
|
| 522 |
+
825,
|
| 523 |
+
395
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "Metrics: We use two metrics to measure the models’ synthesis performance: 1) Frechet Inception ´ Distance (FID) (Heusel et al., 2017) measures the overall semantic realism of the synthesized images. For datasets with less than 1000 images (most only have 100 images), we let $G$ generate 5000 images and compute FID between the synthesized images and the whole training set. 2) Learned perceptual similarity (LPIPS) (Zhang et al., 2018) provides a perceptual distance between two images. We use LPIPS to report the reconstruction quality when we perform latent space back-tracking on $G$ given real images, and measure the auto-encoding performance. We find it unnecessary to involve other metrics, as FID is unlikely to be inconsistent with the others, given the notable performance gap between our model and the compared ones. For all the testings, we train the models 5 times with random seeds, and report the highest scores. The relative error is less than five percent on average. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
173,
|
| 532 |
+
401,
|
| 533 |
+
825,
|
| 534 |
+
540
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 4
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Compared Models: We compare our model with: 1) the state-of-the-art (SOTA) unconditional model, StyleGAN2, 2) a baseline model ablated from our proposed one. Note that we adopt StyleGAN2 with recent studies from (Karras et al., 2020a; Zhao et al., 2020), including the model configuration and differentiable data-augmentation, for the best training on few-sample datasets. Since StyleGAN2 requires much more computing-cost (cc) to train, we derive an extra baseline model. In sum, we compare our model with StyleGAN2 on the absolute image synthesis quality regardless of cc, and use the baseline model for the reference within a comparable cc range. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
174,
|
| 543 |
+
547,
|
| 544 |
+
825,
|
| 545 |
+
645
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 4
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "The baseline model is the strongest performer that we integrated from various GAN techniques based on DCGAN (Radford et al., 2015): 1) spectral-normalization (Miyato et al., 2018), 2) exponentialmoving-average (Yazıcı et al., 2018) optimization on $G$ , 3) differentiable-augmentation, 4) GLU (Dauphin et al., 2017) instead of ReLU in $G$ . We build our model upon the baseline with the two proposed techniques: the skip-layer excitation module and the self-supervised discriminator. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
651,
|
| 555 |
+
825,
|
| 556 |
+
722
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "table",
|
| 562 |
+
"img_path": "images/1f4efb8d3334e411be43f2e7cd358faf2c1f379c1346cb2f0d460a8d48ba6f17.jpg",
|
| 563 |
+
"table_caption": [
|
| 564 |
+
"Table 1: Computational cost comparison of the models. "
|
| 565 |
+
],
|
| 566 |
+
"table_footnote": [],
|
| 567 |
+
"table_body": "<table><tr><td></td><td></td><td>StyleGAN2@0.25</td><td>StyleGAN2@0.5</td><td>StyleGAN2</td><td>Baseline</td><td>Ours</td></tr><tr><td rowspan=\"2\">Resolution: 2562 Batch-size: 8</td><td>Training time (hour/10k iter) Training vram (GB)</td><td>1</td><td>1.8</td><td>3.8</td><td>0.7</td><td>1</td></tr><tr><td>Model parameters (million)</td><td>7 27.557</td><td>16 45.029</td><td>18 108.843</td><td>5</td><td>6.5 47.363</td></tr><tr><td rowspan=\"2\">Resolution: 10242</td><td>Training time (hour/10k iter)</td><td></td><td></td><td></td><td>44.359</td><td></td></tr><tr><td>Training vram (GB)</td><td>3.6</td><td>5</td><td>7</td><td>1.3</td><td>1.7</td></tr><tr><td rowspan=\"2\">Batch-size: 8</td><td>Model parameters (million)</td><td>12</td><td>23</td><td>36</td><td>9</td><td>10</td></tr><tr><td></td><td>27.591</td><td>45.15</td><td>109.229</td><td>44.377</td><td>47.413</td></tr></table>",
|
| 568 |
+
"bbox": [
|
| 569 |
+
207,
|
| 570 |
+
765,
|
| 571 |
+
790,
|
| 572 |
+
847
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "Table. 1 presents the normalized cc figures of the models on Nvidia’s RTX 2080-Ti GPU, implemented using PyTorch (Paszke et al., 2017). Importantly, the slimed StyleGAN2 with $\\frac { 1 } { 4 }$ parameters cannot converge on the tested datasets at $1 0 2 4 ^ { 2 }$ resolution. We compare to the StyleGAN2 with $\\frac { 1 } { 2 }$ parameters (if not specifically mentioned) in the following experiments. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
864,
|
| 582 |
+
825,
|
| 583 |
+
924
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "4.1 IMAGE SYNTHESIS PERFORMANCE ",
|
| 590 |
+
"text_level": 1,
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
104,
|
| 594 |
+
452,
|
| 595 |
+
117
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 5
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "Few-shot generation: Collecting large-scale image datasets are expensive, or even impossible, for a certain character, a genre, or a topic. On those few-shot datasets, a data-efficient model becomes especially valuable for the image generation task. In Table. 2 and Table. 3, we show that our model not only achieves superior performance on the few-shot datasets, but also much more computationalefficient than the compared methods. We save the checkpoints every 10k iterations during training and report the best FID from the checkpoints (happens at least after 15 hours of training for StyleGAN2 on all datasets). Among the 12 datasets, our model performs the best on 10 of them. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
173,
|
| 604 |
+
130,
|
| 605 |
+
825,
|
| 606 |
+
228
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 5
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "Please note that, due to the VRAM requirement for StyleGAN2 when trained on $1 0 2 4 ^ { 2 }$ resolution, we have to train the models in Table. 3 on a RTX TITAN GPU. In practice, 2080-TI and TITAN share a similar performance, and our model runs the same time on both GPUs. ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
176,
|
| 615 |
+
233,
|
| 616 |
+
825,
|
| 617 |
+
276
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 5
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "table",
|
| 623 |
+
"img_path": "images/d1ce73964e63035d02350b6e1d311fc9c5cc6aaf050bc351a12b847561ec349c.jpg",
|
| 624 |
+
"table_caption": [
|
| 625 |
+
"Table 2: FID comparison at $2 5 6 ^ { 2 }$ resolution on few-sample datasets. "
|
| 626 |
+
],
|
| 627 |
+
"table_footnote": [],
|
| 628 |
+
"table_body": "<table><tr><td colspan=\"4\">Animal Face- Dog</td><td>Animal Face - Cat</td><td>Obama</td><td>Panda</td><td>Grumpy-cat</td></tr><tr><td colspan=\"3\">Image number</td><td>389</td><td>160</td><td>100</td><td>100</td><td>100</td></tr><tr><td rowspan=\"5\">Training time on one RTX 2080-Ti</td><td rowspan=\"5\">20 hour</td><td>StyleGAN2</td><td>58.85</td><td>42.44</td><td>46.87</td><td>12.06</td><td>27.08</td></tr><tr><td>StyleGAN2 finetune</td><td>61.03</td><td>46.07</td><td>35.75</td><td>14.5</td><td>29.34</td></tr><tr><td>Baseline 5 hour</td><td>108.19</td><td>150.3</td><td>62.74</td><td>15.4</td><td>42.13</td></tr><tr><td>Baseline+Skip</td><td>94.21</td><td>72.97</td><td>52.50</td><td>14.39</td><td>38.17</td></tr><tr><td>Baseline+decode Ours (B+Skip+decode)</td><td>56.25 50.66</td><td>36.74 35.11</td><td>44.34 41.05</td><td>10.12 10.03</td><td>29.38 26.65</td></tr></table>",
|
| 629 |
+
"bbox": [
|
| 630 |
+
209,
|
| 631 |
+
315,
|
| 632 |
+
794,
|
| 633 |
+
409
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Training from scratch vs. fine-tuning: Fine-tuning from a pre-trained GAN (Mo et al., 2020; Noguchi & Harada, 2019; Wang et al., 2020) has been the go-to method for the image generation task on datasets with few samples. However, its performance highly depends on the semantic consistency between the new dataset and the available pre-trained model. According to Zhao et al., fine-tuning performs worse than training from scratch in most cases, when the content from the new dataset strays away from the original one. We confirm the limitation of current fine-tuning methods from Table. 2 and Table. 3, where we fine-tune StyleGAN2 trained on FFHQ use the Freeze-D method from Mo et al.. Among all the tested datasets, only Obama and Skull favor the fine-tuning method, making sense since the two sets share the most similar contents to FFHQ. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
173,
|
| 642 |
+
421,
|
| 643 |
+
825,
|
| 644 |
+
547
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "Module ablation study: We experiment with the two proposed modules in Table. 2, where both SLE (skip) and decoding-on- $. D$ (decode) can separately boost the model performance. It shows that the two modules are orthogonal to each other in improving the model performance, and the self-supervised $D$ makes the biggest contribution. Importantly, the baseline model and StyleGAN2 diverge fast after the listed training time. In contrast, our model is less likely to mode collapse among the tested datasets. Unlike the baseline model which usually model-collapse after trained for 10 hours, our model maintains a good synthesis quality and won’t collapse even after trained for 20 hours. We argue that it is the decoding regularization on $D$ that prevents the model from divergence. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
173,
|
| 653 |
+
554,
|
| 654 |
+
825,
|
| 655 |
+
666
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "table",
|
| 661 |
+
"img_path": "images/95a9a1c7aa2c305703e8a420a823e6a7526911ddf1b3442642e8c7e235e93ee9.jpg",
|
| 662 |
+
"table_caption": [
|
| 663 |
+
"Table 3: FID comparison at $1 0 2 4 ^ { 2 }$ resolution on few-sample datasets. "
|
| 664 |
+
],
|
| 665 |
+
"table_footnote": [],
|
| 666 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td>Art Paintings</td><td>FFHQ</td><td>Flower</td><td>Pokemon</td><td>Anime Face</td><td>Skull</td><td>Shell</td></tr><tr><td colspan=\"3\">Image number</td><td>1000</td><td>1000</td><td>1000</td><td>800</td><td>120</td><td>100</td><td>60</td></tr><tr><td rowspan=\"2\">Training time on one RTX TITAN</td><td>24 hour</td><td>StyleGAN2 StyleGAN2 finetune</td><td>74.56 N/A</td><td>25.66 N/A</td><td>45.23 36.72</td><td>190.23 60.12</td><td>152.73 61.23</td><td>127.98 107.68</td><td>241.37</td></tr><tr><td>8 hour</td><td>Baseline Ours</td><td>62.27 45.08</td><td>38.35 24.45</td><td>42.25</td><td>67.86</td><td>101.23</td><td>186.45</td><td>220.45 202.32</td></tr></table>",
|
| 667 |
+
"bbox": [
|
| 668 |
+
209,
|
| 669 |
+
704,
|
| 670 |
+
792,
|
| 671 |
+
781
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "table",
|
| 677 |
+
"img_path": "images/2c061e97690d06f7f35601a46b80e6e8eaa43f40c6855dda2141a49ab03996ab.jpg",
|
| 678 |
+
"table_caption": [
|
| 679 |
+
"Table 4: FID comparison at $1 0 2 4 ^ { 2 }$ resolution on datasets with more images. "
|
| 680 |
+
],
|
| 681 |
+
"table_footnote": [],
|
| 682 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td>Dataset</td><td colspan=\"3\">Art Paintings</td><td colspan=\"3\">FFHQ</td><td colspan=\"3\">Nature Photograph</td></tr><tr><td>Image number</td><td>2k 5k</td><td>10k</td><td>2k</td><td>5k</td><td>10k</td><td>70k</td><td>2k</td><td>5k</td><td>10k</td></tr><tr><td colspan=\"2\">StyleGAN2</td><td>70.02</td><td>48.36</td><td>41.23</td><td>18.38</td><td>10.45</td><td>7.86</td><td>4.4</td><td>67.12</td><td>41.47 39.05</td></tr><tr><td colspan=\"2\">Baseline</td><td>60.02</td><td>51.23</td><td>49.38</td><td>36.45</td><td>27.86</td><td>25.12</td><td>17.62 71.47</td><td>66.05</td><td>62.28</td></tr><tr><td colspan=\"2\">Ours</td><td>44.57</td><td>43.27</td><td>42.53</td><td>19.01</td><td>17.93</td><td>16.45</td><td>12.38 52.47</td><td>45.07</td><td>43.65</td></tr></table>",
|
| 683 |
+
"bbox": [
|
| 684 |
+
191,
|
| 685 |
+
827,
|
| 686 |
+
810,
|
| 687 |
+
915
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 5
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "table",
|
| 693 |
+
"img_path": "images/e9b66b10f6acd7c0348aa845238107c97571493087ae17bae8f6ea22b251201c.jpg",
|
| 694 |
+
"table_caption": [
|
| 695 |
+
"Table 5: LPIPS of back-tracking with $G$ "
|
| 696 |
+
],
|
| 697 |
+
"table_footnote": [],
|
| 698 |
+
"table_body": "<table><tr><td></td><td>Cat</td><td>Dog</td><td>FFHQ</td><td>Art</td></tr><tr><td>Resolution</td><td colspan=\"2\">256</td><td colspan=\"2\">1024</td></tr><tr><td>Baseline @ 20k iter</td><td>2.113</td><td>2.073</td><td>2.589</td><td>2.916</td></tr><tr><td>Baseline @ 40k iter</td><td>2.513</td><td>2.171</td><td>2.583</td><td>2.812</td></tr><tr><td>Ours @ 40k iter</td><td>1.821</td><td>1.918</td><td>2.425</td><td>2.624</td></tr><tr><td>Ours @ 80k iter</td><td>1.897</td><td>1.986</td><td>2.342</td><td>2.601</td></tr></table>",
|
| 699 |
+
"bbox": [
|
| 700 |
+
562,
|
| 701 |
+
142,
|
| 702 |
+
823,
|
| 703 |
+
215
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 6
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "image",
|
| 709 |
+
"img_path": "images/40e031b55ed0a6c6e2c80f2d7f05dbf26a14fdda2891f0c61671d35dead85d5f.jpg",
|
| 710 |
+
"image_caption": [
|
| 711 |
+
"Figure 6: Latent space back-tracking and interpolation. "
|
| 712 |
+
],
|
| 713 |
+
"image_footnote": [],
|
| 714 |
+
"bbox": [
|
| 715 |
+
158,
|
| 716 |
+
104,
|
| 717 |
+
514,
|
| 718 |
+
324
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 6
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "table",
|
| 724 |
+
"img_path": "images/0498847b141c6f275366b0767aa1f64c58577802c511f13906ab75cd2e0b5460.jpg",
|
| 725 |
+
"table_caption": [
|
| 726 |
+
"Table 6: FID of self-supervisions for $D$ "
|
| 727 |
+
],
|
| 728 |
+
"table_footnote": [],
|
| 729 |
+
"table_body": "<table><tr><td></td><td>Art paintings</td><td>Nature photos</td></tr><tr><td>a. contrastive loss</td><td>47.14</td><td>57.04</td></tr><tr><td>b. predict aspect ratio</td><td>49.21</td><td>59.22</td></tr><tr><td>c.auto-encoding</td><td>42.53</td><td>43.65</td></tr><tr><td>d.a+b</td><td>46.02</td><td>54.23</td></tr><tr><td>e.a+b+c</td><td>44.21</td><td>47.65</td></tr></table>",
|
| 730 |
+
"bbox": [
|
| 731 |
+
562,
|
| 732 |
+
270,
|
| 733 |
+
823,
|
| 734 |
+
338
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 6
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Training with more images: For more thorough evaluation, we also test our model on datasets with more sufficient training samples, as shown in Table. 4. We train the full StyleGAN2 for around five days on the Art and Photograph dataset with a batch-size of 16 on two TITAN RTX GPUs, and use the latest official figures on FFHQ from Zhao et al.. Instead, we train our model for only 24 hours, with a batch-size of 8 on a single 2080-Ti GPU. Specifically, for FFHQ with all 70000 images, we train our model with a larger batch-size of 32, to reflect an optimal performance of our model. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
174,
|
| 743 |
+
382,
|
| 744 |
+
825,
|
| 745 |
+
465
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 6
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "In this test, we follow the common practice of computing FID by generating $5 0 \\mathrm { k }$ images and use the whole training set as the reference distribution. Note that StyleGAN2 has more than double the parameters compared to our model, and trained with a much larger batch-size on FFHQ. These factors contribute to its better performances when given enough training samples and computing power. Meanwhile, our model keeps up well with StyleGAN2 across all testings with a considerably lower computing budget, showing a compelling performance even on larger-scale datasets, and a consistent performance boost over the baseline model. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
473,
|
| 755 |
+
825,
|
| 756 |
+
570
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 6
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "Qualitative results: The advantage of our model becomes more clear from the qualitative comparisons in Fig. 5. Given the same batch-size and training time, StyleGAN2 either converges slower or suffers from mode collapse. In contrast, our model consistently generates satisfactory images. Note that the best results from our model on Flower, Shell, and Pokemon only take three hours’ training, and for the rest three datasets, the best performance is achieved at training for eight hours. For StyleGAN2 on “shell”, “anime face”, and “Pokemon”, the images shown in Fig. 5 are already from the best epoch, which they match the scores in Table. 2 and Table. 3. For the rest of the datasets, the quality increase from StyleGAN2 is also limited given more training time. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
577,
|
| 766 |
+
825,
|
| 767 |
+
688
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "4.2 MORE ANALYSIS AND APPLICATIONS ",
|
| 774 |
+
"text_level": 1,
|
| 775 |
+
"bbox": [
|
| 776 |
+
176,
|
| 777 |
+
708,
|
| 778 |
+
475,
|
| 779 |
+
723
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 6
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Testing mode collapse with back-tracking: From a well trained GAN, one can take a real image and invert it back to a vector in the latent space of $G$ , thus editing the image’s content by altering the back-tracked vector. Despite the various back-tracking methods (Zhu et al., 2016; Lipton & Tripathi, 2017; Zhu et al., 2020; Abdal et al., 2019), a well generalized $G$ is arguably as important for the good inversions. To this end, we show that our model, although trained on limited image samples, still gets a desirable performance on real image back-tracking. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
734,
|
| 789 |
+
825,
|
| 790 |
+
819
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 6
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "In Table 5, we split the images from each dataset with a training/testing ratio of 9:1, and train $G$ on the training set. We compute a reconstruction error between all the images from the testing set and their inversions from $G$ , after the same update of 1000 iterations on the latent vectors (to prevent the vectors from being far off the normal distribution). The baseline model’s performance is getting worse with more training iterations, which reflects mode-collapse on $G$ . In contrast, our model gives better reconstructions with consistent performance over more training iterations. Fig. 6 presents the back-tracked examples (left-most and right-most samples in the middle panel) given the real images. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
174,
|
| 799 |
+
827,
|
| 800 |
+
825,
|
| 801 |
+
924
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 6
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "image",
|
| 807 |
+
"img_path": "images/1b089ab672f80d73a3e1097e0c357e7475d1d83e616607b8144ca506fa52e69d.jpg",
|
| 808 |
+
"image_caption": [
|
| 809 |
+
"Figure 5: Qualitative comparison between our model and StyleGAN2 on $1 0 2 4 ^ { 2 }$ resolution datasets. The left-most panel shows the training images, and the right two panels show the uncurated samples from StyleGAN2 and our model. Both models are trained from scratch for 10 hours with a batch-size of 8. The samples are generated from the checkpoint with the lowest FID. "
|
| 810 |
+
],
|
| 811 |
+
"image_footnote": [],
|
| 812 |
+
"bbox": [
|
| 813 |
+
210,
|
| 814 |
+
102,
|
| 815 |
+
784,
|
| 816 |
+
661
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 7
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "The smooth interpolations from the back-tracked latent vectors also suggest little mode-collapse of our $G$ (Radford et al., 2015; Zhao et al., 2020; Robb et al., 2020). ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
173,
|
| 825 |
+
756,
|
| 826 |
+
823,
|
| 827 |
+
784
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 7
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "In addition, we show qualitative comparisons in appendix D, where our model maintains a good generation while StyleGAN2 and baseline are model-collapsed. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
173,
|
| 836 |
+
790,
|
| 837 |
+
823,
|
| 838 |
+
820
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 7
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "The self-supervision methods and generalization ability on $D$ : Apart from the auto-encoding training for $D$ , we show that $D$ with other common self-supervising strategies also boost GAN’s performance in our training settings. We test five self-supervision settings, as shown in Table 6, which all brings a substantial performance boost compared to the baseline model. Specifically, setting-a refers to contrastive learning which we treat each real image as a unique class and let $D$ classify them. For setting- $\\mathbf { \\sigma } . \\mathbf { b }$ , we train $D$ to predict the real image’s original aspect-ratio since they are reshaped to square when fed to $D$ . Setting-c is the method we employ in our model, which trains $D$ as an encoder with a decoder to reconstruct real images. To better validate the benefit of self-supervision on $D$ , all the testings are conducted on full training sets with 10000 images, with a batch-size of 8 to be consistent with Table 4. We also tried training with a larger batch-size of 16, which the results are consistent to the batch-size of 8. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
827,
|
| 848 |
+
825,
|
| 849 |
+
924
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 7
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "image",
|
| 855 |
+
"img_path": "images/2da992c184746b333c41d52b16369f17b9f833b9e36850835fc27919e5604135.jpg",
|
| 856 |
+
"image_caption": [
|
| 857 |
+
"Figure 7: Style-mixing results from our model trained for only 5 hours on single GPU. "
|
| 858 |
+
],
|
| 859 |
+
"image_footnote": [],
|
| 860 |
+
"bbox": [
|
| 861 |
+
210,
|
| 862 |
+
103,
|
| 863 |
+
789,
|
| 864 |
+
352
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
405,
|
| 874 |
+
825,
|
| 875 |
+
460
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Interestingly, according to Table 6, while setting-c performs the best, combining it with the rest two settings lead to a clear performance downgrade. The similar behavior can be found on some other self-supervision settings, e.g. when follow Chen et al. (2019) with a ”rotation-predicting” task on art-paintings and FFHQ datasets, we observe a performance downgrade even compared to the baseline model. We hypothesis the reason being that the auto-encoding forces $D$ to pay attention to more areas of the input image, thus extracts a more comprehensive feature-map to describe the input image (for a good reconstruction). In contrast, a classification task does not guarantee $D$ to cover the whole image. Instead, the task drives $D$ to only focus on small regions because the model can find class cues from small regions of the images. Focusing on limited regions (i.e., react to limited image patterns) is a typical overfitting behavior, which is also widely happening for $D$ in vanilla GANs. More discussion can be found in appendix B. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
468,
|
| 885 |
+
825,
|
| 886 |
+
621
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Style mixing like StyleGAN. With the channel-wise excitation module, our model gets the same functionality as StyleGAN: it learns to disentangle the images’ high-level semantic attributes (style and content) in an unsupervised way, from $G$ ’s conv-layers at different scales. The style-mixing results are displayed in Fig. 7, where the top three datasets are $2 5 6 \\times 2 5 6$ resolution, and the bottom three are $1 0 2 4 \\times 1 0 2 4$ resolution. While StyleGAN2 suffers from converging on the bottom high-resolution datasets, our model successfully learns the style representations along the channel dimension on the “excited” layers (i.e., for feature-maps on $2 5 6 \\times 2 5 6$ , $5 1 2 \\times 5 1 2$ resolution). Please refer to appendix A and C for more information on SLE and style-mixing. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
173,
|
| 895 |
+
627,
|
| 896 |
+
825,
|
| 897 |
+
739
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "5 CONCLUSION ",
|
| 904 |
+
"text_level": 1,
|
| 905 |
+
"bbox": [
|
| 906 |
+
176,
|
| 907 |
+
758,
|
| 908 |
+
318,
|
| 909 |
+
775
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 8
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "We introduce two techniques that stabilize the GAN training with an improved synthesis quality, given sub-hundred high-fidelity images and a limited computing resource. On thirteen datasets with a diverse content variation, we show that a skip-layer channel-wise excitation mechanism (SLE) and a self-supervised regularization on the discriminator significantly boost the synthesis performance of GAN. Both proposed techniques require minor changes to a vanilla GAN, enhancing GAN’s practicality with a desirable plug-and-play property. We hope this work can benefit downstream tasks of GAN and provide new study perspectives for future research. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
173,
|
| 918 |
+
791,
|
| 919 |
+
825,
|
| 920 |
+
888
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 8
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "REFERENCES ",
|
| 927 |
+
"text_level": 1,
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
102,
|
| 931 |
+
287,
|
| 932 |
+
117
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 9
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan: How to embed images into the stylegan latent space? In Proceedings of the IEEE international conference on computer vision, pp. 4432–4441, 2019. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
126,
|
| 942 |
+
823,
|
| 943 |
+
169
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 9
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Martin Arjovsky and Leon Bottou. Towards principled methods for training generative adversarial ´ networks. In International Conference on Learning Representations, 2017. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
171,
|
| 952 |
+
178,
|
| 953 |
+
823,
|
| 954 |
+
208
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In International conference on machine learning, pp. 214–223. PMLR, 2017. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
171,
|
| 963 |
+
217,
|
| 964 |
+
823,
|
| 965 |
+
246
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "David Berthelot, Thomas Schumm, and Luke Metz. Began: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
171,
|
| 974 |
+
255,
|
| 975 |
+
823,
|
| 976 |
+
285
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
173,
|
| 985 |
+
294,
|
| 986 |
+
823,
|
| 987 |
+
323
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 9
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Ting Chen, Xiaohua Zhai, Marvin Ritter, Mario Lucic, and Neil Houlsby. Self-supervised gans via auxiliary rotation loss. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 12154–12163, 2019. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
176,
|
| 996 |
+
332,
|
| 997 |
+
825,
|
| 998 |
+
376
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 9
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. In International conference on machine learning, pp. 933–941, 2017. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
173,
|
| 1007 |
+
383,
|
| 1008 |
+
821,
|
| 1009 |
+
414
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
171,
|
| 1018 |
+
422,
|
| 1019 |
+
823,
|
| 1020 |
+
465
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Ahmed Elgammal, Marian Mazzone, et al. Artists, artificial intelligence and machine-based creativity in playform. Artnodes, (26):1–8, 2020. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
476,
|
| 1030 |
+
823,
|
| 1031 |
+
505
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 9
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"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. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
173,
|
| 1040 |
+
513,
|
| 1041 |
+
823,
|
| 1042 |
+
558
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 9
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking selfsupervised visual representation learning. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6391–6400, 2019. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
566,
|
| 1052 |
+
825,
|
| 1053 |
+
609
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 9
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
618,
|
| 1063 |
+
825,
|
| 1064 |
+
661
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 9
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Yong Guo, Qi Chen, Jian Chen, Qingyao Wu, Qinfeng Shi, and Mingkui Tan. Auto-embedding generative adversarial networks for high resolution image synthesis. IEEE Transactions on Multimedia, 21(11):2726–2737, 2019. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
174,
|
| 1073 |
+
671,
|
| 1074 |
+
825,
|
| 1075 |
+
714
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 9
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
723,
|
| 1085 |
+
825,
|
| 1086 |
+
767
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 9
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9729–9738, 2020. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
173,
|
| 1095 |
+
776,
|
| 1096 |
+
823,
|
| 1097 |
+
820
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 9
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Dan Hendrycks, Mantas Mazeika, Saurav Kadavath, and Dawn Song. Using self-supervised learning can improve model robustness and uncertainty. In Advances in Neural Information Processing Systems, pp. 15663–15674, 2019. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
176,
|
| 1106 |
+
828,
|
| 1107 |
+
823,
|
| 1108 |
+
871
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 9
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"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 Advances in neural information processing systems, pp. 6626–6637, 2017. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
174,
|
| 1117 |
+
882,
|
| 1118 |
+
825,
|
| 1119 |
+
924
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 9
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7132–7141, 2018. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
169,
|
| 1128 |
+
103,
|
| 1129 |
+
825,
|
| 1130 |
+
133
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 10
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1501– 1510, 2017. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
173,
|
| 1139 |
+
141,
|
| 1140 |
+
821,
|
| 1141 |
+
183
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 10
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Xun Huang, Yixuan Li, Omid Poursaeed, John Hopcroft, and Serge Belongie. Stacked generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5077–5086, 2017. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
174,
|
| 1150 |
+
191,
|
| 1151 |
+
823,
|
| 1152 |
+
236
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 10
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Longlong Jing and Yingli Tian. Self-supervised visual feature learning with deep neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
176,
|
| 1161 |
+
243,
|
| 1162 |
+
821,
|
| 1163 |
+
273
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 10
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Animesh Karnewar and Oliver Wang. Msg-gan: Multi-scale gradients for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7799–7808, 2020. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
174,
|
| 1172 |
+
281,
|
| 1173 |
+
825,
|
| 1174 |
+
324
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 10
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
174,
|
| 1183 |
+
333,
|
| 1184 |
+
825,
|
| 1185 |
+
376
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 10
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4401–4410, 2019. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
174,
|
| 1194 |
+
383,
|
| 1195 |
+
825,
|
| 1196 |
+
428
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 10
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. arXiv preprint arXiv:2006.06676, 2020a. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
173,
|
| 1205 |
+
435,
|
| 1206 |
+
823,
|
| 1207 |
+
465
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8110–8119, 2020b. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
473,
|
| 1217 |
+
825,
|
| 1218 |
+
516
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. In International conference on machine learning, pp. 1558–1566. PMLR, 2016. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
174,
|
| 1227 |
+
525,
|
| 1228 |
+
825,
|
| 1229 |
+
568
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 10
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Jae Hyun Lim and Jong Chul Ye. Geometric gan. arXiv preprint arXiv:1705.02894, 2017. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
166,
|
| 1238 |
+
575,
|
| 1239 |
+
764,
|
| 1240 |
+
592
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 10
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Zachary C. Lipton and Subarna Tripathi. Precise recovery of latent vectors from generative adversarial networks. ICLR workshop, 2017. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
171,
|
| 1249 |
+
599,
|
| 1250 |
+
825,
|
| 1251 |
+
630
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 10
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Bingchen Liu, Kunpeng Song, Yizhe Zhu, Gerard de Melo, and Ahmed Elgammal. Time: Text and image mutual-translation adversarial networks. In Thirty-Fifth AAAI Conference on Artificial Intelligence, 2021. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
173,
|
| 1260 |
+
637,
|
| 1261 |
+
825,
|
| 1262 |
+
680
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 10
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge? In International conference on machine learning, pp. 3481–3490. PMLR, 2018. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
171,
|
| 1271 |
+
689,
|
| 1272 |
+
825,
|
| 1273 |
+
732
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 10
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
174,
|
| 1282 |
+
739,
|
| 1283 |
+
825,
|
| 1284 |
+
784
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 10
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze discriminator: A simple baseline for fine-tuning gans. arXiv preprint arXiv:2002.10964, 2020. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
169,
|
| 1293 |
+
791,
|
| 1294 |
+
825,
|
| 1295 |
+
821
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "Mkhuseli Ngxande, Jules-Raymond Tapamo, and Michael Burke. Depthwisegans: Fast training generative adversarial networks for realistic image synthesis. In 2019 Southern African Universities Power Engineering Conference/Robotics and Mechatronics/Pattern Recognition Association of South Africa (SAUPEC/RobMech/PRASA), pp. 111–116. IEEE, 2019. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
173,
|
| 1304 |
+
829,
|
| 1305 |
+
825,
|
| 1306 |
+
887
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 10
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "Maria-Elena Nilsback and Andrew Zisserman. A visual vocabulary for flower classification. In IEEE Conference on Computer Vision and Pattern Recognition, volume 2, pp. 1447–1454, 2006. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
173,
|
| 1315 |
+
895,
|
| 1316 |
+
821,
|
| 1317 |
+
924
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 10
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Atsuhiro Noguchi and Tatsuya Harada. Image generation from small datasets via batch statistics adaptation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2750– 2758, 2019. ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
173,
|
| 1326 |
+
103,
|
| 1327 |
+
823,
|
| 1328 |
+
146
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 11
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
173,
|
| 1337 |
+
154,
|
| 1338 |
+
823,
|
| 1339 |
+
196
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 11
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "text",
|
| 1345 |
+
"text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
173,
|
| 1348 |
+
205,
|
| 1349 |
+
823,
|
| 1350 |
+
234
|
| 1351 |
+
],
|
| 1352 |
+
"page_idx": 11
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"type": "text",
|
| 1356 |
+
"text": "Esther Robb, Wen-Sheng Chu, Abhishek Kumar, and Jia-Bin Huang. Few-shot adaptation of generative adversarial networks. arXiv preprint arXiv:2010.11943, 2020. ",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
173,
|
| 1359 |
+
242,
|
| 1360 |
+
823,
|
| 1361 |
+
271
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 11
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "text",
|
| 1367 |
+
"text": "Zhangzhang Si and Song-Chun Zhu. Learning hybrid image templates (hit) by information projection. IEEE Transactions on pattern analysis and machine intelligence, 34(7):1354–1367, 2011. ",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
173,
|
| 1370 |
+
279,
|
| 1371 |
+
823,
|
| 1372 |
+
309
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 11
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "Samarth Sinha, Han Zhang, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, and Augustus Odena. Small-gan: Speeding up gan training using core-sets. arXiv preprint arXiv:1910.13540, 2019. ",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
173,
|
| 1381 |
+
315,
|
| 1382 |
+
821,
|
| 1383 |
+
345
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 11
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "text",
|
| 1389 |
+
"text": "Dustin Tran, Rajesh Ranganath, and David M Blei. Deep and hierarchical implicit models. arXiv preprint arXiv:1702.08896, 7(3):13, 2017. ",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
171,
|
| 1392 |
+
353,
|
| 1393 |
+
823,
|
| 1394 |
+
382
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 11
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "Ngoc-Trung Tran, Viet-Hung Tran, Bao-Ngoc Nguyen, Linxiao Yang, and Ngai-Man Man Cheung. Self-supervised gan: Analysis and improvement with multi-class minimax game. Advances in Neural Information Processing Systems, 32:13253–13264, 2019. ",
|
| 1401 |
+
"bbox": [
|
| 1402 |
+
174,
|
| 1403 |
+
390,
|
| 1404 |
+
823,
|
| 1405 |
+
434
|
| 1406 |
+
],
|
| 1407 |
+
"page_idx": 11
|
| 1408 |
+
},
|
| 1409 |
+
{
|
| 1410 |
+
"type": "text",
|
| 1411 |
+
"text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. ",
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
171,
|
| 1414 |
+
440,
|
| 1415 |
+
823,
|
| 1416 |
+
470
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 11
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"text": "Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Highresolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8798–8807, 2018. ",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
176,
|
| 1425 |
+
478,
|
| 1426 |
+
825,
|
| 1427 |
+
522
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 11
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "Yaxing Wang, Abel Gonzalez-Garcia, David Berga, Luis Herranz, Fahad Shahbaz Khan, and Joost van de Weijer. Minegan: effective knowledge transfer from gans to target domains with few images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9332–9341, 2020. ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
174,
|
| 1436 |
+
529,
|
| 1437 |
+
826,
|
| 1438 |
+
585
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 11
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "Yasin Yazıcı, Chuan-Sheng Foo, Stefan Winkler, Kim-Hui Yap, Georgios Piliouras, and Vijay Chandrasekhar. The unusual effectiveness of averaging in gan training. arXiv preprint arXiv:1806.04498, 2018. ",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
174,
|
| 1447 |
+
594,
|
| 1448 |
+
825,
|
| 1449 |
+
637
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 11
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "Dan Zhang and Anna Khoreva. Pa-gan: Improving gan training by progressive augmentation. 2018. ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
169,
|
| 1458 |
+
645,
|
| 1459 |
+
821,
|
| 1460 |
+
661
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 11
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 5907–5915, 2017. ",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
174,
|
| 1469 |
+
667,
|
| 1470 |
+
825,
|
| 1471 |
+
724
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 11
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018. ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
173,
|
| 1480 |
+
733,
|
| 1481 |
+
825,
|
| 1482 |
+
776
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 11
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "Junbo Zhao, Michael Mathieu, and Yann LeCun. Energy-based generative adversarial network. arXiv preprint arXiv:1609.03126, 2016. ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
174,
|
| 1491 |
+
784,
|
| 1492 |
+
823,
|
| 1493 |
+
813
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 11
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han. Differentiable augmentation for data-efficient gan training. arXiv preprint arXiv:2006.10738, 2020. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
820,
|
| 1503 |
+
823,
|
| 1504 |
+
851
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 11
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "Jiachen Zhong, Xuanqing Liu, and Cho-Jui Hsieh. Improving the speed and quality of gan by adversarial training. arXiv preprint arXiv:2008.03364, 2020. ",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
173,
|
| 1513 |
+
858,
|
| 1514 |
+
821,
|
| 1515 |
+
887
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 11
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain gan inversion for real image editing. arXiv preprint arXiv:2004.00049, 2020. ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
174,
|
| 1524 |
+
895,
|
| 1525 |
+
821,
|
| 1526 |
+
924
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 11
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "Jun-Yan Zhu, Philipp Krahenb ¨ uhl, Eli Shechtman, and Alexei A Efros. Generative visual manipu- ¨ lation on the natural image manifold. In European conference on computer vision, pp. 597–613. Springer, 2016. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
173,
|
| 1535 |
+
103,
|
| 1536 |
+
825,
|
| 1537 |
+
146
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 12
|
| 1540 |
+
}
|
| 1541 |
+
]
|
parse/train/BkgtDsCcKQ/BkgtDsCcKQ.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkgtDsCcKQ/BkgtDsCcKQ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkgtDsCcKQ/BkgtDsCcKQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkgtDsCcKQ/BkgtDsCcKQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJOQ7MgAW/HJOQ7MgAW.md
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LONG SHORT-TERM MEMORY AS A DYNAMICALLYCOMPUTED ELEMENT-WISE WEIGHTED SUM
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Long short-term memory networks (LSTMs) were introduced to combat vanishing gradients in simple recurrent neural networks (S-RNNs) by augmenting them with additive recurrent connections controlled by gates. We present an alternate view to explain the success of LSTMs: the gates themselves are powerful recurrent models that provide more representational power than previously appreciated. We do this by showing that the LSTM’s gates can be decoupled from the embedded S-RNN, producing a restricted class of RNNs where the main recurrence computes an element-wise weighted sum of context-independent functions of the inputs. Experiments on a range of challenging NLP problems demonstrate that the simplified gate-based models work substantially better than S-RNNs, and often just as well as the original LSTMs, strongly suggesting that the gates are doing much more in practice than just alleviating vanishing gradients.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Long short-term memory networks (LSTM) (Hochreiter & Schmidhuber, 1997) have become the de-facto recurrent neural network (RNN) for learning representations of sequences in many research areas, including natural language processing (NLP). Like simple recurrent neural networks (SRNNs) (Elman, 1990), LSTMs are able to learn non-linear functions of arbitrary-length input sequences. However, they also introduce an additional memory cell to mitigate the vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994). This memory is controlled by a mechanism of gates, whose additive connections allow long-distance dependencies to be learned more easily during backpropagation. While this view is mathematically accurate, in this paper we argue that it does not provide a complete picture of why LSTMs work in practice.
|
| 12 |
+
|
| 13 |
+
We present an alternate view to explain the success of LSTMs: the gates themselves are powerful recurrent models that provide more representational power than previously appreciated. To demonstrate this, we first show that LSTMs can be seen as a combination of two recurrent models: (1) an S-RNN, and (2) an element-wise weighted sum of the S-RNN’s outputs over time, which is implicitly computed by the gates. We hypothesize that, for many practical NLP problems, the weighted sum serves as the main modeling component. The S-RNN, while theoretically expressive, is in practice only a minor contributor that clouds the mathematical clarity of the model. By replacing the S-RNN with a context-independent function of the input, we arrive at a much more restricted class of RNNs, where the main recurrence is via the element-wise weighted sums that the gates are computing.
|
| 14 |
+
|
| 15 |
+
We test our hypothesis on NLP problems, where LSTMs are wildly popular at least in part due to their ability to model crucial language phenomena such as word order (Adi et al., 2017), syntactic structure (Linzen et al., 2016), and even long-range semantic dependencies (He et al., 2017). We consider four challenging tasks: language modeling, question answering, dependency parsing, and machine translation. Experiments show that while removing the gates from an LSTM can severely hurt performance, replacing the S-RNN with a simple linear transformation of the input results in minimal or no loss in model performance. We further show that in many cases, LSTMs can be further simplified by removing the output gate, arriving at an even more transparent architecture, where the output is a context-independent function of the weighted sum. Together, these results suggest that the gates’ ability to compute an element-wise weighted sum, rather than the non-linear transition dynamics of S-RNNs, are the driving force behind LSTM’s success.
|
| 16 |
+
|
| 17 |
+
# 2 THE MEMORY CELL COMPUTES AN ELEMENT-WISE WEIGHTED SUM
|
| 18 |
+
|
| 19 |
+
LSTMs are typically motivated as an augmentation of simple RNNs (S-RNNs), defined as follows:
|
| 20 |
+
|
| 21 |
+
$$
|
| 22 |
+
\pmb { h } _ { t } = \operatorname { t a n h } ( \pmb { W } _ { h h } \pmb { h } _ { t - 1 } + \pmb { W } _ { h x } \pmb { x } _ { t } + \pmb { b } _ { h } )
|
| 23 |
+
$$
|
| 24 |
+
|
| 25 |
+
S-RNNs suffer from the vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994) due to compounding multiplicative updates of the hidden state. By introducing a memory cell and an output layer that are controlled by a set of gates, LSTMs enable shortcuts through which gradients can flow easily when learning with backpropagation. This mechanism enables learning of long-distance dependencies while preserving the expressive power of recurrent non-linear transformations provided by S-RNNs.
|
| 26 |
+
|
| 27 |
+
Rather than viewing the gates as simply an auxiliary mechanism to address a learning problem, we present an alternate view that emphasizes their modeling strengths. We argue that the LSTM should be interpreted as a hybrid of two distinct recurrent architectures: (1) the S-RNN which provides multiplicative connections across timesteps, and (2) the memory cell which provides additive connections across timesteps. On top of these recurrences, an output layer is included that simply squashes and filters the memory cell at each step.
|
| 28 |
+
|
| 29 |
+
Throughout this paper, let $\{ \pmb { x } _ { 1 } , \ldots , \pmb { x } _ { n } \}$ be the sequence of input vectors, $\{ h _ { 1 } , \ldots , h _ { n } \}$ be the sequence of output vectors, and $\{ c _ { 1 } , \ldots , c _ { n } \}$ be the memory cell’s states. Then, given the basic LSTM definition below, we can formally identify three sub-components.
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\begin{array} { r l } & { \tilde { c } _ { t } = \mathrm { t a n h } ( W _ { c h } h _ { t - 1 } + W _ { c x } { \boldsymbol x } _ { t } + { \boldsymbol b } _ { c } ) } \\ & { ~ i _ { t } = \sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \boldsymbol x } _ { t } + { \boldsymbol b } _ { i } ) } \\ & { f _ { t } = \sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \boldsymbol x } _ { t } + { \boldsymbol b } _ { f } ) } \\ & { c _ { t } = i _ { t } \circ \tilde { c } _ { t } + f _ { t } \circ c _ { t - 1 } } \\ & { o _ { t } = \sigma ( W _ { o h } h _ { t - 1 } + W _ { o x } { \boldsymbol x } _ { t } + { \boldsymbol b } _ { o } ) } \\ & { h _ { t } = o _ { t } \circ \mathrm { t a n h } ( c _ { t } ) } \end{array}
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
Content Layer (Equation 2) We refer to $\widetilde { c } _ { t }$ as the content layer, which is the output of an S-RNN. eEvaluating the need for the multiplicative recurrent connections in this content layer is the focus of this work. The content layer is passed to the memory cell, which decides which parts of it to store.
|
| 36 |
+
|
| 37 |
+
Memory Cell (Equations 3-5) The memory cell $c _ { t }$ is controlled by two gates. The input gate $\mathbf { \delta } _ { i _ { t } }$ controls what part of the content $( \widetilde { c } _ { t } )$ is written to the memory, while the forget gate $f _ { t }$ controls what epart of the memory is deleted by filtering the previous state of the memory $( c _ { t - 1 } )$ . Writing to the memory is done by adding the filtered content $( i _ { t } \circ \widetilde { c } _ { t } )$ to the retained memory $( f _ { t } \circ c _ { t - 1 } )$ .
|
| 38 |
+
|
| 39 |
+
Output Layer (Equations 6-7) The output layer $h _ { t }$ passes the memory cell through a tanh activation function and uses an output gate $\mathbf { } _ { o _ { t } }$ to read selectively from the squashed memory cell.
|
| 40 |
+
|
| 41 |
+
Our goal is to study how much each of these components contribute to the empirical performance of LSTMs. In particular, it is worth considering the memory cell in more detail to reveal why it could serve as a standalone powerful model of long-distance context. It is possible to show that it implicitly computes an element-wise weighted sum of all the previous content layers by expanding the recurrence relation in equation (5):
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\begin{array} { l } { { \displaystyle c _ { t } = \dot { a } _ { t } \circ \widetilde c _ { t } + f _ { t } \circ c _ { t - 1 } } } \\ { { \displaystyle \quad = \sum _ { j = 0 } ^ { t } \left( \dot { a } _ { j } \circ \prod _ { k = j + 1 } ^ { t } f _ { k } \right) \circ \widetilde c _ { j } } } \\ { { \displaystyle \quad = \sum _ { j = 0 } ^ { t } w _ { j } ^ { t } \circ \widetilde c _ { j } } } \end{array}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Each weight $\boldsymbol { w } _ { j } ^ { t }$ is a product of the input gate $i _ { j }$ (when its respective input $\widetilde { c } _ { j }$ was read) and every subsequent forget gate $f _ { k }$ e. An interesting property of these weights is that, like the gates, they are also soft element-wise binary filters.1
|
| 48 |
+
|
| 49 |
+
This sum is similar to recent architectures that rely on self-attention to learn context-dependent word representations (Cheng et al., 2016; Parikh et al., 2016; Vaswani et al., 2017). There are two major differences from self-attention: (1) instead of computing a weighted sum for each attention head, a separate weighted sum is computed for every dimension of the memory cell, (2) the weighted sum is accumulated with a dynamic program, enabling a linear rather than quadratic complexity in comparison to self-attention.
|
| 50 |
+
|
| 51 |
+
# 3 MEMORY CELLS ARE POWERFUL STANDALONE MODELS
|
| 52 |
+
|
| 53 |
+
The restricted space of element-wise weighted sums allows for easier mathematical analysis, visualization, and perhaps even learnability. However, constrained function spaces are also less expressive, and a natural question is whether these models will work well for NLP problems that need highly contextualized word representations. We hypothesize that the memory cell (which computes weighted sums) can function as a standalone contextualizer. To test this hypothesis, we present several simplifications of the LSTM’s architecture (Section 3.1), and show on a variety of NLP benchmarks that there is a qualitative performance difference between models that contain a memory cell and those that do not (Section 3.2). We conclude that the content and output layers are relatively minor contributors, and that the space of element-wise weighted sums is sufficiently powerful to compete with fully parameterized LSTMs (Section 3.3).
|
| 54 |
+
|
| 55 |
+
# 3.1 SIMPLIFIED MODELS
|
| 56 |
+
|
| 57 |
+
The modeling power of LSTMs is commonly assumed to derive from the S-RNN in the content layer, with the rest of the model acting as a learning aid to bypass the vanishing gradient problem. We first isolate the S-RNN by ablating the gates (denoted as $L S T M - G A T E S$ for consistency).
|
| 58 |
+
|
| 59 |
+
To test whether the memory cell has enough modeling power of its own, we take an LSTM and replace the S-RNN in the content layer from Equation 2 with a simple linear transformation, creating the LSTM – S-RNN model:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\begin{array} { r l } & { \tilde { c } _ { t } = W _ { c x } { \boldsymbol x } _ { t } } \\ & { i _ { t } = \sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \boldsymbol x } _ { t } + b _ { i } ) } \\ & { f _ { t } = \sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \boldsymbol x } _ { t } + b _ { f } ) } \\ & { c _ { t } = i _ { t } \circ \tilde { c } _ { t } + f _ { t } \circ c _ { t - 1 } } \\ & { o _ { t } = \sigma ( W _ { o h } h _ { t - 1 } + W _ { o x } { \boldsymbol x } _ { t } + b _ { o } ) } \\ & { h _ { t } = o _ { t } \circ \operatorname { t a n h } ( c _ { t } ) } \end{array}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
We further simplify the LSTM by removing the output gate from Equation 7, leaving only the activation function in the output layer $( L S T M - S - R N N - O U T )$ :
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r l } & { \tilde { c } _ { t } = W _ { c x } { \boldsymbol x } _ { t } } \\ & { i _ { t } = \sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \boldsymbol x } _ { t } + b _ { i } ) } \\ & { f _ { t } = \sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \boldsymbol x } _ { t } + b _ { f } ) } \\ & { c _ { t } = i _ { t } \circ \tilde { c } _ { t } + f _ { t } \circ c _ { t - 1 } } \\ & { h _ { t } = \operatorname { t a n h } ( c _ { t } ) } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
After removing the S-RNN and the output gate from the LSTM, the entire ablated model can be written in a modular, compact form:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\pmb { h } _ { t } = \mathrm { O U T P U T } \Big ( \sum _ { j = 0 } ^ { t } \pmb { w } _ { j } ^ { t } \circ \mathrm { C O N T E N T } ( \pmb { x } _ { j } ) \Big )
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where the content layer CONTENT $( \cdot )$ and the output layer OUTPUT $( \cdot )$ are both context-independent functions, making the entire model highly constrained and interpretable. The complexity of modeling contextual information is needed only for computing the weights $\boldsymbol { w } _ { j } ^ { t }$ . As we will see in Section 3.2, both of these ablations perform on par with LSTMs on language modeling, question answering, dependency parsing, and machine translation.
|
| 78 |
+
|
| 79 |
+
There are many other models that can be expressed in the weighted-sum form (Equation 11). In this work, we focus on the closest variant of LSTM that satisfies this property; removing the S-RNN and the output gate is sufficient for the content and output functions to be context-independent. We leave more thorough investigations into the necessity of the remaining architecture as future work.
|
| 80 |
+
|
| 81 |
+
# 3.2 EXPERIMENTS
|
| 82 |
+
|
| 83 |
+
We compare model performance on four NLP tasks, with an experimental setup that is lenient towards LSTMs and harsh towards its simplifications. In each case, we use existing implementations and previously reported hyperparameter settings. Since these settings were tuned for LSTMs, any simplification that performs equally to (or better than) LSTMs under these LSTM-friendly settings provides strong evidence that the ablated component is not a contributing factor. For each task we also report the mean and standard deviation of 5 runs of the LSTM settings to demonstrate the typical variance observed due to training with different random initializations.2 The code and settings to replicate these experiments are publicly available.3
|
| 84 |
+
|
| 85 |
+
# 3.2.1 LANGUAGE MODELING
|
| 86 |
+
|
| 87 |
+
We evaluate on two language modeling datasets: the Penn Treebank (PTB) (Marcus et al., 1993), and Google’s billion-word benchmark (BWB) (Chelba et al., 2014). PTB contains approximately 1M tokens over a vocabulary of 10K words. We used the implementation of Zaremba et al. (2014) while replacing any invocation of LSTMs with simpler models. We tested two of their configurations: medium, which uses two layers of 650-dimension LSTMs, and large, which uses two layers of 1500-dimension LSTMs.
|
| 88 |
+
|
| 89 |
+
BWB is about a thousand times larger than PTB, and uses a more diverse vocabulary of 800K words. Using the implementation of Józefowicz et al. (2016), we tested their LSTM-2048-512 configuration. Our experiments use exactly the same hyperparameters (dimensions, dropout, learning rates, etc) that were originally tuned for LSTMs (Józefowicz et al., 2016). Following their implementation, we project the hidden state at each time step down to 512 dimensions. Due to the enormous size of this dataset, we stopped training after 5 epochs.
|
| 90 |
+
|
| 91 |
+
Table 1 shows overall model performance. In all three cases, replacing the LSTM’s content layer with a linear transformation results in small differences in perplexity. The most important result is that the small fluctuations in performance between the various gated architectures are minuscule in comparison to the enormous gap between the S-RNN $( L S T M - G A T E S )$ and the original LSTM. This striking difference strongly supports our hypothesis that the weighted sums computed by the gates – not the S-RNN – is the recurrent model that contributes mostly strongly to the final performance.
|
| 92 |
+
|
| 93 |
+
# 3.2.2 QUESTION ANSWERING
|
| 94 |
+
|
| 95 |
+
For question answering, we use two different QA systems on the Stanford question answering dataset (SQuAD) (Rajpurkar et al., 2016): the Bidirectional Attention Flow model (BiDAF) (Seo et al., 2016) and DrQA (Chen et al., 2017). BiDAF contains 3 LSTMs, which are referred to as the phrase layer, the modeling layer, and the span end encoder. Our experiments replace each of these LSTMs with their simplified counterparts. We directly use the implementation of BiDAF from AllenNLP (Gardner et al., 2017), and all experiments reuse the existing hyperparameters that were tuned for LSTMs. Likewise, we use an open-source implementation of $\mathrm { \dot { D r } Q A } ^ { 4 }$ and replace only the LSTMs, while leaving everything else intact.
|
| 96 |
+
|
| 97 |
+
Table 2 shows that all the gated models do comparably. Most importantly, ablating the S-RNN from the LSTM has a minor effect in comparison to the drop in performance when ablating the gates.
|
| 98 |
+
|
| 99 |
+
# 3.2.3 DEPENDENCY PARSING
|
| 100 |
+
|
| 101 |
+
For dependency parsing, we use the Deep Biaffine Dependency Parser (Dozat & Manning, 2016), which relies on stacked bidirectional LSTMs to learn context-sensitive word embeddings for determining arcs between a pair of words. We directly use their released implementation, which is evaluated on the Universal Dependencies English Web Treebank v1.3 (Silveira et al., 2014). In our experiments, we use the existing hyperparameters and only replace the LSTMs with the simplified architectures.
|
| 102 |
+
|
| 103 |
+
Table 1: The performance of simplified LSTM architectures on language modeling benchmarks, measured by perplexity.
|
| 104 |
+
|
| 105 |
+
<table><tr><td>Configuration</td><td>Model</td><td>Perplexity</td></tr><tr><td rowspan="4">PTB</td><td>LSTM</td><td>83.9 ± 0.3</td></tr><tr><td>- GATES</td><td>140.9</td></tr><tr><td>- S-RNN</td><td>80.5</td></tr><tr><td>- S-RNN-OUT</td><td>81.6</td></tr><tr><td rowspan="4">PTB (Large Model)</td><td>LSTM</td><td>78.8± 0.2</td></tr><tr><td>- GATES</td><td>126.1</td></tr><tr><td>- S-RNN</td><td>76.0</td></tr><tr><td>- S-RNN -OUT</td><td>78.5</td></tr><tr><td rowspan="4">BWB</td><td>LSTM (J6zefowicz et al., 2016)</td><td>47.5</td></tr><tr><td>- GATES</td><td>82.2</td></tr><tr><td>- S-RNN</td><td>45.4</td></tr><tr><td>- S-RNN-OUT</td><td>47.9</td></tr></table>
|
| 106 |
+
|
| 107 |
+
Table 2: The performance of simplified LSTM architectures on the question answering benchmark, SQuAD, measured by exact match (EM) and span overlap (F1).
|
| 108 |
+
|
| 109 |
+
<table><tr><td>System</td><td>Model</td><td>EM</td><td>F1</td></tr><tr><td rowspan="5">BiDAF</td><td>LSTM</td><td>67.9 ± 0.3</td><td>77.5 ± 0.2</td></tr><tr><td>- GATES</td><td>62.9</td><td>73.3</td></tr><tr><td>- S-RNN</td><td>68.4</td><td>78.2</td></tr><tr><td>- S-RNN-OUT</td><td>67.4</td><td>77.2</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan="4">DrQA</td><td>LSTM</td><td>68.8 ± 0.2</td><td>78.2 ± 0.2</td></tr><tr><td>- GATES</td><td>56.4</td><td>66.5</td></tr><tr><td>- S-RNN</td><td>67.7</td><td>77.0</td></tr><tr><td>- S-RNN -OUT</td><td>67.0</td><td>76.2</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Table 3: The performance of simplified LSTM architectures on the universal dependencies parsing benchmark, measured by unlabeled attachment score (UAS) and labeled attachment score (LAS).
|
| 112 |
+
|
| 113 |
+
<table><tr><td>Model</td><td>UAS</td><td>LAS</td></tr><tr><td>LSTM</td><td>90.60 ± 0.21</td><td>88.05 ± 0.33</td></tr><tr><td>- GATES</td><td>87.75</td><td>84.61</td></tr><tr><td>- S-RNN</td><td>90.77</td><td>88.49</td></tr><tr><td>- S-RNN-OUT</td><td>90.70</td><td>88.31</td></tr></table>
|
| 114 |
+
|
| 115 |
+
We observe the same pattern in the ablations for dependency parsing. The differences in performance between the gated models fall within the differences between multiple experiments with LSTMs. Consistent with ablation results from other tasks, removing the gating mechanisms causes a 3-4 point drop in performance.
|
| 116 |
+
|
| 117 |
+
# 3.2.4 MACHINE TRANSLATION
|
| 118 |
+
|
| 119 |
+
For machine translation, we used OpenNMT (Klein et al., 2017) to train English to German translation models on the multi-modal benchmarks from WMT 2016 (used in OpenNMT’s readme file). We use OpenNMT’s default model and hyperparameters, replacing the stacked bidirectional LSTM of its
|
| 120 |
+
|
| 121 |
+
<table><tr><td>Model</td><td>BLEU</td></tr><tr><td>LSTM</td><td>35.95</td></tr><tr><td>- GATES</td><td>12.22</td></tr><tr><td>- S-RNN</td><td>36.66</td></tr><tr><td>- S-RNN-OUT</td><td>36.39</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 4: The performance of simplified LSTM architectures on the WMT 2016 multi-modal English to German translation benchmark, measured by BLEU.
|
| 124 |
+
|
| 125 |
+
encoder with the simplified architectures. Table 4 shows that while models containing memory cells perform more-or-less on par, removing the memory cell yields a substantial performance drop.
|
| 126 |
+
|
| 127 |
+
# 3.3 DISCUSSION
|
| 128 |
+
|
| 129 |
+
In the above experiments, we show three major ablations of the LSTM. In the S-RNN experiments $( L S T M - G A T E S )$ , we ablate the memory cell and the output layer. In the LSTM �� S-RNN and LSTM – $S – R M N - O U T$ experiments, we ablate the S-RNN. As consistent with previous literature, removing the memory cell degrades performance drastically. In contrast, removing the S-RNN makes little to no difference in the final performance, suggesting that the memory cell alone is largely responsible for the success of LSTMs in NLP. The results also confirm our hypothesis that weighted sums of context words is a powerful, yet more interpretable, model of contextual information.
|
| 130 |
+
|
| 131 |
+
# 4 WEIGHT VISUALIZATION
|
| 132 |
+
|
| 133 |
+
Given the empirical evidence that LSTMs are effectively learning weighted sums of the content layers, it is natural to investigate what weights the model learns in practice. Using the more mathematically transparent simplification of LSTMs, we can visualize the weights $\boldsymbol { w } _ { j } ^ { t }$ that are placed on every input $j$ at every timestep $t$ (see Equation 11).
|
| 134 |
+
|
| 135 |
+
Unlike attention mechanisms, these weights are vectors rather than scalar values. Therefore, we can only provide a coarse-grained visualization of the weights by rendering their $L ^ { 2 }$ -norm, as shown in Table 5. In the visualization, each column indicates the word represented by the weighted sum, and each row indicates the word over which the weighted sum is computed. Dark horizontal streaks indicate the duration for which a word was remembered. Unsurprisingly, the weights on the diagonal are always the largest since it indicates the weight of the current word. More interesting task-specific patterns emerge when inspecting the off-diagonals that represent the weight on the context words.
|
| 136 |
+
|
| 137 |
+
The first visualization uses the language model from BWB. Due to the language modeling setup, there are only non-zero weights on the current or previous words. We find that the common function words are quickly forgotten, while infrequent words that signal the topic are remembered over very long distances.
|
| 138 |
+
|
| 139 |
+
The second visualization uses the dependency parser. In this setting, since the recurrent architectures are bidirectional, there are non-zero weights on all words in the sentence. The top-right triangle indicates weights from the forward direction, and the bottom-left triangle indicates from the backward direction. For syntax, we see a significantly different pattern. Function words that are useful for determining syntax are more likely to be remembered. Weights on head words are also likely to persist until the end of a constituent.
|
| 140 |
+
|
| 141 |
+
This illustration provides only a glimpse into what the model is capturing, and perhaps future, more detailed visualizations that take the individual dimensions into account can provide further insight into what LSTMs are learning in practice.
|
| 142 |
+
|
| 143 |
+
# 5 RELATED WORK
|
| 144 |
+
|
| 145 |
+
Many variants of LSTMs (Hochreiter & Schmidhuber, 1997) have been previously explored. These typically consist of a different parameterization the gates, such as LSTMs with peephole connections (Gers & Schmidhuber, 2000), or a rewiring of the connections, such as GRUs (Cho et al., 2014).
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Table 5: Visualization of the weights on context words learned by the memory cell. Each column represents the current word $t$ , and each row represents a context word $j$ . The gating mechanism implicitly computes element-wise weighted sums over each column. The darkness of each square indicates the $L ^ { \dot { 2 } }$ -norm of the vector weights $\boldsymbol { w } _ { j } ^ { t }$ from Equation 11. Figures on the left show weights learned by a language model. Figures on the right show weights learned by a dependency parser.
|
| 149 |
+
|
| 150 |
+
However, these modifications invariably maintain the recurrent content layer. Even more systematic explorations of LSTM variants (Józefowicz et al., 2015; Greff et al., 2016; Zoph & Le, 2017) do not question the importance of the embedded S-RNN. This is the first study to provide apples-to-apples comparisons between LSTMs and LSTMs without the recurrent content layer.
|
| 151 |
+
|
| 152 |
+
Several other recent works have also reported promising results with recurrent models that are vastly simpler than LSTMs, such as quasi-recurrent neural networks (Bradbury et al., 2016), strongly-typed recurrent neural networks (Balduzzi & Ghifary, 2016), kernel neural networks (Lei et al., 2017), and simple recurrent units (Lei & Zhang, 2017), making it increasingly apparent that LSTMs are over-parameterized. While these works indicate an obvious trend, their focus is not to provide insight into what exactly LSTMs are learning. In our carefully controlled ablation studies, we propose and evaluate the minimal changes required to test our hypothesis that LSTMs are powerful because they dynamically compute element-wise weighted sums of content layers.
|
| 153 |
+
|
| 154 |
+
As mentioned in Section 2, this weighted-sum view of LSTMs is highly related to neural attention (Bahdanau et al., 2015), which assigns a normalized scalar weight to each element as a function of its compatibility with an external element. The ability to inspect attention weights has driven the use of more interpretable neural models. Self-attention (Cheng et al., 2016; Parikh et al., 2016) extends this notion by computing intra-sequence attention. Vaswani et al. (2017) further showed that state-of-the-art machine translation can be achieved using only self-attention and without LSTMs. Recently, Arora et al. (2017) proposed a theory-driven approach to assign scalar weights to elements in a bag of words. The success of self-attention corroborates our findings that weighted sums are indeed a more effective method of learning context-sensitive representations than previously appreciated.
|
| 155 |
+
|
| 156 |
+
# 6 CONCLUSION
|
| 157 |
+
|
| 158 |
+
We presented an alternate view of LSTMs: they are a hybrid of S-RNNs and a gated model that dynamically computes weighted sums of the S-RNN outputs. Our experiments investigated whether the S-RNN is a necessary component of LSTMs. In other words, are the gates alone as powerful of a model as an LSTM? Results across four major NLP tasks (language modeling, question answering, dependency parsing, and machine translation) indicate that LSTMs suffer little to no performance loss when removing the S-RNN, but removing the gates can degrade performance substantially. This provides evidence that the gating mechanism is doing the heavy lifting in modeling context, and that element-wise weighted sums of context-independent functions of the inputs are often as effective as fully-parameterized LSTMs.
|
| 159 |
+
|
| 160 |
+
This work sheds light on the inner workings of the relatively opaque LSTM. By removing the S-RNN and the output gate, we also show that the resulting model is a far more mathematically transparent variant of LSTMs. This transparency enables a visualization of how the context affects the output of the model at every timestep, much like in attention-based models. We hope that this new outlook on LSTMs will foster better and more efficient models of contextualization.
|
| 161 |
+
|
| 162 |
+
# REFERENCES
|
| 163 |
+
|
| 164 |
+
Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, and Yoav Goldberg. Fine-grained analysis of sentence embeddings using auxiliary prediction tasks. In ICLR, 2017.
|
| 165 |
+
|
| 166 |
+
Sanjeev Arora, Yingyu Liang, and Tengyu Ma. A simple but tough-to-beat baseline for sentence embeddings. In ICLR, 2017.
|
| 167 |
+
|
| 168 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
|
| 169 |
+
|
| 170 |
+
David Balduzzi and Muhammad Ghifary. Strongly-typed recurrent neural networks. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 1292–1300, 2016. URL http://jmlr.org/proceedings/ papers/v48/balduzzi16.html.
|
| 171 |
+
|
| 172 |
+
Yoshua Bengio, Patrice Y. Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2):157–166, 1994.
|
| 173 |
+
|
| 174 |
+
James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. CoRR, abs/1611.01576, 2016.
|
| 175 |
+
|
| 176 |
+
Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, and Phillipp Koehn. One billion word benchmark for measuring progress in statistical language modeling. In INTERSPEECH, 2014.
|
| 177 |
+
|
| 178 |
+
Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to answer open-domain questions. In Association for Computational Linguistics (ACL), 2017.
|
| 179 |
+
|
| 180 |
+
Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 551–561, Austin, Texas, November 2016. Association for Computational Linguistics. URL https://aclweb.org/anthology/D16-1053.
|
| 181 |
+
|
| 182 |
+
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. URL http://www.aclweb.org/anthology/D14-1179.
|
| 183 |
+
|
| 184 |
+
Timothy Dozat and Christopher D. Manning. Deep biaffine attention for neural dependency parsing. CoRR, abs/1611.01734, 2016.
|
| 185 |
+
|
| 186 |
+
Jeffrey L. Elman. Finding structure in time. Cognitive Science, 14:179–211, 1990.
|
| 187 |
+
|
| 188 |
+
Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. Allennlp: A deep semantic natural language processing platform, 2017. URL http://allennlp.org/papers/AllenNLP_white_ paper.pdf.
|
| 189 |
+
|
| 190 |
+
Felix A. Gers and Jürgen Schmidhuber. Recurrent nets that time and count. In IJCNN, 2000.
|
| 191 |
+
|
| 192 |
+
Klaus Greff, Rupesh K Srivastava, Jan Koutník, Bas R Steunebrink, and Jürgen Schmidhuber. Lstm: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, 2016.
|
| 193 |
+
|
| 194 |
+
Luheng He, Kenton Lee, Mike Lewis, and Luke Zettlemoyer. Deep semantic role labeling: What works and what’s next. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, 2017.
|
| 195 |
+
|
| 196 |
+
Sepp Hochreiter. Untersuchungen zu dynamischen neuronalen netzen. Diploma, Technische Universität München, 91, 1991.
|
| 197 |
+
|
| 198 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long Short-term Memory. Neural computation, 9(8): 1735–1780, 1997.
|
| 199 |
+
|
| 200 |
+
Rafal Józefowicz, Wojciech Zaremba, and Ilya Sutskever. An empirical exploration of recurrent network architectures. In ICML, 2015.
|
| 201 |
+
|
| 202 |
+
Rafal Józefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
|
| 203 |
+
|
| 204 |
+
Guillaume Klein, Yoon Kim, Yuntian Deng, Jean Senellart, and Alexander M. Rush. Opennmt: Opensource toolkit for neural machine translation. In Proc. ACL, 2017. doi: 10.18653/v1/P17-4012. URL https://doi.org/10.18653/v1/P17-4012.
|
| 205 |
+
|
| 206 |
+
Tao Lei and Yu Zhang. Training rnns as fast as cnns. arXiv preprint arXiv:1709.02755, 2017.
|
| 207 |
+
|
| 208 |
+
Tao Lei, Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Deriving neural architectures from sequence and graph kernels. In ICML, 2017.
|
| 209 |
+
|
| 210 |
+
Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntaxsensitive dependencies. TACL, 4:521–535, 2016.
|
| 211 |
+
|
| 212 |
+
Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19:313–330, 1993.
|
| 213 |
+
|
| 214 |
+
Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2249–2255, Austin, Texas, November 2016. Association for Computational Linguistics. URL https://aclweb.org/anthology/D16-1244.
|
| 215 |
+
|
| 216 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100, $0 0 0 +$ questions for machine comprehension of text. In EMNLP, 2016.
|
| 217 |
+
|
| 218 |
+
Min Joon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. CoRR, abs/1611.01603, 2016.
|
| 219 |
+
|
| 220 |
+
Natalia Silveira, Timothy Dozat, Marie-Catherine de Marneffe, Samuel Bowman, Miriam Connor, John Bauer, and Christopher D. Manning. A gold standard dependency corpus for English. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC-2014), 2014.
|
| 221 |
+
|
| 222 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017.
|
| 223 |
+
|
| 224 |
+
Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
|
| 225 |
+
|
| 226 |
+
Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In ICLR, 2017.
|
parse/train/HJOQ7MgAW/HJOQ7MgAW_content_list.json
ADDED
|
@@ -0,0 +1,1207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LONG SHORT-TERM MEMORY AS A DYNAMICALLYCOMPUTED ELEMENT-WISE WEIGHTED SUM",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
383,
|
| 19 |
+
176,
|
| 20 |
+
614,
|
| 21 |
+
204
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
452,
|
| 31 |
+
246,
|
| 32 |
+
544,
|
| 33 |
+
261
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Long short-term memory networks (LSTMs) were introduced to combat vanishing gradients in simple recurrent neural networks (S-RNNs) by augmenting them with additive recurrent connections controlled by gates. We present an alternate view to explain the success of LSTMs: the gates themselves are powerful recurrent models that provide more representational power than previously appreciated. We do this by showing that the LSTM’s gates can be decoupled from the embedded S-RNN, producing a restricted class of RNNs where the main recurrence computes an element-wise weighted sum of context-independent functions of the inputs. Experiments on a range of challenging NLP problems demonstrate that the simplified gate-based models work substantially better than S-RNNs, and often just as well as the original LSTMs, strongly suggesting that the gates are doing much more in practice than just alleviating vanishing gradients. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
279,
|
| 43 |
+
766,
|
| 44 |
+
444
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
474,
|
| 55 |
+
336,
|
| 56 |
+
489
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Long short-term memory networks (LSTM) (Hochreiter & Schmidhuber, 1997) have become the de-facto recurrent neural network (RNN) for learning representations of sequences in many research areas, including natural language processing (NLP). Like simple recurrent neural networks (SRNNs) (Elman, 1990), LSTMs are able to learn non-linear functions of arbitrary-length input sequences. However, they also introduce an additional memory cell to mitigate the vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994). This memory is controlled by a mechanism of gates, whose additive connections allow long-distance dependencies to be learned more easily during backpropagation. While this view is mathematically accurate, in this paper we argue that it does not provide a complete picture of why LSTMs work in practice. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
506,
|
| 66 |
+
825,
|
| 67 |
+
632
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "We present an alternate view to explain the success of LSTMs: the gates themselves are powerful recurrent models that provide more representational power than previously appreciated. To demonstrate this, we first show that LSTMs can be seen as a combination of two recurrent models: (1) an S-RNN, and (2) an element-wise weighted sum of the S-RNN’s outputs over time, which is implicitly computed by the gates. We hypothesize that, for many practical NLP problems, the weighted sum serves as the main modeling component. The S-RNN, while theoretically expressive, is in practice only a minor contributor that clouds the mathematical clarity of the model. By replacing the S-RNN with a context-independent function of the input, we arrive at a much more restricted class of RNNs, where the main recurrence is via the element-wise weighted sums that the gates are computing. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
638,
|
| 77 |
+
825,
|
| 78 |
+
763
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "We test our hypothesis on NLP problems, where LSTMs are wildly popular at least in part due to their ability to model crucial language phenomena such as word order (Adi et al., 2017), syntactic structure (Linzen et al., 2016), and even long-range semantic dependencies (He et al., 2017). We consider four challenging tasks: language modeling, question answering, dependency parsing, and machine translation. Experiments show that while removing the gates from an LSTM can severely hurt performance, replacing the S-RNN with a simple linear transformation of the input results in minimal or no loss in model performance. We further show that in many cases, LSTMs can be further simplified by removing the output gate, arriving at an even more transparent architecture, where the output is a context-independent function of the weighted sum. Together, these results suggest that the gates’ ability to compute an element-wise weighted sum, rather than the non-linear transition dynamics of S-RNNs, are the driving force behind LSTM’s success. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
770,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "2 THE MEMORY CELL COMPUTES AN ELEMENT-WISE WEIGHTED SUM ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
168,
|
| 99 |
+
101,
|
| 100 |
+
782,
|
| 101 |
+
118
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 1
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "LSTMs are typically motivated as an augmentation of simple RNNs (S-RNNs), defined as follows: ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
169,
|
| 110 |
+
131,
|
| 111 |
+
821,
|
| 112 |
+
147
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "equation",
|
| 118 |
+
"img_path": "images/8243e2b6ddf21cc4d139fe8cb2a55bab1addcc8e231a9bb3b4518457a314fa96.jpg",
|
| 119 |
+
"text": "$$\n\\pmb { h } _ { t } = \\operatorname { t a n h } ( \\pmb { W } _ { h h } \\pmb { h } _ { t - 1 } + \\pmb { W } _ { h x } \\pmb { x } _ { t } + \\pmb { b } _ { h } )\n$$",
|
| 120 |
+
"text_format": "latex",
|
| 121 |
+
"bbox": [
|
| 122 |
+
367,
|
| 123 |
+
148,
|
| 124 |
+
629,
|
| 125 |
+
165
|
| 126 |
+
],
|
| 127 |
+
"page_idx": 1
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"type": "text",
|
| 131 |
+
"text": "S-RNNs suffer from the vanishing gradient problem (Hochreiter, 1991; Bengio et al., 1994) due to compounding multiplicative updates of the hidden state. By introducing a memory cell and an output layer that are controlled by a set of gates, LSTMs enable shortcuts through which gradients can flow easily when learning with backpropagation. This mechanism enables learning of long-distance dependencies while preserving the expressive power of recurrent non-linear transformations provided by S-RNNs. ",
|
| 132 |
+
"bbox": [
|
| 133 |
+
173,
|
| 134 |
+
166,
|
| 135 |
+
825,
|
| 136 |
+
250
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "Rather than viewing the gates as simply an auxiliary mechanism to address a learning problem, we present an alternate view that emphasizes their modeling strengths. We argue that the LSTM should be interpreted as a hybrid of two distinct recurrent architectures: (1) the S-RNN which provides multiplicative connections across timesteps, and (2) the memory cell which provides additive connections across timesteps. On top of these recurrences, an output layer is included that simply squashes and filters the memory cell at each step. ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
173,
|
| 145 |
+
256,
|
| 146 |
+
825,
|
| 147 |
+
340
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Throughout this paper, let $\\{ \\pmb { x } _ { 1 } , \\ldots , \\pmb { x } _ { n } \\}$ be the sequence of input vectors, $\\{ h _ { 1 } , \\ldots , h _ { n } \\}$ be the sequence of output vectors, and $\\{ c _ { 1 } , \\ldots , c _ { n } \\}$ be the memory cell’s states. Then, given the basic LSTM definition below, we can formally identify three sub-components. ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
347,
|
| 157 |
+
825,
|
| 158 |
+
390
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "equation",
|
| 164 |
+
"img_path": "images/5467701ad584dd6418040f42a4488889f4c0765436c752c6aad6980a684d330e.jpg",
|
| 165 |
+
"text": "$$\n\\begin{array} { r l } & { \\tilde { c } _ { t } = \\mathrm { t a n h } ( W _ { c h } h _ { t - 1 } + W _ { c x } { \\boldsymbol x } _ { t } + { \\boldsymbol b } _ { c } ) } \\\\ & { ~ i _ { t } = \\sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \\boldsymbol x } _ { t } + { \\boldsymbol b } _ { i } ) } \\\\ & { f _ { t } = \\sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \\boldsymbol x } _ { t } + { \\boldsymbol b } _ { f } ) } \\\\ & { c _ { t } = i _ { t } \\circ \\tilde { c } _ { t } + f _ { t } \\circ c _ { t - 1 } } \\\\ & { o _ { t } = \\sigma ( W _ { o h } h _ { t - 1 } + W _ { o x } { \\boldsymbol x } _ { t } + { \\boldsymbol b } _ { o } ) } \\\\ & { h _ { t } = o _ { t } \\circ \\mathrm { t a n h } ( c _ { t } ) } \\end{array}\n$$",
|
| 166 |
+
"text_format": "latex",
|
| 167 |
+
"bbox": [
|
| 168 |
+
370,
|
| 169 |
+
390,
|
| 170 |
+
625,
|
| 171 |
+
497
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Content Layer (Equation 2) We refer to $\\widetilde { c } _ { t }$ as the content layer, which is the output of an S-RNN. eEvaluating the need for the multiplicative recurrent connections in this content layer is the focus of this work. The content layer is passed to the memory cell, which decides which parts of it to store. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
503,
|
| 181 |
+
826,
|
| 182 |
+
546
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Memory Cell (Equations 3-5) The memory cell $c _ { t }$ is controlled by two gates. The input gate $\\mathbf { \\delta } _ { i _ { t } }$ controls what part of the content $( \\widetilde { c } _ { t } )$ is written to the memory, while the forget gate $f _ { t }$ controls what epart of the memory is deleted by filtering the previous state of the memory $( c _ { t - 1 } )$ . Writing to the memory is done by adding the filtered content $( i _ { t } \\circ \\widetilde { c } _ { t } )$ to the retained memory $( f _ { t } \\circ c _ { t - 1 } )$ . ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
559,
|
| 192 |
+
825,
|
| 193 |
+
617
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Output Layer (Equations 6-7) The output layer $h _ { t }$ passes the memory cell through a tanh activation function and uses an output gate $\\mathbf { } _ { o _ { t } }$ to read selectively from the squashed memory cell. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
171,
|
| 202 |
+
631,
|
| 203 |
+
823,
|
| 204 |
+
660
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Our goal is to study how much each of these components contribute to the empirical performance of LSTMs. In particular, it is worth considering the memory cell in more detail to reveal why it could serve as a standalone powerful model of long-distance context. It is possible to show that it implicitly computes an element-wise weighted sum of all the previous content layers by expanding the recurrence relation in equation (5): ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
666,
|
| 214 |
+
825,
|
| 215 |
+
736
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "equation",
|
| 221 |
+
"img_path": "images/171eae8314fed08e1db7bb9670fac2bf29d1e1ae5456febe476e5bccec770de4.jpg",
|
| 222 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle c _ { t } = \\dot { a } _ { t } \\circ \\widetilde c _ { t } + f _ { t } \\circ c _ { t - 1 } } } \\\\ { { \\displaystyle \\quad = \\sum _ { j = 0 } ^ { t } \\left( \\dot { a } _ { j } \\circ \\prod _ { k = j + 1 } ^ { t } f _ { k } \\right) \\circ \\widetilde c _ { j } } } \\\\ { { \\displaystyle \\quad = \\sum _ { j = 0 } ^ { t } w _ { j } ^ { t } \\circ \\widetilde c _ { j } } } \\end{array}\n$$",
|
| 223 |
+
"text_format": "latex",
|
| 224 |
+
"bbox": [
|
| 225 |
+
395,
|
| 226 |
+
736,
|
| 227 |
+
599,
|
| 228 |
+
845
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Each weight $\\boldsymbol { w } _ { j } ^ { t }$ is a product of the input gate $i _ { j }$ (when its respective input $\\widetilde { c } _ { j }$ was read) and every subsequent forget gate $f _ { k }$ e. An interesting property of these weights is that, like the gates, they are also soft element-wise binary filters.1 ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
847,
|
| 238 |
+
825,
|
| 239 |
+
890
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "This sum is similar to recent architectures that rely on self-attention to learn context-dependent word representations (Cheng et al., 2016; Parikh et al., 2016; Vaswani et al., 2017). There are two major differences from self-attention: (1) instead of computing a weighted sum for each attention head, a separate weighted sum is computed for every dimension of the memory cell, (2) the weighted sum is accumulated with a dynamic program, enabling a linear rather than quadratic complexity in comparison to self-attention. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
103,
|
| 249 |
+
825,
|
| 250 |
+
188
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "3 MEMORY CELLS ARE POWERFUL STANDALONE MODELS",
|
| 257 |
+
"text_level": 1,
|
| 258 |
+
"bbox": [
|
| 259 |
+
176,
|
| 260 |
+
207,
|
| 261 |
+
679,
|
| 262 |
+
223
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "The restricted space of element-wise weighted sums allows for easier mathematical analysis, visualization, and perhaps even learnability. However, constrained function spaces are also less expressive, and a natural question is whether these models will work well for NLP problems that need highly contextualized word representations. We hypothesize that the memory cell (which computes weighted sums) can function as a standalone contextualizer. To test this hypothesis, we present several simplifications of the LSTM’s architecture (Section 3.1), and show on a variety of NLP benchmarks that there is a qualitative performance difference between models that contain a memory cell and those that do not (Section 3.2). We conclude that the content and output layers are relatively minor contributors, and that the space of element-wise weighted sums is sufficiently powerful to compete with fully parameterized LSTMs (Section 3.3). ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
238,
|
| 272 |
+
826,
|
| 273 |
+
378
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "3.1 SIMPLIFIED MODELS ",
|
| 280 |
+
"text_level": 1,
|
| 281 |
+
"bbox": [
|
| 282 |
+
176,
|
| 283 |
+
395,
|
| 284 |
+
361,
|
| 285 |
+
409
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "The modeling power of LSTMs is commonly assumed to derive from the S-RNN in the content layer, with the rest of the model acting as a learning aid to bypass the vanishing gradient problem. We first isolate the S-RNN by ablating the gates (denoted as $L S T M - G A T E S$ for consistency). ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
174,
|
| 294 |
+
420,
|
| 295 |
+
825,
|
| 296 |
+
463
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "To test whether the memory cell has enough modeling power of its own, we take an LSTM and replace the S-RNN in the content layer from Equation 2 with a simple linear transformation, creating the LSTM – S-RNN model: ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
469,
|
| 306 |
+
825,
|
| 307 |
+
511
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/5a2c9bdaf6f3deb0591636a5b3c0c95ac2f8434c6de5b70e2342972adeb86649.jpg",
|
| 314 |
+
"text": "$$\n\\begin{array} { r l } & { \\tilde { c } _ { t } = W _ { c x } { \\boldsymbol x } _ { t } } \\\\ & { i _ { t } = \\sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \\boldsymbol x } _ { t } + b _ { i } ) } \\\\ & { f _ { t } = \\sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \\boldsymbol x } _ { t } + b _ { f } ) } \\\\ & { c _ { t } = i _ { t } \\circ \\tilde { c } _ { t } + f _ { t } \\circ c _ { t - 1 } } \\\\ & { o _ { t } = \\sigma ( W _ { o h } h _ { t - 1 } + W _ { o x } { \\boldsymbol x } _ { t } + b _ { o } ) } \\\\ & { h _ { t } = o _ { t } \\circ \\operatorname { t a n h } ( c _ { t } ) } \\end{array}\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
380,
|
| 318 |
+
513,
|
| 319 |
+
619,
|
| 320 |
+
622
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "We further simplify the LSTM by removing the output gate from Equation 7, leaving only the activation function in the output layer $( L S T M - S - R N N - O U T )$ : ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
633,
|
| 330 |
+
821,
|
| 331 |
+
662
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/6617fd930e6a6f0e313c5dc8995a605fd9f7bdfb21e05098bcab3f6c06d604e9.jpg",
|
| 338 |
+
"text": "$$\n\\begin{array} { r l } & { \\tilde { c } _ { t } = W _ { c x } { \\boldsymbol x } _ { t } } \\\\ & { i _ { t } = \\sigma ( W _ { i h } h _ { t - 1 } + W _ { i x } { \\boldsymbol x } _ { t } + b _ { i } ) } \\\\ & { f _ { t } = \\sigma ( W _ { f h } h _ { t - 1 } + W _ { f x } { \\boldsymbol x } _ { t } + b _ { f } ) } \\\\ & { c _ { t } = i _ { t } \\circ \\tilde { c } _ { t } + f _ { t } \\circ c _ { t - 1 } } \\\\ & { h _ { t } = \\operatorname { t a n h } ( c _ { t } ) } \\end{array}\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
379,
|
| 342 |
+
667,
|
| 343 |
+
619,
|
| 344 |
+
757
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "After removing the S-RNN and the output gate from the LSTM, the entire ablated model can be written in a modular, compact form: ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
171,
|
| 353 |
+
768,
|
| 354 |
+
823,
|
| 355 |
+
797
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/d567c87e2b80f73ffa895b046f3ca811fa7ea512282059d7d9d35e7d67842dc9.jpg",
|
| 362 |
+
"text": "$$\n\\pmb { h } _ { t } = \\mathrm { O U T P U T } \\Big ( \\sum _ { j = 0 } ^ { t } \\pmb { w } _ { j } ^ { t } \\circ \\mathrm { C O N T E N T } ( \\pmb { x } _ { j } ) \\Big )\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
357,
|
| 366 |
+
803,
|
| 367 |
+
638,
|
| 368 |
+
848
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "where the content layer CONTENT $( \\cdot )$ and the output layer OUTPUT $( \\cdot )$ are both context-independent functions, making the entire model highly constrained and interpretable. The complexity of modeling contextual information is needed only for computing the weights $\\boldsymbol { w } _ { j } ^ { t }$ . As we will see in Section 3.2, both of these ablations perform on par with LSTMs on language modeling, question answering, dependency parsing, and machine translation. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
853,
|
| 378 |
+
825,
|
| 379 |
+
924
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "There are many other models that can be expressed in the weighted-sum form (Equation 11). In this work, we focus on the closest variant of LSTM that satisfies this property; removing the S-RNN and the output gate is sufficient for the content and output functions to be context-independent. We leave more thorough investigations into the necessity of the remaining architecture as future work. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
103,
|
| 389 |
+
823,
|
| 390 |
+
160
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "3.2 EXPERIMENTS ",
|
| 397 |
+
"text_level": 1,
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
176,
|
| 401 |
+
315,
|
| 402 |
+
190
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "We compare model performance on four NLP tasks, with an experimental setup that is lenient towards LSTMs and harsh towards its simplifications. In each case, we use existing implementations and previously reported hyperparameter settings. Since these settings were tuned for LSTMs, any simplification that performs equally to (or better than) LSTMs under these LSTM-friendly settings provides strong evidence that the ablated component is not a contributing factor. For each task we also report the mean and standard deviation of 5 runs of the LSTM settings to demonstrate the typical variance observed due to training with different random initializations.2 The code and settings to replicate these experiments are publicly available.3 ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
202,
|
| 412 |
+
825,
|
| 413 |
+
314
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "3.2.1 LANGUAGE MODELING ",
|
| 420 |
+
"text_level": 1,
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
329,
|
| 424 |
+
392,
|
| 425 |
+
343
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "We evaluate on two language modeling datasets: the Penn Treebank (PTB) (Marcus et al., 1993), and Google’s billion-word benchmark (BWB) (Chelba et al., 2014). PTB contains approximately 1M tokens over a vocabulary of 10K words. We used the implementation of Zaremba et al. (2014) while replacing any invocation of LSTMs with simpler models. We tested two of their configurations: medium, which uses two layers of 650-dimension LSTMs, and large, which uses two layers of 1500-dimension LSTMs. ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
174,
|
| 434 |
+
353,
|
| 435 |
+
825,
|
| 436 |
+
436
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "BWB is about a thousand times larger than PTB, and uses a more diverse vocabulary of 800K words. Using the implementation of Józefowicz et al. (2016), we tested their LSTM-2048-512 configuration. Our experiments use exactly the same hyperparameters (dimensions, dropout, learning rates, etc) that were originally tuned for LSTMs (Józefowicz et al., 2016). Following their implementation, we project the hidden state at each time step down to 512 dimensions. Due to the enormous size of this dataset, we stopped training after 5 epochs. ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
444,
|
| 446 |
+
825,
|
| 447 |
+
527
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "Table 1 shows overall model performance. In all three cases, replacing the LSTM’s content layer with a linear transformation results in small differences in perplexity. The most important result is that the small fluctuations in performance between the various gated architectures are minuscule in comparison to the enormous gap between the S-RNN $( L S T M - G A T E S )$ and the original LSTM. This striking difference strongly supports our hypothesis that the weighted sums computed by the gates – not the S-RNN – is the recurrent model that contributes mostly strongly to the final performance. ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
174,
|
| 456 |
+
535,
|
| 457 |
+
825,
|
| 458 |
+
618
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "3.2.2 QUESTION ANSWERING ",
|
| 465 |
+
"text_level": 1,
|
| 466 |
+
"bbox": [
|
| 467 |
+
176,
|
| 468 |
+
633,
|
| 469 |
+
395,
|
| 470 |
+
647
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "For question answering, we use two different QA systems on the Stanford question answering dataset (SQuAD) (Rajpurkar et al., 2016): the Bidirectional Attention Flow model (BiDAF) (Seo et al., 2016) and DrQA (Chen et al., 2017). BiDAF contains 3 LSTMs, which are referred to as the phrase layer, the modeling layer, and the span end encoder. Our experiments replace each of these LSTMs with their simplified counterparts. We directly use the implementation of BiDAF from AllenNLP (Gardner et al., 2017), and all experiments reuse the existing hyperparameters that were tuned for LSTMs. Likewise, we use an open-source implementation of $\\mathrm { \\dot { D r } Q A } ^ { 4 }$ and replace only the LSTMs, while leaving everything else intact. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
657,
|
| 480 |
+
825,
|
| 481 |
+
770
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 3
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "Table 2 shows that all the gated models do comparably. Most importantly, ablating the S-RNN from the LSTM has a minor effect in comparison to the drop in performance when ablating the gates. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
174,
|
| 490 |
+
776,
|
| 491 |
+
823,
|
| 492 |
+
804
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "3.2.3 DEPENDENCY PARSING ",
|
| 499 |
+
"text_level": 1,
|
| 500 |
+
"bbox": [
|
| 501 |
+
176,
|
| 502 |
+
820,
|
| 503 |
+
392,
|
| 504 |
+
833
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 3
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "For dependency parsing, we use the Deep Biaffine Dependency Parser (Dozat & Manning, 2016), which relies on stacked bidirectional LSTMs to learn context-sensitive word embeddings for determining arcs between a pair of words. We directly use their released implementation, which is evaluated on the Universal Dependencies English Web Treebank v1.3 (Silveira et al., 2014). In our experiments, we use the existing hyperparameters and only replace the LSTMs with the simplified architectures. ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
176,
|
| 513 |
+
844,
|
| 514 |
+
826,
|
| 515 |
+
872
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 3
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "table",
|
| 521 |
+
"img_path": "images/63d9237a0d4c313ae0332db25309abbaa02d4f2603820898c4bf7b76e46c8a18.jpg",
|
| 522 |
+
"table_caption": [
|
| 523 |
+
"Table 1: The performance of simplified LSTM architectures on language modeling benchmarks, measured by perplexity. "
|
| 524 |
+
],
|
| 525 |
+
"table_footnote": [],
|
| 526 |
+
"table_body": "<table><tr><td>Configuration</td><td>Model</td><td>Perplexity</td></tr><tr><td rowspan=\"4\">PTB</td><td>LSTM</td><td>83.9 ± 0.3</td></tr><tr><td>- GATES</td><td>140.9</td></tr><tr><td>- S-RNN</td><td>80.5</td></tr><tr><td>- S-RNN-OUT</td><td>81.6</td></tr><tr><td rowspan=\"4\">PTB (Large Model)</td><td>LSTM</td><td>78.8± 0.2</td></tr><tr><td>- GATES</td><td>126.1</td></tr><tr><td>- S-RNN</td><td>76.0</td></tr><tr><td>- S-RNN -OUT</td><td>78.5</td></tr><tr><td rowspan=\"4\">BWB</td><td>LSTM (J6zefowicz et al., 2016)</td><td>47.5</td></tr><tr><td>- GATES</td><td>82.2</td></tr><tr><td>- S-RNN</td><td>45.4</td></tr><tr><td>- S-RNN-OUT</td><td>47.9</td></tr></table>",
|
| 527 |
+
"bbox": [
|
| 528 |
+
267,
|
| 529 |
+
101,
|
| 530 |
+
728,
|
| 531 |
+
310
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "table",
|
| 537 |
+
"img_path": "images/194b9011fae87b1997c7733bb818feb5a4aac1e118b1109b42ea99f5ad8bb89f.jpg",
|
| 538 |
+
"table_caption": [
|
| 539 |
+
"Table 2: The performance of simplified LSTM architectures on the question answering benchmark, SQuAD, measured by exact match (EM) and span overlap (F1). "
|
| 540 |
+
],
|
| 541 |
+
"table_footnote": [],
|
| 542 |
+
"table_body": "<table><tr><td>System</td><td>Model</td><td>EM</td><td>F1</td></tr><tr><td rowspan=\"5\">BiDAF</td><td>LSTM</td><td>67.9 ± 0.3</td><td>77.5 ± 0.2</td></tr><tr><td>- GATES</td><td>62.9</td><td>73.3</td></tr><tr><td>- S-RNN</td><td>68.4</td><td>78.2</td></tr><tr><td>- S-RNN-OUT</td><td>67.4</td><td>77.2</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan=\"4\">DrQA</td><td>LSTM</td><td>68.8 ± 0.2</td><td>78.2 ± 0.2</td></tr><tr><td>- GATES</td><td>56.4</td><td>66.5</td></tr><tr><td>- S-RNN</td><td>67.7</td><td>77.0</td></tr><tr><td>- S-RNN -OUT</td><td>67.0</td><td>76.2</td></tr></table>",
|
| 543 |
+
"bbox": [
|
| 544 |
+
307,
|
| 545 |
+
363,
|
| 546 |
+
691,
|
| 547 |
+
511
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "table",
|
| 553 |
+
"img_path": "images/3129b60252f421282f6f1391d76bb306baaab02caefbfc2a2d89d11276f1df54.jpg",
|
| 554 |
+
"table_caption": [
|
| 555 |
+
"Table 3: The performance of simplified LSTM architectures on the universal dependencies parsing benchmark, measured by unlabeled attachment score (UAS) and labeled attachment score (LAS). "
|
| 556 |
+
],
|
| 557 |
+
"table_footnote": [],
|
| 558 |
+
"table_body": "<table><tr><td>Model</td><td>UAS</td><td>LAS</td></tr><tr><td>LSTM</td><td>90.60 ± 0.21</td><td>88.05 ± 0.33</td></tr><tr><td>- GATES</td><td>87.75</td><td>84.61</td></tr><tr><td>- S-RNN</td><td>90.77</td><td>88.49</td></tr><tr><td>- S-RNN-OUT</td><td>90.70</td><td>88.31</td></tr></table>",
|
| 559 |
+
"bbox": [
|
| 560 |
+
326,
|
| 561 |
+
564,
|
| 562 |
+
671,
|
| 563 |
+
651
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 4
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "",
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
717,
|
| 573 |
+
825,
|
| 574 |
+
773
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 4
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "We observe the same pattern in the ablations for dependency parsing. The differences in performance between the gated models fall within the differences between multiple experiments with LSTMs. Consistent with ablation results from other tasks, removing the gating mechanisms causes a 3-4 point drop in performance. ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
780,
|
| 584 |
+
825,
|
| 585 |
+
837
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "3.2.4 MACHINE TRANSLATION ",
|
| 592 |
+
"text_level": 1,
|
| 593 |
+
"bbox": [
|
| 594 |
+
176,
|
| 595 |
+
856,
|
| 596 |
+
401,
|
| 597 |
+
869
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 4
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "For machine translation, we used OpenNMT (Klein et al., 2017) to train English to German translation models on the multi-modal benchmarks from WMT 2016 (used in OpenNMT’s readme file). We use OpenNMT’s default model and hyperparameters, replacing the stacked bidirectional LSTM of its ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
176,
|
| 606 |
+
881,
|
| 607 |
+
823,
|
| 608 |
+
924
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 4
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "table",
|
| 614 |
+
"img_path": "images/2d9a927a1b20326552303a2bb9eee06dc2d283f11d4d99988b82f925ad6eec3d.jpg",
|
| 615 |
+
"table_caption": [],
|
| 616 |
+
"table_footnote": [],
|
| 617 |
+
"table_body": "<table><tr><td>Model</td><td>BLEU</td></tr><tr><td>LSTM</td><td>35.95</td></tr><tr><td>- GATES</td><td>12.22</td></tr><tr><td>- S-RNN</td><td>36.66</td></tr><tr><td>- S-RNN-OUT</td><td>36.39</td></tr></table>",
|
| 618 |
+
"bbox": [
|
| 619 |
+
400,
|
| 620 |
+
101,
|
| 621 |
+
598,
|
| 622 |
+
186
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Table 4: The performance of simplified LSTM architectures on the WMT 2016 multi-modal English to German translation benchmark, measured by BLEU. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
195,
|
| 632 |
+
823,
|
| 633 |
+
223
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "encoder with the simplified architectures. Table 4 shows that while models containing memory cells perform more-or-less on par, removing the memory cell yields a substantial performance drop. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
248,
|
| 643 |
+
823,
|
| 644 |
+
276
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "3.3 DISCUSSION ",
|
| 651 |
+
"text_level": 1,
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
292,
|
| 655 |
+
302,
|
| 656 |
+
308
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 5
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "In the above experiments, we show three major ablations of the LSTM. In the S-RNN experiments $( L S T M - G A T E S )$ , we ablate the memory cell and the output layer. In the LSTM – S-RNN and LSTM – $S – R M N - O U T$ experiments, we ablate the S-RNN. As consistent with previous literature, removing the memory cell degrades performance drastically. In contrast, removing the S-RNN makes little to no difference in the final performance, suggesting that the memory cell alone is largely responsible for the success of LSTMs in NLP. The results also confirm our hypothesis that weighted sums of context words is a powerful, yet more interpretable, model of contextual information. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
174,
|
| 665 |
+
319,
|
| 666 |
+
826,
|
| 667 |
+
416
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "4 WEIGHT VISUALIZATION ",
|
| 674 |
+
"text_level": 1,
|
| 675 |
+
"bbox": [
|
| 676 |
+
176,
|
| 677 |
+
436,
|
| 678 |
+
415,
|
| 679 |
+
452
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 5
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Given the empirical evidence that LSTMs are effectively learning weighted sums of the content layers, it is natural to investigate what weights the model learns in practice. Using the more mathematically transparent simplification of LSTMs, we can visualize the weights $\\boldsymbol { w } _ { j } ^ { t }$ that are placed on every input $j$ at every timestep $t$ (see Equation 11). ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
467,
|
| 689 |
+
825,
|
| 690 |
+
523
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 5
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Unlike attention mechanisms, these weights are vectors rather than scalar values. Therefore, we can only provide a coarse-grained visualization of the weights by rendering their $L ^ { 2 }$ -norm, as shown in Table 5. In the visualization, each column indicates the word represented by the weighted sum, and each row indicates the word over which the weighted sum is computed. Dark horizontal streaks indicate the duration for which a word was remembered. Unsurprisingly, the weights on the diagonal are always the largest since it indicates the weight of the current word. More interesting task-specific patterns emerge when inspecting the off-diagonals that represent the weight on the context words. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
530,
|
| 700 |
+
825,
|
| 701 |
+
628
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "The first visualization uses the language model from BWB. Due to the language modeling setup, there are only non-zero weights on the current or previous words. We find that the common function words are quickly forgotten, while infrequent words that signal the topic are remembered over very long distances. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
635,
|
| 711 |
+
825,
|
| 712 |
+
690
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "The second visualization uses the dependency parser. In this setting, since the recurrent architectures are bidirectional, there are non-zero weights on all words in the sentence. The top-right triangle indicates weights from the forward direction, and the bottom-left triangle indicates from the backward direction. For syntax, we see a significantly different pattern. Function words that are useful for determining syntax are more likely to be remembered. Weights on head words are also likely to persist until the end of a constituent. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
696,
|
| 722 |
+
825,
|
| 723 |
+
781
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "This illustration provides only a glimpse into what the model is capturing, and perhaps future, more detailed visualizations that take the individual dimensions into account can provide further insight into what LSTMs are learning in practice. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
176,
|
| 732 |
+
787,
|
| 733 |
+
823,
|
| 734 |
+
830
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "5 RELATED WORK ",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
851,
|
| 745 |
+
344,
|
| 746 |
+
867
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 5
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Many variants of LSTMs (Hochreiter & Schmidhuber, 1997) have been previously explored. These typically consist of a different parameterization the gates, such as LSTMs with peephole connections (Gers & Schmidhuber, 2000), or a rewiring of the connections, such as GRUs (Cho et al., 2014). ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
881,
|
| 756 |
+
825,
|
| 757 |
+
924
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 5
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "image",
|
| 763 |
+
"img_path": "images/116dcdff4d795d2dbda889b8d0af463695037f8ed08b70dd44a413daf868c26c.jpg",
|
| 764 |
+
"image_caption": [
|
| 765 |
+
"Table 5: Visualization of the weights on context words learned by the memory cell. Each column represents the current word $t$ , and each row represents a context word $j$ . The gating mechanism implicitly computes element-wise weighted sums over each column. The darkness of each square indicates the $L ^ { \\dot { 2 } }$ -norm of the vector weights $\\boldsymbol { w } _ { j } ^ { t }$ from Equation 11. Figures on the left show weights learned by a language model. Figures on the right show weights learned by a dependency parser. "
|
| 766 |
+
],
|
| 767 |
+
"image_footnote": [],
|
| 768 |
+
"bbox": [
|
| 769 |
+
186,
|
| 770 |
+
103,
|
| 771 |
+
797,
|
| 772 |
+
829
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 6
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "However, these modifications invariably maintain the recurrent content layer. Even more systematic explorations of LSTM variants (Józefowicz et al., 2015; Greff et al., 2016; Zoph & Le, 2017) do not question the importance of the embedded S-RNN. This is the first study to provide apples-to-apples comparisons between LSTMs and LSTMs without the recurrent content layer. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
174,
|
| 781 |
+
103,
|
| 782 |
+
823,
|
| 783 |
+
159
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 7
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Several other recent works have also reported promising results with recurrent models that are vastly simpler than LSTMs, such as quasi-recurrent neural networks (Bradbury et al., 2016), strongly-typed recurrent neural networks (Balduzzi & Ghifary, 2016), kernel neural networks (Lei et al., 2017), and simple recurrent units (Lei & Zhang, 2017), making it increasingly apparent that LSTMs are over-parameterized. While these works indicate an obvious trend, their focus is not to provide insight into what exactly LSTMs are learning. In our carefully controlled ablation studies, we propose and evaluate the minimal changes required to test our hypothesis that LSTMs are powerful because they dynamically compute element-wise weighted sums of content layers. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
166,
|
| 793 |
+
825,
|
| 794 |
+
279
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "As mentioned in Section 2, this weighted-sum view of LSTMs is highly related to neural attention (Bahdanau et al., 2015), which assigns a normalized scalar weight to each element as a function of its compatibility with an external element. The ability to inspect attention weights has driven the use of more interpretable neural models. Self-attention (Cheng et al., 2016; Parikh et al., 2016) extends this notion by computing intra-sequence attention. Vaswani et al. (2017) further showed that state-of-the-art machine translation can be achieved using only self-attention and without LSTMs. Recently, Arora et al. (2017) proposed a theory-driven approach to assign scalar weights to elements in a bag of words. The success of self-attention corroborates our findings that weighted sums are indeed a more effective method of learning context-sensitive representations than previously appreciated. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
285,
|
| 804 |
+
825,
|
| 805 |
+
410
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 7
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "6 CONCLUSION ",
|
| 812 |
+
"text_level": 1,
|
| 813 |
+
"bbox": [
|
| 814 |
+
176,
|
| 815 |
+
431,
|
| 816 |
+
318,
|
| 817 |
+
446
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "We presented an alternate view of LSTMs: they are a hybrid of S-RNNs and a gated model that dynamically computes weighted sums of the S-RNN outputs. Our experiments investigated whether the S-RNN is a necessary component of LSTMs. In other words, are the gates alone as powerful of a model as an LSTM? Results across four major NLP tasks (language modeling, question answering, dependency parsing, and machine translation) indicate that LSTMs suffer little to no performance loss when removing the S-RNN, but removing the gates can degrade performance substantially. This provides evidence that the gating mechanism is doing the heavy lifting in modeling context, and that element-wise weighted sums of context-independent functions of the inputs are often as effective as fully-parameterized LSTMs. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
463,
|
| 827 |
+
825,
|
| 828 |
+
588
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "This work sheds light on the inner workings of the relatively opaque LSTM. By removing the S-RNN and the output gate, we also show that the resulting model is a far more mathematically transparent variant of LSTMs. This transparency enables a visualization of how the context affects the output of the model at every timestep, much like in attention-based models. We hope that this new outlook on LSTMs will foster better and more efficient models of contextualization. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
595,
|
| 838 |
+
825,
|
| 839 |
+
665
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 7
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "REFERENCES ",
|
| 846 |
+
"text_level": 1,
|
| 847 |
+
"bbox": [
|
| 848 |
+
176,
|
| 849 |
+
688,
|
| 850 |
+
285,
|
| 851 |
+
702
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, and Yoav Goldberg. Fine-grained analysis of sentence embeddings using auxiliary prediction tasks. In ICLR, 2017. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
174,
|
| 860 |
+
710,
|
| 861 |
+
823,
|
| 862 |
+
739
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 7
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "Sanjeev Arora, Yingyu Liang, and Tengyu Ma. A simple but tough-to-beat baseline for sentence embeddings. In ICLR, 2017. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
173,
|
| 871 |
+
750,
|
| 872 |
+
821,
|
| 873 |
+
779
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 7
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
171,
|
| 882 |
+
789,
|
| 883 |
+
825,
|
| 884 |
+
818
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 7
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "David Balduzzi and Muhammad Ghifary. Strongly-typed recurrent neural networks. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 1292–1300, 2016. URL http://jmlr.org/proceedings/ papers/v48/balduzzi16.html. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
173,
|
| 893 |
+
828,
|
| 894 |
+
826,
|
| 895 |
+
885
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 7
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Yoshua Bengio, Patrice Y. Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2):157–166, 1994. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
895,
|
| 905 |
+
821,
|
| 906 |
+
922
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 7
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. CoRR, abs/1611.01576, 2016. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
169,
|
| 915 |
+
103,
|
| 916 |
+
823,
|
| 917 |
+
132
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, and Phillipp Koehn. One billion word benchmark for measuring progress in statistical language modeling. In INTERSPEECH, 2014. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
141,
|
| 927 |
+
823,
|
| 928 |
+
184
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 8
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to answer open-domain questions. In Association for Computational Linguistics (ACL), 2017. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
171,
|
| 937 |
+
194,
|
| 938 |
+
823,
|
| 939 |
+
223
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 8
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 551–561, Austin, Texas, November 2016. Association for Computational Linguistics. URL https://aclweb.org/anthology/D16-1053. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
233,
|
| 949 |
+
826,
|
| 950 |
+
290
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 8
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"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. URL http://www.aclweb.org/anthology/D14-1179. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
174,
|
| 959 |
+
299,
|
| 960 |
+
825,
|
| 961 |
+
369
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 8
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Timothy Dozat and Christopher D. Manning. Deep biaffine attention for neural dependency parsing. CoRR, abs/1611.01734, 2016. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
169,
|
| 970 |
+
378,
|
| 971 |
+
823,
|
| 972 |
+
409
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 8
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Jeffrey L. Elman. Finding structure in time. Cognitive Science, 14:179–211, 1990. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
173,
|
| 981 |
+
417,
|
| 982 |
+
714,
|
| 983 |
+
433
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. Allennlp: A deep semantic natural language processing platform, 2017. URL http://allennlp.org/papers/AllenNLP_white_ paper.pdf. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
173,
|
| 992 |
+
443,
|
| 993 |
+
826,
|
| 994 |
+
500
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Felix A. Gers and Jürgen Schmidhuber. Recurrent nets that time and count. In IJCNN, 2000. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
171,
|
| 1003 |
+
508,
|
| 1004 |
+
781,
|
| 1005 |
+
525
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 8
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Klaus Greff, Rupesh K Srivastava, Jan Koutník, Bas R Steunebrink, and Jürgen Schmidhuber. Lstm: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, 2016. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
176,
|
| 1014 |
+
534,
|
| 1015 |
+
826,
|
| 1016 |
+
563
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 8
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Luheng He, Kenton Lee, Mike Lewis, and Luke Zettlemoyer. Deep semantic role labeling: What works and what’s next. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, 2017. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
173,
|
| 1025 |
+
571,
|
| 1026 |
+
826,
|
| 1027 |
+
614
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 8
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Sepp Hochreiter. Untersuchungen zu dynamischen neuronalen netzen. Diploma, Technische Universität München, 91, 1991. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
625,
|
| 1037 |
+
825,
|
| 1038 |
+
654
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 8
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Sepp Hochreiter and Jürgen Schmidhuber. Long Short-term Memory. Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
173,
|
| 1047 |
+
662,
|
| 1048 |
+
825,
|
| 1049 |
+
693
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 8
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Rafal Józefowicz, Wojciech Zaremba, and Ilya Sutskever. An empirical exploration of recurrent network architectures. In ICML, 2015. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
173,
|
| 1058 |
+
702,
|
| 1059 |
+
825,
|
| 1060 |
+
731
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 8
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Rafal Józefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
171,
|
| 1069 |
+
739,
|
| 1070 |
+
825,
|
| 1071 |
+
770
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 8
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Guillaume Klein, Yoon Kim, Yuntian Deng, Jean Senellart, and Alexander M. Rush. Opennmt: Opensource toolkit for neural machine translation. In Proc. ACL, 2017. doi: 10.18653/v1/P17-4012. URL https://doi.org/10.18653/v1/P17-4012. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
178,
|
| 1080 |
+
779,
|
| 1081 |
+
826,
|
| 1082 |
+
821
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 8
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Tao Lei and Yu Zhang. Training rnns as fast as cnns. arXiv preprint arXiv:1709.02755, 2017. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
171,
|
| 1091 |
+
832,
|
| 1092 |
+
787,
|
| 1093 |
+
848
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 8
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Tao Lei, Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Deriving neural architectures from sequence and graph kernels. In ICML, 2017. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
856,
|
| 1103 |
+
820,
|
| 1104 |
+
886
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 8
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntaxsensitive dependencies. TACL, 4:521–535, 2016. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
176,
|
| 1113 |
+
895,
|
| 1114 |
+
823,
|
| 1115 |
+
924
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 8
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19:313–330, 1993. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
103,
|
| 1125 |
+
823,
|
| 1126 |
+
132
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2249–2255, Austin, Texas, November 2016. Association for Computational Linguistics. URL https://aclweb.org/anthology/D16-1244. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
174,
|
| 1135 |
+
141,
|
| 1136 |
+
823,
|
| 1137 |
+
196
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100, $0 0 0 +$ questions for machine comprehension of text. In EMNLP, 2016. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
169,
|
| 1146 |
+
207,
|
| 1147 |
+
823,
|
| 1148 |
+
236
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Min Joon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. CoRR, abs/1611.01603, 2016. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
171,
|
| 1157 |
+
243,
|
| 1158 |
+
825,
|
| 1159 |
+
272
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Natalia Silveira, Timothy Dozat, Marie-Catherine de Marneffe, Samuel Bowman, Miriam Connor, John Bauer, and Christopher D. Manning. A gold standard dependency corpus for English. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC-2014), 2014. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
281,
|
| 1169 |
+
826,
|
| 1170 |
+
338
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
171,
|
| 1179 |
+
347,
|
| 1180 |
+
823,
|
| 1181 |
+
376
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
174,
|
| 1190 |
+
385,
|
| 1191 |
+
823,
|
| 1192 |
+
414
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In ICLR, 2017. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
171,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KNOWLEDGE DISTILLATION VIA SOFTMAX REGRESSION REPRESENTATION LEARNING
|
| 2 |
+
|
| 3 |
+
Jing Yang
|
| 4 |
+
University of Nottingham
|
| 5 |
+
Nottingham, UK
|
| 6 |
+
jing.yang2@nottingham.ac.uk
|
| 7 |
+
Brais Marinez
|
| 8 |
+
Samsung AI Center
|
| 9 |
+
Cambridge, UK
|
| 10 |
+
brais.mart@gmail.com
|
| 11 |
+
Adrian Bulat
|
| 12 |
+
Samsung AI Center
|
| 13 |
+
Cambridge, UK
|
| 14 |
+
adrian@adrianbulat.com,
|
| 15 |
+
Georgios Tzimiropoulos
|
| 16 |
+
Samsung AI Center
|
| 17 |
+
Cambridge, UK
|
| 18 |
+
Queen Mary University of London
|
| 19 |
+
London, UK
|
| 20 |
+
g.tzimiropoulos@qmul.ac.uk
|
| 21 |
+
|
| 22 |
+
# ABSTRACT
|
| 23 |
+
|
| 24 |
+
This paper addresses the problem of model compression via knowledge distillation. We advocate for a method that optimizes the output feature of the penultimate layer of the student network and hence is directly related to representation learning. To this end, we firstly propose a direct feature matching approach which focuses on optimizing the student’s penultimate layer only. Secondly and more importantly, because feature matching does not take into account the classification problem at hand, we propose a second approach that decouples representation learning and classification and utilizes the teacher’s pre-trained classifier to train the student’s penultimate layer feature. In particular, for the same input image, we wish the teacher’s and student’s feature to produce the same output when passed through the teacher’s classifier, which is achieved with a simple $L _ { 2 }$ loss. Our method is extremely simple to implement and straightforward to train and is shown to consistently outperform previous state-of-the-art methods over a large set of experimental settings including different (a) network architectures, (b) teacher-student capacities, (c) datasets, and (d) domains. The code is available at https://github.com/jingyang2017/KD_SRRL.
|
| 25 |
+
|
| 26 |
+
# 1 INTRODUCTION
|
| 27 |
+
|
| 28 |
+
Recently, there has been a great amount of research effort to make Convolutional Neural Networks (CNNs) lightweight so that they can be deployed in devices with limited resources. To this end, several approaches for model compression have been proposed, including network pruning (Han et al., 2016; Lebedev & Lempitsky, 2016), network quantization (Rastegari et al., 2016; Wu et al., 2016), knowledge transfer/distillation (Hinton et al., 2015; Zagoruyko & Komodakis, 2017), and neural architecture search (Zoph & Le, 2017; Liu et al., 2018). Knowledge distillation (Bucilua et al., ˇ 2006; Hinton et al., 2015) aims to transfer knowledge from one network (the so-called “teacher”) to another (the so-called “student”). Typically, the teacher is a high-capacity model capable of achieving high accuracy, while the student is a compact model with much fewer parameters, thus also requiring much less computation. The goal of knowledge distillation is to use the teacher to improve the training of the student and push its accuracy closer to that of the teacher.
|
| 29 |
+
|
| 30 |
+
The rationale behind knowledge distillation can be explained from an optimization perspective: there is evidence that high capacity models (i.e. the teacher) can find good local minima due to over-parameterization (Du & Lee, 2018; Soltanolkotabi et al., 2018). In knowledge distillation, such models are used to facilitate the optimization of lower capacity models (i.e. the student) during training. For example, in the seminal work of (Hinton et al., 2015), the softmax outputs of the teacher provide extra supervisory signals of inter-class similarities which facilitate the training of the student. In other influential works, intermediate representations extracted from the teacher such as feature tensors (Romero et al., 2015) or attention maps (Zagoruyko & Komodakis, 2017) have been used to define auxiliary loss functions used in the optimization of the student.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Figure 1: Our method performs knowledge distillation by minimizing the discrepancy between the penultimate feature representations $h _ { T }$ and $h _ { S }$ of the teacher and the student, respectively. To this end, we propose to use two losses: (a) the Feature Matching loss $L _ { F M }$ , and (b) the so-called Softmax Regression loss $L _ { S R }$ . In contrary to $L _ { F M }$ , our main contribution, $L _ { S R }$ , is designed to take into account the classification task at hand. To this end, $L _ { S R }$ imposes that for the same input image, the teacher’s and student’s feature produce the same output when passed through the teacher’s pre-trained and frozen classifier. Note that, for simplicity, the function for making the feature dimensionality of $h _ { T }$ and $h _ { S }$ the same is not shown.
|
| 34 |
+
|
| 35 |
+
Training a network whose output feature representation is rich and powerful has been shown crucial for achieving high accuracy for the subsequent classification task in recent works in both unsupervised and supervised learning, see for example (Chen et al., 2020; He et al., 2020) and (Kang et al., 2020). Hence, in this paper, we are advocating for representation learning-based knowledge distillation by optimizing the student’s penultimate layer output feature. If we are able to do this effectively, we expect (and show experimentally) to end up with a student network which can generalize better than one trained with logit matching as in the KD paper of (Hinton et al., 2015).
|
| 36 |
+
|
| 37 |
+
Main contributions: To accomplish the aforementioned goal we propose two loss functions: The first loss function, akin to (Romero et al., 2015; Zagoruyko & Komodakis, 2017), is based on direct feature matching but focuses on optimizing the student’s penultimate layer feature only. Because direct feature matching might be difficult due to the lower representation capacity of the student and, more importantly, is detached from the classification task at hand, we also propose a second loss function: we propose to decouple representation learning and classification and utilize the teacher’s pre-trained classifier to train the student’s penultimate layer feature. In particular, for the same input image, we wish the teacher’s and student’s feature to produce the same output when passed through the teacher’s classifier, which is achieved with a simple $L _ { 2 }$ loss (see Fig. 1). This softmax regression projection is used to retain from the student’s feature the information that is relevant to classification, but since the projection matrix is pre-trained (learned during the teacher’s training phase) this does not compromise the representational power of the student’s feature.
|
| 38 |
+
|
| 39 |
+
Main results: Our method has two advantages: (1) It is simple and straightforward to implement. (2) It consistently outperforms state-of-the-art methods over a large set of experimental settings including different (a) network architectures (WideResNets, ResNets, MobileNets), (b) teacherstudent capacities, (c) datasets (CIFAR-10/100, ImageNet), and (d) domains (real-to-binary).
|
| 40 |
+
|
| 41 |
+
# 2 RELATED WORK
|
| 42 |
+
|
| 43 |
+
Knowledge transfer: In the work of (Hinton et al., 2015), knowledge is defined as the teacher’s outputs after the final softmax layer. The softmax outputs carry richer information than one-hot labels because they provide extra supervision signals in terms of the inter-class similarities learned by the teacher. In a similar fashion to (Hinton et al., 2015), intermediate representations extracted from the teacher such as feature tensors (Romero et al., 2015) or attention maps (Zagoruyko & Komodakis, 2017) have been used to define loss functions used to facilitate the optimization of the student. Trying to match the whole feature tensor, as in FitNets (Romero et al., 2015), is hard and, in certain circumstances, such an approach may adversely affect the performance and convergence of the student. To relax the assumption of FitNet, Attention Transfer (AT) was proposed in (Zagoruyko & Komodakis, 2017) where knowledge takes the form of attention maps which are summaries of the energies of the feature tensors over the channel dimension. An extension of (Zagoruyko & Komodakis, 2017) using Maximum Mean Discrepancy of the network activations as a loss term for distillation was proposed in (Huang & Wang, 2017). Cho & Hariharan (2019) showed that very accurate networks are “too good” to be good teachers and proposed to mitigate this with early stopping of the teacher’s training. Recently, the work of (Heo et al., 2019a) studied the location within the network at which feature distillation should be applied and proposed margin ReLU and a specifically designed distance function that transfers only the useful (positive) information from the teacher to the student. More recently, Li et al. (Li et al., 2020a) proposed to supervise the blockwise architecture search by the architecture knowledge distilled from a teacher model. Another NAS based method was proposed in (Guan et al., 2020), in which a student-to-teacher loss is used to find the aggregation weights that match the learning ability of the student. Passalis et al. (2020) claimed that traditional KD ignores information plasticity during the training process, and proposed to model the information flow through the various layers of the teacher.
|
| 44 |
+
|
| 45 |
+
Feature relationship transfer: Another line of knowledge distillation methods focus on exploring transferring the relationship between features, rather than the actual features themselves. In (Yim et al., 2017), feature correlations are captured by computing the Gram matrix of features across layers for both teacher and student and then applying an $L _ { 2 }$ loss on pairs of teacher-student Gram matrices. The limitation of this work is the high computational cost, which is addressed to some extent in (Lee et al., 2018) by compressing the feature maps by singular value decomposition. Park et al. (2019) proposed a relational knowledge distillation method which computes distance-wise and angle-wise relations of each embedded feature vector. This idea is further explored in (Peng et al., 2019) and (Liu et al., 2019). In (Peng et al., 2019), Taylor series expansion is proposed to better capture the correlation between multiple instances. In (Liu et al., 2019), the instance feature and relationships are considered as vertexes and edges respectively in a graph and instance relationship graph is proposed to model the feature space transformation across layers. Inspired by the observation that semantically similar inputs should have similar activation patterns, (Tung & Mori, 2019) proposed a similarity-preserving knowledge distillation method which guides the student to mimic the teacher with respect to generating similar or dissimilar activations. More recently, (Jain et al., 2020) proposed to matching the student output with the teacher’s by distilling the knowledge through a quantized visual words space. Li et al. (2020b) proposed the local correlation exploration framework to represent the relationships of local regions in the feature space which contains more details and discriminative patterns.
|
| 46 |
+
|
| 47 |
+
Finally, a similar connection between distillation and representation learning was very recently made in (Tian et al., 2020) which uses contrastive learning for knowledge distillation. We note that our loss is not related to the one used in (Tian et al., 2020), is simpler, and as shown in Section 5, outperforms it for all of our experiments, often by a significant margin.
|
| 48 |
+
|
| 49 |
+
# 3 METHOD
|
| 50 |
+
|
| 51 |
+
We denote by $T$ and $S$ the teacher and student networks respectively. We split these networks into two parts: (i) A convolutional feature extractor $f _ { N e t } , N e t = \{ T , S \}$ , the output of which at the $i$ -th layer is a feature tensor $F _ { N e t } ^ { i } \in \mathbb { R } ^ { C _ { N e t } ^ { i } \times H ^ { i } \times W ^ { i } }$ , where $C _ { N e t } ^ { i }$ is the output feature dimensionality, and $H ^ { i } , W ^ { i }$ the output spatial dimensions. We also denote by $\begin{array} { r } { h _ { N e t } = \sum _ { h = 1 } ^ { { H } ^ { L } } \sum _ { w = 1 } ^ { { W } ^ { L } } F _ { N e t } ^ { L } \in \mathbb { R } ^ { C _ { N e t } ^ { L } } } \end{array}$ the last layer feature representation learned by $f _ { N e t }$ . (ii) A projection matrix $W _ { N e t } \in \mathbb { R } ^ { C _ { N e t } ^ { L } \times K }$ which projects the feature representation $h _ { N e t }$ into $K$ class logits $z _ { N e t } ^ { i } , i = 1 , \dots , K$ , followed by the softmax function $\begin{array} { r } { s ( z _ { N e t } ^ { i } ) = \frac { \exp ( z _ { N e t } ^ { i } / \tau ) } { \sum _ { j } \exp ( z _ { N e t } ^ { j } / \tau ) } } \end{array}$ with temperature $\tau$ $\mathit { \Pi } _ { \tau } = 1$ for Cross Entropy loss) which put together form a softmax regression classifier into $K$ classes.
|
| 52 |
+
|
| 53 |
+
Knowledge Distillation (KD) (Hinton et al., 2015) trains the student with the following loss:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
L _ { K D } = - \sum _ { k = 1 } ^ { K } s ( z _ { T } ^ { k } ) \log s ( z _ { S } ^ { k } ) ,
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
so that the discrepancy between the teacher’s and student’s classifiers is directly minimized.
|
| 60 |
+
|
| 61 |
+
FitNets (Romero et al., 2015) match intermediate feature representations. For the $i$ -th layer, the following loss is defined:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
L _ { F i t } = \left\| F _ { T } ^ { i } - r ( F _ { S } ^ { i } ) \right\| ^ { 2 } ,
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $r ( . )$ is a function for matching the feature tensor dimensions.
|
| 68 |
+
|
| 69 |
+
In our work, we propose to minimize the discrepancy between the representations $h _ { T }$ and $h _ { S }$ . To accomplish this goal, we propose to use two losses. The first one is an $L _ { 2 }$ feature matching loss:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
L _ { F M } = \left\| h _ { T } - h _ { S } \right\| ^ { 2 } ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where for notational simplicity we dropped the dependency on $r ( . )$ . Hence, $L _ { F M }$ loss is a simplified FitNet loss which focuses only on the final representation learned. The intuition for this is that this feature is directly connected to the classifier and hence imposing the student’s feature to be similar to that of the teacher could have more impact on classification accuracy. Moreover, it might be questionable why one should optimize for other intermediate representations as in (Romero et al., 2015) especially when the student is a network of lower representational capacity. In Section 4: Where should the losses be applied?, we confirm that $L _ { F M }$ alone has a positive impact but feature matching in other layers is not helpful.
|
| 76 |
+
|
| 77 |
+
We found $L _ { F M }$ to be effective but only to limited extent. One disadvantage of $L _ { F M }$ and, in general, of all feature matching losses e.g. (Romero et al., 2015; Zagoruyko & Komodakis, 2017), is that it treats each channel dimension in the feature space independently, and ignores the inter-channel dependencies of the feature representations $h _ { S }$ and $h _ { T }$ for the final classification. This is in contrast to the original logit matching loss proposed by Hinton et al. in (Hinton et al., 2015) which directly targets classification accuracy. To alleviate the aforementioned problem, in this work, we propose a second loss for optimizing $h _ { S }$ which is directly linked with classification accuracy. To this end, we will use the teacher’s pre-trained Softmax Regression (SR) classifier.
|
| 78 |
+
|
| 79 |
+
Let us denote by $p$ the output of the teacher network when fed with some input image $x$ . Let us also feed the same image through the student network to obtain feature $h _ { S } ( x )$ . Finally let us pass $h _ { S } ( x )$ through the teacher’s SR classifier to obtain output $q$ . See also Fig. 1. Our loss is defined as:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
L _ { S R } = - p \log q .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
At this point, we make the following two observations: (1) If $p = q$ (and since the teacher’s classifier is frozen), then this implies that $\bar { h _ { S } } ( x ) = h _ { T } ( x )$ which shows that indeed Eq. (4) optimizes the student’s feature representation $h _ { S }$ ( $h _ { T }$ is also frozen). (2) The loss of Eq.(4) can be written as:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\begin{array} { r } { L _ { S R } = - s ( W _ { T } ^ { \prime } h _ { T } ) \log s ( W _ { T } ^ { \prime } h _ { S } ) . } \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Now let us now write KD loss in a similar way:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array} { r } { L _ { K D } = - s ( W _ { T } ^ { \prime } h _ { T } ) \log s ( W _ { s } ^ { \prime } h _ { S } ) . } \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
By comparing Eq. (5) with Eq. (6), we see that the only difference in our method is that the frozen, pre-trained teacher’s classifier is used for both teacher and the student. On the contrary, in KD, $W _ { S }$ is also optimized. This gives more degrees of freedom to the optimization algorithm, in particular, to adjust the weights of both the student’s feature extractor $f _ { S }$ and the student’s classifier $W _ { S }$ in order to minimize the loss. This has an impact on the learning of the student’s feature representation $h _ { S }$ which, in turn, hinders the generalization capability of the student on the test set. We confirm this hypothesis with the experiment of Section 4: Transferability of representations.
|
| 98 |
+
|
| 99 |
+
Finally, we note that we found that, in practice, an $L _ { 2 }$ loss between the logits:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
L _ { K D } = \left\| \boldsymbol { W _ { T } ^ { \prime } } \boldsymbol { h _ { T } } - \boldsymbol { W _ { T } ^ { \prime } } \boldsymbol { h _ { S } } \right\| ^ { 2 } = \left\| \boldsymbol { h _ { T } } - \boldsymbol { h _ { S } } \right\| _ { W _ { T } } ^ { 2 } ,
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
works slightly better than the cross-entropy loss. The comparison between different types of losses for $L _ { S R }$ is given in the appendix.
|
| 106 |
+
|
| 107 |
+
Table 1: Effect of proposed losses ( ${ \cal L } _ { F M }$ and $L _ { S R }$ ) and position of distillation on the test set of CIFAR-100.
|
| 108 |
+
|
| 109 |
+
<table><tr><td>Method</td><td>Layer</td><td>Top-1 (%)</td><td>Top-5 (%)</td></tr><tr><td colspan="2">Student (WRN-16-4)</td><td>76.97</td><td>93.89</td></tr><tr><td colspan="2">Teacher (WRN-40-4) LFM</td><td>79.50 78.05</td><td>94.57 94.45</td></tr><tr><td>LSR</td><td>conv4 conv4</td><td>79.10</td><td>94.99</td></tr><tr><td>LFM+LSR</td><td>conv4</td><td>79.58</td><td>95.21</td></tr><tr><td>LFM+LsR</td><td>conv2</td><td>77.03</td><td>93.94</td></tr><tr><td>LFM+LsR</td><td>conv3</td><td>77.34</td><td>94.22</td></tr><tr><td></td><td>conv2+3+4</td><td></td><td></td></tr><tr><td>LFM+LsR</td><td></td><td>79.43</td><td>94.80</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Overall, in our method, we train the student network using three losses:
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
{ \cal L } = { \cal L } _ { C E } + \alpha { \cal L } _ { F M } + \beta { \cal L } _ { S R } ,
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where $\alpha$ and $\beta$ are the weights used to scale the losses. The teacher network is pretrained and fixed during training the student. $L _ { C E }$ is the standard loss based on ground truth labels for the task in hand (e.g. cross-entropy loss for image classification). Note that this results in a very simple algorithm for training the student, summarized in Algorithm 1.
|
| 118 |
+
|
| 119 |
+
# Algorithm 1 Knowledge distillation via Softmax Regression Representation Learning
|
| 120 |
+
|
| 121 |
+
Input: Teacher network $T$ , Student network $S$ , input image x, ground truth label $y$ , weights $\alpha$ , $\beta$ . 1. Input $\mathbf { x }$ to $S$ to obtain feature $h _ { S }$ and class prediction $\hat { y }$ . Calculate cross entropy loss $\boldsymbol { L _ { C E } } = \mathcal { H } ( \boldsymbol { \hat { y } } , \boldsymbol { y } )$ ; 2. Input $\mathbf { x }$ to $T$ to obtain feature $h _ { T }$ . Calculate distillation losses from Eqs. (3) and (7); 3. Update $S$ by optimizing Eq. (8)
|
| 122 |
+
|
| 123 |
+
Output: the updated $S$
|
| 124 |
+
|
| 125 |
+
# 4 ABLATION STUDIES
|
| 126 |
+
|
| 127 |
+
We conducted a set of ablation studies on CIFAR-100 (see Section 5.1) using a Wide ResNet (WRN) for both teacher (WRN-40-4) and student (WRN-16-4) (for network definitions, see Section 5).
|
| 128 |
+
|
| 129 |
+
Are both $L _ { F M }$ and $L _ { S R }$ useful? To answer this question, we ran 3 experiments: using $L _ { F M }$ alone, $L _ { S R }$ alone, and combining them together ${ \cal L } _ { F M } + { \cal L } _ { S R }$ . The results of Table 1 (first 3 rows) clearly show that all proposed variants offer significant gains: when using $L _ { F M }$ and $L _ { S R }$ alone, $\sim 1 \%$ and $\sim 2 \%$ improvements in Top-1 accuracy were obtained. Moreover, when combining them together, an additional $\sim 0 . 4 \%$ improvement was gained. Importantly, the results show that $L _ { S R }$ is significantly more effective than $L _ { F M }$ . We further note at this point that we found that $L _ { F M }$ offers diminishing gains on ImageNet experiments.
|
| 130 |
+
|
| 131 |
+
Where should the losses be applied? The proposed losses can be applied at other layers of the networks too. This is straightforward for $L _ { F M }$ . We can also extend $L _ { S R }$ to more layers, by transferring the mean feature of the student at each layer to the corresponding layer of the teacher using an AdaIN layer (Huang & Belongie, 2017). On one hand, applying the losses early in the network could ensure that the subsequent layers receive “better” features. On the other hand, features produced by early layers are not specialised to a particular class. Thus, applying the distillation losses towards the end of the network, where the activations encode discriminative, task-related features should lead to potentially stronger models. The results from Table 1 (last 3 rows) confirm our hypothesis: Applying the loss at multiple points in the network actually rather hurts accuracy.
|
| 132 |
+
|
| 133 |
+
Teacher-student similarity: The overall aim of knowledge distillation is to make the student mimic the teacher’s output, so that the student is able to obtain similar performance to that of the teacher. Therefore, to see how well the student mimics the teacher, we measured the similarity between the teacher’s and student’s outputs using (a) the KL divergence between the teacher’s and student’s outputs, and (b) the cross-entropy loss between the student’s predictions and the ground truth labels.
|
| 134 |
+
|
| 135 |
+
Table 2: KL divergence between teacher and student, and cross-entropy between student and ground truth on the test set of CIFAR-100. Teacher’s top-1 accuracy is $7 9 . 5 0 \%$ .
|
| 136 |
+
|
| 137 |
+
<table><tr><td>Method</td><td>KL div.with teacher</td><td>Cross-entropy with label</td><td>Top-1 (%)</td></tr><tr><td rowspan="3">Student KD AT</td><td>0.5964</td><td>0.9383</td><td>76.97</td></tr><tr><td>0.5818</td><td>0.9492</td><td>78.35</td></tr><tr><td>0.5406</td><td>0.9049</td><td>78.06</td></tr><tr><td rowspan="3">LFM LsR LFM+LSR</td><td>0.5701</td><td>0.8980</td><td>78.05</td></tr><tr><td>0.4828</td><td>0.8418</td><td>79.10</td></tr><tr><td>0.4597</td><td>0.8247</td><td>79.58</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Table 3: $L _ { 2 }$ Distance $\left\| h _ { T } - h _ { S } \right\| ^ { 2 }$ , and NMI calculated on the test set of CIFAR-100.
|
| 140 |
+
|
| 141 |
+
<table><tr><td>Method</td><td>Student</td><td>LFM</td><td>LsR</td><td>LFM+LSR</td></tr><tr><td>L2Distance</td><td>1.48</td><td>1.33</td><td>1.07</td><td>1.01</td></tr><tr><td>NMI (%).</td><td>77.20</td><td>78.31</td><td>79.35</td><td>79.85</td></tr><tr><td>Top-1(%).</td><td>76.97</td><td>78.05</td><td>79.10</td><td>79.58</td></tr></table>
|
| 142 |
+
|
| 143 |
+
From Table 2, it can be observed that KD (Hinton et al., 2015) reduces the KL divergence with the teacher’s output offering $\sim 1 . 5 \%$ accuracy gain. AT (Zagoruyko & Komodakis, 2017) also decreases the KL divergence with the teacher’s output offering a smaller accuracy gain of $\sim 1 . 0 \%$ . Moreover, both proposed losses $L _ { F M }$ and $L _ { S R }$ and their combination ${ \cal L } _ { F M } + { \cal L } _ { S R }$ show considerably high similarity compared to the KD and AT. This similarity is one of the main reasons for the improved student’s accuracy offered by our method.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 2: Visualization of $h _ { S }$ and $h _ { T }$ on the test set of CIFAR-100. Better viewed in color.
|
| 147 |
+
|
| 148 |
+
Representations distance: Table 3 shows the $L _ { 2 }$ distance between the teacher and student representations $h _ { T }$ and $h _ { S }$ . The results, presented in Table 3, clearly show that both $L _ { F M }$ and $L _ { S R }$ narrow the distance, with their combination being the closest to the teacher.
|
| 149 |
+
|
| 150 |
+
Normalized Mutual Information (NMI): Moreover, we calculated the NMI (Manning et al., 2008) which is a balanced metric that can be used to determine the quality of feature clustering. The results, presented in Table 3, show that ${ \cal L } _ { F M } + { \cal L } _ { S R }$ has the highest NMI score, meaning that the features are better clustered. Qualitative results are shown in Figure 2, which visualizes the features $h _ { S }$ and $h _ { T }$ . It can be observed that ${ \cal L } _ { F M } + { \cal L } _ { S R }$ is able to learn more discriminative features, which also correlates with quantitative accuracy gains.
|
| 151 |
+
|
| 152 |
+
Transferability of representations: Following (Tian et al., 2020), this section aims to compare the representational power of the learned student’s representation $h _ { S }$ . To this end, we trained the student on CIFAR100, and then used it as a frozen feature extractor on top of which we train a linear classifier for 2 datasets: STL10 Coates et al. (2011) and CIFAR100. We compare the transfer ability of KD, CRD, $L _ { F M }$ , $L _ { S R }$ , and ${ \cal L } _ { F M } + { \cal L } _ { S R }$ . The superiority of the proposed losses over KD on STL is evident. Importantly, $L _ { S R }$ largely outperforms KD which confirms our analysis of Eqs. (5) and (6). The best results on STL are obtained by CRD. However, on CIFAR100, which is the target distillation dataset our method outperforms CRD.
|
| 153 |
+
|
| 154 |
+
# 5 COMPARISON WITH STATE-OF-THE-ART
|
| 155 |
+
|
| 156 |
+
We thoroughly evaluated the effectiveness of our method across multiple (a) network architectures (ResNet (He et al., 2016), Wide ResNet (Zagoruyko & Komodakis, 2016), MobileNetV2 (Sandler et al., 2018), MobileNet (Howard et al., 2017)) with different teacher-student capacities, (b) datasets (CIFAR10/100, ImageNet), and (c) domains (real-valued and binary networks). The training details for all experiments are provided in the appendix. We denote with ResNet-N a Residual Network with N convolutional layers (He et al., 2016). We denote with WRN-D- $k$ a WRN architecture with $D$ layers and an expansion rate of $k$ (Zagoruyko & Komodakis, 2017).
|
| 157 |
+
|
| 158 |
+
Table 4: Transferability of representations from CIFAR100 to STL-10 and CIFAR100 by freezing $f ^ { S }$ and training a linear classifier on top. Top 1 $( \% )$ accuracy is provided.
|
| 159 |
+
|
| 160 |
+
<table><tr><td>Student</td><td>Dataset</td><td>KD</td><td>CRD</td><td>LFM</td><td>LSR</td><td>LFM+LsR</td></tr><tr><td>WRN16-4</td><td>STL10</td><td>68.75</td><td>72.45</td><td>69.3</td><td>71.44</td><td>72.17</td></tr><tr><td>WRN16-4</td><td>CIFAR100</td><td>78.28</td><td>78.46</td><td>77.95</td><td>79.03</td><td>79.34</td></tr><tr><td>MobileNetV2</td><td>STL10</td><td>62.17</td><td>69.74</td><td>66.12</td><td>68.23</td><td>68.95</td></tr><tr><td>MobileNetV2</td><td>CIFAR100</td><td>69.17</td><td>70.68</td><td>70.66</td><td>71.00</td><td>71.63</td></tr></table>
|
| 161 |
+
|
| 162 |
+
Table 5: Top-1 accuracy $( \% )$ of various knowledge distillation methods on CIFAR-10.
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Student(Params)</td><td>Teacher(Params)</td><td>Student</td><td>KD AT</td><td>OFD</td><td>RKD</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-1 (0.18M)</td><td>WRN-16-2 (0.69M)</td><td>91.04</td><td>92.57 92.15</td><td>92.28</td><td>92.51</td><td>92.95</td><td>93.98</td></tr><tr><td>WRN-16-2 (0.69M)</td><td>WRN-40-2 (2.2M)</td><td>93.98</td><td>94.46 94.39</td><td>94.30</td><td>94.41</td><td>94.66</td><td>95.07</td></tr><tr><td>ResNet-8 (0.08M)</td><td>ResNet-26 (0.37M)</td><td>87.78</td><td>88.75 88.15</td><td>87.49</td><td>88.50</td><td>89.02</td><td>93.58</td></tr><tr><td>ResNet-14 (0.17M)</td><td>ResNet-26 (0.37M)</td><td>91.59</td><td>92.57 92.11</td><td>92.51</td><td>92.36</td><td>92.70</td><td>93.58</td></tr><tr><td>ResNet-18 (0.7M)</td><td>ResNet-34 (1.4M)</td><td>93.35</td><td>93.74 93.52</td><td>93.80</td><td>92.95</td><td>93.92</td><td>94.11</td></tr><tr><td>WRN-16-1 (0.18M)</td><td>ResNet-26 (0.37M)</td><td>91.04</td><td>92.42 91.32</td><td>92.47</td><td>92.08</td><td>92.94</td><td>93.58</td></tr></table>
|
| 165 |
+
|
| 166 |
+
For the above mentioned settings, we compare our method with KD (Hinton et al., 2015) and AT (Zagoruyko & Komodakis, 2017), and the more recent methods of OFD (Heo et al., 2019a), RKD (Park et al., 2019), CRD (Tian et al., 2020).
|
| 167 |
+
|
| 168 |
+
Overview of results: From our experiments, we conclude that our approach offers consistent gains across all of the above scenarios, outperforming all methods considered for all settings. Notably, our method is particularly effective for the most difficult datasets (i.e. CIFAR-100 and ImageNet).
|
| 169 |
+
|
| 170 |
+
# 5.1 CIFAR-10/100
|
| 171 |
+
|
| 172 |
+
For CIFAR-10, Top-1 performance of our method is shown in Table 5. We tested three cases representing different network architectures for student and teacher networks: the first two experiments are with WRNs. The following three experiments are with ResNets. In the last experiment, teacher and student have different network architectures. Overall, our method achieves the best results for all cases, with KD (Hinton et al., 2015) closely following.
|
| 173 |
+
|
| 174 |
+
For CIFAR-100 (Krizhevsky & Hinton, 2009), we experimented with several student-teacher network pairs using different structures. Experiments are grouped in three sets. The first shows performance for different teacher and student capacities using WRNs: poor student - good teacher (WRN-16-2; WRN-40-4), descent student - good teacher (WRN-10-10; WRN-16-10); good student - good teacher (WRN-16-4; WRN-40-4). In the second set, we show that these results hold when using a different architecture, ResNet in this case. The final set is designed to show performance when teacher and student have different architectures (MobileNetV2, ResNet and WRN).
|
| 175 |
+
|
| 176 |
+
Top-1 performance of our method is shown in Table 11. We observe that for almost all configurations, our method achieves consistent and significant accuracy gains over prior work. Furthermore, it is hard to tell which is the second best method as the remaining methods have their own advantages for different configurations. For WRN experiments, OFD ranks second. For ResNet and mixed structure experiments, CRD ranks second. More comparisons with other methods and results obtained by combining our method with KD and AT are provided in the supplementary material. Further improvements could be obtained by combining our method with others but this requires a comprehensive investigation which goes beyond the scope of this paper.
|
| 177 |
+
|
| 178 |
+
Table 6: Top-1 accuracy $( \% )$ of various knowledge distillation methods on CIFAR-100.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td>Student</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>WRN-40-4 (8.97M)</td><td>72.70</td><td>74.52</td><td>74.33</td><td>75.57</td><td>74.23</td><td>75.27</td><td>75.96</td><td>79.50</td></tr><tr><td>WRN-16-4 (2.77M)</td><td>WRN-40-4 (8.97M)</td><td>76.97</td><td>78.35</td><td>78.06</td><td>79.29</td><td>78.38</td><td>78.83</td><td>79.58</td><td>79.50</td></tr><tr><td>WRN-10-10 (7.49M)</td><td>WRN-16-10 (17.2M)</td><td>76.27</td><td>78.20</td><td>76.44</td><td>78.72</td><td>77.84</td><td>78.35</td><td>79.17</td><td>79.77</td></tr><tr><td>ResNet-10 (0.34M)</td><td>ResNet-34(1.39M)</td><td>68.42</td><td>69.18</td><td>68.49</td><td>68.94</td><td>68.70</td><td>70.24</td><td>69.91</td><td>72.05</td></tr><tr><td>ResNet-18 (0.75M)</td><td>ResNet-50 (1.99M)</td><td>71.07</td><td>73.41</td><td>71.90</td><td>72.79</td><td>70.93</td><td>73.23</td><td>73.47</td><td>73.31</td></tr><tr><td>ResNet-10 (4.95M)</td><td>ResNet-34 (21.33M)</td><td>75.01</td><td>77.35</td><td>76.87</td><td>77.35</td><td>77.46</td><td>77.37</td><td>77.90</td><td>78.44</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>ResNet-34 (21.33M)</td><td>72.70</td><td>73.95</td><td>72.32</td><td>74.78</td><td>73.91</td><td>74.88</td><td>75.38</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>ResNet-34 (21.33M)</td><td>68.42</td><td>69.36</td><td>68.60</td><td>69.45</td><td>68.75</td><td>71.36</td><td>71.58</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>WRN-40-4 (8.97M)</td><td>68.42</td><td>69.15</td><td>68.95</td><td>70.08</td><td>68.19</td><td>71.46</td><td>71.82</td><td>79.50</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 7: Comparison with state-of-the-art on ImageNet.
|
| 183 |
+
|
| 184 |
+
<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td></td><td>Student</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Teacher</td></tr><tr><td>ResNet18 (11.69M)</td><td>ResNet34 (21.80M)</td><td>Top-1 Top-5</td><td>70.04 89.48</td><td>70.68 90.16</td><td>70.59 89.73</td><td>71.08 90.07</td><td>71.34 90.37</td><td>71.17 90.13</td><td>71.73 90.60</td><td>73.31 91.42</td></tr><tr><td>MobileNet (4.23M))]</td><td>ResNet50 (25.56M)</td><td>Top-1 Top-5</td><td>70.13 89.49</td><td>70.68 90.30</td><td>70.72 90.03</td><td>71.25 90.34</td><td>71.32 90.62</td><td>71.40 90.42</td><td>72.49 90.92</td><td>76.16 92.86</td></tr></table>
|
| 185 |
+
|
| 186 |
+
# 5.2 IMAGENET-1K
|
| 187 |
+
|
| 188 |
+
Our experiments include two pairs of networks which are popular settings for ImageNet (Russakovsky et al., 2015). The first is distillation from ResNet-34 to ResNet-18 and the second one is distillation from ResNet-50 to MobileNet (Howard et al., 2017). Note that, following (Tian et al., 2020) on ImageNet, for KD, we set the weight for the KL loss to 0.9, the weight for cross-entropy loss to 0.5 which helps to obtain better accuracy.
|
| 189 |
+
|
| 190 |
+
Our results are presented in Table 7. Again, we observe that our method achieves significant improvements over all competing methods. Moreover, there is no method which is consistently second: for ResNet-34 to ResNet-18 experiment, RKD is the second best while for ResNet-50 to MobileNet, CRD is the second best. Notably, for the latter experiment, CRD reduces the gap between the teacher and the student by $1 . 2 7 \%$ , while our method narrows it by $2 . 3 6 \%$ . Overall, our results on ImageNet validate the scalability of our method, and show that, when applied to a large-scale dataset, we achieve an even more favourable performance compared against competing methods.
|
| 191 |
+
|
| 192 |
+
Table 8: Real-to-binary distillation results on CIFAR-100: a real-valued teacher ResNet-34 is used to distill a binary student. Real-to-binary distillation results on ImageNet-1K: a real-valued ResNet-18 is used to distill a binary student. OFD result might be suboptimal.
|
| 193 |
+
|
| 194 |
+
<table><tr><td>Dataset</td><td>Method</td><td>Binary</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Real</td></tr><tr><td>CIFAR-100</td><td>ResNet34</td><td>65.34</td><td>68.65</td><td>68.54</td><td>66.84</td><td>68.61</td><td>68.78</td><td>70.50</td><td>75.08</td></tr><tr><td>ImageNet-1K</td><td>ResNet18</td><td>56.70</td><td>57.39</td><td>58.45</td><td>55.74</td><td>58.84</td><td>58.25</td><td>59.57</td><td>70.20</td></tr></table>
|
| 195 |
+
|
| 196 |
+
# 5.3 BINARY NETWORKS DISTILLATION
|
| 197 |
+
|
| 198 |
+
Training highly accurate binary neural networks (i.e. the most extreme case of quantization) is a very challenging task (Rastegari et al., 2016; Bulat & Tzimiropoulos, 2019), and to this end, knowledge distillation appears to be a promising direction. In this section, we present results by applying distillation for the task of training binary student networks guided by real-valued teacher networks. The network architecture is kept the same for both the student and the teacher in this case: specifically we used a ResNet using the modifications described in (Bulat & Tzimiropoulos, 2019).
|
| 199 |
+
|
| 200 |
+
Table 8 presents our results. Again, we observe that our method outperforms all methods considerably, showing that it can effectively transfer knowledge between different domains. Note that it was not clear to us where to place the distillation position for OFD, so although we included our result for this method, we emphasize that this result might be suboptimal.
|
| 201 |
+
|
| 202 |
+
# 5.4 FACIAL LANDMARK DETECTION
|
| 203 |
+
|
| 204 |
+
Given a face image, the task is to localise a set of facial landmarks in terms of their (x,y) coordinates. This is often solved by using a CNN to directly regress the (x,y) coordinates of the facial landmarks. In order to show the suitability of our method for this problem, we use the WFLW Wu et al. (2018) dataset, which is one of the hardest benchmarks for this task. Performance is measured in terms of Normalised Mean Error (lower is better), which is the standard metric for the problem. In our experiment, we use a ResNet50 as the teacher and a ResNet8 as the student. The results, shown in Table 9, confirm the superior performance of our method when compared to other state-of-the-art methods.
|
| 205 |
+
|
| 206 |
+
Table 9: Facial landmark detection with ResNet50 as teacher and ResNet8 as student. KD is adapted by using an L2 loss instead of a KL loss to measure the discrepancy between the teach and student predictions.
|
| 207 |
+
|
| 208 |
+
<table><tr><td>Student(Params)</td><td>Teacher(Params)</td><td>1</td><td>Student</td><td>KD</td><td>RKD</td><td>PKT</td><td>LFM</td><td>AT</td><td>Ours</td><td>Teacher</td></tr><tr><td></td><td>ResNet8(7.25M) ResNet50(26.25M)</td><td>NME</td><td>7.43</td><td>7.32</td><td>6.94</td><td>7.09</td><td>7.14</td><td>6.96</td><td>6.81</td><td>6.38</td></tr></table>
|
| 209 |
+
|
| 210 |
+
# 6 CONCLUSION
|
| 211 |
+
|
| 212 |
+
We presented a method for knowledge distillation that optimizes the output feature of the penultimate layer of the student network and hence is directly related to representation learning. A key to our method is the newly proposed Softmax Regression Loss which was found necessary for effective representation learning. We showed that our method consistently outperforms other stateof-the-art distillation methods for a wide range of experimental settings including multiple network architectures (ResNet, Wide ResNet, MobileNet) with different teacher-student capacities, datasets (CIFAR10/100, ImageNet), and domains (real-valued and binary networks).
|
| 213 |
+
|
| 214 |
+
# REFERENCES
|
| 215 |
+
|
| 216 |
+
Sungsoo Ahn, Shell Xu Hu, Andreas Damianou, Neil D Lawrence, and Zhenwen Dai. Variational information distillation for knowledge transfer. In CVPR, 2019.
|
| 217 |
+
Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In ˇ KDD, 2006.
|
| 218 |
+
Adrian Bulat and Georgios Tzimiropoulos. XNOR-Net $^ { + + }$ : Improved binary neural networks. In BMVC, 2019.
|
| 219 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. ICML, 2020.
|
| 220 |
+
Jang Hyun Cho and Bharath Hariharan. On the efficacy of knowledge distillation. In ICCV, 2019.
|
| 221 |
+
Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In International conference on artificial intelligence and statistics, 2011.
|
| 222 |
+
Simon S Du and Jason D Lee. On the power of over-parametrization in neural networks with quadratic activation. In ICML, 2018.
|
| 223 |
+
Yushuo Guan, Pengyu Zhao, Bingxuan Wang, Yuanxing Zhang, Cong Yao, Kaigui Bian, and Jian Tang. Differentiable feature aggregation search for knowledge distillation. In ECCV, 2020.
|
| 224 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. ICLR, 2016.
|
| 225 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 226 |
+
|
| 227 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
|
| 228 |
+
|
| 229 |
+
Byeongho Heo, Jeesoo Kim, Sangdoo Yun, Hyojin Park, Nojun Kwak, and Jin Young Choi. A comprehensive overhaul of feature distillation. In ICCV, 2019a.
|
| 230 |
+
|
| 231 |
+
Byeongho Heo, Minsik Lee, Sangdoo Yun, and Jin Young Choi. Knowledge transfer via distillation of activation boundaries formed by hidden neurons. In AAAI, 2019b.
|
| 232 |
+
|
| 233 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015.
|
| 234 |
+
|
| 235 |
+
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:1704.04861, 2017.
|
| 236 |
+
|
| 237 |
+
Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017.
|
| 238 |
+
|
| 239 |
+
Zehao Huang and Naiyan Wang. Like what you like: Knowledge distill via neuron selectivity transfer. arXiv:1707.01219, 2017.
|
| 240 |
+
|
| 241 |
+
Himalaya Jain, Spyros Gidaris, Nikos Komodakis, Patrick Perez, and Matthieu Cord. QUEST: ´ Quantized embedding space for transferring knowledge. In ECCV, 2020.
|
| 242 |
+
|
| 243 |
+
Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In ICLR, 2020.
|
| 244 |
+
|
| 245 |
+
Jangho Kim, SeongUk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. In NeurIPS, 2018.
|
| 246 |
+
|
| 247 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 248 |
+
|
| 249 |
+
Vadim Lebedev and Victor Lempitsky. Fast convnets using group-wise brain damage. In CVPR, 2016.
|
| 250 |
+
|
| 251 |
+
Seung Hyun Lee, Dae Ha Kim, and Byung Cheol Song. Self-supervised knowledge distillation using singular value decomposition. In ECCV, 2018.
|
| 252 |
+
|
| 253 |
+
Changlin Li, Jiefeng Peng, Liuchun Yuan, Guangrun Wang, Xiaodan Liang, Liang Lin, and Xiaojun Chang. Block-wisely supervised neural architecture search with knowledge distillation. In CVPR, 2020a.
|
| 254 |
+
|
| 255 |
+
Xiaojie Li, Jianlong Wu, Hongyu Fang, Yue Liao, Fei Wang, and Chen Qian. Local correlation consistency for knowledge distillation. In ECCV, 2020b.
|
| 256 |
+
|
| 257 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. arXiv, 2018.
|
| 258 |
+
|
| 259 |
+
Yufan Liu, Jiajiong Cao, Bing Li, Chunfeng Yuan, Weiming Hu, Yangxi Li, and Yunqiang Duan. Knowledge distillation via instance relationship graph. In CVPR, 2019.
|
| 260 |
+
|
| 261 |
+
Christopher D Manning, Prabhakar Raghavan, and Hinrich Schutze. ¨ Introduction to information retrieval (chapter 16). Cambridge university press, 2008.
|
| 262 |
+
|
| 263 |
+
Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In CVPR, 2019.
|
| 264 |
+
|
| 265 |
+
Nikolaos Passalis, Maria Tzelepi, and Anastasios Tefas. Heterogeneous knowledge distillation using information flow modeling. In CVPR, 2020.
|
| 266 |
+
|
| 267 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 268 |
+
|
| 269 |
+
Baoyun Peng, Xiao Jin, Jiaheng Liu, Shunfeng Zhou, Yichao Wu, Yu Liu, Dongsheng Li, and Zhaoning Zhang. Correlation congruence for knowledge distillation. In ICCV, 2019.
|
| 270 |
+
|
| 271 |
+
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: ImageNet classification using binary convolutional neural networks. In ECCV, 2016.
|
| 272 |
+
|
| 273 |
+
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. ICLR, 2015.
|
| 274 |
+
|
| 275 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015.
|
| 276 |
+
|
| 277 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. MobileNetV2: Inverted residuals and linear bottlenecks. In CVPR, 2018.
|
| 278 |
+
|
| 279 |
+
Mahdi Soltanolkotabi, Adel Javanmard, and Jason D Lee. Theoretical insights into the optimization landscape of over-parameterized shallow neural networks. TIT, 2018.
|
| 280 |
+
|
| 281 |
+
Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive representation distillation. In ICLR, 2020.
|
| 282 |
+
|
| 283 |
+
Frederick Tung and Greg Mori. Similarity-preserving knowledge distillation. In ICCV, 2019.
|
| 284 |
+
|
| 285 |
+
Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In CVPR, 2016.
|
| 286 |
+
|
| 287 |
+
Wayne Wu, Chen Qian, Shuo Yang, Quan Wang, Yici Cai, and Qiang Zhou. Look at boundary: A boundary-aware face alignment algorithm. In CVPR, 2018.
|
| 288 |
+
|
| 289 |
+
Junho Yim, Donggyu Joo, Jihoon Bae, and Junmo Kim. A gift from knowledge distillation: Fast optimization, network minimization and transfer learning. In CVPR, 2017.
|
| 290 |
+
|
| 291 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016.
|
| 292 |
+
|
| 293 |
+
Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the perfor mance of convolutional neural networks via attention transfer. In ICLR, 2017.
|
| 294 |
+
|
| 295 |
+
Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. ICLR, 2017.
|
| 296 |
+
|
| 297 |
+
# A APPENDIX
|
| 298 |
+
|
| 299 |
+
# A.1 STUDY OF THE HYPER-PARAMETERS $\alpha$ AND $\beta$
|
| 300 |
+
|
| 301 |
+
We only performed a very basic search to find the best hyper-parameters. First, we fix $\alpha$ and search for the best $\beta$ . Then, we used the best $\beta$ , and search for the best $\alpha$ . This is sub-optimal compared to a full grid search over $\alpha$ and $\beta$ . Furthermore, after some preliminary experimentation, we considered only for 2 values: 1 and 5. Notably, we found that for all teacher-student pairs but (T:WRN40 4, S:MV2) alpha $^ { = 1 }$ is the optimal value. Furthermore, on ImageNet, the optimal values were $\alpha = 1$ , $\beta = 1$ for all teacher-student pairs considered.
|
| 302 |
+
|
| 303 |
+
# A.2 DATASETS AND TRAINING DETAILS
|
| 304 |
+
|
| 305 |
+
CIFAR-10 CIFAR-10 is a popular image classification dataset consisting of 50,000 training and 10,000 testing images equally distributed across 10 classes. All images are of resolution $3 2 \times 3 2 \mathrm { p x }$ . Following (Zagoruyko & Komodakis, 2017), during training, we randomly cropped and horizontally flipped the images. The ResNet models were trained for 350 epochs using SGD. The initial learning rate was set to 0.1, and then it was reduced by a factor of 10 at epochs 150, 250 and 320. Similarly, the WRN models were trained for 200 epochs with a learning rate of 0.1 that was subsequently reduced by 5 at epochs 60, 120 and 160. In all experiments, we set the dropout rate to 0.
|
| 306 |
+
|
| 307 |
+
For traditional KD (Hinton et al., 2015), we set $\alpha \ : = \ : 0 . 9$ and $T \ = \ 4$ . For AT (Zagoruyko & Komodakis, 2017), as in (Zagoruyko & Komodakis, 2017; Tung & Mori, 2019), we set the weight of distillation loss to 1000. We note that, in our experiments, the AT loss is added after each layer group for WRN and the last two groups for ResNet as in (Zagoruyko & Komodakis, 2017). Following OFD (Heo et al., 2019a), we set the weight of distillation loss to $1 0 ^ { - 3 }$ . For RKD (Park et al., 2019), we set $\beta _ { 1 } = 2 5$ for distance, and $\beta _ { 2 } = 5 0$ for angle, as described in (Park et al., 2019; Tian et al., 2020). We did not compare with CRD (Tian et al., 2020) on CIFAR-10 because, in our experiments, we found that their parameter setting (used in their paper for CIFAR-100 and ImageNet-1K) does not obtain good performance on CIFAR-10.
|
| 308 |
+
|
| 309 |
+
CIFAR-100 For CIFAR-100 (Krizhevsky & Hinton, 2009), we used a standard data augmentation scheme (Zagoruyko & Komodakis, 2017) including padding 4 pixels prior to random cropping and horizontal flipping. We used SGD with weight decay 5e-4 and momentum 0.9. Batch size was set to 128. Learning rate was set to 0.1; then decayed by 0.1 at epochs 100, 150, until training reached 200 epochs (Heo et al., 2019a).
|
| 310 |
+
|
| 311 |
+
ImageNet-1K Images are cropped to $2 2 4 \times 2 2 4$ pixels for both training and evaluation. We used SGD with Nesterov momentum 0.9, weight decay $1 e - 4$ , initial learning rate 0.2 which was then dropped by a factor of 10 every 30 epochs, training in total for 100 epochs (for CRD we trained with 10 more epochs as suggested by the authors). Batch size was set to 512. For simplicity and to enable a fair comparison, we used pretrained PyTorch models Paszke et al. (2017) as teacher networks Heo et al. (2019a); Tian et al. (2020). For binary experiments, we used Adam as the optimizer with initial learning 0.002 which was then reduced by a factor of 10 every 30 epochs, training in total for 100 epochs.
|
| 312 |
+
|
| 313 |
+
# A.3 ADDITIONAL ABLATION STUDIES
|
| 314 |
+
|
| 315 |
+
Different losses for $L _ { S R }$ : This part expands Section 4 of our paper by evaluating different losses for $L _ { S R }$ . The following loss functions are compared:
|
| 316 |
+
|
| 317 |
+
1. L2 loss: $L _ { S R - L 2 } ( p , q ) = \left\| p - q \right\| ^ { 2 }$ . This is the loss used in Section 4 of our paper
|
| 318 |
+
2. Cross Entropy loss (CE) with label $y$ $: L _ { S R - C E } ( q , y ) = \mathcal { H } ( q , y )$ .
|
| 319 |
+
3. KL loss with temperature $\tau$ Hinton et al. (2015): $L _ { S R - K L } ( p , q ) = K L ( q / \tau , p / \tau ) .$
|
| 320 |
+
|
| 321 |
+
The results, presented in Table 10, show that all loss functions offer significant improvement gains while $L _ { F M } + L _ { S R - L 2 }$ achieves the best accuracy. Therefore, in our paper, $L _ { S R - L 2 }$ is used in all cases.
|
| 322 |
+
|
| 323 |
+
Table 10: Evaluation of different loss functions for $L _ { S R }$ in terms of Top-1 accuracy on CIFAR-100.
|
| 324 |
+
|
| 325 |
+
<table><tr><td>Method</td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>Student: WRN-16-4</td><td>76.97</td><td>93.89</td></tr><tr><td>Teacher:WRN-40-4</td><td>79.50</td><td>94.57</td></tr><tr><td>LFM+LSR-L2</td><td>79.58</td><td>95.21</td></tr><tr><td>LFM+LSR-CE</td><td>78.80</td><td>95.13</td></tr><tr><td>LFM+LSR-KL</td><td>79.04</td><td>95.12</td></tr></table>
|
| 326 |
+
|
| 327 |
+
Combining our method with KD and AT: Table 11 shows additional comparisons on CIFAR100 by combining our method with AT Zagoruyko & Komodakis (2017) and KD Hinton et al. (2015), respectively. The results show that a straightforward combination did not provide satisfactory results, however it could be possible that a more comprehensive investigation might prove to be beneficial.
|
| 328 |
+
|
| 329 |
+
# A.4 ADDITIONAL COMPARISONS
|
| 330 |
+
|
| 331 |
+
This section provides additional comparisons using the evaluation framework of CRD Tian et al. (2020). Comparisons include distillation between models with the same architecture (e.g. ResNet56 to ResNet20) and between different architectures (e.g. ResNet50 to MobileNetV2). In order to maximize the fairness of the comparison, we followed their experimental setting. Thus, we did not choose the training parameters, teacher-student architecture pairs or methods to compare against. The competing methods included are:
|
| 332 |
+
|
| 333 |
+
Table 11: Top-1 accuracy $( \% )$ of combining our method with KD and AT on CIFAR-100.
|
| 334 |
+
|
| 335 |
+
<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td>Student</td><td>KD</td><td>AT</td><td>KD+Ours</td><td>AT+Ours</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>WRN-40-4 (8.97M)</td><td>72.70</td><td>74.52</td><td>74.33</td><td>74.97</td><td>75.01</td><td>75.96</td><td>79.50</td></tr><tr><td>WRN-16-4 (2.77M)</td><td>WRN-40-4 (8.97M)</td><td>76.97</td><td>78.35</td><td>78.06</td><td>79.00</td><td>79.09</td><td>79.58</td><td>79.50</td></tr><tr><td>WRN-10-10 (7.49M)</td><td>WRN-16-10 (17.2M)</td><td>76.27</td><td>78.20</td><td>76.44</td><td>78.84</td><td>77.79</td><td>79.17</td><td>79.77</td></tr><tr><td>ResNet-10 (0.34M)</td><td>ResNet-34 (1.39M)</td><td>68.42</td><td>69.18</td><td>68.49</td><td>70.41</td><td>69.41</td><td>69.91</td><td>72.05</td></tr><tr><td>ResNet-18 (0.75M)</td><td>ResNet-50 (1.99M)</td><td>71.07</td><td>73.41</td><td>71.90</td><td>73.46</td><td>73.17</td><td>73.47</td><td>72.83</td></tr><tr><td>ResNet-10 (4.95M)</td><td>ResNet-34 (21.33M)</td><td>75.01</td><td>77.35</td><td>76.87</td><td>77.64</td><td>77.48</td><td>77.90</td><td>78.44</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>ResNet-34 (21.33M)</td><td>72.70</td><td>73.95</td><td>72.32</td><td>74.90</td><td>74.71</td><td>75.38</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>ResNet-34(21.33M)</td><td>68.42</td><td>69.36</td><td>68.60</td><td>71.08</td><td>70.70</td><td>71.58</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>WRN-40-4 (8.97M)</td><td>68.42</td><td>69.15</td><td>68.95</td><td>70.85</td><td>70.63</td><td>71.82</td><td>79.50</td></tr></table>
|
| 336 |
+
|
| 337 |
+
• Classic: Knowledge Distillation (KD) Hinton et al. (2015), FitNet Romero et al. (2015), Attention Transfer (AT) Zagoruyko & Komodakis (2017).
|
| 338 |
+
Most recent: Similarity-Preserving KD (SP) (Tung & Mori, 2019), Correlation Congruence (CC) (Peng et al., 2019), Variational Information Distillation (VID) (Ahn et al., 2019), Relational Knowledge Distillation (RKD) (Park et al., 2019), Distillation of Activation Boundaries (AB) (Heo et al., 2019b), Factor Transfer (FT) (Kim et al., 2018), Flow of Solution (FSP) (Yim et al., 2017) and Contrastive Representation Distillation (CRD) (Tian et al., 2020).
|
| 339 |
+
|
| 340 |
+
Table 12: Distillation experiment with the same architectures (Tian et al., 2020): Top-1 accuracy $( \% )$ on CIFAR-100. The student models were trained with a teacher of the same architecture. We report average over 3 runs as in (Tian et al., 2020).
|
| 341 |
+
|
| 342 |
+
<table><tr><td>Teacher Student</td><td>wrn-40-2 wrn-16-2 75.61 73.26</td><td>wrn-40-2 wrn-40-1 75.61 71.98</td><td>resnet56 resnet20 72.34 69.06</td><td>resnet110 resnet20 74.31 69.06</td><td>resnet110 resnet32 74.31 71.14</td><td>resnet32x4 resnet8x4 79.42 72.50</td><td>vgg13 vgg8 74.64 70.36</td></tr><tr><td>KD</td><td>74.92</td><td>73.54</td><td>70.66</td><td>70.67</td><td>73.08</td><td>73.33</td><td>72.98</td></tr><tr><td>FitNet</td><td>73.58</td><td>72.24</td><td>69.21</td><td>68.99</td><td>71.06</td><td>73.50</td><td>71.02</td></tr><tr><td>AT</td><td>74.08</td><td>72.77</td><td>70.55</td><td>70.22</td><td>72.31</td><td>73.44</td><td>71.43</td></tr><tr><td>SP</td><td>73.83</td><td>72.43</td><td>69.67</td><td>70.04</td><td>72.69</td><td>72.94</td><td>72.68</td></tr><tr><td>CC</td><td>73.56</td><td>72.21</td><td>69.63</td><td>69.48</td><td>71.48</td><td>72.97</td><td>70.71</td></tr><tr><td>VID</td><td>74.11</td><td>73.30</td><td>70.38</td><td>70.16</td><td>72.61</td><td>73.09</td><td>71.23</td></tr><tr><td>RKD</td><td>73.35</td><td>72.22</td><td>69.61</td><td>69.25</td><td>71.82</td><td>71.90</td><td>71.48</td></tr><tr><td>PKT</td><td>74.54</td><td>73.45</td><td>70.34</td><td>70.25</td><td>72.61</td><td>73.64</td><td>72.88</td></tr><tr><td>AB</td><td>72.50</td><td>72.38</td><td>69.47</td><td>69.53</td><td>70.98</td><td>73.17</td><td>70.94</td></tr><tr><td>FT</td><td>73.25</td><td>71.59</td><td>69.84</td><td>70.22</td><td>72.37</td><td>72.86</td><td>70.58</td></tr><tr><td>FSP</td><td>72.91</td><td>0.00</td><td>69.95</td><td>70.11</td><td>71.89</td><td>72.62</td><td>70.23</td></tr><tr><td>NST</td><td>73.68</td><td>72.24</td><td>69.60</td><td>69.53</td><td>71.96</td><td>73.30</td><td>71.53</td></tr><tr><td>CRD</td><td>75.48</td><td>74.14</td><td>71.16</td><td>71.46</td><td>73.48</td><td>75.51</td><td>73.94</td></tr><tr><td>Ours</td><td>75.96</td><td>74.75</td><td>71.44</td><td>71.51</td><td>73.80</td><td>75.92</td><td>74.40</td></tr></table>
|
| 343 |
+
|
| 344 |
+
Table 13: Distillation experiment with different architectures (Tian et al., 2020): Top-1 accuracy $( \% )$ on CIFAR-100. The student models were trained with a teacher of different architecture. We report average over 3 runs as in (Tian et al., 2020).
|
| 345 |
+
|
| 346 |
+
<table><tr><td>Teacher</td><td>vgg13 MobileNetV2 74.64</td><td>ResNet50 MobileNetV2 79.34</td><td>ResNet50 vgg8 79.34</td><td>resnet32x4 ShuffleNetV1 79.42</td><td>resnet32x4 ShuffleNetV2 79.42</td><td>wrn-40-2 ShuffleNetV1 75.61</td></tr><tr><td>Student</td><td>64.60</td><td>64.60 67.35</td><td>70.36 73.81</td><td>70.50 74.07</td><td>71.82 74.45</td><td>70.50 74.83</td></tr><tr><td>KD FitNet</td><td>67.37 64.14</td><td>63.16</td><td>70.69</td><td>73.59</td><td>73.54</td><td>73.73</td></tr><tr><td>AT</td><td>59.40</td><td>58.58</td><td>71.84</td><td>71.73</td><td>72.73</td><td>73.32</td></tr><tr><td>SP</td><td>66.30</td><td>68.08</td><td>73.34</td><td>73.48</td><td>74.56</td><td>74.52</td></tr><tr><td>CC</td><td>64.86</td><td>65.43</td><td>70.25</td><td>71.14</td><td>71.29</td><td>71.38</td></tr><tr><td>VID</td><td>65.56</td><td>67.57</td><td>70.30</td><td>73.38</td><td>73.40</td><td>73.61</td></tr><tr><td>RKD</td><td>64.52</td><td>64.43</td><td>71.50</td><td>72.28</td><td>73.21</td><td>72.21</td></tr><tr><td>PKT</td><td>67.13</td><td>66.52</td><td>73.01</td><td>74.10</td><td>74.69</td><td>73.89</td></tr><tr><td>AB</td><td>66.06</td><td>67.20</td><td>70.65</td><td>73.55</td><td>74.31</td><td>73.34</td></tr><tr><td>FT</td><td>61.78</td><td>60.99</td><td>70.29</td><td>71.75</td><td>72.50</td><td>72.03</td></tr><tr><td>NST</td><td>58.16</td><td>64.96</td><td>71.28</td><td>74.12</td><td>74.68</td><td>74.89</td></tr><tr><td>CRD</td><td>69.73</td><td>69.11</td><td>74.30</td><td>75.11</td><td>75.65</td><td>76.05</td></tr><tr><td>Ours</td><td>69.14</td><td>69.45</td><td>74.46</td><td>75.66</td><td>76.40</td><td>76.61</td></tr></table>
|
parse/train/ZzwDy_wiWv/ZzwDy_wiWv_content_list.json
ADDED
|
@@ -0,0 +1,1694 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "KNOWLEDGE DISTILLATION VIA SOFTMAX REGRESSION REPRESENTATION LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
101,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jing Yang \nUniversity of Nottingham \nNottingham, UK \njing.yang2@nottingham.ac.uk \nBrais Marinez \nSamsung AI Center \nCambridge, UK \nbrais.mart@gmail.com \nAdrian Bulat \nSamsung AI Center \nCambridge, UK \nadrian@adrianbulat.com, \nGeorgios Tzimiropoulos \nSamsung AI Center \nCambridge, UK \nQueen Mary University of London \nLondon, UK \ng.tzimiropoulos@qmul.ac.uk ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
449,
|
| 21 |
+
226
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
614,
|
| 30 |
+
170,
|
| 31 |
+
813,
|
| 32 |
+
226
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
247,
|
| 42 |
+
406,
|
| 43 |
+
303
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "",
|
| 50 |
+
"bbox": [
|
| 51 |
+
491,
|
| 52 |
+
247,
|
| 53 |
+
750,
|
| 54 |
+
330
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
367,
|
| 65 |
+
544,
|
| 66 |
+
382
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "This paper addresses the problem of model compression via knowledge distillation. We advocate for a method that optimizes the output feature of the penultimate layer of the student network and hence is directly related to representation learning. To this end, we firstly propose a direct feature matching approach which focuses on optimizing the student’s penultimate layer only. Secondly and more importantly, because feature matching does not take into account the classification problem at hand, we propose a second approach that decouples representation learning and classification and utilizes the teacher’s pre-trained classifier to train the student’s penultimate layer feature. In particular, for the same input image, we wish the teacher’s and student’s feature to produce the same output when passed through the teacher’s classifier, which is achieved with a simple $L _ { 2 }$ loss. Our method is extremely simple to implement and straightforward to train and is shown to consistently outperform previous state-of-the-art methods over a large set of experimental settings including different (a) network architectures, (b) teacher-student capacities, (c) datasets, and (d) domains. The code is available at https://github.com/jingyang2017/KD_SRRL. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
400,
|
| 76 |
+
764,
|
| 77 |
+
621
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
648,
|
| 88 |
+
336,
|
| 89 |
+
664
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Recently, there has been a great amount of research effort to make Convolutional Neural Networks (CNNs) lightweight so that they can be deployed in devices with limited resources. To this end, several approaches for model compression have been proposed, including network pruning (Han et al., 2016; Lebedev & Lempitsky, 2016), network quantization (Rastegari et al., 2016; Wu et al., 2016), knowledge transfer/distillation (Hinton et al., 2015; Zagoruyko & Komodakis, 2017), and neural architecture search (Zoph & Le, 2017; Liu et al., 2018). Knowledge distillation (Bucilua et al., ˇ 2006; Hinton et al., 2015) aims to transfer knowledge from one network (the so-called “teacher”) to another (the so-called “student”). Typically, the teacher is a high-capacity model capable of achieving high accuracy, while the student is a compact model with much fewer parameters, thus also requiring much less computation. The goal of knowledge distillation is to use the teacher to improve the training of the student and push its accuracy closer to that of the teacher. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
681,
|
| 99 |
+
825,
|
| 100 |
+
833
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The rationale behind knowledge distillation can be explained from an optimization perspective: there is evidence that high capacity models (i.e. the teacher) can find good local minima due to over-parameterization (Du & Lee, 2018; Soltanolkotabi et al., 2018). In knowledge distillation, such models are used to facilitate the optimization of lower capacity models (i.e. the student) during training. For example, in the seminal work of (Hinton et al., 2015), the softmax outputs of the teacher provide extra supervisory signals of inter-class similarities which facilitate the training of the student. In other influential works, intermediate representations extracted from the teacher such as feature tensors (Romero et al., 2015) or attention maps (Zagoruyko & Komodakis, 2017) have been used to define auxiliary loss functions used in the optimization of the student. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
840,
|
| 110 |
+
823,
|
| 111 |
+
922
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/60b4a02c23326bdf1e9c5923ad7cf0931787c8865d068a3bcf6e90a28a55ffc3.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Our method performs knowledge distillation by minimizing the discrepancy between the penultimate feature representations $h _ { T }$ and $h _ { S }$ of the teacher and the student, respectively. To this end, we propose to use two losses: (a) the Feature Matching loss $L _ { F M }$ , and (b) the so-called Softmax Regression loss $L _ { S R }$ . In contrary to $L _ { F M }$ , our main contribution, $L _ { S R }$ , is designed to take into account the classification task at hand. To this end, $L _ { S R }$ imposes that for the same input image, the teacher’s and student’s feature produce the same output when passed through the teacher’s pre-trained and frozen classifier. Note that, for simplicity, the function for making the feature dimensionality of $h _ { T }$ and $h _ { S }$ the same is not shown. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
196,
|
| 124 |
+
104,
|
| 125 |
+
787,
|
| 126 |
+
281
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
176,
|
| 135 |
+
439,
|
| 136 |
+
821,
|
| 137 |
+
482
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Training a network whose output feature representation is rich and powerful has been shown crucial for achieving high accuracy for the subsequent classification task in recent works in both unsupervised and supervised learning, see for example (Chen et al., 2020; He et al., 2020) and (Kang et al., 2020). Hence, in this paper, we are advocating for representation learning-based knowledge distillation by optimizing the student’s penultimate layer output feature. If we are able to do this effectively, we expect (and show experimentally) to end up with a student network which can generalize better than one trained with logit matching as in the KD paper of (Hinton et al., 2015). ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
489,
|
| 147 |
+
825,
|
| 148 |
+
587
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Main contributions: To accomplish the aforementioned goal we propose two loss functions: The first loss function, akin to (Romero et al., 2015; Zagoruyko & Komodakis, 2017), is based on direct feature matching but focuses on optimizing the student’s penultimate layer feature only. Because direct feature matching might be difficult due to the lower representation capacity of the student and, more importantly, is detached from the classification task at hand, we also propose a second loss function: we propose to decouple representation learning and classification and utilize the teacher’s pre-trained classifier to train the student’s penultimate layer feature. In particular, for the same input image, we wish the teacher’s and student’s feature to produce the same output when passed through the teacher’s classifier, which is achieved with a simple $L _ { 2 }$ loss (see Fig. 1). This softmax regression projection is used to retain from the student’s feature the information that is relevant to classification, but since the projection matrix is pre-trained (learned during the teacher’s training phase) this does not compromise the representational power of the student’s feature. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
593,
|
| 158 |
+
825,
|
| 159 |
+
760
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "Main results: Our method has two advantages: (1) It is simple and straightforward to implement. (2) It consistently outperforms state-of-the-art methods over a large set of experimental settings including different (a) network architectures (WideResNets, ResNets, MobileNets), (b) teacherstudent capacities, (c) datasets (CIFAR-10/100, ImageNet), and (d) domains (real-to-binary). ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
767,
|
| 169 |
+
823,
|
| 170 |
+
823
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 RELATED WORK ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
176,
|
| 180 |
+
847,
|
| 181 |
+
344,
|
| 182 |
+
863
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Knowledge transfer: In the work of (Hinton et al., 2015), knowledge is defined as the teacher’s outputs after the final softmax layer. The softmax outputs carry richer information than one-hot labels because they provide extra supervision signals in terms of the inter-class similarities learned by the teacher. In a similar fashion to (Hinton et al., 2015), intermediate representations extracted from the teacher such as feature tensors (Romero et al., 2015) or attention maps (Zagoruyko & Komodakis, 2017) have been used to define loss functions used to facilitate the optimization of the student. Trying to match the whole feature tensor, as in FitNets (Romero et al., 2015), is hard and, in certain circumstances, such an approach may adversely affect the performance and convergence of the student. To relax the assumption of FitNet, Attention Transfer (AT) was proposed in (Zagoruyko & Komodakis, 2017) where knowledge takes the form of attention maps which are summaries of the energies of the feature tensors over the channel dimension. An extension of (Zagoruyko & Komodakis, 2017) using Maximum Mean Discrepancy of the network activations as a loss term for distillation was proposed in (Huang & Wang, 2017). Cho & Hariharan (2019) showed that very accurate networks are “too good” to be good teachers and proposed to mitigate this with early stopping of the teacher’s training. Recently, the work of (Heo et al., 2019a) studied the location within the network at which feature distillation should be applied and proposed margin ReLU and a specifically designed distance function that transfers only the useful (positive) information from the teacher to the student. More recently, Li et al. (Li et al., 2020a) proposed to supervise the blockwise architecture search by the architecture knowledge distilled from a teacher model. Another NAS based method was proposed in (Guan et al., 2020), in which a student-to-teacher loss is used to find the aggregation weights that match the learning ability of the student. Passalis et al. (2020) claimed that traditional KD ignores information plasticity during the training process, and proposed to model the information flow through the various layers of the teacher. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
882,
|
| 192 |
+
823,
|
| 193 |
+
924
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
103,
|
| 203 |
+
825,
|
| 204 |
+
381
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Feature relationship transfer: Another line of knowledge distillation methods focus on exploring transferring the relationship between features, rather than the actual features themselves. In (Yim et al., 2017), feature correlations are captured by computing the Gram matrix of features across layers for both teacher and student and then applying an $L _ { 2 }$ loss on pairs of teacher-student Gram matrices. The limitation of this work is the high computational cost, which is addressed to some extent in (Lee et al., 2018) by compressing the feature maps by singular value decomposition. Park et al. (2019) proposed a relational knowledge distillation method which computes distance-wise and angle-wise relations of each embedded feature vector. This idea is further explored in (Peng et al., 2019) and (Liu et al., 2019). In (Peng et al., 2019), Taylor series expansion is proposed to better capture the correlation between multiple instances. In (Liu et al., 2019), the instance feature and relationships are considered as vertexes and edges respectively in a graph and instance relationship graph is proposed to model the feature space transformation across layers. Inspired by the observation that semantically similar inputs should have similar activation patterns, (Tung & Mori, 2019) proposed a similarity-preserving knowledge distillation method which guides the student to mimic the teacher with respect to generating similar or dissimilar activations. More recently, (Jain et al., 2020) proposed to matching the student output with the teacher’s by distilling the knowledge through a quantized visual words space. Li et al. (2020b) proposed the local correlation exploration framework to represent the relationships of local regions in the feature space which contains more details and discriminative patterns. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
387,
|
| 214 |
+
825,
|
| 215 |
+
651
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Finally, a similar connection between distillation and representation learning was very recently made in (Tian et al., 2020) which uses contrastive learning for knowledge distillation. We note that our loss is not related to the one used in (Tian et al., 2020), is simpler, and as shown in Section 5, outperforms it for all of our experiments, often by a significant margin. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
659,
|
| 225 |
+
825,
|
| 226 |
+
714
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "3 METHOD ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
748,
|
| 237 |
+
281,
|
| 238 |
+
765
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "We denote by $T$ and $S$ the teacher and student networks respectively. We split these networks into two parts: (i) A convolutional feature extractor $f _ { N e t } , N e t = \\{ T , S \\}$ , the output of which at the $i$ -th layer is a feature tensor $F _ { N e t } ^ { i } \\in \\mathbb { R } ^ { C _ { N e t } ^ { i } \\times H ^ { i } \\times W ^ { i } }$ , where $C _ { N e t } ^ { i }$ is the output feature dimensionality, and $H ^ { i } , W ^ { i }$ the output spatial dimensions. We also denote by $\\begin{array} { r } { h _ { N e t } = \\sum _ { h = 1 } ^ { { H } ^ { L } } \\sum _ { w = 1 } ^ { { W } ^ { L } } F _ { N e t } ^ { L } \\in \\mathbb { R } ^ { C _ { N e t } ^ { L } } } \\end{array}$ the last layer feature representation learned by $f _ { N e t }$ . (ii) A projection matrix $W _ { N e t } \\in \\mathbb { R } ^ { C _ { N e t } ^ { L } \\times K }$ which projects the feature representation $h _ { N e t }$ into $K$ class logits $z _ { N e t } ^ { i } , i = 1 , \\dots , K$ , followed by the softmax function $\\begin{array} { r } { s ( z _ { N e t } ^ { i } ) = \\frac { \\exp ( z _ { N e t } ^ { i } / \\tau ) } { \\sum _ { j } \\exp ( z _ { N e t } ^ { j } / \\tau ) } } \\end{array}$ with temperature $\\tau$ $\\mathit { \\Pi } _ { \\tau } = 1$ for Cross Entropy loss) which put together form a softmax regression classifier into $K$ classes. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
787,
|
| 248 |
+
825,
|
| 249 |
+
924
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Knowledge Distillation (KD) (Hinton et al., 2015) trains the student with the following loss: ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
171,
|
| 258 |
+
102,
|
| 259 |
+
776,
|
| 260 |
+
118
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 3
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/885f60af07cfb42db01ce6ecbe803233a1da74455bc9b3ce245c0dc8fc44a761.jpg",
|
| 267 |
+
"text": "$$\nL _ { K D } = - \\sum _ { k = 1 } ^ { K } s ( z _ { T } ^ { k } ) \\log s ( z _ { S } ^ { k } ) ,\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
393,
|
| 271 |
+
123,
|
| 272 |
+
602,
|
| 273 |
+
167
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 3
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "so that the discrepancy between the teacher’s and student’s classifiers is directly minimized. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
171,
|
| 282 |
+
172,
|
| 283 |
+
772,
|
| 284 |
+
186
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "FitNets (Romero et al., 2015) match intermediate feature representations. For the $i$ -th layer, the following loss is defined: ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
176,
|
| 293 |
+
193,
|
| 294 |
+
823,
|
| 295 |
+
220
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "equation",
|
| 301 |
+
"img_path": "images/07f570ac1bd090b572a4ac64292241810499c1b7f14b4cc8216b8e90417cb760.jpg",
|
| 302 |
+
"text": "$$\nL _ { F i t } = \\left\\| F _ { T } ^ { i } - r ( F _ { S } ^ { i } ) \\right\\| ^ { 2 } ,\n$$",
|
| 303 |
+
"text_format": "latex",
|
| 304 |
+
"bbox": [
|
| 305 |
+
413,
|
| 306 |
+
219,
|
| 307 |
+
583,
|
| 308 |
+
242
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "where $r ( . )$ is a function for matching the feature tensor dimensions. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
174,
|
| 317 |
+
244,
|
| 318 |
+
616,
|
| 319 |
+
260
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "In our work, we propose to minimize the discrepancy between the representations $h _ { T }$ and $h _ { S }$ . To accomplish this goal, we propose to use two losses. The first one is an $L _ { 2 }$ feature matching loss: ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
173,
|
| 328 |
+
266,
|
| 329 |
+
825,
|
| 330 |
+
295
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "equation",
|
| 336 |
+
"img_path": "images/dde36850b2bbd61d2af01b073b1e8cd8bb9b3693356302de3767a2b95b237b12.jpg",
|
| 337 |
+
"text": "$$\nL _ { F M } = \\left\\| h _ { T } - h _ { S } \\right\\| ^ { 2 } ,\n$$",
|
| 338 |
+
"text_format": "latex",
|
| 339 |
+
"bbox": [
|
| 340 |
+
423,
|
| 341 |
+
299,
|
| 342 |
+
573,
|
| 343 |
+
319
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "where for notational simplicity we dropped the dependency on $r ( . )$ . Hence, $L _ { F M }$ loss is a simplified FitNet loss which focuses only on the final representation learned. The intuition for this is that this feature is directly connected to the classifier and hence imposing the student’s feature to be similar to that of the teacher could have more impact on classification accuracy. Moreover, it might be questionable why one should optimize for other intermediate representations as in (Romero et al., 2015) especially when the student is a network of lower representational capacity. In Section 4: Where should the losses be applied?, we confirm that $L _ { F M }$ alone has a positive impact but feature matching in other layers is not helpful. ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
173,
|
| 352 |
+
324,
|
| 353 |
+
825,
|
| 354 |
+
436
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "We found $L _ { F M }$ to be effective but only to limited extent. One disadvantage of $L _ { F M }$ and, in general, of all feature matching losses e.g. (Romero et al., 2015; Zagoruyko & Komodakis, 2017), is that it treats each channel dimension in the feature space independently, and ignores the inter-channel dependencies of the feature representations $h _ { S }$ and $h _ { T }$ for the final classification. This is in contrast to the original logit matching loss proposed by Hinton et al. in (Hinton et al., 2015) which directly targets classification accuracy. To alleviate the aforementioned problem, in this work, we propose a second loss for optimizing $h _ { S }$ which is directly linked with classification accuracy. To this end, we will use the teacher’s pre-trained Softmax Regression (SR) classifier. ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
441,
|
| 364 |
+
825,
|
| 365 |
+
554
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Let us denote by $p$ the output of the teacher network when fed with some input image $x$ . Let us also feed the same image through the student network to obtain feature $h _ { S } ( x )$ . Finally let us pass $h _ { S } ( x )$ through the teacher’s SR classifier to obtain output $q$ . See also Fig. 1. Our loss is defined as: ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
173,
|
| 374 |
+
560,
|
| 375 |
+
825,
|
| 376 |
+
603
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "equation",
|
| 382 |
+
"img_path": "images/7347e09d1c5a0126ab5ac5d63f7edcc429acb5331e8335b85b5e2b802b1e39cd.jpg",
|
| 383 |
+
"text": "$$\nL _ { S R } = - p \\log q .\n$$",
|
| 384 |
+
"text_format": "latex",
|
| 385 |
+
"bbox": [
|
| 386 |
+
441,
|
| 387 |
+
609,
|
| 388 |
+
557,
|
| 389 |
+
626
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "At this point, we make the following two observations: (1) If $p = q$ (and since the teacher’s classifier is frozen), then this implies that $\\bar { h _ { S } } ( x ) = h _ { T } ( x )$ which shows that indeed Eq. (4) optimizes the student’s feature representation $h _ { S }$ ( $h _ { T }$ is also frozen). (2) The loss of Eq.(4) can be written as: ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
631,
|
| 399 |
+
825,
|
| 400 |
+
674
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "equation",
|
| 406 |
+
"img_path": "images/e13ecc1ef95814038833da14ee0db93728cb9d6cd860366f85ebb5672a79ef3a.jpg",
|
| 407 |
+
"text": "$$\n\\begin{array} { r } { L _ { S R } = - s ( W _ { T } ^ { \\prime } h _ { T } ) \\log s ( W _ { T } ^ { \\prime } h _ { S } ) . } \\end{array}\n$$",
|
| 408 |
+
"text_format": "latex",
|
| 409 |
+
"bbox": [
|
| 410 |
+
383,
|
| 411 |
+
679,
|
| 412 |
+
614,
|
| 413 |
+
696
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "Now let us now write KD loss in a similar way: ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
702,
|
| 423 |
+
485,
|
| 424 |
+
717
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "equation",
|
| 430 |
+
"img_path": "images/4c5445e74dfd16dfabfb9b5f592751432ddb6e3bab6d4be8d8c01998af7488e8.jpg",
|
| 431 |
+
"text": "$$\n\\begin{array} { r } { L _ { K D } = - s ( W _ { T } ^ { \\prime } h _ { T } ) \\log s ( W _ { s } ^ { \\prime } h _ { S } ) . } \\end{array}\n$$",
|
| 432 |
+
"text_format": "latex",
|
| 433 |
+
"bbox": [
|
| 434 |
+
383,
|
| 435 |
+
722,
|
| 436 |
+
614,
|
| 437 |
+
739
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "By comparing Eq. (5) with Eq. (6), we see that the only difference in our method is that the frozen, pre-trained teacher’s classifier is used for both teacher and the student. On the contrary, in KD, $W _ { S }$ is also optimized. This gives more degrees of freedom to the optimization algorithm, in particular, to adjust the weights of both the student’s feature extractor $f _ { S }$ and the student’s classifier $W _ { S }$ in order to minimize the loss. This has an impact on the learning of the student’s feature representation $h _ { S }$ which, in turn, hinders the generalization capability of the student on the test set. We confirm this hypothesis with the experiment of Section 4: Transferability of representations. ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
173,
|
| 446 |
+
744,
|
| 447 |
+
825,
|
| 448 |
+
843
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Finally, we note that we found that, in practice, an $L _ { 2 }$ loss between the logits: ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
176,
|
| 457 |
+
849,
|
| 458 |
+
683,
|
| 459 |
+
864
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "equation",
|
| 465 |
+
"img_path": "images/bccddf51c45a2b059355e9eb98733930b6e958568b1588f3bee66d70caef91a6.jpg",
|
| 466 |
+
"text": "$$\nL _ { K D } = \\left\\| \\boldsymbol { W _ { T } ^ { \\prime } } \\boldsymbol { h _ { T } } - \\boldsymbol { W _ { T } ^ { \\prime } } \\boldsymbol { h _ { S } } \\right\\| ^ { 2 } = \\left\\| \\boldsymbol { h _ { T } } - \\boldsymbol { h _ { S } } \\right\\| _ { W _ { T } } ^ { 2 } ,\n$$",
|
| 467 |
+
"text_format": "latex",
|
| 468 |
+
"bbox": [
|
| 469 |
+
339,
|
| 470 |
+
869,
|
| 471 |
+
656,
|
| 472 |
+
892
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "works slightly better than the cross-entropy loss. The comparison between different types of losses for $L _ { S R }$ is given in the appendix. ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
174,
|
| 481 |
+
895,
|
| 482 |
+
823,
|
| 483 |
+
924
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "table",
|
| 489 |
+
"img_path": "images/a99681133514e9fe15a956063a4f10e10b8e2754bab8a56a75a213cadf12015f.jpg",
|
| 490 |
+
"table_caption": [
|
| 491 |
+
"Table 1: Effect of proposed losses ( ${ \\cal L } _ { F M }$ and $L _ { S R }$ ) and position of distillation on the test set of CIFAR-100. "
|
| 492 |
+
],
|
| 493 |
+
"table_footnote": [],
|
| 494 |
+
"table_body": "<table><tr><td>Method</td><td>Layer</td><td>Top-1 (%)</td><td>Top-5 (%)</td></tr><tr><td colspan=\"2\">Student (WRN-16-4)</td><td>76.97</td><td>93.89</td></tr><tr><td colspan=\"2\">Teacher (WRN-40-4) LFM</td><td>79.50 78.05</td><td>94.57 94.45</td></tr><tr><td>LSR</td><td>conv4 conv4</td><td>79.10</td><td>94.99</td></tr><tr><td>LFM+LSR</td><td>conv4</td><td>79.58</td><td>95.21</td></tr><tr><td>LFM+LsR</td><td>conv2</td><td>77.03</td><td>93.94</td></tr><tr><td>LFM+LsR</td><td>conv3</td><td>77.34</td><td>94.22</td></tr><tr><td></td><td>conv2+3+4</td><td></td><td></td></tr><tr><td>LFM+LsR</td><td></td><td>79.43</td><td>94.80</td></tr></table>",
|
| 495 |
+
"bbox": [
|
| 496 |
+
313,
|
| 497 |
+
143,
|
| 498 |
+
683,
|
| 499 |
+
273
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Overall, in our method, we train the student network using three losses: ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
173,
|
| 508 |
+
290,
|
| 509 |
+
640,
|
| 510 |
+
304
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "equation",
|
| 516 |
+
"img_path": "images/2c4fc57121bedb6273d32a766f9e2cc5a0ddadffcfa08bee9a0c8cb2206e56cb.jpg",
|
| 517 |
+
"text": "$$\n{ \\cal L } = { \\cal L } _ { C E } + \\alpha { \\cal L } _ { F M } + \\beta { \\cal L } _ { S R } ,\n$$",
|
| 518 |
+
"text_format": "latex",
|
| 519 |
+
"bbox": [
|
| 520 |
+
398,
|
| 521 |
+
311,
|
| 522 |
+
598,
|
| 523 |
+
327
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "where $\\alpha$ and $\\beta$ are the weights used to scale the losses. The teacher network is pretrained and fixed during training the student. $L _ { C E }$ is the standard loss based on ground truth labels for the task in hand (e.g. cross-entropy loss for image classification). Note that this results in a very simple algorithm for training the student, summarized in Algorithm 1. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
333,
|
| 533 |
+
823,
|
| 534 |
+
390
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 4
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Algorithm 1 Knowledge distillation via Softmax Regression Representation Learning ",
|
| 541 |
+
"text_level": 1,
|
| 542 |
+
"bbox": [
|
| 543 |
+
179,
|
| 544 |
+
404,
|
| 545 |
+
741,
|
| 546 |
+
420
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Input: Teacher network $T$ , Student network $S$ , input image x, ground truth label $y$ , weights $\\alpha$ , $\\beta$ . 1. Input $\\mathbf { x }$ to $S$ to obtain feature $h _ { S }$ and class prediction $\\hat { y }$ . Calculate cross entropy loss $\\boldsymbol { L _ { C E } } = \\mathcal { H } ( \\boldsymbol { \\hat { y } } , \\boldsymbol { y } )$ ; 2. Input $\\mathbf { x }$ to $T$ to obtain feature $h _ { T }$ . Calculate distillation losses from Eqs. (3) and (7); 3. Update $S$ by optimizing Eq. (8) ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
186,
|
| 555 |
+
421,
|
| 556 |
+
825,
|
| 557 |
+
496
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "Output: the updated $S$ ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
189,
|
| 566 |
+
497,
|
| 567 |
+
348,
|
| 568 |
+
511
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "4 ABLATION STUDIES ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
176,
|
| 578 |
+
550,
|
| 579 |
+
372,
|
| 580 |
+
566
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "We conducted a set of ablation studies on CIFAR-100 (see Section 5.1) using a Wide ResNet (WRN) for both teacher (WRN-40-4) and student (WRN-16-4) (for network definitions, see Section 5). ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
582,
|
| 590 |
+
823,
|
| 591 |
+
611
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Are both $L _ { F M }$ and $L _ { S R }$ useful? To answer this question, we ran 3 experiments: using $L _ { F M }$ alone, $L _ { S R }$ alone, and combining them together ${ \\cal L } _ { F M } + { \\cal L } _ { S R }$ . The results of Table 1 (first 3 rows) clearly show that all proposed variants offer significant gains: when using $L _ { F M }$ and $L _ { S R }$ alone, $\\sim 1 \\%$ and $\\sim 2 \\%$ improvements in Top-1 accuracy were obtained. Moreover, when combining them together, an additional $\\sim 0 . 4 \\%$ improvement was gained. Importantly, the results show that $L _ { S R }$ is significantly more effective than $L _ { F M }$ . We further note at this point that we found that $L _ { F M }$ offers diminishing gains on ImageNet experiments. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
173,
|
| 600 |
+
617,
|
| 601 |
+
825,
|
| 602 |
+
715
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "Where should the losses be applied? The proposed losses can be applied at other layers of the networks too. This is straightforward for $L _ { F M }$ . We can also extend $L _ { S R }$ to more layers, by transferring the mean feature of the student at each layer to the corresponding layer of the teacher using an AdaIN layer (Huang & Belongie, 2017). On one hand, applying the losses early in the network could ensure that the subsequent layers receive “better” features. On the other hand, features produced by early layers are not specialised to a particular class. Thus, applying the distillation losses towards the end of the network, where the activations encode discriminative, task-related features should lead to potentially stronger models. The results from Table 1 (last 3 rows) confirm our hypothesis: Applying the loss at multiple points in the network actually rather hurts accuracy. ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
173,
|
| 611 |
+
722,
|
| 612 |
+
825,
|
| 613 |
+
848
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "Teacher-student similarity: The overall aim of knowledge distillation is to make the student mimic the teacher’s output, so that the student is able to obtain similar performance to that of the teacher. Therefore, to see how well the student mimics the teacher, we measured the similarity between the teacher’s and student’s outputs using (a) the KL divergence between the teacher’s and student’s outputs, and (b) the cross-entropy loss between the student’s predictions and the ground truth labels. ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
853,
|
| 623 |
+
823,
|
| 624 |
+
924
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "table",
|
| 630 |
+
"img_path": "images/a05297133e0e330092f5d2e6bb153060312b537d2625343ec5cb893f5d78f2bb.jpg",
|
| 631 |
+
"table_caption": [
|
| 632 |
+
"Table 2: KL divergence between teacher and student, and cross-entropy between student and ground truth on the test set of CIFAR-100. Teacher’s top-1 accuracy is $7 9 . 5 0 \\%$ . "
|
| 633 |
+
],
|
| 634 |
+
"table_footnote": [],
|
| 635 |
+
"table_body": "<table><tr><td>Method</td><td>KL div.with teacher</td><td>Cross-entropy with label</td><td>Top-1 (%)</td></tr><tr><td rowspan=\"3\">Student KD AT</td><td>0.5964</td><td>0.9383</td><td>76.97</td></tr><tr><td>0.5818</td><td>0.9492</td><td>78.35</td></tr><tr><td>0.5406</td><td>0.9049</td><td>78.06</td></tr><tr><td rowspan=\"3\">LFM LsR LFM+LSR</td><td>0.5701</td><td>0.8980</td><td>78.05</td></tr><tr><td>0.4828</td><td>0.8418</td><td>79.10</td></tr><tr><td>0.4597</td><td>0.8247</td><td>79.58</td></tr></table>",
|
| 636 |
+
"bbox": [
|
| 637 |
+
236,
|
| 638 |
+
140,
|
| 639 |
+
761,
|
| 640 |
+
241
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 5
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "table",
|
| 646 |
+
"img_path": "images/3d5f5482ee8da4c56b9fd3af67f6deb1db54c63833bbc6a9c75006bc93183347.jpg",
|
| 647 |
+
"table_caption": [
|
| 648 |
+
"Table 3: $L _ { 2 }$ Distance $\\left\\| h _ { T } - h _ { S } \\right\\| ^ { 2 }$ , and NMI calculated on the test set of CIFAR-100. "
|
| 649 |
+
],
|
| 650 |
+
"table_footnote": [],
|
| 651 |
+
"table_body": "<table><tr><td>Method</td><td>Student</td><td>LFM</td><td>LsR</td><td>LFM+LSR</td></tr><tr><td>L2Distance</td><td>1.48</td><td>1.33</td><td>1.07</td><td>1.01</td></tr><tr><td>NMI (%).</td><td>77.20</td><td>78.31</td><td>79.35</td><td>79.85</td></tr><tr><td>Top-1(%).</td><td>76.97</td><td>78.05</td><td>79.10</td><td>79.58</td></tr></table>",
|
| 652 |
+
"bbox": [
|
| 653 |
+
307,
|
| 654 |
+
273,
|
| 655 |
+
687,
|
| 656 |
+
333
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 5
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "From Table 2, it can be observed that KD (Hinton et al., 2015) reduces the KL divergence with the teacher’s output offering $\\sim 1 . 5 \\%$ accuracy gain. AT (Zagoruyko & Komodakis, 2017) also decreases the KL divergence with the teacher’s output offering a smaller accuracy gain of $\\sim 1 . 0 \\%$ . Moreover, both proposed losses $L _ { F M }$ and $L _ { S R }$ and their combination ${ \\cal L } _ { F M } + { \\cal L } _ { S R }$ show considerably high similarity compared to the KD and AT. This similarity is one of the main reasons for the improved student’s accuracy offered by our method. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
348,
|
| 666 |
+
825,
|
| 667 |
+
433
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "image",
|
| 673 |
+
"img_path": "images/e4ea2cd3fa645b65227bf0f46523a5ce32bfcc1dfad328554cc6553958df6451.jpg",
|
| 674 |
+
"image_caption": [
|
| 675 |
+
"Figure 2: Visualization of $h _ { S }$ and $h _ { T }$ on the test set of CIFAR-100. Better viewed in color. "
|
| 676 |
+
],
|
| 677 |
+
"image_footnote": [],
|
| 678 |
+
"bbox": [
|
| 679 |
+
184,
|
| 680 |
+
454,
|
| 681 |
+
812,
|
| 682 |
+
536
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Representations distance: Table 3 shows the $L _ { 2 }$ distance between the teacher and student representations $h _ { T }$ and $h _ { S }$ . The results, presented in Table 3, clearly show that both $L _ { F M }$ and $L _ { S R }$ narrow the distance, with their combination being the closest to the teacher. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
173,
|
| 691 |
+
579,
|
| 692 |
+
820,
|
| 693 |
+
621
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "Normalized Mutual Information (NMI): Moreover, we calculated the NMI (Manning et al., 2008) which is a balanced metric that can be used to determine the quality of feature clustering. The results, presented in Table 3, show that ${ \\cal L } _ { F M } + { \\cal L } _ { S R }$ has the highest NMI score, meaning that the features are better clustered. Qualitative results are shown in Figure 2, which visualizes the features $h _ { S }$ and $h _ { T }$ . It can be observed that ${ \\cal L } _ { F M } + { \\cal L } _ { S R }$ is able to learn more discriminative features, which also correlates with quantitative accuracy gains. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
627,
|
| 703 |
+
825,
|
| 704 |
+
712
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "Transferability of representations: Following (Tian et al., 2020), this section aims to compare the representational power of the learned student’s representation $h _ { S }$ . To this end, we trained the student on CIFAR100, and then used it as a frozen feature extractor on top of which we train a linear classifier for 2 datasets: STL10 Coates et al. (2011) and CIFAR100. We compare the transfer ability of KD, CRD, $L _ { F M }$ , $L _ { S R }$ , and ${ \\cal L } _ { F M } + { \\cal L } _ { S R }$ . The superiority of the proposed losses over KD on STL is evident. Importantly, $L _ { S R }$ largely outperforms KD which confirms our analysis of Eqs. (5) and (6). The best results on STL are obtained by CRD. However, on CIFAR100, which is the target distillation dataset our method outperforms CRD. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
173,
|
| 713 |
+
718,
|
| 714 |
+
825,
|
| 715 |
+
830
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 5
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "5 COMPARISON WITH STATE-OF-THE-ART ",
|
| 722 |
+
"text_level": 1,
|
| 723 |
+
"bbox": [
|
| 724 |
+
174,
|
| 725 |
+
851,
|
| 726 |
+
535,
|
| 727 |
+
866
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 5
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "We thoroughly evaluated the effectiveness of our method across multiple (a) network architectures (ResNet (He et al., 2016), Wide ResNet (Zagoruyko & Komodakis, 2016), MobileNetV2 (Sandler et al., 2018), MobileNet (Howard et al., 2017)) with different teacher-student capacities, (b) datasets (CIFAR10/100, ImageNet), and (c) domains (real-valued and binary networks). The training details for all experiments are provided in the appendix. We denote with ResNet-N a Residual Network with N convolutional layers (He et al., 2016). We denote with WRN-D- $k$ a WRN architecture with $D$ layers and an expansion rate of $k$ (Zagoruyko & Komodakis, 2017). ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
176,
|
| 736 |
+
882,
|
| 737 |
+
825,
|
| 738 |
+
924
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "table",
|
| 744 |
+
"img_path": "images/cb4ccc8c509356ccd86e99e73eeeb617d0cdfb617526279d3b1ce345eb308eb5.jpg",
|
| 745 |
+
"table_caption": [
|
| 746 |
+
"Table 4: Transferability of representations from CIFAR100 to STL-10 and CIFAR100 by freezing $f ^ { S }$ and training a linear classifier on top. Top 1 $( \\% )$ accuracy is provided. "
|
| 747 |
+
],
|
| 748 |
+
"table_footnote": [],
|
| 749 |
+
"table_body": "<table><tr><td>Student</td><td>Dataset</td><td>KD</td><td>CRD</td><td>LFM</td><td>LSR</td><td>LFM+LsR</td></tr><tr><td>WRN16-4</td><td>STL10</td><td>68.75</td><td>72.45</td><td>69.3</td><td>71.44</td><td>72.17</td></tr><tr><td>WRN16-4</td><td>CIFAR100</td><td>78.28</td><td>78.46</td><td>77.95</td><td>79.03</td><td>79.34</td></tr><tr><td>MobileNetV2</td><td>STL10</td><td>62.17</td><td>69.74</td><td>66.12</td><td>68.23</td><td>68.95</td></tr><tr><td>MobileNetV2</td><td>CIFAR100</td><td>69.17</td><td>70.68</td><td>70.66</td><td>71.00</td><td>71.63</td></tr></table>",
|
| 750 |
+
"bbox": [
|
| 751 |
+
233,
|
| 752 |
+
145,
|
| 753 |
+
763,
|
| 754 |
+
219
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "table",
|
| 760 |
+
"img_path": "images/27c93ecb61e8341d2ed7d30decbd6946aa59fc07539e102e4d6ae4256aff14e7.jpg",
|
| 761 |
+
"table_caption": [
|
| 762 |
+
"Table 5: Top-1 accuracy $( \\% )$ of various knowledge distillation methods on CIFAR-10. "
|
| 763 |
+
],
|
| 764 |
+
"table_footnote": [],
|
| 765 |
+
"table_body": "<table><tr><td>Student(Params)</td><td>Teacher(Params)</td><td>Student</td><td>KD AT</td><td>OFD</td><td>RKD</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-1 (0.18M)</td><td>WRN-16-2 (0.69M)</td><td>91.04</td><td>92.57 92.15</td><td>92.28</td><td>92.51</td><td>92.95</td><td>93.98</td></tr><tr><td>WRN-16-2 (0.69M)</td><td>WRN-40-2 (2.2M)</td><td>93.98</td><td>94.46 94.39</td><td>94.30</td><td>94.41</td><td>94.66</td><td>95.07</td></tr><tr><td>ResNet-8 (0.08M)</td><td>ResNet-26 (0.37M)</td><td>87.78</td><td>88.75 88.15</td><td>87.49</td><td>88.50</td><td>89.02</td><td>93.58</td></tr><tr><td>ResNet-14 (0.17M)</td><td>ResNet-26 (0.37M)</td><td>91.59</td><td>92.57 92.11</td><td>92.51</td><td>92.36</td><td>92.70</td><td>93.58</td></tr><tr><td>ResNet-18 (0.7M)</td><td>ResNet-34 (1.4M)</td><td>93.35</td><td>93.74 93.52</td><td>93.80</td><td>92.95</td><td>93.92</td><td>94.11</td></tr><tr><td>WRN-16-1 (0.18M)</td><td>ResNet-26 (0.37M)</td><td>91.04</td><td>92.42 91.32</td><td>92.47</td><td>92.08</td><td>92.94</td><td>93.58</td></tr></table>",
|
| 766 |
+
"bbox": [
|
| 767 |
+
181,
|
| 768 |
+
272,
|
| 769 |
+
825,
|
| 770 |
+
373
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 6
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
407,
|
| 780 |
+
825,
|
| 781 |
+
463
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "For the above mentioned settings, we compare our method with KD (Hinton et al., 2015) and AT (Zagoruyko & Komodakis, 2017), and the more recent methods of OFD (Heo et al., 2019a), RKD (Park et al., 2019), CRD (Tian et al., 2020). ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
470,
|
| 791 |
+
825,
|
| 792 |
+
512
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Overview of results: From our experiments, we conclude that our approach offers consistent gains across all of the above scenarios, outperforming all methods considered for all settings. Notably, our method is particularly effective for the most difficult datasets (i.e. CIFAR-100 and ImageNet). ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
520,
|
| 802 |
+
825,
|
| 803 |
+
561
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "5.1 CIFAR-10/100 ",
|
| 810 |
+
"text_level": 1,
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
597,
|
| 814 |
+
323,
|
| 815 |
+
611
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "For CIFAR-10, Top-1 performance of our method is shown in Table 5. We tested three cases representing different network architectures for student and teacher networks: the first two experiments are with WRNs. The following three experiments are with ResNets. In the last experiment, teacher and student have different network architectures. Overall, our method achieves the best results for all cases, with KD (Hinton et al., 2015) closely following. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
631,
|
| 825 |
+
825,
|
| 826 |
+
702
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "For CIFAR-100 (Krizhevsky & Hinton, 2009), we experimented with several student-teacher network pairs using different structures. Experiments are grouped in three sets. The first shows performance for different teacher and student capacities using WRNs: poor student - good teacher (WRN-16-2; WRN-40-4), descent student - good teacher (WRN-10-10; WRN-16-10); good student - good teacher (WRN-16-4; WRN-40-4). In the second set, we show that these results hold when using a different architecture, ResNet in this case. The final set is designed to show performance when teacher and student have different architectures (MobileNetV2, ResNet and WRN). ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
708,
|
| 836 |
+
825,
|
| 837 |
+
805
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Top-1 performance of our method is shown in Table 11. We observe that for almost all configurations, our method achieves consistent and significant accuracy gains over prior work. Furthermore, it is hard to tell which is the second best method as the remaining methods have their own advantages for different configurations. For WRN experiments, OFD ranks second. For ResNet and mixed structure experiments, CRD ranks second. More comparisons with other methods and results obtained by combining our method with KD and AT are provided in the supplementary material. Further improvements could be obtained by combining our method with others but this requires a comprehensive investigation which goes beyond the scope of this paper. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
174,
|
| 846 |
+
811,
|
| 847 |
+
825,
|
| 848 |
+
924
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 6
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "table",
|
| 854 |
+
"img_path": "images/8f34d51311cc656bd07ef493504b4d1f0586aac090713ab8d59a8e60a7d03c0e.jpg",
|
| 855 |
+
"table_caption": [
|
| 856 |
+
"Table 6: Top-1 accuracy $( \\% )$ of various knowledge distillation methods on CIFAR-100. "
|
| 857 |
+
],
|
| 858 |
+
"table_footnote": [],
|
| 859 |
+
"table_body": "<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td>Student</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>WRN-40-4 (8.97M)</td><td>72.70</td><td>74.52</td><td>74.33</td><td>75.57</td><td>74.23</td><td>75.27</td><td>75.96</td><td>79.50</td></tr><tr><td>WRN-16-4 (2.77M)</td><td>WRN-40-4 (8.97M)</td><td>76.97</td><td>78.35</td><td>78.06</td><td>79.29</td><td>78.38</td><td>78.83</td><td>79.58</td><td>79.50</td></tr><tr><td>WRN-10-10 (7.49M)</td><td>WRN-16-10 (17.2M)</td><td>76.27</td><td>78.20</td><td>76.44</td><td>78.72</td><td>77.84</td><td>78.35</td><td>79.17</td><td>79.77</td></tr><tr><td>ResNet-10 (0.34M)</td><td>ResNet-34(1.39M)</td><td>68.42</td><td>69.18</td><td>68.49</td><td>68.94</td><td>68.70</td><td>70.24</td><td>69.91</td><td>72.05</td></tr><tr><td>ResNet-18 (0.75M)</td><td>ResNet-50 (1.99M)</td><td>71.07</td><td>73.41</td><td>71.90</td><td>72.79</td><td>70.93</td><td>73.23</td><td>73.47</td><td>73.31</td></tr><tr><td>ResNet-10 (4.95M)</td><td>ResNet-34 (21.33M)</td><td>75.01</td><td>77.35</td><td>76.87</td><td>77.35</td><td>77.46</td><td>77.37</td><td>77.90</td><td>78.44</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>ResNet-34 (21.33M)</td><td>72.70</td><td>73.95</td><td>72.32</td><td>74.78</td><td>73.91</td><td>74.88</td><td>75.38</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>ResNet-34 (21.33M)</td><td>68.42</td><td>69.36</td><td>68.60</td><td>69.45</td><td>68.75</td><td>71.36</td><td>71.58</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>WRN-40-4 (8.97M)</td><td>68.42</td><td>69.15</td><td>68.95</td><td>70.08</td><td>68.19</td><td>71.46</td><td>71.82</td><td>79.50</td></tr></table>",
|
| 860 |
+
"bbox": [
|
| 861 |
+
181,
|
| 862 |
+
136,
|
| 863 |
+
825,
|
| 864 |
+
265
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "table",
|
| 870 |
+
"img_path": "images/e31f32fd993feef0b0908cff7f7a68d7559e2375274b9dbc61450dfd0a50b1e1.jpg",
|
| 871 |
+
"table_caption": [
|
| 872 |
+
"Table 7: Comparison with state-of-the-art on ImageNet. "
|
| 873 |
+
],
|
| 874 |
+
"table_footnote": [],
|
| 875 |
+
"table_body": "<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td></td><td>Student</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Teacher</td></tr><tr><td>ResNet18 (11.69M)</td><td>ResNet34 (21.80M)</td><td>Top-1 Top-5</td><td>70.04 89.48</td><td>70.68 90.16</td><td>70.59 89.73</td><td>71.08 90.07</td><td>71.34 90.37</td><td>71.17 90.13</td><td>71.73 90.60</td><td>73.31 91.42</td></tr><tr><td>MobileNet (4.23M))]</td><td>ResNet50 (25.56M)</td><td>Top-1 Top-5</td><td>70.13 89.49</td><td>70.68 90.30</td><td>70.72 90.03</td><td>71.25 90.34</td><td>71.32 90.62</td><td>71.40 90.42</td><td>72.49 90.92</td><td>76.16 92.86</td></tr></table>",
|
| 876 |
+
"bbox": [
|
| 877 |
+
181,
|
| 878 |
+
304,
|
| 879 |
+
823,
|
| 880 |
+
367
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "5.2 IMAGENET-1K ",
|
| 887 |
+
"text_level": 1,
|
| 888 |
+
"bbox": [
|
| 889 |
+
174,
|
| 890 |
+
390,
|
| 891 |
+
318,
|
| 892 |
+
404
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 7
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Our experiments include two pairs of networks which are popular settings for ImageNet (Russakovsky et al., 2015). The first is distillation from ResNet-34 to ResNet-18 and the second one is distillation from ResNet-50 to MobileNet (Howard et al., 2017). Note that, following (Tian et al., 2020) on ImageNet, for KD, we set the weight for the KL loss to 0.9, the weight for cross-entropy loss to 0.5 which helps to obtain better accuracy. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
417,
|
| 902 |
+
825,
|
| 903 |
+
488
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 7
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Our results are presented in Table 7. Again, we observe that our method achieves significant improvements over all competing methods. Moreover, there is no method which is consistently second: for ResNet-34 to ResNet-18 experiment, RKD is the second best while for ResNet-50 to MobileNet, CRD is the second best. Notably, for the latter experiment, CRD reduces the gap between the teacher and the student by $1 . 2 7 \\%$ , while our method narrows it by $2 . 3 6 \\%$ . Overall, our results on ImageNet validate the scalability of our method, and show that, when applied to a large-scale dataset, we achieve an even more favourable performance compared against competing methods. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
173,
|
| 912 |
+
494,
|
| 913 |
+
825,
|
| 914 |
+
592
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 7
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "table",
|
| 920 |
+
"img_path": "images/37b9ebe0a0b329ea2f1ca6810026440925ea3ea1b7118978cf003157cca90265.jpg",
|
| 921 |
+
"table_caption": [
|
| 922 |
+
"Table 8: Real-to-binary distillation results on CIFAR-100: a real-valued teacher ResNet-34 is used to distill a binary student. Real-to-binary distillation results on ImageNet-1K: a real-valued ResNet-18 is used to distill a binary student. OFD result might be suboptimal. "
|
| 923 |
+
],
|
| 924 |
+
"table_footnote": [],
|
| 925 |
+
"table_body": "<table><tr><td>Dataset</td><td>Method</td><td>Binary</td><td>KD</td><td>AT</td><td>OFD</td><td>RKD</td><td>CRD</td><td>Ours</td><td>Real</td></tr><tr><td>CIFAR-100</td><td>ResNet34</td><td>65.34</td><td>68.65</td><td>68.54</td><td>66.84</td><td>68.61</td><td>68.78</td><td>70.50</td><td>75.08</td></tr><tr><td>ImageNet-1K</td><td>ResNet18</td><td>56.70</td><td>57.39</td><td>58.45</td><td>55.74</td><td>58.84</td><td>58.25</td><td>59.57</td><td>70.20</td></tr></table>",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
671,
|
| 929 |
+
828,
|
| 930 |
+
718
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 7
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "5.3 BINARY NETWORKS DISTILLATION ",
|
| 937 |
+
"text_level": 1,
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
750,
|
| 941 |
+
457,
|
| 942 |
+
763
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 7
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Training highly accurate binary neural networks (i.e. the most extreme case of quantization) is a very challenging task (Rastegari et al., 2016; Bulat & Tzimiropoulos, 2019), and to this end, knowledge distillation appears to be a promising direction. In this section, we present results by applying distillation for the task of training binary student networks guided by real-valued teacher networks. The network architecture is kept the same for both the student and the teacher in this case: specifically we used a ResNet using the modifications described in (Bulat & Tzimiropoulos, 2019). ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
776,
|
| 952 |
+
825,
|
| 953 |
+
861
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 7
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "Table 8 presents our results. Again, we observe that our method outperforms all methods considerably, showing that it can effectively transfer knowledge between different domains. Note that it was not clear to us where to place the distillation position for OFD, so although we included our result for this method, we emphasize that this result might be suboptimal. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
174,
|
| 962 |
+
867,
|
| 963 |
+
823,
|
| 964 |
+
924
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 7
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "5.4 FACIAL LANDMARK DETECTION ",
|
| 971 |
+
"text_level": 1,
|
| 972 |
+
"bbox": [
|
| 973 |
+
176,
|
| 974 |
+
104,
|
| 975 |
+
436,
|
| 976 |
+
117
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 8
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Given a face image, the task is to localise a set of facial landmarks in terms of their (x,y) coordinates. This is often solved by using a CNN to directly regress the (x,y) coordinates of the facial landmarks. In order to show the suitability of our method for this problem, we use the WFLW Wu et al. (2018) dataset, which is one of the hardest benchmarks for this task. Performance is measured in terms of Normalised Mean Error (lower is better), which is the standard metric for the problem. In our experiment, we use a ResNet50 as the teacher and a ResNet8 as the student. The results, shown in Table 9, confirm the superior performance of our method when compared to other state-of-the-art methods. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
173,
|
| 985 |
+
128,
|
| 986 |
+
825,
|
| 987 |
+
241
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "table",
|
| 993 |
+
"img_path": "images/1848b213c4ac61b4e5775f5337e2255144278f0caab66df83d003814e362e911.jpg",
|
| 994 |
+
"table_caption": [
|
| 995 |
+
"Table 9: Facial landmark detection with ResNet50 as teacher and ResNet8 as student. KD is adapted by using an L2 loss instead of a KL loss to measure the discrepancy between the teach and student predictions. "
|
| 996 |
+
],
|
| 997 |
+
"table_footnote": [],
|
| 998 |
+
"table_body": "<table><tr><td>Student(Params)</td><td>Teacher(Params)</td><td>1</td><td>Student</td><td>KD</td><td>RKD</td><td>PKT</td><td>LFM</td><td>AT</td><td>Ours</td><td>Teacher</td></tr><tr><td></td><td>ResNet8(7.25M) ResNet50(26.25M)</td><td>NME</td><td>7.43</td><td>7.32</td><td>6.94</td><td>7.09</td><td>7.14</td><td>6.96</td><td>6.81</td><td>6.38</td></tr></table>",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
179,
|
| 1001 |
+
321,
|
| 1002 |
+
825,
|
| 1003 |
+
352
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "6 CONCLUSION ",
|
| 1010 |
+
"text_level": 1,
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
388,
|
| 1014 |
+
318,
|
| 1015 |
+
405
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 8
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "We presented a method for knowledge distillation that optimizes the output feature of the penultimate layer of the student network and hence is directly related to representation learning. A key to our method is the newly proposed Softmax Regression Loss which was found necessary for effective representation learning. We showed that our method consistently outperforms other stateof-the-art distillation methods for a wide range of experimental settings including multiple network architectures (ResNet, Wide ResNet, MobileNet) with different teacher-student capacities, datasets (CIFAR10/100, ImageNet), and domains (real-valued and binary networks). ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
174,
|
| 1024 |
+
420,
|
| 1025 |
+
825,
|
| 1026 |
+
518
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 8
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "REFERENCES ",
|
| 1033 |
+
"text_level": 1,
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
540,
|
| 1037 |
+
285,
|
| 1038 |
+
555
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 8
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Sungsoo Ahn, Shell Xu Hu, Andreas Damianou, Neil D Lawrence, and Zhenwen Dai. Variational information distillation for knowledge transfer. In CVPR, 2019. \nCristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In ˇ KDD, 2006. \nAdrian Bulat and Georgios Tzimiropoulos. XNOR-Net $^ { + + }$ : Improved binary neural networks. In BMVC, 2019. \nTing Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. ICML, 2020. \nJang Hyun Cho and Bharath Hariharan. On the efficacy of knowledge distillation. In ICCV, 2019. \nAdam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In International conference on artificial intelligence and statistics, 2011. \nSimon S Du and Jason D Lee. On the power of over-parametrization in neural networks with quadratic activation. In ICML, 2018. \nYushuo Guan, Pengyu Zhao, Bingxuan Wang, Yuanxing Zhang, Cong Yao, Kaigui Bian, and Jian Tang. Differentiable feature aggregation search for knowledge distillation. In ECCV, 2020. \nSong Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. ICLR, 2016. \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
171,
|
| 1047 |
+
563,
|
| 1048 |
+
826,
|
| 1049 |
+
926
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 8
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
171,
|
| 1058 |
+
103,
|
| 1059 |
+
823,
|
| 1060 |
+
132
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Byeongho Heo, Jeesoo Kim, Sangdoo Yun, Hyojin Park, Nojun Kwak, and Jin Young Choi. A comprehensive overhaul of feature distillation. In ICCV, 2019a. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
174,
|
| 1069 |
+
140,
|
| 1070 |
+
823,
|
| 1071 |
+
170
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Byeongho Heo, Minsik Lee, Sangdoo Yun, and Jin Young Choi. Knowledge transfer via distillation of activation boundaries formed by hidden neurons. In AAAI, 2019b. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
173,
|
| 1080 |
+
178,
|
| 1081 |
+
823,
|
| 1082 |
+
208
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 9
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
174,
|
| 1091 |
+
215,
|
| 1092 |
+
821,
|
| 1093 |
+
244
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "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:1704.04861, 2017. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
176,
|
| 1102 |
+
252,
|
| 1103 |
+
823,
|
| 1104 |
+
296
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
304,
|
| 1114 |
+
823,
|
| 1115 |
+
333
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Zehao Huang and Naiyan Wang. Like what you like: Knowledge distill via neuron selectivity transfer. arXiv:1707.01219, 2017. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
342,
|
| 1125 |
+
823,
|
| 1126 |
+
371
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Himalaya Jain, Spyros Gidaris, Nikos Komodakis, Patrick Perez, and Matthieu Cord. QUEST: ´ Quantized embedding space for transferring knowledge. In ECCV, 2020. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
173,
|
| 1135 |
+
378,
|
| 1136 |
+
821,
|
| 1137 |
+
410
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In ICLR, 2020. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
416,
|
| 1147 |
+
823,
|
| 1148 |
+
446
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Jangho Kim, SeongUk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. In NeurIPS, 2018. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
173,
|
| 1157 |
+
454,
|
| 1158 |
+
823,
|
| 1159 |
+
484
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, 2009. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
492,
|
| 1169 |
+
823,
|
| 1170 |
+
521
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Vadim Lebedev and Victor Lempitsky. Fast convnets using group-wise brain damage. In CVPR, 2016. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
529,
|
| 1180 |
+
823,
|
| 1181 |
+
559
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Seung Hyun Lee, Dae Ha Kim, and Byung Cheol Song. Self-supervised knowledge distillation using singular value decomposition. In ECCV, 2018. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
566,
|
| 1191 |
+
823,
|
| 1192 |
+
597
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Changlin Li, Jiefeng Peng, Liuchun Yuan, Guangrun Wang, Xiaodan Liang, Liang Lin, and Xiaojun Chang. Block-wisely supervised neural architecture search with knowledge distillation. In CVPR, 2020a. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
176,
|
| 1201 |
+
604,
|
| 1202 |
+
823,
|
| 1203 |
+
647
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 9
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Xiaojie Li, Jianlong Wu, Hongyu Fang, Yue Liao, Fei Wang, and Chen Qian. Local correlation consistency for knowledge distillation. In ECCV, 2020b. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
171,
|
| 1212 |
+
655,
|
| 1213 |
+
823,
|
| 1214 |
+
685
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 9
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. arXiv, 2018. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
173,
|
| 1223 |
+
693,
|
| 1224 |
+
821,
|
| 1225 |
+
723
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 9
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Yufan Liu, Jiajiong Cao, Bing Li, Chunfeng Yuan, Weiming Hu, Yangxi Li, and Yunqiang Duan. Knowledge distillation via instance relationship graph. In CVPR, 2019. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
174,
|
| 1234 |
+
731,
|
| 1235 |
+
821,
|
| 1236 |
+
761
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 9
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Christopher D Manning, Prabhakar Raghavan, and Hinrich Schutze. ¨ Introduction to information retrieval (chapter 16). Cambridge university press, 2008. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
174,
|
| 1245 |
+
768,
|
| 1246 |
+
821,
|
| 1247 |
+
797
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 9
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In CVPR, 2019. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
173,
|
| 1256 |
+
805,
|
| 1257 |
+
823,
|
| 1258 |
+
835
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 9
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Nikolaos Passalis, Maria Tzelepi, and Anastasios Tefas. Heterogeneous knowledge distillation using information flow modeling. In CVPR, 2020. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
173,
|
| 1267 |
+
843,
|
| 1268 |
+
825,
|
| 1269 |
+
873
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 9
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
176,
|
| 1278 |
+
881,
|
| 1279 |
+
825,
|
| 1280 |
+
924
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 9
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Baoyun Peng, Xiao Jin, Jiaheng Liu, Shunfeng Zhou, Yichao Wu, Yu Liu, Dongsheng Li, and Zhaoning Zhang. Correlation congruence for knowledge distillation. In ICCV, 2019. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
173,
|
| 1289 |
+
103,
|
| 1290 |
+
823,
|
| 1291 |
+
132
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: ImageNet classification using binary convolutional neural networks. In ECCV, 2016. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
173,
|
| 1300 |
+
142,
|
| 1301 |
+
823,
|
| 1302 |
+
171
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. ICLR, 2015. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
173,
|
| 1311 |
+
181,
|
| 1312 |
+
823,
|
| 1313 |
+
210
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 10
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
176,
|
| 1322 |
+
219,
|
| 1323 |
+
823,
|
| 1324 |
+
263
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 10
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. MobileNetV2: Inverted residuals and linear bottlenecks. In CVPR, 2018. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
174,
|
| 1333 |
+
273,
|
| 1334 |
+
823,
|
| 1335 |
+
303
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 10
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "Mahdi Soltanolkotabi, Adel Javanmard, and Jason D Lee. Theoretical insights into the optimization landscape of over-parameterized shallow neural networks. TIT, 2018. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
174,
|
| 1344 |
+
313,
|
| 1345 |
+
823,
|
| 1346 |
+
342
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 10
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive representation distillation. In ICLR, 2020. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
174,
|
| 1355 |
+
351,
|
| 1356 |
+
825,
|
| 1357 |
+
381
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 10
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "Frederick Tung and Greg Mori. Similarity-preserving knowledge distillation. In ICCV, 2019. ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
173,
|
| 1366 |
+
390,
|
| 1367 |
+
787,
|
| 1368 |
+
406
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 10
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In CVPR, 2016. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
173,
|
| 1377 |
+
415,
|
| 1378 |
+
823,
|
| 1379 |
+
445
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 10
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Wayne Wu, Chen Qian, Shuo Yang, Quan Wang, Yici Cai, and Qiang Zhou. Look at boundary: A boundary-aware face alignment algorithm. In CVPR, 2018. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
173,
|
| 1388 |
+
454,
|
| 1389 |
+
823,
|
| 1390 |
+
484
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 10
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "Junho Yim, Donggyu Joo, Jihoon Bae, and Junmo Kim. A gift from knowledge distillation: Fast optimization, network minimization and transfer learning. In CVPR, 2017. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
173,
|
| 1399 |
+
494,
|
| 1400 |
+
825,
|
| 1401 |
+
522
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 10
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016. ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
176,
|
| 1410 |
+
534,
|
| 1411 |
+
727,
|
| 1412 |
+
547
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 10
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the perfor mance of convolutional neural networks via attention transfer. In ICLR, 2017. ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
174,
|
| 1421 |
+
558,
|
| 1422 |
+
818,
|
| 1423 |
+
587
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 10
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. ICLR, 2017. ",
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
173,
|
| 1432 |
+
597,
|
| 1433 |
+
816,
|
| 1434 |
+
612
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 10
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "text",
|
| 1440 |
+
"text": "A APPENDIX ",
|
| 1441 |
+
"text_level": 1,
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
176,
|
| 1444 |
+
640,
|
| 1445 |
+
297,
|
| 1446 |
+
656
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 10
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "A.1 STUDY OF THE HYPER-PARAMETERS $\\alpha$ AND $\\beta$ ",
|
| 1453 |
+
"text_level": 1,
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
176,
|
| 1456 |
+
672,
|
| 1457 |
+
534,
|
| 1458 |
+
686
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 10
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "We only performed a very basic search to find the best hyper-parameters. First, we fix $\\alpha$ and search for the best $\\beta$ . Then, we used the best $\\beta$ , and search for the best $\\alpha$ . This is sub-optimal compared to a full grid search over $\\alpha$ and $\\beta$ . Furthermore, after some preliminary experimentation, we considered only for 2 values: 1 and 5. Notably, we found that for all teacher-student pairs but (T:WRN40 4, S:MV2) alpha $^ { = 1 }$ is the optimal value. Furthermore, on ImageNet, the optimal values were $\\alpha = 1$ , $\\beta = 1$ for all teacher-student pairs considered. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
174,
|
| 1467 |
+
699,
|
| 1468 |
+
825,
|
| 1469 |
+
782
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 10
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "A.2 DATASETS AND TRAINING DETAILS ",
|
| 1476 |
+
"text_level": 1,
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
176,
|
| 1479 |
+
800,
|
| 1480 |
+
460,
|
| 1481 |
+
814
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 10
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "CIFAR-10 CIFAR-10 is a popular image classification dataset consisting of 50,000 training and 10,000 testing images equally distributed across 10 classes. All images are of resolution $3 2 \\times 3 2 \\mathrm { p x }$ . Following (Zagoruyko & Komodakis, 2017), during training, we randomly cropped and horizontally flipped the images. The ResNet models were trained for 350 epochs using SGD. The initial learning rate was set to 0.1, and then it was reduced by a factor of 10 at epochs 150, 250 and 320. Similarly, the WRN models were trained for 200 epochs with a learning rate of 0.1 that was subsequently reduced by 5 at epochs 60, 120 and 160. In all experiments, we set the dropout rate to 0. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
174,
|
| 1490 |
+
825,
|
| 1491 |
+
825,
|
| 1492 |
+
924
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 10
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "For traditional KD (Hinton et al., 2015), we set $\\alpha \\ : = \\ : 0 . 9$ and $T \\ = \\ 4$ . For AT (Zagoruyko & Komodakis, 2017), as in (Zagoruyko & Komodakis, 2017; Tung & Mori, 2019), we set the weight of distillation loss to 1000. We note that, in our experiments, the AT loss is added after each layer group for WRN and the last two groups for ResNet as in (Zagoruyko & Komodakis, 2017). Following OFD (Heo et al., 2019a), we set the weight of distillation loss to $1 0 ^ { - 3 }$ . For RKD (Park et al., 2019), we set $\\beta _ { 1 } = 2 5$ for distance, and $\\beta _ { 2 } = 5 0$ for angle, as described in (Park et al., 2019; Tian et al., 2020). We did not compare with CRD (Tian et al., 2020) on CIFAR-10 because, in our experiments, we found that their parameter setting (used in their paper for CIFAR-100 and ImageNet-1K) does not obtain good performance on CIFAR-10. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
174,
|
| 1501 |
+
103,
|
| 1502 |
+
825,
|
| 1503 |
+
229
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 11
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "CIFAR-100 For CIFAR-100 (Krizhevsky & Hinton, 2009), we used a standard data augmentation scheme (Zagoruyko & Komodakis, 2017) including padding 4 pixels prior to random cropping and horizontal flipping. We used SGD with weight decay 5e-4 and momentum 0.9. Batch size was set to 128. Learning rate was set to 0.1; then decayed by 0.1 at epochs 100, 150, until training reached 200 epochs (Heo et al., 2019a). ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
174,
|
| 1512 |
+
236,
|
| 1513 |
+
825,
|
| 1514 |
+
305
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 11
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "ImageNet-1K Images are cropped to $2 2 4 \\times 2 2 4$ pixels for both training and evaluation. We used SGD with Nesterov momentum 0.9, weight decay $1 e - 4$ , initial learning rate 0.2 which was then dropped by a factor of 10 every 30 epochs, training in total for 100 epochs (for CRD we trained with 10 more epochs as suggested by the authors). Batch size was set to 512. For simplicity and to enable a fair comparison, we used pretrained PyTorch models Paszke et al. (2017) as teacher networks Heo et al. (2019a); Tian et al. (2020). For binary experiments, we used Adam as the optimizer with initial learning 0.002 which was then reduced by a factor of 10 every 30 epochs, training in total for 100 epochs. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
173,
|
| 1523 |
+
311,
|
| 1524 |
+
825,
|
| 1525 |
+
424
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 11
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "A.3 ADDITIONAL ABLATION STUDIES ",
|
| 1532 |
+
"text_level": 1,
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
176,
|
| 1535 |
+
443,
|
| 1536 |
+
447,
|
| 1537 |
+
455
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 11
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "Different losses for $L _ { S R }$ : This part expands Section 4 of our paper by evaluating different losses for $L _ { S R }$ . The following loss functions are compared: ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
171,
|
| 1546 |
+
468,
|
| 1547 |
+
823,
|
| 1548 |
+
497
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 11
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "1. L2 loss: $L _ { S R - L 2 } ( p , q ) = \\left\\| p - q \\right\\| ^ { 2 }$ . This is the loss used in Section 4 of our paper \n2. Cross Entropy loss (CE) with label $y$ $: L _ { S R - C E } ( q , y ) = \\mathcal { H } ( q , y )$ . \n3. KL loss with temperature $\\tau$ Hinton et al. (2015): $L _ { S R - K L } ( p , q ) = K L ( q / \\tau , p / \\tau ) .$ ",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
210,
|
| 1557 |
+
508,
|
| 1558 |
+
774,
|
| 1559 |
+
566
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 11
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "text",
|
| 1565 |
+
"text": "The results, presented in Table 10, show that all loss functions offer significant improvement gains while $L _ { F M } + L _ { S R - L 2 }$ achieves the best accuracy. Therefore, in our paper, $L _ { S R - L 2 }$ is used in all cases. ",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
176,
|
| 1568 |
+
577,
|
| 1569 |
+
823,
|
| 1570 |
+
619
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 11
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "table",
|
| 1576 |
+
"img_path": "images/7cffba765bc7c2c5afadb404a9bc6dcb699ad003e932eb4308928b6cecbcb293.jpg",
|
| 1577 |
+
"table_caption": [
|
| 1578 |
+
"Table 10: Evaluation of different loss functions for $L _ { S R }$ in terms of Top-1 accuracy on CIFAR-100. "
|
| 1579 |
+
],
|
| 1580 |
+
"table_footnote": [],
|
| 1581 |
+
"table_body": "<table><tr><td>Method</td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>Student: WRN-16-4</td><td>76.97</td><td>93.89</td></tr><tr><td>Teacher:WRN-40-4</td><td>79.50</td><td>94.57</td></tr><tr><td>LFM+LSR-L2</td><td>79.58</td><td>95.21</td></tr><tr><td>LFM+LSR-CE</td><td>78.80</td><td>95.13</td></tr><tr><td>LFM+LSR-KL</td><td>79.04</td><td>95.12</td></tr></table>",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
338,
|
| 1584 |
+
662,
|
| 1585 |
+
660,
|
| 1586 |
+
750
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 11
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"text": "Combining our method with KD and AT: Table 11 shows additional comparisons on CIFAR100 by combining our method with AT Zagoruyko & Komodakis (2017) and KD Hinton et al. (2015), respectively. The results show that a straightforward combination did not provide satisfactory results, however it could be possible that a more comprehensive investigation might prove to be beneficial. ",
|
| 1593 |
+
"bbox": [
|
| 1594 |
+
173,
|
| 1595 |
+
773,
|
| 1596 |
+
826,
|
| 1597 |
+
830
|
| 1598 |
+
],
|
| 1599 |
+
"page_idx": 11
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"type": "text",
|
| 1603 |
+
"text": "A.4 ADDITIONAL COMPARISONS ",
|
| 1604 |
+
"text_level": 1,
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
176,
|
| 1607 |
+
848,
|
| 1608 |
+
413,
|
| 1609 |
+
862
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 11
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "This section provides additional comparisons using the evaluation framework of CRD Tian et al. (2020). Comparisons include distillation between models with the same architecture (e.g. ResNet56 to ResNet20) and between different architectures (e.g. ResNet50 to MobileNetV2). In order to maximize the fairness of the comparison, we followed their experimental setting. Thus, we did not choose the training parameters, teacher-student architecture pairs or methods to compare against. The competing methods included are: ",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
174,
|
| 1618 |
+
882,
|
| 1619 |
+
825,
|
| 1620 |
+
924
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 11
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"type": "table",
|
| 1626 |
+
"img_path": "images/cdad6ac77fb17e288b18d36d436dd280325d90645c6ff6f1830b2eaf96e11091.jpg",
|
| 1627 |
+
"table_caption": [
|
| 1628 |
+
"Table 11: Top-1 accuracy $( \\% )$ of combining our method with KD and AT on CIFAR-100. "
|
| 1629 |
+
],
|
| 1630 |
+
"table_footnote": [],
|
| 1631 |
+
"table_body": "<table><tr><td>Student (Params)</td><td>Teacher (Params)</td><td>Student</td><td>KD</td><td>AT</td><td>KD+Ours</td><td>AT+Ours</td><td>Ours</td><td>Teacher</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>WRN-40-4 (8.97M)</td><td>72.70</td><td>74.52</td><td>74.33</td><td>74.97</td><td>75.01</td><td>75.96</td><td>79.50</td></tr><tr><td>WRN-16-4 (2.77M)</td><td>WRN-40-4 (8.97M)</td><td>76.97</td><td>78.35</td><td>78.06</td><td>79.00</td><td>79.09</td><td>79.58</td><td>79.50</td></tr><tr><td>WRN-10-10 (7.49M)</td><td>WRN-16-10 (17.2M)</td><td>76.27</td><td>78.20</td><td>76.44</td><td>78.84</td><td>77.79</td><td>79.17</td><td>79.77</td></tr><tr><td>ResNet-10 (0.34M)</td><td>ResNet-34 (1.39M)</td><td>68.42</td><td>69.18</td><td>68.49</td><td>70.41</td><td>69.41</td><td>69.91</td><td>72.05</td></tr><tr><td>ResNet-18 (0.75M)</td><td>ResNet-50 (1.99M)</td><td>71.07</td><td>73.41</td><td>71.90</td><td>73.46</td><td>73.17</td><td>73.47</td><td>72.83</td></tr><tr><td>ResNet-10 (4.95M)</td><td>ResNet-34 (21.33M)</td><td>75.01</td><td>77.35</td><td>76.87</td><td>77.64</td><td>77.48</td><td>77.90</td><td>78.44</td></tr><tr><td>WRN-16-2 (0.70M)</td><td>ResNet-34 (21.33M)</td><td>72.70</td><td>73.95</td><td>72.32</td><td>74.90</td><td>74.71</td><td>75.38</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>ResNet-34(21.33M)</td><td>68.42</td><td>69.36</td><td>68.60</td><td>71.08</td><td>70.70</td><td>71.58</td><td>78.44</td></tr><tr><td>MobileNetV2 (2.37M)</td><td>WRN-40-4 (8.97M)</td><td>68.42</td><td>69.15</td><td>68.95</td><td>70.85</td><td>70.63</td><td>71.82</td><td>79.50</td></tr></table>",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
181,
|
| 1634 |
+
132,
|
| 1635 |
+
825,
|
| 1636 |
+
260
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 12
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "text",
|
| 1642 |
+
"text": "",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
176,
|
| 1645 |
+
276,
|
| 1646 |
+
821,
|
| 1647 |
+
319
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 12
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "• Classic: Knowledge Distillation (KD) Hinton et al. (2015), FitNet Romero et al. (2015), Attention Transfer (AT) Zagoruyko & Komodakis (2017). \nMost recent: Similarity-Preserving KD (SP) (Tung & Mori, 2019), Correlation Congruence (CC) (Peng et al., 2019), Variational Information Distillation (VID) (Ahn et al., 2019), Relational Knowledge Distillation (RKD) (Park et al., 2019), Distillation of Activation Boundaries (AB) (Heo et al., 2019b), Factor Transfer (FT) (Kim et al., 2018), Flow of Solution (FSP) (Yim et al., 2017) and Contrastive Representation Distillation (CRD) (Tian et al., 2020). ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
212,
|
| 1656 |
+
330,
|
| 1657 |
+
825,
|
| 1658 |
+
448
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 12
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "table",
|
| 1664 |
+
"img_path": "images/23fb2d4769208be4e657a3ccc11e031ca1265609802401321b1f9202dc426f92.jpg",
|
| 1665 |
+
"table_caption": [
|
| 1666 |
+
"Table 12: Distillation experiment with the same architectures (Tian et al., 2020): Top-1 accuracy $( \\% )$ on CIFAR-100. The student models were trained with a teacher of the same architecture. We report average over 3 runs as in (Tian et al., 2020). "
|
| 1667 |
+
],
|
| 1668 |
+
"table_footnote": [],
|
| 1669 |
+
"table_body": "<table><tr><td>Teacher Student</td><td>wrn-40-2 wrn-16-2 75.61 73.26</td><td>wrn-40-2 wrn-40-1 75.61 71.98</td><td>resnet56 resnet20 72.34 69.06</td><td>resnet110 resnet20 74.31 69.06</td><td>resnet110 resnet32 74.31 71.14</td><td>resnet32x4 resnet8x4 79.42 72.50</td><td>vgg13 vgg8 74.64 70.36</td></tr><tr><td>KD</td><td>74.92</td><td>73.54</td><td>70.66</td><td>70.67</td><td>73.08</td><td>73.33</td><td>72.98</td></tr><tr><td>FitNet</td><td>73.58</td><td>72.24</td><td>69.21</td><td>68.99</td><td>71.06</td><td>73.50</td><td>71.02</td></tr><tr><td>AT</td><td>74.08</td><td>72.77</td><td>70.55</td><td>70.22</td><td>72.31</td><td>73.44</td><td>71.43</td></tr><tr><td>SP</td><td>73.83</td><td>72.43</td><td>69.67</td><td>70.04</td><td>72.69</td><td>72.94</td><td>72.68</td></tr><tr><td>CC</td><td>73.56</td><td>72.21</td><td>69.63</td><td>69.48</td><td>71.48</td><td>72.97</td><td>70.71</td></tr><tr><td>VID</td><td>74.11</td><td>73.30</td><td>70.38</td><td>70.16</td><td>72.61</td><td>73.09</td><td>71.23</td></tr><tr><td>RKD</td><td>73.35</td><td>72.22</td><td>69.61</td><td>69.25</td><td>71.82</td><td>71.90</td><td>71.48</td></tr><tr><td>PKT</td><td>74.54</td><td>73.45</td><td>70.34</td><td>70.25</td><td>72.61</td><td>73.64</td><td>72.88</td></tr><tr><td>AB</td><td>72.50</td><td>72.38</td><td>69.47</td><td>69.53</td><td>70.98</td><td>73.17</td><td>70.94</td></tr><tr><td>FT</td><td>73.25</td><td>71.59</td><td>69.84</td><td>70.22</td><td>72.37</td><td>72.86</td><td>70.58</td></tr><tr><td>FSP</td><td>72.91</td><td>0.00</td><td>69.95</td><td>70.11</td><td>71.89</td><td>72.62</td><td>70.23</td></tr><tr><td>NST</td><td>73.68</td><td>72.24</td><td>69.60</td><td>69.53</td><td>71.96</td><td>73.30</td><td>71.53</td></tr><tr><td>CRD</td><td>75.48</td><td>74.14</td><td>71.16</td><td>71.46</td><td>73.48</td><td>75.51</td><td>73.94</td></tr><tr><td>Ours</td><td>75.96</td><td>74.75</td><td>71.44</td><td>71.51</td><td>73.80</td><td>75.92</td><td>74.40</td></tr></table>",
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
181,
|
| 1672 |
+
518,
|
| 1673 |
+
812,
|
| 1674 |
+
784
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 12
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "table",
|
| 1680 |
+
"img_path": "images/359f3c0c341c89702acb0387051f6ca2fe82a5c2dd2a9ebae8f53d2354a36e77.jpg",
|
| 1681 |
+
"table_caption": [
|
| 1682 |
+
"Table 13: Distillation experiment with different architectures (Tian et al., 2020): Top-1 accuracy $( \\% )$ on CIFAR-100. The student models were trained with a teacher of different architecture. We report average over 3 runs as in (Tian et al., 2020). "
|
| 1683 |
+
],
|
| 1684 |
+
"table_footnote": [],
|
| 1685 |
+
"table_body": "<table><tr><td>Teacher</td><td>vgg13 MobileNetV2 74.64</td><td>ResNet50 MobileNetV2 79.34</td><td>ResNet50 vgg8 79.34</td><td>resnet32x4 ShuffleNetV1 79.42</td><td>resnet32x4 ShuffleNetV2 79.42</td><td>wrn-40-2 ShuffleNetV1 75.61</td></tr><tr><td>Student</td><td>64.60</td><td>64.60 67.35</td><td>70.36 73.81</td><td>70.50 74.07</td><td>71.82 74.45</td><td>70.50 74.83</td></tr><tr><td>KD FitNet</td><td>67.37 64.14</td><td>63.16</td><td>70.69</td><td>73.59</td><td>73.54</td><td>73.73</td></tr><tr><td>AT</td><td>59.40</td><td>58.58</td><td>71.84</td><td>71.73</td><td>72.73</td><td>73.32</td></tr><tr><td>SP</td><td>66.30</td><td>68.08</td><td>73.34</td><td>73.48</td><td>74.56</td><td>74.52</td></tr><tr><td>CC</td><td>64.86</td><td>65.43</td><td>70.25</td><td>71.14</td><td>71.29</td><td>71.38</td></tr><tr><td>VID</td><td>65.56</td><td>67.57</td><td>70.30</td><td>73.38</td><td>73.40</td><td>73.61</td></tr><tr><td>RKD</td><td>64.52</td><td>64.43</td><td>71.50</td><td>72.28</td><td>73.21</td><td>72.21</td></tr><tr><td>PKT</td><td>67.13</td><td>66.52</td><td>73.01</td><td>74.10</td><td>74.69</td><td>73.89</td></tr><tr><td>AB</td><td>66.06</td><td>67.20</td><td>70.65</td><td>73.55</td><td>74.31</td><td>73.34</td></tr><tr><td>FT</td><td>61.78</td><td>60.99</td><td>70.29</td><td>71.75</td><td>72.50</td><td>72.03</td></tr><tr><td>NST</td><td>58.16</td><td>64.96</td><td>71.28</td><td>74.12</td><td>74.68</td><td>74.89</td></tr><tr><td>CRD</td><td>69.73</td><td>69.11</td><td>74.30</td><td>75.11</td><td>75.65</td><td>76.05</td></tr><tr><td>Ours</td><td>69.14</td><td>69.45</td><td>74.46</td><td>75.66</td><td>76.40</td><td>76.61</td></tr></table>",
|
| 1686 |
+
"bbox": [
|
| 1687 |
+
173,
|
| 1688 |
+
414,
|
| 1689 |
+
880,
|
| 1690 |
+
660
|
| 1691 |
+
],
|
| 1692 |
+
"page_idx": 13
|
| 1693 |
+
}
|
| 1694 |
+
]
|
parse/train/ZzwDy_wiWv/ZzwDy_wiWv_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ZzwDy_wiWv/ZzwDy_wiWv_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkgAGAVKPr/rkgAGAVKPr.md
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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\mathbf { X } \mathbf { u } ^ { \mathrm { { f } \dagger } }$ , Ross Goroshin†, Carles Gelada†, Kevin Swersky†,
|
| 5 |
+
Pierre-Antoine Manzagol† & Hugo Larochelle†
|
| 6 |
+
∗University of Toronto and Vector Institute, †Google AI, ‡University of California, Berkeley
|
| 7 |
+
Correspondence to: eleni@cs.toronto.edu
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Few-shot classification refers to learning a classifier for new classes given only a few examples. While a plethora of models have emerged to tackle it, we find the procedure and datasets that are used to assess their progress lacking. To address this limitation, we propose META-DATASET: a new benchmark for training and evaluating models that is large-scale, consists of diverse datasets, and presents more realistic tasks. We experiment with popular baselines and meta-learners on META-DATASET, along with a competitive method that we propose. We analyze performance as a function of various characteristics of test tasks and examine the models’ ability to leverage diverse training sources for improving their generalization. We also propose a new set of baselines for quantifying the benefit of meta-learning in META-DATASET. Our extensive experimentation has uncovered important research challenges and we hope to inspire work in these directions.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Few-shot learning refers to learning new concepts from few examples, an ability that humans naturally possess, but machines still lack. Improving on this aspect would lead to more efficient algorithms that can flexibly expand their knowledge without requiring large labeled datasets. We focus on few-shot classification: classifying unseen examples into one of $N$ new ‘test’ classes, given only a few reference examples of each. Recent progress in this direction has been made by considering a meta-problem: though we are not interested in learning about any training class in particular, we can exploit the training classes for the purpose of learning to learn new classes from few examples, thus acquiring a learning procedure that can be directly applied to new few-shot learning problems too.
|
| 16 |
+
|
| 17 |
+
This intuition has inspired numerous models of increasing complexity (see Related Work for some examples). However, we believe that the commonly-used setup for measuring success in this direction is lacking. Specifically, two datasets have emerged as de facto benchmarks for few-shot learning: Omniglot (Lake et al., 2015), and mini-ImageNet (Vinyals et al., 2016), and we believe that both of them are approaching their limit in terms of allowing one to discriminate between the merits of different approaches. Omniglot is a dataset of 1623 handwritten characters from 50 different alphabets and contains 20 examples per class (character). Most recent methods obtain very high accuracy on Omniglot, rendering the comparisons between them mostly uninformative. mini-ImageNet is formed out of 100 ImageNet (Russakovsky et al., 2015) classes (64/16/20 for train/validation/test) and contains 600 examples per class. Albeit harder than Omniglot, it has the same property that most recent methods trained on it present similar accuracy when controlling for model capacity. We advocate that a more challenging and realistic benchmark is required for further progress in this area.
|
| 18 |
+
|
| 19 |
+
More specifically, current benchmarks: 1) Consider homogeneous learning tasks. In contrast, real-life learning experiences are heterogeneous: they vary in terms of the number of classes and examples per class, and are unbalanced. 2) Measure only within-dataset generalization. However, we are eventually after models that can generalize to entirely new distributions (e.g., datasets). 3) Ignore the relationships between classes when forming episodes. Specifically, the coarse-grained classification of dogs and chairs may present different difficulties than the fine-grained classification of dog breeds, and current benchmarks do not establish a distinction between the two.
|
| 20 |
+
|
| 21 |
+
META-DATASET aims to improve upon previous benchmarks in the above directions: it is significantly larger-scale and is comprised of multiple datasets of diverse data distributions; its task creation is informed by class structure for ImageNet and Omniglot; it introduces realistic class imbalance; and it varies the number of classes in each task and the size of the training set, thus testing the robustness of models across the spectrum from very-low-shot learning onwards.
|
| 22 |
+
|
| 23 |
+
The main contributions of this work are: 1) A more realistic, large-scale and diverse environment for training and testing few-shot learners. 2) Experimental evaluation of popular models, and a new set of baselines combining inference algorithms of meta-learners with non-episodic training. 3) Analyses of whether different models benefit from more data, heterogeneous training sources, pre-trained weights, and meta-training. 4) A novel meta-learner that performs strongly on META-DATASET.
|
| 24 |
+
|
| 25 |
+
# 2 FEW-SHOT CLASSIFICATION: TASK FORMULATION AND APPROACHES
|
| 26 |
+
|
| 27 |
+
Task Formulation The end-goal of few-shot classification is to produce a model which, given a new learning episode with $N$ classes and a few labeled examples ( $k _ { c }$ per class, $c \in { 1 , \ldots , N } )$ , is able to generalize to unseen examples for that episode. In other words, the model learns from a training (support) set $\mathcal { S } = \{ ( \mathbf { x } _ { 1 } , y _ { 1 } ) , ( \mathbf { x } _ { 2 } , y _ { 2 } ) , \dots , ( \mathbf { x } _ { K } , y _ { K } ) \}$ (with $\textstyle K = \sum _ { c } k _ { c } )$ and is evaluated on a held-out test (query) set $\mathcal { Q } = \{ ( \mathbf { x } _ { 1 } ^ { * } , y _ { 1 } ^ { * } ) , ( \mathbf { x } _ { 2 } ^ { * } , y _ { 2 } ^ { * } ) , . . . , ( \mathbf { x } _ { T } ^ { * } , y _ { T } ^ { * } ) \}$ . Each example $\left( \mathbf { x } , y \right)$ is formed of an input vector $\mathbf { x } \in \mathbb { R } ^ { D }$ and a class label $y \in \{ 1 , \ldots , N \}$ . Episodes with balanced training sets (i.e., $k _ { c } = k$ , $\forall c )$ are usually described as ‘ $N$ -way, $k$ -shot’ episodes. Evaluation episodes are constructed by sampling their $N$ classes from a larger set $\mathcal { C } _ { t e s t }$ of classes and sampling the desired number of examples per class.
|
| 28 |
+
|
| 29 |
+
A disjoint set $\mathcal { C } _ { t r a i n }$ of classes is available to train the model; note that this notion of training is distinct from the training that occurs within a few-shot learning episode. Few-shot learning does not prescribe a specific procedure for exploiting $\mathcal { C } _ { t r a i n }$ , but a common approach matches the conditions in which the model is trained and evaluated (Vinyals et al., 2016). In other words, training often (but not always) proceeds in an episodic fashion. Some authors use training and testing to refer to what happens within any given episode, and meta-training and meta-testing to refer to using $\mathcal { C } _ { t r a i n }$ to turn the model into a learner capable of fast adaptation and $\mathcal { C } _ { t e s t }$ for evaluating its success to learn using few shots, respectively. This nomenclature highlights the meta-learning perspective alluded to earlier, but to avoid confusion we will adopt another common nomenclature and refer to the training and test sets of an episode as the support and query sets and to the process of learning from $\mathcal { C } _ { t r a i n }$ simply as training. We use the term ‘meta-learner’ to describe a model that is trained episodically, i.e., learns to learn across multiple tasks that are sampled from the training set $\mathcal { C } _ { t r a i n }$ .
|
| 30 |
+
|
| 31 |
+
Non-episodic Approaches to Few-shot Classification A natural non-episodic approach simply trains a classifier over all of the training classes $\mathcal { C } _ { t r a i n }$ at once, which can be parameterized by a neural network with a linear layer on top with one output unit per class. After training, this neural network is used as an embedding function $g$ that maps images into a meaningful representation space. The hope of using this model for few-shot learning is that this representation space is useful even for examples of classes that were not included in training. It would then remain to define an algorithm for performing few-shot classification on top of these representations of the images of a task. We consider two choices for this algorithm, yielding the $^ { \bullet } k$ -NN’ and ‘Finetune’ variants of this baseline.
|
| 32 |
+
|
| 33 |
+
Given a test episode, the $^ { \bullet } k$ -NN’ baseline classifies each query example as the class that its ‘closest’ support example belongs to. Closeness is measured by either Euclidean or cosine distance in the learned embedding space; a choice that we treat as a hyperparameter. On the other hand, the ‘Finetune’ baseline uses the support set of the given test episode to train a new ‘output layer’ on top of the embeddings $g$ , and optionally finetune those embedding too (another hyperparameter), for the purpose of classifying between the $N$ new classes of the associated task.
|
| 34 |
+
|
| 35 |
+
A variant of the ‘Finetune’ baseline has recently become popular: Baseline+ $^ { - + }$ (Chen et al., 2019), originally inspired by Gidaris & Komodakis (2018); Qi et al. (2018). It uses a ‘cosine classifier’ as the final layer $\ell ^ { 2 }$ -normalizing embeddings and weights before taking the dot product), both during the non-episodic training phase, and for evaluation on test episodes. We incorporate this idea in our codebase by adding a hyperparameter that optionally enables using a cosine classifier for the $\cdot _ { k }$ -NN’ (training only) and ‘Finetune’ (both phases) baselines.
|
| 36 |
+
|
| 37 |
+
Meta-Learners for Few-shot Classification In the episodic setting, models are trained end-to-end for the purpose of learning to build classifiers from a few examples. We choose to experiment with Matching Networks (Vinyals et al., 2016), Relation Networks (Sung et al., 2018), Prototypical Networks (Snell et al., 2017) and Model Agnostic Meta-Learning (MAML, Finn et al., 2017) since they cover a diverse set of approaches to few-shot learning. We also introduce a novel meta-learner which is inspired by the last two models.
|
| 38 |
+
|
| 39 |
+
In each training episode, episodic models compute for each query example ${ \mathbf { x } } ^ { * } \in \mathcal { Q }$ , the distribution for its label $p ( y ^ { * } | \mathbf { x } ^ { * } , \mathcal { S } )$ conditioned on the support set $s$ and allow to train this differentiablyparameterized conditional distribution end-to-end via gradient descent. The different models are distinguished by the manner in which this conditioning on the support set is realized. In all cases, the performance on the query set drives the update of the meta-learner’s weights, which include (and sometimes consist only of) the embedding weights. We briefly describe each method below.
|
| 40 |
+
|
| 41 |
+
Prototypical Networks Prototypical Networks construct a prototype for each class and then classify each query example as the class whose prototype is ‘nearest’ to it under Euclidean distance. More concretely, the probability that a query example $\mathbf { x } ^ { * }$ belongs to class $k$ is defined as:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
p ( y ^ { * } = k | \mathbf { x } ^ { * } , \mathcal { S } ) = \frac { \exp ( - | | g ( \mathbf { x } ^ { * } ) - \mathbf { c } _ { k } | | _ { 2 } ^ { 2 } ) } { \sum _ { k ^ { \prime } \in \{ 1 , \dots , N \} } \exp ( - | | g ( \mathbf { x } ^ { * } ) - \mathbf { c } _ { k ^ { \prime } } | | _ { 2 } ^ { 2 } ) }
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $\mathbf { c } _ { k }$ is the ‘prototype’ for class $k$ : the average of the embeddings of class $k$ ’s support examples.
|
| 48 |
+
|
| 49 |
+
Matching Networks Matching Networks (in their simplest form) label each query example as a (cosine) distance-weighted linear combination of the support labels:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
p ( y ^ { \ast } = k | \mathbf { x } ^ { \ast } , S ) = \sum _ { i = 1 } ^ { | S | } \alpha ( \mathbf { x } ^ { \ast } , \mathbf { x } _ { i } ) \mathbf { 1 } _ { y _ { i } = k } ,
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
where $\mathbf { 1 } _ { A }$ is the indicator function and $\alpha ( \mathbf { x } ^ { * } , \mathbf { x } _ { i } )$ is the cosine similarity between $g ( \mathbf { x } ^ { * } )$ and $g ( \mathbf { x } _ { i } )$ softmax-normalized over all support examples $\mathbf { x } _ { i }$ , where $1 \leq i \leq | S |$ .
|
| 56 |
+
|
| 57 |
+
Relation Networks Relation Networks are comprised of an embedding function $g$ as usual, and a ‘relation module’ parameterized by some additional neural network layers. They first embed each support and query using $g$ and create a prototype $p _ { c }$ for each class $c$ by averaging its support embeddings. Each prototype $p _ { c }$ is concatenated with each embedded query and fed through the relation module which outputs a number in [0, 1] representing the predicted probability that that query belongs to class $c$ . The query loss is then defined as the mean square error of that prediction compared to the (binary) ground truth. Both $g$ and the relation module are trained to minimize this loss.
|
| 58 |
+
|
| 59 |
+
MAML MAML uses a linear layer parametrized by $\mathbf { W }$ and $\mathbf { b }$ on top of the embedding function $g ( \cdot ; \theta )$ and classifies a query example as
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
p ( y ^ { * } | \mathbf { x } ^ { * } , S ) = \mathrm { s o f t m a x } ( \mathbf { b } ^ { \prime } + \mathbf { W } ^ { \prime } g ( \mathbf { x } ^ { * } ; \theta ^ { \prime } ) ) ,
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where the output layer parameters $\mathbf { W } ^ { \prime }$ and $\mathbf { b } ^ { \prime }$ and the embedding function parameters $\theta ^ { \prime }$ are obtained by performing a small number of within-episode training steps on the support set $S$ , starting from initial parameter values $( \mathbf { b } , \mathbf { W } , \theta )$ . The model is trained by backpropagating the query set loss through the within-episode gradient descent procedure and into $( \mathbf { b } , \mathbf { W } , \theta )$ . This normally requires computing second-order gradients, which can be expensive to obtain (both in terms of time and memory). For this reason, an approximation is often used whereby gradients of the within-episode descent steps are ignored. This variant is referred to as first-order MAML (fo-MAML) and was used in our experiments. We did attempt to use the full-order version, but found it to be impractically expensive (e.g., it caused frequent out-of-memory problems).
|
| 66 |
+
|
| 67 |
+
Moreover, since in our setting the number of ways varies between episodes, b, W are set to zero and are not trained (i.e., $\mathbf { b } ^ { \prime }$ , $\mathbf { W } ^ { \prime }$ are the result of within-episode gradient descent initialized at 0), leaving only $\theta$ to be trained. In other words, MAML focuses on learning the within-episode initialization $\theta$ of the embedding network so that it can be rapidly adapted for a new task.
|
| 68 |
+
|
| 69 |
+
Introducing Proto-MAML We introduce a novel meta-learner that combines the complementary strengths of Prototypical Networks and MAML: the former’s simple inductive bias that is evidently effective for very-few-shot learning, and the latter’s flexible adaptation mechanism.
|
| 70 |
+
|
| 71 |
+
As explained by Snell et al. (2017), Prototypical Networks can be re-interpreted as a linear classifier applied to a learned representation $g ( \mathbf { x } )$ . The use of a squared Euclidean distance means that output logits are expressed as
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
- \| g ( \mathbf { x } ^ { * } ) - \mathbf { c } _ { k } \| ^ { 2 } = - g ( \mathbf { x } ^ { * } ) ^ { T } g ( \mathbf { x } ^ { * } ) + 2 \mathbf { c } _ { k } ^ { T } g ( \mathbf { x } ^ { * } ) - \mathbf { c } _ { k } ^ { T } \mathbf { c } _ { k } = 2 \mathbf { c } _ { k } ^ { T } g ( \mathbf { x } ^ { * } ) - \| \mathbf { c } _ { k } \| ^ { 2 } + c o n s t a n t
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where constant is a class-independent scalar which can be ignored, as it leaves output probabilities unchanged. The $k$ -th unit of the equivalent linear layer therefore has weights $\mathbf { W } _ { k , \cdot } = 2 \mathbf { c } _ { k }$ and biases $b _ { k } = - | | \mathbf { c } _ { k } | | ^ { 2 }$ , which are both differentiable with respect to $\theta$ as they are a function of $g ( \cdot ; \theta )$ .
|
| 78 |
+
|
| 79 |
+
We refer to (fo-)Proto-MAML as the (fo-)MAML model where the task-specific linear layer of each episode is initialized from the Prototypical Network-equivalent weights and bias defined above and subsequently optimized as usual on the given support set. When computing the update for $\theta$ , we allow gradients to flow through the Prototypical Network-equivalent linear layer initialization. We show that this simple modification significantly helps the optimization of this model and outperforms vanilla fo-MAML by a large margin on META-DATASET.
|
| 80 |
+
|
| 81 |
+
# 3 META-DATASET: A NEW FEW-SHOT CLASSIFICATION BENCHMARK
|
| 82 |
+
|
| 83 |
+
META-DATASET aims to offer an environment for measuring progress in realistic few-shot classification tasks. Our approach is twofold: 1) changing the data and 2) changing the formulation of the task (i.e., how episodes are generated). The following sections describe these modifications in detail. The code is open source and publicly available1.
|
| 84 |
+
|
| 85 |
+
# 3.1 META-DATASET’S DATA
|
| 86 |
+
|
| 87 |
+
META-DATASET’s data is much larger in size than any previous benchmark, and is comprised of multiple existing datasets. This invites research into how diverse sources of data can be exploited by a meta-learner, and allows us to evaluate a more challenging generalization problem, to new datasets altogether. Specifically, META-DATASET leverages data from the following 10 datasets: ILSVRC-2012 (ImageNet, Russakovsky et al., 2015), Omniglot (Lake et al., 2015), Aircraft (Maji et al., 2013), CUB-200-2011 (Birds, Wah et al., 2011), Describable Textures (Cimpoi et al., 2014), Quick Draw (Jongejan et al., 2016), Fungi (Schroeder & Cui, 2018), VGG Flower (Nilsback & Zisserman, 2008), Traffic Signs (Houben et al., 2013) and MSCOCO (Lin et al., 2014). These datasets were chosen because they are free and easy to obtain, span a variety of visual concepts (natural and human-made) and vary in how fine-grained the class definition is. More information about each of these datasets is provided in the Appendix.
|
| 88 |
+
|
| 89 |
+
To ensure that episodes correspond to realistic classification problems, each episode generated in META-DATASET uses classes from a single dataset. Moreover, two of these datasets, Traffic Signs and MSCOCO, are fully reserved for evaluation, meaning that no classes from them participate in the training set. The remaining ones contribute some classes to each of the training, validation and test splits of classes, roughly with $70 \%$ / $15 \%$ / $15 \%$ proportions. Two of these datasets, ImageNet and Omniglot, possess a class hierarchy that we exploit in META-DATASET. For each dataset, the composition of splits is available online2.
|
| 90 |
+
|
| 91 |
+
ImageNet ImageNet is comprised of 82,115 ‘synsets’, i.e., concepts of the WordNet ontology, and it provides ‘is-a’ relationships for its synsets, thus defining a DAG over them. META-DATASET uses the 1K synsets that were chosen for the ILSVRC 2012 classification challenge and defines a new class split for it and a novel procedure for sampling classes from it for episode creation, both informed by its class hierarchy.
|
| 92 |
+
|
| 93 |
+
Specifically, we construct a sub-graph of the overall DAG whose leaves are the 1K classes of ILSVRC2012. We then ‘cut’ this sub-graph into three pieces, for the training, validation, and test splits, such that there is no overlap between the leaves of any of these pieces. For this, we selected the synsets ‘carnivore’ and ‘device’ as the roots of the validation and test sub-graphs, respectively. The leaves that are reachable from ‘carnivore’ and ‘device’ form the sets of the validation and test classes, respectively. All of the remaining leaves constitute the training classes. This method of splitting ensures that the training classes are semantically different from the test classes. We end up with 712 training, 158 validation and 130 test classes, roughly adhering to the standard $7 0 / 1 5 / 1 5 ( \% )$ splits.
|
| 94 |
+
|
| 95 |
+
Omniglot This dataset is one of the established benchmarks for few-shot classification as mentioned earlier. However, contrary to the common setup that flattens and ignores its two-level hierarchy of alphabets and characters, we allow it to influence the episode class selection in META-DATASET, yielding finer-grained tasks. We also use the original splits proposed in Lake et al. (2015): (all characters of) the ‘background’ and ‘evaluation’ alphabets are used for training and testing, respectively. However, we reserve the 5 smallest alphabets from the ‘background’ set for validation.
|
| 96 |
+
|
| 97 |
+
# 3.2 EPISODE SAMPLING
|
| 98 |
+
|
| 99 |
+
In this section we outline META-DATASET’s algorithm for sampling episodes, featuring hierarchicallyaware procedures for sampling classes of ImageNet and Omniglot, and an algorithm that yields realistically imbalanced episodes of variable shots and ways. The steps for sampling an episode for a given split are: Step 0) uniformly sample a dataset $\mathcal { D }$ , Step 1) sample a set of classes $\mathcal { C }$ from the classes of $\mathcal { D }$ assigned to the requested split, and Step 2) sample support and query examples from $\mathcal { C }$ .
|
| 100 |
+
|
| 101 |
+
Step 1: Sampling the episode’s class set This procedure differs depending on which dataset is chosen. For datasets without a known class organization, we sample the ‘way’ uniformly from the range [5, MAX-CLASSES], where MAX-CLASSES is either 50 or as many as there are available. Then we sample ‘way’ many classes uniformly at random from the requested class split of the given dataset. ImageNet and Omniglot use class-structure-aware procedures outlined below.
|
| 102 |
+
|
| 103 |
+
ImageNet class sampling We adopt a hierarchy-aware sampling procedure: First, we sample an internal (non-leaf) node uniformly from the DAG of the given split. The chosen set of classes is then the set of leaves spanned by that node (or a random subset of it, if more than 50). We prevent nodes that are too close to the root to be selected as the internal node, as explained in more detail in the Appendix. This procedure enables the creation of tasks of varying degrees of fine-grainedness: the larger the height of the internal node, the more coarse-grained the resulting episode.
|
| 104 |
+
|
| 105 |
+
Omniglot class sampling We sample classes from Omniglot by first sampling an alphabet uniformly at random from the chosen split of alphabets (train, validation or test). Then, the ‘way’ of the episode is sampled uniformly at random using the same restrictions as for the rest of the datasets, but taking care not to sample a larger number than the number of characters that belong to the chosen alphabet. Finally, the prescribed number of characters of that alphabet are randomly sampled. This ensures that each episode presents a within-alphabet fine-grained classification.
|
| 106 |
+
|
| 107 |
+
Step 2: Sampling the episode’s examples Having already selected a set of classes, the choice of the examples from them that will populate an episode can be broken down into three steps. We provide a high-level description here and elaborate in the Appendix with the accompanying formulas.
|
| 108 |
+
|
| 109 |
+
Step 2a: Compute the query set size The query set is class-balanced, reflecting the fact that we care equally to perform well on all classes of an episode. The number of query images per class is set to a number such that all chosen classes have enough images to contribute that number and still remain with roughly half on their images to possibly add to the support set (in a later step). This number is capped to 10 images per class.
|
| 110 |
+
|
| 111 |
+
Step 2b: Compute the support set size We allow each chosen class to contribute to the support set at most 100 of its remaining examples (i.e., excluding the ones added to the query set). We multiply this remaining number by a scalar sampled uniformly from the interval $( 0 , 1 ]$ to enable the potential generation of ‘few-shot’ episodes even when multiple images are available, as we are also interested in studying that end of the spectrum. We do enforce, however, that each chosen class has a budget for at least one image in the support set, and we cap the total support set size to 500 examples.
|
| 112 |
+
|
| 113 |
+
Step 2c: Compute the shot of each class We now discuss how to distribute the total support set size chosen above across the participating classes. The un-normalized proportion of the support set that will be occupied by a given chosen class is a noisy version of the total number of images of that class in the dataset. This design choice is made in the hopes of obtaining realistic class ratios, under the hypothesis that the dataset class statistics are a reasonable approximation of the real-world statistics of appearances of the corresponding classes. We ensure that each class has at least one image in the support set and distribute the rest according to the above rule.
|
| 114 |
+
|
| 115 |
+
After these steps, we complete the episode creation process by choosing the prescribed number of examples of each chosen class uniformly at random to populate the support and query sets.
|
| 116 |
+
|
| 117 |
+
# 4 RELATED WORK
|
| 118 |
+
|
| 119 |
+
In this work we evaluate four meta-learners on META-DATASET that we believe capture a good diversity of well-established models. Evaluating other few-shot classifiers on META-DATASET is beyond the scope of this paper, but we discuss some additional related models below.
|
| 120 |
+
|
| 121 |
+
Similarly to MAML, some train a meta-learner for quick adaptation to new tasks (Ravi & Larochelle, 2017; Munkhdalai & Yu, 2017; Rusu et al., 2019; Yoon et al., 2018). Others relate to Prototypical Networks by learning a representation on which differentiable training can be performed on some form of classifier (Bertinetto et al., 2019; Gidaris & Komodakis, 2018; Oreshkin et al., 2018). Others relate to Matching Networks in that they perform comparisons between pairs of support and query examples, using either a graph neural network (Satorras & Estrach, 2018) or an attention mechanism (Mishra et al., 2018). Finally, some make use of memory-augmented recurrent networks (Santoro et al., 2016), some learn to perform data augmentation (Hariharan & Girshick, 2017; Wang et al., 2018) in a low-shot learning setting, and some learn to predict the parameters of a large-shot classifier from the parameters learned in a few-shot setting (Wang & Hebert, 2016; Wang et al., 2017). Of relevance to Proto-MAML is MAML $^ { + + }$ (Antoniou et al., 2019), which consists of a collection of adjustments to MAML, such as multiple meta-trained inner loop learning rates and derivative-order annealing. Proto-MAML instead modifies the output weight initialization scheme and could be combined with those adjustments.
|
| 122 |
+
|
| 123 |
+
Finally, META-DATASET relates to other recent image classification benchmarks. The CVPR 2017 Visual Domain Decathlon Challenge trains a model on 10 different datasets, many of which are included in our benchmark, and measures its ability to generalize to held-out examples for those same datasets but does not measure generalization to new classes (or datasets). Hariharan & Girshick (2017) propose a benchmark where a model is given abundant data from certain base ImageNet classes and is tested on few-shot learning novel ImageNet classes in a way that doesn’t compromise its knowledge of the base classes. Wang et al. (2018) build upon that benchmark and propose a new evaluation protocol for it. Chen et al. (2019) investigate fine-grained few-shot classification using the CUB dataset (Wah et al., 2011, also featured in our benchmark) and crossdomain transfer between mini-ImageNet and CUB. Larger-scale few-shot classification benchmarks were also proposed using CIFAR-100 (Krizhevsky et al., 2009; Bertinetto et al., 2019; Oreshkin et al., 2018), tiered-ImageNet (Ren et al., 2018), and ImageNet-21k (Dhillon et al., 2019). Compared to these, META-DATASET contains the largest set of diverse datasets in the context of few-shot learning and is additionally accompanied by an algorithm for creating learning scenarios from that data that we advocate are more realistic than the previous ones.
|
| 124 |
+
|
| 125 |
+
# 5 EXPERIMENTS
|
| 126 |
+
|
| 127 |
+
Training procedure META-DATASET does not prescribe a procedure for learning from the training data. In these experiments, keeping with the spirit of matching training and testing conditions, we trained the meta-learners via training episodes sampled using the same algorithm as we used for META-DATASET’s evaluation episodes, described above. The choice of the dataset from which to sample the next episode was random uniform. The non-episodic baselines are trained to solve the large classification problem that results from ‘concatenating’ the training classes of all datasets.
|
| 128 |
+
|
| 129 |
+
Validation Another design choice was to perform validation on (the validation split of) ImageNet only, ignoring the validation sets of the other datasets. The rationale behind this choice is that the performance on ImageNet has been known to be a good proxy for the performance on different datasets. We used this validation performance to select our hyperparameters, including backbone architectures, image resolutions and model-specific ones. We describe these further in the Appendix.
|
| 130 |
+
|
| 131 |
+
Table 1: Few-shot classification results on META-DATASET using models trained on ILSVRC-2012 only (top) and trained on all datasets (bottom).
|
| 132 |
+
|
| 133 |
+
<table><tr><td rowspan=1 colspan=1>Test Source</td><td rowspan=1 colspan=1>k-NN</td><td rowspan=1 colspan=1>Finetune</td><td rowspan=1 colspan=1>MatchingNet</td><td rowspan=1 colspan=1>ProtoNet</td><td rowspan=1 colspan=1>fo-MAML</td><td rowspan=1 colspan=1>RelationNet</td><td rowspan=1 colspan=1>fo-Proto-MAML</td></tr><tr><td rowspan=1 colspan=1>ILSVRC</td><td rowspan=1 colspan=1>41.03</td><td rowspan=1 colspan=1>45.78</td><td rowspan=1 colspan=1>45.00</td><td rowspan=1 colspan=1>50.50</td><td rowspan=1 colspan=1>45.51</td><td rowspan=1 colspan=1>34.69</td><td rowspan=1 colspan=1>49.53</td></tr><tr><td rowspan=1 colspan=1>Omniglot</td><td rowspan=1 colspan=1>37.07</td><td rowspan=1 colspan=1>60.85</td><td rowspan=1 colspan=1>52.27</td><td rowspan=1 colspan=1>59.98</td><td rowspan=1 colspan=1>55.55</td><td rowspan=1 colspan=1>45.35</td><td rowspan=1 colspan=1>63.37</td></tr><tr><td rowspan=1 colspan=1>Aircraft</td><td rowspan=1 colspan=1>46.81</td><td rowspan=1 colspan=1>68.69</td><td rowspan=1 colspan=1>48.97</td><td rowspan=1 colspan=1>53.10</td><td rowspan=1 colspan=1>56.24</td><td rowspan=1 colspan=1>40.73</td><td rowspan=1 colspan=1>55.95</td></tr><tr><td rowspan=1 colspan=1>Birds</td><td rowspan=1 colspan=1>50.13</td><td rowspan=1 colspan=1>57.31</td><td rowspan=1 colspan=1>62.21</td><td rowspan=1 colspan=1>68.79</td><td rowspan=1 colspan=1>63.61</td><td rowspan=1 colspan=1>49.51</td><td rowspan=1 colspan=1>68.66</td></tr><tr><td rowspan=1 colspan=1>Textures</td><td rowspan=1 colspan=1>66.36</td><td rowspan=1 colspan=1>69.05</td><td rowspan=1 colspan=1>64.15</td><td rowspan=1 colspan=1>66.56</td><td rowspan=1 colspan=1>68.04</td><td rowspan=1 colspan=1>52.97</td><td rowspan=1 colspan=1>66.49</td></tr><tr><td rowspan=1 colspan=1>Quick Draw</td><td rowspan=1 colspan=1>32.06</td><td rowspan=1 colspan=1>42.60</td><td rowspan=1 colspan=1>42.87</td><td rowspan=1 colspan=1>48.96</td><td rowspan=1 colspan=1>43.96</td><td rowspan=1 colspan=1>43.30</td><td rowspan=1 colspan=1>51.52</td></tr><tr><td rowspan=1 colspan=1>Fungi</td><td rowspan=1 colspan=1>36.16</td><td rowspan=1 colspan=1>38.20</td><td rowspan=1 colspan=1>33.97</td><td rowspan=1 colspan=1>39.71</td><td rowspan=1 colspan=1>32.10</td><td rowspan=1 colspan=1>30.55</td><td rowspan=1 colspan=1>39.96</td></tr><tr><td rowspan=1 colspan=1>VGGFlower</td><td rowspan=1 colspan=1>83.10</td><td rowspan=1 colspan=1>85.51</td><td rowspan=1 colspan=1>80.13</td><td rowspan=1 colspan=1>85.27</td><td rowspan=1 colspan=1>81.74</td><td rowspan=1 colspan=1>68.76</td><td rowspan=1 colspan=1>87.15</td></tr><tr><td rowspan=1 colspan=1>Traffic Signs</td><td rowspan=1 colspan=1>44.59</td><td rowspan=1 colspan=1>66.79</td><td rowspan=1 colspan=1>47.80</td><td rowspan=1 colspan=1>47.12</td><td rowspan=1 colspan=1>50.93</td><td rowspan=1 colspan=1>33.67</td><td rowspan=1 colspan=1>48.83</td></tr><tr><td rowspan=1 colspan=1>MSCOCO</td><td rowspan=1 colspan=1>30.38</td><td rowspan=1 colspan=1>34.86</td><td rowspan=1 colspan=1>34.99</td><td rowspan=1 colspan=1>41.00</td><td rowspan=1 colspan=1>35.30</td><td rowspan=1 colspan=1>29.15</td><td rowspan=1 colspan=1>43.74</td></tr><tr><td rowspan=1 colspan=1>Avg.rank</td><td rowspan=1 colspan=1>5.7</td><td rowspan=1 colspan=1>2.9</td><td rowspan=1 colspan=1>4.65</td><td rowspan=1 colspan=1>2.65</td><td rowspan=1 colspan=1>3.7</td><td rowspan=1 colspan=1>6.55</td><td rowspan=1 colspan=1>1.85</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Test Source</td><td rowspan=1 colspan=1>k-NN</td><td rowspan=1 colspan=1>Finetune</td><td rowspan=1 colspan=1>MatchingNet</td><td rowspan=1 colspan=1>ProtoNet</td><td rowspan=1 colspan=1>fo-MAML</td><td rowspan=1 colspan=1>RelationNet</td><td rowspan=1 colspan=1>fo-Proto-MAML</td></tr><tr><td rowspan=1 colspan=1>ILSVRC</td><td rowspan=1 colspan=1>38.55</td><td rowspan=1 colspan=1>43.08</td><td rowspan=1 colspan=1>36.08</td><td rowspan=1 colspan=1>44.50</td><td rowspan=1 colspan=1>37.83</td><td rowspan=1 colspan=1>30.89</td><td rowspan=1 colspan=1>46.52</td></tr><tr><td rowspan=1 colspan=1>Omniglot</td><td rowspan=1 colspan=1>74.60</td><td rowspan=1 colspan=1>71.11</td><td rowspan=1 colspan=1>78.25</td><td rowspan=1 colspan=1>79.56</td><td rowspan=1 colspan=1>83.92</td><td rowspan=1 colspan=1>86.57</td><td rowspan=1 colspan=1>82.69</td></tr><tr><td rowspan=1 colspan=1>Aircraft</td><td rowspan=1 colspan=1>64.98</td><td rowspan=1 colspan=1>72.03</td><td rowspan=1 colspan=1>69.17</td><td rowspan=1 colspan=1>71.14</td><td rowspan=1 colspan=1>76.41</td><td rowspan=1 colspan=1>69.71</td><td rowspan=1 colspan=1>75.23</td></tr><tr><td rowspan=1 colspan=1>Birds</td><td rowspan=1 colspan=1>66.35</td><td rowspan=1 colspan=1>59.82</td><td rowspan=1 colspan=1>56.40</td><td rowspan=1 colspan=1>67.01</td><td rowspan=1 colspan=1>62.43</td><td rowspan=1 colspan=1>54.14</td><td rowspan=1 colspan=1>69.88</td></tr><tr><td rowspan=1 colspan=1>Textures</td><td rowspan=1 colspan=1>63.58</td><td rowspan=1 colspan=1>69.14</td><td rowspan=1 colspan=1>61.80</td><td rowspan=1 colspan=1>65.18</td><td rowspan=1 colspan=1>64.16</td><td rowspan=1 colspan=1>56.56</td><td rowspan=1 colspan=1>68.25</td></tr><tr><td rowspan=1 colspan=1>Quick Draw</td><td rowspan=1 colspan=1>44.88</td><td rowspan=1 colspan=1>47.05</td><td rowspan=1 colspan=1>60.81</td><td rowspan=1 colspan=1>64.88</td><td rowspan=1 colspan=1>59.73</td><td rowspan=1 colspan=1>61.75</td><td rowspan=1 colspan=1>66.84</td></tr><tr><td rowspan=1 colspan=1>Fungi</td><td rowspan=1 colspan=1>37.12</td><td rowspan=1 colspan=1>38.16</td><td rowspan=1 colspan=1>33.70</td><td rowspan=1 colspan=1>40.26</td><td rowspan=1 colspan=1>33.54</td><td rowspan=1 colspan=1>32.56</td><td rowspan=1 colspan=1>41.99</td></tr><tr><td rowspan=1 colspan=1>VGGFlower</td><td rowspan=1 colspan=1>83.47</td><td rowspan=1 colspan=1>85.28</td><td rowspan=1 colspan=1>81.90</td><td rowspan=1 colspan=1>86.85</td><td rowspan=1 colspan=1>79.94</td><td rowspan=1 colspan=1>76.08</td><td rowspan=1 colspan=1>88.72</td></tr><tr><td rowspan=1 colspan=1>Traffic Signs</td><td rowspan=1 colspan=1>40.11</td><td rowspan=1 colspan=1>66.74</td><td rowspan=1 colspan=1>55.57</td><td rowspan=1 colspan=1>46.48</td><td rowspan=1 colspan=1>42.91</td><td rowspan=1 colspan=1>37.48</td><td rowspan=1 colspan=1>52.42</td></tr><tr><td rowspan=1 colspan=1>MSCOCO</td><td rowspan=1 colspan=1>29.55</td><td rowspan=1 colspan=1>35.17</td><td rowspan=1 colspan=1>28.79</td><td rowspan=1 colspan=1>39.87</td><td rowspan=1 colspan=1>29.37</td><td rowspan=1 colspan=1>27.41</td><td rowspan=1 colspan=1>41.74</td></tr><tr><td rowspan=1 colspan=1>Avg.rank</td><td rowspan=1 colspan=1>5.05</td><td rowspan=1 colspan=1>3.6</td><td rowspan=1 colspan=1>4.95</td><td rowspan=1 colspan=1>2.85</td><td rowspan=1 colspan=1>4.25</td><td rowspan=1 colspan=1>5.8</td><td rowspan=1 colspan=1>1.5</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Pre-training We gave each meta-learner the opportunity to initialize its embedding function from the embedding weights to which the $k$ -NN Baseline model trained on ImageNet converged to. We treated the choice of starting from scratch or starting from this initialization as a hyperparameter. For a fair comparison with the baselines, we allowed the non-episodic models to start from this initialization too. This is especially important for the baselines in the case of training on all datasets since it offers the opportunity to start from ImageNet-pretrained weights.
|
| 136 |
+
|
| 137 |
+
Main results Table 1 displays the accuracy of each model on the test set of each dataset, after they were trained on ImageNet-only or all datasets. Traffic Signs and MSCOCO are not used for training in either case, as they are reserved for evaluation. We propose to use the average (over the datasets) rank of each method as our metric for comparison, where smaller is better. A method receives rank 1 if it has the highest accuracy, rank 2 if it has the second highest, and so on. If two models share the best accuracy, they both get rank 1.5, and so on. We find that fo-Proto-MAML is the top-performer according to this metric, Prototypical Networks also perform strongly, and the Finetune Baseline notably presents a worthy opponent3. We include more detailed versions of these tables displaying confidence intervals and per-dataset ranks in the Appendix.
|
| 138 |
+
|
| 139 |
+
Effect of training on all datasets instead of ImageNet only It’s interesting to examine whether training on (the training splits of) all datasets leads to improved generalizaton compared to training on (the training split of) ImageNet only. Specifically, while we might expect that training on more data helps improve generalization, it is an empirical question whether that still holds for heterogeneous data. We can examine this by comparing the performance of each model between the top and bottom sets of results of Table 1, corresponding to the two training sources (ImageNet only and all datasets, respectively). For convenience, Figure 1 visualizes this difference in a barplot. Notably, for Omniglot, Quick Draw and Aircraft we observe a substantial increase across the board from training on all sources. This is reasonable for datasets whose images are significantly different from ImageNet’s: we indeed expect to gain a large benefit from training on some images from (the training classes of) these datasets. Interestingly though, on the remainder of the test sources, we don’t observe a gain from all-dataset training. This result invites research into methods for exploiting heterogeneous data for generalization to unseen classes of diverse sources. Our experiments show that learning ‘naively’ across the training datasets (e.g., by picking the next dataset to use uniformly at random) does not automatically lead to that desired benefit in most cases.
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 1: The performance difference on test datasets, when training on all datasets instead of ILSVRC only. A positive value indicates an improvement from all-dataset training.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 2: The effect of different ways and shots on test performance (w/ $9 5 \%$ confidence intervals) when training on ImageNet.
|
| 146 |
+
|
| 147 |
+
Ways and shots analysis We further study the accuracy as a function of ‘ways’ (Figure 2a) and the class precision as a function of ‘shots’ (Figure 2b). As expected, we found that the difficulty increases as the way increases, and performance degrades. More examples per class, on the other hand, indeed make it easier to correctly classify that class. Interestingly, though, not all models benefit at the same rate from more data: Prototypical Networks and fo-Proto-MAML outshine other models in very-low-shot settings but saturate faster, whereas the Finetune baseline, Matching Networks, and fo-MAML improve at a higher rate when the shot increases. We draw the same conclusions when performing this analysis on all datasets, and include those plots in the Appendix. As discussed in the Appendix, we recommend including this analysis when reporting results on Meta-Dataset, aside from the main table. The rationale is that we’re not only interested in performing well on average, but also in performing well under different specifications of test tasks.
|
| 148 |
+
|
| 149 |
+
Effect of pre-training In Figures 3a and 3b, we quantify how beneficial it is to initialize the embedding network of meta-learners using the weights of the $k$ -NN baseline pre-trained on ImageNet, as opposed to starting their episodic training from scratch. We find this procedure to often be beneficial, both for ImageNet-only training and for training on all datasets. It seems that this ImageNet-influenced initialization drives the meta-learner towards a solution which yields increased performance on natural image test datasets, especially ILSVRC, Birds, Fungi, Flowers and MSCOCO.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: The effects of pre-training and meta-training (w/ $9 5 \%$ confidence intervals). (ImageNet) or (All datasets) is the training source.
|
| 153 |
+
|
| 154 |
+
Perhaps unsusprisingly, though, it underperforms on significantly different datasets such as Omniglot and Quick Draw. These findings show that, aside from the choice of the training data source(s) (e.g., ImageNet only or all datasets, as discussed above), the choice of the initialization scheme can also influence to an important degree the final solution and consequently the aptness of applying the resulting meta-learner to different data sources at test time. Finally, an interesting observation is that MAML seems to benefit the most from the pre-trained initialization, which may speak to the difficulty of optimization associated with that model.
|
| 155 |
+
|
| 156 |
+
Effect of meta-training We propose to disentangle the inference algorithm of each meta-learner from the fact that it is meta-learned, to assess the benefit of meta-learning on META-DATASET. To this end, we propose a new set of baselines: ‘Prototypical Networks Inference’, ‘Matching Networks Inference’, and ‘fo-Proto-MAML Inference’, that are trained non-episodically but evaluated episodically (for validation and testing) using the inference algorithm of the respective meta-learner. This is possible for these meta-learners as they don’t have any additional parameters aside from the embedding function that explicitly need to be learned episodically (as opposed to the relation module of Relation Networks, for example). We compare each Inference-only method to its corresponding meta-learner in Figures 3c and 3d. We find that these baselines are strong: when training on ImageNet only, we can usually observe a small benefit from meta-learning the embedding weights but this benefit often disappears when training on all datasets, in which case meta-learning sometimes actually hurts. We find this result very interesting and we believe it emphasizes the need for research on how to meta-learn across multiple diverse sources, an important challenge that META-DATASET puts forth.
|
| 157 |
+
|
| 158 |
+
Fine-grainedness analysis We use ILVRC-2012 to investigate the hypothesis that finer-grained tasks are harder than coarse-grained ones. Our findings suggest that while the test sub-graph is not rich enough to exhibit any trend, the performance on the train sub-graph does seem to agree with this hypothesis. We include the experimental setup and results for this analysis in the Appendix.
|
| 159 |
+
|
| 160 |
+
# 6 CONCLUSION
|
| 161 |
+
|
| 162 |
+
We have introduced a new large-scale, diverse, and realistic environment for few-shot classification. We believe that our exploration of various models on META-DATASET has uncovered interesting directions for future work pertaining to meta-learning across heterogeneous data: it remains unclear what is the best strategy for creating training episodes, the most appropriate validation creation and the most appropriate initialization. Current models don’t always improve when trained on multiple sources and meta-learning is not always beneficial across datasets. Current models are also not robust to the amount of data in test episodes, each excelling in a different part of the spectrum. We believe that addressing these shortcomings consitutes an important research goal moving forward.
|
| 163 |
+
|
| 164 |
+
# AUTHOR CONTRIBUTIONS
|
| 165 |
+
|
| 166 |
+
Eleni, Hugo, and Kevin came up with the benchmark idea and requirements. Eleni developed the core of the project, and worked on the experiment design and management with Tyler and Kevin, as well as experiment analysis. Carles, Ross, Kelvin, Pascal, Vincent, and Tyler helped extend the benchmark by adding datasets. Eleni, Vincent, and Utku contributed the Prototypical Networks, Matching Networks, and Relation Networks implementations, respectively. Tyler implemented baselines, MAML (with Kevin) and Proto-MAML models, and updated the backbones to support them. Writing was mostly led by Eleni, with contributions by Hugo, Vincent, and Kevin and help from Tyler and Pascal for visualizations. Pascal and Pierre-Antoine worked on code organization, efficiency, and open-sourcing, Pascal and Vincent optimized the efficiency of the data input pipeline. Pierre-Antoine supervised the code development process and reviewed most of the changes, Hugo and Kevin supervised the overall direction of the research.
|
| 167 |
+
|
| 168 |
+
# ACKNOWLEDGMENTS
|
| 169 |
+
|
| 170 |
+
We would like to thank Chelsea Finn for fruitful discussions and advice on tuning fo-MAML and ensuring the correctness of implementation, as well as Zack Nado and Dan Moldovan for the initial dataset code that was adapted, and Cristina Vasconcelos for spotting an issue in the ranking of models. Finally, we’d like to thank John Bronskill for suggesting that we experiment with a larger inner-loop learning rate for MAML which indeed significantly improved our fo-MAML results on META-DATASET.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Antreas Antoniou, Harrison Edwards, and Amos Storkey. How to train your MAML. In Proceedings of the International Conference on Learning Representations, 2019.
|
| 175 |
+
|
| 176 |
+
Luca Bertinetto, Joao F. Henriques, Philip Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. In Proceedings of the International Conference on Learning Representations, 2019.
|
| 177 |
+
|
| 178 |
+
Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In Proceedings of the International Conference on Learning Representations, 2019.
|
| 179 |
+
|
| 180 |
+
M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, and A. Vedaldi. Describing textures in the wild. In IEEE Conference on Computer Vision and Pattern Recognition, 2014.
|
| 181 |
+
|
| 182 |
+
Guneet S. Dhillon, Pratik Chaudhari, Avinash Ravichandran, and Stefano Soatto. A baseline for few-shot image classification. arXiv, abs/1909.02729, 2019.
|
| 183 |
+
|
| 184 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the International Conference of Machine Learning, 2017.
|
| 185 |
+
|
| 186 |
+
Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In IEEE Conference on Computer Vision and Pattern Recognition, 2018.
|
| 187 |
+
|
| 188 |
+
Bharath Hariharan and Ross Girshick. Low-shot visual recognition by shrinking and hallucinating features. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3018–3027, 2017.
|
| 189 |
+
|
| 190 |
+
Sebastian Houben, Johannes Stallkamp, Jan Salmen, Marc Schlipsing, and Christian Igel. Detection of traffic signs in real-world images: The German Traffic Sign Detection Benchmark. In International Joint Conference on Neural Networks, 2013.
|
| 191 |
+
|
| 192 |
+
Jonas Jongejan, Henry Rowley, Takashi Kawashima, Jongmin Kim, and Nick Fox-Gieg. The Quick, Draw! – A.I. experiment. quickdraw.withgoogle.com, 2016.
|
| 193 |
+
|
| 194 |
+
Alex Krizhevsky et al. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
|
| 195 |
+
|
| 196 |
+
Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015.
|
| 197 |
+
|
| 198 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In European Conference on Computer Vision, pp. 740–755, 2014.
|
| 199 |
+
|
| 200 |
+
Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv, abs/1306.5151, 2013.
|
| 201 |
+
|
| 202 |
+
Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive metalearner. In Proceedings of the International Conference on Learning Representations, 2018.
|
| 203 |
+
|
| 204 |
+
Tsendsuren Munkhdalai and Hong Yu. Meta networks. In Proceedings of the International Conference on Machine Learning, pp. 2554–2563, 2017.
|
| 205 |
+
|
| 206 |
+
M-E. Nilsback and A. Zisserman. Automated flower classification over a large number of classes. In Proceedings of the Indian Conference on Computer Vision, Graphics and Image Processing, 2008.
|
| 207 |
+
|
| 208 |
+
Boris N. Oreshkin, Pau Rodriguez, and Alexandre Lacoste. TADAM: Task dependent adaptive metric for improved few-shot learning. In Advances in Neural Information Processing Systems, pp. 719–729, 2018.
|
| 209 |
+
|
| 210 |
+
Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5822–5830, 2018.
|
| 211 |
+
|
| 212 |
+
Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proceedings of the International Conference on Learning Representations, 2017.
|
| 213 |
+
|
| 214 |
+
Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. In Proceedings of the International Conference on Learning Representations, 2018.
|
| 215 |
+
|
| 216 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
|
| 217 |
+
|
| 218 |
+
Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In Proceedings of the International Conference on Learning Representations, 2019.
|
| 219 |
+
|
| 220 |
+
Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
|
| 221 |
+
|
| 222 |
+
Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Metalearning with memory-augmented neural networks. In Proceedings of the International Conference on Machine Learning, pp. 1842–1850, 2016.
|
| 223 |
+
|
| 224 |
+
Victor Garcia Satorras and Joan Bruna Estrach. Few-shot learning with graph neural networks. In Proceedings of the International Conference on Learning Representations, 2018.
|
| 225 |
+
|
| 226 |
+
Brigit Schroeder and Yin Cui. FGVCx fungi classification challenge 2018. github.com/ visipedia/fgvcx_fungi_comp, 2018.
|
| 227 |
+
|
| 228 |
+
Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pp. 4077–4087, 2017.
|
| 229 |
+
|
| 230 |
+
Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1199–1208, 2018.
|
| 231 |
+
|
| 232 |
+
Oriol Vinyals, Charles Blundell, Tim Lillicrap, and Daan Wierstra. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pp. 3630–3638, 2016.
|
| 233 |
+
|
| 234 |
+
C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. The Caltech-UCSD Birds-200-2011 Dataset. Technical Report CNS-TR-2011-001, California Institute of Technology, 2011.
|
| 235 |
+
|
| 236 |
+
Yu-Xiong Wang and Martial Hebert. Learning to learn: Model regression networks for easy small sample learning. In European Conference on Computer Vision, pp. 616–634. Springer, 2016.
|
| 237 |
+
|
| 238 |
+
Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Learning to model the tail. In Advances in Neural Information Processing Systems, pp. 7029–7039, 2017.
|
| 239 |
+
|
| 240 |
+
Yu-Xiong Wang, Ross Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7278–7286, 2018.
|
| 241 |
+
|
| 242 |
+
Jaesik Yoon, Taesup Kim, Ousmane Dia, Sungwoong Kim, Yoshua Bengio, and Sungjin Ahn. Bayesian model-agnostic meta-learning. In Advances in Neural Information Processing Systems, 2018.
|
| 243 |
+
|
| 244 |
+
# APPENDIX
|
| 245 |
+
|
| 246 |
+
.1 RECOMMENDATION FOR REPORTING RESULTS ON META-DATASET
|
| 247 |
+
|
| 248 |
+
We recommend that future work on META-DATASET reports two sets of results:
|
| 249 |
+
|
| 250 |
+
1. The main tables storing the average (over 600 test episodes) accuracy of each method on each dataset, after it has been trained on ImageNet only and on All datasets, where the evaluation metric is the average rank. This corresponds to Table 1 in our case (or the more complete version in Table 2 in the Appendix).
|
| 251 |
+
2. The plots that measure robustness in variations of shots and ways. In our case these are Figures 2b and 2a in the main text for ImageNet-only training, and Figures 5b and 5a in the Appendix for the case of training on all datasets.
|
| 252 |
+
|
| 253 |
+
We propose to use both of these aspects to evaluate performance on META-DATASET: it is not only desirable to perform well on average, but also to perform well under different specifications of test tasks, as it is not realistic in general to assume that we will know in advance what setup (number of ways and shots) will be encountered at test time. Our final source code will include scripts for generating these plots and for automatically computing ranks given a table to help standardize the procedure for reporting results.
|
| 254 |
+
|
| 255 |
+
# .2 DETAILS OF META-DATASET’S SAMPLING ALGORITHM
|
| 256 |
+
|
| 257 |
+
We now provide a complete description of certain steps that were explained on a higher level in the main paper.
|
| 258 |
+
|
| 259 |
+
STEP 1: SAMPLING THE EPISODE’S CLASS SET
|
| 260 |
+
|
| 261 |
+
ImageNet class sampling The procedure we use for sampling classes for an ImageNet episode is the following. First, we sample a node uniformly at random from the set of ‘eligible’ nodes of the DAG structure corresponding to the specified split (train, validation or test). An internal node is ‘eligible’ for this selection if it spans at least 5 leaves, but no more than 392 leaves. The number 392 was chosen because it is the smallest number so that, collectively, all eligible internal nodes span all leaves in the DAG. Once an eligible node is selected, some of the leaves that it spans will constitute the classes of the episode. Specifically, if the number of those leaves is no greater than 50, we use all of them. Otherwise, we randomly choose 50 of them.
|
| 262 |
+
|
| 263 |
+
This procedure enables the creation of tasks of varying degrees of fine-grainedness. For instance, if the sampled internal node has a small height, the leaf classes that it spans will represent semanticallyrelated concepts, thus posing a fine-grained classification task. As the height of the sampled node increases, we ‘zoom out’ to consider a broader scope from which we sample classes and the resulting episodes are more coarse-grained.
|
| 264 |
+
|
| 265 |
+
STEP 2: SAMPLING THE EPISODE’S EXAMPLES
|
| 266 |
+
|
| 267 |
+
a) Computing the query set size The query set is class-balanced, reflecting the fact that we care equally to perform well on all classes of an episode. The number of query images per class is computed as:
|
| 268 |
+
|
| 269 |
+
$$
|
| 270 |
+
q = \operatorname* { m i n } \left\{ 1 0 , \left( \operatorname* { m i n } _ { c \in \mathcal { C } } \lfloor 0 . 5 * \lvert I m ( c ) \rvert \rfloor \right) \right\}
|
| 271 |
+
$$
|
| 272 |
+
|
| 273 |
+
where $\mathcal { C }$ is the set of selected classes and $I m ( c )$ denotes the set of images belonging to class $c$ . The min over classes ensures that each class has at least $q$ images to add to the query set, thus allowing it to be class-balanced. The 0.5 multiplier ensures that enough images of each class will be available to add to the support set, and the minimum with 10 prevents the query set from being too large.
|
| 274 |
+
|
| 275 |
+
b) Computing the support set size We compute the total support set size as:
|
| 276 |
+
|
| 277 |
+
$$
|
| 278 |
+
| S | = \operatorname* { m i n } \left\{ 5 0 0 , \sum _ { c \in \mathcal { C } } \left[ \beta \operatorname* { m i n } \{ 1 0 0 , | I m ( c ) | - q \} \right] \right\}
|
| 279 |
+
$$
|
| 280 |
+
|
| 281 |
+
where $\beta$ is a scalar sampled uniformly from interval $( 0 , 1 ]$ . Intuitively, each class on average contributes either all its remaining examples (after placing $q$ of them in the query set) if there are less than 100 or 100 otherwise, to avoid having too large support sets. The multiplication with $\beta$ enables the potential generation of smaller support sets even when multiple images are available, since we are also interested in examining the very-low-shot end of the spectrum. The ‘ceiling’ operation ensures that each selected class will have at least one image in the support set. Finally, we cap the total support set size to 500.
|
| 282 |
+
|
| 283 |
+
c) Computing the shot of each class We are now ready to compute the ‘shot’ of each class. Specifically, the proportion of the support set that will be devoted to class $c$ is computed as:
|
| 284 |
+
|
| 285 |
+
$$
|
| 286 |
+
R _ { c } = \frac { \exp ( \alpha _ { c } ) | I m ( c ) | } { \displaystyle \sum _ { c ^ { \prime } \in \mathcal { C } } \exp ( \alpha _ { c } ^ { \prime } ) | I m ( c ^ { \prime } ) | }
|
| 287 |
+
$$
|
| 288 |
+
|
| 289 |
+
where $\alpha _ { c }$ is sampled uniformly from the interval $[ \log ( 0 . 5 ) , \log ( 2 ) )$ . Intuitively, the un-normalized proportion of the support set that will be occupied by class $c$ is a noisy version of the total number of images of that class in the dataset $I m ( c )$ . This design choice is made in the hopes of obtaining realistic class ratios, under the hypothesis that the dataset class statistics are a reasonable approximation of the real-world statistics of appearances of the corresponding classes. The shot of a class $c$ is then set to:
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
k _ { c } = \operatorname* { m i n } \left\{ \lfloor { R _ { c } * ( | S | - | \mathcal { C } | ) } \rfloor + 1 , | I m ( c ) | - q \right\}
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
which ensures that at least one example is selected for each class, with additional examples selected proportionally to $R _ { c }$ , if enough are available.
|
| 296 |
+
|
| 297 |
+
# .3 DATASETS
|
| 298 |
+
|
| 299 |
+
META-DATASET is formed of data originating from 10 different image datasets. A complete list of the datasets we use is the following.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 4: Training examples taken from the various datasets forming META-DATASET.
|
| 303 |
+
|
| 304 |
+
ILSVRC-2012 (ImageNet, Russakovsky et al., 2015) A dataset of natural images from 1000 categories (Figure 4a). We removed some images that were duplicates of images in another dataset in META-DATASET (43 images that were also part of Birds) or other standard datasets of interest (92 from Caltech-101 and 286 from Caltech-256). The complete list of duplicates is part of the source code release.
|
| 305 |
+
|
| 306 |
+
Omniglot (Lake et al., 2015) A dataset of images of 1623 handwritten characters from 50 different alphabets, with 20 examples per class (Figure 4b). While recently Vinyals et al. (2016) proposed a new split for this dataset, we instead make use of the original intended split Lake et al. (2015) which is more challenging since the split is on the level of alphabets (30 training alphabets and 20 evaluation alphabets), not characters from those alphabets, therefore posing a more challenging generalization problem. Out of the 30 training alphabets, we hold out the 5 smallest ones (i.e., with the least number of character classes) to form our validation set, and use the remaining 25 for training.
|
| 307 |
+
|
| 308 |
+
Aircraft (Maji et al., 2013) A dataset of images of aircrafts spanning 102 model variants, with 100 images per class (Figure 4c). The images are cropped according to the providing bounding boxes, in order not to include other aircrafts, or the copyright text at the bottom of images.
|
| 309 |
+
|
| 310 |
+
CUB-200-2011 (Birds, Wah et al., 2011) A dataset for fine-grained classification of 200 different bird species (Figure 4d). We did not use the provided bounding boxes to crop the images, instead the full images are used, which provides a harder challenge.
|
| 311 |
+
|
| 312 |
+
Describable Textures (DTD, Cimpoi et al., 2014) A texture database, consisting of 5640 images, organized according to a list of 47 terms (categories) inspired from human perception (Figure 4e).
|
| 313 |
+
|
| 314 |
+
Quick Draw (Jongejan et al., 2016) A dataset of 50 million black-and-white drawings across 345 categories, contributed by players of the game Quick, Draw! (Figure 4f).
|
| 315 |
+
|
| 316 |
+
Fungi (Schroeder & Cui, 2018) A large dataset of approximately 100K images of nearly 1,500 wild mushrooms species (Figure 4g).
|
| 317 |
+
|
| 318 |
+
VGG Flower (Nilsback & Zisserman, 2008) A dataset of natural images of 102 flower categories. The flowers chosen to be ones commonly occurring in the United Kingdom. Each class consists of between 40 and 258 images (Figure 4h).
|
| 319 |
+
|
| 320 |
+
Traffic Signs (Houben et al., 2013) A dataset of 50,000 images of German road signs in 43 classes (Figure 4i).
|
| 321 |
+
|
| 322 |
+
MSCOCO Lin et al. (2014) A dataset of images collected from Flickr with 1.5 million object instances belonging to 80 classes labelled and localized using bounding boxes. We choose the train2017 split and create images crops from original images using each object instance’s groundtruth bounding box (Figure 4j).
|
| 323 |
+
|
| 324 |
+
# .4 HYPERPARAMETERS
|
| 325 |
+
|
| 326 |
+
We used three architectures: a commonly-used four-layer convolutional network, an 18-layer residual network and a wide residual network. While some of the baseline models performed best with the latter, we noticed that the meta-learners preferred the resnet-18 backbone and rarely the four-layerconvnet. For Relation Networks only, we also allow the option to use another architecture, aside from the aforementioned three, inspired by the four-layer-convnet used in the Relation Networks paper (Sung et al., 2018). The main difference is that they used the usual max-pooling operation only in the first two layers, omitting it in the last two, yielding activations of larger spatial dimensions. In our case, we found that these increased spatial dimensions did not fit in memory, so as a compromise we used max-pooling on the first 3 out of the 4 layer of the convnet.
|
| 327 |
+
|
| 328 |
+
For fo-MAML and fo-Proto-MAML, we tuned the inner-loop learning rate, the number of inner loop steps, and the number of additional such steps to be performed in evaluation (i.e., validation or test) episodes.
|
| 329 |
+
|
| 330 |
+
For the baselines, we tuned whether the cosine classifier of Baseline $^ { + + }$ will be used, as opposed to a standard forward pass through a linear classification layer. Also, since Chen et al. (2019) added weight normalization (Salimans & Kingma, 2016) to their implementation of the cosine classifier layer, we also implemented this and created a hyperparameter choice for whether or not it is enabled. This hyperparameter is independent from the one that decides if the cosine classifier is used. Both are applicable to the $k$ -NN Basline (for its all-way training classification task) and to the Finetune Baseline (both for its all-way training classification and for its within-episode classification at validation and test times). For the Finetune Baseline, we tuned a binary hyperparameter deciding if gradient descent or ADAM is used for the within-task optimization. We also tuned the decision of whether all embedding layers are finetuned or, alternatively, the embedding is held fixed and only the final classifier on top of it is optimized. Finally, we tuned the number of finetuning steps that will be carried out.
|
| 331 |
+
|
| 332 |
+
We also tried two different image resolutions: the commonly-used $8 4 \mathrm { x } 8 4$ and $1 2 6 \mathrm { x } 1 2 6$ . Finally, we tuned the learning rate schedule and weight decay and we used ADAM to train all of our models. All other details, dataset splits and the complete set of best hyperparameters discovered for each model are included in the source code.
|
| 333 |
+
|
| 334 |
+
# .5 COMPLETE MAIN RESULTS AND RANK COMPUTATION
|
| 335 |
+
|
| 336 |
+
Rank computation We rank models by decreasing order of accuracy and handle ties by assigning tied models the average of their ranks. A tie between two models occurs when a $9 5 \%$ confidence interval statistical test on the difference between their mean accuracies is inconclusive in rejecting the null hypothesis that this difference is 0. Our recommendation is that this test is ran to determine if ties occur. As mentioned earlier, our source code will include this computation.
|
| 337 |
+
|
| 338 |
+
Complete main tables For completeness, Table 2 presents a more detailed version of Table 1 that also displays confidence intervals and per-dataset ranks computed using the above procedure.
|
| 339 |
+
|
| 340 |
+
# .6 ANALYSIS OF PERFORMANCE ACROSS SHOTS AND WAYS
|
| 341 |
+
|
| 342 |
+
For completeness, in Figure 5 we show the results of the analysis of the robustness to different ways and shots for the variants of the models that were trained on all datasets. We observe the same trends as discussed in our Experiments section for the variants of the models that were trained on ImageNet.
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 5: Analysis of performance as a function of the episode’s way, shots for models whose training source is (the training data of) all datasets. The bands display $9 5 \%$ confidence intervals.
|
| 346 |
+
|
| 347 |
+
# .7 EFFECT OF TRAINING ON ALL DATASETS OVER TRAINING ON ILSVRC-2012 ONLY
|
| 348 |
+
|
| 349 |
+
For more clearly observing whether training on all datasets leads to improved generalization over training on ImageNet only, Figure 6 shows side-to-side the performance of each model trained on ILSVRC only vs. all datasets. The difference between the performance of the all-dataset trained models versus the ImageNet-only trained ones is also visualized in Figure 1 in the main paper.
|
| 350 |
+
|
| 351 |
+
As discussed in the main paper, we notice that we do not always observe a clear generalization advantage in training from a wider collection of image datasets. While some of the datasets that were added to the meta-training phase did see an improvement across all models, in particular for Omniglot and Quick Draw, this was not true across the board. In fact, in certain cases the performance is slightly worse. We believe that more successfully leveraging diverse sources of data is an interesting open research problem.
|
| 352 |
+
|
| 353 |
+
<table><tr><td rowspan=12 colspan=2>P1II-1IINPreriieaerTIAW-AN(%) eoeepgate(h) roeghtat :prrataPP0I1LIE1NuileleTrieegNN-JJnos ssse</td><td rowspan=1 colspan=1>P1II-1IIN</td><td rowspan=1 colspan=1>171) 75533555</td><td rowspan=1 colspan=1>33 33333535</td><td rowspan=1 colspan=1>355 555055.75</td><td rowspan=1 colspan=1>(1.1) 96.:0999.99</td><td rowspan=1 colspan=1>14)08006599</td><td rowspan=1 colspan=1>31 1511-1111</td><td rowspan=1 colspan=1>31) 451-15.61</td><td rowspan=1 colspan=1>(1) 69051518</td><td rowspan=1 colspan=1>27370533355</td><td rowspan=1 colspan=1>11 15121111</td><td rowspan=1 colspan=1>18%</td><td rowspan=12 colspan=2>'sjarerep l tt larern saaert (g)</td><td rowspan=12 colspan=2>PPPI-010INPerreleryae) (y) sorapgrte (y) rrerhee pogiaTIVW-0J1N010IduleieTrmeueNN-Jrsnne see</td><td rowspan=1 colspan=1>PPPI-010IN</td><td rowspan=1 colspan=1>13 1:535155</td><td rowspan=1 colspan=1>(77) /6:0099:57</td><td rowspan=1 colspan=1>17) 713-15.55</td><td rowspan=1 colspan=1>(1) 70:1干88:69</td><td rowspan=1 colspan=1>155) 5351555</td><td rowspan=1 colspan=1>(1)46:0048.99</td><td rowspan=1 colspan=1>(1/1111</td><td rowspan=1 colspan=1>(1) /9:0-7788</td></tr><tr><td rowspan=2 colspan=1>Preriieaer</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>12)1531555</td><td rowspan=2 colspan=1>(1.1) 155511:55</td><td rowspan=2 colspan=1>37) 6906771</td><td rowspan=2 colspan=1>32:11.3351155</td><td rowspan=2 colspan=1>32)55153730</td><td rowspan=2 colspan=1>(2) 080591'89</td><td rowspan=2 colspan=1>3) 5335731</td><td rowspan=2 colspan=1>279) 111571:65</td><td rowspan=2 colspan=1>555</td><td></td><td rowspan=2 colspan=1>Perreler</td><td rowspan=2 colspan=1>30) 135537.30</td><td rowspan=2 colspan=1>(1) 6/0711.98</td><td rowspan=2 colspan=1>(77)33555:65</td><td rowspan=2 colspan=1>34) 574/55.41</td><td rowspan=2 colspan=1>33) 355355551</td><td rowspan=2 colspan=1>(.1) 571511.55</td><td rowspan=2 colspan=1>39) 35335555</td><td rowspan=2 colspan=1>(L) 9/0干80'9,</td><td rowspan=2 colspan=1>33) 17.5335.31</td><td rowspan=2 colspan=1>2) 7:0-11-71</td><td rowspan=2 colspan=1>58</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td></td></tr><tr><td rowspan=2 colspan=1>TIAW-AN</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>32.4) 71:3355.55</td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>() 18:0055:58</td><td rowspan=2 colspan=1>35 57535331</td><td rowspan=2 colspan=1>35531333321</td><td rowspan=2 colspan=1>23</td><td></td><td rowspan=2 colspan=1>TIVW-0J</td><td rowspan=2 colspan=1>3.11311311:11</td><td rowspan=2 colspan=1>370)7753575</td><td rowspan=2 colspan=1>11) 67.011.94</td><td rowspan=2 colspan=1>14) 83:131124</td><td rowspan=2 colspan=1>31:113:355555</td><td rowspan=2 colspan=1>35 315511.51</td><td rowspan=2 colspan=1>39)33331115</td><td rowspan=2 colspan=1>(9) 18:005666</td><td rowspan=2 colspan=1>2) 113337:55</td><td rowspan=2 colspan=1>(9) 801153:65</td><td rowspan=2 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td></td></tr><tr><td rowspan=2 colspan=1>PP0I1LIE</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>35.) 71111115</td><td rowspan=2 colspan=1>42) 111-1511</td><td rowspan=2 colspan=1>() 111-11.14</td><td rowspan=2 colspan=1>97</td><td></td><td rowspan=2 colspan=1>1N010Id</td><td rowspan=2 colspan=1>(275555155</td><td rowspan=2 colspan=1>111)1515155</td><td rowspan=2 colspan=1>111) .75.5555.55</td><td rowspan=2 colspan=1>(72) 77-1215:19</td><td rowspan=2 colspan=1>35555555555</td><td rowspan=2 colspan=1>(7) 680-8859</td><td rowspan=2 colspan=1>40115:3:7535</td><td rowspan=2 colspan=1>(8) 151515.97</td><td rowspan=2 colspan=1>44) 41:1-1144</td><td rowspan=2 colspan=1>37) 70.3758.30</td><td rowspan=2 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(7) 80.1-96.84</td><td rowspan=1 colspan=1></td><td></td></tr><tr><td rowspan=1 colspan=1>1Nuilele</td><td rowspan=1 colspan=1>(4)111-11.14</td><td rowspan=1 colspan=1>32) 31335155</td><td rowspan=1 colspan=1>11)77.0056.85</td><td rowspan=1 colspan=1>(75 7555555</td><td rowspan=1 colspan=1>(9)15051555</td><td rowspan=1 colspan=1>444) 10.1-1.55</td><td rowspan=1 colspan=1>35301-57.00</td><td rowspan=1 colspan=1>(9) 15071108</td><td rowspan=1 colspan=1>222)451-1145</td><td rowspan=1 colspan=1>32)10:1-66.50</td><td rowspan=1 colspan=1>49.4</td><td></td><td rowspan=1 colspan=1>uleie</td><td rowspan=1 colspan=1>9) 001-80.90</td><td rowspan=1 colspan=1>171) 111511135</td><td rowspan=1 colspan=1>(59) 960F11.69</td><td rowspan=1 colspan=1>39) 00:1-1594</td><td rowspan=1 colspan=1>(9) 4/:0F08:19</td><td rowspan=1 colspan=1>(6155.3353:35</td><td rowspan=1 colspan=1>33) 55.5311.15</td><td rowspan=1 colspan=1>(1) 7/0517:17</td><td rowspan=1 colspan=1>35 83115171</td><td rowspan=1 colspan=1>(6) 96:0561:85</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=2 colspan=1>Trieeg</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>35 71333155</td><td rowspan=2 colspan=1>(7.0) 07:0015.99</td><td rowspan=2 colspan=1>424)151-175</td><td rowspan=2 colspan=1>33 55:3355.33</td><td rowspan=2 colspan=1>355 85555575</td><td rowspan=2 colspan=1>(1) 11357/.99</td><td rowspan=2 colspan=1>35) 360578.51</td><td rowspan=2 colspan=1>29</td><td></td><td rowspan=2 colspan=1>Trmeue</td><td rowspan=2 colspan=1>21) 001-7.55</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(9) 951-15.14</td><td rowspan=1 colspan=1>3.5) 55.531581</td><td rowspan=2 colspan=1>33 555353555</td><td rowspan=2 colspan=1>1) 17:331599</td><td rowspan=2 colspan=1>338011175</td><td rowspan=2 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>4)011-1114</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(9) 951-15.14</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>(9) 68:0-18.94AEiett</td><td rowspan=2 colspan=1>55) 05535535PPg</td><td rowspan=2 colspan=1>4)15357399Janees</td><td rowspan=2 colspan=1>33) 80.3570.71mrra rinn</td><td rowspan=2 colspan=1>34) 77:1-75.99un</td><td rowspan=2 colspan=1>34) 8900358JAEDte</td><td rowspan=2 colspan=1>(9)71177155susis orgerg</td><td rowspan=2 colspan=1>39) 3553335HPCCCO</td><td rowspan=2 colspan=1>57YeI B</td><td></td><td rowspan=2 colspan=1>3555555551ITSSSC</td><td rowspan=2 colspan=1>(9) 80.1707.541o8ru0</td><td rowspan=2 colspan=1>(L) 78:0-86:69Arrtett</td><td rowspan=2 colspan=1>3.5 5.5555.55sppg</td><td rowspan=2 colspan=1>35) 55353759saanixes</td><td rowspan=2 colspan=1>() 11-88t4mrrarainn</td><td rowspan=2 colspan=1>37.5 .75.535531un</td><td rowspan=2 colspan=1>37)57005438JAEEelee</td><td rowspan=2 colspan=1>(9) 01IF1104susis ogger</td><td rowspan=2 colspan=1>35) 96557555HPCCCO</td><td rowspan=2 colspan=1>5Va</td></tr><tr><td rowspan=1 colspan=1>JTSSSI</td><td rowspan=1 colspan=1>1o8iu0i</td><td></td></tr></table>
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
Figure 6: Accuracy on the test datasets, when training on ILSVRC only or All datasets (same results as shown in the main tables). The bars display $9 5 \%$ confidence intervals.
|
| 357 |
+
|
| 358 |
+
# .8 EFFECT OF PRE-TRAINING VERSUS TRAINING FROM SCRATCH
|
| 359 |
+
|
| 360 |
+
For each meta-learner, we selected the best model (based on validation on ImageNet’s validation split) out of the ones that used the pre-trained initialization, and the best out of the ones that trained from scratch. We then ran the evaluation of each on (the test split of) all datasets in order to quantify how beneficial this pre-trained initialization is. We performed this experiment twice: for the models that are trained on ImageNet only and for the models that are trained on (the training splits of) all datasets.
|
| 361 |
+
|
| 362 |
+
The results of this investigation were reported in the main paper in Figure 3a and Figure 3b, for ImageNet-only training and all dataset training, respectively. We show the same results in Figure 7, printed larger to facilitate viewing of error bars. For easier comparison, we also plot the difference in performance of the models that were pre-trained over the ones that weren’t, in Figures 8a and 8b. These figures make it easier to spot that while using the pre-trained solution usually helps for datasets that are visually not too different from ImageNet, it may hurt for datasets that are significantly different from it, such as Omniglot, Quickdraw (and surprisingly Aircraft). Note that these three datasets are the same three that we found benefit from training on All datasets instead of ImageNet-only. It appears that using the pre-trained solution biases the final solution to specialize on ImageNet-like datasets.
|
| 363 |
+
|
| 364 |
+
# .9 EFFECT OF META-LEARNING VERSUS INFERENCE-ONLY
|
| 365 |
+
|
| 366 |
+
Figure 9 shows the same plots as in Figures 3c and 3d but printed larger to facilitate viewing of error bars. Furthermore, as we have done for visualizing the observed gain of pre-training, we also present in Figures 10a and 10b the gain observed from meta-learning as opposed to training the corresponding inference-only baseline, as explained in the Experiments section of the main paper. This visulization makes it clear that while meta-training usually helps on ImageNet (or doesn’t hurt too much), it sometimes hurts when it is performed on all datasets, emphasizing the need for further research into best practices of meta-learning across heterogeneous sources.
|
| 367 |
+
|
| 368 |
+
# .10 FINEGRAINEDNESS ANALYSIS
|
| 369 |
+
|
| 370 |
+
We investigate the hypothesis that finer-grained tasks are more challenging than coarse-grained ones by creating binary ImageNet episodes with the two classes chosen uniformly at random from the DAG’s set of leaves. We then define the degree of coarse-grainedness of a task as the height of the lowest common ancestor of the two chosen leaves, where the height is defined as the length of the longest path from the lowest common ancestor to one of the selected leaves. Larger heights then correspond to coarser-grained tasks. We present these results in Figure 11. We do not detect a significant trend when performing this analysis on the test DAG. The results on the training DAG, though, do seem to indicate that our hypothesis holds to some extent. We conjecture that this may be due to the richer structure of the training DAG, but we encourage further investigation.
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 7: Comparing pre-training to starting from scratch. Same plots as Figure 3a and Figure 3b, only larger.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
(a) The gain from pre-training (ImageNet).
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
(b) The gain from pre-training (All datasets).
|
| 380 |
+
Figure 8: The performance difference of initializing the embedding weights from a pre-trained solution, before episodically training on ImageNet or all datasets, over using a random initialization of those weights. The pre-trained weights that we consider are the ones that the $k$ -NN baseline converged to when it was trained on ImageNet. Positive values indicate that this pre-training was beneficial.
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure 9: Comparing the meta-trained variant of meta-learners against their inference-only counterpart. Same plots as Figure 3c and Figure 3d, only larger.
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 10: The performance difference of meta-learning over the corresponding inference-only baseline of each meta-learner. Positive values indicate that meta-learning was beneficial.
|
| 387 |
+
|
| 388 |
+

|
| 389 |
+
(a) Fine-grainedness Analysis (on ImageNet’s test (b) Fine-grainedness Analysis (on ImageNet’s train graph) graph graph)
|
| 390 |
+
Figure 11: Analysis of performance as a function of the degree of fine-grainedness. Larger heights correspond to coarser-grained tasks. The bands display $9 5 \%$ confidence intervals.
|
| 391 |
+
|
| 392 |
+
Table 3: Improvement of fo-MAML when using a larger inner learning rate $\alpha$
|
| 393 |
+
(a) Models trained on ILSVRC-2012 only.
|
| 394 |
+
|
| 395 |
+
<table><tr><td rowspan="2">Test Source</td><td colspan="2">Method: Accuracy (%) ± confidence (%)</td></tr><tr><td>fo-MAML α = 0.01 (old)</td><td>fo-MAML α≈ 0.1</td></tr><tr><td>ILSVRC</td><td>36.09±1.01</td><td>45.51±1.11</td></tr><tr><td>Omniglot</td><td>38.67±1.39</td><td>55.55±1.54</td></tr><tr><td>Aircraft</td><td>34.50±0.90</td><td>56.24±1.11</td></tr><tr><td>Birds</td><td>49.10±1.18</td><td>63.61±1.06</td></tr><tr><td>Textures</td><td>56.50±0.80</td><td>68.04±0.81</td></tr><tr><td>Quick Draw</td><td>27.24±1.24</td><td>43.96±1.29</td></tr><tr><td>Fungi</td><td>23.50±1.00</td><td>32.10±1.10</td></tr><tr><td>VGGFlower</td><td>66.42±0.96</td><td>81.74±0.83</td></tr><tr><td>Traffic Signs</td><td>33.23±1.34</td><td>50.93±1.51</td></tr><tr><td>MSCOCO</td><td>27.52±1.11</td><td>35.30±1.23</td></tr></table>
|
| 396 |
+
|
| 397 |
+
(b) Models trained on all datasets.
|
| 398 |
+
|
| 399 |
+
<table><tr><td rowspan="2">Test Source</td><td colspan="2">Method: Accuracy (%) ± confidence (%)</td></tr><tr><td>fo-MAML α = 0.01 (old)</td><td>fo-MAML α≈ 0.1</td></tr><tr><td>ILSVRC</td><td>32.36±1.02</td><td>37.83±1.01</td></tr><tr><td>Omniglot</td><td>71.91±1.20</td><td>83.92±0.95</td></tr><tr><td>Aircraft</td><td>52.76±0.90</td><td>76.41±0.69</td></tr><tr><td>Birds</td><td>47.24±1.14</td><td>62.43��1.08</td></tr><tr><td>Textures</td><td>56.66±0.74</td><td>64.16±0.83</td></tr><tr><td>Quick Draw</td><td>50.50±1.19</td><td>59.73±1.10</td></tr><tr><td>Fungi</td><td>21.02±0.99</td><td>33.54±1.11</td></tr><tr><td>VGG Flower</td><td>70.93±0.99</td><td>79.94±0.84</td></tr><tr><td>Traffic Signs</td><td>34.18±1.26</td><td>42.91±1.31</td></tr><tr><td>MSCOCO</td><td>24.05±1.10</td><td>29.37±1.08</td></tr></table>
|
| 400 |
+
|
| 401 |
+
.11 THE IMPORTANCE OF MAML’S INNER-LOOP LEARNING RATE HYPERPARAMETER.
|
| 402 |
+
|
| 403 |
+
The camera-ready version includes updated results for MAML and Proto-MAML following an external suggestion to experiment with larger values for the inner-loop learning rate $\alpha$ of MAML. We found that re-doing our hyperparameter search with a revised range that includes larger $\alpha$ values significantly improved fo-MAML’s performance on META-DATASET. For consistency, we applied the same change to fo-Proto-MAML and re-ran those experiments too.
|
| 404 |
+
|
| 405 |
+
We found that the value of this $\alpha$ that performs best for fo-MAML both for training on ImageNet only and training on all datasets is approximately 0.1, which is an order of magnitude larger than our previous best value. Interestingly, fo-Proto-MAML does not choose such a large $\alpha$ value, with best $\alpha$ being 0.0054 when training on ImageNet only and 0.02 when training on all datasets. Plausibly this difference can be attributed to the better initialization of Proto-MAML which requires a less aggressive optimization for the adaptation to each new task. This hypothesis is also supported by the fact that fo-Proto-MAML chooses to take fewer adaptation steps than fo-MAML does. The complete set of best discovered hyperparameters is available in our public code.
|
| 406 |
+
|
| 407 |
+
To emphasize the importance of properly tuning this hyperparameter, Table 3 displays the previous best and the new best fo-MAML results side-by-side, showcasing the large performance gap when using the appropriate value for $\alpha$ .
|
| 408 |
+
|
| 409 |
+
# 12 THE CHOICE OF A META-VALIDATION PROCEDURE FOR META-DATASE
|
| 410 |
+
|
| 411 |
+
The design choice we made, as discussed in the main paper, is to use (the meta-validation set of) ImageNet only for model selection in all of our experiments. In the absence of previous results on the topic, this is a reasonable strategy since ImageNet has been known to consitute a useful proxy for performance on other datasets. However, it is likely that this is not the optimal choice: there might be certain hyperparameters for a given model that work best for held-out ImageNet episodes, but not for held-out episodes of other datasets. An alternative meta-validation scheme would be to use the average (across datasets) validation accuracy as an indicator for early stopping and model selection. We did not choose this method due to concerns about the reliability of this average performance. Notably, taking a simple average would over-emphasize larger datasets, or might over-emphasize datasets with natural images (as opposed to Omniglot and Quickdraw). Nevertheless, whether this strategy is beneficial is an interesting empirical question.
|
| 412 |
+
|
| 413 |
+
# .13 ADDITIONAL PER-DATASET ANALYSIS OF SHOTS AND WAYS
|
| 414 |
+
|
| 415 |
+
In our previous analysis of performance across different shots and ways (Figures 2b, 2a, and 5), the performance is averaged over all evaluation datasets. In this section we further break down those plots by presenting the results separately for each dataset. Figures 12 and 13 show the analysis of performance as a function of ways and shots (respectively) for each evaluation dataset, for models that were trained on ImageNet only. For completeness, Figures 14 and 15 show the same for the models trained on (the training splits of) all datasets.
|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
Figure 12: The performance across different ways, with $9 5 \%$ confidence intervals, shown separately for each evaluation dataset. All models had been trained on ImageNet-only.
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
Figure 13: The performance across different shots, with $9 5 \%$ confidence intervals, shown separately for each evaluation dataset. All models had been trained on ImageNet-only.
|
| 422 |
+
|
| 423 |
+

|
| 424 |
+
Figure 14: The performance across different ways, with $9 5 \%$ confidence intervals, shown separately for each evaluation dataset. All models had been trained on (the training splits of) all datasets.
|
| 425 |
+
|
| 426 |
+

|
| 427 |
+
Figure 15: The performance across different shots, with $9 5 \%$ confidence intervals, shown separately for each evaluation dataset. All models had been trained on (the training splits of) all datasets.
|
parse/train/rkgAGAVKPr/rkgAGAVKPr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkgAGAVKPr/rkgAGAVKPr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkgAGAVKPr/rkgAGAVKPr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/uyKk_avJ-p4/uyKk_avJ-p4.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning
|
| 2 |
+
|
| 3 |
+
# Maxwell Nye∗ MIT
|
| 4 |
+
|
| 5 |
+
Joshua B. Tenenbaum MIT
|
| 6 |
+
|
| 7 |
+
Michael Henry Tessler MIT DeepMind
|
| 8 |
+
|
| 9 |
+
Brenden M. Lake NYU Facebook AI Research
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Human reasoning can be understood as an interplay between two systems: the intuitive and associative (“System 1”) and the deliberative and logical (“System 2”). Neural sequence models—which have been increasingly successful at performing complex, structured tasks—exhibit the advantages and failure modes of System 1: they are fast and learn patterns from data, but are often inconsistent and incoherent. In this work, we seek a lightweight, training-free means of improving existing System 1-like sequence models by adding System 2-inspired logical reasoning. We explore several variations on this theme in which candidate generations from a neural sequence model are examined for logical consistency by a symbolic reasoning module, which can either accept or reject the generations. Our approach uses neural inference to mediate between the neural System 1 and the logical System 2. Results in robust story generation and grounded instruction-following show that this approach can increase the coherence and accuracy of neurally-based generations.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Despite recent success, neural sequence models often fail to produce consistent and coherent generations. When generating stories, language models may forget the attributes of specific characters (such as personality and background information) (Welleck et al., 2018), ignore previously established relationships between characters (such as family relationships) (Sinha et al., 2019), or otherwise contradict prior statements (Brown et al., 2020). Similarly, neural models can make statements that contradict basic world knowledge or the logical entailment structure of known facts.
|
| 18 |
+
|
| 19 |
+
Lake & Murphy (2020) illustrated several of these issues with GPT-2 (Radford et al., 2019). When given prompts of the form “A dolphin is a ”, GPT-2 predicts that the most likely answer is “mammal”, “fish”, or “bird” depending on small differences in the wording of the prompt. In another example, GPT-2 states that unicorns have “four horns,” directly after implying that unicorns only have one horn. Upon diagnosing such issues, it is unclear how to apply a targeted fix to the model, especially if retraining or fine-tuning is impractical.
|
| 20 |
+
|
| 21 |
+
In this work, we draw on insights from cognitive science, especially from “dual process” theories of reasoning (Evans, 2003), to explore how neural sequence models can better interface with prior knowledge and be made more coherent and consistent. According to dual process theories, human cognition can be understood as an interplay between a more intuitive and associative “System 1” and a more deliberative and logical “System 2.” Within this broad framework, automatic actions are driven by System 1, whereas System 2 engages for more deliberative control: for example, judging the validity of a logical argument that requires multiple steps of reasoning (Kahneman, 2013).
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Schematic of dual-system approach to text generation. Conditioned on previous text, a “System $1 ^ { \circ }$ neural generation model produces candidate next sentences. Semantic parses for each candidate are generated via few-shot parsing from GPT-3 and compared to a minimal world model to check consistency. Only candidates consistent with the world model state are incorporated into the final generation.
|
| 25 |
+
|
| 26 |
+
The prominent neural language models of today are single systems, with weaknesses akin to those exhibited by the human System 1. For example, the cognitive reflection test (CRT) (Frederick, 2005) is a classic probe of System 1 vs. System 2 reasoning in humans. Participants answer a set of simple questions that have superficially compelling, but logically invalid, answers. These incorrect answers are often generated as a first “gut” response (putatively, by System 1 intuitive thinking); upon reflection, however, participants often realize that their responses were not logically or mathematically consistent (via more explicit System 2 reasoning). Consider the CRT problem on the left below:
|
| 27 |
+
|
| 28 |
+
A ball and a bat cost $\$ 10$ . The bat costs one dollar more than the ball. How much does the ball cost?
|
| 29 |
+
|
| 30 |
+
<table><tr><td>Total cost in prompt</td><td>GPT-3 response</td></tr><tr><td>$1.10</td><td>10 cents</td></tr><tr><td>$1.20</td><td>20 cents</td></tr><tr><td>$1.30</td><td>$0.30</td></tr><tr><td>$1.70</td><td>$0.70</td></tr></table>
|
| 31 |
+
|
| 32 |
+
Reading quickly, you might be tempted to say the ball costs 10 cents. Most participants give this response, in fact, especially if they are under time pressure or have limited attention (Kahneman, 2013). Of course, if the bat is $\$ 1.00$ more than the ball, and the ball costs 10 cents, then the total cost would be $\$ 120$ . The correct answer is that the ball costs 5 cents. Notably, in this and other classic CRT problems, GPT-3 (Brown et al., 2020) predicts the same “gut” response (prediction in red above; the table above shows that adjusting the price in the prompt also leads to similar effects; see Appendix Figure 8 for more CRT examples). GPT-3 appears vulnerable to the same sort of intuitive, unsystematic pattern recognition errors as humans—in this case, incorrectly subtracting one dollar from $\$ 1.10$ , without confirming that the answer satisfies each of the problem constraints.
|
| 33 |
+
|
| 34 |
+
Numerous studies have shown that engagement of System 2-style effort can help “override or inhibit default responses emanating from System 1” (Evans, 2003), correcting inconsistent or un-systematic intuitive impulses. For example, when System 2 is engaged by asking people to take more time to respond, people’s accuracy improves on the CRT task above (Kahneman, 2013). It has been argued that integrating System 2 processing could similarly improve AI systems (Goyal & Bengio, 2020; Garcez & Lamb, 2020), and here we explore this idea as applied to neural sequence models.
|
| 35 |
+
|
| 36 |
+
In this work, we take inspiration from dual process theories to explore a neuro-symbolic generation system, wherein predictions from a neural model are treated as System 1 proposals, and a logical, deliberative System 2 filters these proposals for consistency and soundness (see Figure 1). We further take inspiration from the fact that humans often do not need explicit supervision to reason about new problems or domains (e.g., see human evaluation task in Section 4.2) and require that the System 2 module not need additional problem-specific training, especially on example contradictions or commonsense violations. People can handle novelty by reconfiguring, rather than retraining, their internal models (Lake et al., 2017), and we strive to build machine systems capable of the same. We show how a lightweight, easy-to-implement System 2 model can help improve coherence and consistency by adding a small amount of symbolic reasoning.
|
| 37 |
+
|
| 38 |
+
We tackle two kinds of domains: text generation and instruction following. In both cases, we construct generative models over sequences by using a neural generation model to propose candidate generations and a symbolic world model that can accept or reject the generations and resample proposals if necessary. We first illustrate the approach by generating short stories based on the bAbI dataset (Weston et al., 2015); this pedagogical, synthetic example illustrates how basic commonsense knowledge of objects, agents, and places can inform a text generation model. We then test our approach on rich, natural language vignettes based on CLUTRR (Sinha et al., 2019), focusing on ensuring consistency of family and interpersonal relationships. In both text generation domains, we interface between the explicit logical knowledge/reasoning of System 2 and generations of System 1 using a few-shot learning approach with state-of-the-art neural language models (GPT-3), which requires no additional training or fine-tuning. Even using off-the-shelf transformers and symbolic solvers, our dual-system model improves the consistency and coherence of text generations as measured by human judges. We test our approach also on instruction following, showing how goalprediction models and execution models can easily be combined to achieve improved performance in low-data regimes. We show improvements over previous work in the gSCAN grounded compositional challenge (Ruis et al., 2020); a dual-system model requires much less data to train than previous models, and achieves higher accuracy and stronger generalization. Overall, our findings indicate that neuro-symbolic, dual process models are a promising means of addressing longstanding problems of robustness and consistency in neural sequence models.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
Our approach incorporates semantic parsing (Liang, 2016) as a component of a generative process, where neural generation is used in conjunction with parsing techniques. In our text generation experiments, we employ GPT-3 to perform few-shot semantic parsing without fine-tuning. Related work includes few or zero-shot semantic parsing using pre-training techniques and paraphrasing (Su & Yan, 2017; Herzig & Berant, 2020). It also includes semantic parsing systems trained either without supervision (Liang et al., 2017; Mou et al., 2017; Muhlgay et al., 2019), or with synthetic language data (Marzoev et al., 2020; Xu et al., 2020b).
|
| 43 |
+
|
| 44 |
+
One popular technique for improving neural generations is generate-and-rerank, wherein one model generates proposals and another reranks them. This broad approach has been used in image generation (Ramesh et al., 2021), text generation (Holtzman et al., 2018; Shen et al., 2019; Deng et al., 2020), dialogue systems (for control, coherence and safety (Welleck et al., 2018; Smith et al., 2020; Nie et al., 2020; Xu et al., 2020a)), and instruction following (Kurita & Cho, 2020). Reranking is generally used to improve outputs with respect to relatively broad, holistic criteria. Here, our goal is to make generation robust to particular types of logical errors by pruning with respect to explicit symbolic constraints. Our approach can thus be considered closely related to techniques which employ explicit search to find generations satisfying particular logical constraints. Similar methods, such as guess-and-check or beam search pruning, have had success in neural program synthesis (Devlin et al., 2017; Nye et al., 2020).
|
| 45 |
+
|
| 46 |
+
Recent work in NLP has used template-based planning, in which a model generates text by first generating a plan or skeleton, and filling in the missing words to produce naturalistic text (Xu et al., 2018; Hua & Wang, 2020). To generate stories, Martin et al. (2018) parses previous sentences into events and does planning in event space. Our work extends previous entity/relation/event planning in that the world model is not used for planning, but rather for post-checking candidate generations. Structured parsing of this type is also related to dialog tracking techniques such as slot-filling (Pieraccini et al., 1992). In our work, fully compositional logical facts are extracted from utterances. It is therefore more closely related to systems which extract programs from dialogue, such as Andreas et al. (2020).
|
| 47 |
+
|
| 48 |
+
Recent work has also studied incorporating symbolic constraints into a neural decoding strategy in the context of natural language. Miao et al. (2019) introduce an MCMC-based inference-time propose-and-reject strategy for satisfying constraints. They test on constraints such as paraphrase and grammatical error correction. Lu et al. (2020) introduces “NeuroLogic decoding,” which uses logical constraints on neural language models to produce generations which contain (or do not contain) required (or forbidden) keywords. In these works, the constraints are lexical or based on word/sentence similarity (and provided in the problem setup for Lu et al. (2020)), whereas we study logical constraints on the world state decoded directly from observations or generations at test time. Other approaches for solving reasoning tasks end-to-end include Goyal et al. (2021), Serafini & d’Avila Garcez (2016), and Schlag & Schmidhuber (2018).
|
| 49 |
+
|
| 50 |
+
# 3 Integrating System 1 and System 2
|
| 51 |
+
|
| 52 |
+
We introduce our dual-system approach using examples from the bAbI domain (Weston et al., 2015), which we also use to perform diagnostic experiments. Consider generating a simple story involving people, places and objects, such as (from Figure 1):
|
| 53 |
+
|
| 54 |
+
Daniel went to the garden. Mary traveled to the office. Daniel grabbed the apple.
|
| 55 |
+
|
| 56 |
+
A model tasked with generating such stories must juggle several simultaneous demands: staying on topic and maintaining consistency of style and other textural elements (for which people rely on System 1), as well as maintaining consistency with previous statements and commonsense knowledge (for which people rely on both systems). Consider continuing the story with one of the following:
|
| 57 |
+
|
| 58 |
+
(a) Daniel went to the patio. (b) Mary dropped the apple there.
|
| 59 |
+
|
| 60 |
+
Sentence (a) is reasonable; sentence (b) is not because it is Daniel, not Mary, who has the apple. During generation, how might a model distinguish between these candidates? Perhaps a well-trained neural language model could track constraints of these sorts. Neural language models to date, however, often violate these types of commonsense, hard constraints without a large high-quality corpus or explicit training on detecting violations of commonsense (Sinha et al., 2019).
|
| 61 |
+
|
| 62 |
+
We address this problem by decomposing text generation into two parts: candidate generation facilitated by deep neural networks and a logical pruning process implemented via a separate symbolic module. Consider again the example above. To ensure consistency, our model would extract from the text the features of the world that are subject to the hard, logical constraints, such as the location of objects and who is holding them. These constraints can then be checked against an explicit representation of current state of the world. For sentences (a) and (b), the system would extract and go(Daniel, patio) and drop(Mary, apple), respectively. A minimal world model would track the state of the apple, such that it maintains apple.holder $=$ Daniel (or equivalently, Daniel.inventory $=$ [apple]). When such a model is given a parse of a candidate generation, drop(Mary, apple), the mismatch between the current state and the proposed change would cause a violation, and the candidate generation will be rejected.
|
| 63 |
+
|
| 64 |
+
The main steps of our general approach are illustrated in Figure 1: generate proposals from a System 1 proposal model, extract facts with a fact extraction model, and filter proposed generations by ensuring that they satisfy the constraints given by the extracted facts and the minimal world model.
|
| 65 |
+
|
| 66 |
+
System 1: Generation. We use neural sequence models to produce System 1 generations. In text generation domains, we use a large, pre-trained model that can be fine-tuned or conditioned via a short prompt to generate relevant text. Text sampled from the System 1 model will be treated as candidate utterances, which will be parsed and filtered by System 2 (described below). For the bAbI examples, we use GPT-3 as our System 1 proposal model through few-shot prompting with 10 example bAbI stories as context, generating a new story one candidate sentence at a time.
|
| 67 |
+
|
| 68 |
+
System 2: Fact extraction. A fact extractor, or parser, is used to mediate between the System 1 candidate proposals and the minimal world model within System 2. In our text generation domains, we use a pre-trained GPT-3 model without fine-tuning to perform parsing.
|
| 69 |
+
|
| 70 |
+
For bAbI, our prompt consist of an initial descriptive sentence “Please parse the following statements into commands. The available commands are pickup, drop, and go.” and a small set $( < 1 0 )$ of representative semantic parsing examples (input $=$ sentences; output $=$ correct parses, such as go(Bob, roof)). The parse of each utterance is produced via few-shot prompting (Brown et al., 2020): the utterance is added to the end of the prompt, and the subsequent GPT-3 generation is interpreted as the target parse. We found that this simple parsing technique works well and could easily be applied to other parsing-based tasks, as in Shin et al. (2021). The parsing prompts are reproduced in full in the Appendix. As discussed in Section 5, for the $\mathrm { g S C A N }$ instruction following domain, fact extraction is performed with a learned goal location prediction model.
|
| 71 |
+
|
| 72 |
+
System 2: Minimal world model. We use a lightweight, incomplete description of the state of the world as a world model in each domain, e.g., commonsense information about the people, objects and locations (Figure 1). The goal is not to track and verify all the possible information; instead, we aim for minimalism, capturing just a few commonsense (or application-critical) variables that we want to ensure are correct. The world model facilitates tracking of long-range logical dependencies and logical consequences, especially those which are not readily decodable from surface forms. The world model also lets us integrate rule-based world-knowledge without retraining (and without the need for a large set of labeled examples).
|
| 73 |
+
|
| 74 |
+
For the bAbI examples, the minimal world model keeps track of the people, locations and objects introduced in the story so far (Figure 1). This encodes constraints on possible actions related to human core knowledge competencies (objects, agents, places) present early in human development (Spelke & Kinzler, 2007); specifically, a person or object can only be in one place at a time, an object can only be possessed by a single person at a time, a person cannot “go” to a room they are already in, and a person cannot pick up an object if it is in a different room. See the Appendix for details.
|
| 75 |
+
|
| 76 |
+
Search. At generation time, the interaction between System 1 generation and System 2 parsing yields a neuro-symbolic, guess-and-check search strategy. In a text generation scenario, where text is sampled from the model, our dual-system model improves upon a naive, neural-only sampling method by using the System 2 model to reject candidate utterances which are incompatible with the current state. When a candidate is rejected, a new candidate utterance is sampled from the System 1 model, which is again checked by System 2. This process repeats until a candidate utterance is accepted by System 2 (i.e., the utterance is compatible with the world state). This procedure allows the model to effectively search the space of candidate utterances, guided by the logical constraints from the minimal world model. In this work, we use straightforward probabilistic sampling to illustrate that the approach works with even a very simple search mechanism. We imagine that the search procedure could be further optimized by applying, for example, beam search or stochastic beam sampling.
|
| 77 |
+
|
| 78 |
+
Diagnostic bAbI experiments. We use Task $\# 2$ from bAbI as a diagnostic test for our neuro-symbolic dual-system model. As shown above, this task consists of synthetically-generated short stories involving people, places and objects, and questions concerning the locations of objects in these stories. We investigate performance on both question answering (QA) tasks and story generation. For the QA tasks, we parse each sentence in the story to encode each fact into the world model and parse the final question to query the world model, returning the answer given by the world
|
| 79 |
+
|
| 80 |
+
GPT-3 only: John went to the bedroom.
|
| 81 |
+
John picked up the apple there.
|
| 82 |
+
Mary took the apple there.
|
| 83 |
+
Mary travelled to the office.
|
| 84 |
+
Daniel went back to the garden.
|
| 85 |
+
Mary went to the bedroom.
|
| 86 |
+
John went to the bedroom.
|
| 87 |
+
Sandra went to the bedroom.
|
| 88 |
+
Sandra travelled to the office.
|
| 89 |
+
Mary went back to the office.
|
| 90 |
+
Where is the apple? A: office GPT-3 $^ +$ world model: John went to the bedroom.
|
| 91 |
+
John picked up the apple there.
|
| 92 |
+
Mary travelled to the office.
|
| 93 |
+
Daniel went back to the garden.
|
| 94 |
+
Mary went to the bedroom.
|
| 95 |
+
Sandra went to the bedroom.
|
| 96 |
+
Sandra travelled to the office.
|
| 97 |
+
Mary went back to the office.
|
| 98 |
+
Where is the apple? A: bedroom
|
| 99 |
+
|
| 100 |
+
Figure 2: Example bAbI stories generated by GPT-3 only (left) and our dual-system model (right). Logically inconsistent lines are written in red text, and are removed from the story-so-far at generation time.
|
| 101 |
+
|
| 102 |
+
model. We compare with two alternative models (Table 3 in the Appendix): GPT-3 by itself and a dual-system baseline that uses a neural Natural Language Inference (NLI) model as its System 2. The NLI-based dual-system model generates 10 candidates from GPT-3 and selects the candidate with the highest predicted probability of entailment under the NLI model given the context. We use the RoBERTa MNLI model as our off-the-shelf neural NLI model (Liu et al., 2019), which operates as a System 2 that does not use additional problem-specific data or fine-tuning.2 On 200 held-out tasks, our GPT-3-based “fact extractor” achieves $100 \%$ QA accuracy, far exceeding the performance of GPT-3 alone $( 2 9 . 0 \% )$ or GPT-3 generation with neural NLI scoring $( 3 2 . 5 \%$ ; also see Table 3 in the Appendix). These results show that GPT-3 can be made to answer questions successfully when used for parsing with a world model, even when GPT-3 alone does not achieve high QA accuracy.
|
| 103 |
+
|
| 104 |
+
To test story generation, we use our GPT-3-based System 1 proposal model (few-shot prompted on 10 example stories) to sample a new bAbI story, line-by-line. If a generated utterance is inconsistent with the current state as indicated by the System 2 world model, a new utterance is sampled from System 1 (repeating until a consistent utterance is sampled). Figure 2 shows how the dual-system approach generates stories that mimic the statistical structure of bAbI stories, while remaining logically sound In contrast, GPT-3 alone was not able to maintain logical coherence. In a set of 50 generated stories, all stories required at least one sentence to be resampled to maintain coherence, and over half of the generated sentences $( 5 3 . 1 \% )$ were rejected by our System 2 model to maintain logical consistency. These results demonstrate that equipping GPT-3 with a minimal world model produces logically coherent stories that mimic the textural structure of the bAbI domain. In the next section, we apply this approach to mimicking human-generated short stories in natural language.
|
| 105 |
+
|
| 106 |
+
# 4 Coherent Language Generation - CLUTRR
|
| 107 |
+
|
| 108 |
+
We apply our dual-system approach to a dataset of natural language using the CLUTRR dataset. CLUTRR contains human-written stories about people and their family relationships (see example in Figure 3). As with bAbI, CLUTRR was originally designed as a Question Answering challenge; instead, we use it to evaluate coherent language generation by querying models to generate complete CLUTRR-style stories or to complete partially-generated stories. Our particular aim is to produce stories with coherent and logically consistent family relationships. As above, our language generation setup consists of pre-trained language models acting as our System 1 proposer, a minimal world model as System 2, and a neural semantic parser (implemented via few-shot GPT-3 prediction) as a bridge between the two systems. We use human judgments to assess whether our neuro-symbolic, dual-system model produces more consistent and coherent stories relative to a baseline.
|
| 109 |
+
|
| 110 |
+
# 4.1 Model specification
|
| 111 |
+
|
| 112 |
+
Kristin and her son Justin went to visit her mother Carol on a nice Sunday afternoon.They went out for a movie together and had a good time.
|
| 113 |
+
|
| 114 |
+
Q:How is Carol related to Justin ?
|
| 115 |
+
|
| 116 |
+
As our System 1 proposal model, we used pretrained neural models to produce candidate generations one sentence at a time. We experimented with GPT-3 as our System 1 model (which we used above for bAbI), but found generations too unreliable, often outputting the empty string. Instead, we used a BART model (Lewis et al., 2019) that was fine-tuned on the
|
| 117 |
+
|
| 118 |
+
CLUTRR training corpus. This model also gives us an opportunity to compare against a best-case neural “single-system” baseline, specifically fine-tuned on story data. To maintain a state of family relations, we use a constraint solver in our “System $2 ^ { \circ }$ to encode family relationships (e.g., child(x, ${ \tt y } )$ , spouse $\mathbf { \Psi } ( \mathbf { x } , \mathbf { \Psi } z ) ,$ ) and check that the candidate utterances do not contradict the previous statements (e.g., a person cannot be their own child or married to their sibling). We implemented the world model as a set of logical relations and constraints using the Z3 solver (De Moura & Bjørner, 2008). For instance, we require that the parent of $\mathtt { x }$ cannot also be the uncle of x: For all x, y, $\mathtt { u n c l e ( x , y ) } \Rightarrow \neg \mathtt { c h i l d ( y , x ) }$ . To check a candidate utterance, we query the solver to determine if the set of constraints is satisfiable or if there is a contradiction. The full set of constraints and other details can be found in the Appendix. We again used GPT-3 as our semantic parser, extracting parses for each candidate utterance via few-shot learning. This parsing approach worked well, even for the natural language in this domain. We observed that parsing with GPT-3 was more successful when the target parse was naturalistic, i.e., “Bob is Joe’s father.” rather than “father(Bob, Joe)”. The parsing prompt is reproduced in full in the Appendix.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 4: Example trial from CLUTRR human judgement experiment. Participants were instructed to select which of two options makes the most sense given the prompt. One option was generated by the System 1 model only (“single-system”), while the other was generated by the dual-system model.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Sample story from the CLUTRR dataset. Each story consists of a sequence of humangenerated sentences concerning family relationships. Adapted from Sinha et al. (2019).
|
| 125 |
+
Figure 5: CLUTRR human judgment experiment results. Bars denote proportions of dual-system generations selected as making more sense over single-system generations, in each of four conditions. Error-bars denote bootstrapped $9 5 \%$ confidence intervals of the item means. The points denote means for each individual item in the experiment and are jittered horizontally for clarity.
|
| 126 |
+
|
| 127 |
+
Table 1: Statistics from CLUTRR story generation. We report the percentage of generations (on both a per-line and per-story basis) for which the System 2 world model did not detect an error. The dual-system model is able to detect many inconsistencies in the neural single-system generations, and most can be corrected by re-sampling new candidates (up to a limit of ten).
|
| 128 |
+
|
| 129 |
+
<table><tr><td rowspan="2"></td><td colspan="2">% w/out error detected (per line)</td><td colspan="2">% w/out error detected (per story)</td></tr><tr><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td></tr><tr><td>prompt from dataset</td><td>82.8</td><td>97.1</td><td>60</td><td>96.1</td></tr><tr><td>prompt from model</td><td>71.9</td><td>96.3</td><td>36.4</td><td>93.5</td></tr></table>
|
| 130 |
+
|
| 131 |
+
# 4.2 Human judgments
|
| 132 |
+
|
| 133 |
+
We test our dual-system neural generation $^ +$ world model method in its ability to generate stories that are deemed by naive human participants to be more naturalistic and coherent than those generated from the baseline models. Specifically, we asked participants to select which of two continuations made the most sense to them, where one continuation was generated from the neural model alone (single-system) and the other from a dual-system model (either the world model System 2 or the neural NLI System 2).
|
| 134 |
+
|
| 135 |
+
Participants. Participants $\mathbf { N } = 1 0 1$ ) were recruited on the crowd-sourcing platform Prolific and compensated $\$ 2$ for the task ( ${ \sim } 1 5$ minutes, so roughly $\$ 8/\mathrm{ h o u r }$ ). Participants gave informed consent, and the study was approved by MIT’s IRB. 21 participants were excluded for failing an instruction quiz, incorrectly answering more than one of five filler questions, or finishing the task too quickly. The data we collected contains no personally identifiable information or offensive content.
|
| 136 |
+
|
| 137 |
+
Procedure. Participants began the experiment by reading a set of instructions and answering comprehension questions. On each main trial, participants were shown a prompt consisting of several sentences and were asked to choose which of two possible continuations made the most sense (an example trial is shown in Figure 4). Participants were instructed that if a name appeared multiple times within a trial, then it referred to the same person, whereas if a name appeared across trials, then it was not referring to the same person. For each trial, one continuation option was generated by the neural only single-system baseline, while the other was a dual-system generation. We selected generations from the neural only baseline that were rejected by the System 2 model in order to maximize the differences between the models’ generations; thus, human judgments pertain to generations that the models disagreed on. Each participant performed between 20 and 26 trials.
|
| 138 |
+
|
| 139 |
+
Materials. Participants were randomly assigned to one of four between-participant conditions, which varied according to the kind of prompt and the kind of dual-system model. The prompt was either generated from the model (up to the point of disagreement between System 1 and System 2 models; “Prompts from model” condition) or taken completely from the length 4 CLUTRR systematic generalization test dataset (“Prompts from dataset” condition). To generate prompts for the “from model” condition, we took the first sentence of each story from the CLUTRR test dataset and generated subsequent prompt sentences from the dual-system model; sentences were generated until the two systems disagreed (i.e., System 1 generated a sentence that System 2 rejected), at which point the “rejected sentence” served as the neural only (single-system) baseline generation and the first resampled sentence that System 2 accepted served as the dual-system generation. Prompts were sampled to a maximum length of four sentences. The dual-system model shown to participants used a System 2 based on either our constraint-based “world model” or the neural NLI baseline.
|
| 140 |
+
|
| 141 |
+
Table 1 catalogs critical statistics from the stimulus generation process. We generated vignettes from the System 1 model and report the percentage of System 1 generations which are deemed correct by the System 2 model.3 We also report the percentage of generations corrected by the System 2 model (i.e., if System 1 made an error, could System 2 fix it within 10 attempts?). We report these statistics on both a per-story and per-line basis. According to System 2, the System 1 generation model makes a lot of errors (only $3 6 . 4 \%$ of stories and $7 1 . 9 \%$ of lines were error-free, in the “from model" condition). In most instances, re-sampling new generations yields stories that, according to
|
| 142 |
+
|
| 143 |
+
Table 2: Accuracy on $\mathrm { g } \mathrm { S C A N }$ splits. Models were trained on 5000 examples (only $2 . 5 \%$ of the gSCAN training data). See Appendix Table 4 for additional results.)
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Test split:</td><td>single-system5</td><td>dual-system</td></tr><tr><td>dev</td><td>71.7</td><td>83.3</td></tr><tr><td>random</td><td>57.2</td><td>74.7</td></tr><tr><td>yellow squares</td><td>68.1</td><td>81.3</td></tr><tr><td>red squares</td><td>64.9</td><td>78.1</td></tr><tr><td>novel direction</td><td>0.0</td><td>0.01</td></tr><tr><td>relativity</td><td>41.0</td><td>53.6</td></tr><tr><td>class inference</td><td>68.1</td><td>76.2</td></tr><tr><td>adverb (k=1)</td><td>0.0</td><td>0.0</td></tr><tr><td>adverb to verb</td><td>20.8</td><td>21.8</td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3">³From Heinze-Deml & Bouchacourt (2020)</td></tr></table>
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 6: Schematic of our dual-system approach to $\mathrm { g S C A N }$ . We train a neural sequence model to predict both a distribution over action sequences, and a distribution over target locations. At test time, we decode candidate action sequences from the model, execute them on the gridworld, and only accept a sequence that brings the agent to the predicted target location (shown in green).
|
| 149 |
+
|
| 150 |
+
System 2, no longer contain logical errors within a budget of 10 samples $9 3 . 5 \%$ of stories and $9 6 . 3 \%$ of lines were error-free, respectively).
|
| 151 |
+
|
| 152 |
+
Results. The human evaluation indicates that System 2 is indeed correcting genuine errors in the stories. As summarized in Figure 5, participants strongly preferred the dual-system neural generation $^ +$ world model continuations in comparison to the neural only single-system continuations (proportion preferring dual-system $= 0 . 8 4$ ; bootstrapped $9 5 \%$ confidence interval [0.77, 0.89] and 0.79 [0.77, 0.89] for the “from dataset” and “from model” prompt conditions, respectively). The dual-system approach, however, did not improve generation quality when the System 2 was based on an off-the-shelf neural NLI model (Proportion preferring dual-system $= 0 . 5 1$ ; [0.40, 0.64] for “from dataset”; 0.58 [0.48, 0.68] for “from model”). Thus, when using a minimal world model, the dual-system approach dramatically improves logical consistency without any need for additional training or fine-tuning. People clearly prefer neuro-symbolic generations from the dual-system model over purely neural generations from a single-system model.4
|
| 153 |
+
|
| 154 |
+
# 5 Grounded Instruction Following
|
| 155 |
+
|
| 156 |
+
The dual-system approach offers a general-purpose means of improving upon generative, neural sequence models by incorporating logical constraints. To highlight its generality, we examine how the dual-system perspective can be deployed in a very different domain: grounded instruction following. In Heinze-Deml & Bouchacourt (2020), a learned target location predictor was used to increase the accuracy of a neural action sequence generation model. Here, we show how to increase performance further by enforcing consistency between the target location predictor and the action sequence generator in our dual-system framework.
|
| 157 |
+
|
| 158 |
+
We use the gSCAN benchmark (Ruis et al., 2020), a recently proposed grounded instruction following dataset designed to measure compositional generalization in neural systems. Given an initial gridworld state and an instruction, e.g., “walk to the big square,” an agent must predict the sequence of low-level actions which achieve the goal, e.g., “TURN LEFT, WALK, TURN LEFT, WALK” (See Figure 6). The dataset contains several test splits, each testing different aspects of compositional generalization.
|
| 159 |
+
|
| 160 |
+
Our model builds on Heinze-Deml & Bouchacourt (2020) by using an LSTM to predict the correct action sequence and target location. Given a command $c$ and an initial gridworld state $s$ , the neural network defines two distributions: a distribution over action sequences $q _ { a } ( a | c , s )$ and a distribution over target grid locations $q _ { l o c } ( l | c , s )$ . Heinze-Deml & Bouchacourt (2020) showed that when these distributions share parameters, using location prediction as an auxiliary loss improves the accuracy of the action sequence prediction model. We can further exploit these two models by noticing that when a predicted action sequence is not consistent with a predicted target location, then either the action sequence or the target location must be incorrect. Since the target location is much simpler to predict, and thus much more likely to be correctly predicted, if a predicted action sequence is not consistent with the predicted target location, then the action sequence is most likely incorrect. Our dual-system framework can use this property to increase action sequence prediction accuracy. Consider the initial state and command in Figure 6. Our model predicts candidate action sequences, and also predicts that the most likely target location is the grid containing the bigger yellow square (highlighted in red). The model then executes the candidate action sequences, and only accepts a sequence which results in the agent standing in the target location.
|
| 161 |
+
|
| 162 |
+
In the language of our dual-system approach, we treat the distribution over actions $q _ { a } ( a | c , s )$ as our System 1 proposal model. The distribution over target locations $q _ { l o c } ( l | c , s )$ serves as a fact extractor model, which extract a location constraint $l$ . As a minimal world model, we use a deterministic gridworld execution model $T ( a , s _ { 0 } ) \to s _ { f }$ , which takes a state and action and predicts the resulting state. At test time, we first extract the predicted location as $l = \arg \operatorname* { m a x } _ { l ^ { \prime } } q _ { l o c } ( l ^ { \prime } | c )$ We then search through the possible action sequences from $q _ { a } ( \cdot | c )$ , conditioned on agreement with $l$ . In our experiments, we use a sample-based search with a maximum budget of 50 samples. We trained models on random subsets of the gSCAN training set of varying sizes: 5000 datapoints, 8000 datapoints, and 20000 datapoints $2 . 5 \%$ , $4 \%$ and $10 \%$ of the original training set, respectively).
|
| 163 |
+
|
| 164 |
+
Results. The results show that the System 2 execution model improves performance without the need for any additional training (see Table 2 for results training on 5000 examples). In contrast to the single-system model, the dual-system model allows for sampling many candidate action sequences from the neural network, accepting only consistent sequences. This guess-and-check approach greatly increases the evaluation accuracy, improving upon prior work on gSCAN, particularly in low-data regimes.
|
| 165 |
+
|
| 166 |
+
# 6 Limitations
|
| 167 |
+
|
| 168 |
+
In its current form, our approach is most useful in domains where naturalistic, learned generation is necessary and where a small number of mission-critical logical constraints can be explicitly articulated. Our system will be less useful when constraints are more difficult to articulate (e.g., creative domains such as writing poetry) or when there are many constraints, since the minimal world model must be hand-engineered. Enforcing strict constraints may also pose risks: if the constraints are not only logical but cultural, they may be harmful if misapplied. However, these constraints must be articulated explicitly in a symbolic model, and are thus easier to identify and correct.
|
| 169 |
+
|
| 170 |
+
The current few-shot parsing technique may also suffer from a limited capacity. For more complex domains, the number of examples required to specify the desired parsing behavior may be too large (i.e., they may not fit in the input window) or too complex for a model to perform parsing accurately. While some tasks may not be suitable, the complexity of the world model need not necessarily increase hand-in-hand with the complexity of the application domain. A dual-system model will be most successful when tracking just a few critical variables (e.g., tracking consistency in family relations, as in our experiments, or tracking scheduling constraints when discussing a team plan).
|
| 171 |
+
|
| 172 |
+
A promising direction for future work is to incorporate learning into the System 2 world model. Currently, the minimal world knowledge that exists in System 2 can be easily modified, but changes must be made by hand. Improvements would come from automatically learning and updating this structured knowledge, possibly by incorporating neuro-symbolic learning techniques (Ellis et al., 2020; Mao et al., 2019), or other neuro-symbolic integration work such as Tsamoura et al. (2021); Michael & Valiant (2008).
|
| 173 |
+
|
| 174 |
+
Learning could improve our dual-system approach in other ways, e.g., by training a neural module to mimic the actions of a symbolic System 2. The symbolic System 2 judgments could be used as a source of supervision; candidate utterances rejected by the symbolic System 2 model could be used as examples of contradictory sentences, and accepted utterances could be used as examples of noncontradictory statements. This oversight could help train a neural System 2 contradiction-detection model capable of more subtleties than its symbolic counterpart, especially in domains where labeled examples are otherwise unavailable. This approach may also help us understand aspects of human learning, where certain tasks that require slower, logical reasoning can be habitualized over time and tackled by faster, more intuitive reasoning.
|
| 175 |
+
|
| 176 |
+
Recent work (Li et al., 2021) has shown that large pre-trained neural models learn to approximately represent certain types of structured semantic information. However, it is not yet clear how representational fidelity translates to logical coherence during generative tasks. Our current approach allows us to explicitly fix logical errors in generation, which may ultimately be caused by representational errors. Understanding how we might leverage our approach to improve the representation of structured knowledge within neural models is a promising direction for future work, which could lead to increased generation consistency and coherence.
|
| 177 |
+
|
| 178 |
+
# 7 Conclusion
|
| 179 |
+
|
| 180 |
+
Inspired by dual process theories from cognitive science, we combine the respective strengths of neural and symbolic approaches to build more robust models that can more effectively incorporate domain knowledge. For language generation, we showed that equipping neural generation with a minimal symbolic world model increased language coherence and consistency. For grounded instruction following, we showed that requiring test-time consistency between predicted action sequences and goal locations led to improved performance, especially in low-data regimes. Our neuro-symbolic approach can readily be applied to other domains and types of prior knowledge, as a lightweight way of improving the coherence and consistency of powerful neural sequence models.
|
| 181 |
+
|
| 182 |
+
This paper just scratches the surface of how structured knowledge can make neural systems more robust; we hope to inspire further work into neuro-symbolic systems which possess the robustness and commonsense necessary for human-level intelligence.
|
| 183 |
+
|
| 184 |
+
# Acknowledgments
|
| 185 |
+
|
| 186 |
+
We thank Laura Ruis, Jacob Andreas, Yewen (Evan) Pu, Joe O’Connor and Guy Davidson for helpful comments on an earlier version of this manuscript. MN is supported by a NSF Graduate Research Fellowship.
|
| 187 |
+
|
| 188 |
+
# References
|
| 189 |
+
|
| 190 |
+
Andreas, J., Bufe, J., Burkett, D., Chen, C., Clausman, J., Crawford, J., Crim, K., DeLoach, J., Dorner, L., Eisner, J., et al. Task-oriented dialogue as dataflow synthesis. Transactions of the Association for Computational Linguistics, 8:556–571, 2020.
|
| 191 |
+
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 192 |
+
De Moura, L. and Bjørner, N. Z3: An efficient smt solver. In Tools and Algorithms for the Construction and Analysis of Systems, pp. 337–340. Springer, 2008.
|
| 193 |
+
Deng, Y., Bakhtin, A., Ott, M., Szlam, A., and Marc’Aurelio Ranzato. Residual energy-based models of text generation. In International Conference on Learning Representations (ICLR), pp. 1–18, 2020.
|
| 194 |
+
Devlin, J., Uesato, J., Bhupatiraju, S., Singh, R., Mohamed, A.-r., and Kohli, P. Robustfill: Neural program learning under noisy i/o. ICML, 2017.
|
| 195 |
+
Ellis, K., Wong, C., Nye, M., Sable-Meyer, M., Cary, L., Morales, L., Hewitt, L., Solar-Lezama, A., and Tenenbaum, J. B. Dreamcoder: Growing generalizable, interpretable knowledge with wake-sleep bayesian program learning. arXiv preprint arXiv:2006.08381, 2020.
|
| 196 |
+
Evans, J. S. B. In two minds: dual-process accounts of reasoning. Trends in cognitive sciences, 7(10): 454–459, 2003.
|
| 197 |
+
Frederick, S. Cognitive reflection and decision making. Journal of Economic perspectives, 19(4): 25–42, 2005.
|
| 198 |
+
Garcez, A. d. and Lamb, L. C. Neurosymbolic ai: The 3rd wave. arXiv preprint arXiv:2012.05876, 2020.
|
| 199 |
+
Goyal, A. and Bengio, Y. Inductive biases for deep learning of higher-level cognition. arXiv preprint arXiv:2011.15091, 2020.
|
| 200 |
+
Goyal, A., Didolkar, A., Ke, N. R., Blundell, C., Beaudoin, P., Heess, N., Mozer, M., and Bengio, Y. Neural production systems. CoRR, abs/2103.01937, 2021. URL https://arxiv.org/abs/ 2103.01937.
|
| 201 |
+
Heinze-Deml, C. and Bouchacourt, D. Think before you act: A simple baseline for compositional generalization. arXiv preprint arXiv:2009.13962, 2020.
|
| 202 |
+
Herzig, J. and Berant, J. Span-based semantic parsing for compositional generalization. arXiv preprint arXiv:2009.06040, 2020.
|
| 203 |
+
Holtzman, A., Buys, J., Forbes, M., Bosselut, A., Golub, D., and Choi, Y. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018.
|
| 204 |
+
Hua, X. and Wang, L. Pair: Planning and iterative refinement in pre-trained transformers for long text generation. In EMNLP, 2020.
|
| 205 |
+
Kahneman, D. Thinking, fast and slow. kindle ed, 2013.
|
| 206 |
+
Kurita, S. and Cho, K. Generative language-grounded policy in vision-and-language navigation with bayes’ rule. arXiv preprint arXiv:2009.07783, 2020.
|
| 207 |
+
Lake, B. M. and Murphy, G. L. Word meaning in minds and machines. arXiv preprint arXiv:2008.01766, 2020.
|
| 208 |
+
Lake, B. M., Ullman, T. D., Tenenbaum, J. B., and Gershman, S. J. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:E253, 2017.
|
| 209 |
+
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019.
|
| 210 |
+
Li, B. Z., Nye, M., and Andreas, J. Implicit representations of meaning in neural language models. arXiv preprint arXiv:2106.00737, 2021.
|
| 211 |
+
Liang, C., Berant, J., Le, Q. V., Forbus, K., and Lao, N. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23–33, Vancouver, Canada, 2017. URL http://aclanthology.coli.uni-saarland.de/pdf/P/P17/P17-1003.pdf.
|
| 212 |
+
Liang, P. Learning executable semantic parsers for natural language understanding. Communications of the ACM, 59(9):68–76, 2016.
|
| 213 |
+
Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 214 |
+
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
|
| 215 |
+
Lu, X., West, P., Zellers, R., Bras, R. L., Bhagavatula, C., and Choi, Y. Neurologic decoding:(un) supervised neural text generation with predicate logic constraints. arXiv preprint arXiv:2010.12884, 2020.
|
| 216 |
+
Mao, J., Gan, C., Kohli, P., Tenenbaum, J. B., and Wu, J. The neuro-symbolic concept learner: Interpreting scenes, words, and sentences from natural supervision. arXiv preprint arXiv:1904.12584, 2019.
|
| 217 |
+
Martin, L. J., Ammanabrolu, P., Hancock, W., Singh, S., Harrison, B., and Riedl, M. O. Event representations for automated story generation with deep neural nets. In AAAI, 2018.
|
| 218 |
+
Marzoev, A., Madden, S., Kaashoek, M. F., Cafarella, M., and Andreas, J. Unnatural language processing: Bridging the gap between synthetic and natural language data. arXiv preprint arXiv:2004.13645, 2020.
|
| 219 |
+
Miao, N., Zhou, H., Mou, L., Yan, R., and Li, L. Cgmh: Constrained sentence generation by metropolis-hastings sampling. In AAAI, 2019.
|
| 220 |
+
Michael, L. and Valiant, L. G. A first experimental demonstration of massive knowledge infusion. 2008.
|
| 221 |
+
Mou, L., Lu, Z., Li, H., and Jin, Z. Coupling distributed and symbolic execution for natural language queries. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2518–2526. PMLR, 06–11 Aug 2017. URL http://proceedings.mlr.press/v70/mou17a.html.
|
| 222 |
+
Muhlgay, D., Herzig, J., and Berant, J. Value-based search in execution space for mapping instructions to programs. pp. 1942–1954, 01 2019. doi: 10.18653/v1/N19-1193.
|
| 223 |
+
Nie, Y., Williamson, M., Bansal, M., Kiela, D., and Weston, J. I like fish, especially dolphins: Addressing contradictions in dialogue modelling. arXiv preprint arXiv:2012.13391, 2020.
|
| 224 |
+
Nye, M. I., Solar-Lezama, A., Tenenbaum, J. B., and Lake, B. M. Learning compositional rules via neural program synthesis. arXiv preprint arXiv:2003.05562, 2020.
|
| 225 |
+
Pieraccini, R., Tzoukermann, E., Gorelov, Z., Gauvain, J.-L., Levin, E., Lee, C.-H., and Wilpon, J. A speech understanding system based on statistical representation of semantics. In [Proceedings] ICASSP-92: 1992 IEEE International Conference on Acoustics, Speech, and Signal Processing, volume 1, pp. 193–196 vol.1, 1992. doi: 10.1109/ICASSP.1992.225939.
|
| 226 |
+
Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 227 |
+
Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.
|
| 228 |
+
Ruis, L., Andreas, J., Baroni, M., Bouchacourt, D., and Lake, B. M. A benchmark for systematic generalization in grounded language understanding. arXiv preprint arXiv:2003.05161, 2020.
|
| 229 |
+
Schlag, I. and Schmidhuber, J. Learning to reason with third-order tensor products. CoRR, abs/1811.12143, 2018. URL http://arxiv.org/abs/1811.12143.
|
| 230 |
+
Serafini, L. and d’Avila Garcez, A. S. Logic tensor networks: Deep learning and logical reasoning from data and knowledge. CoRR, abs/1606.04422, 2016. URL http://arxiv.org/abs/1606. 04422.
|
| 231 |
+
Shen, S., Fried, D., Andreas, J., and Klein, D. Pragmatically informative text generation. arXiv preprint arXiv:1904.01301, 2019.
|
| 232 |
+
Shin, R., Lin, C. H., Thomson, S., Chen, C., Roy, S., Platanios, E. A., Pauls, A., Klein, D., Eisner, J., and Van Durme, B. Constrained language models yield few-shot semantic parsers. arXiv preprint arXiv:2104.08768, 2021.
|
| 233 |
+
Sinha, K., Sodhani, S., Dong, J., Pineau, J., and Hamilton, W. L. Clutrr: A diagnostic benchmark for inductive reasoning from text. arXiv preprint arXiv:1908.06177, 2019.
|
| 234 |
+
Smith, E. M., Gonzalez-Rico, D., Dinan, E., and Boureau, Y.-L. Controlling style in generated dialogue. arXiv preprint arXiv:2009.10855, 2020.
|
| 235 |
+
Spelke, E. S. and Kinzler, K. D. Core knowledge. Developmental Science, 10(1):89–96, 2007.
|
| 236 |
+
Su, Y. and Yan, X. Cross-domain semantic parsing via paraphrasing. arXiv preprint arXiv:1704.05974, 2017.
|
| 237 |
+
Tsamoura, E., Hospedales, T., and Michael, L. Neural-symbolic integration: A compositional perspective. Proceedings of the AAAI Conference on Artificial Intelligence, 35(6):5051–5060, May 2021. URL https://ojs.aaai.org/index.php/AAAI/article/view/16639.
|
| 238 |
+
Welleck, S., Weston, J., Szlam, A., and Cho, K. Dialogue natural language inference. arXiv preprint arXiv:1811.00671, 2018.
|
| 239 |
+
Weston, J., Bordes, A., Chopra, S., Rush, A. M., van Merriënboer, B., Joulin, A., and Mikolov, T. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015.
|
| 240 |
+
Xu, J., Ren, X., Zhang, Y., Zeng, Q., Cai, X., and Sun, X. A skeleton-based model for promoting coherence among sentences in narrative story generation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4306–4315, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1462. URL https://www.aclweb.org/anthology/D18-1462.
|
| 241 |
+
Xu, J., Ju, D., Li, M., Boureau, Y.-L., Weston, J., and Dinan, E. Recipes for safety in open-domain chatbots. arXiv preprint arXiv:2010.07079, 2020a.
|
| 242 |
+
Xu, S., Semnani, S. J., Campagna, G., and Lam, M. S. Autoqa: From databases to qa semantic parsers with only synthetic training data. arXiv preprint arXiv:2010.04806, 2020b.
|
parse/train/uyKk_avJ-p4/uyKk_avJ-p4_content_list.json
ADDED
|
@@ -0,0 +1,1025 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
204,
|
| 8 |
+
122,
|
| 9 |
+
795,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Maxwell Nye∗ MIT ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
187,
|
| 20 |
+
251,
|
| 21 |
+
284,
|
| 22 |
+
279
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Joshua B. Tenenbaum MIT ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
483,
|
| 31 |
+
251,
|
| 32 |
+
637,
|
| 33 |
+
279
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Michael Henry Tessler MIT DeepMind ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
303,
|
| 42 |
+
251,
|
| 43 |
+
459,
|
| 44 |
+
292
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Brenden M. Lake NYU Facebook AI Research ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
658,
|
| 53 |
+
251,
|
| 54 |
+
810,
|
| 55 |
+
292
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Abstract ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
462,
|
| 65 |
+
329,
|
| 66 |
+
535,
|
| 67 |
+
345
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Human reasoning can be understood as an interplay between two systems: the intuitive and associative (“System 1”) and the deliberative and logical (“System 2”). Neural sequence models—which have been increasingly successful at performing complex, structured tasks—exhibit the advantages and failure modes of System 1: they are fast and learn patterns from data, but are often inconsistent and incoherent. In this work, we seek a lightweight, training-free means of improving existing System 1-like sequence models by adding System 2-inspired logical reasoning. We explore several variations on this theme in which candidate generations from a neural sequence model are examined for logical consistency by a symbolic reasoning module, which can either accept or reject the generations. Our approach uses neural inference to mediate between the neural System 1 and the logical System 2. Results in robust story generation and grounded instruction-following show that this approach can increase the coherence and accuracy of neurally-based generations. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
232,
|
| 76 |
+
359,
|
| 77 |
+
766,
|
| 78 |
+
551
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1 Introduction ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
574,
|
| 89 |
+
312,
|
| 90 |
+
592
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Despite recent success, neural sequence models often fail to produce consistent and coherent generations. When generating stories, language models may forget the attributes of specific characters (such as personality and background information) (Welleck et al., 2018), ignore previously established relationships between characters (such as family relationships) (Sinha et al., 2019), or otherwise contradict prior statements (Brown et al., 2020). Similarly, neural models can make statements that contradict basic world knowledge or the logical entailment structure of known facts. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
606,
|
| 100 |
+
825,
|
| 101 |
+
689
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Lake & Murphy (2020) illustrated several of these issues with GPT-2 (Radford et al., 2019). When given prompts of the form “A dolphin is a ”, GPT-2 predicts that the most likely answer is “mammal”, “fish”, or “bird” depending on small differences in the wording of the prompt. In another example, GPT-2 states that unicorns have “four horns,” directly after implying that unicorns only have one horn. Upon diagnosing such issues, it is unclear how to apply a targeted fix to the model, especially if retraining or fine-tuning is impractical. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
173,
|
| 110 |
+
695,
|
| 111 |
+
825,
|
| 112 |
+
779
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "In this work, we draw on insights from cognitive science, especially from “dual process” theories of reasoning (Evans, 2003), to explore how neural sequence models can better interface with prior knowledge and be made more coherent and consistent. According to dual process theories, human cognition can be understood as an interplay between a more intuitive and associative “System 1” and a more deliberative and logical “System 2.” Within this broad framework, automatic actions are driven by System 1, whereas System 2 engages for more deliberative control: for example, judging the validity of a logical argument that requires multiple steps of reasoning (Kahneman, 2013). ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
785,
|
| 122 |
+
826,
|
| 123 |
+
882
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "image",
|
| 129 |
+
"img_path": "images/c20d75f1293a76956af17c66db3e3cec0efd21ca62aa27c08f823624b84353b6.jpg",
|
| 130 |
+
"image_caption": [
|
| 131 |
+
"Figure 1: Schematic of dual-system approach to text generation. Conditioned on previous text, a “System $1 ^ { \\circ }$ neural generation model produces candidate next sentences. Semantic parses for each candidate are generated via few-shot parsing from GPT-3 and compared to a minimal world model to check consistency. Only candidates consistent with the world model state are incorporated into the final generation. "
|
| 132 |
+
],
|
| 133 |
+
"image_footnote": [],
|
| 134 |
+
"bbox": [
|
| 135 |
+
179,
|
| 136 |
+
50,
|
| 137 |
+
820,
|
| 138 |
+
205
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "The prominent neural language models of today are single systems, with weaknesses akin to those exhibited by the human System 1. For example, the cognitive reflection test (CRT) (Frederick, 2005) is a classic probe of System 1 vs. System 2 reasoning in humans. Participants answer a set of simple questions that have superficially compelling, but logically invalid, answers. These incorrect answers are often generated as a first “gut” response (putatively, by System 1 intuitive thinking); upon reflection, however, participants often realize that their responses were not logically or mathematically consistent (via more explicit System 2 reasoning). Consider the CRT problem on the left below: ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
295,
|
| 148 |
+
825,
|
| 149 |
+
393
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "A ball and a bat cost $\\$ 10$ . The bat costs one dollar more than the ball. How much does the ball cost? ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
232,
|
| 158 |
+
414,
|
| 159 |
+
490,
|
| 160 |
+
452
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "table",
|
| 166 |
+
"img_path": "images/147fcf5aa32d30f5bf088fc4af7d5dccb6b0d68606a410f5491f0947b66f4845.jpg",
|
| 167 |
+
"table_caption": [],
|
| 168 |
+
"table_footnote": [],
|
| 169 |
+
"table_body": "<table><tr><td>Total cost in prompt</td><td>GPT-3 response</td></tr><tr><td>$1.10</td><td>10 cents</td></tr><tr><td>$1.20</td><td>20 cents</td></tr><tr><td>$1.30</td><td>$0.30</td></tr><tr><td>$1.70</td><td>$0.70</td></tr></table>",
|
| 170 |
+
"bbox": [
|
| 171 |
+
509,
|
| 172 |
+
398,
|
| 173 |
+
774,
|
| 174 |
+
463
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 1
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "text",
|
| 180 |
+
"text": "Reading quickly, you might be tempted to say the ball costs 10 cents. Most participants give this response, in fact, especially if they are under time pressure or have limited attention (Kahneman, 2013). Of course, if the bat is $\\$ 1.00$ more than the ball, and the ball costs 10 cents, then the total cost would be $\\$ 120$ . The correct answer is that the ball costs 5 cents. Notably, in this and other classic CRT problems, GPT-3 (Brown et al., 2020) predicts the same “gut” response (prediction in red above; the table above shows that adjusting the price in the prompt also leads to similar effects; see Appendix Figure 8 for more CRT examples). GPT-3 appears vulnerable to the same sort of intuitive, unsystematic pattern recognition errors as humans—in this case, incorrectly subtracting one dollar from $\\$ 1.10$ , without confirming that the answer satisfies each of the problem constraints. ",
|
| 181 |
+
"bbox": [
|
| 182 |
+
174,
|
| 183 |
+
463,
|
| 184 |
+
825,
|
| 185 |
+
588
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 1
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "Numerous studies have shown that engagement of System 2-style effort can help “override or inhibit default responses emanating from System 1” (Evans, 2003), correcting inconsistent or un-systematic intuitive impulses. For example, when System 2 is engaged by asking people to take more time to respond, people’s accuracy improves on the CRT task above (Kahneman, 2013). It has been argued that integrating System 2 processing could similarly improve AI systems (Goyal & Bengio, 2020; Garcez & Lamb, 2020), and here we explore this idea as applied to neural sequence models. ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
174,
|
| 194 |
+
593,
|
| 195 |
+
825,
|
| 196 |
+
678
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 1
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "In this work, we take inspiration from dual process theories to explore a neuro-symbolic generation system, wherein predictions from a neural model are treated as System 1 proposals, and a logical, deliberative System 2 filters these proposals for consistency and soundness (see Figure 1). We further take inspiration from the fact that humans often do not need explicit supervision to reason about new problems or domains (e.g., see human evaluation task in Section 4.2) and require that the System 2 module not need additional problem-specific training, especially on example contradictions or commonsense violations. People can handle novelty by reconfiguring, rather than retraining, their internal models (Lake et al., 2017), and we strive to build machine systems capable of the same. We show how a lightweight, easy-to-implement System 2 model can help improve coherence and consistency by adding a small amount of symbolic reasoning. ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
173,
|
| 205 |
+
683,
|
| 206 |
+
825,
|
| 207 |
+
821
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 1
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "We tackle two kinds of domains: text generation and instruction following. In both cases, we construct generative models over sequences by using a neural generation model to propose candidate generations and a symbolic world model that can accept or reject the generations and resample proposals if necessary. We first illustrate the approach by generating short stories based on the bAbI dataset (Weston et al., 2015); this pedagogical, synthetic example illustrates how basic commonsense knowledge of objects, agents, and places can inform a text generation model. We then test our approach on rich, natural language vignettes based on CLUTRR (Sinha et al., 2019), focusing on ensuring consistency of family and interpersonal relationships. In both text generation domains, we interface between the explicit logical knowledge/reasoning of System 2 and generations of System 1 using a few-shot learning approach with state-of-the-art neural language models (GPT-3), which requires no additional training or fine-tuning. Even using off-the-shelf transformers and symbolic solvers, our dual-system model improves the consistency and coherence of text generations as measured by human judges. We test our approach also on instruction following, showing how goalprediction models and execution models can easily be combined to achieve improved performance in low-data regimes. We show improvements over previous work in the gSCAN grounded compositional challenge (Ruis et al., 2020); a dual-system model requires much less data to train than previous models, and achieves higher accuracy and stronger generalization. Overall, our findings indicate that neuro-symbolic, dual process models are a promising means of addressing longstanding problems of robustness and consistency in neural sequence models. ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
828,
|
| 217 |
+
825,
|
| 218 |
+
911
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "",
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
92,
|
| 228 |
+
825,
|
| 229 |
+
270
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "2 Related Work ",
|
| 236 |
+
"text_level": 1,
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
327,
|
| 240 |
+
321,
|
| 241 |
+
343
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Our approach incorporates semantic parsing (Liang, 2016) as a component of a generative process, where neural generation is used in conjunction with parsing techniques. In our text generation experiments, we employ GPT-3 to perform few-shot semantic parsing without fine-tuning. Related work includes few or zero-shot semantic parsing using pre-training techniques and paraphrasing (Su & Yan, 2017; Herzig & Berant, 2020). It also includes semantic parsing systems trained either without supervision (Liang et al., 2017; Mou et al., 2017; Muhlgay et al., 2019), or with synthetic language data (Marzoev et al., 2020; Xu et al., 2020b). ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
380,
|
| 251 |
+
825,
|
| 252 |
+
477
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "One popular technique for improving neural generations is generate-and-rerank, wherein one model generates proposals and another reranks them. This broad approach has been used in image generation (Ramesh et al., 2021), text generation (Holtzman et al., 2018; Shen et al., 2019; Deng et al., 2020), dialogue systems (for control, coherence and safety (Welleck et al., 2018; Smith et al., 2020; Nie et al., 2020; Xu et al., 2020a)), and instruction following (Kurita & Cho, 2020). Reranking is generally used to improve outputs with respect to relatively broad, holistic criteria. Here, our goal is to make generation robust to particular types of logical errors by pruning with respect to explicit symbolic constraints. Our approach can thus be considered closely related to techniques which employ explicit search to find generations satisfying particular logical constraints. Similar methods, such as guess-and-check or beam search pruning, have had success in neural program synthesis (Devlin et al., 2017; Nye et al., 2020). ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
484,
|
| 262 |
+
825,
|
| 263 |
+
636
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Recent work in NLP has used template-based planning, in which a model generates text by first generating a plan or skeleton, and filling in the missing words to produce naturalistic text (Xu et al., 2018; Hua & Wang, 2020). To generate stories, Martin et al. (2018) parses previous sentences into events and does planning in event space. Our work extends previous entity/relation/event planning in that the world model is not used for planning, but rather for post-checking candidate generations. Structured parsing of this type is also related to dialog tracking techniques such as slot-filling (Pieraccini et al., 1992). In our work, fully compositional logical facts are extracted from utterances. It is therefore more closely related to systems which extract programs from dialogue, such as Andreas et al. (2020). ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
642,
|
| 273 |
+
825,
|
| 274 |
+
767
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Recent work has also studied incorporating symbolic constraints into a neural decoding strategy in the context of natural language. Miao et al. (2019) introduce an MCMC-based inference-time propose-and-reject strategy for satisfying constraints. They test on constraints such as paraphrase and grammatical error correction. Lu et al. (2020) introduces “NeuroLogic decoding,” which uses logical constraints on neural language models to produce generations which contain (or do not contain) required (or forbidden) keywords. In these works, the constraints are lexical or based on word/sentence similarity (and provided in the problem setup for Lu et al. (2020)), whereas we study logical constraints on the world state decoded directly from observations or generations at test time. Other approaches for solving reasoning tasks end-to-end include Goyal et al. (2021), Serafini & d’Avila Garcez (2016), and Schlag & Schmidhuber (2018). ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
174,
|
| 283 |
+
772,
|
| 284 |
+
825,
|
| 285 |
+
911
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "3 Integrating System 1 and System 2 ",
|
| 292 |
+
"text_level": 1,
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
89,
|
| 296 |
+
496,
|
| 297 |
+
107
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "We introduce our dual-system approach using examples from the bAbI domain (Weston et al., 2015), which we also use to perform diagnostic experiments. Consider generating a simple story involving people, places and objects, such as (from Figure 1): ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
125,
|
| 307 |
+
826,
|
| 308 |
+
167
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Daniel went to the garden. Mary traveled to the office. Daniel grabbed the apple. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
233,
|
| 317 |
+
172,
|
| 318 |
+
766,
|
| 319 |
+
188
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "A model tasked with generating such stories must juggle several simultaneous demands: staying on topic and maintaining consistency of style and other textural elements (for which people rely on System 1), as well as maintaining consistency with previous statements and commonsense knowledge (for which people rely on both systems). Consider continuing the story with one of the following: ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
194,
|
| 329 |
+
825,
|
| 330 |
+
250
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "(a) Daniel went to the patio. (b) Mary dropped the apple there. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
276,
|
| 339 |
+
256,
|
| 340 |
+
720,
|
| 341 |
+
270
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Sentence (a) is reasonable; sentence (b) is not because it is Daniel, not Mary, who has the apple. During generation, how might a model distinguish between these candidates? Perhaps a well-trained neural language model could track constraints of these sorts. Neural language models to date, however, often violate these types of commonsense, hard constraints without a large high-quality corpus or explicit training on detecting violations of commonsense (Sinha et al., 2019). ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
276,
|
| 351 |
+
826,
|
| 352 |
+
347
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "We address this problem by decomposing text generation into two parts: candidate generation facilitated by deep neural networks and a logical pruning process implemented via a separate symbolic module. Consider again the example above. To ensure consistency, our model would extract from the text the features of the world that are subject to the hard, logical constraints, such as the location of objects and who is holding them. These constraints can then be checked against an explicit representation of current state of the world. For sentences (a) and (b), the system would extract and go(Daniel, patio) and drop(Mary, apple), respectively. A minimal world model would track the state of the apple, such that it maintains apple.holder $=$ Daniel (or equivalently, Daniel.inventory $=$ [apple]). When such a model is given a parse of a candidate generation, drop(Mary, apple), the mismatch between the current state and the proposed change would cause a violation, and the candidate generation will be rejected. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
173,
|
| 361 |
+
353,
|
| 362 |
+
825,
|
| 363 |
+
505
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "The main steps of our general approach are illustrated in Figure 1: generate proposals from a System 1 proposal model, extract facts with a fact extraction model, and filter proposed generations by ensuring that they satisfy the constraints given by the extracted facts and the minimal world model. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
511,
|
| 373 |
+
825,
|
| 374 |
+
553
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "System 1: Generation. We use neural sequence models to produce System 1 generations. In text generation domains, we use a large, pre-trained model that can be fine-tuned or conditioned via a short prompt to generate relevant text. Text sampled from the System 1 model will be treated as candidate utterances, which will be parsed and filtered by System 2 (described below). For the bAbI examples, we use GPT-3 as our System 1 proposal model through few-shot prompting with 10 example bAbI stories as context, generating a new story one candidate sentence at a time. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
559,
|
| 384 |
+
825,
|
| 385 |
+
643
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "System 2: Fact extraction. A fact extractor, or parser, is used to mediate between the System 1 candidate proposals and the minimal world model within System 2. In our text generation domains, we use a pre-trained GPT-3 model without fine-tuning to perform parsing. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
174,
|
| 394 |
+
648,
|
| 395 |
+
825,
|
| 396 |
+
690
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "For bAbI, our prompt consist of an initial descriptive sentence “Please parse the following statements into commands. The available commands are pickup, drop, and go.” and a small set $( < 1 0 )$ of representative semantic parsing examples (input $=$ sentences; output $=$ correct parses, such as go(Bob, roof)). The parse of each utterance is produced via few-shot prompting (Brown et al., 2020): the utterance is added to the end of the prompt, and the subsequent GPT-3 generation is interpreted as the target parse. We found that this simple parsing technique works well and could easily be applied to other parsing-based tasks, as in Shin et al. (2021). The parsing prompts are reproduced in full in the Appendix. As discussed in Section 5, for the $\\mathrm { g S C A N }$ instruction following domain, fact extraction is performed with a learned goal location prediction model. ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
173,
|
| 405 |
+
696,
|
| 406 |
+
825,
|
| 407 |
+
821
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "System 2: Minimal world model. We use a lightweight, incomplete description of the state of the world as a world model in each domain, e.g., commonsense information about the people, objects and locations (Figure 1). The goal is not to track and verify all the possible information; instead, we aim for minimalism, capturing just a few commonsense (or application-critical) variables that we want to ensure are correct. The world model facilitates tracking of long-range logical dependencies and logical consequences, especially those which are not readily decodable from surface forms. The world model also lets us integrate rule-based world-knowledge without retraining (and without the need for a large set of labeled examples). ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
827,
|
| 417 |
+
823,
|
| 418 |
+
911
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "",
|
| 425 |
+
"bbox": [
|
| 426 |
+
173,
|
| 427 |
+
92,
|
| 428 |
+
823,
|
| 429 |
+
119
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "For the bAbI examples, the minimal world model keeps track of the people, locations and objects introduced in the story so far (Figure 1). This encodes constraints on possible actions related to human core knowledge competencies (objects, agents, places) present early in human development (Spelke & Kinzler, 2007); specifically, a person or object can only be in one place at a time, an object can only be possessed by a single person at a time, a person cannot “go” to a room they are already in, and a person cannot pick up an object if it is in a different room. See the Appendix for details. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
126,
|
| 439 |
+
825,
|
| 440 |
+
209
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Search. At generation time, the interaction between System 1 generation and System 2 parsing yields a neuro-symbolic, guess-and-check search strategy. In a text generation scenario, where text is sampled from the model, our dual-system model improves upon a naive, neural-only sampling method by using the System 2 model to reject candidate utterances which are incompatible with the current state. When a candidate is rejected, a new candidate utterance is sampled from the System 1 model, which is again checked by System 2. This process repeats until a candidate utterance is accepted by System 2 (i.e., the utterance is compatible with the world state). This procedure allows the model to effectively search the space of candidate utterances, guided by the logical constraints from the minimal world model. In this work, we use straightforward probabilistic sampling to illustrate that the approach works with even a very simple search mechanism. We imagine that the search procedure could be further optimized by applying, for example, beam search or stochastic beam sampling. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
215,
|
| 450 |
+
825,
|
| 451 |
+
367
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "Diagnostic bAbI experiments. We use Task $\\# 2$ from bAbI as a diagnostic test for our neuro-symbolic dual-system model. As shown above, this task consists of synthetically-generated short stories involving people, places and objects, and questions concerning the locations of objects in these stories. We investigate performance on both question answering (QA) tasks and story generation. For the QA tasks, we parse each sentence in the story to encode each fact into the world model and parse the final question to query the world model, returning the answer given by the world ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
375,
|
| 461 |
+
452,
|
| 462 |
+
566
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "GPT-3 only: John went to the bedroom. \nJohn picked up the apple there. \nMary took the apple there. \nMary travelled to the office. \nDaniel went back to the garden. \nMary went to the bedroom. \nJohn went to the bedroom. \nSandra went to the bedroom. \nSandra travelled to the office. \nMary went back to the office. \nWhere is the apple? A: office GPT-3 $^ +$ world model: John went to the bedroom. \nJohn picked up the apple there. \nMary travelled to the office. \nDaniel went back to the garden. \nMary went to the bedroom. \nSandra went to the bedroom. \nSandra travelled to the office. \nMary went back to the office. \nWhere is the apple? A: bedroom ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
465,
|
| 471 |
+
372,
|
| 472 |
+
611,
|
| 473 |
+
493
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "",
|
| 480 |
+
"bbox": [
|
| 481 |
+
642,
|
| 482 |
+
373,
|
| 483 |
+
792,
|
| 484 |
+
474
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Figure 2: Example bAbI stories generated by GPT-3 only (left) and our dual-system model (right). Logically inconsistent lines are written in red text, and are removed from the story-so-far at generation time. ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
464,
|
| 493 |
+
501,
|
| 494 |
+
825,
|
| 495 |
+
555
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "model. We compare with two alternative models (Table 3 in the Appendix): GPT-3 by itself and a dual-system baseline that uses a neural Natural Language Inference (NLI) model as its System 2. The NLI-based dual-system model generates 10 candidates from GPT-3 and selects the candidate with the highest predicted probability of entailment under the NLI model given the context. We use the RoBERTa MNLI model as our off-the-shelf neural NLI model (Liu et al., 2019), which operates as a System 2 that does not use additional problem-specific data or fine-tuning.2 On 200 held-out tasks, our GPT-3-based “fact extractor” achieves $100 \\%$ QA accuracy, far exceeding the performance of GPT-3 alone $( 2 9 . 0 \\% )$ or GPT-3 generation with neural NLI scoring $( 3 2 . 5 \\%$ ; also see Table 3 in the Appendix). These results show that GPT-3 can be made to answer questions successfully when used for parsing with a world model, even when GPT-3 alone does not achieve high QA accuracy. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
566,
|
| 505 |
+
825,
|
| 506 |
+
704
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "To test story generation, we use our GPT-3-based System 1 proposal model (few-shot prompted on 10 example stories) to sample a new bAbI story, line-by-line. If a generated utterance is inconsistent with the current state as indicated by the System 2 world model, a new utterance is sampled from System 1 (repeating until a consistent utterance is sampled). Figure 2 shows how the dual-system approach generates stories that mimic the statistical structure of bAbI stories, while remaining logically sound In contrast, GPT-3 alone was not able to maintain logical coherence. In a set of 50 generated stories, all stories required at least one sentence to be resampled to maintain coherence, and over half of the generated sentences $( 5 3 . 1 \\% )$ were rejected by our System 2 model to maintain logical consistency. These results demonstrate that equipping GPT-3 with a minimal world model produces logically coherent stories that mimic the textural structure of the bAbI domain. In the next section, we apply this approach to mimicking human-generated short stories in natural language. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
712,
|
| 516 |
+
825,
|
| 517 |
+
863
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "4 Coherent Language Generation - CLUTRR ",
|
| 524 |
+
"text_level": 1,
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
89,
|
| 528 |
+
558,
|
| 529 |
+
107
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "We apply our dual-system approach to a dataset of natural language using the CLUTRR dataset. CLUTRR contains human-written stories about people and their family relationships (see example in Figure 3). As with bAbI, CLUTRR was originally designed as a Question Answering challenge; instead, we use it to evaluate coherent language generation by querying models to generate complete CLUTRR-style stories or to complete partially-generated stories. Our particular aim is to produce stories with coherent and logically consistent family relationships. As above, our language generation setup consists of pre-trained language models acting as our System 1 proposer, a minimal world model as System 2, and a neural semantic parser (implemented via few-shot GPT-3 prediction) as a bridge between the two systems. We use human judgments to assess whether our neuro-symbolic, dual-system model produces more consistent and coherent stories relative to a baseline. ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
173,
|
| 538 |
+
123,
|
| 539 |
+
825,
|
| 540 |
+
262
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "4.1 Model specification ",
|
| 547 |
+
"text_level": 1,
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
282,
|
| 551 |
+
346,
|
| 552 |
+
297
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "Kristin and her son Justin went to visit her mother Carol on a nice Sunday afternoon.They went out for a movie together and had a good time. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
500,
|
| 561 |
+
314,
|
| 562 |
+
650,
|
| 563 |
+
348
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "Q:How is Carol related to Justin ? ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
679,
|
| 572 |
+
319,
|
| 573 |
+
816,
|
| 574 |
+
328
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "As our System 1 proposal model, we used pretrained neural models to produce candidate generations one sentence at a time. We experimented with GPT-3 as our System 1 model (which we used above for bAbI), but found generations too unreliable, often outputting the empty string. Instead, we used a BART model (Lewis et al., 2019) that was fine-tuned on the ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
310,
|
| 584 |
+
483,
|
| 585 |
+
420
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "CLUTRR training corpus. This model also gives us an opportunity to compare against a best-case neural “single-system” baseline, specifically fine-tuned on story data. To maintain a state of family relations, we use a constraint solver in our “System $2 ^ { \\circ }$ to encode family relationships (e.g., child(x, ${ \\tt y } )$ , spouse $\\mathbf { \\Psi } ( \\mathbf { x } , \\mathbf { \\Psi } z ) ,$ ) and check that the candidate utterances do not contradict the previous statements (e.g., a person cannot be their own child or married to their sibling). We implemented the world model as a set of logical relations and constraints using the Z3 solver (De Moura & Bjørner, 2008). For instance, we require that the parent of $\\mathtt { x }$ cannot also be the uncle of x: For all x, y, $\\mathtt { u n c l e ( x , y ) } \\Rightarrow \\neg \\mathtt { c h i l d ( y , x ) }$ . To check a candidate utterance, we query the solver to determine if the set of constraints is satisfiable or if there is a contradiction. The full set of constraints and other details can be found in the Appendix. We again used GPT-3 as our semantic parser, extracting parses for each candidate utterance via few-shot learning. This parsing approach worked well, even for the natural language in this domain. We observed that parsing with GPT-3 was more successful when the target parse was naturalistic, i.e., “Bob is Joe’s father.” rather than “father(Bob, Joe)”. The parsing prompt is reproduced in full in the Appendix. ",
|
| 592 |
+
"bbox": [
|
| 593 |
+
173,
|
| 594 |
+
421,
|
| 595 |
+
826,
|
| 596 |
+
613
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "image",
|
| 602 |
+
"img_path": "images/ec4fa337894acae8383e081ea66d706994e95a5c4138459856cf540cc4c46a35.jpg",
|
| 603 |
+
"image_caption": [
|
| 604 |
+
"Figure 4: Example trial from CLUTRR human judgement experiment. Participants were instructed to select which of two options makes the most sense given the prompt. One option was generated by the System 1 model only (“single-system”), while the other was generated by the dual-system model. "
|
| 605 |
+
],
|
| 606 |
+
"image_footnote": [],
|
| 607 |
+
"bbox": [
|
| 608 |
+
181,
|
| 609 |
+
638,
|
| 610 |
+
459,
|
| 611 |
+
782
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "image",
|
| 617 |
+
"img_path": "images/23551b86728bcb3d12e87976cf8ca4400fe58d0284de9a84ef95c28f8e78effb.jpg",
|
| 618 |
+
"image_caption": [
|
| 619 |
+
"Figure 3: Sample story from the CLUTRR dataset. Each story consists of a sequence of humangenerated sentences concerning family relationships. Adapted from Sinha et al. (2019). ",
|
| 620 |
+
"Figure 5: CLUTRR human judgment experiment results. Bars denote proportions of dual-system generations selected as making more sense over single-system generations, in each of four conditions. Error-bars denote bootstrapped $9 5 \\%$ confidence intervals of the item means. The points denote means for each individual item in the experiment and are jittered horizontally for clarity. "
|
| 621 |
+
],
|
| 622 |
+
"image_footnote": [],
|
| 623 |
+
"bbox": [
|
| 624 |
+
496,
|
| 625 |
+
626,
|
| 626 |
+
795,
|
| 627 |
+
780
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "table",
|
| 633 |
+
"img_path": "images/4ba28e7b17b17987d160c543b82e1a018ff9c6ce24889db658739cb519cac8b4.jpg",
|
| 634 |
+
"table_caption": [
|
| 635 |
+
"Table 1: Statistics from CLUTRR story generation. We report the percentage of generations (on both a per-line and per-story basis) for which the System 2 world model did not detect an error. The dual-system model is able to detect many inconsistencies in the neural single-system generations, and most can be corrected by re-sampling new candidates (up to a limit of ten). "
|
| 636 |
+
],
|
| 637 |
+
"table_footnote": [],
|
| 638 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">% w/out error detected (per line)</td><td colspan=\"2\">% w/out error detected (per story)</td></tr><tr><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td></tr><tr><td>prompt from dataset</td><td>82.8</td><td>97.1</td><td>60</td><td>96.1</td></tr><tr><td>prompt from model</td><td>71.9</td><td>96.3</td><td>36.4</td><td>93.5</td></tr></table>",
|
| 639 |
+
"bbox": [
|
| 640 |
+
171,
|
| 641 |
+
159,
|
| 642 |
+
825,
|
| 643 |
+
231
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 6
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "4.2 Human judgments ",
|
| 650 |
+
"text_level": 1,
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
247,
|
| 654 |
+
343,
|
| 655 |
+
263
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "We test our dual-system neural generation $^ +$ world model method in its ability to generate stories that are deemed by naive human participants to be more naturalistic and coherent than those generated from the baseline models. Specifically, we asked participants to select which of two continuations made the most sense to them, where one continuation was generated from the neural model alone (single-system) and the other from a dual-system model (either the world model System 2 or the neural NLI System 2). ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
173,
|
| 664 |
+
275,
|
| 665 |
+
825,
|
| 666 |
+
359
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Participants. Participants $\\mathbf { N } = 1 0 1$ ) were recruited on the crowd-sourcing platform Prolific and compensated $\\$ 2$ for the task ( ${ \\sim } 1 5$ minutes, so roughly $\\$ 8/\\mathrm{ h o u r }$ ). Participants gave informed consent, and the study was approved by MIT’s IRB. 21 participants were excluded for failing an instruction quiz, incorrectly answering more than one of five filler questions, or finishing the task too quickly. The data we collected contains no personally identifiable information or offensive content. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
364,
|
| 676 |
+
825,
|
| 677 |
+
434
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Procedure. Participants began the experiment by reading a set of instructions and answering comprehension questions. On each main trial, participants were shown a prompt consisting of several sentences and were asked to choose which of two possible continuations made the most sense (an example trial is shown in Figure 4). Participants were instructed that if a name appeared multiple times within a trial, then it referred to the same person, whereas if a name appeared across trials, then it was not referring to the same person. For each trial, one continuation option was generated by the neural only single-system baseline, while the other was a dual-system generation. We selected generations from the neural only baseline that were rejected by the System 2 model in order to maximize the differences between the models’ generations; thus, human judgments pertain to generations that the models disagreed on. Each participant performed between 20 and 26 trials. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
440,
|
| 687 |
+
825,
|
| 688 |
+
579
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Materials. Participants were randomly assigned to one of four between-participant conditions, which varied according to the kind of prompt and the kind of dual-system model. The prompt was either generated from the model (up to the point of disagreement between System 1 and System 2 models; “Prompts from model” condition) or taken completely from the length 4 CLUTRR systematic generalization test dataset (“Prompts from dataset” condition). To generate prompts for the “from model” condition, we took the first sentence of each story from the CLUTRR test dataset and generated subsequent prompt sentences from the dual-system model; sentences were generated until the two systems disagreed (i.e., System 1 generated a sentence that System 2 rejected), at which point the “rejected sentence” served as the neural only (single-system) baseline generation and the first resampled sentence that System 2 accepted served as the dual-system generation. Prompts were sampled to a maximum length of four sentences. The dual-system model shown to participants used a System 2 based on either our constraint-based “world model” or the neural NLI baseline. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
585,
|
| 698 |
+
825,
|
| 699 |
+
751
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Table 1 catalogs critical statistics from the stimulus generation process. We generated vignettes from the System 1 model and report the percentage of System 1 generations which are deemed correct by the System 2 model.3 We also report the percentage of generations corrected by the System 2 model (i.e., if System 1 made an error, could System 2 fix it within 10 attempts?). We report these statistics on both a per-story and per-line basis. According to System 2, the System 1 generation model makes a lot of errors (only $3 6 . 4 \\%$ of stories and $7 1 . 9 \\%$ of lines were error-free, in the “from model\" condition). In most instances, re-sampling new generations yields stories that, according to ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
757,
|
| 709 |
+
825,
|
| 710 |
+
854
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "table",
|
| 716 |
+
"img_path": "images/d21556f194dd69a45e77703bda990cd49f2741ef73361dbb4797e172924c1aa8.jpg",
|
| 717 |
+
"table_caption": [
|
| 718 |
+
"Table 2: Accuracy on $\\mathrm { g } \\mathrm { S C A N }$ splits. Models were trained on 5000 examples (only $2 . 5 \\%$ of the gSCAN training data). See Appendix Table 4 for additional results.) "
|
| 719 |
+
],
|
| 720 |
+
"table_footnote": [],
|
| 721 |
+
"table_body": "<table><tr><td>Test split:</td><td>single-system5</td><td>dual-system</td></tr><tr><td>dev</td><td>71.7</td><td>83.3</td></tr><tr><td>random</td><td>57.2</td><td>74.7</td></tr><tr><td>yellow squares</td><td>68.1</td><td>81.3</td></tr><tr><td>red squares</td><td>64.9</td><td>78.1</td></tr><tr><td>novel direction</td><td>0.0</td><td>0.01</td></tr><tr><td>relativity</td><td>41.0</td><td>53.6</td></tr><tr><td>class inference</td><td>68.1</td><td>76.2</td></tr><tr><td>adverb (k=1)</td><td>0.0</td><td>0.0</td></tr><tr><td>adverb to verb</td><td>20.8</td><td>21.8</td></tr><tr><td colspan=\"3\"></td></tr><tr><td colspan=\"3\">³From Heinze-Deml & Bouchacourt (2020)</td></tr></table>",
|
| 722 |
+
"bbox": [
|
| 723 |
+
174,
|
| 724 |
+
142,
|
| 725 |
+
504,
|
| 726 |
+
296
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 7
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "image",
|
| 732 |
+
"img_path": "images/6b309f49955634199fe29a9959b4f5d1362ff58d0f63e41b64e1e429d4876dcf.jpg",
|
| 733 |
+
"image_caption": [
|
| 734 |
+
"Figure 6: Schematic of our dual-system approach to $\\mathrm { g S C A N }$ . We train a neural sequence model to predict both a distribution over action sequences, and a distribution over target locations. At test time, we decode candidate action sequences from the model, execute them on the gridworld, and only accept a sequence that brings the agent to the predicted target location (shown in green). "
|
| 735 |
+
],
|
| 736 |
+
"image_footnote": [],
|
| 737 |
+
"bbox": [
|
| 738 |
+
516,
|
| 739 |
+
65,
|
| 740 |
+
838,
|
| 741 |
+
193
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 7
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "System 2, no longer contain logical errors within a budget of 10 samples $9 3 . 5 \\%$ of stories and $9 6 . 3 \\%$ of lines were error-free, respectively). ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
171,
|
| 750 |
+
318,
|
| 751 |
+
823,
|
| 752 |
+
347
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 7
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Results. The human evaluation indicates that System 2 is indeed correcting genuine errors in the stories. As summarized in Figure 5, participants strongly preferred the dual-system neural generation $^ +$ world model continuations in comparison to the neural only single-system continuations (proportion preferring dual-system $= 0 . 8 4$ ; bootstrapped $9 5 \\%$ confidence interval [0.77, 0.89] and 0.79 [0.77, 0.89] for the “from dataset” and “from model” prompt conditions, respectively). The dual-system approach, however, did not improve generation quality when the System 2 was based on an off-the-shelf neural NLI model (Proportion preferring dual-system $= 0 . 5 1$ ; [0.40, 0.64] for “from dataset”; 0.58 [0.48, 0.68] for “from model”). Thus, when using a minimal world model, the dual-system approach dramatically improves logical consistency without any need for additional training or fine-tuning. People clearly prefer neuro-symbolic generations from the dual-system model over purely neural generations from a single-system model.4 ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
173,
|
| 761 |
+
352,
|
| 762 |
+
826,
|
| 763 |
+
503
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 7
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "5 Grounded Instruction Following ",
|
| 770 |
+
"text_level": 1,
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
525,
|
| 774 |
+
477,
|
| 775 |
+
542
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "The dual-system approach offers a general-purpose means of improving upon generative, neural sequence models by incorporating logical constraints. To highlight its generality, we examine how the dual-system perspective can be deployed in a very different domain: grounded instruction following. In Heinze-Deml & Bouchacourt (2020), a learned target location predictor was used to increase the accuracy of a neural action sequence generation model. Here, we show how to increase performance further by enforcing consistency between the target location predictor and the action sequence generator in our dual-system framework. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
558,
|
| 785 |
+
825,
|
| 786 |
+
654
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "We use the gSCAN benchmark (Ruis et al., 2020), a recently proposed grounded instruction following dataset designed to measure compositional generalization in neural systems. Given an initial gridworld state and an instruction, e.g., “walk to the big square,” an agent must predict the sequence of low-level actions which achieve the goal, e.g., “TURN LEFT, WALK, TURN LEFT, WALK” (See Figure 6). The dataset contains several test splits, each testing different aspects of compositional generalization. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
660,
|
| 796 |
+
825,
|
| 797 |
+
731
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Our model builds on Heinze-Deml & Bouchacourt (2020) by using an LSTM to predict the correct action sequence and target location. Given a command $c$ and an initial gridworld state $s$ , the neural network defines two distributions: a distribution over action sequences $q _ { a } ( a | c , s )$ and a distribution over target grid locations $q _ { l o c } ( l | c , s )$ . Heinze-Deml & Bouchacourt (2020) showed that when these distributions share parameters, using location prediction as an auxiliary loss improves the accuracy of the action sequence prediction model. We can further exploit these two models by noticing that when a predicted action sequence is not consistent with a predicted target location, then either the action sequence or the target location must be incorrect. Since the target location is much simpler to predict, and thus much more likely to be correctly predicted, if a predicted action sequence is not consistent with the predicted target location, then the action sequence is most likely incorrect. Our dual-system framework can use this property to increase action sequence prediction accuracy. Consider the initial state and command in Figure 6. Our model predicts candidate action sequences, and also predicts that the most likely target location is the grid containing the bigger yellow square (highlighted in red). The model then executes the candidate action sequences, and only accepts a sequence which results in the agent standing in the target location. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
736,
|
| 807 |
+
825,
|
| 808 |
+
848
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
92,
|
| 818 |
+
825,
|
| 819 |
+
188
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "In the language of our dual-system approach, we treat the distribution over actions $q _ { a } ( a | c , s )$ as our System 1 proposal model. The distribution over target locations $q _ { l o c } ( l | c , s )$ serves as a fact extractor model, which extract a location constraint $l$ . As a minimal world model, we use a deterministic gridworld execution model $T ( a , s _ { 0 } ) \\to s _ { f }$ , which takes a state and action and predicts the resulting state. At test time, we first extract the predicted location as $l = \\arg \\operatorname* { m a x } _ { l ^ { \\prime } } q _ { l o c } ( l ^ { \\prime } | c )$ We then search through the possible action sequences from $q _ { a } ( \\cdot | c )$ , conditioned on agreement with $l$ . In our experiments, we use a sample-based search with a maximum budget of 50 samples. We trained models on random subsets of the gSCAN training set of varying sizes: 5000 datapoints, 8000 datapoints, and 20000 datapoints $2 . 5 \\%$ , $4 \\%$ and $10 \\%$ of the original training set, respectively). ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
194,
|
| 829 |
+
825,
|
| 830 |
+
319
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 8
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Results. The results show that the System 2 execution model improves performance without the need for any additional training (see Table 2 for results training on 5000 examples). In contrast to the single-system model, the dual-system model allows for sampling many candidate action sequences from the neural network, accepting only consistent sequences. This guess-and-check approach greatly increases the evaluation accuracy, improving upon prior work on gSCAN, particularly in low-data regimes. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
325,
|
| 840 |
+
825,
|
| 841 |
+
409
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "6 Limitations ",
|
| 848 |
+
"text_level": 1,
|
| 849 |
+
"bbox": [
|
| 850 |
+
174,
|
| 851 |
+
446,
|
| 852 |
+
302,
|
| 853 |
+
464
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 8
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "In its current form, our approach is most useful in domains where naturalistic, learned generation is necessary and where a small number of mission-critical logical constraints can be explicitly articulated. Our system will be less useful when constraints are more difficult to articulate (e.g., creative domains such as writing poetry) or when there are many constraints, since the minimal world model must be hand-engineered. Enforcing strict constraints may also pose risks: if the constraints are not only logical but cultural, they may be harmful if misapplied. However, these constraints must be articulated explicitly in a symbolic model, and are thus easier to identify and correct. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
174,
|
| 862 |
+
489,
|
| 863 |
+
825,
|
| 864 |
+
588
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "The current few-shot parsing technique may also suffer from a limited capacity. For more complex domains, the number of examples required to specify the desired parsing behavior may be too large (i.e., they may not fit in the input window) or too complex for a model to perform parsing accurately. While some tasks may not be suitable, the complexity of the world model need not necessarily increase hand-in-hand with the complexity of the application domain. A dual-system model will be most successful when tracking just a few critical variables (e.g., tracking consistency in family relations, as in our experiments, or tracking scheduling constraints when discussing a team plan). ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
593,
|
| 874 |
+
825,
|
| 875 |
+
690
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "A promising direction for future work is to incorporate learning into the System 2 world model. Currently, the minimal world knowledge that exists in System 2 can be easily modified, but changes must be made by hand. Improvements would come from automatically learning and updating this structured knowledge, possibly by incorporating neuro-symbolic learning techniques (Ellis et al., 2020; Mao et al., 2019), or other neuro-symbolic integration work such as Tsamoura et al. (2021); Michael & Valiant (2008). ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
696,
|
| 885 |
+
825,
|
| 886 |
+
780
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Learning could improve our dual-system approach in other ways, e.g., by training a neural module to mimic the actions of a symbolic System 2. The symbolic System 2 judgments could be used as a source of supervision; candidate utterances rejected by the symbolic System 2 model could be used as examples of contradictory sentences, and accepted utterances could be used as examples of noncontradictory statements. This oversight could help train a neural System 2 contradiction-detection model capable of more subtleties than its symbolic counterpart, especially in domains where labeled examples are otherwise unavailable. This approach may also help us understand aspects of human learning, where certain tasks that require slower, logical reasoning can be habitualized over time and tackled by faster, more intuitive reasoning. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
786,
|
| 896 |
+
825,
|
| 897 |
+
911
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Recent work (Li et al., 2021) has shown that large pre-trained neural models learn to approximately represent certain types of structured semantic information. However, it is not yet clear how representational fidelity translates to logical coherence during generative tasks. Our current approach allows us to explicitly fix logical errors in generation, which may ultimately be caused by representational errors. Understanding how we might leverage our approach to improve the representation of structured knowledge within neural models is a promising direction for future work, which could lead to increased generation consistency and coherence. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
92,
|
| 907 |
+
825,
|
| 908 |
+
188
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 9
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "7 Conclusion ",
|
| 915 |
+
"text_level": 1,
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
208,
|
| 919 |
+
299,
|
| 920 |
+
224
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 9
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "Inspired by dual process theories from cognitive science, we combine the respective strengths of neural and symbolic approaches to build more robust models that can more effectively incorporate domain knowledge. For language generation, we showed that equipping neural generation with a minimal symbolic world model increased language coherence and consistency. For grounded instruction following, we showed that requiring test-time consistency between predicted action sequences and goal locations led to improved performance, especially in low-data regimes. Our neuro-symbolic approach can readily be applied to other domains and types of prior knowledge, as a lightweight way of improving the coherence and consistency of powerful neural sequence models. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
239,
|
| 930 |
+
825,
|
| 931 |
+
351
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 9
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "This paper just scratches the surface of how structured knowledge can make neural systems more robust; we hope to inspire further work into neuro-symbolic systems which possess the robustness and commonsense necessary for human-level intelligence. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
356,
|
| 941 |
+
825,
|
| 942 |
+
398
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 9
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Acknowledgments ",
|
| 949 |
+
"text_level": 1,
|
| 950 |
+
"bbox": [
|
| 951 |
+
176,
|
| 952 |
+
414,
|
| 953 |
+
303,
|
| 954 |
+
428
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "We thank Laura Ruis, Jacob Andreas, Yewen (Evan) Pu, Joe O’Connor and Guy Davidson for helpful comments on an earlier version of this manuscript. MN is supported by a NSF Graduate Research Fellowship. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
438,
|
| 964 |
+
825,
|
| 965 |
+
479
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "References ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
500,
|
| 976 |
+
266,
|
| 977 |
+
515
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 9
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Andreas, J., Bufe, J., Burkett, D., Chen, C., Clausman, J., Crawford, J., Crim, K., DeLoach, J., Dorner, L., Eisner, J., et al. Task-oriented dialogue as dataflow synthesis. Transactions of the Association for Computational Linguistics, 8:556–571, 2020. \nBrown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \nDe Moura, L. and Bjørner, N. Z3: An efficient smt solver. In Tools and Algorithms for the Construction and Analysis of Systems, pp. 337–340. Springer, 2008. \nDeng, Y., Bakhtin, A., Ott, M., Szlam, A., and Marc’Aurelio Ranzato. Residual energy-based models of text generation. In International Conference on Learning Representations (ICLR), pp. 1–18, 2020. \nDevlin, J., Uesato, J., Bhupatiraju, S., Singh, R., Mohamed, A.-r., and Kohli, P. Robustfill: Neural program learning under noisy i/o. ICML, 2017. \nEllis, K., Wong, C., Nye, M., Sable-Meyer, M., Cary, L., Morales, L., Hewitt, L., Solar-Lezama, A., and Tenenbaum, J. B. Dreamcoder: Growing generalizable, interpretable knowledge with wake-sleep bayesian program learning. arXiv preprint arXiv:2006.08381, 2020. \nEvans, J. S. B. In two minds: dual-process accounts of reasoning. Trends in cognitive sciences, 7(10): 454–459, 2003. \nFrederick, S. Cognitive reflection and decision making. Journal of Economic perspectives, 19(4): 25–42, 2005. \nGarcez, A. d. and Lamb, L. C. Neurosymbolic ai: The 3rd wave. arXiv preprint arXiv:2012.05876, 2020. \nGoyal, A. and Bengio, Y. Inductive biases for deep learning of higher-level cognition. arXiv preprint arXiv:2011.15091, 2020. \nGoyal, A., Didolkar, A., Ke, N. R., Blundell, C., Beaudoin, P., Heess, N., Mozer, M., and Bengio, Y. Neural production systems. CoRR, abs/2103.01937, 2021. URL https://arxiv.org/abs/ 2103.01937. \nHeinze-Deml, C. and Bouchacourt, D. Think before you act: A simple baseline for compositional generalization. arXiv preprint arXiv:2009.13962, 2020. \nHerzig, J. and Berant, J. Span-based semantic parsing for compositional generalization. arXiv preprint arXiv:2009.06040, 2020. \nHoltzman, A., Buys, J., Forbes, M., Bosselut, A., Golub, D., and Choi, Y. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018. \nHua, X. and Wang, L. Pair: Planning and iterative refinement in pre-trained transformers for long text generation. In EMNLP, 2020. \nKahneman, D. Thinking, fast and slow. kindle ed, 2013. \nKurita, S. and Cho, K. Generative language-grounded policy in vision-and-language navigation with bayes’ rule. arXiv preprint arXiv:2009.07783, 2020. \nLake, B. M. and Murphy, G. L. Word meaning in minds and machines. arXiv preprint arXiv:2008.01766, 2020. \nLake, B. M., Ullman, T. D., Tenenbaum, J. B., and Gershman, S. J. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:E253, 2017. \nLewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019. \nLi, B. Z., Nye, M., and Andreas, J. Implicit representations of meaning in neural language models. arXiv preprint arXiv:2106.00737, 2021. \nLiang, C., Berant, J., Le, Q. V., Forbus, K., and Lao, N. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23–33, Vancouver, Canada, 2017. URL http://aclanthology.coli.uni-saarland.de/pdf/P/P17/P17-1003.pdf. \nLiang, P. Learning executable semantic parsers for natural language understanding. Communications of the ACM, 59(9):68–76, 2016. \nLiu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \nLoshchilov, I. and Hutter, F. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. \nLu, X., West, P., Zellers, R., Bras, R. L., Bhagavatula, C., and Choi, Y. Neurologic decoding:(un) supervised neural text generation with predicate logic constraints. arXiv preprint arXiv:2010.12884, 2020. \nMao, J., Gan, C., Kohli, P., Tenenbaum, J. B., and Wu, J. The neuro-symbolic concept learner: Interpreting scenes, words, and sentences from natural supervision. arXiv preprint arXiv:1904.12584, 2019. \nMartin, L. J., Ammanabrolu, P., Hancock, W., Singh, S., Harrison, B., and Riedl, M. O. Event representations for automated story generation with deep neural nets. In AAAI, 2018. \nMarzoev, A., Madden, S., Kaashoek, M. F., Cafarella, M., and Andreas, J. Unnatural language processing: Bridging the gap between synthetic and natural language data. arXiv preprint arXiv:2004.13645, 2020. \nMiao, N., Zhou, H., Mou, L., Yan, R., and Li, L. Cgmh: Constrained sentence generation by metropolis-hastings sampling. In AAAI, 2019. \nMichael, L. and Valiant, L. G. A first experimental demonstration of massive knowledge infusion. 2008. \nMou, L., Lu, Z., Li, H., and Jin, Z. Coupling distributed and symbolic execution for natural language queries. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2518–2526. PMLR, 06–11 Aug 2017. URL http://proceedings.mlr.press/v70/mou17a.html. \nMuhlgay, D., Herzig, J., and Berant, J. Value-based search in execution space for mapping instructions to programs. pp. 1942–1954, 01 2019. doi: 10.18653/v1/N19-1193. \nNie, Y., Williamson, M., Bansal, M., Kiela, D., and Weston, J. I like fish, especially dolphins: Addressing contradictions in dialogue modelling. arXiv preprint arXiv:2012.13391, 2020. \nNye, M. I., Solar-Lezama, A., Tenenbaum, J. B., and Lake, B. M. Learning compositional rules via neural program synthesis. arXiv preprint arXiv:2003.05562, 2020. \nPieraccini, R., Tzoukermann, E., Gorelov, Z., Gauvain, J.-L., Levin, E., Lee, C.-H., and Wilpon, J. A speech understanding system based on statistical representation of semantics. In [Proceedings] ICASSP-92: 1992 IEEE International Conference on Acoustics, Speech, and Signal Processing, volume 1, pp. 193–196 vol.1, 1992. doi: 10.1109/ICASSP.1992.225939. \nRadford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \nRamesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. \nRuis, L., Andreas, J., Baroni, M., Bouchacourt, D., and Lake, B. M. A benchmark for systematic generalization in grounded language understanding. arXiv preprint arXiv:2003.05161, 2020. \nSchlag, I. and Schmidhuber, J. Learning to reason with third-order tensor products. CoRR, abs/1811.12143, 2018. URL http://arxiv.org/abs/1811.12143. \nSerafini, L. and d’Avila Garcez, A. S. Logic tensor networks: Deep learning and logical reasoning from data and knowledge. CoRR, abs/1606.04422, 2016. URL http://arxiv.org/abs/1606. 04422. \nShen, S., Fried, D., Andreas, J., and Klein, D. Pragmatically informative text generation. arXiv preprint arXiv:1904.01301, 2019. \nShin, R., Lin, C. H., Thomson, S., Chen, C., Roy, S., Platanios, E. A., Pauls, A., Klein, D., Eisner, J., and Van Durme, B. Constrained language models yield few-shot semantic parsers. arXiv preprint arXiv:2104.08768, 2021. \nSinha, K., Sodhani, S., Dong, J., Pineau, J., and Hamilton, W. L. Clutrr: A diagnostic benchmark for inductive reasoning from text. arXiv preprint arXiv:1908.06177, 2019. \nSmith, E. M., Gonzalez-Rico, D., Dinan, E., and Boureau, Y.-L. Controlling style in generated dialogue. arXiv preprint arXiv:2009.10855, 2020. \nSpelke, E. S. and Kinzler, K. D. Core knowledge. Developmental Science, 10(1):89–96, 2007. \nSu, Y. and Yan, X. Cross-domain semantic parsing via paraphrasing. arXiv preprint arXiv:1704.05974, 2017. \nTsamoura, E., Hospedales, T., and Michael, L. Neural-symbolic integration: A compositional perspective. Proceedings of the AAAI Conference on Artificial Intelligence, 35(6):5051–5060, May 2021. URL https://ojs.aaai.org/index.php/AAAI/article/view/16639. \nWelleck, S., Weston, J., Szlam, A., and Cho, K. Dialogue natural language inference. arXiv preprint arXiv:1811.00671, 2018. \nWeston, J., Bordes, A., Chopra, S., Rush, A. M., van Merriënboer, B., Joulin, A., and Mikolov, T. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. \nXu, J., Ren, X., Zhang, Y., Zeng, Q., Cai, X., and Sun, X. A skeleton-based model for promoting coherence among sentences in narrative story generation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4306–4315, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1462. URL https://www.aclweb.org/anthology/D18-1462. \nXu, J., Ju, D., Li, M., Boureau, Y.-L., Weston, J., and Dinan, E. Recipes for safety in open-domain chatbots. arXiv preprint arXiv:2010.07079, 2020a. \nXu, S., Semnani, S. J., Campagna, G., and Lam, M. S. Autoqa: From databases to qa semantic parsers with only synthetic training data. arXiv preprint arXiv:2010.04806, 2020b. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
171,
|
| 986 |
+
523,
|
| 987 |
+
828,
|
| 988 |
+
912
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "",
|
| 995 |
+
"bbox": [
|
| 996 |
+
169,
|
| 997 |
+
41,
|
| 998 |
+
828,
|
| 999 |
+
912
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 10
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
169,
|
| 1008 |
+
32,
|
| 1009 |
+
828,
|
| 1010 |
+
917
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 11
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
171,
|
| 1019 |
+
90,
|
| 1020 |
+
828,
|
| 1021 |
+
377
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 12
|
| 1024 |
+
}
|
| 1025 |
+
]
|
parse/train/uyKk_avJ-p4/uyKk_avJ-p4_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/uyKk_avJ-p4/uyKk_avJ-p4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|